緣起 我喜歡做 Rails app prototype 放在 Digital Ocean,Rails app A 5.2.0 已經部署在上面,最近想再部署其他小型 Rails app 到同一臺機器上,但發現部署其他小型 Rails app B 到相同正
read more緣起 我喜歡做 Rails app prototype 放在 Digital Ocean,Rails app A 5.2.0 已經部署在上面,最近想再部署其他小型 Rails app 到同一臺機器上,但發現部署其他小型 Rails app B 到相同正
read more用 Docker + Docker-compose 建立自己寫的Rails app 運作的開發和正式環境,我的心得是,開發者要逐步建立自己的常用工具和套件,怎樣讓自己的做事更順暢,就像水電工有
read morewatir 6.3.0 不支援存下網頁中的圖片, mechanize 不支援以 ajax 方式更新內容的網頁。有考慮轉向 python 語言抓圖片,不過打算先試試看,能不能用 opencv 的看圖功能,看到從 watir 拿到圖片
read moreI use many plugin with VIM to boost development when I writing and debugging programs, which are written through PHP and Ruby languages. Also there are few plugin for SASS, RSpec and Javascript. Below are configurations for my VIM editor and Vundle. There must some corresponded software be installed in the computer first and then these settings will work. nnoremap means normal mode in VIM. Usage of <silent> tag is
read moreBelow execution environment is at Ubuntu 14 LTS. rvm cron setup #sm start rvm example PATH="/usr/local/rvm/gems/ruby-2.3.0/bin:/usr/local/rvm/gems/ruby-2.3.0@global/bin:/usr/local/rvm/rubies/ruby-2.3.0/bin:/usr/local/rvm/gems/ruby-2.3.0/bin:/usr/local/rvm/gems/ruby-2.3.0@global/bin:/usr/local/rvm/rubies/ruby-2.3.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/local/rvm/bin" GEM_HOME='/usr/local/rvm/gems/ruby-2.3.0' GEM_PATH='/usr/local/rvm/gems/ruby-2.3.0:/usr/local/rvm/gems/ruby-2.3.0@global' MY_RUBY_HOME='/usr/local/rvm/rubies/ruby-2.3.0' IRBRC='/usr/local/rvm/rubies/ruby-2.3.0/.irbrc' RUBY_VERSION='ruby-2.3.0' #sm end rvm example change from shell to bash shell SHELL=/bin/bash # you definie your own crontab job 0 0 * * * . $HOME/.profile; cd /directory/you/want/toexecute; ruby /path/to/yourfile.rb parameter1 parameter2 ...etc > /dev/null 0 1 * * * . $HOME/.profile; cd /directory/you/want/toexecute; ruby /path/to/yourfile.rb `date -d "yesterday" "+%F"`
read moreInstructions for installing and configuring sendmail software with action_mailer of rails in Ubuntu. It might be some complicated. 在 Ubuntu 安裝與設定 sendmail 可能會令人覺得複雜,以下是安裝與設定指引: Below statements are for development machines. 以下屬於開發環境機器的設定: Check below option
read more