命名规范 开发的过程中应该尽量遵循下列命名规范: 类文件都是以.class.php为后缀(这里是指的ThinkPHP内部使用的类库文件,不代表外部加载的类库文件),使用驼峰法命名,并且首字母大写,例如 DbMysql.class.php; 类的命名空间地址和所在的路径地址一致,例如 Home\Con ...
分类:
Web程序 时间:
2016-10-21 19:06:48
阅读次数:
158
1. union find 并查集 一种用来解决集合查询和合并的数据结构 并查集能够干什么? 1. find 操作 判断在不在同一个集合中 2. union关于集合合并 例子: A, B, C的boss 是B D,E,F的boss是E 那么组成了两个集合。 每个节点都包含了一个指针,指向其boss, ...
分类:
其他好文 时间:
2016-10-21 16:01:13
阅读次数:
228
The conditions used in while and if statements can contain any operators, not just comparisons. The comparison operators in and not in check whether a ...
分类:
其他好文 时间:
2016-10-21 13:50:29
阅读次数:
244
在js中,字符串(string)和数组(array)是常用到的变量,js中也为这2种变量提供了各种强大的函数。 如果能较好的运用这些函数,在进行算法计算时可以说是事半功倍,但作为初学者,我们常常对这些函数感到眼花缭乱,下面将对string和array中常用到的函数进行盘点和比较。 一、string变 ...
分类:
其他好文 时间:
2016-10-21 13:27:13
阅读次数:
148
RabbitMQ队列 安装 http://www.rabbitmq.com/install-standalone-mac.html 安装python rabbitMQ module ? 1 2 3 4 5 6 7 pip install pika or easy_install pika or 源码 ...
分类:
编程语言 时间:
2016-10-21 10:54:28
阅读次数:
193
基本弄清楚了WebSocket的来龙去脉后,开始了实现WebSocket技术的探索。 看过一篇文章,测试了八种WebSocket框架性能,得以了解到实现WebSocket技术的框架有: Netty、Undertow、Jetty、Vert.x、Grizzly、spray-websocket、node.... ...
分类:
Web程序 时间:
2016-10-21 10:35:16
阅读次数:
278
一、坑之初始化(不初始化没法添加远程仓库) 1、你要是不进行初始化,git会报错:fatal: Not a git repository (or any of the parent directories): .git 如图: 2、要在代码文件夹的根目录下进行初始化 >$ git init 3、出现 ...
分类:
Web程序 时间:
2016-10-20 21:39:11
阅读次数:
583
我先把脚本粘贴在这吧,方便大家观看,其中也是借鉴了不少其他大神的东西,这个脚本主要是用来监控服务器、用户、日志,还得创建备份,等等等等。最近学的shell比较多,就用这个来练练手了,比较简单,大家凑合看吧。 #! /bin/bash 10 # unset any variable which sys ...
分类:
系统相关 时间:
2016-10-20 14:58:14
阅读次数:
308
any 是任意一个all 是所有 比如select * from student where 班级='01' and age > all (select age from student where 班级='02');就是说,查询出01班中,年龄大于 02班所有人 的 同学相当于1select * ...
分类:
数据库 时间:
2016-10-19 20:16:01
阅读次数:
256
在eclipse中创建maven webapp项目时报错: Could not resolve archetype org.apache.maven.archetypes:maven-archetype-webapp:1.0 from any of the configured repositori ...
分类:
移动开发 时间:
2016-10-18 13:36:16
阅读次数:
180