Archive for October, 2008

h1

Repair Oven オーブンの修理

October 27, 2008

We have GE XL44 (JGBP79) oven range. As my wife turned on the bake, it did not light. She tried and tried it, but it did not. It seems that lighting bulb or something is broken. She went on the Internet and found an article in http://www.fixya.com/support/t130970-ge_xl44_gas_oven of how to fix it. We found an exact same issue so that we decided to buy that part from RepairClinic.com, which was mentioned in the article. It was relatively expensive part, I thought, $64.55. It came to my house, and I started replacing it. It was easy to remove a base pan from the bottom under where there was a lighting part attached on the burner. In order to replace it, I needed to detach the burner from the bottom. It was attached with two screws at the back and one screw at the front. It was easy to unscrew it at the front, but my big problem was the two screws at the back. Two screws are just below the bottom base with about 3 X 1.5 inches window space. There was no way I could use the screw driver. I thought about 30 minutes of how to do and decided to go to Home Depot to buy a tool- a kind of a flexible extension bit. I found it called “Flex A Bit” from www.eazypower.com. I came back and started trying it again. I could remove the one screw at the top out of two but could not the bottom one. I could remove the warming tray at the very bottom and could see the bottom screw from the space where the warming tray was placed. I was very happy to see it because there was no obstacle. Only matter was that it was located at the very back. I could use the “Flex A Bit” again. Replacing the part was easy. The difficult part was to remove the burner. It ended up that I spent about 3 hours in total including my fast lunch. As I read the article, some one wrote that she paid $400 for replacement by a contractor. It seems she paid higher than it should be, but I think if I ask the contractor, at least I would need to pay like $300 for everything. If so, I would save more than $200!

GE XL44の、ガスレンジがある。妻がBakeモードで、オンにしようとしても火がつかない。火をつける所が壊れたようだ。彼女はインターネットで、直し方の記事をin http://www.fixya.com/support/t130970-ge_xl44_gas_ovenで見つける。全く同じ問題だ。早速その記事にのってたRepairClinic.comというところで、パーツを買う。ちょっと高く$64.55もする。それが来ると早速直し始める。オーブンの下側の底の板をとり、そのパーツがバーナーについていることがわかる。それを取り替えるには、バーナーをとらなくては。それは、2つのねじが後ろに、1つが前にある。前のを取るのはかんたんだが、後ろのは、ちょっと難しい。そのねじはちょうど下のパネルのところにあり、7センチX 4センチぐらいの空間があるだけ。ドライバーは使えない。30分くらい考えて、ホームデュポに行くことに。“Flex A Bit”という”くねっ”と曲がってねじが取れるのだ。(www.eazypower.com)それを買ってきて、上のねじはうまく取れたが下のが問題になる。一番下の出来た食べ物を温めておくトレイを取り出すと、したのねじが問題なく見える。”やった“という気分。その新しい道具がまた使えた。パーツを変えるのは簡単。難しいのは、バーナーをとる所。昼ごはんも含めて、3時間ほど。記事の中では、誰かさんは、人に頼んで、$400も払ったそうだ。それは、ちょっと高い気するが、もし頼んだら、やっぱり、$300位するだろう。すくなくとも$200はセーブしたわけだ!

h1

Reinstalling Windows XP XPのリインストール

October 27, 2008

Do you know how to reinstall Windows XP? I had a problem with wireless internet connection and realized that my problem was with Windows XP because the wireless card works within another PC. I used “Repair Windows XP” utility, but it did not fix it. I decided to reinstall Windows XP, but I wanted to install it on the clean hardware. I could find an option to reformat the hard disk, but it did not allow me to do. I got onto the Internet and found how to do. I needed to remove the hard disk to be boot device from the BOIS setup and leave DVD device is the only one that can boot. Finally, it allowed me to reformat the hard disk. After reformatting the hard disk, it was easy to reinstall Windows XP. Finally, the wireless connection works fine. The issue here is that Windows XP cannot clean the configuration. It should have the way to do. As I see Vista, it seems to me that it has the same issue. It is because even if I remove the wireless connections from the GUI and if I create the same name, it says it exists. Microsoft should fix this issue. If the user delete it and GUI does not show it, then it should really delete it; otherwise, it is very confusing as well as giving me a trouble of reinstalling Windows at the worst case like my case.

