42dh - cakebaker.42dh.com - cakebaker
General Information:
Latest News:
Bash autocompletion for Git 6 Apr 2011 | 08:36 pm
One thing I often wished to have when using Git was the ability to autocomplete Git commands and branch names. As I had to learn this week from Markus Prinz’ article A few of my Git tricks, tips and w...
Array iteration with JavaScript 2 Apr 2011 | 02:51 am
Till recently I always used a for-loop when I had to iterate over an array in JavaScript. For example: However, with ECMAScript 5 the Array object itself got some methods for iteration purposes. With...
2-legged vs. 3-legged OAuth 11 Jan 2011 | 06:30 am
From emails I receive it seems like there is a bit of confusion about what the terms 2-legged OAuth and 3-legged OAuth mean. I hope I can clear up this confusion with this article (and don’t contribut...
Bugfix release v2010-12-08 of the OpenID component 9 Dec 2010 | 04:53 am
There is a new bugfix release of the OpenID component available: https://github.com/cakebaker/openid-component/downloads. This release fixes a bug in the isOpenIDResponse() method. So far this method...
Navigation with the “j” and “k” keys 4 Dec 2010 | 10:33 pm
If you are using Vim you already know the meaning of the “j” and “k” keys: they navigate one line downwards resp. upwards. Some websites like The Big Picture adopted this functionality to provide an e...
Cucumber: Switching from Webrat to Capybara 20 Sep 2010 | 02:24 am
My current testing tool of choice is Cucumber. Cucumber itself integrates well with other tools. One of those tools is Webrat, which allows you to access your application without a browser and to perf...
Bugfix release for the OpenID component & an example application 20 Jul 2010 | 02:23 am
Last week I received a mail from a user of the OpenID component in which he described that it wasn’t possible to login with OpenIDs from claimID and Blogger. After some debugging I found the reason fo...
Grouping “constants” with JavaScript 15 Jul 2010 | 02:10 am
A while ago I wrote about how you can group related constants in PHP5 by using a constants class: Now, while experimenting with JavaScript (or more precisely with Node.js) I got some constants in my ...
OpenID component v2010-05-19 released 19 May 2010 | 07:51 pm
As mentioned in the title, I released a new version of the OpenID component today. It’s a maintenance release: the only change is an update of the bundled PHP OpenID library from version 2.1.2 to 2.2....
Sassy CSS 9 May 2010 | 01:13 am
Those who follow me on Twitter probably know about my love-hate relationship with CSS. To ease the pain of working with CSS I switched to Compass, a stylesheet authoring framework. With Compass, you w...