The T-Files


Fri, 31 Dec 2004

New Year's Eve

Today is the last day of 2004. We just finished writing our New Year postcards (a three week long process). This year's total is forty-one (one short of the magic number and down from about sixty last year), another eight cards could not be sent because we lost the addresses. We are leaving for Chiba now, where we will spend New Year's Eve at a friends' house, if possible go to the famous (and totally over-crowded) Naritasan Shinsho-ji shrine and maybe also to an onsen.

Wed, 29 Dec 2004

Living in the Google Cache

Here is another rather silly experiment: I set up a web site that only exists in Google's cache. Since Googlebot has yet to find it, it does not really exist at all at the moment ...

Snow

It is snowing!

Thu, 23 Dec 2004

AVP: Alien vs. Predator

Whoever wins... We lose. True. About 100 minutes.

4 points

Sat, 18 Dec 2004

Sky Captain and the World of Tomorrow

New York City in the 1930s: Reporter Polly Parker (Gwyneth Paltrow) is investigating the mysterious disappearance of famous German scientists when the city is attacked by giant flying robots. She teams up with former lover Sky Captain Joe Sullivan (Jude Law), who runs a private fighter plane squad, to stop the evil Doktor Totenkopf (a digitally resurrected Lawrence Olivier) from destroying the planet.

The big selling point of this movie is its rather unique visual style, but there is not much else to it. Punch lines can always ameliorate plot holes, so the actors (especially Angelina Jolie, who is hardly in it at all) should have been given more screen time, which instead went to lots of very silly action scenes.

5 points

Fri, 17 Dec 2004

Be the Reds

Yesterday after work I went to the Yokohama International Stadium (site of the 2002 World Cup final and its unfortunate outcome) to see the German national soccer team play live for the first time in my life, and they wore completely unfamiliar red jerseys. The colours did not stop them from beating Japan 3-0, however.

Thu, 16 Dec 2004

Me wearing other people's glasses

Part two - Harada-san.

Mon, 13 Dec 2004

Oracle9i Database Administrator Certified Professional

OCP logo

After several months delay (I suspect that my files did not make it out of Manila until after I complained about it) my Oracle Certification Program Success Kit arrived today. It includes a certificate signed by a Senior Vice President (although if Oracle is like Citibank, where apparently everyone with his own desk is called VP, that is not as impressive as it sounds), a plastic card, the right to display the OCP logo on resume and web site, and a free subscription to Oracle Magazine. Interestingly, the certificate and card are dated at May 30, 2004 and the kit has been posted in Germany, even though I am Tokyo and the sender in Edina, Minnesota.

So what is next? There are four choices for me if I want to continue collecting Oracle credentials:

  • 9i is no longer the latest Oracle version. 10g was released this year, and of course, there are upgrade paths to become a 10g OCP. This will get interesting once we start migrating to 10g, but for now we are still using 9i (even for new projects).
  • While the OCP is only the middle tier in the certification track (above Associate, below Master), the road to Certified Master seems to be quite long: there are no more exams, but you are expected to have several years of experience in the field, attended two advanced courses at Oracle University and you have to complete a practicum.
  • Probably because of this (or maybe because certification is a lucrative business), Oracle have introduced a step in between, the OCP Special Accreditation. The first (and at the moment only) choice here is Managing Oracle on Linux, which actually makes some sense for me, as half of our Oracle installations are on Linux (the other half is on Solaris).
  • I addition to Certified Professional DBA, I am also a Certified Associate Developer. The developer track also has an OCP tier, and I see myself more as a developer than a DBA, but whereas the OCA exams where about PL/SQL (very useful), the OCP exam focuses on Oracle Forms, which is a technology I have so far had no contact with. I am not even sure what it is.

But now I have to go and print name cards with the new logo.

Sun, 12 Dec 2004

Building a racist dating site

One would think that the famous Japanese politeness would also lead to some healthy sense of political correctness, but that seems to be not always the case. So you have the mayor of Tokyo publicly issuing very conservative (to put it mildly) statements about the role of women in society, and the prime minister infuriating China and both Koreas every year by visiting Yasukuni Jinja with all the class A war criminals enshrined there, and now I have to contribute to a racist dating site. The latest project I have been assigned to is an online dating service catering mainly to American soldiers and Japanese girls. I do not have a problem with that, but the fact that the company running this service will require the users to specify their skin colour and that this choice will be visible in the users' avatars seems more than a little tasteless.

I cannot help but think that they will be eventually forced to scrap this plan, it is just too bad an idea. In fact, I hope this will happen, as I am not enough of an activist to get myself into trouble by refusing to go along with this, but at the same time do not want to have helped bringing this beast to life. I also wonder if they have discussed this at all with any of their potential American customers, who are known to be extremely sensitive about these things (I could imagine this might even be illegal in the US). And even if they accepted the categorisation, many would probably not even know which colour to choose (there are only three options: Caucasian, Asian, and African-American, making it tricky for example for Latin-Americans). Is there even any need for this at all? I know nothing about the match-making industry, but in the classifieds section of a newspaper, people usually do not reveal much more than their gender, approximate age and their interests. Also, users of the site can (and will) upload their photos, so this particular piece of information is readily available anyway, albeit in a non-machine-readable (non-searchable) form, which in this case is actually good thing.

Sat, 11 Dec 2004

Soccer

While baseball is still the most popular sport in Japan, soccer has gained popularity ever since the inception of the professional J-League and especially after the World Cup in 2002 to become a not-so-distant second. When J-League was launched it attracted a lot of foreign stars close to retirement age, and some of them are still here: Japan's national coach is Zico, and tonight is the championship final between the Yokohama F Marinos and the Urawa Reds (managed by their former player Guido Buchwald). In other news, tomorrow will see FC Porto and Once Caldes competing for club world championship in the 25th and last Toyota Cup (it will be replaced by a new format from next year), and it was announced yesterday that the 2006 World Cup qualifiers will have Japan and North Korea in the same group (together with Iran and Bahrain).

Thu, 09 Dec 2004

Kurt Vonnegut: Welcome to the Monkey House

Short stories are ideal for the daily train rides to and from work. I was expecting some solid fifties' science fiction from this compilation of 25 short stories first published between 1950 and 1968 in various magazines ranging from Playboy to the Ladies Home Journal. And while there are stories about the Handicapper General, who in 2081 and accordance to the 211th, 212th, and 213th Constitutional Amendments keeps everyone equal, a society with state-mandated ethical birth-control pills, Thomas Edison's dog, mental powers fifty-five times more powerful than a Nagasaki-type atomic bomb, cosmic radiation that creates life-threatening euphoria, living outside of your body, the devastating effects of cheap anti-ageing drugs, and about computers that cover about an acre on the fourth floor of the physics building and develop emotions, there are also more than one story about small towns on Cape Cod, the celebrities that drop by, and how to sell them storm windows and bathtub enclosures, about teen romance, schizoid jazz musicians, American puritanism, barbaric Communist guerilla fighters, noisy neighbours, interior decoration, orphans in post-war Germany, jobs at big companies, private preparatory schools in Massachusetts, the miracle of birth, the North Crawford Mask and Wig Club, and a review of The Random House Dictionary of the English Language.

Sat, 04 Dec 2004

Failing the Japanese Language Proficiency Test

Tomorrow morning I am going to fail miserably in the 2004 Japanese Language Proficiency Test (Level 2). The biggest problem is reading comprehension. Even if I could get the meaning of those long passages full of kanji (which most of the time I cannot) it just takes me way too long. Judging from my results in the prep course (last lesson today) I can expect to get a score of about 40%. The downside of all this is that I can hardly justify getting myself a Nintendo DS or a Sony PSP now...

Thu, 02 Dec 2004

The thousand and one reasons to love Perl: [11] The Advent Calendar

Every year, Mark Fowler of the London Perl Mongers puts together his Perl Advent Calendar which introduces a different Perl module every day until Christmas.

Sun, 28 Nov 2004

Dracula: Pages from a Virgin's Diary

Tokyo Filmex closed with this monochromatic, silent (except for the symphonic Mahler soundtrack) vampire ballet movie by Guy Maddin, who came on stage to answer questions after the screening. Before that, there was the closing ceremony and the jury announced the winners of festival prizes. The Kurdish-language Iraqi film Turtles can fly won both the Audience Award and the Special Jury Prize, while the Grand Prize went to Tropical Malady from Thailand.

