jQuery: $(document).ready(function(){…}) vs $(window).bind(’load’, function(){…})

Wednesday, December 9th, 2009 | Coding, Tips & Tricks, jQuery | tiaan | 24 Comments

The $(document).ready(function(){…}) is great and I always use it. It gets called after all the page elements are loaded, which means that all your input boxes, img, etc are there by the time you execute your javascript. Up until today I didn’t need anything else… › Continue reading

Playing Kings Quest 1 on the iPhone

Sunday, July 26th, 2009 | Apple, Funny, Gaming, Tips & Tricks | tiaan | 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 | tiaan | 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 | tiaan | 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

Its been a while…

Tuesday, June 30th, 2009 | Uncategorized | tiaan | 26 Comments

Although its been a few months since the last post (9 to be exact), you can rest assured that Primitive Blog is still alive and well. The nature of the content will change from here on out. Stuff we’ll be focussing on will be more tech and coding related. If you’re interested in CakePhp, MVC frameworks, jQuery or plain vanilla javascript subscribe the rss feed. I promise we’ll leave the newest iPhone/Mac/iTablet speculation to other blogs for now. › Continue reading

Categories

Search

Meta

Afrigator