Entries from 2014-01-01 to 1 year

ruby === case中で使う

http://qiita.com/Linda_pp/items/53a527721d932b8ecccecsae b-a when 50...Float::INFINITY #これはb-a>=50と同じ range = 1.0...10.0range === 1.0 # => truerange === 10.0 # => false

DNS

http://askubuntu.com/questions/22750/best-way-to-set-up-dns-caching

mechanize open_timeout,keep_alive(),idle_timeout()

http://mechanize.rubyforge.org/Mechanize.htmlidle_timeout() Connections that have not been used in this many seconds will be reset. idle_timeout=(idle_timeout) Sets the idle timeout to idle_timeout. The default timeout is 5 seconds. If you…

ActiveSupport Time リファレンス

http://qiita.com/shu_0115/items/b490bd3de6bc4d5e43a5 http://railsdoc.com/active_supporthttp://qiita.com/joker1007/items/2c277cca5bd50e4cce5e

HAML ruby Markdownパーサー Redcarpet

http://mukaer.com/archives/2013/06/03/rubymarkdownred/ http://d.hatena.ne.jp/kasei_san/20130713/p1 http://qiita.com/ka_/items/ac3082890bf90a6df0c5 http://www.jpfleury.net/en/software/gedit-markdown.php

clockwork プロセス zombie orphan 子プロセス 標準出力

http://d.hatena.ne.jp/MKMK/20100118 http://zetcode.com/lang/rubytutorial/io/ http://hibariya.github.io/entries/20120326/a0.html http://qiita.com/ogomr/items/27e9fc7af5b978b5ced6 http://www.fireproject.jp/feature/c-language/process/fork-wai…

spawn 外部コマンド `...`

http://www.masudak.net/blog/2013/05/30/201305302308/ http://blog.0xc.info/2012/09/processspawnpid.html

チュートリアル・IO pipe

http://www.fincher.org/tips/Languages/Ruby/ http://ruby.bastardsbook.com/chapters/external-programs/

ruby output sidetiq

http://zetcode.com/lang/rubytutorial/io/http://michael.vanrooijen.io/posts/2013/09/28/using-sidekiq-and-clockwork-try-sidetiq/

Redis Sidekiq・Resque God・Demonise

Redis オンメモリ・DB、multiThreadのLogSidekiq・Resque Redisと自身のworkerを使い、バックグランドで処理を行う。Threadとおなじ感覚だが、要するにThreadをforkした後、Sidekiqを動かしたメイン・プログラムに制御が戻ってくる。ResqueはSidekiqのシング…

Ruby God プロセス監視・再起動

http://qiita.com/sawanoboly/items/0c9202d447ec67402a0f http://aligach.net/diary/20090817.html http://takuya-1st.hatenablog.jp/entry/20110918/1316365681 http://qiita.com/sawanoboly/items/0c9202d447ec67402a0f

Kill byobu session

単純にtmuxセッションを殺すだけなら tmux kill-session [-t session_name]ps aux | grep byobu

clockwork multi-thred background job

http://xoyip.hatenablog.com/entry/2014/02/17/222721 http://qiita.com/ogomr/items/27e9fc7af5b978b5ced6 http://d.hatena.ne.jp/riocampos+tech/20130625/p1http://www.ownway.info/Ruby/index.php?clockwork%2Fabout https://adam.heroku.com/past/2010…

Ruby Server Git Deploy Unicorn nginx passenger

https://www.digitalocean.com/community/articles/a-comparison-of-rack-web-servers-for-ruby-web-applications http://spring-mt.tumblr.com/post/19282358465/apache-nginx-x-passenger-unicorn http://blog.s21g.com/articles/2346 http://qiita.com/ko…

さくらレンタルサーバ(VPNではない)でsinatra(辞めた方がいいです)

http://yatmsu.hatenablog.com/entry/20090512/1242088451 http://d.hatena.ne.jp/syou6162/20100303/1267589211 http://blog.katsuma.tv/2012/02/sinatra_on_sakura.html http://krakenbeal.blogspot.jp/2012/04/vim-emacs-git.html国外IPアドレスフィルタ …

Hosting

