Absurdist Manifesto
Ubuntu - convert a directory of .wav's to .mp3's
Submitted by benl on Thu, 02/19/2009 - 16:36
Related Terms :
Here's a quickie shell script to convert .wav files to .mp3's:
cd to the directory, save this as convert.sh, then do chmod a+x convert.sh, then run it with ./convert.sh
#!/bin/sh
# convert all .wav's to .mp3's and remove the .wav from the resulting filename
for f in *.wav ; do lame -V2 $f ; done;
for f in *.mp3 ; do AUFILE=`echo "$f" | sed 's/.wav//g'` ; mv "$f" "$AUFILE"; doneIf you want to remove all the .wav files just do rm -rf *.wav ...but be careful :)
SetTimeout in AS3
Submitted by benl on Thu, 02/19/2009 - 15:54
Related Terms :
A quick snippet to do a setTimeout() in Actionscript 3:
import flash.events.TimerEvent;
import flash.utils.Timer;
var myTimer:Timer = new Timer(1000, 1); // delay 1 second, repeats once
myTimer.start();
myTimer.addEventListener(TimerEvent.TIMER_COMPLETE, timerHandler);
private function timerHandler(e:TimerEvent):void
{
//_root.log(root.options[int(option)].caption);
//_root.playPlaylist();
}Fun with flex
Submitted by benl on Sun, 02/15/2009 - 18:42
Related Terms :
So I'm working on the Absurdist Manifesto, which is to be the world's coolest phone tree to nowhere.
First, I started a new flex project in Eclipse configured with Adobe Flex Builder.
Then, I quickly pieced the front-end view of a keypad together in flex.