Archive | Uncategorized

Error: Maybe

Feb 10th, 2006No Comments

A useful message Weblogic 8.1 just gave me. I added the boldface:

Unable to read value from underlying bridge :
null vmcid: SUN minor code: 211 completed: Maybe

MLK Weekend, Part 2

Jan 18th, 2006No Comments

Another successful experiement with geo-map. I rendered another map only this time I created an HTML image map. So now you can click on the little red “+” and goto that caches page on Geocaching.com. This time I rendered the page with Terraserver, which should be safe for redistribution. Check it out here.

It got away

Dec 22nd, 2005No Comments

We heard the helicopter going over our house all evening long. We had an idea what was going on, and we were right. Too bad it got away.

A sed example (with a rev!)

Dec 14th, 2005No Comments

Since I haven’t posted a lot newsworthy lately, how about a little example with sed?

I had a shell script that was spitting out some numbers into a file. I thought, “Hey, it would be nice if I added commas in the right place.” I could have rewritten my shell script in Python or Perl, but the rest of the stuff was easier to do in a shell script. Anyway, this problem might seem trivial, but it’s not. I knew a regular expression would have be created but, after a few googles also brought up that I needed reverse the string, apply the regex, and reverse the string again.

With all that, this is what I came up with:

[mikeh@gideon]>echo 1000000|rev|sed -e "s/\([0-9][0-9][0-9]\)/\1,/g"|rev
1,000,000

The \1 came from Bruce Barnett’s wonderful sed tutorial. The use of rev came from a dusty corner of my brain that something like that existed on a Unix shell.

Page 19 of 21« First...10«1718192021»