12.26.2011

Yahoo!メッセンジャー

26 Dec 2011

Using only Ubuntu for nearly a month, I found a problem when I try to use Yahoo! Japan Messenger as I'm going back to Japan Next January.

At first, I tried the web version but, I think, I couldn't type in Japanese because of Flash.
Secondly, I installed it on Wine then got terrible character corruption as a base language is English.
Finally, I tried Empathy and it made it with the following configuration.

 Server : cs2.msg.vip.ogk.yahoo.co.jp
 Port : 80

Ubuntu Onlyになってもうすぐ1ヶ月。年明け日本へ帰る関係でYahoo!メッセンジャーを使いたくなり、ちょっと困る。

まずはWeb版。Flash(?)のせいで入力言語を切り替えられないので断念。
次はWineでメッセンジャーをインストールするも、ベースが英語なせいで化け化け。
最後はEmpathy。

初期設定
 Server : cs.msg.yahoo.co.jp
 Port : 8080 (?)
ではつながらず、
 Server : cs1.msg.vip.ogk.yahoo.co.jp
 Port : 80
でつながるという情報があり、試してみるが変わらず。

何となくcs2.msg.vip.ogk.yahoo.co.jpってあるのかな?っとlookupするとあり、cs2.msg.vip.ogk.yahoo.co.jpに変更したら接続!

グループが全部表示されなかったり万全ではないが、入力周りの不便がないのでOK!!

12.07.2011

Goodbye Carrier IQ

6 Dec 2011

Carrier IQ is the solution by which the wireless industry can obtain customer's experience on wireless devices such as mobile phones. According to their overview, Carrier IQ consists of software in mobile phones to generate logs about customer's experience, massive scalable data processing which collects logs and insightful data analysis. The software is adopted by iOS and Android.

There has been some lawsuits regarding Carrier IQ in the U.S. and two problems seem to lie. One is that we have not been informed about it and the other is the possibility of recording personal information.

Looking into my iPhone (iOS4 and jailbroken), Carrier IQ has been installed and generating logs. But I'm pretty fine with Carrier IQ as if I were informed about it, I wouldn't read the very long agreement. And Apple can easily access and record my personal information.

However, I try to delete it just for fun.

At first, I thought it would be easy to find the way but it was wrong. After I tried for a while, I found it on the site which shows the way to increase speed, battery life and so on.

Using information on the site, I disabled Carrier IQ as described below. Now Carrier IQ stopped to generate logs in my iPhone.

1. Install Ifile using Cydia
2. Delete /System/Library/LaunchDaemons/com.apple.awd_ice2.plist
3. Restart iPhone

最近話題のCarrier IQ。

Carrier IQとは、Carrier IQ社が無線産業向けに提供する、ユーザの利用状況を把握するためのソリューションで、同社のOverviewによると、利用状況をログに出力するソフトウェア、ログを回収するネットワーク、解析&レポート機能の3つから構成される。そしてログを出力するソフトウェアはiOSやAndroidに組み込まれている。

アメリカでは訴訟も起きているが、問題視されているのは

1.ユーザに告知していないこと
2.keyloggingの可能性があること

の大きく2点。自分のiphone(iOS4,jailbroken)を確認すると、当然インストールされているし、ログも出力されている。



※awd_ice2がCarrier IQ

で、
1.については、仮に告知されていても、例の長~い長い規約がもう少し長くなるだけだし、
2.については、OSを提供している側はやろうと思えば何でも出来るしょ!(Android携帯の場合は事情が違う?!)ってことで、別にこのままでも良い思う。が、せっかくなので削除する方法を探してみる。

簡単に見つかると思っていたら、jailbreakしていない人はiOS5にすれば良く(設定でON/OFFできる)、jailbreakしている人も大抵はiOS5にバージョンアップしているのか、中々欲しい情報が見つからない・・・

結局、今回の件でCarrier IQが注目を集める以前からあったサイト(パフォーマンスや電池の持ちを良くする方法を紹介している)にて発見。

