Archive for July, 2009

Playing Kings Quest 1 on the iPhone

Sunday, July 26th, 2009 | Apple, Funny, Gaming, Tips & Tricks | No Comments

Since i go my iPhone I wished I could play my oldschool dos games on it. The games that kept you up way passed your bed time. Games like Starcontrol 1/2, Zork, Cosmo and others.

Well, with some looking/playing around i managed to get Kings Quest 1 working on my iPhone (I know it’s awesome)

› Continue reading

Quick tip: Debugging CakePHP on a live site

Wednesday, July 22nd, 2009 | CakePHP, Coding, Tips & Tricks | No Comments

As all web developers know, you don’t want site visitors to ever see your sql queries or any debugging information. So wat do you do when you need to debug on a high traffic live site?

› Continue reading

Getting a random row from MySQL

Sunday, July 12th, 2009 | Coding, Tips & Tricks | 105 Comments

Getting a random row from a MySQL query is actually pretty easy. When doing a query like.
SELECT * FROM entries WHERE name = "Moe"
You can get a randomized selection of rows by adding RAND() to your ORDER BY clause. Your query would look something like:
SELECT * FROM entries WHERE name = "Moe" ORDER BY RAND()

› Continue reading

Categories

Search

Meta

Afrigator