Category Archives: Uncategorized

Conquering DBus

I haven’t written in a while because I’ve been pretty heads down on a project I’m working on. Hopefully, it will be in a shape where it makes sense to share with everyone before too long.
In this project, I needed an RPC system that could have multiple transport and be fully asynchronous (with GAsyncResult, [...]

Random Updates

It’s been a while, so I figured I’d just jot a few things down that I’ve been doing in my spare time.

Went to Yosemite again in January.   We usually go about 3 times a year.  We have a bigger trip coming up in March.  If you are in the area and want to join, [...]

readline

I made a crappy little abstraction on top of readline to make things simpler for myself. Someone might find it useful.
#include "egg-line.h"// … EggLine *line = egg_line_new (); egg_line_set_prompt (line, "Linux-Router> "); egg_line_set_entries (line, completion_tree); egg_line_run (line);// … 
Code: http://github.com/chergert/egg-line/
Example: http://github.com/chergert/egg-line/blob/master/main.c

Rapid Prototyping Tools

It’s nice to see people working on meta recently. For example, Quickly. After some long discussions with an architect at my last job, I hacked up something drastically different for myself. It’s a graphical tool to combine lots of meta pieces together from visual designs.
However, my available time keeps shrinking so I [...]

GDateTime

I got fed up with working around all the limitations with date and time in glib and C (time_t, struct timeval, struct tm, GTimeVal, GDate, etc) so I decided to write something new.
The result is GDateTime. It handles dates and times from 1/1/1 to 12/31/9999 on 100-nanosecond intervals. As requested by a few [...]

New Job

I’m now working at VMWare. I’m half way in the process of moving to San Francisco and should be up in the SoMa area full-time by next week.

Yosemite – August 2009

I go to Yosemite a few times a year because its possibly the best hiking in California. Drew and Jordan went with me and took some amazing photos. There was a large forest fire at the time which made hiking Half Dome impossible due to smoke inhalation.
Regardless, they got some really good photos [...]

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 [...]