<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-9189069</id><updated>2025-07-09T22:05:22.467+09:00</updated><category term="Diary"/><category term="Music"/><category term="ANDROID"/><category term="Movie"/><category term="youtube"/><category term="思考実験"/><category term="nexus"/><category term="不思議"/><category term="銭湯"/><category term="訳詞"/><category term="PKC"/><category term="golang"/><category term="土佐弁"/><category term="歳時記"/><category term="Book"/><category term="IT"/><category term="Progressive"/><category term="java"/><category term="Animation"/><category term="Core"/><category term="English"/><category term="Firefox"/><category term="Google"/><category term="Japanese"/><category term="Problem"/><category term="SurfaceView"/><category term="TV"/><category term="Thread"/><category term="Web2.0"/><category term="add-on"/><category term="engineering"/><category term="excel"/><category term="idea"/><category term="囲碁"/><title type='text'>Bamboo Flower</title><subtitle type='html'>子供たちが絵を描くようにプログラムを書いたりDJしたり作曲したりして遊ぶアプリを作ろうとしています。今はAndroidで鋭意製作中。&#xa;(c) Hiroyuki Osaki [since 2000]</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://o-san.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9189069/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://o-san.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/9189069/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/17125830027888092718</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>243</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-9189069.post-3523916912766369778</id><published>2017-07-31T23:04:00.001+09:00</published><updated>2017-07-31T23:13:13.362+09:00</updated><title type='text'>PKCに関する、なんというか懺悔</title><content type='html'>&lt;a href=&quot;http://o-san.blogspot.jp/2007/09/pkc.html&quot;&gt;http://o-san.blogspot.jp/2007/09/pkc.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
実は、上記記事には書いていなかったのですが、最後の解決にはいたらなかったものの、解決の糸口になりそうだったできごとが生活の中に有りました。&lt;br /&gt;
本当は、もっと自分の辛さを伝え続けていればよかった。。。&lt;br /&gt;
最後は解決されたことですが、経緯をここに記します。&lt;br /&gt;
&lt;br /&gt;
【PKCと最終的な顛末は→参照】&lt;a href=&quot;http://o-san.blogspot.jp/2007/09/pkc.html&quot;&gt;http://o-san.blogspot.jp/2007/09/pkc.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
【解決の糸口】&lt;br /&gt;
&lt;br /&gt;
時期：　小学校高学年～中学校低学年&lt;br /&gt;
&lt;br /&gt;
すでに運動会などで必ずPKCの症状が起きたので、両親に遠回しに相談しました。&lt;br /&gt;
両親は、最初はよくわからないという反応でしたが、&lt;br /&gt;
こういうときに父親は頼りになります。&lt;br /&gt;
すぐに病院に連れて行ってくれました。&lt;br /&gt;
&lt;br /&gt;
父はとても運動が得意な人で、足も早く、&lt;br /&gt;
高校では柔道で腕をならしたそうです。&lt;br /&gt;
そんな父は、おそらく自分の息子が運動に関して何か変だということに&lt;br /&gt;
だまっていられなかったのでしょう。&lt;br /&gt;
&lt;br /&gt;
連れて行ってくれたのは、住んでいるところから車で十分ほどのところにある神経内科でした。&lt;br /&gt;
そのときに処方されたのは水色のパッケージに入った大きな錠剤だった記憶があります。&lt;br /&gt;
飲むと若干の症状の緩和がありました。&lt;br /&gt;
ずっと飲んでね、と言われて飲み続け、薬がなくなり、確か２，３回受診した記憶があります。&lt;br /&gt;
両親共働きの自営業の家庭です。父は私を信じていました。「病院に行ってきなさい」&lt;br /&gt;
「病院に行ってきます」そう言って２回目以降自分だけで自転車で山を越えて病院に通ったのでした。&lt;br /&gt;
ただ、このときには医者は正確な病名がわかりませんでした。&lt;br /&gt;
また、薬を飲んで確実に治った実感がありませんでした。&lt;br /&gt;
ここで私はあまりよくない行動に出たという記憶があります。&lt;br /&gt;
&lt;br /&gt;
意味がないからもう病院に行かない。&lt;br /&gt;
&lt;br /&gt;
今ならこういえばよかったと思います。「もう少し効きそうな別の薬はないですか。試してみたいです」と。&lt;br /&gt;
もしくは「もっといい病院はありますか」&lt;br /&gt;
あのときの父親の行動をある意味無にしてしまい、３年ほど経ってやっとそしてあの高校での「テスト答案返却」での発作頻発事件と赤十字病院での「PKC」という最終判決に遭遇します。&lt;br /&gt;
でも、最初の気付きと父の行動からの３年間を、ある意味棒に振ってしまったのは、自分のせいなのだろうと思います。&lt;br /&gt;
父親のくれた最初のチャンスを活かしきれればよかった。。。&lt;br /&gt;
&lt;br /&gt;
勇気がなかったのだと思います。&lt;br /&gt;
&lt;br /&gt;
自分が置かれている、この状況を、&lt;br /&gt;
医者にちゃんと伝えられて、解決してもらえるのか。&lt;br /&gt;
その点に疑いを持っていたわけです。&lt;br /&gt;
もしくはもう一度父を病院に連れていって、一緒に医者に言ってもらえばよかった。。&lt;br /&gt;
「この子はまだ完全に治っていません、違う薬を出してください」そう言ってもらえばよかった。。&lt;br /&gt;
&lt;br /&gt;
正直言うと、今思うと大変瑣末なことなのですが、当時の私の気持ちはこうでした。&lt;br /&gt;
学校が早く終る土曜日や平日の特別な日に自分だけで山を越えて自転車こいで&lt;br /&gt;
病院に行って、効くかもわからない薬をもらうのが、めんどうくさい。&lt;br /&gt;
苦痛だったのです。。。。&lt;br /&gt;
&lt;br /&gt;
でも、そのことだけだった。&lt;br /&gt;
４回目以降か。。。&lt;br /&gt;
もうその病院には行かなくなっていた。。。&lt;br /&gt;
&lt;br /&gt;
２０年も前のことになります。&lt;br /&gt;
今の自分はこういう積み重ねなのかなと思い、メモとして書いています。&lt;br /&gt;
父はきっかけを作ってくれた。そのあとのアピールは、自分自身の責任だった。&lt;br /&gt;
それを放棄した結果、以降の何度かの苦しみがあったと思います。&lt;br /&gt;
&lt;br /&gt;
ぜひ、周りの方の気付きは大事に。&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://o-san.blogspot.com/feeds/3523916912766369778/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://o-san.blogspot.com/2017/07/pkc.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9189069/posts/default/3523916912766369778'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9189069/posts/default/3523916912766369778'/><link rel='alternate' type='text/html' href='http://o-san.blogspot.com/2017/07/pkc.html' title='PKCに関する、なんというか懺悔'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/17125830027888092718</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9189069.post-9120594033070671145</id><published>2015-09-24T22:40:00.003+09:00</published><updated>2015-09-24T22:46:27.661+09:00</updated><title type='text'>ローカルクラスのパス・・・</title><content type='html'>前提環境：Android&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ローカルクラスを作ってClass.forName()でそのクラスを呼び出そうと思いましたがうまくいきませんでした。&lt;br /&gt;
クラスの関係はこのようになっています。&lt;br /&gt;
WordGeneratorはpublic staticの修飾子を持ってはいますが、れっきとしたActorのローカルクラス。&lt;br /&gt;
&lt;pre&gt;Actor
└WordGenerator (Local class with &quot;public static&quot; modifier)
&lt;/pre&gt;
&lt;br /&gt;
最初に試したコードは下記です。
&lt;br /&gt;
&lt;pre&gt;            getBlueprintManager()
                    .add((Class)Class.forName(&quot;org.tapchain.core.Actor.WordGenerator&quot;), &quot;A&quot;, false)
&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
java.lang.ClassNotFoundExceptionが出てきてうまくいきません。&lt;br /&gt;
&lt;br /&gt;
でもこんなページがありました。&lt;br /&gt;
同じやん？&lt;br /&gt;
&lt;a href=&quot;http://stackoverflow.com/questions/18291080/class-forname-android-noclassdeffounderror-classnotfoundexception&quot;&gt;http://stackoverflow.com/questions/18291080/class-forname-android-noclassdeffounderror-classnotfoundexception&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
もしかして・・・&lt;br /&gt;
&lt;br /&gt;
そして、うまくいったあコードは下記です。&lt;br /&gt;
&lt;pre&gt;            getBlueprintManager()
                    .add((Class)Class.forName(&quot;org.tapchain.core.Actor$WordGenerator&quot;), &quot;A&quot;, false)
&lt;/pre&gt;
&lt;pre&gt;&lt;/pre&gt;
&quot;$&quot;で表すのですね。勉強になりました。</content><link rel='replies' type='application/atom+xml' href='http://o-san.blogspot.com/feeds/9120594033070671145/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://o-san.blogspot.com/2015/09/blog-post.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9189069/posts/default/9120594033070671145'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9189069/posts/default/9120594033070671145'/><link rel='alternate' type='text/html' href='http://o-san.blogspot.com/2015/09/blog-post.html' title='ローカルクラスのパス・・・'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/17125830027888092718</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9189069.post-7206874148736408836</id><published>2015-01-04T01:37:00.003+09:00</published><updated>2015-01-04T01:57:12.352+09:00</updated><title type='text'>Ubuntu で usbのautosuspend を解除</title><content type='html'>[経緯] 最近USB3.0直結のUSBメモリ(64GB)を買ったので、UbuntuのメインHDD化してみた。&lt;br /&gt;
ところが、ノートPCの電源動作を電池に切り替えたあとに、USBメモリのreadが失敗するエラーがでていた。&lt;br /&gt;
&lt;br /&gt;
[問題]Linuxの電源切り替え時に、USBが再認識されていない（USBのデバイスへのIOが失敗する）&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[解決]&lt;br /&gt;
Linuxでは、USB は電源の切り替えやサスペンドでAutosuspend(自動停止)するらしい。&lt;br /&gt;
一部ハードウェアはこの復帰動作が失敗するので、自動停止を解除しておく必要がある。&lt;br /&gt;
今回のusbメモリもこの例にもれなかったということになる。&lt;br /&gt;
このためusbcoreというモジュールのパラメータであるautosuspendを-1に変更すべきである。&lt;br /&gt;
しかし、Ubuntuは少し変であり、/etc/modprobe.dの直下を変更しても反映されない。&lt;br /&gt;
そこで、/etc/default/grubに一部変更を加えることで、このモジュールパラメータが自動的に変更されるようにできる。 &lt;br /&gt;
&amp;nbsp;&lt;a href=&quot;http://unix.stackexchange.com/questions/91027/how-to-disable-usb-autosuspend-on-kernel-3-7-10-or-above&quot;&gt;http://unix.stackexchange.com/questions/91027/how-to-disable-usb-autosuspend-on-kernel-3-7-10-or-above &lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
[*蛇足]&lt;br /&gt;
&amp;nbsp;USBメモリをメインHDD化して下記を実現したかった。&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Ubuntu+Android Studio開発環境を手軽に2つのPC間で持ち運びたい（しかもファイルサーバは使わない）&lt;/li&gt;
&lt;li&gt;そしてホームディレクトリ等も含めてまるごと持ち運びたい&lt;/li&gt;
&lt;/ul&gt;
上記環境は構築できたが、たびたびreadが失敗し、OSがクラッシュしており、使い物にならず困っていたのである。</content><link rel='replies' type='application/atom+xml' href='http://o-san.blogspot.com/feeds/7206874148736408836/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://o-san.blogspot.com/2015/01/ubuntu-usbautosuspend.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9189069/posts/default/7206874148736408836'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9189069/posts/default/7206874148736408836'/><link rel='alternate' type='text/html' href='http://o-san.blogspot.com/2015/01/ubuntu-usbautosuspend.html' title='Ubuntu で usbのautosuspend を解除'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/17125830027888092718</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9189069.post-7250964470862799714</id><published>2015-01-02T23:45:00.001+09:00</published><updated>2015-01-04T01:58:04.486+09:00</updated><title type='text'>[Android] Eclipse から Android Studio に移行</title><content type='html'>Android StudioがAndroidの正式な開発環境に指定された。&lt;br /&gt;
それを受けて、従来のEclipseの環境からAndroid Studioに移行したので備忘録。&lt;br /&gt;
&lt;br /&gt;
環境：Ubuntu 14.10 amd64&lt;br /&gt;
&lt;br /&gt;
＜Eclipse から Android Studioへの移行時の注意点＞&lt;br /&gt;
公式サイトの通りにやれば難なくプロジェクトを移行することはできたが、自動作成されたbuild.gradleを少し改変する必要がある。&lt;br /&gt;
[公式サイト] &lt;a href=&quot;https://developer.android.com/sdk/installing/migrate.html&quot;&gt;https://developer.android.com/sdk/installing/migrate.html&lt;/a&gt;&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;Android Studioインストール時には最新版のSDKをフェッチする。これと、Eclipseから移行した設定が違うので、buildSdkVersionが古くておかしい旨のエラーが出る。Tools-&amp;gt;Android-&amp;gt;SDK Managerを選択し、実際にインストールされているSDKバージョンを確認する。その番号(&quot;21.1.2&quot;など)をbuild.gradleのbuildSdkVersionに記入。&lt;/li&gt;
&lt;li&gt;&amp;nbsp;ライブラリへの参照（support-v4など）がなくなってしまう。下記を参照にbuild.gradleを更新する。&lt;br /&gt;&lt;a href=&quot;http://qiita.com/sugoi_wada/items/fc5f624d1d9da3136dd7&quot;&gt;http://qiita.com/sugoi_wada/items/fc5f624d1d9da3136dd7&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;aaptというファイルがない、というエラーが出る。&lt;br /&gt;&lt;blockquote class=&quot;tr_bq&quot;&gt;
Cannot run program &quot;xxxx/android-studio/sdk/build-tools/android- x/aapt&quot;: error=2, No such file or directory&lt;/blockquote&gt;
これは下記サイトによると64bit環境で32bitバイナリを起動できないからだということ。サイトに記載の通り、32bitライブラリをインストールして解決。 &lt;br /&gt;&lt;a href=&quot;http://qiita.com/twittarsan/items/3fa0e595d8bb2bf22b1d&quot;&gt;http://qiita.com/twittarsan/items/3fa0e595d8bb2bf22b1d &lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://o-san.blogspot.com/feeds/7250964470862799714/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://o-san.blogspot.com/2015/01/android-eclipse-android-studio.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9189069/posts/default/7250964470862799714'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9189069/posts/default/7250964470862799714'/><link rel='alternate' type='text/html' href='http://o-san.blogspot.com/2015/01/android-eclipse-android-studio.html' title='[Android] Eclipse から Android Studio に移行'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/17125830027888092718</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9189069.post-32126839376225620</id><published>2012-09-08T16:57:00.002+09:00</published><updated>2012-09-27T00:18:03.067+09:00</updated><title type='text'>Nexus 7をUbuntuにADB接続</title><content type='html'>Nexus 7を個人輸入いたしましたので、早速開発機のUbuntu12.04にADB接続して、開発したアプリなどをデバッグできるように設定したいと思います。&lt;br /&gt;
&lt;br /&gt;
【やること】&lt;br /&gt;
１．Ubuntu12.04側の設定&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;1.1まずは念の為にSDKを最新バージョンにアップデートします。&lt;/b&gt;&lt;br /&gt;
1.2次に、下記公式ページに有ります通り、&lt;b&gt;Nexus 7をudevに認識させる設定をします。&lt;/b&gt;&lt;br /&gt;
　具体的には/etc/udev/rules.dの中に、nexus 7用の設定ファイルを用意して、&lt;br /&gt;
　「ベンダー名」などを記載します。&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;android@ubuntu:~$ cd /etc/udev/rules.d/

