For those of you curious about what can be created or where to use the new JavaScript EventSource API (also known as “Server Sent Events” ) – I’ve developed a very basic chat application that uses jQuery.EventSource.js to provide a simple API to native EventSource where available (and a fallback when not) and Twitter @anywhere […]

Tagged:

Here we are, in the 11th Hour of submission for the 10K Event Apart contest. I just submitted my application, which weighs in at a grand total of 3991 Bytes… or it did, but after I submitted it I was still able to shave off a few more bytes, for a final total of 3676Bytes […]

Tagged:

I wrote a dead simple twitter search API implementation with jQuery for bocoup.com yesterday. Everything is explained in the comments. Hopefully this script helps you implement your own twitter feed. You can see the live demo running off to the right. jQuery.twitterFeed.js $(function(){ // Get the JSON of your twitter search, it helps to format […]

Tagged:

Al MacDonald recently posted https://bocoup.com/weblog/javascript-typed-arrays – which is an interesting look at the benchmarkable speed differences between FireFox 4’s Float32Array constructor and the traditional Array constructor. As expected, the Typed Arrays are definitively faster due entirely to native optimization: they only allow integer or floating point numbers (respectively to their Int or Float prefix); additionally […]

Tagged:

You probably know by now that JavaScript is getting a lot of upgrades at the moment. One of the upgrades that WebGL is bringing along for the ride is JavaScript Typed Arrays. A JavaScript Typed Array is very quick! It exists as a fixed block of memory that can be accessed with JavaScript, where as […]

Tagged:

Contents What a Difference a Day MakesTesting Processing.jsWhat Works & What SucksFeature TestsComparing SpeedBugs Submitted & Re-OpenedConclusion What a Difference a Day Makes If you have not yet heard the big news, Internet Explorer 9 is shipping with Canvas support! Also with the Video and Audio tags, WOFF Fonts and tons other other HTML5 goodness. […]

Tagged:

Use the code below to try out everything that I talk about in this post, and check out the live demo over on code.bocoup.com. modified-x-axis-intervals-and-labels.js //based on the source of http://g.raphaeljs.com/linechart.html var options = { axis: "0 0 1 1", // Where to put the labels (trbl) axisxstep: 16 // How many x interval labels […]

Tagged:

In my excitement and haste upon discovering new SharedWorker() support in the Opera 10.60 Beta, I neglected to snoop around the window object of my two favorites, Chrome 5+ and FireFox 3.6+ … WHOOPS! If I had done so, I would’ve discovered, as I did just now, that Chrome 5+ ALSO supports new SharedWorker(). Of […]

Tagged:

One of the things I have been working on over the last couple of days, is a convenient set of functions to manipulate a Processing.js Canvas for use in the CubicVR WebGL Engine. You may already know that a OpenGL performs best with textures with 2^n (power of 2) dimensions. To minimize CPU load, We […]

Tagged:

While poking around the Web Worker API in the latest Opera Beta Release, I discovered that they had also implemented support for Shared Web Workers. If you’re not familiar with Shared Web Workers, have a look here. The basic premise is that a Shared Worker can have multiple connections made to one Worker. Paraphrased from […]

Tagged: