Python Editors

This is one of those topics that pretty much everyone that’s done more than a few minutes worth of Python has cared about, at one time or another: Finding a good editor.

I’ve been using Notepad++ for several years now and while it’s good, it’s missing some features I want to start making use of, namely code browsing (class, function, variable).

I started off searching via Google and found both of these pages off of the official Python wiki:

Continue reading

Posted in Programming | Tagged , , , , , | Leave a comment

ActivePython license

It suddenly dawned on me yesterday that although the licenses for various modules that Synclosure uses are being respected, I hadn’t closely looked at the license for ActivePython, which comes into play when using cx_Freeze to “wrap” the application and ActivePython together for distribution.

So I checked it: http://docs.activestate.com/activepython/2.7/license.html

Continue reading

Posted in Programming, Windows | Tagged , | Leave a comment

Synclosure 0.2.1 (stable) released!

As announced here, Synclosure 0.2.1 has been released.

This release fixes an embarrassing bug which resulted in unusable Windows binaries. My apologies to everyone who encountered this problem.

Please try the release, provide feedback and let others know of Synclosure if you find it useful.

Ways to interact with the project:

Posted in General, Programming, Software | Tagged , , | Leave a comment

SVN rename *.{{} to *.{}

I imported files into a repo that were supposed to end with the .{} extension, not .{{} as they ended up having.

I could have used a shell script to accomplish this, but I’m forcing myself to do this with Python and relearn a lot of things I’ve forgotten in the last year or so. I placed the following in a file named fix.py and dropped it into the directory of files I wanted to rename. It was a shallow directory, so I didn’t have to recursively rename files.

import os
import glob
 
files_to_fix = glob.glob('*.{{}')
 
for file in files_to_fix:
    command = "svn mv %s %s" % (file, file.replace("{{}","{}"))
    os.system(command)

The command basically comes down to:

svn mv file.{{} file.{}

Update:

Instead of:

    command = "svn mv %s %s" % (file, file.replace("{{}","{}"))

I used:

    command = """svn mv "%s" "%s" """ % (file, file.replace("{{}","{}"))

This was to catch file names that had spaces in them.

Posted in Programming | Tagged , | Leave a comment

Unknown type ‘TGuid’

I upgraded from Inno Setup 5.3.10 to 5.4.0 and tried to build a project that has previously built without any issues.

Got this error instead:

Error on line 223 in setup.iss: Column 10:
Unknown type 'TGuid'
Compile aborted.

A while back I had stopped using the Non Unicode Inno Setup and started using Unicode Inno Setup instead. When I upgraded to 5.4.0 I accidentally reverted to the Non Unicode version. Once I removed ispack-5.4.0.exe and installed ispack-5.4.0-unicode.exe the error went away.

Posted in Programming, Tips | Tagged | Leave a comment