I made it to Iran!
This is cool: Naser’s Daily
Diary, which looks like an Iranian blog, has me in his blogroll.
Hi there! I wish I could read more of his blog. The site is registered
to an address in
Shiraz.
This is cool: Naser’s Daily
Diary, which looks like an Iranian blog, has me in his blogroll.
Hi there! I wish I could read more of his blog. The site is registered
to an address in
Shiraz.

The part that makes this remarkable is they can do this 30 times a second at 1280x960 resolution, thanks to the magic of Cg. Cg allows you to write programs that do things like calculate per-pixel shading to create all sorts of crazy effects in real time. Consumer video cards have an astonishing amount of parallel computing capacity.

My Labour Day weekend plans were made weeks ago:
the
California State
Fair. Celebrating 150 years of BIG FUN!
I went a few years ago and had a great time. It’s a huge event full of prize pigs, hucksters, ferris wheels, fried bread, and lots of ordinary people. Much fun. This year I can’t decide what I’m more excited about: the 600lb performing pig or the corn husking.
The Guardian has
an
excellent article with a simple explanation of the “French Paradox”:
I asked a question on Google Answers: How much has the average American’s food consumption grown over time? According to this USDA report calorie consumption has grown about 20% in the last 20 years.
Jimmie Rodgers was a
hugely popular American singer around 1927-1933. He’s usually thought
of as a country singer, but his music is amazingly eclectic with
plenty of roots, yodelling, and some beautiful blues (such
as the Train
Whistle Blues (30 second
sample).
You can pick up a 5 CD box set of Jimmie Rodgers for only $26 on Amazon. Worth the investment. I didn’t grow up with this music, but after the success of the O Brother, Where Art Thou? soundtrack I’m getting interested.
My searches led me to this fine document on audio dithering. If you have sound in a format that’s more accurate than your final output (say you’re doing 32 bit processing and the end result is a 16 bit stream) then you don’t want to just round off the sample - you want to dither in some noise. Why? It allows the lower bits to occasionally be expressed in the output and your ear is capable of picking the signal out of the noise.
The audio demos from the page are impressive. Effects are exaggerated (rounding to 8 bits) so you can hear them. Read the document for explanation.
Psychoacoustics is really interesting.My little pinger.py script works a different way, running as a cron job periodically and checking if it needs to ping. Not robust; only recommended for Python hackers.
Python on Windows
is complete enough to be a real alternative to Visual Basic.
Between
wxPython,
pyGame, and the
win32all
extensions you have all the doodads you need to build Windows
apps.
Today’s exercise was a little program to tell me when my Creative sound driver has been set behind my back to something other than 6.1 surround. It reads a registry key every 15 seconds and updates a system tray icon if things have changed.
Doing it in Python didn’t prove too hard. The bloat is bad though; the program is 12 megs in RAM and a 2.5 meg standalone distributable. Still, nicer than trying to remember how to program with Visual Studio.
I found nice sample code for system tray icons: systray_py.txt and Flashing Taskbar Icon. To create a system tray icon for a program:
If a program ends in .pyw, then pythonw.exe is used to execute the program and a DOS console window doesn’t pop up.
icoutils helps build Windows .ico files.
Update: Boa Constructor helps you do visual form design. Thanks, John.
py2exe is good for packaging up programs to redistribute to folks who don’t have Python or required site-packages installed.
regmon is useful for figuring out what registry key to watch. Turns out, it’s
Lots of details.
The Gnome Foundation helped make something that isn’t ugly; the
Bitstream Vera fonts.
Well hinted TrueType that
looks good when rendered on-screen,
free! Western languages only.
Vera Sans Mono fills the need for a good fixed width sans-serif font; Lucida Console just doesn’t cut it. Vera Sans is a decent proportional font but is too wide; I still prefer Arial. Vera Serif looks hideous, but then all serifed fonts look hideous on screen.
Works on Windows. Download, SlashDot discussion.
My favourite part of my 1996 roadtrip
was southern Utah, Mormon country. Beautiful landscape and friendly
people, particularly in towns like
Hurricane.
On that trip I became interested in the Church of Latter Day
Saints. What a strange phenomenon! A made-in-the-USA religion now known
for conservatism and white bread blandness, but with a crazy
history of defiance, persecution, and polygamy.
Jon Krakauer, of Into Thin Air fame, uncovers fundamentalist Mormonism in his latest book Under the Banner of Heaven. Yes, fundamentalist Mormonism: splinter groups who hold various radical theological positions such as celestial marriage and apocalyptic fervour. The book is ostensibly a history of the murders by Ron and Dan Lafferty, but really it’s an excuse for Krakauer to explore the curious history of the LDS church.
The narrative is unflattering, particularly its characterization of the early days of Joseph Smith and Brigham Young. Parts seem unfair. But Krakauer’s central thesis is fascinating - Mormonism was born out of violence and zealotry and this extremism is alive and well in the fringes of Mormon culture.
Great
writeup
of a flaw in Netgear routers resulting in University of Wisconsin
being spammed with NTP requests. Netgear hardcoded a single IP address
for an NTP server and then had a mode where if that IP address failed,
the router would try again in one second. Didn’t these guys
ever hear of exponential backoff?
The ironic thing is NTP is the most lightweight useful Internet protocol in existence. A server can handle hundreds of thousands of properly functioning clients; when it works it takes one UDP packet every 17 minutes to serve a client. I did an NTP survey back in 1999; a beautiful peer to peer network.
Let’s enumerate the problems:
I had no idea there were so many
nudity
patches for mainstream games.
My favourite is these
Morrowind mods,
from adolescent
male fantasies of the female form to the
hysterically
kinky.
Note: pretty much all these links are adult content.
Only it doesn’t work so well in HTML. HTML 4.0’s entities don’t define &zwsp;. IE recognizes it but Mozilla doesn’t. So you need to use ​ instead. And then IE screws it up when you paste it into ASCII. And while IE6 on WinXP renders it correctly, on Win2K it renders a box. Totally broken.
There’s a good page on line breaking in the Web, detailing all the problems where lines are broken where they shouldn’t be and vice-versa. What kills me is these typsetting algorithms were all solved almost twenty years in TeX, at least for English. Why do the people who do HTML and web browsers hate design so much?
Blosxom supports two kind of permalinks: date based and file based.
Date-based permalinks look like this:
They are a link to the day’s stories with an anchor to position the reader at the specific story in the page. One way to generate these is via the flavour pattern $url/$yr/$mo_num/$da#$fnFile-based permalinks look like this:
They are a link to the specific entry; nothing else will display. One way to generate these is via the flavour pattern $url$path/$fn.$flavourblosxom.cgi, with no flavour files installed, uses date-based links. So do the flavours in the Blosxom flavour sampler. Many of us, including the author of Blosxom, prefer file-based permalinks. The joy of Blosxom is either kind of permalink will work. By editing flavour files you can easily decide which style you serve.
Personally I think the date-styled permalinks are crazy and Blosxom’s defaults should be file-based.
I don’t think any of this would be a huge business, but it’d be enough to fund BitTorrent development. Customers: anyone hosting downloads of more than 10 megs.
Saul Griffith builds
kites. Not ordinary kites; huge handmade beautiful things that
are capable of generating hundreds of pounds of lift. I had the
pleasure of flying, or rather being flown by his monster kites: big fun.
And big crazy. Check out this movie of someone flying twenty feet above the ocean with a kite and pulling a guy on a board behind him (for ballast, one presumes).
I’ve thought for awhile about moving by blog to a new domain name but I can’t come up with a good one. Hmm, boingboingboingboing.net is available.
I like my new
Creative
Inspire 6600 speakers. 5.1 surround isn’t good enough; 6.1 gives
you an extra rear center. Or something. Mostly I bought them because
they were cheap ($80 at Amazon) and I
figured they’d work well with my
Creative Audigy 2 Platinum soundcard.
They sound good. Having speakers behind you makes for a big difference, particularly in games. Your eyes always stare straight ahead but you can hear all around you. So why not have speakers behind you in your VR rig?
What I like best is that the product packaging is remarkably good for the price. The speakers look nice. The speakers come with long enough wires to reach the back of my office comfortably. It comes with little stickers to label each speaker. The power transformer is on a cord so it doesn’t cover multiple plugs.
I’m so used to crummy packaging of computer products it’s nice to buy a box of stuff that just works.

My real goal is to make my Mac friends envious. Who wants elegant design when glowing fans are only $7.99?
Game demos are starting to be distributed via BitTorrent. Perfect use: lots of enthusiasts, giant files (200 megs is common). Places to go for legitimate BitTorrent game files: GameTab, 3dgamers. Try out the cool Tron demo!
The Spiders, the
hypnagogic online comic, has just put out the new
part 3.5
(mirror). If you
haven’t read Spiders before then start at
the beginning and get
at least through
part 2;
that’s where it gets interesting.
The story is a bit tough to follow at times, but the artwork and presentation are fantastic. My only frustration is that they use the Web medium so well I can’t imagine these ever being printed.
Also not to miss by the same artist: Apocamon, the book of Revelation reinterpreted as manga.
The <summary> element specfies it’s plain text, no escaped HTML. What happens if I want an HTML entity in there? Am I not allowed? I think <summary> and similar elements should have the same content encoding attribute that <content> does.
My no-content Atom feed is 6530 bytes (1560 bytes compressed), my no-content rss091 feed is 3868 bytes (1284 bytes compressed). Most of the extra space seems to be timestamps.
<entry> elements seem too wordy. <id> is redundant with <link> in Blosxom. I don’t see why I need two timestamps (<issued>, <modified>), identical except for timezone. Recommendation: make <issued> and <id> optional (if <id> is missing, substiute <link>).
<copyright> is optional. Some lawyer should reassure us that its omission does not imply the feed is not copyrighted. I’m happy with implicit copyright and would rather not waste 50 bytes in every single download.
Generating proper timestamps is hard. Timezone is the bad part: -0700 vs -07:00, local vs zulu.
It took me 30 minutes to get something basically working, an hour to customize it to my satisfaction. Too long, but it will get better. Overall the spec is shaping up nicely.
You can fetch the Blosxom bits I used to put this together. I hacked some of the plugins to get the feed to validate.
The more outrageous claim is the fooferall over Robinson’s support of OutRight Concord, a gay youth outreach group. The problem? An affiliated site, Outright Portland, had a link to bisexual.org, which in turn ran a banner ad for threepillows.com, a pr0n site.
Hopefully the good people of the Episcopal church understand what character assassination is.
My blog is my space, my publication; I’m not running a message board. Every time someone posted something rude or dumb I winced. And when someone posted something smart I got frustrated because I didn’t have a good way to discuss it with them. So from now on, if you have something to say please email me.
Many thanks to QuickTopic, who runs a great reliable, free, simple discussion board service.
Spiders are a really dumb way to index the web. Too bad more clever solutions don’t work.
The
single player demo
for Tron 2.0 is
out. Absolutely beautiful. It has the same look as the groundbreaking
original movie,
and the theme
makes for some really great FPS level design. Giant towering spaces of
fluorescent blocks, streams of bits flowing by, inscruitable glowing consoles.
The game designers seem to have freely indulged in the cheese of the original movie, too:
Hilarious pseudo-review
of Wolfram’s pompous A New Kind of Science. Not quite as funny
as the famous Amazon A New Kind of
Review, but great title.