<?xml version="1.0" encoding="utf-8" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>マッシュアップを目指して</title>
<link>https://ameblo.jp/liszt26/</link>
<atom:link href="https://rssblog.ameba.jp/liszt26/rss20.xml" rel="self" type="application/rss+xml" />
<atom:link rel="hub" href="http://pubsubhubbub.appspot.com" />
<description>WebApiを利用したマッシュアップサービスについての備忘録を</description>
<language>ja</language>
<item>
<title>railsinstallerのrvmバグについて</title>
<description>
<![CDATA[ ruby2.0.0をrvmでインストールしようとしてハマったのでメモ。<br><br>結論、railsinstaller経由でrvmをインストールしていたのが原因。<br><br>エラー内容はこんな感じ。<br>Extracting rubygems-2.0.3 ...<br>Removing old Rubygems files...<br>Installing rubygems-2.0.3 for ruby-2.0.0-p0..............................................................................................................................<br>Error running 'env GEM_PATH=/usr/local/rvm/gems/ruby-2.0.0-p0:/usr/local/rvm/gems/ruby-2.0.0-p0@global:/usr/local/rvm/gems/ruby-2.0.0-p0:/usr/local/rvm/gems/ruby-2.0.0-p0@global GEM_HOME=/usr/local/rvm/gems/ruby-2.0.0-p0 /usr/local/rvm/rubies/ruby-2.0.0-p0/bin/ruby -d /usr/local/rvm/src/rubygems-2.0.3/setup.rb --verbose',<br>please read /usr/local/rvm/log/ruby-2.0.0-p0/rubygems.install.log<br><br>rvmの環境変数が微妙に違う様子。<br>/etc/rvmrc<br>にある記述を変更することで解決。<br><br>変更前<br>rvm_configure_env=('LDFLAGS=-L/opt/sm/pkg/active/lib CFLAGS=-I/opt/sm/pkg/active/include  CPATH=/opt/sm/pkg/active/include')<br><br>変更後<br>rvm_configure_env=('LDFLAGS=-L/opt/sm/pkg/active/lib' 'CFLAGS=-I/opt/sm/pkg/active/include' 'CPATH=/opt/sm/pkg/active/include')<br><br>3つのstringとして認識させないとアレみたいすね。<br>railsinstallerは便利なのですがたまにこういうこともあるようで。<br><br><br><br><a href="http://click.affiliate.ameba.jp/affiliate.do?affiliateId=23502559" alt0="BlogAffiliate" target="_blank" rel="nofollow">HerokuではじめるRailsプログラミング入門/ソフトバンククリエイティブ<br><img src="https://img-proxy.blog-video.jp/images?url=http%3A%2F%2Fecx.images-amazon.com%2Fimages%2FI%2F51MAe2swN3L._SL160_.jpg" border="0"></a><br>￥3,360<br>Amazon.co.jp<br><br>
]]>
</description>
<link>https://ameblo.jp/liszt26/entry-11500460416.html</link>
<pubDate>Fri, 29 Mar 2013 14:01:14 +0900</pubDate>
</item>
<item>
<title>awsをCUIで</title>
<description>
<![CDATA[ s3上で大量の画像オブジェクトを裁くことになったのですが、<br>GUIだとどうしても管理できない部分がありCUIベースでできないかなと探してみたところやはりありました。<br><br>s3cmdというコマンドでした。<br><br>portsでインストール<br>http://qiita.com/items/130ca6653205d30c33b7<br><br>上記でKeyやSecretを入力すれば後は普通のターミナルに近い動作ができます。<br>lsであれば　<br>s3cmd ls<br>のようになったり、バケットの中身は<br>s3cmd ls s3://logix.cz-test<br>のようになります。<br><br>publicでのアップロードはこのようになります。<br>s3cmd put --acl-public --guess-mime-type storage.jpg s3://logix.cz-test/storage.jpg <br><br>その他にもいろいろ。<br>バケット作成<br>s3cmd mb s3://my-new-bucket-name<br><br>ダウンロードは<br> s3cmd get s3://logix.cz-test/addrbook.xml addressbook-2.xml<br><br>削除<br>s3cmd rb s3://logix.cz-test<br><br>バケット削除<br>s3cmd rb s3://logix.cz-test<br><br>同期もできます<br>http://s3tools.org/s3cmd-sync<br><br>色々便利ですね。<br>これで作業効率120%アップ！<br><br><a href="http://click.affiliate.ameba.jp/affiliate.do?affiliateId=23471204" alt0="BlogAffiliate" target="_blank" rel="nofollow">AmazonCloudテクニカルガイド ―EC2/S3からVPCまで徹底解析―/インプレスジャパン<br><img src="https://img-proxy.blog-video.jp/images?url=http%3A%2F%2Fecx.images-amazon.com%2Fimages%2FI%2F51wFPH7hAYL._SL160_.jpg" border="0"></a><br>￥3,990<br>Amazon.co.jp<br><br>
]]>
</description>
<link>https://ameblo.jp/liszt26/entry-11498293300.html</link>
<pubDate>Tue, 26 Mar 2013 09:17:41 +0900</pubDate>
</item>
<item>
<title>ec2にrails3をインストールするまで</title>
<description>
<![CDATA[ 当然ながら各種コマンド類からのインストールが必要なのでメモ。<br><br>・前準備<br># yum -y install gcc<br># yum -y install make<br># yum -y install gcc-c++<br># yum -y install openssl-devel<br># yum -y install curl-devel<br># gem update --system<br><br><br>・rubyの前にyamlインストール<br># wget http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz<br># tar -zxvf yaml-0.1.4.tar.gz<br># cd yaml-0.1.4<br># ./configure<br># make;make install<br><br><br>・rubyインストール<br># wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p125.tar.gz<br># tar zxvf ruby-1.9.3-p125.tar.gz <br># cd ruby-1.9.3-p125<br># ./configure<br># make<br># make install<br><br># cd ~/<br># vi .bash_profile<br>PATHに/usr/local/bin/rubyを追加<br><br># ruby -v<br>ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-linux]<br><br><br>・RubyGems1.3.7インストール<br># wget http://production.cf.rubygems.org/rubygems/rubygems-1.8.24.tgz<br><br><br># tar zxvf rubygems-1.8.24.tgz <br># cd rubygems-1.8.24<br># ruby setup.rb<br><br>・Rails3.3.2インストール<br># gem install rails --no-ri --no-rdoc<br># rails -v<br>Rails 3.2.3<br><br>・mysqlインストール<br># yum -y install mysql-devel<br># gem install --remote mysql<br><br>・sqliteインストール<br># wget http://www.sqlite.org/sqlite-amalgamation-3.7.3.tar.gz <br># tar xvzf sqlite-amalgamation-3.7.3.tar.gz<br># cd sqlite-3.7.3/<br># ./configure<br># make<br># make install<br><br><br>※yamlをインストールしていない場合、yamlを入れてrubyを再インストール<br><br># cd ruby-1.9.3-p0<br># make clean<br># ./configure<br># make<br># make install<br><br>※Gemfileに以下を追記<br>gem 'execjs'<br>gem 'therubyracer'<br><br><br>※DBをmysqlにする場合、Gemfileを<br>gem 'myysql'<br>に変更<br><br><br>FILE: $RAILS_ROOT/Gemfile<br><br>これで動くはず。<br><br><a href="http://click.affiliate.ameba.jp/affiliate.do?affiliateId=23320828" alt0="BlogAffiliate" target="_blank" rel="nofollow">AmazonCloudテクニカルガイド ―EC2/S3からVPCまで徹底解析―/インプレスジャパン<br><img src="https://img-proxy.blog-video.jp/images?url=http%3A%2F%2Fecx.images-amazon.com%2Fimages%2FI%2F51wFPH7hAYL._SL160_.jpg" border="0"></a><br>￥3,990<br>Amazon.co.jp<br><br>
]]>
</description>
<link>https://ameblo.jp/liszt26/entry-11487188721.html</link>
<pubDate>Sun, 10 Mar 2013 09:06:12 +0900</pubDate>
</item>
<item>
<title>Rrailsのlike検索について</title>
<description>
<![CDATA[ Ruby on Railsで、LIKE検索で%や_などのワイルドカード文字を適切にエスケープしてくれる方法が無いものかと探していたのですが、LIKE条件はSQLを書かないとダメぽいですね。<br><br><a href="http://click.affiliate.ameba.jp/affiliate.do?affiliateId=23133373" alt0="BlogAffiliate" target="_blank" rel="nofollow">たのしい開発 スタートアップRuby/技術評論社<br><img src="https://img-proxy.blog-video.jp/images?url=http%3A%2F%2Fecx.images-amazon.com%2Fimages%2FI%2F51R6Yb4QGwL._SL160_.jpg" border="0"></a><br>￥2,604<br>Amazon.co.jp<br><br>
]]>
</description>
<link>https://ameblo.jp/liszt26/entry-11475179193.html</link>
<pubDate>Thu, 21 Feb 2013 09:40:45 +0900</pubDate>
</item>
<item>
<title>node.js上のargvについて</title>
<description>
<![CDATA[ Cやlinuxのノリでargvを取得しようとしたら若干ハマったのでメモ。<br><br>・コマンドラインから引数を取得する場合はprocess.argv<br>・argv[2]から渡された引数が入っている。<br>・処理を終了する場合はprocess.exit<br><br>今後は注意をしようかと。<br><br><a href="http://click.affiliate.ameba.jp/affiliate.do?affiliateId=23127520" alt0="BlogAffiliate" target="_blank" rel="nofollow">サーバサイドJavaScript Node.js入門/アスキー・メディアワークス<br><img src="https://img-proxy.blog-video.jp/images?url=http%3A%2F%2Fecx.images-amazon.com%2Fimages%2FI%2F511TIB5mncL._SL160_.jpg" border="0"></a><br>￥3,990<br>Amazon.co.jp<br><br>
]]>
</description>
<link>https://ameblo.jp/liszt26/entry-11474680150.html</link>
<pubDate>Wed, 20 Feb 2013 17:43:09 +0900</pubDate>
</item>
<item>
<title>mongodb2.2インストール&amp;テスト</title>
<description>
<![CDATA[ 次の勉強会でmongodb2.2が必要ということで新規にインストールし直しました。<br><br>$ brew search mongo<br>で確認すると<br>mongodb  mongoose<br>やら出てきましたが、取り急ぎ<br>$ brew install mongodb<br>でインストール<br><br>すらずらと出てきましたが終わった模様。<br>To have launchd start mongodb at login:<br>    ln -sfv /usr/local/opt/mongodb/*.plist ~/Library/LaunchAgents<br>Then to load mongodb now:<br>    launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist<br>Or, if you don't want/need launchctl, you can just run:<br>    mongod<br>/usr/local/Cellar/mongodb/2.2.2-x86_64: 20 files, 170M, built in 8.8 minutes<br><br>成功したら、<br>上記のメッセージの通りシンボリックリンクを追加<br>$ ln -s /usr/local/opt/mongodb/*.plist ~/Library/LaunchAgents/<br>$ launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist<br>$ mongod<br><br>と必要なコマンドを入力。<br><br>$ mongo -version<br>$ MongoDB shell version: 2.2.2<br><br>うまくいきました。<br><br><br><a href="http://click.affiliate.ameba.jp/affiliate.do?affiliateId=22816829" alt0="BlogAffiliate" target="_blank" rel="nofollow">MongoDBイン・アクション/オライリージャパン<br><img src="https://img-proxy.blog-video.jp/images?url=http%3A%2F%2Fecx.images-amazon.com%2Fimages%2FI%2F51848z1FoeL._SL160_.jpg" border="0"></a><br>￥3,570<br>Amazon.co.jp<br><br>
]]>
</description>
<link>https://ameblo.jp/liszt26/entry-11453613691.html</link>
<pubDate>Mon, 21 Jan 2013 09:44:38 +0900</pubDate>
</item>
<item>
<title>mysql2のlibエラー</title>
<description>
<![CDATA[ 普通にmysql連携のアプリを作ろうとしたところ<br>/usr/local/rvm/gems/ruby-1.9.3-p194/gems/mysql2-0.3.11/lib/mysql2.rb:9:in `require': dlopen(/usr/local/rvm/gems/ruby-1.9.3-p194/gems/mysql2-0.3.11/lib/mysql2/mysql2.bundle, 9): Library not loaded: libmysqlclient.18.dylib (LoadError)<br>  Referenced from: /usr/local/rvm/gems/ruby-1.9.3-p194/gems/mysql2-0.3.11/lib/mysql2/mysql2.bundle<br>  Reason: image not found - /usr/local/rvm/gems/ruby-1.9.3-p194/gems/mysql2-0.3.11/lib/mysql2/mysql2.bundle<br>from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/mysql2-0.3.11/lib/mysql2.rb:9:in `<top (required)>'<br>from /usr/local/rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.5/lib/bundler/runtime.rb:68:in `require'<br>from /usr/local/rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.5/lib/bundler/runtime.rb:68:in `block (2 levels) in require'<br>from /usr/local/rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.5/lib/bundler/runtime.rb:66:in `each'<br>from /usr/local/rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.5/lib/bundler/runtime.rb:66:in `block in require'<br>from /usr/local/rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.5/lib/bundler/runtime.rb:55:in `each'<br>from /usr/local/rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.5/lib/bundler/runtime.rb:55:in `require'<br>from /usr/local/rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.5/lib/bundler.rb:119:in `require'<br>from /Users/liszt26/Documents/rails/mysqlApp/config/application.rb:7:in `<top (required)>'<br>from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/commands.rb:53:in `require'<br>from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/commands.rb:53:in `block in <top (required)>'<br>from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/commands.rb:50:in `tap'<br>from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/commands.rb:50:in `<top (required)>'<br>from script/rails:6:in `require'<br>from script/rails:6:in `<main>'<br><br><br><br><br>シンボルを追加すればOKでした。<br>sudo ln -s /usr/local/mysql/lib/libmysqlclient.18.dylib /usr/lib/libmysqlclient.18.dylib<br><br>世界の天才さん、ありがとうございました。<br><br><br><a href="http://click.affiliate.ameba.jp/affiliate.do?affiliateId=22780668" alt0="BlogAffiliate" target="_blank" rel="nofollow">RailsによるアジャイルWebアプリケーション開発 第4版/オーム社<br><img src="https://img-proxy.blog-video.jp/images?url=http%3A%2F%2Fecx.images-amazon.com%2Fimages%2FI%2F51Gibg-iYTL._SL160_.jpg" border="0"></a><br>￥3,360<br>Amazon.co.jp<br><br></main></top></top></top></top>
]]>
</description>
<link>https://ameblo.jp/liszt26/entry-11450932585.html</link>
<pubDate>Thu, 17 Jan 2013 13:05:18 +0900</pubDate>
</item>
<item>
<title>mysql2のインストールエラー</title>
<description>
<![CDATA[ 新しくAPIプロジェクトを作成することになって新マシンにてプロジェクト作成してみたところ、<br><br>Building native extensions.  This could take a while...<br>ERROR:  Error installing mysql2:<br>        ERROR: Failed to build gem native extension.<br><br>/usr/local/bin/ruby extconf.rb<br>checking for rb_thread_blocking_region()... yes<br>checking for mysql_query() in -lmysqlclient... yes<br>checking for mysql.h... no<br>checking for mysql/mysql.h... yes<br>checking for errmsg.h... no<br>-----<br>errmsg.h is missing.  please check your installation of mysql and try again.<br>-----<br>*** extconf.rb failed ***<br>Could not create Makefile due to some reason, probably lack of<br>necessary libraries and/or headers.  Check the mkmf.log file for more<br>details.  You may need configuration options.<br><br>Provided configuration options:<br>        --with-opt-dir<br>        --without-opt-dir<br>        --with-opt-include<br>        --without-opt-include=${opt-dir}/include<br>        --with-opt-lib<br>        --without-opt-lib=${opt-dir}/lib<br>        --with-make-prog<br>        --without-make-prog<br>        --srcdir=.<br>        --curdir<br>        --ruby=/usr/local/bin/ruby<br>        --with-mysql-config<br>        --without-mysql-config<br>        --with-mysql-dir<br>        --without-mysql-dir<br>        --with-mysql-include<br>        --without-mysql-include=${mysql-dir}/include<br>        --with-mysql-lib<br>        --without-mysql-lib=${mysql-dir}/lib<br>        --with-mysqlclientlib<br>        --without-mysqlclientlib<br><br><br>Gem files will remain installed in /usr/local/lib/ruby/gems/1.9.1/gems/mysql2-0.2.3 for inspection.<br>Results logged to /usr/local/lib/ruby/gems/1.9.1/gems/mysql2-0.2.3/ext/mysql2/gem_make.out<br><br>とのエラー。<br><br>mysql.hのPATHが不明らしいので明示的に示してあげるとクリアできました。<br><br>gem install mysql2 -- --with-mysql-include=/usr/include/mysql<br><br>一瞬ヒヤっとしましたがなんとか撃破。<br><br><a href="http://click.affiliate.ameba.jp/affiliate.do?affiliateId=22780116" alt0="BlogAffiliate" target="_blank" rel="nofollow">Rail Magazine (レイル・マガジン) 2013年 02月号 Vol.353/ネコ・パブリッシング<br><img src="https://img-proxy.blog-video.jp/images?url=http%3A%2F%2Fecx.images-amazon.com%2Fimages%2FI%2F61SC33nLYtL._SL160_.jpg" border="0"></a><br>￥1,500<br>Amazon.co.jp<br><br>
]]>
</description>
<link>https://ameblo.jp/liszt26/entry-11450903271.html</link>
<pubDate>Thu, 17 Jan 2013 11:58:49 +0900</pubDate>
</item>
<item>
<title>sshキーがメンテ明けに無効に</title>
<description>
<![CDATA[ sshキーを再発行すればなんとかなりました。<br><br>ssh-keygen -t rsa -C "giordano.scalzo[at]gmail.com" -f  ~/.ssh/id_rsa_heroku<br>ssh-add ~/.ssh/id_rsa_heroku<br>heroku keys:add ~/.ssh/id_rsa_heroku.pub<br><br>以前も同じ現象があったような。<br><br><a href="http://click.affiliate.ameba.jp/affiliate.do?affiliateId=22715432" alt0="BlogAffiliate" target="_blank" rel="nofollow">Pythonプロフェッショナルプログラミング/秀和システム<br><img src="https://img-proxy.blog-video.jp/images?url=http%3A%2F%2Fecx.images-amazon.com%2Fimages%2FI%2F41bZDMzzeTL._SL160_.jpg" border="0"></a><br>￥2,940<br>Amazon.co.jp<br><br>
]]>
</description>
<link>https://ameblo.jp/liszt26/entry-11446266745.html</link>
<pubDate>Thu, 10 Jan 2013 20:39:44 +0900</pubDate>
</item>
<item>
<title>CocoaPodsセッティング</title>
<description>
<![CDATA[ CocoaPodsのセッティングをまとめてみました。<br>対応ライブラリもかなり増えてますのでこの機会に使い始めてみると面白いかもしれません。<br><br>$ sudo macgem install cocoapods<br>$ pod setup<br>$ pod --help<br> → 動作確認<br><br>XCodeプロジェクト作成<br>XCodeプロジェクト配下に<br>Podfile<br>のファイルを作成<br>ファイル内に<br>platform :ios                                                                                                                                                   <br>pod 'TapkuLibrary'<br><br>のような形でインポートしたいライブラリを記載する。<br><br>後は<br>$ pod install <br>でxcworkspaceが生成されるので中に入りプロジェクトを起動するだけ。<br><br>意外とあっさりとインクルードできました。<br><br><br><a href="http://click.affiliate.ameba.jp/affiliate.do?affiliateId=22680617" alt0="BlogAffiliate" target="_blank" rel="nofollow">初めてのRuby/オライリージャパン<br><img src="https://img-proxy.blog-video.jp/images?url=http%3A%2F%2Fecx.images-amazon.com%2Fimages%2FI%2F41gCZhFayuL._SL160_.jpg" border="0"></a><br>￥2,310<br>Amazon.co.jp<br><br>
]]>
</description>
<link>https://ameblo.jp/liszt26/entry-11443942163.html</link>
<pubDate>Mon, 07 Jan 2013 11:39:32 +0900</pubDate>
</item>
</channel>
</rss>
