Result of expression ‘document.forms[0].submit’ [[object HTMLInputElement]] is not a function.
Tuesday, September 15th, 2009 Posted in Programming, jQuery, javascript | CommentsI was trying to add a small delay into my form submission like so: <form ... onsubmit="setTimeout('document.forms[0].submit()',2000);return false;"> but everytime I tried it, I got the following error: Result of expression 'document.forms[0].submit' [[object HTMLInputElement]] is not a function. This one had me stumped, until ...
RSSCloud: No need to adjust your firewall
Tuesday, September 8th, 2009 Posted in Blogging, Programming, rsscloud | CommentsI've been following the recent development of RSSCloud with interest... I think it has the potential to replace Twitter in the long term, although I suspect that Twitter might also evolve in the direction of RSSCloud. One misconception about RSSCloud is ...
Using jQuery and Prototype together while avoiding the dreaded element.dispatchEvent error
Friday, August 28th, 2009 Posted in Google, Programming, jQuery | CommentsHere is what I do to avoid the dreaded "element.dispatchEvent is not a function" error. I load jQuery first, Prototype second, and then I use jQuery( ) instead of $( ) for all my jQuery calls. <!-- Set up ...
Using Skype to control a model train
Friday, August 21st, 2009 Posted in Model Railroading, Programming, Skype | CommentsSmall wireless spy cameras are widely available, and there are even a few available specifically for HO-scale trains. This got me to thinking about letting my cousin in Germany run a train on my train layout, using Skype. Why not? ...
Useless use of private variable in void context (Perl)
Friday, August 1st, 2008 Posted in Perl, Programming | CommentsCan you see what is wrong with this Perl code snippet? foreach my $cat (@$categories) { if ($cat->{col} == $column and $cat=>{pos} == $position) { ...
Lava lamps for programming
Wednesday, July 30th, 2008 Posted in Programming | CommentsI just love this idea: integrating lava lamps to Cruise Control so that you can see when a software build has gone bad. The idea is to turn on a red lava lamp when the build failed, otherwise turn on a ...
Symfony project menus for Emacs
Sunday, July 27th, 2008 Posted in Programming, Symfony | CommentsAfter reading the Productive Programmer, I was inspired to write a custom script to add Symfony menus to my Emacs editor. After some frustration (I find emacs LISP tough to grok), I finally figured it out. (script is below) Anyway, here ...
A SproutCore example by Johannes Fahrenkrug
Friday, July 25th, 2008 Posted in Programming, SproutCore | CommentsJohannes Fahrenkrug wrote a nice tutorial on building an OpenSocial app with SproutCore.
The Productive Programmer Book
Friday, July 25th, 2008 Posted in Programming | CommentsI just finished reading the Productive Programmer and I really like the suggestions, such as SLAP (single level of abstraction). The book isn't language specific, but it is Java-heavy in the examples. Still, everything is adaptable to other languages. There is ...