Archive for December 2008

JavaScript Raster Bar Effect

I had some free time and wanted to bring back some early Amiga memories using JavaScript. Using canvas this is what I ended up with: Click for demo. I’m pleased the way the lightning and individual rotation of the bars themselves turned out to be. What do you think?

Detect if ExCanvas is loaded

When using ExplorerCanvas (excanvas) to emulate the Canvas object in Internet Explorer it might be a good idea to check that the excanvas lib really is loaded before trying to create a context object. If not, an informative error message may be displayed instead of some cryptic “object doesn’t support this property”. Here is a [...]

NetBeans – why even ask?

Dear NetBeans, thank you for the courtesy of warning me, but why do you really ask? You don’t give me much choice, do you…? Now submitted as bug #155031.

Count files recursively in a directory using Linux

Using Linux, to get the number of files in the current directory, use: ls -1 | wc -l To count the number of files recursively in the current and all directories below it, use: find . -type f | wc -l

Copyright sign using numpad

Reminder to myself: to get a copyright-sign © hold ALT and type 0169 using the numpad.