Entertainment

Rethought zshrc

I’ve been using zsh for a while as my preferred shell. I have a hacked-together zshrc file, and yet really wanted to use it across multiple systems. Some of those systems are running Mac OS X, others Solaris, and still others Linux. Executables are in a different locations and even have different switches across this range of systems, so my cobbled zshrc was not helping me.

As I was about to fall asleep last night, it finally hit me that fixing my zshrc would be a good thing to do. I jotted down some notes about an idea to reorganize it, and did something about it today.

Of course, since I’ve checked my zshrc and other dotfiles into a Mercurial repository, I could experiment without fear.

I created three top-level functions, with one “case” statement in each. Case statements may be evil in some fashion, but they are one of the things I like about shell scripting. These statements do allow the script to make choices based on the host, operating system, or shell that it was running in. (Yeah, it’s a zshrc, but I sometimes do stupid things — like sourcing it in bash on the one Linux system that won’t let me switch to zsh. Site5, I’m looking at you.)

I separated all the important sections of my zshrc into their own individual function calls. Each of those function calls was placed into one of the applicable case statements.

The case statement functions figure out the conditions the zshrc is running in, and then run the other functions to set up my environment.

The changes tested well from first try across the various platforms and hosts I log in to. I did have a minor problem with the `hostname` command, because Solaris doesn’t have a “-s” flag for it. Eventually, I solved that — and the odd “uname: error in setting name: Not owner” error I got, even though I wasn’t directly running `uname` there — by replacing `hostname` with `uname`.

Thankfully, it works for me, and it should be a little easier to manage changes in the future.

Clamped onto a booklight

“Well, you know, I think when you go into a bar and you serve the country, you deserve to have your chicken wing not be alligator-clamped onto a booklight. That’s what separates us from the Russians.”

— Merlin Mann, You Look Nice Today: “Aunt Nancy”, approximately 15:52

Note: In case you wondered, StupidFilter rated that quote as “not likely to be stupid.”

So long and thanks for the 125,099 miles

Yesterday, I traded in “Fighterjet.”

I feel pretty raw about signing away the title for my 1998 Subaru Legacy GT 2.5 Limited. (Frankly, I’ll never remember the correct order “GT,” “2.5,” and “Limited” are supposed to go in, even after 10 years — 3273 days, to be exact — of car ownership.) Looking back, I took delivery on July 1, 1998.

What do you say about a car you owned for 122 months? A vehicle that was there to transport you through the highs and lows of life?

Well, the brochure for our new car says, “Few things connect to your life at more points than your car.” Amen. I’ll take a stab at a few notes in haphazard arrangement, below.

This will all seem melodramatic, and it is. There are, I’m sure, people who don’t get attached to their cars. My wife and I are not those people. However, I am beginning to realize that you can only really get attached to one car, and thereafter you realize you simply can’t do that again. This is my struggle this morning, and my usual tendencies to hang on are amplified by how long I had that Subaru.

Fighterjet was the first car I ever picked out and bought myself. The two cars before it dropped into my lap, by the generosity of my family, and being young, I did my level best to destroy them quickly. The Subaru had 40-some miles on it when I bought it, partly because I drove it a few times and partly because the test drive area around the dealership was so large.

Every girlfriend I had in my adult life rode in Fighterjet. One of them helped me choose it. The car outlasted all but one of them.

My wife and our first son rode in Fighterjet. In fact, it was the car that Aaron and I had to rescue from the snowy parking lot at work — its door had been jammed open by ice so the alarm was sounding — so that I could collect the bags we’d left at home and return to the hospital with them. The baby was born a day later, and perhaps we’ll be more prepared in the future.

Fighterjet didn’t have LATCH anchors. Oops.

When I bought Fighterjet, I didn’t have any music in MP3 format. Having an iPod connection was unheard of, because the iPod wouldn’t ship for years yet. But it had a CD player and a tape player, not to mention weather band radio. (Weather band radio is really dull.)

Luckily, I had obtained my first digital camera nine months before Fighterjet, so I was able to document the car pretty well.

