会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
IWS
Talk is cheap. Show me the code. -- Torvalds, Linus (2000-08-25).
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
4
5
6
7
8
9
10
11
12
···
24
下一页
2017年2月6日
Javascript: 动态显示进度条
摘要: 1 {% if not config.exec_id == '' %} 2 3 4 5 0% 6 7 8 9 25 {% endif %}
阅读全文
posted @ 2017-02-06 13:28 GreatK
阅读(2015)
评论(0)
推荐(0)
2016年11月18日
Docker: 解决Docker无法在电信网络中访问外网
摘要: 在电信网络中,Docker在build和run时会无法访问外网,原因是docker的默认dns地址是8.8.8.8,由于众所周知的原因,我们需要改写这个地址,方法如下: 修改/etc/sysconfig/docker文件,在OPTIONS中添加dns=114.114.114.114,例如 Done
阅读全文
posted @ 2016-11-18 10:54 GreatK
阅读(978)
评论(0)
推荐(0)
2016年11月17日
Python: 关于nose
摘要: 1. 使用rednose增强输出 2. 使用coverage 随后可以在cover目录中查看生成的html报表 3. nose测试中默认捕获测试通过的case中的print输出,如果想要输出结果,可以加入以下参数
阅读全文
posted @ 2016-11-17 11:31 GreatK
阅读(261)
评论(0)
推荐(0)
2016年11月11日
Python: PDB命令
摘要: 1. where(w) 找出当前代码运行位置 2. list(l) 显示当前代码的部分上下文 3. list <line number> 显示指定行的上下文 4. list <line number1, line number2> 显示指定开始行到结束行的代码 5. up(u) 返回上个调用点 6.
阅读全文
posted @ 2016-11-11 17:05 GreatK
阅读(6794)
评论(0)
推荐(0)
2016年11月8日
Docker: 解决Centos 7中Permission Denied的问题
摘要: 当用docker -v挂载volume后,会出现Permission Denied的问题,这有时是因为SeLinux导致的。解决方法如下:
阅读全文
posted @ 2016-11-08 11:16 GreatK
阅读(8318)
评论(0)
推荐(1)
2016年11月4日
Python: 解决pip安装源被墙的问题
摘要: pip install <package> -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com
阅读全文
posted @ 2016-11-04 13:19 GreatK
阅读(1834)
评论(0)
推荐(0)
2016年11月2日
NodeJS: 处理request网页乱码问题
摘要: 对于gb2312编码的网页,直接用request去获取会得到乱码的结果,解决方法很简单: 1. npm install iconv-lite 2. var iconv = require('iconv-lite'); 3. 4. done.
阅读全文
posted @ 2016-11-02 17:00 GreatK
阅读(5326)
评论(0)
推荐(0)
2016年11月1日
Centos 7: 打开Samba防火墙端口
摘要: firewall-cmd --permanent --add-port=137/tcp firewall-cmd --permanent --add-port=138/tcp firewall-cmd --permanent --add-port=139/tcp firewall-cmd --per
阅读全文
posted @ 2016-11-01 16:25 GreatK
阅读(6506)
评论(0)
推荐(0)
2016年10月19日
sublime: useful commands
摘要: CMD+R go to function in current file CMD+Option+Down find function definition in another file (from cursor word) CMD+D / CMD+U jump & select next word
阅读全文
posted @ 2016-10-19 13:45 GreatK
阅读(192)
评论(0)
推荐(0)
2016年10月13日
MVC.Net: 解决Attempted to access an unloaded appdomain的问题
摘要: 在C#中尝试获取AD帐号信息时,会随机出现Attempted to access an unloaded appdomain的问题,解决方法如下: 将
阅读全文
posted @ 2016-10-13 16:56 GreatK
阅读(1035)
评论(0)
推荐(0)
上一页
1
···
4
5
6
7
8
9
10
11
12
···
24
下一页
公告