Sunday, March 18, 2012

The Tragedy of Bits

The content/hardware markets are a crazy inversion. Hardware has marginal costs; bits don't. Yet hardware is now being subsidized by the high "margins" on selling bits. The price you pay to flip bits in your device pays for the cost of the device itself. There's a war raging for who gets to be the one with the 30% cut of every bit sold. It's being fought with device subsidies and a combination of habits, defaults, and lock-in. Amazon doesn't pretend to accommodate competing bit sellers on their devices. Apple is happy to let them sharecrop for the same 30% cut. Console gaming is becoming the model for everything, exploiting the inability of humans to sum small numbers over a long period of time.

The best allocation of resources would be for every one of us to consume as many bits as we want on a small number of devices; That's what our economy can produce. Instead the incentives are for us to consume a small number of bits on a large number of resource-intensive devices. The bit-sellers are hoping that they can commoditize the bit-makers by abstracting them away behind the veneer of their device and payment system, like we'll forget that beef comes from cows and not the grocery. All this for the minimal service of flipping some bits and processing a credit card. The net effect of this will be less content produced (with lower budgets,) less content consumed (at higher cost) and an endless stream of slightly shinier devices that contribute more in social status and momentary dopamine than actual marginal improvement.

Absent from all of this is any sort of coherent strategy on the part of the bit-makers. Their only apparent objective is to keep customers from getting used to buying cheap bits, oblivious to the fact that they are no longer even the ones selling the bits. The makers haven't yet realized that they have the power.

Imagine if the bit makers sold the bits themselves, or offered them DRM free through multiple sellers. The sellers would have to compete on convenience and price out of their diminishing margins. The maker would have a direct relationship with the customer, and might even end up with a respectable brand. With a diversity of sources, single-seller devices would become obviously broken by design and fail in the market. Bit-sellers would be revealed as nearly redundant, with makers at the center of the transaction. Instead they seem intent on squeezing blood from the stone of their existing customer relationships while letting their biggest threats move into comfortable positions.

The net effect for me is that buying media is uncomfortable. Even when it works, I feel like I'm participating in someone's machiavellian scheme. Amazon, I love your devices, but they don't read any of the bits I'm willing to buy. Please BBC, I would love to pay you for Planet Earth, but I have no intention of buying a bunch of redundant bit readers to do so. Useless hardware offends my aesthetics more than owning your bits can compensate for, and I'm not paying money for hardware that is defective by design.

The goal of copyright is to get people to pay for bits, and to pay people for making those bits. Its approach is to shoehorn it into the rest of the economy with a series of bizarre compromises that try to make bits become less bit-like. The associated notions of information "owning" are a tool, not an end. As bits have regained their natural state over the last few decades, we've done a horrible job of fulfilling the original goal. Most of the remaining money spent on bits is not getting spent on making those bits. Instead we're trying to come up with a new set of packages in which to put them, and all the strategy revolves around those packages instead of the bits themselves.

Meanwhile, we now have the technology and infrastructure to give all bits to all people. It's a tragedy that we don't.

Saturday, December 31, 2011

Fiction is now either Science Fiction or Historical Fiction. The present doesn't last long enough.

I just finished reading "The Wind up Bird Chronicle," and the plot of it requires that the main character be unreachable by phone when he is outside of his house. How different a world that was, where going out into the world to meet other people actually isolated you in some ways. This dated the novel entirely. It became a novel about sometime last century instead of just a novel.


Consider writing a story about someone who gets lost on a road trip or a walk. This is an archetypical setup, but how difficult it would be to do that today, to set that up in a way that rules out all the obvious ways of getting directions in an entirely uninteresting way from our smart phones? I can imagine it now: "My battery was too low to get signal, and between my two companions, one doesn't have a nationwide data plan, and the other is with a second tier carrier with poor 3g coverage, so miraculously, we have to talk to another person, and thus move the plot forward in an interesting way." Even after all those awkward contortions, that setup probably has a half-life of 5 years.