android@ubuntu:/etc/udev/rules.d$ sudo vi 52-android.rules&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
　ここで、52-android.rulesに下記を記載します。&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;strike&gt;SUBSYSTEM==&quot;usb&quot;, ATTR{idVendor}==&quot;0b05&quot;, MODE=&quot;0666&quot;, GROUP=&quot;plugdev&quot;&lt;/strike&gt;&lt;/blockquote&gt;
&lt;/blockquote&gt;
[2012/9/26修正]&lt;br /&gt;
SUBSYSTEM==&quot;usb&quot;, ATTR{idVendor}==&quot;18d1&quot;, ATTR{idProduct}=&quot;4e42&quot;, MODE=&quot;0666&quot;, GROUP=&quot;plugdev&quot;, OWNER=&quot;自分のユーザー名&quot;&lt;br /&gt;
ここのidVendorの値はmtp-detectを実行すると表示されます。&lt;br /&gt;
&lt;br /&gt;
そしたら、設定ファイルのアクセス権限を変更します。&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;android@ubuntu:/etc/udev/rules.d$ sudo chmod a+r 52-android.rules&lt;/pre&gt;
&lt;pre&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;div style=&quot;font-family: &#39;Takao Pゴシック&#39;; white-space: normal;&quot;&gt;
　最後に、udevを再起動して、nexus 7が接続できる状態にします。&lt;/div&gt;
&lt;pre&gt;&lt;/pre&gt;
android@ubuntu:/etc/udev/rules.d$ sudo /etc/init.d/udev restart

Rather than invoking init scripts through /etc/init.d, use the service(8)

utility, e.g. service udev restart



Since the script you are attempting to invoke has been converted to an

Upstart job, you may also use the stop(8) and then start(8) utilities,

e.g. stop udev ; start udev. The restart(8) utility is also available.

udev stop/waiting

udev start/running, process 7954

