Test post with vimblog.vim

Sun, 2008-06-29

This is just a test post using vimblog.vim.


Create mp3 to practice mental addition

Sat, 2008-06-28

Repost from my tumblelog.

This script uses the festival text to speech system, SoX and lame to generate an mp3 to practice mental addition. It basically says two numbers and after a delay says the sum of those two numbers, the delay is supposed to give you time to calculate the sum mentally:

#!/bin/bash -e

# output file

if [ -z "$output" ]; then 
        echo "usage: $0 OUTFILE"

TMP=`mktemp -d /tmp/speed_addition.XXXX`
pushd $TMP

# pause length in seconds

for i in `seq 32`; do
        x=$(($RANDOM % 999))
        while [ $x -lt 11 ]; do
                x=$(($RANDOM % 999))
        y=$(($RANDOM % 999))
        while [ $y -lt 11 ]; do
                y=$(($RANDOM % 999))
        echo "$x . + . $y" | text2wave -o add$i.wav
        echo "$(($x+$y))" | text2wave -o result$i.wav
        sox add$i.wav add_with_pause$i.wav pad 3 $pause
        sox add_with_pause$i.wav result$i.wav out$i.wav

sox out*wav out.wav
lame --ta speed-math --tl speed-math --tt $output --silent out.wav $CWD/$output


rm -r $TMP

Trying out blogging

Sat, 2008-06-28

I just recently started a tumblelog at soup.io and I think it’s great to keep track of interesting things I find on the web. I also posted a few useful Linux commands, scripts, tips… so that I had them written down for future reference. But the lack of tagging, categories, an integrated calendar or archive of my posts and the fact that I can’t seem to find my posts with Google made me rethink if soup.io is actually the best option to archive my tips. So I’ll give WordPress a shot…