gordon.dewis.ca - Random musings from Gordon

Subscribe

This morning’s implosion

July 13, 2014 @ 09:25 By: gordon Category: Out and about, Photography

I headed out to Dow’s Lake this morning to watch the Sir John Carling Building be demolished. Shortly before 7am the sirens went for the last time, there were some booms and the building disappeared from Ottawa’s skyline forever.

Before:

IMG_4780

During:

After:

0125144645b9d1ba25f78734725d6c7f47dd383195

I’m not going for a ride after work

July 08, 2014 @ 16:34 By: gordon Category: Weather

I thought I’d take a quick look at the weather to see if a bike ride after work would be possible.

TAF CYOW 081741Z 0818/0918 20012G22KT P6SM SCT020 BKN120 TEMPO
 0818/0822 5SM -SHRA BR BKN020 PROB40 0818/0822 VRB20G30KT 1SM
 +TSRA BR SCT015 OVC030CB
 FM082200 20012G22KT P6SM -SHRA BKN040 TEMPO 0822/0901 VRB20G30KT
 1SM +TSRA BR BKN008 OVC020CB
 FM090100 20012G22KT P6SM -SHRA BKN040 TEMPO 0901/0904 3SM SHRA BR
 BKN020 PROB40 0901/0904 VRB20G30KT 1SM +TSRA BR BKN015 OVC040CB
 FM090400 18019KT P6SM BKN012
 FM090600 22008KT 6SM BR SCT006 OVC012
 FM091000 26012G22KT P6SM BKN030
 RMK NXT FCST BY 082100Z=

I guess not, particularly as we’re under a severe thunderstorm warning at the moment. Oh well.

And the radar is kind of exciting, too…

20140708-163103-59463931.jpg

Crosswalk countdown timers: A mixed blessing

July 07, 2014 @ 00:11 By: gordon Category: General

A story on NPR that was mentioned on Slashdot a couple of days ago talks about something that I’ve been wondering for a while: are countdown timers on crosswalks at intersections leading to a decrease in pedestrian accidents at the cost of an increase in the number of vehicle accidents at these intersections? According to the NPR story, the research seems to suggest they are. Read the rest of this entry →

Rain rain go away!

June 24, 2014 @ 09:57 By: gordon Category: Weather

It looks like we’re in for some (potentially) exciting weather today:

TAF CYOW 241138Z 2412/2512 16008KT 6SM -SHRA BR SCT008 OVC015 TEMPO
2412/2414 4SM -SHRA BR BKN008 OVC015
FM241400 19010KT P6SM -SHRA BKN030 OVC080 TEMPO 2414/2418 5SM
-SHRA BR OVC020
FM241800 20010G20KT P6SM SCT020 BKN060 TEMPO 2418/2423 5SM -SHRA
BR BKN020 OVC050 PROB30 2418/2423 VRB15G25KT 2SM TSRA BR BKN020
OVC030CB
FM242300 20010KT 5SM -SHRA BR OVC020 PROB40 2423/2503 VRB20G30KT
11/2SM +TSRA BR BKN006 OVC020CB
FM250300 35005KT 3SM -SHRA BR OVC006
FM250600 01005KT 3SM -DZ BR OVC006
RMK NXT FCST BY 241500Z=

Rain with periods of rain (just to be different!), gusty swirling winds, possible thunderstorms, and drizzle. Whee.

Conditionally executing external code in SAS

June 23, 2014 @ 16:45 By: gordon Category: Programming, SAS

I use SAS fairly regularly in my job. I’ve taken a number of SAS programming courses, yet I don’t get to use much of what I’ve learned because the manner in which I use SAS is fairly basic. (A lot of SAS courses seem to use examples that don’t really relate to my work, such as business processes, evaluating credit scores and so on. I do a lot of statistical analysis of survey microdata.)

In a program I’m enhancing, I want to execute some code in another SAS program based on whether a certain variable is set to a certain value. In most languages, such as Perl or C, you would put this in an if-then-else construct and you’d be done. Because of the procedural nature of SAS, with data steps and macros, it’s not that straightforward.

I did some googling on the basis that I can’t possibly be the only person wanting to do this (it turns out I’m not) and found a thread on this very topic in the SAS Support Community forums. Wading through the responses, I found a several different ways people suggested doing it; some people who couldn’t possibly envision why you’d want to do it; a couple who got hung up on the content of the programs that the original poster wanted to conditionally execute; and one answer that stood out from all the others in terms of its simplicity, which I’ve included almost verbatim below, with some comments for clarity. Read the rest of this entry →

Matt Young: Staying classy in defeat

June 13, 2014 @ 16:31 By: gordon Category: Current affairs, General

A friend on Facebook mentioned a tweet by Matt Young (@mattyoungpc), a local PC candidate who was not elected during yesterday’s election, that is worth mentioning for posterity’s sake in the event that when someone from the OPC party demands he takes it down:

Classy, eh?

It’s been a while…

June 11, 2014 @ 16:29 By: gordon Category: General

I haven’t blogged about anything in the last couple of months. It’s not that I haven’t been up to anything, I’ve just been busy. Since my last blog post I’ve been to Toronto twice, rang handbells for the end-of-year concert (bells run from September to May for me), done some geocaching, taken some photos (see my Flickr feed) and started steering dragonboats several times a week. The Ottawa Dragonboat Festival is taking place in just over a week’s time, so I’m on the water Monday (twice), Tuesday, Wednesday (twice) and occasionally on other days to help out teams that need a steersman for a practice. As things stand right now, the only day this week that I’m not going to be on the water is tomorrow, but that could change.

Speaking of Thursday, please be sure to exercise your right to vote in Ontario’s election by voting for your favourite candidate or showing up at the polling place and declining your ballot. If you don’t vote for your preferred candidate because you want to “send them a message”, you don’t get to complain when they don’t get in and you’re upset. And if you don’t vote at all, or at least decline your ballot, you don’t get to complain at all.