Sunday, July 22, 2007

OpenSolaris Journal II: BeleniX hdinstaller

Continuing to play with BeleniX, I used the hdinstaller tool to install it for reals so I could boot OpenSolaris from my hard drive.

The install itself came off without a hitch. I:
  1. Booted off the LiveCD
  2. Ran hdinstaller
  3. Selected my hard drive
  4. Deleted all my partitions
  5. Created one Solaris partition
  6. Chose auto-layout with swap, /usr, and /opt as slices
  7. Installed GRUB to the MBR
  8. Set the root password

After the install finished, I booted up off the hard drive, logged in as root, created a user account, logged in as that user, and ran startgui kde to start X:
bad interpreter: Permission denied
To read the rest of my tale of woe, click through my " Open Solaris Journal - BelleniX hdinstaller" Flickr set.

Wednesday, July 18, 2007

OpenSolaris Journal I: BeleniX LiveCD

I booted a Dell Latitude D620 up with an OpenSolaris Starter Kit that I picked up from Saturday's TLUG meeting for Erin (yeah, I know; I'm a short-stopping bastard). Selected the BeleniX 32 bit LiveCD, and after selecting a keyboard layout (jp106, which was not honoured by KDE) and saying OK to the autodetected screen resolution / colour depth / etc., I found myself in KDE 3.5, and snapped a screenshot with import -window root belenix.png (import is from the ImageMagick).

BeleniX LiveCD, KDE desktop
Let me just say that the fact that the LiveCD Just Worked was very impressive to me, given the fact that Solaris is known for supporting less end user hardware than Linux (whether this is fair to Solaris is a topic that I will be exploring in future OpenSolaris journal entries).

Having said that, I quickly ran into problems (stop reading here unless you want to see my criticisms).

I just wanted to send my screenshot over to another box so that I could upload it to Flickr and stick it in this blog entry (I like "blentry", are you guys cool with that?). So, I plugged in the network and ran /etc/init.d/dhcp start, which returned success right away. So I then ran ifconfig -a to see what IP address I got.

No network?
To my surprise, I saw that I had only lo0, which is the loopback interface for localhost (127.0.0.1 sweet 127.0.0.1). "That won't play!" quoth I, and double-clicked on the "BeleniX Info" icon on the desktop. To my delight, it was a guide / FAQ (this doc, I think). I searched for "net", but all of the hits assumed that the NIC was detected and claimed by a driver, which mine was clearly not.

So I Googled more, then tried some stuff which you can see in my Flickr set, before being defeated by my bad memory (I could not recall how to load Solaris kernel modules; or more precisely, where to find which kernel modules one can load with modload or whatever it is).

So, having spent 10 minutes trying to get the network working, I turned my attention to USB mass storage, for I have a AU WIN W41H (Flash, sorry) phone that acts like a USB hard drive. First, I just plugged it in in hopes that vold and KDE would cooperate and give me a little icon on the desktop to which to drag my screenshot image. No such luck. So I tried mounting manually, but could not figure out which entry in the /dev filesystem was appropriate. So I Googled more:
This stuff "worked", but then I tried to mount the correct device and the mount command just hung for 60+ seconds until I unplugged the USB cable.

So all of my screenshots were taken the old-fashioned way, with my keitai's camera. :)

The bottom line is that I spent 20 minutes trying unsuccessfully to get my screenshots off the BeleniX box, and I consider myself well above average competency when it comes to Unix. But this is really a documentation problem, and one that I'll be happy to help solve once I get my Solaris admin legs back. :)

Good work, OpenSolaris and BeleniX crews! The product looks nice and Just Works; at least 95% of the way.

Tuesday, July 17, 2007

Earthquake and Fire II

We're fine, people in Niigata are less so.

Earthquake Information Issued at 10:19 JST 16 Jul 2007

