Madproject

Always know where your towel is.

Copy Images and Layers from Illustrator to Photoshop with pixel perfect accuracy

Part of my website development cycle is receiving the website design as an Illustrator file from my graphic designer. From there, I often have to extract design elements (images, layers, outlines) from the Illustrator file, import them (copy/paste) into Photoshop, perhaps do a few manipulations and finally save for web. In 99% of cases, I required pixel perfect accuracy. Up…

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

NOTE: Whilst this specifically resolves the probem, I’d suggest setting up a virtual environment for your development using a combination of VirtualBox and Vagrant. 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…

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

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 injected code in the JS…

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 using the following instruction: How…