January 2, 2009

MAME Frontends in Ubuntu

I have been interested in getting MAME running on my desktop again. I never got SDLMAME working on Fedora 8 because performance was terrible. For some reason, under Ubuntu with my Intel GMA3100 onboard video things work well enough to play pacman at least (and probably others, SFA2 seemed to work well, but as always SSF2T was too fast) so I wanted to see what the state of MAME Front Ends for linux was. (Oh, also I have to run in the software render mode to get the tab menus to show up, otherwise they are garbage. Once things are set up though I don't need the menus, so back to hardware mode which is fast.)

kxmame doesn't believe me that my sdlmame executable is a MAME executable, it complains that it can't find any MAME instance and errors out. So that is enough time spent on that one.

kamefu refuses to find any of my roms. So that one is out.

wah!cade seems to work, but it uses bitmaps for the default UI and on my 24" monitor I can't read anything. So I stopped play with that for the time being.

Two more I am looking at are Lemon Launcher (probably won't install it unless I can't get AdvancedMenu to work) and AdvanceMENU which is my current best hope. There is a description of the install process here. So far installing AdvanceMENU has been a real pain. this thread has helped me fix a few SDL errors and of course I had to install a lot of stuff to get this to compile.

Once compiled I couldn't get it to run well: I added sdlmame as an xmame emulator, and had to make some init files for that. But it would freeze when trying to launch a program. I am now checking on the configuration used by Piapara, a bootable ISO that runs advancemenu and sdlmame to see what they use. To do that I had to create a boot cd, mount the iso in a loopback filesystem, then mount the app.img in a loopback filesystem. Finally, the relevant setup info they use is:

emulator "MAME" mame "/usr/bin/mame" "-inipath /mnt/pendrive/sdlmame/ini"
emulator_roms "MAME" "/mnt/cdrom/sdlmame/roms"
emulator_flyers "MAME" "/mnt/cdrom/sdlmame/flyers"
emulator_altss "MAME" "/mnt/cdrom/sdlmame/snap"
So they set up the emulator as a mame emulator. Ok. I'll try that.

Also, a new discovery: using the sdlmame option -gl_forcepow2texture fixes the menu corruption bug that I was seeing. So yay for that! Actually on further investigation I also needed to set the filter to 0 and (remove bilinear filtering from output, which makes things look more pixelated and better anyway) and enable gl_glsl in the sdlmame config. It seems to be working well now.

I haven't got advancemenu to work though. I have all these great artwork cabinet and screenshot files, but I can't get advancemenu to launch sdlmame. Ah well. That is enough time spent on that today.

Annoyingly Super Street Fighter II Turbo still runs too fast. Tapper runs well though, so that is good enough.

January 1, 2009

Spinning down external USB hard drives on Ubuntu 8.10 Intrepid Ibex

So I recently switched to Ubuntu Intrepid Ibex from Fedora 8 for no real good reason. Anyway, I have two external 500GB drives that I use for backup, accessing about once a day or so. I would like for those external USB drives to spin down when I am now using them. How can I get that to happens?

Generally, it looks like you can use the sg3-utils package to do that. First, install the package:

$ sudo apt-get install sg3-utils
To do this right you should probably make sure that your hard drives show up in predictable places. The best way I know to do that is to set a label on the partition, and then it should mount in /media/LABEL. So here is a good article on how to rename external USB hard drives. I saved the script at the URL above as /usr/local/scsi-idle and following along:
$ mount
(note that sdc1 has mostly TV shows, sdd has my other data)
$ sudo umount /dev/sdc1
$ sudo umout /dev/sdd1 
(name both partitions appropriately - one partition per drive)
$ sudo e2label /dev/sdc1 BackupTV
$ sudo e2label /dev/sdd1 BackupData
Then power cycle the drives. Check that they show up as expected:
$ mount
/dev/sdc1 on /media/BackupTV type ext3 (rw,nosuid,nodev,uhelper=hal)
/dev/sdd1 on /media/BackupData type ext3 (rw,nosuid,nodev,uhelper=hal)
That looks good to me. I also added to /etc/local.rc
# added by devans to spin down external disks.                                                            
# See http://ubuntuforums.org/showthread.php?t=560958&page=3                                              
# and the related wiki entry https://help.ubuntu.com/community/ExternalDriveStandby                       
# Spin down any external SCSI drives after "X" seconds:                                                   
/usr/local/bin/scsi-idle 900 &
which should take care of that. Just for this first time, I ran it myself: $ sudo /usr/local/bin/scsi-idle 900 & While that did work ok, it only spun down the hard disks. It did not go the extra step of shutting down the fans on the hard drives, so they are about as noisy as they were before. Still, at least they are spun down now. I set the drives to their "auto" setting, but it looks like that will only kick-in and shut them down when they are unmounted, which I do not want to do.

December 30, 2008

Wedding Rings

R's friend Mibe Atsushi makes jewelry for a living. Months ago we commissioned him to make our wedding rings. We aren't quite doing things traditionally: I proposed with a necklace because R. can't wear rings at work, but could get away with a necklace. Sometimes. Instead of a traditional (in America) gold wedding band, she wanted something more unique. Also, in Japan the wedding band is always platinum so that is what we went with. Mibe came up with a lot of designs and we looked through a bunch of books and finally settled on this design. I like it because I wanted a nice simple ring that was symmetric. R. wanted a common theme between the designs, so I have 12 gems mounted on the side of the ring where they won't flash at me. She has a few more on her ring, which looks pretty and girly. My ring looks manly and strong. Or so I tell myself.

Also, I wanted to make a joke about playing D&D so I know that platinum is better than gold when it comes to trying to bargain with shop-keepers to buy that +1 sword of cutting, but I figured a totally geeky joke like that had no place in a serious blog post about important serious wedding stuff. So I didn't make the joke.

December 28, 2008

Two Christmas Dinners

Dinner with the in-laws

The 23rd was a national holiday in Japan for the Emperor's Birthday. It was also coming up on Christmas, so we got together with the in-laws for dinner. We usually get together once a week for a weekly dinner, so this isn't an unusual occurrence, but for the occasion R. and I drove out over the weekend and bought a turkey. You don't see those too often in Japan so we had to go out to Kinokunia to buy one. Because of the New Year's holiday R's little sister also came up and brought her daughter Yuzuna, who is super cute at a bit over 1 year old.

R. spent the day at her grandmother's working on the turkey stuffing and other dishes. By the time I showed up, the table was set and we were ready for dinner. We started things out with some champagne and then dug into the turkey. The turkey, named Nanami-chan by R., was very juicy and delicious. Maybe I just thought so because I went to a lot of trouble to drive out and get it, but still. I brought along some brownies, and R's sister made a nice cake.

I made a joke about this being a "Traditional Imperial Birthday Dinner", but the only response I got was "oh, that's right today is the Emperor's birthday", so maybe that isn't a holiday that people are all that worked up about.

We took home some of the leftover turkey, but haven't had a chance to work on it yet. It was nice spending time with the family, but I wish I could see my family back in the US as well. It is a little tough though when they are a 12+ hour flight away. I've been making do with email and phone calls though. I had been told that Christmas in Japan is usually a holiday for couples, and not so much the big family extravaganza that we have in the states, so it was nice to spend time with everyone here. New Year's is coming up fast, and that really is the all-family all-the-time holiday so I'm sure I'll get plenty of family time in the next week.

Xmas Eve Dinner at Coucagno

On Christmas Eve R. and I headed out to Coucagno, a nice French Restaurant in the Cerulean Tower for dinner. Last year we went to the New York Grill in the Park Hyatt Hotel in Shinjuku for a very, very nice dinner. Since we have done the same thing for a second year in a row, I think now we have started a family tradition. I have to start thinking of where to go next year. I need to find a nice restaurant up high in a tower with a nice view for next year. Figuring the expansion rate of Tokyo and how often they build new skyscrapers, I don't think we'll run out of candidates for a long time.

In this case, we were up on the 39th floor of the Cerulean tower and had a great view of Shibuya. The dinner started with a nice appetizer, Regina Caviar, Sea Urchin Mousse, and Sea Bream Tartar. The mousse was a bit strange, but it was a good appetizer. The first course was a Foie Gras course shaped like a Christmas tree. The toasted bread was great, but the Foie Gras was a bit strong. I've had it a few times before, and generally thought that the flavor is a bit strong for the cost. An acquired taste I guess. I still happily ate the dish up: it might not be something that I would make at home, but I'm happy to eat it when it is done well at a nice restaurant.

The second course was interesting on a linguistic note. It was a lobster and shrimp dish, but when I was talking with the waiter, he called them both 海老, Shrimp. I'm a big fan of delicious foods, and lobster hits that category for me. I was a bit surprised to hear them both called shrimp, because as far as I know big things with claws aren't called shrimp in English. I could very well be wrong though. I would have thought that they were both crustaceans, but maybe in Japanese shrimp is that larger category. Anyway, no matter what you call it, the lobster was totally delicious. The shrimp was great too. I could have used more of both.

The third course was a nice steak course. The steak was very small, very tender, and delicious. Compared to the dinner last year, this one had smaller portions and that actually worked out very well: last year I felt like I was going to explode. This year I felt a lot better, and much less explodey. The steak was really tender and just excellent. The potatoes of various types were really great too: I definitely could have used more of those. I'm a big fan of mashed potatoes though.

There was a small dessert which was some sort of orange sherbert or something, and then a nice cake. The cake was also great, and followed by coffee, which included three types of things that were too sweet for their own good. They would have been better if they were chocolatey sweet, but they were all fruity sweet.

A day or two before Christmas Eve, Mibe Atsushi, R's friend who makes jewlery, finished the rings that we commissioned and brought them to us. I would link to Mibe's website, but he doesn't have one yet. I'm supposed to look into that and get a website built for him. So keep your eyes open for that. I'll put up a few more pictures of our rings in a bit, but there is one shot in this set with R. and I wearing our rings.

Hitler Clause?

Finally, there was a strange ice scultpture that was trying to get people into the Christmas Spirit, but looking at it just made me think of the Hitler salute thing. It was really strange. I'm not really sure what they were thinking. But it creeps me out. So of course I took a few pictures.

December 27, 2008

Real American Brownies

This isn't really something that deserves a blog post, but it gets one anyway. The other day I made brownies for the first time in Japan that actually came out correctly. I made them in my convection oven - one of the first times I've used it to actually bake something instead of using it just as a microwave - and they turned out great. I cut the cooking time by about five minutes, but they turned out great. I haven't used a convection oven before, and it seems like they cook things a bit quicker. That's cool by me.

Sat down to actually make the things, I freaked out a bit: the recipe called for the oven to heat up to 350 degrees or so, but my oven couldn't even reach 200!! What am I going to do!? Oh, I'll convert to Celsius because that is what my over runs. Doh! After that brilliant observation (this is why mars probes go boom people) things went great.

I brought the brownies to work and put a sign saying "Merry Christmas!" but throughout the day nobody was taking them. In fact, someone had put the lid back on the tupperware because I guess the brownies were too smelly. R. was telling me that the brownies are too sweet, and Japanese people wouldn't like them. Fine, that's just more for me! When I came back the next morning though, only one was left. I guess people just had to get hungry before they tried them.

I enjoyed those brownies so much that I'm going to make some more right now.

Review of Wall-E in Japan

A few weeks ago, R. and I went to a movie. I used to love going to see movies in New York - and I still do love to see movies, but since coming to Japan I haven't had the time or the money. Movies here are super expensive. A ticket for a movie costs usually about $18. If you get food though, it is a lot cheaper than in the US, so that is a benefit. Also they sell beer, which is nice. I have really enjoyed Pixar's movies so when I heard that Wall-E was coming out in Japan I knew I wanted to take R. to see it. I love robots! And Pixar movies are cute! We can't go wrong!

So I'm sure many people have reviewed this movie before, but I'll put in my two cents. It is a really great movie. Cute and fun. A bit of a scathing comment on commercialization, consumerism, and apathy. It is also just a really cute movie. After the movie we bought matching Wall-E and Eve phone straps, which worked out well because my old phone strap, a little Kubrick Bear Star Wars trooper, had lost both his legs in the line of duty. So now we've got cute matching phone straps.

It was also surprising to me that I could (if I was the unscrupulous type) download a Blu-Ray rip of Wall-E before the movie came out in theaters in Japan if I had wanted. That is crazy! Release these things more quickly in Japan people!

So, a short review that amounts to: good movie!

December 24, 2008

Amazon Web Services CTO interview / award

There is an interesting article over at Information Week picking Amazon's Werner Vogels as CTO of the year. I really like the IT / web services stuff that Amazon is doing, and this is a great introduction to some of that stuff that is easy to understand for non-developers.

I wish I had a bit more time myself to look into using Amazon's cloud computing and storage services. I was thinking of using them as off-site backup for my home server, but when I looked at the massive amount of data I would need to backup (about a terabyte) and thought about how important it was to me (not important at all - about 95% of the data is just TV shows that wouldn't hurt me if they disappeared) the cost was too high. So I just bought 1TB of external hard drives and will back up that way.

