一般列表页面中,我们都需要带分页信息区分当前页号,为区分第一页,和第一页后的其他所有分页页面.我们推荐的做法为:第一页显示正常的标题,从第二页开始便显示xxxxx-第2页-xxxx网.做法是.修改帝国cms的源码!修改e/class/functions.php 找到 $string=str_rep....
分类:
其他好文 时间:
2015-04-02 18:01:22
阅读次数:
110
# 把Busybox所有的命令通过alias映射出来(若此命令不存在时)# 这么做只是为了平时敲命令行时无须额外的打 busybox (感觉很麻烦的说)for applet in $(busybox | busybox sed '1,/Currently defined functions/d;s/...
分类:
移动开发 时间:
2015-04-01 19:09:29
阅读次数:
292
结论: 从面相对象编程的角度考虑,拷贝构造函数调用重载赋值操作符,重载赋值操作符调用拷贝构造函数的写法都是没有意义的。应该避免。Don't try to implement one of the copying functions in terms of the other. Instead, pu...
分类:
编程语言 时间:
2015-04-01 15:14:08
阅读次数:
141
In theprevious tutorialwe built a simple logging system. We were able to broadcast log messages to many receivers.In this tutorial we're going to add ...
分类:
其他好文 时间:
2015-04-01 13:16:55
阅读次数:
153
Library naming--------------Because the library is being built using various exceptionhandling schemes and compilers - and because the librarymay not ...
分类:
其他好文 时间:
2015-03-31 14:33:50
阅读次数:
132
在家里时事务回滚好用的,一到公司 不好用了,然后查了下,是mysql表的类型不是innodb的,然后再改表结构时发现,改不了,就报下面的错了。修改下mysql中的my.ini文件即可。步骤如下
The InnoDB feature is disabled; you need MySQL built with InnoDB to have it working;
是mysql配置文件禁掉了这个选...
分类:
数据库 时间:
2015-03-30 11:19:55
阅读次数:
169
SCALA学习笔记(二)
SCALA学习笔记二
泛型在继承中的类型变化
Invariant
Covariance
Contravariance
Covariance
Contravariance
Call-ByName
Currying柯里化初探
lambda和closure的区别
集合二维运算
foldLeft foldRight
Function Object
Partial Fu...
分类:
其他好文 时间:
2015-03-30 08:03:38
阅读次数:
440
Time Limit: 1000MSMemory Limit: 65536KTotal Submissions: 7083Accepted: 3522DescriptionFarmer John has built a new long barn, with N (2 2 #include 3 .....
分类:
其他好文 时间:
2015-03-29 14:54:14
阅读次数:
137
五竹,20110418
Redis: A persistent key-value database with built-in net interface written in ANSI-C for Posix systems
1 Redis 内存存储结构
本文是基于 Redis-v2.2.4 版本进行分析.
1.1 Redis 内存存储总体结构
Redis 是支持...
分类:
其他好文 时间:
2015-03-29 12:19:09
阅读次数:
159
源码版本:Android-4.4.4_r2
在AndroidRuntime::start中调用AndroidRuntime::startVm函数启动了虚拟机,然后又调用了AndroidRuntime::startReg函数注册Android函数:
/*
* 向 VM 注册Android本地函数。
* Register android native functions with...
分类:
其他好文 时间:
2015-03-29 00:37:25
阅读次数:
209