??xml version="1.0" encoding="utf-8" standalone="yes"?>456亚洲精品成人影院,理论片在线观看理伦片,极品少妇一区二区三区http://www.aygfsteel.com/icewee/There is nothing too difficult if you put your heart into it.zh-cnSat, 17 May 2025 03:54:31 GMTSat, 17 May 2025 03:54:31 GMT60“由于主设|已损坏QInternet Explorer重置了你的主?..”解军_?/title><link>http://www.aygfsteel.com/icewee/archive/2016/08/12/431542.html</link><dc:creator>IceWee</dc:creator><author>IceWee</author><pubDate>Fri, 12 Aug 2016 02:47:00 GMT</pubDate><guid>http://www.aygfsteel.com/icewee/archive/2016/08/12/431542.html</guid><wfw:comment>http://www.aygfsteel.com/icewee/comments/431542.html</wfw:comment><comments>http://www.aygfsteel.com/icewee/archive/2016/08/12/431542.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/icewee/comments/commentRss/431542.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/icewee/services/trackbacks/431542.html</trackback:ping><description><![CDATA[q个问题很多伙伴都遇到了,|上搜罗了半天也没找到太好、太完美的解军_法,有h说是因ؓ安装IE11时联|了Q导致自动打了补丁,q个补丁可以自动查IE主页是否损坏Q可以通过卸蝲相应的补丁解冻I我同时又扑ֈ了另外一个通过修改hosts文g的方法,貌似目前解决了我的问题,修改Ҏ如下Q? 使用C本打开 C:\Windows\System32\drivers\etc\hosts 文gQ在最下面q加一行: 127.0.0.1 ieonline.microsoft.com <img src ="http://www.aygfsteel.com/icewee/aggbug/431542.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/icewee/" target="_blank">IceWee</a> 2016-08-12 10:47 <a href="http://www.aygfsteel.com/icewee/archive/2016/08/12/431542.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>tomcat安装为服务service.bat讄Q启动服务时出错Q提C?..特定代码0?http://www.aygfsteel.com/icewee/archive/2016/01/18/429098.htmlIceWeeIceWeeMon, 18 Jan 2016 05:43:00 GMThttp://www.aygfsteel.com/icewee/archive/2016/01/18/429098.htmlhttp://www.aygfsteel.com/icewee/comments/429098.htmlhttp://www.aygfsteel.com/icewee/archive/2016/01/18/429098.html#Feedback0http://www.aygfsteel.com/icewee/comments/commentRss/429098.htmlhttp://www.aygfsteel.com/icewee/services/trackbacks/429098.html

IceWee 2016-01-18 13:43 发表评论
]]>
ORA-01438: value larger than specified precision allowed for this column & Could not synchronize database state with sessionhttp://www.aygfsteel.com/icewee/archive/2014/03/28/411644.htmlIceWeeIceWeeFri, 28 Mar 2014 10:54:00 GMThttp://www.aygfsteel.com/icewee/archive/2014/03/28/411644.htmlhttp://www.aygfsteel.com/icewee/comments/411644.htmlhttp://www.aygfsteel.com/icewee/archive/2014/03/28/411644.html#Feedback0http://www.aygfsteel.com/icewee/comments/commentRss/411644.htmlhttp://www.aygfsteel.com/icewee/services/trackbacks/411644.html有段日子没做记录了,q段日子一直在排雷Q前人埋下的隐患代码Q或者直接说bugQ,今天q个雯我排了将q大半天Q因为是正式上线的系l,只能看后台日志,不能调试Q打印出的异怿息不完整Q种U的条g不充分,D问题很难定位。标题上的两个异常,W一个一看就明白是插入的数值大于数据库字段长度Q第二个多是因ؓNumbercd的字D导_比如_ֺ不?/span>

我们的这ơ问题原因是E序员在做除法运时没有寚w数进行非零判断,D计算出来的数值非法,插入数据库失败,L代码Q?
public static void main(String[] args) {
        
double a = 10;
        
double b = 0;
        
double c = 0;
        
        
double m = a/c;
        
double n = b/c;
        
        System.out.println(m);
        System.out.println(n);
    }

l过计算后,m和n的值分别是多少Q没在实际开发中遇到的可能不知道Q或者你有个好习惯不会出现这LbugQ请看结果:
Infinity
NaN

被除数非Ӟ除数为零做除法的l果是字W串“Infinity”Q翻译成中文是“无限”Q你的中学数学老师可能说过Q?br />被除CؓӞ除数为零做触发的l果是字W串“NaN”Q即不是有效的数字?br />
是q个“Infinity”p了我一天的时间才定位。下面详q问题定位的Ҏ?br />
异常1QORA-01438: value larger than specified precision allowed for this column
了解Ҏ据库的打g看就知道插入的数Dq了表字D长度,但你知道是哪个表哪个字段吗?我不知道Q于是网上查阅了下,Oracle数据库服务器在Linux上?br />
命o行登陆到数据库所在服务器Q进入Oracle的安装目录,假设?opt/oracle/
q入到如下目录:/opt/oracle/admin/实例?udump
中间的数据库实例名根据实际情况修改,udump目录下会有一堆的.trc文gQ这些文件记录了所有操作当前数据库出现异常的堆栈信息。ؓ了定位问题,我将该目录下的所?trc文g都删除了Q当Ӟ删除之前把udump目录整个备䆾了)Q再q行一ơ系l的业务操作Q查看一下udump目录Q发现立ȝ成一个新 ?trc文gQ打开查看Q内容片D)Q?br />
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning
, Real Application Clusters, OLAP, Data Mining
and Real Application Testing options
ORACLE_HOME 
= /u01/app/oracle/product/10.2/db_1
System name:    AIX
Node name
:    gsdj1
Release
:    1
Version
:    6
Machine
:    00CFD4644C00
Instance name
: bjwd1
Redo thread mounted by this instance: 1
Oracle process number
: 132
Unix process pid
: 48300280, image: oracle@gsdj1

