Tag Archives: code

New Deskbar Plugin

Since I’ve been stuck at home and can mostly only type one handed, I decided to work on my Deskbar plugins to try and keep myself busy and forget about the pain in my sholder and back. As a result, I put together a new Deskbar plugin called Wayd(What Are You Doing) that allows [...]

Latest hacks

Lately I’ve fallen in love with Deskbar(think OSX Quicksilver). I put together a couple of plugins to make it more productive for me.
Also upgraded my laptop and desktop at home to EdgyEft. Edgy continues Gnomes slow steady progression of polish, speed and simplicy. It rocks!
In other software news, Brian pushed out an [...]

Projects

My latest time sink has been the Charleston Wiki. It was nice that we could get that going so fast and participation has been growing. I’ve also been working on Co.ntact.us. Maybe I’ll have something barely usable soon, so I can get some feedback.

More Rails

Recaping where my first Rails post left off, we had a functioning albeit boring application. In this post we’ll expand the applicaton to include the comment table.
More code generation
In the previous post we used Rails to generate a portion of our application:

$ ruby script/generate model Post
$ ruby script/generate controller posts

Then used “scaffold :post” in [...]

Initial Rails

Installation
Since Rails is now in Debian Unstable(sid), not much to say about installation. It’s as easy as:
apt-get install rails
Database
The blog application needs two tables: posts, comments. Following the Rails recommended table and column naming conventions is a good idea and will save even more time later. Every table should be named in the plural, [...]

Giving Rails a try

As of late I’ve begun to tire of writing the same old CRUD interfaces over and over. So I’ve been looking at web app. frameworks that may remove some of the drudgery. The contenders are:

Maypole(perl)
Rails(ruby)
CherryPy(python)

Currently, Maypole is my top contender. It’s Perl based(we do lots of Perl), seems to do “enough” without [...]

New shell trick

Came across a great new shell tip. Brace expansion.
Some examples:

$echo {one,two,three,four}” fish”
one fish two fish three fish four fish

$ echo {{1,2,3}1,2,3}
11 21 31 2 3

Ok, that’s great. What’s it good for:

$ cp /tmp/test.html /tmp/test.html_bak

Can be rewritten as:

cp /tmp/test.html{,_bak}

Then after you makes some changes to /tmp/test.html:

$ diff /tmp/test.html{_bak,}

Works in bash, zsh and possibly others.

Editors

One day I wake up an realize I actually like VI(vim) almost as much as Emacs.

Cool Guy

Amazingly, this fellow visited MUSC last week. Had the opportunity to chat with him about open source, Linux, IBM and Jabber. Refreshing to meet someone that really does “get it”.

Column Editing

Man I must be way behind the times, just learned how to edit columns/blocks in Emacs and vi. Do yourself a favor and learn it. It’ll save you loads of time.