Archive for the ‘Programming’ Category
Tuesday, July 6th, 2010
Everyone wants pretty URLs these days—both for convenience and to optimize for search engines. So having URLs with unnecessary information is a major no-no. Over the past year I've been slowly absorbing the Zend Framework and its MVC pattern. Historically, projects I created required the user to specify the index ...
Posted in PHP, Programming, Web Development, Zend Framework | No Comments »
Monday, August 17th, 2009
Today I taught myself how to use Zend_Cache and implemented it within 20 minutes. It's super easy and very effective. Take a look at the code sample below and you'll be up and running in no time.
Step 1: Setup the Cache
{code type=php}
$frontendOptions = array(
'lifetime' => 180, // Cache for 3 minutes
'automatic_serialization' ...
Posted in Amazing, PHP, Programming, Software, Web Development, Zend Framework | No Comments »
Tuesday, June 16th, 2009
Everyone knows (or should by now) that cheap web hosts (Bluehost, Dreamhost, MediaTemple, etc.) don't backup your data for you. So you'd better do it yourself. If you're on any respectable host, you should have ssh access to the box.
Connect to your box via ssh and run the following commands ...
Posted in Backup, DIY, Hosting, IT, Linux, Programming, Software, Technology, Web Development | 2 Comments »
Sunday, April 19th, 2009
My back yard is full of bare spots so I thought it was time to re-seed. Since Walmart is usually cheaper than the competition, I check there first when I need something. I searched for "grass seed" on Walmart.com and got results that couldn't have been more off.
No related posts.
Posted in Annoying, Bugs, Depressing, Programming, Ridiculous, Software, Technology, Web Development | No Comments »
Monday, March 16th, 2009
Do you have an economy-grade website host? Me too. BlueHost is great for only $6.95 per month but its response times and transfer rates are terrible. Fear not — Amazon S3 to the rescue. For pennies a day you can supplement your cheap website host using ...
Posted in Amazing, Annoying, Blog, DIY, Deals, Entertainment, Hardware, Hosting, IT, JavaScript, Programming, Ridiculous, Software, Technology, Web Development | 3 Comments »
Tuesday, January 13th, 2009
$utc_time = "2009-01-12 21:28:21"; // As pulled from the database
date_default_timezone_set("America/New_York"); // Set to Eastern time (automatically handles daylight savings time)
// Here's the secret: add a Z (for zulu) ...
Posted in PHP, Programming, Web Development | 2 Comments »
Tuesday, January 6th, 2009
Thanks to Paul Reinheimer for sneakily tagging me.
I made it to the state tennis tournament 3 out of 4 years in high school.
I read the entire DOS manual when I was 5.
I've owned a house since I was 23.
In 1993 and 1994 I saw every state in the U.S. and ...
Posted in Flash, Gaming, House, Life, Programming, Relationships, Software, Stocks, Vacation | 2 Comments »
Monday, December 22nd, 2008
Dictionary.com defines dominate in the following ways:
1) to rule over; govern; control.
2) to tower above; overlook; overshadow
As I was racing today, I owned one of the longer races by completing it in 5:17. The "time to beat" in order to gain domination status was 5:38. It seems to ...
Posted in Annoying, Bugs, Depressing, Entertainment, Gaming, Programming, Ridiculous, Software, Sports | 1 Comment »
Tuesday, December 16th, 2008
Play Now
Today is very special. After 150 hours of hard work and sleepless nights, I have released Stock Rider, a flash-based game where you ski real market data.
This is my first big Flash piece and I am so happy with the results. It uses Box2D for Flash as ...
Posted in Flash, Gaming, Programming, Sports, Stocks, Web Development | 4 Comments »
Monday, October 20th, 2008
Me too.
While writing a JavaScript countdown timer the other day I ran into a very peculiar issue. Every time I refreshed the page, the countdown had 0 hours, 59 minutes, and 59 seconds remaining, regardless of the current time, but it had the correct number of days.
To set the ...
Posted in Annoying, Bugs, Depressing, JavaScript, Programming, Ridiculous, Web Development | No Comments »