Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

metalcrowe (5600)

  (email not shown publicly)
AOL IM: metalcrowe (Add Buddy, Send Message)

Journal of metalcrowe (5600)

Monday July 17, 2006
03:38 AM

A new verb for refactoring?

It occured to me (during a random AIM conversation with a friend) that you could take the two terms SPOT and DRY and combine them into a new term that is easily verbed. So then you could say things like "I'm spot drying this module to help stamp out bugs."

Monday January 30, 2006
03:37 AM

A couple one-liners

These are probably stupid-simple-obvious, but I find them useful enough that they made it into little scripts in ~/bin.


perl -ne'print unless $lines{$_}++'

Only print the first occurance of a line. This one came about recently when I wanted to find out which of my ripped albums were 128kbps mp3s (so I could re-rip them!):

mp3find ~/cds -bitrate 128 -printf '%b' | unique


perl -pe'chomp;$_=quotemeta($_)."\n"'

This one comes in handy when using xargs to pipe a bunch of mp3 filenames with spaces in them to something like madplay or BMP.


perl -pe's/(^|\s)#.*//;'

Dumb comment stripper. Again useful for piping M3U lists to madplay:

nocomment ilyaimy.m3u | qm | xargs madplay

Wednesday April 13, 2005
09:30 AM

Sharing resume/cv/etc. information

I had similar thoughts about information sharing last fall when I was filling out grad school applications. All the forms were online, but I had to type in the same information (contact, academic history, etc, etc) on six slightly different web forms. And, maddeningly, even for the schools that had their application forms hosted by the same third party, there was no way to share my information between the different forms!

The first thing I thought of was "there should be a central clearinghouse of some sort, where I could fill out this once and have it shared between whatever schools I specify." But then (in a more free software inspired moment) I realized there already was a clearinghouse for all this information: me. Why shouldn't I be able to collect all this information into some standard (dare I say XML?) file format, post said file on the web, and then just hand people the URL when they needed that info.

There is XML Résumé. I had a look, and it looks simple enough. But as schwern pointed out, where's the Perl library ;-) And the other (more pressing) question is, is anyone using this as an exchange format?