Still, at some point I want to look into using some of the storage and cloud computing stuff. It would be fun to do just as an interesting programming exercise.

December 23, 2008

Jogging around the park

It has been a while, but I had time today on my day off (Happy Imperial Birthday Day everyone!) to go for a nice jog. I did my normal 6.8km loop around the park across the river, and brought my camera since it is daytime. I took a few pictures of the random stuff in the park and then probably too many pictures of our apartment building across the river.

There are a bunch of other joggers in the park, and a few dog walkers usually. There are also lots of people fishing. Do they really get fish? Is the fish good? I can't imagine that they can be all that great, but I don't know much about fishing. There are some random statues in the park and some sort of museum thing that I am curious about. There's also a big baseball (well, small) stadium, a horse track across the river, a bunch of bridges, and generally it is a nice run. The only problem is that half the run is fun, the other half is along a feeder road for the highway, so it isn't so good. I could try to run through the more residential areas near the road, but the sidewalk by the road is nice and straight and well-paved so that usually wins. It is harder to get lost on also.

The job by the river is nice, especially near the end when I can see my apartment building on the way back. The monorail runs by every once in a while and is pretty cool too. I really like this park across the river. I should check out the facilities that they have. I know they have tennis courts and baseball fields, but they do not have basketball courts. I did check with the ward office and there aren't any basketball courts within walking distance. Dang.

