Author Archives: fuji

How To Implement a RESTful API

Today we will discuss a REST API. We’ll briefly go over what it is and then we’ll implement one from both the server and client perspective. What is a REST API A lot of public APIs are REST APIs and … Continue reading

Posted in Articles, Programming | Leave a comment

Perl Exception Handling

What Is Exception Handling? In it’s simplest form, Exception Handling allow you to write a block of code and wrap it in your own form of error handling. Typically a program will attempt to accomplish a number of tasks and … Continue reading

Posted in Articles | Leave a comment

Diff two source controlled directories

I constantly need to diff two directories just to check what files have changed between revisions. When you do a CVS checkout of two separate branches whether they’re incremental or not, sometimes you need to check which files differ as … Continue reading

Posted in Snippets | Leave a comment

Why Database Abstraction Is Useless 90% of The Time

I’m sure you’ve read a lot of posts, articles and forums where one of the “best practices” is to use a database abstraction layer. It really isn’t, and experience has taught me that the amount of times you change database … Continue reading

Posted in Articles | Leave a comment

saAlbumCoverArt: Download album covers from Amazon

Abstract: These set of classes allow you to use Amazon to download your music album cover images.  Your script will need to pass it the search string, which for amazon works best as “[album name] [artist]“. Given these set of … Continue reading

Posted in Code | Leave a comment