Loading a Python module from file

April 5th, 2012

I find myself often in the situation, where I need to load a particular Python file as module.

more

in Python

It’s been a while …

December 7th, 2011

… I realise that, but things have been crazy busy, and since we moved and the (ever so) long commute is now history, I didn’t get to write much the past months. This will change, but for now, just a quick reminder on how to contact me:

more

in Site

Simple RPC Python Module Part III

April 13th, 2011

Last part of this series, let’s wrap up the details of the server and exception handling, plus some other small details.

more

in Python

Simple RPC Python Module Part II

April 11th, 2011

Let’s have a look at the client implementation. On the client side, we mainly use two objects to communicate with the server: the client object and the attribute wrapper object.

more

in Python

Simple RPC Python Module Part I

April 8th, 2011

Over the years, I’ve stumbled across the need of a simple, yet effective RPC system in Python. I’ve used CORBA in a C++ application before that was steered over Python, and that worked alright, but I’ve often needed something simpler, and a bit less elaborate in it’s setup and configuration. I want to document here what I came up with.

more

in Python

Terminal Vim Resizing

April 6th, 2011

Another little bit of vim configuration I wrote, this bit of code helps me to re-size a vim process running in a terminal.

more

in Vim

Bash Installer Script Library

April 4th, 2011

A while back, I was tasked with automating a very lengthy installation process, which consisted of downloading a big number of open source packages, configuring, compiling and installing them. Being the programmer I am, I ended up writing a sort of bash library with functions that made it easier to write and maintain such installation scripts. The installation scripts are easy to read and most of the tedious, repetitive work is done under the hood.

more

in Unix Tools

Subprocess Output Caching

April 1st, 2011

A little bit of Python code to catch the output of a sub-process life, print it out to another file object and at the same time cache it for later. Useful for start-up scripts. more

in Python

Maya Utilities Part IV

March 30th, 2011

In the last of this short series about my Maya Utilities code, I want to look at how it all comes together, how I use it on a daily basis, and share the code with you. more

in Maya, Python

Maya Utilities Part III

March 28th, 2011

The last module in my current Maya Utils collection, files.py, deals with files and projects, and shows off a slightly more complex button.

more

in Maya, Python