Wenying

06 Nov, 2008

Fukuda Steps Down As Prime Minister

Posted by: admin In: Japan News

Copyright © 2008 billywest. Visit the original article at http://www.sevententotokyo.com/fukuda-steps-down-as-prime-minister/.

Prime Minister Yasuo Fukuda declared his resignation today in a surprise move that has left many guessing about the future of the LDP (Liberal Democratic Party). Fukuda’s popularity has been low for most of the period that he’s been the leader of the LDP and many have speculated that Taro Aso will likely be the next party head. The announcement came on the heels of an declaration by Ichiro Ozawa of the Democratic Party of Japan (DPJ) that he will look to be the party’s leader for a third term.

Japanese Ship Escapes Pirate Attack
A Japanese ship was attacked of the coast of Somalia Saturday, but managed to evade the marauding pirates and reach safe waters. Another ship was attacked by the same pirates, but the pirates were scared off by a military aircraft that was called in by the piracy center in Kuala Lumpur after the attacked ship’s captain radioed for help. No crew members on either of the attacked vessels were injured.

Monkey Chills Out in Shibuya Station
ãªã‚“ã§ã“ã“ã«ã„ã‚‹ã‚“ã ã‚ˆï¼
This was an often-repeated statement by commuters that had their schedules disrupted by a monkey that made its way into Shibuya Station and parked itself on top of an electronic inbound/outbound train bulletin box, you know, the kind that hang from the ceiling. Well, this made it hard for police and animal control specialists to capture the furry little beast, causing them to have to redirect pedestrian traffic and inconvenience passengers.
Officials are still investigating and are not sure how the monkey came to be in Shibuya Station. One thing’s for sure, though: If this had happened around last-train time, nobody would’ve noticed the monkey ;)

For more of the latest news, check out Mainichi Daily News

03 Nov, 2008

We Moved To Rural Japan

Posted by: admin In: Home & Family

And soon started to wonder why we ever thought living in a 200 year old wooden house with a straw roof would be “charming”…

Our Home In The Japanese Countryside

Note: Come visit the front page for more of life in Japan - sort of…

02 Nov, 2008

Soul Eater - 14

Posted by: admin In: programming

soul eater 14

Impending Doom.

Episode 14 “(Super) Written Test〜 Heart-Throbbing, Trembling, Nervous, Lies?〜” at a glance:

It’s testing time at Shibusen… Steins administering a test thats meant to test everything that they should know as students and as meisters/weapons in general. Many have different plans for how to pass the test… Whether it be intense studying like Maka, working out like Black Star, or even doing ritualistic chants like Maka’s father (for her sake). When it comes to the test though, the only one who doesn’t crack under pressure, get caught cheating or completely forget about what a taking a test means is Maka, who is under a lot of pressure to score the highest in her class like her legendary mother had before her. In the end, Maka can rest assured as she gets a perfect score and tops the class charts, hopeful of one day making Soul Eater a Deathscythe and following in her mother’s footsteps.

soul eater 14

Why meow for attention when you can do this? (Nyannn ~^-^~)

soul eater 14

This is how I study

soul eater 14

Kid’s perfectly symmetrical drawing of Liz?

soul eater 14

Deathscythe spends half this episode chanting.

soul eater 14

This is why you shouldn’t cheat on tests.

soul eater 14

Patty: Stupider than first imagined

soul eater 14

Soul Eater knows how to cheat in style.

soul eater 14

She did this entirely with test papers and crayons…

soul eater 14

Perfect time for an autograph.

soul eater 14

2nd place… “Ox Ford” lol.

soul eater 14

Maka and Deathscythe when young… Even as a guy, I thought these pictures were cute.

soul eater 14

And he read to Maka… whatever happened to this side of him?

soul eater 14

Nyannnn

soul eater 14

Mewww… spent all of Deathscythes money on herself instead of Maka.

soul eater 14

A gift… from papa…?

soul eater 14

Clueless.

The new ED: “Style” by Kana Nishino

soul eater episode 14 soul eater episode 14 soul eater episode 14
soul eater episode 14 soul eater episode 14 soul eater episode 14

The new ED has great art… a great song… but seriously, it shows the same shot of Maka walking/running looped for almost a minute! The shots above are literally almost all of the scene changes in the actual ED. The quality was superb.. but enticing and interesting? It was definitely not.

Review: I guess tests are at every school you could go to…

This episode doesn’t really go anywhere… the only thing it really does besides provide some pretty hysterical laughter is offer a deeper insight into Maka’s relationship with her parents. The photoalbum with her and Deathscythe when they were younger was pretty cute. He was probably quite the pimp, he was only 18 when Maka was born (younger than me O_O, and no, I do not have any children… that I know about…).

All in all… Yes, the classroom antics were funny. Yes, I found myself laughing hysterically from time to time as the show played off of the character’s personalities even more. But, if you’re looking for another action-packed episode of Soul Eater, this is one you can skip right on through.

Preview:

soul eater episode 14 soul eater episode 14 soul eater episode 14
soul eater episode 14 soul eater episode 14 soul eater episode 14
soul eater episode 14 soul eater episode 14 soul eater episode 14