The Baen Free Library and a bit on DRM ebooks

I'm sure that I've pointed out a few books from the Baen Free Library before, in particular the the books by Rick Cook, which are interesting to computer science people and fantasy people (or possibly only the intersection of the two.)

I've been meaning to go through and download other books from the site - I have read a few which led to some paper book purchases, but never took the time to get all the books there. I finally had a bit of time today and wrote up a quick Perl/LWP script to go through and download the books and covers. I'll throw them on my OLPC later on today, but I really get a kick out of browsing the covers. OSX does a nice job of browsing stuff like that when it is all thrown into a directory together.

I haven't read much out of the free library yet, so I can't provide any recommendations other than the above (which realistically is limited to a pretty small audience) but I encourage you to check out the library. I also like Baen's Webscriptions service. It is really great to get DRM-free ebooks, because you can transfer them to other devices.

I started out reading ebooks on my Handspring Visor. I then moved what I could over to my Treo 600, and now I primarily read on my OLPC with FBReader. There were some DRM'd books that I was not able to move across. I try to make sure from here on out that the books that I buy do not have DRM (digital rights management, but more realistically digital restrictions management) so that I can make sure that as technology progresses I can keep reading the books I've bought. Real books don't have this problem: when you buy a real book, you can keep reading it and you do not need to ask permission from a publisher or content provider to move the book to a new device. Maybe a good analogy would be if you buy a book, and the publisher stipulates that you can only read the book in the house you live in when you bought it. If you move, you have to give the book up.

That is just terrible. I know it is tough for publishers to publish DRM free books because they are worried about copying and re-distribution, but that is not my problem. Don't assume I am a criminal (I am not) and don't make things difficult for me because of what other people do. Usually there are provisions or ways for the company to re-license your book for new hardware, but there are problems with that too: what happens if the company goes out of business? You won't be able to move to new devices then. I know that I have read books that are over 40 years old, and I would like to be able to do that with ebooks. Even without that scenario, why am I required to get permission from some entity to do things that should be entirely within my rights (format, place, or time shifting) with data that I bought? It is ridiculous.

