E-Mail:

2008 May

Author Avatar

Find and delete empty directories

I had iTunes “help” me organize my musik for a while. Now I’ve abandoned it for this reason, among others (e.g. it’s terribly slow and playback stutters).
I’ve used http://musicbrainz.org/ products to clean up the mess, but only to be left with a bunch of empty directories (thanks again, iTunes). I wrote up this ruby script […]

Author Avatar

PPTPD setup for home networks

I managed to get the poptop aka pptpd server running to my content today.
I have an Ubuntu server at home, which I would like to access from the internet side. I mostly use Windows machines, which natively support pptp connections so the choice of poptop was obvious. A good alternative would be OpenVPN, of course.
First […]

Author Avatar

Windows network confusion

Hi
I am playing around with a poptop box on an Ubuntu server at home. While testing the connection to the VPN server I got this very interesting result when pinging the IP, which was assigned to me by pptpd:
C:\>ping 192.168.0.210

Pinging 192.168.0.210 with 32 bytes of data:

Reply from 192.168.0.210: bytes=32 time=4ms TTL=128
Reply from 192.168.0.210: bytes=32 time=-4ms […]

Author Avatar

Transform ruby array to tex table

This has probably been written in many projects, anyways here is the code I wrote up to convert a ruby table / 2-dimensional array / array of arrays to a tex table:
def to_tex(table, user_opts = {})
default_opts = {:center => true, :sep_cols => true, :col_align => ‘l’}
opts = default_opts.merge(user_opts)
lines = […]