ecshop把AJAX事件和JSON解析的模块放在common/transport.js之中,可以说它也有自己封装的一套工具,这其实是很正常的。 ? 但恰恰的,在封装JSON各种方法的同时对object的模型进行了重写,这个就跟jQuery冲突了。...
分类:
Web程序 时间:
2014-07-22 09:03:06
阅读次数:
298
Pipes have no names, and their biggest disadvantage is that they can be used ?only?between processes that have a parent process in common. Two unrelated processes can-? not create a pipe betwee...
分类:
其他好文 时间:
2014-07-21 10:36:45
阅读次数:
237
1、安装samba(CentOS Linux):yum install samba system-config-samba samba-client samba-common 2、创建www账号 ?/usr/sbin/groupadd www/usr/sbin/useradd -g www www mkdir -p /data/ chown -R www:www /...
分类:
其他好文 时间:
2014-07-21 10:32:32
阅读次数:
263
Guava 是一个 Google 的基于java1.6的类库集合的扩展项目,包括 collections, caching, primitives support, concurrency libraries, common annotations, string processing, I/O, 等等. 这些高质量的 API 可以...
分类:
其他好文 时间:
2014-07-21 10:14:58
阅读次数:
180
题目链接 Write a function to find the longest common prefix string amongst an array of strings. 题目的意思说的不是很清楚,开始理解成了求任意两个字符串的前缀中的最长者。但是本题的意思是求所有字符串的最长公共前缀,...
分类:
其他好文 时间:
2014-07-21 09:14:25
阅读次数:
225
由于项目需要root安装软件,并且希望在合适的时候引导用户去开启root安装,故需要检测手机是否root。 最基本的判断如下,直接运行一个底层命令。(参考https://github.com/Trinea/android-common/blob/master/src/cn/trinea/androi...
分类:
移动开发 时间:
2014-07-21 09:11:11
阅读次数:
325
利用Apache commons fileupload上传文件,直接显示其完成的进度条。----示例代码源自《JAVA WEB王者归来》 1 首先要显示动作条要利用Ajax的异步请求,使得在没有完成时,不会刷新本页,而是局部的刷新。如果没有指定form的定向页面,默认是刷新本页,正常我们提交一...
分类:
其他好文 时间:
2014-07-21 08:37:51
阅读次数:
337
每一个集成环境都缺不了一个网络文件服务器,今天介绍一下,该lab-bill-davidey清单里的公共服务(common)模块vsftp服务器。vsftp#allowallftpincomingconnectionsiptables-AINPUT-ptcp--dport21-mstate--stateESTABLISHED-jACCEPTiptables-AOUTPUT-ptcp--sport21-mstate--sta..
分类:
其他好文 时间:
2014-07-20 15:45:31
阅读次数:
241
每一个集成环境都缺不了一个中控服务器我们这里姑且叫它操控服务器(supcon)吧,今天介绍一下,该lab-bill-davidey清单里的公共服务(common)模块supcon服务器。工程化平台就是在这里,ssh免密码登录集成环境的所有主机,这里存放所以的管理脚本。ssh免密码配置如下:sudoser..
分类:
其他好文 时间:
2014-07-20 15:41:31
阅读次数:
250
每一个集成环境都缺不了一个共享文件服务器,今天介绍一下,该lab-bill-davidey清单里的公共服务(common)模块nfs服务器。rpcbindnfsredhat6.5其他有portmapnfsvi/etc/export/local10.0.0.0/24(rw,no_root_squash,no_all_squash,sync)exportfs-viptablescat/etc/sysconfig/nfs..
分类:
其他好文 时间:
2014-07-20 15:11:31
阅读次数:
345