HTML5 Canvas: Lunch Wheel
In the on going battle to make my lunch time more optimised I decided to learn some Javascript, and how to use the HTML5 Canvas element. Turns out it’s not that hard, and I have now created The Lunch...
View ArticleGoogle Chrome Javascript console.log bug?
I recently stumbled across this issue while debugging some Javascript. Take the following example code: var array = [1,2,3,4,5,6,7,8,9,10]; var i = 0; while(array.length > 0) { console.log(i++,...
View ArticleMy experiences with developing multi-threaded nodejs addon
I’ve been modifying an existing nodejs extension, that wraps libcwiid (a C library written to interface with a Wiimote). This extension uses polling to check if the state of the Wiimote has changed...
View ArticleJSHint ‘x’ is an implied global variable
I’ve started using JSHint to check my javascript. One error I encountered was: Errors: 85,5:'grammar' is not defined. Warning: 85,1: 'grammar' is an implied global variable. This is saying that I’m...
View ArticleDraw UML Sequence Diagrams with Javascript
I’m happy to announce one of my projects, js-sequence-diagrams. This uses Javascript to draw UML sequence diagrams in SVG format. Here is an example: You can alter the diagram in real time, and I even...
View ArticleSMS Character Count
It is commonly known that Twitter allows 140 character messages, and some will tell you that a single SMS message is limited to 160 characters. However, it’s not as simple as that. In the US a single...
View ArticleHTML5 Canvas: Lunch Wheel
In the on going battle to make my lunch time more optimised I decided to learn some Javascript, and how to use the HTML5 Canvas element. Turns out it’s not that hard, and I have now created The Lunch...
View ArticleGoogle Chrome Javascript console.log bug?
I recently stumbled across this issue while debugging some Javascript. Take the following example code: var array = [1,2,3,4,5,6,7,8,9,10]; var i = 0; while(array.length > 0) { console.log(i++,...
View ArticleMy experiences with developing multi-threaded nodejs addon
I’ve been modifying an existing nodejs extension, that wraps libcwiid (a C library written to interface with a Wiimote). This extension uses polling to check if the state of the Wiimote has changed...
View Article