Entries from 2015-01-01 to 1 month

ディレクトリを再帰的にコピーする - Ruby Tips!

http://www.shido.info/misc/misc.php?id=29 関数プログラミング的なシェルスクリプト

Rubyで外部コマンドを呼ぶ時のエスケープ

http://apehuci-kitaitimakoto.sqale.jp/apehuci/?date=20120103 require 'shellwords'Shellwordsというモジュール経由でエスケープ用のメソッドが使えるようになったり、String#shellescapeなんかのメソッドが追加されます。 require 'shellwords' `unzip #…

ubuntu 12.04 gem install rmagick -v '2.13.2' 失敗

https://github.com/rmagick/rmagick https://www.ruby-toolbox.com/categories/image_processing http://stackoverflow.com/questions/3704919/installing-rmagick-on-ubuntugem install rmagick -v '2.13.2'で失敗した時はsudo apt-get install imagemagick…

OSX フォルダ マウント ubuntu

sudo mount -t cifs //xxx.xxx.xxx.xxx/public /mnt/public -o username=xxx,password=xxx,domain=xxx,nounix,sec=ntlmssp

watir phantomj mechanizeを使わずにJavaScript実行後のを取得 scrape something after JS has changed the DOM

https://gist.github.com/julionc/7476620 http://qiita.com/haman29@github/items/0296e449483a6c1898ea https://github.com/watir/watir-webdriver/issues/222phantomjsをubuntu12.04に$:sudo apt-get install pahntomjsでインストールすると$:phantomjs -…