Simple FLAC to MP3 shell script

By , 2009-09-10 21:41

For unix-like systems (Mac OS X, Linux). A simple shell script to convert flac to lame mp3.

Install flac, lame and id3tool

#!/bin/bash
for a in *.flac
do
OUTLAME=`echo "$a" | sed s/\.flac$/.mp3/g`
ARTIST=`metaflac "$a" --show-tag=ARTIST | sed s/.*=//g`
ALBUM=`metaflac "$a" --show-tag=ALBUM | sed s/.*=//g`
TITLE=`metaflac "$a" --show-tag=TITLE | sed s/.*=//g`
GENRE=`metaflac "$a" --show-tag=GENRE | sed s/.*=//g`
TRACKNUMBER=`metaflac "$a" --show-tag=TRACKNUMBER | sed s/.*=//g`
YEAR=`metaflac "$a" --show-tag=DATE | sed s/.*=//g`
flac -c -d "$a" | lame -m j -q 0 --vbr-new -V 0 -s 44.1 - "$OUTLAME"
id3tool --set-title="$TITLE" --set-track="${TRACKNUMBER:-0}" --set-artist="$ARTIST" --set-album="$ALBUM" --set-year="$YEAR" --set-genre="${GENRE:-12}" "$OUTLAME"
done

Edit: Apparently this has been done before…
http://pastebin.com/f641a9b21

Google Font Size

By , 2009-09-10 20:59

You’re not crazy. Google has done it again. They made a small change to the look of their website today: the font size and buttons on the home page and search result page are larger. I suppose this shows how ingrained Google is into everyday life, how even the smallest change is noticed by millions. Just like back in May’08 when they changed their favicon.

Internet users tend to dislike change for change’s sake. There is already a userscript that reverts Google to the “classic” look.  Another good example of user discontent is the launch of New Facebook, which incited much grumbling. Ultimately though, the whole thing blows over and the face of the Web is changed forever, old designs lost in the depths of the Wayback machine.

Custom theme by me. Based on Panorama by Themocracy