&lt;/pre&gt;
&lt;div&gt;
&lt;br /&gt;
　念の為にADBも再起動しておいてもいいです。&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;sudo android-sdk-linux/platform-tools/adb kill-server&lt;br /&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp;sudo android-sdk-linux/platform-tools/adb start-server&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
2.Nexus 7側の設定&lt;br /&gt;
　簡単です。設定→開発者用オプション→USBデバッギングのチェックボックスをOnにします。&lt;br /&gt;
&lt;br /&gt;
3.Nexus 7をUbuntu12.04にUSBで接続します。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
結果→&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjAtxw-godNi6fJC9irfqJF4VVjs1iAlhmKJbgz8yAQ3YYx9iC14f5Fr3pWP6D34h_CEgJT9FVvbx1i9wKEDrs7FL5arXxf8EjZweWq24aVdXTnAZvFom1zvF0ReL1Djs3YCjEo/s1600/Screenshot_from_2012-09-08+16:42:29.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;202&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjAtxw-godNi6fJC9irfqJF4VVjs1iAlhmKJbgz8yAQ3YYx9iC14f5Fr3pWP6D34h_CEgJT9FVvbx1i9wKEDrs7FL5arXxf8EjZweWq24aVdXTnAZvFom1zvF0ReL1Djs3YCjEo/s320/Screenshot_from_2012-09-08+16:42:29.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
以上&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://o-san.blogspot.com/feeds/32126839376225620/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://o-san.blogspot.com/2012/09/nexus-7ubuntuadb.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9189069/posts/default/32126839376225620'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9189069/posts/default/32126839376225620'/><link rel='alternate' type='text/html' href='http://o-san.blogspot.com/2012/09/nexus-7ubuntuadb.html' title='Nexus 7をUbuntuにADB接続'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/17125830027888092718</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjAtxw-godNi6fJC9irfqJF4VVjs1iAlhmKJbgz8yAQ3YYx9iC14f5Fr3pWP6D34h_CEgJT9FVvbx1i9wKEDrs7FL5arXxf8EjZweWq24aVdXTnAZvFom1zvF0ReL1Djs3YCjEo/s72-c/Screenshot_from_2012-09-08+16:42:29.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9189069.post-6842014949240691782</id><published>2012-09-02T15:08:00.003+09:00</published><updated>2012-09-02T15:13:43.054+09:00</updated><title type='text'>Ubuntuでbrotherプリンタのネットワーク接続</title><content type='html'>&lt;div&gt;
brotherでは、デフォルトでWindowsとMac用のドライバを公開しています。&lt;/div&gt;
&lt;div&gt;
それだけでなく、一部プリンタについてはLPRドライバ＋CUPS設定ツールを提供しています。&lt;/div&gt;
&lt;div&gt;
太っ腹です。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
我が家ではbrotherのDCP-J925Nを購入し無線ネットワーク接続して利用しています。&lt;/div&gt;
&lt;div&gt;
ちょうどいいことにbrotherはDCP-J925N用のドライバ（deb/rpmパッケージ）を公開しています。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
今回はこれをインストールすることにしてみます。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
1.下記公式ページで、自分の機種がLinux対応であることを確認します。&lt;/div&gt;
&lt;div&gt;
&lt;a href=&quot;http://solutions.brother.co.jp/support/os/linux/lpr_printer/driver.html&quot;&gt;http://solutions.brother.co.jp/support/os/linux/lpr_printer/driver.html&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
ここからのやり方はA,B,Cの３つです。&lt;/div&gt;
&lt;div&gt;
2A.LPRドライバインストール(deb/rpm)&lt;/div&gt;
&lt;div&gt;
&amp;nbsp;Ubuntu12.04でdebファイルをダウンロードしてダブルクリックすると、&lt;/div&gt;
&lt;div&gt;
Ubuntuソフトウェアセンターが現れて「インストール」が選択できますが、&lt;/div&gt;
&lt;div&gt;
これだと「品質が悪いです」とアラートが出た挙句、最後はインストールが失敗します。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
2B.CUPSドライバインストール&lt;/div&gt;
&lt;div&gt;
試してません。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
2C.インストール簡易ツールを使用する&lt;/div&gt;
&lt;div&gt;
→成功しました。以下に詳細説明します。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
2.Linuxドライバインストールツールをダウンロードします。&lt;/div&gt;
&lt;div&gt;
下記のページの「ダウンロード」をクリックします。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;a href=&quot;http://solutions.brother.co.jp/support/os/linux/cups_printer/install_10.html&quot;&gt;http://solutions.brother.co.jp/support/os/linux/cups_printer/install_10.html&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
ページの説明通りにsu、gunzipします。&lt;/div&gt;
&lt;div&gt;
#sudo su(もしくはsu)&lt;/div&gt;
&lt;div&gt;
#gunzip linux-****.gz&amp;lt;ダウンロードしたファイル名&amp;gt;&lt;/div&gt;
&lt;div&gt;
#./linux-****&amp;lt;展開されたファイル名&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
ツールが起動し、ドライバインストールしますか？&lt;y&gt;など質問に基本的にYで答えます。&lt;/y&gt;&lt;/div&gt;
&lt;div&gt;
最後にDevices URIを指定しますか？と聞かれるので、Yを押します。&lt;/div&gt;
&lt;div&gt;
ここから環境に依存する選択肢になっています。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
私の環境では、予め無線LANに接続したDCP-J925Nが複数に見えました。&lt;/div&gt;
&lt;div&gt;
&lt;ul&gt;
&lt;li&gt;A.dnssd://&lt;span style=&quot;background-color: white; font-family: &#39;lucida grande&#39;, geneva, helvetica, arial, sans-serif;&quot;&gt;Brother%20DCP-J925N._ipp._tcp.local/&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: white; font-family: &#39;lucida grande&#39;, geneva, helvetica, arial, sans-serif;&quot;&gt;B.dnssd://Brother**&amp;lt;その他&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: white; font-family: &#39;lucida grande&#39;, geneva, helvetica, arial, sans-serif;&quot;&gt;C.lpr://&amp;lt;プリンタのホスト名&amp;gt;/****&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;lucida grande&#39;, geneva, helvetica, arial, sans-serif;&quot;&gt;結論から言うとA.&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: &#39;lucida grande&#39;, geneva, helvetica, arial, sans-serif;&quot;&gt;が正しいようです。&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
私は最初C.を選択し設定が完了したのですが、テストプリントをしました、といったあとプリンタがなんの反応もありません。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
しょうが無いので、最初のページに書いてあるCUPSの設定手順を実行しました。&lt;/div&gt;
&lt;div&gt;
ブラウザにてhttp://localhost:631/adminにアクセスします。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
（CUPSというプリンタ管理ツールのweb画面が見られます。&lt;/div&gt;
&lt;div&gt;
もともとCUPSが動いている環境なら問題なく見れます。&lt;/div&gt;
&lt;div&gt;
また、CUPSなんか使ったことがない環境でも、じつは先程実行した./linux-***コマンドの中で&lt;/div&gt;
&lt;div&gt;
CUPSサービスを再起動する、必要なパッケージがなければインストールする、というところまでやってくれています）&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWkgseoA6uDIn9HPwcJhboRULS_2k-33l-K6HRNwuY0GUXoRI-0mNAhWy-RYf0F8XCcKhN9-WDVZVdrRa_cB3p7FSON1YWAyIE3pF8GQ3AI8SuZdXf36ssV321-keZ9AabKDXr/s1600/Screenshot_from_2012-09-02+15:02:40.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;292&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWkgseoA6uDIn9HPwcJhboRULS_2k-33l-K6HRNwuY0GUXoRI-0mNAhWy-RYf0F8XCcKhN9-WDVZVdrRa_cB3p7FSON1YWAyIE3pF8GQ3AI8SuZdXf36ssV321-keZ9AabKDXr/s320/Screenshot_from_2012-09-02+15:02:40.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
画面の「プリンターの追加」を選択します。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitqMJryyJ_0e3ILkx6vUBESGgejLVTexYrq2IlA94meZ2VHEXA0izKPzWTzs1z4Rq9p_x6RHeAnjUYwPnVqHB_BRS-5Ss1vCiIf6DQ1o7TJbGeABv7RydXmKIUpTM8__IBCh9I/s1600/Screenshot_from_2012-09-02+15:03:21.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;292&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitqMJryyJ_0e3ILkx6vUBESGgejLVTexYrq2IlA94meZ2VHEXA0izKPzWTzs1z4Rq9p_x6RHeAnjUYwPnVqHB_BRS-5Ss1vCiIf6DQ1o7TJbGeABv7RydXmKIUpTM8__IBCh9I/s320/Screenshot_from_2012-09-02+15:03:21.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
ネットワークプリンタとしてBrother＊＊＊が見えていれば、その3つめを選択します。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEnmy-Kk9aSg3nkhFTOSbVg1UVt97ljJCBKvVHEZjaX2n1Z3Q0AKafKNvYm7FaIZhOCyEfX8jx1rJ_1m97SRsCalnAljlEDsh4tW2O0sD9cDv9FT0IbcTT4tuzumcZrXeivewQ/s1600/Screenshot_from_2012-09-02+15:13:22.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;292&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEnmy-Kk9aSg3nkhFTOSbVg1UVt97ljJCBKvVHEZjaX2n1Z3Q0AKafKNvYm7FaIZhOCyEfX8jx1rJ_1m97SRsCalnAljlEDsh4tW2O0sD9cDv9FT0IbcTT4tuzumcZrXeivewQ/s320/Screenshot_from_2012-09-02+15:13:22.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
次の画面で正解がわかるわけです。「接続」の欄に&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;lucida grande&#39;, geneva, helvetica, arial, sans-serif;&quot;&gt;dnssd://Brother%20DCP-J925N._ipp._tcp.local/&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;lucida grande&#39;, geneva, helvetica, arial, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;lucida grande&#39;, geneva, helvetica, arial, sans-serif;&quot;&gt;と書いて有ります。最初からこいつを選択すればよかったわけです。&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;lucida grande&#39;, geneva, helvetica, arial, sans-serif;&quot;&gt;まあ今となってはCUPSで設定をやりきっちゃったほうが早いので「続ける」を選択します。&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;lucida grande&#39;, geneva, helvetica, arial, sans-serif;&quot;&gt;プリンタのデフォルト印刷設定などを終えると、プリンタ登録完了です。&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: lucida grande, geneva, helvetica, arial, sans-serif;&quot;&gt;管理画面に戻って「プリンタの管理」の一覧にプリンタが表示されていれば、そこから&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: lucida grande, geneva, helvetica, arial, sans-serif;&quot;&gt;テストプリントなども実行できます。&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcqoE_0KWTsHv8J8Uh107ZdYOxAO1zs5H6emihjbM9k5jZL1TzTaHAY3XhAsfhWyL4IP3HfXleu25O2DOekAps__1WjDgHwOLvanj3lMK6mkYz3vE7U6GhuC0g_1xljeb2Z0SB/s1600/Screenshot_from_2012-09-02+15:10:43.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;292&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcqoE_0KWTsHv8J8Uh107ZdYOxAO1zs5H6emihjbM9k5jZL1TzTaHAY3XhAsfhWyL4IP3HfXleu25O2DOekAps__1WjDgHwOLvanj3lMK6mkYz3vE7U6GhuC0g_1xljeb2Z0SB/s320/Screenshot_from_2012-09-02+15:10:43.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://o-san.blogspot.com/feeds/6842014949240691782/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://o-san.blogspot.com/2012/09/ubuntubrother.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9189069/posts/default/6842014949240691782'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9189069/posts/default/6842014949240691782'/><link rel='alternate' type='text/html' href='http://o-san.blogspot.com/2012/09/ubuntubrother.html' title='Ubuntuでbrotherプリンタのネットワーク接続'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/17125830027888092718</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWkgseoA6uDIn9HPwcJhboRULS_2k-33l-K6HRNwuY0GUXoRI-0mNAhWy-RYf0F8XCcKhN9-WDVZVdrRa_cB3p7FSON1YWAyIE3pF8GQ3AI8SuZdXf36ssV321-keZ9AabKDXr/s72-c/Screenshot_from_2012-09-02+15:02:40.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9189069.post-7172577183933248056</id><published>2012-07-19T23:56:00.002+09:00</published><updated>2012-07-20T00:13:08.746+09:00</updated><title type='text'>vmware playerをubuntuにインストール</title><content type='html'>[Problem] cannot compile vmnet(virtual network), then failed to boot vmware player&lt;br /&gt;
vmware player 64bit版をダウンロードしてubuntu 12.04にインストールいたしました。&lt;br /&gt;
インストール自体は下記スナップショットのように問題なく実施出来ました。&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxBO-y7NbB8dtRa1s4CO7jnQy1S5QDn9NeO3PbOrvbypuMJ6KAZBXbsCEuSZK8y_qX-EcEn__6aT_utj0RXtiuIqxvPS7AF1NVwnu5DTAcQK65iyOD_lQsSASZ_6Xml_RopXte/s1600/Screenshot_from_2012-07-19+23:24:58.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;253&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxBO-y7NbB8dtRa1s4CO7jnQy1S5QDn9NeO3PbOrvbypuMJ6KAZBXbsCEuSZK8y_qX-EcEn__6aT_utj0RXtiuIqxvPS7AF1NVwnu5DTAcQK65iyOD_lQsSASZ_6Xml_RopXte/s320/Screenshot_from_2012-07-19+23:24:58.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
それではvmware playerを起動してみます。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
「初回は必要コンポーネントのコンパイルを実施します。」というダイアログが出てきて、&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
パスワードを求められました。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
パスワードを入力しまして、下記の通りコンパイルが実施されているのですが、&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
一部失敗しています。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
最後にエラーと出てきて、/tmp/vmware-root/***.logを見てください、と指示が出ます。&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitIqnnG3fG5tjT6GyPJp71kyVD02BauOcGUNro7QAmo4U6OCKeD9U5CCJO18QN4SNlBU0rN4YSvQc7_ctzY0W6969m-higQEMbHWV9kNv5P6M1tjjkht6UYh-n99T1M9sWRGyE/s1600/Screenshot_from_2012-07-19+23:28:24.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;263&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitIqnnG3fG5tjT6GyPJp71kyVD02BauOcGUNro7QAmo4U6OCKeD9U5CCJO18QN4SNlBU0rN4YSvQc7_ctzY0W6969m-higQEMbHWV9kNv5P6M1tjjkht6UYh-n99T1M9sWRGyE/s320/Screenshot_from_2012-07-19+23:28:24.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
logファイルには下記の通り書いて有ります。&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
2012-07-19T23:34:16.062+09:00| vthread-3| I120: Building module with command: /usr/bin/make -j -C /tmp/vmware-root/modules/vmnet-only auto-build SUPPORT_SMP=1 HEADER_DIR=/lib/modules/3.2.0-26-generic/build/include CC=/usr/bin/gcc GREP=/usr/bin/make IS_GCC_3=no VMCCVER=4.6&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
2012-07-19T23:34:24.790+09:00| vthread-3| I120: Failed to compile module vmnet!&lt;/blockquote&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/blockquote&gt;
では下記が解決編です。&lt;br /&gt;
[Resolved] Patch vmware modules to fix bug.&lt;br /&gt;
エラーメッセージをgoogle先生にぶちこむと最初に出てきたのがvm communityの掲示板です。&lt;br /&gt;
&lt;a href=&quot;http://communities.vmware.com/thread/400790&quot;&gt;http://communities.vmware.com/thread/400790&lt;/a&gt;&lt;br /&gt;
これは本当にためになります。&lt;br /&gt;
パッチを当てろと書いてありました。&lt;br /&gt;
ではそのとおりにします。&lt;br /&gt;
&lt;br /&gt;
1.パッチファイルのtarファイルをダウンロードしてきます。&lt;br /&gt;
&lt;a href=&quot;http://weltall.heliohost.org/wordpress/wp-content/uploads/2012/01/vmware802fixlinux320.tar.gz&quot;&gt;http://weltall.heliohost.org/wordpress/wp-content/uploads/2012/01/vmware802fixlinux320.tar.gz&lt;/a&gt;&lt;br /&gt;
2.tarを展開します。ダブルクリックすればいいでしょう。&lt;br /&gt;
3.展開したファイルの中に、拡張子が.patchのファイルがあります。これを編集します。&lt;br /&gt;
&amp;nbsp; ３行目のこの記述をvmwareのバージョン番号に変更します。&lt;br /&gt;
&lt;code style=&quot;background-color: white; border: 0px; color: #333333; font-size: 1.2em; margin: 0px; outline: 0px; padding: 0px; text-align: left;&quot;&gt;plreqver=4.0.2&lt;/code&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px; text-align: left;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 12px;&quot;&gt;→plreqver = 4.0.4&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
4.最後にこの.patchファイルを起動します。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
user@ubuntu:~/ダウンロード$ sudo ./patch-modules_3.2.0.sh&lt;br /&gt;
patching file vmnet-only/filter.c&lt;br /&gt;
patching file vmnet-only/netif.c&lt;br /&gt;
patching file vmnet-only/userif.c&lt;br /&gt;
Stopping VMware services:&lt;br /&gt;
&amp;nbsp; &amp;nbsp;VMware Authentication Daemon &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;done&lt;br /&gt;
&amp;nbsp; &amp;nbsp;VM communication interface socket family &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;done&lt;br /&gt;
&amp;nbsp; &amp;nbsp;Virtual machine communication interface &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; done&lt;br /&gt;
&amp;nbsp; &amp;nbsp;Virtual machine monitor &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; done&lt;br /&gt;
&amp;nbsp; &amp;nbsp;Blocking file system &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;done&lt;br /&gt;
（中略）&lt;br /&gt;
&lt;br /&gt;
Using 2.6.x kernel build system.&lt;br /&gt;
make: ディレクトリ `/tmp/vmware-root/modules/vmnet-only&#39; に入ります&lt;br /&gt;
make -C /lib/modules/3.2.0-26-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;nbsp;&amp;nbsp;MODULEBUILDDIR= modules&lt;br /&gt;
make[1]: ディレクトリ `/usr/src/linux-headers-3.2.0-26-generic&#39; に入ります&lt;br /&gt;
&amp;nbsp; CC [M] &amp;nbsp;/tmp/vmware-root/modules/vmnet-only/driver.o&lt;br /&gt;
&amp;nbsp; CC [M] &amp;nbsp;/tmp/vmware-root/modules/vmnet-only/hub.o&lt;br /&gt;
&amp;nbsp; CC [M] &amp;nbsp;/tmp/vmware-root/modules/vmnet-only/userif.o&lt;br /&gt;
&amp;nbsp; CC [M] &amp;nbsp;/tmp/vmware-root/modules/vmnet-only/netif.o&lt;br /&gt;
&amp;nbsp; CC [M] &amp;nbsp;/tmp/vmware-root/modules/vmnet-only/bridge.o&lt;br /&gt;
&amp;nbsp; CC [M] &amp;nbsp;/tmp/vmware-root/modules/vmnet-only/filter.o&lt;br /&gt;
&amp;nbsp; CC [M] &amp;nbsp;/tmp/vmware-root/modules/vmnet-only/procfs.o&lt;br /&gt;
&amp;nbsp; CC [M] &amp;nbsp;/tmp/vmware-root/modules/vmnet-only/smac_compat.o&lt;br /&gt;
&amp;nbsp; CC [M] &amp;nbsp;/tmp/vmware-root/modules/vmnet-only/smac.o&lt;br /&gt;
&amp;nbsp; CC [M] &amp;nbsp;/tmp/vmware-root/modules/vmnet-only/vnetEvent.o&lt;br /&gt;
&amp;nbsp; CC [M] &amp;nbsp;/tmp/vmware-root/modules/vmnet-only/vnetUserListener.o&lt;br /&gt;
&amp;nbsp; LD [M] &amp;nbsp;/tmp/vmware-root/modules/vmnet-only/vmnet.o&lt;br /&gt;
&amp;nbsp; Building modules, stage 2.&lt;br /&gt;
&amp;nbsp; MODPOST 1 modules&lt;br /&gt;
&amp;nbsp; CC &amp;nbsp; &amp;nbsp; &amp;nbsp;/tmp/vmware-root/modules/vmnet-only/vmnet.mod.o&lt;br /&gt;
&amp;nbsp; LD [M] &amp;nbsp;/tmp/vmware-root/modules/vmnet-only/vmnet.ko&lt;br /&gt;
make[1]: ディレクトリ `/usr/src/linux-headers-3.2.0-26-generic&#39; から出ます&lt;br /&gt;
make -C $PWD SRCROOT=$PWD/. \&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;nbsp;&amp;nbsp;MODULEBUILDDIR= postbuild&lt;br /&gt;
make[1]: ディレクトリ `/tmp/vmware-root/modules/vmnet-only&#39; に入ります&lt;br /&gt;
make[1]: `postbuild&#39; は更新済みです&lt;br /&gt;
make[1]: ディレクトリ `/tmp/vmware-root/modules/vmnet-only&#39; から出ます&lt;br /&gt;
cp -f vmnet.ko ./../vmnet.o&lt;br /&gt;
make: ディレクトリ `/tmp/vmware-root/modules/vmnet-only&#39; から出ます&lt;br /&gt;
Built vmnet module&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;br /&gt;
さてインストール出来ましたので、&lt;br /&gt;
vmware playerを起動しましょう。&lt;br /&gt;
うまく行きました。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiId45Km6F7lwSODGJcQwtHDDZsFDtzoBZwinHpRWUD3ig9otqogY8bsz55TYMrHF6elJLhbYM1cKlTsQ8H0Fu317o3YFTBGnVWFsfFHKpkLnttmVeIAMDXRppFJyul2xKYBKCj/s1600/Screenshot_from_2012-07-19+23:55:03.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;213&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiId45Km6F7lwSODGJcQwtHDDZsFDtzoBZwinHpRWUD3ig9otqogY8bsz55TYMrHF6elJLhbYM1cKlTsQ8H0Fu317o3YFTBGnVWFsfFHKpkLnttmVeIAMDXRppFJyul2xKYBKCj/s320/Screenshot_from_2012-07-19+23:55:03.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4ggKXw5Ew-3rG57MjrC4E1yBk789MNnIuMQhAH8uLqqIxpo6TIlQfu4P5_34-xa1AUo_pbwnY2AHhk_TGln8-qdBaL-3XxNY2cb5A_fDSaCLX3fo9lusd_cKhEswE7jXbd4Wl/s1600/Screenshot_from_2012-07-19+23:55:12.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;281&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4ggKXw5Ew-3rG57MjrC4E1yBk789MNnIuMQhAH8uLqqIxpo6TIlQfu4P5_34-xa1AUo_pbwnY2AHhk_TGln8-qdBaL-3XxNY2cb5A_fDSaCLX3fo9lusd_cKhEswE7jXbd4Wl/s320/Screenshot_from_2012-07-19+23:55:12.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
2012/7/19追記：&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
VMを起動しようとするとCould not open /dev/vmmonが出ます。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
これを回避するには、vmwareサービスを起動しなくてはなりません。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
下記コマンドを実行します。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
sudo /etc/init.d/vmware start&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
下記が参考になります。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;http://wiki.livedoor.jp/matenrow/d/VMware%20Player%A4%F2%A5%A4%A5%F3%A5%B9%A5%C8%A1%BC%A5%EB%A4%B9%A4%EB&quot;&gt;http://wiki.livedoor.jp/matenrow/d/VMware%20Player%A4%F2%A5%A4%A5%F3%A5%B9%A5%C8%A1%BC%A5%EB%A4%B9%A4%EB&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://o-san.blogspot.com/feeds/7172577183933248056/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://o-san.blogspot.com/2012/07/vmware-playerubuntu.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9189069/posts/default/7172577183933248056'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9189069/posts/default/7172577183933248056'/><link rel='alternate' type='text/html' href='http://o-san.blogspot.com/2012/07/vmware-playerubuntu.html' title='vmware playerをubuntuにインストール'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/17125830027888092718</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxBO-y7NbB8dtRa1s4CO7jnQy1S5QDn9NeO3PbOrvbypuMJ6KAZBXbsCEuSZK8y_qX-EcEn__6aT_utj0RXtiuIqxvPS7AF1NVwnu5DTAcQK65iyOD_lQsSASZ_6Xml_RopXte/s72-c/Screenshot_from_2012-07-19+23:24:58.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9189069.post-8354462771938236004</id><published>2012-06-20T07:46:00.000+09:00</published><updated>2012-07-01T22:06:11.848+09:00</updated><title type='text'>ubuntuでDVDを再生</title><content type='html'>[Problem] Initial ubuntu installation not including media repository&lt;br /&gt;
Ubuntu Desktop 12.04 64bit 版をインストールしてみると、DVDを再生後&lt;br /&gt;
「エラー　リソースを読み込むことができません」&lt;br /&gt;
と言うエラーがでる。&lt;br /&gt;
&lt;br /&gt;
[SOLVED]&lt;br /&gt;
まずはubuntu wikiの下記サイトを参考に必要パッケージをインストールする。&lt;br /&gt;
&lt;a href=&quot;https://wiki.ubuntulinux.jp/UbuntuTips/Others/HowToPlayDvd&quot;&gt;https://wiki.ubuntulinux.jp/UbuntuTips/Others/HowToPlayDvd&lt;/a&gt;&lt;br /&gt;
&lt;span style=&quot;color: #a07c61; font-family: Verdana, Arial, Meiryo, メイリオ, &#39;Hiragino Kaku Gothic Pro&#39;, &#39;ヒラギノ角ゴ Pro W3&#39;, Osaka, &#39;MS P Gothic&#39;, &#39;ＭＳ Ｐゴシック&#39;, sans-serif; font-size: 13px; line-height: 19px; text-align: left;&quot;&gt;sudo wget&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://www.medibuntu.org/sources.list.d/&quot; style=&quot;color: #3366cc; font-family: Verdana, Arial, Meiryo, メイリオ, &#39;Hiragino Kaku Gothic Pro&#39;, &#39;ヒラギノ角ゴ Pro W3&#39;, Osaka, &#39;MS P Gothic&#39;, &#39;ＭＳ Ｐゴシック&#39;, sans-serif; font-size: 13px; line-height: 19px; text-align: left; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;http://www.medibuntu.org/sources.list.d/&lt;/a&gt;&lt;span style=&quot;color: #a07c61; font-family: Verdana, Arial, Meiryo, メイリオ, &#39;Hiragino Kaku Gothic Pro&#39;, &#39;ヒラギノ角ゴ Pro W3&#39;, Osaka, &#39;MS P Gothic&#39;, &#39;ＭＳ Ｐゴシック&#39;, sans-serif; font-size: 13px; line-height: 19px; text-align: left;&quot;&gt;`lsb_release -cs`.list --output-document=/etc/apt/sources.list.d/medibuntu.list; sudo apt-get -q update; sudo apt-get --yes -q --allow-unauthenticated install medibuntu-keyring; sudo apt-get -q update&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #a07c61; font-family: Verdana, Arial, Meiryo, メイリオ, &#39;Hiragino Kaku Gothic Pro&#39;, &#39;ヒラギノ角ゴ Pro W3&#39;, Osaka, &#39;MS P Gothic&#39;, &#39;ＭＳ Ｐゴシック&#39;, sans-serif; font-size: 13px; line-height: 19px; text-align: left;&quot;&gt;sudo apt-get install libdvdcss2&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: Ubuntu, &#39;Ubuntu Beta&#39;, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13px; line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: Ubuntu, &#39;Ubuntu Beta&#39;, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13px; line-height: 19px;&quot;&gt;ここではまだDVD再生できませんでした。&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: Ubuntu, &#39;Ubuntu Beta&#39;, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13px; line-height: 19px;&quot;&gt;そこで、再度下記を参考にし、Gstreamer関連のパッケージがインストールされているかを&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: Ubuntu, &#39;Ubuntu Beta&#39;, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13px; line-height: 19px;&quot;&gt;ubuntu software centerで「動画プレーヤー」と検索し、&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: Ubuntu, &#39;Ubuntu Beta&#39;, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13px; line-height: 19px;&quot;&gt;プラグインがインストールされているか確認します。&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;a href=&quot;http://kingpcfx.seesaa.net/article/203370144.html&quot;&gt;http://kingpcfx.seesaa.net/article/203370144.html&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
私の場合は、GStreamerコーデックインストーラが入っていなかったようです。&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
早速プラグインのチェックをいれます。&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
インストールが完了するとDVDがめでたく再生できました！&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://o-san.blogspot.com/feeds/8354462771938236004/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://o-san.blogspot.com/2012/06/ubuntudvd.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9189069/posts/default/8354462771938236004'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9189069/posts/default/8354462771938236004'/><link rel='alternate' type='text/html' href='http://o-san.blogspot.com/2012/06/ubuntudvd.html' title='ubuntuでDVDを再生'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/17125830027888092718</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9189069.post-7796343638888906880</id><published>2012-06-20T00:08:00.006+09:00</published><updated>2012-06-20T00:11:02.657+09:00</updated><title type='text'>ubuntuのssh&amp;X転送を許可する方法</title><content type='html'>[Problem] Default setting of ubuntu ssh disallow X session forwarding&lt;br /&gt;
デフォルトのubuntu ssh設定はどうやらx転送をさせないらしいです。&lt;br /&gt;
&lt;br /&gt;
その設定を変更するには、gdmもしくはlightdmの設定を変更しなければなりません。&lt;br /&gt;
私の環境では、ubuntu 12.04にapt-get install sshでインストールしたopensshは、&lt;br /&gt;
lightdmを同梱していました。&lt;br /&gt;
(ちょっと前まではgdmだった気がしますが、いつのまに？？）&lt;br /&gt;
そのため、/etc/lightdm/lightdm.confを設定する必要がありました。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[Solution]&lt;br /&gt;
設定方法は下記を参照しました。&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://ubuntuforums.org/showthread.php?t=1310771&quot;&gt;http://ubuntuforums.org/showthread.php?t=1310771&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;background-color: #f7f6f5; font-family: Ubuntu, Ubuntu, &#39;Ubuntu Beta&#39;, UbuntuBeta, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, HelveticaNeue-Light, &#39;Helvetica Neue Light&#39;, &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 13px;&quot;&gt;To enable TCP connections to the Xserver on Ubuntu Oneiric Ocelot (11.10):&lt;/span&gt;&lt;span style=&quot;background-color: #f7f6f5; font-family: Ubuntu, Ubuntu, &#39;Ubuntu Beta&#39;, UbuntuBeta, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, HelveticaNeue-Light, &#39;Helvetica Neue Light&#39;, &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 13px;&quot;&gt;1) Open /etc/lightdm/lightdm.conf with your favorite editor.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f7f6f5; font-family: Ubuntu, Ubuntu, &#39;Ubuntu Beta&#39;, UbuntuBeta, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, HelveticaNeue-Light, &#39;Helvetica Neue Light&#39;, &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 13px;&quot;&gt;2) Add the following line to section [SeatDefaults]:&lt;/span&gt;&lt;span style=&quot;background-color: #f7f6f5; font-family: Ubuntu, Ubuntu, &#39;Ubuntu Beta&#39;, UbuntuBeta, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, HelveticaNeue-Light, &#39;Helvetica Neue Light&#39;, &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 13px;&quot;&gt;xserver-allow-tcp=true&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f7f6f5; font-family: Ubuntu, Ubuntu, &#39;Ubuntu Beta&#39;, UbuntuBeta, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, HelveticaNeue-Light, &#39;Helvetica Neue Light&#39;, &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 13px;&quot;&gt;[While you&#39;re at it you may want to add as well:&lt;/span&gt;&lt;span style=&quot;background-color: #f7f6f5; font-family: Ubuntu, Ubuntu, &#39;Ubuntu Beta&#39;, UbuntuBeta, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, HelveticaNeue-Light, &#39;Helvetica Neue Light&#39;, &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 13px;&quot;&gt;allow-guest=false&lt;/span&gt;&lt;span style=&quot;background-color: #f7f6f5; font-family: Ubuntu, Ubuntu, &#39;Ubuntu Beta&#39;, UbuntuBeta, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, HelveticaNeue-Light, &#39;Helvetica Neue Light&#39;, &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 13px;&quot;&gt;to prevent unrestricted guest access to your computer, see this for more information&amp;nbsp;&lt;/span&gt;&lt;/blockquote&gt;
&lt;br /&gt;
/etc/lightdm/lightdm.confの設定後は下記の用になります。&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
[SeatDefaults]&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
user-session=ubuntu&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
greeter-session=unity-greeter&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;u&gt;xserver-allow-tcp=true&lt;/u&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;u&gt;allow-guest=false&lt;/u&gt;&lt;/blockquote&gt;
&lt;/blockquote&gt;
下線を追加しました。&lt;br /&gt;
&lt;br /&gt;
結果、ssh -X localhostでログインも可能になりました。&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;/blockquote&gt;
&lt;/blockquote&gt;</content><link rel='replies' type='application/atom+xml' href='http://o-san.blogspot.com/feeds/7796343638888906880/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://o-san.blogspot.com/2012/06/ubuntussh.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9189069/posts/default/7796343638888906880'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9189069/posts/default/7796343638888906880'/><link rel='alternate' type='text/html' href='http://o-san.blogspot.com/2012/06/ubuntussh.html' title='ubuntuのssh&amp;X転送を許可する方法'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/17125830027888092718</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9189069.post-1109137817433218610</id><published>2012-06-11T22:41:00.005+09:00</published><updated>2012-06-11T22:41:55.194+09:00</updated><title type='text'>disk性能</title><content type='html'>今日使ったソフトは、窓の杜で公開されているCrystalDiskMark。&lt;br /&gt;
かなり有名なソフトのようです。&lt;br /&gt;
私は初めて使います。&lt;br /&gt;
&lt;br /&gt;
【使った環境】&lt;br /&gt;
Windows 7 64bit , sata diskとusb flash memory。&lt;br /&gt;
&lt;br /&gt;
【使い方】&lt;br /&gt;
&lt;a href=&quot;http://www.forest.impress.co.jp/lib/sys/hrdbnch/benchmark/crystaldisk.html&quot;&gt;http://www.forest.impress.co.jp/lib/sys/hrdbnch/benchmark/crystaldisk.html&lt;/a&gt;
&lt;br /&gt;
上記ページからダウンロードします。&lt;br /&gt;
ダウンロードしたexeファイルを起動すると、インストールが始まります。&lt;br /&gt;
YahooやらBaiduやらいろんなものをインストールおすすめしてきますが、とりあえず全部アンチェック。&lt;br /&gt;
&lt;br /&gt;
インストールが終了したら起動しましょう。&lt;br /&gt;
試行回数(1~9回)、ファイルサイズ(50MB-4000MB)、ドライブ名を指定してALLを押します。&lt;br /&gt;
まずはsata disk。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBcPF6EOih_RX0Z74evd_t4_WUxJ2gM256RW3wmp8KMujTq8_ZRcHSRNfvYfX-KX9IaYqrnS8W6YSrUqDlU2oW_uqH1lMPaw5GhA-BKhg28sKsCMCY34oViSPEtizB9P0XWVnx/s1600/disk1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;291&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBcPF6EOih_RX0Z74evd_t4_WUxJ2gM256RW3wmp8KMujTq8_ZRcHSRNfvYfX-KX9IaYqrnS8W6YSrUqDlU2oW_uqH1lMPaw5GhA-BKhg28sKsCMCY34oViSPEtizB9P0XWVnx/s320/disk1.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&amp;nbsp;次にcostcoで買ったusbメモリ(8GB)&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjl5cV3EYVUHIy4Z9lQAW7SoFlaNN600WFNHfoGHAbvSwB9oLgsgct9npx21tgZfoGud0vM45WS_ukjvFEMstFO7GrEXXTXC4jC03HD7oGDauHAETNGuYWnUwqessD0DlyWKtNx/s1600/disk2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;291&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjl5cV3EYVUHIy4Z9lQAW7SoFlaNN600WFNHfoGHAbvSwB9oLgsgct9npx21tgZfoGud0vM45WS_ukjvFEMstFO7GrEXXTXC4jC03HD7oGDauHAETNGuYWnUwqessD0DlyWKtNx/s320/disk2.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
ひどい！sataのdiskに勝っているのは4kB random readのみ。readyboostの資格なしと判断します。&lt;/div&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://o-san.blogspot.com/feeds/1109137817433218610/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://o-san.blogspot.com/2012/06/disk.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9189069/posts/default/1109137817433218610'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9189069/posts/default/1109137817433218610'/><link rel='alternate' type='text/html' href='http://o-san.blogspot.com/2012/06/disk.html' title='disk性能'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/17125830027888092718</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBcPF6EOih_RX0Z74evd_t4_WUxJ2gM256RW3wmp8KMujTq8_ZRcHSRNfvYfX-KX9IaYqrnS8W6YSrUqDlU2oW_uqH1lMPaw5GhA-BKhg28sKsCMCY34oViSPEtizB9P0XWVnx/s72-c/disk1.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9189069.post-5566582325053753465</id><published>2012-06-06T23:08:00.000+09:00</published><updated>2012-06-06T23:08:00.463+09:00</updated><title type='text'>ubuntuにandroidの開発環境構築</title><content type='html'>Ubuntuの実験用VMにandroid開発環境を準備したら、案外簡単だったのでご紹介。&lt;br /&gt;
&lt;br /&gt;
【環境】&lt;br /&gt;
Core i5の4コア、メモリ4GBを搭載したWin7。&lt;br /&gt;
VMware Playerを稼動し、Ubuntu 12.04をインストールしたVMで実験。&lt;br /&gt;
&lt;br /&gt;
【ツールインストール方法】&lt;br /&gt;
まずはここからandroid-sdk_*.tgzをダウンロード。&lt;br /&gt;
&lt;a href=&quot;http://developer.android.com/sdk/index.html&quot;&gt;http://developer.android.com/sdk/index.html&lt;/a&gt;&lt;br /&gt;
例えばこんな感じ。&lt;br /&gt;
wget&amp;nbsp;http://dl.google.com/android/android-sdk_r18-linux.tgz&lt;br /&gt;
&lt;br /&gt;
次に、これを展開します。&lt;br /&gt;
tar zxvf android-sdk_r18linux.tgz&lt;br /&gt;
&lt;br /&gt;
これでツール自体はインストール完了です。&lt;br /&gt;
そのため、adbとかも&lt;br /&gt;
android-sdk-linux/platform-tools/adb&lt;br /&gt;
にインストールされています。&lt;br /&gt;
&lt;br /&gt;
【eclipseからのツール呼び出し方法】&lt;br /&gt;
eclipseがインストールされていなければ、&lt;br /&gt;
sudo apt-get install eclipse でインストールします。&lt;br /&gt;
&lt;br /&gt;
eclipseにadt pluginを入れます。&lt;br /&gt;
eclipse上でHelp-&amp;gt;Install New Softwareを選択。&lt;br /&gt;
site入力ボックスに&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot; style=&quot;background-color: #fafafa; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; color: #007000; font-size: 13px; line-height: 16px; margin-left: 1em; margin-top: 0.5em; overflow-x: auto; overflow-y: auto; padding-bottom: 10px; padding-left: 10px; padding-right: 10px; padding-top: 10px;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;https&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;com&quot; style=&quot;color: #880000;&quot;&gt;//dl-ssl.google.com/android/eclipse/&lt;/span&gt;&lt;/pre&gt;
&lt;br /&gt;
を入力し、addします。&lt;br /&gt;
下にDevelopment Toolsが検索できたら、チェックボックスにチェックし、Nextを選択。&lt;br /&gt;
Acceptを選択し、Finishします。&lt;br /&gt;
ダウンロード＆インストールが終了すると、elipseの再起動が求められますので従います。&lt;br /&gt;
再起動後、自動的にadt pluginにツールダウンロード場所をおしえてくれ、と&lt;br /&gt;
ダイアログが出てきますので、一番最初にダウンロードしたツールの展開場所を指定します。&lt;br /&gt;
詳しいことは下記に書いて有りますね。&lt;br /&gt;
&lt;a href=&quot;http://developer.android.com/sdk/eclipse-adt.html#installing&quot;&gt;http://developer.android.com/sdk/eclipse-adt.html#installing&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
だいたいこれで開発環境は出来上がったわけです。&lt;br /&gt;
開発するアプリやデバッグしたいandroidバージョンにあわせて、&lt;br /&gt;
android sdkメニューからandroidイメージやARMイメージなどをダウンロードして使用します。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
【注意】&lt;br /&gt;
私はwindows+eclipseでこれまでandroid開発をしておりましたので、&lt;br /&gt;
そのプロジェクトをそのままimportすればいいのかと思っておりました。&lt;br /&gt;
&lt;br /&gt;
問題が２つ発生しました。&lt;br /&gt;
１．Javaのバージョンが違うよと怒られる&lt;br /&gt;
２．androidアプリのビルドのために指定していたjarファイルなどの自前指定が、&lt;br /&gt;
　Windows環境のパスになっていてubuntuからは読めない&lt;br /&gt;
　（例：D:\android-dev\****.jar)&lt;br /&gt;
&lt;br /&gt;
問題の解決方法は下記です。&lt;br /&gt;
１．Javaのバージョンが違うよと怒られる&lt;br /&gt;
eclipseが基本的に使うjavaのバージョンは、eclipseのWindow-&amp;gt;preference-&amp;gt;java-&amp;gt;compilerの中に「1.5」とか「1.6」とか指定して有ります。これがWindowsのeclipseとubuntuのeclipseでずれるために&lt;br /&gt;
解決するためには、ubuntuのeclipseに合わせた設定をここで指定してあげれば良いのです。&lt;br /&gt;
&lt;a href=&quot;http://www.ipentec.com/document/document.aspx?page=android-compiler-found-17-error&amp;amp;culture=ja-jp&quot;&gt;http://www.ipentec.com/document/document.aspx?page=android-compiler-found-17-error&amp;amp;culture=ja-jp&lt;/a&gt;&lt;br /&gt;
もしくは、androidプロジェクトを右クリックしてpreferenceを選択。java compilerメニューの中に、やはり同じjava versionを指定する箇所があります（普段はenableされておらずグレーアウトしているはずです）これをenableして、適切なjava versionを指定すればよいです。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
２．androidアプリのビルドのために指定していたjarファイルなどの自前指定が、&lt;br /&gt;
　Windows環境のパスになっていてubuntuからは読めない&lt;br /&gt;
&lt;div&gt;
これは、ubuntu上の適切な場所に同じjarを用意して、そのパスを再度指定してあげる必要があります。&lt;/div&gt;
&lt;div&gt;
ちょっとめんどくさいですね。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
以上です。&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://o-san.blogspot.com/feeds/5566582325053753465/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://o-san.blogspot.com/2012/06/ubuntuandroid.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9189069/posts/default/5566582325053753465'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9189069/posts/default/5566582325053753465'/><link rel='alternate' type='text/html' href='http://o-san.blogspot.com/2012/06/ubuntuandroid.html' title='ubuntuにandroidの開発環境構築'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/17125830027888092718</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9189069.post-5036284110626317673</id><published>2012-04-05T00:45:00.000+09:00</published><updated>2012-04-05T00:45:03.388+09:00</updated><title type='text'>ある日１</title><content type='html'>土佐寮という大学生寮は、高知県出身学生ばかりが住んでいて、&lt;div&gt;
夏季休業にはかならず地元高知で開催される「よさこい祭り」に&lt;/div&gt;
&lt;div&gt;
「土佐寮チーム」として参加することになっている。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
よさこい祭りは、音楽自作、踊り自作の極めて自由な踊りを披露し競う場である。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
僕も土佐寮在籍時にはよさこい祭りに３回出場した。&lt;/div&gt;
&lt;div&gt;
多くは踊り手としてだったが、&lt;/div&gt;
&lt;div&gt;
２年のときだったと思うが音楽作製にもちょっと関わった。&lt;/div&gt;
&lt;div&gt;
その時は、作曲の有人（現TACOBONDS他）と一緒にミキサーとしてスタジオに入った。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
有人と僕は、大学２年の前半を相部屋で過ごした仲である。&lt;/div&gt;
&lt;div&gt;
二人で「寮三役」という寮の事務係を担当しており、&lt;/div&gt;
&lt;div&gt;
この役を任される人は、事務を円滑にすすめるという名目で&lt;/div&gt;
&lt;div&gt;
相部屋を強要されるのだが、そのかわり広い部屋を充てがわれる。&lt;/div&gt;
&lt;div&gt;
片方はエモコア大好きのドラマーで、もう片方はプログレメタル好きのヘボギタリストだった。&lt;/div&gt;
&lt;div&gt;
やたらCDが散乱した部屋だった。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
スタジオに入った日。&lt;/div&gt;
&lt;div&gt;
有人の「はい」というタイミングで「録音ボタン」を押す。&lt;/div&gt;
&lt;div&gt;
簡単な仕事だ。&lt;/div&gt;
&lt;div&gt;
有人は、自分の部屋で簡単なベースラインを弾きそれをテープに録音し持参していた。&lt;/div&gt;
&lt;div&gt;
最後スタジオ内でドラミングして、テープに重ねどりすれば終わり。&lt;/div&gt;
&lt;div&gt;
当時はテープに４ｃｈくらい録音できる専用MTRがあったのだ。&lt;/div&gt;
&lt;div&gt;
有人所有MTRをスタジオまで持参し、最後のドラミングをレコードする。&lt;/div&gt;
&lt;div&gt;
よさこいの音楽はシンセ全開できらびやかなうるさい曲が主流だが、&lt;/div&gt;
&lt;div&gt;
有人は枠を脱線しパンクっぽいエモっぽい音楽に仕上げていたと思う。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
夏の晴れた日。&lt;/div&gt;
&lt;div&gt;
大学の勉強もそこそこに、&lt;/div&gt;
&lt;div&gt;
音楽とか麻雀とかしていた日が懐かしく思われる。&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://o-san.blogspot.com/feeds/5036284110626317673/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://o-san.blogspot.com/2012/04/blog-post.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9189069/posts/default/5036284110626317673'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9189069/posts/default/5036284110626317673'/><link rel='alternate' type='text/html' href='http://o-san.blogspot.com/2012/04/blog-post.html' title='ある日１'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/17125830027888092718</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9189069.post-7389781689300672902</id><published>2012-03-24T13:14:00.001+09:00</published><updated>2012-03-24T13:54:30.428+09:00</updated><title type='text'>Ubuntu 11.10 on Aspire One [wireless driver]</title><content type='html'>aspire oneにubuntu 11.10を入れてみた。&lt;br /&gt;
なんにも考えなくてもだいたい動いていて非常に快適だ。&lt;br /&gt;
&lt;br /&gt;
ただ無線LANだけ起動していない（起動ランプも光っていない）。&lt;br /&gt;
無線LANの起動スイッチを押してもやはり変わらない。&lt;br /&gt;
&lt;br /&gt;
下記の記事を参考すると、ハードウェアドライバが入っていないからだそうだ。&lt;br /&gt;
&lt;a href=&quot;http://d.hatena.ne.jp/vamview/20100717/1279359615&quot;&gt;http://d.hatena.ne.jp/vamview/20100717/1279359615&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
実際にハードウェアドライバを入れてみた。&lt;br /&gt;
&lt;br /&gt;
ubuntu 11.10のGUIで&lt;br /&gt;
左のメニューバーのsystem settings-&amp;gt;Hardware&quot;Additional Drivers&quot;を選択。&lt;br /&gt;
&quot;No proprietary drivers are in use on this system.と出てくる。&lt;br /&gt;
まだドライバが動いていない証拠だ。&lt;br /&gt;
その下にはちゃんと&lt;br /&gt;
&quot;Broadcom STA wireless driver&quot;&lt;br /&gt;
&quot;This driver is not activated&quot;&lt;br /&gt;
ubuntu開発者がテストしたプロプラのドライバがありますよ、でもまだ動いていませんよ、ということ。&lt;br /&gt;
と出てくる。&lt;br /&gt;
&lt;br /&gt;
動かしてみようじゃんか。&lt;br /&gt;
右下の&quot;Activate&quot;ボタンを押す。&lt;br /&gt;
&lt;br /&gt;
有線LANを繋いでいない場合ここでエラーが出る。&lt;br /&gt;
つまりこの時点でドライバをダウンロードしているらしい。&lt;br /&gt;
有線LANを繋ぐ。&lt;br /&gt;
再度&quot;Activate&quot;を押す。&lt;br /&gt;
&lt;br /&gt;
&quot;Downloading and installing driver..&quot;と出てくる。&lt;br /&gt;
結構時間がかかる（サイトが重いのだろう）&lt;br /&gt;
&lt;br /&gt;
何の問題もなく無線LANが起動した。ランプも付いた。&lt;br /&gt;
あとは無線セキュリティの設定をしなきゃいけない・・・&lt;br /&gt;
&lt;br /&gt;
色々調べた結果、&lt;br /&gt;
●ifconfigでeth1が追加されている。&lt;br /&gt;
●iwlist eth1 listでいろんなアクセスポイントが見える。&lt;br /&gt;
で問題はなさそう。&lt;br /&gt;
&lt;br /&gt;
有線ＬＡＮを切って、&lt;br /&gt;
下記を参考に無線LANエリアを選択する。&lt;br /&gt;
&lt;a href=&quot;https://wiki.ubuntulinux.jp/UbuntuTips/Hardware/HowToSetupWirelessNic#head-866b56b3473a18566566807b1dd409b4b28c1bac&quot;&gt;https://wiki.ubuntulinux.jp/UbuntuTips/Hardware/HowToSetupWirelessNic#head-866b56b3473a18566566807b1dd409b4b28c1bac&lt;/a&gt;&lt;br /&gt;
無事パスワード入力を求められ、入力後に接続完了。</content><link rel='replies' type='application/atom+xml' href='http://o-san.blogspot.com/feeds/7389781689300672902/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://o-san.blogspot.com/2012/03/aspire-oneubuntu-11.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9189069/posts/default/7389781689300672902'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9189069/posts/default/7389781689300672902'/><link rel='alternate' type='text/html' href='http://o-san.blogspot.com/2012/03/aspire-oneubuntu-11.html' title='Ubuntu 11.10 on Aspire One [wireless driver]'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/17125830027888092718</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9189069.post-7430197243824206735</id><published>2012-02-29T01:13:00.001+09:00</published><updated>2012-02-29T01:13:08.913+09:00</updated><title type='text'>python備忘録(1)</title><content type='html'>&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;easy_installがproxyを通らない場合&lt;br /&gt;linuxなら、環境変数http_proxyもしくはhttps_proxyを確認する&lt;br /&gt;パスワード付きproxyなら、下記コマンドを打つ。&lt;br /&gt;export http_proxy=user:password@hostname:port&lt;/li&gt;
&lt;li&gt;pexpect.EOFでpexpectのコマンド投入終了を待機できる&lt;/li&gt;
&lt;li&gt;signal.signal(signal.SIGINT, [handler])でCtrl+Cなどのユーザによるinterruptを検知できる&lt;/li&gt;
&lt;li&gt;signal.pause()で待機できる&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;&lt;/li&gt;
&lt;/ul&gt;</content><link rel='replies' type='application/atom+xml' href='http://o-san.blogspot.com/feeds/7430197243824206735/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://o-san.blogspot.com/2012/02/python1.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9189069/posts/default/7430197243824206735'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9189069/posts/default/7430197243824206735'/><link rel='alternate' type='text/html' href='http://o-san.blogspot.com/2012/02/python1.html' title='python備忘録(1)'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/17125830027888092718</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9189069.post-6424797027519544764</id><published>2012-02-26T17:20:00.001+09:00</published><updated>2012-02-26T17:41:32.115+09:00</updated><title type='text'>ipythonの使い方</title><content type='html'>&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;補完&lt;br /&gt;tab&lt;/li&gt;
&lt;li&gt;データの保存&lt;br /&gt;store&lt;/li&gt;
&lt;li&gt;コマンド履歴をファイルに保存&lt;br /&gt;save [filename] 1　3　5-10(行数)&lt;/li&gt;
&lt;li&gt;（デフォルトエディタで）ファイルを編集&lt;br /&gt;edit [filename]&lt;/li&gt;
&lt;li&gt;ファイルを実行&lt;br /&gt;run [filename]&lt;/li&gt;
&lt;li&gt;時間を測定&lt;br /&gt;time [コマンド] &amp;nbsp;---&amp;gt;例：time run test.py&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;&lt;/li&gt;
&lt;/ul&gt;</content><link rel='replies' type='application/atom+xml' href='http://o-san.blogspot.com/feeds/6424797027519544764/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://o-san.blogspot.com/2012/02/ipython.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9189069/posts/default/6424797027519544764'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9189069/posts/default/6424797027519544764'/><link rel='alternate' type='text/html' href='http://o-san.blogspot.com/2012/02/ipython.html' title='ipythonの使い方'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/17125830027888092718</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9189069.post-5588761618165712511</id><published>2012-02-26T16:48:00.001+09:00</published><updated>2012-02-26T16:48:22.781+09:00</updated><title type='text'>mysqlの備忘録(2)</title><content type='html'>参考：
&lt;a href=&quot;http://2php.jp/mysql/insert.html&quot;&gt;http://2php.jp/mysql/insert.html&lt;/a&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;a href=&quot;http://www.devshed.com/c/a/Python/MySQL-Connectivity-With-Python/2/&quot;&gt;http://www.devshed.com/c/a/Python/MySQL-Connectivity-With-Python/2/&lt;/a&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ul&gt;
&lt;li&gt;データベースを選択&lt;/li&gt;
&lt;/ul&gt;
use &lt;name&gt;&lt;/name&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ul&gt;
&lt;li&gt;&amp;nbsp;テーブルを作成&lt;/li&gt;
&lt;/ul&gt;
create table &lt;table_name&gt; (&lt;field_name&gt; &lt;field_type&gt;, &lt;field_name&gt; &lt;field_type&gt;[, ...]);&lt;/field_type&gt;&lt;/field_name&gt;&lt;/field_type&gt;&lt;/field_name&gt;&lt;/table_name&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ul&gt;
&lt;li&gt;テーブルのフィールドを参照&lt;/li&gt;
&lt;/ul&gt;
show fields from &lt;table_name&gt;;&lt;/table_name&gt;&lt;/div&gt;
&lt;div&gt;
or&lt;/div&gt;
&lt;div&gt;
describe &lt;table_name&gt;;&lt;/table_name&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ul&gt;
&lt;li&gt;挿入&lt;/li&gt;
&lt;/ul&gt;
insert into &lt;table_name&gt; values(&lt;value1&gt;, &lt;value2&gt;[, ...]);&lt;/value2&gt;&lt;/value1&gt;&lt;/table_name&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ul&gt;
&lt;li&gt;MySQL-pythonのインストール&lt;/li&gt;
&lt;/ul&gt;
sudo easy_install MySQL-python&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;ul&gt;
&lt;li&gt;pythonからの参照&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Myriad Pro&#39;, Verdana, Tahoma, Arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;pre class=&quot;code&quot; name=&quot;java&quot;&gt;import MySQLdb
db = MySQLdb.connect(host=&quot;localhost&quot;, user=&quot;joe&quot;, passwd=&quot;secret&quot;, db=&quot;db56a&quot;)
cursor = db.cursor()
cursor.execute(&quot;SELECT * FROM animals&quot;)
result = cursor.fetchall()
for record in result:
print record[0] , &quot;--&amp;gt;&quot;, record[1]
&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://o-san.blogspot.com/feeds/5588761618165712511/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://o-san.blogspot.com/2012/02/mysql2.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9189069/posts/default/5588761618165712511'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9189069/posts/default/5588761618165712511'/><link rel='alternate' type='text/html' href='http://o-san.blogspot.com/2012/02/mysql2.html' title='mysqlの備忘録(2)'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/17125830027888092718</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9189069.post-6222140372053714411</id><published>2012-02-26T16:24:00.002+09:00</published><updated>2012-02-26T16:24:22.592+09:00</updated><title type='text'>mysql操作メモ</title><content type='html'>参考：&lt;a href=&quot;http://linux.kororo.jp/cont/server/mysql_user.php&quot;&gt;http://linux.kororo.jp/cont/server/mysql_user.php&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;ログイン&lt;/li&gt;
&lt;/ul&gt;
mysql -u &lt;user&gt; -p&lt;br /&gt;&lt;ul&gt;
&lt;li&gt;データベース作成&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
create database &lt;name&gt;;&lt;/name&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;データベース確認&lt;/li&gt;
&lt;/ul&gt;
show databases;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;データベースへのユーザ登録&lt;/li&gt;
&lt;/ul&gt;
grant all privileges on &lt;name&gt;.* to &lt;user&gt;@&#39;&lt;hostname&gt;&#39; to &lt;password&gt;;&lt;/password&gt;&lt;/hostname&gt;&lt;/user&gt;&lt;/name&gt;&lt;/user&gt;</content><link rel='replies' type='application/atom+xml' href='http://o-san.blogspot.com/feeds/6222140372053714411/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://o-san.blogspot.com/2012/02/mysql.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9189069/posts/default/6222140372053714411'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9189069/posts/default/6222140372053714411'/><link rel='alternate' type='text/html' href='http://o-san.blogspot.com/2012/02/mysql.html' title='mysql操作メモ'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/17125830027888092718</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9189069.post-3226146843270608719</id><published>2012-01-09T23:14:00.000+09:00</published><updated>2012-01-09T23:14:37.298+09:00</updated><title type='text'>Fragmentを表示したり消したりする</title><content type='html'>画面方向の回転のタイミングで、Fragmentを表示したり消したりします。&lt;br /&gt;
&lt;div&gt;
方法は、回転のタイミングで呼ばれるActivityのonResumeのオーバーライドです。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre class=&quot;java&quot; name=&quot;code&quot;&gt; @Override
 public void onResume() {
  super.onResume();

  //画面のサイズを取得
  WindowManager wm = (WindowManager) getSystemService(Context.WINDOW_SERVICE);
  Display disp = wm.getDefaultDisplay();
  int width = disp.getWidth();

  //表示したり消したりするためのマネージャーを取得。
  FragmentManager fm = getFragmentManager();
  FragmentTransaction ft = fm.beginTransaction();

  //表示したり消したりするフラグメントを取得。
  Fragment mFragment1 = fm.findFragmentById(R.id.number_list);

  //画面の幅が900pxより小さかったら、消します。それ以外なら表示します。
  if (mFragment1 != null) {
   if (width &amp;lt; 900) {
    ft.hide(mFragment1);
   } else
    ft.show(mFragment1);
  }
  ft.commit();
 }

&lt;/pre&gt;
&lt;div&gt;
Galaxy Nexusで実行した結果ですが、横向きの時は画面幅が900px超えるので「1,2,3・・」と表示されるListFragmentが表示されます。

&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9PavApIF6g933puON7tnM38GcjXRUwhIinHW1N06-oW9aUUXViCkAjoObVIhEW-EUhxDp8A6xMY_4EY_zAVhM24T6tk3ZJsvY_8I1m-Wc9bgn2Wg6GDSGE7AkuXnYeelMJF6t/s1600/Screenshot_2012-01-09-23-10-48%255B1%255D.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;180&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9PavApIF6g933puON7tnM38GcjXRUwhIinHW1N06-oW9aUUXViCkAjoObVIhEW-EUhxDp8A6xMY_4EY_zAVhM24T6tk3ZJsvY_8I1m-Wc9bgn2Wg6GDSGE7AkuXnYeelMJF6t/s320/Screenshot_2012-01-09-23-10-48%255B1%255D.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
縦向きの時は画面幅は900pxを下回るのでこのListViewは表示されません。&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuZ-sYgzOR2-pcl6YxdYzfXlns2YMmy2ON3bley6Pq_3QlLPoy1d3cdstlOZUxgM_zOv_9zNhhpAvBCAq4D8JcZqronk2IMJYeGkVHTxEWbPLUYTNd8VOXX1GvKJgC2l_RT8F-/s1600/Screenshot_2012-01-09-23-10-55%255B1%255D.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuZ-sYgzOR2-pcl6YxdYzfXlns2YMmy2ON3bley6Pq_3QlLPoy1d3cdstlOZUxgM_zOv_9zNhhpAvBCAq4D8JcZqronk2IMJYeGkVHTxEWbPLUYTNd8VOXX1GvKJgC2l_RT8F-/s320/Screenshot_2012-01-09-23-10-55%255B1%255D.png&quot; width=&quot;180&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://o-san.blogspot.com/feeds/3226146843270608719/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://o-san.blogspot.com/2012/01/fragment_09.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9189069/posts/default/3226146843270608719'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9189069/posts/default/3226146843270608719'/><link rel='alternate' type='text/html' href='http://o-san.blogspot.com/2012/01/fragment_09.html' title='Fragmentを表示したり消したりする'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/17125830027888092718</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9PavApIF6g933puON7tnM38GcjXRUwhIinHW1N06-oW9aUUXViCkAjoObVIhEW-EUhxDp8A6xMY_4EY_zAVhM24T6tk3ZJsvY_8I1m-Wc9bgn2Wg6GDSGE7AkuXnYeelMJF6t/s72-c/Screenshot_2012-01-09-23-10-48%255B1%255D.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9189069.post-7761092639039505749</id><published>2012-01-09T22:16:00.003+09:00</published><updated>2012-01-09T23:05:27.213+09:00</updated><title type='text'>Fragmentでエラー</title><content type='html'>Android 3.0で追加されたFragmentが使えるかテストをしていたのだが、&lt;br /&gt;
XMLでFragmentを含むレイアウトを記載したアプリをGalaraxy Nexusにインストールし画面を回転させたときにアプリが異常停止する。&lt;br /&gt;
特に、自分でFragmentクラスを継承させてonCreateViewをオーバーライドしたクラスを、&lt;br /&gt;
XML上に配置するとこの異常停止になる。&lt;br /&gt;
&lt;br /&gt;
エラーは下記。&lt;br /&gt;
01-09 21:51:39.086: E/AndroidRuntime(5798): Caused by: java.lang.IllegalStateException: Fragment com.bambooflower.fragmenttest.MyFragment did not create a view.&lt;br /&gt;
01-09 21:51:39.086: E/AndroidRuntime(5798): &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;at android.app.Activity.onCreateView(Activity.java:4266)&lt;br /&gt;
01-09 21:51:39.086: E/AndroidRuntime(5798): &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:673)&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
このログを頼りに検索すると、XMLを使うな、というQ&amp;amp;Aと、&lt;/div&gt;
&lt;div&gt;
XMLを使わないプログラマティックな実装方法を紹介しているサイトを発見。&lt;/div&gt;
&lt;div&gt;
&lt;a href=&quot;http://stackoverflow.com/questions/5525152/replacing-fragments-and-orientation-change&quot;&gt;http://stackoverflow.com/questions/5525152/replacing-fragments-and-orientation-change&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;a href=&quot;http://portabledroid.wordpress.com/2011/04/19/programmatic-and-layout-fragments/&quot;&gt;http://portabledroid.wordpress.com/2011/04/19/programmatic-and-layout-fragments/&lt;/a&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
原因はおそらくActivityと異なるライフサイクルでFragmentの画面が形成されるためだろう。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
プログラマティックにFragmentを作る方法とは、XMLには&lt;fragment&gt;を一切書かないで、&lt;/fragment&gt;&lt;/div&gt;
&lt;div&gt;
例えばActivityのonCreate実装の中に下記のようにFragment生成文を書くことのようだ。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre class=&quot;java&quot; name=&quot;code&quot;&gt;FragmentManager fm = getFragmentManager();
FragmentTransaction ft = fm.beginTransaction();
if (null == fm.findFragmentByTag(FRAG_TAG)) {
    xact.add(R.id.parent, new MyFragment(), FRAG_TAG);
}
&lt;/pre&gt;
&lt;div&gt;
じゃあ何のためにXMLがあるんだろうと不思議に思ってしまうが、これで回避できそうだ。&lt;br /&gt;
&lt;br /&gt;
追記：&lt;br /&gt;
確かにこれでエラーは回避できた。&lt;br /&gt;
自分で実装したFragmentを静的にレイアウトにのせるのはもうやめようかな、と思う。&lt;br /&gt;
今確かめたところ、ListFragmentでonCreateView内でinflateするだけであれば問題ないようだ。&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://o-san.blogspot.com/feeds/7761092639039505749/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://o-san.blogspot.com/2012/01/fragment.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9189069/posts/default/7761092639039505749'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9189069/posts/default/7761092639039505749'/><link rel='alternate' type='text/html' href='http://o-san.blogspot.com/2012/01/fragment.html' title='Fragmentでエラー'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/17125830027888092718</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9189069.post-8124341211659501100</id><published>2012-01-07T03:33:00.001+09:00</published><updated>2012-01-07T03:33:10.435+09:00</updated><title type='text'>Galaxy NexusでFragment I</title><content type='html'>&lt;a href=&quot;http://android-developers.blogspot.com/2011/02/android-30-fragments-api.html&quot;&gt;http://android-developers.blogspot.com/2011/02/android-30-fragments-api.html&lt;/a&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
上記サイトが一番ためになるようだ。&lt;/div&gt;
&lt;div&gt;
ただ、Layoutをxmlでやったり、Java内で動的にやったり、&lt;/div&gt;
&lt;div&gt;
なんだか関係がよくわからない、というレベルの私なので、&lt;/div&gt;
&lt;div&gt;
下記を参考にした。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;a href=&quot;http://answers.oreilly.com/topic/2448-how-to-use-the-fragment-class-in-the-android-honeycomb-sdk-preview/&quot;&gt;http://answers.oreilly.com/topic/2448-how-to-use-the-fragment-class-in-the-android-honeycomb-sdk-preview/&lt;/a&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
おそらく一番わかり易い記事だ。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
[PROCESS]&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
[#1 Make Project]&lt;/div&gt;
&lt;div&gt;
eclipseで新規作成メニューからAndroidプロジェクトを選択。&lt;br /&gt;
あなたの好きなプロジェクト名を作成する。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
[#2 Configure main.xml]&lt;/div&gt;
&lt;div&gt;
さっき作ったプロジェクトで最初に動く画面を作るmain.xml。&lt;br /&gt;
どこにあるかは下記図を参照。これをダブルクリック。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUufViIF-KSeGD-mBHf12VWWGVDsoHGgvSPB3eorEAek7v87qjvmcgswu3HGmvk9SQOzqFZV1rSwMSql9SZSwdi9JdkSfs7kMQnTjJSkHL6oIJQqfslW6Kp4Z7xeZpmVZvRMNl/s1600/fragment_source_tree.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUufViIF-KSeGD-mBHf12VWWGVDsoHGgvSPB3eorEAek7v87qjvmcgswu3HGmvk9SQOzqFZV1rSwMSql9SZSwdi9JdkSfs7kMQnTjJSkHL6oIJQqfslW6Kp4Z7xeZpmVZvRMNl/s320/fragment_source_tree.png&quot; width=&quot;214&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
これを下記に上書き。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;pre class=&quot;xml&quot; name=&quot;code&quot;&gt;&lt;linearlayout android:id=&quot;@+id/frags&quot; android:layout_height=&quot;match_parent&quot; android:layout_width=&quot;match_parent&quot; android:orientation=&quot;horizontal&quot; xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;&gt;

    &lt;listview android:id=&quot;@+id/number_list&quot; android:layout_height=&quot;match_parent&quot; android:layout_width=&quot;250dip&quot;&gt;

    &lt;fragment android:id=&quot;@+id/the_frag&quot; android:layout_height=&quot;match_parent&quot; android:layout_width=&quot;match_parent&quot; class=&quot;com.bambooflower.fragmenttest.MyFragment&quot;&gt;

&lt;/fragment&gt;&lt;/listview&gt;&lt;/linearlayout&gt;&lt;/pre&gt;
&lt;/div&gt;
上書き編集画面はこんな感じ。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_Gao-ICCL6t6cV0Ux42Jl9Z1N45vYQTYy_PfZhY4uCnHDRc4IlMJsV-urGCNI5Fm18px4I_-CPQOvfKlDeI0fcwTD4uMQ-izcC90lk8SoP_Njw-6UrHjM5GdvNTntqqV2fRbP/s1600/fragment_xml_view.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;300&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_Gao-ICCL6t6cV0Ux42Jl9Z1N45vYQTYy_PfZhY4uCnHDRc4IlMJsV-urGCNI5Fm18px4I_-CPQOvfKlDeI0fcwTD4uMQ-izcC90lk8SoP_Njw-6UrHjM5GdvNTntqqV2fRbP/s320/fragment_xml_view.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
この&quot;com.bambooflower.fragmenttest&quot;はあなたの決めたプロジェクト名に変更。&lt;br /&gt;
&lt;br /&gt;
[#3 Add codes to MainActivity]&lt;br /&gt;
こんどは、プロジェクトを仕切るActivityを書き換え。&lt;br /&gt;
プロジェクト名+Activityのファイルをダブルクリック。&lt;br /&gt;
クラス内にコードを追加。&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;java&quot; name=&quot;code&quot;&gt;    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        ListView l = (ListView) findViewById(R.id.number_list);
        ArrayAdapter numbers = new ArrayAdapter&lt;string&gt;(getApplicationContext(),
                        android.R.layout.simple_list_item_1, 
                        new String [] {
                &quot;one&quot;, &quot;two&quot;, &quot;three&quot;, &quot;four&quot;, &quot;five&quot;, &quot;six&quot;
        });
        l.setAdapter(numbers);
        l.setOnItemClickListener(this);
    }

    
    /**
     * Add a Fragment to our stack with n Androids in it
     */
    private void stackAFragment(int nAndroids) {
        Fragment f = new MyFragment(nAndroids);
        
        FragmentTransaction ft = getFragmentManager().beginTransaction();
        ft.replace(R.id.the_frag, f);
        ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN);
        ft.addToBackStack(null);
        ft.commit();
    }

        /**
         * Called when a number gets clicked
         */
        public void onItemClick(AdapterView parent, View view, int position, long id) {
                stackAFragment(position + 1);
    }
