To change the group recursively of files and folders only if the original group is a certain value, you can use the following (replace “yournewgroup”, “youroldgroup”, and “/path/to/wherever” to your own values).
Hide Keyboard on Button Click in iOS
So, you’re developing an iOS app for the iPhone, iPod Touch or iPad. Say you have a few textfields and nice little Round Rect button to submit the user’s input. Unfortunately, after the user enters the last field they don’t click “Done” on the keyboard. In fact, they have the nerve to just click your […]
PHP Tips to Display Errors, Warnings and Notices
Adding these two little lines at the top of your code can often solve a world of questions you have on why your code isn’t working. Make sure they are placed at the very top right after the opening <?php tag. If anything is output before them it will not work properly. Another helpful tool […]
How to Fix Slow Product Saves in Magento
In earlier versions of Magento you may have noticed that saving products is horribly slow especially as your site grows. This problem originates from a bug in MySQL 5 (bug #42259) where using “IN” can dramatically decrease performance. This appears to have been corrected in Magento 1.7.x. However, if upgrading isn’t an option for you […]
Tip for Validating Cookies
When displaying and using cookies it is important to validate them especially when they are integral to the functionality of the page. Make sure to check to see if the cookie is set before displaying it.