`
yangli
  • 浏览: 62862 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论
文章列表
Document document = DocumentHelper.createDocument(); document.addDocType("plist", "-//Apple//DTD PLIST 1.0//EN", "http://www.apple.com/DTDs/PropertyList-1.0.dtd"); Element plistElement = document.addElement("plist"); plistElement.addAttrib ...
# vi /etc/my.cnf //添加以下行 [mysqld]set-variable=max_connections=1000set-variable=max_user_connections=500 set-variable=wait_timeout=200 set-variable=interactive_timeout=200 (必须有这项wait_timeout的更改才生效,单位是秒)   //max_connections设置最大连接数为1000 //max_user_connections设置每用户最大连接数为500//wait_timeout表示200秒后将关 ...
命令: show processlist;  如果是root帐号,你能看到所有用户的当前连接。如果是其它普通帐号,只能看到自己占用的连接。  show processlist;只列出前100条,如果想全列出请使用show full processlist;  mysql> show processlist;   命令: ...
组织中项目管理流程图  

java写txt文件

/** * 写txt文件 * @param conent * @param txtPath * @param isNextWriter true表示以追加形式写文件 */ public void writerTXT(String conent,String txtPath,boolean isNextWriter){ try { //创建文件夹和文件 比如:F:/TXT文件夹/testTXT/testData.txt File file = new File(txtPath); if(!file.getParentFile() ...
修改etc/profile  文件后立即生效 方法1: . /etc/profile (.后面有个空格)   方法2: source /etc/profile   快速目录切换 pushd /usr/local/test 进入test目录 pushd 快速返回上次目录    traceroute命令相当于doc下的tracert
1.清理文件内容: 1. echo "" > test.txt  echo >test.txt 2. >test.txt  :>test.txt 3. cat /dev/null > test.txt   2.文件分割 split -b xxm filename (将文件分割成xxm大小的小文件)   3.服务器之间考文件 scp 192.168.1.2: /usr/local/test(把.2机子上的test文件考到本机当前目录) scp -r apache-tomcat-7.0.14.tar.gz  root@192. ...
1.重启 shutdown -r now   2.计算文件大小 [root@localhost scbst60]# du -sh tomcat7/ 683M tomcat7/   3.vi 退出   按esc,再按:输入q!,回车。放弃更改退出。      按esc,再按:输入wq,回车。保存更改退出。   4.查看某个端口信息:   lsof -i:端口号   5.删除文件、文件夹 rm -f 文件名称 rm -rf 文件夹名称   6.文件解压:        .gz   解压1:gunzip FileName.gz   解压2:gzip -d ...
在项目开发过程中,应该按要求编写好十三种文档,文档编制要求具有针对性、 精确性、清晰性、完整性、灵活性、可追溯性。        ◇ 可行性分析报告:     说明该软件开发项目的实现在技术上、经济上和社会因素上的可行性,评述 为了合理地达到开发目标可供选择的各种可能实施方案,说明并论证所选定实施方案 的理由。     ◇ 项目开发计划:      为软件项目实施方案制订出具体计划,应该包括各部分工作的负责人员、开 发的进度、开发经费的预算、所需的硬件及软件资源等。     ◇ 软件需求说明书(软件规格说明书):       对所开发软件的功能、性能、用户界面及运行环 ...
Html head 标签当中加入viewport标签 <metaname="viewport"content="width=100%; initial-scale=1.0; maximum-scale=1.0;user-scalable=0;" /> 关键属性:viewport 什么是viewport? 手机浏览器是把页面放在一个虚拟的“窗口”(viewport)中,通常这个虚拟的“窗口”(
今天我的站点被扫描出了远程执行任意代码漏洞,以前一直知道struts2有这漏洞但一直没了解具体是哪个版本的漏洞,今天发现决定不再让它嚣张下去!g了一大把资料,总结如下:方案一:最直接了当,将struts2换到最新版本,比较麻烦,要换很多依赖jar包。方案二:配置参数拦截器,将敏感参数拦截掉。<package name="basePackage" extends="struts-default"><interceptors><interceptor-stack name="baseStac ...
当你使用struts 2 tags时,如果使用代码:<s:set name="name" value="<%= "'" + request.getParameter("name") + "'" %>" />或者        <s:set name="name" value="${param.name}" />都会发生下列错误:According to TLD or attribute directive in tag  ...
1.声明协议 关键字:@protocol eg: @protocol NSCoping //协议名称 -(id) copyWithZone : (NSZone *) zone; @end   2. 使用协议 @interface Car : NSObject<NSCoping,NSCoding> { //instance variables } // methods @end //Car     可以实现多个协议,NSCoding 声明省略。    Objective-C 2.0增加了两个新的协议修饰符:@optionnal ...
1.什么是类别? 为现有的类添加新的方法。"category"   声明类别:   @interface NSString (NumberConvenience) - (NSNumber *) lengthAsNumber; @end // NumberConvenience        实现类别:   @implementation NSString (NumberConvenience) -(NSNumber *) lengthAsNumber { unsigned int length = [self length]; ...
接口简化 eg:   @interface AllWeatherRadial : Tire { float rainHanding; float snowHanding; } -(void) setRainHanding:(float) rainHanding; -(float) rainHanding; -(void) setSnowHanding:(float)snowHanding; -(float) snowHanding; @end //AllWeatherRadial  简化后的代码:   @interface AllWeatherRadia ...
Global site tag (gtag.js) - Google Analytics