上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 40 下一页
  2017年4月6日
摘要: 在使用devise这个gem时,编写控制器层的单元测试,你需要在你的rspec帮助文件 rails_helper.rb里添加下面这一样 阅读全文
posted @ 2017-04-06 15:34 c3tc3tc3t 阅读(425) 评论(0) 推荐(0) 编辑
  2017年3月17日
摘要: 原文 http://www.wellho.net/mouth/985_Equality-in-Ruby-eql-and-equal-.html Equality in Ruby - == eql? and equal? The == comparison checks whether two val 阅读全文
posted @ 2017-03-17 12:24 c3tc3tc3t 阅读(870) 评论(0) 推荐(0) 编辑
  2017年3月12日
摘要: 官方文档是 \Z - Matches end of string. If string ends with a newline, it matches just before newline \z - Matches end of string \Z - Matches end of string. 阅读全文
posted @ 2017-03-12 16:39 c3tc3tc3t 阅读(705) 评论(0) 推荐(0) 编辑
  2017年1月20日
摘要: # retry用于处理异常中的begin/end代码块中,如果发生异常会重新运行 begin 和 rescue 之间的代码#当retry 被调用的话,begin 和 rescue 之间所有的代码都会被重新跑一次,并不会只跑片段代码或只跑发生异常的代码(0..5).each do |i| begin 阅读全文
posted @ 2017-01-20 12:53 c3tc3tc3t 阅读(413) 评论(0) 推荐(0) 编辑
  2017年1月11日
摘要: 原文地址 http://www.gamersonlinux.com/forum/threads/updating-nvidia-drivers-mint.1746/ 主要步骤很简答 就是将ppa仓库地址添加以下 仓库地址 : 1 ppa:graphics-drivers/ppa 点击图中的 ppas 阅读全文
posted @ 2017-01-11 13:07 c3tc3tc3t 阅读(283) 评论(0) 推荐(0) 编辑
  2017年1月4日
摘要: 下面这种写法作废了 替换成下面 阅读全文
posted @ 2017-01-04 11:48 c3tc3tc3t 阅读(310) 评论(0) 推荐(0) 编辑
  2016年12月22日
摘要: 参考 http://blog.csdn.net/nomasp/article/details/52138501 根据Fcitx的介绍:当LC_CTYPE为英文时,在Emacs上可能无法使用输入法。 : 打开下面文件中的一个就行 , 在文件结尾添加如 阅读全文
posted @ 2016-12-22 12:40 c3tc3tc3t 阅读(239) 评论(0) 推荐(0) 编辑
  2016年12月19日
摘要: 换完linux mint 今天突然崩溃了。出现如下错误 因为是双屏。一个屏幕显示一般,这么不重要。搜了一下,找到解决方案 解决办法 ctrl+atl+f1 login sudo apt-get install cinnamon sudo reboot 阅读全文
posted @ 2016-12-19 22:21 c3tc3tc3t 阅读(385) 评论(0) 推荐(0) 编辑
摘要: sudo apt-get install libmysqlclient-dev sudo apt-get install sqlite3 libsqlite3-dev 阅读全文
posted @ 2016-12-19 10:26 c3tc3tc3t 阅读(209) 评论(0) 推荐(0) 编辑
  2016年12月18日
摘要: sudo apt-get install ttf-wqy-zenhei #文泉驿正黑sudo apt-get install xfonts-wqy #文泉驿-点阵宋体 阅读全文
posted @ 2016-12-18 18:00 c3tc3tc3t 阅读(205) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 40 下一页