March 2009 Archives
Thu Mar 12 13:46:38 CET 2009
tgtpd - a telegraph transfer protocol daemon
Closing a gap that has existed for far too long, I hereby announce the existence of tgtpd, a telegraph transfer protocol daemon.
You can transfer text and even binary data by using morse-code.
You should try f.e. calling
chmod +x tget
./tget tgtp://blog.kapsobor.de/ > index.html
./tget tgtp://blog.kapsobor.de/logo.png > logo.png will or should work.
Running your own tgtpd is pretty straight forward:
just put tgtpd.pl into any directory, create a directory called
tgtpdocs in there, then run for example
perl tgtpd.pl >> tgtpd.log 2>&1 &
- and everything in the tgtpdocs-directory will be accessible via tgtp (port 7070 by the way) - as long as its filename is all lowercase and has no characters not available in common morse code :).
The morse code is only slightly extended to be able to transfer binary data. The
protocol might come in handy in case you can only transfer two different bytes (or, in the current implementation, three..) and
still want to comfortably serve files.
And, of course, you could always connect it to a real telegraph and use that to serve some html...
Sat Mar 7 20:56:27 CET 2009
find last.fm very-far-away-neighbours
interesting option to waste some time is listening to last.fm-libraries of users having more or less an opposite taste than yourself. sadly, while last.fm's so called neighbour finding options are quite great, it lacks a decent search for users who do not share your taste at all.
this gap is now closed, just enter your last.fm username below and you should be able to find several more or less randomly selected users which all have one thing in common: they listen to almost completely different music than you do :)
Wed Mar 4 19:31:12 CET 2009
twitter client in less than 140 characters
just for fun since I actually registered at twitter, and while I'm at it: here's a quick and highly useful twitter client in way less than 140 characters - with features such as error detection + explanation, sending over an encrypted connection and storing your username/password for convenience :)
E= curl -sd"status=$T" -u$U:$P "https://twitter.com/statuses/update.json" |grep -i error
just drop it into a file, f.e. 'twit', add your username after U= and your password after P=,
chmod +x twit
it and off you go by f.e. by
./twit eeeoo world.