RobinWu
RobinWu · 共 214 篇文章
hoe requires SlimGems version >= 1.4
Gem::InstallError: hoe requires SlimGems version >= 1.4. Try 'gem update --system' to update SlimGems itself. An error occured while installing hoe (3.1.0), and Bundler cannot continue. Make sure that `gem install hoe -v '3.1.0'` succeeds before bundling. gem update --system 1.4.2
2013-01-21T11:15:14Z · Web前端 · 评论(0)
Ruby 常用代码
require require File.join(File.dirname(__FILE__), 'path/to/file') require_relative 'filename' # >= 1.9.2 OR 1.8 gem install require_relative
2013-01-07T11:08:12Z · 编程语言 · 评论(0)
gem install mysql error
sudo gem install mysql Building native extensions. This could take a while... ERROR: Error installing mysql: ERROR: Failed to build gem native extension. /opt/ruby-enterprise-1.8.7-2012.02/bin/ruby extconf.rb checking for mysql_query() in -lmysqlclient... no checking for main() in -lm... yes checki…
2012-11-06T14:25:43Z · 数据库 · 评论(0)
项目的路径显示 Git Branch 分支
[url]http://ihower.tw/blog/archives/5436/[/url] curl https://raw.github.com/RobinWu/snippets/master/code/system_git_path.txt >> ~/.bashrc source ~/.bashrc
2012-09-12T16:21:16Z · 编程语言 · 评论(0)
Curl 常用命令
http://www.gbin1.com/technology/javautilities/20120610curl-introduction/ http://curl.haxx.se/download.html 读取URL页面 以下命令用来读取一个URL地址内容,如下: curl http://www.gbin1.com 读取https协议: curl https://www.gbin1.com 读取一个web地址并且保存到一个文件中: curl -o gbin1.html http://www.gbin1.com/ 读取一个需要HTTP Basic认证的页面: curl -u usern…
2012-06-12T16:26:01Z · 操作系统 · 评论(0)
crontab 加载 rvm 环境
0 2 * * * export PATH=/home/agideo/.rvm/gems/ree-1.8.7-2011.03/bin:/home/agideo/.rvm/gems/ree-1.8.7-2011.03@global/bin:/home/agideo/.rvm/rubies/ree-1.8.7-2011.03/bin:/home/agideo/.rvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games MY_RUBY_HOME=/home/agideo/.rvm/rubies/r…
2012-02-07T13:10:22Z · 开源软件 · 评论(0)
gitweb on Apache2
安装应用 sudo apt-get install apache2 sudo apt-get install gitweb vi /etc/apache2/conf.d/gitweb Alias /gitweb /usr/share/gitweb <Directory /usr/share/gitweb> Options FollowSymLinks +ExecCGI AddHandler cgi-script .cgi </Directory> 访问 http://localhost:80/gitweb/
2012-01-30T15:00:48Z · Web前端 · 评论(0)
thin start Missing the Rails
thin config -C config/thin.yml -c /var/www/rails —port 3010 —servers 3 -e production thin start -C config/thin.yml Missing the Rails 2.3.8 gem. Please `gem install -v=2.3.8 rails`, update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment…
2012-01-19T17:01:53Z · 编程语言 · 评论(0)
Selenium 常用代码
[url]http://release.seleniumhq.org/selenium-core/1.0.1/reference.html[/url] 速度 setSpeed 500 打开页 open / waitForPageToLoad 验证 DOM waitForElementPresent //DIV[@id='btnDirectLr'] waitForElementPresent //DIV[text()='库存报表'] verifyElementPresent css=div#msg-div:contains("审核成功") waitForElementPresent //DIV…
2011-12-07T10:12:35Z · Web前端 · 评论(0)
因其本身有错无法显示 rails for nginx
vi config/environments/production.rb # Specifies the header that your server uses for sending files # config.action_dispatch.x_sendfile_header = "X-Sendfile" # For nginx: config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect'
2011-11-25T22:29:09Z · 编程语言 · 评论(0)
安装 Selenium IDE
[url]http://seleniumhq.org/[/url] [url]https://github.com/RobinWu/selenium-demo[/url] [url]http://release.seleniumhq.org/selenium-core/1.0.1/reference.html[/url] [url]http://www.cnblogs.com/hyddd/archive/2009/05/22/1487346.html[/url] 安装 Selenium IDE [url]http://seleniumhq.org/download/[/url] [url]h…
2011-11-18T14:49:30Z · Web前端 · 评论(0)
HTML5 常用代码
HTML5检测技术 Moderniz http://www.quanlei.com/2011/02/html5%E6%A3%80%E6%B5%8B%E6%8A%80%E6%9C%AF/ Modernizr Test Suite https://github.com/Modernizr/Modernizr http://modernizr.github.com/Modernizr/test/
2011-10-27T09:13:34Z · 编程语言 · 评论(0)
解决 id_rsa 权限不够
[url]http://hi.baidu.com/goglad/blog/item/a8bc3d2a8f93c8345243c1ac.html[/url] 问题 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: UNPROTECTED PRIVATE KEY FILE! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Permissions 0644 for '/home/robin/.ssh/id_rsa' are too …
2011-10-26T13:12:40Z · 操作系统 · 评论(0)
Rails 常用代码
paperclip default_url by assets has_attached_file :photo, :styles => { :thumb => "100x100>" }, :default_url => ActionController::Base.helpers.asset_path('recipe_missing.jpg') 指定rails 版本 new rails _2.3.4_ test_ar_base to_json ActiveRecord::Base.include_root_in_json = true konata.to_json(:methods => …
2011-10-25T16:32:29Z · 编程语言 · 评论(0)
ssh 访问不需要密码
ssh-keygen -t rsa cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys scp <user>@*.*.com:~/.ssh/id_rsa <user>.pem ssh -i <user>.pem <user>@*.*.com
2011-10-19T11:04:09Z · 操作系统 · 评论(0)