Archive for December, 2004

24th Dec 2004

A Postal Note…

If you’ve sent me anything over the holidays via U.S. Mail, I won’t be aware of it until early January. My mail is currently being forwarded to NYC, but I’m in California. (so if you sent me a card or something cheerful, thanks much!)

Posted in Daniel | Comments Off

19th Dec 2004

Christmas Sanity

You don’t have to buy something for absolutely every single person. Spend time with people you want to be with instead. A shared meal is a better gift than something given without thought behind it.

Don’t plan every minute. Don’t get caught up in endless lists.

To hell with the mall rat race. What has the country come to when we race to see who can be at the front doors of commerce at 6 am, when what we should be doing is sleeping off all the turkey and pumpkin pie? Waking up early to max out a credit card is some sort of honorable achievement?

Don’t try to one-up someone else’s Christmas celebration. Consult the word “relax” in the dictionary. It’s supposed to be a holiday of some sort.

Eat. Decorate if you want to. Sip spiced cider by a real pine tree. Drink egg nog. Take walks together in some neighborhood that has an iota of character. Don’t get hung up on this gift or that token. Maybe even sing Christmas Carols.

Spend time with those who can see beyond all the wrappings and ribbons. Most people don’t really “need” anything for Christmas anyway. You’re just filling up each others closets with junk. Something small, simple, of quality always beats some obnoxious big cheap piece of drek.

A shared time with the right people who can relax and hang out is better than anything.

Posted in Musing | Comments Off

18th Dec 2004

88 Pounds of Warhol

Wow, looks like Volume 1 of Andy Warhol’s Interview: 35 Years Of Pop is a doozy. I don’t “need” anything for Christmas, but, uh, this one looks like quite the journey back into that alternate universe known as the 70’s (as well as being an important document of a sliver of New York City/Art/Pop history). Probably will get it sometime next year if my lovely wife doesn’t beat me to it :-)

Seen via Boing Boing

Posted in Art | Comments Off

14th Dec 2004

Buy Blue This Christmas!

Are you buying from companies that use their profits to finance the GOP?

It doesn’t always have to be that way, ya know…

Check out the company lists at Buy Blue

Hmm, Starbucks, Jet Blue, and Netflix.. yeah, I could say that I’ve given those guys quite a bit of business :-)

… and fuck off, Wal Mart. I do my best to stay out of there.

Posted in Political | Comments Off

08th Dec 2004

JamPlug, Strat On The Go

Ok, I know what I want for Christmas!

JamPlug is a very small guitar amp. As in pocket-sized small … It would fit nicely in the case next to my Strat (hint hint :-)

Posted in Music | Comments Off

07th Dec 2004

Thumbs Up For Adium

I recently started working with folks that use Yahoo Messenger. I still talk to people on AIM all the time though. It gets a little “busy” running two IM clients all the time.

So I tried Gaim (on Mac OS X, via Fink). Well, one thing I can say for it is that it stays connected over my DSL line (unlike the Yahoo Messenger client for the Mac). But still, it lacked a certain… something.

Then I tried Adium X. Wow, that client’s a lot more like it! It handles AIM and Y! for me, and so I’m happy. I love how you can drag screennames from different services into the same groups.

It doesn’t do audio or video, but it does what I want for 95% of my IM needs. Kudos to the team that works on it!

Posted in Blogroll | Comments Off

05th Dec 2004

Tcl Makes Me Roll My Eyes

Ok, how many of you out there ever program in Tcl?

Ah! One, and someone in the back row (which, on this blog, also happens to be the first row) that was scratching their nose. Ok, hands down.

So I’m doing a project in Tcl (as in, the language they talk about at http://tcl.tk) and there’s been something I wanted to do that is SO DAMN CINCHY IN OTHER LANGUAGES.

A list of arrays. You know, a basic list where each element is a pointer or ref to a blob of memory (in this case, a Tcl array, which is a hashmap/associative array).

That’s all.. just a list where each element is an associative array. You’d think this would be straightforward. But ah! Not in Tcl. Believe me, I’ve gone around to wiki.tcl.tk, googled this and that, and stared at my Tcl book till my eyes got bloodshot. I figured it should be possible without having to get into something like “eval”.

I’ll show ya what I mean. Here’s a simple hash:
nscp 1> set hashOne(dls) daniel
daniel
nscp 2> set hashOne(ss) sophia
sophia

and here’s another…
nscp 3> set hashTwo(pet) cat
cat
nscp 4> set hashTwo(car) m3
m3

and they look like:
nscp 5> array get hashOne
ss sophia dls daniel
nscp 6> array get hashTwo
pet cat car m3

So far so good. Can we add an array to a list?
nscp 13> set rr [list]
nscp 14> lappend rr $hashTwo
can’t read “hashTwo”: variable is array

(and about 5 other tries at this failed as well…)

Oh fuck you Tcl! I mean, really now, why should this be so hard? Or perhaps the question could be: how come this is so straightforward in PHP, Perl, Java, and so on?

(btw, I realize there is likely a Tcl extension that makes this work, but for the purposes of what I am doing, I have to stay stock)

Of course, you could collapse an array into a list:
nscp 8> set someList [array get hashOne]
ss sophia dls daniel
nscp 12> lrange $someList 0 3
ss sophia dls daniel

But that’s a hassle if I ever want to get the data back out as a proper hash.
To be clear, I want a list of arrays, not a list of lists.

So to bring this little excursion to a close (and to be able to get on with the thing I am prototyping, that I can’t talk about), I punted a bit.

Another approach which seems common in Tcl-land is to imply dimensions in an array by using the comma ‘,’ separator:

set someContainer(PetOne,catName) “tasha”
set someContainer(PetOne,catAge) 12
set someContainer(PetTwo,catName) “valentine”
set someContainer(PetTwo,catAge) 5

Then you can zero in on a particular slice of the array via:
nscp 30> array get someContainer PetOne,*
PetOne,catAge 12 PetOne,catName tasha

Works, yes. But I feel so dirty doing it this way :-)

Posted in Tech | Comments Off

grupa LGBT