Archive for April, 2006
V for Vendetta

Wacky Guy Fawkes mask
Xacto knives at his side
Yaps philosophy
![[photo]](http://us.movies1.yimg.com/movies.yahoo.com/images/hv/photo/movie_pix/warner_brothers/v_for_vendetta/hugo_weaving/vendetta11.jpg)
MythTV Edge Detection
MythTV has a feature to automatically detect commercials in recordings and then automatically skip them upon playback. The problem is that it is not very reliable. Often, commercials aren’t recognized, or non-commercials are recognized as commercials. Here are my efforts to improve this bit of functionality:
A Fistful of Dollars
A Fistful of Dollars is great viewing not only because it’s great in its own right, but also because of its presentation of the cinematic motifs so easily recognized today. The spaghetti western stereotypes appear in full force with the eerie whistling music score so often parodied in today’s cartoons and movies, the terrible voiceovers of the Italian actors’ lines, and Clint Eastwood’s cigar-chomping squinted-eye pompadoured persona. Watching the Mayor of Monterey play two rival gangs against each other provides light Sunday-morning fare that is high in body count and easy on the brain.
Irrational Exuberance
![[book cover]](/images/2006/20060408-irrational-exuberance.jpg)
2nd edition, Robert J. Shiller, 2005.
Irrational Exuberance claims that there is no rational explanation for the 1990s stock market boom, that it was simply human nature taking its due course. In this second edition, Shiller attempts to broaden the applicability of this hypotheses towards other markets, in particular, real estate.
Structural Factors for Irrational Exuberance
- Increased legalization of gambling. The increased social acceptance of gambling (casinos, track betting, state lotteries) has made it a natural progression for people to participate in other forms of risk taking: speculation in securities.
- Increased media coverage and mispresentation of the stock market’s true “value”. All graphs show that “the stock market goes up”. However, these graphs are almost never corrected for inflation. While the stock market’s nominal value has indeed increased over time, its real value has increased nowhere near as much. Fred’s Intelligent Bear Site (heh) serves up some nice eye-candy graphs of the DJIA with nominal and inflation-corrected values graphed over time (5.1% vs. 1.6% return, before taxes), along with a healthy side of stock market doom-and-gloom.
- Related to misrepresentation, analyst bias (or “recommendation inflation”). In 1999, only 1.0% of recommendations were “sell”. In 1989, the figure was 9.1%.
- Amplification Mechanisms. Interest in the stock market tracks its performance (unsurprisingly); various surveys show close correlation between market performance and things like numbers of registered social investment clubs, and mentions of the “stock market” in the media. The repeated exposure of and public attention to the market simply increases demand for participation in the market, which drives it up. These gains lead to an increase in consumption, which gets reported in the media as signs of a “strong economy”, and the cycle feeds back on itself, until the inevitable point at which price increases stop. These positive feedback loops are simply natural manifestations of Ponzi schemes.
- Applicability to real estate. Worldwide, real estate booms have been shown to trail stock market booms. The stock market winners are simply diversifying their enthusiasm (and winnings) into real estate, while the stock market losers, tiring of waiting for a recovery, are cutting their losses and looking for another “safer” investment vehicle. Either way, demand for real estate rises.
Cultural Factors for Irrational Exuberance
- News media and crashes. Shiller finds that the biggest news stories on days of significant market crashes (October 1929 and October 1987) is news about past price declines – a negative feedback loop.
- “New Era” thinking and booms. The first major peak in market P/E ratio was in June 1901, at the turn of the century; radio was a new technology, and household electricity was introduced. The next peak of July 1929 was immediately preceded by automobiles, commonly-available household electricity and electrical appliances, mainstream radio, and talking movies. The plateau of the 1950s-60s was accompanied by television, the baby boom, JFK’s promise of landing on the moon, and the Dow reaching for 1000. The 1990s had the internet and sock puppets, and Y2K.
- Applicability to real estate. Railroad companies brought a real estate boom to southern California in the late 1880s. The automobile brought warm-climate-seeking retirees to a regional real estate boom in Florida in the 1920s. In the late 1970s, “new era” political changes brought a real estate boom to California (again) with zoning changes that restricted new-home construction, and a Proposition 13 that cut property taxes.
Psychological Factors for Irrational Exuberance
- People have a tendency towards overconfidence in one’s own beliefs (“70% of people believe they are above-average drivers”), which encourages speculative behavior.
- Nonconsequentialist reasoning is a phenomenon where people are unable to reach conclusions based on hypothetical events; people cannot decide on courses of action until events actually occur. People can think ahead in logical games (chess, checkers), but in real life, emotions cloud their thinking. News stories about the markets evoke emotions that then spur actions in the markets that would not have been taken otherwise.
- Herd behavior is very powerful. For example, people will tend to patronize the more-crowded restaurant, even if the first patron made a random choice between the two. The stock market is not a reflection of people’s rational behavior (as the Rational Man would behave); people are simply electing not to waste their time and effort to exercise any judgment.
- Interpersonal two-way communication is much more powerful than one-way media communication. The 1920s’ telephone spawned “boiler rooms” that enabled brokers to encourage their clients to do stock trading. Today’s internet chat rooms and web forums facilitate a great amount of day trading.
Attempts to Rationalize Exuberance
- Efficient Markets and Random Walks. All financial prices accurately reflect all public information at all times. Price changes (“random walks”) are unpredictable because they only occur in response to genuinely new information, which by definition is unpredictable. Evidence supporting “efficient markets” is simply that it is difficult to “buy low and sell high”; everyone else (“smart money”) would have already done so (competing against other smart money), stabilizing prices. The problem is that efficient markets does not necessarily preclude the possibility of markets going through extended periods of significant mispricing (booms) where smart money can’t make a profit because no one sells low and everyone is buying high. Even if the smart money tries to short the stock of a valueless company, irrational investors can still bid up the stock, causing the smart money to lose.
- Investor Learning and Unlearning. This theory states that today’s exuberance is simply due to the public’s increased awareness of the value of the markets; the markets were inefficient before, but are becoming more efficient now. This is easily argued against with the fact that there have been multiple booms; either this “investor learning” theory is false, or investors are quick to forget what they have learned from the past …
A Call to Action
The concluding chapter is what really destroys the book for me. Shiller makes a bunch of recommendations that might help avoid speculative bubbles, all along the lines of a government behaving paternalistically towards its uneducated mob-like citizens (fine, he is entitled to a bleeding-heart opinion). But then the last paragraph cops out in a big way with “[u]ltimately, in a free society, we cannot protect people from all the consequences of their own errors”, so we end up back where we started – bubbles will happen and we can’t do anything to stop them.
Shiller’s book is fine as a walk through the market history and human psychology. It makes a decent argument that markets are in fact not governed by the Rational Man, but rather by irrational human beings. But beyond that, it is rather weak in simply describing anecdote after anecdote of how humans are in fact irrational, which really should not be news to anyone. Finally, the “second edition” expansion of these ideas beyond the stock market to other speculative markets (he only ever mentions real estate) is also rather weak. The real estate examples always seem contrived and duct-taped on to the end of the stock-market discussions.
Irrational Exuberance never pretended to promise entertainment value (although the cheeky title inspired unfulfilled hopes for snarky commentary), but it also falls somewhat short of its expected educational and thought-provoking value, which leads to my ultimate conclusion that I am disappointed with having spent time reading this book.
NFL Schedule Release Day
Pure marketing genius is adding one more event to be televised with “cool graphics and a rhythmic backing beat”: Super Bowl, Draft Day, Opening Sunday, and now, Schedule Release Day – today!
Dynamic DNS with 1&1
What I want in a domain:
- Domain name for web site
- “Vanity” e-mail address
1&1 was the cheapest domain registration service I could find ($5.99/year, including private registration). The web is rife with complaints about their customer service (most notably, attempting to cancel an account), but I don’t plan to give up my domain, and I don’t use any of their services. I haven’t been a customer for that long, either. Buyer beware.
Their most basic service package includes web and e-mail hosting. I don’t care about the web hosting because I want to run the web site at home. Running a web site at home is simple enough. These instructions are specific for 1&1, but the concepts are applicable to any DNS provider.
Option #1: Configure the 1&1 domain to have its DNS delegated to FreeDNS or some other dynamic DNS provider. There are a few free dynamic DNS services listed at FreeDNS.com that will provide DNS for domains and subdomains. These services generally require some kind of client to be run at home that periodically updates their servers with a new IP address whenever it changes.
I’ve used both afraid.org and No-IP with my 1&1 domain; they both work fine. FreeDNS is very fully-featured, but the flexibility means it is necessarily slightly more complex to set up.
Once you’ve delegated away DNS for your domain, you can have vanity e-mail by setting up your DNS service to resolve your domain’s MX record to your home mail server; you use your ISP’s SMTP server to send e-mail, and you directly receive your e-mail on your home mail server.
The problem with such a 1&1 setup is that delegating away DNS for your domain also means foregoing the included e-mail hosting service. This bothered me. My web site is not really critical; in fact, its connectivity is completely dependent on my home ISP. However, I really don’t want my e-mail to bounce should my mail server be disconnected. So we move on to:
Option #2: Configure the 1&1 domain to be managed by 1&1′s DNS servers (default configuration). However, instead of hosting the domain’s web site with them, statically configure the domain name to resolve to your ISP-assigned dynamic IP address. Leave e-mail for the domain to be managed by 1&1. This is a supported configuration, and we now have reliably-hosted e-mail that we can retrieve with POP or IMAP.
However, there is now the task of making sure your changing IP address stays up to date in 1&1′s DNS service. 1&1 does not provide explicit support for dynamic DNS (e.g., no convenient update URLs like FreeDNS, and no background daemon like No-IP).
I used LiveHTTPHeaders to capture a trace of HTTP and HTTPS traffic while I manually navigated the 1&1 control panel. Armed with a trace of such network traffic, I wrote an automated client to masquerade as a web browser to automatically update the IP address associated with a 1&1 domain:
- Every 15 minutes or so, figure out your ISP-assigned IP address. This will most likely have to be a custom screen-scraper for your home router’s web interface (I’m not cool enough to run a Linux or FreeBSD router/firewall). Compare the current IP address with what was obtained last time. If it is the same, do nothing. If it has changed:
- Update 1&1 with the new IP address, using this
update1and1perl script; the script depends onlibwww-curl-perland needs to be customized with a 1&1 customer ID and password.
You may want to look into dedicated hosting. If you aren’t familiar with hosting on a dedicated server there are many articles you can read.
Homemade Pizza
Groceries:
- Boboli 100% Whole Wheat Crust: $3.89, 10 oz. (12″ diameter)
- Hunt’s tomato sauce: $0.50, 8-oz. can
- Part-skim shredded mozzarella cheese: $2.29, 8-oz. bag (2 cups)
- Free-range vegetarian-fed hot italian chicken sausage: $4.49/lb., 1-lb. package (5 links)
- Organic mushrooms: $2.49, 8-oz. container
- White onion
- Fresh cilantro: $1.50, one bunch
- Spices: garlic powder, oregano, basil, chili pepper
Ingredients (serves 2):
- 1 pizza crust
- ½-can tomato sauce
- 1 cup mozzarella cheese
- 1 sausage link
- Toppings to taste (onion, mushrooms, cilantro, spices)
Instructions:
- Preheat oven to 425°.
- Spread tomato sauce on pizza crust.
- Add cheese, toppings, and spices.
- Heat pizza for approximately 12 minutes.
Cost and nutritional analysis for whole pizza:
| Ingredient | Cost | Total calories | Calories from fat |
|---|---|---|---|
| 10 oz. whole wheat pizza crust | $3.89 | 750 | 125 |
| 4 oz. tomato sauce (½ can) | $0.25 | 26 | 0 |
| 1 cup mozzarella cheese | $1.15 | 320 | 180 |
| 1 sausage link | $0.90 | 150 | 60 |
| Mushrooms (½-cup, 2 oz.) | $0.62 | 10 | 3 |
| ¼ Onion | $0.25 | 10 | 1 |
| Spices | $0.25 | 1 | 1 |
| Total | $7.31 | 1267 | 370 |
| (Single ½-pizza serving) | $3.65 | 634 | 185 |
NutritionData reports a whole 12″ Pizza Hut pizza as containing 2083 calories (762 from fat). Ordering a medium thin’n crispy pizza with sausage, mushrooms, and onions from the pizzahut.com website costs $13.00.
(Sorry, no picture. I tried, but the camera just doesn’t do the pizza justice.)
30-minute Breakfast
This weekly breakfast is one of the only rituals I’ve consistently maintained since leaving college: hash browns, sausage links, and an egg, over-medium. I hate cooking, but I love my American-farm breakfast. With sufficient practice, I’ve got this down to a science. To prepare this delicious meal, you need the following equipment:
- George Foreman Grill ($49.99 from Amazon). There are many varieties of Foreman Grill; ours has only a timer (one-minute increments) with no heat control.
- 10″ sauté pan ($16.99 from Amazon)
- 8″ omelette pan
- Olive Oil Sprayer ($19.99 from Amazon)
- Large spatula for hash browns and sausages
- Small delicate spatula for egg
Groceries:
- Jimmy Dean Maple Pork Sausage Links: $3.79, 12-link (10 oz.) package. We used to eat turkey sausage, but the supermarket stopped carrying them.
- Oreida Hash Browns: $2.99, 30-oz. package
- Large Brown Cage Free Eggs: $2.99, 1 dozen. Aside from guilt-free consumption of eggs laid by humanely-treated hormone-free vegetarian chickens, the eggshells are sturdier, and the eggs taste better. These “gourmet” eggs do not come in “extra large” or “jumbo” sizes.
- Tropicana “Pure Premium” Orange Juice: $3.99, 3-qt. (96 fl. oz.) container
- Crisco Pure Canola Oil: $3.49, 48-oz. bottle
- Filippo Berio Extra Virgin Olive Oil: $25.99, 3L container
Preparation:
- Foreman grill
- 10″ and 8″ pans
- Frozen sausage links
- Frozen hash browns
- Egg, cracked open and poured into a bowl, set aside for later
- Canola oil
- Olive oil sprayer pumped and ready
- Hash brown spatula, egg spatula
| Timeline | |
|---|---|
| 0:00 | Get everything ready (described above). |
| 1:00 | Plug in the Foreman Grill to get it pre-heated. Ours is preset to pre-heat for 5 minutes, after which it will beep. |
| 1:15 | While waiting for the Foreman Grill, pre-heat some canola oil in the 10″ saute pan; pour in at least enough to cover the bottom of the pan with a thin film (1-1½ tbsp.). You can’t really go wrong here; you just have to prevent the hash browns from burning. After that, you just have to strike your own balance between healthy hash browns (less oil) and tasty hash browns (more oil). The oil is ready when it has liquified and easily flows around the bottom of the pan. Heat-wise, all stoves vary; we use 75% heat. Too little heat, and the hash browns won’t cook. Too much heat, and the hash browns might not cook properly (burned on the outside, cold on the inside). |
| 2:15 | Pour in the hash browns: cover the bottom of the pan with a thin layer of hash, just enough to not see the bottom of the pan. This will yield two 1¼-cup servings (the recommended serving size). Let the hash browns cook. |
| 6:00 | The Foreman Grill beeps. Spray the top and bottom of the Foreman Grill with olive oil. Lay four sausage links on the grill, cross-wise 45° to the grill marks (for that nice outdoors-grill grill-stripes look). Set the timer for 4 minutes. |
| 10:00 | The Foreman Grill beeps. Turn all sausage links (to cook all surfaces), and rotate them so they all sit in the grill grooves for maximum contact (to make sure they all get fully cooked all the way through). Set the timer for 4 minutes again. |
| 10:30 | Flip over all the hash browns. One side should be a nice golden brown now. Feel free to add more canola oil if things look dry. |
| 11:00 | Pre-heat some canola oil in the omelette pan, maybe two quarters’ worth of surface area, at about 75% heat. Too little oil yields a burnt egg; too much oil yields a greasy egg. Too little heat and the egg takes longer to cook, or comes out too rare. Too much heat and the egg cooks unevenly (burned on the outside, rare on the inside). Practice makes perfect. Carefully monitor the egg. Cook to taste. |
| 12:30 | Egg is probably done by now. Turn off heat, serve egg on plate. |
| 13:30 | Pour two glasses of orange juice. |
| 14:00 | The Foreman Grill beeps. Unplug it, serve sausage links on plates. |
| 14:15 | Hash browns are also done. Turn off heat, cut them into quarters, and serve on plates |
| 15:00 | Season breakfast to taste (salt, pepper, Tony’s, etc.). Serve and enjoy breakfast. |
| 20:00 | Clear table, bring dirty plates and utensils back to kitchen. |
| 20:15 | Clean cookware: omelette pan, saute pan, spatulas. |
| 23:00 | Rinse and load dishwasher: silverware, dinnerware, glassware. |
| 25:00 | Scrape and clean Foreman Grill. This is the most painful part of the process, but with practice, only takes a few minutes. |
| 28:00 | Hand-dry and put away Foreman Grill. Clean and wipe down counter. |
| 30:00 | All done. |
Cost and nutritional analysis:
| Entrée (single portion) | Cost | Total calories | Calories from fat |
|---|---|---|---|
| Sausage (2 links) | $0.63 | 100 | 73 |
| Hash browns (1¼ cups) | $0.30 | 70 | 0 |
| Canola oil (1½ tbsp.) | $0.06 | 180 | 180 |
| Egg (1) | $0.25 | 70 | 40 |
| Orange Juice (7-oz. rocks glass) | $0.29 | 96 | 0 |
| Total | $1.53 | 516 | 293 |
I researched this meal with a very expensive board-certified nutrition specialist for a medical opinion: “The recommended daily diet is 2000 calories (25-35% fat), spread out over 3 meals and 2 snacks. Calorie-wise (516), this meal is not bad. Fat-wise (57%, or 33g), not so good.”
Taste-wise, excellent.
“Also, you should know that most Americans eating a variation of this popular meal are probably eating much larger portions of everything, such as 2 or 3 eggs, and a large glass of orange juice.
“Possible side-effects from eating this delicious meal three times a day every day include (but are not limited to):
- Weight loss (yes!): eating this tasty 516-calorie meal three times a day will result in less than the recommended daily 2000 calories.
- Osteopenia (brittle bones): this diet is low in calcium and vitamin D.
- Constipation: this diet is low in fiber.
- Increased risk of type 2 diabetes (poor wound healing, heart attacks, blindness, kidney problems, neuropathy, amputation): potatoes have a high glycemic index, which causes increased insulin levels.
- High cholesterol (strokes, heart attacks): the sausages are high in animal fat.
“For a healthier meal, substitute the hash browns with buttered multi-grain toast. This will reduce the glycemic index and fat (depending on the amount of butter) and add some fiber.”
![[logo]](/projects/mythtv/commercials/images/2041-template.jpg)
![[image]](/projects/mythtv/commercials/images/canny09269.jpg)

Recent Comments