Mac followup

I just went through the cleartype wizard again on my work (windows) box. It looks so much assier than the ibook I’ve been using all weekend.

Posted in tech | Leave a comment

New cult

I’ve joined the Mac cult with a purchase last week of an iBook. It’s ostensibly for Rebecca but I keep hauling off with it to sit in a corner and hack on Ugly.

I’ll try to write a little bit more about Ugly design later on today.

Posted in tech | 1 Comment

Ugly!

No, not me.

I’m working on a database project with mrw. For lots of reasons, we’re doing it in Java. (ok, two reasons. JDBC exists; and Swing works on both OSX and Unix.) From time to time, I’ll probably post interesting design tidbits as I flesh out the basics.

Today’s design bit: Ugly has a core package, which deals with database abstractions and will also handle threading and query execution. The primary class is called UglyCore, which extends URLClassLoader, and it simply loads a property file to dynamically extend the classpath. This means we can load jdbc drivers using a more sensible model than “modify the startup script to include your driver jars in the classpath”. The only complicating factor is that classes from one classloader can’t talk to the other. So your startup class has to pass its name into UglyCore, and UglyCore loads that class using itself and calls newInstance(), casts the result to Runnable and calls .run().

For now this is a swing JFrame descendant, but you could implement pretty much any UI model you wanted. The only catch is that you can’t really pass args into it. For this I’ll probably need to create my own interface that does more than Runnable. You can’t just store stuff in a static member because it’s a different class object. Classloaders are a pain, but in this case the flexibility is worth it.

I’m kinda rambling here so I’ll wrap this up. Tomorrow I’ll talk about the driver abstraction model.

Posted in tech | Leave a comment

Home!

Here are a few of the things I’ve done since I last posted:

  • Had a taxi driver get lost in China.
  • Caught the ferry to the Hong Kong airport by about 5 minutes.
  • Rode on a hydrofoil.
  • Had the ticket printer jam as I was trying to get my boarding pass.
  • Ate western-style “food” for the first time in 12 days (burger king breakfast)
  • Had to use the bathroom as we were taxiing at HKG and managed to sit only 15 seconds before takeoff (mm… hung over).
  • Flew from HKG to NRT.
  • Had coffee in at Narita Int’l Airport.
  • Flew from NRT to ORD. Departure: 8pm 12 Mar 05. Arrival time: 3:15pm 12 Mar 05.
  • Watched The Incredibles.
  • Wrote a classloader that works.
  • Napped.
  • Landed at O’hare, went through immigration, climbed up the belt to get my suitcase because it kept jamming.
  • Spend $40 at Portillos.
  • Got home. “Hey Theo, I’m home!” *bump* *bump* *bump* *bump* *bump* *bump*”Daddy!” *wham*
  • Slept a lot.

It’s good to be home.

Posted in random | 1 Comment

T-5:45

almost all the way packed. The first ferry leaves at 7:45, hopefully I’ll be on it. Just need to take a shower, and walk through the apartment about 4 more times making sure I didn’t forget anything.

Posted in work | Leave a comment

Pianosa Decommissioning

we’re finally making some progress. There’s even a plan!

Posted in tech | Leave a comment

T-16:15

Just got back from shopping. Holy crap, is this a lot of stuff. I’m exhausted. Now to get some dinner, then go pack.

Posted in work | Leave a comment

T-22 Hours

Til I’m on a plane. At this point, I just want to be home. And eating about 4 beef sandwiches from portillo’s.

Posted in work | Leave a comment

More Pictures

By popular demand, more food pictures.

A very confused ATM:
ChinaTrip/IMG_5335

Hunan Beef:
ChinaTrip/IMG_5336

Delicious Fried Prawns:
ChinaTrip/IMG_5337

Tofu with Celery:
ChinaTrip/IMG_5338

And more! You know where to look…

Posted in work | Leave a comment

China, Day 9

Took my product team to Mao’s for lunch. Gave a presentation on my product at 2. Sales guy asked me to stick around and give it again to some perspective clients. A couple awkward moments in the latter, like when the client asked a question, the sales guy tried to answer in English, and neither one of them could figure out what they were talking about. They were speaking English only for my benefit. So I said, go ahead and ask questions in Chinese, it’ll be faster… so I spent half the time talking about the product and the other half the time wondering what questions they had. Ah well. Also awkward: quickly skipping slides like “this is my first time outside the US” and “we implement this using XML, SQL”, how we load from our internal standard xml format, etc. Stuff clients shouldn’t care about.

All in all, not bad. Didn’t flop. Export a chart to powerpoint didn’t work, though. Not sure what went wrong. It worked earlier in the day when I was prepping my slides. Didn’t exactly want to troubleshoot right there.

Ugh, what the crap. Can’t duplicate the failure now too. What a pisser.

Anyway, dicked around fixing report bugs until 7 then had dinner. Too many report bugs.

Posted in work | Leave a comment