1、插件下载地址:http://www.chromein.com/search_livereload_1.html 2、谷歌浏览器启用改插件 3、sublime 安装livereload插件,安装方法与其他插件一样 4、点击浏览器改小图标边实心 这样就可以直接修改完html或者css保存,不需要刷新 ...
分类:
其他好文 时间:
2016-11-21 18:23:17
阅读次数:
185
保证一个类仅有一个实例,并提供一个该实例的全局访问点。 ——《设计模式》单例模式的概念很简单,下面以C#语言为例子,列出常见单例写法的优缺点。1、简单实现 public sea...
分类:
其他好文 时间:
2016-11-21 08:54:33
阅读次数:
139
2016年11月20日 星期日 --出埃及记 Exodus 20:11For in six days the LORD made the heavens and the earth, the sea, and all that is in them, but he rested on the sev ...
分类:
其他好文 时间:
2016-11-20 19:02:18
阅读次数:
151
打开 ~/es_root/config/elasticsearch.yml 文件,加入以下配置: 以上配置定义了 ik_syno 和 ik_syno_smart 这两个新的 analyzer,分别对应 IK 的 ik_max_word 和 ik_smart 两种分词策略。根据 IK 的文档,二者区别 ...
分类:
其他好文 时间:
2016-11-19 20:54:53
阅读次数:
289
同样是参考网上教程,编写爬取贴吧帖子的内容,同时把爬取的帖子保存到本地文档: #!/usr/bin/python#_*_coding:utf-8_*_import urllibimport urllib2import reimport sys reload(sys)sys.setdefaultenc ...
分类:
编程语言 时间:
2016-11-19 15:16:06
阅读次数:
213
为了安全性方面考虑每次重新启动电脑第一次打开Chrome的时候都会提示解锁登录密钥环,只有输入正确的用户密码Chrome才能够访问它的的安全本地存储,但是每次都提示会让人觉得很烦人。如果不考虑安全性的话,可以通过配置固定的密码跳过这一步。 安装seahorse 运行seahorse 配置密码 ...
分类:
其他好文 时间:
2016-11-19 13:20:49
阅读次数:
584
1.config 模块 2.hashlib操作 3.random模块 4.shelve模块 5.shutil模块 6. logging模块 7.re模块 常用正则表达式符号 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 '.' 默认匹配 ...
分类:
编程语言 时间:
2016-11-19 02:53:22
阅读次数:
304
多态( polymorphism )的概念 相同的一条语句,在不同的运行环境中可以产生不同的运行结果。 多态的最本质特征就是父类(或接口)变量可以引用子类(或实现了接口的类)对象。换句话说:子类对象可以被当成基类对象使用! Java中子类与基类变量间的赋值 子类对象可以直接赋给基类变量。 基类对象要 ...
分类:
其他好文 时间:
2016-11-19 02:15:04
阅读次数:
288
2 days passed, and I finally find it done with samba server.. with utube to set up a samba server: 1. install samba; 2. add /etc/samba/smb.conf to the ...
分类:
其他好文 时间:
2016-11-18 21:36:10
阅读次数:
136