Monthly Archives: January 2011

Highlighting imagemap borders

Posted by & filed under Javascript.

So you have an imagemap and you want to show the border on mouseover – not the image border – the imagemap boarder. To the rescue is a JQuery plugin by a guy called David Lynch. Here’s a working example: Here’s a link to David’s documentation:

Netbeans 6.9.1 Line/Word wrap option

Posted by & filed under Netbeans.

To use the word wrap option you need to edit the /Netbeans 6.9.1/netbeans.conf file. The netbeans_default_options, usually under (# command line switches) should include the following switch: -J-Dorg.netbeans.editor.linewrap=true Once this is set, restart Netbeans and the option should now be available in Tools->Options->Editor->Formatting.

Linux show directory sizes

Posted by & filed under Linux.

To find the size of directories in the current path: du -h -c –max-depth=1 flag -h = human readable, -c = display total sizes. Remove the –max-depth=1 bit if you want to see subdirectories.

PDO – bindParams vs. bindValues

Posted by & filed under OOP.

I was trying to supply binding params to a PDO query like this: However, this will not work. From the PHP manual – “Unlike PDOStatement::bindValue(), the variable is bound as a reference and will only be evaluated at the time that PDOStatement::execute() is called.” So, the correct way to do this would be: See also,… Read more »

The new TSW Webcoder 2010

Posted by & filed under TSW Webcoder.

I’ve been using TSW webcoder since 2005 as my ‘everyday’ editor for all things code. It is unbloated, quick, has some rather splendid time-saving feature. But until the latest release it could not really be classed as an IDE. Well I’ve just upgraded to Webcoder 2010 and it now includes a nice PHP debugger as… Read more »

WordPress XML-RPC publishing

Posted by & filed under Wordpress.

Well I thought I would try XML-RPC publishing in a WordPress blog. The main advantage I see in using RPC vs. email publishing is the use of font–styles. It also works with my SyntaxHighlighter plugin… I’m using the ScribeFire plugin for Firefox to write this blog, but Microsoft Live Writer looks like a good desktop… Read more »