<?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-1055241401186727758</id><updated>2024-08-30T11:19:41.748+09:00</updated><category term="Ruby"/><category term="AWS"/><category term="Java"/><category term="Rails"/><category term="windows"/><category term="Mac"/><category term="Linux"/><category term="Play framework"/><category term="git"/><category term="Blogger"/><category term="Heroku"/><category term="jquery"/><category term="xcode"/><category term="Ubuntu"/><category term="github"/><category term="Mavericks"/><category term="css"/><category term="eclipse"/><category term="iOS"/><category term="CDN"/><category term="CLI"/><category term="Capistrano"/><category term="EC2"/><category term="HTML"/><category term="JDK"/><category term="Java7"/><category term="JavaScript"/><category term="MySQL"/><category term="OGP"/><category term="apt-get"/><category term="bitbucket"/><category term="fluentd"/><category term="gist"/><category term="iPhone"/><category term="maven"/><category term="mongoDB"/><category term="mysysgit"/><category term="node.js"/><category term="scala"/><category term="td-agent"/><category term="tomcat"/><category term="wordpress"/><category term="コマンド"/><category term="セキュリティ"/><category term="デザインパターン"/><category term="本"/><title type='text'>つまブロ</title><subtitle type='html'>開発でつまづいたり&#xa;本を読んだり&#xa;その他もろもろを書くつもりです。</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://halucolor.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1055241401186727758/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://halucolor.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/1055241401186727758/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02030941398793182013</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>60</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1055241401186727758.post-3225906253316420618</id><published>2014-05-12T17:23:00.002+09:00</published><updated>2014-05-12T17:23:30.603+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="MySQL"/><title type='text'>[MySQL]iOSの絵文字に対応させる</title><content type='html'>iOSの絵文字は普通のutf8じゃなくてマルチバイト(4バイト)utf8なんだそうで。&lt;br /&gt;
通常のutf8のカラムにinsert/updateしようとするとエラーで怒られちゃいます。&lt;br /&gt;
&lt;br /&gt;
新規テーブルだと、一旦設定してしまえばいいんですが。&lt;br /&gt;
既存でデータがある場合だと以下のやり方でやればOK。&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://dba.stackexchange.com/questions/8239/how-to-easily-convert-utf8-tables-to-utf8mb4-in-mysql-5-5&quot; target=&quot;_blank&quot;&gt;How to easily convert utf8 tables to utf8mb4 in MySQL 5.5&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
一回やったのにやり方忘れたので忘備録も兼ねて。&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
# For each database:&lt;br /&gt;
ALTER DATABASE database_name CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci;&lt;br /&gt;
# For each table:&lt;br /&gt;
ALTER TABLE table_name CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;&lt;br /&gt;
# For each column:&lt;br /&gt;
ALTER TABLE table_name CHANGE column_name column_name VARCHAR(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;&lt;/blockquote&gt;
&lt;br /&gt;
りんごさんに殺意を覚えますよねｗ&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://halucolor.blogspot.com/feeds/3225906253316420618/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://halucolor.blogspot.com/2014/05/mysqlios.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1055241401186727758/posts/default/3225906253316420618'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1055241401186727758/posts/default/3225906253316420618'/><link rel='alternate' type='text/html' href='http://halucolor.blogspot.com/2014/05/mysqlios.html' title='[MySQL]iOSの絵文字に対応させる'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02030941398793182013</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-1055241401186727758.post-2948575163935897225</id><published>2014-03-31T17:30:00.002+09:00</published><updated>2014-03-31T17:30:34.750+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Rails"/><category scheme="http://www.blogger.com/atom/ns#" term="Ruby"/><title type='text'>[Rails4]本番環境でSQLのログを出力する方法</title><content type='html'>調査のためにSQLログが欲しかったので出力する方法をググって探してみた&lt;br /&gt;
&lt;br /&gt;
config/configatron/production.rbに以下の行を追加すると、本番環境でSQLのログが出力されるようになる。&lt;br /&gt;
&lt;script src=&quot;https://gist.github.com/yukiko-kato-bass/9887821.js&quot;&gt;&lt;/script&gt;

もちろん、常に出しっぱなしだとパフォーマンスに影響が出るので調査の時だけね。。</content><link rel='replies' type='application/atom+xml' href='http://halucolor.blogspot.com/feeds/2948575163935897225/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://halucolor.blogspot.com/2014/03/rails4sql.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1055241401186727758/posts/default/2948575163935897225'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1055241401186727758/posts/default/2948575163935897225'/><link rel='alternate' type='text/html' href='http://halucolor.blogspot.com/2014/03/rails4sql.html' title='[Rails4]本番環境でSQLのログを出力する方法'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02030941398793182013</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-1055241401186727758.post-8244654137058592055</id><published>2014-03-10T10:29:00.003+09:00</published><updated>2014-03-10T10:29:58.885+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><category scheme="http://www.blogger.com/atom/ns#" term="Mac"/><category scheme="http://www.blogger.com/atom/ns#" term="maven"/><category scheme="http://www.blogger.com/atom/ns#" term="Mavericks"/><title type='text'>[Mac]mavenをインストールする</title><content type='html'>Mac OS X(Mavericks)にmaven3.2.1をインストールしてみた。&lt;br /&gt;
Androidプロジェクト使うにはmavenは3.1以上が必要らしい。&lt;br /&gt;
&lt;br /&gt;
参考&lt;br /&gt;
&lt;a href=&quot;http://oscasierra.net/2013/05/install-maven-3-0-mac/&quot; target=&quot;_blank&quot;&gt;Mac OS X に maven3 (3.0.x) をインストールする手順&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;
公式ホームページからmavenをダウンロードする&lt;/h4&gt;
&lt;div&gt;
2014/03/10時点では、3.2.1が最新だったので、そのバージョンをダウンロード&lt;/div&gt;
&lt;div&gt;
&lt;a href=&quot;http://maven.apache.org/download.html&quot;&gt;http://maven.apache.org/download.html&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
Maven 3.2.1 (Binary tar.gz)を選んでダウンロードする&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h4&gt;
解凍したフォルダの移動&lt;/h4&gt;
&lt;div&gt;
ダウンロードしたら、解凍してフォルダ毎/usr/local/の配下に移動する。&lt;/div&gt;
&lt;div&gt;
私の場合は、Downloadフォルダに置いてしまったのでそこからターミナルで移動させた。&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
cd&lt;br /&gt;cd Downloads&lt;br /&gt;mv apache-maven-3.2.1 /usr/local&lt;/blockquote&gt;
&lt;h4&gt;
環境変数の設定&lt;/h4&gt;
環境変数の設定をする。~/.bash_profile を作ってない場合は、viで作ればOK&lt;br /&gt;
以下のパスを追加する&lt;br /&gt;








&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;vim ~/.bash_profile&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
export M3_HOME=/usr/local/apache-maven-3.2.1&lt;br /&gt;M3=$M3_HOME/bin&lt;br /&gt;export PATH=$M3:$PATH&lt;/blockquote&gt;
&lt;div class=&quot;p1&quot;&gt;









&lt;/div&gt;
&lt;div&gt;
ファイルの編集が終わったら、環境変数を反映させる&lt;/div&gt;
&lt;div&gt;







&lt;blockquote class=&quot;tr_bq&quot;&gt;
source ~/.bash_profile&lt;/blockquote&gt;
&lt;h4&gt;
動作確認&lt;/h4&gt;
これで手順は完了なので、動作確認&lt;br /&gt;
ターミナルでmvnコマンドを叩く&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
mvn --version&lt;/blockquote&gt;
こんな感じになったら良いらしい&lt;br /&gt;








&lt;blockquote class=&quot;tr_bq&quot;&gt;
Maven home: /usr/local/apache-maven-3.2.1&lt;br /&gt;Java version: 1.6.0_65, vendor: Apple Inc.&lt;br /&gt;Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home&lt;br /&gt;Default locale: ja_JP, platform encoding: SJIS&lt;br /&gt;OS name: &quot;mac os x&quot;, version: &quot;10.9.2&quot;, arch: &quot;x86_64&quot;, family: &quot;mac&quot;&amp;nbsp;&lt;/blockquote&gt;
ま、Windowsをあんまり変わらんですね。&lt;/div&gt;
&lt;div&gt;
cd&amp;nbsp;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://halucolor.blogspot.com/feeds/8244654137058592055/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://halucolor.blogspot.com/2014/03/macmaven.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1055241401186727758/posts/default/8244654137058592055'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1055241401186727758/posts/default/8244654137058592055'/><link rel='alternate' type='text/html' href='http://halucolor.blogspot.com/2014/03/macmaven.html' title='[Mac]mavenをインストールする'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02030941398793182013</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-1055241401186727758.post-3772503446050586345</id><published>2014-02-21T20:53:00.003+09:00</published><updated>2014-02-21T20:53:55.390+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Mac"/><category scheme="http://www.blogger.com/atom/ns#" term="Rails"/><category scheme="http://www.blogger.com/atom/ns#" term="Ruby"/><title type='text'>[Mac][Ruby]bundleでEACCES: Permission deniedのエラーが出た</title><content type='html'>放置してたけど、いい加減良くないと思ったのでググってみた。&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
Errno::EACCES: Permission denied - /Library/Ruby/Gems/2.0.0/build_info/carrierwave-0.9.0.info&lt;br /&gt;An error occurred while installing carrierwave (0.9.0), and Bundler cannot&lt;br /&gt;continue.&lt;br /&gt;Make sure that `gem install carrierwave -v &#39;0.9.0&#39;` succeeds before bundling.&lt;/blockquote&gt;
&lt;br /&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
出てますー出てますー&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
そこで！&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
ググったところ、Console Tools入れろってさ。&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
入れたはずなんだけどなぁ。。&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
Mavericksに上げたからなくなったのかしら。。&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
そしてググると！&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
なんとコマンドでインストールする方法が出てきた！&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
これは知らなかったぞ&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;







&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
xcode-select --install&lt;/blockquote&gt;
使用許諾のウインドウが出て許可するだけで終わり。&lt;br /&gt;
&lt;br /&gt;
ちなみに、コンソールツール入れてbundleしたら、今度は&lt;br /&gt;








&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
bundle install --path vendor/bundle&lt;/blockquote&gt;
&lt;div class=&quot;p1&quot;&gt;
しなさいと言われたので、言われた通りにやったらエラーも出なくなりました。&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
めでたしめでたし&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://halucolor.blogspot.com/feeds/3772503446050586345/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://halucolor.blogspot.com/2014/02/macrubybundleeacces-permission-denied.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1055241401186727758/posts/default/3772503446050586345'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1055241401186727758/posts/default/3772503446050586345'/><link rel='alternate' type='text/html' href='http://halucolor.blogspot.com/2014/02/macrubybundleeacces-permission-denied.html' title='[Mac][Ruby]bundleでEACCES: Permission deniedのエラーが出た'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02030941398793182013</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-1055241401186727758.post-5465250935868663911</id><published>2014-02-20T22:58:00.000+09:00</published><updated>2014-02-20T22:58:55.633+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Capistrano"/><title type='text'>[Capistrano]SSHのポートを指定する</title><content type='html'>最近Capistranoについていろいろ調べてます。&lt;br /&gt;
が、いろいろやれ過ぎて混乱。。。&lt;br /&gt;
&lt;br /&gt;
とりあえず、SSHはデフォルトのポートを見に行くようです。&lt;br /&gt;
ポート番号を明示的に指定したい場合は、config/deploy.rbに以下のオプションを追加すればよいらしい。&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
ssh_options[:port] = 8888&lt;/blockquote&gt;
&lt;br /&gt;
</content><link rel='replies' type='application/atom+xml' href='http://halucolor.blogspot.com/feeds/5465250935868663911/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://halucolor.blogspot.com/2014/02/capistranossh.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1055241401186727758/posts/default/5465250935868663911'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1055241401186727758/posts/default/5465250935868663911'/><link rel='alternate' type='text/html' href='http://halucolor.blogspot.com/2014/02/capistranossh.html' title='[Capistrano]SSHのポートを指定する'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02030941398793182013</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-1055241401186727758.post-923699577053016989</id><published>2014-02-18T17:54:00.001+09:00</published><updated>2014-02-18T17:54:53.119+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AWS"/><category scheme="http://www.blogger.com/atom/ns#" term="CLI"/><category scheme="http://www.blogger.com/atom/ns#" term="Mac"/><category scheme="http://www.blogger.com/atom/ns#" term="Mavericks"/><title type='text'>[Mac][AWS]awsのコマンドラインツールをインストール</title><content type='html'>MavericksにAWSのコマンドラインツールをインストールした時のメモ。&lt;br /&gt;
大したことなかったけどｗ&lt;br /&gt;
公式サイト：&lt;a href=&quot;http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-set-up.html#install-bundle-other-os&quot;&gt;http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-set-up.html#install-bundle-other-os&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
1.Pythonのインストール&lt;/h3&gt;
MavericksだとPythonがデフォルトで入ってるよう&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
$ python --version&lt;br /&gt;Python 2.7.5&lt;/blockquote&gt;
&lt;br /&gt;
公式サイトによると2.6以上であれば良いらしいので、とりあえずこのままにしておく。&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
2.pipのインストール&lt;/h3&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
pip --help&lt;/blockquote&gt;
でコマンド認識しなかったので、pipは入ってなかった。&lt;br /&gt;
Macの場合はeasy installを使うようだ。&lt;br /&gt;
ちなみに、easy installが入ってるかどうかは以下のコマンドで確認&lt;br /&gt;








&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
easy_install --help&lt;/blockquote&gt;
&lt;div class=&quot;p1&quot;&gt;
pipをインストール。MavericksになってからやたらとPermission denied頻発し過ぎてやだわー。&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;







&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
sudo easy_install pip&lt;/blockquote&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
インストールが終わったら確認。&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
pip --help&lt;/blockquote&gt;
&lt;br /&gt;
&lt;h3&gt;
3.AWS CLIインストール&lt;/h3&gt;
&lt;br /&gt;
以下のコマンドでCLIをインストール&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
sudo pip install awscli&lt;/blockquote&gt;
&lt;div class=&quot;p1&quot;&gt;
で、確認。&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;







&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
aws help&lt;/blockquote&gt;
&lt;div class=&quot;p1&quot;&gt;
こんな感じの画面が表示されればOK。AWSのコンソールですな。&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/AVvXsEi-wCmtEZJD46nBkLTLGWTZFNJTrBHinlddKatQV_qQ67EWjB6pIvR7TKDyA809Zs31MlJEiO1CjzfCA0HI8dfq2Jvz6wJEpT7iOENxJGzfR2BGFPnNKhoCnU9r9I-ouNyQw-G40K6KIsY/s1600/aws_cli.tiff&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/AVvXsEi-wCmtEZJD46nBkLTLGWTZFNJTrBHinlddKatQV_qQ67EWjB6pIvR7TKDyA809Zs31MlJEiO1CjzfCA0HI8dfq2Jvz6wJEpT7iOENxJGzfR2BGFPnNKhoCnU9r9I-ouNyQw-G40K6KIsY/s1600/aws_cli.tiff&quot; height=&quot;315&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://halucolor.blogspot.com/feeds/923699577053016989/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://halucolor.blogspot.com/2014/02/macawsaws.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1055241401186727758/posts/default/923699577053016989'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1055241401186727758/posts/default/923699577053016989'/><link rel='alternate' type='text/html' href='http://halucolor.blogspot.com/2014/02/macawsaws.html' title='[Mac][AWS]awsのコマンドラインツールをインストール'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02030941398793182013</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/AVvXsEi-wCmtEZJD46nBkLTLGWTZFNJTrBHinlddKatQV_qQ67EWjB6pIvR7TKDyA809Zs31MlJEiO1CjzfCA0HI8dfq2Jvz6wJEpT7iOENxJGzfR2BGFPnNKhoCnU9r9I-ouNyQw-G40K6KIsY/s72-c/aws_cli.tiff" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1055241401186727758.post-378813888536762202</id><published>2014-02-12T11:04:00.000+09:00</published><updated>2014-02-12T11:04:24.197+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="apt-get"/><category scheme="http://www.blogger.com/atom/ns#" term="AWS"/><category scheme="http://www.blogger.com/atom/ns#" term="fluentd"/><category scheme="http://www.blogger.com/atom/ns#" term="td-agent"/><category scheme="http://www.blogger.com/atom/ns#" term="Ubuntu"/><title type='text'>[Ubuntu]apt-get updateでエラーが出た場合の対処法</title><content type='html'>Fluentdインストールした絡みでapt-get updateでエラーが出た&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
W: GPG error: http://packages.treasure-data.com precise Release: The following signatures couldn&#39;t be verified because the public key is not available: NO_PUBKEY 1093DB45A12E206F&lt;/blockquote&gt;
公開鍵ないよって言ってる。&lt;br /&gt;
ググってみたら同じ症状の人がいたので感謝&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://madroom-project.blogspot.jp/2014/01/apt-get-updatenopubkey.html&quot; target=&quot;_blank&quot;&gt;apt-get updateでNO_PUBKEYエラーが出た&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
書いてある通りにやってみたら解消しました。&lt;br /&gt;








&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
wget http://packages.treasure-data.com/debian/RPM-GPG-KEY-td-agent&lt;br /&gt;sudo apt-key add RPM-GPG-KEY-td-agent&lt;br /&gt;rm RPM-GPG-KEY-td-agent&lt;/blockquote&gt;
&lt;a href=&quot;http://docs.fluentd.org/articles/install-by-deb#gpg-key&quot;&gt;http://docs.fluentd.org/articles/install-by-deb#gpg-key&lt;/a&gt;　に書いてある通りなんだけど分かりづらいよ。。&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;







&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;







&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://halucolor.blogspot.com/feeds/378813888536762202/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://halucolor.blogspot.com/2014/02/ubuntuapt-get-update.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1055241401186727758/posts/default/378813888536762202'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1055241401186727758/posts/default/378813888536762202'/><link rel='alternate' type='text/html' href='http://halucolor.blogspot.com/2014/02/ubuntuapt-get-update.html' title='[Ubuntu]apt-get updateでエラーが出た場合の対処法'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02030941398793182013</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-1055241401186727758.post-2723471881889626834</id><published>2014-02-07T18:18:00.002+09:00</published><updated>2014-02-07T18:18:39.984+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AWS"/><category scheme="http://www.blogger.com/atom/ns#" term="EC2"/><category scheme="http://www.blogger.com/atom/ns#" term="Ubuntu"/><title type='text'>[EC2]Ubuntuのユーザ追加</title><content type='html'>&lt;h3&gt;
Ubuntuに新規ユーザを追加する&lt;/h3&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
sudo useradd ユーザ名&lt;/blockquote&gt;
&lt;div&gt;
※ちなみに、これだとホームディレクトリは作成されないらしい。&lt;/div&gt;
&lt;div&gt;
ホームディレクトリを作成する場合は、&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
sudo adduser ユーザ名&lt;/blockquote&gt;
&lt;div&gt;
の方で出来るらしい&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;h3&gt;
追加したユーザにsudo権限を付与する&lt;/h3&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
sudo gpasswd -a ユーザー名 sudo&lt;/blockquote&gt;
&lt;h3&gt;
追加したユーザにパスワードを設定する&lt;/h3&gt;
&lt;div&gt;
追加したユーザがsudoを使う場合は、パスワードが必須らしいのでパスワード設定する&lt;/div&gt;
&lt;div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
sudo passwd ユーザ名&lt;/blockquote&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h4&gt;
参考&lt;/h4&gt;
&lt;div&gt;
Ubuntuにて新規ユーザにsudoの権限をつける&lt;/div&gt;
&lt;div&gt;
&lt;a href=&quot;http://ueponx.wordpress.com/2013/09/23/ubuntu%E3%81%AB%E3%81%A6%E6%96%B0%E8%A6%8F%E3%83%A6%E3%83%BC%E3%82%B6%E3%81%ABsudo%E3%81%AE%E6%A8%A9%E9%99%90%E3%82%92%E3%81%A4%E3%81%91%E3%82%8B/&quot;&gt;http://ueponx.wordpress.com/2013/09/23/ubuntu%E3%81%AB%E3%81%A6%E6%96%B0%E8%A6%8F%E3%83%A6%E3%83%BC%E3%82%B6%E3%81%ABsudo%E3%81%AE%E6%A8%A9%E9%99%90%E3%82%92%E3%81%A4%E3%81%91%E3%82%8B/&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
ubuntu でユーザを新規追加・削除する。&lt;/div&gt;
&lt;div&gt;
&lt;a href=&quot;http://xwave.exblog.jp/11115261&quot;&gt;http://xwave.exblog.jp/11115261&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://halucolor.blogspot.com/feeds/2723471881889626834/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://halucolor.blogspot.com/2014/02/ec2ubuntu.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1055241401186727758/posts/default/2723471881889626834'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1055241401186727758/posts/default/2723471881889626834'/><link rel='alternate' type='text/html' href='http://halucolor.blogspot.com/2014/02/ec2ubuntu.html' title='[EC2]Ubuntuのユーザ追加'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02030941398793182013</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-1055241401186727758.post-286240661699953968</id><published>2014-02-07T15:11:00.001+09:00</published><updated>2014-02-07T15:11:34.680+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AWS"/><category scheme="http://www.blogger.com/atom/ns#" term="Ubuntu"/><title type='text'>[AWS]EC2インスタンスのログイン</title><content type='html'>sshで接続する時に、ずっとPermission　denied で怒られつづけ、なんでや！！&lt;div&gt;
と散々悩んでいたら、公式ドキュメントにありました。。。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
AMIのOSが変わるとログインユーザが変わるんだそうです。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
オプション 3: SSH クライアントを使用した Linux からの接続&lt;/div&gt;
&lt;div&gt;
&lt;a href=&quot;http://docs.aws.amazon.com/ja_jp/AWSEC2/latest/UserGuide/ec2-connect-to-instance-linux.html#using-ssh-client&quot;&gt;http://docs.aws.amazon.com/ja_jp/AWSEC2/latest/UserGuide/ec2-connect-to-instance-linux.html#using-ssh-client&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
Tip&lt;br /&gt;Amazon Linux AMI からインスタンスを起動した場合、デフォルトのユーザー名は ec2-user です。それ以外の場合、別のユーザー名の指定が必要になることがあります。例えば、Ubuntu の場合、デフォルトのユーザー名は ubuntu で、RHEL5 の場合、デフォルトのユーザー名は root です。それ以外の場合は、AMI プロバイダーに確認してください。&lt;/blockquote&gt;
つまり&lt;br /&gt;
&lt;br /&gt;
Amazon Linux だと&lt;br /&gt;
　ssh -i key.pem &lt;b&gt;ec2-user&lt;/b&gt;@domain&lt;br /&gt;
になり&lt;br /&gt;
Ubuntuだと&lt;br /&gt;
　ssh -i key.pem &lt;b&gt;ubuntu&lt;/b&gt;@domain&lt;br /&gt;
になるんですね。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;あー悔しい！！&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://halucolor.blogspot.com/feeds/286240661699953968/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://halucolor.blogspot.com/2014/02/awsec2.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1055241401186727758/posts/default/286240661699953968'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1055241401186727758/posts/default/286240661699953968'/><link rel='alternate' type='text/html' href='http://halucolor.blogspot.com/2014/02/awsec2.html' title='[AWS]EC2インスタンスのログイン'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02030941398793182013</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-1055241401186727758.post-5303439835590576750</id><published>2013-10-18T13:55:00.001+09:00</published><updated>2013-10-18T13:55:24.830+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><category scheme="http://www.blogger.com/atom/ns#" term="Mac"/><title type='text'>[Java][Mac]Macだとjavaのデフォルト文字コードがSJIS</title><content type='html'>Macでのjavaのコンパイル、実行はデフォルト文字コードがどうやらSJISらしい。。&lt;br /&gt;
&lt;br /&gt;
解決策として、文字コードをUTF-8にして実行するには&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
javac -J-Dfile.encoding=utf-8 HelloWorld.java&lt;br /&gt;java -Dfile.encoding=utf-8 HelloWorld&lt;/blockquote&gt;
とすれば良いらしい</content><link rel='replies' type='application/atom+xml' href='http://halucolor.blogspot.com/feeds/5303439835590576750/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://halucolor.blogspot.com/2013/10/javamacmacjavasjis.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1055241401186727758/posts/default/5303439835590576750'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1055241401186727758/posts/default/5303439835590576750'/><link rel='alternate' type='text/html' href='http://halucolor.blogspot.com/2013/10/javamacmacjavasjis.html' title='[Java][Mac]Macだとjavaのデフォルト文字コードがSJIS'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02030941398793182013</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-1055241401186727758.post-2325731297554755094</id><published>2013-08-06T12:09:00.001+09:00</published><updated>2013-08-06T12:13:06.545+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="github"/><category scheme="http://www.blogger.com/atom/ns#" term="Heroku"/><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><category scheme="http://www.blogger.com/atom/ns#" term="デザインパターン"/><title type='text'>[Java]『Java言語で学ぶデザインパターン入門』を写経した</title><content type='html'>今更だけど、デザインパターンを再勉強してみようと思い、写経してみます。&lt;br /&gt;
&lt;br /&gt;
参考図書は『Java言語で学ぶデザインパターン入門』(結城浩著)です。　&lt;br /&gt;
&lt;iframe frameborder=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;http://rcm-fe.amazon-adsystem.com/e/cm?t=springcomesag-22&amp;amp;o=9&amp;amp;p=8&amp;amp;l=as1&amp;amp;asins=4797327030&amp;amp;ref=tf_til&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=99C3CC&amp;amp;bg1=99C3CC&amp;amp;f=ifr&quot; style=&quot;height: 240px; width: 120px;&quot;&gt;&lt;/iframe&gt;

&lt;br /&gt;
ソースコードは本家サイトの&lt;a href=&quot;http://www.hyuki.com/dp/#download&quot; target=&quot;_blank&quot;&gt;こちら&lt;/a&gt;からもダウンロード出来ます。&lt;br /&gt;
&lt;br /&gt;
今回はまるまるコピーではなく、HerokuにデプロイしてWebに結果が出るようにしているので、ソースコードはGitHubに公開しています。&lt;br /&gt;
GitHubはこちら&lt;br /&gt;
&lt;a href=&quot;https://www.blogger.com/git@github.com:yukiko-kato-bass/desgin-pattern-java.git&quot; target=&quot;_blank&quot;&gt;git@github.com:yukiko-kato-bass/desgin-pattern-java.git&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
それでは順次公開していきます！！&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;
第1部　デザインパターンに慣れる&lt;/h2&gt;
&lt;h4&gt;
第1章　Iterator -- 1つ1つ数え上げる --&lt;/h4&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://halucolor.blogspot.com/feeds/2325731297554755094/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://halucolor.blogspot.com/2013/08/javajava.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1055241401186727758/posts/default/2325731297554755094'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1055241401186727758/posts/default/2325731297554755094'/><link rel='alternate' type='text/html' href='http://halucolor.blogspot.com/2013/08/javajava.html' title='[Java]『Java言語で学ぶデザインパターン入門』を写経した'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02030941398793182013</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-1055241401186727758.post-7556089366336487296</id><published>2013-04-10T18:10:00.001+09:00</published><updated>2013-04-10T18:10:12.603+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><category scheme="http://www.blogger.com/atom/ns#" term="Java7"/><category scheme="http://www.blogger.com/atom/ns#" term="JDK"/><category scheme="http://www.blogger.com/atom/ns#" term="Mac"/><category scheme="http://www.blogger.com/atom/ns#" term="xcode"/><title type='text'>[Mac][Java]Java7にアップデートしてみた</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
MacにPlayFrameworkをインストールするのに、Javaのバージョンも上げてみようということで、Javaのアップデートについてまとめました。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
結構ハマった。。&lt;/div&gt;
&lt;br /&gt;
&lt;h4&gt;
○環境&lt;/h4&gt;
OSX10.7.5　Lion&lt;br /&gt;
Java6が標準で入ってました。&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
1.JDKのインストール&lt;/h3&gt;
こちらのサイトを参考にさせて頂きました。&lt;br /&gt;
&lt;a href=&quot;http://krakenbeal.blogspot.jp/2012/03/macjava7.html&quot;&gt;MacでJava7を使う。ｰ KRAKENBEAL RECORDS&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
OracleからJava7の最新バージョンをダウンロード&lt;br /&gt;
&lt;a href=&quot;http://java.com/ja/download/mac_download.jsp?locale=ja&quot;&gt;http://java.com/ja/download/mac_download.jsp?locale=ja&lt;/a&gt;&lt;br /&gt;
※2013/04/09時点では、Java7update17が最新でした。&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
2.OpenJDKをダウンロード&lt;/h3&gt;
まずは、XcodeのCommandLineToolsが必要なので、XcodeのPreferencesのDownloadからCommandLineToolsをインストールします。&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/AVvXsEjDDk5sM76l3BKckaf027I9quEKiu7QEpq030yTDV1H9f7pqYGHV-Ts88H2llS2N8kOx3aXeeHs5-o0UFkkDMm_OpfJxWVzmLSq5GEQC_G39uO8957bJ_4zbhgMOx_rA6U6UmJmWkwVg1M/s1600/CommandLineTool.jpg&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/AVvXsEjDDk5sM76l3BKckaf027I9quEKiu7QEpq030yTDV1H9f7pqYGHV-Ts88H2llS2N8kOx3aXeeHs5-o0UFkkDMm_OpfJxWVzmLSq5GEQC_G39uO8957bJ_4zbhgMOx_rA6U6UmJmWkwVg1M/s1600/CommandLineTool.jpg&quot; height=&quot;225&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;
インストールが完了したら、ターミナルを起動して、以下のwikiを参考にしながらやってきます。&lt;br /&gt;
&lt;a href=&quot;https://github.com/hgomez/obuildfactory/wiki/Building-and-Packaging-OpenJDK7-for-OSX&quot;&gt;Building and Packaging OpenJDK7 for OSX&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;
○XcodeのXcode-selectを有効にする（たぶん）&lt;/h4&gt;
ターミナルで以下コマンドを叩く&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
$ sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer&lt;/blockquote&gt;
&lt;h4&gt;
○Mercurialを入れる(なんかバージョン管理のなんからしい)&lt;/h4&gt;
ターミナルで以下コマンドを叩く。&lt;br /&gt;
&lt;a href=&quot;http://mercurial.selenic.com/&quot;&gt;本家サイト&lt;/a&gt;からzipファイルをダウンロードし、展開したアプリをダブルクリックしてインストールするだけ。&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;
○X11のシンボリックリンクを作成する(Lionのみ)&lt;/h4&gt;
Mountain Lionは別のツール？だかを使うので、必要ないとか。&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
$&amp;nbsp;sudo ln -s /usr/X11/include/X11 /usr/include/X11&lt;/blockquote&gt;
&lt;h4&gt;
○いよいよOpenJDKのダウンロード&lt;/h4&gt;
ディレクトリを作成して、そこにgitからcloneしてきます。&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
$&amp;nbsp;mkdir ~/openjdkathome&lt;br /&gt;$&amp;nbsp;cd ~/openjdkathome&lt;br /&gt;$&amp;nbsp;git clone https://github.com/hgomez/obuildfactory.git&lt;/blockquote&gt;
&lt;br /&gt;
&lt;h4&gt;
○PATHの設定&lt;/h4&gt;
PATHを設定します。&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
$&amp;nbsp;export PATH=&quot;/usr/bin:/bin:/usr/sbin:/sbin:$PATH&quot;&lt;/blockquote&gt;
&lt;h4&gt;
○OpenJDKをビルドする&lt;/h4&gt;
ビルドするのに結構かかります。自分の環境だと30分ぐらいかかってました。。謎。&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
$&amp;nbsp;cd ~/openjdkathome&lt;br /&gt;$&amp;nbsp;XBUILD=true ./obuildfactory/openjdk7/macosx/standalone-job.sh&lt;/blockquote&gt;
&lt;br /&gt;
ビルドが終わったらこんな表示が出ればOK&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;
&amp;gt;&amp;gt;&amp;gt;Finished making images @ Tue Apr &amp;nbsp;9 17:31:25 JST 2013 ...&lt;br /&gt;########################################################################&lt;br /&gt;##### Leaving jdk for target(s) sanity all docs images &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #####&lt;br /&gt;########################################################################&lt;br /&gt;##### Build time 00:28:59 jdk for target(s) sanity all docs images #####&lt;br /&gt;########################################################################&lt;br /&gt;#-- Build times ----------&lt;br /&gt;Target all_product_build&lt;br /&gt;Start 2013-04-09 16:51:58&lt;br /&gt;End &amp;nbsp; 2013-04-09 17:31:26&lt;br /&gt;00:02:55 corba&lt;br /&gt;00:05:07 hotspot&lt;br /&gt;00:00:39 jaxp&lt;br /&gt;00:00:48 jaxws&lt;br /&gt;00:28:59 jdk&lt;br /&gt;00:00:59 langtools&lt;br /&gt;00:39:28 TOTAL&lt;br /&gt;-------------------------&lt;br /&gt;openjdk version &quot;1.7.0-u14-b19&quot;&lt;br /&gt;OpenJDK Runtime Environment (build 1.7.0-u14-b19-20130409)&lt;br /&gt;OpenJDK 64-Bit Server VM (build 24.0-b38, mixed mode)&lt;br /&gt;openjdk version &quot;1.7.0-u14-b19&quot;&lt;br /&gt;OpenJDK Runtime Environment (build 1.7.0-u14-b19-20130409)&lt;br /&gt;OpenJDK 64-Bit Server VM (build 24.0-b38, mixed mode)&lt;/blockquote&gt;
&amp;nbsp;ついでに、以下のパスにjreとjdkのイメージ圧縮ファイルがあればOK。ログにも出力されますが。&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
$ ls -l OBF_DROP_DIR/openjdk7&lt;br /&gt;total 354384&lt;br /&gt;-rw-r--r-- &amp;nbsp;1 ************************* &amp;nbsp;staff &amp;nbsp;29025076 &amp;nbsp;4 &amp;nbsp;9 17:33 j2re-bundle-x86_64-u14-b19-20130409.tar.bz2&lt;br /&gt;-rw-r--r-- &amp;nbsp;1&amp;nbsp;*************************&amp;nbsp; staff &amp;nbsp;29040032 &amp;nbsp;4 &amp;nbsp;9 17:32 j2re-image-x86_64-u14-b19-20130409.tar.bz2&lt;br /&gt;-rw-r--r-- &amp;nbsp;1&amp;nbsp;*************************&amp;nbsp; staff &amp;nbsp;61666278 &amp;nbsp;4 &amp;nbsp;9 17:32 j2sdk-bundle-x86_64-u14-b19-20130409.tar.bz2&lt;br /&gt;-rw-r--r-- &amp;nbsp;1&amp;nbsp;*************************&amp;nbsp; staff &amp;nbsp;61704108 &amp;nbsp;4 &amp;nbsp;9 17:32 j2sdk-image-x86_64-u14-b19-20130409.tar.bz2&lt;/blockquote&gt;
&lt;br /&gt;
○Imageの圧縮ファイルを解凍する&lt;br /&gt;
4つあるうちのj2sdk-bundleから始まるファイル名のファイルを解凍します。&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
$&amp;nbsp;tar xvfj OBF_DROP_DIR/openjdk7/j2sdk-bundle-x86_64-u14-b19-20130409.tar.bz2&lt;/blockquote&gt;
&lt;h4&gt;
○JAVA_HOMEの設定&lt;/h4&gt;
解凍が終わったら、JAVA_HOMEを設定します。&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
$ export JAVA_HOME=`pwd`/jdk1.7.0.jdk/Contents/Home&amp;nbsp;&lt;/blockquote&gt;
&lt;h4&gt;
○バージョンの確認&lt;/h4&gt;
ようやくバージョンの確認！Java6から7に上がっていればOK！&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
$ java -version&lt;br /&gt;openjdk version &quot;1.7.0-u14-b19&quot;&lt;br /&gt;OpenJDK Runtime Environment (build 1.7.0-u14-b19-20130409)&lt;br /&gt;OpenJDK 64-Bit Server VM (build 24.0-b38, mixed mode)&amp;nbsp;&lt;/blockquote&gt;
■考察&lt;br /&gt;
&amp;nbsp;OpenJDKがGitHubに移動して、内容もだいぶ変わってるみたいだったので、結構手順が増えてました。&lt;br /&gt;
そもそもJavaPreferenceがいないし。。&lt;br /&gt;
Mac慣れしないと大変だーーー。&lt;br /&gt;
&lt;br /&gt;
これでようやくPlayFrameworkの設定ができるぞ！！&lt;br /&gt;
</content><link rel='replies' type='application/atom+xml' href='http://halucolor.blogspot.com/feeds/7556089366336487296/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://halucolor.blogspot.com/2013/04/macjavajava7.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1055241401186727758/posts/default/7556089366336487296'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1055241401186727758/posts/default/7556089366336487296'/><link rel='alternate' type='text/html' href='http://halucolor.blogspot.com/2013/04/macjavajava7.html' title='[Mac][Java]Java7にアップデートしてみた'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02030941398793182013</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/AVvXsEjDDk5sM76l3BKckaf027I9quEKiu7QEpq030yTDV1H9f7pqYGHV-Ts88H2llS2N8kOx3aXeeHs5-o0UFkkDMm_OpfJxWVzmLSq5GEQC_G39uO8957bJ_4zbhgMOx_rA6U6UmJmWkwVg1M/s72-c/CommandLineTool.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1055241401186727758.post-7490504446231579780</id><published>2013-04-04T11:24:00.001+09:00</published><updated>2013-04-04T11:52:40.889+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="bitbucket"/><category scheme="http://www.blogger.com/atom/ns#" term="git"/><category scheme="http://www.blogger.com/atom/ns#" term="windows"/><title type='text'>[git][bitbucket]既存のプロジェクトをbitbucketに登録するまで</title><content type='html'>忘備録としてー&lt;br /&gt;
bitbucketにアカウントは作ってあることが前提です。&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;
1.まずは、レポジトリを作成する&lt;/h4&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/AVvXsEiGt_GX5L6v8KMLF6K-yME0GuVoRvoz6iKuO9_8BIFyQm_QTDANQJiGT1vj4drI6t9kVz84SdX0lfBq_lYx62O3LryZ4QXU-mCs70hY21GqWrxnnPM9HJdhtz2OzSWDmTdJMxl8TnGyP8k/s1600/createRepository.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/AVvXsEiGt_GX5L6v8KMLF6K-yME0GuVoRvoz6iKuO9_8BIFyQm_QTDANQJiGT1vj4drI6t9kVz84SdX0lfBq_lYx62O3LryZ4QXU-mCs70hY21GqWrxnnPM9HJdhtz2OzSWDmTdJMxl8TnGyP8k/s1600/createRepository.PNG&quot; height=&quot;182&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
プロジェクト名、説明を適当に入れつつ、レポジトリの作成ボタンをクリックします。&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;
2.ローカルリポジトリのプロジェクトを追加します。&lt;/h4&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/AVvXsEi5BhzXyNeyeGGXOPiTDUVih7SOeT69yJpxH3yUZDwbaxC3Y3axyGKa2bjW3R1yrt_RpSv1Djkg2APvbZkTr68lrO51iq6A0IG745lZOP8rj_8jqTRg48cNUtj3xLSC7QLFD7rdczGWq8Y/s1600/start.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/AVvXsEi5BhzXyNeyeGGXOPiTDUVih7SOeT69yJpxH3yUZDwbaxC3Y3axyGKa2bjW3R1yrt_RpSv1Djkg2APvbZkTr68lrO51iq6A0IG745lZOP8rj_8jqTRg48cNUtj3xLSC7QLFD7rdczGWq8Y/s1600/start.PNG&quot; height=&quot;167&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/AVvXsEgiqN2Jg2KVgpy9ePatDBwANRnfQFLAbBdKgm7xHXs_ytCyGvKRNFmkYrBecrJeBAnQPpwHAQ7OW0D4tKoJ1PHhdWtkF5ToQRmKZv91gcb6sGFundJJsGmnD14ewd8mwb6yEsTRDvinuCA/s1600/import.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/AVvXsEgiqN2Jg2KVgpy9ePatDBwANRnfQFLAbBdKgm7xHXs_ytCyGvKRNFmkYrBecrJeBAnQPpwHAQ7OW0D4tKoJ1PHhdWtkF5ToQRmKZv91gcb6sGFundJJsGmnD14ewd8mwb6yEsTRDvinuCA/s1600/import.PNG&quot; height=&quot;157&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
するとコマンドを教えてくれるので、その通りに叩きます。&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
cd プロジェクトのあるフォルダ&lt;br /&gt;
&lt;br /&gt;
git remote add origin ssh://git@bitbucket.org/ユーザ名/プロジェクト名.git&lt;br /&gt;
git push -u origin --all&lt;br /&gt;
&lt;/blockquote&gt;
&lt;h4&gt;
3.READMEファイルを作成してpushする&lt;/h4&gt;
プロジェクトの説明用にREADME.mdファイルを作らないとあかんということらしいので、&lt;br /&gt;
すでにあったREADMEファイルをコピーして拡張子変えてコミットしました。&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
git add .&lt;br /&gt;
git commit -m &quot;add README.md&quot;&lt;br /&gt;
git push origin master&lt;/blockquote&gt;
&lt;br /&gt;
これで完了です。&lt;br /&gt;
GitHubとそんなに変わらないですね。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://halucolor.blogspot.com/feeds/7490504446231579780/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://halucolor.blogspot.com/2013/04/gitbitbucketbitbucket.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1055241401186727758/posts/default/7490504446231579780'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1055241401186727758/posts/default/7490504446231579780'/><link rel='alternate' type='text/html' href='http://halucolor.blogspot.com/2013/04/gitbitbucketbitbucket.html' title='[git][bitbucket]既存のプロジェクトをbitbucketに登録するまで'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02030941398793182013</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/AVvXsEiGt_GX5L6v8KMLF6K-yME0GuVoRvoz6iKuO9_8BIFyQm_QTDANQJiGT1vj4drI6t9kVz84SdX0lfBq_lYx62O3LryZ4QXU-mCs70hY21GqWrxnnPM9HJdhtz2OzSWDmTdJMxl8TnGyP8k/s72-c/createRepository.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1055241401186727758.post-1567236191927325820</id><published>2013-02-27T17:50:00.003+09:00</published><updated>2013-02-27T17:50:36.931+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AWS"/><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="wordpress"/><title type='text'>[Linux][wordpress]AmazonLinuxにwordpressをインストールして、データをインポートするまで</title><content type='html'>とあるLinuxサーバの本番サーバのテストサーバ作らねばならなくなったので、その時のログをまとめます。&lt;br /&gt;
&lt;div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h4&gt;
■本番環境&lt;/h4&gt;
&lt;div&gt;
Linux&lt;/div&gt;
&lt;div&gt;
wordpressが入ってるので、データをエクスポートする&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h4&gt;
■環境&lt;/h4&gt;
&lt;div&gt;
AWS AmazonLinux&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h4&gt;
■必要なもの&lt;/h4&gt;
&lt;div&gt;
&lt;ul&gt;
&lt;li&gt;Apacheのインストール&lt;/li&gt;
&lt;li&gt;phpのインストール&lt;/li&gt;
&lt;li&gt;MySQL&lt;/li&gt;
&lt;li&gt;wordpress&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div&gt;
それでは順番にやっていきます。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3&gt;
1.Apacheをインストールする&lt;/h3&gt;
&lt;div&gt;
AWSのサーバのコンソールに入って、以下のコマンドを叩く。&lt;/div&gt;
&lt;div&gt;
ec2-userなので、sudo付けてます。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
$ sudo yum -y install httpd&lt;/blockquote&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;blockquote class=&quot;tr_bq&quot;&gt;
$&amp;nbsp;sudo service httpd start&lt;/blockquote&gt;
&lt;div&gt;
自分のサーバIPでブラウザでアクセスして、以下の画面が出ればOK&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/AVvXsEgU-BoPUEm7dkVMoWjulwe2A18jZZCeI492RYuylyKtxBYg9cqNQgIC5U2zRkLvcIUx2MJqpxZCBm_xMecpuvGKkRdpZru85_MxYMj5XF9mrZ7_ztrdKW0_43rI51SRXoN0XkU1GsgWlxI/s1600/apache.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/AVvXsEgU-BoPUEm7dkVMoWjulwe2A18jZZCeI492RYuylyKtxBYg9cqNQgIC5U2zRkLvcIUx2MJqpxZCBm_xMecpuvGKkRdpZru85_MxYMj5XF9mrZ7_ztrdKW0_43rI51SRXoN0XkU1GsgWlxI/s320/apache.PNG&quot; height=&quot;116&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
次に、OS起動時にも起動するように、設定しとく。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
$&amp;nbsp;sudo&amp;nbsp;chkconfig httpd on&lt;/blockquote&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
apacheは終わり。&lt;/div&gt;
&lt;div&gt;
httpd.confの設定は、用途によっていろいろ変更が必要ですが、とりあえずデフォルトで。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3&gt;
2.PHPのインストール&lt;/h3&gt;
&lt;div&gt;
phpをインストールする。ついでにMySQLのプラグインも同時にインストール&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
$&amp;nbsp;sudo yum install php php-mysql&lt;/blockquote&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3&gt;
3.MySQLのインストール&lt;/h3&gt;
&lt;div&gt;
まずはインストール&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
$&amp;nbsp;sudo yum -y install mysql-server&lt;/blockquote&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
OS起動時にも起動するように設定する。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
$ sudo chkconfig mysqld on&lt;/blockquote&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
MySQLを起動する。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
$ sudo service mysqld start&lt;/blockquote&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
MySQLのrootのパスワードを設定する。パスワードは適当に入れる。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
$&amp;nbsp;mysqladmin -u root password &#39;**************&#39;&lt;/blockquote&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
wordpress用の初期設定をする。&lt;/div&gt;
&lt;div&gt;
MySQLにログイン&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
$ mysql -u root -p&lt;/blockquote&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
wordpress用のデータベースを作成する。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;gt;&amp;nbsp;create database wordpress;&lt;/blockquote&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
ユーザにアクセス権限をつける。ここではとりあえずrootユーザに。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;gt;&amp;nbsp;grant all privileges on wordpress.* to root@localhost identified by &#39;*******&#39;;&lt;/blockquote&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
DBを更新。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;gt;&amp;nbsp;flush privileges;&lt;/blockquote&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;blockquote class=&quot;tr_bq&quot;&gt;
&amp;gt; exit&lt;/blockquote&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3&gt;
3.wordpressのセットアップ&lt;/h3&gt;
&lt;div&gt;
まず、wordpressをダウンロード。適当なディレクトリにダウンロードしときます。&lt;/div&gt;
&lt;div&gt;
※2013/02/12現在のwordpressは3.5.1でした。&lt;/div&gt;
&lt;div&gt;
最新版をダウンロードする時は、&lt;a href=&quot;http://ja.wordpress.org/&quot;&gt;ここ&lt;/a&gt;から。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
$ wget&amp;nbsp;http://ja.wordpress.org/wordpress-3.5.1-ja.tar.gz&lt;/blockquote&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;blockquote class=&quot;tr_bq&quot;&gt;
$ tar zxvf wordpress-3.5.1-ja.tar.gz&lt;/blockquote&gt;
&lt;div&gt;
apacheのドキュメントルートに移動。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
$&amp;nbsp;sudo mv wordpress /var/www/&lt;/blockquote&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;blockquote class=&quot;tr_bq&quot;&gt;
$&amp;nbsp;sudo chown -R apache:apache /var/www/wordpress/&lt;/blockquote&gt;
apacheの設定ファイルを更新します。以下を追加。&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
$ sudo vi /etc/httpd/conf/httpd.conf&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;lt;VirtualHost *:80&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; DocumentRoot /var/www/wordpress&lt;br /&gt;&amp;lt;/VirtualHost&amp;gt;&lt;br /&gt;&amp;lt;Directory /var/www/wordpress&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; AllowOverride All&lt;br /&gt;&amp;lt;/Directory&amp;gt;&lt;/blockquote&gt;
書き方はいろいろありますが、今回は簡単にしてます。&lt;br /&gt;
apacheを再起動&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
$ sudo service httpd restart&lt;/blockquote&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
設定画面を表示させる。&lt;/div&gt;
&lt;div&gt;
http://サーバーIP/wp-admin/install.php にアクセス。&lt;/div&gt;
&lt;div&gt;
こんな画面が出ればOK&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/AVvXsEgnZodfQgW3E7LXD6QJqAzjaGhVQIz1xIYntDZMOluRYwPgJ2IUZQo5wN2t1QdZ-Ek3vUZB0zGydWDskwQgLHuUp2Ccv-uEzzEC-dHsxBHmM_NKIMiNP7lav_Qr_Rbrua6RWzx-TiBnvKA/s1600/install1.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/AVvXsEgnZodfQgW3E7LXD6QJqAzjaGhVQIz1xIYntDZMOluRYwPgJ2IUZQo5wN2t1QdZ-Ek3vUZB0zGydWDskwQgLHuUp2Ccv-uEzzEC-dHsxBHmM_NKIMiNP7lav_Qr_Rbrua6RWzx-TiBnvKA/s400/install1.PNG&quot; height=&quot;145&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&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/AVvXsEhszEDeVZbSXY4nfWqEC9t8yDdSuFex8G0F4_EGlCp-Bz-_CAyC15axKHjU22GVqJ0jpMZfBlYfAT5QPVmAob73Bvrjgn970POSsMRpmNPw89BAhD2x8vRsj-6T1jTpJwGSvvinQ3JT988/s1600/install2.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/AVvXsEhszEDeVZbSXY4nfWqEC9t8yDdSuFex8G0F4_EGlCp-Bz-_CAyC15axKHjU22GVqJ0jpMZfBlYfAT5QPVmAob73Bvrjgn970POSsMRpmNPw89BAhD2x8vRsj-6T1jTpJwGSvvinQ3JT988/s1600/install2.PNG&quot; height=&quot;205&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&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/AVvXsEjdjnqceCWo6CoN_I3xPg48WCVDS47Tx36T2T8txQ03gsaOS-2WgAe1gXYb7YyHsQVtTCyCt9s2VpSw29xi19i70n0mfmxI09njJ9sKYXgfv8OhZTeV_j6QSHIXQLbzhiKOMSgoRw6nMjM/s1600/install3.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/AVvXsEjdjnqceCWo6CoN_I3xPg48WCVDS47Tx36T2T8txQ03gsaOS-2WgAe1gXYb7YyHsQVtTCyCt9s2VpSw29xi19i70n0mfmxI09njJ9sKYXgfv8OhZTeV_j6QSHIXQLbzhiKOMSgoRw6nMjM/s1600/install3.PNG&quot; height=&quot;233&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&amp;nbsp;データーベース名は先程作成したwordpress、ユーザ、パスワードも同様。&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/AVvXsEjsJYAWMPcgOUi9cez9YVzP59wMt5kUsSRCCJfEfYmBPbItczUBJ_P60TVHgao0b8FHgxu3FF6td4BlBz6TEb42eMdlmZYMMDQ74dgZzcYgDMRf0snLEvJZWzvtRAiNHHp6zs8wCNOoBFg/s1600/install4.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/AVvXsEjsJYAWMPcgOUi9cez9YVzP59wMt5kUsSRCCJfEfYmBPbItczUBJ_P60TVHgao0b8FHgxu3FF6td4BlBz6TEb42eMdlmZYMMDQ74dgZzcYgDMRf0snLEvJZWzvtRAiNHHp6zs8wCNOoBFg/s1600/install4.PNG&quot; height=&quot;104&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
DBの情報が合ってればインストール実行。&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/AVvXsEiaGru9aUEBD_pLAEN9ihL-JyHqXtcxqEieNPJ-sYx5BGE14dEraIGUeDcqpUed7xosodjPJXtsmsQyF1EqrAWhdVe6b8KKtgdL8PNwAoNJjKD6aBxu42eDMbppZys4PKGd5pKgRqejTC4/s1600/install6.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/AVvXsEiaGru9aUEBD_pLAEN9ihL-JyHqXtcxqEieNPJ-sYx5BGE14dEraIGUeDcqpUed7xosodjPJXtsmsQyF1EqrAWhdVe6b8KKtgdL8PNwAoNJjKD6aBxu42eDMbppZys4PKGd5pKgRqejTC4/s1600/install6.PNG&quot; height=&quot;166&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&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/AVvXsEjYLy571NnS_G8god7hh7XCElsfyUVLD12pQnNMtKlyrRR2ZycDqrROG_XqjOufXPGQQtu2VxLOC_qvH7RAFs3qC4w6uvOq04GbGQamT6ejbDuNpzx7ra9zUXXlvCtWCrJV6JSWtT0W084/s1600/install5.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/AVvXsEjYLy571NnS_G8god7hh7XCElsfyUVLD12pQnNMtKlyrRR2ZycDqrROG_XqjOufXPGQQtu2VxLOC_qvH7RAFs3qC4w6uvOq04GbGQamT6ejbDuNpzx7ra9zUXXlvCtWCrJV6JSWtT0W084/s1600/install5.PNG&quot; height=&quot;239&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
これでwordpressの設定は完了。&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;h3&gt;
4.データをインポートする&lt;/h3&gt;
まずは、wordpressの管理ツールにログインします。&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/AVvXsEhrdIEJtnZD9CboZZncWLPJFRdqsymy7PjaJ1SuPwp8qd6NBrE7-BhCkp2yBIAmcRan_WPq-ug7-HrKW37qGHhlkT4Bpcr5coCaOp-3cPyf_2EzHrERXMPWoLW0JYZXNSwMDk1HQF9-E-o/s1600/wordpress_import.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/AVvXsEhrdIEJtnZD9CboZZncWLPJFRdqsymy7PjaJ1SuPwp8qd6NBrE7-BhCkp2yBIAmcRan_WPq-ug7-HrKW37qGHhlkT4Bpcr5coCaOp-3cPyf_2EzHrERXMPWoLW0JYZXNSwMDk1HQF9-E-o/s1600/wordpress_import.PNG&quot; height=&quot;104&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
wordpressを選択する。&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/AVvXsEgKRL67clUcfKKqdUPGUKbXxXo8tbg6Hk4i-F88KnfQ-Nfde4I0HUJoKs8lVz-x8l5EAUTA5KDMdkBzeBIlkfCdJjcx-emg8H0WSyr2dx4x2JHg4gIueK_6jqXTwvicm7LgIwQfAUNs0wg/s1600/wordpress_import2.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/AVvXsEgKRL67clUcfKKqdUPGUKbXxXo8tbg6Hk4i-F88KnfQ-Nfde4I0HUJoKs8lVz-x8l5EAUTA5KDMdkBzeBIlkfCdJjcx-emg8H0WSyr2dx4x2JHg4gIueK_6jqXTwvicm7LgIwQfAUNs0wg/s1600/wordpress_import2.PNG&quot; height=&quot;248&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&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/AVvXsEieZmEGWyBLX9Xss56tEN2RMag9-1Efj1qfW6Y4A-y5goxrOin552AM69APZa6XWR85kJQ4A0JuaN7xrXcqMeudBb_Xz5CmS4lQoMfgG7m6L-b7q_B9xisOgnR7_J7pqnNl9_orhWchAV4/s1600/wordpress_import3.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/AVvXsEieZmEGWyBLX9Xss56tEN2RMag9-1Efj1qfW6Y4A-y5goxrOin552AM69APZa6XWR85kJQ4A0JuaN7xrXcqMeudBb_Xz5CmS4lQoMfgG7m6L-b7q_B9xisOgnR7_J7pqnNl9_orhWchAV4/s1600/wordpress_import3.PNG&quot; height=&quot;82&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
こんな画面が出たらOK&lt;br /&gt;
&lt;br /&gt;
プラグインを有効化してインポートを実行リンクをクリック&lt;br /&gt;
エクスポートしておいた、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/AVvXsEiZEQ2KdCBqZYVHrq7t6lw-8Vmd_xpDDXcCbMqyCrfCmzHU2lR8grdl2Q6PvrJlzu_US4w-fhNMR6WSAzP6D5udnVwTQnK8CB2Jg_6NccUjOWbKYa7eRXsdtdb4rE2Rs1J13cUkOcdjxVg/s1600/wordpress_import4.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/AVvXsEiZEQ2KdCBqZYVHrq7t6lw-8Vmd_xpDDXcCbMqyCrfCmzHU2lR8grdl2Q6PvrJlzu_US4w-fhNMR6WSAzP6D5udnVwTQnK8CB2Jg_6NccUjOWbKYa7eRXsdtdb4rE2Rs1J13cUkOcdjxVg/s1600/wordpress_import4.PNG&quot; height=&quot;88&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
ブログユーザの変更なども出来るみたいですが、そのままでインポート完了しました。&lt;br /&gt;
アップロードされた画像は別であげないと行けないのが微妙。。。&lt;br /&gt;
&lt;br /&gt;
以上！&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://halucolor.blogspot.com/feeds/1567236191927325820/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://halucolor.blogspot.com/2013/02/linuxwordpressamazonlinuxwordpress.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1055241401186727758/posts/default/1567236191927325820'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1055241401186727758/posts/default/1567236191927325820'/><link rel='alternate' type='text/html' href='http://halucolor.blogspot.com/2013/02/linuxwordpressamazonlinuxwordpress.html' title='[Linux][wordpress]AmazonLinuxにwordpressをインストールして、データをインポートするまで'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02030941398793182013</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/AVvXsEgU-BoPUEm7dkVMoWjulwe2A18jZZCeI492RYuylyKtxBYg9cqNQgIC5U2zRkLvcIUx2MJqpxZCBm_xMecpuvGKkRdpZru85_MxYMj5XF9mrZ7_ztrdKW0_43rI51SRXoN0XkU1GsgWlxI/s72-c/apache.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1055241401186727758.post-4002033744173616641</id><published>2013-02-22T18:24:00.002+09:00</published><updated>2013-02-22T18:24:20.079+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="jquery"/><title type='text'>[jQuery]1.9以上ではliveイベントが廃止されてた</title><content type='html'>jQueryのバージョンをプラグインの関係でバージョンアップしたら、なぜかliveイベントでエラーが。。。&lt;br /&gt;
&lt;br /&gt;
調べてみると、アップグレードの日本語訳にサイトで廃止って書いてました^^;&lt;br /&gt;
&lt;a href=&quot;http://hyper-text.org/archives/2013/02/jquery_core_19_upgrade_guide_ja.shtml&quot;&gt;jQuery Core 1.9 アップグレードガイド 日本語訳&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
『live』の代わりに『on』を使うそうです。&lt;br /&gt;
&lt;br /&gt;
こんな感じ。&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;
$(&quot;input&quot;).on(function() {&lt;br /&gt;});&lt;/blockquote&gt;
&lt;br /&gt;
ひとつお勉強になりました。&lt;br /&gt;
</content><link rel='replies' type='application/atom+xml' href='http://halucolor.blogspot.com/feeds/4002033744173616641/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://halucolor.blogspot.com/2013/02/jquery19live.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1055241401186727758/posts/default/4002033744173616641'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1055241401186727758/posts/default/4002033744173616641'/><link rel='alternate' type='text/html' href='http://halucolor.blogspot.com/2013/02/jquery19live.html' title='[jQuery]1.9以上ではliveイベントが廃止されてた'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02030941398793182013</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-1055241401186727758.post-3511314730181333663</id><published>2013-02-19T17:02:00.000+09:00</published><updated>2013-02-19T17:02:54.194+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AWS"/><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="node.js"/><title type='text'>[AmazonLinux][node.js]node.jsをインストールしてみた</title><content type='html'>node.jsをインストールしてみたぞー！ということで、その時の忘備録。&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;
0.準備&lt;/h4&gt;
まず、AmazonLinuxには開発ツールが標準で入ってないようなので、開発ツールをインストールする必要があるらしいです。&lt;br /&gt;
情報ありがとうございますm(__)m&lt;br /&gt;
&lt;a href=&quot;http://memo-off.blogspot.jp/2012/07/make-command-not-found-on-amazon-linux.html&quot;&gt;make: command not found on Amazon Linux - メモOFF&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
というわけで、2つのコマンドを実行。&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
sudo&amp;nbsp;yum groupinstall &quot;Development Tools&quot;&lt;br /&gt;sudo&amp;nbsp;yum groupinstall &quot;Development Libraries&quot;&lt;/blockquote&gt;
&lt;br /&gt;
あと、コンパイラとopensslもついでに入れときます。&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
sudo yum install gcc gcc-c++ openssl openssl-devel&lt;/blockquote&gt;
&lt;br /&gt;
これで準備完了。&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;
1.node.jsをインストールする&lt;/h4&gt;
&lt;a href=&quot;http://nodejs.jp/&quot;&gt;本家サイト&lt;/a&gt;のダウンロードページから、バージョンを確認してダウンロードします。&lt;br /&gt;
2013/02/19現在では、0.8.20が安定版だったのでこちらをダウンロードします。&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
curl -O http://nodejs.org/dist/v0.8.20/node-v0.8.20.tar.gz&lt;/blockquote&gt;
&lt;br /&gt;
ダウンロードしたパッケージを解凍します。&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;tar zxvf node-v0.8.20.tar.gz&lt;/blockquote&gt;
&lt;br /&gt;
解凍したディレクトリの中に入って、Makefileを作成します。&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
cd node-v0.8.20&lt;br /&gt;./configure&lt;/blockquote&gt;
&lt;br /&gt;
で、コンパイルします。ちょっと長いので、放置。結構かかります。&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
make&lt;/blockquote&gt;
&lt;br /&gt;
makeコマンドのインストールをします。&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
sudo make install&lt;/blockquote&gt;
&lt;br /&gt;
これでおしまい！&lt;br /&gt;
わりと簡単でした。</content><link rel='replies' type='application/atom+xml' href='http://halucolor.blogspot.com/feeds/3511314730181333663/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://halucolor.blogspot.com/2013/02/amazonlinuxnodejsnodejs.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1055241401186727758/posts/default/3511314730181333663'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1055241401186727758/posts/default/3511314730181333663'/><link rel='alternate' type='text/html' href='http://halucolor.blogspot.com/2013/02/amazonlinuxnodejsnodejs.html' title='[AmazonLinux][node.js]node.jsをインストールしてみた'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02030941398793182013</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-1055241401186727758.post-7230096036893100817</id><published>2013-02-06T16:20:00.003+09:00</published><updated>2013-02-07T12:07:33.579+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="git"/><category scheme="http://www.blogger.com/atom/ns#" term="Heroku"/><title type='text'>[git][Heroku]Herokuのpush先を変更する</title><content type='html'>Herokuで自動生成されたアプリケーション名が気に食わなかったｗので、&lt;br /&gt;
Heroku側でアプリケーション名を変更出来なくなった。。。&lt;br /&gt;
&lt;br /&gt;
というわけで、remoteのgitのURLを変更する方法をググってやってみたので、&lt;br /&gt;
その時のメモ。&lt;br /&gt;
&lt;br /&gt;
以下、参考にさせていただきました。ありがとうございます。m(__)m&lt;br /&gt;
&lt;a href=&quot;http://d.hatena.ne.jp/kanonji/20110829/1314596493&quot;&gt;gitのリモートリポジトリoriginのURLを変更する -&amp;nbsp;kanonjiの日記&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;
■現在リモート接続しているURLを確認する&lt;/h4&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
$ git remote -v&lt;/blockquote&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/AVvXsEhT7UfIIB-gMOE7FZ292XS5qH91lrUgU5XYNMOQ-KXwq6K5DELqz8ogGyvxQK-Ndic6UucbtLbcCg3oCBANFo0a44iIE3B6JWxMD8_-tYxHTHRjOwHsdEQQQH1NK6ifNzIFE38Cl3plL7o/s1600/git_remote.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/AVvXsEhT7UfIIB-gMOE7FZ292XS5qH91lrUgU5XYNMOQ-KXwq6K5DELqz8ogGyvxQK-Ndic6UucbtLbcCg3oCBANFo0a44iIE3B6JWxMD8_-tYxHTHRjOwHsdEQQQH1NK6ifNzIFE38Cl3plL7o/s1600/git_remote.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
これのherokuのURLを変更します。&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;
■Herokuの接続先URLを変更する&lt;/h4&gt;
&lt;div&gt;
コマンドはこんな感じ&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
$&amp;nbsp;git remote set-url heroku git@heroku.com:play-study.git&lt;/blockquote&gt;
ちなみに、originの接続先を変更する時は、『heroku』の部分をoriginに変更すればOK&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;
■確認&lt;/h4&gt;
git remote -v でもう一度確認。&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/AVvXsEgYOMqjTgmSQpvnWH7gqXslHjE1OdgLgKycAZ_X0B8Rb5zG1yB1sNPo6aZF2jxiyHBn9koDYs-u3MdiooNZcdFFRsSYaK6DoEc0YolLUzy6eL2v9mvXc5rtZpPXai6TBjwgXKt8tGD0ay4/s1600/git_remote2.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/AVvXsEgYOMqjTgmSQpvnWH7gqXslHjE1OdgLgKycAZ_X0B8Rb5zG1yB1sNPo6aZF2jxiyHBn9koDYs-u3MdiooNZcdFFRsSYaK6DoEc0YolLUzy6eL2v9mvXc5rtZpPXai6TBjwgXKt8tGD0ay4/s1600/git_remote2.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
無事push出来るようになりました。&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://halucolor.blogspot.com/feeds/7230096036893100817/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://halucolor.blogspot.com/2013/02/githerokuherokupush.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1055241401186727758/posts/default/7230096036893100817'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1055241401186727758/posts/default/7230096036893100817'/><link rel='alternate' type='text/html' href='http://halucolor.blogspot.com/2013/02/githerokuherokupush.html' title='[git][Heroku]Herokuのpush先を変更する'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02030941398793182013</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/AVvXsEhT7UfIIB-gMOE7FZ292XS5qH91lrUgU5XYNMOQ-KXwq6K5DELqz8ogGyvxQK-Ndic6UucbtLbcCg3oCBANFo0a44iIE3B6JWxMD8_-tYxHTHRjOwHsdEQQQH1NK6ifNzIFE38Cl3plL7o/s72-c/git_remote.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1055241401186727758.post-3530658496507429710</id><published>2013-02-06T13:02:00.002+09:00</published><updated>2013-02-06T13:02:23.296+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="git"/><category scheme="http://www.blogger.com/atom/ns#" term="github"/><title type='text'>[GitHub]GitHubにローカルリポジトリをコミットする</title><content type='html'>GitHubを使ったことなかったので、勉強用のコードをコミットしてみようと思います。&lt;br /&gt;
そして、コマンドをいつも忘れるので、メモ。。&lt;br /&gt;
※2013/02/06時点の画面です。&lt;br /&gt;
&lt;h4&gt;
0.前準備&lt;/h4&gt;
GitHubのアカウントを作成する&lt;br /&gt;
&lt;h4&gt;
1.GitHubに登録するsshの鍵を作成する&lt;/h4&gt;
Heroku用に作ったので、ここでは割愛。&lt;br /&gt;
詳しくは&lt;a href=&quot;http://halucolor.blogspot.jp/2013/01/windowsmysysgit.html&quot;&gt;ここ&lt;/a&gt;を参照してください。&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;
2.GitHubにsshの鍵を登録する&lt;/h4&gt;
自分のアカウントメニューに行って、『SSH Key』を選択&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/AVvXsEizcKRdVCLwRrusz2mo7zea6QvPNG9QOXAOk5j89va1Kvw1BSC1FhM1Rj0DPspdn9TeVYNC8TsbhUMo339GyoWmq1y1aFMZJjvQtaluALe6xhrDie3-B0MqZ48dfrM3-f3D1CLsqHsIkq4/s1600/account_menu.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/AVvXsEizcKRdVCLwRrusz2mo7zea6QvPNG9QOXAOk5j89va1Kvw1BSC1FhM1Rj0DPspdn9TeVYNC8TsbhUMo339GyoWmq1y1aFMZJjvQtaluALe6xhrDie3-B0MqZ48dfrM3-f3D1CLsqHsIkq4/s1600/account_menu.PNG&quot; height=&quot;320&quot; width=&quot;174&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
開いたら、『Add SSH Key』ボタンを押す&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/AVvXsEhPe03nROBMKLXyuZfhpyJb69lgwsowxoaDvsnrL5V3g8nuSNbD2ZPwACMiKftpH_845zYNGjYuIz5oL2Df8l5yvSwYfInBcE2KypMB-Hg7rr3jz90zNrBlAWRtIK07z8R4hRnOM6bW69Q/s1600/add_ssh_key_button.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/AVvXsEhPe03nROBMKLXyuZfhpyJb69lgwsowxoaDvsnrL5V3g8nuSNbD2ZPwACMiKftpH_845zYNGjYuIz5oL2Df8l5yvSwYfInBcE2KypMB-Hg7rr3jz90zNrBlAWRtIK07z8R4hRnOM6bW69Q/s1600/add_ssh_key_button.PNG&quot; height=&quot;25&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
ローカルに作成した『id_rsa.pub』をテキストエディタで開いてコピーし、keyに貼り付けます。&lt;br /&gt;
※keyは、デフォルトのWindowsの場合、『C:\Users\ユーザー名\.ssh』のところに作成されます。&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/AVvXsEg6PVHWCJ2Uw5gmBdV6juRfFIJC7khA-0RzJp_dfFS-h2otDhxHFSO8BcjayFEMbKhcVKqpwwJY0krn_SayUTLqI-9oDQsq-i5mhb7OUx_RJaKeU4O3qF0O2rhD047CH5rR3iHAf1QynJ8/s1600/sshkey.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/AVvXsEg6PVHWCJ2Uw5gmBdV6juRfFIJC7khA-0RzJp_dfFS-h2otDhxHFSO8BcjayFEMbKhcVKqpwwJY0krn_SayUTLqI-9oDQsq-i5mhb7OUx_RJaKeU4O3qF0O2rhD047CH5rR3iHAf1QynJ8/s1600/sshkey.PNG&quot; height=&quot;203&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
貼り付けたら、『Add Key』を押して終わり&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;
3.リポジトリをGitHubに登録する&lt;/h4&gt;
右上の『Create a new repo』を押して、好きなレポジトリ名を入力。『Create Repository』をクリックして完了。&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/AVvXsEgVVaO2HQF23nrQegBGpC4-fIdD80mmSfN4Nvyg9OpZW6ct3-PysXtlc13QwPU8iRKmyivUSb1q19t2H1aBEZ5uXw43NLte1r4OQOLTc9eMfg9Pw-dv6Zbn4SIC5OjnJHe9o8vOqdKF3SA/s1600/create_repo.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/AVvXsEgVVaO2HQF23nrQegBGpC4-fIdD80mmSfN4Nvyg9OpZW6ct3-PysXtlc13QwPU8iRKmyivUSb1q19t2H1aBEZ5uXw43NLte1r4OQOLTc9eMfg9Pw-dv6Zbn4SIC5OjnJHe9o8vOqdKF3SA/s1600/create_repo.PNG&quot; height=&quot;186&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h4&gt;
4.ローカルのgitリポジトリを、GitHubと紐付ける&lt;/h4&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/AVvXsEhAcYuZtMlb5ruqKLllq8LTyakXoGr-PQyENzKWlIUOXmoTjUhVHHkZvD_fMaxfwqkqrmTxlwBJzjUqHlz2iCxnwLXeVYE7NhIf6d5t7HncvSB9jWeglZtVU9TBhTzmbEXYKT6m4pMpy_U/s1600/git_command.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/AVvXsEhAcYuZtMlb5ruqKLllq8LTyakXoGr-PQyENzKWlIUOXmoTjUhVHHkZvD_fMaxfwqkqrmTxlwBJzjUqHlz2iCxnwLXeVYE7NhIf6d5t7HncvSB9jWeglZtVU9TBhTzmbEXYKT6m4pMpy_U/s1600/git_command.PNG&quot; height=&quot;168&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
ここでは、既存のローカルリポジトリの紐付けなので、下の方のコマンドを実行します。&lt;br /&gt;
既存のローカルリポジトリのディレクトリに移動してから、以下のコマンドを実行。&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
git remote add origin git@github.com:GitHubのユーザ名/test.git&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
git push -u origin master&amp;nbsp;&lt;/blockquote&gt;
ssh-keyのパスフレーズの入力を求められるので、作成した時のパスフレーズを入力します。&lt;br /&gt;
これで終わり。&lt;br /&gt;
&lt;br /&gt;
GitHubの画面に行って確認してみると&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/AVvXsEgo8Y1AxkqWCBFEwSWkqiB7qiVqDxmTKXmHBuJpuq6-UEdVa4TR5NlH4FFlhwcgavhbkMdvPINr_D5_ALr55W9vhiHO9a0O63XbuR5sQMdzPOTSYxArHDdCcU6bcYKOJrVY2N7YNJN4VUc/s1600/test-github.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/AVvXsEgo8Y1AxkqWCBFEwSWkqiB7qiVqDxmTKXmHBuJpuq6-UEdVa4TR5NlH4FFlhwcgavhbkMdvPINr_D5_ALr55W9vhiHO9a0O63XbuR5sQMdzPOTSYxArHDdCcU6bcYKOJrVY2N7YNJN4VUc/s1600/test-github.PNG&quot; height=&quot;184&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
無事出来てました！！&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://halucolor.blogspot.com/feeds/3530658496507429710/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://halucolor.blogspot.com/2013/02/githubgithub.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1055241401186727758/posts/default/3530658496507429710'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1055241401186727758/posts/default/3530658496507429710'/><link rel='alternate' type='text/html' href='http://halucolor.blogspot.com/2013/02/githubgithub.html' title='[GitHub]GitHubにローカルリポジトリをコミットする'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02030941398793182013</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/AVvXsEizcKRdVCLwRrusz2mo7zea6QvPNG9QOXAOk5j89va1Kvw1BSC1FhM1Rj0DPspdn9TeVYNC8TsbhUMo339GyoWmq1y1aFMZJjvQtaluALe6xhrDie3-B0MqZ48dfrM3-f3D1CLsqHsIkq4/s72-c/account_menu.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1055241401186727758.post-6225862865060159257</id><published>2013-02-04T16:21:00.003+09:00</published><updated>2013-02-04T16:21:49.003+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="jquery"/><title type='text'>[jQuery]入力された文字を自動計算して出力する</title><content type='html'>jsで自動生成するリストの中にあるテキストボックスに入力された数値を自動計算するjsを、ちょっとゴリっと書いてみたときのメモ。&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h4&gt;
■ソース&lt;/h4&gt;
&lt;div&gt;
&lt;script src=&quot;https://gist.github.com/4705367.js&quot;&gt;&lt;/script&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;h4&gt;
■ちょっと解説&lt;/h4&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;ul&gt;
&lt;li&gt;リストはjsで自動生成しているので、『bind』ではなく、『live』でイベント拾ってます。&lt;/li&gt;
&lt;li&gt;リストは可変なので、idの前方一致で拾うようにしてます。もうちょっといい方法があるかな？&lt;/li&gt;
&lt;li&gt;あとは、for文で、そのリスト分回して、計算。&lt;/li&gt;
&lt;li&gt;計算した結果をid=&quot;total&quot;に入れて表示。&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
いろいろ応用はできそうな感じですな。&lt;/div&gt;
&lt;div&gt;
もうちょっと、高速化とか考えたいところです。。&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://halucolor.blogspot.com/feeds/6225862865060159257/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://halucolor.blogspot.com/2013/02/jquery.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1055241401186727758/posts/default/6225862865060159257'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1055241401186727758/posts/default/6225862865060159257'/><link rel='alternate' type='text/html' href='http://halucolor.blogspot.com/2013/02/jquery.html' title='[jQuery]入力された文字を自動計算して出力する'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02030941398793182013</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-1055241401186727758.post-6041937299353837132</id><published>2013-02-01T11:31:00.001+09:00</published><updated>2013-02-01T11:31:57.172+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="jquery"/><title type='text'>[ｊQuery]オブジェクトをクリックする</title><content type='html'>jQueryを使って、要素をクリックする方法。&lt;br /&gt;
指定する要素はなんでもOKなようです。&lt;br /&gt;
&lt;br /&gt;
&lt;script src=&quot;https://gist.github.com/4688705.js&quot;&gt;&lt;/script&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://halucolor.blogspot.com/feeds/6041937299353837132/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://halucolor.blogspot.com/2013/02/query.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1055241401186727758/posts/default/6041937299353837132'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1055241401186727758/posts/default/6041937299353837132'/><link rel='alternate' type='text/html' href='http://halucolor.blogspot.com/2013/02/query.html' title='[ｊQuery]オブジェクトをクリックする'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02030941398793182013</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-1055241401186727758.post-1436643736383247125</id><published>2013-01-29T15:00:00.000+09:00</published><updated>2013-01-29T15:00:04.673+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="css"/><category scheme="http://www.blogger.com/atom/ns#" term="iOS"/><title type='text'>[css]iPhone/iPadの表示サイズ</title><content type='html'>綺麗にまとまってるサイトがあったので、忘れないように。&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://program.station.ez-net.jp/special/handbook/objective-c/iphone/ui/layout.asp&quot;&gt;iPhone や iPad の画面サイズ早見表 -&amp;nbsp;iPhone プログラミング&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://program.station.ez-net.jp/special/handbook/objective-c/iphone/ui/layout.asp&quot;&gt;http://program.station.ez-net.jp/special/handbook/objective-c/iphone/ui/layout.asp&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Redtinaのピクセルも書いていて、重宝しそう。</content><link rel='replies' type='application/atom+xml' href='http://halucolor.blogspot.com/feeds/1436643736383247125/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://halucolor.blogspot.com/2013/01/cssiphoneipad.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1055241401186727758/posts/default/1436643736383247125'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1055241401186727758/posts/default/1436643736383247125'/><link rel='alternate' type='text/html' href='http://halucolor.blogspot.com/2013/01/cssiphoneipad.html' title='[css]iPhone/iPadの表示サイズ'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02030941398793182013</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-1055241401186727758.post-6333420337800034569</id><published>2013-01-23T12:30:00.001+09:00</published><updated>2013-01-23T12:30:19.582+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CDN"/><category scheme="http://www.blogger.com/atom/ns#" term="css"/><category scheme="http://www.blogger.com/atom/ns#" term="jquery"/><title type='text'>jqueryライブラリのCDN</title><content type='html'>googleとかいろんなところのCDNがありますが、&lt;br /&gt;
どこかに書いてないかなーと思ってググったら&lt;br /&gt;
&lt;br /&gt;
ここに書いてありました。&lt;br /&gt;
&lt;a href=&quot;http://blog.jqueryui.com/&quot;&gt;Blog -jQuery user interface&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
ここ見ればなんとかなるね。</content><link rel='replies' type='application/atom+xml' href='http://halucolor.blogspot.com/feeds/6333420337800034569/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://halucolor.blogspot.com/2013/01/jquerycdn.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1055241401186727758/posts/default/6333420337800034569'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1055241401186727758/posts/default/6333420337800034569'/><link rel='alternate' type='text/html' href='http://halucolor.blogspot.com/2013/01/jquerycdn.html' title='jqueryライブラリのCDN'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02030941398793182013</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-1055241401186727758.post-3780987568595978957</id><published>2013-01-15T11:31:00.001+09:00</published><updated>2013-01-15T11:31:15.440+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="mongoDB"/><category scheme="http://www.blogger.com/atom/ns#" term="windows"/><title type='text'>[Windows][mongoDB]Windows7にmongoDBをインストールしてみた</title><content type='html'>興味はあったけど、まだ触ったことなかったので、いろいろゴネゴネしようと思います。&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;参考URL&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
Install MongoDB on Windows -The MongoDB Manual&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;環境&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
Windows 7 64bit&lt;/div&gt;
&lt;h4&gt;
1.ダウンロード&lt;/h4&gt;
&lt;div&gt;
&lt;a href=&quot;http://www.mongodb.org/downloads&quot;&gt;本家のダウンロードページ&lt;/a&gt;から、Windows版のインストーラーをダウンロードします。&lt;/div&gt;
&lt;div&gt;
2013/01/15時点では、2.2.2が最新バージョンでした&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/AVvXsEhIYOobyY9IQ_Eoik9_kWlo092owtz69REYbeIau_8ujbEHH_DAPIW2RKqzrdWCr-Y-4RMg8hdW5OkyIb1wFLnyCLBzbdU8psJAJOiMLeFNbzpymrFV2XrkSi2j-W_yXNr2Tn-nDNVS6hU/s1600/mongoDB%E3%83%80%E3%82%A6%E3%83%B3%E3%83%AD%E3%83%BC%E3%83%89.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/AVvXsEhIYOobyY9IQ_Eoik9_kWlo092owtz69REYbeIau_8ujbEHH_DAPIW2RKqzrdWCr-Y-4RMg8hdW5OkyIb1wFLnyCLBzbdU8psJAJOiMLeFNbzpymrFV2XrkSi2j-W_yXNr2Tn-nDNVS6hU/s1600/mongoDB%E3%83%80%E3%82%A6%E3%83%B3%E3%83%AD%E3%83%BC%E3%83%89.PNG&quot; height=&quot;115&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
※ちなみに、2.2系からWindowsXPがサポート対象外になってるそうです。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h4&gt;
2.解凍する&lt;/h4&gt;
&lt;div&gt;
解凍先はcドライブ直下に。&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/AVvXsEiVQw6Nf8xoA4c85hJ0QEBoSJEX-MADqMP-4bYT4Gj1Zxd9hT2A5Wh855dfe_N0LTy6GUaLA_F3vvs5eKw8y1TiIws0OkpHkecRORRD-dQLG9YwOUoSP98-XJYzbz54jCrgdHODfUaBDVE/s1600/%E8%A7%A3%E5%87%8D%E5%85%88.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/AVvXsEiVQw6Nf8xoA4c85hJ0QEBoSJEX-MADqMP-4bYT4Gj1Zxd9hT2A5Wh855dfe_N0LTy6GUaLA_F3vvs5eKw8y1TiIws0OkpHkecRORRD-dQLG9YwOUoSP98-XJYzbz54jCrgdHODfUaBDVE/s1600/%E8%A7%A3%E5%87%8D%E5%85%88.PNG&quot; height=&quot;106&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;h4&gt;
3.フォルダ名を変更する&lt;/h4&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/AVvXsEjk6iWOZ7-ClLGBg2CCUz2UtTqpWXS9LpxwGPr7kWxlRVbq3wp7dhvKLYTIDtoYI4JR44M_8C6UzyQh_BQWXuZ1gJbKoKbQ6zztSqwG1ObkdWSN6pTvvzkdcEaipVH6ybntz9Z9c2bwT-c/s1600/%E3%83%95%E3%82%A9%E3%83%AB%E3%83%80%E5%90%8D%E5%A4%89%E6%9B%B4.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/AVvXsEjk6iWOZ7-ClLGBg2CCUz2UtTqpWXS9LpxwGPr7kWxlRVbq3wp7dhvKLYTIDtoYI4JR44M_8C6UzyQh_BQWXuZ1gJbKoKbQ6zztSqwG1ObkdWSN6pTvvzkdcEaipVH6ybntz9Z9c2bwT-c/s1600/%E3%83%95%E3%82%A9%E3%83%AB%E3%83%80%E5%90%8D%E5%A4%89%E6%9B%B4.PNG&quot; height=&quot;28&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
mongodb-win32-x86_64-2.2.2 → mongodbに変更します。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h4&gt;
4.mongoDBのデータフォルダを作成する&lt;/h4&gt;
&lt;div&gt;
コマンドプロンプトを[管理者として実行]して、以下のコマンドを実行する&lt;/div&gt;
&lt;div&gt;
mongoDBのデフォルトのデータフォルダを作成します。&lt;/div&gt;
&lt;div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
md data&lt;br /&gt;md data\db&lt;/blockquote&gt;
&lt;/div&gt;
&lt;div&gt;
ちなみに、デフォルト以外を指定する時は、&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
C:\mongodb\bin\mongod.exe --dbpath 任意のフォルダ&lt;/blockquote&gt;
&lt;div&gt;
で指定が可能らしい。起動時に指定するカタチですね。&lt;/div&gt;
&lt;div&gt;
ここでは、デフォルトのままにします。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h4&gt;
5.mongoDBを起動する&lt;/h4&gt;
&lt;div&gt;
コマンドプロンプトからmongoDBを起動。&lt;/div&gt;
&lt;div&gt;
直接叩く時は、管理者権限で実行した方がよいのだろうか？&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
C:\mongodb\bin\mongod.exe&lt;/blockquote&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/AVvXsEg0TZ36cHItU2htdbwFVxPjLRnDwBQDTV41d_FcCfwVtBGsbIxn-VpReusDtAyay0S2x6Xw1fxUeebvqAlt6wY8eEFI5jerDWiEwydDlJ5IA97IkC6rtFcxu3XJNFnB6wmFHT30UC8tcG8/s1600/mongoDB%E8%B5%B7%E5%8B%95.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/AVvXsEg0TZ36cHItU2htdbwFVxPjLRnDwBQDTV41d_FcCfwVtBGsbIxn-VpReusDtAyay0S2x6Xw1fxUeebvqAlt6wY8eEFI5jerDWiEwydDlJ5IA97IkC6rtFcxu3XJNFnB6wmFHT30UC8tcG8/s1600/mongoDB%E8%B5%B7%E5%8B%95.PNG&quot; height=&quot;202&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h4&gt;
6.mongoDBにアクセスする&lt;/h4&gt;
&lt;div&gt;
起動とアクセスするコマンドプロンプトは異なるようです。&lt;/div&gt;
&lt;div&gt;
もう一つ、コマンドプロンプトを立ちあげて、以下のコマンドを叩く。&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
C:\mongodb\bin\mongo.exe&lt;/blockquote&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/AVvXsEinwtEJSMZbLUch6JfQ_VxP5SmzYZ1ZHm23dSkVBX6mVu7gNTFGZqF0j5zv070t8FeXmSpPkJlpcbRnnT-KWdPrA3daZmFZTYV4gTvWDjKh1FlNPqLJBqCkKuePDELbppsKDr9tULrJ3eE/s1600/access_mongoDB.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/AVvXsEinwtEJSMZbLUch6JfQ_VxP5SmzYZ1ZHm23dSkVBX6mVu7gNTFGZqF0j5zv070t8FeXmSpPkJlpcbRnnT-KWdPrA3daZmFZTYV4gTvWDjKh1FlNPqLJBqCkKuePDELbppsKDr9tULrJ3eE/s1600/access_mongoDB.PNG&quot; height=&quot;100&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h4&gt;
7.ちょっとテスト&lt;/h4&gt;
&lt;div&gt;
デフォルトのDBのtestにデータを入れてみようってことで以下のコマンドを叩きます。&lt;/div&gt;
&lt;div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;gt; db.test.save( { a: 1 } )&lt;br /&gt;&amp;gt; db.test.find()&lt;br /&gt;{ &quot;_id&quot; : ObjectId(&quot;50f4bece95dc4b1ec8aee70b&quot;), &quot;a&quot; : 1 }&lt;/blockquote&gt;
&lt;/div&gt;
&lt;div&gt;
findのあとにデータが表示されればOK。&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;
データを操作する時は、JavaScriptの記述で行うようです。&lt;/div&gt;
&lt;div&gt;
そのへんは勉強しよう。。。&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://halucolor.blogspot.com/feeds/3780987568595978957/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://halucolor.blogspot.com/2013/01/windowsmongodbwindows7mongodb.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1055241401186727758/posts/default/3780987568595978957'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1055241401186727758/posts/default/3780987568595978957'/><link rel='alternate' type='text/html' href='http://halucolor.blogspot.com/2013/01/windowsmongodbwindows7mongodb.html' title='[Windows][mongoDB]Windows7にmongoDBをインストールしてみた'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02030941398793182013</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/AVvXsEhIYOobyY9IQ_Eoik9_kWlo092owtz69REYbeIau_8ujbEHH_DAPIW2RKqzrdWCr-Y-4RMg8hdW5OkyIb1wFLnyCLBzbdU8psJAJOiMLeFNbzpymrFV2XrkSi2j-W_yXNr2Tn-nDNVS6hU/s72-c/mongoDB%E3%83%80%E3%82%A6%E3%83%B3%E3%83%AD%E3%83%BC%E3%83%89.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1055241401186727758.post-2015762679821167219</id><published>2013-01-11T11:31:00.003+09:00</published><updated>2013-01-11T11:31:41.592+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="eclipse"/><category scheme="http://www.blogger.com/atom/ns#" term="Play framework"/><category scheme="http://www.blogger.com/atom/ns#" term="scala"/><category scheme="http://www.blogger.com/atom/ns#" term="windows"/><title type='text'>[Play Framework][Scala]Scala IDE for Eclipseを入れてみた</title><content type='html'>Play Frameworkを使うにあたって、htmlのテンプレートはscalaで記述しますが、&lt;br /&gt;
EclipseのIDEが公開されているようなので入れてみました。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;
1.Eclipseを起動して[Help]-&amp;gt;[New Install Software]を選択&lt;/h4&gt;
&lt;br /&gt;
&lt;h4&gt;
2.『Work with』に以下URLを入れて、必要なものにチェックを入れる&lt;/h4&gt;
&lt;div&gt;
&lt;a href=&quot;http://download.scala-ide.org/sdk/e37/scala29/stable/site/&quot;&gt;http://download.scala-ide.org/sdk/e37/scala29/stable/site/&lt;/a&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/AVvXsEjYDykUEccuneBrCZie_DwsXBbpt31st-W30oa2g5LSTQUlBQraZH-fA_ds3IhVqh3s1fX7xKsmwhUr9tOd_mHT5rhRTyQ8tzQ-eZPnDjG6g5M6XfkVoLO5Jk48GmGchbwcb_Ft3_UmXzY/s1600/scala_ide.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/AVvXsEjYDykUEccuneBrCZie_DwsXBbpt31st-W30oa2g5LSTQUlBQraZH-fA_ds3IhVqh3s1fX7xKsmwhUr9tOd_mHT5rhRTyQ8tzQ-eZPnDjG6g5M6XfkVoLO5Jk48GmGchbwcb_Ft3_UmXzY/s1600/scala_ide.PNG&quot; height=&quot;221&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;a href=&quot;http://scala-ide.org/download/current.html&quot;&gt;ダウンロードページ&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
※eclipse3.6(Helios)と3.7(Indigo)がサポート対象です。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
ここでは、&lt;/div&gt;
&lt;div&gt;
&lt;ul&gt;
&lt;li&gt;Scala IDE for Eclipse&lt;/li&gt;
&lt;li&gt;Scala IDE for Eclipse development support(たぶん要らない)&lt;/li&gt;
&lt;li&gt;ScalaTest for Scala IDE&lt;/li&gt;
&lt;/ul&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;h4&gt;
3.eclipseを再起動&lt;/h4&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h4&gt;
4.Scala IDE for Eclipseの設定画面が表示&lt;/h4&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/AVvXsEjJdDDno3o1g9oEhG0wQWikjkpd0Gb_w_2n34y3XUzyi0idDX4Vuo8-xueWoVXTIcgE8ACxBs8dc30Y27H_FniCbRruuFyHqm2XTdnZW4aBLt6tj1_r3iv9YC0Su4zb9f9vas0XJmZSB9I/s1600/scala_ide_setting.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/AVvXsEjJdDDno3o1g9oEhG0wQWikjkpd0Gb_w_2n34y3XUzyi0idDX4Vuo8-xueWoVXTIcgE8ACxBs8dc30Y27H_FniCbRruuFyHqm2XTdnZW4aBLt6tj1_r3iv9YC0Su4zb9f9vas0XJmZSB9I/s1600/scala_ide_setting.PNG&quot; height=&quot;400&quot; width=&quot;371&quot; /&gt;&lt;/a&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;
それにしても推奨はHeapを1G使うのか。。うーん。&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;h4&gt;
5.ちょっと確認&lt;/h4&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;/div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;パースペクティブにScalaが追加されている&lt;/b&gt;&lt;/li&gt;
&lt;/ul&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/AVvXsEgeCpLKu8QjSKFRPRvc1eXrBExF9s58eZZZvRND6L5Elz_L5AHbgzfczzjJDeNVoRloT00kIXVwLuNLSEr5JAg1pKjvuntfwCKy94EoeiFG3YuNiESINesxhT1_Jtx6X8PT9qFDbz0kUXQ/s1600/scala_ide_open_perspective.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/AVvXsEgeCpLKu8QjSKFRPRvc1eXrBExF9s58eZZZvRND6L5Elz_L5AHbgzfczzjJDeNVoRloT00kIXVwLuNLSEr5JAg1pKjvuntfwCKy94EoeiFG3YuNiESINesxhT1_Jtx6X8PT9qFDbz0kUXQ/s1600/scala_ide_open_perspective.PNG&quot; height=&quot;320&quot; width=&quot;284&quot; /&gt;&lt;/a&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;/div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;新規プロジェクトを作成&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
右クリック-&amp;gt;[New]-&amp;gt;[Scala Project]を選択。ここにも出てきてるー&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/AVvXsEjWKYKuKaco95a3F39zOD7cmhDDlxHNqs6pBTdH3i58B1Bq0_WA-275ZEhhmsSu3nj366cwObeg_51N0AGPWAnQP3onfj8lp2PBCSdaZ3X7bf-PRY5EaH0DfuwDVx-CXMMyL4zHhL-Ew-Y/s1600/scala_project.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/AVvXsEjWKYKuKaco95a3F39zOD7cmhDDlxHNqs6pBTdH3i58B1Bq0_WA-275ZEhhmsSu3nj366cwObeg_51N0AGPWAnQP3onfj8lp2PBCSdaZ3X7bf-PRY5EaH0DfuwDVx-CXMMyL4zHhL-Ew-Y/s1600/scala_project.PNG&quot; height=&quot;301&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
helloというプロジェクト名にしました。&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;ul&gt;
&lt;li&gt;&lt;b&gt;新規クラスを作成&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
[New]-&amp;gt;[Scala Object]を選択&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
オブジェクト名を入れて、『public static void main(String[] args)』にチェックを入れてFinish&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/AVvXsEhd9pFmDNHAi77yblnQtL_XwGGWWnand1ovu7tFLyjUb0x8xLS-p2yLCgzu3sG8l7QDacxkbazr6tYUEQD-XT9nRIDiGIBfKGtExWyqhZ6zbYxoQb6Aps7VKFDNoiFfgjZkKMbC8E_0pXA/s1600/scala_object.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/AVvXsEhd9pFmDNHAi77yblnQtL_XwGGWWnand1ovu7tFLyjUb0x8xLS-p2yLCgzu3sG8l7QDacxkbazr6tYUEQD-XT9nRIDiGIBfKGtExWyqhZ6zbYxoQb6Aps7VKFDNoiFfgjZkKMbC8E_0pXA/s1600/scala_object.PNG&quot; height=&quot;265&quot; width=&quot;400&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;ul&gt;
&lt;li&gt;&lt;b&gt;Helloって書いちゃう&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;script src=&quot;https://gist.github.com/e3b13f9e9178dc1e21d2.js&quot;&gt;&lt;/script&gt;

&lt;br /&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;/div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;実行&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
[Run As]-&amp;gt;[Scala Application]を選択&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/AVvXsEhMBcnRxwjPKH6fGOnncv73xTzmXwwTpDSTRzbX2J0Qa4DPogyiadys09KA46jD-uY6Dp1yqEArUQG78XyX9HogHAOGBZpjaSLFXk2-xhC2vthKti-gHC3TISCYCEhqamkksfXnwD9jpeY/s1600/scala_run.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/AVvXsEhMBcnRxwjPKH6fGOnncv73xTzmXwwTpDSTRzbX2J0Qa4DPogyiadys09KA46jD-uY6Dp1yqEArUQG78XyX9HogHAOGBZpjaSLFXk2-xhC2vthKti-gHC3TISCYCEhqamkksfXnwD9jpeY/s1600/scala_run.PNG&quot; height=&quot;86&quot; width=&quot;400&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&gt;
ようやく準備終わり。。&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://halucolor.blogspot.com/feeds/2015762679821167219/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://halucolor.blogspot.com/2013/01/scalascala-ide-for-eclipse.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1055241401186727758/posts/default/2015762679821167219'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1055241401186727758/posts/default/2015762679821167219'/><link rel='alternate' type='text/html' href='http://halucolor.blogspot.com/2013/01/scalascala-ide-for-eclipse.html' title='[Play Framework][Scala]Scala IDE for Eclipseを入れてみた'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02030941398793182013</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/AVvXsEjYDykUEccuneBrCZie_DwsXBbpt31st-W30oa2g5LSTQUlBQraZH-fA_ds3IhVqh3s1fX7xKsmwhUr9tOd_mHT5rhRTyQ8tzQ-eZPnDjG6g5M6XfkVoLO5Jk48GmGchbwcb_Ft3_UmXzY/s72-c/scala_ide.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1055241401186727758.post-2989955459661348215</id><published>2013-01-10T22:28:00.000+09:00</published><updated>2013-01-10T22:28:19.366+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="git"/><category scheme="http://www.blogger.com/atom/ns#" term="mysysgit"/><category scheme="http://www.blogger.com/atom/ns#" term="windows"/><title type='text'>[Windows]mysysgitで公開鍵を作成する</title><content type='html'>Herokuを使うのに公開鍵が必要だということで、いろいろググってmysysgitで公開鍵を作りました。&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;
1.まずはmysysGitをインストールする&lt;/h4&gt;
&lt;br /&gt;
ここのページからexeをダウンロードする。&lt;br /&gt;
2013/01/10時点では、Git-1.8.0-preview20121022.exeが最新版でした。&lt;br /&gt;
&lt;a href=&quot;http://code.google.com/p/msysgit/downloads/list&quot;&gt;http://code.google.com/p/msysgit/downloads/list&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
インストール方法は、以下のサイトを参考にさせていただきました。&lt;br /&gt;
&lt;a href=&quot;http://www.karakaram.com/git-install&quot;&gt;Windowsにmsysgitをインストールしてgithubを利用する方法 -karakaram-blog&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;
2.Git Bashを起動する&lt;/h4&gt;
&lt;br /&gt;
&lt;h4&gt;
3.公開鍵を作成する&lt;/h4&gt;
&lt;br /&gt;
以下のコマンドで作成。メアドはHerokuで登録しているメアドです。&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
ssh-keygen -t rsa -C &quot;Email-adress@mail.com&quot;&lt;/blockquote&gt;
このコマンドを叩くと、keyのファイル名とパスフレーズの入力が求められます。&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/AVvXsEiz_7TclLzeaMWv3LpvUtGncM5RSuKT2pkIYyRKdJ3Ptu-rhYRdURMubT5HQZZ9_2m2i6AXdVk5Lnq6EevtJwtzqgcUHDWZwwC7K3fCZFamhZgBkklGEec-9-RKzENvNUAsj0pI6xXdrGc/s1600/pub_key.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/AVvXsEiz_7TclLzeaMWv3LpvUtGncM5RSuKT2pkIYyRKdJ3Ptu-rhYRdURMubT5HQZZ9_2m2i6AXdVk5Lnq6EevtJwtzqgcUHDWZwwC7K3fCZFamhZgBkklGEec-9-RKzENvNUAsj0pI6xXdrGc/s1600/pub_key.PNG&quot; height=&quot;36&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
ファイル名は新規の場合は入力しなくても、デフォルトで『id_rsa』『id_rsa.pub』というファイルが生成されますが、再度生成する場合は名前を付けた方がよいかと。&lt;br /&gt;
パススレーズはなんでもOKです。&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/AVvXsEhObVt473ewZOk0uTMKRa2pOpo2Nm9Vgb2xkkPdcyIKAOj8ymTprYCgdEKq_L3uURPI69nWvz8__Q3BGRB_UJ9mmLX2jS8Jph3zb-wvJKOs3HvQz9yqdgvEQoLjQx7WJEWB3zh0neThyphenhyphenSM/s1600/create_pub_key.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/AVvXsEhObVt473ewZOk0uTMKRa2pOpo2Nm9Vgb2xkkPdcyIKAOj8ymTprYCgdEKq_L3uURPI69nWvz8__Q3BGRB_UJ9mmLX2jS8Jph3zb-wvJKOs3HvQz9yqdgvEQoLjQx7WJEWB3zh0neThyphenhyphenSM/s1600/create_pub_key.PNG&quot; height=&quot;49&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
これで生成されました。&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;
その他&lt;/h4&gt;
ここではコマンドで作成しましたが、GUIで生成する方法もあります。&lt;br /&gt;
(ホントはGUIで作りたかったけど、GUIの起動方法がわからなかったのでｗ→あとで検索したら出来ましたｗｗ)&lt;br /&gt;
&lt;a href=&quot;http://blog.infinity-dimensions.com/2012/01/git-gui-create-public-key.html&quot;&gt;Git GUIで公開鍵(public key)を生成する方法 -ID-Blogger&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
次はHerokuに公開鍵を登録してデプロイする方法ですー&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://halucolor.blogspot.com/feeds/2989955459661348215/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://halucolor.blogspot.com/2013/01/windowsmysysgit.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1055241401186727758/posts/default/2989955459661348215'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1055241401186727758/posts/default/2989955459661348215'/><link rel='alternate' type='text/html' href='http://halucolor.blogspot.com/2013/01/windowsmysysgit.html' title='[Windows]mysysgitで公開鍵を作成する'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02030941398793182013</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/AVvXsEiz_7TclLzeaMWv3LpvUtGncM5RSuKT2pkIYyRKdJ3Ptu-rhYRdURMubT5HQZZ9_2m2i6AXdVk5Lnq6EevtJwtzqgcUHDWZwwC7K3fCZFamhZgBkklGEec-9-RKzENvNUAsj0pI6xXdrGc/s72-c/pub_key.PNG" height="72" width="72"/><thr:total>0</thr:total></entry></feed>