そのままそっくりの方法ではないが、CydiaからiFileをインストールし、/System/Library/LaunchDaemons/ 以下にある
com.apple.awd_ice2.plist(Carrier IQの起動設定)を削除して再起動。

新しいlogが出力されなくなったので無効化完了(削除する方法じゃないけど)。

12.04.2011

Getting used to 101

4 Dec 2011

I've been using 106-Key keyboard for over 10 years which is the most common in Japan. It has a nearly same layout with 101-Key keyboard but some keys such as ', @, \, &, are placed differently. Therefore, I need to get used to 101 and tried a practice problem from NZPC, New Zealand Programming Contest.

長年慣れ親しんだ106キーボード、キーの配置は101キーボードのそれとほぼ同じだが、@マークやクォート等、記号の配置が微妙に異なる。半角/全角など、キーを増やすのは分かるが、なぜレイアウトまで変えちゃうのよ?!と小言を言いつつ、NZPC - New Zealand Programming Contestで新しいレイアウトに慣れる。NZPCはIT学科の大学院生が教えてくれたサイトで、その名の通りプログラミングコンテスト。

現在は受付を終了していて、こちらの練習問題、Word Finderに挑戦。

英語の理解にちょっと苦労するが、
1.行列のサイズ
2.行列に配置する単語(順番は、左→右、上→下で行列にぴったり収まる)
3.行列中に存在するか検索する文字列
の3種類のパラメータを標準入力から受け取り、検索文字列の有無、有る場合はその位置(開始・終了)を表示する、という感じ。

で、配列を使って、こんな感じかな?っと何となく取っ掛かりのイメージができた所で、行き当たりばったりのコーディングを開始。書き終えて、ざっと動作確認をして、ソースをきれいにした所で3時間半。もうちょっと(大分)早くできる思ったけど、、、

おかげで新しいキー配置にはかなり慣れることができました。
ソースはこちら。コンテストでは使えないPHPで書いた。

12.03.2011

Ubuntu x ThinkPad x Wheel

3 Dec 2011

After installing Ubuntu10.04 on Thinkpad X61 yesterday, I found wheel didn't work well so I fixed as below.

sotaro@sotaro-laptop:~$ cat bin/sh/thinkpad.sh
xinput set-prop 'TPPS/2 IBM TrackPoint' "Evdev Wheel Emulation" 1
xinput set-prop 'TPPS/2 IBM TrackPoint' "Evdev Wheel Emulation Button" 2
xinput set-prop 'TPPS/2 IBM TrackPoint' "Evdev Wheel Emulation Timeout" 200
sotaro@sotaro-laptop:~$ sh bin/sh/thinkpad.sh 

I also add the script to Startup Applications to avoid running it every time.

sotaro@sotaro-laptop:~$ chmod +x bin/sh/thinkpad.sh
Add the script to System>Preferences>Startup Applications

スクロールが動作しないことに気づいたので、下記の方法で修正。

↑のスクリプトを実行する。
次回以降何もしなくて良いようにスタートアップアプリケーションにも追加する。

12.02.2011

さらばWindows

2 Dec 2011

デュアルブートの道もあったが、そろそろ(?)Windows8が登場するらしいこのご時世に未だXpを使っていたり、ITを学ぶ学生と英語とITをexchangeする中でCの環境があると良かったり、OSいくつもあっても結局どっちか1つしか使わないっしょ、などなど、ちょっとずつ色んな理由があって、そんな塵積な流れから思い切ってUbuntuでWindowsを上書き。

インストール自体はUNetbootinであっさり完了。マシンはThinkPad X61でざっと使った限り、無線LANもマウスポインタ(赤いの)も問題なく動くのでバッチリ。

日本語の入力はIBusに日本語を追加するだけ(Language Supportも?)。ちなみにベースの(ログイン時に選択する)言語は英語。

その他では今のところBrowserの各種設定をexport/importした程度。

使っていく内に色々見つかると思うのでまたその内に続報を。