方案一,在tomcat的workers.properties里面配置相关条件worker.tomcat.lbfactor=50worker.tomcat.cachesize=10worker.tomcat.cache_timeout=600worker.tomcat.socket_keepalive...
分类:
数据库 时间:
2014-05-09 15:51:54
阅读次数:
636
下载PHPEXCEL后放到项目里。 public function InExcel() {
//设定缓存模式为经gzip压缩后存入cache(PHPExcel导入导出及大量数据导入缓存方式的修改 ) $cacheMethod =
PHPExcel_CachedOb...
分类:
Web程序 时间:
2014-05-09 12:56:38
阅读次数:
528
转载:http://www.kernelchina.org/node/1050linux的list实现之中有如下东东:#define
list_for_each(pos, head) \ for (pos = (head)->next; prefetch(pos->next),
pos != (h....
分类:
系统相关 时间:
2014-05-09 10:04:38
阅读次数:
323
使用IO模拟器,应用沙盒的根路径为:/Users/apple/Library/Application Support/iPhone
Simulator/6.0/Applications(6.0为模拟器的版本)1、获取应用沙盒目录 利用沙盒根目录拼接“Documents”字符串
NSString * ...
分类:
移动开发 时间:
2014-05-09 07:31:58
阅读次数:
416
Bluetooth
Using the Bluetooth APIs, an Android application can perform the following:
使用蓝牙APIs,一个Android应用可以进行如下操作:
Scan for other Bluetooth devices
扫描其他蓝牙设备
Query the local Bluetooth adapter...
分类:
移动开发 时间:
2014-05-09 06:15:57
阅读次数:
479
最齐全的网站元数据meta标签的含义和用法
随着HTML5的流行和Web技术的不断演变,Meta标签队伍也越来越壮大,从Windows XP的IE6到如今Windows 7、Windows 8的IE9、IE10、IE11,对Html5的支持越来越好,html meta标签的功能作用也越来越强大。 application-name, msapplication-tooltip,msapplication-starturl,msapplication-window,msapplication-navbu...
分类:
Web程序 时间:
2014-05-09 02:01:58
阅读次数:
664
# -*- coding: utf-8 -*-
try:
import httplib2
except ImportError:
print('错误:')
print(' httplib2这个XML解析库没有找到,程序无法继续执行!')
exit(255)
def network_get_proc(self, use_cache = True):
'''POST动作'...
分类:
编程语言 时间:
2014-05-09 01:39:09
阅读次数:
337
oracle 10g rac TAF(Transparent application failover)...
分类:
数据库 时间:
2014-05-09 01:35:32
阅读次数:
513
//
获取程序的基目录。System.AppDomain.CurrentDomain.BaseDirectory//
获取模块的完整路径。System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName//
获取和设置当前目录(该进...
分类:
移动开发 时间:
2014-05-08 23:49:48
阅读次数:
364
【共享keychain数据】
当往keychain中插入数据时,默认的kSecAttrAccessGroup就是App自身的BundleID。【官方文档】 You can add a
keychain-access-groups entitlement to the application an.....
分类:
其他好文 时间:
2014-05-08 23:21:42
阅读次数:
370