Archive for October, 2007

SIP TCP support in Asterisk

Edit: This post is now quite out of date. There’s a more recent discussion of this at the trixbox forums.

Original Post:
Despite digium‘s screwed up licensing restrictions, and its diabolical coding standards (something which Callweaver will hopefully make a thing of the past, but that’s for another day), SIP over TCP support is now finally available in asterisk (at least for the 1.2 branch).

Brief instructions how to upgrade your 1.2.x installation are given below: Read the rest of this entry »

, ,


Safari 3 for Windows

SafariOnWindowsStill in beta, but certainly stable enough to use, Apple‘s highly acclaimed web browser, Safari, has hit the PC. They’re billing it as

The fastest web browser on any platform, Safari loads pages up to 2 times faster than Internet Explorer 7 and up to 1.6 times faster than Firefox 2.

and in my brief usage of it, this does seem to be true (it is certainly faster than ie7 anyway).

But in that same period some of it’s bugs have shown their heads (malformed http POSTs, ignoring certain stylesheet properties, limited (no?) DOM support), so this speed does not come for free.

It’s still beta though, so hopefully they’ll fix those problems.

Available for free download now from


No Comments

rsync over ssh on a non-default port

This has long been plaguing me. I finally worked it out today though. :)

The syntax is quite simple, for port 12345 you would use …

rsync -avPe 'ssh -p  12345' username@remoteserver:/filepath /localfilepath

Very simple when you see how it’s done eh? :P


No Comments

RIP Authentication between Cisco IOS & Quagga

For some reason, this wrecks my head every time I have to set it up. It should be simple yes? It looks simple when you see the config below yes?

… well each time I have to set it up, it costs me several hours. I guess it’s some kind of mental block or something.

Anyway, the instructions …
Read the rest of this entry »

No Comments

Right Brain or Left Brain

Rotating WomanIs this woman rotating clockwise or anti-clockwise? The direction you see could tell you a little about yourself.
Read the rest of this entry »

No Comments

Graffiti In Buenos Aires

Had occasion to wander around the city with a camera. I think the pictures speak for themselves.

Read the rest of this entry »

, ,

No Comments

Installing ices (Icecast streamer) on Ubuntu

Ices is the mp3 version of the command line streamer from It’s like sc_trans for shoutcast, but alot better. Because of the mp3 stuff, it’s not distributed as a .deb anywhere (if anyone does find a .deb, please let me know), so it has to be built from source.

It’s all relatively straightforward though:

  1. First install the Mediabuntu repository.
    wget -q -O - | sudo apt-key add -
    sudo wget -O /etc/apt/sources.list.d/medibuntu.list
    sudo apt-get update
    sudo apt-get -y upgrade
  2. Next install some headers (we need these to be able to build it) …
    sudo aptitude install libshout3-dev liblame-dev libxml-dev
  3. (Optional) Perl support in ices is useful, for this we’ll need libperl-dev
    sudo aptitude install libperl-dev
  4. Download and build the source …
    tar -zxf ices-0.4.tar.gz
    cd ices-0.4
    ./configure --with-lame
    sudo make install 



Converting an AVI to an MP4 to play on your phone/ipod/whatever

I’m sure there are millions of ways of doing it, but this is the way I use. YMMV

  1. On Windows, download The Unofficial FFmpeg Win32 build. It’s a .tar.bz2, so you’ll probably need Winrar to extract it.
    On linux simply apt-get/yum install ffmpeg, whatever is appropriate for your distro.
  2. Use the following command line to convert the avi to a mp4:
    ffmpeg -i INFILE.AVI -acodec libfaac -ab 32kb -ar 32000 -ac 1 -vcodec mpeg4 -mbd 2 -flags +4mv+trell -aic 2 -cmp 2 -subcmp 2 -s 320x240 -r 12.5 -qscale 8 OUTFILE.MP4
    • -s is the resolution (320×240 here, coz that’s the screen size of my phone),
    • -r is the framerate (12.5 fps here),
    • audio is encoded at 32kbps 32kHz mono aac,
    • video is endcoded at around 175kbps mpeg4 (h263+). The video bitrate is controlled by the qscale value: lower qscale => larger file + better quality, values of 6 or 8 are common. Valid range is 2-31.
  3. That’s it! The OUTFILE.MP4 will now play on your phone/ipod/whatever. A 45min episode of Heroes in a 50MB file.

As stated above, it works for me. It may not work for you. :)

, , , ,

1 Comment