?

Log in

No account? Create an account
pavelmachek's Journal
 
[Most Recent Entries] [Calendar View] [Friends View]

Monday, April 25th, 2005

Time Event
12:29a
Congratulations to Microsoft...
...for finally debugging their Window$ to run on x86-64 platform... Only 2 years and 4 days too late :-P.

(SuSE linux enterprise server 8 was released 22 april 2003.)
6:52p
Filling mmc with mp3-s for nokia 6230
...is not as simple as it sounds. For one, it is quite worth it to recode mp3s in different bitrate, and to increase their volume (because otherwise mp3 player is unusable unless you are in the middle of quiet wood). I searched net a bit, but found nothing interesting... so I made my own.

#!/bin/bash
#
# Fill 6230 memory card with some mp3s
#
# Copyright 2005 Pavel Machek <pavel@ucw.cz>
#
# Usage: fillphone 

doit() {
for A in "$1"/*; do
    df -h $MMC
    echo $A -> $I.mp3
    lame -h --scale 3 --abr 48 -m m "$A" /tmp/delme_fillphone.mp3
    cp /tmp/delme_fillphone.mp3 $MMC/$I.mp3 || ( echo Done -- disk full; rm $MMC/$I.mp3; killall fillphone; exit )
    I=$[$I+1]
done
}

MMC=/tmp/mnt.mmc

mkdir $MMC
mount /dev/sdc1 $MMC

if [ "a$1" != "a-c" ]; then
    rm -r $MMC/*.mp3
    I=100
else
    I=300
    shift
fi
while [ "a$1" != a ]; do
    doit "$1"
    shift
done

<< Previous Day 2005/04/25
[Calendar]
Next Day >>
My Website   About LiveJournal.com