Fantasizin’ Again

There’s a Fantasy Cup One Race Challenge for this weekend’s Ford 400, from Homestead-Miami. Over $21,000 in cash and prizes. Hmm … a Free entry in the challenge if you renew your team for 2007, plus an early signup bonus for next year.

I think I’ll pony up again, as much as I’ve cussed my sad sacks this year. Add the one-race challenge, which is its own entity, and I’ll have a backup set of sad sacks to cuss.

I’m just a glutton for punishment.

0k0

Technorati Tags: , ,

Steers and Queers

The Dallas Convention and Visitors Bureau has established a website to extol the Big-D’s virtues as a destination for visitors of the gay and lesbian persuasion.

From the website, emphasis added:

Dallas continues to propel itself forward, now a richly diverse American city with a melting pot of cultures, religions and lifestyles. It has left behind stereotypes of big-haired women and rowdy cowboys — that is, unless you count sassy drag queens and strapping gay rodeo champs.

I didn’t realize Dallas was such a haven. From this article:

“It’s not about being politically correct, it’s about being economically correct,” said Phillip Jones, president and CEO of the tourism bureau. He said gay travelers spend an average of $100 more per day than other travelers and plan four to six trips a year.

The greenness of the money has no gender or gender preferences. A market has developed, and it’s being served. I just thought it queer that Dallas aspires to prominence in it.

-k-

Technorati Tags: ,

Renewed

The quietvoice.org domain has been renewed until this time in 2009. I may not have enough to say to justfy extending it that long. Then, maybe I didn’t have enough to say to warrant getting it in the first place.

I’m gonna keep typin’ away anyhow.

-k-

Technorati Tags:

A Worthy Cause

Via The Agitator, linkage to Kegs for Kids. This is a charity wherein $25.00 buys you all the Budweiser you can hold, with proceeds going to Toys for Tots. Anheuser-Busch donates the kegs.

From the article:

I don’t know how they managed to register the name as a non-profit, but it’s fantastic that they did. I wish them nothing but success. It’d be a hoot to watch the the neoprohibitionist, “for the children” crowd try to take down a whimsically-named charity group

And, though in its infancy, the group is raising some funds:

The group raised $7,500 last year between its St. Louis and D.C. chapters.

Charity rewards the giver as well as the recipient.

Indeed.

-k-

Technorati Tags: ,

Love that Ruby

I’m still no great shakes as a Ruby coder, but I’m continually amazed at how much can be accomplished with a very few lines of code.

As an example, I mentioned that I’ve been buiding a lot of Solaris packages and Linux binary RPMS lately. One thing I miss on Linux is an equivalent to Solaris’ pkgproto command, which is used like this:

find /path/to/binaries | pkgproto > prototype , or also

pkgproto path ... > prototype

This is how Solaris handles the equivalent of the %files section of a RPM spec file. One thing to like about pkgproto is that it captures owner, group and permissions of each file. Linux supports an
%attr(owner,group,perms) name-of_file

construct; however, Linux provides no tool to directly generate this. In a very few lines of Ruby, I was able to implement a pkgproto equivalent that produces output with each line looking like this:

file_type %attr(uid,gid,perms) filename

This can then be read into the RPM %files section (after stripping the first field). I prefer to use a separate file, combined with the %files -f in the RPM spec file. I’ll discuss how I use that first field in a subsequent installment.

I love that Ruby; a tool to build tools.

-k-

Technorati Tags: , , ,

No More Troublesed

Well, my sed woes are over, and I’m not going crazy, at least because of that. As I detailed yesterday, I had a seemingly incorrect script, that apparently though unaccountably, did the right thing.

After further review, I discovered the application being packaged rewrites the file upon startup and shutdown. Apparently, the inputs to this rewrite process are obtained from files that were successfully created and converted during the Solaris pkgadd. Bottom line is, I need not have fiddled with the offending file at all. This is a hazard of 3rd party applications, when one knows little of their internal workings. The instinct, mine at least, is to convert every file that has a hostname, IP address, etc., that is different from the system on which you are currently installing the package.

I wish that vendors would supply a more transparent interface to their install/configuration process, without surrounding it with their (usually GUI) interface. I know the suits like GUIs, but they are rarely responsible for installing stuff on bunches of machines at once. And don’t even mention the “silent install” options some vendors offer. By using those, one loses the ability of the Solaris pkginfo command, or the Linux rpm -qa command to determine at one fell swoop what exactly is installed on a system. My mantra is if native OS tools are good enough to install the OS, they’re also good enough to install any applications the system needs.

Sometimes being old school is rough, but in this case worth it.

-k-

Troublesed

I’ve been converting some third-party software to Solaris packages(so you can use pkgadd) and Linux RPMS over the last few days. It’s the typical drill; install with the vendor’s install software, bundle up the resulting files, and surround with judiciously-crafted scripts to perform configuration. Then test, test, test.

As part of a postinstall script on Solaris, I have some innocent sed commands that resemble this:

sed -e “s/some_string/${some_environment_variable}/” \
-e “s/another_string/${another_env_variable}/” some_file > some_other_file

And I thought all was well until today. I’d installed the new package on a couple of Solaris systems, and everything worked. I then used those scripts as templates for my Linux %post section for the RPM. I then observed that one of the files operated on by the sed script had multiple instances of some_string on a single line of the input file. The above instructions to sed, in absence of a the “g” modifier, should have replaced only the first instance of some_string. But on Solaris, all instances were replaced, pretty as you please. I even hacked out the sed script, ran it from a shell, and only the first instance was replaced. So it appears the postinstall script handles something differently; it’s called from pkgadd. I am at a loss to explain what’s going on.

Things that work, when they apparently shouldn’t, are as troublesome as things that don’t work, when they apparently should.

-k-

Punchlines #13

The last of a cute little story, and an ongoing installment in the closest thing I have to a series here:

  • “We were told that if we bought a Used car here we’d get screwed, so we’re just waiting.
  • Plus we can see that the weather data isn’t on this post, I think.

    -k-

    Fairer Weather

    Not literally fairer weather, but 2 short days after installing Weather Icon, documented here, one of the WIcon folks left a comment suggesting that I try the WI1 v 3. beta, since it was pretty stable, and is “majorly kickass”. Hard to turn down an offer like that, and in the sidebar, there it is in all its glory.

    There are tons of configuration options with this thing. Lots of knobs to twist and turn; I like that.

    -k-

    1 – It bothers me somewhat to abbreviate Weather Icon as WI, because of the obvious collision with a state abbreviation. Then, there are only finitely many 2-character acronyms, and collisions are inevitable. Plus, we’re all friends here.

    Update: I see it can even add per-post weather data, which just happened. I think I’ll soft pedal that feature for bit.

    Update2: Turning off the per-post weather data is retroactive. I just now noticed that, in case one wonders what I’m talking about in the first update.

    Technorati Tags: