Monthly Archives: April 2010

April 2010

Simple merging and branching with svn

By |2010-04-19T15:36:00-09:00April 19th, 2010|Uncategorized|

Most of you probably already know how to do branches with svn and subversion, but I haven't been able to get off my butt to make it second nature until now.I found myself needing to make a rather large set of changes (adding a python scripting daemon, 8+ weeks of work) to my working copy [...]

Why ‘multiprocessing’ Doesn’t Always Work

By |2010-04-17T18:22:00-09:00April 17th, 2010|Uncategorized|

I have written quite a bit about removing the GIL from our system, and I see a lot of comments that say "Why don't you just use multiprocessing." and "didn't you know that python is not safe for real-time work?" I wanted to write a blog post to address those very questions so that I [...]

Creating and communicating with a child process using std/stdout

By |2010-04-16T19:29:00-09:00April 16th, 2010|Uncategorized|

I posted some example code on my wiki that shows how to create a child process on a posix system, and communicate with it using stdin/stdout. Read it here: notable snippets:static int child_pid = -1;static int child_status = 0;static int child_crashed = 0;int child_exited(int wait=0){ int status = 0; // printf("PARENT: waitpid %in", child_pid); [...]

Replacing qmake with a custom python build step

By |2010-04-16T19:25:00-09:00April 16th, 2010|Uncategorized|

Find the full script and wiki entry here: to integrate qmake into Visual Studio or Xcode can be a real pain in the ass. Instead, it's really not that hard to write a python script to update your moc, ui, and rcc files, since all qmake does is generate makefiles that do a simple [...]

I like this post

By |2010-04-16T18:56:00-09:00April 16th, 2010|Uncategorized|

Well written, well said:"My take on that is if you are employed as a professional Python software developer, then not writing tests is lazy, unprofessional, and unacceptable…period.""Robert mentioned that Ward Cunnigham's idea of "clean code", was that it was obvious what a function did. This isn't as easy as it sounds. In fact, this is [...]