??xml version="1.0" encoding="utf-8" standalone="yes"?>欧美不卡视频一区发布,正在播放国产精品,在线观看国产高清视频 http://www.aygfsteel.com/Andyluo/category/1765.html<table><tr><td><font color="blue">... ...</font><br>
讨论Eclipse, Java, Linux, Google产品<br>
</td><td> </td><td>
<script type="text/javascript"><!--
google_ad_client = "pub-9685945790422740";
/* 728x90, 创徏?08-11-21 */
google_ad_slot = "5619230960";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></td></tr></table> zh-cn Mon, 01 Mar 2010 22:42:54 GMT Mon, 01 Mar 2010 22:42:54 GMT 60 在AS/400里删除某一个library的步?/title> http://www.aygfsteel.com/Andyluo/archive/2010/02/26/steps-of-delete-library-in-os400-or-as400.html|明 |明 Fri, 26 Feb 2010 08:50:00 GMT http://www.aygfsteel.com/Andyluo/archive/2010/02/26/steps-of-delete-library-in-os400-or-as400.html http://www.aygfsteel.com/Andyluo/comments/314017.html http://www.aygfsteel.com/Andyluo/archive/2010/02/26/steps-of-delete-library-in-os400-or-as400.html#Feedback 0 http://www.aygfsteel.com/Andyluo/comments/commentRss/314017.html http://www.aygfsteel.com/Andyluo/services/trackbacks/314017.html
Example: The steps to delete QSAMPLE library
××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××
1# Use the Work with System Value (WRKSYSVAL) command to remove QSAMPLE from the system value(QUSERLIBL or QSYSLIBL) it is contained in. (The changed system value does not affect the library list of any jobs running.)
1. Enter WRKSYSVAL QUSRLIBL at the i5/OS command line.
2. Press Enter and select option number 2.
3. Remove the QSAMPLE library from the list.
2# Use the Remove Library List Entry (RMVLIBLE) command to remove QSAMPLE from the job's library list.
1. Enter RMVLIBLE QSAMPLE at the i5/OS command line.
3# Use the Work with Object Lock (WRKOBJLCK) command to remove locks on QSAMPLE library if any.
1. Enter WRKOBJLCK OBJ(QSYS/QSAMPLE) OBJTYPE(*LIB) at the i5/OS command line.
2. Remove object locks on QSAMPLE library.
4# Use the Delete Library (DLTLIB) command to delete the library and the objects in the library.
1. Enter DLTLIB QSAMPLE at the i5/OS command line.
××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××
The information are mainly refered from IBM infocenter for iSeries.
]]>Python~程谜题-5 http://www.aygfsteel.com/Andyluo/archive/2008/05/22/python-Puzzle-5.html|明 |明 Thu, 22 May 2008 09:45:00 GMT http://www.aygfsteel.com/Andyluo/archive/2008/05/22/python-Puzzle-5.html http://www.aygfsteel.com/Andyluo/comments/202227.html http://www.aygfsteel.com/Andyluo/archive/2008/05/22/python-Puzzle-5.html#Feedback 16 http://www.aygfsteel.com/Andyluo/comments/commentRss/202227.html http://www.aygfsteel.com/Andyluo/services/trackbacks/202227.html 应用python的pickle模块从序列化文g中构造对象,Ҏ(gu)对象的构造解开谜题
详细描述 :
http://www.pythonchallenge.com/pc/def/peak.html
(peak hellq读发音cMpickleQ谜题就是pickle模块的应用了)
解决Ҏ(gu)代码:
import pprint,pickle,sys
pfile = open( ' banner.p ' )
data = pickle.load(pfile)
for row in data:
for item in row:
for index in range(item[ 1 ]):
sys.stdout.write(item[0])
print ''
pfile.close()
输出的对象构造:
]]>~程谜题-4 http://www.aygfsteel.com/Andyluo/archive/2008/05/09/pythonPuzzle4.html|明 |明 Fri, 09 May 2008 06:32:00 GMT http://www.aygfsteel.com/Andyluo/archive/2008/05/09/pythonPuzzle4.html http://www.aygfsteel.com/Andyluo/comments/199490.html http://www.aygfsteel.com/Andyluo/archive/2008/05/09/pythonPuzzle4.html#Feedback 27 http://www.aygfsteel.com/Andyluo/comments/commentRss/199490.html http://www.aygfsteel.com/Andyluo/services/trackbacks/199490.html
谜题详细描述Qhttp://www.pythonchallenge.com/pc/def/linkedlist.php
Python解决Ҏ(gu)Q?br />
import urllib
nothing = " 12345 "
ii = 1
while ii < 401 :
source = urllib.urlopen( " http://www.pythonchallenge.com "
+ " /pc/def/linkedlist.php?nothing= " + nothing).read()
nothing = filter(str.isdigit, source)
print nothing
if source != " and the next nothing is " + nothing:
print " source is not: and the next nothing is " + nothing
print " source is : " + source
nothing = raw_input( " select which number? " )
print " you set " + nothing + " as nothing "
ii+= 1
]]> ~程谜题-3 http://www.aygfsteel.com/Andyluo/archive/2008/05/08/pythonPuzzle3.html|明 |明 Thu, 08 May 2008 04:50:00 GMT http://www.aygfsteel.com/Andyluo/archive/2008/05/08/pythonPuzzle3.html http://www.aygfsteel.com/Andyluo/comments/199207.html http://www.aygfsteel.com/Andyluo/archive/2008/05/08/pythonPuzzle3.html#Feedback 0 http://www.aygfsteel.com/Andyluo/comments/commentRss/199207.html http://www.aygfsteel.com/Andyluo/services/trackbacks/199207.html
详细描述Q?a >http://www.pythonchallenge.com/pc/def/equality.html
解决Ҏ(gu)Q?br />
PythonQ?br />
>>> import re
>>> re.findall(r'[a-z][A-Z][A-Z][A-Z][a-z][A-Z][A-Z][A-Z][a-z]', text)
]]> ~程谜题 - 2 http://www.aygfsteel.com/Andyluo/archive/2008/05/07/pythonPuzzle2.html|明 |明 Wed, 07 May 2008 08:11:00 GMT http://www.aygfsteel.com/Andyluo/archive/2008/05/07/pythonPuzzle2.html http://www.aygfsteel.com/Andyluo/comments/198994.html http://www.aygfsteel.com/Andyluo/archive/2008/05/07/pythonPuzzle2.html#Feedback 28 http://www.aygfsteel.com/Andyluo/comments/commentRss/198994.html http://www.aygfsteel.com/Andyluo/services/trackbacks/198994.html http://www.pythonchallenge.com/pc/def/ocr.html
从一大堆q中找出可以理解的信息Q字母)
Java解决Ҏ(gu)Q?br />
public class Test {
public static void main(String[] args) throws Exception {
URL url = new URL( " http://www.pythonchallenge.com "
+ " /pc/def/ocr.html " );
BufferedReader reader = new BufferedReader( new
InputStreamReader(url.openStream()));
StringBuffer sb = new StringBuffer();
int i = reader.read();
while (i != - 1 )
{
if ((i >= ( int ) ' A ' && i <= ( int ) ' Z ' )
|| (i >= ( int ) ' a ' && i <= ( int ) ' z ' ))
{
sb.append(( char )i);
}
i = reader.read();
}
reader.close();
String source = sb.toString();
// 面源码中最后一个单词是below
System.out.println(
source.substring(source.indexOf( " below " ) + 5 )
);
}
}
附Python和ShellQ?br />
Python:
>>> text = """
<copy and paste>
"""
>>> import string
>>> for i in text:
if i in string.ascii_letters:
print i,
Shell:
$ curl http://www.pythonchallenge.com/pc/def/ocr.html | grep -o [a-z]
]]> ~程谜题1 http://www.aygfsteel.com/Andyluo/archive/2008/05/06/pythonTrick1.html|明 |明 Tue, 06 May 2008 10:02:00 GMT http://www.aygfsteel.com/Andyluo/archive/2008/05/06/pythonTrick1.html http://www.aygfsteel.com/Andyluo/comments/198768.html http://www.aygfsteel.com/Andyluo/archive/2008/05/06/pythonTrick1.html#Feedback 28 http://www.aygfsteel.com/Andyluo/comments/commentRss/198768.html http://www.aygfsteel.com/Andyluo/services/trackbacks/198768.html http://www.pythonchallenge.com/pc/def/map.html
Java解决Ҏ(gu)Q?
1 public class Test {
2 public static void main(String[] args) {
3 String a = " g fmnc wms bgblr rpylqjyrc gr zw fylb. rfyrq "
+ " ufyr amknsrcpq ypc dmp. bmgle gr gl zw fylb "
+ " gq glcddgagclr ylb rfyr'q ufw rfgq rcvr gq "
+ " qm jmle. sqgle qrpgle.kyicrpylq() gq pcamkkclbcb. "
+ " lmu ynnjw ml rfc spj. ";
4 char [] ac = a.toCharArray();
5 int zi = ( int ) ' z ' ;
6 int ai = ( int ) ' a ' ;
7 for ( int index = 0 ; index < ac.length; index ++ )
8 {
9 int aci = ( int )ac[index];
10 if (aci >= ai && aci <= zi)
11 {
12 int aci2 = ( int )ac[index] + 2 ;
13
14 System.out.print(( char )((aci2 > zi) ? (aci2 % (zi + 1 ) + ai):aci2));
15 }
16 else
17 {
18 System.out.print(( char )aci);
19 }
20 }
21 }
22 }
附上Python和Shell解决Ҏ(gu)Q?br />
Python:
1 >>> import string
2 >>> text = """ g fmnc wms bgblr rpylqjyrc gr zw fylb. rfyrq ufyr
3 amknsrcpq ypc dmp. bmgle gr gl zw fylb gq glcddgagclr ylb rfyr'q
4 ufw rfgq rcvr gq qm jmle. sqgle qrpgle.kyicrpylq() gq pcamkkclbcb.
5 lmu ynnjw ml rfc spj. """
6 >>> table = string.maketrans(
7 string.ascii_lowercase,
8 string.ascii_lowercase[ 2 :] + string.ascii_lowercase[: 2 ])
Shell:
$ tr [a - z] [c - za - b]
]]> 如何入门和学习Oracle http://www.aygfsteel.com/Andyluo/archive/2007/10/24/How-To-Study-Oracle.html|明 |明 Wed, 24 Oct 2007 08:21:00 GMT http://www.aygfsteel.com/Andyluo/archive/2007/10/24/How-To-Study-Oracle.html http://www.aygfsteel.com/Andyluo/comments/155622.html http://www.aygfsteel.com/Andyluo/archive/2007/10/24/How-To-Study-Oracle.html#Feedback 30 http://www.aygfsteel.com/Andyluo/comments/commentRss/155622.html http://www.aygfsteel.com/Andyluo/services/trackbacks/155622.html 刚才有朋友问我推荐几本学习Oracle的书Q我想了惻I以前学习q真没系l的看过书,基本都是目q程中慢慢熟(zhn)?br />
没什么书可推荐的Q所以就l他提了几点^_^Q?br />
1、到|上扄安装的文章,对照着装好Q遇到问题就google错误信息Q解决问题?
2、安装完后做个小目Q做的过E中遇到问题google查资料,解决?
3、做完后x有什么高U功能可以实玎ͼd功能Q改q?q个高功能最好跟分析数据库信息,导出信息报表有关Q这样会用到比较多的oracle特定的sql语句?br />
问:现在安装那个版本Q?0q是9Q?br />
{:9.2的好Q网上资料多Q现在用的也最?br />
不需要看书的Q要买的话,随便找本介绍9.2的小书;
主要是实践,做项目,|上查资料!
]]> OSGi框架规范W???要介l?/title> http://www.aygfsteel.com/Andyluo/archive/2007/06/29/OSGi_Introduction.html|明 |明 Fri, 29 Jun 2007 06:18:00 GMT http://www.aygfsteel.com/Andyluo/archive/2007/06/29/OSGi_Introduction.html http://www.aygfsteel.com/Andyluo/comments/127065.html http://www.aygfsteel.com/Andyluo/archive/2007/06/29/OSGi_Introduction.html#Feedback 29 http://www.aygfsteel.com/Andyluo/comments/commentRss/127065.html http://www.aygfsteel.com/Andyluo/services/trackbacks/127065.html 阅读全文 ]]> JSP标签使用和表单参C文问题的一些snippets http://www.aygfsteel.com/Andyluo/archive/2007/01/09/tag_encoding_snippets.html|明 |明 Tue, 09 Jan 2007 13:28:00 GMT http://www.aygfsteel.com/Andyluo/archive/2007/01/09/tag_encoding_snippets.html http://www.aygfsteel.com/Andyluo/comments/92744.html http://www.aygfsteel.com/Andyluo/archive/2007/01/09/tag_encoding_snippets.html#Feedback 16 http://www.aygfsteel.com/Andyluo/comments/commentRss/92744.html http://www.aygfsteel.com/Andyluo/services/trackbacks/92744.html 在《J2EE》课E实验里写了些jsp和servlet代码Q将遇到的一些问题和解决Ҏ(gu)贴上Q自己mark一下?amp;& 供大家参?br /> 1、jsp:usebean标签中, 若引用的bean不存在,会自动调用默认构造器生成一个javabean实例Q所以不要在servlet里再用session.getAttribute来判断bean是否为空Q因定不为空Q,应该判断里面的字D|否ؓnull或ؓ初始化状态?/p>
2、jsp:usebean 的class属性应该是cȝ全名Q包括包名)。在前面<%@ import>中import的包Q在tag里不起作用,只对jsp里面的java代码有用Q所以tag里要使用cȝ全名
3、post时如果表单里有中文,会出C文ؕ码,在servlet里调用request.getParameter之前执行request.setCharacterEncoding("gb2312");可以正识别和昄中文了; 如果是url中用中文参数Q如someaction.jsp?q=中文问题Q则要加一个filter来setEncodingQ因为post和get传送参数的处理方式不一栗url中包含中文参数的讄参考:http://www.itet.cn/0512456328001529/JSP/0691214511318687.html
]]> 用Perl实现HTTP|络下蝲E序 http://www.aygfsteel.com/Andyluo/archive/2007/01/03/perlDown.html|明 |明 Wed, 03 Jan 2007 13:00:00 GMT http://www.aygfsteel.com/Andyluo/archive/2007/01/03/perlDown.html http://www.aygfsteel.com/Andyluo/comments/91628.html http://www.aygfsteel.com/Andyluo/archive/2007/01/03/perlDown.html#Feedback 15 http://www.aygfsteel.com/Andyluo/comments/commentRss/91628.html http://www.aygfsteel.com/Andyluo/services/trackbacks/91628.html
先讲讲做q个程序的动机吧,昨天看了?a title="哈工大Y件学院新d? target="_blank">以前学院的新?/a>Q没什么更斎ͼ但发现列表很长,保留?003q?月至今的所有新闅R?br /> q个新闻列表是大学期间我们了解学院信息的主要来源Q都L了每天先看新d?a title="哈工大丁香BBS" target="_blank">BBS的习惯。在大连实习期间更是如此Q也是产生感情了^__^Q所以。。。决定把q?00+新闻全部保存下来...需求:指定一个网址Q将q个|页和里面所有的子链接页面都下蝲下来Q保存到指定的文件夹中?br /> 如下图所C: 需求有了,怎么完成呢??a target="_blank">q雷下蝲全部链接Q嗯Q这是个好主意,Q我实也这么做了一ơ,q接数开得太多了Q差点被orz Q,但咱们是搞Y件的@_@Q这个小功能是不是写个程序就能搞定,?a target="_blank">JavaQ想到那一堆Stream的封装(new BufferedReader(new BufferedOutputStream(new FileOutputStream(new File("blabla.html"))))Q?..我就头晕?br /> 程序用脚本语言Q应该不错! ?a target="_blank">Perlq是PythonQ。。。经q一番网上查询论证,gQPerl语法复杂Q但l,API库也多;Python语法清晰易懂Q有点像JavaQ适合开发大型应用?br /> Java是我的最爱,也算熟?zhn)了,学点bt的吧Q用Perl 完成代码期间主要参考了Perl文档 中URLQHTML::LinkExtorQHTTP::Request的用法,Perl中国 的一文?a target="_blank">《LWP与WEB的基本用?/a>Q还占用了J2EE的上课时间来~写E序。。?br />
1
#
2
# Copyright (C) 2007 |明 <andyluo197(at)gmail.com>
3
#
4
5
use
strict
"
vars
"
;
#
严格遵@my scope定义
6
7
use
LWP
::
Simple;
8
use
HTML
::
LinkExtor;
9
use
HTTP
::
Request
::
Common;
10
use
LWP
::
UserAgent;
11
use
URI
::
URL;
12
13
#
从命令行参数中取ȝ地址和保存文件夹
14
my
$url
=
$ARGV
[
0
];
15
my
$location
=
$ARGV
[
1
];
16
17
#
子程序,解析ȝ中的链接地址
18
my
@urls
=
();
19
sub
urlCallback
20
{
21
my
(
$tag
,
%attr
)
=
@_
;
22
return
if
$tag
ne
'
a
'
;
23
push
(
@urls
,
values
%attr
);
24
}
25
26
#
用于解析链接的LinkExtractor
27
my
$p
=
HTML
::
LinkExtor
->
new(
\&
urlCallback);
28
29
#
载入ȝ内容,及解析链接地址
30
my
$ua
=
LWP
::
UserAgent
->
new;
31
my
$res
=
$ua
->
request(HTTP
::
Request
->
new(GET
=>
$url
)
,
sub
{
$p
->
parse(
$_
[
0
])});
32
33
#
链接的相对路径转换为绝对\?/span>
34
my
$base
=
$res
->
base;
35
@urls
=
map
{
$_
=
url(
$_
,
$base
)
->
abs
}
@urls
;
36
37
#
网写入文?/span>
38
$ua
->
request(GET(
$url
)
,
$location
.
'
\\index.html
'
);
39
my
$index
=
1
;
40
foreach
(
@urls
)
41
{
42
$ua
->
request(GET(
$_
)
,
$location
.
'
\\
'
.
$index
.
'
.html
'
);
43
$index
+=
1
;
44
}
ȝ保存ؓindex.htmlQ子|页???排序生成1.html?.html{?br /> 因ؓ?a target="_blank">Google DesktopQ即使文件名?.html...Q搜索v来也是很方便的。也可以扩充下,?lt;a></a>中的新闻主题抽出来作为文件名。但q个E序Ҏ(gu)来说已经_了,所以就不l做了?br /> ȝ来说用Perlq是很简单的Q库也很多,写v来挺方便Q但是要记得常翻?a target="_blank">Perl手册Q呵?br /> Technorati Tag : Perl LWP Download web script
]]> Z么用PreparedStatement而不是直接用"+"q接SQL语句 http://www.aygfsteel.com/Andyluo/archive/2006/11/01/78549.html|明 |明 Wed, 01 Nov 2006 12:18:00 GMT http://www.aygfsteel.com/Andyluo/archive/2006/11/01/78549.html http://www.aygfsteel.com/Andyluo/comments/78549.html http://www.aygfsteel.com/Andyluo/archive/2006/11/01/78549.html#Feedback 19 http://www.aygfsteel.com/Andyluo/comments/commentRss/78549.html http://www.aygfsteel.com/Andyluo/services/trackbacks/78549.html 最开?我在E序里用SQL讉K数据库时Q都是直接用?”将字段值嵌到SQL中。?
String sql
=
"
select s.name from student s where s.id='
"
+
sId
+
"
'
"Q?/span>
后来我开始?strong>PreparedStatementQ在SQL里用“?”标记参敎ͼ然后用setXXXҎ(gu)l参数赋倹{当时只知道q样用是因ؓ?strong>setDateQsetTimeStampq些用?”连接不能直接嵌入的倹{?br /> 感觉PreparedStatement?strong>性能斚w应该也能快点Q可能DBMS会重用,但不明底层原理?br /> q次《数据库实现》课E终于让我弄懂了Q?strong>每个SQL语句都要通过 语法分析 -> 生成逻辑查询计划 -> 逻辑优化 -> 物理优化 {步骤生成具体的执行计划Q用PreparedStatement可以生成一个执行计划,以后只是参数改变Q相当于执行计划?strong>执行环境改变Q,前面的四个步骤也?strong>省略Q从而提高了效率?br /> 如果一个SQL语句要被反复多次执行Q或多用户同时操作,则应选用PreparedStatementQ?/p>
]]> 余世l先生讲?《如何成Z?00强需要的人才?后感 http://www.aygfsteel.com/Andyluo/archive/2006/05/19/47128.html|明 |明 Fri, 19 May 2006 15:24:00 GMT http://www.aygfsteel.com/Andyluo/archive/2006/05/19/47128.html http://www.aygfsteel.com/Andyluo/comments/47128.html http://www.aygfsteel.com/Andyluo/archive/2006/05/19/47128.html#Feedback 3 http://www.aygfsteel.com/Andyluo/comments/commentRss/47128.html http://www.aygfsteel.com/Andyluo/services/trackbacks/47128.html 余世l?/a>先生的讲座,没白排一个多时的队Q_Q!Q讲得比惌的要Ȁ情,话题触及到政沅R社会、国际关pR历双Ӏ。。感觉印象比较深Q我要努力的地方Q主要有以下几点Qȝ^_^Q: 1、多涉猎各个学科知识Q知识多元化。工U的多阅d商管理、经、N易、h文等斚w的书c和杂志Q不说一本一本看Q也要一月读几篇?br /> 2、遇事多沟通。这也是理的五大要素之一。前几天因ؓ学习忙没有搭理项目上的“老板”,没有联系Q这也是~Z沟通! 3、逆境不可怕,心态最重要Q逆商是h成功的重要因素?br /> 4、提高素质和修养Q这是我们做每g事旉要注意的?br /> 5、执行力。Q务发下来了,能不能保质保量按时完成,q是执行力;职做好工作中的每一件事Q也是一U执行力Q?br />执行力是工作中最重要的! 人有7ơ改变命q的机遇Q第一ơ和最后一ơ没有精力抓住(too naive ?too oldQ,中间两次机遇错失Q其余三ơ机遇就看你能否抓住了?/p>
]]> 我用q的Google功能 http://www.aygfsteel.com/Andyluo/archive/2006/04/13/40962.html|明 |明 Thu, 13 Apr 2006 12:01:00 GMT http://www.aygfsteel.com/Andyluo/archive/2006/04/13/40962.html http://www.aygfsteel.com/Andyluo/comments/40962.html http://www.aygfsteel.com/Andyluo/archive/2006/04/13/40962.html#Feedback 2 http://www.aygfsteel.com/Andyluo/comments/commentRss/40962.html http://www.aygfsteel.com/Andyluo/services/trackbacks/40962.html 阅读全文 ]]> Google Pages http://www.aygfsteel.com/Andyluo/archive/2006/04/13/40934.html|明 |明 Thu, 13 Apr 2006 08:55:00 GMT http://www.aygfsteel.com/Andyluo/archive/2006/04/13/40934.html http://www.aygfsteel.com/Andyluo/comments/40934.html http://www.aygfsteel.com/Andyluo/archive/2006/04/13/40934.html#Feedback 42 http://www.aygfsteel.com/Andyluo/comments/commentRss/40934.html http://www.aygfsteel.com/Andyluo/services/trackbacks/40934.html 目前只知道在左栏可以列出所有文章,但不知道具体分页怎么做,莫非自己在页ֈ出各个页号及上下链接? 要是再加一个Google搜烦栏搜索整站内容就更好了,不过自己应该可以实现哦Qjust try! ]]>如何小数{换成癑ֈ?/title> http://www.aygfsteel.com/Andyluo/archive/2006/03/27/convertToPercent.html|明 |明 Mon, 27 Mar 2006 11:48:00 GMT http://www.aygfsteel.com/Andyluo/archive/2006/03/27/convertToPercent.html http://www.aygfsteel.com/Andyluo/comments/37672.html http://www.aygfsteel.com/Andyluo/archive/2006/03/27/convertToPercent.html#Feedback 0 http://www.aygfsteel.com/Andyluo/comments/commentRss/37672.html http://www.aygfsteel.com/Andyluo/services/trackbacks/37672.html private String convert(String orignal) { // L数后面的零|如:0.02500 String noDotInteger = Integer.parseInt (str.replace( ' . ' , '' )) + "" ; // 2500 int lengthOfZero = noDotInteger.length() - noDotInteger.indexOf( " 0 " ); // 2 str = str.substring( 0 , str.length() - lengthOfZero); // 0.025 // 转换成百分数字符?/span> int index = orignal.indexOf( ' . ' ); if (index < orignal.length() - 2 ) { return orignal.substring( 0 ,index) + orignal.substring(index + 1 ,index + 3 ) + ' . ' + orignal.substring(index + 3 ) + " % " ; } else { return orignal.substring( 0 ,index) + orignal.substring(index + 1 ) + " % " ; } } l:J2MEl合技术讨论群 的刘军提Z他的解决Ҏ(gu)Q?br />import java.math.BigDecimal; public class Hello { public static void main(String args[]) { String s = " 0.025 " ; BigDecimal bd = new BigDecimal(s); System.out.println(bd.multiply( new BigDecimal( 100 ))); // 输出2.500 } } 山城子则说用java.text.DecimalFormat最好最方便Q?img src ="http://www.aygfsteel.com/Andyluo/aggbug/37672.html" width = "1" height = "1" /> ]]> pȝ崩溃修复未果QOracle冷备份成?/title> http://www.aygfsteel.com/Andyluo/archive/2006/03/16/35540.html|明 |明 Thu, 16 Mar 2006 01:35:00 GMT http://www.aygfsteel.com/Andyluo/archive/2006/03/16/35540.html http://www.aygfsteel.com/Andyluo/comments/35540.html http://www.aygfsteel.com/Andyluo/archive/2006/03/16/35540.html#Feedback 1 http://www.aygfsteel.com/Andyluo/comments/commentRss/35540.html http://www.aygfsteel.com/Andyluo/services/trackbacks/35540.html system32/config目录下的software文g错误Q无法启?/strong>?br /> 用安装盘修复未果Q以?strong>覆盖安装可以保留原有E序Q所以重装了pȝQ结果在安装时也没发现有覆盖安装保留原有pȝ的选项。装完后E序都不能运行了Qؓ了保留原有Oracle数据QY的那几天没做备䆾Q,试着把整个Oracle文g夹(包括ora90, admin, oradataQ备份下来,?strong>同样路径重装Oracle和新建数据库Q数据库讄和以前一栗然后在“服务”里停掉所有以Oracle开头的服务Q我的包括OracleOraHome90AgentQOracleOraHome90HttpServerQOracleOraHome90TNSListener和OracleServiceSMSQSMS是我的数据库名)。再把刚才的备䆾覆盖C前的目录Qjdk目录里有些dll可能被用,q个目录可以不覆盖)Q启动刚才关闭的服务Q打开Enterprise Manager Console ?strong>Net ManagerQ发现现在的数据库和服务命名跟原来一模一P重装操作pȝ时最好计机名也跟以前一P不然q要改一下NetManager?strong>服务命名?strong>监听E序?strong>L?/strong>Q?br /> 不知道这U备份是不是?strong>冷备?/strong>Q反正是挺“冷”的Q?zhn)无声息就备䆾q来了,呵呵Q这U机制感觉挺好! ]]> Web2.0的时代到来了吗? http://www.aygfsteel.com/Andyluo/archive/2006/03/10/34629.html|明 |明 Fri, 10 Mar 2006 03:42:00 GMT http://www.aygfsteel.com/Andyluo/archive/2006/03/10/34629.html http://www.aygfsteel.com/Andyluo/comments/34629.html http://www.aygfsteel.com/Andyluo/archive/2006/03/10/34629.html#Feedback 2 http://www.aygfsteel.com/Andyluo/comments/commentRss/34629.html http://www.aygfsteel.com/Andyluo/services/trackbacks/34629.html 有越来越多的q象表明Web2.0之类的东西渐渐深入网l的各个角落Q无论是Google MapsQGmailQFlickrq是国内?63邮箱?65kit、豆瓣网Q都把Ajax之类代表Web2.0的技术发挥得淋漓致Q撇开他们用的技术不,单从他们提高的用户交互“流畅感”,可以说是对Web技术的一ơ改革?BR> 以前的Web应用从功能方面考虑的因素比较多Q对提升用户体验度所做的工作很少Q现在的Web2.0应用则从用户的角度入手,把提升用户体验度当成W一目标。以前不喜欢搞Web开发,更不喜欢用JavaScriptQ感觉那些东东只能做些美化界面的z,做些动画什么的Q因为当初认为它只能在客L发挥作用Q而现在JavaScript和异步传输结合,把服务器的地盘也夺q来了?BR> 如今QWeb2.0应用的复杂度已经可以与大型应用媲了Q很多提高用户体验度的东东都要在后台做大量有技术难度的工作Q如365kit的通讯录同步功能,p在与Outlook、MSN、手Z互中下很大工夫?BR> 现在q没有时_要忙着做项目和毕业设计Q等q一阵子Q一定要研究一下Ajax和JavaScriptQƈ做出个像L应用来。也希望以后能做Z好的应用Q有市场的,慢慢把它做大Q推q,现在不流行网l创业吗Q呵呵,而且门槛也比较低Q要的硬件和资金不多Q主要是应用要有市场、有创意Q?BR> Web2.0火了Q我们又多了一条\Q?BR> Q写得不好,Ƣ迎大家拍砖Q?BR> l: RIA应该也是一U实现Web2.0的技术? Web2.0应该是一U思想Q是通过提高用户体验度来赢得市场Q实现它的技术有很多Q只要能辑ֈ提高用户体验度的目的Q我们就可以说它“是”Web2.0Q不是吗Q? RIA技术我知道的好像有三种Q?、Flex 2、Eclipse RCP 3、Ajax 4、Java Web Start ]]> Something is usable if it behaves exactly as expected. http://www.aygfsteel.com/Andyluo/archive/2006/03/08/34201.html|明 |明 Wed, 08 Mar 2006 03:05:00 GMT http://www.aygfsteel.com/Andyluo/archive/2006/03/08/34201.html http://www.aygfsteel.com/Andyluo/comments/34201.html http://www.aygfsteel.com/Andyluo/archive/2006/03/08/34201.html#Feedback 0 http://www.aygfsteel.com/Andyluo/comments/commentRss/34201.html http://www.aygfsteel.com/Andyluo/services/trackbacks/34201.html 一文?/A>里提Cq样一句话Q?EM>Something is usable if it behaves exactly as expected. Joel认ؓ软g的可用性也是如此:如果软g的每一ơ响应都W合用户要求Q那它就是可用的 。这实是“正”的Q关键在于我们怎么获得目的用户的确切需求,单个领域用户q好一点,做个市场调查估计能得Z八九(ji)不离十;如果是通用软gQ那q得考虑周详一炏V?BR> q句话倒是值得收藏Q以后做软g的时候是应该多考虑一下,使界面响应和工作程能更W合用户的习惯和需求! l: 又有了一U?A HREF="/shaofan/archive/2006/03/10/34588.html">新的译法Q感觉这样容易理解些QUI能以用户预期的方式来响应他们的操作,那这个UI是可用的?img src ="http://www.aygfsteel.com/Andyluo/aggbug/34201.html" width = "1" height = "1" /> ]]> 做报表时某种中文问题的解x?/title> http://www.aygfsteel.com/Andyluo/archive/2006/02/19/31540.html|明 |明 Sun, 19 Feb 2006 12:43:00 GMT http://www.aygfsteel.com/Andyluo/archive/2006/02/19/31540.html http://www.aygfsteel.com/Andyluo/comments/31540.html http://www.aygfsteel.com/Andyluo/archive/2006/02/19/31540.html#Feedback 0 http://www.aygfsteel.com/Andyluo/comments/commentRss/31540.html http://www.aygfsteel.com/Andyluo/services/trackbacks/31540.html 刚解决的问题Q?BR> 用Word的网Ş式做报表旉C文ؕ码,而且已经使用ISO8859_1对中文参数进行了转换Q试试将|页里的charset=us-ascii改ؓcharset=gb2312 怎么我这里默认的charset是us-ascii呢,我这是中文版阿?Q?/P> ]]> [Tips]oracle 旉转换的问?/title> http://www.aygfsteel.com/Andyluo/archive/2006/02/16/31106.html|明 |明 Thu, 16 Feb 2006 14:33:00 GMT http://www.aygfsteel.com/Andyluo/archive/2006/02/16/31106.html http://www.aygfsteel.com/Andyluo/comments/31106.html http://www.aygfsteel.com/Andyluo/archive/2006/02/16/31106.html#Feedback 0 http://www.aygfsteel.com/Andyluo/comments/commentRss/31106.html http://www.aygfsteel.com/Andyluo/services/trackbacks/31106.html
q样一个语句, insert INTO test ( time) VALUES('2005-07-19 11:53:53') 在有的oracle数据库上q行成功Q有的机器上q行不成功。请问oracle中有q样讄么? Q?nbsp;当然Q把它改?BR>insert INTO test ( time) VALUES(to_date('2005-07-19 11:53:53','YYYY-MM-DD HH24:MI:SS')) 肯定可以q行成功。) q有一个小问题。oracle有没有提供这U的转换函数 ?104840333 转化?005-06-28 21:09:17 q种cd?nbsp;Q?104840333 是从1970Q?nbsp;2005-06-28 21:09:17的秒?/SPAN>
{:
alter session set nls_date_format = 'YYYY-MM-DD HH24:MI:SS'' 你的U数是怎么的Q不对吧Q?BR>select (to_date('2005-06-28 21:09:17','yyyy-mm-dd hh24:mi:ss')-to_date('1970','yyyy'))*24*60*60 from dual 出来的结果是1104354557 q个问题可以q样解决Q?BR>select to_date('19700101000000','yyyymmddhh24miss')+(1104840333/(24*60*60)) from dual
]]> 用winrar或winzip制作可运行jar文g http://www.aygfsteel.com/Andyluo/archive/2006/02/16/31057.html|明 |明 Thu, 16 Feb 2006 06:49:00 GMT http://www.aygfsteel.com/Andyluo/archive/2006/02/16/31057.html http://www.aygfsteel.com/Andyluo/comments/31057.html http://www.aygfsteel.com/Andyluo/archive/2006/02/16/31057.html#Feedback 1 http://www.aygfsteel.com/Andyluo/comments/commentRss/31057.html http://www.aygfsteel.com/Andyluo/services/trackbacks/31057.html 步骤Q?BR> 1、在应用E序文g根目录下新徏一个META-INF目录Q在该目录下新徏MANIFEST.MF文gQ? 文g内容为:
1 Main-Class: 包名.ȝ?nbsp; 2 3
2、将应用E序根目录下所有文件用winrar或winzip打包Q格式ؓzipQ? 3、将zip文g扩展名改为jar Q?BR> 4、双击jar文g卛_q行? 希望能对大家有点帮助?img src ="http://www.aygfsteel.com/Andyluo/aggbug/31057.html" width = "1" height = "1" /> ]]>[备䆾from blueline]利用Ant来做Nightly TestQzzQ?/title> http://www.aygfsteel.com/Andyluo/archive/2006/02/16/31017.html|明 |明 Thu, 16 Feb 2006 06:13:00 GMT http://www.aygfsteel.com/Andyluo/archive/2006/02/16/31017.html http://www.aygfsteel.com/Andyluo/comments/31017.html http://www.aygfsteel.com/Andyluo/archive/2006/02/16/31017.html#Feedback 0 http://www.aygfsteel.com/Andyluo/comments/commentRss/31017.html http://www.aygfsteel.com/Andyluo/services/trackbacks/31017.html
<junit printsummary="yes" haltonfailure="yes">
<test name="org.redsoft.forum.AllTests” haltonfailure="no" outfile="result" >
<formatter type="xml" />
</test>
</junit>
产生一个XML是结果报?br />
再利用JunitReport来生一个可供浏览的l果文g?br />
<junitreport todir="./reports">
<fileset dir="./reports">
<include name="TEST-*.xml"/>
</fileset>
<report format="frames" todir="./report/html"/>
</junitreport>
]]> Ubuntu Documentation软g列表是一个大书库 http://www.aygfsteel.com/Andyluo/archive/2005/10/26/17199.html|明 |明 Wed, 26 Oct 2005 02:25:00 GMT http://www.aygfsteel.com/Andyluo/archive/2005/10/26/17199.html http://www.aygfsteel.com/Andyluo/comments/17199.html http://www.aygfsteel.com/Andyluo/archive/2005/10/26/17199.html#Feedback 0 http://www.aygfsteel.com/Andyluo/comments/commentRss/17199.html http://www.aygfsteel.com/Andyluo/services/trackbacks/17199.html
使用Ubuntu Linux操作pȝ才有q个软g列表Q在软g包管理器里选择安装某个文档Q会自动下蝲到本圎ͼ然后可以阅MQ一般都是开源YӞ如Apache2、Emacs、VI、CVS、Subversion{)的资料?/p>
标准且全面,大多数文档有对应的中文版本,可以对照着看?br />
really crazy
现在d?52本书/文档
i don't have to find ebooks on web anymore, it's enough, also a good place to improve my English skills.
]]>
վ֩ģ壺
|
ţ |
|
|
|
ī |
|
|
Դ |
ݳ |
|
|
|
㺺 |
|
ˮ |
ո |
|
|
˶ |
|
ɳ |
|
̩ |
Ϫ |
|
|
|
ɽ |
ڽ |
|
|
ƽ |
пǰ |
|
|
ˮ |
Ϫ |
º |
|
Ѿ |