Sunday, July 18, 2010

Pulseaudio : The Incredible

The pulseaudio is great. And the greatest thing is that you need not do any config settings in debian for that. Just install it and use it straight-forward. I am using padevchooser as the applet for configurations. Now I can easily add bluetooth headsets and route the audio to them. The blueman applet has pulseaudio plugin. Just enable it.

For using mplayer
alias mplayer='mplayer -ao pulse'

In gmusicbrowser you can do the settings in mplayer advance tab in settings.

And that solves some of the problems with music/videos.

Tuesday, July 13, 2010

Recommended compiler options in gcc

These are the recommended compiler options for catching most of the errors in c/c++ program.

-ansi -pedantic -Wall -W -Wconversion -Wshadow -Wcast-qual -Wwrite-strings

You can alias it with gcc/g++ in your bashrc/zshrc and your life will become a bit cooler ;)

alias g++="g++ -ansi -pedantic -Wall -W -Wconversion -Wshadow -Wcast-qual -Wwrite-strings"

alias gcc="gcc -ansi -pedantic -Wall -W -Wconversion -Wshadow -Wcast-qual -Wwrite-strings"

Ref : http://www.network-theory.co.uk/docs/gccintro/gccintro_32.html