*** SERVICE NAME:(bjwd) 2014-03-28 16:48:05.683
*** SESSION ID:(2969.439612014-03-28 16:48:05.683
*** 2014-03-28 16:48:05.683
ksedmp
: internal or fatal error
ORA
-01438: value larger than specified precision allowed for this column
Current SQL statement 
for this session:
insert into CP_TEMP_STOCKTRAN (APPLY_ID, ALIEN, CER_TYPE, CER_NO, TRANS_AM, TRANS_AM_PR, TRANS_TYPE, TRANS_DATE, ENDORSOR, BLIC_TYPE, ALIEN_ID, ENDORSOR_ID, STOCKTRAN_ID) values (:1, :2, :3, :4, :5, :6, :7, :8, :9, :10, :11, :12, :13)

黄色背景U色字体的SQL是|魁RQ这仅仅能定位发生问题的数据库表Q字D还得自己排查。异?让我定位Cq里Q这时想起了异常2?br />

异常2Q?nbsp;Could not synchronize database state with session
之前也搜索过q个异常Q多数是׃Numbercd的字D导致。冷静的思考一下,q_我们在做表设计时Q会把文字类型的字段讄大一些,Numbercd的精度也会根据实际业务进行设计,但往往Numbercd的字D|Ҏ出问题:
1、如果将非Number值插入该字段Q比如字W串
2、如果插入的数值精度过多,如字D设计Number(10,2)Q也是最大支?为整数和两位数Q要插入34.121313׃p|

Ҏ表名定位到hibernate的映文件以及实体类Q再从业务功能入口(一个actionҎQ搜索,l于定位C个业务接口做了该实体cȝ保存代码Q定位到了那个字D,定位C做除法没有判断除数是否ؓ0?br />









IceWee 2014-03-28 18:54 发表评论
]]>
Debian |络讄以及非法x后无法联|?connect: network is unreachablehttp://www.aygfsteel.com/icewee/archive/2014/01/24/409301.htmlIceWeeIceWeeFri, 24 Jan 2014 02:50:00 GMThttp://www.aygfsteel.com/icewee/archive/2014/01/24/409301.htmlhttp://www.aygfsteel.com/icewee/comments/409301.htmlhttp://www.aygfsteel.com/icewee/archive/2014/01/24/409301.html#Feedback0http://www.aygfsteel.com/icewee/comments/commentRss/409301.htmlhttp://www.aygfsteel.com/icewee/services/trackbacks/409301.html |络配置Q?/span>
临时Q重?/span>丢失Q?/span>
ifconfig eth0 192.168.1.xxx netmask 255.255.xxx.0


怹Q重启有效)
vi /etc/network/interfaces

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
iface eth0 inet static
        address 192.168.1.xxx
        netmask 255.255.xxx.0
        network 192.168.1.1
        broadcast 192.168.1.255
        gateway 192.168.1.1
        
# dns-* options are implemented by the resolvconf package, if installed
        dns-nameservers 202.106.196.115


׃非法xD重启后无法联|?/span>

ifconfig eth0 192.168.1.xxx netmask 255.255.xxx.0 

route add default gw 192.168.1.1

重启后配|丢失,所以必d重启之前执行Q?br />
apt-get update

apt-get install ifupdown

不能联网是因为非法关机导致ifup脚本丢失







IceWee 2014-01-24 10:50 发表评论
]]>
SVN(Subversion)自动同步备䆾配置http://www.aygfsteel.com/icewee/archive/2014/01/23/409261.htmlIceWeeIceWeeThu, 23 Jan 2014 03:08:00 GMThttp://www.aygfsteel.com/icewee/archive/2014/01/23/409261.htmlhttp://www.aygfsteel.com/icewee/comments/409261.htmlhttp://www.aygfsteel.com/icewee/archive/2014/01/23/409261.html#Feedback0http://www.aygfsteel.com/icewee/comments/commentRss/409261.htmlhttp://www.aygfsteel.com/icewee/services/trackbacks/409261.html备䆾机器Q?92.168.1.2

前提条gQ?br />1、两台机器的|络是连通的
2、两台机器必d时安装了SVN服务?br />
假设Q?br />源机器上需要同步的库名为autoSyncQ访问地址为:svn://192.168.1.1/autoSyncQ对其具备读写权限的账户Qsync/sync

备䆾机器配置Q?br />1、创Z源机器库名相同的I库
# 假设备䆾机器的SVN根目录徏立在 /home/backup/svn/repository?/span>
svnadmin create /home/backup/svn/repository/autoSync

2、配|备份机器上的autoSync
分别修改conf下的svnserve.conf、passwd、authzQ根据实际情况配|,假设创徏了用户sync/syncQ对库autoSync具备d权限Q配|方法略Q配|完成后启动SVN服务

3、创建ƈ修改pre-revprop-change文g
cd /home/backup/svn/repository/autoSync/hooks
cp pre
-revprop-change.tmpl pre-revprop-change
vi pre-revprop-change

文件末?/span>?#8220;exit 1”?/span>改ؓ“exit 0”卛_Q保存退?br />
REPOS="$1"
REV
="$2"
USER
="$3"
PROPNAME
="$4"
ACTION
="$5"

if
[ "$ACTION" = "M" -a "$PROPNAME" = "svn:log" ]; then exit 0; fi

echo
"Changing revision properties other than svn:log is prohibited" >&2
exit
0

增加可执行权?br />
chmod 755 pre-revprop-change

4、初始化
命oQ?br />svnsync init --username 用户?--password 密码 备䆾机器库URL 源机器库URL

说明Q?br />用户名和密码是对源机器SVN库具备读写权限的SVN用户

CZQ?br />
svnsync init --username sync --password sync svn://192.168.1.2/autoSync svn://192.168.1.1/autoSync