Contrary to the episode 14, the next one looks like its going to be an action-packed time in Soul Eater… Also, the return of Chrona and Ragnarok in episode 15, “Black Dragon that Eats Soulsï½Cowardly Liz and Her Pleasant Companions?t.

Photodump:

soul eater episode 14 soul eater episode 14 soul eater episode 14
soul eater episode 14 soul eater episode 14 soul eater episode 14
soul eater episode 14 soul eater episode 14 soul eater episode 14
soul eater episode 14 soul eater episode 14 soul eater episode 14
soul eater episode 14 soul eater episode 14 soul eater episode 14
soul eater episode 14 soul eater episode 14 soul eater episode 14
soul eater episode 14 soul eater episode 14 soul eater episode 14
soul eater episode 14 soul eater episode 14 soul eater episode 14
soul eater episode 14 soul eater episode 14 soul eater episode 14
soul eater episode 14 soul eater episode 14 soul eater episode 14
soul eater episode 14 soul eater episode 14 soul eater episode 14
soul eater episode 14 soul eater episode 14 soul eater episode 14
soul eater episode 14 soul eater episode 14 soul eater episode 14
soul eater episode 14 soul eater episode 14 soul eater episode 14
soul eater episode 14 soul eater episode 14 soul eater episode 14
soul eater episode 14 soul eater episode 14 soul eater episode 14
soul eater episode 14 soul eater episode 14 soul eater episode 14
soul eater episode 14 soul eater episode 14 soul eater episode 14
soul eater episode 14 soul eater episode 14 soul eater episode 14
soul eater episode 14 soul eater episode 14 soul eater episode 14
soul eater episode 14 soul eater episode 14 soul eater episode 14

01 Nov, 2008

Poze Anime-Camp 2008

Posted by: admin In: programming

th_20080830-a-camp-papertoysDe pe otaku.ro:
Light Graffiti @ A-Camp 2008
Stencils @ A-Camp 2008
Paper Toys @ A-Camp 2008
Workshop de desen @ A-Camp 2008

31 Oct, 2008

Episode 40 - Sumo Zombies

Posted by: admin In: Thoughts

ep40.jpg

Scott Lockman’s latest episode beat me to the punch on the sumo update, but his update on sumo was much more informative than mine so go check it out. If you want audio from sumo, you can get that in this next episode. Recorded right after I was able to get my cord fixed last week, I touch upon sumo and a few other topics. Enjoy!

Show Notes:

  • More about my power cord
  • AppleCare rules!
  • Homelessness in Japan
    • The guy under the bridge
    • The guy who asked me for “hungry”
    • The guys who live in Internet cafe’s
  • Only in Japan - strangest vending machine to date
  • Sumo Wrestling
    • Audio clip
  • Zombie cleaning crew
    • Audio clip

Heavy rain and lightning have been hitting Tokyo, Osaka, Kobe and Kyoto areas causing flash flooding, power outages and many other problems lately.

Heavy thunderstorms in Tokyo caused flooding in rural Shinjuku and surrounding areas. People were stranded in their cars and some even had to abandon their cars otherwise they would possibly have drowned. One woman showed cameramen her car in an underground tunnel. Her car had water up to the roof.

In Kobe, heavy rains caused several city workers who were in manholes to be washed away downstream. One man survived escaping death by grasping a handle near another manhole as he was being washed downstream.

Koshien stadium paused high school baseball games going on during the annual high school baseball tournament because of heavy rains and lightning. The games later continued.

People say it is the most lightning they’ve ever seen in the Osaka, Kobe and Kyoto. People on the streets stop and stare into the dark thunderclouds to watch the light displays crackling through the sky in fear and awe.

The Keihan and Hankyu railways have had many delayed trains, something that is unusual in Japanese train systems, because of heavy rain and power outages in Osaka and Kyoto. Train passengers were caught in the storms standing on platforms with no place to go as they waited for the next train. It took me an extra thirty minutes on my train ride home from Nara because of train delays.

Cold and warm air masses have been looming over Japan for the past week causing the turbulent weather, and more heavy rain and thunderstorms are predicted. If you are traveling to Japan, you may want to buy an umbrella when you arrive along with some rainboots.

A river rose in less than a minute in Kobe and washed several children and adults away to their death. So be careful not to be around any rivers or valleys during rainstorms because flash flooding happens in an instant and even the most prepared can be caught offguard.

25 Oct, 2008

Baaad Boys!

Posted by: admin In: programming

I’ve always enjoyed the AMV Hell videos so I decided to make my own very short clip and get some practice lip synching at the same time. I think it turned out okay, but I fear the humor is lost on anyone who isn’t familiar with the manga and anime series, Princess Princess.

24 Oct, 2008

Connect 4

Posted by: admin In: Javascript

The following game is Connect 4 written in entirely javascript:

http://bradmarkle.com/wordpress/skills/javascript/2007.04.19.connect4.html

22 Oct, 2008

Trailer: First Squad

Posted by: admin In: programming