Windows XPのリインストールのしかたを知ってますか?私は、ワイアレスインターネットコネクションに問題があって、それが、Windows XPのせいと分かる。というのも、そのワイアレスカードはもうひとつのPCで動くからだ。Windows XPの修理という機能をつかったが直らない。XPのリインストールを決心。ハードディスクをきれいにしたいのだが、システムはそれを許してくれない。インターネットにいって、そのやり方を見つける。それは、ハードディスクをブートができるデバイスのBIOSでの登録をのぞかなければいけなかった。残りはDVDデバイスだけ。それでブートすると、うまくハードディスクをリフォーマットすることが出来る。それから、XPのリインストールは簡単。その後、思ったとおり、ワイアレスの問題はなくなる。一番の問題は、XPがちゃんとコンフィギュレーションを消去しないためだ。その方法があるべきだ。ビスタでも同じこと。GUIから、ワイアレスコネクションを消すことが出来るが、同じ名前で作り直すと、その名前が存在するといってくる。これは、どうなってるのか?結局、最悪私みたいに、Windowsのリインストールをしなくてはいけなくなってしまったということだ。

h1

Keep Hens 鶏を飼う

October 18, 2008

Do you keep dogs? Why not hens? Not only hey give you eggs, but also they eat whatever you could not eat, old vegetables, fishes, etc. Simply they transform whatever garbage into golden eggs! It’s magic. If you think they are too big, then consider choose bantam ones. They are about half size of regular ones. Of course, their eggs are smaller, too. I recommend to have two hens so that they each other take care of it.

 

犬を飼ってますか?じゃ、鶏は?鶏は、卵をくれるだけじゃなく、あなたが食べられなかったもの、古い野菜、魚、何でも食べてくれる。ゴミから、おいしい卵に変えるのだ。不思議だ。もし、ちょっと大きすぎると思うのなら、バンタムという小さいのがいい。普通の鶏の半分くらいの大きさ。もちろん卵も小さい。2匹いっしょに飼う事がお勧め。互いに面倒見合うから。

h1

TCPIP programming

October 18, 2008

I needed to work for a TCPIP related development in my project. Besides actual work, I thought to develop HTTP monitor might be a good idea. I used to have a handy HTTP monitor in Eclipse. Now, I can’t find it. I thought I could make it in a couple of days, but it was not. I took five days.

 

I thought receiving data from the port was easy. As I was developing, I learned HTTP has at least 2 ways to attach data. One way is to add “Content-Length” property and send data with that length subsequently. The other way is to specify “Transfer-Encoding” as “chunked”. If “chunked” is specified in the HTTP header, you can send data as many as you like until you send “0” with two CRLFs. (for Windows? Two LFs for Unix?) Therefore, you need repeatedly to read the InputStream until you get that ending signature. They are good things to know.

 

After the program ran good with debugger, I ran it without the debugger. It did not work. To make long story short, it was because my code used a new socket as the client calls the HTTP monitor program. I changed the program to keep using the same socket until client closed it. It finally worked. It took 2.5 days to figure it out. I was almost giving up, but I’m glad to be able to solve it. I can go back to eclipse RCP study!

 

仕事のプロジェクトで、TCPIP関連の開発をしなくてはいけなかった。ちょうど、HTTPモニターを作るのは、いいアイデアじゃないかと思った。34年前まで、エクリプスにハンディなHTTPモニターがあったのだけれど、今ではどっかにいってしまった。23日で出来るかと思ったけど、5日もかかってしまった。

 

ポートからデータを受け取るなんて簡単と思っていた。開発しながら、HTTPには、データの送り方が少なくとも2通りはあることを学ぶ。“Content-Length”を指定する方法と、“Transfer-Encoding”を指定する方法だ。“Transfer-Encoding”で、“chunked”を使うと、好きなだけデータを送ることができる。最後終わりの印としては、“0” と二つのCRLFを送る。だから、この最後の印が来るまで、何回もInputStreamを読む必要がある。こんなことを知ることはいいことだ。

 

