Monthly Archives: August 2009

Faster code completion

The python code completion engine in MonoDevelop is now much faster. It’s was a simple fix and one that I think gets overlooked too often in these “dynamic” days.
Thankfully, python makes it easy to index information based on a fully-qualified name. Everything can basically be represented in package format such as “xml.etree.ElementTree.ElementTree.isinstance”. [...]

MonoDevelop Python Tutorial 1

I put together a quick walk-through of how to setup the Python add-in for real Python development. You will need a recent check-out of MonoDevelop trunk.

Python add-in for MonoDevelop (Updated)

I wrote a python add-in for MonoDevelop last year. Unfortunately, I have a hard time sticking to a single project and therefore it suffered a bit. However, we are getting ready for feature freeze for MonoDevelop 2.2 and so I kicked my ars in gear to fix a few things.
Namely, the code completion [...]

Visualizing gtk+ exposures postmortem

As of yesterday, I’m 25. It was a fun day of hiking, drinks, video games, and district9.
In gdkrecord, I added recording of GdkWindow sizes and exposure areas so that I can troubleshoot some pesky drawing problems with a few custom widgets.

And HTML5 Video below or at http://www.youtube.com/watch?v=XdOLjd52R4E.

You can view this HTML5 video at http://www.youtube.com/watch?v=XdOLjd52R4E.

Usage:

./gdkrecord-tool [...]

Gdk Event Loop Profiling

I put together a gtk-module yesterday to record events from the main loop for post-analysis. I’m sure this has been done before. You can find it at http://git.dronelabs.com/gdkrecord/.
GTK_MODULES=gdkrecord ./myprog
By default the output file is pid-prgname.gdkrecord. You can override this with
GDKRECORD_FILENAME=myoutfile
Inside of the tools directory is gdkrecord-tool. It can dump the information in [...]

First prototype

To start following through with my commitment of prototyping I set for myself, I put together a TreeMap widget this weekend. After seeing Miguel’s in Moonlight, I had to write one too. Turns out they are pretty fun. It uses cairo and pango for drawing.
Implemented in pygtk here and in C# here.
And Youtube [...]

On writing throw-away, prototype code

I don’t think I do enough quick prototyping. So to help me change that, I’d like to start putting together a “short list” of things I think should be explored. I’m not talking about a full fledged project with mailing lists and forums like typically happens. Just some code showing how things could [...]