摘要:
比如在databases.yml里配置了一个cms_production,# -*- encoding : utf-8 -*-class CmsAaat < ActiveRecord::Baseestablish_connection "cms_#{Rails.env}".to_sym 阅读全文
摘要:
virtualenv 安装文档https://virtualenv.pypa.io/en/latest/virtualenv.html#installation(http://is.gd/RM0pSJ)Django Hello World步骤virtualenv helloworldsourcehe... 阅读全文
摘要:
http://libmemcached.org/libMemcached.html报错:Exception Value:unknown behavior names: remove_failedException Location:/usr/local/lib/python2.7/site-pack... 阅读全文
摘要:
http://linux.vbird.org/linux_server/0250simple_firewall.php#netfilteriptables 是利用封包过滤机制, 分析封包的表头资料,根据表头资料定义的规则来决定是否可以进入主机或者被丢弃.刚才在服务器上练习的时候把自己给屏蔽了,提醒大... 阅读全文
摘要:
https://rubygems.org/今天看到了如下的提示:Warning: You're using Rubygems 1.8.23.2 with Spring. Upgrate to at least Rubygems 2.1.0 and run Rails 4.1.4$gem update... 阅读全文
摘要:
http://www.ruby-doc.org/stdlib-1.9.3/libdoc/securerandom/rdoc/SecureRandom.html(1)base64(n=nil)::base64generates a random base64 string.The argumentns... 阅读全文
摘要:
http://ruby-doc.org/core-2.1.2/File.html#method-c-dirname(1)basename(file_name [, suffix] ) → base_nameReturns the last component of the filename give... 阅读全文
摘要:
vim /var/log/secure 阅读全文
摘要:
找到文件的所有修改者git blame [file_name] 阅读全文