The month I brought Fighterjet home, I went to Macworld Expo in New York City. It was the first of five such expos in New York (and that was a particularly whirlwind trip), but it was even more memorable for a big product introduction: the original bondi blue iMac. Fighterjet, meanwhile, was “Rio red.”

Hearing about the color of my car, Kristi laughed and said, “Oh, it’s pull-me-over red!” I got exactly one ticket with Fighterjet.

The Sabres had only been to the Stanley Cup Finals once in their history when I started driving Fighterjet. Now, they’ve been there twice. And had a few conference finals appearances, too. (Did Aaron and I drive Fighterjet to that playoff game with Philly? The one that created the wall of sound in the atrium of HSBC Arena? Correction: Aaron says it was this game against Ottawa.)

I drove to a lot of Ultimate games in Fighterjet. Cleaning it out, I had a regulation Frisbee in the trunk. Along with a wiffle bat and some wiffle balls — you never know when an impromptu game would break out.

I spent one long day in Fighterjet, stuck on the New York State Thruway (I-90) for about 15 hours, one winter. There was a big snowstorm. Some of you lived through it with me, and others have probably heard me talk about it, so I don’t think I need to say more. At least that time, I was prepared.

That incident taught me that if you can’t tell your car from other snow-covered cars in the vicinity, you should probably stay home.

Fighterjet drove through a lot of snow, and barely broke a sweat over it. There were a few close calls, though. Once, I hydroplaned through the turn from 96 onto 332 — no wheels gripped, they only slipped. There was one Christmas morning, driving to Cuba, where we spun 180 degrees together; thank goodness the next car was so far behind us. Another morning, going to work and sliding slowly, sideways, into and kissing a (thankfully) snow-packed guardrail.

I didn’t have a cell phone when I bought Fighterjet.

Baxter was in Fighterjet when I hit my second deer with the car, and, as a dog, he was pretty freaked out by the sudden ordeal. I really thought that was the end of the line, but the insurance didn’t total the car. I haven’t taken Baxter with me to get take out since, as I recall.

The car got its name from the view I got sitting in the driver’s seat, looking back through my regular and oddball lane-changer mirrors. It reminded me of the rearview cameras you see in fighter jet films on TV, looking back on the tail of the plane. Dumb, yes, but I couldn’t think of a better name.

I can’t remember how many sets of tires I put on the thing. The first one involved a lot of anxiety while reading reviews on the Tire Rack Web site. The Dunlop Sport SP2s, later, were utter flops.

Fighterjet helped me move between apartments and houses. Thrice. And, I think it helped move Lloyd’s family once, and maybe others. I forget.

I drove it to Pittsburgh and the Adirondacks and other places, but I also think of destinations I never went.

After giving up this car, I wonder how many cars I have left in me. How many more will I own? My sense of mortality is briefly heightened.

I miss Fighterjet, but it was time to move on. I feel like I’ve abandoned a friend — but that’s silly. Hopefully that feeling will fade, because, after all … it was just a car.

Hunting Snow Leopard

I’ve been thinking for a few months that Mac OS X 10.6 (or the like) would be introduced to developers at WWDC 2008. I’ve said as much to those unfortunate enough to be within earshot. I haven’t mentioned it here … and in recent days I’ve felt less confident about this gut feeling based on the public WWDC session schedule.

If Apple was trying to return to an 18-month release cycle for Mac OS X, my thought process went (after the CEO announced just such a push), a developer preview would almost have to be shown at this WWDC. That has lingered in the back of my mind. It also provided a reason to go to the conference if you were interested more in the Mac track than the iPhone.

Now there are rumors flying around, based on various strings in Apple software and from other sources, that there will be a preview release of Mac OS X 10.6 at WWDC. And it’s being referred to with the moniker, “Snow Leopard.”

If, as these rumors say, the upgrade will focus on reliability and security, then the general lack of room for schedules on it is more plausible. The name distinguishes it little from Leopard, but maybe just enough.

However, unless this release were more like the free-with-$20 shipping Mac OS X 10.1 update, who would buy it? Would Apple charge $129 retail for stability and security? It seems that there would have to be more.

