Category: Technical
-
JavaScript :not() Selector Examples
I was recently unable to find simple, basic examples of using :not() in a JavaScript selector. As always, maybe I missed something, and I hate contributing to the noise out there, but here’s a summary of simple, basic usage—so simple I won’t even show any HTML. First of all, the kind of selector I’m talking…
-
Polyrhythm Visualizations and Auralizations Using HTML5
The implementation depends on HTML5 canvas and HTML5 audio, is experimental, and works best in Google Chrome (version 10.0 as of this writing). The experiment, which uses HTML5 features. Before the HTML version, I wrote a polyrhythm visualizer some time ago as a Java applet, when I was learning a number of the Chopin nocturnes.…
-
The Great void of JavaScript
In JavaScript, you often see code like this: // 1 (function() { a bunch of code; })(); The code in the function runs immediately and allows you to avoid namespace collisions with other code. If the code includes (inner) functions, those functions are essentially private. In fact, they will go away if there are no…
-
CSS for Printing
Sometimes people are more baffling than browsers. The goal The goal is to create a simple web page (such as a résumé) that prints nicely, specifically at page boundaries. Being a Microsoft Word user, I think in terms of applying keep with next and keep lines together to key places. These concepts are covered nicely…
-
Memory Leaks in IE8 and IE9 (Fixed in IE10)
In June 2007, Microsoft famously fixed a problem with memory leaks in Internet Explorer 6. IE8 leaks memory worse than IE6 ever did, yet I haven’t been able to find any mention of it. I say worse because: No closures or circular references are required. I cannot find a workaround. (Update: See comments from May…