All of us spend a lot of our lives on our computers, but what we do on them can't be written about in a way that is both poetic and accurate. We just don't have enough words for it. Every humble tool in a leatherworker's arsenal has its own name (the awl for instance.) These things have been around for long enough for that to happen, and to gain the gravity that makes them candidates for metaphor. The pen is still mightier than the sword, even though we no longer use either. The keyboard may be mightier than the cruise missile, but I can't imagine saying that with any dramatic weight.


The basic ways we do common things are not only different, but changing from year to year. Henceforth a novel will have to choose a time period in which to take place, and choosing "now" will make it historical fiction by the time it is published.

Tuesday, March 08, 2011

Why big organizations don’t take risks proportionate to their size (a theoretical argument)

TLDR version: People optimize E(Log(x)). Big organizations should optimize E(Log(Σ x)), but because they are composed of many people, they optimize ΣE(log(x)).

Logarithmic Utility Curves

Suppose someone offers you a 50% chance of a $1M prize, or a 10% chance of a $10M prize. Most people who don’t already have a lot of money would take the first, more certain option, even though the expected value of the second is double that of the first. ($0.5M vs $1M). $1M would improve my life a lot. $10M would also improve my life a lot, but not so much more than $1M that I’m willing to risk getting nothing. Economists call this “risk aversion.” and model it using a “utility curve.” Though quite abstract, it corresponds pretty well to intuition. The idea is that $10M isn’t “worth” 10x as much to me as $1M, so I have to account for that before I take the expected value. The most common utility curve used in simple models is logarithmic, both because it’s mathematically simple, and close enough to reality for most purposes. Intuitively, no matter how much money I make, I’m willing to put in a linear amount of additional effort in order to raise my income level by 10%, so you end up with logarithmic utility.

To compare these two offers, before we take the expected value, we’ll take the log of the outcomes.
log(1M) ~ 6,
log(10M) ~ 7,
0.5 * 6 > 0.1 * 7, so we take the first offer as observed.

Rather than optimizing E(x), we optimize E(log(x)) and get behavior somewhat like what a real person would do.

Organizations

It makes sense that an organization should have a utility curve looking like a log. Going out of business (log 0) is -infinity as observed, and companies care about percentage improvements rather than absolute improvements just like individuals do. I apologize for not having better arguments that this is the way organizations should behave. This is a blog post, not a research paper. :)

This means that if the output of each employee is x, the outcome for the company as a whole is Σ x, and the company should be optimizing E(log(Σ x)).

How do they actually behave? The company will behave in the way that the aggregate of its individuals behave. If individuals are rewarded in proportion to their personal outcomes rather than the company’s outcomes, they’ll behave by optimizing their personal utility function. As a result, the company as a whole will optimize Σ E(log(x)).

Big organizations apply the risk-aversion of an individual to losses that are teeny relative to the size of the organization, because people care more about their individual risk than the risk to the company. Ideally, a company should have many people working on huge improvements with a small probability of success. In reality, it's almost impossible to structure incentives so that doing things with a small chance of success is a good personal strategy. It’s hard to reward competence and not outcomes. If you reward outcomes, the company will be risk averse. Having a few engineers work for years on something that doesn’t finally work is a teeny risk to the company, but potentially a huge risk to the careers of those engineers.

Thursday, December 16, 2010

History through Google Books Ngrams

Each of these graphs plots over time the fraction that one word constitutes of all words in books mined from the Google Books project.

Westward expansion of the U.S.

One invested in railroads, the other, canals.

New religions of the last 200 years.

Race.


Note how people didn't start capitalizing "black" until the mid '60s, even though it had been used as a descriptor as often as "colored" for a long time. Note the different curves for "negress" and "Negress." Capital "Negress" rose in usage alongside "Negro woman" and was nearly as common in the '40s, but half as common in the '70s. Lowercase "negress" was mostly replaced by capitalized versions, which were then replaced as well.

Industrialization of food.


Pawpaws were more popular than blueberries, and gooseberries were more popular than raspberries!

Communism

Presidents

Marijuana

Industry

Music

AIDS


Notice how HIV lags AIDS, and condom is correlated more with HIV than with AIDS.

Feminism

Scurvy

Ideology

Israel and Palestine as a people and as a place

The names of Muslims


