Tag Archives: programming

Ok, I get it (or: Gtk+ is better than I thought).

In my last post, I kinda whined about the awkwardness of the Gtkmm API. At least, it seemed that way at the time. I toyed with libglade and Gtk+ for a while first and everything seemed very straightforward and easy. … Continue reading

Posted in Uncategorized | Tagged , , , | Leave a comment

ksh stuff

Below is a little code I use with ksh. The wt() function can only be expected to work in an X-term. The code sequences are different for other terminal emulators. DIRSTACK=$PWD function dirs { print $DIRSTACK }   function pushd … Continue reading

Posted in Uncategorized | Tagged , | Leave a comment

Discovering Ruby

As a software engineer who works on embedded systems and deals with things pretty close to the metal at times and primarily still works in C, I don’t get exposed to some of the new stuff that’s going on. I … Continue reading

Posted in Uncategorized | Tagged , | Leave a comment

Quick and simple debug stream for C++

Ever need to set up a quick and simple debug/logging stream for your application without having to deal with large frameworks like log4cpp or *shudder* log4cxx? There’s also libcwd, which seems really neat, but also very large. I didn’t want … Continue reading

Posted in Uncategorized | Tagged , | Leave a comment

C++ Style Redux

I just discovered the POCO library. It’s pretty neat-looking: it has a number of components that provide functionality that goes beyond the standard C++ library, such as threading support, networking, XML reading/writing, etc. The cherry on top is that not … Continue reading

Posted in Uncategorized | Tagged , | Leave a comment

Understanding STL Containers

This article is a really great way to start understanding STL containers. It discusses the differences between a vector and a deque (a double-ended queue) (you’ll often see C++ rookies as “what’s the difference between vector and queue” or something … Continue reading

Posted in Uncategorized | Tagged , | Leave a comment

Nifty utility for POSIX systems

It’s called bar. It seems to be a nifty little script that does what you would normally do with simple invocations of cat, tar, and cp, but it prints a progress bar. Like this:

Posted in Uncategorized | Tagged | Leave a comment

C++ style anarchy

I’m sure I’ve blogged about this before. I just don’t know where. It drives me nuts. In what other languages, other than C and C++, is it acceptable to totally ignore the style that the standard uses? In Java, the … Continue reading

Posted in Uncategorized | Tagged , | Leave a comment

Win32 FLTK Binaries (r4911)

I have scoured the net for FLTK 2.0.x binaries, and there aren’t any. Until now. I have compiled the static libraries for FLTK and have created a Windows installer (it will get listed in the “add/remove software” dialog). Come and … Continue reading

Posted in Uncategorized | Tagged | Leave a comment

C++: A threaded timer

I have written a threaded timer that will start on command, and stop on command using the boost threads library. here’s the code: /* copyright Benjamin Collins 2006 * please contact for licensing information */ #include <iostream>   #include <boost/thread/condition.hpp> … Continue reading

Posted in Uncategorized | Tagged , | Leave a comment