getting wordpress to see torrents

By default wordpress only includes audio and video mimetypes when it reads your post to decide if there are any urls it should enclose. This means that if you want to enclose bittorrent in wordpress, it won’t do it without a little hacking.

edit wp-includes/functions.php
in do_enclose, around line 775, there’s the line:
$allowed_types = array( ‘video’, ‘audio’ );
change to:
$allowed_types = array( ‘video’, ‘audio’ , ‘application’ );

Note that any link to some application/* will become enclosed, so this is an awful, awful hack.

Noble eats grass

This is a video in a blog posting, but don’t get the idea that this is a “video blog” now. I see little point in posting a video solely of me talking to the camera, because that is what text is for. So when I want to say something, I’ll use text. And when I want you to see something, I’ll post a photo. And if I want to show something, then I’ll post a video. There’s no reason I have to stick to only one!

This posting is a bit torrent, the file is 16MB. You can read this enclosure with PenguinTV for linux, FireANT for Windows, and DTV for Mac. It’s an AVI with the Xvid codec, so the video will probably play on a Mac with VLC. On windows you should already have the defilerpak codec collection because you download xvid-formatted movies all the time. On linux it just works with totem, xine, mplayer, whatever.

libdvdcss bug that is totally undocumented

Summary: libdvdcss will happily keep using settings created for different hardware and fail silently after the user has upgraded to a new system with a different dvd drive.

Steps to Reproduce:

1. play dvds with laptop A
2. upgrade to a new thinkpad!!! with a new dvd drive!!!
3. try to play dvds

Expected results:
1. dvdcss tries and fails to use the old drive code, so it tries to figure out a new one just in case
2. dvd plays

Actual results:
1. motherfucking read errors for two hours, with the only error message being “maybe libdvdcss is not installed?”
2. searching google for firmware updates, css hacks, newer versions of libraries, etc
3. finding nothing.
4. finally running ogle –debug, and seeing it accessing a ~/.dvdcss library
5. deleting the motherfucker
6. everything works now.

jesus christ that sucked.

Announcing PenguinTV

I have made my first release of a project ever, called PenguinTV. It’s an RSS feed reader that supports enclosed media, which means you can download podcasts and video blogs with it. I’m a little worried that there’s going to be tons of problems when other people start using it, but it works well enough for me that I’m letting it out into the wild. I can’t wait for my first flame!

annoying words

“vlog” is the most annoying word since “blog.” When “weblog” was shortened, it wasn’t called “wlog.” So shouldn’t “video blog” be shortened to “olog?” Or maybe “deolog?” Is any of these any less ridiculous than “vlog?”

poker!

Jeff and Joe and I played a little poker yesterday. 5$ buy-in, nickel and dime blinds — nothing big. Toward the end I wasn’t doing so well, but then I caught a dumb-luck three twos after going all-in with T2o (badly trying to bluff a weak pot). I was doing better after a little while of heads-up with Joe, and it was starting to get late.

On what would be the last hand of the night, I said something about having caught my “lucking fuckin’ twos” — without which I would have been out of the game. Then I looked down at my cards: pair of twos. Omens don’t come stronger that that.

“All-in,” I said.

“Call,” he said.

Joe turned over a pair of threes. At this point, I lose unless I get a two. Jeff starts dealing the flop, and the very first card is a 2. Gasps all around. Jeff’s hand freezes, not believing I caught another lucky break. He deals the rest of the cards, 5,6 and then a 7. At this point Joe needs a 3 or a 4 to win. Jeff and Joe groan at my improbable luck.

And he gets his lucky fuckin’ 3 on the river. I ended up with 3 bucks out of my 5$ buy-in, so I give Joe his well-earned two dollars.

Hold ’em is a great game. Lots of psychology, lots of drama. We only played for a couple hours, and there were numerous hands with amazing turnarounds and stupendous pots. I have to say, it makes a huge difference when you’re betting real money, even just five bucks. The tendency to just throw money around and then demand more chips from the bank goes away (unless you want to rebuy!). I don’t plan to play for money regularly, I’m not the gambling type. But it’s still a fun game.

Trimming down Azureus

I just figured out if you right click on an item in Azureus and select “column setup” you can turn off all of the useless junk columns it displays in the main window. By default it displays so much information that the program takes up most of the width of my screen. It’s still a cluttered program, but now it only takes up a quarter of the screen. Azureus is the most option-happy program I’ve used in a long time, and it’s annoying to have to basically simplify their interface for them. But at least it’s possible.

Beating the Heat

Mike MacHenry invited us to his house in Wakefield the other weekend, because his parents have a pool. We did spend time in the pool, but you wouldn’t know it from these photos. We also hung out at a park on what I think was Lake Quannapowitt.

[800×600][1600×1200]
Serra and Jeff in the other car on the way there

[800×600][1600×1200]
A bunch of fools on the way to playing frisbee!

at the park, we discovered that Jeff has been keeping a hidden talent from us

[600×800][1200×1600]
My he’s going awfully high

[600×800][1200×1600]
uh oh!

[600×800][1200×1600]
head trauma here we come!

[600×800][1200×1600]
But he sticks the landing!

[800×600][1600×1200]
Chillin’ cause it’s damn hot are: Joe, Jeff, Mike, Char, Serra

[600×800][1200×1600]
Mike and Char are very silly people

Grab Bag for June ’05

look! photos!

[800×600][1600×1200]
Char in Kendall Square

[800×600][1600×1200]
Fanueil Hall on a warm day

[800×600][1600×1200]
Char at a restaurant

Char and I went to the Peabody Essex Museum in Salem. They have this awesome chinese house there that was brought over plank by plank from a rural part of China, but they didn’t allow photos there. Bastards.

[800×600][1600×1200]
Char at Peabody Essex Museum. Lots of Char in this update!

[800×600][1600×1200]
On the train

[600×800][1200×1600]
Look, someone who’s not Char. Peter being helped putting on a tie.