There were a series of earthquakes starting at 10:13 JST yesterday (2007/07/16). The epicentre was in Niigata Prefecture (新潟県), where the larger quakes reached 6-upper on the Japan Meteorological Agency seismic intensity scale (if that sounds just like the Wikipedia article, don't worry, I am only plagiarising myself).

Earthquake Information Issued at 10:19 JST 16 Jul 2007 (Kanto)

Down here in Tokyo, it was only a shindo 3, so our experience was summed up by the JMA as follows:
Felt by most people in the building. Some people are frightened. Dishes in a cupboard rattle occasionally. Electric wires swing slightly.

As I said, people in Niigata were not exactly OK; 7 dead / 790 injured, according to the Daily Yomiyuri. Also, there was a fire at a nuclear power plant; from the same article:
The Nos. 2, 3, 4 and 7 reactors at the Kashiwazaki-Kariwa nuclear power station in the prefecture automatically shut down after the earthquake, according to Tokyo Electric Power Co. A small fire broke out in an electricity transformer of the No. 3 reactor, but no damage was reported to the reactor. The fire was extinguished at about noon.

Google News info: http://news.google.com/news?as_q=niigata+earthquake&svnum=10&as_scoring=r&ie=UTF-8&oe=UTF-8&tab=wn&resnum=0&ct=property-revision&cd=1&btnG=Google+Search&as_epq=&as_oq=&as_eq=&as_qdr=&as_drrb=b&as_mind=15&as_minm=6&as_maxd=17&as_maxm=7&as_nsrc=&as_nloc=&as_occt=any

Niigata quake damage

Sunday, July 15, 2007

News Hounds: We watch FOX so you don't have to

Note: this post was originally made to Politics Schmolitics, another blog to which I contribute.

Pretty cool news aggregator blog: http://www.newshounds.us/. They also have a nice YouTube videos page.

I found it through YouTube while watching the two Wolf Blitzer interviews with Michael Moore:





Oh shit, there's more:


Sanjay Gupta says a lot of good stuff here, but the thing I like the most is his point about how we need to spend more on preventative care so we will not have to spend so much on care after people get sick, which is harder and thus, more expensive.

On to Larry King Live (which I just misspelled as "Larry Kink Live", much to my amusement):







Gupta points out that "free health care" is not "free", says France is "drowning in taxes" and running a 15 billion dollar deficit. From a US Department of the Treasury press release, entitled "U.S. Fiscal Outlook Improves Significantly in December Fiscal Year to Date Deficit Down; Monthly Surplus Up More than 300 Percent":
The Fiscal Year to Date deficit ($80 billion) is down 33 percent ($39 billion) compared to the same period last year. The President's tax relief has stimulated strong economic growth. This strong growth has contributed to record-level receipts and the creation of more than 7.2 million jobs since August 2003. October to December receipts for FY 07 are at $574 billion, running 8 percent ($43 billion) higher compared to the same period for FY 06.

So even though we are not "drowning in taxes", we are running an 80 billion dollar deficit (five times that of France, which is pretty much the same per capita; France's population of 63,713,926[1] is 21.16% of our own population of 301,139,947[2]), and that is a "significant improvement". Hrm... what would be one way to pay for universal healthcare without raising taxes to the "drowning" point? Maybe reducing the 4.06%[3] of GDP we spend on the military (and that was in 2005, estimated, let's see what the GAO thinks about this year... this just in: the GAO's search functionality fucking sucks! To wit: my search for keywords "military spending" for this year returns a bunch of hits, all of which are to PDFs with almost worthless abstracts. Let's see if Google can do better: my search for keyword "military spending" on site:gao.gov turns up this (Warning: PDF; click here for Google's HTML version) as the ninth result. Ugh. In the 21st century, transparency means findability, and while PDFs are great for reading and printing, they are not ideal for searching, quoting, and sourcing. Note to the GAO: please provide HTML versions of all of your documents!)...

Where was I? Oh yes, military spending. The CIA World Factbook says that we spent 4.06%[3] of GDP--or 536.33 billion dollars (based on a GDP (official exchange rate) of $13.21 trillion[6]), or $1786.40 per person per year (based on a GDP - per capita (PPP) of $44,000[6]). The 2007 military budget (Warning: PDF; click here for Google's HTML version) says $439.3 billion, but that is just what is budgeted, not what is being spent. I had hoped that the GAO would give me a good number on what is being spent, but I could not find it in finite time. :(

Anyway, even if we take the DoD's numbers at face value, that would still be 3.3%[6] of GDP, or $1463.22 per capita. I don't know about you, but that is a sizeable chunk of my total tax bill. Assuming the mean US tax rate of 17.5%[7] and the mean household income of $58,208[8] (as of the 2001 census), the average household pays $10,186.40 in taxes per annum. Assuming the average household contains 2.0 people (I could only find census data for Hispanic households, which was 2.58[9], so I'm fudging the number, but in a way that actually weakens my case), that is $5093.20 per capita, making our military spending an astounding 35% of each person in America's tax dollars!

As an aside, if you want to read something amusing, try the rosy picture painted by the CIA World Factbook of the US economy on for size.

And now, the exciting conclusion of the Michael Moore vs. Sanjay Gupta fight, refereed by the disgusting hack excellent journalist, Harry Thing Larry King.



[1] SOURCE: CIA World Factbook
[2] SOURCE: CIA World Factbook
[3] SOURCE: CIA World Factbook
[4] DIRECT SOURCE: Wikipedia
[5] INDIRECT SOURCE: FY 2007 Department of Defense Budget, page 19. I verified that Wikipedia was, as of 2007/07/15 01:20 GMT, correctly representing this data
[6] SOURCE: CIA World Factbook
[7] SOURCE: WWW.WORLDWIDE-TAX.COM (please do not view me using this source as claiming it is reputable; I used it only because I could not find hard numbers from the US government--I tried both the IRS and the CIA World Factbook--and it came up quickly in a Google search)
[8] SOURCE: U.S. Census Bureau
[9] SOURCE: U.S. Census Bureau (not a very good source, but the best I could find; see the above points about the relationship between transparency and findability)

Wednesday, July 11, 2007

A Blunt Instrument

This is a shite post, but I am way too busy with Life, Work, and Fatherhood.

My love for Penny Arcade has been chronicled here before, of that I feel certain, though I am too lazy and/or short of time to poke and prod at the daemons that lurk in the dusty corners of my archives, for to force them to relinquish said juicy tidbit of blog wherein I proclaim Yea! Unto the very Floor of Hea'vn! dost my love for the Arcade of the Penny soar!

Tycho BraheLeaving aside the excellent art and the irreverent humour, the thing that really keeps me coming back like a literary junkie is the excellent writing of Monsignor Tycho Brahe, pictured at left.

To wit, this is one of the most amazing bits of prose I have encountered in recent history:
I have faith that, in a fundamentally just universe, things will be set right. And, in those cases where the universe is slow to act, let my rage be the instrument.

Thursday, June 28, 2007

Apparently I am an American Idiot

...for being so late to the party on this one!

Green Day - American IdiotI am speaking, of course, of Green Day's 2005 effort, "American Idiot", which I do not hesitate to call the best rock concept album of this century. Holy shit! This is the leftist answer to the likes of American idiots like Toby Keith (yeah, as if angry jingoistic bullshit will help "win" the "War" on "Terror").





One of my personal favourite lines from the album is this one:
Well maybe I'm the faggot America.
I'm not a part of a redneck agenda.
Now everybody do the propaganda.
And sing along to the age of paranoia.


Now, let the debate begin on whether this is a punk rock album. I hold that punk more an attitude than a musical style, and Green Day's (correctly) anti-(fucking idiotic) establishment stance is very much in keeping with punk rock stalwarts such as The Clash ("Know Your Rights", anyone?). Three cords and yelling do not punk rock make, kids.

SFB, care to comment?

Sunday, June 24, 2007

Mitsuya's Liquor

Or Sam's Town Strikes Back.

It has been quite busy recently, so I've not had a chance to blog much, but we took a walk over to Daiso and Mitsuya's today, so I figured I'd dust off this entry and add a few photos to my directions.


Sam dusts off a bottle of Segura Viudas Brut Reserva NV for me.

I went into Sam's tonight to restock my beer fridge with a bottle each of Балтика 3 Классическое and Heather Ales Kelpie Seaweed Ale, and decided while I was there to grab a bottle of the bubbly to celebrate the end of a truly hellish work week. Sam recommended the Segura Viudas Brut Reserva NV, a real value at ¥1,450, and I was not disappointed. I am not a big champagne fan, but this was a very nice, dry one that even I could appreciate.

So if you too want to experience the magic that is Mitsuya's Liquor, clicky clicky for the map.

Directions:

  • From Tokyo Metro Minami-Asagaya Station (南阿佐ケ谷):
      Minami-Asagaya Station, exit 2b
    1. Assuming you are coming from Shinjuku, get off the train and take the transfer passage under the tracks--it is in the middle of the platform--to the other side (if you are coming from Ogikubo simply stay on the same platform), then go out the turnstiles and up the stairs.
    2. Alley leading into the shopping arcade
    3. The left fork of the stairs (exit 2b) will dump you out in front of the Suginami-ku-yakusho (杉並区役所--ward office).
    4. Turn right and walk in front of the kuyakusho, taking the first right, which is a little path between the kuyakusho and Asagaya Middle School (阿佐ケ谷中文).
    5. The path will take you out behind the fenced-in playground of the school and to a small alley.
    6. Mituya's from the Minami-Asagaya Station side
    7. Turn left to follow the fence, then right with the alley when it turns (approximately 30 metres).
    8. The alley will dead-end into a shopping arcade; turn left, take five steps or so and Mitsuya's will be on the right-hand side of the arcade (you'll recognise it by the beer and wine bottles in boxes out front).

  • From JR Asagaya Station (阿佐ケ谷):
      Asagaya Station, North Exit
    1. Take the North Exit, then turn left and walk to the corner of the main street (there is a McDonald's across the street more or less in front of you).
    2. Cross the street, then the entrance to the shopping arcade will be horizontally to your right (at two o'clock on the dial of a watch, or at an angle of roughly 50 degrees--one radian?).
    3. Pass a Book-Off on the left
    4. Head into the arcade, and follow it for roughly 600 metres (you will pass a Laox on the right, then a Book-Off on the left, then a Peacock on the left).
    5. After you pass the Peacock, you will pass two alleys on the left, and Mitsuya will be on your left hand side, on the corner of the second alley.
    6. Pass a Peacock on the left
    7. Again, look for boxes of beer and wine out front.








Mitsuya's from the Asagaya Station side

Saturday, June 16, 2007

Whiskey, You're the Devil

You're leading me astray /
Over hills and mountains /
and to Amerikay /
You're sweetness from the Bleachner /
and spunkier than tea /
oh whisky you're my darling drunk or sober!


Oh yes; I've done it again; I've been drinking again and having too much fun!

First and foremost, I'd like to give shoutouts to mah boyz: Erin, Keith, Mauro, Pietro (capiche, paisan?), Edward, Alberto AKA Prez fo' Life, Lyle (nice to see you again, playah; let's make it twice a year from now on!), Dave B., Curt (you fake American Canuck you!), Edward "Holdin' Down His Set" Wri-zite, Marty and Karen, et al. Nice to meet Kim, Marty and Karen's awesome Irish guest (let's just call him Dougal), miscellaneous 日本人 (sorry gents, you did not give me cards and I cannot remember your names).

Big props to everyone who was man (or woman: Karen) enough to partake of The King of Beers (ビールの王様). Sorry 'bout that, Edward. ;)

Much fun was had, much beer was drunk; I am proud to say we exhausted Town Cryer's supply of Bass, Anchor Steam, and some other beer that is not coming to mind at the moment.

Yeah, TLUG nomikai; act like ya know!

Soundwave Presents the Mos Def CollectionIn other news, hot shit includes:

Monday, June 11, 2007

Ogikubo Yuki

I have no idea who this Ogikubo Yuki chick is, but she must be pretty famous, since they are always talking about her at the Tokyo Metro Marunouchi Line stations: 「一番線に荻窪行きが参ります。」

Lyani and I left a sleeping Kai in his grandmother's loving care and set off for Ogikubo this afternoon. We walked the back way, and were treated to parts of our picturesque little neighbourhood that we've never seen before. Suginami-ku is overflowing with greenery and flowers (those of you who think Tokyo is an ugly city really need to pop over this way and have a look-see), providing a lovely olfactory as well as visual treat for the pedestrian. This we knew. What we did not know is that people with a penchant for building unique and at times bizarre houses seem to flock to our little section of the -ku. There are two houses that we know of that are completely covered with ivy, with only the main door clear. There are houses that look like they belong in 17th century Holland, and houses that look like they belong in 23rd century floating cities. Words really cannot describe the fascinating stuff around here; I owe you all some pictures. Stay tuned.

We went to Ogikubo ostensibly for some grocery shopping, but mainly just to take a walk and enjoy each other's company. Mission accomplished, we arrived at Ogikubo Station with light hearts and lighter stomachs. Kentucky Fried Chicken I had a craving for some greasy chicken, and The Colonel was only too happy to oblige. I got the "Red Hot Chicken", which lived up to its name only inasmuch as it had a slightly reddish hue. The hot? Not so much. I also got a biscuit for desert, and really craved some butter on it, so I asked the cashier if they had any. She looked at me as if I were crazy and said no. I sighed and accepted the packet of Honey Maple Imitation Sweet Sticky Shite Sauce that comes with biscuits here in the Land of the Rising Diabetes Rate and started humming "Carry Me Back to Old Virginny" softly to myself, a nostalgic tear forming in the corner of one eye as I dreamed of buttermilk biscuits slathered thickly with high-fat butter, washed down with a thick glass of buttermilk, extra butter please.

Give me butter!

Speaking of butter, we went to this fancy-smancy French restaurant a couple of weeks back when my boss was in from Seattle, and they had this butter that cost ¥500 it was so good. As if the Hokkaido butter that they dispensed gratis was not good enough. But, to quote the immortal John Travolta when presented with a five dollar shake, "Goddamn! That's a pretty fuckin' good milk shake pat of butter... I don't know if it's worth five dollars, but it's pretty fuckin' good."

I also was pleased to see that I spoke better Japanese than the Japanese register jockey. The fast-food staple phrase, "For here or to go?" in Japanese is rendered, 「店内でお召しあがりますか?」 ("Ten'nai de omeshi-agarimasu ka?"). To which the お客様 (okyaku-sama--the customer/god) replies 「はい」 (hai) if he is, or 「いいえ、持ち帰りです。」 ("iie, mochi-kaeri desu"--"no, takeout (please)") if he's in a hurry and must to blow this popcorn stand. But this teenager had shortened it to 「お召しあがりますか?」 ("omeshi-agarimasuka?"), which means, precisely, "Are you eating (oh most honoured and wonderful customer/god, to which I am not even scum upon the pond into which you urinate, most honourable and with a vigorous golden stream, glistening in the sun that has risen solely to honour your most honourable self... &c.)?" I should have replied, 「いや、見るだけのつもりですけど。。」 ("No, I was planning on just looking...").

Japanese people do not know no keigo no mo', unlike me, master of my own language and dabbler in theirs. Ain't ah thuh most smartest kid in skool, Mamma?

Anyway, we had us some finger-lickin' good chicken, then hit the Seiyu for to get our grocery on. I hit the jackpot by locating ice cream, which has all but disappeared from Japanese grocery stores and konbini in the past year (any Japan experts know WTF? Ota? Matthew?)--I am convinced there is some sort of conspiracy on. Maybe the Keizai Yakuza are shorting chocolate or something.

Then it was back to our station, where Lyani lit out for home with the hard-won chocolate ice cream clutched tightly in her hands, and I popped up to スタバ to procure some Arabian Mocha (also known as the crack rock of coffees).

cocaineThat reminds me of a funny story Keith told us at lunch yesterday. This Bolivian guy is stopped at the airport in Zurich by Swiss customs officials. He's importing this big 13kg (26 pounds or so) wheel of Bolivian cheese. Into Switzerland, a country famed almost as much for its cheese-making. as for its banking and chocolate producing. So they inspect this wheel of cheese, and needless to say (so why am I saying it?), beneath a thin veneer of cheese was tightly packed Bolivian White. Yeah, cocaine, baby. Awesome.

Teppanyaki chefStopped by Mitsuya's Liquor on the way home to pick up a bottle of Red Stripe and one of Tusker. Oh yeah, and a bottle of Napolean brandy, which is the closest thing to rakiya that I can find in Japan. Sam was there, so I asked him more about his personal history, and it turns out he spent 10 years in the good 'ol U.S. of A., in Tex-ahw and North Carolina. He was nothing other than a teppanyaki chef at Benihana's. I asked him if he can still do all the samurai badass stuff on the grill, and he said, "Yeah. I wanna do that stuff out on the street near here. There is this big festival in the summer every year, and I keep meaning to do a demonstration. It would blow people's minds, man."

Teppanyaki, you see, while not exactly a for-export-only product, in Japan is is just basically stuff cooked on an iron grill (鉄板 means "iron plate", and 焼き means "to grill"), minus all the showmanship.

Sam never ceases to amaze me. The next entry will be solely an advert for his beer store, with fancy Google Maps and the whole nine yards.

Sunday, June 10, 2007

AdSense

You may have noticed Google AdSense links have appeared on my blog.

I harbour no illusions of these ads actually generating meaningful revenue, but I am curious about AdSense for two reasons:

  1. I want to see how it works so I can possibly use it for websites or webapps in the future, and

  2. I wonder what kinds of ads will be generated for the crazy-ass content I have on this blog. :)


If you really hate the ads, say so in the comments, and I will consider removing them. But you have to have a pretty good reason, as I think the AdSense stuff is pretty unobtrusive and does a good job of generating links to stuff I actually might care about.

Saturday, June 09, 2007

So, How Cool is Neal Stephenson?

Amazon.comYesterday was a day that reminded me how lucky I am to work for Amazon.

I started out the day by interviewing a candidate for an internal transfer to a new team under our umbrella (mobile retail). One of the coolest things about working for Amazon is that they encourage you to try new things; if you get burned out or bored with your job, apply for a different job with Amazon. This is an extremely good idea for a lot of reasons, but mainly because we have a lot of very smart people working for us--if our highly selective hiring process is working right--and why not give them chances to grow their career or try a different career with us instead of losing their talents and brains? I got my current job through an internal transfer, so maybe I am a bit biased. ;)

Anyway, internal candidates are given preferential treatment in two ways:

  1. They skip the phone screen stage (where we reject over 90% of candidates; anyone involved in hiring for engineering positions can surely understand this), and

  2. All other things being equal, and internal candidate always gets the offer over an external candidate.


The guy who I was interviewing was an absolute joy to talk to. He was a very smart, interesting guy, he knew his Computer Science backwards and forwards (which he should, since he has a Ph.D. therein; but some Ph.D.s seem to completely forget the basics due to an extreme focus on their specific research area) and best of all, he was passionate about his work.

The last interview I did for an internal transfer candidate also went very much like this. Interviewing is fun and rewarding when you get good candidates, people you cannot wait to work with.

Roppongi Academy HillsRight after the interview, I wrote my feedback like a good boy (Joel would be so proud), then popped out for lunch with Mauro and Keith. We went to TGI Friday, where we were met by our esteemed fellow TLUGger, Erin. We dined lustily on haute cuisine Américaine, then the three Amazonians rushed back to Cross Tower to get on a bus for Roppongi Academy Hills, for a special all-hands meeting with none other than Jeff Bezos.

All-hands meetings have been described as pep rallies, and I suppose that's basically fair. If so, this meeting was a resounding success, as I had a great time and came out of it feeling more energised and excited about the future of the company, &c.

Jeff BezosJeff Bezos is an extremely engaging speaker. He is funny, thoughtful, and modest with no traces of false humility. He had come to Japan to announce the launch of Amazon Prime, which is our "all you can eat" free shipping service. I am proud to say the Japan is the first international Amazon site (the others being Germany, the United Kingdom, France, China, and Canada) to launch Prime, and I am even prouder to say that we on the Anywhere team launched Prime on the mobile phone site at the same time as the PC site.

Neal StephensonThere was a Q&A session at the end of the meeting, and someone asked the typical Japanese question, 「趣味は何ですか?」 (what is your hobby?). Jeff replied that his primary hobby was fatherhood, then went on to talk a little about Blue Origin. I just had to ask a follow-up question: "So, how cool is Neal Stephenson?"

Jeff laughed at that, then explained briefly who Neal Stephenson is ("metaverse" was the only word the Japanese interpreters had trouble with all day) and why he is relevant to Blue Origin, then he answered my question thusly:

"Very cool."

Kinda sums up the whole day for me. :)

Tuesday, June 05, 2007

Game Theory, Selfishness, Economics, Science, and Beer

In that order!

Scientific American June 2007 issueThere was the a very interesting article in the June 2007 issue of Scientific American about game theory that got me thinking. The article was written by the inventor of Traveller's Dilemma, which is a simple game devised as an experiment to test some principles of game theory.

It works like this: you and another person return on a plane from a tropical island. Both of you pack a souvenir that you bought on the island in your checked baggage. Predictably, your baggage is handled roughly, and the souvenir is reduced to fragments. The man in charge of the baggage claim desk has to reimburse you for your loss, but he doesn't want to overpay. So to keep you honest, he offers the following deal: both you and the other passenger write the cost of the souvenir, which can be no less than $2 and no more than $100. If both of you write the same number, he will assume that you are both honest and pay you that amount. However, if one person writes a lower amount than the other, he will assume the lower amount is the real price and pay you both that amount, but with an honesty bonus of $2 to the person who wrote the lower amount and a dishonesty penalty of $2 to the person who wrote the higher number.

For example, if you write $55, but the other passenger writes $45, he would get $47 (the low price of $45 plus the $2 honesty bonus) and you would get $43 ($45 minus the dishonesty penalty of $2).

Got all that?

Now how would you play the game? Your first instinct might be to simply write $100, or some other very high number ($98, $95, etc.). But the optimal strategy is actually to write $2!

It may sound counter-intuitive until you run the logic a bit. Here is an example of the voices inside the heads of the two players:

You think: I'll write $100.
He thinks: I could write $100... but if he writes $100, I'll write $99, that way I'll get $101 instead of just $100!
You think: But what if that bastard writes $99, thinking I'll write $100? I'll show him! I'll write $98, and thus get $100 even though he tried to screw me by undercutting my bid.
He thinks: But what if he is thinking this way too? I'd better write $97, so if he writes $98 to try and beat me, I'll still get $99.
...
You think: I've got it! I'll write $2, the lowest allowable, and there is nothing he can do to screw me over!
He thinks: I have to write $2, or otherwise he can undercut me.

Congratulations, you have arrived at the optimal strategy: $2. And since so has he, you guys are mired in the Nash equilibrium (yes, named after that John Nash).

But the interesting thing that Dr. Basu--the author of the article and inventor of the game--points out, people tend not to play as dickeshly as that. His conclusion is that humans have an altruistic instinct that is in constant conflict with the selfish one, and that models that start with the assumption that people are going to make decisions rationally and selfishly tend to get hack-tacular when they are munged to reflect people's actual observed behaviour.

This is the old argument: must a theory be elegant to be correct? Does nature allow for ugly models?

Stephen Hawking is an interesting chap, and he has an interesting viewpoint on reality. He subscribes to the so-called positivist doctrine, saying that a good scientific theory must make predictions about a wide variety of phenomena that can then be observed experimentally. Following from this is the idea that reality is completely subjective, that different mathematical models can be equally valid and equally basic if their predictions agree with observations. So this would mean that ugly theories can be as valid as elegant ones, but the history of science has often showed us that mathematical ugliness hides a flaw in the theory or the maths.

(Seems like I read a book review in SciAm a few months back on a book that talked all about elegance in mathematical models... I think it may well have been Why Beauty Is Truth: A History of Symmetry.)

Anyway, returning to the Traveller's Dilemma, the observation that people do not play selfishly and reduce the TD to a zero-sum game is a very interesting result. Classical economic libertarianism, as espoused by Adam Smith et al., assumes that people do act selfishly, and the very act of everyone trying to serve his self-interest above all regulates the market. Hence the invisible hand.

So most studies of economics and game theory have assumed, until fairly recently, that people will be selfishly rational. Seeing as how this is not necessarily the case might complicate the question, but should simplify the maths.

However, these experiments have been carried out on people, not corporations. It seems to me that corporations as a whole probably do act in a rational, selfish way, controlled by the aggregate authority of their shareholders (or, in the case of private firms, stakeholders). So maybe classical economics is not dead yet. I need to read more about game theory and how it has developed in the latter half of the 20th century in order to understand its implications for global capitalism.

There was plenty of other good stuff in this month's issue of SciAm (and every month's issue, for that matter): an article on network coding; another on an alternate hypothesis to the RNA world one to explain the origin of life (isn't it great that Wikipedia has an "Origin of life" category!?); a bold new idea in the depressing field of conservation; etc.

Which leads me to my next point, that popular science is a wonderful and important thing. Today's scientific fields are so specialised and technical that it is very difficult for a layman to understand the exciting work going on. This simply means that scientists must work harder, because a public that is enthusiastic about science is one that is more likely to push for their elected representatives to fund science (other than extremely dubious weapons research).

Some scientists and laymen alike are rising to the task, and here are three fantastic books I've read about science in the last year, in order of ascending excellence:

  1. A Short History of Nearly Everything, by Bill Bryson - a fantastic history of scientific thought, theory, and of the characters who did the thinking and theorising. This really is the best general introduction to the foundations of modern science that I have seen. It covers everything from how our solar system formed to how human civilisation arose to the structure of an atom, and much more.

  2. The Universe in a Nutshell, by the great Stephen Hawking - Though not as good as the next book I'll talk about, TUiaN is a wonderful look at the basics of string theory, supergravity, M-theory, parallel universes, black holes that ain't so black, quarks, massless force-carrying virtual particles, and my all-time favourite, imaginary time. Simply brilliant. But wait, it gets better, with...

  3. The Illustrated Brief History of Time, also by mah homey S-dot. This book is beautiful in every way, from the lavish illustrations to the thick, creamy paper to the lively prose to the mind-blowing science. Stephen Hawking makes science more exciting than anyone, and the most amazing thing about ABoT is how accessible it is without being dumbed down. Dr. Hawking leaves all of the ideas in and only omits the maths, which are frankly over our heads anyway. :) Just buy this book, or check it out from the library or something. But read it! Now!



Ah yes, beer. I have not forgotten you, my constant companion! I've been having tremendous fun with ratebeer.com. I started using it just as a way to keep track of the interesting beers I've tried, and what I thought of them, but I now find myself addicted to beer tasting. I swore that I would never be one of those haughty-taughty types that drank their beer only from a glass and remarked on the palate of the brew, etc. But damnit, it is just so much fun!

So yes, my hobby is now beer tasting. Unlike wine tasting, however, you get to actually swallow the stuff. If you care to, you can probably keep up with my adventures on my beer rating page.

Monday, June 04, 2007

Sam's Town, Redux

Sam's Beer Store is also known as Mitsuya Liquors. I'll provide an address and directions soon, as all of my readers who are located in Tokyo will want to make for it with the quickness.

I rated both the Cave Creek Chili Beer and the Taybeh Golden 2.3 out of 5, but for very different reasons. You may be able to see the details at ratebeer.com without logging in, but the gist of it is that the Chili Beer was not beer as much as Picante Salsa without the chunks, very interesting but without any beerlike redeeming qualities, while the Taybeh was a perfect copy of a German pale lager, except minus any especially good taste. It reminded me of the worst Bulgarian beers, which is no insult. I certainly believe the superlative on the label: "The best beer in the Middle East".

But give me a Kamenitsa or a Zagorka any day. :)

Sunday, June 03, 2007

Sam's Town

Cave Creek Chili BeerOr How I Located the Finest Beer Store in Japan.

We have lived in Suginami-ku for almost exactly six months now, but I just found out the best beer store in Japan is a 15 minute walk from our house about six weeks ago. There is this little shopping arcade connecting the nearby Tokyo Metro station and the JR station, and it has the usual assortment of liquor stores, among the cafes, massage parlours, drug stores, &c. I had noticed a time or two that one particular liquor store had a few import beers on display outside, among them Sam Adams, one of my personal favourites. But never did I venture into said store, for reasons unknown to me.

So one day, I come home from work to find Lyani grinning like the Cheshire Cat. She said she had a surprise for me, and that I should open the refrigerator post haste. I did so, and what to my wondering eyes did appear but a bottle of Sam Adams, the perfect beer. Lyani said that she had visited the aforementioned liquor store and got me a Sammy, which to my great surprise was only 300 yen or so. I had seen Sam Adams elsewhere in Japan, but for double that price. She also told me that it was hard to find it inside, because they had so much beer. I assumed that she meant so much Japanese beer (for the big Japanese breweries--Asahi, Kirin, and Sapporo--each produce a stunning assortment of varieties, all tasting more or less alike), but she told me of beers with Cyrillic labels, Chinese labels, Spanish labels, etc.

Needless to say (so why am I saying it?) I had to see this marvel for myself. So I made for the liquor store of legend the next time I needed beer (no, not five minutes after I finished the Sam Adams, but that is a reasonable guess, for those of you who know me). And Lyani was not mistaken. This little store had given over the entire back wall to beer coolers--four in all--offering at least 100 varieties of import beers and Japanese microbrews (of which there are sadly few).

Taybeh Golden beerBut wait; it gets better!

One day, Lyani and I were returning along this shopping arcade from the grocery store, and we stopped in the Beer Store, as I had started calling it, for to pick up something interesting. I bought two bottles, and the cashier rang them up: 641 yen. I was paying attention to the register, so I did not notice that he had said "roppyaku yon jyuu en" (640 yen) whilst I fished in my pocket for change. I dropped 641 on the counter, at which point Lyani, who had been listening instead of looking, told me, "without the one". I picked up the one yen coin, and the bag, then turned to Lyani and said, "Oh, I thought it was 641." To which the cashier said, "It was. I took one off." In American-accented English!

Those of you who do not live in Japan may not appreciate how shocked I was. You have probably heard that all Japanese people study English for ten years in school, and you may be under the illusion that this means they can speak it. You would be quite surprised, then, to hear that even in Tokyo, the vast majority of Japanese people cannot understand English unless it is spoken to them directly, slowly, simply, and accompanied by generous hand gestures. So to have a Japanese guy understand what I had said to Lyani out of the side of my mouth was impressive enough. So have said dude reply not "itto wazzu, ai tsukku wan", but in American English blew my mind, man.

Anyway, I was too flustered by this development to say anything beyond, "thanks", but the next time I went to the Beer Store, I made a point to ask this guy what his story, and the story of the Beer Store itself, was. It turned out that he had lived in America for some time, and he just really liked beer. I complimented him profusely on his selection, telling him that it rivalled all but the very best American beer specialty stores, and it was surely the best beer selection I had ever encountered in Japan. He asked me where I was from and what I was doing in Japan, and when I told him I was working for Amazon, he replied, "Oh, so you know Jimmy, then?" Jimmy being a software engineer who sits right next to me at work!

So I have been taking advantage of this excellent selection of beers for about six weeks now. Today, I picked up a bottle of Cave Creek Chili Beer (the link is to a Flash site, but it might be worth clicking on it to see a anthromorphic chili pepper kick the shite out of a lime)--a lager spiced up by the addition of a whole chili pepper!--and one of Taybeh Golden beer, which is brewed in the West Bank, Palestine. I have not drunk either of these yet, but here are a few varieties that I have enjoyed over the past few weeks:

  • Singha (Thailand): a really crappy Southeast Asian lager. Not much in the way of flavour, but I am sure that is OK on a blazing hot day in Bangkok. I'll have to ask my sister Bethany if she's ever had it in its native environment.
  • Tiger Beer (Singapore): a crappy Asian lager, but not as bad as Singha, no matter what ratebeer.com says.

  • An Indonesian one that I cannot remember the name of, but it was the best non-Japanese Asian lager by far.

  • A Brazilian Pilsner that was really excellent.



I'll be sure to let you know how the Chili Beer turns out.

Friday, March 30, 2007

Zombies and the Greater Tokyo Bulgarian Conspiracy

In Tokyo these days (and presumably all major cities in Japan), a non-trivial portion of the population walks around, both on sidewalks and in train stations, consulting the tiny screen of their mobile phone like it contains the only thing worthy of their attention. Lyani and I have dubbed such individuals "zombies", as they shamble around, completely oblivious to the world around them. Except that these zombies value text messaging, web browsing, and playing Final Fantasy more than sweet sweet human brains.

As I have frequently noted here, Bulgarians have invaded Tokyo in great numbers. Their diabolical plan has but one weakness: for one month out of the year, they can be easily detected by the fact that they will be wearing at least one martenitsa.

I was at a TLUG meeting a couple of weeks ago, and noticed that a guy behind me was wearing something red and white on his wrist. At the break, I gave him the secret Bulgarian conspiracy challenge, and he responded correctly. We exchanged the secret handshake and spoke no more of this.

It has been a long time since I have written anything here. A combination of lack of time and lack of motivation is to blame; I think the finally breaking spring weather (and the sakura that it entails) is responsible for supplying me with the desire to write something.

Saturday, December 09, 2006

Geek Test

Step back, mundanes!


My computer geek score is greater than 100% of all people in the world! How do you compare? Click here to find out!


That is right, I am a computer god. Sadly, I would have done better on this test a few years back, before I got married and realised that there is more to life than computers and beer.

I am moving this weekend, and have no real time to blog, but I was scrolling through the newly created Planet TLUG and saw that Keith had posted his test score, so I had no choice but to take the test myself.

Thursday, November 09, 2006

Mine Eyes Have Seen the Glory

Of the coming of the Dems! Or at least the leaving of the GOP.

More interesting commentary on the midterm elections can be found over at Politics Schmolitics, or on your television thanks to "The Daily Show" and "The Colbert Report", but I'd just like to express my appreciation to my fellow Americans for booting the party of War, Graft, Morality of the Do-As-I-Say-Not-As-I-Do variety, Pomposity, and Arrogance out of Congress (and probably the Senate too, though the results are still out as of right now).

I hope this can be a new beginning for America. Let's start trying to undo the damage that has been done to the reputation of our great country. Let's go back to our Boy Scout roots and strive to leave this planet cleaner than we found it. Let's beat the fundamentalists back the only way we can, with the force of our ideas, not of our arms. Let's raise wages in America, hold corporations accountable for their behaviour, do away with the tax loopholes that help the rich while strangling the middle class.

In short, let's make America great again. Let's remake the country into what we claim it is: a shining city on a hill, the last hope of freedom.

Saturday, October 28, 2006

I'm Still Alive

she said. "But do I deserve to be? Is that the question?"

Yes, I know. It has been many moons since last I graced the 'Sphere with my lyrical yet powerful words. Sorry 'bout that.

I am alive, and doing quite well. So well, indeed, that I have had zero time to keep y'all informed. But as time presents itself, fear not! for I shall write many a blarticle!

Monday, September 18, 2006

Oh My Goodness Now What Have I Done?

I've been drinkin' again and havin' too much fun. (Ugh, my head...)

I found this in my drafts and decided just to post it as is. Fun enough. :)

Way too much has been happening lately. Lyani left for Bulgaria last week, and I was fortunate enough to have the busiest schedule of my young life, in terms of Stuff to Do After Work (StDAW--use that with my blessings). You miss your wife a lot less when you do not have any time to think. :)

