Archives

Kohana Formatting Conventions for Aptana and Titanium Studio

Ever since our dev team decided to adopt Kohana’s formatting standards and conventions, we’ve found our code to be a lot more agile, and easy to work on. Since we already use the same IDE Aptana/Titanium on Windows, Mac and Ubuntu, we decided to create a format preference that can be saved and shared with each other as well as other Aptana users. This format setting **MAY** work in Eclipse as well, but I haven’t had time to test it. If we missed anything or if you have any comments or contributions to extend, please do so!

To import, download and extract the zip file. Then inside of Prefernces, select the Studio dropdown on the left, choose Formatter and then on the right select the import profile option.

Download Source Files

Tagged , , , , , , ,

Replace WordPress Feed Link in Head

After wrestling with WordPress for far too long, I found a solution from Justin Tadlock for redirecting users and bots to a custom Feedburner URL as well as replace the auto generated urls that are output by wp_head() and link to /feed by default.

Read more »

Tagged , , , , ,

Download Files Recursively with PHP

There are many tutorials and scripts out there that will help you download/get ftp files from one server to another, but this is a slimmed down version that doesn’t have any unneeded fluff. There’s a linear approach to setting up FTP connection info, as well as a OOP example of performing server actions. If you’re familiar with OOP, this would be ideal to condense and refine into the FTP Class, otherwise, if you just want this to work without worrying about classes or scope, you can copy/paste the contents from the class into the linear script and it’ll get you where you need to go. Cloud servers can be a great way to host these heavy processes or bulky PHP scripts. Feel free to leave comments or questions.

Read more »

Tagged , ,

Page 1 of 3123