In case you’re not yet familiar, the JavaScript Web Workers API is a feature that facilitates the execution of scripts in an independent background process, away from any UI related logic. It should be assumed that the Worker’s life-cycle is the same as the application that called it, as it comes with start-up and instance […]

Tagged:

If you’re upgrading server software, or changing your port config, you may accidentally Funk your Wagnalls. You’ll know the error when you try to restart apache. ~: sudo /etc/init.d/apache2 start * Starting web server apache2 (98)Address already in use: make_sock: could not bind to address 0.0.0.0:8080 no listening sockets available, shutting down Unable to open […]

Tagged:

The Facebook Thing Facebook has had a lot of press recently. Growing by a million users a day, playing the patent game like every other large corporation, seemingly constant legal-disputes over ownership, and to top it off.. the Facebook movie called “The Social Network” will be hitting the big-screen this October. A lot of people […]

Tagged:

As I become more and more obsessed with Quora, I’m finding more and more questions that I answer seem to feel right as standalone blog posts. The latest even includes an interesting discovery: What’s the cleanest way to intentionally and reliably return a jQuery object that selects nothing? There were two answers already posted to […]

Tagged:

I spent a good half hour writing an answer to a question on Quora today and I thought it was good enough to qualify as a blog post. The question was How do you implement object orientation in JavaScript? I’ll be honest, I was a little disappointed by the answers posted prior to mine, however […]

Tagged:

After spending the day finishing out cross-browser EventSource support in the form of jQuery.EventSource.js, then wrapping up with a commit of 55 new unit tests, I finally left the Bocoup Loft for the day around 8 o’clock… But as most developers know, no matter how hard you try, you just can’t leave this kind of […]

Tagged:

I started to play around with the inset value of the CSS3 box-shadow property over at boaz.se/nder/s.miscellaneous/i-<3-inset after maxvoltar posted about it. I started working with the CSS3 gradient property to achieve the effect reproduced here, and I ran into some serious syntax confusion. Whereas Gecko offers a terse verbose syntax for radial gradients, Webkit […]

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:

Today I came across that annoying situation where you build something that throws an error, but the build process spits out so much text to your terminal, that the error is lost. The terminal can only hold so-much text in memory. So what to do? Record the terminal output to a text file: ls> output.txt […]

Tagged: