Categories

  • Apple (15)
  • Coding (4)
  • del.icio.us (14)
  • General (136)
  • Life (10)
    • Remodel (1)
  • Politics (16)
  • Project Steamroller (1)
  • Spam (11)
  • Sysadmin (9)
  • Tech/Geek (15)
  • Uncategorized (52)

Ye Olde Posts

  • March 2010 (1)
  • January 2010 (3)
  • December 2009 (1)
  • November 2009 (1)
  • October 2009 (2)
  • September 2009 (1)
  • August 2009 (3)
  • July 2009 (3)
  • June 2009 (2)
  • May 2009 (2)
  • April 2009 (1)
  • March 2009 (4)
  • February 2009 (2)
  • January 2009 (1)
  • December 2008 (1)
  • September 2008 (1)
  • July 2008 (1)
  • May 2008 (5)
  • April 2008 (2)
  • March 2008 (9)
  • February 2008 (5)
  • January 2008 (6)
  • December 2007 (7)
  • November 2007 (2)
  • October 2007 (6)
  • August 2007 (7)
  • July 2007 (2)
  • June 2007 (3)
  • May 2007 (3)
  • April 2007 (8)
  • March 2007 (8)
  • February 2007 (10)
  • January 2007 (3)
  • December 2006 (2)
  • November 2006 (1)
  • October 2006 (2)
  • August 2006 (2)
  • July 2006 (2)
  • June 2006 (2)
  • May 2006 (5)
  • April 2006 (2)
  • February 2006 (1)
  • January 2006 (2)
  • December 2005 (2)
  • November 2005 (2)
  • October 2005 (3)
  • September 2005 (1)
  • August 2005 (1)
  • July 2005 (3)
  • June 2005 (3)
  • May 2005 (1)
  • April 2005 (1)
  • March 2005 (1)
  • February 2005 (4)
  • January 2005 (1)
  • December 2004 (3)
  • October 2004 (3)
  • July 2004 (1)
  • April 2004 (5)
  • March 2004 (5)
  • February 2004 (5)
  • January 2004 (3)
  • December 2003 (2)
  • November 2003 (9)
  • October 2003 (5)
  • September 2003 (4)
  • August 2003 (3)
  • July 2003 (2)
  • June 2003 (8)
  • May 2003 (5)
  • April 2003 (4)
  • March 2003 (10)
  • February 2003 (25)
  • January 2003 (12)

Monthly archives for November, 2003

Stupid benchmark chart of the week

Nov18
2003
2 Comments Written by Craig

This absolutely is the funniest thing I’ve seen in a while:

Stupid chart

Hmm, so let me see, that chart says that the software that’s available for the PC only supports playback of 5 streams. The Mac software supports 7 streams. Uh, what’s the point of mentioning the CPUs involved on the two setups? And their GHz numbers? Lies, damned lies, and Apple benchmarks.

Posted in General
SHARE THIS Twitter Facebook Delicious StumbleUpon E-mail

Upgraded to Apache2

Nov18
2003
1 Comment Written by Craig

Heard back from the mod_torrent guy, who’s a student, and has been pretty busy, which is why it took him a while to get back to me. I’m now added as a project admin on the mod_torrent project on sf.net, and I’ve decided to actually spec this sucker out and start coding. First step in this process was finally getting around to upgrading this box to apache2 (don’t think it makes much sense to start a new dev project based on apache1 right now). The upgrade seems to have been pretty seamless — in any case this blogs seems to be working, as do most of the other bits I’ve looked at on the server here so far… Let me know if any of you notice anything broken. Especially if it looks like it’s due to the upgrade.

Posted in Sysadmin
SHARE THIS Twitter Facebook Delicious StumbleUpon E-mail

Vonage voicemail WAV to MP3 conversion

Nov13
2003
8 Comments Written by Craig

Latest update: Vonage has modified the WAV format that they include in the attachment, breaking the above scripts. See this new post detailing what to do now

Ok, so Vonage voicemail can be delivered by email. Except the attachment comes as a WAV file, so it’s HUGE if the voicemail is of any length at all. Can’t be helped that I have to receive these gigantic files, but I’ll be damned if I store them in WAV format, or if I have to download them to my MUA when they’re that big. So, to work around this “feature”, I wrote a perl one-liner which can be called from procmail to replace the WAV attachment with an MP3. To have this work, you’ll need to install lame, MIME::Parser, and of course perl.

