Thursday, 28 January 2010

heads and tails to extract lines

This can be used with mplayer and conky, to display the current track.

Start mplayer with:

mplayer -playlist playlist > tempmplayerfile

to dump mplayer output to the file, tempmplayerfile

Then, extract a few lines near the end of that file for the current playing information.
The last line will be gibberish.

tail -n 5 tempmplayerfile | head -n 3

will display the first three lines, of the last 5 lines of the file.

I found the following worked well:

tail -n 17 tempmplayerlist | head -n 15

mplayer

mplayer -playlist playlistfile

< and > to skip tracks

Turn off compression. On by default.
mplayer -a52drc 0


--------------------------------------

from http://linux.dsplabs.com.au/mplayer-multiple-sound-cards-select-audio-device-p77/

to select an audio device:

Default:
mplayer -ao oss:/dev/dsp *.mp3
mplayer -ao alsa:device=hw=0.0 *.mp3


Non default:
mplayer -ao oss:/dev/dsp1 *.mp3
mplayer -ao alsa:device=hw=1.0 *.mp3



mplayer -ao oss:/dev/audio2 *.mp3

worked after Skype reached in and changed my default sound device,
without asking.

----------------------------  mplayer subs

mplayer -sub *.srt *.avi

:)

-----------------------------------------------

mplayer

Monday, 25 January 2010

Those who can, do; those who can't, write (become journalists).

building gmsh

wget http://www.geuz.org/gmsh/src/gmsh-nightly-source.tgz
tar xvzf gmsh-nightly-source.tgz
cd gmsh- (whatever)

cmake CMakeLists.txt
make
sudo make install

Thursday, 21 January 2010

firefox

Fire up with profile selection:

firefox -P -no-remote

Saturday, 16 January 2010

A note on upates

On running gnome, synaptic was shown via `ps -A', when I was alerted of many updates.

It may be wise to run synaptic on occasion, from fluxbox.