&lt;/string&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
書き換え後はこんな感じ。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi055eswFQuS1WqQoyfpCiSgxN54bxlhG1Jl-ShPCSU2gPg2vvUrmiGAs9Udx5PwUyQbKZUZw6YAov3ZpxZoaZAjFCSFhy1BSd_E4CYH07R_SV5gr45l-C1VpmEy2og9-crmOX1/s1600/fragment_source_main.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;271&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi055eswFQuS1WqQoyfpCiSgxN54bxlhG1Jl-ShPCSU2gPg2vvUrmiGAs9Udx5PwUyQbKZUZw6YAov3ZpxZoaZAjFCSFhy1BSd_E4CYH07R_SV5gr45l-C1VpmEy2og9-crmOX1/s320/fragment_source_main.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
eclipse上で赤線が出てたら、依存関係が解消されていないので、&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
マウスオーバー（赤線の上にカーソルを合わせる）してサジェスト（カーソルの下に出てくる助言）野中の&quot;import ****&quot;を選択する。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
[#4 Add Fragment Class]&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
プロジェクト名を右クリックして、クラスを追加する。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgLk19jSUuKO9J4S84FdlwwL3VF9d3Orpxp0hpyj5uEdFG_4_300Pdexh9OiWrom8KhJkhxzswQ8sx9aULZbYyzdcMQWCa8-ny-e8oHWCUBRyNqXCtNbnp-1knuGrVotdS4Q4lz/s1600/fragment_new_class.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;265&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgLk19jSUuKO9J4S84FdlwwL3VF9d3Orpxp0hpyj5uEdFG_4_300Pdexh9OiWrom8KhJkhxzswQ8sx9aULZbYyzdcMQWCa8-ny-e8oHWCUBRyNqXCtNbnp-1knuGrVotdS4Q4lz/s320/fragment_new_class.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
クラス名は、またあなたがつけてください。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
クラス作成後のソースに下記を追加。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre class=&quot;java&quot; name=&quot;code&quot;&gt;  private int nAndroids;
  
  public MyFragment() {
      
  }

 /**
  * Constructor for being created explicitly
  */
 public MyFragment(int nAndroids) {
              this.nAndroids = nAndroids;
  }

  /**
   * If we are being created with saved state, restore our state
   */
  @Override
  public void onCreate(Bundle saved) {
      super.onCreate(saved);
      if (null != saved) {
              nAndroids = saved.getInt(&quot;nAndroids&quot;);
      }
  }
  
  /**
   * Save the number of Androids to be displayed
   */
  @Override
  public void onSaveInstanceState(Bundle toSave) {
      toSave.putInt(&quot;nAndroids&quot;, nAndroids);
  }

  /**
   * Make a grid and fill it with n Androids
   */
  @Override
  public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle saved) {
      int n;
      Context c = getActivity().getApplicationContext();
      LinearLayout l = new LinearLayout(c);
      for (n = 0; n &amp;lt; nAndroids; n++) {
              ImageView i = new ImageView(c);
              i.setImageResource(R.drawable.gallery_thumb);
              l.addView(i);
      }
      return l;
  }
