Thursday, February 7, 2008

A snowy morning in February


I wake up anxious that I will be late for my morning swim with the Nepean Masters Swim Club. Since I'm practically blind without my contacts on, I press the light switch on my HRM and read 3h39. Phewph, I relax and let myself go back to sleep knowing that from now on I will sleep lightly and wake up frequently to check the time. 4h41 and then 5h11 marks the time to turn off the alarm clock. It goes off a minute later anyway, but Greg doesn't wake up. I lay in bed thinking that it's best not to get to the pool too early, because that means sitting around the pool, shivering and grumpy until the lifeguards are ready. At 5h21, I get up, sinking the mattress beneath me, causing Greg to stir, and then I promptly stumble into everything on the way to the bathroom : corner of bed, laundry hamper, bathroom door. Greg sighs. In the bathroom, the pep talk starts : As soon as you have your swimsuit on, you'll start to wake up! Just a few sips of Gatorade and you'll be in great shape! I strip and look at the scale for good news : yes, I haven't gained anything since yesterday. The rest of the morning's activities : warming up the car, getting water bottles, mixing in gatorade, finding clothes and sweatshirts somehow seems to involve many noisy trips into the dark bedroom, when Greg finally gives up and turns on the light to help me find my things. I tell him the pretty news : Snowstorm ! So we need to trade cars! He stares ahead for a few seconds, squints at me, pale and heavy with sleep. Then he agrees with a slight nod of his head as he stiffly gets out of bed. I leap down the stairs, stuff everything in my big black Adidas bag, wrap my pretty scarf on tight to keep the chilly flakes from tickling my neck, pick up my soft knit hat from the wet entryway , doubtfully push it over my hair, don my ski mitts, and slip my feet into the my big warm Kamiks. By now, the car is toasty warm and buried beneath several inches of airy light snow. The neighbourhood is so pretty in thick layers of white at this pitch black hour of the morning. I feel like a kid as I clear the car with the big red snowbrush. The snow flies into the air with every stroke, lingers for a second and then reluctantly floats down to the ground. This is a good omen : I am never grumpy at swim practice when I start my morning playing in the snow. The drive to the pool is not unlike riding a toboggan down a long shallow slope through mounds of fluffy snow. At every stop , I hold my breath in anticipation : will the tires slide or will they stick ? The snowplowers rush down Greenbank ,but it hardly shows since the snow is piling up so fast behind them. Finally, I slide my way into the parking lot. Snowflakes kiss my cheeks as I walk to the building. Today's swim is bound to be fantastic!

Tuesday, February 5, 2008

Ubuntu : Getting the keyboard to work!

The keyboard solution was far from obvious and I had to dig around the ubuntu forums to find a solution.

Here it is (uses System->Preferences->Keyboard)
1) Set the keyboard model to Macintosh(not Macintosh old, just Macintosh)
2) Set the layout to US English

ubuntu on acer aspire 5920


I just bought a new laptop less than 2 weeks ago and I installed Ubuntu right away.. well, as soon as I could anyway (I´ll share the story about all my adventures some other time!)

My latest problem was: How do I get the sound to work??


After much ubuntu forum searching, I found the solution...



Open volume control (double click on the speaker icon in the upper right corner of the screen)
In volume control make sure that in File -> Change device the "HDA Intel (alsa mixer)" is selected.
Go to Edit -> Preferences and select all tracks in the list.
Unmute and increase volume on "PCM", "Surround", "Center", "Side" and "LFE". Sound should work nicely now. Optionally mute the micophone sliders.


Thanks ¨DrunkDelirium¨... now if only I could get the keyboard fixed...

Monday, October 29, 2007

.NET and Multiple Inheritance

Thanks to LinkedIn, I hooked up with an old colleague from SR Telecom last week. We had only worked together for a few months, so I asked him if he still remembered me. He replied with the affirmative and asked me if I still hated multiple inheritance.

