Published at: 06:04 pm - Saturday April 24 2010
Reorganizing a project I rewrote a part that previously included a source file via a script file to include it via XMLHttpRequest and BOOM, my code suddenly imploded on Chrome during local testing. What’s so bad about it is that it imploded with a cryptic error message “XMLHttpRequest Exception 101″ which means a NETWORK_ERR has [...]
Published at: 11:04 pm - Wednesday April 14 2010
Apparently a few people were pretty irritated the last time I posted about what you can make Javascript do (+foo instead of foo() for calls) so today I thought I’d post about a pattern that I actually use regularly. Of course, as with any pattern there are good reasons not to use it. Most of [...]
Published at: 11:04 am - Wednesday April 14 2010
Note: this is tested only in Firefox. It works perfectly there, but in other browsers you may either get the icon only temporary (if the bookmark icon cache is part of the normal cache) or no icon at all. However it won’t break anything anywhere, so that’s no reason to not use it. I investigated [...]
Published at: 04:04 pm - Friday April 09 2010
I don’t know for how long a little script has been running on my computer to keep me sane in the Windows driveletter jungle. These days I work almost exclusively on Windows because frankly it fits my daily usage patterns best… that doesn’t mean it’s a perfect fit, but with a combination of Cygwin and [...]
Published at: 11:04 am - Friday April 09 2010
A while ago, I was discussing the startup time of Firefox with a few friends and it became apparent that we got very different results: For me, a Firefox cold start took between 0.3 and 0.7 seconds, compared to about 4 seconds for everybody else. All of us had a bunch of Addons installed (12 [...]
Published at: 06:04 pm - Thursday April 08 2010
Aside from my main work machine I own a tiny Acer Netbook. It’s not the best device around with limited processing power and much more importantly, a 1024×600 screen. Using Firefox on it isn’t exactly a joy because you often get horizontal scroll bars and the vertical size of the content is tiny if you [...]
Published at: 03:04 pm - Thursday April 08 2010
Update: I think some people take this a bit too seriously: It’s a fun little experiment: nothing more, nothing less. Sometimes you’re just lazy. Especially when it comes to typing. And while the round brackets in a function call may not seem like a whole lot of overhead, they do get tiresome if you have [...]
Published at: 03:04 pm - Monday April 05 2010
I’m really amazed how many articles you can find about how stupid it is that typeof null returns object in Javascript. Many people feel that this is wrong since null basically means “not currently an object”. The mistake here is thinking that a variable with type object actually holds an object. It’s a simple mistake [...]
Published at: 09:04 am - Saturday April 03 2010
It’s not finished yet, but I’m writing this for a friend to help her with her classes and it might already be useful for others too: I couldn’t find what I consider a good tutorial on HTML (meaning that it focuses on document structure instead of flashy design), so I started writing my own. In [...]
Published at: 12:04 am - Friday April 02 2010
This isn’t particularly breathtaking, but I was looking at creating a simple animation without Flash. And seeing as I’m most comfortable with Inkscape as my primary vector graphics editor I figured “Why not just animate the path’s data attribute to interpolate keyframes?” Sadly, I couldn’t find any browser that supports it yet, but I wasn’t [...]