&lt;/pre&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
追加後はこんな感じ。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHPWt9cahdtjuZcN4elQ3jdS_azkGZvWqswCuIMLOgy3ZEpVyO5cLvKrZV0pNfHwyqM0U0jD0uv0ur1Et7N-OEvFNva7ws4d-tRDUK5d7Tp1RlvEhUm_uts-dmBY7hZGfXImg7/s1600/fragment_class_source.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHPWt9cahdtjuZcN4elQ3jdS_azkGZvWqswCuIMLOgy3ZEpVyO5cLvKrZV0pNfHwyqM0U0jD0uv0ur1Et7N-OEvFNva7ws4d-tRDUK5d7Tp1RlvEhUm_uts-dmBY7hZGfXImg7/s320/fragment_class_source.png&quot; width=&quot;292&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
最後に、main.xmlにもどって、&quot;MyFragment&quot;と適当に私が入れていた名前を、あなたのクラス名にしてください。&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNQhssFeaAEL1suI42Wzrx61Qz7gFfhCDMQ4xkwB7NfMmetDtQKuqBFawCwtRe9tv6KX7RLDqyQJQ7QzY1-kJqt399RorDSUd93BTm6FY5dQthxmUHSFpGdpMMC2LpXkkVC4Ej/s1600/fragment_class_name.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;228&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNQhssFeaAEL1suI42Wzrx61Qz7gFfhCDMQ4xkwB7NfMmetDtQKuqBFawCwtRe9tv6KX7RLDqyQJQ7QzY1-kJqt399RorDSUd93BTm6FY5dQthxmUHSFpGdpMMC2LpXkkVC4Ej/s320/fragment_class_name.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
[#5 build]&lt;/div&gt;
&lt;div class=&quot;&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
ビルドしてみましょう。&lt;/div&gt;
&lt;div class=&quot;&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Android 4.0.3の横長画面エミュレータではこんな感じ。&lt;/div&gt;
&lt;div class=&quot;&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Galaxy Nexusではこんな画面。なんか意図したものと違う・・・。&lt;/div&gt;
&lt;div class=&quot;&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
私が作りたいのは、Galaxy Nexusでは横に並ぶのではなく、画面遷移・・&lt;/div&gt;
&lt;div class=&quot;&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
そうかListViewもFragmentにしないといけないのかな。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSdkFj-6mlUGwPuX3Vli6JHiZ3NBbwYWsRohR1hPgsHxN9Of4kTbSAKwcroLLaeXH4KIfHuDVyBcBBQ3zrVmBTEquqb_hsI60CY9NGu9tG6YxnYUZj0U5eSVprxrkt6GtrH8gi/s1600/Screenshot_2012-01-07-03-03-10%255B1%255D.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSdkFj-6mlUGwPuX3Vli6JHiZ3NBbwYWsRohR1hPgsHxN9Of4kTbSAKwcroLLaeXH4KIfHuDVyBcBBQ3zrVmBTEquqb_hsI60CY9NGu9tG6YxnYUZj0U5eSVprxrkt6GtrH8gi/s320/Screenshot_2012-01-07-03-03-10%255B1%255D.png&quot; width=&quot;180&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
次回はちゃんと画面遷移ができるようにするぞー！</content><link rel='replies' type='application/atom+xml' href='http://o-san.blogspot.com/feeds/8124341211659501100/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://o-san.blogspot.com/2012/01/galaxy-nexusfragment-i.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9189069/posts/default/8124341211659501100'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9189069/posts/default/8124341211659501100'/><link rel='alternate' type='text/html' href='http://o-san.blogspot.com/2012/01/galaxy-nexusfragment-i.html' title='Galaxy NexusでFragment I'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/17125830027888092718</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUufViIF-KSeGD-mBHf12VWWGVDsoHGgvSPB3eorEAek7v87qjvmcgswu3HGmvk9SQOzqFZV1rSwMSql9SZSwdi9JdkSfs7kMQnTjJSkHL6oIJQqfslW6Kp4Z7xeZpmVZvRMNl/s72-c/fragment_source_tree.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9189069.post-8389181935482849282</id><published>2011-12-18T00:27:00.001+09:00</published><updated>2011-12-18T00:27:28.907+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ANDROID"/><category scheme="http://www.blogger.com/atom/ns#" term="nexus"/><title type='text'>やっとgalaxy nexusにflashが届いた</title><content type='html'>flash playerはandroidマーケットからダウンロード可能です。&lt;div&gt;
&lt;a href=&quot;https://market.android.com/details?id=com.adobe.flashplayer&amp;amp;hl=en&quot;&gt;https://market.android.com/details?id=com.adobe.flashplayer&amp;amp;hl=en&lt;/a&gt;
&lt;/div&gt;
&lt;div&gt;
これまでandroid 4.0(IceCream Sandwich)に未対応で、&lt;/div&gt;
&lt;div&gt;
Galaxy Nexusにはインストール不可能でした。&lt;/div&gt;
&lt;div&gt;
それが昨日4.0に対応したというニュースが出ました。&lt;/div&gt;
&lt;div&gt;
&lt;a href=&quot;http://octoba.net/archives/20111216-android-news-1.html&quot;&gt;http://octoba.net/archives/20111216-android-news-1.html&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
そこで、実際にインストールして見ました。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
やーっと、CNET TVが見られる！嬉しい！ちゃんと動いた。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5zw9FFJiZS8a1gYdnyRY_FyMz5W8QRxIR72UdqeXveLFceImPo3BKSWmNtrq5Dv4j2ycX2TQJQQdu0-4KCVgoWV3_aTo0dAkkCJ6I6a_ZyIwGzNCeegCoc_t73GMpNPhPxeYn/s1600/Screenshot_2011-12-18-00-15-35%255B1%255D.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5zw9FFJiZS8a1gYdnyRY_FyMz5W8QRxIR72UdqeXveLFceImPo3BKSWmNtrq5Dv4j2ycX2TQJQQdu0-4KCVgoWV3_aTo0dAkkCJ6I6a_ZyIwGzNCeegCoc_t73GMpNPhPxeYn/s320/Screenshot_2011-12-18-00-15-35%255B1%255D.png&quot; width=&quot;180&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEja_6iUgu_mAJWBwdnA2j9jID6BubMHav-wDIgwCouWDSgOSm2tWKf8CQaHudkN6YWdy9lSPfCZFAxdcBU3n8RWpbuLEaP-ejFZdgYCOedUk2sHQLZLpOJRek66d9kmpssa0mKD/s1600/Screenshot_2011-12-18-00-18-19%255B1%255D.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;180&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEja_6iUgu_mAJWBwdnA2j9jID6BubMHav-wDIgwCouWDSgOSm2tWKf8CQaHudkN6YWdy9lSPfCZFAxdcBU3n8RWpbuLEaP-ejFZdgYCOedUk2sHQLZLpOJRek66d9kmpssa0mKD/s320/Screenshot_2011-12-18-00-18-19%255B1%255D.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://o-san.blogspot.com/feeds/8389181935482849282/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://o-san.blogspot.com/2011/12/galaxy-nexusflash.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9189069/posts/default/8389181935482849282'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9189069/posts/default/8389181935482849282'/><link rel='alternate' type='text/html' href='http://o-san.blogspot.com/2011/12/galaxy-nexusflash.html' title='やっとgalaxy nexusにflashが届いた'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/17125830027888092718</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5zw9FFJiZS8a1gYdnyRY_FyMz5W8QRxIR72UdqeXveLFceImPo3BKSWmNtrq5Dv4j2ycX2TQJQQdu0-4KCVgoWV3_aTo0dAkkCJ6I6a_ZyIwGzNCeegCoc_t73GMpNPhPxeYn/s72-c/Screenshot_2011-12-18-00-15-35%255B1%255D.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9189069.post-5717483959947415834</id><published>2011-12-17T23:39:00.004+09:00</published><updated>2011-12-18T00:27:28.902+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ANDROID"/><category scheme="http://www.blogger.com/atom/ns#" term="nexus"/><title type='text'>kindle for androidの辞書機能がlimitに引っかかる</title><content type='html'>&lt;div&gt;
AndroidのKindleの辞書機能、微妙に制限がかかっていて辞書閲覧ができません。&lt;/div&gt;
&lt;div&gt;
【背景】&lt;/div&gt;
Galaxy Nexusを手に入れた直後に、1週間英語漬けになる研修に参加する機会を得て&lt;br /&gt;
&lt;div&gt;
多少英語に慣れ親しんだのですが、その後この英語感覚をどう維持しかつ伸ばすか悩みました。&lt;/div&gt;
&lt;div&gt;
読む、聞くは大事だという講師の話を真に受けて、下記２つを実施しようと思っています。&lt;/div&gt;
&lt;div&gt;
１．読む→気に入った記事や論文PDFをKindle for androidで読む&lt;/div&gt;
&lt;div&gt;
２．聞く→Tech News Todayなどの&quot;英語で興味あるPodcast&quot;を聞く&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
１．についてなぜKindle for androidかというと、単純にインターフェースがいいからです。&lt;/div&gt;
&lt;div&gt;
めくる感覚、文字サイズの変更への画面表示の追従、マージン変更、背景色変更、&lt;/div&gt;
&lt;div&gt;
これら標準機能も優れていますが、やはり辞書機能！が素晴らしい。&lt;/div&gt;
&lt;div&gt;
画面をホールド（タップを長時間保持）すると、勝手にタッチした単語がハイライトされて、&lt;/div&gt;
&lt;div&gt;
しかも画面の上か下に辞書が表示されるこの親切設計！&lt;/div&gt;
&lt;div&gt;
デフォルトでOxfordが使用出来ます。&lt;/div&gt;
&lt;div&gt;
「英英辞書を使いなさい」という英語講師の言に忠実に従うことができるし、いい！と思っていました。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
【問題】&lt;/div&gt;
&lt;div&gt;
さて、問題はここから。&lt;/div&gt;
&lt;div&gt;
AmazonからeBook（ファイルはeBook形式）を買ってGalaxy nexusに転送、Kindle for Androidで閲覧すると、確かに辞書機能は有効です。&lt;/div&gt;
&lt;div&gt;
次に、Kindle for Androidが最新版でサポートしたPDF形式の論文を読んで見ました。&lt;/div&gt;
&lt;div&gt;
閲覧はできる、でも・・・辞書機能は無効。これはうれしさ半減。&lt;/div&gt;
&lt;div&gt;
原因はKindle for AndroidがPDF形式に対して辞書機能を適用していないだけのようです。&lt;/div&gt;
&lt;div&gt;
なら、別の手だ。&lt;/div&gt;
&lt;div&gt;
PDF形式をeBook形式（AWZとかEBOKとか）に変換すれば辞書機能を適用してくれるだろう。&lt;/div&gt;
&lt;div&gt;
この変換処理はフリーソフトがやってくれる（mobipocket.com)からできるはず。&lt;/div&gt;
&lt;div&gt;
結果はダメでした。&lt;/div&gt;
&lt;div&gt;
上記フリーソフトで変換はうまく行ったのです。&lt;/div&gt;
&lt;div&gt;
またGalaxy NexusのMTP接続により、その生成ファイルを/kindleフォルダに追加したところ、&lt;/div&gt;
&lt;div&gt;
確かにKindle for Androidから閲覧できます。&lt;/div&gt;
&lt;div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRMyJF7b0a0N_ohtuiwg9ZgXIbSgSpthHXZgQP3eWsm32TW8iGqbb7qiPjcquTJ7O_6G7XGbRCeqVVlMJkeoyLXeh6DhzctjhVML0_n3PDiqsdEmWjCjrnTXXJlzdc8r1NLLtE/s1600/Screenshot_2011-12-17-23-36-16%255B1%255D.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRMyJF7b0a0N_ohtuiwg9ZgXIbSgSpthHXZgQP3eWsm32TW8iGqbb7qiPjcquTJ7O_6G7XGbRCeqVVlMJkeoyLXeh6DhzctjhVML0_n3PDiqsdEmWjCjrnTXXJlzdc8r1NLLtE/s320/Screenshot_2011-12-17-23-36-16%255B1%255D.png&quot; width=&quot;180&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
ん？辞書をダウンロードする？&lt;br /&gt;
なんでだろう、ダウンロードは済んでいるはず。でもまあいいか。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzvw7jq8lZo2adyIxWfx3D-FXCdohlfUzuAw_vefY79HzBCzfHT4cKnlijdtaoU7f9h_2DZv4vmn3P765hk6OdDV8Ifls5OWRi2L_YFclumwbJCOSvyDMIXqsdAh-Piq0pNcAd/s1600/Screenshot_2011-12-17-23-36-24%255B1%255D.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzvw7jq8lZo2adyIxWfx3D-FXCdohlfUzuAw_vefY79HzBCzfHT4cKnlijdtaoU7f9h_2DZv4vmn3P765hk6OdDV8Ifls5OWRi2L_YFclumwbJCOSvyDMIXqsdAh-Piq0pNcAd/s320/Screenshot_2011-12-17-23-36-24%255B1%255D.png&quot; width=&quot;180&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
んん！？リミットを超えました？&lt;br /&gt;
この時点で幾つか対策を実施しました。&lt;br /&gt;
●辞書を使用しているデバイスを減らしてみる→効果なし&lt;br /&gt;
●Kindle for PCからこのPDF由来のeBookを開くと、普通に辞書機能は有効。&lt;br /&gt;
なぜAndroidだけ辞書が使えない？？&lt;br /&gt;
（Kindle Cloud Readerというアプリもあるのですがこれはそもそも辞書機能がないから論外）&lt;br /&gt;
&lt;br /&gt;
だめだ、わからない。&lt;br /&gt;
今、解決策を探しています。&lt;br /&gt;
もう、amazonが更新してくれるのを待つしかないのかな・・・&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://o-san.blogspot.com/feeds/5717483959947415834/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://o-san.blogspot.com/2011/12/kindle-for-androidlimit.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9189069/posts/default/5717483959947415834'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9189069/posts/default/5717483959947415834'/><link rel='alternate' type='text/html' href='http://o-san.blogspot.com/2011/12/kindle-for-androidlimit.html' title='kindle for androidの辞書機能がlimitに引っかかる'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/17125830027888092718</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRMyJF7b0a0N_ohtuiwg9ZgXIbSgSpthHXZgQP3eWsm32TW8iGqbb7qiPjcquTJ7O_6G7XGbRCeqVVlMJkeoyLXeh6DhzctjhVML0_n3PDiqsdEmWjCjrnTXXJlzdc8r1NLLtE/s72-c/Screenshot_2011-12-17-23-36-16%255B1%255D.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9189069.post-7522951762778580983</id><published>2011-12-17T13:42:00.002+09:00</published><updated>2011-12-17T14:07:52.776+09:00</updated><title type='text'>Google+に移行したいと思います</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
【移行前】&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgl3FcRDKMSovhYoycAPI2CO_rfuqAPlhZFUuAez1LFNCzmQAmoXDIerlUYtzpTabRkQqwcq5UidUohMtzbVV3sHlpwhwTAaguPDXuxiJVSrMxmffOu-WxzV0_J2ofMwOoW-Sr/s1600/blogger.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;104&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgl3FcRDKMSovhYoycAPI2CO_rfuqAPlhZFUuAez1LFNCzmQAmoXDIerlUYtzpTabRkQqwcq5UidUohMtzbVV3sHlpwhwTAaguPDXuxiJVSrMxmffOu-WxzV0_J2ofMwOoW-Sr/s320/blogger.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
ついにこのようなお達しが来る時期となってしまいました。&lt;br /&gt;
BloggerからGoogle+に移行してくださいとのこと。&lt;br /&gt;
&lt;br /&gt;
これまでのURLが保存されるのか非常に心配です。&lt;br /&gt;
&lt;br /&gt;
【移行中】&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMuJobGC5lXnVQffmgnk9G6IbymxclDh4clTI9VjPMdK59nY7r3eXcxYPc_ui_3FYacBUxzLyGBXUs6eQ0IHXjdg9ASntnRM5vqD96OPq_KDb39BA-M2Q63bLbxwsymyC26WGn/s1600/blogger2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;180&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMuJobGC5lXnVQffmgnk9G6IbymxclDh4clTI9VjPMdK59nY7r3eXcxYPc_ui_3FYacBUxzLyGBXUs6eQ0IHXjdg9ASntnRM5vqD96OPq_KDb39BA-M2Q63bLbxwsymyC26WGn/s320/blogger2.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
そうか、戻せるのか。&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
【移行後】&lt;br /&gt;
なんにも変わってないようです。プロフィールが変わるだけ。&lt;br /&gt;
Google+側からも、なにか特別に変わった感じで見えるわけではないですね。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipTQ3D_6Buur1lKUE6rXpc5uJf0e4sGL0tc5o8_PQlvI7D4d2oqHx25xi9MSTrQGKqcEGw3nr33jBR1SBZbkWlSfYyMNBepIJ9rx4tn1NXlQX1OFWbCOOV8Wh4vFXEEnSbMtHz/s1600/blogger3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipTQ3D_6Buur1lKUE6rXpc5uJf0e4sGL0tc5o8_PQlvI7D4d2oqHx25xi9MSTrQGKqcEGw3nr33jBR1SBZbkWlSfYyMNBepIJ9rx4tn1NXlQX1OFWbCOOV8Wh4vFXEEnSbMtHz/s1600/blogger3.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
投稿編集画面から、「共有」が選べるようになっていますね。&lt;br /&gt;
これでGoogle+にも同時に投稿できるということでしょうか。</content><link rel='replies' type='application/atom+xml' href='http://o-san.blogspot.com/feeds/7522951762778580983/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://o-san.blogspot.com/2011/12/google.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9189069/posts/default/7522951762778580983'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9189069/posts/default/7522951762778580983'/><link rel='alternate' type='text/html' href='http://o-san.blogspot.com/2011/12/google.html' title='Google+に移行したいと思います'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/17125830027888092718</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgl3FcRDKMSovhYoycAPI2CO_rfuqAPlhZFUuAez1LFNCzmQAmoXDIerlUYtzpTabRkQqwcq5UidUohMtzbVV3sHlpwhwTAaguPDXuxiJVSrMxmffOu-WxzV0_J2ofMwOoW-Sr/s72-c/blogger.png" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9189069.post-8532353583030416826</id><published>2011-12-03T14:43:00.001+09:00</published><updated>2011-12-03T14:56:47.612+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ANDROID"/><category scheme="http://www.blogger.com/atom/ns#" term="nexus"/><title type='text'>Galaxy Nexus(ICS)のスクリーンショット取り出し（MTP接続）</title><content type='html'>android 4.0 icecream sandwichでは、画面のスクリーンショットが撮れます。&lt;br /&gt;
&lt;div&gt;
方法は、電源ボタンと音量ボタンの同時押しです。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Galaxy nexusでスクリーンショットを取り、それをPCに取り込みます。&lt;/div&gt;
&lt;div&gt;
USBでPCに接続すると、MTPかPTPかで接続を選択するように設定できますので、&lt;/div&gt;
&lt;div&gt;
ここではMTPで接続します。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEia1Z_phG2ro5KoR9yUinPARilJhp92H3QGm_YFALfHRcX4-jk_kSdo7BykJVjdbP0t3xUcw8Q4x57SjIJ0onZaQXo4J5dNd2zyZAxb8tKmC4h7S05I5zO5_J1qc8jptMmqipdG/s1600/mtp.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEia1Z_phG2ro5KoR9yUinPARilJhp92H3QGm_YFALfHRcX4-jk_kSdo7BykJVjdbP0t3xUcw8Q4x57SjIJ0onZaQXo4J5dNd2zyZAxb8tKmC4h7S05I5zO5_J1qc8jptMmqipdG/s1600/mtp.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
すると、PC(Windows)側からこのように見えます。&lt;/div&gt;
&lt;div&gt;
フォルダの構造はこんな感じです。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguXE8AElDGjtP03LfV02_mB79EdzYsOie57u6c06ZQJkJgGEL-mpXyFEOukC8vLofBA2ID2Aw0J3w99qUoJkA6wBaAOyvwSC3Jb0NVadGQJedzqdFJcRNQuC9MvDx7GnM-V8lx/s1600/folder_on_pc.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;176&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguXE8AElDGjtP03LfV02_mB79EdzYsOie57u6c06ZQJkJgGEL-mpXyFEOukC8vLofBA2ID2Aw0J3w99qUoJkA6wBaAOyvwSC3Jb0NVadGQJedzqdFJcRNQuC9MvDx7GnM-V8lx/s320/folder_on_pc.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
スクリーンショットは、このPictures-&amp;gt;screenshotsに入っています。&lt;/div&gt;
&lt;div&gt;
また、カメラで撮った写真はというと、DCIMの中に入っています。&lt;/div&gt;
&lt;div&gt;
使い分けができるので嬉しいです。&lt;br /&gt;
&lt;br /&gt;
ちなみにこのMTP接続中でも、スクリーンショットは撮れるようです。&lt;br /&gt;
...まあ、usb接続中ならadb使うよ、という声も聞こえてきそうですが。&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://o-san.blogspot.com/feeds/8532353583030416826/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://o-san.blogspot.com/2011/12/galaxy-nexusicsmtp.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9189069/posts/default/8532353583030416826'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9189069/posts/default/8532353583030416826'/><link rel='alternate' type='text/html' href='http://o-san.blogspot.com/2011/12/galaxy-nexusicsmtp.html' title='Galaxy Nexus(ICS)のスクリーンショット取り出し（MTP接続）'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/17125830027888092718</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEia1Z_phG2ro5KoR9yUinPARilJhp92H3QGm_YFALfHRcX4-jk_kSdo7BykJVjdbP0t3xUcw8Q4x57SjIJ0onZaQXo4J5dNd2zyZAxb8tKmC4h7S05I5zO5_J1qc8jptMmqipdG/s72-c/mtp.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9189069.post-2532909383359666332</id><published>2011-12-03T02:02:00.001+09:00</published><updated>2011-12-03T02:09:04.541+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ANDROID"/><category scheme="http://www.blogger.com/atom/ns#" term="nexus"/><title type='text'>galaxy nexusのadb接続２： wifi経由</title><content type='html'>&lt;a href=&quot;http://o-san.blogspot.com/2011/12/galaxy-nexusadb.html&quot;&gt;前の記事 Galaxy Nexusのadb接続&lt;/a&gt;&amp;nbsp;の続きでございます。&lt;br /&gt;&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
android 3.0(gingerbread)からwifiでのadb接続がデフォルトでできるという情報を得ました。&lt;/div&gt;
&lt;div&gt;
&lt;a href=&quot;http://komugi.net/archives/2010/08/22212755&quot;&gt;コレギドットネット&lt;/a&gt;&amp;nbsp;を参考に、wifiでのadb接続を試みました。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
（環境：Windows 7 home premium 64bit + eclipse 3.5 + adb)&lt;/div&gt;
&lt;div&gt;
0. Windowsボタン→”cmd”と入力し、コマンドプロンプトを起動。&lt;/div&gt;
&lt;div&gt;
1. [USB接続中]adb tcpip &amp;lt;ポート番号&amp;gt;　（適当に52525と入力）&lt;/div&gt;
&lt;div&gt;
2. USB切断&lt;/div&gt;
&lt;div&gt;
3. adb connect &lt;ipアドレス&gt;:&amp;lt;ポート番号&amp;gt;&lt;/ipアドレス&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp;(IPアドレスは、Galaxy Nexus側の設定→wifi→&amp;lt;接続しているLAN&amp;gt;で表示できます）&lt;/div&gt;
&lt;div&gt;
接続完了！&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjWC2fTm1Txrk7zZc4KZT8IaGj1VZfMJseBxvk5oEl3hkr_hJhiTsMAEnmAYciEfky4WB3-EyYpnL6bOnPOQA1n6_JFiNYu0UVa6988AGmj0F93SmmbciHkSbDWJf3eJLcOt6yU/s1600/adb_wifi.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;232&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjWC2fTm1Txrk7zZc4KZT8IaGj1VZfMJseBxvk5oEl3hkr_hJhiTsMAEnmAYciEfky4WB3-EyYpnL6bOnPOQA1n6_JFiNYu0UVa6988AGmj0F93SmmbciHkSbDWJf3eJLcOt6yU/s320/adb_wifi.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
下記が接続した証拠です。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKUiiclS7vE5kptn215TMUS-XuH6d4iHshU_MI-vU6TRtzw6lrIkymvNp0VOs5KhWqWFScdZKIX2bRL1HC2_2u7LlFQfpoGQ_6GlaAtEThz64BHhGGwoslVf4oVnrO_kk2HMjh/s1600/adb_wifi_con.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;226&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKUiiclS7vE5kptn215TMUS-XuH6d4iHshU_MI-vU6TRtzw6lrIkymvNp0VOs5KhWqWFScdZKIX2bRL1HC2_2u7LlFQfpoGQ_6GlaAtEThz64BHhGGwoslVf4oVnrO_kk2HMjh/s320/adb_wifi_con.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://o-san.blogspot.com/feeds/2532909383359666332/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://o-san.blogspot.com/2011/12/galaxy-nexusadb-wifi.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9189069/posts/default/2532909383359666332'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9189069/posts/default/2532909383359666332'/><link rel='alternate' type='text/html' href='http://o-san.blogspot.com/2011/12/galaxy-nexusadb-wifi.html' title='galaxy nexusのadb接続２： wifi経由'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/17125830027888092718</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjWC2fTm1Txrk7zZc4KZT8IaGj1VZfMJseBxvk5oEl3hkr_hJhiTsMAEnmAYciEfky4WB3-EyYpnL6bOnPOQA1n6_JFiNYu0UVa6988AGmj0F93SmmbciHkSbDWJf3eJLcOt6yU/s72-c/adb_wifi.png" height="72" width="72"/><thr:total>0</thr:total></entry></feed>