デバッガーを使ってプログラムが動くようになる。デバッガーなしで動かすと、動かない。手短に言うと、クライアントのプログラムが、HTTPモニターのプログラムを呼ぶ度に、新しいソケットオブジェクトを使っていた為だった。それを、同じソケットを使うようにすると、動いた。このことに二日と半日かかる。(ため息、、)もうあきらめかけていた。問題が解けてよかった。やっと、EclipseRCPの勉強に戻れる!

h1

Dialup HighSpeed

October 11, 2008

 

As I wrote before, I’m still using dialup connection for the Internet since I’m living in the woods area. I have only two choices: satellite or dialup. I decided to stop using MSN and to use BASIC ISP http://www.basicisp.net/. Their service is much cheaper as well as faster. Especially with HiSpeed option, the speed of dialup becomes 3 to 5 times faster. How does it work? As you serf the web, text, images, and other data are independently compressed at BASIC ISP’s server and decompressed at you browser. If you take a look at the image below, you understand it. I really like it!

前にも書いたとおり、まだ、モデムをつかってインターネットに接続している。というのも、森の中に住んでいるためで、サテライトかモデムかである。MSNをやめて、BASIC ISP http://www.basicisp.net/を使っている。ここは、安くて速い。特にHiSpeedオプションは、3から5倍は速くなる。どうなってるのか?テキスト、イメージ、その他の情報を個々にISP側で圧縮して、ブラウザーで、元に戻している。上にイメージを見ていただければご納得されるはず。すごくいい。           

h1

XStream is XStreamly good XStream は最高

October 11, 2008

 There is an XML Java utility library called XStream http://xstream.codehaus.org/.. This software is pretty good. It’s very handy and easy to use. I have a project where it requires domain objects to generate XML String content. The shortest way, you need only 2 lines of code: instantiate XStream object and call toXML method with the domain object as a parameter. This is too easy, but it works. You might want to alias to change the element name to be simpler than its Java class name with its package name. Even we can combine this functionality with JAXB generated classes. Just subclass the JAXB generated classes and add a method with XStream object to generate XML string content.

 XStreamというXMLJavaライブラリがある。http://xstream.codehaus.org/. このソフトウェアはすごくいい。使いやすい。私のプロジェクトで既存のドメインクラスからXMLを出力しなくてはいけない。これを使うと、たった2行でそれが出来た。XStreamオブジェクトをつくって、toXMLメソッドをドメインオブジェクトと供に、呼ぶだけだ。簡単すぎる、でも、動く。エレメントの名前を簡単にするために、エイリアスをした方がいい。(通常は、クラス名にパッケージ名がつけられる。)このXStreamの機能をJAXBの生成されたクラスにつけくわえることができる。JAXBで生成されたクラスをサブクラスして、XStreamをつかって、XMLを出力するメソッドを付け加えるだけだ。

h1

Spaceship Medic 宇宙船ドクター

October 10, 2008

I read old SF “Spaceship Medic.” It’s a story of a spaceship that travels to the Mars. During the trip, a big meteorite passed through the spaceship and killed most of commanders who control the spaceship. Remaining people try to survive from this condition. It tells very serious, scientific, and realistic story. It tells a lot of importance of human beings. I really recommend you and your kids to read it. Since this book is old, you cannot buy a new one. Visit the Amazon.com: http://www.amazon.com/gp/product/0385011377/sr=1-3/qid=1223608161/ref=olp_product_details?ie=UTF8&me=&qid=1223608161&sr=1-3&seller=

最近古い“宇宙船ドクター”という本を読む。これは、火星に旅行する、宇宙船の話。旅の途中、隕石が、宇宙船の中を突き抜け、大事な宇宙船を制御する人たちを失う。残りの人たちが、この最悪の状態から、生還すると言う話。それは、真剣で、科学的で、本当のようだ。人間としての多くの大事なことを話してくれる。あなたや子供たちに是非とのお勧め。あまりに古いから、新しいのは変えませんが、日本アマゾンでは、、、ないですね。あかね書房、少年少女世界SF文学全集10ハリーハリスン作です。

