<?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-6324922420161888454</id><updated>2024-09-07T10:20:05.746+09:00</updated><title type='text'>tmpz84 Blog</title><subtitle type='html'>技術的なことを忘れないように。</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://tmpz84.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6324922420161888454/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://tmpz84.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>tmpz84</name><uri>http://www.blogger.com/profile/01662934538164133888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='18' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3XFXiTDO1FPQmXQAi0mhFtO82W5z31f3NPx77X4RgADVpzbni45E64JiImYDh-og27-zJB3I4a0_4gJhLLJcv7C9j018Jx_rfQviIv_Et0NA4mmGMwQE-01UbL0zt2Hc/s220/IMG_0018.JPG'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>25</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6324922420161888454.post-6616869915857613333</id><published>2012-09-08T22:57:00.002+09:00</published><updated>2012-09-08T22:57:34.091+09:00</updated><title type='text'>ubuntu で zabbix</title><content type='html'>&lt;div&gt;
ubuntu 12 に zabbix をインストールする流れ。&lt;/div&gt;
&lt;div&gt;
こんな感じ。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
apt-get install apache2&lt;div&gt;
&lt;div&gt;
apt-get install php5&lt;/div&gt;
&lt;div&gt;
apt-get install libapache2-mod-php5&lt;/div&gt;
&lt;div&gt;
apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql&lt;/div&gt;
&lt;br /&gt;
apt-get install zabbix-server-mysql zabbix-agent&lt;br /&gt;
apt-get install zabbix-frontend-php&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://tmpz84.blogspot.com/feeds/6616869915857613333/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://tmpz84.blogspot.com/2012/09/ubuntu-zabbix.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6324922420161888454/posts/default/6616869915857613333'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6324922420161888454/posts/default/6616869915857613333'/><link rel='alternate' type='text/html' href='http://tmpz84.blogspot.com/2012/09/ubuntu-zabbix.html' title='ubuntu で zabbix'/><author><name>tmpz84</name><uri>http://www.blogger.com/profile/01662934538164133888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='18' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3XFXiTDO1FPQmXQAi0mhFtO82W5z31f3NPx77X4RgADVpzbni45E64JiImYDh-og27-zJB3I4a0_4gJhLLJcv7C9j018Jx_rfQviIv_Et0NA4mmGMwQE-01UbL0zt2Hc/s220/IMG_0018.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6324922420161888454.post-3504981032329400786</id><published>2011-09-15T19:40:00.001+09:00</published><updated>2011-09-15T19:40:45.861+09:00</updated><title type='text'>Ruby 技術者認定試験 Silver に受かった</title><content type='html'>&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;
&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;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;br /&gt;&lt;/div&gt;
&lt;div&gt;
Array , String , Hash に関連する問題が多かったです。&lt;/div&gt;
&lt;div&gt;
メソッドは、select , detect , collect , map あたり。&lt;/div&gt;
&lt;div&gt;
アルゴリズムを少しだけ考える問題もありました。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
少しだけ引っ掛けというか、&lt;br /&gt;
a = [1, 2, 3, 4]&lt;br /&gt;
a.slice[1, 2]&lt;br /&gt;
p a&lt;br /&gt;
とか。&lt;br /&gt;
sliceが破壊的メソッドじゃないので変更が無いのですよね。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
あとあまり使わない、ファイル open 系から出題がありますが、&lt;/div&gt;
&lt;div&gt;
モードさえわかっていれば大丈夫です。&lt;/div&gt;
&lt;div&gt;
いちおう、仕事で Ruby と Rails を利用していますが、意外にも使うメソッドなんかは限られているので、この手のやつは苦手でした。&lt;br /&gt;
勉強は、２週間前くらいからダラダラと「たのしいRuby第３版」を読みはじめ、&lt;br /&gt;
&lt;div&gt;
５日前から「Ruby技術者認定試験 公式ガイド」の問題をやりました。&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;
基本的に、irb を使ってパラメータを変えたりしてやると良いかと思います。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
応用情報技術者試験と簿記試験があるから、終わった１２月あたりに gold でも受けてみます。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://tmpz84.blogspot.com/feeds/3504981032329400786/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://tmpz84.blogspot.com/2011/09/ruby-silver.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6324922420161888454/posts/default/3504981032329400786'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6324922420161888454/posts/default/3504981032329400786'/><link rel='alternate' type='text/html' href='http://tmpz84.blogspot.com/2011/09/ruby-silver.html' title='Ruby 技術者認定試験 Silver に受かった'/><author><name>tmpz84</name><uri>http://www.blogger.com/profile/01662934538164133888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='18' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3XFXiTDO1FPQmXQAi0mhFtO82W5z31f3NPx77X4RgADVpzbni45E64JiImYDh-og27-zJB3I4a0_4gJhLLJcv7C9j018Jx_rfQviIv_Et0NA4mmGMwQE-01UbL0zt2Hc/s220/IMG_0018.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6324922420161888454.post-714773868840805594</id><published>2011-09-14T12:09:00.000+09:00</published><updated>2011-09-14T12:09:02.441+09:00</updated><title type='text'>rails アプリで rake を実行するとエラーになる</title><content type='html'>&lt;br /&gt;
某アプリを構築するときに、rake コマンドでDBの構築を行いました。&lt;br /&gt;
エラーになって構築できません。&lt;br /&gt;
&lt;br /&gt;
# rake db:create:all&lt;br /&gt;
rake aborted!&lt;br /&gt;
uninitialized constant Rake::DSL&lt;br /&gt;
/usr/local/lib/ruby/gems/1.9.1/gems/aws-s3-0.6.2/lib/aws/s3/extensions.rb:206:in `const_missing_from_s3_library&#39;&lt;br /&gt;
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.2/lib/rake/tasklib.rb:8:in `&lt;class:tasklib&gt;&#39;&lt;/class:tasklib&gt;&lt;br /&gt;
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.2/lib/rake/tasklib.rb:6:in `&lt;module:rake&gt;&#39;&lt;/module:rake&gt;&lt;br /&gt;
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.2/lib/rake/tasklib.rb:3:in `&lt;top (required)=&quot;&quot;&gt;&#39;&lt;/top&gt;&lt;br /&gt;
/usr/local/lib/ruby/gems/1.9.1/gems/rdoc-3.9.4/lib/rdoc/task.rb:37:in `&lt;top (required)=&quot;&quot;&gt;&#39;&lt;/top&gt;&lt;br /&gt;
&lt;br /&gt;
rake のバージョンが 0.9.2 になって、文法が変わったようで&lt;br /&gt;
以下のメッセージが目印になるようです。&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;uninitialized constant Rake::DSL&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
バージョンを確認すると、&lt;br /&gt;
&lt;br /&gt;
# ruby -v&lt;br /&gt;
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux]&lt;br /&gt;
&lt;br /&gt;
# rake --version&lt;br /&gt;
rake, version 0.8.7&lt;br /&gt;
&lt;br /&gt;
エラーになった rake は、0.8.7 でした。&lt;br /&gt;
強制的に rake のバージョンを 0.9.2 にアップっぷ。&lt;br /&gt;
&lt;br /&gt;
# gem install rake -v=0.9.2&lt;br /&gt;
&lt;br /&gt;
# rake --version&lt;br /&gt;
rake, version 0.9.2&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
そしたら動きました。&lt;/div&gt;
&lt;div&gt;
逆もまたしかり。0.8.7 用の文法で 0.9.2 で実行すると動かないようです。&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://tmpz84.blogspot.com/feeds/714773868840805594/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://tmpz84.blogspot.com/2011/09/rails-rake.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6324922420161888454/posts/default/714773868840805594'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6324922420161888454/posts/default/714773868840805594'/><link rel='alternate' type='text/html' href='http://tmpz84.blogspot.com/2011/09/rails-rake.html' title='rails アプリで rake を実行するとエラーになる'/><author><name>tmpz84</name><uri>http://www.blogger.com/profile/01662934538164133888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='18' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3XFXiTDO1FPQmXQAi0mhFtO82W5z31f3NPx77X4RgADVpzbni45E64JiImYDh-og27-zJB3I4a0_4gJhLLJcv7C9j018Jx_rfQviIv_Et0NA4mmGMwQE-01UbL0zt2Hc/s220/IMG_0018.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6324922420161888454.post-843296735833301826</id><published>2011-09-10T15:30:00.000+09:00</published><updated>2011-09-10T15:30:06.145+09:00</updated><title type='text'>Gem install するときに &quot;no such file to load -- zlib&quot; が発生</title><content type='html'>ubuntu + rvm 環境に限らないとは思うのですが、&lt;div&gt;
以下のように、gem install すると zlib が無いと怒られます。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
nakamura@nakamura2:~$ gem install rails -v=3.0.10&lt;/div&gt;
&lt;div&gt;
ERROR: &amp;nbsp;Loading command: install (LoadError)&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; no such file to load -- zlib&lt;/div&gt;
&lt;div&gt;
ERROR: &amp;nbsp;While executing gem ... (NameError)&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; uninitialized constant Gem::Commands::InstallCommand&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
zlib.h が無いからなのかなと勝手に判断して、&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
nakamura@nakamura2:~$ sudo apt-get install zlib1g-dev&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;
nakamura@nakamura2:~$ gem install rails -v=3.0.10&lt;/div&gt;
&lt;div&gt;
ERROR: &amp;nbsp;Loading command: install (LoadError)&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; no such file to load -- zlib&lt;/div&gt;
&lt;div&gt;
ERROR: &amp;nbsp;While executing gem ... (NameError)&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; uninitialized constant Gem::Commands::InstallCommand&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;
おー。だめじゃん。&lt;/div&gt;
&lt;div&gt;
rvm で ruby 1.9.2 をインストールしたきに zlib が無かったから無視されたんかなということで。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
nakamura@nakamura2:~$ ruby -v&lt;/div&gt;
&lt;div&gt;
ruby 1.9.2p290 (2011-07-09 revision 32553) [i686-linux]&lt;/div&gt;
&lt;div&gt;
nakamura@nakamura2:~$ which ruby&lt;/div&gt;
&lt;div&gt;
/home/nakamura/.rvm/rubies/ruby-1.9.2-p290/bin/ruby&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
nakamura@nakamura2:~$ cd ~/.rvm/src/ruby-1.9.2-p290/ext/zlib/&lt;/div&gt;
&lt;div&gt;
nakamura@nakamura2:~/.rvm/src/ruby-1.9.2-p290/ext/zlib$ ruby extconf.rb&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
nakamura@nakamura2:~/.rvm/src/ruby-1.9.2-p290/ext/zlib$ make ;&amp;nbsp;make install&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;
&lt;div&gt;
気を取り直して、えいっや。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
nakamura@nakamura2:~$ gem install rails -v=3.0.10&lt;/div&gt;
&lt;div&gt;
Fetching: activesupport-3.0.10.gem (100%)&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;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://tmpz84.blogspot.com/feeds/843296735833301826/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://tmpz84.blogspot.com/2011/09/gem-install-no-such-file-to-load-zlib.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6324922420161888454/posts/default/843296735833301826'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6324922420161888454/posts/default/843296735833301826'/><link rel='alternate' type='text/html' href='http://tmpz84.blogspot.com/2011/09/gem-install-no-such-file-to-load-zlib.html' title='Gem install するときに &quot;no such file to load -- zlib&quot; が発生'/><author><name>tmpz84</name><uri>http://www.blogger.com/profile/01662934538164133888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='18' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3XFXiTDO1FPQmXQAi0mhFtO82W5z31f3NPx77X4RgADVpzbni45E64JiImYDh-og27-zJB3I4a0_4gJhLLJcv7C9j018Jx_rfQviIv_Et0NA4mmGMwQE-01UbL0zt2Hc/s220/IMG_0018.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6324922420161888454.post-786115123667076731</id><published>2011-09-02T20:06:00.001+09:00</published><updated>2011-09-12T15:39:42.213+09:00</updated><title type='text'>bundle install 時に SSL 関係でエラーになってしまう</title><content type='html'>bundle install をすると以下のように証明書でエラーになってしまう。&lt;br /&gt;
CentOS 5.6 を対象とています。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
$ bundle install --path vendor/bundler&lt;br /&gt;
Fetching https://github.com/mislav/will_paginate.git&lt;br /&gt;
error: SSL certificate problem, verify that the CA cert is OK. Details:&lt;br /&gt;
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed while accessing https://github.com/mislav/will_paginate.git/info/refs&lt;br /&gt;
&lt;br /&gt;
fatal: HTTP request failed&lt;br /&gt;
Git error: command `git clone &#39;https://github.com/mislav/will_paginate.git&#39; &quot;/opt/xxx/vendor/bundler/ruby/1.9.1/cache/bundler/git/will_paginate-bfaeaccc8af94c369b0e2f1626f08b0c9a3a03f1&quot; --bare --no-hardlinks` in directory /opt/xxx has failed.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
あんまりよく無い気がするが以下のコマンドで無視するように設定。&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
$ git config --global http.sslVerify false&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;2011/9/12 追記&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
『2011年5月末以降、github.comにはEV SSL証明書(DigiCert HighAssurance EV CA-1)が使われるようになった。』ということらしく証明書の追加をします。&lt;br /&gt;
&lt;br /&gt;
まず、『DigiCert Trusted Root Authority Certificates』から、『DigiCert High Assurance EV Root CA』をダウンロードします。ダウンロードしたファイル名は『DigiCertHighAssuranceEVRootCA.crt』。これをcurl-ca-bundle.crtに追加します。&lt;br /&gt;
&lt;br /&gt;
# wget -P /tmp https://www.digicert.com/testroot/DigiCertHighAssuranceEVRootCA.crt&lt;br /&gt;
&lt;br /&gt;
# cat /tmp/DigiCertHighAssuranceEVRootCA.crt &amp;gt;&amp;gt; /etc/pki/tls/certs/ca-bundle.crt&lt;br /&gt;
&lt;br /&gt;
証明書の場所はOSやディストリビューションによって違うので、こんな感じで探します。&lt;br /&gt;
$ locate&amp;nbsp;libcurl.so&lt;br /&gt;
...&lt;br /&gt;
$ strings /usr/lib/libcurl.so.3 | grep bundle&lt;br /&gt;
/etc/pki/tls/certs/ca-bundle.crt&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://tmpz84.blogspot.com/feeds/786115123667076731/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://tmpz84.blogspot.com/2011/09/bundle-install-ssl.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6324922420161888454/posts/default/786115123667076731'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6324922420161888454/posts/default/786115123667076731'/><link rel='alternate' type='text/html' href='http://tmpz84.blogspot.com/2011/09/bundle-install-ssl.html' title='bundle install 時に SSL 関係でエラーになってしまう'/><author><name>tmpz84</name><uri>http://www.blogger.com/profile/01662934538164133888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='18' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3XFXiTDO1FPQmXQAi0mhFtO82W5z31f3NPx77X4RgADVpzbni45E64JiImYDh-og27-zJB3I4a0_4gJhLLJcv7C9j018Jx_rfQviIv_Et0NA4mmGMwQE-01UbL0zt2Hc/s220/IMG_0018.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6324922420161888454.post-2501832585978090898</id><published>2011-08-29T23:08:00.000+09:00</published><updated>2011-08-30T08:44:11.326+09:00</updated><title type='text'>Mac Ruby の irb 上で日本語が入力出来ない</title><content type='html'>標準の port でインストールした ruby を含めて&lt;br /&gt;
何も設定せずに rvm で mac ruby をインストールしてあると、irb 上で日本語の入力が出来ません。これを解消します。&lt;br /&gt;
&lt;br /&gt;
問題は、readline のようです。&lt;br /&gt;
以下のコマンドにより readline を利用するオプションを付けて ruby を再インストールします。&lt;br /&gt;
&lt;br /&gt;
OS が Lion であると、問題は無いようです。&lt;br /&gt;
see: &lt;a href=&quot;http://builder.japan.zdnet.com/os-admin/lion-for-developers11/35005492/3/&quot;&gt;http://builder.japan.zdnet.com/os-admin/lion-for-developers11/35005492/3/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
$ sudo port selfupdate&lt;br /&gt;
&lt;div&gt;
$ sudo port install readline&lt;/div&gt;
&lt;div&gt;
$ rvm package install readline&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
$ rvm install 1.8.7 --with-readline-dir=$rvm_path/usr&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
$&amp;nbsp;rvm install 1.9.2 --with-readline-dir=$rvm_path/usr&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
$ irb -Ku&lt;/div&gt;
&lt;div&gt;
ruby-1.8.7 :001 &amp;gt; p &quot;aa&quot;&lt;/div&gt;
&lt;div&gt;
&quot;aa&quot;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp;=&amp;gt; nil&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
ruby-1.8.7 :002 &amp;gt; p &quot;ああ&quot;&lt;/div&gt;
&lt;div&gt;
&quot;ああ&quot;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp;=&amp;gt; nil&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://tmpz84.blogspot.com/feeds/2501832585978090898/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://tmpz84.blogspot.com/2011/08/mac-ruby-irb.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6324922420161888454/posts/default/2501832585978090898'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6324922420161888454/posts/default/2501832585978090898'/><link rel='alternate' type='text/html' href='http://tmpz84.blogspot.com/2011/08/mac-ruby-irb.html' title='Mac Ruby の irb 上で日本語が入力出来ない'/><author><name>tmpz84</name><uri>http://www.blogger.com/profile/01662934538164133888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='18' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3XFXiTDO1FPQmXQAi0mhFtO82W5z31f3NPx77X4RgADVpzbni45E64JiImYDh-og27-zJB3I4a0_4gJhLLJcv7C9j018Jx_rfQviIv_Et0NA4mmGMwQE-01UbL0zt2Hc/s220/IMG_0018.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6324922420161888454.post-2037546685449696547</id><published>2011-08-27T16:36:00.000+09:00</published><updated>2011-08-27T16:55:01.031+09:00</updated><title type='text'>Xperia mini pro (SK17i) を買ってみた（その１）</title><content type='html'>タイトル通り、&lt;a href=&quot;http://www.sonyericsson.com/cws/products/mobilephones/overview/xperia-mini-pro?cc=gb&amp;amp;lc=en&quot;&gt;Xperia mini pro&lt;/a&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/AVvXsEjkGX_O_-clLZvN2U-4op9mIEc5Klbu1L78xTGQ9uCKD3uNgYmemfooEctIWsztJqosvQbfGIaDrfitip6Uo0OMvtBn8b5CYmhnmp1-pYu3Yw7I2RZQ-HSlT87GRurDK8QaOJcMSmGhNVo/s1600/IMG_0691.jpg&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/AVvXsEjkGX_O_-clLZvN2U-4op9mIEc5Klbu1L78xTGQ9uCKD3uNgYmemfooEctIWsztJqosvQbfGIaDrfitip6Uo0OMvtBn8b5CYmhnmp1-pYu3Yw7I2RZQ-HSlT87GRurDK8QaOJcMSmGhNVo/s320/IMG_0691.jpg&quot; width=&quot;239&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
昨年発売された Xperia X10 mini pro の後継にあたる機種で、スライド式のQWERTYキーボードを有しているのが最大の特徴でしょうか。&lt;br /&gt;
&lt;br /&gt;
主なスペックは以下の通りです。&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Qualcomm MSM8255(1GHz)&lt;/li&gt;
&lt;li&gt;512MB メモリ、320MB ROM、2GB microSDHC 付属&lt;/li&gt;
&lt;li&gt;3インチのHVGA (480×320px)&lt;/li&gt;
&lt;li&gt;500万画素(CMOS)のメインカメラ、30万画素(CMOS)のインカメラ&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: &#39;Hiragino Kaku Gothic Pro&#39;; font-size: small;&quot;&gt;重さ136g (iPhone 4 と同じくらい）&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Android 2.3&lt;/li&gt;
&lt;/ul&gt;
iPhone 4 の２年縛りが１年以上残っているのと、android 機を所持していなかったので、お試しを考えハイスペック機に手を出さないようにしようというのもありました。&lt;br /&gt;
&lt;br /&gt;
そうすると、IDEOS あたりも候補だったのですが、ソニー好き＋キーボードが欲しいという事情でこの機種にしました。

