MAMP Pro does have a problem however with not always turning off the entries in the /etc/hosts files when you stop the servers, so you have problems accessing the real site. Fixing this requires opening the hosts file manually and commenting or uncommenting the desired entries. A tedious pain.
So I decided to write a quick shell script that would allow me to reset the hosts file with a quick terminal command. See the one line install command and usage below.
Shell script for cleaning/resetting /etc/hosts files messed up by MAMP Pro — Gist.
Fix the codeigniter plupload upload problem of “You did not select a file to upload.” by making sure that you pass the correct file array key to do upload:
How I found it:
I’ve been working on my first codeigniter project that required me to upload some images. For that task I chose Plupload. A super slick upload manager written by the same people that brought us tinymce.
Continue reading “CodeIgniter Plupload problems – a solution!”
I find myself downloading lots of files from the web when converting sites into my company’s CMS. Whether from static sites or other CMS platforms, trying to do this manually sucks. But, thanks to wget’s recursive download feature, I can rip through a site, and get all of the images I need, while keeping even the folder structure.
One thing I found out was that wget respects robots.txt files, so the the site you are trying to copy has one with the right settings, wget will get only what is allowed. This is something that can be overridden with a few tweaks. I gladly used it and decided to pass it along. See the instructions at the site below.
Continue reading “Override Robots.txt With wget”