Wednesday, November 30, 2005

Crash and Burn

Over the weekend the power supply in my main PC winked out. One minute everything was fine, the next all was silent and the smell of burned wires & hair filled the room.

After replacing the power supply, my OSs were unable to boot. I think that the power supply took out some tracks on those drives, so I'll have to wait until the X-Mas break for some time to fix them. Until then, I'm working on my P2/FreeBSD machine which is working just fine.


On a side note, here's a picture of a former co-worker and I during a debug session.

Thursday, November 24, 2005

Winnifred can write her name

The other day Winnifred asked from the other room how to spell her name. This is what she wrote down (without assistance!)



(And she's not even three yet)

Saturday, November 19, 2005

BST Assignment almost finished

My partner & I just about wrapped up the coding portion of our DataStructures/Algorithms assignment 3.

It's a C++ application, heavy on the templates. Basically it implements a Binary Search Tree, balances it and displays the differences.

Here're a few screenshot of it in action:



Monday, November 14, 2005

Sun Tech Days: Toronto

I won't be able to make it, but this event looks good.

It's too bad that they're charging $80 to attend.

Sun Download: Fatal Exception

Here's the screen that I received after trying to download the new Java Developer IDE from Sun. Nice


Wednesday, November 09, 2005

Style and elegance

http://www.alistapart.com/ is a nice site with lots of examples on CSS, design and philosophy.

Tuesday, November 08, 2005

Solaris 10 got it right

Wow-- Finally someone has implemented this feature into their userland.

[28] /bin/rm -rf /
rm of / is not allowed
[29]
Beautiful!

Saturday, November 05, 2005

Ring Ring! - New Phone

Ok, I'm on my third cell phone in six months. It's better than it sounds.. I think.

Last week I switched cell providers and received a phone upgrade and a new number. Well, today I did it again.

I'm now the new proud owner of a Motorola V551 ( VGA Camera, Video & Bluetooth ) as well as (get this) a Peterborough phone number. Ha! It's ammusing to me considering that I live in Toronto, but I spend most of my days in Peterborough attending classes at Trent University. And since my phone is primarily used for talking with my wife, it was just a lot cheaper to get a 705 area code number.

Anyhow, it's a very slick little phone. Especially for someone like myself who treats their cellphone like a toaster. If it makes/receives phone calls, then I'm happy. Everything else is icing on the cake.

Here's a link to a review if you care.

Also, I think that I'll buy a USB Bluetooth dongle so that I can get the pictures off of my phone and to play around with it a bit. After spending 2+ years co-developing a bluetooth stack for embedded devices, you'd think that I'd be sick of the stuff... guess not.

Oh, here's an awesome link to some Motorola/Linux stuff.

Thursday, November 03, 2005

Design Patterns

Well, it looks like I am learning some things at school.

In my Object Oriented Design class, we were discussing the usefulness of the singleton class. I've been doing just this before, but in a less than elegant manner.

First, a singleton is an object that can only be instantiated once. It handles this by making its construtor(s) private, and having a class method called "instance", which returns a pointer to an instantiated object. This pointer being a class attribute of the said class.

Now, the elegance of this method is that it doesn't pollute the global namespace (in C++). I've always done something along these lines:


static Whatever * instance = NULL;


Whatever * Instance(void)
{
if( instance == NULL )
instance = new Whatever();
return instance;
}


Now, in my implementation, there's a big ugly function "::Instance()" in the global namespace, which is fine for small applications, but lousy for larger ones, or libraries.

The singleton fixes this by having its initializer scoped by the class name.

Nice.

=====

Some handy links:

Surgury number 3

Findley's surgery went well. It was only a day surgury, so we were out of the hospital by 3pm(ish) which was really nice. The surgeon is letting us take care of her aftercare instead of ordering a daily visit from the nurse. We have a surgical clinic visit in about three weeks to review the recovery and healing of the surgury.

A nice thing happened while being discharged. When Findley was recovering from her 2nd surgury, her doctor/surgeon went on a two week leave and another staff surgeon took over Findley's case.

While we were being discharged by our surgeon, the replacement surgeon walked in to take care of something, and our surgeon mentioned to him who Findley was ("This is Findley Blair"). The 2nd surgeon couldn't believe Findley's progress and was just a little taken by her.

It's really nice to see (from the Doctors) that your kid isn't just a body part that needs to be fixed, but is a person and someone's child. That was really nice to see from both of them.


Halloween

Halloween came and went, and I missed the entire thing.

Had to be in Peterborough that night, and missed the fun of trick or treating with the girls. Winnifred was a lion & Findley was a mouse. I'll post some pictures as soon as I download them from the camera.