h1

Dialup Wireless Sharing on Vista

October 4, 2008

Early this week, we got a new laptop, Inspiron 1420 from Dell. It has a Vista. This is the first time I use Vista. I hoped I could configure dialup Internet wireless  sharing easily. I installed Basic ISP’s dialer application, and next step was to configure the wireless sharing. From the “Start” menu button, I found “Network” link, and then I needed to open another dialog box and finally found “Manage Wireless Network” link at the left navigation. It shows a dialog box where I can choose 1) Adding existing wireless network point, 2) Create a wireless network point, and 3) create a ad-hoc network point. I did not know much difference between 2) and 3). I initially selected 2). It was a familiar setup in XP, but there are some terms I did not know related, which are newer security configurations. I selected “WEP” because it is what I use in my home. I secured with a key word. I thought I selected “automatic login this wireless network point”. After all were set, I changed the option in the Basic ISP’s dialer to share the Internet. I connected to the Internet through the dialer. It did not work .Next trial was to use “ad-hoc” network point. In this option, I realized there was not “automatic login”. Anyways, after all were set, I called the dialer. Again, this time it did not work, but I realized that I needed to login to the “ad-hoc” wireless network point. It was to use the 1) selection. I did it. After a while, I found it was working. Good! I let my wife use the Internet for a while. She turned off this new laptop without realizing she was sharing the Internet. I restarted the laptop. Before it GUI comes up, I saw a message was displayed for a short period of time, but it came up good. I was opening to the “Manage Wireless Network” dialog and found that some how the “ad-hoc” wireless network became “unsecured”. It lost the security configuration. It seems without “secured”, wireless does not work. I’m pretty sure that the message was due to this. I created another “ad-hoc” wireless network point. It worked back again. I repeated the turned off and on the laptop if the wireless network worked or not. I did not get that strange message any more, and it always worked.    

 

今週の始めに新しいラップトップ、Inspiron1420(デル)が来る。OSVista. これを使うのは初めて。ダイアルアップのインターネットワイアレスの共用がうまくいけばいいが。まず、BASIC ISPのダイアラーをインストールする。次に、ワイアレスでの共用をセットアップ。スタートメニューから、NetworkというLinkを見つける、そしてもうひとつのダイアログボックスがあき、最後に、確か“Manager Wireless Network”というLink使う。それには、3つのオプションがある。1)存在しているワイアレスコネクションを使う、2)あたらしいワイアレスコネクションを加える。 3)Ad-hocのワイアレスコネクションを加える。2)と3)の違いは言葉では分かるが、機能的にどう違うのかあまり分からない。手元にすぐHelp Linkがないのは、良くない。最初に 2)を選ぶ。XPとよく似たセットアップであった。セキュリティのセットアップで新しい言葉を知る。けれども、新しいのは使わないでいつもの ”WEP”を選択。確か、自動ログイン(コネクション)をセットアップしたと思う。セットアップが終わって、BASIC ISPのダイアラーでInternetに接続。しかしうまく動かなかった。次に3)をする。これには自動ログインはない。インターネットに接続してから、また失敗。でも、今回は、ワイアレスコネクションに接続していないことにきずき、1)をすればいいのだ。うまくいった。妻に少し使わせていると、共用をわすれて、ラップトップを切ってしまった。私がまた立ち上げる時、何か、メッセージが表示される。(ぼやけてて読めなかった。)すぐにそのメッセージは消えて、正常に立ち上がる。しかし、“Manage Wireless Network”のところで、”Ad-hoc”のコンフィギュレーションが変わって、Secureになってない。(多分エラーはこのために起きたに違いない。)また新たに“Ad-hoc”のワイアレスコネクションを作り、何回かラップトップを消したりつけたりして、動作を確認する。一度も変なことは起きなかった。