I really want an Amazon Kindle, but I am also worried about the DRM that they place on their books. I am sure that Amazon will be around for a long time, but what if I want to read things on my kindle and on my computer? (Probably wouldn't happen since the e-ink screens are much nicer than LCDs IMHO.) I'm sure in 20 years though there will be some other great device that I would like to use for reading, and if books have DRM on them I can't be sure that I would be able to do that. Paper books are better in that regard, but I just don't have the room I need to store lots of those, so I would really like to move to digital books.

So for now I will stick to DRM-free books. I might also start buying DRM'd books if I can find a way to remove the DRM from them - I know there are some programs around that can try to do that, so maybe that would work too. I'm not interested in copying and re-distributing books, I am just interested in being able to use my data freely. One reason MP3s are so popular is because people can use them how they want to use them, and don't have to worry about DRM issues.

Well, rant mode off. If you are interested in DRM and computer games, I recommend reading Shamus Young's Twenty Sided blog, which touches on DRM issues. And Shamus is generally an interesting guy that writes well about all sorts of stuff.

Driving in Tokyo, buying turkeys, and Eeden Mall

This weekend, R. and needed to go and buy a turkey because we are planning to cook a nice traditional (for Christmas, which is what R. thinks I need) turkey dinner for the Emperor's Birthday, which is the holiday that we get off that is near Christmas time. I'm pretty sure we are the only people that will be preparing a turkey dinner for the Emperor's birthday, but that is fine by me. Anyway, in order to get a turkey, we had to go somewhere to buy one. Since turkeys are not really all that popular around here, the only place I know of that sells turkeys is high end grocery stores, andKinokunia is one of them.

This weekend both R. and I have time off - a rarity - and so she wanted to go for a drive. I'm now officially a "paper driver", which means that I have a Japanese license, but I am not prepared or able to really drive in Japan. I've been driving in Japan twice, more or less: once for the driving test (which I failed once, then I went and took some lessons and passed the second time) and then when I drove to Fuji Rock a few months back. That was scary and dangerous for everyone involved. But I'm not a quitter, and more importantly, R. wants me to drive and when R. wants something, I've learned that it is best to help her get what she wants.

So we decided to kill two birds with one stone, and go drive down to the the Todoroki Kinokunia near my old stomping grounds of Jiyugaoka and buy a turkey, then keep going on down to Fujisawa to pick up R's younger sister and her niece. That is about an hour drive, and is worrying for me, but we hopped in the car and took off. We made it more or less safely toKinokunia , but parking was a problem. I ended up ignoring the GPS system to my own peril, tried to enter a do-not-enter driveway, and had to keep going. I eventually found a nice parking lot that was forKinokunia customers and free, but a bit farther off than the one that I was aiming for.

Once parked, it was a bit past noon, so R. and I decided to get some food. I used to hang around these parks, so I knew that the "Fukazawa Eeden Mall" was nearby. It is a little shopping district that time has passed by more or less: it is kind of far away from the station, and not really convenient to anywhere, so not many people are shopping there. I used to stop by there sometimes for lunch or dinner, but not too often because there really isn't anything great there, but thought we would take the 5 minute walk to check it out.

Surprisingly there was a new restaurant there: Palmetto, a Western (like cowboy) themed place. They specialized in hamburgers, and I was shocked to see that they had honest-to-god real pepsi in a glass bottle. It was great. The burger was pretty good too. I wouldn't say you should go out of your way to get a burger there, but if you are in the area, it is a good burger and nice little joint. There was a cute 12 or 13 year old helping out at the place, and it looked like one of his little (girl) friends from school came by and they were chatting while he was back in the kitchen and her mom chatted with one of the cooks. Doing a quick search on the web, this person is a friend of the person who opened the shop up in 2008-08 some time.

After lunch, we checked out the turkey selection at Kinokunia and picked up one that I hope will fit in our small oven. I also bought all 4 packs of Bettery Crocker Brownie mix that they had. And R. yelled at me for buying too much brownie mix.

Then we drove down to Fujisawa. It took a bit over an hour. I didn't hit anything. We picked up R's little sister and her super cute niece. Then we drove back. Things went mostly well, except for the one time that I completely blanked out and almost drove through an interestion. I was worried about the right turn I had to make and was thinking about that, and forgot to check if the signal at the intersection was, you know, signaling me to stop. Luckily R. yelled at me in time and was able to screech to a halt. I swear it wouldn't have happened in the states because I wouldn't have been worried about trying to make sure that I stayed in the correct lane when I cross traffic. I actually probably would have seen the light in time to stop myself, but having someone else in the car who believes she is about to die and will yell out warnings at the drop of a hat can be useful also.

Driving on the highways is fine, but is very expensive here. I think for approximately two hours on the road we spent about $40 in tolls. I don't want to even think about the gas. The local roads in Tokyo are a lot more scary for me than the highways. I hope I'll have more time in the coming months to go out for drives and get used to things, I'm starting to think that I might be able to manage this.

Luckily the train system is so good here that I don't really have any reason to drive, but as long as I got the license I should try to use it.

December 21, 2008

Review of Heroes Die, Blade of Tyshalle, and Caine Black Knife

A while back I subscribed to John Scalzi's "Whatever" blog and I saw his Big Idea column on Matthew Stover's new Caine Black Knife book. I read the first bit of the column, but then quit because it sounded interesting and I didn't want to have the books ruined for me. If you plan on getting the books my suggestion is to go in cold, because it is quite a ride when you don't know what is coming.

What really surprised me is that I went in thinking that these were fantasy books. It says right on the cover "A Fantasy Novel", which I thought was pretty strange. What sort of novel needs to proclaim on the cover what it is? Usually these categorizations are fairly straightfoward and you don't need to try to convince the readers what kind of book you are. (Well, that probably isn't true, but just from a straight consumer point of view, I hadn't seen something like that before.)

When I got the first book - available from Amazon Japan! - I put it on my pile of books and eventually got around to starting it. I read the back cover, and started to get a bit depressed: according to the back of the book, this was actually a sci-fi / fantasy combo type book that uses a device that I've really just grown sick of lately: the concept of alternate worlds. This concept is all over the place, I probably first ran into with Piers Anthony's Xanth series when I was a kid, and then the Chronicles of Thomas Covenant (I didn't realize that that series was still ongoing) and it pops up all over the place really. I'm just sick of it. I don't like this idea of a real world and a fantasy world. If you are going to do alternate worlds, I have a hard time seeing how you can do it better than Roger Zelazny and maybe I'm just tiring of the whole idea. It seems to be popping up in video games a lot too, from Zelda the Twilight Princess to the more recent Metroid game and a whole bunch of Silent Hill games (but I haven't played many games lately, so I'm just getting that from reviews and other stuff I see on the web.)

I would rather have a story in a well-developed world rather than one that marginalizes one world or the other, or is a ridiculous escapist fantasy about escaping a boring real life and going into some exciting alternate reality (.hack and persona are two more that annoy me in that way.)

So I was really expecting to hate Heroes Die. I expected that I would put it down after ten pages, and regret buying.

I was wrong. The book completely sucked me in. I don't know if it was the characters, which are great, or the subtle undertones (or not-so-subtle as the case may be) of existential philosophy and commentary on totalitarian regimes and the "bread and circus" trap, but I really, really enjoyed these novels. I had to go out of my to track down a copy of Blade of Tyshalle, which was hard for me to get in Japan but one of the Amazon.com third party merchants shipped it to me no problem ($25 for a paperback though, a bit expensive!) and luckily Caine Black Knife is also available on the Amazon Japan site. I went through each of these books in about a week, reading snatches here and there. I think I even got my wife angry at me once because I pulled the book out while we were waiting for a train, which apparently wasn't the correct ending for an otherwise romantic evening seeing the movie Wall-E.

I just finished reading "Caine Black Knife" three days ago and I'm disappointed that the second volume isn't out yet. I hope that it will be out soon, but knowing how these things go it will be a while.

The good news is that it looks like "Heroes Die" and "The Blade of Tyshalle" will be put out in ebook form soon - I am looking forward to that so I can add them to my growing ebook collection so re-reads can be done on my ebook reader, currently but I'm hoping to get if they ever release a version for Japan. I keep asking the digital contents guys if that will happen, but they haven't given me a straight answer yet. :)

So, in summary: go and buy Heroes Die and the other two Caine books. They are really great. I should mention that they are really violent, and have some philosophical discussions about free will and the nature of man. The violence makes those sections a bit easier to bear for some people, I'm sure. :)

December 17, 2008

Switching to Ubuntu from Fedora

So last week I broke my Fedora 8 box. It was a shame really, there was no reason for my machine to break. There was one problem with the video card, a kernel panic and reboot. That was the first time since I replaced the power supply that went bad that the machine had any trouble. Since the new version of Fedora, Fedora 10, has come out I thought I would take this chance to upgrade.

I usually have pretty good luck doing upgrades with linux, so I didn't think much about it this time. Unfortunately, that was a mistake. For some reason Fedora 10 ships with a version of Xorg that isn't compatible with the binary driver from AMD for my HD2400 card. It wasn't even worth trying to keep using the system with Vesa, radeon, or radeonhd drivers because it was just terribly slow. I thought this wouldn't be a huge problem, because I can fall back onto the built in Intel 3100 graphics chip. It is a kind of sucky chip, but works. It also has a great open source driver that supports 3d, and plays video well enough for me to get by with until AMD releases drivers that work with the new Xorg server.

Unfortunately, for some reason, there was a bug with the Intel driver on Fedora 10 or (my install of it), and I couldn't get that to work. At that point it looked like things were going from bad to worse, so I decided to back up all my data. I had to pick up another external drive, but after about 24 hours of copying in single user mode everything from /home and /data (the two places where I keep most of my data - I forgot to get /var though, which lost me my Amarok library stat data via the mysql DBs it uses!) and then installed Fedora 9.

Fedora 9 didn't give me any joy either.

So now I'm getting frustrated. I haven't watched the Daily Show for 4 days now. And this useless expensive hunk of metal is laughing at me from across the room. So I decided I would try to install Windows on it, just to see what life in the world of well-supported video card drivers is like. I had a copy of Windows XP that I bought a while ago, and that installed but it sucked. I had to do completely remove all linux partitions from the machine to get it to even recognize the hard drives. And it would only install on one of the hard drives. Also, no driver support off the default image. I had to download and install a whole bunch of drivers for the Gigabyte ga-g33m-s2h motherboard that I have, and then things seemed ok. I tried to do a windows update, but it started giving me a lot of grief about "Windows Genuine Advantage" and I decided that I didn't need all that trouble (it was a legal student copy that I bought a while back, I have used it to install on another machine whose recovery disk I lost, etc.) so I gave up on windows.

So I decided I would take a look at Ubuntu. I've heard good things about Ubuntu so I thought I would give that a try. I installed the regular desktop edition and everything went well with that. It installed very easily actually, and picked up my GMA3100 video card fine (I didn't try with the HD2400 card) and it performed well: I could play video well and have desktop effects turned on. I kind of missed the yum functionality of Fedora, but Ubuntu has apt-get which is just as good. More or less.