It's 2:00 AM, and there's still worlds to explore just off the top of my head. This is a treasure trove. Google Books Team, this is an amazing accomplishment. I used to envision that this is how history would be done in 50 years when the digital age has ensured that anything that someone cares enough about to transfer is preserved. Now we're getting to do that sort of history, today.

Monday, July 19, 2010

Inception

The movie is great. Go see it. What I'm about to write will be entirely spoiler free.

Inception will leave you distrusting your own perceptions in the manner of Descartes's Demon, more so than The Matrix ever did. It does this I think because the experience of the characters in the movie entering and leaving dreams is so similar to our experience entering and leaving the movie. "Waking up" from a good movie is a very similar feeling to waking up from a dream.

When we talk about "suspending disbelief," it isn't supposed to be something you do, but rather something that happens automatically if the movie succeeds in drawing you in. When dreaming, we tolerate wild violations of physics and causality without it ever decreasing our emotional involvement. The objective of a good movie is to tap into that level of credulity, and it wouldn't surprise me if someone discovered that the same pathways in our brains are involved.

When Christopher Nolan was writing the dialogue about how addictive it is to be an architect of dreams, he must have been really talking about is how addictive it is to be an architect of shared dreams: movies.

Thursday, June 24, 2010

Men's Wearhouse is missing a major business opportunity.

Every male in the U.S. who goes to a prom or is someone's groomsman has likely been fitted for a tuxedo at the Men's Wearhouse. Theoretically, the Men's Wearhouse should have the most comprehensive database of men's sizing information of any company. There have been a lot of weddings among my close friends this year, and I assumed that after the first fitting I'd be able to rent subsequent tuxes without going to the store in person. Amazingly, according to one of the attendants, they throw away all information about the customer after 6 months.

This loss goes beyond convenient tuxedo rentals. With this much information about me, they could be delivering clothes custom-tailored overseas to my doorstep at a price no other company could match. That much opportunity is certainly worth the cost of a few dozen more machines. Ancillary data produced by your business can become more valuable than the profits from the business itself. Don't throw anything away.

Sunday, May 23, 2010

Janelle Monáe (Wow)

Imagine if Lauryn Hill became a geek, teamed up with Outkast, and wrote two concept albums about an android uprising in the futuristic city of Metropolis. The result would sound something like Janelle Monae's inaugural two albums, Metropolis, and The ArchAndroid, the first three acts of a six act story. The songs flow seamlessly (literally) from one to the next, usually jumping genres in the process. She can wail, she can scat, she can croon, she can rap, she can dance (oh she can dance), and she can sound like GLaDOS when necessary. Orchestral interludes bookend the chapters; In one, she puts words to a snippet of Claire De Lune.

Pitchfork loves her too. Historically, the intersection of the albums I like and the albums they bother to review has been approximately 0, so these two recommendations are about as independent as they come. Go have a listen! Every track can be heard for free at the links above.

My favorites so far: Sincerely, Jane, Tightrope, and Oh, Maker.

Sunday, March 07, 2010

Tax-time gripes

California Use-Tax

It's really not reasonable for me to try to add up all the money I've spent online (but only on items used in California, not those purchased as gifts to someone out of state.) This is the largest expenditure for me outside of rent and travel, and I don't remember everything I've bought and from where. Mint.com and searching for "receipt" in gmail helps, but it's really a lost cause. I do my best, but it seems most people I talk to don't bother, despite it being the law. This is by far the most time-consuming part of filing my return, and only hurts me to do so.
A few things confuse me about it.
  1. Is shipping and handling included in the taxable portion? It's not "used" in California.
  2. Do online retailers have enough information themselves that they could provide some sort of automated assistance in tallying these?
  3. Have the courts decided whether use-taxes are constitutional despite being a tax on inter-state trade?
  4. Am I a chump for bothering?
Passwords
Filing my taxes inevitably involves getting data from financial institutions that I haven't had any interaction with all year, and thus, remembering my various passwords. If you are designing a password system, please don't place restrictions on the content of the password. It's your responsibility as an administrator to keep your users' passwords from being brute-forced. Do not offload this responsibility to them.
Arbitrary restrictions I've seen today alone while trying to get forms from various financial agencies:
  • Must have at least 1 number.
  • Must have at least 2 numbers.
  • Must have at least one capital letter and 1 number.
  • Cannot have special characters.
  • Must be greater than 6 characters, but no more than 15.
  • Must be greater than 6 characters but no more than 8.
