题目 Businesses like to have memorable telephone numbers. One way to make a telephone number memorable is to have it spell a memorable word or phrase. For example, you can call the University of Wa...
分类:
其他好文 时间:
2014-08-21 15:22:24
阅读次数:
237
arguments为js函数中两个隐藏属性中的一个(另一个为this)arguments表示所有传入的参数,为类数组(array-like)类型,arguments.length表示传入参数的长度,但是没有数组类型的其他方法。var func = function(arg1, arg2, arg3)...
分类:
其他好文 时间:
2014-08-20 23:52:53
阅读次数:
295
mysql根据配置文件会限制server接受的数据包大小。有时候大的插入和更新会受max_allowed_packet 参数限制,导致写入或者更新失败。查看目前配置show VARIABLES like '%max_allowed_packet%';显示的结果为:+-----------------...
分类:
数据库 时间:
2014-08-20 19:36:43
阅读次数:
199
1.MySQL基础操作 一:MySQL基础操作 1:MySQL表复制 复制表结构 + 复制表数据 create table t3 like t1; --创建一个和t1一样的表,用like(表结构也一样) inse...
分类:
数据库 时间:
2014-08-20 19:27:32
阅读次数:
313
1.数据量大的时候,可以分多次查询2.有些数据的存储可以分主次表,此表存一些不常用的数据3.union all 比union效率要高4.尽量不要用distinct5.不返回不需要的行和列6.根据条件加索引7.可以把like用法换成截取字符串作比较8.检索的时候可以把页数也当做条件(每次查询拿出最大的...
分类:
数据库 时间:
2014-08-20 01:21:35
阅读次数:
255
下划线和百分号在sql模糊查询like语句中为特殊字符,分别可匹配1个字符和0到多个字符,如果需要真正查询特殊字符得转义,如like ‘a\_b%‘ escape ‘\‘,将匹配前3个字符为a_b的所有记录。 1、PreparedStatement处理...
分类:
数据库 时间:
2014-08-19 19:20:45
阅读次数:
292
Using Supervisor with Docker
Note: - If you don't like sudo then see Giving
non-root access
Traditionally a Docker container runs a single process when it is launched, for example an Apache ...
分类:
其他好文 时间:
2014-08-19 12:54:34
阅读次数:
367
1. For all DIVs of a page$(function() { $("div").lazyload({effect: 'fadeIn'});});2. For a particular DIV having some ID like: some content $(function(...
分类:
其他好文 时间:
2014-08-19 12:18:34
阅读次数:
218
1.系统mysql的进程数ps -ef | grep "mysql" | grep -v "grep" | wc –l2.Slave_runningmysql > show status like 'Slave_running';如果系统有一个从复制服务器,这个值指明了从服务器的健康度3.Threa...
分类:
数据库 时间:
2014-08-18 18:12:32
阅读次数:
252
//http://stackoverflow.com/questions/7642161/android-ormlite-like-function-is-not-workingtry { QueryBuilder qb = makeDao.queryBuilder(); qb.wher...
分类:
移动开发 时间:
2014-08-18 18:07:13
阅读次数:
240