この機種は、国内でも秋葉原の店で扱っていますが、人気のようで完売の場合が多く、&lt;a href=&quot;http://1shopmobile.com/&quot;&gt;1shopmobile.com&lt;/a&gt; というネット販売会社から輸入してみることにしました。

この店は微妙に悪い話も聞きすが、職場の後輩が買って問題無かったことや、2ch.net でも問題なく購入できていることから購入に踏み切りました。

&lt;br /&gt;
&lt;br /&gt;
本体 USD 269.0 + 送料 USD 25.0 の合計 USD 294.0&lt;br /&gt;
（クレジットカードの決済は ¥22,977 、レートは、78.15 でした）&lt;br /&gt;
&lt;br /&gt;
さらに通関料が ¥200、消費税・地方消費税が ¥500 でした。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2011年8月18日 16:08 に注文をして、&lt;br /&gt;
その後は、EMS (国際スピード郵便）のトレース情報を。&lt;br /&gt;
8/20 と 8/21 が土日で、ちょうど税関のお休みと重なってしまったため、少し遅れてしまった感じです。&lt;br /&gt;
&lt;table border=&quot;1&quot; cellspacing=&quot;0&quot; cols=&quot;5&quot;&gt;
&lt;colgroup&gt;&lt;col width=&quot;100&quot;&gt;&lt;/col&gt;&lt;col width=&quot;100&quot;&gt;&lt;/col&gt;&lt;col width=&quot;100&quot;&gt;&lt;/col&gt;&lt;col width=&quot;100&quot;&gt;&lt;/col&gt;&lt;col width=&quot;100&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;
&lt;tbody&gt;
&lt;tr&gt;
	&lt;td align=&quot;CENTER&quot; height=&quot;40&quot; rowspan=&quot;2&quot; width=&quot;100&quot;&gt;&lt;b&gt;状態&lt;br /&gt;発生日&lt;/b&gt;&lt;/td&gt;
	&lt;td align=&quot;CENTER&quot; rowspan=&quot;2&quot; width=&quot;100&quot;&gt;&lt;b&gt;状態&lt;/b&gt;&lt;/td&gt;
	&lt;td align=&quot;CENTER&quot; rowspan=&quot;2&quot; width=&quot;100&quot;&gt;&lt;b&gt;詳細&lt;/b&gt;&lt;/td&gt;
	&lt;td align=&quot;CENTER&quot; width=&quot;100&quot;&gt;&lt;b&gt;取扱店名&lt;/b&gt;&lt;/td&gt;
	&lt;td align=&quot;CENTER&quot; rowspan=&quot;2&quot; width=&quot;100&quot;&gt;&lt;b&gt;県名等&lt;/b&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
	&lt;td align=&quot;CENTER&quot;&gt;&lt;b&gt;郵便番号&lt;/b&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
	&lt;td align=&quot;LEFT&quot; height=&quot;41&quot; rowspan=&quot;2&quot;&gt;8月19日&lt;br /&gt;
18:15&lt;/td&gt;
	&lt;td align=&quot;LEFT&quot; rowspan=&quot;2&quot;&gt;引受&lt;/td&gt;
	&lt;td align=&quot;LEFT&quot; rowspan=&quot;2&quot;&gt;&lt;/td&gt;
	&lt;td align=&quot;LEFT&quot;&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;;&quot;&gt;APT&lt;/span&gt;&lt;/td&gt;
	&lt;td align=&quot;LEFT&quot; rowspan=&quot;2&quot;&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;;&quot;&gt;HONG KONG&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
	&lt;td align=&quot;LEFT&quot;&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
	&lt;td align=&quot;LEFT&quot; height=&quot;41&quot; rowspan=&quot;2&quot;&gt;8月19日&lt;br /&gt;
22:14&lt;/td&gt;
	&lt;td align=&quot;LEFT&quot; rowspan=&quot;2&quot;&gt;国際交換支店から発送&lt;/td&gt;
	&lt;td align=&quot;LEFT&quot; rowspan=&quot;2&quot;&gt;&lt;/td&gt;
	&lt;td align=&quot;LEFT&quot;&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;;&quot;&gt;KOWLOON D&lt;/span&gt;&lt;/td&gt;
	&lt;td align=&quot;LEFT&quot; rowspan=&quot;2&quot;&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;;&quot;&gt;HONG KONG&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
	&lt;td align=&quot;LEFT&quot;&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
	&lt;td align=&quot;LEFT&quot; height=&quot;40&quot; rowspan=&quot;2&quot;&gt;8月20日&lt;br /&gt;
14:05&lt;/td&gt;
	&lt;td align=&quot;LEFT&quot; rowspan=&quot;2&quot;&gt;国際交換支店に到着&lt;/td&gt;
	&lt;td align=&quot;LEFT&quot; rowspan=&quot;2&quot;&gt;&lt;/td&gt;
	&lt;td align=&quot;LEFT&quot;&gt;東京国際支店&lt;/td&gt;
	&lt;td align=&quot;LEFT&quot; rowspan=&quot;2&quot;&gt;東京都&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
	&lt;td align=&quot;LEFT&quot;&gt;138-8799&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
	&lt;td align=&quot;LEFT&quot; height=&quot;40&quot; rowspan=&quot;2&quot;&gt;8月20日&lt;br /&gt;
15:15&lt;/td&gt;
	&lt;td align=&quot;LEFT&quot; rowspan=&quot;2&quot;&gt;通関手続中&lt;/td&gt;
	&lt;td align=&quot;LEFT&quot; rowspan=&quot;2&quot;&gt;&lt;/td&gt;
	&lt;td align=&quot;LEFT&quot;&gt;東京国際支店&lt;/td&gt;
	&lt;td align=&quot;LEFT&quot; rowspan=&quot;2&quot;&gt;東京都&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
	&lt;td align=&quot;LEFT&quot;&gt;138-8799&lt;/td&gt;
	&lt;/tr&gt;
&lt;tr&gt;
	&lt;td align=&quot;LEFT&quot; height=&quot;40&quot; rowspan=&quot;2&quot;&gt;8月20日&lt;br /&gt;
20:39&lt;/td&gt;
	&lt;td align=&quot;LEFT&quot; rowspan=&quot;2&quot;&gt;通関手続中&lt;/td&gt;
	&lt;td align=&quot;LEFT&quot; rowspan=&quot;2&quot;&gt;&lt;/td&gt;
	&lt;td align=&quot;LEFT&quot;&gt;東京国際支店&lt;/td&gt;
	&lt;td align=&quot;LEFT&quot; rowspan=&quot;2&quot;&gt;東京都&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
	&lt;td align=&quot;LEFT&quot;&gt;138-8799&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
	&lt;td align=&quot;LEFT&quot; height=&quot;40&quot; rowspan=&quot;2&quot;&gt;8月23日&lt;br /&gt;
14:55&lt;/td&gt;
	&lt;td align=&quot;LEFT&quot; rowspan=&quot;2&quot;&gt;国際交換支店から発送&lt;/td&gt;
	&lt;td align=&quot;LEFT&quot; rowspan=&quot;2&quot;&gt;&lt;/td&gt;
	&lt;td align=&quot;LEFT&quot;&gt;東京国際支店&lt;/td&gt;
	&lt;td align=&quot;LEFT&quot; rowspan=&quot;2&quot;&gt;東京都&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
	&lt;td align=&quot;LEFT&quot;&gt;138-8799&lt;/td&gt;
	&lt;/tr&gt;
&lt;tr&gt;
	&lt;td align=&quot;LEFT&quot; height=&quot;56&quot; rowspan=&quot;2&quot;&gt;8月23日&lt;br /&gt;
22:24&lt;/td&gt;
	&lt;td align=&quot;LEFT&quot; rowspan=&quot;2&quot;&gt;通過&lt;/td&gt;
	&lt;td align=&quot;LEFT&quot; rowspan=&quot;2&quot;&gt;&lt;/td&gt;
	&lt;td align=&quot;LEFT&quot;&gt;さいたま新都心支店&lt;/td&gt;
	&lt;td align=&quot;LEFT&quot; rowspan=&quot;2&quot;&gt;埼玉県&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
	&lt;td align=&quot;LEFT&quot;&gt;330-9799&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
	&lt;td align=&quot;LEFT&quot; height=&quot;40&quot; rowspan=&quot;2&quot;&gt;8月24日&lt;br /&gt;
7:54&lt;/td&gt;
	&lt;td align=&quot;LEFT&quot; rowspan=&quot;2&quot;&gt;到着&lt;/td&gt;
	&lt;td align=&quot;LEFT&quot; rowspan=&quot;2&quot;&gt;&lt;/td&gt;
	&lt;td align=&quot;LEFT&quot;&gt;鳩ヶ谷支店&lt;/td&gt;
	&lt;td align=&quot;LEFT&quot; rowspan=&quot;2&quot;&gt;埼玉県&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
	&lt;td align=&quot;LEFT&quot;&gt;334-8799&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
	&lt;td align=&quot;LEFT&quot; height=&quot;40&quot; rowspan=&quot;2&quot;&gt;8月24日&lt;/td&gt;
	&lt;td align=&quot;LEFT&quot; rowspan=&quot;2&quot;&gt;ご不在のため持ち戻り&lt;/td&gt;
	&lt;td align=&quot;LEFT&quot; rowspan=&quot;2&quot;&gt;&lt;/td&gt;
	&lt;td align=&quot;LEFT&quot;&gt;鳩ヶ谷支店&lt;/td&gt;
	&lt;td align=&quot;LEFT&quot; rowspan=&quot;2&quot;&gt;埼玉県&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
	&lt;td align=&quot;LEFT&quot;&gt;334-8799&lt;/td&gt;
	&lt;/tr&gt;
&lt;tr&gt;
	&lt;td align=&quot;LEFT&quot; height=&quot;40&quot; rowspan=&quot;2&quot;&gt;8月25日&lt;br /&gt;
21:05&lt;/td&gt;
	&lt;td align=&quot;LEFT&quot; rowspan=&quot;2&quot;&gt;お届け先にお届け済み&lt;/td&gt;
	&lt;td align=&quot;LEFT&quot; rowspan=&quot;2&quot;&gt;&lt;/td&gt;
	&lt;td align=&quot;LEFT&quot;&gt;鳩ヶ谷支店&lt;/td&gt;
	&lt;td align=&quot;LEFT&quot; rowspan=&quot;2&quot;&gt;埼玉県&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
	&lt;td align=&quot;LEFT&quot;&gt;334-8799&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://tmpz84.blogspot.com/feeds/2037546685449696547/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://tmpz84.blogspot.com/2011/08/xperia-mini-pro-sk17i.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6324922420161888454/posts/default/2037546685449696547'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6324922420161888454/posts/default/2037546685449696547'/><link rel='alternate' type='text/html' href='http://tmpz84.blogspot.com/2011/08/xperia-mini-pro-sk17i.html' title='Xperia mini pro (SK17i) を買ってみた（その１）'/><author><name>tmpz84</name><uri>http://www.blogger.com/profile/01662934538164133888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='18' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3XFXiTDO1FPQmXQAi0mhFtO82W5z31f3NPx77X4RgADVpzbni45E64JiImYDh-og27-zJB3I4a0_4gJhLLJcv7C9j018Jx_rfQviIv_Et0NA4mmGMwQE-01UbL0zt2Hc/s220/IMG_0018.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjkGX_O_-clLZvN2U-4op9mIEc5Klbu1L78xTGQ9uCKD3uNgYmemfooEctIWsztJqosvQbfGIaDrfitip6Uo0OMvtBn8b5CYmhnmp1-pYu3Yw7I2RZQ-HSlT87GRurDK8QaOJcMSmGhNVo/s72-c/IMG_0691.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6324922420161888454.post-7845668227225218963</id><published>2011-08-20T13:31:00.001+09:00</published><updated>2011-08-20T13:37:50.504+09:00</updated><title type='text'>MySQL のログをローテートする</title><content type='html'>MySQLのログをローテートします。&lt;br /&gt;
CentOS 5.5 を利用しています。&lt;br /&gt;
&lt;br /&gt;
参考：http://dev.mysql.com/doc/refman/5.1/ja/log-file-maintenance.html&lt;br /&gt;
&lt;br /&gt;
Linux環境でオフィシャルの rpm でインストールしていれば、mysql-log-rotate というスクリプトファイルが&lt;br /&gt;
インストールされているので、これを利用してみます。&lt;br /&gt;
mysqladmin コマンドから flush-logs アクションを実行するのにrootユーザーのパスワードの指定が&lt;br /&gt;
必要です。&lt;br /&gt;
&lt;br /&gt;
$ locate mysql-log-rotate &lt;br /&gt;
/usr/share/mysql/mysql-log-rotate&lt;br /&gt;
&lt;br /&gt;
logrotated から利用するので /etc/logrotate.d にコピーします。&lt;br /&gt;
# cp /usr/share/mysql/mysql-log-rotate /etc/logrotate.d/mysql&lt;br /&gt;
&lt;br /&gt;
ログファイルのパスを設定します。&lt;br /&gt;
# vi /etc/logrotate.d/mysql&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
/var/lib/mysql/mysqld.log {&lt;br /&gt;
        # create 600 mysql mysql&lt;br /&gt;
↓&lt;br /&gt;
/var/lib/mysql/mysql.log {&lt;br /&gt;
        # create 600 mysql mysql&lt;br /&gt;
&lt;br /&gt;
などに変更する。&lt;br /&gt;
&lt;br /&gt;
/root/.my.cnf に mysql-log-rotate アクションを実行するために実行ユーザーとパスワードを設定します。&lt;br /&gt;
sudo vi /root/.my.cnf &lt;br /&gt;
[mysqladmin]&lt;br /&gt;
password = &quot;password&quot;&lt;br /&gt;
user= root&lt;br /&gt;
&lt;br /&gt;
パーミッションを変更します。&lt;br /&gt;
chmod 600 /root/.my.cnf&lt;br /&gt;
&lt;br /&gt;
</content><link rel='replies' type='application/atom+xml' href='http://tmpz84.blogspot.com/feeds/7845668227225218963/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://tmpz84.blogspot.com/2011/08/mysql.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6324922420161888454/posts/default/7845668227225218963'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6324922420161888454/posts/default/7845668227225218963'/><link rel='alternate' type='text/html' href='http://tmpz84.blogspot.com/2011/08/mysql.html' title='MySQL のログをローテートする'/><author><name>tmpz84</name><uri>http://www.blogger.com/profile/01662934538164133888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='18' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3XFXiTDO1FPQmXQAi0mhFtO82W5z31f3NPx77X4RgADVpzbni45E64JiImYDh-og27-zJB3I4a0_4gJhLLJcv7C9j018Jx_rfQviIv_Et0NA4mmGMwQE-01UbL0zt2Hc/s220/IMG_0018.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6324922420161888454.post-4301576947922726830</id><published>2011-08-18T22:13:00.001+09:00</published><updated>2011-08-18T22:13:26.220+09:00</updated><title type='text'>nginx のログローテート</title><content type='html'>nginx に シグナル USR1 を送信するとログファイルを開き直すので、これを利用します。&lt;br /&gt;
&lt;br /&gt;
see: http://wiki.nginx.org/NginxLogRotation&lt;br /&gt;
&lt;br /&gt;
実際には、USR1 を送信するシェルを書いて cron で定期実行させるか、logrotated を利用するかの方法があるかと思います。&lt;br /&gt;
&lt;br /&gt;
今回は、logrotated を利用します。&lt;br /&gt;
&lt;br /&gt;
vi&amp;nbsp;/etc/logrotate.d/nginx&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
/opt/nginx/logs/access.log {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; daily&lt;br /&gt;
&amp;nbsp; &amp;nbsp; dateext&lt;br /&gt;
&amp;nbsp; &amp;nbsp; rotate 365&lt;br /&gt;
&amp;nbsp; &amp;nbsp; missingok&lt;br /&gt;
&amp;nbsp; &amp;nbsp; ifempty&lt;br /&gt;
&amp;nbsp; &amp;nbsp; sharedscripts&lt;br /&gt;
&amp;nbsp; &amp;nbsp; postrotate&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; test ! -f /opt/nginx/logs/nginx.pid || kill -USR1 `cat /opt/nginx/logs/nginx.pid`&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /bin/mv /opt/nginx/logs/access.log-`date &#39;+%Y%m%d&#39;` /opt/nginx/logs/access.log.`date &#39;+%Y%m%d&#39; -d &#39;1days ago&#39;`&lt;br /&gt;
&amp;nbsp; &amp;nbsp; endscript&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://tmpz84.blogspot.com/feeds/4301576947922726830/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://tmpz84.blogspot.com/2011/08/nginx.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6324922420161888454/posts/default/4301576947922726830'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6324922420161888454/posts/default/4301576947922726830'/><link rel='alternate' type='text/html' href='http://tmpz84.blogspot.com/2011/08/nginx.html' title='nginx のログローテート'/><author><name>tmpz84</name><uri>http://www.blogger.com/profile/01662934538164133888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='18' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3XFXiTDO1FPQmXQAi0mhFtO82W5z31f3NPx77X4RgADVpzbni45E64JiImYDh-og27-zJB3I4a0_4gJhLLJcv7C9j018Jx_rfQviIv_Et0NA4mmGMwQE-01UbL0zt2Hc/s220/IMG_0018.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6324922420161888454.post-1947748842982549689</id><published>2011-08-15T20:23:00.002+09:00</published><updated>2011-08-15T22:23:01.624+09:00</updated><title type='text'>Mac OS X に MySQL 5.5 をインストールする</title><content type='html'>MacOS X に MySQL 5.5 をインストールします。&lt;br /&gt;
記事にしなくても良いくらいに簡単。&lt;br /&gt;
&lt;br /&gt;
まずはインストール用ファイルをダウンロードします。&lt;br /&gt;
http://dev.mysql.com/downloads/mysql/&lt;br /&gt;
&lt;br /&gt;
32bitもしくは64bit、アーカイブの種類で分かれていますが、&lt;br /&gt;
私は、Mac OS X ver. 10.6 (x86, 32-bit), DMG Archive	を選びました。&lt;br /&gt;
&lt;br /&gt;
DMGファイル(mysql-5.5.15-osx10.6-x86.dmg)をクリックしてマウントします。&lt;br /&gt;
４つのファイルがあります。&lt;br /&gt;
mysql-5.5.15-osx10.6-x86.pkg&lt;br /&gt;
MySQL.prefPane&lt;br /&gt;
MySQLstartupItem.pkg&lt;br /&gt;
ReadMe.txt&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/AVvXsEhfI59JiOwmBDMM8NOCwPQHyzdt1ybna8fb1Ay3rLiWEudaAKbd9ZPhbvirjh0Ia9Lc0Gpy8Yup3WumVnsMWrva9zOMi6XhmaN9M_WU6RaNdWo41qvNj0wGqBF5DRV4ixNTH4DCx8MA75g/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588%25EF%25BC%25882011-08-15+19.07.21%25EF%25BC%2589.png&quot; imageanchor=&quot;1&quot; style=&quot;clear:left; float:left;margin-right:1em; margin-bottom:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;170&quot; width=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfI59JiOwmBDMM8NOCwPQHyzdt1ybna8fb1Ay3rLiWEudaAKbd9ZPhbvirjh0Ia9Lc0Gpy8Yup3WumVnsMWrva9zOMi6XhmaN9M_WU6RaNdWo41qvNj0wGqBF5DRV4ixNTH4DCx8MA75g/s320/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588%25EF%25BC%25882011-08-15+19.07.21%25EF%25BC%2589.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
順番に実行します。&lt;br /&gt;
1. 本体のインストール&lt;br /&gt;
&lt;br /&gt;
mysql-5.5.15-osx10.6-x86.pkg&lt;br /&gt;
をダブルクリック&lt;br /&gt;
&lt;br /&gt;
2. 自動起動スクリプトのインストール&lt;br /&gt;
&lt;br /&gt;
MySQLstartupItem.pkg&lt;br /&gt;
をダブルクリック&lt;br /&gt;
&lt;br /&gt;
3. システム環境設定用ファイルのインストール&lt;br /&gt;
&lt;br /&gt;
MySQL.prefPane&lt;br /&gt;
をダブルクリック&lt;br /&gt;
&lt;br /&gt;
ターミナルを起動して設定ファイルをコピーする。&lt;br /&gt;
sudo cp /usr/local/mysql/support-files/my-medium.cnf /etc/my.cnf&lt;br /&gt;
&lt;br /&gt;
</content><link rel='replies' type='application/atom+xml' href='http://tmpz84.blogspot.com/feeds/1947748842982549689/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://tmpz84.blogspot.com/2011/08/mac-os-x-mysql-55.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6324922420161888454/posts/default/1947748842982549689'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6324922420161888454/posts/default/1947748842982549689'/><link rel='alternate' type='text/html' href='http://tmpz84.blogspot.com/2011/08/mac-os-x-mysql-55.html' title='Mac OS X に MySQL 5.5 をインストールする'/><author><name>tmpz84</name><uri>http://www.blogger.com/profile/01662934538164133888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='18' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3XFXiTDO1FPQmXQAi0mhFtO82W5z31f3NPx77X4RgADVpzbni45E64JiImYDh-og27-zJB3I4a0_4gJhLLJcv7C9j018Jx_rfQviIv_Et0NA4mmGMwQE-01UbL0zt2Hc/s220/IMG_0018.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfI59JiOwmBDMM8NOCwPQHyzdt1ybna8fb1Ay3rLiWEudaAKbd9ZPhbvirjh0Ia9Lc0Gpy8Yup3WumVnsMWrva9zOMi6XhmaN9M_WU6RaNdWo41qvNj0wGqBF5DRV4ixNTH4DCx8MA75g/s72-c/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588%25EF%25BC%25882011-08-15+19.07.21%25EF%25BC%2589.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6324922420161888454.post-1126125659393075372</id><published>2011-08-15T18:46:00.003+09:00</published><updated>2011-08-15T18:57:22.728+09:00</updated><title type='text'>Twitter であるユーザーのフォロワーを追う</title><content type='html'>Twitter の followers は、フォローした場合はメールで通知されます。&lt;br /&gt;
反対にリムーブした場合は、通知されないので、任意のタイミングごとにチェックして&lt;br /&gt;
結果を出力する、Ruby スクリプトを作ってみました。&lt;br /&gt;
&lt;br /&gt;
Ruby 1.9.2 p180  で動作確認しています。&lt;br /&gt;
SQLite3 を利用しています。&lt;br /&gt;
このプログラムによって何らかの問題があっても、私（tmpz84）は責任を持ちません。&lt;br /&gt;
&lt;br /&gt;
twifol.rb を&lt;a href=&quot;http://cisse.sakura.ne.jp/nax/storage/twifol.rb&quot;&gt;ダウンロード&lt;/a&gt;。&lt;br /&gt;
&lt;br /&gt;
以下のGemを利用しているのでインストールします。&lt;br /&gt;
sqlite3 (1.3.3)&lt;br /&gt;
sqlite3-ruby (1.3.3)&lt;br /&gt;
twitter (1.6.0)&lt;br /&gt;
&lt;br /&gt;
インストール方法&lt;br /&gt;
$ gem install twitter &lt;br /&gt;
$ gem install sqlite3-ruby&lt;br /&gt;
&lt;br /&gt;
情報を保存するファイル（テーブル）を作成します。&lt;br /&gt;
以下のコマンドを実行する場所は、ruby スクリプトを設置すると同じディレクトリです。&lt;br /&gt;
$ sqlite3 data.db&lt;br /&gt;
SQLite version 3.6.14.2&lt;br /&gt;
Enter &quot;.help&quot; for instructions&lt;br /&gt;
Enter SQL statements terminated with a &quot;;&quot;&lt;br /&gt;
sqlite&gt; CREATE TABLE follwers (&lt;br /&gt;
   ...&gt; id INTEGER,&lt;br /&gt;
   ...&gt; name TEXT,&lt;br /&gt;
   ...&gt; created_on TEXT,&lt;br /&gt;
   ...&gt; updated_on TEXT,&lt;br /&gt;
   ...&gt; deleted_on TEXT&lt;br /&gt;
   ...&gt; );&lt;br /&gt;
sqlite&gt; .table&lt;br /&gt;
follwers&lt;br /&gt;
&lt;br /&gt;
チェックする twitter アカウントを TARGET_ID を vi などで編集してください。&lt;br /&gt;
これで実行できます。&lt;br /&gt;
$ ruby twifol.rb&lt;br /&gt;
&lt;br /&gt;
</content><link rel='replies' type='application/atom+xml' href='http://tmpz84.blogspot.com/feeds/1126125659393075372/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://tmpz84.blogspot.com/2011/08/twitter.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6324922420161888454/posts/default/1126125659393075372'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6324922420161888454/posts/default/1126125659393075372'/><link rel='alternate' type='text/html' href='http://tmpz84.blogspot.com/2011/08/twitter.html' title='Twitter であるユーザーのフォロワーを追う'/><author><name>tmpz84</name><uri>http://www.blogger.com/profile/01662934538164133888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='18' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3XFXiTDO1FPQmXQAi0mhFtO82W5z31f3NPx77X4RgADVpzbni45E64JiImYDh-og27-zJB3I4a0_4gJhLLJcv7C9j018Jx_rfQviIv_Et0NA4mmGMwQE-01UbL0zt2Hc/s220/IMG_0018.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6324922420161888454.post-477621725289208182</id><published>2011-08-13T15:19:00.002+09:00</published><updated>2011-08-13T15:35:57.624+09:00</updated><title type='text'>CentOS 5.5 から 5.6 へアップデート</title><content type='html'>CentOS 5.5 から 5.6 へアップデートする方法&lt;br /&gt;&lt;br /&gt;リリースノートの通りで、比較的簡単です。&lt;br /&gt;http://wiki.centos.org/Manuals/ReleaseNotes/CentOS5.6/Japanese#head-6ece74d57ce0efb64ab9b27d508b9f19be81bd7a&lt;br /&gt;&lt;br /&gt;私が実行したコマンドのメモ&lt;br /&gt;&lt;br /&gt;# cat /etc/redhat-release &lt;br /&gt;CentOS release 5.5 (Final)&lt;br /&gt;&lt;br /&gt;yum clean all&lt;br /&gt;yum update glibc\*&lt;br /&gt;yum update -y yum\* rpm\* pyth\*&lt;br /&gt;yum clean all&lt;br /&gt;yum update -y mkinitrd nash&lt;br /&gt;yum update -y selinux\*&lt;br /&gt;yum update -y&lt;br /&gt;shutdown -r now&lt;br /&gt;&lt;br /&gt;#  cat /etc/redhat-release &lt;br /&gt;CentOS release 5.6 (Final)&lt;br /&gt;&lt;br /&gt;無事に 5.6 にアップデート出来ました。&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://tmpz84.blogspot.com/feeds/477621725289208182/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://tmpz84.blogspot.com/2011/08/centos-55-56.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6324922420161888454/posts/default/477621725289208182'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6324922420161888454/posts/default/477621725289208182'/><link rel='alternate' type='text/html' href='http://tmpz84.blogspot.com/2011/08/centos-55-56.html' title='CentOS 5.5 から 5.6 へアップデート'/><author><name>tmpz84</name><uri>http://www.blogger.com/profile/01662934538164133888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='18' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3XFXiTDO1FPQmXQAi0mhFtO82W5z31f3NPx77X4RgADVpzbni45E64JiImYDh-og27-zJB3I4a0_4gJhLLJcv7C9j018Jx_rfQviIv_Et0NA4mmGMwQE-01UbL0zt2Hc/s220/IMG_0018.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6324922420161888454.post-975774504286263323</id><published>2011-07-13T00:47:00.007+09:00</published><updated>2011-07-13T09:15:23.814+09:00</updated><title type='text'>さくらのレンタルサーバーに Rails 3 をインストールする</title><content type='html'>さくらのレンタルサーバーに Rails 3 をインストールします。&lt;br /&gt;&lt;br /&gt;参考ページ：http://www.masahiko.info/it/archives/000980.html&lt;br /&gt;&lt;br /&gt;スタンダードプラン以上ならインストール出来るはずです。&lt;br /&gt;現在の Ruby と gem のバージョンは以下のようになっています。&lt;br /&gt;これらを 1.9.2 p180 に変更し、Rails を導入します。&lt;br /&gt;（shell は、bash を利用しています）&lt;br /&gt;&lt;br /&gt;[cisse@www806 ~]$ ruby --version&lt;br /&gt;ruby 1.8.7 (2009-12-24 patchlevel 248) [i386-freebsd7]&lt;br /&gt;[cisse@www806 ~/src]$ gem --version&lt;br /&gt;1.3.7&lt;br /&gt;&lt;br /&gt;$HOMEに「src」フォルダを作成。&lt;br /&gt;&lt;br /&gt;$ mkdir ~/local &lt;br /&gt;$ mkdir ~/local/src&lt;br /&gt;$ cd ~/local/src&lt;br /&gt;&lt;br /&gt;$ wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.2-p180.tar.gz&lt;br /&gt;$ tar xzvf ruby-1.9.2-p180.tar.gz&lt;br /&gt;&lt;br /&gt;$ cd ruby-1.9.2-p180&lt;br /&gt;$ ./configure --prefix=$HOME/local&lt;br /&gt;$ make&lt;br /&gt;$ make install&lt;br /&gt;&lt;br /&gt;RubyとRubyGemなどのパスを設定&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;$ vi ~/.bashrc&lt;br /&gt;&lt;br /&gt;export PATH=$HOME/local/bin:$HOME/usr/local/bin:$PATH&lt;br /&gt;export RUBYLIB=$HOME/local/lib/ruby/site_ruby/1.9.1:$HOME/local/lib/ruby&lt;br /&gt;export GEM_HOME=$HOME/local/lib/ruby/gems&lt;br /&gt;&lt;br /&gt;以下のコマンドで環境設定の変更を適用。&lt;br /&gt;source ~/.bashrc &lt;br /&gt;&lt;br /&gt;正しく適用されているかを確認する。&lt;br /&gt;[cisse@www806 ~/local/src/ruby-1.9.2-p180]$ ruby --version&lt;br /&gt;ruby 1.9.2p180 (2011-02-18 revision 30909) [i386-freebsd7.1]&lt;br /&gt;[cisse@www806 ~/local/src/ruby-1.9.2-p180]$ gem --version&lt;br /&gt;1.3.7&lt;br /&gt;&lt;br /&gt;Rails をインストールする&lt;br /&gt;$ gem install rails&lt;br /&gt;&lt;br /&gt;rails がインストールされているかを確認&lt;br /&gt;[cisse@www806 ~/local/lib/ruby/gems/bin]$ rails&lt;br /&gt;-bash: rails: command not found&lt;br /&gt;&lt;br /&gt;コマンドが見つからない！&lt;br /&gt;gem list でインストールされているかを確認する。&lt;br /&gt;[cisse@www806 ~]$ gem list -d rails&lt;br /&gt;&lt;br /&gt;*** LOCAL GEMS ***&lt;br /&gt;&lt;br /&gt;rails (3.0.9)&lt;br /&gt;    Author: David Heinemeier Hansson&lt;br /&gt;    Rubyforge: http://rubyforge.org/projects/rails&lt;br /&gt;    Homepage: http://www.rubyonrails.org&lt;br /&gt;    Installed at: /home/cisse/local/lib/ruby/gems&lt;br /&gt;&lt;br /&gt;    Full-stack web application framework.&lt;br /&gt;&lt;br /&gt;/home/cisse/local/lib/ruby/gems にインストールされている。&lt;br /&gt;$ env | grep &quot;^PATH&quot;&lt;br /&gt;PATH=/home/cisse/local/lib/ruby/gem/bin:/home/cisse/local/bin:/home/cisse/usr/local/bin:/home/cisse/local/bin:/home/cisse/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/home/cisse/bin&lt;br /&gt;&lt;br /&gt;よくみると、gem になっていて、s が抜けている。&lt;br /&gt;ということで、~/.bashrc を修正。&lt;br /&gt;&lt;br /&gt;export PATH=$HOME/local/lib/ruby/gem/bin:&lt;br /&gt;↓&lt;br /&gt;export PATH=$HOME/local/lib/ruby/gems/bin:&lt;br /&gt;&lt;br /&gt;[cisse@www806 ~]$ rails -v&lt;br /&gt;Rails 3.0.9&lt;br /&gt;&lt;br /&gt;無事にインストールされました。</content><link rel='replies' type='application/atom+xml' href='http://tmpz84.blogspot.com/feeds/975774504286263323/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://tmpz84.blogspot.com/2011/07/rails-3.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6324922420161888454/posts/default/975774504286263323'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6324922420161888454/posts/default/975774504286263323'/><link rel='alternate' type='text/html' href='http://tmpz84.blogspot.com/2011/07/rails-3.html' title='さくらのレンタルサーバーに Rails 3 をインストールする'/><author><name>tmpz84</name><uri>http://www.blogger.com/profile/01662934538164133888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='18' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3XFXiTDO1FPQmXQAi0mhFtO82W5z31f3NPx77X4RgADVpzbni45E64JiImYDh-og27-zJB3I4a0_4gJhLLJcv7C9j018Jx_rfQviIv_Et0NA4mmGMwQE-01UbL0zt2Hc/s220/IMG_0018.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6324922420161888454.post-5026415674963249620</id><published>2011-07-11T02:57:00.002+09:00</published><updated>2011-07-11T09:52:10.939+09:00</updated><title type='text'>DVD を iPhone で見る</title><content type='html'>入院中は暇なんで、持っているDVDを iPhone で見るための手順。&lt;br /&gt;ちなみに Mac です。&lt;br /&gt;&lt;br /&gt;1) Mac The Ripper を使う。&lt;br /&gt;&lt;br /&gt;Mac The RIpper で DVD をリッピングします。&lt;br /&gt;リッピングした情報は、win7 でも見れるから便利です。&lt;br /&gt;&lt;br /&gt;2) Handbrake を使って変換&lt;br /&gt;&lt;br /&gt;Handbreake (http://handbrake.fr/) をダウンロード。</content><link rel='replies' type='application/atom+xml' href='http://tmpz84.blogspot.com/feeds/5026415674963249620/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://tmpz84.blogspot.com/2011/07/dvd-iphone-de.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6324922420161888454/posts/default/5026415674963249620'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6324922420161888454/posts/default/5026415674963249620'/><link rel='alternate' type='text/html' href='http://tmpz84.blogspot.com/2011/07/dvd-iphone-de.html' title='DVD を iPhone で見る'/><author><name>tmpz84</name><uri>http://www.blogger.com/profile/01662934538164133888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='18' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3XFXiTDO1FPQmXQAi0mhFtO82W5z31f3NPx77X4RgADVpzbni45E64JiImYDh-og27-zJB3I4a0_4gJhLLJcv7C9j018Jx_rfQviIv_Et0NA4mmGMwQE-01UbL0zt2Hc/s220/IMG_0018.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6324922420161888454.post-3052515672121382027</id><published>2011-07-10T16:35:00.005+09:00</published><updated>2011-07-12T03:47:31.597+09:00</updated><title type='text'>Paralleles 6 に Windows 98 SE をインストールする</title><content type='html'>Wizardry コレクションをやりたいので、Win98 環境を整えることに。&lt;br /&gt;その作業メモです。&lt;br /&gt;&lt;br /&gt;- ちなみに CDROM ブート出来る、Windows 98 SE の CDROM は持っています。&lt;br /&gt;&lt;br /&gt;1) 仮想マシンを作成します。ターゲットOSはWin98にしました。&lt;br /&gt;　ハードディスクは、 0.4GB (410MB) 、メモリは256MB としました。&lt;br /&gt;2) 起動フロッピーのイメージをネットで探したところ、http://www.allbootdisks.com/ にあり、そのフロッピーイメージを parallels でマウントして、ブートします。&lt;br /&gt;3) ブートすると、fdisk と format を使ってインストール用ドライブを作成します。&lt;br /&gt;4) CDROMのsetup.exeを実行して、インストールを開始します。&lt;br /&gt;　（１時間くらいかかるかな）&lt;br /&gt;&lt;br /&gt;5) インストール後に Parallels Tools をインストールします。&lt;br /&gt;参考：http://download.parallels.com/desktop/v6/docs/en/Parallels_Desktop_Users_Guide/22573.htm&lt;br /&gt;&lt;br /&gt;まず、Prallels Tools のインストール媒体(isoイメージ)をマウントします。&lt;br /&gt;場所は、/Library/Parallels/Tools/prl-tools-other.iso&lt;br /&gt;&lt;br /&gt;5-1) ディスプレイアダプタ&lt;br /&gt;&lt;br /&gt;Win 98 上で、マウントしたCDROMが見えているのを確認します。&lt;br /&gt;スタートメニュー → 設定 → コントロールパネルをクリック。画面をクリック。&lt;br /&gt;設定タブをクリック。&lt;br /&gt;詳細をクリック。&lt;br /&gt;アダプタタブをクリック。&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9sEgu_4KrFppY0MLEpiemPs74VOanG24vMFd6-g5Y8EpI1sbP6iHy_ZJrhRIgDwlka7JJr2qq6vpGhRLywQhzhanOuw2I-WeukdQoPzDqvwK_Xc0bxMdq-MlrhTkW3Vk5hlqJBm-0_vE/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588%25EF%25BC%25882011-07-10+18.15.26%25EF%25BC%2589.png&quot;&gt;&lt;img style=&quot;float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 320px; height: 200px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9sEgu_4KrFppY0MLEpiemPs74VOanG24vMFd6-g5Y8EpI1sbP6iHy_ZJrhRIgDwlka7JJr2qq6vpGhRLywQhzhanOuw2I-WeukdQoPzDqvwK_Xc0bxMdq-MlrhTkW3Vk5hlqJBm-0_vE/s320/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588%25EF%25BC%25882011-07-10+18.15.26%25EF%25BC%2589.png&quot; border=&quot;0&quot; alt=&quot;&quot;id=&quot;BLOGGER_PHOTO_ID_5627653167652274114&quot; /&gt;&lt;/a&gt;&lt;br /&gt;検索場所の指定でマウントしたCDROMのD:¥Drivers¥Video¥Win9x&lt;br /&gt;再起動します。</content><link rel='replies' type='application/atom+xml' href='http://tmpz84.blogspot.com/feeds/3052515672121382027/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://tmpz84.blogspot.com/2011/07/paralleles-6-windows-98-se.html#comment-form' title='2 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6324922420161888454/posts/default/3052515672121382027'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6324922420161888454/posts/default/3052515672121382027'/><link rel='alternate' type='text/html' href='http://tmpz84.blogspot.com/2011/07/paralleles-6-windows-98-se.html' title='Paralleles 6 に Windows 98 SE をインストールする'/><author><name>tmpz84</name><uri>http://www.blogger.com/profile/01662934538164133888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='18' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3XFXiTDO1FPQmXQAi0mhFtO82W5z31f3NPx77X4RgADVpzbni45E64JiImYDh-og27-zJB3I4a0_4gJhLLJcv7C9j018Jx_rfQviIv_Et0NA4mmGMwQE-01UbL0zt2Hc/s220/IMG_0018.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9sEgu_4KrFppY0MLEpiemPs74VOanG24vMFd6-g5Y8EpI1sbP6iHy_ZJrhRIgDwlka7JJr2qq6vpGhRLywQhzhanOuw2I-WeukdQoPzDqvwK_Xc0bxMdq-MlrhTkW3Vk5hlqJBm-0_vE/s72-c/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588%25EF%25BC%25882011-07-10+18.15.26%25EF%25BC%2589.png" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6324922420161888454.post-3795778254927331236</id><published>2011-07-09T21:33:00.003+09:00</published><updated>2011-07-09T21:58:28.817+09:00</updated><title type='text'>iPhone の内容を工場出荷状態に戻す</title><content type='html'>iOS 5 β2 から 4.3 に戻したいんだけど、リストアをクリックしてもエラーが出て戻らないので DFU モードから強制的に 4.3 にします。&lt;br /&gt;&lt;br /&gt;1.iPhone を DFU モードでブートする&lt;br /&gt;&lt;br /&gt;iPhone の電源を切ります。&lt;br /&gt;PC 側では、iPhone を繋げたままにして、iTunes を起動しておきます。&lt;br /&gt;&lt;br /&gt;iPhoneのホームボタンとスリープボタンを同時押し、そのまま10秒待ちます。&lt;br /&gt;10秒経ったらスリープボタンだけを離します。&lt;br /&gt;&lt;br /&gt;さらに5秒ぐらい待つと、PC側の iTunes から「iTunesはリカバリーモードのiPhoneを見つけました。iTunesでご利用になる前に、このiPhoneを復元する必要があります。」というメッセージが表示されます。&lt;br /&gt;&lt;br /&gt;この時点 iPhone を DFU モードにすることが出来ました。&lt;br /&gt;（ホームボタンは離してもOK)&lt;br /&gt;&lt;br /&gt;2.iPhoneを復元する&lt;br /&gt;&lt;br /&gt;iTunes には、iPhone が表示されているので、そのメニューから「復元」ボタンを押します。&lt;br /&gt;10分前後で iOS4.3.3にダウングレードした状態になります。</content><link rel='replies' type='application/atom+xml' href='http://tmpz84.blogspot.com/feeds/3795778254927331236/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://tmpz84.blogspot.com/2011/07/iphone.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6324922420161888454/posts/default/3795778254927331236'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6324922420161888454/posts/default/3795778254927331236'/><link rel='alternate' type='text/html' href='http://tmpz84.blogspot.com/2011/07/iphone.html' title='iPhone の内容を工場出荷状態に戻す'/><author><name>tmpz84</name><uri>http://www.blogger.com/profile/01662934538164133888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='18' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3XFXiTDO1FPQmXQAi0mhFtO82W5z31f3NPx77X4RgADVpzbni45E64JiImYDh-og27-zJB3I4a0_4gJhLLJcv7C9j018Jx_rfQviIv_Et0NA4mmGMwQE-01UbL0zt2Hc/s220/IMG_0018.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6324922420161888454.post-4068602261557926238</id><published>2011-07-04T01:03:00.001+09:00</published><updated>2011-07-04T01:03:47.981+09:00</updated><title type='text'>MAC OS X で PostgreSQL 8.4 をインストールする</title><content type='html'>sudo port install postgresql84&lt;br /&gt;sudo port install postgresql84-server&lt;br /&gt;&lt;br /&gt;sudo mkdir -p /opt/local/var/db/postgresql84/defaultdb&lt;br /&gt;sudo chown postgres:postgres /opt/local/var/db/postgresql84/defaultdb&lt;br /&gt;sudo su postgres -c &#39;/opt/local/lib/postgresql84/bin/initdb -E UTF8 --no-locale -D /opt/local/var/db/postgresql84/defaultdb&#39;&lt;br /&gt;&lt;br /&gt;#sudo ln -s /opt/local/lib/postgresql84/bin/postgres /opt/local/bin/&lt;br /&gt;#sudo ln -s /opt/local/lib/postgresql84/bin/pg_ctl /opt/local/bin/&lt;br /&gt;&lt;br /&gt;sudo su postgres -c &#39;pg_ctl -D /opt/local/var/db/postgresql84/defaultdb start&#39;&lt;br /&gt;&lt;br /&gt;sudo su - postgres&lt;br /&gt;createuser --no-superuser --createdb --no-createrole hogeuser</content><link rel='replies' type='application/atom+xml' href='http://tmpz84.blogspot.com/feeds/4068602261557926238/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://tmpz84.blogspot.com/2011/07/mac-os-x-postgresql-84.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6324922420161888454/posts/default/4068602261557926238'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6324922420161888454/posts/default/4068602261557926238'/><link rel='alternate' type='text/html' href='http://tmpz84.blogspot.com/2011/07/mac-os-x-postgresql-84.html' title='MAC OS X で PostgreSQL 8.4 をインストールする'/><author><name>tmpz84</name><uri>http://www.blogger.com/profile/01662934538164133888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='18' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3XFXiTDO1FPQmXQAi0mhFtO82W5z31f3NPx77X4RgADVpzbni45E64JiImYDh-og27-zJB3I4a0_4gJhLLJcv7C9j018Jx_rfQviIv_Et0NA4mmGMwQE-01UbL0zt2Hc/s220/IMG_0018.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6324922420161888454.post-8480399275334240539</id><published>2011-07-04T01:02:00.002+09:00</published><updated>2011-07-04T01:03:04.025+09:00</updated><title type='text'>Mac で RVM を導入する</title><content type='html'>RVM を導入します。&lt;br /&gt;&lt;br /&gt;$ mkdir -p ~/.rvm/src/&lt;br /&gt;$ cd ~/.rvm/src&lt;br /&gt;$ git clone --depth 1 git://github.com/wayneeseguin/rvm.git&lt;br /&gt;$ cd rvm&lt;br /&gt;$ ./install&lt;br /&gt;&lt;br /&gt;以下の１行を .bash_profile に追記。&lt;br /&gt;$ vi ~/.bash_profile&lt;br /&gt;&lt;br /&gt;[[ -s &quot;$HOME/.rvm/scripts/rvm&quot; ]] &amp;&amp; source &quot;$HOME/.rvm/scripts/rvm&quot; &lt;br /&gt;&lt;br /&gt;RVM で Ruby を導入してみます。&lt;br /&gt;&lt;br /&gt;インストールすることが出来るバージョンは以下のコマンドで見ることが出来ます。&lt;br /&gt;&lt;br /&gt;$ rvm list known&lt;br /&gt;# MRI Rubies&lt;br /&gt;...&lt;br /&gt;[ruby-]1.8.7[-p334]&lt;br /&gt;[ruby-]1.9.2[-p180]&lt;br /&gt;[ruby-]1.9.2-head&lt;br /&gt;ruby-head&lt;br /&gt;&lt;br /&gt;1.9.2 p180 を導入してみます。&lt;br /&gt;rvm install でインストール、rvm use で使いたい ruby をスイッチできます。&lt;br /&gt;システムに標準でインストールされている ruby (macruby)は、system &lt;br /&gt;&lt;br /&gt;$ rvm install 1.9.2&lt;br /&gt;&lt;br /&gt;MacOS:akifumi:~$ ruby -v&lt;br /&gt;ruby 1.8.7 (2010-08-16 patchlevel 302) [i686-darwin10]&lt;br /&gt;MacOS:akifumi:~$ rvm use 1.9.2&lt;br /&gt;Using /Users/akifumi/.rvm/gems/ruby-1.9.2-p180&lt;br /&gt;MacOS:akifumi:~$ ruby -v&lt;br /&gt;ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-darwin10.6.0]&lt;br /&gt;&lt;br /&gt;普段使いは、1.9.2 にしたい。&lt;br /&gt;$ rvm use 1.9.2 --default</content><link rel='replies' type='application/atom+xml' href='http://tmpz84.blogspot.com/feeds/8480399275334240539/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://tmpz84.blogspot.com/2011/07/mac-rvm.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6324922420161888454/posts/default/8480399275334240539'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6324922420161888454/posts/default/8480399275334240539'/><link rel='alternate' type='text/html' href='http://tmpz84.blogspot.com/2011/07/mac-rvm.html' title='Mac で RVM を導入する'/><author><name>tmpz84</name><uri>http://www.blogger.com/profile/01662934538164133888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='18' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3XFXiTDO1FPQmXQAi0mhFtO82W5z31f3NPx77X4RgADVpzbni45E64JiImYDh-og27-zJB3I4a0_4gJhLLJcv7C9j018Jx_rfQviIv_Et0NA4mmGMwQE-01UbL0zt2Hc/s220/IMG_0018.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6324922420161888454.post-7602414371808057243</id><published>2011-07-04T01:02:00.001+09:00</published><updated>2011-07-04T01:02:37.029+09:00</updated><title type='text'>Windows でRSA公開鍵を作成する方法</title><content type='html'>WinSCPをインストールする。&lt;br /&gt;&lt;br /&gt;puttygen.exe を実行する。&lt;br /&gt;&lt;br /&gt;C:\Program Files\WinSCP に WinSCP をインストールしてあれば&lt;br /&gt;C:\Program Files\WinSCP\PuTTY\puttygen.exe に存在する。&lt;br /&gt;&lt;br /&gt;Parameters グループは以下の設定であるかを確認（だぶん初期設定状態）&lt;br /&gt;Type of key to generate: SSH-2 RSA&lt;br /&gt;Number of bits in a generated key: を 1024 &lt;br /&gt;&lt;br /&gt;Actions グループの Generate ボタンを押下する。&lt;br /&gt;&lt;br /&gt;Please うんたらと出るので、マウスをグリグリ動かす。&lt;br /&gt;&lt;br /&gt;Key グループに生成された公開鍵が表示されるので利用する。&lt;br /&gt;（authorized_keys に追加）</content><link rel='replies' type='application/atom+xml' href='http://tmpz84.blogspot.com/feeds/7602414371808057243/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://tmpz84.blogspot.com/2011/07/windows-rsa.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6324922420161888454/posts/default/7602414371808057243'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6324922420161888454/posts/default/7602414371808057243'/><link rel='alternate' type='text/html' href='http://tmpz84.blogspot.com/2011/07/windows-rsa.html' title='Windows でRSA公開鍵を作成する方法'/><author><name>tmpz84</name><uri>http://www.blogger.com/profile/01662934538164133888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='18' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3XFXiTDO1FPQmXQAi0mhFtO82W5z31f3NPx77X4RgADVpzbni45E64JiImYDh-og27-zJB3I4a0_4gJhLLJcv7C9j018Jx_rfQviIv_Et0NA4mmGMwQE-01UbL0zt2Hc/s220/IMG_0018.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6324922420161888454.post-533512212533702262</id><published>2011-07-04T01:01:00.004+09:00</published><updated>2011-08-13T16:26:32.211+09:00</updated><title type='text'>mac os x で公開鍵を作成する方法</title><content type='html'>ターミナルを開いて、以下のコマンドを入力。&lt;br /&gt;&lt;br /&gt;$ ssh-keygen&lt;br /&gt;&lt;br /&gt;パスフレーズを聞かれるので、２回入力する。&lt;br /&gt;&lt;br /&gt;フォルダ /Users/youaccount/.ssh/ の&lt;br /&gt;「id_rsa」が秘密鍵、「id_rsa.pub」が公開鍵となる。&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://tmpz84.blogspot.com/feeds/533512212533702262/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://tmpz84.blogspot.com/2011/07/mac-os-x.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6324922420161888454/posts/default/533512212533702262'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6324922420161888454/posts/default/533512212533702262'/><link rel='alternate' type='text/html' href='http://tmpz84.blogspot.com/2011/07/mac-os-x.html' title='mac os x で公開鍵を作成する方法'/><author><name>tmpz84</name><uri>http://www.blogger.com/profile/01662934538164133888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='18' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3XFXiTDO1FPQmXQAi0mhFtO82W5z31f3NPx77X4RgADVpzbni45E64JiImYDh-og27-zJB3I4a0_4gJhLLJcv7C9j018Jx_rfQviIv_Et0NA4mmGMwQE-01UbL0zt2Hc/s220/IMG_0018.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6324922420161888454.post-965181778693529954</id><published>2011-07-04T01:01:00.002+09:00</published><updated>2011-07-04T01:02:10.326+09:00</updated><title type='text'>iPhoneがiTunes,Xcodeで認識しなくなった</title><content type='html'>タイトル通りなんですが、iPhone を mac に接続しても iTunes や Xcode で認識しなくなりました。&lt;br /&gt;お約束で、iPhone 、mac の双方を再起動。&lt;br /&gt;→ でもダメ&lt;br /&gt;&lt;br /&gt;途方にくれているところ、以下のページにズバリな回答。&lt;br /&gt;http://blog.iphone-studio.com/2009/01/iphone_29.html&lt;br /&gt;&lt;br /&gt;ようするに iTunes を再インストールすることで、認識しました。&lt;br /&gt;よかった！</content><link rel='replies' type='application/atom+xml' href='http://tmpz84.blogspot.com/feeds/965181778693529954/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://tmpz84.blogspot.com/2011/07/iphoneitunesxcode.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6324922420161888454/posts/default/965181778693529954'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6324922420161888454/posts/default/965181778693529954'/><link rel='alternate' type='text/html' href='http://tmpz84.blogspot.com/2011/07/iphoneitunesxcode.html' title='iPhoneがiTunes,Xcodeで認識しなくなった'/><author><name>tmpz84</name><uri>http://www.blogger.com/profile/01662934538164133888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='18' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3XFXiTDO1FPQmXQAi0mhFtO82W5z31f3NPx77X4RgADVpzbni45E64JiImYDh-og27-zJB3I4a0_4gJhLLJcv7C9j018Jx_rfQviIv_Et0NA4mmGMwQE-01UbL0zt2Hc/s220/IMG_0018.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6324922420161888454.post-6339072303087016031</id><published>2011-07-04T01:00:00.003+09:00</published><updated>2011-08-13T16:24:13.182+09:00</updated><title type='text'>さくらのVPSでカスタムインストールしたときのメモ</title><content type='html'>参考にしたページ：&lt;br /&gt;http://tanaka.sakura.ad.jp/archives/001065.html&lt;br /&gt;http://blog.myfinder.jp/2010/09/vpsssh.html&lt;br /&gt;&lt;br /&gt;CentOS 5.5 の 32bit 版をインストールします。&lt;br /&gt;ネットワーク設定で、IPv4 はマニュアル設定で進めて、事前に表示されたIPアドレス、DNS、ゲートウェイIPアドレスを入力します。&lt;br /&gt;&lt;br /&gt;リモートコンソールでログインします。&lt;br /&gt;まずは、ユーザーを作成します。wheelにも所属させます。&lt;br /&gt;&lt;br /&gt;# useradd youraccount&lt;br /&gt;# passwd youraccount&lt;br /&gt;# usermod -G wheel youraccount&lt;br /&gt;&lt;br /&gt;sudo出来るように設定します。&lt;br /&gt;wheelグループの設定の前にコメントがあるのでコメントを削除します。&lt;br /&gt;# visudo&lt;br /&gt;&lt;br /&gt;@@@&lt;br /&gt;## Allows people in group wheel to run all commands&lt;br /&gt;%wheel ALL=(ALL) ALL &lt;br /&gt;@@@&lt;br /&gt;&lt;br /&gt;sshdの設定を行います。ポート番号を10022、rootのログインを禁止、パスワードログインを禁止します。&lt;br /&gt;以下の4項目を変更して、sshdを再起動します。&lt;br /&gt;&lt;br /&gt;# vi /etc/ssh/sshd_config &lt;br /&gt;Port 10022&lt;br /&gt;PermitRootLogin no &lt;br /&gt;PasswordAuthentication no &lt;br /&gt;UsePAM no &lt;br /&gt;&lt;br /&gt;# /etc/init.d/sshd restart &lt;br /&gt;&lt;br /&gt;ログインするユーザの公開鍵を作成します。&lt;br /&gt;事前に作業を行うPCで公開鍵を作成しておきます。&lt;br /&gt;（Mac OS Xで作成する場合は&lt;a href=&quot;http://tmpz84.blogspot.com/2011/07/mac-os-x.html&quot;&gt;こちら&lt;/a&gt;）&lt;br /&gt;VPS上で作成した authorized_keys に、作業PCで作成した公開鍵を追記します。&lt;br /&gt;&lt;br /&gt;Mac OS Xの場合は、&lt;br /&gt;&lt;br /&gt;最後にパーミッションを変更します。&lt;br /&gt;&lt;br /&gt;# su - youraccount &lt;br /&gt;$ ssh-keygen -t rsa &lt;br /&gt;$ vi ~/.ssh/authorized_keys &lt;br /&gt;&lt;br /&gt;$ chmod 600 ~/.ssh/authorized_keys &lt;br /&gt;&lt;br /&gt;sudo ログを分離する。&lt;br /&gt;&lt;br /&gt;# visudo&lt;br /&gt;以下を追記。&lt;br /&gt;@@@&lt;br /&gt;Defaults syslog=local3&lt;br /&gt;@@@&lt;br /&gt;&lt;br /&gt;# vi /etc/syslog.conf&lt;br /&gt;以下を追記。&lt;br /&gt;@@@&lt;br /&gt;local3.* /var/log/sudo.log&lt;br /&gt;@@@&lt;br /&gt;&lt;br /&gt;syslogを再起動。&lt;br /&gt;# /etc/init.d/syslog restart&lt;br /&gt;&lt;br /&gt;cat /var/log/sudo.log&lt;br /&gt;で追記されているかを確認。&lt;br /&gt;&lt;br /&gt;logrotate の設定を変更&lt;br /&gt;vi /etc/logrotate.d/syslog &lt;br /&gt;のローテート対象ファイルに /var/log/sudo.log を追加。&lt;br /&gt;&lt;br /&gt;ファイアウォールの設定&lt;br /&gt;# /usr/bin/system-config-securitylevel-tui&lt;br /&gt;Securiy Level を Enabled &lt;br /&gt;SELinux を Disable &lt;br /&gt;Customize ボタンを押下すてポートの設定。&lt;br /&gt;Allow incoming: で WWW, Secure WWW にチェックをする。other ports に 10022,3000 を追加。&lt;br /&gt;&lt;br /&gt;ソフトのアップデート&lt;br /&gt;$ sudo yum -y update&lt;br /&gt;&lt;br /&gt;root宛のメールを転送する。&lt;br /&gt;# sed -i &#39;/^root:/d&#39; /etc/aliases&lt;br /&gt;# echo &quot;root: hogehoge@zzz.xxx&quot; &gt;&gt; /etc/aliases&lt;br /&gt;# newaliases&lt;br /&gt;&lt;br /&gt;メールが正しく転送されるかをテスト&lt;br /&gt;# echo test | mail root&lt;br /&gt;&lt;br /&gt;いらないサービスをoffにします。&lt;br /&gt;chkconfig acpid off&lt;br /&gt;chkconfig auditd off&lt;br /&gt;chkconfig autofs off&lt;br /&gt;chkconfig avahi-daemon off&lt;br /&gt;chkconfig bluetooth off&lt;br /&gt;chkconfig cups off&lt;br /&gt;chkconfig firstboot off&lt;br /&gt;chkconfig gpm off&lt;br /&gt;chkconfig haldaemon off&lt;br /&gt;chkconfig hidd off&lt;br /&gt;chkconfig isdn off&lt;br /&gt;chkconfig kudzu off&lt;br /&gt;chkconfig lvm2-monitor off&lt;br /&gt;chkconfig mcstrans off&lt;br /&gt;chkconfig mdmonitor off&lt;br /&gt;chkconfig messagebus off&lt;br /&gt;chkconfig netfs off&lt;br /&gt;chkconfig nfslock off&lt;br /&gt;chkconfig pcscd off&lt;br /&gt;chkconfig portmap off&lt;br /&gt;chkconfig rawdevices off&lt;br /&gt;chkconfig restorecond off&lt;br /&gt;chkconfig rpcgssd off&lt;br /&gt;chkconfig rpcidmapd off&lt;br /&gt;chkconfig smartd off&lt;br /&gt;chkconfig xfs off&lt;br /&gt;chkconfig yum-updatesd off</content><link rel='replies' type='application/atom+xml' href='http://tmpz84.blogspot.com/feeds/6339072303087016031/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://tmpz84.blogspot.com/2011/07/vps.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6324922420161888454/posts/default/6339072303087016031'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6324922420161888454/posts/default/6339072303087016031'/><link rel='alternate' type='text/html' href='http://tmpz84.blogspot.com/2011/07/vps.html' title='さくらのVPSでカスタムインストールしたときのメモ'/><author><name>tmpz84</name><uri>http://www.blogger.com/profile/01662934538164133888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='18' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3XFXiTDO1FPQmXQAi0mhFtO82W5z31f3NPx77X4RgADVpzbni45E64JiImYDh-og27-zJB3I4a0_4gJhLLJcv7C9j018Jx_rfQviIv_Et0NA4mmGMwQE-01UbL0zt2Hc/s220/IMG_0018.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6324922420161888454.post-8781036550045945976</id><published>2011-07-04T01:00:00.001+09:00</published><updated>2011-07-04T01:00:41.803+09:00</updated><title type='text'>認証付き Git リポジトリに clone したときのエラー</title><content type='html'>CentOS 5.5 Gnome インストール環境で&lt;br /&gt;認証付きのGitリポジトリにcloneしたときに、以下のエラーが出てしまう。&lt;br /&gt;&lt;br /&gt;$ git clone https://dokokanogitrepos/passtuki.git&lt;br /&gt;Cloning into passtuki ...&lt;br /&gt;&lt;br /&gt;(gnome-ssh-askpass:13543): Gtk-WARNING **: cannot open display: &lt;br /&gt;&lt;br /&gt;なんかパスワード入力を求めるときに画面にダイアログを出そうと&lt;br /&gt;しているようなんだけど。ssh でログインしているので、そんなものはありません。&lt;br /&gt;&lt;br /&gt;以下のコマンドを実行して、環境変数から削除します。&lt;br /&gt;$ unset SSH_ASKPASS&lt;br /&gt;&lt;br /&gt;そうしたら無事にclone出来ましたとさ。</content><link rel='replies' type='application/atom+xml' href='http://tmpz84.blogspot.com/feeds/8781036550045945976/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://tmpz84.blogspot.com/2011/07/git-clone.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6324922420161888454/posts/default/8781036550045945976'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6324922420161888454/posts/default/8781036550045945976'/><link rel='alternate' type='text/html' href='http://tmpz84.blogspot.com/2011/07/git-clone.html' title='認証付き Git リポジトリに clone したときのエラー'/><author><name>tmpz84</name><uri>http://www.blogger.com/profile/01662934538164133888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='18' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3XFXiTDO1FPQmXQAi0mhFtO82W5z31f3NPx77X4RgADVpzbni45E64JiImYDh-og27-zJB3I4a0_4gJhLLJcv7C9j018Jx_rfQviIv_Et0NA4mmGMwQE-01UbL0zt2Hc/s220/IMG_0018.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6324922420161888454.post-8205896082337279027</id><published>2011-07-04T00:58:00.000+09:00</published><updated>2011-07-04T01:00:08.429+09:00</updated><title type='text'>RailsのDBカラムに使えない名前とドラブる名前の一覧</title><content type='html'>ちゃんとTest～ って乗ってました。&lt;br /&gt;&lt;br /&gt;http://wiki.rubyonrails.org/rails/pages/ReservedWords&lt;br /&gt;&lt;br /&gt;Test～ って名前を付けたしまった場合の対処はこちらのページに解説が。&lt;br /&gt;http://nov.tdiary.net/20091210.html</content><link rel='replies' type='application/atom+xml' href='http://tmpz84.blogspot.com/feeds/8205896082337279027/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://tmpz84.blogspot.com/2011/07/railsdb.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6324922420161888454/posts/default/8205896082337279027'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6324922420161888454/posts/default/8205896082337279027'/><link rel='alternate' type='text/html' href='http://tmpz84.blogspot.com/2011/07/railsdb.html' title='RailsのDBカラムに使えない名前とドラブる名前の一覧'/><author><name>tmpz84</name><uri>http://www.blogger.com/profile/01662934538164133888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='18' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3XFXiTDO1FPQmXQAi0mhFtO82W5z31f3NPx77X4RgADVpzbni45E64JiImYDh-og27-zJB3I4a0_4gJhLLJcv7C9j018Jx_rfQviIv_Et0NA4mmGMwQE-01UbL0zt2Hc/s220/IMG_0018.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6324922420161888454.post-4556247267717763844</id><published>2010-01-21T18:21:00.003+09:00</published><updated>2010-01-21T18:24:57.979+09:00</updated><title type='text'>Rubyの技術者認定試験</title><content type='html'>&lt;p&gt;Rubyの技術者認定試験を受けようと思うのだけど。&lt;/p&gt;&lt;p&gt;結果を出した人がいたので、リンクをはっておく。&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://blog.champierre.com/archives/723&quot;&gt;http://blog.champierre.com/archives/723&lt;/a&gt;&lt;/p&gt;&lt;p&gt;1/29あたりに受験したら受かるのだろうか。&lt;br /&gt;&lt;br /&gt;いつも Ruby+Rails で飯を食っているのならイケそうな気もするけど、言語が定まってないからなぁ。PHPやらC++やら。&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://tmpz84.blogspot.com/feeds/4556247267717763844/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://tmpz84.blogspot.com/2010/01/ruby-httpblog.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6324922420161888454/posts/default/4556247267717763844'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6324922420161888454/posts/default/4556247267717763844'/><link rel='alternate' type='text/html' href='http://tmpz84.blogspot.com/2010/01/ruby-httpblog.html' title='Rubyの技術者認定試験'/><author><name>tmpz84</name><uri>http://www.blogger.com/profile/01662934538164133888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='18' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3XFXiTDO1FPQmXQAi0mhFtO82W5z31f3NPx77X4RgADVpzbni45E64JiImYDh-og27-zJB3I4a0_4gJhLLJcv7C9j018Jx_rfQviIv_Et0NA4mmGMwQE-01UbL0zt2Hc/s220/IMG_0018.JPG'/></author><thr:total>0</thr:total></entry></feed>