22 Feb 2013
2 Nov 2012
You may be familiar with the problems related to WordPress
wpautop() function. The most notable problem is that your WordPress pages will leave you with empty paragraphs. The empty paragraphs can't be removed by simply removing
<p></p> with a find and replace. It turns out that the result HTML doesn't actually have
<p></p>. But the empty paragrapsh do show up in the DOM tree.
25 Apr 2012
delete is "dog slow". When you use
with, V8 has to wait until run time to resolve the scope chain. When you use
delete V8 has to transform your object from a highly-optimized class structure into a slower hash table.
13 Jan 2012
2 Nov 2011
The new Add-On SDK for Firefox rocks! It is so easy to create and test using the cfx command line utility.
One thing that is conspicuously absent is the ability to add a button to the navigation toolbar. You know, the toolbar that holds the URL bar and bookmarks button. It took a fair amount of research and trial and error, but it turns out to be a small bit of code.
31 Aug 2011
--enable-benchmarking flag, it makes use of a native microsecond timer.
24 Aug 2011
Today Mozilla announced their proposal for providing phone-like functionality to the browser in this hacks.mozilla.org article. Their goal is to provide "basic HTML5 phone experience within 3 to 6 months."
22 Aug 2011
In his example, author Stoyan Stefanov takes a layered Photoshop file, shows and hides certain layers, and saves the resulting image to a .png file. The files he saved were charts of guitar chords--156 images saved in an instant.
17 Aug 2011
I was using window.postMessage yesterday and ran into this nugget on hacks.firefox.org:
The Structured Clone Algorithm is an HTML5 specification for serializing complex data structures. The following are data structures that the algorithm can store that JSON cannot.