RSS - Latest posts Tutorials Category

Home » Category » Tutorials
14Jun
2009

Hitch. Object-oriented event handlers with jQuery

Moving to jQuery from YUI has been a 99% positive experience. Probably the only thing I’ve really missed was the ability provided by YUI Event to control the object scope that an event handler was executed in.

(more…)

Categories:

26Apr
2009

Week of the Month in Mysql

SELECT WEEK(my_date_field,5) -
WEEK(DATE_SUB(my_date_field, INTERVAL DAYOFMONTH(my_date_field)-1 DAY),5)+1

(more…)

Categories:

22Apr
2009

Zend_Db_Select multiple table joins explained

It sounds like a simple task - retrieve the result from a join SQL query. Unusually you can even find documentation on the official Zend Framework site explaining how to put together a query that will return the results from a JOIN query. Unfortunately when it actually comes to putting theory into practice any Zend newcomer can run into several problems. (more…)

Categories:

29Oct
2008

Display Meetings From Entourage Using GeekTool

I’ve been a recent convert to GeekTool, a Mac application that can be used to display the output of shell commands directly on the desktop. After going through the usual cool little GeekTool ideas of displaying process lists, system uptime, and the currently playing song from iTunes etc. I decided to do something that was genuinely useful for my day-to-day use ;-) (more…)

Categories:

14Oct
2008

How to convert PDT projects into PHPEclipse projects

If for some reason you decide to swap from one Eclipse based PHP IDE to another, rather than recreate the projects you can change their association, so that the project builders work correctly.

This is basically what you need to do if you get the following error when trying to ctrl clicka function:

“The resource is not on the build path of a PHP project”

To convert to a PHPEclipse compatible project you basically need to replace the buildSpec and natures sections of the .project file with the following:

<buildSpec>
	<buildCommand>
		<name>net.sourceforge.phpeclipse.parserbuilder</name>
		<arguments>
		</arguments>
	</buildCommand>
</buildSpec>
<natures>
	<nature>net.sourceforge.phpeclipse.phpnature</nature>
</natures>

If you need to convert the other way, or to something else, simply grab the appropriate section from a working project and paste it into the .project file you need to fix.

Categories: