Archive for the ‘Programming’ Category

Perl One Liner search and replace

Wednesday, June 11th, 2008

I wanted to add this so I don't have to scour the web every time I need it: perl -p -i -e 's/oldstring/newstring/g' * This will replace all occurrences of oldstring with newstring in all of the files in your current directory. Being able to do this quickly and easily is absolutely ...

Radeon 9250 (Radeon 9200 Pro) on Ubuntu Gutsy

Monday, March 10th, 2008

I have been trying to setup a new 64 bit Quad Intel Core with a Radeon 9250 video card. My operating system of choice for this rig was going to be Ubuntu Gutsy 7.10. I have enjoyed using Gutsy in the past and saw no reason to change from ...

Ruby — returning a set of baby names

Monday, August 21st, 2006

I'm back at Ruby again and glad to be. I've got to get myself back into the inner workings of the language and what better way to start than with some good old fashion data scrubbing? This simple script below will lookup all of the baby names from ...

Programming Tips and Tricks

Sunday, August 20th, 2006

Some helpful programming tips as we enter the week ready to roll out new code: JavaScript Scope - "Optimize" JavaScript code taking advantage of the fact a function can access all local variables in the scope of the caller. Perl - Use trailing if's and unless's especially at the end of ...

AJAX (web 2.0) updates

Friday, January 20th, 2006

I've been looking into additional AJAX related resources and stumbled across an interesting wiki dealing with Ruby on Rails. The site has some interesting demo links. The actual wiki is part of the script.aculo.us website which aims to be: easy-to-use, compatible and, ultimately, ...