surviving software
Object-oriented programming is the current cure-all — although it has been around for much more then ten years. At the core, there is little more to it then finally applying the good programming principles which we have been taught for more then twenty years. […] it turns out that you can do just as well with plain ANSI-C.
[…] I had fun discovering that ANSI-C is a full-scale object-oriented language.
Object-Oriented Programming With ANSI-C
This is pretty convoluted…
int widths[] = { [0 … 9] = 1, [10 … 99] = 2, [100] = 3 };
It seems extraordinary that just about every C project ends up developing it’s own logging system.
While there are environments like embedded systems or operating system kernels that may justify customized logging technology (and there are open source projects aimed at those areas) there seems to be no a priori reason why most user level application and server software written in C cannot share a logging library.
[ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo *Click*
With Compiz back in Fedora 18 it’s fairly easy to get back a familiar Compiz + GNOME desktop you may have got used to.
You just need to install few packages and tweak few things.
Start by forcing Fallback Mode in GNOME.
System Settings -> Information -> Graphics -> Enable “Fallback Mode” switch
Next, install Compiz packages:
yum install compiz compiz-plugins-main compiz-plugins-extra emerald emerald-themes ccsm compiz-mate
Now, get use of that compiz-mate package you just installed. Edit /usr/share/gnome-session/sessions/gnome-fallback.session changing
DefaultProvider-windowmanager=metacity
to
DefaultProvider-windowmanager=compiz-mate-emerald
Just one thing more.
Start CCSM and in Decorator options enter emerald as decorator command.
Now log out and log back in. Enjoy.