Author Archives: Trev

Getting Tar and Excluding Folders/Files to Work on Mac OSX

Sometimes it’s the seemingly simplest things that become the biggest pain in the ass… All I wanted to do was create a tar.gz archive of a project and exclude some files and folders. I typed $ man tar, followed the instructions and had little success. Turns out tar is really finicky and differs slightly by [...]

Posted in General | Leave a comment

Magento 1.6 Menu Link Active State

Ahh Magento. So powerful but what a pain in the ass when you don’t work with it regularly. So you’ve added custom menu items to your top.phtml It all works great but the .active class isn’t being applied to the menu item when you’re on said page. For the home link Note: What we’re doing [...]

Posted in Programming, Web | 2 Comments

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