6 points

Fri, 26 Nov 2004

250 Megabytes

I have an Hotmail email address (but do not send things there, I only keep it for my Messenger account and very infrequently read it) and I check it from time to time to make sure it does not reach its limit, which used to be just 2 MB. And in fact, the newest mail (dated three days ago) was a reminder from MSN that the account is almost full. However, the status bar showed my that I am just using 1% of my 250 MB. Seems that Google's new webmail service (which shocked the industry with a full GB of storage for everyone) has forced Microsoft to upgrade all their accounts as well. A 12400% increase in capacity. For free. Thank you Google, thank you Microsoft.

Tue, 23 Nov 2004

Tokyo Filmex 2004

It seems that there is more than one annual film festival in town: TOKYO FILMeX was launched in 2000 as a more independent alternative to the Tokyo International Film Festival. We went to see a symposium on the role of film festivals and their importance for audiences, film makers and the industry. The discussion was moderated by British Film critic Tony Rayns, and the panel consisted of former Rotterdam film festival director Simon Field, Japanese directors Hirokazu Koreeda, Shinya Tsukamoto and Takeshi Kitano, and the Japanese producer Masayuki Mori. As Rayns remarked at the beginning, it was a rather strange setup to have a foreigner lead a discussion with Japanese-speaking Japanese film makers in front of a Japanese audience, and in fact, it turned out to be rather tedious, although the translators did their best.

Fri, 19 Nov 2004

The thousand and one reasons to love Perl: [10] AUTOLOAD

Perl has a mechanism that lets you intercept calls to undefined subroutines. You just have to write a subroutine called AUTOLOAD, which will be called instead of the missing subroutine. This feature can be used in various ways. You can for example create a customised error message. Or you can implement subroutines that are loaded on demand: the first time they are called AUTOLOAD creates and installs the subroutine, so that subsequent calls will work the same way as if the subroutine had existed all along (this is probably how this mechanism got its name). I started using it to call PL/SQL stored procedures from Perl.

I have a lot of stored procedures that all look like

function do_something ( some_parameter varchar2, another_parameter integer)
    return integer;
I can call this procedure using DBI
my $sql = $conn->prepare(q{
    begin
        :r := do_something(:some_parameter, :another_parameter);
    end;
});
my $result;
$sql->bind_param_inout(':r', \$result, 10);
$sql->bind_param(':some_parameter', $some);
$sql->bind_param(':some_parameter', $another);
$sql->execute();
It is quite easy to make a generic version of that code, which looks at the function name and the parameters it is given to generate the SQL statement and bind the parameters. Using this as AUTOLOAD in the database access module, I do not have to write any more code (SQL or Perl) to access these stored procedures, and can just do
my $result = Database::do_something(
    some_parameter=>'blah', another_parameter => 123);    
If I add another stored procedure do_something_else, it will automatically become available to the Perl program, which speeds up development quite a bit and makes the application code smaller and more maintainable by reducing redundancies.
my $result = Database::do_something_else(funny_parameter => 12345);    
Tue, 16 Nov 2004

The last email address I ever needed

A few years back, the German Post Office started offering a free email service, and they ran a big campaign to promote it as your free life-long email address and the last email address you will ever need. I believed them, and most people know me as planz@epost.de now. Well, it was recently discovered that the area of private web mail unfortunately did not prove to be a business model of sufficient synergy, and the service will be discontinued in February. All users are encouraged to move to Lycos Europe, but there is no way to keep the email address, not even as a forward-only account. I know that running an email service these days must be a lot of trouble, and that you cannot really complain about the loss of a service you did not pay for (on the other hand, they are also shutting down their paid accounts, and those users must be furious), but this is being done in very poor style.

Anyway, from now on, I am thiloplanz@web.de again.

Sun, 14 Nov 2004

Secret Window

As this blog easily reveals, I let the whole month of October, during which there even was the Tokyo International Film Festival, go by without seeing a single movie (the IMAX 3D documentary about ISS does not count). Not a good development. I will try to make up for it this month.

6 points

Thu, 11 Nov 2004

William Gibson: pattern recognition

Now that the twenty-first century has arrived, Gibson novels do not have to be set in the future anymore.

Cayce Pollard is a freelance marketing consultant. Her special skill is a high sensitivity for logos, and she makes her money by predicting whether a new corporate identity or an advertisement campaign would work. The downside of this talent is that she gets sick when she sees Tommy Hilfiger sweaters or Louis Vuitton bags (her ultimate demon is the Michelin Man). She is also obsessed (hobbies are not for her, but she can obsess) with the footage, a mysterious movie that is being anonymously published on the Internet frame by frame. No one knows what it is about, who created (or still creates) it, how it or where it is made. After her online circle of friends discover some hints in the footage, and she finds herself suddenly equipped with corporate credit card, iBook and flight tickets from New York to London to Tokyo to Moscow, Cayce embarks on a quest to track down the unknown genius behind the footage.

Fri, 05 Nov 2004

Disk crash

Hard disks seem to hate me (and I am beginning to return the sentiment). This time I am really hit hard. After my iBook's internal disk died months ago, I switched to an external Logitec Firewire disk. It has recently started producing errors, but data loss was minimal and I ignored it. Here is a lesson: At the first signs of disk failures, get a new one. Well, I did not, and the Logitec died on me today. It looks like a severe hardware problem, and chances of recovery are slim. I lost a lot of data today, almost enough to move this post from the /tech to the /life category.

Mon, 01 Nov 2004

Simple Standards-based Slide Show System

CSS god Eric A. Meyer has created another amazing tool: S5 is a slide show system based entirely on XHTML, CSS and JavaScript. The slide shows work in all modern web browsers without requiring any special plugins, making them very easy to distribute. Sure, you do not get fancy fade-ins, but it has keyboard navigation (press space or cursor keys for the next slide) and most browsers can go full-screen, too. The whole slide show is contained in a single file, and if you know anything about HTML you can create slides with your favourite text editor. If you know something about CSS as well, you can tweak the style, if you do not, just use one of the available themes. Go see the introductory slide show!

Sun, 31 Oct 2004

Ten things you do not need to know about Shanghai

  • Catalogues are in short supply at IKEA.
  • People rush into subway cars before letting other passengers get out first.
  • There is a neat prepaid Public Transportation Card that works with trains, subways, busses, ferries and even taxis.
  • The German-built maglev train to the airport runs at up to 431 kph, but is not available if your flight arrives at midnight or leaves in the early morning.
  • Pyjamas are perfectly normal attire when going out.
  • Remote controls have to be wrapped in plastic.
  • Wedding guests do not dress up much, but expect free cigarettes.
  • Almost all taxis (and hence half of all cars) are Volkswagen Santanas.
  • Starting at 2 Euro, legal DVD are not much more expensive than pirated ones, but not many shops carry them, there are less titles to choose from, and they have region code 6.
  • Chinese food is different.
Sat, 23 Oct 2004

Off to Shanghai (2004 version)

I am getting around quite a bit these days, and my passport is beginning to look like a stamp rally. China is actually one of the very few places I need a visa for (at the same time it is one of the very few places Cissy does not need one for). I have also started to collect mileage, or rather mileage cards. I have three now (Star Alliance, JAL, NWA/KLM), each used at most twice, and Air China is likely to give me a fourth one today.

Tue, 19 Oct 2004

The thousand and one reasons to love Perl: [9] Regular expressions

Regular expressions are the Swiss Army Chain-saw for string manipulations and no one disputes that Perl really shines here. I would say they are almost indispensible when working with text data. Regular expression engines have recently been added to the core Java platform and the Oracle database. I know that I miss them in my Parrot experiments (Parrot already has a working regex engine, with all the low-level opcodes required for that, but no compiler to target it). While Perl did not invent regular expressions, it has made them popular, and Perl's implementation has become the gold standard of the field (the most popular C library for the task is even called pcre -- Perl Compatible Regular Expressions).

Regular expressions are a (rather cryptic) language unto themselves, and I am not going to describe them here in detail. Have a look at the Quick Start Tutorial or the regular Tutorial.

The funny thing is, now that everyone has copied Perl's syntax for regular expressions, Perl 6 is going to throw it overboard and start anew. See Exegesis 5.