So, recap:


  • Sunday, 10 Sept. - I went to the little park near my house to practise a little football (AKA soccer AKA サッカー). I started juggling, but between the tall grass and the guy shooting baskets nearby, I couldn't maintain my focus. So I went over, introduced myself, and asked if I could shoot around with him. He said he didn't mind, and we had a good time playing some good old fashioned basketball. It took me back to my childhood, trying to dribble on a gravel court. He invited me to play some ball tomorrow night (Tuesday) with a few of his friends at a gym near Maihama Station.

  • Monday, 11 Sept. - I cannot remember doing anything, but that seems unlikely, thinking back on the week.

  • Tuesday, 12 Sept. -

Sunday, September 10, 2006

Japan: The Cleanest Nation on Earth

But how!?

In my albeit limited experience, I have yet to find a country with cleaner big cities than Japan. You walk down the street, and you might have to go half a block before you find as much as a discarded cigarette end. And this is in Tokyo! Population 35 million people, one of the world's financial, technological, and fashion capitols.

The reasons for this are approximately (in my highly scientific study which involved asking myself--margin of error plus or minus 1.27) twofold:

  1. Japanese people follow the rules (this is not precisely true, but I'll come back to that in the expanded explanation of this item), and

  2. The city governments employ people whose soul function is beautification of the city (other cities do this too, of course, but I'm not talking about garbage men garbage persons sanitary technicians and Parks and Rec staff).


Hanami at Kenrokuen, KanazawaRight, so to go into more detail on point one. I claimed that Japanese people follow the rules, and that is almost true, if a bit of a simplification. I have witnessed the following in Japan: at 03:30 in the morning, in a sleepy part of town (Kanazawa, which is pictured at left because I can), not one but several pedestrians stood on a street corner, waiting for the signal to change to "Walk", despite the fact that there were a) absolutely no cars on the road, and b) even if there were, you could see roughly a kilometre up the road in each direction any way; at a specific subway station (Minato Mirai Station, if you must know), there is a sign asking people to line up in twos, and people actually did it, in a line so straight that my high school gym teacher (Coach T, for those Stauntonians in the know) would have wept tears of joy.

