If you ever have trouble with a service being stuck in a 'starting' or 'stopping' state, you can run a couple of simple commands to kill the service.1...
ItemsItem objects are simple containers used to collect the scraped data.They provide a dictionary-like api with a convenient syntax for declaring the...
分类:
其他好文 时间:
2014-07-16 22:48:37
阅读次数:
186
It's quite simple to run django on nginx on windows. Here are some key steps to follow -1. Download nginx/windows fromhttp://nginx.org/en/download.htm...
kangear注:
文章转自:http://blog.csdn.net/myxmu/article/details/12217135
原文把图给搞丢了,这个时候我就发挥多年的Google和人脉关系根据链接找到了,补上图(这个图是MTK内部用图)。
[DESCRIPTION]
在BT2.1及之后版本,蓝牙协议有在传统的密码配对(PIN Code Pairing)之外...
分类:
其他好文 时间:
2014-07-11 00:36:52
阅读次数:
378
1. [代码]tmpl.js // Simple JavaScript Templating// John Resig - http://ejohn.org/ - MIT Licensed(function() {var cache = {};this.tmpl = function tmpl(s....
分类:
编程语言 时间:
2014-07-09 19:19:15
阅读次数:
290
简单工厂模式是由一个工厂对象来决定创建出哪一种产品类的实例(对象),就是由一个工厂类根据传入的参数来决定需要创建哪一种产品的对象或实例。
此模式主要涉及到工厂角色,抽象产品,具体产品三个角色
工厂类(Creator),此模式的核心,含有与应用紧密相关的商业逻辑,
抽象产品(Product),担任需要创建产品的父类,一般由一个java接口事抽象类来实现
具体产品(Concrete Produ...
分类:
其他好文 时间:
2014-07-09 12:18:01
阅读次数:
187
Designing a Class Interface
设计类接口
The Objective-C syntax for creating a class is very simple. It typically comes in two parts.
创建类的语法是很简单的,通常包括两部分。
The class interface is u...
分类:
其他好文 时间:
2014-07-08 16:24:27
阅读次数:
168
原题: ZOJ 3686http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3686这题本来是一个比较水的线段树,结果一个mark坑了我好几个小时。。哎。太弱。先DFS这棵树,树形结构转换为线性结构,每个节点有一个第一次遍历的时间...
分类:
其他好文 时间:
2014-07-08 00:46:56
阅读次数:
295
There are a bunch of different methods you can use to back up your MongoDB data, but if you want to avoid downtime and/or potential
performance degradation, the most common advice seems to be that y...
分类:
数据库 时间:
2014-07-06 09:26:04
阅读次数:
437