Author Archives: elduderino78

About elduderino78

I'm a front-end developer working in the bowels of BBC Worldwide & focusing on POSH (HTML), CSS, JavaScript, Ajax, accessibility & usability

Batch rename files on OSX/Unix

I had to rename a bunch of files in a directory by just changing a prefix. Perfect for the command line, no? After a bit of googling (that exists as a verb now, doesn’t it? ) I found this article:Batch … Continue reading

Posted in Development, Tools | Tagged | Leave a comment

find & sed: find and replace on the command line

Since using vim, I sometimes miss the great find and replace that TextMate offers, but fear not: find and sed fill the gap quite nicely: find . -type f -exec sed -i ‘s/search/replace/g’ ‘{}’ \; To make sure your find … Continue reading

Posted in Development, Tools | Tagged , | Leave a comment

Creating patch files with git

Git has a built in way to create patches and Github has a great write up on this. The git format-patch command is useful if all your changes are committed and you want to create a patch of certain commits. … Continue reading

Posted in Development, Tools | Tagged , | Leave a comment

Updating the locate database on OSX

locate is a very handy command to find files on the system. It is much faster than find since it keeps a database of all the system files. This database is periodically updated, but if you want to update it … Continue reading

Posted in Development, Tools | Tagged , , | Leave a comment

Integrating JSLint for vim

A couple of months ago I moved away from TextMate and started using vim for most of my text editing needs. I love TextMate, but I needed a powerful text editor that is also available on other operating systems. Overall … Continue reading

Posted in Development, Tools | Tagged , , , | Leave a comment

Upgrading the Subversion command line client on Mac OSX Leopard

UPDATE: Since I wrote this post, I found a couple of other ways of upgrading the Subversion command line client. One option is to install the package via MacPorts or Homebrew. If you use Homebrew, you probably don’t have to … Continue reading

Posted in Development, Tools | Tagged , | 6 Comments

jQuery list paginator plugin – Elpaginator

I know it’s been a while. I started about 5 posts, but haven’t finished any of them…  Hopefully this makes up for it: as a treat for the new year, I thought a little jQuery plugin that I wrote would … Continue reading

Posted in Development | Tagged , , | 2 Comments

Splitting a long JavaScript String across multiple lines

Whilst reading a comment by Mike DeBoer on Ajaxian about delimiting JavaScript strings with backslashes, I thought it’s worth mentioning it here as well, if only to remind myself. String concatenation always creates a new string. Thus, writing: var str = … Continue reading

Posted in Development | Tagged , | 3 Comments

JavaScript cookies made easy

Here is another little script that makes my life a bit easier. It consists of 3 methods that makes working with cookies very straight forward. This script is built on the shoulder of giants: PPK from Quircksmode was the man … Continue reading

Posted in Development | Tagged , | Leave a comment

TextMate & Subversion 1.5 update problem with conflict

We recently upgraded to Subversion 1.5 server at BBC Worldwide. I ended up upgrading my client at the same time with the latest OSX binary from Colabnet. One weird thing started to happen though: whenever there were conflicts, TextMate wouldn’t … Continue reading

Posted in Development | Tagged , , | Leave a comment