I never do them.
But, somehow, I was oddly attracted to these. (Thanks, Keith!)
Damn.
This page features every post I write, and is dedicated to Andrew Ho.
I never do them.
But, somehow, I was oddly attracted to these. (Thanks, Keith!)
Damn.
So, say you are writing a shell script (sh or bash) that needs to take arguments like so:
./script.sh start
./script.sh -v start
./script.sh -c foo.conf start
./script.sh -vc foo.conf start
This took me a bit of doing. (more…)

Although I have not succeeded with the getting-hired-at-Google thing I have had my crack at it a few times and have survived to write about it. I occasionally hear from others about to try it, and they want to know if I have any advice. Here’s my modest wisdom on the subject of interviewing well at Google. (more…)
I work for a small company. When I started, we all went out to lunch. And when the next guy started, we all went out to lunch. And today, the new guy . . . well, just the developers are going out to lunch. This is actually very sensible, but I was kind of looking forward to a free lunch. Today, TANSTAAFL – There Aint No Such Thing As A Free Lunch. Fortunately, Yayoi makes me lunch every day. Mmmm, sandwiches!
And, today is pay day. For the first time in my life, I have a six months of rent in a savings account. I think we should probably keep adding to this stockpile, on the off chance that we some day discover some affordable housing to buy. I am also looking forward to getting back in to the 401k game.
Joe told me he made a deliberate effort to stop reading political blogs, and I said that I never really did bother to read political blogs, because they generally don’t go past provoking self-righteous outrage at the other side, and since about 2003 or so I have definitely had “outrage fatigue.”
But that doesn’t mean I still don’t pay attention, and that doesn’t mean that I am ignorant of the outrages. I get a trickle of the worst, usually from The New Yorker, and that’s when I feel compelled to re-tell the stories of the greatest outrage.
Amnesty International recently referred to Guantanamo and other prisons like it as “the gulag of our times” or words to that effect, and the Bush Administration and conservatives flipped out over that . . . (that outrage!) because really, our suspending the Geneva Conventions and inprisoning a classified number of people throughout the world based on classified intelligence without ever charging them with a crime is nothing at all like the Soviet gulag, where millions of Stalin’s own citizens were worked to their deaths.
And you know, they have a point, or maybe I was daydreaming about something else when I read the chapter in “A Day in the Life of Ivan Denisovich” that was similar to this passage, from Hendrik Hertzberg in The New Yorker, May 30, 2005: (more…)
A while back, I signed a petition for the American Family Association to oppose Ford’s support of gay people. I didn’t do this because I agree with them, but as a subversive act to put obviously bogus names on their petition. The idea being that if anyone ever reviewed their anti-gay petition, they would see that “Jesus McChrist” was definitely opposed to Ford’s gay ways.
Every time I see this e-mail, I get a little chuckle: (more…)
Link: https://dannyman.toldme.com/2005/06/11/perl-convert-celsius-and-fahrenheit/
I recently had a need for two quick temperature conversion algorithms in a Perl script. I asked Google, but did not immediately get a great answer, so here’s my answer:
# Two quick helper functions: CtoF and FtoC
sub CtoF { my $c = shift; $c =~ s/[^\d\.]//g; return (9/5)*($c+32); }
sub FtoC { my $f = shift; $f =~ s/[^\d\.]//g; return (5/9)*($f-32); }
The regex is to untaint the input datum, and could be eliminated if you know that your variable is clean. This code has been incorporated into a systems health and data trend monitoring script for FreeBSD. For the vaguely interested, here’s today’s perldoc: (more…)
So, I was reading, yet again, of the Army’s difficulty in signing up soldiers to serve in Afghanistan and Iraq, among other places. The article wound down with the reminder that this could be alleviated somewhat, by allowing openly gay people to serve. And I started to concoct this little fantasy where somebody in San Francisco started signing up gay men, who pledge that they would serve in the military if allowed to do so. The thing catches on to other places and before you know it, you’ve got thousands of gay men who have pledged to serve.
But that’s not enough, right? So, they form companies (in the military sense) and start to drill on weekends as if they were the National Guard. Once they’ve gotten good, they organize a march on Washington, and suddenly the Mall is filled with the Pink Triangle Battalion. Squads of big beefy gay dudes are drilling in formation, on the mall, marching around the White House, the Capitol, and over to the Pentagon and back. “The military needs men, and we are ready.” The ranks could be filled out with fully uniformed veterans, who may be either gay, or simply “straight but not narrow minded.”
Or, if they really wanted to make a point, some of them could bivouac (Army camping) in some of the more far flung, shitty desert places of Texas, known for rabid conservatism. You get a company of armed, uniformed soldiers with pink triangles marching through your remote Texas town and first you’re like, “Hey! A military parade!” and then “Pink triangles … these are faggots!?” and then “Are those real guns?” and then “What are they doing here in Texas scaring the shit out of me, they should go to Iraq!”
As recently observed at work:
(16:19:06) taras: for centuries, my clan has insisted on only naming their children with names that can be typed exclusively with the left hand, b/c we knew that one day we might be working with a left-hand-typing-only system administrator
For those who have never seen me type, let me tell you that the above is an apt description of yours truly.
(16:35:04) sara: dman: note that ‘sara’ can also be typed only w/ your left hand
(16:35:22) ***sara sucks up to the sysadmin
It’s good to be root.
I bicycled in to work this morning.
Finally!
It is a very nice ride. Flat and scenic along a regional trail that on many maps still claims to the the Southern Pacific Railroad. In fact, when I got to Danville there was a beautiful train station with a Southern Pacific caboose sitting out next to it. Museum of the San Ramon Valley, it said.
The trip, one way, if I were in slightly better shape, would be nearly an hour. I got out the door late so it was more like an hour and thirty minutes.
I am no Joe Gross, but then he’s not dannyman, so I figure all is fair.
Yayoi and I finished watching _2001_ last night.
“So he was kidnapped by black pillar.”
That’s as good an explanation of that movie as any other I have heard.