If I can't have a small secure set of passwords to use everywhere that I can reasonably remember, I'm just going to email them to myself, thus defeating every high-minded security best practice you are trying to implement.

Sunday, November 08, 2009

Google can render your equations for you!

In my last post I mentioned that Knol and Google Docs now have equation editing. What I didn't mention is that this is an undocumented feature of the public Google Chart api, and it's easy to use. For instance, if I wanted to include the Schrödinger equation on this blog. I would construct an url like this:

http://chart.apis.google.com/chart?cht=tx&chf=bg,s,FFFFFF00&chco=AACCFF&chl=i\hbar\frac{\partial}{\partial t} \Psi(\mathbf{r},\,t) = \hat H \Psi(\mathbf{r},t)

Put your code in the chl parameter. The chf parameter lets you specify a background color in RGBA, chco lets you set the foreground color in RGB. When you drop it in inside of an image tag you get this:



If you anticipate making 250,000 calls to the chart server a day, contact Google first at chart-api-notifications@google.com. There's no limit to how much you can use it, but they reserve the right to turn you off.

Thursday, October 01, 2009

Simple Simhashing, My favorite trick.

Knol got equation editing a few days ago, and to celebrate I've written up a knol on one of my favorite CS tricks, simhashing using sets. It's a technique I picked up at Google, and it's extremely useful for grouping together similar things in a large dataset.
Suppose you have a huge number of items that you would like to group together by a fuzzy notion of similarity. Suppose the only tool available to you is a key-value store. Suppose you only have the resources to consider each object once. Never fear, simhashing is here!

Saturday, May 30, 2009

Keep Your State Parks Open

Governor Schwarzenegger has proposed closing 80% of California state parks, including most of those in the Bay Area. This is estimated to save $143 million out of a $24 billion deficit, or half a percent. This strikes me as a very poor decision given the miniscule effect it would have on California's finances, and the large effect it would have on California's quality of life. Furthermore, it may end up costing the state more than it saves if it decreases tax revenues from tourism. Admittedly it's a tough decision to spend $143 million on parks rather than on health insurance for poor children, but ultimately $143 million is a drop in the bucket for the latter. To put this in perspective, $143 million is $4.35 per capita after removing the unemployed. I'd much prefer higher entry fees or taxes to outright closures, or he could parole ~3000 non-violent drug offenders instead.

This site makes it easy to contact your state representatives.

Closing these state parks means that gates would be padlocked, and parking and restrooms won't be available, though it will likely still be physically possible to enter. You can find a list of all 220 here. Here are a few of my photographs from the parks they are intending on closing.

Point Lobos

Big Basin

Prairie Creek Redwoods

Henry W. Coe

Sugarloaf Ridge

Pfeiffer Big Sur

Castle Rock

Moss Beach

Sunday, April 12, 2009

To those for whom I recommend games . . .

You have to try Braid.

It looks like Super Mario Brothers redone as a shimmering, moving, impressionist painting. It plays a little like Portal, but really unlike anything you've played before. The game explores the concept of time, how we perceive it, how it effects us. In each world, time operates in a different way, and there are maddening ingenious puzzles built out of the implications. Each puzzle teaches you something new about the logic internal to the world, and will make you think in a way you've never thought before. Once you've figured out a puzzle it doesn't require much more physical dexterity to complete than getting through the first few levels of Mario, but some puzzles may take hours of thought before you stumble upon the solution. As penny-arcade described it, epiphany is the central game mechanic.

The story is as impressionistic as the artwork, mostly told in snippets of text that accompany the entrance to each world. They relate the mechanics of time in that world to the ways in which we experience events in our lives. One section describes how returning to a place laden with memories can cause us to feel as if we are travelling in time, and not just space. In that world, time moves forward as you move to the right and backwards as you move to the left. The story and the art both get darker and more mysterious as the game progresses, with a baffling ending that will leave you reevaluating everything you've seen up til that point, probably for days afterwards.

