Author Archives: Trev

The Grains – Motorhome

The Grains, a great band from Byron Bay Spread the love: Delicious Digg Facebook Reddit Stumblers Twitter RSS E-mail

Posted in General | Leave a comment

Magento PHP Extension “mcrypt” must be loaded – Mac OSX Lion

Ever try to setup Magento in a local dev. environment on your Mac? You might have encountered an error message: PHP extension “mcrypt” must be loaded Well we better load it then! This solution here worked perfectly for me: http://michaelgracie.com/2011/07/21/plugging-mcrypt-into-php-on-mac-os-x-lion-10-7 Spread the love: Delicious Digg Facebook Reddit Stumblers Twitter RSS E-mail

Posted in General | Leave a comment

Show hidden files on Mac OSX

Ever needed to show those hidden files in Finder? I’ve tested this successfully in both Snow Leopard and Lion. Throw these two lines in your ~/.bash_profile (if it doesn’t exist, just create it) Reload your .bash_profile. From within terminal: Type sf to show all hidden files Type hf to hide all typically hidden files Spread [...]

Posted in General | Leave a comment

Getting Quicksilver to Launch at Startup on OSX Lion with a SSD

No Mac setup is complete without Quicksilver. If you’ve never heard of or used it before, I urge you to give it a try. It’s a lightning fast app launcher that’ll really increase your speed/productivity by reducing the amount of clicks/searching/typing you need to do to perform a task. I digress; I recently installed a [...]

Posted in General | Leave a comment

brunno.in JS injection using WSO 2.2

A client recently gave me a call saying his website was throwing a malware warning when visited using Google Chrome. A bit of research indicated that somehow the attacker gained access to the site, installed a Web Shell script in *.js.php files and injected JS code into existing JS files. Google’s Webmaster Tools showed the [...]

Posted in General | 1 Comment

Enabling IPv6 in Google Chrome

Alright, this will be a quick post but I wanted to take 5 and write this out for prosperity and maybe somebody else will have a similar issue. I currently develop in RoR and PHP amongst other languages. For Rails I use Pow to quickly setup a development environment. For PHP I just set manually [...]

Posted in General | Leave a comment

Top 11 Ruby on Rails Learning Tools

About a year ago I decided it was time to start learning RoR (Ruby on Rails) with the ultimate goal being that it’d replace PHP in most of my projects. While I’m still not at that point, here’s a top 11 list of Ruby and Ruby on Rails tutorials, tools and resources that really helped [...]

Posted in General, Programming | Leave a comment

Refactoring a user input generated SQL query

I’m sure many of your are familiar with PHPMyAdmin. In short it’s a nice frontend to MySQL written in PHP that enables you to visually manipulate your MySQL databases and underlying data. The reason I mention PHPMyAdmin is I recently needed to add a similar feature of PHPMyAdmin into one of my applications. The feature [...]

Posted in Programming | Tagged , , , , , , | Leave a comment

MySQL query returning truncated results could be because of group_concat

I recently encountered an issue where my MySQL query was returning truncated results… and by truncated I mean it was returning only a fraction of the rows it should have been returning and the last of those rows was actually missing data. The query in question uses a few LEFT OUTER JOIN(s) and the GROUP_CONCAT [...]

Posted in Programming | Tagged , , , | Leave a comment

jQuery Checkbox select all

Ever wanted to allow a user to click the Select all checkbox and have all the checkboxes magically have checks in them? You might want to do that if you have lots of options, especially if your checkboxes are being generated dynamically from information pulled from a database. The latter is what prompted me to [...]

Posted in Programming, Web | Leave a comment