Archive for August, 2007

Vim Uppercase & Lowercase

August 29th, 2007

I have been using vim for a couple years and every week it seems I learn some new feature or trick you can do. Recently I learned how to convert a selection to either all uppercase or all lowercase letters.
Convert a visual selection to all uppercase letters.
:gU
Convert to lowercase letters
:gu

PHP vs Ruby - Practical Language Differences

August 20th, 2007

I have been developing PHP applications professionally for over 7 years. About a year ago, I decided to try developing some Ruby on Rails applications. My main Ruby on Rails projects have included an e-commerce site QuietHeadphones.com and an online application for synchronizing medical records with USB thumb drives. Of course, I have also worked […]

ImageMagick + Gimp + PNG Offset Trouble

August 5th, 2007

I have a custom little utility that I wrote that uses ImageMagick and Zenity to take a screen shot. I have the script hooked up to Z keyboard command. This is the bash script.
#!/bin/bash

fn=$(zenity –entry –title=’File Name’ –text=’File Name Prefix’);
dt=`date ‘+%Y%m%d’`;
screenshot=”/home/USERNAME/Desktop/$fn-$dt.png”;
import -frame +repage $screenshot;
Be sure to change USERNAME to your actual username so the path […]

How To Get Your Scanner Working In Ubuntu Feisty

August 1st, 2007

My scanner (Canoscan N676U) suddenly stopped responding when I upgraded to Ubuntu Feisty. I first noticed the problem when I was unable to import a scan through Gimp. Well it took a couple hours to figure this one out, but the sollution turned out to be easy to implement. From what I understand, the problem […]