Category Archives: Uncategorized

GtkOverlay

You can abuse GtkOverlay to do some pretty neat things. Here is a widget that obscures portions of the underlying GtkTextView based on matching search results. Ideally the overlay would also draw some fancy bevels around the transparent areas.

gb-search-overlay.c
Update: Now with bevel.

Seasons Change

Today was my last day at Catch.com. I spent the last 20 months there building the back-end and sync algorithm for their collaborative notes platform. In the process I built a couple of async drivers for MongoDB (twisted and glib) and various tools around the database. 10gen took notice and so I’ll be heading there [...]

Data Structures: Trie

Over the holidays I often enjoy learning a new data-structure by implementing it. This year is no different, and so I implemented a Trie (pronounced “try”).
http://en.wikipedia.org/wiki/Trie
TL;DR

trie.c
trie.h

What is a Trie?

A Trie is a tree structure where each node of the tree contains a single character from an inserted string key. The first character of the string [...]

PSA: no more subdriectories in includes

If you are not writing GLib or Gtk, you probably don’t need subdirectories in your header paths. I, too, do this often, and I think I’m ready to stop.
#include <gtk/gtk.h>
For example, in the above example, we include gtk/gtk.h. This was necessary (at least at one time) because we would have gtk/*, gdk/*, and possibly other [...]

Update: Mongo-GLib

Mongo-GLib was an attempt I did to write a MongoDB driver for GObject. I actually use it quite a bit at work now. Especially the MongoBson and MongoBsonStream structures for reading MongoDB backups off disk. It turns out to be quite useful for analyzing your backups as they stream to disk.
However, last night I added [...]

Update: Gnome University

We got up another 45 or so students since the Boston Summit. This is starting to get scary. I’m having a hard time just keeping track of email addresses.
Based on feedback from people at the Boston Summit and IRC we are going to take a little bit different of a route than originally planned. So [...]

Update: Gnome University

Since getting back from the Boston Summit, I’ve been swamped at work. The good news is that I finally have a weekend free dedicated to work on it. So those of you that have sent me email, I’ll finally be getting back in touch with you. If you want to chat in person, join #gnome-university [...]

Boston Summit: Gnome University

For those that will be attending the Boston GNOME Summit, we will have a short session on Gnome University. We only have a couple of hours for the session, but my goal for being there this year is to help as many new people get setup developing for GNOME. So that includes jhbuild, git, C, [...]

Teaching C, Progress

This is going to be one of my most difficult projects to date, but by far the most rewarding. I sent out an email to the students this weekend that covers the basics of how I want to approach this.

We have an IRC channel setup on gimpnet (#gnome-university).
I hope to have a mailing list setup [...]

Thank You!

The abundance of you that have contacted me regarding my offer to teach you C is heart warming and clear evidence of GNOMEs future potential. I think this is very important and will do my best to get this started for as many of you as possible. If I haven’t contacted you yet, I will [...]