But yeah, despite these arbitrary examples and the fact that Japan has no crime, etc., it is not entirely correct to say that the Japanese obey the rules. Nay, me bonnie lass! They obey not the rules but the conventions, and there is a slight different. Japanese society is a rigid and formal beast, where "the nail that sticks up gets pounded down" (and I really need to find out how to say that in Japanese! Matthew?), and the law of the land means naught when it runs up against societal convention. An excellent example is this one: Japan, like any halfway civilised country, has traffic laws. One specific traffic law is that when you are approaching an intersection and there is a huge white line painted on the street, preceded by huge white letters proclaiming tomare (that's 止まれ, meaning "stop!!!"), you must stop your vehicle behind the bloody line. You know, just like in America? But here's the kicker: sometimes the intersection has only a stop sign (as opposed to a stop light), or you are in a position to make a legal left-hand turn on red (you did know that they drive on the wrong side of the road here, right? what is it with these sodding island countries and the left-hand driving!?). If you stop behind the line, you can't see very well, so you might not be able to make your turn and you might be (gasp!) five seconds later to wherever the hell you are going in such a damned hurry, jackass! (I'm talkin' to you, punk!) If you stop at the very edge of the intersection, you can see, but now you have to go to the carwash to clean the entrails of the poor pedestrians who were in the crosswalk out of your gleaming grille. So what do you do?

2001 Honda Civic EX sedanIn America, the compromise I have seen accepted by most drivers is simply to stop behind the line (in case there are pedestrians in your crosshairs or a copper is lurking nearby, ready to add to the city's coffers and meet his quota serve and protect by writing your arse a ticket), then creeping forward to a better vantage point and finally making the turn right in front of me, jerk! (See, I may miss my car, but I don't really miss driving, at least not in the city.) But the Japanese, ever efficient, have decided that this momentary pause is foolish, so they just roll right up to the edge of the intersection before stopping. Of course, if a pedestrian is crossing, the driver will deign to stop his one-tonne steel death-chariot rather than have to go to the carwash (not because the driver cares about your life, you see, but because going to the carwash would make him later than just waiting for your slow arse to shuffle across the road, grandpa!). The only problem is, of course, if a pedestrian is planning to cross--nay is taking his penultimate step on the sidewalk, when out of nowhere roars a Toyota, shooting for the last centimetre before running the risk of getting hit by cars on the intersecting road (again, because it would make the maniacal driver of said Toyata late to the pachinko-ya). Pedestrian, prepare to dive for your life, suckah! And if you lose your balance and fall forward, making contact with the trunk of the Toyota, hoping for nothing more than the preservation of your pathetic life, you will be sworn at in language that would make a yakuza blush.

Note, the above did not happen to me, ever. Oh no, I'm just speaking hyperbolically--er, hypothetically. Right. Bastard driver.

Oh yeah, the whole point of that rant, ostensibly anyway, was to point out one example where all Japanese drivers follow a convention that is actually in violation of the "rules". In fact, I'll bet that if a Japanese driver were to stop behind the sodding line, he would promptly be rear-ended, at which point the aggressor would get out of his car, angrily, and ask the law-abiding citizen just what the hell he was doing stopping so recklessly.

But luckily for us all, convention and law agree that littering is not a nice thing to do. Industrial pollution and illegal dumping of toxic substances? A-OK!

Er, right. Sorry. What I meant to say is that most people do not litter, because if they do, they will be pounded down. (In fact, I would be most happy to administer the pounding, but more on that later.)

Back to my second point (remember that?), the fact that there are people walking around the city, paid handsomely (well, probably not; in fact, I doubt they make a living wage) by the various and sundry city and other local governments to clean up trash. And not only do they clean up trash, they clean up bloody trash cans! No, for real. I have seen old ladies scrubbing public trash cans vigorously with a rag, juicing those suckers with vigorous-looking red cleaning fluid from a spray bottle.

Of course, the reason that city governments can afford to pay little old ladies to clean public trashcans is that the city of Tokyo has approximately three trash cans (one in Ginza, one in Shinjuku, one in Shibuya; none in Roppongi, naturally). I am damned serious, you can find yourself walking for hours in Tokyo, looking for a place to throw away your chewing gum wrapper (happened to me today, in fact). Luckily, convenience stores usually have cans out front for empty bottles, cans, PET bottles, and burnable and non-burnable trash. Of course, that does not help you when you are in a train station or walking down a street in bloody Nishi-Funabashi, where there are no convenience stores in a five kilometre radius!

OK, I am a staunch beliver in proper garbage disposal. In fact, when Lyani wants to irritate me, she claims to have spit her chewing gum down a storm sewer drain. I separate my trash into more categories than anyone: burnable, non-burnable, recyclable paper, recyclable metal, recyclable glass, recyclable plastic, batteries (nope, I don't just throw them in the non-burnable like the rest of you eco-criminals out there), biohazardous waste... oops, I guess I did not really mean to reveal that last one. I am not doing experiments on creating a master race fusion between cats and frogs! Nothing to see here, move along. And so forth.

Captain Planet, he's our hero
Oh, right, so I was simply making the point that I am pretty much Captain Planet. And yet wild fantasies of wanton littering have been known to play through my fevered brain when I have been holding my spent Snickers wrapper in my hand for better than an hour, looking for anywhere to dispose of the damned thing. Lemme tell you, I have been pretty tempted to stuff stuff like that right into the omnipresent recyclables bins (which, of course, are only omnipresent until you actually need to recycle a bloody Fanta Grape can). Haven't done it, but wanted to.

Contrast this with most other cities in the world. I will pick on Sofia, Bulgaria here, just because it is where I made the observation first, but I am sure it applies to Washington, London, Paris, Berlin, and Beijing as well (oh yeah, and Moscow; sorry 'bout that, Vladimir Vladimirovich). Sofia has public trash bins literally every thirty metres. Two to every city block, I am not kidding. And yet, what do you see next to these lavishly placed bins? You guessed it: trash! Mounds and mounds of the shite.

So thanks, Japan. Viva la conventionidad socialistichen! Ета правда!