自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(11)
  • 资源 (1)
  • 收藏
  • 关注

原创 实现照片墙的效果

https://github.com/shiralwz/image-page今天在github上传了一个小的照片墙的页码源代码,主要是照片墙的功能,当鼠标移动到哪个照片的时候,照片自动放大并上浮。

2015-09-28 17:59:50 2484

原创 github page + jekyllrb 搭建新博客

github page 操作步骤:https://pages.github.com/(1)Create a repository        Head over to GitHub and create a new repository namedusername.github.io, where username is your username (or organizatio

2015-09-23 15:33:42 741

原创 ruby on rails新项目不使用数据库,配置过程记录

查询了大神的经验贴http://stackoverflow.com/questions/19078044/disable-activerecord-for-rails-4http://stackoverflow.com/questions/821251/how-to-configure-ruby-on-rails-with-no-database其中点赞最多的也是我用的方法

2015-09-18 20:44:50 706

原创 与本应用相关的nginx配置文件放在当前部署文件夹下

(1)首先在current文件夹下新建服务有关的nginx配置文件nginx.confupstream news_server { server unix:/tmp/unicorn.news.sock fail_timeout=0;}server { listen 8888; access_log /opt/app/ruby/news/current/log/nginx.

2015-09-18 20:24:59 1850

原创 第一次部署服务器,服务器获取不到bitbucket上的代码

先在服务器上 ssh bitbucket.org点yes链接一下,才能在服务器部署,或者在服务器上链接一下代码地址 git ls-remote [email protected]:xxx/xxx.git master,原因是bitbucket不在服务器的knowhosts里

2015-09-18 20:10:57 1120

原创 capistrano2和3生成Capfile语句的区别

https://github.com/capistrano/capistranohttps://github.com/capistrano/capistrano/wikihttps://github.com/capistrano/capistrano/wiki/2.x-from-the-beginning(1)使用capistrano2,要在Gemfile里指定版本

2015-09-18 19:56:34 592

原创 ruby应用里添加zepto.min.js但是无法使用里面的方法

今天尝试做移动端自适应的页码,添加了zepto.min.js,写完对应的代码后重启服务,这时候发现zepto.min.js方法无法识别,不能直接在application.js里调用。原因是ruby on rails 的服务默认添加了jquery.js,占用了$符号,在application里使用$调用,默认就调用的jquery里的方法,所以如果想在application.j

2015-09-18 19:44:44 809

原创 如何新建rails项目

如何新建rails项目

2015-09-16 17:02:14 869

原创 rails网站分享到朋友圈功能是怎么实现的

rails网站分享到朋友圈功能是怎么实现的

2015-09-15 18:57:42 648

原创 elasticsearch的探索之路

今天调试一个现有项目报错,发现自己还没装elasticsearch[Faraday::ConnectionFailed] Connection refused - connect(2) {:host=>"localhost", :port=>"9200", :protocol=>"http"}Connection refused - connect(2)此时发现自己还没装elastics

2015-09-11 11:43:57 1516

原创 一个rails项目连多个mongo数据库

一个rails项目如何连多个mongo数据库呢,答案在这里http://stackoverflow.com/questions/16400458/connecting-to-two-databases-mongoid(1)首先在config/mongoid.yml里配置一下development: sessions: default: database: o

2015-09-10 16:47:19 625

三级网络经典题

三级计算机网络的经典题,上机考试之前必备的复习宝典

2012-10-22

空空如也

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

TA关注的人

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