Tag Archives: javascript

Part II: A basic nodejs plugwise API

photo credit: Loozrboy Yesterday I wrote a blogpost at 24hr.se about controlling plugwise connected appliances with nodejs. Its kind of Part II of my previous post about one of my sideprojects (to control my espresso machine automagically before I get home). I’ve also shared the code at github, so please read the post and head [...]

Plugwise, espresso machines and nodejs

  This is part I of my series about connecting plugwise and nodejs. Part II is here. I recently started (yet another) project. I want to automatically have a warmed up espresso machine when I get home. My espresso machine (Rancilio Silvia) takes about 45 minutes to warm up, which means that I need to [...]

App-cache tips, tricks and thoughts

Offline photo credit: mikecogh

After working with a project where we had to make the entire site available offline with app-cache, we found couple of interesting things. These are things that are quite good to have in mind when you are planing to use app-cache, either for offline access or just to speed op loading time. Different browsers First [...]

How to expose private functions in javascript for unit testing

With more and more unit testing and test driven development in javascript, you might get stuck with one problem. Javascript scope mechanics don’t allow you to access the private functions of a class/function which makes it pretty hard to unit test. Your alternatives usually are either to create a unit test function inside your code [...]

Multi modal jquery plugin

Windows photo credit: elka_cz

Ever needed to have a modal window appear in your page, but you also need one more that pops on top of it? Well, that’s what this jQuery plugin does. It makes it possible to have multiple modals running at the same time. It doesn’t work on IE (haven’t tested it but it should give [...]