If there was any debate that games are an art form as expressive as any other, Braid has settled it.

You can get the PC version from several sites, including Steam, or the Xbox version from Xbox Live Arcade. All are $15, and a free demo is available.

Monday, March 16, 2009

How to convince yourself to get rid of stuff (especially if you live in CA)

I helped some friends move into their new home over the weekend, and as always, moving became an opportunity to decide whether certain things were really worth moving. The broken grill that just needs an afternoon's woodworking to fix, the rusted recumbent bike bought with good intentions, the box full of leis and decorative sticks left over from a theme party, all become a little less benign when you have to load them into a truck and then figure out where they "go" in a new home. Some popular metrics for throwing it out: if you haven't used it in the last year, if you haven't used it since your last move, if you forgot you owned it. I hereby propose another metric particularly suited for those living in California: what it would cost you to get that space back by enlarging your dwelling.

First, figure out approximately what it would cost in dollars per square foot to increase your living space. From browsing Craig's List postings of comparable apartments, my current 400 square foot apartment could be upgraded at a rate of about $1.5 per square foot per month. Now compute the floorspace that the item consumes, multiply, and you have an approximation of the opportunity cost of that item in dollars per month. Translate this to years for added impact. To keep my new conga drums at 27" × 14" I'm giving up about $50 worth of floor space per year, which is a rate I'm comfortable with.

To compute this metric for stackable items such as books, divide this number by how deep the items are currently stacked in the way you are storing them, so as your bookshelf gets taller the storage of each book gets cheaper. It's cheating to compare it against the height of your ceiling directly. Add in the extra space wasted in storage. On my 3 layer bookshelf, the average 6" × 1" paperback stored vertically with 5" of wasted space in front of it is costing me $1.35 per year. That's more than I paid initially for some of these used paperbacks that I still haven't read after a few years of lugging them around. Out they go. If you are living with someone and they want you to throw something out, experiment with paying rent to them on it at the rate you get from this calculation.

Friday, February 06, 2009

Texture Targeting

I made it to the San Francisco Postmortem, a get-together for bay area game developers, for the first time last Tuesday. I finally got to meet the creators of Natural Selection as well as reconnect with some friends from college, Sam Hart and Chris DeLeon. The guys at Unknown Worlds are busy working on a sequel to Natural Selection on a shoestring budget with minimal staff, and they are doing an amazing job of doing things as efficiently as possible. The biggest bottleneck though for a modern game is the incredible quantity of art assets required to achieve the graphical standards gamers expect. I've been interested in texture synthesis since I took a graphics class in college, and decided this would be a good opportunity to experiment with it in the hopes that it could speed up creation of texture sets. I've started a texture synthesis project on Google Code, and there are two bare-bones utilities there that are ready to start playing with. The code is all based on techniques from Efros and Leung with a variety of experimental modifications of my own. The ultimate aim of this is to produce something akin to an "automated super clone tool" such that an artist can make a few textures for a theme in exacting detail, and then synthesize the rest from sketches using this software.

So far I haven't been able to get satisfying results for any non-stochastic textures, but that's my aim. With this technique there seems to be a dramatic trade-off between giving the artist any control at all over the resulting texture, and the amount of detail present in that texture. If anyone has an interesting results or ideas in that regard, drop me a line.

Monday, January 12, 2009

My first painting since Kindergarten!

From Portfolio
Mike Rotondo held an art party last Friday night, and I took the opportunity to learn to paint! I mysteriously remembered a lot of techniques either from watching my mom paint, the tips she's given me, or my art-history class in highschool. It's 16"×20", acrylic on canvas paper.

Tuesday, December 23, 2008

Stuck on what to get someone for Christmas? Try a Kiva.org gift certificate!

Usually charity gifts aren't really satisfying. Giving in someone's name doesn't give them much enjoyment, or even much of a warm fuzzy feeling. They aren't personally doing the giving even if it's in their name.

Kiva.org gift certificates are different! The person gets to go online and pick and entrepreneur in the developing world to help fund. It's interactive so it's fun, and the person gets the warm fuzzy feeling of charity at your expense instead of theirs.