Mon, 18 Oct 2004

Can you read this?

I do not command the most legible of handwritings, and my penmanship is steadily evolving (degrading?). This has become a problem with banks, because I cannot reproduce my signature from two years ago. While I am able to do most of my banking through ATM or online, I could not close my unused (but far from empty) Citibank account today. The fact that I do not know my secret number (because I do not use the account) or that the online banking account is locked (because I unsuccessfully tried to guess my secret number a few times) did not help to enhance my credibility either. Now I have to find my copy of the account opening document and practice the old signature.

I had a similar experience last month at Tokyo Mitsubishi Bank when I wanted to let them know my current residence. At that time, they kindly let me see how the signature should look like, so that I could copy it. All of this is making me understand the real value of the name stamps that Japanese people use instead of signatures on legal documents: unfailingly constant output throughout the years.

Sun, 17 Oct 2004

Under construction

Tokyo Duo City

We went to visit the construction site of Tokyo Duo City in Shin-Koiwa, where we are going to move in to next spring. The building itself is finished now, and they started work on interior decoration, but have not reached the fourteenth floor yet. The next major step will be in January, when the interiors will be completed and the future owners are invited to check everything.

Best bread message

Our little friend TOMTE use magical secret power for delicious BREAD that. Well enjoy in next morning. Children who living in NORTHERN EUROPE tell us secret that just baken BREAD. Yes ..... TOMTE's secret. HOKUO as. BREAD country SAPPORO is very similar with TOMTE's land.

Scandinavian Natural Roman
Best bread message
Hokuo, since 1979

Fri, 15 Oct 2004

QR Code

72game.com QR code

Now here is a clever use for the digital cameras that come with every mobile phone these days. QR Codes are similar to bar codes and can store about 3 Kb of binary data, enough for 4000 characters (or 1800 Japanese characters). To read it, just take a picture of it with you mobile phone, which recognises the format and can display the content. This is a much faster way to enter a URL or email address into a phone, and it is really getting popular for print advertisements or on business cards. To the left you can see the code for 72game.com, which also has a small mobile section with ring tones and background images for download.

Wed, 13 Oct 2004

Happy Birthday

I am traditionally very good at not remembering people's birthdays and I set a new record last Sunday by forgetting my father's. My bad. Very bad.

Sat, 09 Oct 2004

The thousand and one reasons to love Perl: [8] Parrot

The next incarnation of Perl, Perl 6, will run on top of its own virtual machine, much like Java or C#. This virtual machine is called Parrot. Unlike the Java Virtual Machine, which has been constructed just to run Java, Parrot will be the target platform for many other languages in addition to Perl 6 (such as Python, Ruby, PHP and BASIC). In fact, Parrot is very likely to be released significantly before Perl 6, and there is already an experimental version of Perl 5 (called Ponie) using Parrot, which will probably evolve into the official Perl 5.12 a few years from now. This approach will allow developers to share code libraries written in different languages. The are plans for a Parrot version of the excellent Perl database interface, which would make it accessible to other Parrot languages. There is already a prototype of mod_parrot, embedding Parrot into the Apache web server, that could one day replace mod_perl, mod_php, and mod_python.

There is still no real-world compiler available targeting Parrot, so you cannot use high-level languages at the moment and have to program it in its Assembler-like native code, but you can already access all the amazing features built into the core runtime engine, such as JIT compilation to real machine code, dynamic loading of shared libraries (in both machine and Parrot byte code), I/O functions, Unicode string manipulation, and access to objects (Perl datatypes like arrays or hash tables, or those you write yourself).

Sun, 03 Oct 2004

Binary Land

Tomorrow will be the official launch of NTT Communication's 72game.com, powered by GaiaX, the project that has been keeping me busy these last three months. 72 is Japanese for nostalgic, and on 72game.com you can play classic NES games such as Elevator Action (or Binary Land, my current favourite). At the moment users can choose from ten titles but more are in the pipeline. It is basically a pay-per-play service (not cheap at 30 to 80 yen per game) with several subscription models, too. The games itself are converted from the original games' ROM images (and thus authentic) and run in an ActiveX emulator (meaning you cannot play them on a Mac).

My contribution is the web site system which maintains high-score rankings, and allows players to discuss the games, buy items for in-game use (sic!). The HTML is produced by a Perl/FastCGI program, sitting on top of an Oracle database with all the business logic implemented in PL/SQL. NTT will be doing a lot of promotion for the site, so it is important that my code can handle many concurrent users, which of course has not been really tested so far. I am quite confident about its performance, though, and also still very happy with the code in general, which is unusual since like most programmers I normally want to trash and rewrite everything once it is finished).

Wed, 29 Sep 2004

Notational Velocity

Once you start using a note-taking application, you cannot live without it. These tools are so much more convenient than text editors when you just want to take or retrieve a few notes: You do not have to worry about when and where to save files (this is handled by the application itself), you do not have to find and open files in order to see your notes (as you would have to do with a normal text editor), the application is smaller, launching and responding faster than a full-blown editor, and has very streamlined operations for searching and updating notes.

So far, I have been using jNotes (the name is a little confusing, as it is not written in Java, has nothing to do with Japan, and there are also several other programs with the same name). jNotes manages multiple notes using tabs. The only essential feature it lacks is Undo, which is quite strange as Undo functionality on Mac OS X is provided by the operating system and thus comes for free (even PerlPad has it).

Today, I switched to Notational Velocity. It does Undo, it has an auto-completing search box instead of tabs, encrypts everything with IDEA (Are you paranoid enough? It does make sense, actually, if you store passwords with it), supports System Services, and can come to the front on a single and configurable keystroke.

Both applications are freeware.

Sun, 26 Sep 2004

House of Flying Daggers

Contrary to prior announcements, there are prints of House of Flying Daggers with English subtitles being shown in Tokyo. Yimou Zhang's (Hero, The Road Home) latest movie has received a lot of extremely bad reviews, mostly from Chinese people, but I agree with most of the Western viewers that it is a great film.