http://1-byte.jp/2011/01/28/cheap_virtual_servers/Heroku sqaleロリポップ http://lolipop.jp/service/about/さくらレンタル http://www.sakura.ne.jp/さくらVPN http://vps.sakura.ad.jp/specification.htmlGMO http://sabahikaku.com/gmocvps.php http:…

さくらインターネット パス PATH設定 bash ssh rvm rbenv 注意

「さくらインターネット」もの凄く古くさい!!ビックリ普通の(Debian/Ubuntu系のサーバ)場合はrbenv, ruby-build を github からとって: $ git clone https://github.com/sstephenson/rbenv.git ~/.rbenv $ mkdir -p ~/.rbenv/plugins $ git clone https…

YConnect

http://mikanmarusan.hatenablog.com/entry/20130305/1362439681 https://github.com/intridea/omniauth-oauth2 https://github.com/yamitake/omniauth-yconnect http://oauth.jp/blog/2013/01/23/oauth-20-core-bearer-spec-rfc-rfc-6749-rfc-67/ https://r…

forman sqale

http://bugsrock.com/blog/2013/02/27/heroku-%E7%94%A8%E3%81%AE-facebook-template-%E3%82%92-Sqale-%E3%81%A6%E3%82%99%E5%8B%95%E3%81%8B%E3%81%99/

Heroku PHP

herokuにPHP http://qiita.com/ikedahidenori/items/60960a999fe4fe24eeef http://sutara79.hatenablog.com/entry/2013/10/13/081404 heroku create -s cedar -b git://github.com/heroku/heroku-buildpack-php.git appName デプロイ後の文字化け関係 http:/…

heroku Using with Padrino

https://devcenter.heroku.com/articles/traceview#using-with-padrino

Herokuでバックグランドjob background job

http://code.lancepollard.com/how-to-run-background-jobs-on-heroku-for-free

rubyからphpを動かす

http://selfkleptomaniac.org/archives/1102

YConnect デベロッパーネットワーク

http://mikanmarusan.hatenablog.com/entry/20130305/1362439681 http://developer.yahoo.co.jp/sitemap/ http://himaratsu.hatenablog.com/entry/objc/yconnect_implicit

複数Herokuアカウント 公開鍵作成 key "Your account someoneelse@email.com does not have access to" "No such account:someoneelse@email.com" 別のアカウント

http://d.hatena.ne.jp/mercystage/20130501/1367397215 http://www.ownway.info/Ruby/index.php?heroku%2Fhow%2Fmanagement%2Faccount http://journal.sooey.com/162http://www.ownway.info/Ruby/index.php?heroku%2Fhow%2Fmanagement%2Faccount http://d.h…

herokuコマンドで複数アカウントを使いわける

http://www.ownway.info/Ruby/index.php?heroku%2Fhow%2Fmanagement%2Faccount http://d.hatena.ne.jp/mercystage/20130501/1367397215 http://d.hatena.ne.jp/ayumuaizawa/20120120 http://blog.livedoor.jp/maru_tak/archives/51251021.html http://journa…

Herokuにデプロイする

先ずGit $ git init $ git add . $ git commit -m "first commit"$ heroku create AppName $ git push heroku master$ heroku logs $ heroku apps:rename newname (--app oldname) $ heroku stack --app AppName - $ heroku login/out$ heroku accounts:add …

Capistrano3 rbenv example 例

http://yss44.hatenablog.com/entry/2013/12/01/150215 https://semaphoreapp.com/blog/2013/11/26/capistrano-3-upgrade-guide.html http://capistranorb.com/documentation/getting-started/preparing-your-application/

ubuntu rbenv ruby インストール&使い方

apt-get のパッケージリストを更新、及び既存パッケージをアップグレード sudo apt-get update必要なパッケージをインストール sudo apt-get install build-essential libreadline-dev libssl-dev zlib1g-devrbenv をインストール git clone git://github.co…

git clone vs checkout vs pull

http://blog.mikepearce.net/2010/05/18/the-difference-between-git-pull-git-fetch-and-git-clone-and-git-rebase/ http://qiita.com/ota42y/items/e082d64f3f8b424e9b7d http://qiita.com/osamu1203/items/cb94ef9da02e1ec3e921 http://stackoverflow.com…