Archive for category Uncategorized

Shell Script Version Compare (vercmp)

Here is something useful. A very short shell script to compare standard version numbers of the form ##.##.## with up to four segments. It returns the difference of the first differing segment just like strcmp.

#!/bin/sh
 
expr '(' "$1" : '\([^.]*\)' ')' '-' '(' "$2" : '\([^.]*\)' ')' '|' \
    '(' "$1" : '[^.]*[.]\([^.]*\)' ')' '-' '(' "$2" : '[^.]*[.]\([^.]*\)' ')' '|' \
    '(' "$1" : '[^.]*[.][^.]*[.]\([^.]*\)' ')' '-' '(' "$2" : '[^.]*[.][^.]*[.]\([^.]*\)' ')' '|' \
    '(' "$1" : '[^.]*[.][^.]*[.][^.]*[.]\([^.]*\)' ')' '-' '(' "$2" : '[^.]*[.][^.]*[.][^.]*[.]\([^.]*\)' ')'

, ,

1 Comment

Pharoah’s Revenge

For those who are not familiar, there is a tradition every year when millions of Jews wake up following holiday festivities and groan in pain. Passover is a kind of fast from low density (aka leavened) food. Our systems are not designed to deal with high-density food alone. There should be a section of the haggadah dedicated to bathroom reading afterwards because you are going to be in there for a while.

, , ,

No Comments

Rubinium Candidate Round-up

BSG Candidates, Democrats

After hearing Obama and Thompson on NPR All Things Considered last night I felt the need to post some of my observations. You can really tell why Doug and I gravitate toward Thompson and Obama respectively. Both men project a distinct air of honesty about them. The responses to assertions that their lack of spin may be used against them were classic. Referring to the last debate, Obama said jokingly “yeah, maybe I should have answered that my greatest weakness is I help old ladies across the street.” In his interview Thompson jabbed “some people are more interested in style than substance [...] there is plenty of people for them to vote for too.

BSG Candidates, Republicans

Obama and Thompson were both asked about a now inevitable economic stimulus package. Oddly enough both of them had a rather similar response which contrasts with their competitors. They said we should consider a one-time infusion of money into the economy by tacking it on to an existing vehicle. Tacking it on to an existing vehicle allows us to avoid potential pork and minimize bureaucratic skimming. Thompson was also prompted to mention not doing anything, which is where I personally lean right now.

I am actually pulling for Romney on the Republican side. It is time for them to know how we Dems felt with Kerry as our nominee. Actually comically enough he is pretty much like Kerry with an R. I did not make this video, but it sums:

, , , , , , ,

No Comments

Post Jam – Lid Open

Every once in a while a post does not get picked up by feed readers. I don’t understand why but I am hoping this will flush the last post through.

,

No Comments

Google maps directions: swim



Google maps directions: swim

Originally uploaded by courgettelawn.

You’ll need to be more than a world class swimmer to cross to New Jersey.

No Comments

The Usual Suspects Visit

One of the nice features of Google Sketchup is the use of abstract human billboards as a size gauge. Someone added a set of figures that has earned quite a few style points in my estimation. Here they are in front of my house:

Usual Suspect Figures

, , , , , , , , , , , , , ,

1 Comment

Don’t Delay Read This Wikibook

Or why I have not been posting

Overcoming Procrastination

Except:

Procrastination or “task aversion” is the irrational delay of an intended course of action, even while expecting to be worse off for the delay (compare temporisation). The procrastinator deviates from the task, usually in favor of another more enjoyable (or less unenjoyable) activity. This behavior is pervasive throughout society – everyone procrastinates to some degree – but some people are so chronically affected as to be severely debilitated.

,

No Comments

Technorati Integration Attempts

I have now added some automated integration to this blog which will hopefully make it more integrated with a tag based internet. I addded the WordPress TechnoTag which allows you to add <ttag>’s around a term that relates to the subject of the post or comment. The TechnoTag plugin has a little bit of breakage though. It will make subsequent tags link to the first tag name in a post. There is a fix listed here which you can use to patch it up. Do take care to convert the fancy quotes to real ones so PHP doesn’t s|it the bed on you.

I have also made further attempts to register this blog and I am presently trying to contect their support to figure out why it no worky. To answer Doug’s question, Technorati allows a user to create a RSS feed for arbitrary searches. Therefor you could have notification of someone linking to your site or to a peticular tag. If Doug had known this he could have been notified of this post in his liferea cha cha cha

No Comments

Nothing to see here. Move along.

Trying to get Technorati to properly recognize this site. Just ignore.
Technorati Profile

No Comments

Site Is Back Online

And there was much rejoicing …yay… Hopefully this is now new and improved version of Rubinium.org with category icons links to the galleries and regular posts even :)

No Comments

Bad Behavior has blocked 42 access attempts in the last 7 days.