# Check if this is a voicemail message from Vonage
:0fw
* ^X-Mailer: CommWorks
* ^From: .*your_phone_number@vm.vonage.com.*
| /usr/bin/perl -MMIME::Parser -e '$p = new MIME::Parser; $p->output_to_core(1); $e = $p->parse(*STDIN); $f = "/tmp/$$"; open(PIPE, "|/usr/bin/lame --preset phone -v -q 0 -V 9 --quiet - $f"); print PIPE $e->parts(0)->bodyhandle->as_string; close PIPE; open(PIPE,"< :bytes",$f); { local $/; $mp3=<PIPE>; } close PIPE; $fh = $e->parts(0)->bodyhandle->open("w"); $fh->print($mp3); $fh->close; $e->parts(0)->head->replace("Content-type","audio/mpeg"); $e->parts(0)->head->mime_attr("content-type.name"=>"voice-mail.mp3"); $e->sync_headers(Length=>"COMPUTE"); $e->print; unlink($f);'

UPDATE: Vonage has fixed voicemail emails so that they now include caller-id information in them. But they did it by inserting a MIME part in the mail. So the script needs to change to the following (also X-Mailer changed, and this also now rewrites the From line with callerID info from the message body):
this is a voicemail message from Vonage

:0fw
* ^X-Mailer: UTStarcom
* ^From: .*your_phone_number@vm.vonage.com.*
| /usr/bin/perl -MMIME::Parser -e '$p = new MIME::Parser; $p->output_to_core(1); $e = $p->parse(*STDIN); $f = "/tmp/$$"; open(PIPE, "|/usr/bin/lame --preset phone -v -q 0 -V 9 --quiet - $f"); print PIPE $e->parts(1)->bodyhandle->as_string; close PIPE; open(PIPE,"< :bytes",$f); { local $/; $mp3=<PIPE>; } close PIPE; $fh = $e->parts(1)->bodyhandle->open("w"); $fh->print($mp3); $fh->close; $e->parts(1)->head->replace("Content-type","audio/mpeg"); $e->parts(1)->head->mime_attr("content-type.name"=>"voice-mail.mp3"); $e->parts(0)->bodyhandle->as_string =~ /From: (.*?)r$/m; $b=$e->head->replace("From","$1 <voicemail @hughes-family.org>"); $e->sync_headers(Length=>"COMPUTE"); $e->print; unlink($f);'

UPDATE:WordPress consistently buggers up the formatting of perl documents. The perl script from above, updated, cleaned up is available for download here

Posted in Tech/Geek
SHARE THIS Twitter Facebook Delicious StumbleUpon E-mail

Signed up with Vonage

Nov12
2003
1 Comment Written by Craig

Ok, so I signed up with Vonage just now for VoIP service for my home phone. The number was immediately active, and I now have the number forwarding to my old home number until the hardware box comes in the mail. Once it arrives, come Nov 24th I’ll switch the home phone # to my wife’s cell phone, and disconnect the POTS phone service. The best part? I get more features (voicemail, caller ID, conferencing, call forwarding, etc) for less money than I used to pay for my regular phone line without those features. Plus my voicemail now automatically arrives in my email inbox. Of course, it’s a WAV file, not MP3 or something more sensible, but then I guess that’s what procmail is for ;)

Anyone who wants the new phone number, let me know and I’ll email it to you. If you want to sign up for Vonage too, also let me know, because they have a refer-a-friend feature which gives both referrer and referree a discount on service, so I can refer you before you sign up.

btw, I might as well blog this now to establish a datestamp (though I’ve mentioned it in other forums before this): I think VoIP is going to be bigger than the Web.

Posted in Life
SHARE THIS Twitter Facebook Delicious StumbleUpon E-mail

A well-worded expression of the apparent economic “bounce”

Nov09
2003
Leave a Comment Written by Craig