"Of course I do and thankfully I'm working in VC#.NET which has interfaces that you can use in addition to abstract or base classes!" . My friend replied that he is still using (abusing!) multiple inheritance and C++ at his new job. I got the impression that he still likes it, in spite of his many years of work experience. That begs the question : has he ever had to maintain any of his code ?

Luckily, I got my first taste of multiple inheritance early in my career when I inherited someone else's code. At first, I was impressed with the complex structure. I felt that my predecessor had left me a clever puzzle to decode! Tracking down the final implementation of virtual classes that had been specialized in a child class of two incestually related parents was a good challenge for a junior programmer. However, I quickly tired of this task and joined the growing ranks of weary developers who wanted better rules so that they could get on with building features instead of tracking down bugs.

Since then, I have not been called in to clean up any other multiple inheritance code. Now, that I've been doing VC#.NET for a year, I am hoping that I won't ever have to go back to it again.

Interfaces are a clean solution for allowing designers to present a "tailored" view of their objects for various clients while still allowing for sharing of common code through specialization.

I'm still using .NET 2.0 so I'm looking forward to using mixins on 3.0. That reminds me, I better get searching for a free trial version of it to play with.

Thursday, August 30, 2007

swim effects

I tried out a morning swim today, at 6h00, in the Walter Baker Sports Centre just down a few roads from my home. It was dark and spitting large warm drops so I drove the car instead of commuting. I was a bit tired and stiff from yesterday's early morning weight training , so was pretty hopeful when I walked into a quiet , empty changeroom. "Maybe it's cancelled for the last week of August before the new fall schedule starts... " but when I walked into the pool area, I saw at least a dozen swimmers chatting around the deck. So I compromised with myself and agreed to just take it easy today. It's a good thing too, since every muscle in my body ached as I reached and pulled and kicked and turned in the water. Finally things got better, but at just that moment, my coach asked me to do some breast stroke. Like a rusty machine, all the muscles that had escaped from the freestyle stroke, complained and held back. But I got over that hump and ended my swim feeling triumphant over the mornings stiffness. I was deluded though : just a few hours later, I get up from my desk for a tea and ... eeek... I'm a creaky tin woman again!

Wednesday, August 29, 2007

nora-drop tuesday ride on sasaparilla

Last night's ride on the Sassaparilla trail was a lot of fun. My bike was not exactly co-operative though. I had TWO flats on the way back from Lime Kiln over to Emeka's house (for BBQ!) . Worse, I LOST my husband's yellow lensed glasses when I left them in the parking lot where we changed the flat.

Enough of the bad stuff, here's the good stuff : I got to trail run with my sweet HID light , carrying my injured bike on my arm for awhile and then running alongside it through the jeeptrack and paved trails. It was very pretty.

Thank god Richard and Christian waited for me , otherwise I would surely have got lost. There were tons of Tees in the singletrack from Lime Kiln to the parking lot where Richard was waiting, so I was very grateful when I saw Christian riding back to get me.

Richard knows his way through that maze of trails and he guided us back on a short path. Nonetheless, it felt long since I was running with 2L of water , plus repair kit and HID battery bouncing around on my back. Yeah, my appetite was well worked up for the burgers at Emeka's.

Wednesday, August 22, 2007

Much later..

I had a moment of inspiration today. So I thought I try to blog again.

I went for a dip in the river this morning, around 7h30. It was very cold. I went with my hypnotist to get over the fear of the deep dark water. I wore my wetsuit and we stood in the shallow water, up to my shoulders looking out at the beautiful river. A curled little white feather floated lazily nearby. I was drawn into the tips of these weeds just peeking out of the water so I grabbed the canister and headed out there, humming a few bars of Bach to keep any possible anxiety in check. When I reached the weeds, my legs and feet got tangled up but it was so enchanting to be right there looking at them. It was quite thrilling to be in the deep water without being immobilized with fear, even though I was holding on to the bright red canister hat Susan had affectionately named "Athena". I kicked about around the river and we eventually headed back to shore. It was so beautiful though. The cool river had a rhythm of its own which stayed with me throughout the day. Having drunk such a beautiful calm morning at the river made me feel connected to the world.