5、首ơ同?br />首次同步即ؓ一ơ全备䆾q程Q在此期间请停止客户端段源机器哦一切操作(提交代码{)
命oQ?br />svnsync sync 备䆾机器库URL
CZQ?br />
svnsync sync svn://192.168.1.2/autoSync

源机器配|?br />6、增量自动同步配|?br />创徏q修改post-commit文g
# 假设源机器的SVN根目录徏立在 /home/svn/repository?/span>
cd /home/svn/repository/autoSync/hooks
cp post
-commit.tmpl post-commit
vi post
-commit

在文件末追加:svnsync sync --non-interactive 备䆾机器库URL --username 用户?--password 密码

说明Q?br />用户名和密码是对备䆾机器SVN库具备读写权限的SVN用户

CZQ?br />
svnsync sync --non-interactive svn://192.168.1.2/autoSync --username sync --password sync

7、术?br />配置完成Q今后客L再向SVNQ?92.168.1.1Q提交文件时Q会自动触发源机器(192.168.1.1Q向备䆾机器Q?92.168.1.2Q提交更?br />
8、版本库UUID一致?br />首先查看源机器库的UUIDQ假讑־到的是:fcdcbee9-6be3-4575-8d4a-681ec15ad8e0
svnlook uuid svn://192.168.1.1/autoSync

更新备䆾机器库的UUID为源机器库的UUID
svnadmin setuuid svn://192.168.1.2/autoSync fcdcbee9-6be3-4575-8d4a-681ec15ad8e0






IceWee 2014-01-23 11:08 发表评论
]]>
Debian Subversion(SVN)的安?/title><link>http://www.aygfsteel.com/icewee/archive/2014/01/17/409059.html</link><dc:creator>IceWee</dc:creator><author>IceWee</author><pubDate>Fri, 17 Jan 2014 07:48:00 GMT</pubDate><guid>http://www.aygfsteel.com/icewee/archive/2014/01/17/409059.html</guid><wfw:comment>http://www.aygfsteel.com/icewee/comments/409059.html</wfw:comment><comments>http://www.aygfsteel.com/icewee/archive/2014/01/17/409059.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/icewee/comments/commentRss/409059.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/icewee/services/trackbacks/409059.html</trackback:ping><description><![CDATA[<span style="font-size: 12pt;"> </span><span style="font-size: 12pt;"> </span><span style="font-size: 12pt;"> 本文记录的安装步骤是Z基本安装后的DebianQ启动后漆黑一片,只有命o行,采用在线安装方式Q因此配|中国的镜像软g源能提高软g的下载速度Q首先配|Y件源?/span><br /><br /><span style="color: red; font-size: 12pt;">备䆾源文?/span><br /><span style="font-size: 12pt;"># </span><span style='color: rgb(51, 51, 51); font-family: "Tahoma","sans-serif"; font-size: 12pt; mso-fareast-font-family: 宋体; mso-font-kerning: 0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA;' lang="EN-US">cp /etc/apt/sources.list /etc/apt/sources.list.bak<br /></span><br /><span style="font-size: 12pt;">~辑源文?/span><br /><span style="font-size: 12pt;"># </span><span style='color: rgb(51, 51, 51); font-family: "Tahoma","sans-serif"; font-size: 12pt;'>nano /etc/apt/sources.list<br /></span><br /><span style="font-size: 12pt;">注释掉本地光盘源q一行,注释后如Q?/span><br /><span style="font-size: 12pt;"># deb cdrom:[Debian GNU/Linux 6.0.7 _Squeeze_ - Official amd64 NETINST Binary-1 20130223-18:50]/ squeeze main</span><br /><br /><span style="font-size: 12pt;">取消下面两行官方源前面的注释</span><br /><span style="font-size: 12pt;">deb </span><a ><span style="font-size: 12pt;">http://security.debian.org/</span></a><span style="font-size: 12pt;"> squeeze/updates main</span><br /><span style="font-size: 12pt;">deb-src </span><a ><span style="font-size: 12pt;">http://security.debian.org/</span></a><span style="font-size: 12pt;"> squeeze/updates main</span><br /><br /><span style="font-size: 12pt;">q加163的镜像源地址</span><br /><span style="font-size: 12pt;">deb </span><a ><span style="font-size: 12pt;">http://mirrors.163.com/debian/</span></a><span style="font-size: 12pt;"> squeeze main non-free contrib </span><br /><span style="font-size: 12pt;">deb </span><a ><span style="font-size: 12pt;">http://mirrors.163.com/debian/</span></a><span style="font-size: 12pt;"> squeeze-proposed-updates main contrib non-free </span><br /><span style="font-size: 12pt;">deb </span><a ><span style="font-size: 12pt;">http://mirrors.163.com/debian-security/</span></a><span style="font-size: 12pt;"> squeeze/updates main contrib non-free </span><br /><span style="font-size: 12pt;">deb-src </span><a ><span style="font-size: 12pt;">http://mirrors.163.com/debian/</span></a><span style="font-size: 12pt;"> squeeze main non-free contrib </span><br /><span style="font-size: 12pt;">deb-src </span><a ><span style="font-size: 12pt;">http://mirrors.163.com/debian/</span></a><span style="font-size: 12pt;"> squeeze-proposed-updates main contrib non-free </span><br /><span style="font-size: 12pt;">deb-src </span><a ><span style="font-size: 12pt;">http://mirrors.163.com/debian-security/</span></a><span style="font-size: 12pt;"> squeeze/updates main contrib non-free </span><br /><span style="font-size: 12pt;">deb </span><a ><span style="font-size: 12pt;">http://ftp.sjtu.edu.cn/debian/</span></a><span style="font-size: 12pt;"> squeeze main non-free contrib </span><br /><span style="font-size: 12pt;">deb </span><a ><span style="font-size: 12pt;">http://ftp.sjtu.edu.cn/debian/</span></a><span style="font-size: 12pt;"> squeeze-proposed-updates main contrib non-free </span><br /><span style="font-size: 12pt;">deb </span><a ><span style="font-size: 12pt;">http://ftp.sjtu.edu.cn/debian-security/</span></a><span style="font-size: 12pt;"> squeeze/updates main contrib non-free </span><br /><span style="font-size: 12pt;">deb-src </span><a ><span style="font-size: 12pt;">http://ftp.sjtu.edu.cn/debian/</span></a><span style="font-size: 12pt;"> squeeze main non-free contrib </span><br /><span style="font-size: 12pt;">deb-src </span><a ><span style="font-size: 12pt;">http://ftp.sjtu.edu.cn/debian/</span></a><span style="font-size: 12pt;"> squeeze-proposed-updates main contrib non-free </span><br /><span style="font-size: 12pt;">deb-src </span><a ><span style="font-size: 12pt;">http://ftp.sjtu.edu.cn/debian-security/</span></a><span style="font-size: 12pt;"> squeeze/updates main contrib non-free</span><br /><br /><span style="font-size: 12pt;">保存修改</span><br /><span style="font-size: 12pt;"># ctrl + o 回R</span><br /><span style="font-size: 12pt;">退?/span><br /><span style="font-size: 12pt;"># ctrl + x</span><br /><br /><span style="font-size: 12pt;">更新?/span><br /><span style="font-size: 12pt;"># apt-get update</span><br /><br /><span style="font-size: 12pt;">更新pȝ</span><br /><span style="font-size: 12pt;"># apt-get upgrade</span><br /><br /><span style="font-size: 12pt;"><strong>安装SVN服务?/strong></span><br /><span style="font-size: 12pt;"># apt-get install subversion subversion-tools</span><br /><br /><span style="font-size: 12pt;">安装完成后可以运行命令查看SVN服务器版本信?/span><br /><span style="font-size: 12pt;"># svnserve --version</span><br /><br /><span style="font-size: 12pt;"><strong>配置SVN</strong></span><br /><span style="font-size: 12pt;">首先创徏版本库的根目录,如位|:/home/svn/repositoryQ所有项目都在该目录下创徏相应子文件夹</span><br /><span style="font-size: 12pt;"># mkdir –p /home/svn/repository</span><br /><br /><span style="font-size: 12pt;">创徏目版本库testQ仅为演C)</span><br /><span style="font-size: 12pt;"># svnadmin create /home/svn/repository/test</span><p><br /><span style="font-size: 12pt;">修改SVN配置文g</span><br /><span style="font-size: 12pt;">nano /home/svn/repository/test/conf/svnserve.conf</span></p><p><span style="font-size: 12pt;">以下为文件内容:</span><br /><span style="font-size: 12pt;">### This file controls the configuration of the svnserve daemon, if you</span><br /><span style="font-size: 12pt;">### use it to allow access to this repository.  (If you only allow</span><br /><span style="font-size: 12pt;">### access through http: and/or file: URLs, then this file is</span><br /><span style="font-size: 12pt;">### irrelevant.)</span></p><p><span style="font-size: 12pt;">### Visit </span><a ><span style="font-size: 12pt;">http://subversion.tigris.org/</span></a><span style="font-size: 12pt;"> for more information.</span></p><p><span style="font-size: 12pt;">[general]</span><br /><span style="font-size: 12pt;">### These options control access to the repository for unauthenticated</span><br /><span style="font-size: 12pt;">### and authenticated users.  Valid values are "write", "read",</span><br /><span style="font-size: 12pt;">### and "none".  The sample settings below are the defaults</span><br /><span style="font-size: 12pt;"># 未授权配|ؓ止讉KnoneQ已授权配置为可以读写write</span><br /><span style="color: red; font-size: 12pt;">anon-access = none</span><br /><span style="color: red; font-size: 12pt;">auth-access = write</span><br /><span style="font-size: 12pt;">### The password-db option controls the location of the password</span><br /><span style="font-size: 12pt;">### database file.  Unless you specify a path starting with a /,</span><br /><span style="font-size: 12pt;">### the file's location is relative to the directory containing</span><br /><span style="font-size: 12pt;">### this configuration file.</span><br /><span style="font-size: 12pt;">### If SASL is enabled (see below), this file will NOT be used.</span><br /><span style="font-size: 12pt;">### Uncomment the line below to use the default password file.</span><br /><span style="font-size: 12pt;"># 用户数据库文Ӟ配置授权用户Q当前用的文g是和svnserve.conf在相同目录下的passwd文gQ也可以指定其他l对路径文gQ如Q?home/svn/passwd</span><br /><span style="color: red; font-size: 12pt;">password-db = passwd</span><br /><span style="font-size: 12pt;">### The authz-db option controls the location of the authorization</span><br /><span style="font-size: 12pt;">### rules for path-based access control.  Unless you specify a path</span><br /><span style="font-size: 12pt;">### starting with a /, the file's location is relative to the the</span><br /><span style="font-size: 12pt;">### directory containing this file.  If you don't specify an</span><br /><span style="font-size: 12pt;">### authz-db, no path-based access control is done.</span><br /><span style="font-size: 12pt;">### Uncomment the line below to use the default authorization file.</span><br /><span style="font-size: 12pt;"># 授权文gQ配|如同用户配|?/span><br /><span style="color: red; font-size: 12pt;">authz-db = authz</span><br /><span style="font-size: 12pt;">### This option specifies the authentication realm of the repository.</span><br /><span style="font-size: 12pt;">### If two repositories have the same authentication realm, they should</span><br /><span style="font-size: 12pt;">### have the same password database, and vice versa.  The default realm</span><br /><span style="font-size: 12pt;">### is repository's uuid.</span><br /><span style="font-size: 12pt;"># realm = My First Repository</span></p><p><span style="font-size: 12pt;">[sasl]</span><br /><span style="font-size: 12pt;">### This option specifies whether you want to use the Cyrus SASL</span><br /><span style="font-size: 12pt;">### library for authentication. Default is false.</span><br /><span style="font-size: 12pt;">### This section will be ignored if svnserve is not built with Cyrus</span><br /><span style="font-size: 12pt;">### SASL support; to check, run 'svnserve --version' and look for a line</span><br /><span style="font-size: 12pt;">### reading 'Cyrus SASL authentication is available.'</span><br /><span style="font-size: 12pt;"># use-sasl = true</span><br /><span style="font-size: 12pt;">### These options specify the desired strength of the security layer</span><br /><span style="font-size: 12pt;">### that you want SASL to provide. 0 means no encryption, 1 means</span><br /><span style="font-size: 12pt;">### integrity-checking only, values larger than 1 are correlated</span><br /><span style="font-size: 12pt;">### to the effective key length for encryption (e.g. 128 means 128-bit</span><br /><span style="font-size: 12pt;">### encryption). The values below are the defaults.</span><br /><span style="font-size: 12pt;"># min-encryption = 0</span><br /><span style="font-size: 12pt;"># max-encryption = 256</span></p><p><br /><span style="font-size: 12pt;">保存</span><br /><span style="font-size: 12pt;"># ctrl + o 回R</span></p><p><span style="font-size: 12pt;">退?/span><br /><span style="font-size: 12pt;"># ctrl + x</span><br /></p><p><span style="font-size: 12pt;">配置用户</span><br /><span style="font-size: 12pt;"># nano passwd</span></p><p><span style="font-size: 12pt;">以下为文件内容:</span><br /><span style="font-size: 12pt;">### This file is an example password file for svnserve.</span><br /><span style="font-size: 12pt;">### Its format is similar to that of svnserve.conf. As shown in the</span><br /><span style="font-size: 12pt;">### example below it contains one section labelled [users].</span><br /><span style="font-size: 12pt;">### The name and password for each user follow, one account per line.</span></p><p><span style="font-size: 12pt;">[users]</span><br /><span style="font-size: 12pt;"># harry = harryssecret</span><br /><span style="font-size: 12pt;"># sally = sallyssecret</span><br /><span style="font-size: 12pt;">IceWee = IceWee</span></p><p><span style="font-size: 12pt;">增加用户IceWeeQ密码也为IceWeeQ?号两侧需要有I格Q保?ctrl + o 回R)退?ctrl + x)</span><br /></p><p><span style="font-size: 12pt;">配置讉K权限</span><br /><span style="font-size: 12pt;"># nano authz</span></p><p><span style="font-size: 12pt;">以下为文件内容:</span><br /><span style="font-size: 12pt;">### This file is an example authorization file for svnserve.</span><br /><span style="font-size: 12pt;">### Its format is identical to that of mod_authz_svn authorization</span><br /><span style="font-size: 12pt;">### files.</span><br /><span style="font-size: 12pt;">### As shown below each section defines authorizations for the path and</span><br /><span style="font-size: 12pt;">### (optional) repository specified by the section name.</span><br /><span style="font-size: 12pt;">### The authorizations follow. An authorization line can refer to:</span><br /><span style="font-size: 12pt;">###  - a single user,</span><br /><span style="font-size: 12pt;">###  - a group of users defined in a special [groups] section,</span><br /><span style="font-size: 12pt;">###  - an alias defined in a special [aliases] section,</span><br /><span style="font-size: 12pt;">###  - all authenticated users, using the '$authenticated' token,</span><br /><span style="font-size: 12pt;">###  - only anonymous users, using the '$anonymous' token,</span><br /><span style="font-size: 12pt;">###  - anyone, using the '*' wildcard.</span><br /><span style="font-size: 12pt;">###</span><br /><span style="font-size: 12pt;">### A match can be inverted by prefixing the rule with '~'. Rules can</span><br /><span style="font-size: 12pt;">### grant read ('r') access, read-write ('rw') access, or no access</span><br /><span style="font-size: 12pt;">### ('').</span></p><p><span style="font-size: 12pt;">[aliases]</span><br /><span style="font-size: 12pt;"># joe = /C=XZ/ST=Dessert/L=Snake City/O=Snake Oil, Ltd./OU=Research Institute/CN=Joe Average</span></p><p><span style="font-size: 12pt;">[groups]</span><br /><span style="font-size: 12pt;"># harry_and_sally = harry,sally</span><br /><span style="font-size: 12pt;"># harry_sally_and_joe = harry,sally,&joe</span><br /><span style="color: red; font-size: 12pt;">developers = IceWee</span></p><p><span style="font-size: 12pt;"># [/foo/bar]</span><br /><span style="font-size: 12pt;"># harry = rw</span><br /><span style="font-size: 12pt;"># &joe = r</span><br /><span style="font-size: 12pt;"># * =</span></p><p><span style="font-size: 12pt;"># [repository:/baz/fuz]</span><br /><span style="font-size: 12pt;"># @harry</span><span style="font-size: 12pt;">_a</span><span style="font-size: 12pt;">nd_sally = rw</span><br /><span style="font-size: 12pt;"># * = r</span></p><p><span style="color: red; font-size: 12pt;">[/]</span><br /><span style="color: red; font-size: 12pt;">* = r</span><br /><span style="color: red; font-size: 12pt;">IceWee = rw<br /></span><span style="color: red; font-size: 12pt;">@developers = rw</span></p><p><span style="color: red; font-size: 12pt;">[/tags]</span><br /><span style="color: red; font-size: 12pt;">IceWee = rw</span></p><p><span style="font-size: 12pt;">默认所有用户可d根,IceWee可以d栏V可以分别对子目录进行授权,如上的tags目录QIceWeehd权限Q以及IceWee所在的ldevelopers也具备读写权限?/span><br /><br /><span style="font-size: 12pt;">启动SVN服务?/span><br /><span style="font-size: 12pt;"># svnserve -d -r /home/svn/repository</span><br /><span style="font-size: 12pt;">-d含义为后台运行(daemonQ,-r指定的根目录Q如讉Ktest应该使用q样的地址 </span><a href="svn"><span style="font-size: 12pt;">svn</span></a><span style="font-size: 12pt;">://hostname:port/test</span><br /><br /><span style="font-size: 12pt;">停止SVN服务</span><br /><span style="font-size: 12pt;"># killall svnserve</span><br /><br /><span style="font-size: 12pt;">备䆾q原命oQ与oracle的备份有些类?/span><br /><span style="font-size: 12pt;">导出</span><br /><span style="font-size: 12pt;"># svnadmin dump /home/svn/repository/test > /home/bak/test.dump</span><br /><br /><span style="font-size: 12pt;">导入</span><br /><span style="font-size: 12pt;"># svn</span><span style="font-size: 12pt;">admin load /home/svn/repository/demo < /home/bak/demo.dump</span><br /><span style="font-size: 12pt;">导入前提Q?/span><br /><span style="font-size: 12pt;">必须先创导入版本库目录,如上的demoQ则需要做以下操作</span><br /><span style="font-size: 12pt;"># svnadmin create /home/svn/respository/demo</span><br /><span style="font-size: 12pt;">修改svnserve.conf、passwd、authz{文Ӟ前面已介l?/span><br /></p><p><br /> </p><br /><br /><br /><br /> <img src ="http://www.aygfsteel.com/icewee/aggbug/409059.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/icewee/" target="_blank">IceWee</a> 2014-01-17 15:48 <a href="http://www.aygfsteel.com/icewee/archive/2014/01/17/409059.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Java日常随意?/title><link>http://www.aygfsteel.com/icewee/archive/2013/11/21/406622.html</link><dc:creator>IceWee</dc:creator><author>IceWee</author><pubDate>Thu, 21 Nov 2013 04:49:00 GMT</pubDate><guid>http://www.aygfsteel.com/icewee/archive/2013/11/21/406622.html</guid><wfw:comment>http://www.aygfsteel.com/icewee/comments/406622.html</wfw:comment><comments>http://www.aygfsteel.com/icewee/archive/2013/11/21/406622.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/icewee/comments/commentRss/406622.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/icewee/services/trackbacks/406622.html</trackback:ping><description><![CDATA[ <div style="font-family: Tahoma; font-size: 14pt;"><span style="font-family: Tahoma; font-size: 12pt;"><br />2013q?2?0?br />---------------------------<br />冒排序<br /><div style="padding: 4px 5px 4px 4px; border: 1px solid rgb(204, 204, 204); width: 98%; font-size: 13px; word-break: break-all; background-color: rgb(238, 238, 238);"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><img id="Codehighlighter1_25_325_Open_Image" onclick="this.style.display='none'; Codehighlighter1_25_325_Open_Text.style.display='none'; Codehighlighter1_25_325_Closed_Image.style.display='inline'; Codehighlighter1_25_325_Closed_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/Images/OutliningIndicators/ExpandedBlockStart.gif"><img style="display: none;" id="Codehighlighter1_25_325_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_25_325_Closed_Text.style.display='none'; Codehighlighter1_25_325_Open_Image.style.display='inline'; Codehighlighter1_25_325_Open_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/Images/OutliningIndicators/ContractedBlock.gif"><span style="color: rgb(0, 0, 255);">void</span><span style="color: rgb(0, 0, 0);"> bubble(</span><span style="color: rgb(0, 0, 255);">int</span><span style="color: rgb(0, 0, 0);">[] array) </span><span style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);" id="Codehighlighter1_25_325_Closed_Text"><img alt="" src="http://www.aygfsteel.com/Images/dot.gif" /></span><span id="Codehighlighter1_25_325_Open_Text"><span style="color: rgb(0, 0, 0);">{<br /><img alt="" align="top" src="http://www.aygfsteel.com/Images/OutliningIndicators/InBlock.gif" />        </span><span style="color: rgb(0, 0, 255);">boolean</span><span style="color: rgb(0, 0, 0);"> swaped </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">true</span><span style="color: rgb(0, 0, 0);">;<br /><img id="Codehighlighter1_103_322_Open_Image" onclick="this.style.display='none'; Codehighlighter1_103_322_Open_Text.style.display='none'; Codehighlighter1_103_322_Closed_Image.style.display='inline'; Codehighlighter1_103_322_Closed_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="display: none;" id="Codehighlighter1_103_322_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_103_322_Closed_Text.style.display='none'; Codehighlighter1_103_322_Open_Image.style.display='inline'; Codehighlighter1_103_322_Open_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/Images/OutliningIndicators/ContractedSubBlock.gif">        </span><span style="color: rgb(0, 0, 255);">for</span><span style="color: rgb(0, 0, 0);"> (</span><span style="color: rgb(0, 0, 255);">int</span><span style="color: rgb(0, 0, 0);"> t </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);">; t </span><span style="color: rgb(0, 0, 0);"><</span><span style="color: rgb(0, 0, 0);"> array.length </span><span style="color: rgb(0, 0, 0);">&&</span><span style="color: rgb(0, 0, 0);"> swaped; t</span><span style="color: rgb(0, 0, 0);">++</span><span style="color: rgb(0, 0, 0);">) </span><span style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);" id="Codehighlighter1_103_322_Closed_Text"><img alt="" src="http://www.aygfsteel.com/Images/dot.gif" /></span><span id="Codehighlighter1_103_322_Open_Text"><span style="color: rgb(0, 0, 0);">{<br /><img alt="" align="top" src="http://www.aygfsteel.com/Images/OutliningIndicators/InBlock.gif" />            swaped </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">false</span><span style="color: rgb(0, 0, 0);">;<br /><img id="Codehighlighter1_170_318_Open_Image" onclick="this.style.display='none'; Codehighlighter1_170_318_Open_Text.style.display='none'; Codehighlighter1_170_318_Closed_Image.style.display='inline'; Codehighlighter1_170_318_Closed_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="display: none;" id="Codehighlighter1_170_318_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_170_318_Closed_Text.style.display='none'; Codehighlighter1_170_318_Open_Image.style.display='inline'; Codehighlighter1_170_318_Open_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/Images/OutliningIndicators/ContractedSubBlock.gif">            </span><span style="color: rgb(0, 0, 255);">for</span><span style="color: rgb(0, 0, 0);"> (</span><span style="color: rgb(0, 0, 255);">int</span><span style="color: rgb(0, 0, 0);"> i </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">0</span><span style="color: rgb(0, 0, 0);">; i </span><span style="color: rgb(0, 0, 0);"><</span><span style="color: rgb(0, 0, 0);"> array.length </span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);"> t; i</span><span style="color: rgb(0, 0, 0);">++</span><span style="color: rgb(0, 0, 0);">) </span><span style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);" id="Codehighlighter1_170_318_Closed_Text"><img alt="" src="http://www.aygfsteel.com/Images/dot.gif" /></span><span id="Codehighlighter1_170_318_Open_Text"><span style="color: rgb(0, 0, 0);">{<br /><img id="Codehighlighter1_205_313_Open_Image" onclick="this.style.display='none'; Codehighlighter1_205_313_Open_Text.style.display='none'; Codehighlighter1_205_313_Closed_Image.style.display='inline'; Codehighlighter1_205_313_Closed_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="display: none;" id="Codehighlighter1_205_313_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_205_313_Closed_Text.style.display='none'; Codehighlighter1_205_313_Open_Image.style.display='inline'; Codehighlighter1_205_313_Open_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/Images/OutliningIndicators/ContractedSubBlock.gif">                </span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);"> (array[i] </span><span style="color: rgb(0, 0, 0);">></span><span style="color: rgb(0, 0, 0);"> array[i </span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);">]) </span><span style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);" id="Codehighlighter1_205_313_Closed_Text"><img alt="" src="http://www.aygfsteel.com/Images/dot.gif" /></span><span id="Codehighlighter1_205_313_Open_Text"><span style="color: rgb(0, 0, 0);">{<br /><img alt="" align="top" src="http://www.aygfsteel.com/Images/OutliningIndicators/InBlock.gif" />                    </span><span style="color: rgb(0, 0, 255);">int</span><span style="color: rgb(0, 0, 0);"> temp </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> array[i];<br /><img alt="" align="top" src="http://www.aygfsteel.com/Images/OutliningIndicators/InBlock.gif" />                    array[i] </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> array[i </span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);">];<br /><img alt="" align="top" src="http://www.aygfsteel.com/Images/OutliningIndicators/InBlock.gif" />                    array[i </span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);">] </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> temp;<br /><img alt="" align="top" src="http://www.aygfsteel.com/Images/OutliningIndicators/InBlock.gif" />                    swaped </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">true</span><span style="color: rgb(0, 0, 0);">;<br /><img alt="" align="top" src="http://www.aygfsteel.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" />                }</span></span><span style="color: rgb(0, 0, 0);"><br /><img alt="" align="top" src="http://www.aygfsteel.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" />            }</span></span><span style="color: rgb(0, 0, 0);"><br /><img alt="" align="top" src="http://www.aygfsteel.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" />        }</span></span><span style="color: rgb(0, 0, 0);"><br /><img alt="" align="top" src="http://www.aygfsteel.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" />    }</span></span></div><br /><br />2013q?1?6?br />---------------------------<br />1、String的splitҎ<br />q_Lq样用,String str = "a,b,c,d,e"; String[] arr = str.split(",");<br />其实q可以这LQString lan = "Java;C#?C++:C"; String si = lan.split("[;?:]"); q回的是字符串数l{"Java", "C#", "C++", "C"}<br /><br /><br />2013q?1?1?br />---------------------------<br /></span><br /><span style="font-family: Tahoma; font-size: 12pt;">1、Java对象池知多少Q?br />CZQString s1 = "abc"; String s2 = "abc"; s1 == s2 q回tureq是falseQ只要不是new出来的都先从对象池中dQ因此结果ؓtrueQ两个变量指向的是同一块内存空间地址?br /><br />Java除了StringcM用了对象池以外,q有5个基本类型的装c:Byte、Short、Integer、Long和CharacterQ例如:Integer inA = 20; Integer inB = 20; 那么 inA == inB 的结果ؓtrueQ其他类与此相同Q不做示例?br /><br /><strong>特别注意Q?/strong><br />(1)点型的两个装cFloat和Doubleq没有参与对象池Q?br />(2)整Ş装c?Byte、Short、Integer和Long)只有数值小于或{于127时才使用对象池,例如QInteger x = 128; Integer y = 128; x == y的结果ؓfalse?br /></span><br /><span style="font-family: Tahoma; font-size: 12pt;">2、Java变量命名规范<br />A. String #name = "Joe";<br />B. int $age = 30;<br />C. Double _height = 174.4;<br />D. float ~temp = 37.6;<br />以上A到DQ哪个无法通过~译Q答案是A和DQ因为Java变量名只允许字母、下划线(_)、美元符($)开_那么 int _ = 30; String $$ = "I DO";可以吗?{案是完全可以,但很有样定义变量名Q虽然没有违法命名规范,但最后我估计E序员自己都会被自己l晕?br /><br />3??能标识布值吗Q?br />int flag = 0;<br />if (flag) {<br />    System.out.print("error");<br />}<br />error会打印吗Q不会,因ؓҎ׃会编译通过Q编译器会提Cflag是intcd而不是booleancdQ如果你会有q种x可能之前学过CQCȝ0?可以标识布尔的?br /><br />4、静态导?br />例:<br />ClassA.java<br /><div style="padding: 4px 5px 4px 4px; border: 1px solid rgb(204, 204, 204); width: 98%; font-size: 13px; word-break: break-all; background-color: rgb(238, 238, 238);"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><img alt="" align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" /><span style="color: rgb(0, 0, 255);">package</span><span style="color: rgb(0, 0, 0);"> bing.test.sub1;<br /><img alt="" align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" /><br /><img id="Codehighlighter1_45_102_Open_Image" onclick="this.style.display='none'; Codehighlighter1_45_102_Open_Text.style.display='none'; Codehighlighter1_45_102_Closed_Image.style.display='inline'; Codehighlighter1_45_102_Closed_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockStart.gif"><img style="display: none;" id="Codehighlighter1_45_102_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_45_102_Closed_Text.style.display='none'; Codehighlighter1_45_102_Open_Image.style.display='inline'; Codehighlighter1_45_102_Open_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedBlock.gif"></span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">class</span><span style="color: rgb(0, 0, 0);"> ClassA </span><span style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);" id="Codehighlighter1_45_102_Closed_Text"><img alt="" src="http://www.aygfsteel.com/Images/dot.gif" /></span><span id="Codehighlighter1_45_102_Open_Text"><span style="color: rgb(0, 0, 0);">{<br /><img alt="" align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" />  </span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">static</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">final</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">int</span><span style="color: rgb(0, 0, 0);"> MAX_INT </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> Integer.MAX_VALUE;<br /><img alt="" align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockEnd.gif" />}</span></span></div><br /><br /><br />ClassB.java<br /><div style="padding: 4px 5px 4px 4px; border: 1px solid rgb(204, 204, 204); width: 98%; font-size: 13px; word-break: break-all; background-color: rgb(238, 238, 238);"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><img alt="" align="top" src="http://www.aygfsteel.com/Images/OutliningIndicators/None.gif" /><span style="color: rgb(0, 0, 255);">package</span><span style="color: rgb(0, 0, 0);"> bing.test.sub2;<br /><img alt="" align="top" src="http://www.aygfsteel.com/Images/OutliningIndicators/None.gif" /><br /><img alt="" align="top" src="http://www.aygfsteel.com/Images/OutliningIndicators/None.gif" /></span><span style="color: rgb(0, 0, 255);">import</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">static</span><span style="color: rgb(0, 0, 0);"> bing.test.sub1.ClassA.MAX_INT;<br /><img alt="" align="top" src="http://www.aygfsteel.com/Images/OutliningIndicators/None.gif" /><br /><img id="Codehighlighter1_91_173_Open_Image" onclick="this.style.display='none'; Codehighlighter1_91_173_Open_Text.style.display='none'; Codehighlighter1_91_173_Closed_Image.style.display='inline'; Codehighlighter1_91_173_Closed_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/Images/OutliningIndicators/ExpandedBlockStart.gif"><img style="display: none;" id="Codehighlighter1_91_173_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_91_173_Closed_Text.style.display='none'; Codehighlighter1_91_173_Open_Image.style.display='inline'; Codehighlighter1_91_173_Open_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/Images/OutliningIndicators/ContractedBlock.gif"></span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">class</span><span style="color: rgb(0, 0, 0);"> ClassB </span><span style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);" id="Codehighlighter1_91_173_Closed_Text"><img alt="" src="http://www.aygfsteel.com/Images/dot.gif" /></span><span id="Codehighlighter1_91_173_Open_Text"><span style="color: rgb(0, 0, 0);">{<br /><img id="Codehighlighter1_134_171_Open_Image" onclick="this.style.display='none'; Codehighlighter1_134_171_Open_Text.style.display='none'; Codehighlighter1_134_171_Closed_Image.style.display='inline'; Codehighlighter1_134_171_Closed_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="display: none;" id="Codehighlighter1_134_171_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_134_171_Closed_Text.style.display='none'; Codehighlighter1_134_171_Open_Image.style.display='inline'; Codehighlighter1_134_171_Open_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/Images/OutliningIndicators/ContractedSubBlock.gif">  </span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">static</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">void</span><span style="color: rgb(0, 0, 0);"> main(String[] args) </span><span style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);" id="Codehighlighter1_134_171_Closed_Text"><img alt="" src="http://www.aygfsteel.com/Images/dot.gif" /></span><span id="Codehighlighter1_134_171_Open_Text"><span style="color: rgb(0, 0, 0);">{<br /><img alt="" align="top" src="http://www.aygfsteel.com/Images/OutliningIndicators/InBlock.gif" /> System.out.println(MAX_INT);<br /><img alt="" align="top" src="http://www.aygfsteel.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" />  }</span></span><span style="color: rgb(0, 0, 0);"><br /><img alt="" align="top" src="http://www.aygfsteel.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" />}</span></span></div><br />输出Q?147483647。不仅仅可以静态导入其他类的静态属性还可以导入静态方法,q些Ҏ在实际开发中很少见?br /><br /><br /><br /><br /><br /><br /><br /></span><br /><br /></div> <img src ="http://www.aygfsteel.com/icewee/aggbug/406622.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/icewee/" target="_blank">IceWee</a> 2013-11-21 12:49 <a href="http://www.aygfsteel.com/icewee/archive/2013/11/21/406622.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>FTPClient上传文g蜗牛速度的解x?/title><link>http://www.aygfsteel.com/icewee/archive/2013/09/13/404052.html</link><dc:creator>IceWee</dc:creator><author>IceWee</author><pubDate>Fri, 13 Sep 2013 08:32:00 GMT</pubDate><guid>http://www.aygfsteel.com/icewee/archive/2013/09/13/404052.html</guid><wfw:comment>http://www.aygfsteel.com/icewee/comments/404052.html</wfw:comment><comments>http://www.aygfsteel.com/icewee/archive/2013/09/13/404052.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/icewee/comments/commentRss/404052.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/icewee/services/trackbacks/404052.html</trackback:ping><description><![CDATA[Apache Commons的FTPClient局域网上传文g速度本应该很快的Q但却在实际开发中发现上传一个文件蜗牛速度Q都是因用了如下APIQ?br /><br /><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />-->ftpClient.storeFile(fileName, inputStream)</div><br />原因是因为默认缓冲区大小?024Q也是1KQ当然慢了,在调用上传API之前重新修改以下默认讄卛_Q如缓冲区改ؓ10MQAPIQ?br /><br /><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />-->ftpClient.setBufferSize(1024 * 1024 * 10)</div><img src ="http://www.aygfsteel.com/icewee/aggbug/404052.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/icewee/" target="_blank">IceWee</a> 2013-09-13 16:32 <a href="http://www.aygfsteel.com/icewee/archive/2013/09/13/404052.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Oracle查询锁表以及杀会话或系l进E来解除锁表操作http://www.aygfsteel.com/icewee/archive/2013/08/23/403218.htmlIceWeeIceWeeFri, 23 Aug 2013 02:20:00 GMThttp://www.aygfsteel.com/icewee/archive/2013/08/23/403218.htmlhttp://www.aygfsteel.com/icewee/comments/403218.htmlhttp://www.aygfsteel.com/icewee/archive/2013/08/23/403218.html#Feedback0http://www.aygfsteel.com/icewee/comments/commentRss/403218.htmlhttp://www.aygfsteel.com/icewee/services/trackbacks/403218.html
--查询被锁住的数据库对?/span>
select object_name, machine, s.sid, s.serial#
 
