C++ mumblings
Well the last few days have been an interesting investigation into the details of popen() and system() and all the happy side effects when you use them from a multithreaded application. I have this...
Well the last few days have been an interesting investigation into the details of popen() and system() and all the happy side effects when you use them from a multithreaded application. I have this...
Tired of ssh'ing into a machine, doing 'mkdir -m700 .ssh' and running scp to copy over your public key file? As with all things on Unix, somebody has already thought about it and provided a solutio...
Because I don't want to forget here are some useful sites about doing some self-maintenance on my VW Golf MKIV: Problemcar (generic for all brands) http://www.tdiclub.nl http://www.vwforum....
The gettid() call doesn't work on my system so I found this: printf("The ID of this of this thread is: %ld\n", (long int)syscall(224)); This number can be found like this: benjamin@benjamin-lap...
Well we figured out how to give our process SCHED_FIFO priority last time (see here) right? But then I started wondering about multithreaded apps and if the call to sched_setscheduler() works for t...
boost::shared_ptr is an excellent library, life is so much easier with it (but that is nothing new right...) Anyway, I wanted to do this: typedef boost::shared_ptr<short> MyPointer; MyPoint...
The always interesting EmptyCrate blog has a nice page on C++ inheritance access specifiers. It's good to have a nice little refresher once in a while, especially when you think you've reached the ...
Maybe you knew the site already, but http://www.stackoverflow.com is a really cool site where programmers can ask questions and have them answered by other members. In my experience, the site is f...
Since I'm always forgetting where the free O'Reilly 'Linux Device Drivers 3rd edition' book can be found, here's a link: http://lwn.net/Kernel/LDD3/ Chapter 7 about timing is especially interestin...
Integration with tools like oprofile and valgrind (one of my favorites) is finally a bit easier in Eclipse since these guys released their first version :) An overview of features can be found her...