It stars Andy Lau and the Japanese/Taiwanese Takeshi Kaneshiro as two police officers in ancient China who are ordered to find and arrest the new leader of a group of rebels called the House of Flying Daggers. Their plan is for Kaneshiro to go undercover, free the recently captured blind daughter (Zhang Ziyi, currently China's hottest actress, star of Hero, Crouching Tiger/Hidden Dragon, and The Road Home) of the old leader from prison, win her trust, and led her lead them to the rebels' secret hideout. As it turns out, the undercover officer is not the only one with a hidden identity and a secret mission.

8 points

Sun, 19 Sep 2004

Summer holiday

We are leaving for Bangkok later today. Because a lot of people had the same idea there were not many flights available and we got some pretty unfortunate ones: Leave Sunday afternoon, arrive in Bangkok at midnight, return flight leaving Bangkok at 6 am. In addition to that, because I do not want to miss my Japanese language course on Saturday, I am returning on Friday while Cissy stays until Sunday.

The BBC Weather Centre forecasts thundery showers for the whole week (with temperatures in the thirties nonetheless).

Sun, 12 Sep 2004

Code 46

A British movie set in a not-too-distant dystopian future, where humanity is divided into those that live inside metropolitan areas in relative prosperity under the control of a global regime, and those that are exiled to the outside. In order to move around, people need special visa issued by a global entity called Sphinx. Sphinx knows what is best for everyone, and who resists it is exiled or has his memory erased. Tim Robbins plays an investigator sent to Shanghai to find out how fake permits can be produced and leave the local Sphinx branch. Using an empathy virus that allows him to read minds, he quickly finds the culprit, but instead of turning her in, he starts an affair that turns out to be illegal in an unexpected way.

If you liked Gattaca, you will want to see Gattaca again.

6 points

Fri, 10 Sep 2004

Kuklachev's Cat Theatre

Being more intelligent (and maybe arrogant) than other people, cats only do what they feel like doing and cannot be forced to do anything else. This is a problem for Yuri Kuklachev, who created the world's only cat theatre (not counting tiger shows) and turned it into one of Moscow's favourite weekend attractions. The show is in Tokyo this week and we went to see it yesterday. It was entertaining, but the cats have not really been doing much. One of them did a handstand on its front paws (twice!), but most of the time they are just walking across the stage, holding on to objects that are being tossed around, or sitting decoratively in the background, leaving the juggling, clownery and illusions to the four human and the four canine performers.

Wed, 08 Sep 2004

Not really ready for level 2

I applied for the Japanese Language Proficiency Test in December today. It is unlikely that I will be ready for it by then, though. I had trouble even to fill out the application form...

Fri, 03 Sep 2004

Print on demand

I sometimes (and at the moment) have a subscription to my favourite German-language newspaper which is apparently shipped to me by individual airmail, resulting in a rather hefty price, about three days delay (I am today reading the Tuesday issue), and a questionable ecological effect. So I am quite interested in a print-on-demand project that they announced today (well, last Tuesday): Using technology developed by the South African company Ince, the paper is sent in digital form to South Africa, where it can be printed and distributed locally. On the same day. Cheaper. I wonder if they plan to introduce a similar system in Japan.

Tue, 31 Aug 2004

Fakezilla

There are some strange business models out there, and I just found one of them in my web server access logs: FakeZilla is a tool that generates large amounts of fake traffic (pretending to come from many different clients) to a web site, so that if you're running a pay-per-click search engine, text or banner advertising, or any other marketing campaign that require unique hits to satisfy your clients you can cheat those clients out of their money. I thought this was a joke, but it is actually a commercial product, costing between 40 and 160 USD.

Tue, 24 Aug 2004

Manila

As a result of simultaneous business trips, Cissy and me are staying in Manila this week, more specifically in Makati City, which is the financial and commercial centre of the country. We are very conveniently (and cost-efficiently, and least for GaiaX and me) sharing a room in the luxurious Mandarin Oriental that Citybank likes to book for its employees. I have to admit that I am feeling a little uneasy in this high-class hotel and am somewhat shocked by the intensity of security precautions here: Armed guards (and we are talking really big guns here) are posted at the entrances of all buildings in Makati, and they check the bags of everyone going in. Cars driving up to hotels and shopping malls are also searched. This is apparently not a recent development triggered by terrorism, as the Philippines have quite a history of commercial kidnappings, piracy, and political assassinations.

On the plus side, everyone speaks English, and everything is cheap. In fact those are the two reasons that brought me here since Oracle University seminars in Japan are available only in Japanese language and at five times the cost (even including flight and hotel still about twice the cost). Plus, I get to eat a lot of fruits here.

Sat, 21 Aug 2004

Hello Kitty

Mikey poster
Kitty Ex

Ingo's last weekend in Tokyo was marked by three pop cultural highlights. We started with a screening at the Tokyo Metropolitan Museum of Photography in Ebisu of Wah! Mikey returns, a collection of twenty episodes (about three minutes each) of TV Tokyo's popular and hilarious puppet comedy series that also made (unlike myself) to this year's Berlin film festival. Next was an exhibition celebrating the goddess of character goods herself, Hello Kitty, who is having her 30th anniversary. Kitty Ex is actually split into two parts, one at the Laforet Department Store in Harajuku and one at the Mori Art Museum in Roppongi Hills, where we went. On the way down from the fifty-second floor we stopped by another exhibition showcasing the making, artwork, and background of Steam Boy, a recently released animation movie set against a Jules-Verne-type late 19th century London.

Thu, 19 Aug 2004

What month is it?

One of my favourite programming inconveniences and frequent source of bugs is shared by Java and Perl, so it is probably inherited from C and cannot be changed in order not to break old and fearsome legacy code.

Java

java.util.Calendar.set

public final void set(int year,
                      int month,
                      int date)
Sets the values for the fields year, month, and date. Previous values of other fields are retained. If this is not desired, call clear first.

Parameters:
year - the value used to set the YEAR time field.
month - the value used to set the MONTH time field. Month value is 0-based. e.g., 0 for January.
date - the value used to set the DATE time field.

Perl

Perl, in fact, is even worse in that it bases its month at 0 and its years at 1900.

localtime EXPR

Converts a time as returned by the time function to a 9-element list with the time analyzed for the local time zone. Typically used as follows:

    #  0    1    2     3     4    5     6     7     8
    ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) =
						localtime(time);  