from v$locked_object l, dba_objects o, v$session s
where l.object_id = o.object_id
  
and l.session_id = s.sid;


W二步,杀L据库会话
--杀L据库会话
alter system kill session '207,707'; -- 207为SID, 707为SERIAL#


W三步,如果W二步无法杀M话,报ORA-00031Q那么只能杀死UNIX/LINUXpȝq程?br />
--查询当前操作的系l进EID
select spid, osuser, s.program
 
from v$session s, v$process p
where s.paddr = p.addr
  
and s.sid = 207; -- 207为SID


W四步,Ҏ查询到的pȝPIDQ杀掉进E?br />
kill -9 24664 // 24664为UNIX/LINUXpȝq程ID





IceWee 2013-08-23 10:20 发表评论
]]>
HttpClientUtilshttp://www.aygfsteel.com/icewee/archive/2013/07/27/402028.htmlIceWeeIceWeeSat, 27 Jul 2013 03:53:00 GMThttp://www.aygfsteel.com/icewee/archive/2013/07/27/402028.htmlhttp://www.aygfsteel.com/icewee/comments/402028.htmlhttp://www.aygfsteel.com/icewee/archive/2013/07/27/402028.html#Feedback0http://www.aygfsteel.com/icewee/comments/commentRss/402028.htmlhttp://www.aygfsteel.com/icewee/services/trackbacks/402028.htmlimport java.io.BufferedReader;import java.io.IOException;import java.io.InputStream;...  阅读全文

IceWee 2013-07-27 11:53 发表评论
]]>
վ֩ģ壺 | ƽ| Ѿ| ɽ| ֵ| ɽ| ɽ| Ϫ| | ӯ| Ϊ| | | | Ҧ| ƽ| ī| | ¡| | | | ̩| ƺ| ¤| | ɽ| | | | ƽ| ˮ| ̨ɽ| | | | ˮ| żҸ| տ| ɳƺ| |