October 26, 2004

Funniest thing. Oscar brought me a Conflict t-shirt back in 2002 from when he say them in London. So, I'm at Conflict's merchandise table and someone pats me on the shoulder and says "I haven't seen one of those in a while..." It's Colin, the lead singer from Conflict. I shake his hand and think, "Wow, how cool is that..."

Meanwhile Oscar is looking on behind me and tells me later: "I'm nenver getting you another t-shirt..."

Posted by ed at 03:54 AM

I just got back from seeing Conflict for the very first time. I had always missed them playing, for one reason or another, for years. My favorite band. The band that made me political. The band that made me a vegitarian for so many years. Conflict.

It was amazing, and at the same time made me (and Lare) think of all the things wrong with the punk/anarchist movement. It was energizing, and I wanted so bad for it to make me believe again, but while it was energizing, it just reenforced my feeling that anarchism cannot be made to work.

People are just too stupid... But I still want to believe...

Posted by ed at 03:43 AM
October 21, 2004
Godzilla on the Walk of Fame


Yes, kiddies. Godzilla will get a star on Hollyweird's Walk of Fame. I can't wait to see it!

Posted by ed at 09:35 AM
October 19, 2004

I was thrilled that Farscape was given a chance to end cleanly, but I can't help but feel unfulfilled. The show was so good, the story lines and characters so rich, that I feel cheated that it's over. I am glad that the loose ends were tied off, but I will miss Moya and her crew. Why is it that all the good sci-fi shows are always killed off before their time?

Posted by ed at 08:34 AM
October 18, 2004

I went out with Vicki and bought a tuxedo yesterday. It's the first full suit I have ever bought.

Posted by ed at 09:20 AM
October 15, 2004
P.E.A.C.E./W.A.R comp

There's an old compilation album that I used to have that had all the best bands of the day on it (this was n the 80's). It's available through the iTunes Music Store. Very cool. I lost my LP of this years ago, and lost all hope of finding it again, short of begging for a vinyl rip on usenet.

Posted by ed at 03:55 PM
October 14, 2004
Bad Joke

An Irishman, a Mexican and a Blonde Guy were doing construction work on scaffolding on the 20th floor of a building.

They were eating lunch and the Irishman said, "Corned beef and cabbage! If I get corned beef and cabbage one more time for lunch, I'm going to jump off this building."

The Mexican opened his lunch box and exclaimed, "Burritos again! If I get burritos one more time I'm going to jump off, too."

The blonde opened his lunch and said, Bologna again! If I get a bologna sandwich one more time, I'm jumping too."

The next day, the Irishman opened his lunch box, saw corned beef and cabbage, and jumped to his death.

The Mexican opened his lunch, saw a burrito, and jumped, too.

The blonde guy opened his lunch, saw the bologna and jumped to his death as well.

At the funeral, the Irishman's wife was weeping. She said, "If I'd known how really tired he was of corned beef and cabbage, I never would have given it to him again!"

The Mexican's wife also wept and said, "I could have given him tacos or enchiladas! I didn't realize he hated burritos so much."

Everyone turned and stared at the blonde's wife The blonde's wife said, "Don't look at me. He makes his own lunch."

Posted by ed at 08:26 AM
October 11, 2004
R.I.P. Superman

Christopher Reeve is dead. Sigh.

Posted by ed at 10:58 AM
October 08, 2004
The beauty of Open Source

Remember that OpenSSL code I was fighting with? Well, up stepped someone interested in adding the same functionality who kindly submitted his changes to my framework. I'm going to integrate his added RSA support and my base64 encode/decode support as soon as I get a chance. I'm so glad this is working now.

Posted by ed at 05:29 PM
October 03, 2004
Fighting with OpenSSL

Is it just me or does the documentation for OpenSSL just suck? You would think that something as important as this would mean there would be really good documentation, with concrete examples and lots of explanation as to what things are and what they do and why things are they way they are. This isn't the first time I have been playing with OpenSSL, it's not like I haven't ever used it. It's just that every time I get seriously into it, something bites me in the ass and the documentation is woefully unhelpful.

A case in point:

- (NSData *)decryptMessageWithPublicKey:(NSData *)msg
    NSData *message = nil;
    BIO *bio;
    NSData *decoded = [SSCrypto decodeBase64Data:msg];
    unsigned long err = 0;
    NSLog(@"decoded: %@", decoded);
    if (bio = BIO_new_mem_buf((void *)[publicKey bytes],
                              [publicKey length]))
            RSA *rsa_key = 0;
            if (PEM_read_bio_RSA_PUBKEY(bio, &rsa_key, NULL, NULL)) {
                NSLog(@"RSA_size: %d", RSA_size(rsa_key));
                NSLog(@"decoded length: %d", [decoded length]);
                NSAssert([decoded length] + 11 == RSA_size(rsa_key),
                         @"decoded length + 11 == RSA size");
                unsigned char dst[[decoded length]];
                int len = RSA_public_decrypt([decoded length],
                                             [decoded bytes],
                                             dst, rsa_key,
                while (err = ERR_get_error()) {
                    NSLog(@"error: %s", ERR_reason_error_string(err));
                message = [NSData dataWithBytes:dst length:len];
        } else {
        NSLog(@"failed to get BIO mem buffer!");
        return nil;
    return message;

Now, lets assume that there aren't any problems with the base64 decoding (since there aren't), and that the RSA key is being loaded correctly (I'm reasonably sure this is true). Why is it that I cannot get past the assertion? I have been messing with this for a few hours and it's ticking me off. I must be missing something, but I just can't see it. I'll have to set this aside for a bit and come back fresh.

Posted by ed at 06:30 PM
October 01, 2004

Just now I suddenly got the strangest urge to go to Disneyland. Very odd.

Posted by ed at 05:19 PM