Top.Mail.Ru
close
? ?

Entries by tag: python

BERJAYA
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


california

Montréal Python 1 is tomorrow

  • 6th Feb, 2008 at 6:00 PM

BERJAYA
Green Tree Python
Originally uploaded by nasmac.

Akoha’s sister company, Standout Jobs, has been hosting Montreal on Rails for quite a while. We figured we’d get into the act.

So we’re sponsoring the first Montréal Python gathering tomorrow. Sadly, we don’t really have enough space for everyone, so we’re commandeering the Standout Jobs offices upstairs. After all, what good are siblings if you can’t ask them for favours?

I will actually be on a train to Toronto, so I’m going to miss David Goodger talking about crazy awesome stuff he does in Python. But you should go!

Intimidated? Don't think that Python is for you? Worry not! Python programmers are friendly, charming, and helpful.

BERJAYA

Montréal Python 1
Thursday, 7 February 2008
18:30 – 21:00
Standout Jobs
3981 boul. St-Laurent #615
Free admission

( Website | Facebook | Google Maps )


Latest Month

June 2009
S M T W T F S
 123456
78910111213
14151617181920
21222324252627
282930    

Syndicate

RSS Atom

Comments

  • (Anonymous)
    14 Sep 2011, 00:19
    Why do you people live in Newfoundland? Anyone whith any knowledge knows that Newfoundland is a white province. The Irish, English and other white European cultures are the one's the settled NL and…
  • (Anonymous)
    1 Sep 2011, 22:05
    I am from newfoundland, and I have lived in Delhi, I was contantly stared at, and had shouts of abuse to me.

    I have also lived in Egypt, Saudi, Jordan, Kuwait. The abuse, harrassment, and fear…
  • (Anonymous)
    20 Jul 2011, 17:26
    Do you guys actually think that racism is an inherited trait? Newfoundlanders (and anyone other group for that matter) are only as racist as society will tolerate. If people speak up about it then it…
  • sfllaw
    28 Apr 2011, 18:04
    Yes, it is the same dough. You just have to fold it around your filling, like a dumpling.
  • (Anonymous)
    28 Apr 2011, 17:47
    wondering if the dough for cha siu bauu, bbq pork bun, is the same dough.
Powered by LiveJournal.com
Designed by Lilia Ahner
BERJAYA