Getting Git, Subversion and Bazaar Version Control Information into your Bash Prompt

Here are some must have bash PS1 commands if you’re working in multiple branches with various SCMs like git, svn or bzr. With this in your .bash_profile you’ll end up getting the following PS1

wesmaldonado:(git)gchartrb[master]/$

wesmaldonado:(svn)wumpus_project[trunk:141279]/$

Found at Lazy Bash cd aliases. The latest can be pulled from github:

http://github.com/relevance/etc/tree/master/bash/bash_vcs.sh

Seattle’s Interbay is no South Lake Union

“You can’t compare this to South Lake Union or downtown,” he says. “Not all areas are created equal.” Jeff Thompson, of the Freehold Group, the development company that has spearheaded the Dravus effort Seattle Times: Red tape fences in Interbay overhaul

Have a look at this google map for a compare and contrast


View Larger Map

Found in the spam filter, a relationship failure borne of HTTP error codes

A story about an internet crush…

… a few weeks later when I checked my spam filter. “Congrats–most women have to meet me at least twice before a crush wears off,” he’d replied. Cute. I replied, and we ended up having a bizarre but hilarious (to us) discussion about HTTP error codes. (Reproduced after the jump for the curious.) Fellow Metblogger Josh once told me upon reading that conversation, “I can’t imagine how things between the two of you didn’t work out.” And sometimes I wonder the same thing.

Go read the ongoing story at Single in Seattle: Blogger Boy No. 2

Headius on Maglev: Is it Ruby?

Charles Nutter had the following to say on the maglev ruby performance numbers:

Except that these are results reported entirely in a vacuum. Whether this is fib following the “rules” of Ruby is entirely an open question. Whether this is method dispatch adhering to Ruby’s call logic is entirely an open question. Whether this is a while loop using all method calls for its condition and increment steps is an open quesetion. Because the Maglev guys haven’t started running Ruby tests yet. Is it Ruby? http://headius.blogspot.com/2008/06/maglev.html

I am interested in maglev ruby because I’ve met some amazing smalltalkers who worked on large systems using gemstone. Want to know more about the size of systems gemstone is designed for? Have a read through this PDF: GemStone and Orient Overseas Container Lines:A Shipping Industry Case Study I think having more implementations is a great thing and will help

What do you think? Will the we use it if it’s closed source? I bet some people will, if nothing else this primes the pump for the next generation of programmers that will maintain systems like those of OOCL.

Checking Gmail POP+SSL with Ruby 1.8.6 in 10 minutes or less.

I needed to check Gmail via POP + SSL and didn’t want to use Ruby 1.9, what did I do?

Step 1: Install the latest version of stunnel

Step 2: Put the contents of the stunnel config file you see below some place convenient like ~/gmail-pop-stunnel.conf

foreground = yes

client = yes

pid =

[gmail]

delay = yes

accept = localhost:10000

connect = pop.gmail.com:995

Step 3: Start up stunnel

$ stunnel ~/gmail-pop-stunnel.conf &

Step 4: Fire up a Ruby program to pull down the messages.

require ‘net/pop’

conn = Net::POP3.new(’localhost:10000′)

conn.start(’your_address@gmail.com’, ‘your_password’)

conn.mails.each { |msg| puts msg.pop }

msg.delete # your choice to delete or not

end

The source for this script shamelessly stolen from The Ruby Cookbook

And you should be aware that this is technically a violation of google’s terms of service, but if you aren’t doing anything other than what you could do through Outlook Express you probably aren’t causing trouble.