Posts Categorized: Tutorials

Awesome WM Clicky Widget

After a couple of hours playing around with Awesome Window Manager, Lua and the Clicky API I hack together a Clicky widget for Awesome.

NodeJS Tutorial – Part 2, Routing

Note: This is the second part of my NodeJS tutorial. You may want to go back to the first part of this tutorial if you haven’t already read it. In the first part of this tutorial we looked at reading a document from CouchDB and keeping our markup separate from our code using Haml templates. We… Read more »

jQuery Validate URL, adding “http://”

A project we have going on here at ibrow towers involves quite a bit of jQuery Validation. Whilst the Validation plugin is great with the default functions it offers, what makes it truly excellent is the fact that it is easily extendable. For example, one thing that has been bugging me is to validate a… Read more »

Installing PHP5.3 on Ubuntu Karmic

Following my previous post about installing PHP5.3 on Jaunty, I have had a few requests about installing it on Karmic. I’ve never used Karmic before so I thought it would be a fun excuse to have a poke about whilst also keeping my blog (sort of) up-to-date. After freshly installing Karmic (the desktop version looks… Read more »

Converting from Mac to Unix line endings

This is more a post for me than anyone else, but I thought I’d share anyway. In our team we have a mixture of Linux and Mac users, and we are constantly editing the same files. One of the most irritating things is when a file is saved with Mac line endings instead of Unix… Read more »

Understanding Bitwise Operators (hopefully)

After the trouble I had with bitwise operators yesterday I found some time to really sit down and get my head properly around them. Let’s dive straight in. We need to initially define our flags: define(’BASE’, 0); // binary 00000000 define(’F1′, 1);   // binary 00000001 define(’F2′, 2);   // binary 00000010 define(’F3′, 4);   // binary 00000100… Read more »

Bitwise Operators used for Flagging Items

I have always wondered what the point of Bitwise Operators were,to me they seem to belong to a distant past. However, after reading a couple of great blog posts I have at last an understanding of how they can be put to use, and have started playing around with them a bit (ba dum!).