I can definitely see that security could be enhanced by greater adoption of certain features — some reasonable candidates for further enhancement since Leopard — which are the focus of several sessions at WWDC, according to the published schedule.

Since I’m always watching for when old rumors swing back around, I’d guess that one additional change we could see is the mythical “Illuminous” user interface. (Assuming, of course, that this is not the unified interface style we already have in Leopard.) It usually takes two years for fun old rumors to become reality, if they ever do — that’s enough time for many to have forgotten about them and for actual development work to have taken place. A new interface with a new name would jack up the value of a new OS in some people’s minds. Moreso if it actually works better than the old one.

If the lack of PowerPC support were true, then this would be an astounding announcement. It would cut off upgrades for a large (but ever-decreasing) percentage of the Mac population. Already, Leopard itself was limited to G5s and the newest G4s. This could have an interesting effect on those institutional customers who bought G5s for their compute power. Let’s recall that although the Intel Macs have been out since January 2006 and the transition was relatively quick, the high end Power Mac and Xserve systems were the last to be replaced. For a while yet, there can still be Apple PowerPC-based systems that are less than three years old.

Ah, we’ll see what happens Monday. You never know with rumors. I have no inside information and even I wouldn’t make any important decisions based on these musings.

When I ruled the world?

Does anyone else think that Apple has some ulterior motive for promoting Viva la Vida, the track on the new iTunes ad featuring Coldplay? That maybe its lyrics are indicative of something going on at Apple?

“When I ruled the world,” indeed.

No matter. I find it a fantastic visual treat and now the haunting music is stuck in my head. I would not be surprised if it were featured at WWDC 2008 in a few weeks.

The Toronto Star: Sabres display draft savvy

The Toronto Star, at TheStar.com, shows how the Sabres display draft savvy — or at least used to, before everyone that brought players into the organization left.

Sigh.

Still, I guess I can’t say this is bad, at least not yet. Other teams win without drafting and developing players in-house. The Sabres were losing $15 million each season a few years ago and were under league management. Something had to give. They are having a rough time with their Rochester Americans affiliate, and the Amerks themselves are in financial trouble. Perhaps being the development house for the rest of the league wasn’t really a winning strategy, while another one might produce better results (or at least a different cost structure)?

Rick Falkvinge on mixing DRM and law

Rick Falkvinge responds to the European Commission about the inadvisability of mixing DRM and law (in English, despite the preamble in Swedish, even though he is the “founder and leader of the Pirate Party movement and leader of the Swedish Pirate Party”).

[Via Waffle.]

Our long electronic domain nightmare has ended

Yes, I forgot to renew my domain. Yes, that became a real pain very quickly when I realized what the repercussions were.

For future generations, I suggest not having to deal with this when:

  • you want to switch domain registrars
  • you want to switch DNS hosting providers
  • your goal is to save money
  • you have never switched either registrars or DNS hosts for any domain before
  • your domain’s WHOIS records are severely out-of-date (mostly because, through a comedy of errors, your host won’t let you update them)
  • most of your administrative e-mail goes to a now-defunct mail address whose inbox you cannot access (I’m looking at you, .Mac, with your costs that went from $0 to $99/year in one year, and your vexing lack of forwarding)
  • the rest of your administrative e-mail goes to an address in your expired domain (“because that’s the one e-mail address I’ll always have control over! Not like that .Mac account, no!”)
  • you forgot that the reason why you didn’t switch domain and DNS providers earlier was because of the WHOIS hassle, and you just blithely plunged ahead with it
  • you’ve waited until the day the current domain hosting provider has cut off your service (“hey, why can’t I connect to anything in my domain today? Er … ah … hm … oops. Maybe I should Twitter about this.”)
  • you have to converse with the support organizations of at least two companies, and one of them is losing business
  • you have better things to do with your life.

Lesson learned.

Anyway, it looks as if the long electronic nightmare of jaharmi.com being offline for Web and e-mail purposes has now ended. I can see this site. I can send and receive e-mail.

