摘要:
1:字符串替换与分割2:转换成中文编码3:格式化日期转换rn为import gne.regexp.*;public static String addP(String msg){String ret = null; try {RE expression = new RE("rn");ret = expression.substituteAll(msg,""); }catch(gnu.regexp....
阅读全文
posted @ 2005-08-14 00:12
熊猫平子
阅读(569)
推荐(0)
摘要:
jsp中的日期问题及其它:D :D :D/*** @author imagebear*/日期问题1、获取服务器端当前日期:2、获取当前年、月、日:3、按本地时区输出当前日期输出结果为:2003-5-30 4、获取数据库中字段名为”publish_time“、类型为Datetime的值[code]5、按照指定格式打印日期[code]输出的结果为:It is 星期五 2003.05.30 at 11:...
阅读全文
posted @ 2005-07-16 18:13
熊猫平子
阅读(730)
推荐(0)
摘要:
最根本的解决办法:在JbuilderX的安装目录下bin子目录下找到jbuilder.config文件打开该文件,进行编辑。 找到vmparam -Xms32m,添加以下两行: vmparam -Xms256mvmparam -Dprimetime.editor.useVariableWidthFont=true保存,退出。找到Documents and Settings目录下的登录用户目录找到j...
阅读全文
posted @ 2005-07-14 16:24
熊猫平子
阅读(303)
推荐(0)
摘要:
基本算法(pascal) 1.数论算法 求两数的最大公约数 function gcd(a,b:integer):integer; begin if b=0 then gcd:=a else gcd:=gcd (b,a mod B); end; 求两数的最小公倍数 function lcm(a,b:integer):integer; begin if a0 do inc(lcm,a); end;...
阅读全文
posted @ 2005-06-27 16:59
熊猫平子
阅读(737)
推荐(0)
摘要:
得到Access97的密码:function GetAccessPassword(FilePath:string):string;const xorString:array[0..12]of byte= ( $86, $FB, $EC, $37, $5D, $44, $9C, $FA, $C6, $5E, $28, $E6,$13 );var p...
阅读全文
posted @ 2005-06-05 12:17
熊猫平子
阅读(1125)
推荐(0)
摘要:
微软的每一个产品,无论功能还是界面设计都会带给我们一定的惊喜,比如OfficeXP、Office2003、Messenger的界面设计,早已成为众多软件竞相模仿的对象,就拿Messenger来说,我就见过好几套网络视频会议的软件都借鉴了它的界面风格。 前段时间因为要在原来的软件上增加一个快捷键提示窗体,这个提示窗要求在显示的时候比较醒目美观能引起用户注意,显示后不影响用户操作,能够关掉。很自...
阅读全文
posted @ 2005-06-05 12:05
熊猫平子
阅读(4889)
推荐(0)
摘要:
◇[DELPHI]网络邻居复制文件uses shellapi;copyfile(pchar('newfile.txt'),pchar('//computername/direction/targer.txt'),false);◇[DELPHI]产生鼠标拖动效果通过MouseMove事件、DragOver事件、EndDrag事件实现,例如在PANEL上的LABEL:var xpanel,ypanel...
阅读全文
posted @ 2005-06-05 11:35
熊猫平子
阅读(1665)
推荐(0)
摘要:
1如何将字串 String 转换成整数 int? A. 有两个方法: 1). int i = Integer.parseInt([String]); 或 i = Integer.parseInt([String],[int radix]); 2). int i = Integer.valueOf(my_str).intValue(); 注: 字串转成 Double, Floa...
阅读全文
posted @ 2005-05-17 13:14
熊猫平子
阅读(566)
推荐(0)