|
wolog.net
(without loss of generality...) |
|
All truly great revolutions occur outside the circle. They are usually brought about by great and quiet people working hard for many years in quiet rooms. Everyone else just rides the wave, or runs from it. You will be the wave.2 comments | post a comment
He's all over the Health section of Google News today. Experimental Cancer Therapy Stops Man's Melanoma at WebMD; also see the BBC, ABC, Wall Street Journal, US News, and many others. He's been working on this line of immunotherapy research for many years.
I'm giving the musical tuning lecture again! Enough people missed it, and wanted to see it, that i decided to schedule a second run. Tomorrow night (Tuesday), Kingman Hall, 8:30pm in the fireplace room. Feel free to drop by. post a comment
The lecture went well! I had a good, engaged audience — a little over a dozen people, i think — and they put up with the multiple glitches in my presentation software. I wrote the software to do these animations using Pyglet, a multimedia library for Python. Here's a condensed version of the first part of the lecture. It isn't quite the same without the audio — we could play the notes depicted on these slides, to hear the intervals we were talking about. But i'll try to explain the ideas in text. * * * Musical notes are oscillations, and the pitch of a musical note is determined by the frequency of the oscillation. (There are often many different frequencies embedded in the sound of a particular instrument, but the pitch we hear is usually the loudest and lowest of the frequencies.) Two notes played together sound harmonious if their frequencies are in a ratio of small integers. That's because when the ratio is simple, the combination of waves makes a simple repeating pattern like the pair of waves on the bottom of this picture. The pair on top are not in a simple ratio, so the pattern doesn't repeat exactly.
The ratio between 300 Hz and 600 Hz is 1 to 2, the simplest possible ratio of two different notes. We hear that as an octave — such a basic interval that the two sound like the "same note". Here are the four octaves starting from 100 Hz — they go up to 200, 400, 800, and 1600 Hz. Plotted on a logarithmic scale, all ratios of 1 to 2 appear as equal distances. I'll mark this distance with a red bar.
Let's zoom in on one of these octaves and see what other ratios look like. I'll drop the "Hz" for now and mark the starting frequency just as 1. The next simplest ratio is from 2 to 3; i'll mark that with a blue bar. The ratio from 3 to 4 gets a green bar. And the ratio from 4 to 5 gets a yellow bar.
The ratio from 2 to 4 is also an octave. And the blue interval and green interval fit neatly inside — so they add up to exactly an octave. The blue interval is known as a "perfect fifth" and the green interval is called a "perfect fourth" — the reason for these names will become clear in a moment when we've put together the major scale. If you go a perfect fifth up from 1, you get to 3/2, or 1.5. And if you go a perfect fourth up from 1, you get to 4/3 (about 1.333). These fit symmetrically between 1 and 2 — you can imagine a line right down the middle, and the two notes on one side are a mirror image of the two notes on the other.
The yellow interval — the ratio 5/4 — is called a "major third". If you go up this much from 1, you get to 1.25. And the three notes 1, 1.25, 1.5 make a nice-sounding chord — this is the major chord. Let's construct a major chord starting at each of the three notes shown above: starting from 1, from 1.333, and from 1.5. Each major chord is a yellow-blue pair in the picture below.
The top note of the chord starting at 1.5 overshoots the top of the octave — it goes to 2.25, which is the ratio 9/4. The equivalent note within the octave is exactly half of that, at 9/8. These seven notes we've identified form the major scale — if we label them in increasing order starting from C, these are (approximately) the white keys on a piano. So this explains why there are seven white keys in each octave on a piano. You can see now why C–E is called a "third" — E is the third note counting from the left, and C–F is called a "fourth" — F is the fourth note, and C–G is called a "fifth" — G is the fifth note. The frequencies you see above are the "just intonation" for the major scale. Notice that the spaces between the notes are uneven — E and F are closer together than the rest, and so are B and C at the top of the scale. In each of the five bigger gaps, there's space for another note. These are the black keys on a piano — that's why there are five black keys in each octave. But piano keys are not tuned exactly like the notes in the picture above. That's because the spaces that look about the same are not exactly equal. For example, although D looks about halfway between C and E, it isn't. The ratio of D to C is 9/8 = 1.125, but the ratio of E to D is 10/9 or about 1.111. That means that if you tune your notes according to these ideal ratios, the scale will only sound right when you start on C. The other intervals will be off. For example, the fifth note starting from D is A. But the interval D–A is not a perfect fifth; it's 40/27, or about 1.48, which sounds really off. To make it possible to play in any key, pianos (and most modern instruments) are tuned so that all twelve notes are equally spaced within the octave. This picture compares the justly-tuned major scale (on top) with 12 equal divisions of the octave (on the bottom).
By an amazing coincidence, when you divide the octave (a multiplicative factor of 2) into 12 equal parts (each a multiplicative factor of 21/12), you get notes that closely correspond to every note of the major scale. For example, 7 of these 12 parts almost exactly make a perfect fifth: 27/12 is very nearly equal to 1.5. Where the lines match up, you have a white key on the piano; and where there is a missing line on top, that's where you have a black key. When you tune the piano to this system, which is called "12-tone equal temperament", the scale starting from any key sounds exactly the same. This means you can write music that shifts from key to key freely, without fear of ending up in a bad-sounding scale — all the scales sound equally good. The scales are a little off from what they should be, though. The fifth on an equal-tempered keyboard sounds pretty much indistinguishable from a real perfect fifth; but you see how the E doesn't quite match up? The major third is off by an amount that you can hear if you listen closely. The A is off by even more. One of the big surprises for me when i learned about this stuff is that the 12-semitone system is rather arbitrary. It's not mathematically fundamental; it's a compromise: an approximation we invented. All of Western music is based on it, which, in a way, makes all of Western music a kludge. And it is impossible to tune the notes both in simple ratios and allowing modulation freely between all keys. The frequencies can never match up, because the just tunings are rational numbers, and any equal division of the octave will produce irrational numbers (nth roots of 2). (I then wandered off into talking about the scales in other cultures, and we listened to samples of music from these other cultures and from modern experiments in 19-tone and 13-tone equal temperament.) ( All the visuals. ) 4 comments | post a comment
I'm giving a lecture at Kingman tonight at 8 pm on musical tuning systems. Ever wondered:
Consider this a sincere form of flattery, then.
Conversations These Days
(The backstory: a friend of mine complained to me about how her dad doesn't answer her questions anymore; when she asks him something, he just tells her to look it up on Wikipedia. The trueness of this comment as applied to life in general made me think, this is the perfect kind of thing for an xkcd... so i decided to draw one.) 10 comments | post a comment
If you have ever loved or cared for me, i would like to say thank you. I realized i wanted to say this a little while ago, when i was cleaning up my room and came across some of the letters and notes i've received from people who were close to me. They reminded me how incredibly lucky i've been.
This is one of the funniest and most awesome things i have read in a long time. Definitely worth checking out, especially if you ever wonder about the nature of consciousness. GENERAL FRED: Are you sure?1 comment | post a comment
When i arrived at the Intercontinental Hotel i was pleasantly surprised to run into
I found out that Attorney General Michael Mukasey is speaking at the Commonwealth Club tomorrow. I decided to buy a ticket and attend, figuring i might not get a chance like this again. I hope to ask him: Title 2, Section 192 of the U. S. Code says that refusing to testify or produce documents in response to being summoned by Congress is a misdemeanor punishable by fine and imprisonment. It does not equivocate. It doesn't say it's a misdemeanor unless the President prefers someone not to testify. Section 194 says that when someone violates Section 192, a U. S. attorney has the duty to bring the matter before a grand jury. It doesn't say that this duty only exists unless the President prefers the law not to be enforced.If you know anything about how these sessions are run, or how one gets to ask questions, please do tell. 2 comments | post a comment
I'm starting a new open source project. It's something i've been thinking about for quite a while now, and have mentioned to people here and there. Let me tell you a bit about it. Exhibit A: a book on gender differencesA little while ago, i wrote about a newspaper article in the SF Chronicle. The subject of the article was a new book by Louann Brizendine called The Female Brain. On the cover of the book is a brain-shaped mass of white plastic telephone cord, the old kind that comes in a long springy coil — a visual wisecrack depicting the book's central claim that women are born communicators ("excess testosterone shrinks the communications center").The book jacket lists several gender stereotypes as bullet points. One of them is a specific numerical claim: A woman uses about 20,000 words per day while a man uses about 7,000. Other sources give a wide range of numbers, from "7,000 vs. 2,000" to "50,000 vs. 25,000". Perhaps a lot of people believe women are inherently more talkative. But there doesn't seem to be much evidence to back this up. Actually, a recent study suggests that men and women talk about equally much. Nonetheless, Brizendine's claim was quoted all over the media. It made a huge impact (the book was a bestseller), and a considerable amount of time went by before it was debunked. To a casual observer, the claim probably doesn't even appear to be debunked at all: a reputable scientist says one thing, a little while later another scientist says the opposite — who's to say which is right? Another virtual throwing up of the hands, another shaking of heads, another anecdote about those silly academics who can never agree on anything. Catching and recovering from misconceptionsOf course, this sort of thing goes on all the time. Brizendine, as i said, is a reputable scientist — she is a medical doctor and has been on the faculty at Harvard and UCSF. Plenty of facts and figures quoted in the media are presented by people who don't even claim to be scientists or to have evidence. Public misconceptions are pervasive, stubborn, and can be enormously costly.When you come across a fact — or something that's claimed to be a fact — how do you know whether it's true? Maybe you Google for it; after all, the Web is somewhat more democratic than the TV and print media. But the Internet is also notoriously good at spreading rumours. Maybe you check Wikipedia, trusting its community editing process to do a good job of weeding out errors. Or perhaps you visit Snopes, hoping that the rumour you heard is common enough that someone there will have written an article about it, and you think the people who run that site are pretty decent at what they do. On the other hand, Wikipedia and Google are a little too general: they may give you an article that's generally related to your topic, and then you need to examine it to see if it mentions the particular claim you want to check. And in both cases, the filtering process is hard to examine: Google's ranking algorithm is secret, and although at Wikipedia everything is public, you could spend weeks reading through the discussion pages trying to find out how a particular claim got inserted into the article. Snopes offers an excellent overview of each rumour, but there's only so much that two people can write. And of course you have to trust those two people. An idea for a new serviceSo i think there's a useful service that could be provided by a new website: something with the openness and democratic participation of Wikipedia, but more focused on specific claims and the evidence for them. Thus Factville: a community-edited database of facts and supporting evidence. The site i have in mind would not be an alternative to Wikipedia, but rather a tool to help Wikipedians. A large part of the debating on Wikipedia consists of people gathering sources to support statements they want to put in the article; Factville could help them organize these sources and settle these debates. Factville would also be a tool for bloggers and journalists. When a controversial claim appears in the media, articles spring up all over, taking sides on the claim, quoting and citing sources to support their position. Why not have a place to gather the complete list of sources? Why not discuss them and rate them, the way the Web has taught us to discuss and rate photos, discuss and rate URLs, discuss and rate movies?That's what Factville is about. It's going to be a Frankensteinian cross between Wiki-style websites (community-edited, completely freeform text, with a recorded history of changes to establish accountability) and Flickr-style websites (community-maintained, structured information, with tags, comments, and ratings). The big challenge will be to make this simple and easy to use. Here is the basic design:
A source can be any kind of published work — a newspaper article, a conference paper, a video clip, a blog entry, etc. Some sources stand on their own (like Brizendine's book); others belong to a publication venue and rest partly on the venue's reputation (the credibility of an article in the New York Times is related to your opinion of its editing standards). Citations and sources are separate things because the same source could be used for several claims, or even cited as evidence on both sides of the same claim (perhaps quotations excerpted from different parts of the same source). Information on sources could also be automatically drawn from the syndication feeds of popular publications. When a contributor wants to put together several sources or other claims on Factville, and combine them into a reasoned case for or against a claim, they can write an argument. Other visitors can rate the arguments up or down so that the most convincing arguments get the most attention. The ratings of claims, citations, and arguments are not supposed to tell you what is true. They can only tell you about other people's opinions. But the goal is to give you as complete as possible a view of all the evidence, and to let the collaborative power of a large crowd help you find the most relevant factors to consider, as you make your own decision whether to believe each claim. A modest startI don't have a running website yet. I have a lot of ideas, some in my head and some written down, many in this journal entry. And i have a start at some code that implements the database structure i just described. Today i registered a new project a Launchpad, an open source project hosting service. You can monitor my progress on the Factville page there. The code I've written so far is available from that page. It's written in Python and runs on Django, which i'm still learning. 19 comments | post a comment
Last week i went to the Python Conference in Chicago. It was good to be among that crowd of familiar faces again. I've been feeling somewhat anxious and lonely lately in anticipation of the shift from school to Real Work and my imminent move out of the co-ops (yes, that's still months away but it makes me sad), so it's nice to be reminded of a community i can continue to be a part of. Quite a few Python hackers are at Google (including Guido himself), so i may be seeing more of them soon.
I did finally make a decision about what to do next with my life. I'm going to be joining Google.org in San Francisco. The work they're doing is very exciting — they're taking on some of the really big problems in our world, and i'm thrilled to be joining them. I think two of the biggest factors for me are (a) the huge learning opportunity of working with experts in international health and development, and (b) the openness of the "dot-org" side of the company. Google's culture of intense secrecy was one of the main concerns i had about working for them, and this seems to be much less of an issue at Google.org.
Here's my picture now:
Forces for good:
I realize that everyone probably has different ideas about what should go on this picture, and what arrows should connect them. I think that's interesting — what you choose to put on the diagram says something about your worldview. So: take a few minutes to draw your own diagram. Then take a picture of it and post it in a comment here, or post it on your blog/journal and leave a comment here. I'm curious to see what will show up in everyone else's drawings. 18 comments | post a comment
I've been doing a little brainstorming. Here's what i have so far. If there were no externalities, the free market would solve everything. But that's not real life. So this is a picture of influences that occur outside the free market.
The completely connected triangle — education, health, and poverty — is interesting. There are people, organizations, and movements sitting on each of these arrows trying to influence them. These are some of the "good guys":
Where do you fit on this picture? 50 comments | post a comment
This is the entry in which i confess to one of my compulsive behaviours. My sleep cycle is not the most regular thing in the world (but then again, i hear this is not so unusual for hacker types). Once upon a time i got interested in my sleep patterns,1 and decided to start recording them. So i hacked up a little utility to help me keep a log of when i sleep and wake up, with fairly minimal effort.
So... i'm trying to organize my thoughts on what to do with my life. I've been out of school for a month, interviewing for jobs and coming up with project ideas. I decided that writing might help me sort this out, so i'm going to do some of my thinking here, in the open. I invite your reactions and opinions — some of you know me very well, and your feedback could help me out. DesiderataFirst, a little bit about what i'm looking for.I am convinced that a capable computer programmer can build things of great benefit to the world. I'm not trying to be arrogant; i just think it's true because software and networking enable inventions to spread at incredible speed, and a single person can launch one with nothing more than a laptop and an Internet connection. The software industry is unique in this respect. It only took one person to invent HTML and two people to start Google or Wikipedia. Individual programmers have created things as powerful as Napster (at age 19), Facebook (at age 20?), and BitTorrent (at age 26). So, from a certain perspective, i'm already way behind the game in terms of fulfilling potential. That's my primary goal: for my existence to have yielded things of benefit to the world — hopefully, of significant benefit to many people. That means my decisions hinge on a calculus of benefit, which is of course a complicated and subjective thing. I often find myself feeling like the stonecutter in the fable as i chase down chains of logic trying to figure out how to achieve maximum benefit. In any case, my current line of thinking is that there are five factors in choosing the most beneficial option:
The last factor implies that there has to be something about my skills that fits the project — if the job i do is something that would have been done by someone else anyway, then my choice to join the project has little effect. And the ultimate choice, in terms of the last factor, would be to start and launch something of my own, provided it doesn't duplicate something that already exists. I think of these five factors as combining in a roughly multiplicative way — a × b × c × d × e is the approximate expected utility of making a particular career choice. (Let me know if you notice factors i've forgotten.) Notwithstanding all that, i am biased toward projects that benefit a large number of people and/or people who are less fortunate. I don't know to what extent this is because they are truly more useful, or because i want to be famous or seen as noble. But whatever the reason, it matters to me to do work whose benefit most people can understand. What is the most important problem?There's a saying about how to win a game of Go: simply always make the biggest move. Each stone you play will affect the final score somehow; if you choose moves that are worth more than your opponent's moves, you're bound to win. The hard part is evaluating what each move is worth.I don't expect to save the world by myself, but i'll get further if i have the conviction to focus on something rather than dabbling in a lot of different projects. So, i feel it's time for me to pick a big problem to attack, and after i've chosen it, to go as far down that road as possible. The question is what problem to choose. Below are some possible answers, presented as arguments by imaginary people (members of the committee in my head, you might say). I've also broken these out into top-level comments by me below so you can comment on them individually. ( See the options. ) Your opinions here...Which answer sounds the most compelling to you? Are there other good options i've failed to identify? I'm interested in your thoughts.Update: I've already received several suggestions of the form, "Do what you enjoy." It's good advice, yes, but i should probably explain why i've intentionally left that out of this particular analysis:
Larry Lessig explains the significance of tomorrow's primary.
There are so many more thoughtful and significant things i've been wanting to post about for a few weeks now. I hope i get to them. But today i couldn't resist posting a link for you: I'm still laughing. 12 comments | post a comment
So by now everyone knows that Obama and Huckabee won the Iowa caucuses. But perhaps less well known is the dramatic difference in voter turnout — between Democratic and Republican, and in 2008 compared to previous years.
Some of the numbers above are approximate, but the trend is clear: a huge increase in Democratic caucus participants (78% more than in 2004, and 90% more Democrats than Republicans this year). My understanding is that the Democratic caucuses also require more time and involvement than the Republican ones. All of this adds up to a lot of enthusiastic Democrats — at least in Iowa. Here's what that looks like if you break down each bar according to the proportion of support that each candidate received.
What do you think this means for the election as a whole? Is this phenomenon local to Iowa, or is it a sign of things to come? Sources: MSNBC, AP, CNN, Eric Appleman. 13 comments | post a commentback 20 entries |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||