自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 收藏
  • 关注

原创 rake db:create error

在用mysql2的时候.运行rails server出现错误 Library not loaded: libmysqlclient.18.dylib 就是找不到这个文件,这个文件在mysql/lib下有的,只是位置不对 所以我们可以选择 sudo ln -s /usr/local/mysql/lib/libmysqlclient.18.dylib /usr/li

2014-10-30 22:45:39 846

原创 to solve gem install timeout

$ gem sources --remove https://rubygems.org/ $ gem sources -a https://ruby.taobao.org/ $ gem sources -l *** CURRENT SOURCES *** https://ruby.taobao.org # 请确保只有 ruby.taobao.org $ gem install rails

2014-10-30 22:33:12 572

原创 rails zeus

1. install  gem install zeus 2.usage  zeus console zeus server

2014-10-28 18:57:40 459

原创 server no password by public key

ssh-keygen -t rsa 输入路径 /Users/shiwei/.ssh/nopwd_rsa chmod 700 nopwd_rsa ssh-add -K nopwd_rsa scp nopwd_rsa.pub  root@123.57.45.183:/root/.ssh chmod 700 /root/.ssh cd /root/.ssh mv nopwd_rsa.pu

2014-10-26 14:52:49 494

原创 rails better than php ?

http://sivers.org/rails2php #6 - I LOVE SQL Speaking of tastes: tiny but important thing : I love SQL. I dream in queries. I think in tables. I was always fighting against Rails and its

2014-10-26 11:21:40 365

转载 Mark-and-Sweep Garbage Collection

http://www.brpreiss.com/books/opus5/html/page424.html void mark (Object p) if (!p.marked) p.marked = true; for each Object q referenced by p mark (q); Notic

2014-10-25 08:25:27 743

原创 ruby include extend

module Base   def show     puts " base#show "   end end class Car   extend Base end Car.show class Bus   include Base end b = Bus.new b.show

2014-10-21 22:58:04 355

转载 c函数指针详解

c函数指针详解 创建时间:2014-9-24 15:36   修改时间:2014-10-20 9:52   c函数指针详解 一 通常的函数调用     一个通常的函数调用的例子: //自行包含头文件 void MyFun(int x); //此处的申明也可写成:void MyFun(

2014-10-20 09:56:29 469

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除