Monday, February 18th, 2013
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.
Saturday, February 9th, 2013
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 [...]
Monday, December 31st, 2012
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 [...]
Thursday, November 8th, 2012
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 [...]
Wednesday, October 31st, 2012
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 [...]
Sunday, October 28th, 2012
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 [...]
Friday, October 26th, 2012
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 [...]
Tuesday, October 2nd, 2012
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, [...]
Tuesday, September 18th, 2012
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 [...]
Tuesday, September 11th, 2012
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 [...]