摘要: 准备在windows7上安装Jekyll,安装好了Ruby和RubyDevKit之后,准备使用:$ gem install jekyll安装jekyll,但是返回错误:ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) E... 阅读全文
posted @ 2015-08-13 19:59 niceforbear 阅读(711) 评论(0) 推荐(0) 编辑
摘要: 我的低效方法:通过本地php脚本进行create:发现效率很低,同时由于dev的连接网速不稳定且慢,create到9就结束了。新方法:先在dev机的数据库中创建karate_final_tmp, 在本地通过脚本生成SQL语句,CREATE TABLE karate_final_{$i} LIKE k... 阅读全文
posted @ 2015-08-11 15:34 niceforbear 阅读(271) 评论(0) 推荐(0) 编辑
摘要: 执行操作:$ git pull返回错误:error: RPC failed; result=7, HTTP code = 0fatal: The remote and hung up unexpectedly然后,更换github的邮箱换为最初的gmail的,重新执行操作:$ git pull or... 阅读全文
posted @ 2015-08-11 10:46 niceforbear 阅读(2044) 评论(0) 推荐(0) 编辑
摘要: 在开发机上,执行操作$ git clone https://github.com/xxx/rank.git返回错误:error: The requested URL returned error: 403 Forbidden while accessing https://github.com/xx... 阅读全文
posted @ 2015-08-10 13:38 niceforbear 阅读(252) 评论(0) 推荐(0) 编辑
摘要: 症状:安装phpBB3.1的最后一步完成安装之后,注册用户,浏览器崩溃。localhost的所有页面都打不开同时没有响应。Trace:虽然打开了nginx.exe,但是进程中未发现服务。重新电脑,再度打开ng,进程中依然没有服务。cmd下netstat -ano|find "80",未发现local... 阅读全文
posted @ 2015-08-06 15:37 niceforbear 阅读(2043) 评论(0) 推荐(1) 编辑
摘要: 1 struct ListNode 2 { 3 int data; 4 ListNode* next; 5 }; 6 void AddToTail(ListNode** pHead,int v){ 7 ListNode* pNew = new ListNode(); 8 ... 阅读全文
posted @ 2015-06-07 15:03 niceforbear 阅读(425) 评论(0) 推荐(0) 编辑
摘要: SEDsed编辑器逐行处理文件,将结果发送到屏幕上。首先sed把当前处理的行保存在以恶搞临时缓存区中,处理完行后把该行发送到屏幕上,sed是对副本进行编辑,不会修改原文件。如果要修改原文件,使用-i选项。将文件内容列出同时打印行号,将2-5行删除显示 $ nl file_name | sed '2... 阅读全文
posted @ 2015-06-07 00:24 niceforbear 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 正则表达式的特殊符号:[:alnum:] 代表英文大写字母和数字[:alpah:] 代表英文大小写字母[:blank:] 代表空格和TAB[:cntrl:] 键盘上的控制按键:EG: CR,LF,TAB,DEL[:digit:] 代表数字[:graph:] 代表空白符意外的其他[:lower:] 小... 阅读全文
posted @ 2015-06-06 23:54 niceforbear 阅读(198) 评论(0) 推荐(0) 编辑
摘要: os模块:操作系统接口应该用 import os 风格而非 from os import * 。这样可以保证随操作系统不同而有所变化的 os.open() 不会覆盖内置函数 open() 在使用一些像 os 这样的大型模块时内置的 dir() 和 help() 函数非常有用。针对日常的文件和目录管理... 阅读全文
posted @ 2015-06-05 22:47 niceforbear 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 输入输出:open()read()readine()readlines()write()pickle模块可以做序列化操作,持久保持对象的信息。我们可以很容易的读写文件中的字符串。数值就要多费点儿周折,因为 read() 方法只会返回字符串,应该将其传入 int() 这样的方法中,就可以将 '123'... 阅读全文
posted @ 2015-06-05 00:16 niceforbear 阅读(157) 评论(0) 推荐(0) 编辑