The only problem is that Ubuntu does not have any LVM support with the normal installer. So I initially set things up on sda to see how it went, and it went well. Then I decided that I would stick with Ubuntu for a while to see how things go, but if I am going to do that, I really want to use LVM so I can bond the 2 internal 500gig drives together into a unified /home directory. I also want to be able to put other installs at a separate logical volume so next time I upgrade things will go so crazy.

Anyway, here is an excellent guide to setting up LVMs on Ubuntu. The Fedora installer for LVM stuff is nicer - in graphical mode, I didn't try their text version - and I will miss some of the other neat stuff about Fedora (pulse audio probably, maybe some other stuff.) So far though, I have had really good luck with Ubuntu and getting it running as I like. It will take another day or two to re-copy the data, and then probably another week or two while I try to find out everything I missed (lost the MySQL database for Amarok so my music library stats are all gone) - I need to set up a webserver and stuff, I just set up Azureus (Vuze now?) with RSS feed eating capability for automatic TV downloading, and stuff like that.

Ubuntu is looking pretty good though.

December 14, 2008

I need to back up data more often

Friday night my desktop linux machine crashed. That is pretty unusual: it usually runs 24x7 for months at a time. I have had one or two crashes recently due to the video drivers (I guess) because basically the video goes out, but I can still ssh in from another machine and the desktop is still alive. I've been running Fedora 8 for a long time on it, and haven't been able to get updates lately due to some broken packages and wonky yum state I got the machine into. I haven't really had time to try to fix it, and just figured that I would upgrade to Fedora 10 when that came out.

Well, Fedora 10 came out, and my machine was giving me problems, so I thought I would do an upgrade. I downloaded the DVD, threw it in and started the process.

The install went fine, but there were problems with the video card drivers. I had been using the binary drivers from AMD for my Radeon HD2400 (card of some sort) and they worked well for playing video. I never could get video to work with compiz, so I didn't have pretty whiz-bang effects, but that was fine because I could watch videos on the machine, which is basically what it is for.

The problem was that I couldn't get the HD2400 card to display the screen right. I read up on stuff, and it turns out that the newest version of the drivers hasn't been updated for Fedora 10 and lots of people are having problems with those drivers now. Great. Well, I can always fall back to the onboard Intel G31 (I think?) video card. Unfortunately, that gave me a different just as fatal problem: there are some strange messages in the log about the X server going into some sort of infinite loop. It basically locks the screen. I couldn't manage to get that working either.

So I am now in a state with that machine where I can't boot it graphically. It will run fine in text mode. That isn't very useful for watching videos. Things were working great with Fedora 8, but I had borked the install a bit, and now it is out of support anyway. So I am now planning to move back to Fedora 9, but I can't downgrade without wiping all the data on the hard disk. This is a problem because I've got a LVM install binding two 500gig drives together, and they are not backed up. About 800gig is video and user data that I want to keep. Another 100gig of system data that I don't care too much about. But no backups.

Well, I have a 500gig external drive, and just bought another 500gig external, and in single user mode I am now backing up the machine. It looks like it will take about 24 hours to do a backup using the tar copy trick (I can at least see what files are being copied that way: "tar cf - . | (cd /mnt/backup/data && tar xBfv -)")

