![]() | Ned Batchelder : Blog | Code | Text | Site January 2004 » Home : Blog |
« December 2003 | » Main « | February 2004 » Ultra-geeky Life amusementSaturday 31 January 2004 If you're looking for time-wasting eye candy based on disrupting gigantic cellular automata simulations of theoretical computer science concepts (and who isn't?), this is just what you're after:
tagged:
geeky» 1 reaction Mars scorecardSaturday 31 January 2004 The Mars Scorecard is a different view of the history of Mars exploration:
Mars is ahead, 20 to 17. There are a bunch of missions listed here that I had never heard of. Marsnik? Unfortunately, the NASA database links seem to be broken. Microwaved mugs and multiple mindsetsWednesday 28 January 2004 I read once of a person who would microwave their coffee for some unusual amount of time, like 48 seconds. I think it was a brain teaser: why would the person do this? The answer was that they had timed the spinning of the carousel in the microwave, and knew that if they zapped it for 48 seconds, the mug would make some number of whole revolutions, and end up with the handle pointing towards them, making it easier for them to pick the mug up again. This stuck with me, because it is exactly the sort of nerdly optimization that I would make. In fact, I've had discussions over this sort of thing in the kitchen at work. One time, a co-worker and I had an gleeful conversation about how precisely to manipulate the cup-at-a-time coffee machine to get the cup of coffee made in the shortest time possible, including adding sugar. Then again, once I was standing in a work kitchen with a woman I knew only by sight as being from the accounting group. Making conversation, I told her the story of the precisely timed mug nuking, and she said, "That is a sad man". Different strokes for different folks, I guess.
tagged:
philosophy» 10 reactions College meets the real worldWednesday 28 January 2004 Two links about what happens when college students hit the real world head-on, one helpful, one humorous: How to distribute Python modules?Wednesday 28 January 2004 I've been writing a lot of Python modules lately, and intend to put them up in my code section as soon as I can. But what starts as a self-contained module inevitably splits into multiple smaller modules for modularity, and I don't know how best to distribute them. » read more of: How to distribute Python modules?... (12 paragraphs)
tagged:
python,
how-to» 7 reactions "Treat yourself well. Everyday."Tuesday 27 January 2004 What's the point of being a pedant if you can't pester a multinational sugar-water concern? E-mails exchanged between David Armstrong and The Coca-Cola Company.
tagged:
language
/
via:
Small values of cool» 3 reactions Nissan cubeTuesday 27 January 2004 Dave B. sends along news from Tokyo of the Nissan Cube. Dave is disturbed by the asymetric rear design. I'm disturbed by the thinking behind the design:
Naughty?
and
It's a car.
tagged:
cars,
japan» 6 reactions I'm trying to use Ghost 7.0 to backup a hard drive that seems to be failing, and the backup works great. When trying to restore to the new drive, Ghost says "Insufficient conventional memory". Our best theory is that the laptop has too much memory: 1 GB. This is a classic problem with the hyper-inflation of hardware capabilities: software written to understand the possibilities last far too long for its own good, and can't fathom the gigantic numbers it's seeing. It reminds me of old kids' games I still have running on my home machine. Every time they startup they warn me that they need 256 colors to display properly. When they were written, 256 seemed like the upper limit, so there's probably a line of code in there like, if (nColors != 256) { Who could have imagined 24-bit color?
tagged:
administration» 2 reactions In a comment to my posting about printing Unicode from Python, Thijs van der Vossen (who has a nice blog himself) asked why I don't use a terminal emulator with UTF-8 support. Good question. I looked into it, and I might be using one already: the Windows prompt. It seems to have support for UTF-8, but darned if I can figure out for sure. » read more of: Displaying unicode in windows prompts... (10 paragraphs)
tagged:
windows,
characters,
shells» 5 reactions HandyxmlSunday 25 January 2004 To make accessing simple XML files easier, I've written handyxml, a Python module to wrap XML parsers and provide the parsed DOM in a more convenient form. See the full description for details. The weather in the northeast of the U.S. has been unusually cold for a few weeks now, and it's interesting in a rugged survivor kind of way, since we're actually cozy in our heated homes. But nearby is Mount Washington, home of some of the severest weather recorded (it was there that the world record for wind speed, a 231-mph gust, was recorded in 1934). There's a weather observation station at the summit, and it's staffed year-round. Last week they almost broke their all-time low temperature record of -47°F (also recorded in 1934). It turns out they have a blog up there: Observer's Comments. Be sure to check out the picture of the interns outside in t-shirts at -30°F!
tagged:
science
/
via:
Primate Brow Flash» 3 reactions Open source testingSunday 25 January 2004 Open Source Testing is a compendium of 138 open source testing tools, including unit testing, feature testing, performance testing, bug tracking, the whole gamut. If you're considering building some testing infrastructure, you should spend some time looking around here first.
tagged:
testing
/
via:
afongen» 2 reactions Juggling changes brainsSaturday 24 January 2004 Turns out juggling isn't just fun and geeky, it's also good for you: Learning to Juggle Causes Changes in Brain.
tagged:
juggling,
science» 7 reactions OrkutFriday 23 January 2004 Just what we need: yet another social networking site: Orkut. Everyone is wondering how these things are going to be anything other than a giant dating service, or a ladder-climbing spam-fest. Orkut has a leg up in that it is "in affiliation with Google", whatever that means. Seems risky to name a site in this kind of volatile arena after yourself, but if my name were Orkut Buyukkokten, I might do the same thing. It's certainly better than calling it buyukkokten.com! One cool thing: the Orkut home page has a slick fade-in effect accomplished with JavaScript.
tagged:
online» 1 reaction Box templatesFriday 23 January 2004 I love being able to make things myself, especially out of paper. Ruthann Zaroff offers a number of templates for boxes and cards that could come in handy for any number of projects.
tagged:
crafts
/
via:
Blue Sky On Mars» react Factcheck.orgFriday 23 January 2004 As we continue our charge into political overdrive, I fear that reasoned discourse will be impossible. Factcheck.org may be a help. Their mission:
Judging from the current articles on their home page, they seem to be true to their word, chastising Bush, Gephardt, Dean, the whole bunch. We need all the help we can get in these areas.
tagged:
politics,
reference
/
via:
Blue Sky On Mars» 5 reactions SpaceMongerFriday 23 January 2004 I've used SequoiaView to see a treemap of my disk space before, and liked it very much. But now, SpaceMonger is my favorite. Not only does it do the same cool treemap-thing with the contents of your disk, but it presents the information in a much more usable way than SequoiaView does.
Version 1.4 is freeware, but an update to a shareware 2.1 is coming soon.
tagged:
tools,
administration
/
via:
Bob Congdon» 3 reactions Simon has a nice article on Sitepoint called Simple Tricks for More Usable Forms. My comment system here is kind of shaky in a number of ways, and someday I'd like to use some of these polishing techniques to make it nicer.
tagged:
web» 1 reaction Spirit - D'oh!Friday 23 January 2004 Right after I posted my last entry, I read of Spirit's communications failure. I hope I didn't jinx it, and I hope they somehow get things working again. Spirit paper modelThursday 22 January 2004 The Mars Exploration Rover (Spirit to you and me) is doing so well, why not celebrate by building a paper model of it?
tagged:
crafts,
space» 3 reactions PorkhengeTuesday 20 January 2004 Nancy Bea recounts a moment at the dinner table: Porkhenge. This paragraph neatly sums up what I know of their family life: An autistic child and his complex issues, two other great kids, tons of creativity, generous humor, deep intelligence, and visuals. Be sure to follow the link about stern authority, it's hilarious. A wishlist giftTuesday 20 January 2004 I first created my Code page almost 1¾ years ago, and on that page is a meek suggestion that my Amazon wishlist might be a good way to compensate me for my efforts. A few days ago, I got my first CD! Thanks.
tagged:
site» 2 reactions Dithered.comTuesday 20 January 2004 Chris Nott runs a site named dithered.com which has only a few things, but they are choice. If you create web sites, you'll want to take a look around. In particular, he has a section about CSS Hacks which attempts to make sense of the confusing morass of tricks to get CSS to display properly in the wide array of buggy browsers out there. For example, his table of CSS-only filters (CSS constructs that use browser quirks to interpret differently in different browsers) is amazing. I'm not sure it actually makes the situation clearer, but it certainly is chock-full of information. Speeding C++ linksMonday 19 January 2004 On a C++ project, we'd been finding the build getting slower and slower. The link phase in particular seemed to take an inordinately long time, much longer than our experience would indicate that it should. Here's what I did about it. » read more of: Speeding C++ links... (18 paragraphs)
tagged:
how-to,
c++» 4 reactions Shampoo bottlesWednesday 14 January 2004 One of my autistic son's small aggravating habits is emptying shampoo bottles. He takes showers by himself, and is usually well-behaved. But shampoo bottles are very tempting, and he gets into phases where he uses a bottle per shower. We try to watch over him, and we buy him cheap shampoo so that we don't care so much. We would rather he didn't do it, but we've gotten used to it as a minor irritant. Then yesterday my 11-year old needed to build a project for school: "Do we have two soda bottles I can attach neck-to-neck?" "No, but we have some shampoo bottles..." Sometimes things work out in ways you don't expect!
tagged:
autism,
parenting» 9 reactions Printing Unicode from pythonTuesday 13 January 2004 So if I have Unicode strings in Python, and I print them, they get encoded using sys.getdefaultencoding(), and if that encoding can't handle a character in my string, I get a UnicodeEncodeError. Can I set things up so that the encoding is done with 'replace' for errors rather than 'strict'? As it is, I use a function instead of print: # Safe printing: can print any unicode string Isn't there a way to set stdout to not care or something?
tagged:
python,
characters» 9 reactions Updated ID3 toolsTuesday 13 January 2004 I've updated my ID3 tools (the id3reader module and the m3utree utility) based on feedback from people who tried them. Thanks in particular to Samuel Wright (11 email roundtrips) and Kris W. and Mark Williamson (4 roundtrips each) for making useful suggestions and being patient while the kinks were hammered out. If you tried them earlier and had problems, try them again, and let me know if something is amiss. Sune Kirkeby also updated his mp3.py file to deal with extra information quietly, so you may want to grab that again if you had difficulty in that regard. Memory errorsFriday 9 January 2004 Something to keep in mind: if a program seems to run out of memory, it may not be a memory leak. It may be that you have one gigantic allocation larger than memory.
tagged:
debugging» 2 reactions FontifierThursday 8 January 2004 Fontifier turns handwriting into fonts. There have been services that do this for years, but Fontifier makes it gratifyingly immediate: you print a grid from their site, scrawl your letters onto it, scan it, upload it, and then download a font. The whole process takes about ten minutes. After seeing the resulting font, I'd take a little more care with the letters next time, especially their alignment to the baseline (look at the n's below). And I'd try to get them larger (in pixels). But the results are pleasingly familiar:
tagged:
typography
/
via:
typographica» 1 reaction Rocket man blogThursday 8 January 2004 With all the information available these days about Spirit, it's unusual to find a new source. But Rocket Man Blog is just that. Mark Oakley works in a test lab somewhere in the space industry:
His inside comments on the Mars expedition are fascinating. And he has a great play-by-play commentary of this amazing animation of the mission: How Spirit Got to Mars.
tagged:
animation,
blogs,
space
/
via:
Keith Devens» react WebFountainTuesday 6 January 2004 I don't know what WebFountain is, and after reading IBM's page about it, I still don't. Used to be you could surf the research group web pages and get some hard technical details. Now they've got slathered-on market-speak just like the rest of the company. Here's the opening paragraph from the research page:
The rest of the page isn't much better. It seems to have something to do with analyzing text. There are other publications linked from there, maybe some of them explain it better.
tagged:
business
/
via:
John Battelle's Searchblog» 5 reactions Buying a laptop on ebayTuesday 6 January 2004 Another home-IT question: My wife would like a laptop, but we are feeling strapped for cash. We started poking around on eBay, and found a great many laptops, some for very low prices. Some are clearly under-powered (one was described as having a "roomy 1.2 Gig disk" and "loaded with 32 Meg of RAM"), but some seem reasonable. But what should I look out for? I can already tell that I'll have to buy a new battery no matter what, because these used laptops always have flaccid batteries. What else? Anyone have any experiences with this sort of transaction?
tagged:
hardware,
online» 7 reactions How to ask for helpTuesday 6 January 2004 I like being part of the wider geek community. When I've written a piece of code that I think works well and solves a problem that other people will have, I like to share it so other people can use it. When people have problems with those pieces of code, I like to help them. But people, please, learn how to ask effectively. This is an actual email I received this morning, referring to a cursor creation function I posted at pygame.org:
What am I supposed to do with this? Even if I wanted to spend time figuring out what this guy needs, where would I start? There's no information here. When asking for help, keep these tips in mind:
This isn't just me being difficult. These things always make it easier for the helper to help the helpee.
tagged:
how-to» 8 reactions Text in columnsMonday 5 January 2004 Who'd have thought there was anything else to say about displaying text on screens? Everyone just creates a long vertical scroll, and gives the user a scroll bar. On top of that, the whole thing might be chopped into pages. But here's another way: a few people have been trying out displaying text in columns no taller than the screen, then laid out horizontally. This gives a feel more like reading a book or newspaper. Try it out at the International Herald Tribune. Read any story there, and notice the controls at the bottom of the page. The whole effect if very slickly accomplished, including the ability to click anywhere in the first or last column on the page to move in that direction, complete with highlighting of the action at the bottom of the page (try it, you'll see). They also let you change the size of the type, with the page count adjusting automatically, and even the number of columns changing to properly accommodate the font. It turns out the code to accomplish this trick is available at smokinggun (no, not the site that has Britney Spears' marriage license application affidavit). Another example of the same technique is Tofu, a text reader for the Mac.
tagged:
ui
/
via:
webgraphics» 5 reactions SpiritMonday 5 January 2004 It is very cool that Spirit has successfully landed and seems fully functional. As an engineer, I'm impressed by the ability to build something complex like this, throw it a couple of hundred million miles, and then work it by remote control. It also must take enormous patience: the rover won't start moving for more than a week, and when it does, it will travel a few inches per hour. Matt Croydon has a good collection of links to other sites about Spirit. On Science Friday, a pair of JPL scientists were taking call-in questions. One caller made two points. The first was an interesting scientific problem: what if the life on Mars is so different from ours that our tests for life don't detect it? The second was more out there: considering so many landings on Mars have failed, maybe it's the landers that approach populated areas that are being shot out of the sky, and only missions that approach deserted areas that succeed. The two scientists didn't have any good answers.
tagged:
space» 3 reactions In November, I wrote about creating m3u files in a tree, and posted a simple solution. It turns out there's a serious drawback to creating m3u files with just the file name: when Winamp loads the playlist, it reads all the files to find out how long they are, which can take a long time (minutes) with a very large playlist. This is annoying. I've put some more effort into it, and now I have a better solution. » read more of: M3u files in a tree, take 2... (5 paragraphs) I learned a couple of things about Unicode today: 1. Python has a named character escape in Unicode strings: >>> u'\N{MIDDLE DOT}' 2. The Unicode Consortium maintains authoritative parsable data files describing various aspects of Unicode and its myriad characters: Unicode Character Database.
tagged:
python,
characters» react id3readerSunday 4 January 2004 I've posted a new Python module: id3reader. It reads ID3 metadata tags from MP3 files. I've tried all the other Python modules out there that claim to do this, and each failed on one of the few MP3 files I tried it on. This one reads ID3v1 and ID3v2 tags, and tries to unify them into a simple reader module. If you try it and find it doesn't work for a file of yours, please drop me a line so I can keep it up-to-date.
tagged:
music,
my code» 5 reactions The Sokal affair in Social TextSaturday 3 January 2004 Almost eight years ago, physicist Alan Sokal wrote a bogus parody of a post-modernist paper and submitted it to the journal Social Text, which published it in all sincerity as genuine. This caused a great commotion, and there was much debate about it. For example, the Washington Post wrote an editorial about it. I mention all this because I just found out that Alan Sokal is the brother of a friend. That's all. Six degrees of Rod SteigerSaturday 3 January 2004 Party conversation tonight turned from:
BTW: Malcolm Gladwell wrote a great article about connections among people for the New Yorker a few years back: Six Degrees of Lois Weisberg.
tagged:
movies,
math,
tv» 1 reaction MailioSaturday 3 January 2004 More about safe computing for kids: Mailio is "email with training wheels". It's specifically designed for parents to deploy for kids' use. Only addresses on the parents' whitelist can be sent to or received from, so there's no fear that the kid is corresponding with someone they shouldn't be. I haven't tried it, but it looks like an interesting concept.
tagged:
parenting,
email
/
via:
all in the <head>» react My nonogram puzzlesSaturday 3 January 2004 Last February, I wrote about nonograms and PictureLogic, a nice implementation of these graphical puzzles for the Palm. PictureLogic also lets you create your own puzzles, and Keith Wolcott, its creator, accepts puzzle collections from users, and posts them for download. Over three years ago, I created some PictureLogic puzzles. Last February, I finally dug them up and sent them to Keith. Today, he finally posted them on his site. Through the magic of serial procrastination, these archeologically significant puzzles are at last available for download. Enjoy. Freeing MP3s from iTunesFriday 2 January 2004 I've started using iTunes for Windows to rip CDs, and to buy one-off songs online. I'd sort of assumed that Apple had done a pretty complete job of ensuring that downloaded songs would remain within their DRM bubble, since they have limits on the computers they can be shared to and so on. So I was surprised to see how easy it is to buy a song online and turn it into an unencumbered MP3 file, and I was especially surprised that iTunes showed me the way. I downloaded a song, and wanted to play it in the car, which has an old-fashioned CD player (only audio disks). So I put a blank CD-R in the burner, and used the burn button (I want more software with buttons like that one!). After burning, iTunes detected that the CD player now had an audio disk in it, and changed the burn button into an import button. That surprised me, but sure enough, clicking the import button ripped the audio CD into plain-old MP3 files. So it's easy to get MP3's from the iTunes store, you just have to waste a CD-R to do it.
tagged:
music» 3 reactions Web filtering softwareThursday 1 January 2004 After a recent incident of a too-curious child surfing somewhere they shouldn't have, I'm looking for web filtering software for my home machine. Anyone have any recommendations? I'm not sure I want to prevent viewing so much as ensure that we know what has been viewed, but I'm considering all possibilities.
tagged:
parenting,
help» 10 reactions Virtual travelogThursday 1 January 2004 John R. Harris has an intelligent site called Virtual Travelog. He has a number of entries about the early history of computing that are fascinating and unique. He muses about the kinds of bugs that stumped Alan Turing, and plots the history of early computers (up to 1950). Good stuff. HappyThursday 1 January 2004 Happy New Year everyone! I feel good. » read more of: Happy... (9 paragraphs) Here's looking forward to 2004 and further happy adventures!
tagged:
philosophy» 1 reaction « December 2003 | » Main « | February 2004 » | |