nightlife

The S.W.A.P. Team — launch party and fundraiser

Take one part vintage clothing store, add some cool DJs and throw in a dance party.

What do you get?

The S.W.A.P. Team
North America’s biggest clothing swap charity.

And we’re throwing a party tonight!


Our Montréal launch party is raise awareness and funds for
the best clothing swap this side of the ocean.

And you’re invited!

Make sure to R.S.V.P. to
aleece@xmedia.tv
or on Facebook.

The S.W.A.P. Team
Launch Party and Fundraiser
Tuesday, 22 June 2009
18:00 – 23:00 EDT
28, rue Notre-Dame Est. Suite #400

( Français | Twitter | Facebook )

hackergotchi

cygwinreg: Windows registry access for the Cygwin toolkit


Windmill
Originally uploaded by sfllaw.

I’ve been tilting at windmills, recently.

Windmill, actually.

It’s a Python program that lets your computer drive a web browser, without any human interference. We use it at Akoha to run tests that make sure that our website works with Firefox.

We use it to help us test our site with Internet Explorer. So I dutifully set up a Windows machine and tried to get it to run our test suite. I quickly realized that our software was going to need something more Unix-like.

Cygwin is the answer to that problem. It provides a full POSIX environment inside Windows. I built all our software and tried to fire up Windmill.

ImportError: No module named _winreg

Uh oh! Windmill needs to access the Windows Registry. According to the winreg documentation, it’s only available for Windows. Apparently, Cygwin doesn’t count as Windows. So I spent the weekend writing a library that fills in the gap.

cygwinreg allows you to read, write, and explore the Windows Registry from inside Cygwin. Whenever you want to use winreg, use cygwinreg instead.

import sys
if sys.platform == "win32":
    try:
        import winreg
    except ImportError:
        import _winreg as winreg
elif sys.platform == "cygwin":
    import cygwinreg as winreg

After I did that, I plugged it in, stepped back and ran my tests. They worked!

Download cygwinreg
or install it with
easy_install cygwinreg