It is super slow. I would like to use dd or something, but because I'm using LVM the sizes don't work out so that I can mirror the partitions. I don't know the intricacies of dd anyway. At least I'll get a backup of all my data now (one of the drives I had was firewire, the new one is only USB. The firewire drive was a lot quicker.) Also when I re-install Fedora 9 (because driver support still isn't there for 10) I will do a smarter partitioning: put /home and /data on their own mount points in the LVM so that future installs can blow the other stuff away and leave that data intact.

Actually, I'm still not clear on the best use of LVM. Should I make a second LVM LogVolume group just for /home and /data? That sounds like it would be safer to me, because then I could make multiple LogVolume groups for different installs if I wanted to, and blow away the whole thing on an upgrade. But LVM is still a somewhat confusing concept for me. I understand what it is doing, I do not understand practically what are the best ways to set things up to keep your data safe. I had a different problem with LVMs once where the LVM itself went corrupt, and basically I just had to kiss that machine goodbye.

I think I can use my standard rsync trick for backups from here on out, but Apple makes this so much easier with Time Machine.

December 7, 2008

A busy day - another typical blog post

This is another really typical blog post. Nothing interesting here.

I had a lot to do today, and didn't get enough done. In the morning I got up at a reasonable time for the weekend - 9:30am, and called the family back home. It is hard to find good times to call America because usually in the morning I've got to go to work and can't spend too long on the phone. After chatting with Alana and Mom I started in on folding the laundry, which had been waiting for me since Saturday. My wife was catching up on sleep, since I think she didn't make it home from her work-related drinking party until very late.

I had a bit of work to do for NTCIR (an academic workshop I'm involved in) and standard checking up on email and the web, then I spent some time writing blog posts. I've been meaning to write about a bunch of things, and finally knocked a few of them out. There's still more on the list, and I'm not sure why I'm writing these things since I don't know who is reading, but I think it will be nice to have these things down for posterity. In eighty years maybe it will be interesting for me to go back and read these things. Assuming the technology still exists to access such ancient data. :)

R. cooked up some spaghetti for lunch, and we worked on the leftover meat sauce that I made a while back. It was good. She added some spices to it, so it was a bit hot too. Nice though. Then she headed out to work and I went to the local Jusco to buy some clothes for running: it has been getting cold lately, and I want to keep jogging, so I needed to get some good sweat pants and a light jacket.

More bad things to put in doughnuts

While shopping, I ran by the Mister Donut shop and saw another doughnut combination that I just really don't think should exist. I wrote about unusual food combinations before and think this is another good example: a Shrimp Gratan donut that has shrimp, a white cream sauce, macaroni, and mushrooms. That doesn't sound bad really, I just don't want that in a doughnut shop.


Once I came back from that, I needed to test out the cold weather running gear so I took off for a jog. Since it was still 4pm, there was a bit of sun out (only for another hour though) so I thought I would try to find a new loop. I had a nice 6.8km loop, and a nice 4.3km loop, but nothing longer. We live in a nice area for running (for Japan) I think: we are right on the Tokyo Bay on a little canal that runs up between us and an island that is used for loading and unloading boats and storing trains. There is a big park on the island. I can see the loading docks from my balcony, so I've been trying to find a way to get out there and jog alongside the open bay. Today was the closest I have ever come, but I failed. I don't think that loading docks are really open to the public.

You see two pictures of the route that I took that were recorded with my cell phone. It has a nice little GPS program that can do all that stuff. The website that displays the data isn't very good though and it drops a lot of the little location dots. Bummer. I tried to get over to the bay twice, and was stopped by dead ends or major highways. I'll have to check the area out with Google Maps more and see if I can get over there somehow, because the view must be great.

Running back up the canal area at night is really nice: you can see the Monorail glide by over on the other side of the canal, there is a nice big horse racing stadium that is lit up sometimes, and there are some nice towers that make neat reflections over the water (including ours.) Hopefully I'll be able to keep on jogging through winter. The new running clothes worked great, and the jacket was too hot, so I almost ended taking that off. Should be great for even colder weather, and Tokyo usually doesn't get down to much below 0 Celsius, so I think I'll be fine.

After the run I came home, took a shower, vacuumed, did the dishes (man I have got to take a picture of our dishwasher. It is comically small - only slightly wider than my outspread hands) then had some leftover curry.

Dealing with HD Video is much harder than it should be

R. has been trying to make a DVD of a video she took for her friend's wedding, but she used this completely high-tech 1080p HD video camera. (Not ours, borrowed from her sister.) I couldn't get that thing to transfer data onto my OSX machine, couldn't get it to transfer data onto my big ThinkPad, didn't want to try to do it on my linux machine, and had major problems doing it with the little ThinkPad that R. uses, but finally that went through. She burned a few DVDs and finally asked me why she couldn't watch them. Hm. Good question. Checking the DVDs out, it is clear: the program that she used to edit the DVDs only seems to burn to a format that can be ready by Blu-Ray DVD players, of which we have none. She just wants a normal DVD. I have iMovie on my Mac which can do that, but it can't read the files spit out by that camera.

So she asked me to do something about this. I spend some time with the "HD Writer 2.5" software that Panasonic included with the camera (and which wouldn't install on the beefier ThinkPad) and found a way to export to MPEG-2. That is a pretty reasonable format, so I was pretty sure I could get that to import on the Mac. Annoyingly, you have to export each scene one at a time. Then getting the network settings on all the machine right so I could copy them over the internal network took more time, but finally I got the files moved over to the Mac, and...

Wouldn't you know it OSX can't read MPEG-2 out of the box due to probably licensing issues. I needed to buy a $20 add-on to get Quicktime to read MPEG-2. So annoying. Once that was purchased and installed, I could import the MPEG-2 files. Great! It is only going to take 299 minutes.

Oh man, you've got to be kidding me. I'm going to bed. I hope this thing finishes by morning.

What I had for lunch and other misc

Yeah, I know, the stereotypical "What I had for lunch" blog post. Well, you have to put up with these sometimes. This is a recent food post and a few other random notes.

First up: food.


The other day I stopped by McDonald's for breakfast. They have a bunch of "Mega" stuff here, where they basically just try to make things really huge and big. The most well-known is the Mega Mac, basically a big mac with the beef patties doubled up. I'm not a big fan of Big Macs normally (the cheese is terrible) so I haven't tried one of those yet. I did see a "Mega McMuffin" though, and tried that one morning. Two sausage patties, an egg, bacon, and the McMuffin muffins. It was pretty good. I usually just get some toast, eggs, or cereal at home, but once in a while I might go with this again.


The concept of pre-made lunch boxes, bento, is really popular here. You can walk into any convenience store and there is usually a selection of 5-10 different types of little microwavable lunch boxes. I'm co-organizing a track at the upcoming NTCIR Information Access Evaluation Workshop and we have 4-5 hour organizational meetings for that every once in a while. The other day we had a meeting, and I thought I would snap a picture of the lunch box that they supplied us with. It was also pretty good - but everything was cold. It is very common in Japan to eat things cold that in America I wouldn't consider eating cold. (Then again, I was never a fan of eating cold pizza.) Usually things like roast beef fall into that category, and often there are meatballs or other things in these bento that I think should be hot. Throw the whole thing into the microwave and you are golden, but it is also common just to have it cold.

Anyway, this was a nice bento. We eat stuff like this pretty frequently here.


For dinner I've been cooking a lot myself lately. Unfortunately, I don't really cook well: I plan to take a cooking class next year once I have cut out some of my obligations and free up some time. I particularly want to take a real cooking class because I insisted on getting a real honest-to-god oven (you do not get those in Japan generally) in our apartment. It cost thousands of dollars. Completely ridiculous (granted, it is a microwave - convection - conventional oven and plays like, music and stuff) but I absolutely demand an oven because my previous attempts at making brownies in toaster ovens failed completely and I really want to be able to make brownies if I will be living here for 30 years.

So now that I have this crazy oven, I want to learn to use it. And generally cook more because I do enjoy cooking. Some of the things that I have in my cookbook (I have to update that someday) are dirt simple, and a spaghetti meat sauce like my mom used to make is on the menu. Simple, but you can make a whole bunch of it at once, and it is good.

Update on Quarter Pounder in Japan Situation

The other food thing is a quick update on the Quarter Pounder situation in Japan. Recently these two "Quarter Pounder" shops opened up and proved really popular. They only sold quarter pounder and double quarter pounder meals. Japanese people love things that are new and limited edition, so for the month that the shops were around (one in Shibuya, near where I work) and one in Omote-sandou (super high-end shopping place, like Park Ave.) were pretty crowded. The really funny thing is that most Japanese people had no idea that these were McDonald's shops. The Quarter Pounder has never existed here, so I think the general consensus was that these were new fast food restaurants. Anyway, last week the Shibuya shop disappeared (and I assume the Omote-sandou one as well) and a bunch of signs went up at McDonald's shops everywhere: "Surprise! Qaurter Pounder was us! Now you can order them at all McDonald's Shops too!"

Most Japanese people I've asked so far were shocked. They had no idea. I guess the equivalent would be some cheap fast food place opening up that is fairly stylish and serves good sushi in the US. Then after a month, "Surprise! This is McSushi, and now you can get it at every McDonald's in America!" Not that that will ever happen, but still.

Random other stuff

Last week I stopped by my old workplace for a meeting. Checking my old office, my name is still on the door. It has only been three months, so I'm not completely surprised, but I'm sure it will disappear after a while. I think that the last time I visited Columbia University my name was still on the door of my old office - that is about 2.5 years. I'm pretty sure it is gone now since everyone that I was working with at the time is gone now. 2.5 years is a pretty good record though.

While at my old workplace I took two pictures of the fall leaves at the Imperial Palace. One of the really great things about the Japanese National Institute of Informatics is that it shares a building with Hitotsubashi University so there is a small gym with showers, and the Imperial Palace is really close. I used to do a 5km loop around that place a few times a week and miss it (but there is a great 6.8km loop right near my new apartment, so I still have a place to run.) The fall leaves look pretty nice out there.

Finally, there are two new buildings going up right near where I live. It looks like one will be ~20 floor office building, and the other a residential tower. I think it won't be bigger than the tower we are in though (26 floors, not that we're that high up) so that is cool. I would hate to have our brand-new building eclipsed by another brand-new building next door. :)

