@Chromium Team: please provide usable error messages

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 [...]

Posted in: Default Category by Hans Schmucker 1 Comment

A pattern for Javascript OOP that I actually use

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 [...]

Posted in: Default Category by Hans Schmucker 1 Comment

Offering Bookmarklets with icons

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 [...]

Posted in: Default Category by Hans Schmucker 2 Comments

Javascript in the commandline

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 [...]

Posted in: Default Category by Hans Schmucker No Comments

Firefox loading times: beware of FlashGot

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 [...]

Posted in: Default Category by Hans Schmucker 2 Comments

Current Mozilla Fennec / Firefox Mobile builds on Windows

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 [...]

Posted in: Default Category by Hans Schmucker 1 Comment

Calling methods in Javascript, without really calling them

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 [...]

Posted in: Default Category by Hans Schmucker 10 Comments

Why it is right for null to be of type object in Javascript

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 [...]

Posted in: Default Category by Hans Schmucker No Comments

HTML Tutorial (in German)

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 [...]

Posted in: Default Category by Hans Schmucker No Comments

Emulating SVG path animated d attribute with Canvas

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 [...]

Posted in: Default Category by Hans Schmucker No Comments