All list elements are numeric, and come straight out of the C `struct tm'. $sec, $min, and $hour are the seconds, minutes, and hours of the specified time. $mday is the day of the month, and $mon is the month itself, in the range 0..11 with 0 indicating January and 11 indicating December. $year is the number of years since 1900. That is, $year is 123 in year 2023. $wday is the day of the week, with 0 indicating Sunday and 3 indicating Wednesday. $yday is the day of the year, in the range 0..364 (or 0..365 in leap years.) $isdst is true if the specified time occurs during daylight savings time, false otherwise.

Wed, 18 Aug 2004

Let them sing it for you

A special message for all fans of text-to-speech, and the reason I brought headphones to office today. Let us all hope that they can fill in the holes in their database without the record companies shutting them down for copyright infringement (according to the FAQ this is all covered by the license granted to the Swedish Radio, but with those guys you never know).

Sat, 14 Aug 2004

Reality Bites

Most people are probably fine with following the dialogue just by reading the subtitles (I know I would if I could read Japanese), but unless they fix their sound system which totally drowns voices with background music (and this time add noisy insects in nearby trees) I think I am giving up on the Ebisu Star Light Cinema. Since I officially state my favourite actress to be Winona Ryder, it would have made sense for me to actually have seen a few of her defining movies (rather than just Alien: Resurrection). While I have seen Reality Bites (including Ethan Hawke, Janeane Garafalo and first-time-director Ben Stiller) now, and also enjoyed the soundtrack, the probably witty dialogue was lost and today does not count. No rating possible.

Fri, 13 Aug 2004

Doesn't seem to be a shadow in the city

Yesterday the temperature topped 30 C for a record 38th day in a row (and that was just before 10 am !). My Japanese language teacher claims that an even longer heat wave led up to the Great Kanto Earthquake that destroyed Tokyo and Yokohama in 1923. On September 1st (soon). Now this could be just an urban legend, but while the Meteorological Agency states that the previous record was set in 1995, they have started making their observations in 1923.

Side note about our new apartment: If the earthquake strikes down the building before we are given the key (next March), it voids the contract and we are refunded our money. If it strikes after that, it is our problem.

Thu, 12 Aug 2004

RSSgenr8

RSSgenr8 is a hosted HTML to RSS Scraper Tool which dynamically generates a RSS feed from a HTML web page. So if your blogging tool does not support RSS (must be a very old-fashioned tool then) this offers a simple solution (although it seems to have problems with German umlauts). Ignoring my aversion against PHP and the unnecessary traffic such a tool generates, I installed it on my server in order to be able to subscribe to my sister's two blogs.

Fri, 06 Aug 2004

Das fliegende Klassenzimmer

Every summer the Yebisu Garden Cinema organises Star Light Cinema, showing free open-air movies at weekends. This year they are also celebrating their tenth anniversary and the line-up of Star Light Cinema is a selection of fifteen out of the about 120 movies they have screened over the last decade. Unlike in previous years they started handing out (free) reserved seat tickets in advance to distribute the limited seating. It is not clear if you are allowed to sit on the floor without tickets, but they did not stop us from doing so. More troublesome was the poor quality of the sound, which made it very difficult to understand the dialogue (the volume of the dialogue was too low and completely drowned by the background music), but that could have been a problem with this particular movie and the fact that everyone (except us) was probably just reading the subtitles anyway.

The five weekends are grouped thematically, and this weekend is Children's Voice, with two Swedish movies and a 2003 version of the German classic Das fliegende Klassenzimmer. The movie was surprisingly good, the story was updated to modern times in an intelligent way by including the German Post-War Separation and Reunification as background motives (although I was less happy with the rap music parts), and even the usually annoying Piet Klocke is funny in this one.

6 points

Wed, 04 Aug 2004

Cigarette smoke is wider than a human body

I am really amazed by the current poster campaign for smoking manners, for a number of reasons:

Firstly, it is a campaign to ask smokers to respect the health and comfort of others and the campaign is being done by Japan Tobacco, the world's third largest manufacturer of tobacco products. Secondly, government regulations are very liberal towards smoking (just compare the size and content of the health warning on cigarette packs here and elsewhere), so I think JT are not required to do such a campaign. Thirdly, the idea of a campaign that calmly and politely asks smokers to reflect upon their habits is totally different from the drastic and sometimes very graphic quit-smoking campaigns launched by governments and health organisations all over the world. And then there is the cool minimalist design of these ads. It is monochromatic (a friendly green) and has these bizarre parodies of functional drawings found in technical instruction manuals or educational material.

But finally, and most importantly, the posters are bilingual and the English is plain wonderful. In contrast to your average use of Engrish in Japanese advertisement, it is grammatically perfect, uses whole and sometimes long sentences rather than just catch phrases, and strikes an interesting tone in its indirect and thoughtful way of conveying the message without using direct imperatives or even judgemental language. Here is a selection I could find online, but there are a lot more:

Sun, 01 Aug 2004

Barbecue at Fontaine-no-Mori

Cissybank has a lot of activities for its employees and their families, and we are semi-active members of the Walking Club, joining them about three times a year on their monthly hikes. Today was a special event, organised as a volunteer activity to entertain orphaned children, but the forty volunteers were at least equally well entertained as the twenty children. Mt. Tsukuba is a two hour bus ride from Tokyo, a cable car lifted us halfway up the mountain to the place where we met the children, we walked three hours across the mountain to meet the bus again, which took us to a camp site where we had barbecue. The whole day was perfectly well organised, we did not even have to bring food, water or backpacks, the weather was great, and the children in a good mood.

Mt. Tsukuba Shrine

The Citiclub hike also passed the shrine on Mt. Tsukuba, but there was no time scheduled to actually visit it, which is a real pity since this is a very scenic mountain-shrine, and apparently important, too (they have an English brochure, which explains that the mountain has captured religious awe for as long as there have been people living in the Kanto Plains, and that the two divinities enshrined here, Izanagi-no-Mikoto and Izanami-no-Mikoto, are the sacred progenitors of the Japanese race and even gave birth to the very islands of Japan). While it is definitely not the spirit of pilgrimage to just drop by and pick up the temple seal, that was all I could do this time. To make things worse, I forgot to bring along my album and had to ask for the stamp to be issued on a loose leaf.

Wed, 28 Jul 2004

Fun with Null

The logic of null values in Oracle is peculiar. For starters, an empty string is treated as a null value, a behaviour that is totally against the SQL standard and common sense. And comparison operators also behave in unexpected ways when they encounter nulls. A null value is never equal to anything else (makes sense). A null value is also never equal to another null value (stranger, but I can live with that). But apparently a null value is also never not equal (!=) to anything else (which I find very counter-intuitive):

SQL> select * from dual where null = 77;
no rows selected

SQL> select * from dual where null = null;
no rows selected

SQL> select * from dual where null != null;
no rows selected

SQL> select * from dual where null != 77;
no rows selected
This all adds up to a gaping security hole in my login password checking code:
if ( password != v_password) then
    events.count_it(-1); -- wrong password
    return -1;
end if;
Before I changed it to
if ( password is null or password != v_password) then
    events.count_it(-1); -- wrong password
    return -1;
end if;
people have been able to log in just by entering an empty password, which gets interpreted as NULL, which is never regarded as different from the real password.

I am very grateful that someone spotted this before we launched the site.

Wed, 21 Jul 2004

Summer in the City

The temperature in Tokyo hit an all-time high yesterday at 39.5 C just before 1 pm. The previous record of 39.1 C was reached in August 1994.

Mon, 19 Jul 2004

The thousand and one reasons to love Perl: [7] Run-time evaluation

There is a saying in the Perl community that nothing but perl can parse Perl. While this mainly alludes to the two well known facts that the Perl syntax is much more complex than that of other programming languages, and that Perl is very well suited to write parsers, it also hints at particularily useful feature common in interpreted languages: run-time evaluation. This ability to treat input data as little programs makes it very easy to extend and configure your Perl applications.

With Perl, you do not really need, for example, a special syntax for configuration files. If you can live with the obvious security implications, you can just use Perl snippets instead of .ini, .properties or XML files. Using those files from your application is actually easier than reading any other type of file (the built-in do() function does all the work), and you can

  • use comments, spacing and indentation at will
  • use Perl's many quoting styles
  • use complex data structures -- arrays, hashes, nested if required (ever tried to create an array in a Java properties file?)
  • set Perl variables
  • set environment variables
  • load additional modules
  • call functions to calculate some settings dynamically
  • or anything else you can do in a program, but never dared to ask of a configuration file.
One person's data is another person's program.

Programming Pearls, Communications of the ACM, Sept. 1985

Thu, 15 Jul 2004

Me wearing other people's glasses

Part one - Tanaka-san.

Sun, 11 Jul 2004

Spiderman 2

The problem with these serial movies is that they do not really have a beginning, but continue where the previous one left off (so that you have to remember many things from the a movie you saw two years ago) and, even worse, they do not really have an end, but leave everything open to possible further sequels. And then, of course, there are the 41 (and counting) mistakes.

6 points

Anne Rice: Queen of the Damned

This third part of the Vampire Chronicles starts great: Awakened by Lestat's (who has taken up a career as a rock star) songs, Akasha, an Egyptian queen and mother of all vampires, rises from her six-thousand-year sleep, bringing great uncertainty and worry to blood drinkers of all ages and countries. In the first half of the book the major characters travel to San Francisco to see Lestat's concert where all events culminate. Their backgrounds are very diverse and interesting and the idea to integrate the publishing of the first two novels (Interview with the Vampire and The Vampire Lestat) into the story line is also quite clever. In the second half, after the concert, however, I found the book to turn rather dull, and almost decided to put it down and stop reading Anne Rice for good (in fact, I did put it down and turned to The Bonfire of the Vanities). The novel is somehow redeemed by its last chapter, which, after Akasha is dealt with, provides a cliff-hanger opening to the next parts of the series.

Thu, 01 Jul 2004

21 Grams

Basically all movie theaters in Tokyo have Ladies' Day (1000 yen instead of 1800 yen for the ticket) every Wednesday, but I can of course only benefit indirectly from that. Well, I just found out that Thursday at the Shibuya Cine Palace is Men's Day. Yie-hah!

21 Grams tells a very depressing story about how a terrible car accident brings together and destroys the lives of a deeply religious ex-con (Benicio Del Toro, looking like a wasted version of Brad Pitt), a mother (Naomi Watts) and a professor (Sean Penn in various degrees of bad health). To say more than that about the plot would be unfair in case you want to see the movie, as its main feature is how the story unfolds with a completely non-linear arrangement of many small scenes.

7 points

Tue, 29 Jun 2004

Tom Wolfe: The Bonfire of the Vanities

Most of the time I am reading a novel, Cissy says I should just wait for it to be turned into a movie and get the video instead. That would save a lot of time. I cannot agree with this reasoning, but this one I am going to rent, although according to the reviews the movie does not live up to the book, which was extremely entertaining.

Sherman McCoy is one of Wall Street's top brokers, but he has a fatal collision with the real world when he gets lost in the Bronx and involved in a hit-and-run car accident that he cannot mention to his wife. Reverend Bacon is an ambitious black community leader who seeks to exploit the accident to his political advantage. Lawrence Kramer is an assistant district attorney, for whom the case becomes his chance to be famous (and to impress the cuter female members of the jury). Peter Fallow is a British reporter working (when he is not too drunk for it) for a sleazy local newspaper run by Brits who all despise the Americans. The major and the district attorney are fighting for re-election, and the lawyers on both sides are only in for the glory or the money.

Sun, 27 Jun 2004

Nine temples near Asakusa

Another concentration of Buddhist temples is near the big Asakusa Kannon, so that just by walking from one subway station (Inaricho) to the next (Tawaramachi), I was able to add nine stamps to my collection. The atmosphere in the temples varied a lot. Some of the temples were in their original buildings, others on the second floor of a modern concrete complex. We met a very jovial priest who was still dressed up quite formally from the funeral ceremony he conducted just a moment ago (not really a funeral actually, but the memorial service one year after that). We met a young apprentice whose brush strokes for my album were interrupted twice, once by the telephone and once by a delivery boy. We met very friendly ladies that gave us tea, sweets, scented bags, and a handkerchief. We also met the more business-minded variant, who handed out prepared pages that had been signed and stamped in advance (in that case, you are still supposed to give them an empty page in return).

I have now been to nineteen of the eighty-eight places in Tokyo.

Thu, 24 Jun 2004

Pleasure is born here

Went out to buy a notebook to write down my Japanese homework.

Pleasure is born here.
unintentionally with individuality and nonchalantly with sensibility
Mini Notebook Size: 91 x 128 mm 32 Sheets
Sat, 19 Jun 2004

Virtual Gyudon

When I did not take Yoshinoya's announcement to stop offering gyudon (beef strips on rice) completely serious earlier this year (and it was unbelievable after all), I was wrong. Since February, there has been no more gyudon at the big ex-gyudon chain stores (only the fourth largest franchise, Kobe Lamputei, switched to Australian beef), and Yoshinoya's customer volume fell 32 percent. But Japanese engineers have come up with a possible solution: A PlayStation game that puts you in the role of a Yoshinoya employee. And digital beef is apparently safe enough, so there is gyudon in the game.

In related news, a Yoshinoya spokesman yesterday said that they are ready to resume sales if Japan eases its ban on US beef. An exemption for meat from young cows is currently under consideration.

Have a good fright

The Japanese language is phonetically rather simple and has fewer sounds than most other languages (they overcompensate that with the complex writing system, of course). It creates considerable confusion (and amusement) among foreigners when there is no difference between Ls and Rs and Bs, Ws, and Vs. So far I have been quite good at figuring things out, but they really got me this week: Shibuya station at the moment is plastered with big posters for a new PlayStation soccer manager game, depicting a somewhat familiar looking guy in several poses. The slogans seemed to indicate a German loan word, Bengel (young, somewhat rude fellow). Angry bengel, happy bengel, thoughtful bengel and so on. After passing it every day for a week or so, I finally figured it out. Sega were not announcing that their game can turn grown men into mischievous little boys (using a word that does not show up in my Japanese dictionary), they were just parading the fact that one of the biggest names in professional soccer is endorsing their product. It reads not Bengel, but Wenger, as in Arsene Wenger, who just led Arsenal London through a season without a single defeat. Stupid me.

Wed, 16 Jun 2004

Shibuya Capsule Land

Capsule hotel

Euro2004 made me stay at Shibuya Capsule Land last night. I recommend every visitor to Japan to go to such a hotel at least once as part of your sight-seeing. You are not going to see that anywhere else. The capsule could have been a little longer, but it did include free cable TV, so that I could just open my eyes at 3:30, watch us almost beat Holland and go right back to sleep, without having to get up. Actually, it is not possible to get up, unless you get out (of the capsule) first. The pricing (3,900 yen) was quite reasonable, included use of the public bath (fully equipped with towels, bath robes, razors, toothpaste-treated toothbrushes and the like) and even a breakfast. Plus it is close to office. I am tempted to see some more games there now, but Cissy is not too happy with the idea.

Sun, 13 Jun 2004

Missed Figo, Collina and Rehhagel

I did not stay up until 3am to watch the opening game of Euro 2004, but after reading about Greece's unexpected upset of host Portugal, I immediately regretted that. So the TV situation is as follows: The matches start at 1:00 and 3:30 in the morning. A few of them can be seen on the free TBS channel, for the rest you need a WOWOW subscription (which we do not have). The free games are the opening game, France vs. England, Denmark vs. Italy, England vs. Switzerland (strange choice, can only be explained by the Beckham craze), Holland vs. Czech Republic, two of the quarterfinals, the Thursday (in Porto, already Friday here) semi-final, and the final. I have to work out something at least for Germany vs. Netherlands.

Sat, 12 Jun 2004

Spam coming in left and right

Two new developments in my incoming spam. First of all, I received my first mobile spam. My mobile phone is very old: No colour display, no digital camera, cannot receive email (only network-internal SMS from Tu-Ka or Vodafone). It can apparently receive spam (by SMS), though. Of course, I could not access the included URL because the phone does not do web, either. On the email front, I received several German-language right-wing political rants, probably introduced for the European elections this week.

Sun, 06 Jun 2004

Paper Wedding Anniversary

Sat, 05 Jun 2004

Big Fish

A son returns home to learn the truth about his dying father, whom he has not spoken to in years because he could no longer stand the fantastic stories his father would make up about himself all the time (such as the one with the big fish). Sounds like a straight (dull ?) story, but turned out to be something like Tim Burton's version of Forrest Gump (complete with spiders, witches, giants, Siamese twins, a circus, daffodils, werewolves, a war, a bank robbery, and Steve Buscemi). All in all the best movie I have seen this year.

9 points

JLPT Level 2 Prep Course

I changed courses at my Japanese language school. I was taking normal classes (conversation, reading, grammar) two evenings a week, but am now enrolled in a special preparation course for the JLPT Level 2 exam in December. This is going to be tough: There will be three hours of class every Saturday and easily enough homework to take the rest of the weekend. I will have to cut back on my office hours, too, which is maybe not such a bad idea, anyway.

Sun, 30 May 2004

1Z0-032 Oracle 9i: Database Fundamentals II

Just in time to make my quarterly performance review look a little more favourable, I cleared this last exam in the DBA track in my second attempt. I was much more confident with my answers to all those questions about database recovery than in the first time round, and most of them were correct, too. Still, I prefer not to have to exercise those new skills, recovering databases is a very stressful business.

Two years ago, I would have been able to call myself an Oracle Certified Professional now. Unfortunately, Oracle has in the meantime introduced a new requirement to attend one instructor-led hands-on course. I have to find out how to do that in Japan (in English), which is probably not such big a problem as the class can also be attended online somehow, and if there is a budget for me to take part in this rather expensive event.

Fri, 28 May 2004

Glückaufkampfbahn

Porto reached the European summit for the second time with three brilliantly taken goals to seal an emphatic victory at the Arena AufSchalke stadium but they will begin their defence of the trophy with a new man in charge.

Mike Collett, Reuters

Arena AufSchalke. This is even worse than BayArena. Sometimes CamelCase and WikiWords are seriously OutOfPlace and JustSilly. Der Spiegel seems to be making fun of it, too:
Der Erfolg AufSchalke war das Ergebnis einer mannschaftlich geschlossenen Leistung, Abwehrstärke und Clevernis.
On a related note, I wonder if I can see anything of Euro2004 here.
Sun, 23 May 2004

The Ladykillers

The Coen Brothers' (The Big Lebowsky, Fargo) latest work has received mixed responses from their regular viewers and drawn a lot of criticism for foul language and vulgarity from people who took the whole family to see a Tom Hanks movie. Well, I think it works quite well as a dark screwball comedy, think A Fish Called Wanda. Sure, the plot is simple, the characters are completely one-dimensional, exaggerated, unrealistic and without background, and some of the jokes could offend sensitive people, but it is funny and the actors (especially Tom Hanks as the professor) are doing a great job.

7 points

Wed, 19 May 2004

The thousand and one reasons to love Perl: [6] Command line mode

Another great thing about Perl is that it can be used for a wide range of programming tasks. On one end of the spectrum, you can write complex applications with thousands of lines of code spread among dozens of files. On the opposite end, Perl can also be used for small shell scripts, or even directly from the command line (for ad hoc tasks). Here is a real world example.

The first rule of content management: If you have more than five pages to maintain, use some sort of content management system.

Suppose you have a web site with sixty static HTML pages. You chose to ignore the first rule of content management, and the only way to edit the pages is to, well, edit the pages (by opening them one by one in a text editor). Now you need to change some common part consistently on all pages, let us say to update the copyright message. Enter the Perl.

First, we need to write Perl code to find the string we want to replace (© 2003) and substitute it with the updated version (© 2003-2004):

s/© 2003/© 2003-2004/

That was trivial, but we already know that Perl is great for working with text. Today's lesson is about Perl's support for being a command line tool and that, in consequence, your work is already done. The other things that need to happen (opening all HTML files in the directory, reading them into memory, applying above substitution, and writing the modified file back to disk) can all be dealt with with command line switches:

perl -pe 's/© 2003/© 2003-2004/'  -i *.html  

So what do these options do?

-e
This switch is the heart of all Perl one-liners and lets you specify the program to be run (the one-line substitution snippet) on the command line (rather than reading it from a source file).
-p
This tells Perl to loop over all the specified input files, executing the program for every line (the line becomes the special variable $_) and print the (possibly changed) line afterwards. An alternative is -n, which does the same, but omits printing.
-i
specifies in-place editing, so that what we print is written back to the original file (instead of going to stdout). This rather dangerous switch can be instructed to make an optional backup.
*.html
Any files you name after all other options will be read and processed one by one.

See also the Perl manual about all the other interesting command-line options.

Sun, 16 May 2004

New personal best

It was raining today at the company camp in Atami, so we had to replace the outdoor sports with bowling. I pushed my previous record of 128 to 129 pins.

Frame: 8/- 6/2 G/3 9/- 7/-  XX  XX 1/2 3/5 7/2
Score:   8  16  19  28  35  56  69  72  80  89 

Frame: 6/- 6/X 8/- 8/1  XX  XX 9/X 6/2 9/- 6/-
Score:   6  24  32  41  70  90 106 114 123 129
Sat, 15 May 2004

E3 Expo

Because of our unfortunate schedule, we had only one day to see E3 Expo. Almost the whole show was dedicated to showing video games (for PC and consoles), with very little else to see (most of the rest are video game press and products for the retail industry, such as CD repair machines). We did manage to find an Israeli company that streams regular Windows software over the Internet (mostly for game subscription services), a Swedish developer of high-end mobile games (for handheld consoles, palmtops, and powerful mobile phones), another Swedish companies with Java-based mobile phone and web games, and a Taiwanese MMORPG producer we are already in business with.

As for the video games, I have to admit I have completely lost touch with the recent developments. I am sure there were many exciting new titles being showcased, but it did not really capture my attention. All I noticed was that most games these days are either first-person-shooters or multi-player online fantasy games, and that the quality of the graphics is really impressive nowadays, which makes the level of violence in some (most?) of the games even more troublesome.

Probably the two biggest E3 news were the presentation of Sony's handheld PSP system (able to play PS2 games and movies, although probably not directly from the regular disks, since those are too big) and Nintendo's next generation, double-screen GameBoy (also backwards compatible). Both looked very interesting, will be released later this year (at least in Japan) and I would have loved to take a closer look, but there were seriously long lines in front of their booths.

One thing I was counting on that did not materialise were dozens of give-away T-shirts. As it is, I only got one from a video game TV show, who would give a free iPod Mini to a lucky handful they spotted wearing their shirt later. We met one such winner on the Metro platform on the way back to the hotel (which reminded me that we forgot to visit Apple's booth). All I could salvage was a couple of demo CDs and a Magic starter deck.

Sun, 09 May 2004

... you're gonna meet some gentle people there

I spent the weekend at Ashley's and Maciej's place in Richmond, which is a very nicely located residential area on the West side of San Francisco. A five minute walk (across a golf course and past a museum) takes you to the coast with a great scenic view of beaches and cliffs. They let me stay in their basement (bed room / Buddhist temple), gave me a tour of all the main attractions (excluding Alcatraz, but including an over-hyped burrito that once again demonstrated why I should stay clear of Mexican food), Maciej took photos, and all of us (including Ashley's parents and their impressively wooly cat) had a good time, I think.

Fri, 07 May 2004

Time Travel

It just occured to me that one of the reasons for the strict US immigration checks are that they have to deal with visitors from the future. I, for example, left Tokyo at 3 pm today and arrived in Los Angeles at 8:30 am, more than six hours before I left. But just for the record, I was neither fingerprinted nor photographed (at least not that I am aware of).

Thu, 06 May 2004

... be sure to wear some flowers in your hair

Every year Gaiax sends some members to the E3 Electronic Entertainment Exposition to get inspiration for new products and meet potential business partners. This year the lucky ones to go to Los Angeles are Kojima-san and me. Before that, we will visit two companies in San Francisco and nearby Palo Alto to learn about micropayment technology. So tomorrow, I am leaving for a week in California. Together with the Golden Week holidays in Western Japan last weekend and the country-side company camp in Atami the following weekend, this month sure sees a lot of travelling around.

Mon, 03 May 2004

Miyajima

The island of Miyajima (near Hiroshima) has been known for centuries as one of Japan's three most scenic places (Nihon Sankei, Three Views of Japan). It is probably most famous for its floating torii gate, which stands in the middle of the sea in the morning and becomes accessible later during the day as the water withdraws. It belongs to the Itsukushima shrine, although it is obviously difficult to enter the shrine through the gate (and yes, I did get a stamp there). There are also a lot of other shrines and temples on this sacred island (Daisho-in is probably the most beautiful Buddhist temple I have seen so far), as well as many deer (which are much more relaxed than those in Nara).

Sun, 02 May 2004

Himeji Castle

Himeji Castle is the best preserved castle in all of Japan. Unlike many others, which were destroyed by war or disaster, the White Heron Castle has never been invaded or damaged and kept its original form for four hundred years. It is included in the UNESCO World Heritage list. We were very lucky to have been given a guided tour (in English and for free) by the friendly and competent Komoto-san of the Volunteer Guide Association of Himeji Castle, who runs an electronics store during the week and explains the castle on his holidays. We learned that despite the beauty of the castle, it was a purely military structure for the Tokugawa shogunate. Its white colour is actually plaster intended to stop the wooden castle from catching fire. The main tower was never inhabited and intended as the last line of defence. During peace time, it served as a storage room.

Shoshazan Engyouji

I met some serious collectors of temple stamps in Engyouji temple on Mount Shosha near Himeji. They did not have an album to contain the seals but instead had them put on both a cloth scroll and an ornamental robe, drawing my immediate admiration. Being conscious of the fact that I have not yet advanced to their level, however, I started another album. Engyouji is number 27 of 33 holy places in Western Japan (the westernmost of them actually). I also decided that three concurrent Buddhist albums are my limit and I will not start one more before I finish one first.

Thu, 29 Apr 2004

Kill Bill (Vol. 2)

Wow. In retrospect, it was a good decision to separate the movie in two parts, because it gives Tarantino (and Uma Thurman, and David Carradine) more time and you would not want a single scene cut here.

8 points

Bouchee au Fraise

Who says this has to be in English?

C'est notre plaisir de continuer a fabriquer les gateaux aimes par vous tous dans cet environnement de la villeriche de verdure.
Sun, 25 Apr 2004

Dan Brown: Angels and Demons

Again I am reading the first novel of a series after the second, but this time I am not alone, as The Da Vinci Code has been a New York Times best-seller, and most readers are directed to Robert Langdon's first adventure by the blunt marketing slogans pointing out that fact. The two books are terribly similar: Langdon is pulled from his bed to the site of the brutal murder of a CERN scientist (rather than the curator of the Louvre) and finds himself with the victims daughter (rather than his grand-daughter) in a chase across Rome (Paris and London) where he has to figure out an ancient puzzle created by Galileo Galilei (Leonardo Da Vinci) that leads to the secret lair of the Illuminati (the Knights Templar), all the while being chased by a dangerous Arabian assassin (an Albino monk) and fooled by a traitorous friend who turns out to be the master-mind that has been deceiving both the evil assassin (the Catholic sect) and our heroes. Add to that an unhealthy dose of science fiction (only in Angels & Demons) with massively super-sonic flights and an anti-matter bomb(!), and you might have to think this is a rather silly book. Maybe so, but it is really fast-paced, full of twists and Brown pulls no punches in the incredible (yes, silly, but stunning) finale.

Naive Lady

Try our Naive Lady, toilet tissue soft and of good quality. Choosing recycled paper is the first step to keep the earth full of greens for your own children.
Thu, 22 Apr 2004

The thousand and one reasons to love Perl: [5] CPAN

At least half of the power of Perl lies in the many modules that are available for almost any programming task you can imagine. Finding, getting and using these modules is very easy, thanks to the Comprehensive Perl Archive Network (CPAN). The core Perl distribution includes a CPAN client application that can automatically download and install the desired module, along with all the modules it depends on and their documentation.

The only problem with CPAN is that because everyone can upload and because there is always more than one way to do things in Perl, there are often a lot of similar modules to choose from and it is sometimes not easy to decide which one is best. A recently introduced rating system should help here.

Wed, 21 Apr 2004

Lost in Translation

A movie about Tokyo that has it all: Karaoke, German tourists, stupid expats, lonely expats, ikebana, excursion to Kyoto, skyline, crowded trains, foreign celebrities, hot baths, Shibuya, salary men, sake, school girls, crazy parties, confusion over consonants, taxi rides, video games, luxury hotels, Japanese TV, elevators, temples, bullet trains, sushi.

7 points

Sun, 18 Apr 2004

Dan Brown: The Da Vinci Code

When the curator of the Louvre in Paris is found murdered in his own museum, an American professor of symbology and the victim's grand-daughter find themselves in the middle of a struggle for survival between a radical and desperate Catholic sect and an ancient secret society sworn to protect the Holy Grail. What is most intriguing about conspiracy theory novels is that it is hard to tell where historic fact ends and fiction begins. I have doubts for example about Leonardo Da Vinci having invented public key cryptography. But for what little I know about art and history, he could have been the head of a secret society and hidden a lot of subversive jokes and messages in his pictures. I have to check the Mona Lisa and the Last Supper more carefully when I have a chance to see them again.

Fri, 16 Apr 2004

Pin still standing

No comment.

Frame: 8/- 8/1 -/8 7/X 7/1 7/X -/- 7/- 5/- X/7/1
Score:   8  17  25  42  50  60  60  67  72    90

Frame: -/8 5/2 5/4 -/5 1/2 7/- 9/- 6/- 9/- 8/-
Score:   8  15  24  29  32  39  48  54  63  71   
Wed, 14 Apr 2004

The thousand and one reasons to love Perl: [4] DBI

DBI is the Perl database interface. Like all modern database interfaces, DBI consists of a database-independent API and specific drivers for the various databases. This means that you can write code for Oracle, SQLite, MySQL, PostgreSQL or any other supported SQL database management system without having to learn a new interface every time. Theoretically, this also allows you to switch your application to another DBMS just by loading a different driver (without changing code). This does not work in the real world, however, as each DBMS has its unique features (which you can hardly avoid making use of) and SQL flavour.

Java people seem to think verbosity a virtue, and this also shows in JDBC (the Java database interface). Perl DBI is much more concise. Compare the following two fragments that do the same thing (a one-row database query).

Java version

PreparedStatement sql = conn.prepareStatement(
    "select count(*), sum(price) from sales"
    + " where category = ? and trunc(sales_date, 'Month') = ?"
    + " group by trunc(sales_date, 'Month')"
    );
sql.setString(1, category);
sql.setString(2, month);
ResultSet rs = sql.executeQuery();
int count, sum;
if (rs.next()){
    count = rs.getInt(1);
    sum = rs.getInt(2);
}
rs.close();
sql.close();

Perl version

my ($count, $sum) = $conn->selectrow_array ( q[
    select count(*), sum(price) from sales 
    where category = ? and trunc(sales_date, 'Month') = ?
    group by trunc(sales_date, 'Month')
    ], {}, $category, $month);
Mon, 12 Apr 2004

Image server on the move

The images for the T-Files are hosted on a separate server (Saving Bandwidth Part Three: put stuff on other people's servers ;-) and this server is moving next week. Actually, the machine itself is not moving at all, it will just be changing its name (from gaiax.com to gaiax.co.jp). That means I have to update all the links on the T-Files (luckily, there are not too many images). Updating old entries without changing their date is a little tricky in Blosxom however, so there could be some missing images for a while.

Tue, 06 Apr 2004

Spam getting nastier

I am getting about thirty spam mails every day now. Deleting them is only mildly annoying as the Apple Mail filter detects most of them automatically. But I got one email this morning that really made me unhappy, as it had a faked return address and pretended to have been sent by me (it also included my picture, but that was fortunately not really part of the mail, it was automagically inserted client-side by the OS X address book -- got me startled, though). I wonder how many people are getting spam using my address. I hope all of those messages get deleted unnoticed.

Sat, 03 Apr 2004

1Z0-032 Oracle 9i: Database Fundamentals II (almost...)

The last exam in the Oracle DBA track covers setting up database server and client applications for use in a network as well as backup and recovery operations. About half of the 63 questions focused on Oracle's recovery tool (RMAN), which I have not used at all so far. I was hoping that just reading about RMAN would be enough, but the exam was rather tricky and I missed the passing score by two questions. I suppose the backup procedures of the database I am managing will enjoy a lot of attention during the thirty days I have to prepare my second shot at 1Z0-032.

Thu, 01 Apr 2004

Blog roll

On the average weblog you can not only read what the author thinks, you can also read what he reads. Here is my current list of subscriptions (which I feed to the excellent NetNewsWire Lite):

  • General news
    RSS BBC News
    BBC News: Updated every minute of every day - FOR PERSONAL USE ONLY
    RSS Japan Today: National Headlines
    Japan Today: National Headlines: The world's leading source of Japan news in English.
    RSS SPIEGEL ONLINE
    SPIEGEL ONLINE: Schneller wissen, was wichtig ist
    RSS N24 - Nachrichten
    N24 - Nachrichten: N24 - Werden Sie Augenzeuge. Deutsche News rund um die Uhr. News in German.
  • Tech news
    RSS Slashdot
    Slashdot: News for nerds, stuff that matters
    RSS kuro5hin.org
    kuro5hin.org: technology and culture, from the trenches
    RSS Linux Journal
    Linux Journal: Linux Journal focuses specifically on Linux and other open-source OSes, allowing the content to be a highly specialized source of information for open-source enthusiasts.
    RSS Lockergnome Bytes
    Lockergnome Bytes: The latest technology news and links from the perspective of a Lockergnomie.
    RSS Wired News
    Wired News: Technology, and the way we do business, is changing the world we know. Wired News is a technology - and business-oriented news service feeding an intelligent, discerning audience. What role does technology play in the day-to-day living of your life? Wired News tells you. How has evolving technology changed the face of the international business world? Wired News puts you in the picture.
    RSS Japan Today: Technology Headlines
    Japan Today: Technology Headlines: The world's leading source of Japan news in English.
    RSS heise online news
    heise online news: Nachrichten aus der Welt des Computers
  • Mac news
    RSS MacDevCenter
    O'Reilly MacDevCenter -- macintosh development, open source development
    RSS MacMegasite
    MacMegasite:
    RSS MacMerc
    MacMerc:
    RSS freshmeat.net - Mac OS X
    freshmeat.net - Mac OS X: freshmeat.net maintains the Web's largest index of Unix and cross-platform open source software. Thousands of applications are meticulously cataloged in the freshmeat.net database, and links to new code are added daily.
    RSS macosxhints
    macosxhints: Get the most from X!
    RSS MacSlash: A daily dose of Macintosh News and Discussion
    MacSlash: A daily dose of Macintosh News and Discussion: A daily dose of Macintosh News and Discussion
    RSS MacRumors
    MacRumors: the mac news you care about
  • Mozilla and web design news
    RSS MozillaZine
    MozillaZine: Your source for daily Mozilla news, advocacy, interviews, builds, and more!
    RSS Blogzilla - a blog about Mozilla
    Blogzilla - a blog about Mozilla: Blogzilla is a weblog about Mozilla
    RSS WebReference
    WebReference: Daily news, views, and how-tos on all aspects of web design and development. Features free web-based tools, open source scripts, and in-depth tutorials on DHTML, HTML, JavaScript, 3D, Graphics, XML, and Design for webmasters.
    RSS A List Apart: for people who make websites
    A List Apart: for people who make websites: Web design news, info, and insights since 1995. CSS layout, XHTML, usability, accessibility. Designing with web standards. ISSN: 1534-0295.
  • Perl news
    RSS use Perl
    use Perl: All the Perl that's Practical to Extract and Report
    RSS Perl.com
    Perl.com: The Source for Perl
    RSS search.cpan.org
    search.cpan.org: The CPAN search site
  • Personal blogs
    RSS Surfin' Safari
    Surfin' Safari: Dave Hyatt's Weblog
    RSS Sucking less, on a budget
    Sucking less, on a budget: I try so hard to make things suck less...And miles to go before I sleep.
    RSS raelity bytes
    raelity bytes: The raelity bytes weblog.
    RSS 0xDECAFBAD
    0xDECAFBAD: Confessions of a Caffeine Addicted Mind
    RSS Squawks of the Parrot
    Squawks of the Parrot: Dan natters on about, well, stuff.