Many people's lives could be improved by getting a small loan, but credit often isn't available to them because it costs as much to administer a small loan as a big one. Kiva.org is part of the growing microfinance movement that aims to fix this by putting up the capital for these small loans so that the receiver gets a much lower interest rate on the loan than they otherwise would. Learn more. Try it out!

Saturday, October 25, 2008

That Woman is Terrifying.

Today, Palin mocked fruit fly research despite it being the basis of much of our modern knowledge of genetics, and responsible for a Nobel Prize. This is more enraging to me than anything else in the broad spectrum of outrages that have come out of the McCain campaign. Basic science research is the most noble thing that humans do, and to denigrate it without so much as a Google search, while still claiming to be qualified to be president . . . I don't have any language strong enough to condemn her without wishing her bodily harm. It is terrifying to me that given a choice between voting for Bush and voting for Palin, I would vote for Bush.

Monday, October 20, 2008

Decision 2008

There are many stark differences in policy and temperament between the major party candidates this election. However, there is one fundamental ideological issue that eclipses all others and has been completely ignored by the mainstream media. When voters enter the booths this November, they will undoubtedly be asking themselves whether they prefer group orgasms through breathing techniques, or spiritual warfare to ward off African curses. The choice is yours.

Wednesday, October 15, 2008

Kahili Ginger!

From Plant Portfolio

The plant that ate my apartment is finally blooming! I bought it as a bulb at the gift shop of the Hawaii Tropical Botanical Garden in Hilo two years ago. My plumeria came from the same store. Below you can see pictures of what it looked like right after it sprouted, (that's a six inch pot!) and what it looks like now. The smell is incredible. I could tell it was blooming just by opening the door of my apartment. The scent spilled out into the porch.

From Plant Portfolio

Here are a few facts about it:

  • The plant is named after the feathered standards that were the symbol of a Hawaiian Noble's power.
  • When it is sending up a new stalk it grows something close to an inch per day. The roots completely consume the soil.
  • I haven't fertilized it at all, and it's been in a shady south facing window for most of the last two years. I try to saturate the soil with water once per week, but as the pots have gotten bigger that has gotten harder.

Sunday, September 14, 2008

Next time you are feeling cynical about humanity …

… inspired by McCain's recent polling numbers perhaps, check out the featured content in the Sporepedia. The amount of creativity is just stunning. Everything in there was created by amateurs in their spare time for fun. In case Wikipedia wasn't proof enough, when you give regular people great tools, they will make amazing stuff just for kicks. Most people have worlds of creativity that isn't used in their jobs, and they just need a convenient outlet to amaze you.

More generally, there's huge potential for harnessing our leisure time to produce useful work, and at the moment it's largely untapped. Google Image Labeler is a great (though horribly named) pioneer of this. You play a fun game, and in the process you give Google an awesome data set of images labeled with tags. Fold.it is another. Playing that game is equivalent to computing the lowest energy state of a protein. If you are good at it, you could cure cancer. The sky is the limit for this sort of stuff though, and the internet is finally giving us the organizational tools to bring it about. Imagine if instead of working out in a gym, people had access to volunteer landscaping groups. You'd get a similar workout, but you'd beautify a landscape in the process instead of just pumping iron and wasting all that energy.

Here's a great talk on the subject, Gin, Television, and the Social Surplus. My favorite quote:

So how big is that surplus? So if you take Wikipedia as a kind of unit, all of Wikipedia, the whole project--every page, every edit, every talk page, every line of code, in every language that Wikipedia exists in--that represents something like the cumulation of 100 million hours of human thought. I worked this out with Martin Wattenberg at IBM; it's a back-of-the-envelope calculation, but it's the right order of magnitude, about 100 million hours of thought.

And television watching? Two hundred billion hours, in the U.S. alone, every year. Put another way, now that we have a unit, that's 2,000 Wikipedia projects a year spent watching television. Or put still another way, in the U.S., we spend 100 million hours every weekend, just watching the ads. This is a pretty big surplus. People asking, "Where do they find the time?" when they're looking at things like Wikipedia don't understand how tiny that entire project is, as a carve-out of this asset that's finally being dragged into … an architecture of participation.

←me