Category Archives: Coding
My latest project: TwitterTranslate
Tonight I made this little Safari 5 extension: TwitterTranslate Pretty simple – it finds any foreign tweets on your Twitter feed and translates them to English, or Spanish, or Japanese, or whatever your native language is. Enjoy! Tweet
PHP best practices #1: duplication is evil
I am very opinionated about my code. The source of most of my opinions is the DRY/DIE principal: Don’t Repeat Yourself / Duplication Is Evil. Take, for instance, a Human Resources application I worked on recently. It is a … Continue reading
PHP Best Practices: Introduction
I started programming when I was about 12, did so continuously until I was 18, took a couple years off to be a kid again, and recently started programming again seriously (in professional, production, multiple-developer environments). I have a … Continue reading
Fancy command-line alarm for Mac OS X
I have a Calc exam in the morning. Instead of studying for it, I decided to program a command-line alarm for myself so I don’t sleep through the exam. It doesn’t help that my phone is MIA and I’ve never … Continue reading
MVC or just pretending?
I used to think I hated MVC. I realized in the past few months that MVC is great, but not many programmers actually adhere to it in the PHP world. A lot of PHP frameworks pay lip service to MVC … Continue reading
PHP links of the day
Here are two helpful pages I discovered working today: RFC 822 compliant email validator for PHP: http://www.iamcal.com/publish/articles/php/parsing_email/ A bunch of handy regular expressions: http://www.roscripts.com/PHP_regular_expressions_examples-136.html (I’m using the currency regular expressions, but they all look handy) Tweet
Journal system with list and theme features
I really like journaling. It’s how I process my thoughts. Often, it’s helpful for me to go back and review past thoughts I’ve had or ideas I’ve jotted down. This tends to become difficult if content isn’t marked up, but … Continue reading
Copying to iPhone clipboard with Objective-C
Maybe this will help other Cocoa Touch noobs like me. If you’re using the iPhone 3.0 SDK, use this to place a string into the clipboard. UIPasteboard* pasteBoard = [UIPasteboard generalPasteboard]; [pasteBoard setString:@"Any NSString can go here"]; I assume you … Continue reading