September 2006

SAS lag problems

I just found an interesting (that’s interesting in the ‘I just spent an hour debugging that?’ sense) characteristic in SAS. If you have a variable, x, and are using the lag of x, do NOT put the lag(x) inside a conditional statement. This can apparently cause some pretty strange results. It is probably easier to see through code than to explain:

Continue Reading »

Programmer
SAS
Statistician

Comments (23)

Permalink

Active Window Logger

I was curious how I spend my time and wanted something simple to log which window was active on my computer. I couldn’t see anything that did this easily on the internet, although there is a (more sophisticated/complicated) browsing history tracker, and I needed to relax for an hour or two so I thought I’d give it a shot in Python and see what came out. After looking at the flashing taskbar icon tutorial, how to get the currently active window, how to detect if Windows is idle and how to get rid of the console window, I could finally start programming. I really don’t know how people programmed before Google.

Continue Reading »

Programmer
Python

Comments (9)

Permalink

Locosystech NaviGPS BGT-11 Review

Locosystech NaviGPS BGT-11

This summer I needed a GPS logger for some field work. After looking through a few different possibilities, none of which were particularily satisfying, I finally found the (ununiquely named) NaviGPS GPS from GPS Central for $200 Canadian. At the time, there weren’t any reviews of it online. I’ve come to depend on reviews whenever I buy something so I figure I’ll do my part and post my review of it. While digging up the company link, I noticed on they’ve changed the name to a ‘GT-11’ and redone the layout of the website. Looks better now. I’m not sure the name is any better though. Sounds like a car. Anyway, I also noticed they have drivers for Mac, XP and Linux so that’s a plus if you need that. 1/18/2007 Edit: It looks like the name has changed again. It appears to be called an Amaryllo Trip Tracker now. Not sure what has changed but the picture sure looks the same as my unit except the big A logo.

Continue Reading »

Reviewer

Comments (0)

Permalink

Getting Rid of the Python Console Window

Python sure is handy. I just found out that if you make a program that uses wxPython or something to generate windows and don’t want the big (somewhat ugly) black console window, all you have to do is change the program name from program.py to program.pyw or run pythonw.exe instead of python.exe. Pretty obvious now but took me a few minutes to come up with the right google. Now I just wish it wasn’t using 16 megs of RAM for a 30 line program…

Programmer
Python

Comments (1)

Permalink

Working Offline

I was up in Cape Breton doing some field work and had to do without regular internet access. After 3 years of high speed wireless internet at home and university quality LAN’s at work, this came as quite a change. Dealing with this brought me to a couple useful programs.

Continue Reading »

Programmer

Comments (0)

Permalink