Tips & Tricks

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

Wednesday, December 9th, 2009 | Coding, Tips & Tricks, jQuery | 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 | 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

What The Font?

Wednesday, August 27th, 2008 | Tips & Tricks | No Comments

If you’ve ever seen text in an image or on a website and wanted to find the name of the font or similar fonts, you’ll find myfonts.com’s What The Font tool very useful. Simply upload an image or enter a URL, and What The Font will analyze the content and show you possibilities of what the font could be.

Tags: , , , ,

Categories

Search

Meta

Afrigator