Marketing in Japan

The other day while walking around my local supermarket, there was a stage set up. I thought this was a bit odd, but no stranger than anything else I have seen around Tokyo. On the way out, things had started to happen: people had gathered around, and a strange-looking mascot had shown up. He got up on the stage, and some people talked about all the great products that come out of Aomori Prefecture and then the mascot started to dance along to a song promoting Aomori products. There has been a lot of trouble in Japan over the past few months about false advertising attached to food (foods that are mis-labeled and include foreign meat or juice or whatever, or things that are labeled as good past their official expiration date, some issues with poisoned food from China, etc.) so people have really been trying to buy locally and stick to brands with high quality. I guess this might be a push in that direction, but the dancing mascot and song about (just in general - nothing specific) Aomori branded food was interesting.

The second one I'll point out is a bunch of new Final Fantasy posters I've been seeing around the subway stations. I believe that this is tied into a new artbook (or possibly postcard art book, I'm not clear on that) that is coming out in a few days. The posters are advertising "Final Fantasy Drink Potions" - I've seen these before back when the last final fantasy came out, little drinks made in the shape of the potions from the game. I think it is pretty geeky-cool, so I'll pick some up even though I haven't played a final fantasy since Final Fantasy VII. I really would love to play more video games, but I just haven't had the time (but do see my most recent post on World of Goo.)

Mini Manga Reviews 2: Crossfire and Yotsuba volume 2

Continuing in my series of mini-manga reviews, we have Miyuki Miyabe's "Crossfire" and the second volume of "Yotsuba to".

Crossfire is a pretty nice and easy read. There were two words that I learned, basically accelerant (促進) and pyrogenesis (I think that is the English for it - someone that can cause fires with their mind.) The author, Miyuki Miyabe is known for murder mystery and suspense novels. This one has a bit of a supernatural tint to it, since the main character has the ability to start fires. (Hence the title.) I think that makes things a bit interesting, since I like to read about things that are bit divorced from the normal reality that we live in. If I wanted to read about arsonists, I could find that in the newspaper just by looking hard enough. The manga was a pretty quick read, and has furigana for most of the complicated words, but is probably more of an intermediate than beginner level. I thought it might be self-contained, but it ended on a clear cliffhanger, so it looks like I'll have to keep my eyes open for volume 2. This manga was just released back in September so it is fairly new. There is also a DVD movie version of what looks to be the same thing, but I'm not enthralled enough to want to search that out. I might rent it if I come across it in Tsutaya though.

Next up is the second volume in the Yotsuba to series. I really like this series: it is funny, each chapter is short and self-contained (makes for good reading when you only have five or ten minutes here or there, which is generally the situation I am in) and the Japanese itself is pretty basic. It has full readings given for the kanji, so it is very accessible to beginners. I also think this series is great for foreigners because of the whole "unusual aspects of Japan" that is explored from the point of view of a naïve (or possibly very stupid, putting her on a level I can relate to :) ) young girl. Highly recommended.

As always, you can click on the links to the left to hit the Amazon.co.jp pages for the books, but they have my referrer ID in them so I clearly am trying to make money off of you. :)

December 2, 2008

Those guys over at 2-d Boys are really cool: buy World of Goo

