Monthly Archives: July 2011

c++ – What is The Rule of Three? – Stack Overflow

The rule of three Sometimes you need to implement a class that manages a resource. (Never manage multiple resources in a single class, this will only lead to pain.) In that case, remember the rule of three: If you need to explicitly declare either… Continue reading

Advertisements
Posted in Uncategorized | Leave a comment

Coverity: Suppressing false positives with code annotations

It’s possible to set false positives to “intentional” by adding an annotation to the code. As an example, suppose the system detects that the x local variable can be NULL when it is dereferenced in the following code: int* bla = NULL; *bla = 35; T… Continue reading

Posted in Uncategorized | 2 Comments

Wrong symbol for “>” key on synergy Linux client but right on windows server

Trying to get the “>” character produces a small double “>>” Fix: xmodmap: echo “keycode 53 = x X greater greater greater greater” | xmodmap – See: http://synergy-foss.org/pm/issues/1515 Continue reading

Posted in Uncategorized | Leave a comment

Showing disk i/o stats

To show the activity of your disks similar to cpu stats with top or htop you could use:1) iostat e.g. iostat -dx /dev/sda 52) iotopOnly for Kernels >= 2.6.20 Continue reading

Posted in Uncategorized | Leave a comment