Length of Last Word:Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the stri...
分类:
其他好文 时间:
2016-01-10 10:23:01
阅读次数:
150
1. 处理所有请求到单一入口 ( rewrite all requests to index.php with nginx )目前我们做开发一般都是单入口的,所以都会使用web服务器做重定向到入口文件rewrite ^/(.*)$ /index.php?/$1 last;在nginx中加入这项配置就...
分类:
其他好文 时间:
2016-01-09 22:57:34
阅读次数:
217
其实从最刚开始到最后,我们团队的任务一直都比较紧,前期主要是因为我们是从零开始的自选题目,一开始大家都有许多不曾用过的技术需要学习,PM安排任务时也不好分配,不过大家也都坚持下来尽量按时完成任务,第一阶段主要的任务量在于后台的搭建,数据计算核心的编写,还有前台的设计。M2期间其实出过许多的问题,因为...
分类:
其他好文 时间:
2016-01-09 13:51:11
阅读次数:
159
基本过滤选择器:first 选取第一个元素:$("div:first"):last 选取最后一个元素:$("div:last"):not(selector) 取出除selector之外的其他元素:$("div:not(.class)"):even 选取索引为偶数的元素:$("div:even"):o...
分类:
Web程序 时间:
2016-01-09 09:44:41
阅读次数:
195
想必大家在用MySQL时都会遇到连接超时的问题,如下图所示: 就是这个异常(com.mysql.jdbc.exceptions.jdbc4.CommunicationsException:Communications link failure Last packet sent to the serv...
分类:
数据库 时间:
2016-01-07 18:12:47
阅读次数:
157
Building a ClassThe last four refer as memebers
2016-01-061.查看表结构DESC customers;2.编辑SQL语句SQL> select customer_id,first_name,last_namefrom customerswhere customer_id = 1;CUSTOMER_ID FIRST_NAME LAST_N...
分类:
数据库 时间:
2016-01-06 15:58:39
阅读次数:
322
2016-01-051.选择列select customer_id,first_name,last_name,dob,phone from customers;select * from customers;2.选择行select * from customers where customer_id...
分类:
数据库 时间:
2016-01-05 16:54:37
阅读次数:
335
Last_insert_id()是MYSQL提供的返回当前客户端最后一个insert或update查询中设置为AUTO_INCREMENT列的值Last_insert_id()不受其他客户端影响,所以是线程安全的,当前客户端只能拿到当前客户端的最新值,不需加锁处理mybatis中的userGener...
分类:
数据库 时间:
2016-01-04 23:51:26
阅读次数:
190
批量插入数据:declare@iint
set@i=12
while@i<14
begin
INSERTINTO[mdm1220].[dbo].[DEVICE]
([SERIAL_NUMBER]
,[IMEI]
,[WIFI_MAC_ADDR]
,[BLUETOOTH_MAC_ADDR]
,[ACTIVESYNC_ID]
,[STRONG_ID]
,[LAST_INVENTORY_TIME]
,[FIRST_CONNECTION_DATE]
,[LAST_AUTH_DATE]
,[LAST..
分类:
数据库 时间:
2016-01-04 17:05:28
阅读次数:
186