Get YouTube video thumbnails (the easy way)

Posted by on Oct 20, 2010 in Various | One Comment

YouTube has an API to do this, however, there is an easier way to pull the thumbnails of a specific video if you know its ID. You can use this trick in any of your applications and it is not language specific.

A little dot that made me pull my hair off

Posted by on Oct 15, 2010 in jQuery, Various, XHTML | No Comments

I was coding a long signup form, a very nice one, with the jQuery Validation Plugin, but it wasn’t working. I started to strip the code, piece by piece so I can identify what was causing the plugin to ignore the form and I came up with the most stupid error you will ever seen […]

Trim long texts by words in PHP

Posted by on Oct 14, 2010 in PHP | No Comments

We don’t like reading chopped sentences like “Star Wars Old Republic is be….”. It looks fugly. Usually, when trimming text you will go with substr(), but there is a much better way to do it, and believe me, you trimmed text will look so much better than before.