Switchboard: a curl-like tool for XMPP
I'm doing some testing and had the need for a scriptable XMPP client (for instance to create a lot of accounts automatically). I've ended up with Switchboard and I really like it a lot! Example inv...
I'm doing some testing and had the need for a scriptable XMPP client (for instance to create a lot of accounts automatically). I've ended up with Switchboard and I really like it a lot! Example inv...
Update 2015 I've received a very friendly e-mail this weekend from Anton Bachin, the author of the better enums library. Some time has passed since I originally wrote the post below and C++ has im...
Want to know how much space the files you found with the 'find -name' command occupy? Try this: find -name \*SOMEPATTERN\* -print0 | du -c --files0-from=- What happens here is: Add the '-pr...
Instead of parsing /proc/loadavg directly, there is a nice convenience function in <cstdlib> (or stdlib.h if you're using C): #include <cstdlib> #include <iostream> double avera...
When I still ran Windows, I used 'beyond compare' a lot for directory and file comparisons. For working with SVN the tortoise SVN diff viewer was my preferred choice. On Linux, I eventually settle...
Need to generate a test file of a certain size on a Windows machine? On linux you'd use the 'dd' tool and use /dev/zero as an input. Luckily, there is an equivalent on Windows: fsutil file createn...
The problem: my Makefile has two targets. One for a production buid and one for a unittest build. For the unittest build, I want to specify different CXXFLAGS (disable optimization for instance). T...
When booting my Sheevaplug the dmesg output shows a number of these errors: end_request: I/O error, dev mtdblock0, sector 64 uncorrectable error : uncorrectable error : As it turns out, nothin...
Recently I was thinking about how to build a thread that has an event loop internally. If another thread wants to send us a message and have some function executed inside the event loop, how would ...