Good day.

The skid hits six

The Buffalo Sabres are in a serious situation now; they have fallen to eleventh place in the Eastern Conference as of this afternoon’s 5-2 loss against the Atlanta Thrashers. This means the blue and gold would be out of the playoffs if they started today — which they don’t, since we haven’t even reached to the All-Star break yet. However, it’s going to be awfully hard for the Sabres to get out of this slump and get into the playoffs with about half the season left.

Meanwhile, both the Flyers and the Rangers are now sitting in the last two playoff spots. The Sabres — who were the top team in the league during last year’s regular season and lost one their co-captains each to those two teams since then — are possibly on their way out. As a fan, this is depressing, so I have to wonder if this is, as many say, because of the loss of Briere and Drury? Or, is it a self-fulfilling prophecy coming true because everyone has talked about it so much? Hard to say.

One thing I can say: the Sabres gave up a lot of their offensive firepower in the off season, didn’t get any in return, and are in their six game losing streak largely because they can’t score goals. This, even when the opposing goaltender has a blinding snowstorm driving at him and seventy thousand fans cheering for their home team.

On a somewhat lighter note, the comments on the Game Thirty-Eight Open Thread: Sabres at Thrashers post at BfloBlog.com are amusing. For example, “I think someone mentioned that Roy has a pulled purse arm muscle,” referring to Derek Roy’s injury, and, “That game stunk worse than the guy’s foot in the smoking commercial,” for which you’d just need to see certain public-service announcements that air on MSG during the games.

Winter Classic ends in a Sabres shootout loss

Well, the AMP Energy NHL Winter Classic game between the Buffalo Sabres and Pittsburgh Penguins is over. The Penguins won their second straight against the Sabres with a 2-1 shootout victory.

Rewinding a bit, the Sabres were doing really well before Christmas, with two really exciting games against Philadelphia and a nice win streak. The icing on the cake was the shootout win when Miller stuffed Briere. As much as I like Danny, hey, I’ll still root for the home team so it was great to see Miller stop that shot.

Now, the up-and-down Sabres have dropped several games straight, including the home-and-home series against Pittsburgh which culminated today in the Winter Classic. They also lost against the New Jersey Devils during this current streak.

The Winter Classic lived up to the billing in at least one sense: the wintry weather. While we’ve had some mild weather in Western New York of late, it did turn cold with some snowfall today. That was sort-of ideal if you want to televise the first outdoor NHL game in the United States, and have an obvious topic for your telecast. It resulted in some interesting camera views of the game, and a lot — I might say too much — of Zamboni work and ice repair. It certainly didn’t help the flow of the game on television.

On the plus side, the game was carried by NBC in high definition. We went over to Aaron and Missy’s house to watch it on their big set and it really does make a difference. (I’m sure it would have been much harder to figure out which was a puck and which was a snowflake here at home. Although my answer that is that the pucks are all the same and the snowflakes are all unique.) I call it ridiculous that Time Warner Rochester doesn’t carry the HD feed of the Sabres games, given that the team is all of an hour away and has been so popular of late.

Also rating up there on the ridiculousity scale:

  • The maddening frequency that the NBC crew started questions to players and coaches with some variation of: “I know you spent a lot of time playing on frozen ponds, so …”
  • The sheer number of references to how great Sidney Crosby is. Guys — whether you’re at NBC or the NHL — please get off this. There are lots of other players on the ice who are interesting and at least as deserving of air time. I’d hate your national broadcasts less if you brought out the character of the league and the game. Plus, the Penguins will play the West Coast teams what, maybe once every seven years? Most of the North American continent, even if they have an NHL franchise, will never see this guy again. Maybe you should prop up all of your players, coaches, teams, and cities. Oh, I forgot, no one but hockey fans are even watching these games anyway because the NHL is so broken, so it doesn’t really matter.
  • The stoppages of play when the Zambonis rolled out. Can we go ten minutes without them, pleasethankyoubye?

All in all, it would have been more satisfying if the Sabres had just won. Sigh.

Syndicate content