Open Source

PHP DateTime is missing methods in 5.2

March 31, 2010
By SeanJA

It turns out that in PHP 5.2, the DateTime class is missing a couple of methods (get/setTimestamp) that are available in PHP 5.3. These are some strange methods to be missing as a lot of people in the PHP world seem to work on Timestamps using these concepts, so you would have thought that...
Read more »

Posted in Open Source, PHP, Programming | No Comments »

jQuery :contains selector and unicode characters

March 24, 2010
By SeanJA

I have an element like this (to save space in the menu since they can put up to 255 characters in it): <span class="tool_tip" title="The full title">The ful&#8230;</span> While this seems to work: jQuery('span:contains(…)'); this does not: jQuery('span:contains(&#8230;)'); I am pretty sure that it would be bad to use the first one because if...
Read more »

Tags: , , , , ,
Posted in Javascript, Open Source, Programming, jQuery | No Comments »

Documenting PHP Code

March 17, 2010
By SeanJA
Documenting PHP Code

I know we all hate documenting code, but it can really help out future you or me when we need to go back and fix something. Poorly documented code is the bane of anyone who will be taking on your code after you leave (or invite more people into) the project. One thing that...
Read more »

Posted in IDE, Open Source, PHP, Programming | 1 Comment »

Using the jQuery-UI Autocomplete Widget

March 10, 2010
By SeanJA

The latest version of jQuery-ui has an autocomplete widget. No more looking for one that will work (you get the point) with the version of jQuery that you have. All you have to do is pull the latest one down from the jQuery-ui site and you are good to go. First the jQuery to...
Read more »

Posted in Computer, Databases, Javascript, Open Source, PHP, Plugin, Programming, jQuery | 3 Comments »

Finding corrupted images

March 3, 2010
By SeanJA
Finding corrupted images

As zoe kindly pointed out, two Wednesdays have passed since I last posted. I blame the Olympics (I was in Vancouver for the first week, and I was still recovering from it the second week Go Canada!). You can see my photos on flickr.com as I post them here. Apparently you can only post...
Read more »

Posted in Data Recovery, Linux, PHP, Programming | 1 Comment »