`
chengyuanheng
  • 浏览: 19586 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表

rmagick

alsjdaskd;laksdasdasd
ElasticSearch 安装java环境 sudo apt-get update java -version sudo apt-get install default-jre sudo apt-get install default-jdk (或者: yum -y install java-1.7.0-openjdk* )
  Chrome里面canvas的最大宽度是:32767px; Firefox里面canvas的最大宽度是:32766px; ------------------------------------------------------------ 超过这个最大宽度将无法画出东西来!

install metric_fu

    博客分类:
  • gem
metric_fu Installation gem install metric_fu Gem   From your Gemfile ,install these gems for test and development environment group :test ,:development do gem "metric_fu" gem 'simplecov' gem 'simplecov-rcov-text' gem 'roodi' #these gem ensure that you can run roodi ...

how to build a ruby gem

    博客分类:
  • gem
how to build a ruby gem   1. first you will create a user in rubygem.org (https://rubygems.org/)      2. create the directory structure like this:   $ tree . ├── cc_hola.gemspec └── lib └── cc_hola.rb       you can use any name but you must keep consistency     3. in ...

markdown在线编辑器

    博客分类:
  • note
                                                          markdown在线编辑器   地址: http://mahua.jser.me/
custom layout for devise in ruby on rails   in your config/application.rb puts:   config.to_prepare do Devise::SessionsController.layout "application" Devise::RegistrationsController.layout "application" Devise::Registrations ...
install django for windows  step1:   download  python from  https://www.python.org/downloads/windows/                download  django from  https://www.djangoproject.com/download/            step2:   install python and configuration environment variable                     for example: add 'G: ...
Install ChromeDriver in Linux Mint    1. Install unzip          sudo apt-get install unzip   2. Download last version of ChromeDriver and unzip it          wget -N http://chromedriver.storage.googleapis.com/2.9/chromedriver_linux64.zip -P ~/Downloads          unzip ~/Downloads/chromedriver_l ...
SET:   1. run:  sudo vi ./.bashrc 2. set:  alias s_yes='yes'             alias s_banner='banner'             alias s_ddate='ddate'             alias s_fortune='fortune'             alias s_fortune_zh='fortune-zh'             alias s_cal='cal 9 1752'             alias s_xev='xev'          ...
reinstall mysql in linux   删除 mysql sudo apt-get autoremove --purge mysql-server-5.0sudo apt-get remove mysql-serversudo apt-get autoremove mysql-serversudo apt-get remove mysql-common //这个很重要上面的其实有一些是多余的。 清理残留数据dpkg -l |grep ^rc|awk '{print $2}' |sudo xargs dpkg -P安装 mysqlsudo apt-get install ...

linux change source

 linux change source   Change source before bundle :   gem source -r http://rubygems.org/     #remove source: http://rubygems.org/gem source -a http://ruby.taobao.org  #add source: http://ruby.taobao.org   Other sources for linux  :   target file:  /etc/apt/sources.list   sources list:   ...
solve the problem about can not find mysqlclient : the tips: ---------------------------------------------------------------------------------------------------------------------- Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.           /usr/local/rvm/rubies/ ...
#google dns list 74.125.21.98 0.docs.google.com 74.125.21.98 0.drive.google.com 74.125.21.98 1.docs.google.com 74.125.21.98 1.drive.google.com 74.125.21.98 10.docs.google.com 74.125.21.98 10.drive.google.com 74.125.21.98 11.docs.google.com 74.125.21.98 11.drive.googl ...

thin for rails

    博客分类:
  • gem
in your Gemfile   group :test ,:development do   gem 'thin' end   what is the thin? 它是一个尚处于实验阶段的ruby web服务器,号称比Mongrel更快  
Global site tag (gtag.js) - Google Analytics