Wednesday, November 30, 2011

Sleep, sleep. I know that I'm only dreaming

Ladies and gentlemen of Calgary West, your hardworking Government of Canada Harper Government Member of Parliament in action.

For those of you not from Calgary West (or those of you who are from Calgary West, and don't know who your MP is), he's the one falling asleep in the background.

Tuesday, November 29, 2011

Is it over yet?

Won’t I ever be glad when November is over.

This “movember” thing is a good idea, but I’ve lost count how many times I’ve said to a guy, “Won’t you be glad in December when you can shave that gawdawful thing off?”

Only to have the guy tell me he’s been growing it since he was sixteen.

Friday, November 25, 2011

localho ?

My local server was not running when I tried to hit the web page.

Chrome offered me a less than helpful suggestion.

localho

Thursday, November 24, 2011

Don't be surprised when a crack in the ice appears under your feet

Good thing Dear Leader says climate change is a myth.  Otherwise, this might worry me.

Research published in a top scientific journal says Arctic sea ice has declined more in the last half-century than it has any time over the last 1,450 years.

“When we look at our reconstruction, we can see that the decline that has occurred in the last 50 years or so seems to be unprecedented for the last 1,450 years,” Christian Zdanowicz of the Geological Survey of Canada said Wednesday.

“It's difficult not to come up with the conclusion that greenhouse gases must have something to do with this,” added Mr. Zdanowicz, one of the co-authors of the report in Nature.

“We cannot account for this decline by processes that are ‘natural.’”

At least we have an Environment Minister who knows what ozone is.  Oh, crap...

Wednesday, November 23, 2011

Revisionist history

Cashbox Tony Clement tries to pull a fast one, editing his answers from a committee hearing into the $50 million gazebo slush fund.

The Opposition unveiled Wednesday both the unedited and edited versions of a Hansard transcript of a Nov. 2 Commons committee meeting.

Asked twice during the meeting by New Democrat MP Charlie Angus whether he would table the 242 completed project forms, Clement said "sure" each time, according to the unedited record.

The word "sure," however, is missing from the edited version, Angus said Wednesday.

Monday, November 21, 2011

Things they teach in MBA school

It's been a while, but it's time for another nugget from MBA school.

You should survey your employees regularly.  You know, at least every couple of years.  You can find out their moods, their likes and dislikes. 

It is especially touching when employees receive the invitation to complete the survey "From the Desk of... [your name]".  It shows that while you care to hear their grievances, you are not about to stoop to the level of the individual work units and send your own email.

Friday, November 11, 2011

Today in "things we already knew"

The Conservative Party of Canada is guilty of election fraud.  You know - guilty.  Of cheating.  Fraud.  Stealing, if you will.

The Conservative party and its financial arm pleaded guilty Thursday to a total of four charges of exceeding the party’s campaign expenses for the 2006 federal election and failing to report the proper amount

Does this mean we can look forward to Tony Clement appearing in leg irons and an orange jumpsuit soon?  Let's hope...

Question on curling etiquette

Curling is a sport that is known for having a long tradition of etiquette and sportsmanship.  At most competitions there are no officials.  Players are expected to report rule infractions when they occur and scoring is determined when the two vice-skips agree on the outcome.  Players shake hands with the opposition before and after a game.

My question has to do with mixed league curling.  The situation: your vice is standing in the house at the far end, and you're in the hack ready to throw.  Your vice has a black brush head, and her legs are together, directly behind the brush.  It is difficult to distinguish the target from the black pants and shoes she is wearing.

Is it cool to yell down the ice and ask her to spread her legs?

Does this make a difference if it's your wife?

Unique quote of the day

Driving around yesterday at lunch, running a few errands, I heard an interview with one of the Buffalo Bills players on the radio.  He was asked about playing in Dallas, at the new stadium.  He said:

"It's one of the most unique places to play, because of its uniqueness."

Thursday, November 10, 2011

Friends don't let friends use Internet Explorer

How I lost an hour yesterday...

I have a slider widget.  It's made up of several divs, and looks like this:

slider

The slider “thumb” – the part you can drag to adjust the value, is in its own div:


<div style="width: 16px; height: 16px; top: -4px; left: 20px" id="sliderThumb" class="thumb" onmousedown="dragStart(event);"></div>

I used a combination of CSSDesk and CSS3 Generator to build the CSS for the control.

The CSS for the thumb looks like this:

.sliderThumb 
{    
 position: relative;     
 -moz-border-radius: 5px;     
 -webkit-border-radius: 5px;     
 border-radius: 5px;         
 background-image: -moz-linear-gradient(top, #4677AC, #223A54);
 background-image: -webkit-gradient(linear, center top, center bottom, from(#4677AC), to(#223A54));
 background-image: -o-linear-gradient(top, #4677AC, #223A54);
 background-image: linear-gradient(top, #4677AC, #223A54);
 filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#4677AC', endColorstr='#223A54');
 -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#4677AC', endColorstr='#223A54')"; 
 -moz-background-clip: padding-box; 
 -webkit-background-clip: padding-box; 
 background-clip: padding-box; 
}

The problem I ran into is that Internet Explorer wasn't catching the onmousedown.  So I couldn't drag the slider thumb.  Everything worked great in Firefox 8, Chrome 15 and Safari 5.

After an hour on The Google, I found a tip.  Setting the background image to none for IE would allow the mouse event through.  For IE, I added:

background-image:url(/none);

and everything worked as expected.

Please, if you have the choice, don't use Internet Explorer.

Thursday, November 03, 2011

crashy crashy!

A while ago, Firefox crapped out on me.  Turns out, there's an about:crashes page in the browser.  It displays details about the crashes that have happened, and you can track related bug reports from there.

There's also a comments tab that shows what other people have entered when reporting the crash.  Some of the best comments for the crash I had:

reparatiooooooooooooonssss!
Submitted: 2011-11-01 11:18:22-07

this is bullshit
Submitted: 2011-10-27 23:33:24-07

I was watching goswser destroy a guy from Oakland University in our Collegiate Starleague match today, and I alt-tab to upload the replay and lo and behold, I get this crash reporter instead of firefox. We did win though, so woo!
Submitted: 2011-10-23 15:02:33-07

Why do you release new versions be4 you fix the bugs????
Submitted: 2011-10-31 12:19:42-07

Fuck you mozilla!
Submitted: 2011-10-26 21:45:55-07

you suck
Submitted: 2011-10-21 13:37:10-07

plantage de merde
Submitted: 2011-10-26 07:51:21-07

crashy crashy!
Submitted: 2011-10-28 21:12:34-07

Wednesday, November 02, 2011

Happy 20th birthday, Vim!

Happy 20th birthday, Vim!

Hands up if you've written code in vim (or vi).  You punks these days with your fancy IDEs.  You don't know what it's like to write code for real!  Get off my lawn!