I like the idea of independent and fun games. I don't really have much time to play games, and I am horrible at 3-d things. I get lost in the real world, and I don't want to emulate that within a sandboxed virtual 3-d environment. With monsters running after me. Trying to kill me. That is not fun, that is stressful. Two years ago I started to play the First Person Shooter "F.E.A.R." but it was too scary for me. I never got very far in it. I got a bit farther in Half Life 2, but I still keep getting lost, and it becomes not very fun. And I hate those ceiling hanging things.

Anyway, the other day I heard about the high piracy rate for World of Goo (over 80%?) I had vaguely heard of the game before, and I think played the entry into one of the Independent Games Festivals that started the seeds for making the real game.

Since the game is reasonably priced, only $20!, and the bit that I played before was fun and interesting, and there were no monsters chasing me and trying to kill me, I bought the game. You should too: World of Goo. It is a really good game. I've played the first two levels (I know, I should really play more and get a real review out, but I just don't have the time!)

But the coolest thing so far is that when I bought the game and payed with PayPal, things didn't go well for me. I got a reply from PayPal, but not from 2d-boy. So I went to their site and went through the automatic tools for saying "I paid, but didn't get my download link". That didn't work either, so I sent an email off, and then thought, "well, that will take a few days, so I'll just go to bed."

Before I could finish up with other net stuff though, withing five or ten minutes, I got a reply from Kyle Gabler at 2-d Boy who told me that PayPal was doing some server mantainence, and passed on the download link. I was amazed. You are lucky to get a real human at most companies, and I would never expect a message from one of the founders!

One of the other nice things is that you can download both the Windows and Mac versions (and Linux soon!) That is nice for me because I have about 5 computers laying around, and end up using different ones for different things (based on what jobs I'm working on usually.) Also, a great thing about the game is that there is no DRM. It is easy to install, and doesn't treat me like a theif. I'm glad I bought it. It is a fun and cute game, totally recommended.

November 24, 2008

Fall leaves in Koishikawa Park

Yesterday, R. and I went to Koishikawa Park (小石川後楽園) in the middle of Tokyo, near Tokyo Dome, for an afternoon picnic. It was a holiday weekend, so the place was packed. Actually, I'm not sure that it wouldn't be packed on any normal weekend either, but since it is also the time of the year when the fall leaves turn colors there were lots of people there. We bought boxed lunches at a nearby convenience store, and some beer, and headed out to the park. It is a really beautiful place, just amazing that a park like that can be hidden away amid the skyscrapers and bustle of Tokyo. There are lots of parks like this really. They are medium sized, but seem much larger than they are due to creative landscaping.

Check out the Flickr Set for all the photos but generally I think that things looked really nice. The leaves are turning some nice colors, and I really like the mix of traditional park with modern backdrops: Tokyo Dome and tall buildings in particular are interesting to me.

While we were eating on one of the benches there was a Bunraku (Japanese traditional puppetry) show on a small stage erected for the event. I would have liked to watch it, but the place was packed and I couldn't see a thing. I did get a decent picture though.

After lunch while we were walking around I saw a woman in a Kimono, and asked if I could take her picture. She was pretty surprised, but called her friend over (who I hadn't seen) so I ended up with a nice shot of two women in Kimono. Nice! Also, it is amazing how many people were taking pictures with camera phones. There were people with crazy big lenses on DSL cameras, but more people with crazy small cameras taking pictures also. My new phone also has a high resolution camera (5MP, more than my point and shoot 4MP camera camera, but the pictures on the phone are really bad at anything more than 2MP.) My new phone actually has two cameras on it, which I find really funny. My camera doesn't have two phones on it.

Anyway, I don't have much more to write about the picnic: it was a nice break in the middle of the city. There are lots of little parks like this - I've been to Shinjuku Gyoen before, Hamarikyuu park, and the central park equivilent as well. I enjoy finding new places liket his though. I'm going to have to spend more time walking around my new apartment and find out what we have in this area.

The leaves are really starting to take on nice colors, and pretty soon it will be winter. I'm not looking forward to the cold winters, but they beat the nasty summers.

A Surprising Birthday

Two weeks ago, I turned 34. I actually thought I was turning 35, but a bit of addition convinced me that I am indeed now 34, and I have another year to go before I hit 35.

I was very busy two weeks ago with work: there was a big bug in a system that I work on, and I was frantically trying to get the problem resolved before the holiday season. (The issue was finally resolved last week.) Work was keeping me busy, and I was fighting off a cold as well. I hadn't thought much about my upcoming birthday because of the recent job change, and my continuing work with the NTCIR conference, I was barely getting enough sleep at night. The weekend before though I got a package from my twin and younger sister which reminded me: "oh yeah, it is my sister's birthday is coming up, so that means that my birthday is coming up too." That's one of the good things about being a twin: usually your twin will remind you of when your birthday is.

On Thursday night, I was planning to head home and have a nice evening with my wife, but things were a bit busy at work, so I gave her a call to tell her that I would be a bit late. On the phone she told me that she was at Jiyugaoka, and when would I be there? I was a bit confused, but then when she asked whether I had read her email, I realized that I must have missed a message from her. Sure enough, she said that she had made reservations at a place at 7pm in Jiyugaoka (where I used to live) and if I moved quick, I just might get there only slightly late. So I closed out my work email and hopped on the train.

Back at Jiyugaoka, only slightly late, I met up with R. and we headed out. I thought she might have made a reservation at Lobros, a newish place that I had wanted to try for a while, but we kept walking. I was pretty sure that she had called up my friend Amadou who runs Saraba, my favorite bar in Japan and arranged for him to open up shop so we could drink there. Since Saraba is currently on hiatus, that was super cool. Sure enough, we made our way circuitiously to Saraba, but to my complete shock the place was packed with my friends! What really surprised me is that my friends from work, Dave and Ian, were even there! Just about an hour before they ducked out of work (at a reasonable hour) in such a way that I just had no idea that anything was up. I was later told that I didn't act surprised enough when I entered the bar, but I was just so schocked I didn't know how to react. My first reaction was to get a beer and drink it. (Normally a fairly good reaction to have in Japan.)

I had a great time that night, and it was great seeing all my friends. I wish I could have seen some of my other friends that live in America, but logistically that is just difficult to manage even on a non-surprise basis. :) So thanks to everyone that made it a special night. This is one birthday I won't forget for a while. Especially because R. made a night photo album with actual printed pictures in it!

Go to Page: 1  2  3  4  5  6  7  8  9  10  11  12  13  14  15 16  17  18  19  20  21  22  23  24  25  26  27  28  29  30  31  32