Surfing the blogs of folks whose political compass scores are close to mine, I ran across this, which was a great expression of how I’ve been thinking about the issue as well. It doesn’t go into the other thing I’ve been feeling about the recent economic news, where I feel just a little bit odd about such extremely high (unexpectedly high according to all the analysts who predict these things) growth numbers. How can the numbers be rising so fast (productivity up 8.1% in the quarter, GDP growth rate at a ridiculous 7.2%). Well at least the market doesn’t believe it either. At the back of my mind, I keep having this nagging suspicion that the Bush administration decided to redefine what “job” means when doing their study or something. Anyway, I still feel confident that Dean will be better able to explain to the voting public what the looming baby boomer retirement means in the face of unprecedented deficit spending than did Al “lockbox” Gore.

Posted in Politics
SHARE THIS Twitter Facebook Delicious StumbleUpon E-mail

For those still in the UK

Nov09
2003
2 Comments Written by Craig

I suspect I won’t be in the UK for long enough over Christmas to get very far with this, but all of you who haven’t wised up enough yet to flee the UK might be interested in trying it out. Certainly there have to be worse ways of spending hours on end stuck in traffic jams on the [ABM][0-9]{1,3}.

Posted in General
SHARE THIS Twitter Facebook Delicious StumbleUpon E-mail

Political compass

Nov09
2003
2 Comments Written by Craig

So it turns out I’m quite the centrist:

Your political compass
Economic Left/Right: -1.38
Libertarian/Authoritarian: -3.03

Not sure why the left/libertarian directions are negative — I suppose probably because lefty libertarians don’t object to being protrayed as negatives as much as righty-authoritarians. In fact, lefty-libertarians probably relish being able to point out that the system is out to get them, where the righty-authoritarians would just jail/execute anyone who portrayed them as negative…

Ah yes, should point to this too, so y’all can find your belief buddies out there. Of course, Justin is the anarcho-communist we all knew him to be.

Posted in Politics
SHARE THIS Twitter Facebook Delicious StumbleUpon E-mail

Semantic nonsense

Nov08
2003
Leave a Comment Written by Craig

Sticking a link to Shirky’s exposition of problems with the semantic web, and with computer-processable ontologies in general. This article will be useful next time someone asks me to build a computer category tree of everything to simplify email classification.

Posted in General
SHARE THIS Twitter Facebook Delicious StumbleUpon E-mail

This will change the internet

Nov05
2003
1 Comment Written by Craig

So I was just talking at lunch the other day about how cool bittorrent is, but how it has 2 big problems:

  1. It’s not easy to serve content
  2. It’s not easy to find content which is server via bt

The discussion basically led to the conclusion that the way to do bittorrent “right” is to basically have a mod_torrent plugin for apache, which autodetects when you’re serving a large file and load is heavy, and under that circumstance, instead of returning the file via HTTP, it automatically sets up a torrent for that file, and returns the .torrent file to the original request. The browser then automatically kicks off a bt client to fetch the file, and the load on the web server is thereby automatically alleviated, as the people consuming the bandwidth automagically start to server the content as well. Goodbye slashdot effect.
Well, so it turns out mod_torrent is an existing project on sourceforge. But the project seems to have no activity, and the “click here to mail us to get involved” link on the page bounces email you send to it…
If/when this thing actually happens though, it’ll change the internet. The cost of sticking large-sized files on web servers suddenly gets shifted to some degree to the consumers of that large content. Large sites would likely see significant bandwidth cost reductions. And suddenly it’ll become clear why P2P technology is not just a tool for stealing music. If anyone does know how to get in touch with the folks working on mod_torrent please let me know — I’d love to help out to make this thing happen.
Update: Ok, I tried mailing again, and it hasn’t bounced yet this time…

Posted in Tech/Geek
SHARE THIS Twitter Facebook Delicious StumbleUpon E-mail

Translate

EnglishFrenchGermanItalianPortugueseRussianSlovenianSpanish

Search

Recent Comments

  • Craig on On the efficiency of Virtual Machines
  • flickr.com/photos/jm on On the efficiency of Virtual Machines
  • jmason on Neat. A new way to track website visitors!
  • jmason on On the time domain, with regard to spam
  • pooya on Interesting Tivo trivia bit

Meta

  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org

EvoLve theme by Blogatize  •  Powered by WordPress Craigalog
Craig's musings