`
cooper100
  • 浏览: 12633 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论
收藏列表
标题 标签 来源
ByteArrayOutputStream使用
ByteArrayOutputStream和ByteArrayInputStream详解
ByteArrayOutputStream类是在创建它的实例时,程序内部创建一个byte型别数组的缓冲区,然后利用ByteArrayOutputStream和ByteArrayInputStream的实例向数组中写入或读出byte型数据。在网络传输中我们往往要传输很多变量,我们可以利用ByteArrayOutputStream把所有的变量收集到一起,然后一次性把数据发送出去。具体用法如下:

ByteArrayOutputStream:    可以捕获内存缓冲区的数据,转换成字节数组。

ByteArrayInputStream: 可以将字节数组转化为输入流

 1import java.io.*;
 2
 3public class test {
 4 public static void main(String[] args) {
 5  int a=0;
 6  int b=1;
 7  int c=2;
 8  ByteArrayOutputStream bout = new ByteArrayOutputStream();
 9  bout.write(a);
10  bout.write(b);
11  bout.write(c);
12  byte[] buff = bout.toByteArray();
13  for(int i=0; i<buff.length; i++)
14   System.out.println(buff[i]);
15  System.out.println("***********************");
16  ByteArrayInputStream bin = new ByteArrayInputStream(buff);
17  while((b=bin.read())!=-1) {
18   System.out.println(b);
19  }
20 }
21}
22
23
24

如上所示,ByteArrayOutputStream把内存中的数据读到字节数组中,而ByteArrayInputStream又把字节数组中的字节以流的形式读出,实现了对同一个字节数组的操作.

综合DataOutputStream&DataInputStream的作用和功能,与ByteArrayOutputStream和ByteArrayInputSream使用将更方便.此时DataOutputStream&DataInputStream封闭了字节流,以适当的形式读出了字节数组中的数据.如下所示:
 1import java.io.*;
 2
 3public class test {
 4 public static void main(String[] args)throws IOException {
 5  ByteArrayOutputStream bout = new ByteArrayOutputStream();
 6  DataOutputStream dout = new DataOutputStream(bout);
 7  String name = "xxy";
 8  int age = 84;
 9  dout.writeUTF(name);
10  dout.writeInt(age);
11  byte[] buff = bout.toByteArray();
12  ByteArrayInputStream bin = new ByteArrayInputStream(buff);
13  DataInputStream dis = new DataInputStream(bin);
14  String newName = dis.readUTF();
15  int newAge = dis.readInt();
16  System.out.println(newName+":"+newAge);
17 }
18}
HTML <area> 详细讲解
HTML <area> 标签
定义和用法
注意:顺序是上右下左,顺时针方向
coords 属性规定区域的 x 和 y 坐标。

coords 属性与 shape 属性配合使用,来规定区域的尺寸、形状和位置。

图像左上角的坐标是 "0,0"。
详细解释:

<area> 标签的 coords 属性定义了客户端图像映射中对鼠标敏感的区域的坐标。坐标的数字及其含义取决于 shape 属性中决定的区域形状。可以将客户端图像映射中的超链接区域定义为矩形、圆形或多边形等。

下面列出了每种形状的适当值:
圆形:shape="circle",coords="x,y,z"

这里的 x 和 y 定义了圆心的位置("0,0" 是图像左上角的坐标),r 是以像素为单位的圆形半径。
多边形:shape="polygon",coords="x1,y1,x2,y2,x3,y3,..."

每一对 "x,y" 坐标都定义了多边形的一个顶点("0,0" 是图像左上角的坐标)。定义三角形至少需要三组坐标;高纬多边形则需要更多数量的顶点。

多边形会自动封闭,因此在列表的结尾不需要重复第一个坐标来闭合整个区域。
矩形:shape="rectangle",coords="x1,y1,x2,y2"

第一个坐标是矩形的一个角的顶点坐标,另一对坐标是对角的顶点坐标,"0,0" 是图像左上角的坐标。请注意,定义矩形实际上是定义带有四个顶点的多边形的一种简化方法。

例如,下面的 XHTML 片段在一个 100x100 像素图像的右下方四分之一处,定义了一个对鼠标敏感的区域,并在图像的正中间定义了一个圆形区域。

<map name="map">
  <area shape="rect" coords="75,75,99,99" nohref="nohref">
  <area shape="circ" coords="50,50,25" nohref="nohref">
</map>

实例

<img src ="planets.gif" alt="Planets" usemap ="#planetmap" />

<map name="planetmap">
  <area shape="rect" coords="0,0,110,260" href="sun.htm" alt="Sun" />
  <area shape="circle" coords="129,161,10" href="mercur.htm" alt="Mercury" />
  <area shape="circle" coords="180,139,14" href="venus.htm" alt="Venus" />
</map>

TIY
提示和注释

注释:如果某个 area 标签中的坐标和其他区域发生了重叠,会优先采用最先出现的 area 标签。浏览器会忽略超过图像边界范围之外的坐标。
语法

<area coords="value">

属性值
值 	描述
x1,y1,x2,y2 	如果 shape 属性设置为 "rect",则该值规定矩形左上角和右下角的坐标。
x,y,radius 	如果 shape 属性设置为 "circ",则该值规定圆心的坐标和半径。
x1,y1,x2,y2,..,xn,yn 	如果 shape 属性设置为 "poly",则该值规定多边形各边的坐标。如果第一个坐标和最后一个坐标不一致,那么为了关闭多边形,浏览器必须添加最后一对坐标。
数据加载中
<!DOCTYPE html PUBLIC "-//W3C//DTD XhtmlL 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>test加载中</title>

<!--[if lte IE 6]>
	<script src="js/DD_belatedPNG_0.0.8a-min.js" language="javascript"></script>
	<script>
	  DD_belatedPNG.fix('div,li,a,h3,span,img,.png_bg,ul,input');
	</script>
<![endif]-->
<script language="JavaScript" type="text/javascript">
   document.onreadystatechange=function(){ 
   if(document.readyState=="complete"){ 
  document.getElementById('loading').style.display='none'; 
  } 
}  
</script>
</head>
<body style="margin:0;padding:0"> 
	<div id="loading" style="position:absolute;width:100%;height:100%; 
	left:0px;top:0px;background-color:#ffffff;filter:alpha 
	(opacity=100)">  
	<div style="text-align:center;padding-top:200px"> 
	     正在读取运算数据请稍候.... 
	<hr style="height:1px;width:50%"> 
	    Loading... 
	</div> 
	</div> 
	<iframe src="http://www.alixixi.com" style="height:100%;width:100%;margin:0; 
	padding:0;border=0"></iframe> 
</body>  

</html>
版本查看
lsb_release -a  Linux
mysql  :mysql -V
Linux find
# find <directory> -type f -name "*.c" | xargs grep "<strings>"

参加2011年5月21
参加2011年5月21日考试的考生网上报名时间:2011年2月21日10:00至3月18日17:00截止(24小时开通);参加2011年11月12日考试的考生网上报名时间:2011年
 
  8月8日10:00至9月2日17:00截止(24小时开通)。报名流程如下:
 
  1、考生在上述时间内登录深圳市考试院网站(网址:http://www.testcenter.gov.cn)→点击“网上报名(http://new.testcenter.gov.cn/webregister/default.aspx)”栏目→选择《2011年度全国计算机技术与软件专业技术资格(水平)考试》→到用户登录界面→点击“考生报名”→填写姓名和身份证号后点击“进入报名”→阅读“报名须知”、“诚信承诺书”→点击“下一步 ”及“同意”后进入→必须按要求用简体字详细填完报名信息→点击“提交”后记下报名序号→按要求上传相片→点击“在线支付”进行付费(具体支付方式按网上提示进行操作)→用A4纸从网上正反面打印一份《2011年度全国计算机技术与软件专业技术资格(水平)考试报名发证登记表》(以下简称《报名表》)→交单位审核确认。
 
  2、报考人员所在单位对报考者的身份及报考条件进行初审,初审合格的,在《报名表》上加注推荐意见并加盖公章及考生本人签名。
string ,char[]
package com.test;

public class Test
{
   String str ="abc";
   char[] c = {'a','b','c'};
   
   public static void main(String[] args) {
	   Test t = new Test();
	   t.change(t.str, t.c);
	   System.out.println(t.str);
	   System.out.println(t.c);
}
   
   void change(String a,char[]b )
   {
	   a = "465465465";
	   b[0]='1';
   }
}
结果是  abc \n  1bc


package com.test;

public class Test
{
   String str ="abc";
   char[] c = {'a','b','c'};
   
   public static void main(String[] args) 
   {
	   Test t = new Test();
	   t.change(t.str, t.c);
	   System.out.println(t.str);
	   System.out.println(t.c);
	   print();
   }
   
   void change(String a,char[]b )
   {
	   a = "465465465";
	   b[0]='1';
   }
   
    static void print ()
   {
	   String str = "str111";
	   char a = 'a';
	   System.out.println(str+a);
	   int b = 343;
	   System.out.println(b+a);
   }
   
}
oracle分页查询
这两天在学习Oracle数据,下载了韩顺平的玩转ORACLE视频,感觉讲的还不错, 
可能是我以前用个mysql和SQLServer的原因,听起来很容易懂。
 
    


Sql代码  
1.select * from (select a1.*,rownum rn from(select * from emp) a1 where rownum<=10) where rn>=6;  
 
   我感觉非常麻烦,还要3个子查询。 
     其实大家也知道子查询的效率是非常慢的, 能不用子查询就尽量不要用。 

     我研究了下,结果感觉比上面那个要简单很多,只需要2个子查询 
  


Sql代码  
1.select * from (select e.*,rownum rn from emp e) a1 where a1.rn between 6 and 10;  
2.   
 

   两种查找的效果都是一样的。 
oracle 查询
select * from studentinfo;
select stuname 姓名,stuage 年龄 from studentinfo
select distinct stuage from studentinfo;

select stuage  from studentinfo group by stuage

select * from studentinfo where stusex='女';

select  *  from studentinfo where rownum<=5 

select 'name'||stuname||'age'||stuage||'address'||stuaddress infromation from studentinfo

select * from studentinfo where stuage<20 and stuaddress like '%长沙%';

查询身份证中包含有‘1989’字符的学员信息
select * from studentinfo where stucard like '%1989%'

10、查询‘2007-3-5’后入学的学员信息

select * from studentinfo where  stujointime >'5-3月-2007'

11、查询邮箱地址为yahoo的班主任信息

select * from teacherinfo where teacheremail like '%yahoo%'

12、查询手机以‘139’开头的班主任信息

select * from teacherinfo where teachertel like '139%'
13、查询年龄不为空男性学员的学号,姓名,住址
select * from studentinfo where stuage  is null and stusex='男'

14、查询学号在‘001’,‘003’,‘004’三者之间的学员姓名和入学时间
select * from studentinfo where stunumber in(001,003,004)

15、查询所有学员信息,并按年龄降序排序

  select * from studentinfo order by stuage desc 
16、查询所有成绩,按考试分数降序排序,分数相同的,按学员编号升序排序

select * from studentexam order by examresult desc,examsubject 
1、查询成绩大于80分的学员姓名和考试科目
select stuname ,examsubject from studentinfo s1, studentexam s2 where  s2.examresult>80 
select stuname ,examsubject from studentinfo inner join studentexam on  studentexam.examid = studentinfo.stuid 
 where studentexam.examresult>80 
select * from studentexam
select * from studentinfo 
select * from studentexam ,studentinfo 
2、查询所有学员信息,要求显示姓名,学号,考试科目,考试成绩,并按照考试成绩降序和学号升序排序
select stuname ,stunumber,examsubject ,examresult from studentinfo s1,studentexam s2
where s1.stuid=s2.examid 
order by examresult desc,stunumber 

3、查询每个班所对应的班主任名称,要求显示班级名称和班主任名称  
   select * from teacherinfo
   select * from classinfo
   
   select teachername ,classnumber from teacherinfo t1,classinfo t2 
   where  t1.teacherid= t2.cteacherid 
4、查询每个班主任所带学员信息,要求显示:班主任姓名,班主任联系电话,班级名称,学员姓名,学员学号。(3表连接)
   select teachername ,teachertel,classnumber, stuname ,stunumber from teacherinfo o1, classinfo o2 ,studentinfo o3
   where o1.teacherid=o2.cteacherid and o2.classid = o3.sclassid 
  
5、查询所有学员信息,按所在班级分组,要求显示班级编号,和该班级考试平均分,并按平均分的降序排序。(3表连接)
注意:以上连接查询要求使用笛卡尔集进行筛选

   select *from studentexam
   select *from studentinfo 
   select *from classinfo
   
   
   select sclassid, avg(examresult) from classinfo c,(select  *  from studentexam se right join studentinfo s on  se.estuid=s.stuid) ss where c.classid=ss.sclassid group by sclassid
    order by avg(examresult) desc

   select examsubject, avg(examresult) from studentexam group by examsubject
   
   
6、查询与学员‘火云邪神’属于同一班的学员信息
   select * from studentinfo where
    sclassid in (  select sclassid from studentinfo where stuname='火云邪神')
    
    



7、查询Java考试及格(>=60分)的学员详细信息
   select  * from studentinfo m1,( select * from studentexam  where examsubject ='Java' and examresult>60) m2
   where m1.stuid=m2.estuid 
   这合下面一样的
   select  * from studentinfo m1,studentexam m2 where m1.stuid=m2.estuid and examsubject ='Java' and examresult>60
   
8、查询与学员‘孙悟空’属于同一班且年龄相同的学员信息
   多列子查询
    select  * from studentinfo where (sclassid,stuage)= (select sclassid,stuage from studentinfo where stuname='孙悟空')
    
9、查询年龄最小的三位学员的姓名和家庭住址
    select rownum , stuname,stuaddress ,stuage from (select * from studentinfo order by stuage) where rownum <4 
    
10、查询考试成绩中SQL课程的前三名的成绩信息
    select n.*,rownum from(
    Select * from studentexam where examsubject ='SQL' order by examresult )n where rownum<4
11、查询考试成绩中Java课程的第二名的成绩信息
     select * from  (select rownum mn,t.* from (select  studentexam.* from  studentexam where examsubject='Java' order by examresult desc )t)
    where mn>1 and mn <=2 
12、查询学员信息,筛选出第3-4条记录
select rownum,t.* from
(
   select rownum rn,studentinfo.* from studentinfo where rownum<=4
) t
where rn>2;
delete
/*判断页面是否有选中*/
	function checkedISSelexted() {
		var selectCount = $("#resultList").find(":checkbox[id!='']:checked")
				.size();
		if (selectCount == 0) {
			$.dialog.show(title, delServ);
			return false;
		} else if (selectCount > 0) {
			$.dialog.confirm(title, confirm, function() {
				var fireTag = new jBME.FireTag();
				fireTag.setService("deleteGroup('%{#BMERoot}')");
				fireTag.setTargetid("resultList");
				fireTag.setMode("render");
				fireTag.setRegionid("resultList");
				jBME.Fire.execute(fireTag);
			}, function() {
				return false;
			});
		}
		return true;
	}
oracle INNER JOIN
inner join  

1. select * from studentinfo inner join studentexam on  studentexam.estuid =  studentinfo.stuid 
 where studentexam.examresult>80 
2.查询满足右边的数据,的值相同都有可以,都可以查去来的。

Select*   FROM(((
Member INNER JOIN MemberSort ON Member.MemberSort=MemberSort.MemberSort) INNER JOIN MemberLevel ON Member.MemberLevel=MemberLevel.MemberLevel)
INNER JOIN MemberIdentity ON Member.MemberIdentity=MemberIdentity.MemberIdentity)
INNER JOIN Wedlock ON Member.Wedlock=Wedlock.Wedlock   
ORDER BY MemberDateDESC 

 
demobsl.sql
--
-- Copyright (c) Oracle Corporation 1988, 2000.  All Rights Reserved.
--
-- NAME
--   demobld.sql
--
-- DESCRIPTION
--   This script creates the SQL*Plus demonstration tables in the
--   current schema.  It should be STARTed by each user wishing to
--   access the tables.  To remove the tables use the demodrop.sql
--   script.
--
--  USAGE
--    From within SQL*Plus, enter:
--        START demobld.sql

SET TERMOUT ON
PROMPT Building demonstration tables.  Please wait.
SET TERMOUT OFF

DROP TABLE EMP;
DROP TABLE DEPT;
DROP TABLE BONUS;
DROP TABLE SALGRADE;
DROP TABLE DUMMY;

CREATE TABLE EMP
       (EMPNO NUMBER(4) NOT NULL,
        ENAME VARCHAR2(10),
        JOB VARCHAR2(9),
        MGR NUMBER(4),
        HIREDATE DATE,
        SAL NUMBER(7, 2),
        COMM NUMBER(7, 2),
        DEPTNO NUMBER(2));

INSERT INTO EMP VALUES
        (7369, 'SMITH',  'CLERK',     7902,
        TO_DATE('17-DEC-1980', 'DD-MON-YYYY'),  800, NULL, 20);
INSERT INTO EMP VALUES
        (7499, 'ALLEN',  'SALESMAN',  7698,
        TO_DATE('20-FEB-1981', 'DD-MON-YYYY'), 1600,  300, 30);
INSERT INTO EMP VALUES
        (7521, 'WARD',   'SALESMAN',  7698,
        TO_DATE('22-FEB-1981', 'DD-MON-YYYY'), 1250,  500, 30);
INSERT INTO EMP VALUES
        (7566, 'JONES',  'MANAGER',   7839,
        TO_DATE('2-APR-1981', 'DD-MON-YYYY'),  2975, NULL, 20);
INSERT INTO EMP VALUES
        (7654, 'MARTIN', 'SALESMAN',  7698,
        TO_DATE('28-SEP-1981', 'DD-MON-YYYY'), 1250, 1400, 30);
INSERT INTO EMP VALUES
        (7698, 'BLAKE',  'MANAGER',   7839,
        TO_DATE('1-MAY-1981', 'DD-MON-YYYY'),  2850, NULL, 30);
INSERT INTO EMP VALUES
        (7782, 'CLARK',  'MANAGER',   7839,
        TO_DATE('9-JUN-1981', 'DD-MON-YYYY'),  2450, NULL, 10);
INSERT INTO EMP VALUES
        (7788, 'SCOTT',  'ANALYST',   7566,
        TO_DATE('09-DEC-1982', 'DD-MON-YYYY'), 3000, NULL, 20);
INSERT INTO EMP VALUES
        (7839, 'KING',   'PRESIDENT', NULL,
        TO_DATE('17-NOV-1981', 'DD-MON-YYYY'), 5000, NULL, 10);
INSERT INTO EMP VALUES
        (7844, 'TURNER', 'SALESMAN',  7698,
        TO_DATE('8-SEP-1981', 'DD-MON-YYYY'),  1500,    0, 30);
INSERT INTO EMP VALUES
        (7876, 'ADAMS',  'CLERK',     7788,
        TO_DATE('12-JAN-1983', 'DD-MON-YYYY'), 1100, NULL, 20);
INSERT INTO EMP VALUES
        (7900, 'JAMES',  'CLERK',     7698,
        TO_DATE('3-DEC-1981', 'DD-MON-YYYY'),   950, NULL, 30);
INSERT INTO EMP VALUES
        (7902, 'FORD',   'ANALYST',   7566,
        TO_DATE('3-DEC-1981', 'DD-MON-YYYY'),  3000, NULL, 20);
INSERT INTO EMP VALUES
        (7934, 'MILLER', 'CLERK',     7782,
        TO_DATE('23-JAN-1982', 'DD-MON-YYYY'), 1300, NULL, 10);

CREATE TABLE DEPT
       (DEPTNO NUMBER(2),
        DNAME VARCHAR2(14),
        LOC VARCHAR2(13) );

INSERT INTO DEPT VALUES (10, 'ACCOUNTING', 'NEW YORK');
INSERT INTO DEPT VALUES (20, 'RESEARCH',   'DALLAS');
INSERT INTO DEPT VALUES (30, 'SALES',      'CHICAGO');
INSERT INTO DEPT VALUES (40, 'OPERATIONS', 'BOSTON');

CREATE TABLE BONUS
        (ENAME VARCHAR2(10),
         JOB   VARCHAR2(9),
         SAL   NUMBER,
         COMM  NUMBER);

CREATE TABLE SALGRADE
        (GRADE NUMBER,
         LOSAL NUMBER,
         HISAL NUMBER);

INSERT INTO SALGRADE VALUES (1,  700, 1200);
INSERT INTO SALGRADE VALUES (2, 1201, 1400);
INSERT INTO SALGRADE VALUES (3, 1401, 2000);
INSERT INTO SALGRADE VALUES (4, 2001, 3000);
INSERT INTO SALGRADE VALUES (5, 3001, 9999);

CREATE TABLE DUMMY
        (DUMMY NUMBER);

INSERT INTO DUMMY VALUES (0);

COMMIT;

SET TERMOUT ON
PROMPT Demonstration table build is complete.

EXIT
ftp dos
1.如何查看Ftp的IP地址? 
#ifconfig
2.
从windows中连接linux的ftp怎么做?
  进入开始运行,输入cmd命令
  a.先看看ip能不能ping通:#ping 192.168.123.118 
  b.如果能够ping通,则进行连接:#ftp 192.168.123.118 ,或是先ftp,再open 192.168.123.118;
3.
如果 linux的ftp的地址ping不通,有什么可能? 
  a.linux的ftp没有启动,需要:#192.168.123.118 ; 
   b.linux的防火墙没关闭,需要:service iptables stop;

4.进入windows cmd ,一直进入到要上传的.gz文件的父目录下,然后输入"ftp 虚拟机的ip"回车,输入用户名和密码后进入虚拟机的目录,#pwd显示当前目录,ls显示当前子目录,进入其中一个子目录,连续输入下列命令: ftp>cd /opt,ftp>bin,ftp>put aa.tar.gz
 
此时就完成了把windows系统下f:/aa.tar.gz上传到linux4的/opt目录下。
 1.如何启动linux的ftp服务? 
#service vsftpd start
2.
如何查看ftp服务已经启动? 
#ftp localhost
 依次进入etc/xinetd.d,ls显示里面有个名字为gssftp 先#ls gssftp后#vi gssftp,将server _args这行前加#注释该行。
 
  以上命令只对linux4有效果。
 对于其他版本参考:
 如果ftp的root用户不允许上传文件,则需要怎么做? 
 a. # vi /etc/vsftpd.user_list
将root用户注释掉,在root前面加上"#"; 
 b.. # vi /etc/vsftpd.ftpusers 
   同样,将root用户注释掉,在root前面加上"#";
 ftp命令:
ftp 192.168.8.111 
ftp>username 
ftp>password 
ftp>bin --采用二进制传输文件 
ftp>mget * --下载多个远程文件 
ftp>get --下载单个远程文件 
ftp>prompt --关闭交互模式 
ftp>quit --退出ftp命令 
ftp>delete --删除远程文件 
ftp>mdelete --删除多个远程文件 
ftp>put --上传单个文件 
ftp>mput --上传多个文件 
ftp>pwd --显示远程服务器的当前目录
oracle数据导入
该命令在CMD命令行执行
一、数据导出(exp.exe)
1、将数据库orcl完全导出,用户名system,密码accp,导出到d:\daochu.dmp文件中
exp system/accp@orcl file=d:\daochu.dmp full=y

2、将数据库orcl中system用户与sys用户的表导出
exp system/accp@orcl file=d:\daochu.dmp  owner=(system,sys)

3、将数据库orcl中的scott用户的表emp、dept导出
exp scott/accp@orcl file= d:\daochu.dmp tables=(emp,dept)

4、将数据库orcl中的表空间testSpace导出
	exp system/accp@orcl file=d:\daochu.dmp tablespaces=(testSpace)

二、数据导入(imp.exe)
1、将d:\daochu.dmp 中的数据导入 orcl数据库中。
	imp system/accp@orcl file=d:\daochu.dmp full=y

2、如果导入时,数据表已经存在,将报错,对该表不会进行导入。加上ignore=y即可。
	imp scott/accp@orcl file=d:\daochu.dmp  full=y  ignore=y

3、将d:\daochu.dmp中的表emp导入
imp system/accp@orcl file=d:\daochu.dmp tables=(emp)

计算机运行命令全集 winver---------检查Windows版本
7:计算机运行命令全集 winver---------检查Windows版本 
wmimgmt.msc----打开windows管理体系结构 
wupdmgr--------windows更新程序 
winver---------检查Windows版本 
wmimgmt.msc----打开windows管理体系结构 
wupdmgr--------windows更新程序 
wscript--------windows脚本宿主设置 
write----------写字板winmsd-----系统信息 
wiaacmgr-------扫描仪和照相机向导 
winchat--------XP自带局域网聊天 
mem.exe--------显示内存使用情况 
Msconfig.exe---系统配置实用程序 
mplayer2-------简易widnows media player 
mspaint--------画图板 
mstsc----------远程桌面连接 
mplayer2-------媒体播放机 
magnify--------放大镜实用程序 
mmc------------打开控制台 
mobsync--------同步命令 
dxdiag---------检查DirectX信息 
drwtsn32------ 系统医生 
devmgmt.msc--- 设备管理器 
dfrg.msc-------磁盘碎片整理程序 
diskmgmt.msc---磁盘管理实用程序 
dcomcnfg-------打开系统组件服务 
ddeshare-------打开DDE共享设置 
dvdplay--------DVD播放器 
net stop messenger-----停止信使服务 
net start messenger----开始信使服务 
notepad--------打开记事本 
nslookup-------网络管理的工具向导 
ntbackup-------系统备份和还原 
narrator-------屏幕"讲述人" 
ntmsmgr.msc----移动存储管理器 
ntmsoprq.msc---移动存储管理员操作请求 
netstat -an----(TC)命令检查接口 
syncapp--------创建一个公文包 
sysedit--------系统配置编辑器 
sigverif-------文件签名验证程序 
sndrec32-------录音机 
shrpubw--------创建共享文件夹 
secpol.msc-----本地安全策略 
syskey---------系统加密,一旦加密就不能解开,保护windows xp系统的双重密码 
services.msc---本地服务设置 
Sndvol32-------音量控制程序 
sfc.exe--------系统文件检查器 
sfc /scannow---windows文件保护 
tsshutdn-------60秒倒计时关机命令 
tourstart------xp简介(安装完成后出现的漫游xp程序) 
taskmgr--------任务管理器 
eventvwr-------事件查看器 
eudcedit-------造字程序 
explorer-------打开资源管理器 
packager-------对象包装程序 
perfmon.msc----计算机性能监测程序 
progman--------程序管理器 
regedit.exe----注册表 
rsop.msc-------组策略结果集 
regedt32-------注册表编辑器 
rononce -p ----15秒关机 
regsvr32 /u *.dll----停止dll文件运行 
regsvr32 /u zipfldr.dll------取消ZIP支持 
cmd.exe--------CMD命令提示符 
chkdsk.exe-----Chkdsk磁盘检查 
certmgr.msc----证书管理实用程序 
calc-----------启动计算器 
charmap--------启动字符映射表 
cliconfg-------SQL SERVER 客户端网络实用程序 
Clipbrd--------剪贴板查看器 
conf-----------启动netmeeting 
compmgmt.msc---计算机管理 
cleanmgr-------**整理 
ciadv.msc------索引服务程序 
osk------------打开屏幕键盘 
odbcad32-------ODBC数据源管理器 
oobe/msoobe /a----检查XP是否激活 
lusrmgr.msc----本机用户和组 
logoff---------注销命令 
iexpress-------木马捆绑工具,系统自带 
Nslookup-------IP地址侦测器 
fsmgmt.msc-----共享文件夹管理器 
utilman--------辅助工具管理器 
gpedit.msc-----组策略 
grep
grep 命令在unix或者 linux 上面都有,主要是用正则表达式来实现查询,过滤等作用的。
比如要想找到readme.txt里面包含'hellow grep '的文字的行,可以使用这样的命令
grep 'hellow grep' readme.txt
假如想找出不包含hellow grep 的行的话,那么使用-v参数。
grep -v 'hellow grep' readme.txt
有时还可以结合操作系统管道的方式来使用,比如,查找操作系统里面进程名称包含java的进程
ps -ef|grep java
netstat
1.netstat -aln|grep 8080   //看端口有谁在用的
通用型序列化框架
XStrean ,Simple,XBlink 1.0.0 版发布,
List排序
for (Entry<String, Integer> kpd : KvmParamDefsMap.entrySet())
        {
            if (kpd.getValue() < parameters.size())
            {
                KvmParameter para = new KvmParameter();
                para.setName(kpd.getKey());
                para.setValue(parameters.get(kpd.getValue()));
                kvmParameters.add(para);
            }
        }
Collections.sort
2009-07-03
Collections.sort

    * 博客分类: Java

CC++C#

第一种方法:容器内要排序的类必须时下Comparable接口:  sort ( List list)

例子:
import java.util.*;
public class Main{
public static void main(String args[]){
ArrayList al=new ArrayList();
al.add(new Student(2,"aa"));
al.add(new Student(1,"bb"));
al.add(new Student(3,"dd"));
al.add(new Student(3,"cc"));
Collections.sort(al);
Iterator it=al.iterator();
while(it.hasNext()){
System.out.println(it.next());
}
}
}
class Student implements Comparable{
int id;
String name;
Student(int id,String name){
this.id=id;
this.name=name;
}
public int compareTo(Object o){
Student s=(Student)o;
int result=(id>s.id)?1:((id==s.id)?0:-1);
if(0==result){
result=name.compareTo(s.name);
}
return result;
}
public String toString(){
return "id="+this.id+",name="+this.name;

}
}

 

 

第二种方法:使用静态内部类实现Comparator接口:sort ( List list, Comparator c)

 

只需实现compare方法就行,equals方法在obeject类就会有,而实体类继承自object类,就必然会有equals方法,所以不需实现


例子
import java.util.*;
public class Main{
public static void main(String args[]){
ArrayList al=new ArrayList();
al.add(new Student(2,"aa"));
al.add(new Student(1,"bb"));
al.add(new Student(3,"dd"));
al.add(new Student(3,"cc"));
Collections.sort(al,new StudentComparator());
Iterator it=al.iterator();
while(it.hasNext()){
System.out.println(it.next());
}
}
}
class Student {
int id;
String name;
Student(int id,String name){
this.id=id;
this.name=name;
}
public String toString(){
return "id="+this.id+",name="+this.name;

}
}

class StudentComparator implements Comparator{
public int compare(Object o1,Object o2){
Student s1=(Student)o1;
Student s2=(Student)o2;
int result=(s1.id>s2.id)?1:((s1.id==s2.id)?0:-1);
if(0==result){
result=s1.name.compareTo(s2.name);

}
return result;
}
}

 
jstl
 1. foreach<c:forEach items="${typeList}" var="cbc">
							<bme:item value="${cbc.type}" key="${cbc.type}"></bme:item>
					</c:forEach>
com.springsource.org.apache.commons.lang-2.4.0.jar
com.springsource.org.apache.commons.lang-2.4.0.jar

com.springsource.org.apache.commons.lang-2.4.0.jar
StringUtils
checkbox
<script type="text/javascript"> 
		var initCheckboxes = function(){
			$('#queryTable tr.parent').each(function(index, item){
				var children = $('tr[parentitemkey=' + $(item).attr('itemkey') + ']').find('input:checkbox');
				var parent = $(item).find('input:checkbox');
				parent.click(function(){
					children.attr('checked', $(this).attr('checked'));
				});
				children.click(function(){
					if (children.filter(':not(:checked)').size() == 0){
						parent.attr('checked', true);
					}else {
						parent.attr('checked', false);
					}
				});
			});
        }
		$(document).ready(initCheckboxes).ajaxSuccess(initCheckboxes);;
       	
	</script>
js checkbox
 $(function(){
			$('#queryTable tr.parent').each(function(index, item){
				var children = $('tr[parentitemkey=' + $(item).attr('itemkey') + ']').find('input:checkbox');
				var parent = $(item).find('input:checkbox');
				
				parent.click(function(){
					children.attr('checked', $(this).attr('checked'));
				});
				children.click(function(){
					if (children.filter(':not(:checked)').size() == 0){
						parent.attr('checked', true);
					}else {
						parent.attr('checked', false);
					}
				});
			});
 	    });

function checkedISSelexted(){
		var selectCount = $("#selectTable").find(":checkbox[id!='']:checked")
				.size();
		if (selectCount >32) 
		{
			$.dialog.show(title, delServ);
			return false;
		} 
		return true;
	}
推荐十几款Firefox web开发插件
推荐十几款Firefox web开发插件
开发工具

    Web Developer 1.1.8 
     https://addons.mozilla.org/en-US/firefox/addon/60
    by chrispederick
    The Web Developer extension adds a menu and a toolbar with various web developer tools.
    说明:超强的web分析工具,开发人员必装。

    Firebug 1.5.0
    https://addons.mozilla.org/en-US/firefox/addon/1843
    Firebug integrates with Firefox to put a wealth of development tools at your fingertips while you browse. You can edit, debug, and monitor CSS, HTML, and JavaScript live in any web page... Firebug integrates with Firefox to put a wealth of development tools at your fingertips while you browse. You can edit, debug, and monitor CSS, HTML, and JavaScript live in any web page. Visit the Firebug website for documentation, screen shots, and discussion forums:
    说明:查看,编辑,Debug页面的CSS,HTML,JavaScript。超强的开发调试的工具,开发人员必装。

    LinrLightWeb 0.2.1
    https://addons.mozilla.org/zh-CN/firefox/addon/14068
    F*安装前,请确认您已安装Firebug插件,获取Firebug请访问:http://getfirebug.com/
    1. 开启网页编辑模式,随意编辑网页——Fiddler的好搭档;
    2. 超强Selector,查找操作标记;
    3. 刷新CSS,无需刷新整页;
    4. 快速设置CSS Sprites背景,鼠标拖移即可得到位置;
    5. 保持登录状态,Session不过期;禁用
    6. 同步发行IE版,Chrome版。
    说明:非常强的web开发工具。

    View Source Char 2.7
    https://addons.mozilla.org/en-US/firefox/addon/655
    by Jennifer Madden(MM)
    Draws A Color-Coded Chart of a Web Page's Source Code.
    说明:显示非常好看的源码, 分级缩进, 不同颜色区分。

    Tamper Data 11.0.0
    https://addons.mozilla.org/en-US/firefox/addon/966
    Use tamperdata to view and modify HTTP/HTTPS headers and post parameters.
    说明:查看 firefox 收发请求的 header, 特别是在发出请求前, 可以修改 header。

    JavaScript Debuger 0.9.87.4
    https://addons.mozilla.org/en-US/firefox/addon/216
    Venkman is the code name for Mozilla's JavaScript Debugger. Venkman aims to provide a powerful JavaScript debugging environment for Mozilla based browsers.
    说明:firefox 环境下的 JavaScript Debugger, 强大的脚本调试工具。

    Live Http Headers 0.15
    https://addons.mozilla.org/en-US/firefox/addon/3829
    View HTTP headers of a page and while browsing.
    说明:浏览页面同时记录所有 HTTP headers 。

    Add N Edit Cookies 0.2.1.3
    https://addons.mozilla.org/en-US/firefox/addon/573
    Cookie Editor that allows you add and edit "session" and saved cookies.
    说明:查看并且修改 cookies, 不方便的地方是显示所有浏览器的 cookies 而不仅是当前页。

    XPath Checker 0.4.1
    https://addons.mozilla.org/en-US/firefox/addon/1095
    An interactive editor for XPath expressions. Choose 'View XPath' in the context menu and it will show the editor. You can edit the XPath expression and it incrementally updates the results.
    说明:据说可以调试 XPath。

    YSlow 2.0.6
    https://addons.mozilla.org/zh-cn/firefox/addon/5369
    YSlow analyzes web pages and why they're slow based on Yahoo!'s rules for high performance web sites.
    说明:能够帮我们分析web页面比较慢的原因,它是基于Firebug的,也能分开浏览web页面的元素,比如js,css.


HTML验证

    HTML Validator(based on CSE HTML Validator)1.2.3
    https://addons.mozilla.org/en-US/firefox/addon/887
    Validates HTML documents using the CSE HTML Validator engine for Windows. Requires CSE HTML Validator for Windows. The lite edition is available for free at http://www.htmlvalidator.com/lite/
    说明:著名的 CSE HTML Validator 引擎。

    Relaxed the HTML Validator 0.9.5
    https://addons.mozilla.org/en-US/firefox/addon/3939
    "Relaxed" is a HTML validator which validates HTML documents using it's own schema definitions written in Relax NG with embedded Schematron patterns.:
    说明:直接在当前页面上进行 HTML validation, 界面清晰直观。

    Total Validator 6.2.0 
     https://addons.mozilla.org/en-US/firefox/addon/2318
    by Andy Halford
    Perform multiple validations and take screen shots in one go. This 5-in-1 validator works with external, internal, or local web pages using the Total Validator service or local copy of the desktop tool...
    说明:把当前页面在 http://www.totalvalidator.com 做HTML Validation,输出结果用红字进行了语法修正, 比较友好。不过由于通过其他网站验证, 速度有点慢, 并且结果不易保存。


页面设计

    MeasureIt 0.3.92
    https://addons.mozilla.org/en-US/firefox/addon/539
    Draw out a ruler to get the pixel width and height of any elements on a webpage.
    说明:可以测量页面上任何选择区域的长宽, 对界面设计人员非常有帮助。

    ColorZilla 2.0.2
    https://addons.mozilla.org/en-US/firefox/addon/271
    Advanced Eyedropper, ColorPicker, Page Zoomer and other colorful goodies...
    说明:从页面, 或者调色板上取色, 同时可以缩放页面。


SEO广告

    RankQuest SEO Toolbar 3.9.2
    https://addons.mozilla.org/en-US/firefox/addon/1471
    RankQuest SEO(Search Engine Optimization) Toolbar provides you quick access to more than 30 intuitive SEO tools. Alexa Rank and Page Rank provided by Alexa and Google respectively ensures the popularity of the site. Once you download and install the SEO Toolbar you are only one or two clicks away from carrying out most of your day to day SEO...
    说明:SEO 工具插件, 访问一个页面时, 显示此页面的各种排名及 SEO 信息。

    Adsense Preview 1.5
    https://addons.mozilla.org/en-US/firefox/addon/2132
    Preview the Google ads that may show on any web page.
    说明:在当前页面上显示 Google ADs 帮助确定广告位置。


其他工具

    HackBar 1.4.2
    https://addons.mozilla.org/en-US/firefox/addon/3899
    Simple security audit / Penetration test tool.
    说明:快速对字符串进行各种编码的工具, MD5, Base64, URLencode, URLDecode。

    Document Map 0.6.1
    https://addons.mozilla.org/en-US/firefox/addon/475
    Displays the current page's heading structure in the sidebar, allowing rapid navigation between...
    说明:提供页面资源结构信息.。

    IE View Lite 1.3.5
    https://addons.mozilla.org/en-US/firefox/addon/1429
    This is a cut down version of IE View by Paul Roub, which is 47.4 KB. All the same UI and features are there. It has a right click menu item to open a page in IE and a list of sites to always open in IE. It can close tabs automatically and send...
    说明:点右键可以选择在 IE 中打开页面, 有助于跨浏览器调试。

    TimeStamp Converter 2.0.0
    https://addons.mozilla.org/en-US/firefox/addon/2063
    Converts dates and timestamps.Context menu option to convert the selected timestamp into a date.
    说明:除去从上下文中转换, 还可以手动将 timestamp 时间戳与 date/time 转换。

    TimestampDecode 0.1.8
    https://addons.mozilla.org/en-US/firefox/addon/3208
    Treats the selected number as a timestamp and displays a decoded date/time.
    说明:将选中的数字作为 timestamp 时间戳转换为 date/time。

    Fire Encrypter 4.0
    https://addons.mozilla.org/en-US/firefox/addon/2063
    FireEncrypter is an Firefox extension which gives you encryption/decryption and hashing functionalities right from your Firefox browser, mostly useful for developers or for education & fun...
    说明:将文字加密成各种算法的密文, 甚至包括摩尔斯码。

    Add-in-one Sidebar  
    https://addons.mozilla.org/en-US/firefox/addon/1027
    AiOS lets you open various windows as sidebar panels, and quickly switch between them. So it put an end to the window chaos! In addition to bookmarks and history it opens dialogues such as downloads, add-ons and more in the sidebar.
    说明:在浏览器左侧增加打开书签, 历史, 插件等的工具条。
check
$(document).ready(function(){
		$("[type='checkbox']").removeAttr("checked").eq(0).attr({"checked":true,"disabled":true});
		$("[type='radio']").removeAttr("checked").eq(0).attr("checked",true);
		$("#ssss").css("display","none");

		$("[type='checkbox']").click(function(){
			if("1"==$(this).attr("value")){
				if($(this).attr("checked")){
					$("#ssss").css("display","block");
				}else{
					$("#ssss").css("display","none");
				}
			}
		});
	});
Linux chmod 命令
chmod用于改变文件或目录的访问权限。用户用它控制文件或目录的访问权限。该命令有两种用法。一种是包含字母和操作符表达式的文字设定法;另一种是包含数字的数字设定法。 

1. 文字设定法 

语法:chmod [who] [+ | - | =] [mode] 文件名 

命令中各选项的含义为: 


操作对象who可是下述字母中的任一个或者它们的组合: 

  u 表示“用户(user)”,即文件或目录的所有者。 

  g 表示“同组(group)用户”,即与文件属主有相同组ID的所有用户。 

  o 表示“其他(others)用户”。 

  a 表示“所有(all)用户”。它是系统默认值。 

操作符号可以是: 

  + 添加某个权限。 

  - 取消某个权限。 

  = 赋予给定权限并取消其他所有权限(如果有的话)。 

设置 mode 所表示的权限可用下述字母的任意组合: 

  r 可读。 

  w 可写。 

    x 可执行。 

  X 只有目标文件对某些用户是可执行的或该目标文件是目录时才追加x 属性。 

  s 在文件执行时把进程的属主或组ID置为该文件的文件属主。 

       方式“u+s”设置文件的用户ID位,“g+s”设置组ID位。 

  t 保存程序的文本到交换设备上。 

  u 与文件属主拥有一样的权限。 

  g 与和文件属主同组的用户拥有一样的权限。 

  o 与其他用户拥有一样的权限。 

文件名:以空格分开的要改变权限的文件列表,支持通配符。 

   

在一个命令行中可给出多个权限方式,其间用逗号隔开。例如: 

chmod g+r,o+r example   % 使同组和其他用户对文件example 有读权限。 
2. 数字设定法 

我们必须首先了解用数字表示的属性的含义:0表示没有权限,1表示可执行权限, 2表示可写权限,4表示可读权限,然后将其相加。所以数字属性的格式应为3个从0到7的八进制数,其顺序是(u)(g)(o)。 

例如,如果想让某个文件的属主有“读/写”二种权限,需要把4(可读)+2(可写)=6(读/写)。 

数字设定法的一般形式为: 


语法:chmod [mode] 文件名 

指令实例: 

chmod a+x sort   

% 即设定文件sort的属性为: 

 文件属主(u) 增加执行权限 

 与文件属主同组用户(g) 增加执行权限 

 其他用户(o) 增加执行权限 

chmod ug+w,o-x text 

% 即设定文件text的属性为: 

 文件属主(u) 增加写权限 

 与文件属主同组用户(g) 增加写权限 

 其他用户(o) 删除执行权限 

chmod u+s a.out 

% 假设执行chmod后a.out的权限为(可以用ls – l a.out命令来看): 

 –rws--x--x 1 inin users 7192 Nov 4 14:22 a.out 

 并且这个执行文件要用到一个文本文件shiyan1.c,其文件存取权限为“–rw-------”, 

   即该文件只有其属主具有读写权限。 

    当其他用户执行a.out这个程序时,他的身份因这个程序暂时变成inin(由于chmod 

   命令中使用了s选项),所以他就能够读取shiyan1.c这个文件(虽然这个文件被设定为 

   其他人不具备任何权限),这就是s的功能。 

  因此,在整个系统中特别是root本身,最好不要过多的设置这种类型的文件(除非 

   必要)这样可以保障系统的安全,避免因为某些程序的bug而使系统遭到入侵。 

chmod a–x mm.txt 

chmod –x mm.txt 

chmod ugo–x mm.txt 

% 以上这三个命令都是将文件mm.txt的执行权限删除,它设定的对象为所有使用者。 

$ chmod 644 mm.txt 

% 即设定文件mm.txt的属性为:-rw-r--r-- 

 文件属主(u)inin 拥有读、写权限 

 与文件属主同组人用户(g) 拥有读权限 

 其他人(o) 拥有读权限 

chmod 750 wch.txt 

% 即设定wchtxt这个文件的属性为:-rwxr-x--- 

 文件主本人(u)inin 可读/可写/可执行权 

 与文件主同组人(g) 可读/可执行权 

 其他人(o) 没有任何权限 

详解: 
使用方式 : chmod [-cfvR] [--help] [--version] mode file... 

说明 : Linux/Unix 的档案存取权限分为三级 : 档案拥有者、群组、其他。利用 chmod 可以藉以控制档案如何被他人所存取。 

把计 : 

mode : 权限设定字串,格式如下 : [ugoa...][[+-=][rwxX]...][,...],其中u 表示该档案的拥有者,g 表示与该档案的拥有者属于同一个群体(group)者,o 表示其他以外的人,a 表示这三者皆是。 
+ 表示增加权限、- 表示取消权限、= 表示唯一设定权限。 
r 表示可读取,w 表示可写入,x 表示可执行,X 表示只有当该档案是个子目录或者该档案已经被设定过为可执行。 
-c : 若该档案权限确实已经更改,才显示其更改动作 
-f : 若该档案权限无法被更改也不要显示错误讯息 
-v : 显示权限变更的详细资料 
-R : 对目前目录下的所有档案与子目录进行相同的权限变更(即以递回的方式逐个变更) 
--help : 显示辅助说明 
--version : 显示版本 

范例 :将档案 file1.txt 设为所有人皆可读取 : 
chmod ugo+r file1.txt 

将档案 file1.txt 设为所有人皆可读取 : 
chmod a+r file1.txt 

将档案 file1.txt 与 file2.txt 设为该档案拥有者,与其所属同一个群体者可写入,但其他以外的人则不可写入 : 
chmod ug+w,o-w file1.txt file2.txt 

将 ex1.py 设定为只有该档案拥有者可以执行 : 
chmod u+x ex1.py 

将目前目录下的所有档案与子目录皆设为任何人可读取 : 
chmod -R a+r * 

此外chmod也可以用数字来表示权限如 chmod 777 file 
语法为:chmod abc file 

其中a,b,c各为一个数字,分别表示User、Group、及Other的权限。 

r=4,w=2,x=1 
若要rwx属性则4+2+1=7; 
若要rw-属性则4+2=6; 
若要r-x属性则4+1=7。 

范例: 
chmod a=rwx file 

和 
chmod 777 file 

效果相同 
chmod ug=rwx,o=x file 

和 
chmod 771 file 

效果相同 

若用chmod 4755 filename可使此程式具有root的权限 
指令名称 : chown 
使用权限 : root 

使用方式 : chmod [-cfhvR] [--help] [--version] user[:group] file... 

说明 : Linux/Unix 是多人多工作业系统,所有的档案皆有拥有者。利用 chown 可以将档案的拥有者加以改变。一般来说,这个指令只有是由系统管理者(root)所使用,一般使用者没有权限可以改变别人的档案拥有者,也没有权限可以自己的档案拥有者改设为别人。只有系统管理者(root)才有这样的权限。 

把计 : 

user : 新的档案拥有者的使用者 IDgroup : 新的档案拥有者的使用者群体(group)-c : 若该档案拥有者确实已经更改,才显示其更改动作-f : 若该档案拥有者无法被更改也不要显示错误讯息-h : 只对于连结(link)进行变更,而非该 link 真正指向的档案-v : 显示拥有者变更的详细资料-R : 对目前目录下的所有档案与子目录进行相同的拥有者变更(即以递回的方式逐个变更)--help : 显示辅助说明--version : 显示版本 

范例 : 
将档案 file1.txt 的拥有者设为 users 群体的使用者 jessie : 
chown jessie:users file1.txt 

将目前目录下的所有档案与子目录的拥有者皆设为 users 群体的使用者 lamport : 
chmod -R lamport:users * 
-rw------- (600) -- 只有属主有读写权限。 

-rw-r--r-- (644) -- 只有属主有读写权限;而属组用户和其他用户只有读权限。 

-rwx------ (700) -- 只有属主有读、写、执行权限。 

-rwxr-xr-x (755) -- 属主有读、写、执行权限;而属组用户和其他用户只有读、执行权限。 

-rwx--x--x (711) -- 属主有读、写、执行权限;而属组用户和其他用户只有执行权限。 

-rw-rw-rw- (666) -- 所有用户都有文件读、写权限。这种做法不可取。 

-rwxrwxrwx (777) -- 所有用户都有读、写、执行权限。更不可取的做法。 

以下是对目录的两个普通设定: 


drwx------ (700) - 只有属主可在目录中读、写。 

drwxr-xr-x (755) - 所有用户可读该目录,但只有属主才能改变目录中的内容 
suid的代表数字是4,比如4755的结果是-rwsr-xr-x 
sgid的代表数字是2,比如6755的结果是-rwsr-sr-x 
sticky位代表数字是1,比如7755的结果是-rwsr-sr-t 

linux user opertion
1:用户useradd -u 502 -d /home/oracle -g oinstall -G dba -m -s /bin/bash oracle 
  -u 是用户的id  -d 是用户登陆后进来的目录  -g 是用户以属于那一个组  -s 是用shell

2.passwd oracle 修改用户密码
maven
COPY包依赖
mvn dependency:copy-dependencies


Meven 编译时不执行 测试类
命令行:
  mvn clean deploy -Dmaven.test.skip=true
  mvn clean install -Dmaven.test.skip=true



列出项目中所有的直接和传递性依赖。 
命令: mvn dependency:tree 

查看有效pom 
mvn help:effective-pom 

查看插件说明 
mvn help:describe xxx 
svn
在“运行”里输入命令regedit ,打开注册表管理工具

2、点击[HKEY_LOCAL_MACHINE\SOFTWARE\Tigris.org\Subversion\Config\auto-props]节点
Global site tag (gtag.js) - Google Analytics