Compania ruso-canadiana de animatie Molot Entertainment, a relansat site-ul anime-ului First Squad, unde s-a postat si un trailer. Anime-ul este o colaborare intre Molot si Studio 4°C, la care lucreaza Yoshiharu Ashino (Mind Game, Tweeny Witches), Hirofumi Nakata (Batman: Gotham Knight) si Eiko Tanaka (The Animatrix, Tekkon Kinkreet).

Protagonistii sunt niste tineri sovietici cu abilitati extraordinare care se opun unui ofiter Schutzstaffel (SS), care incearca sa invie mortii pentru a forma o armata supernaturala de cruciati ai secolului 12. Toate acestea petrecandu-se in primele zile ale celui de-al doilea razboi mondial.

via ANN & Can you Moe?

21 Oct, 2008

Encrypting Sensitive Data with Ruby (on Rails)

Posted by: admin In: Ruby

In Encrypting Sensitive Data with Perl I wrote about how to use public key encryption to automatically and securely encrypt information with Perl. This allows you encryption things like credit card numbers, bank routing information, or that winning PowerBall number in a unattended fashion. Typically, you would use this in a situation where a user needs to enter sensitive information into a form which need to be stored in a secure manner. We can do this with Ruby (on Rails) as well, and it’s even easier.

First we need to generate a key pair. This creates two keys, a public key which will only be used to encrypt data, and a private key, which will only be used to decrypt data. The private key is protected by a password know only to us. When it comes to choosing strong passwords, I suggest using Diceware. 2048 is the key size in bits. Bigger is better, but also slower; 2048 is considered a good trade off between speed and encryption strength. We are also limited by this to encrypting as most 2048 bits, more on this below.


% openssl genrsa -des3 -out private.pem 2048
Generating RSA private key, 2048 bit long modulus
......+++
.+++
e is 65537 (0x10001)
Enter pass phrase for private.pem:
Verifying - Enter pass phrase for private.pem:

Then we extract the public key:


openssl rsa -in private.pem -out public.pem -outform PEM -pubout
Enter pass phrase for private.pem:
writing RSA key

Once we have the keys, we can encrypt data using the following:

#!/usr/bin/env ruby

require 'openssl'
require 'base64'

public_key_file = 'public.pem';
string = 'Hello World!';

public_key =
   OpenSSL::PKey::RSA.new(File.read(public_key_file))
encrypted_string =
   Base64.encode64(public_key.public_encrypt(string))

print encrypted_string, "n"

Simply, public_key_file is path to the file containing the public key, and string is the string to encrypt. We open the public key and then use public_encrypt to encrypt it. Because the encrypted string is binary I have converted to text using Base64. If your are storing the encrypted string in a database that can hold binary data, you could change:

encrypted_string = Base64.encode64(public_key.public_encrypt(string))

to:

encrypted_string = public_key.public_encrypt(string)

Now that we have encrypted data, we’ll want to be able to get it back.

#!/usr/bin/env ruby

require 'openssl'
require 'base64'

private_key_file = 'private.pem';
password = 'boost facile'

encrypted_string = %Q{
qBF3gjF8iKhDh+g+TOvAzBkJA/1d2lD8RUyz2Ol+s1OpLB5aA3RA7EHm0KGL
XaP3upvJ7I5rN1yO9Qat9kyRQu9OMqAUmFvwUaiW/1NPjxnpmcFn9mhkttP9
qfO6iIfyxErUqKIxHYqavyPmivre9eEcXiBdtIK6NJJKG3WmSfIFgpZ6eBWI
wxlZg+x0fI4L2JsODMGx5Khn7CUt0bTkH6HMHwxEG24NbsmrqtC2zn8Hm/87
UyN5ZCDyJ/mtIHAjzPry6vbVPTF0QCR4lZ7uSt/W7JZ0tNgX7eQQwoPCgbqU
/uwRCwww/c407jw7YEE5Lgpx20/jyLXJwvZHxNEcxA==
}

private_key =
  OpenSSL::PKey::RSA.new(File.read(private_key_file),password)

string =
  private_key.private_decrypt(Base64.decode64(encrypted_string))

print string, "n"

Here private_key_file is path to the file containing the private key, password and encrypted_string is the string to decrypt. In a real application you would not want to hard-code the password, rather you should prompt for it in some way.

Again we are using Base64 to make the encrypted string human readable. If this is not necessary, change:

string = private_key.private_decrypt(Base64.decode64(encrypted_string))

to:

string = private_key.private_decrypt(encrypted_string)

As noted above, you can not use this method to encrypt anything larger than the key size minus 11 bytes of overhead (padding). In this case we have a 2048 bit key which gives 256 - 11 = 245 bytes. The temptation is to increase the key size to accommodate more data, but this quickly become to slow to be useful. The correct way to accomplish this is to use public key encryption to encrypt random password, which, in turn is used to encrypt the data using symmetric-key encryption. I’ll cover this next time.

Categories


  • DanoruX: It’s really amazing how popular the mascot for a voice synthesizer can become… Can’t wait for this game! XD
  • AsYLuM-DeMoN: If only I had a PSP. T.T
  • Gman: LOL! Pretty funny stuff, and it really kind of honors the games, more than being just a cheap joke. What Ness and Lucas have to do in the ending of