Playing with Wolfram Alpha

Ottawa street lights

Wolfram Alpha is based on a rather neat idea: making a website that can actually deal with information in an intelligent way, rather than simply search for words of things in existing pages. Put in ‘1 kg gold‘ and it will tell you that it would form a sphere 2.313cm in diameter, a cube 3.73cm to a side, and cost US$32,520. Put in ‘running 10 km/h 60 minutes 6’0″ 185lbs age 25 male‘ and it will estimate the number of calories expended. It doesn’t know about cycling yet, unfortunately. It doesn’t seem to be able to do calculations on greenhouse gas emissions yet, either, though it will tell you that mixtures of air and methane in which the methane is between 5% and 15% of the total will explode if exposed to a temperature of 595˚C. It also knows that Apple has 35,100 employees and a current P/E ratio of 23.1. It can search for base pair sequences within the human genome.

The biggest limitation of the site is phrasing things in a way it interprets properly. Indeed, most of the searches I try produce only the message: “Wolfram|Alpha isn’t sure what to do with your input.” For the time being, Wolfram Alpha is less of an open-ended vehicle for computations and data access, and more a set of discretely made tools for existing tasks. If you know which tools exist and how to format input for them, it works well. If you are trying to get it to do something its designers didn’t anticipate, it probably won’t work.

In short, Wolfram Alpha is a fun thing for statistics nerds to play around with, and could be genuinely useful for research. The best way to appreciate its current capabilities is to watch this introductory screencast.

Downloading from YouTube and Megavideo

There are lots of sites out there that present videos in a non-downloadable way, wrapped in flash video players. For instance, there are Megavideo and YouTube. For those running Safari, there is an easy way to download these videos:

  1. On the page with the video, click ‘Window’ and the ‘Activity.’
  2. Scroll through the list until you find something plausibly large (at least a few megabytes)
  3. Select that item and copy it, either with the hotkey or from ‘Edit > Copy.’
  4. Click ‘Window’ and ‘Downloads’
  5. Paste the item, with either the menu or the hotkey.
  6. The file will download to your desktop.
  7. Add the extension .flv to the file
  8. They can be played in video players like VideoLAN.

The same trick can be used to grab other forms of embedded media from all sorts of websites, and it’s much easier than digging around in search of temporary internet files.

Down the west coast by public transit

As reported on Tristan’s blog, my friend Mike is in the process of traveling from Vancouver to Portland, by public transit alone. Apparently, this is possible because the transit systems of successive places overlap.

You can follow the journey via Twitter, or through the blog they have been updating several times a day: The I-5 Chronicles

Canadian parliamentary voting records online

The voting records of Canadian MPs are being made available online. For instance, here is the voting record of Paul Dewar – NDP representative for Ottawa Centre. Things are still in an introductory state and the system hasn’t become as useful as it could potentially be. Nonetheless, it is a nice step forward towards a system in which constituents can easily and effectively monitor what their representatives are doing.

Link placement preferences

For future reference, which approach do people prefer:

A) Putting links at a gramatically sensible place in sentences, i.e.: “A new report has been issued on climate change and water.”

B) Using the keywords as links, i.e.: “A new report has been issued on climate change and water?”

I have used both inconsistently in the past, generally thinking that A is more human-friendly and B is more Google-friendly.

Amazon’s sudden homophobia

Bird and ivy

In a rather despicable move, Amazon.com seems to have decided that all texts pertaining to homosexuality are somehow obscene. As a result, they have been removed from sales rankings and lists of best sellers. The top result for a search on the term ‘homosexuality’ now leads to A Parent’s Guide to Preventing Homosexuality, followed by several other Christian texts offering to ‘cure’ homosexuality. Farther down, there are some books that are positive towards alternative forms of sexuality, including what I have been read is the most banned book in America at the moment: And Tango Makes Three, the true story of two male penguins at the Central Park Zoo in New York who raise a chick together.

Amazon initially claimed that ‘adult’ material had to excluded from “searches and best seller lists.” Obviously, this censorship is deeply inappropriate and Amazon now says it was an error. Until they sort it out, I certainly won’t be buying anything from them.

[Update: 15 April 2009] According to The Globe and Mail, the Amazon rankings have been restored.

Book club, month two

The first month of the non-fiction book club is coming to an end, and I will be posting my review of Easterly’s The White Man’s Burden on Wednesday. As such, it is time to start choosing a second book. I have the following nominees:

1) Speth, Gus. The Bridge at the Edge of the World: Capitalism, the Environment, and Crossing from Crisis to Sustainability.

2) Jaccard, Mark. Sustainable Fossil Fuels: The Unusual Suspect in the Quest for Clean and Enduring Energy.

3) Cherry-Garrard, Apsley. The Worst Journey in the World. (About a failed Antarctic expedition)

What else would people consider reading?