冷面阎罗

低调做人&&高调做事
随笔 - 208, 文章 - 3, 评论 - 593, 引用 - 0
数据加载中……

我的评论

共3页: 上一页 1 2 3 下一页 
re: 技术、技能和技巧 冷面阎罗 2007-09-12 16:05  
@paul
我这还都是我自己弄,pm全权交给我了
re: 我的网名叫“冷面阎罗”有错么? 冷面阎罗 2007-09-11 13:05  
呵呵 我知道妹妹不关心这个,可是有的女孩子却在意,弄的好像是我欺骗了她。
艾,世界之大真是什么样子的人都有啊
re: 系统分析师最新资料 冷面阎罗 2007-08-27 13:00  
soddabao@163.com
re: MyEclipse 6.0 正式发布 冷面阎罗 2007-08-22 17:12  
好慢啊 连不上呵呵
re: eclipse3.3+myeclipse6 冷面阎罗 2007-08-16 10:28  
re: swing 选择日期控件 冷面阎罗 2007-08-15 15:18  
我之前做了一个
你还可以加上农历
http://www.blogjava.net/soddabao/archive/2007/01/04/91729.html
对阿 做接口的事情是最头疼的
我去年做了一年接口 大大小小有十几个 合作的单位也有4、5个
乱码这个问题遇到好几个 都是一边一个编码格式
呵呵 不错
交口研究就是深,这种精神不错
re: 【转】javascript里的document.all用法 冷面阎罗 2007-08-13 13:34  
@交口称赞
恩 对啊
不过我的项目使用的均是ie,要求是ie6以上,所以有些东西还没有考虑的非常完善。
re: eclipse3.3+myeclipse6[未登录] 冷面阎罗 2007-08-02 12:48  
Subscriber: www.1cn.biz
Subscriber Code: jLR8ZC-655355-5450765457039125
你再试试,应该是可以的。
晕 我上次流的注册码怎么被人改了
re: JME介绍以及用Eclipse进行JME开发 冷面阎罗 2007-07-26 18:54  
想玩 不过玩不了,笔记本显卡太垃圾了
re: eclipse3.3+myeclipse6 冷面阎罗 2007-07-20 15:23  
eclipse3.3可以自动回收内存,不过回收的速度很慢。
re: eclipse3.3+myeclipse6 冷面阎罗 2007-07-20 15:21  
找注册码就可以啊
我这有几个你可以试试?
Subscriber: www.1cn.biz
bizSubscriber Code: jLR8ZC-655355-5450765457039125
或者
Subscriber: www.1cn.biz
bizSubscriber Code: jLR7ZL-655355-5450755330522962
这个怎么注册?
re: Eclipse3.3的新特性 冷面阎罗 2007-07-13 13:03  
3.3好像还没有可以使用的myeclipse吧?
re: J2ME程序的奇怪现象 冷面阎罗 2007-06-28 19:19  
问题找到是退出时选择函数有问题:
destroyed(false) MIDlet在接到通知后抛出MIDletStateChangeException而保持在当前状态,
destroyApp(false)代表程序是由硬件或非系统关闭掉的
notifyDestroyed通知应用程序管理器,该midlet已进入销毁状态,随时可以回收内存
re: eclipse使用link方法安装出现的怪现象 冷面阎罗 2007-06-25 14:27  
呵呵 看来我们以后link方法就不用使用link最后缀了。都改成txt。
re: 有关eclipse不能单步调试的原因 冷面阎罗 2007-06-25 14:26  
你的版本是多少?
web项目还是?
用的什么插件
re: eclipse使用link方法安装出现的怪现象 冷面阎罗 2007-06-22 17:24  
我把link文件后缀改成txt仍好用,你看看你那边如果这个改还好用么?
不好意思 写错了 应该是这个GregorianCalendar类。Calendar类的一个子类。API中是这样描述这个类的
public class GregorianCalendarextends CalendarGregorianCalendar is a concrete subclass of Calendar and provides the standard calendar system used by most of the world.

GregorianCalendar is a hybrid calendar that supports both the Julian and Gregorian calendar systems with the support of a single discontinuity, which corresponds by default to the Gregorian date when the Gregorian calendar was instituted (October 15, 1582 in some countries, later in others). The cutover date may be changed by the caller by calling setGregorianChange().

Historically, in those countries which adopted the Gregorian calendar first, October 4, 1582 (Julian) was thus followed by October 15, 1582 (Gregorian). This calendar models this correctly. Before the Gregorian cutover, GregorianCalendar implements the Julian calendar. The only difference between the Gregorian and the Julian calendar is the leap year rule. The Julian calendar specifies leap years every four years, whereas the Gregorian calendar omits century years which are not divisible by 400.

GregorianCalendar implements proleptic Gregorian and Julian calendars. That is, dates are computed by extrapolating the current rules indefinitely far backward and forward in time. As a result, GregorianCalendar may be used for all years to generate meaningful and consistent results. However, dates obtained using GregorianCalendar are historically accurate only from March 1, 4 AD onward, when modern Julian calendar rules were adopted. Before this date, leap year rules were applied irregularly, and before 45 BC the Julian calendar did not even exist.

Prior to the institution of the Gregorian calendar, New Year's Day was March 25. To avoid confusion, this calendar always uses January 1. A manual adjustment may be made if desired for dates that are prior to the Gregorian changeover and which fall between January 1 and March 24.

Values calculated for the WEEK_OF_YEAR field range from 1 to 53. Week 1 for a year is the earliest seven day period starting on getFirstDayOfWeek() that contains at least getMinimalDaysInFirstWeek() days from that year. It thus depends on the values of getMinimalDaysInFirstWeek(), getFirstDayOfWeek(), and the day of the week of January 1. Weeks between week 1 of one year and week 1 of the following year are numbered sequentially from 2 to 52 or 53 (as needed).

For example, January 1, 1998 was a Thursday. If getFirstDayOfWeek() is MONDAY and getMinimalDaysInFirstWeek() is 4 (these are the values reflecting ISO 8601 and many national standards), then week 1 of 1998 starts on December 29, 1997, and ends on January 4, 1998. If, however, getFirstDayOfWeek() is SUNDAY, then week 1 of 1998 starts on January 4, 1998, and ends on January 10, 1998; the first three days of 1998 then are part of week 53 of 1997.

Values calculated for the WEEK_OF_MONTH field range from 0 to 6. Week 1 of a month (the days with WEEK_OF_MONTH = 1) is the earliest set of at least getMinimalDaysInFirstWeek() contiguous days in that month, ending on the day before getFirstDayOfWeek(). Unlike week 1 of a year, week 1 of a month may be shorter than 7 days, need not start on getFirstDayOfWeek(), and will not include days of the previous month. Days of a month before week 1 have a WEEK_OF_MONTH of 0.

For example, if getFirstDayOfWeek() is SUNDAY and getMinimalDaysInFirstWeek() is 4, then the first week of January 1998 is Sunday, January 4 through Saturday, January 10. These days have a WEEK_OF_MONTH of 1. Thursday, January 1 through Saturday, January 3 have a WEEK_OF_MONTH of 0. If getMinimalDaysInFirstWeek() is changed to 3, then January 1 through January 3 have a WEEK_OF_MONTH of 1.

The clear methods set calendar field(s) undefined. GregorianCalendar uses the following default value for each calendar field if its value is undefined. Field
Default Value

ERA
AD

YEAR
1970

MONTH
JANUARY

DAY_OF_MONTH
1

DAY_OF_WEEK
the first day of week

WEEK_OF_MONTH
0

DAY_OF_WEEK_IN_MONTH
1

AM_PM
AM

HOUR, HOUR_OF_DAY, MINUTE, SECOND, MILLISECOND
0


Default values are not applicable for the fields not listed above.

Example:

// get the supported ids for GMT-08:00 (Pacific Standard Time)
String[] ids = TimeZone.getAvailableIDs(-8 * 60 * 60 * 1000);
// if no ids were returned, something is wrong. get out.
if (ids.length == 0)
System.exit(0);

// begin output
System.out.println("Current Time");

// create a Pacific Standard Time time zone
SimpleTimeZone pdt = new SimpleTimeZone(-8 * 60 * 60 * 1000, ids[0]);

// set up rules for daylight savings time
pdt.setStartRule(Calendar.APRIL, 1, Calendar.SUNDAY, 2 * 60 * 60 * 1000);
pdt.setEndRule(Calendar.OCTOBER, -1, Calendar.SUNDAY, 2 * 60 * 60 * 1000);

// create a GregorianCalendar with the Pacific Daylight time zone
// and the current date and time
Calendar calendar = new GregorianCalendar(pdt);
Date trialTime = new Date();
calendar.setTime(trialTime);

// print out a bunch of interesting things
System.out.println("ERA: " + calendar.get(Calendar.ERA));
System.out.println("YEAR: " + calendar.get(Calendar.YEAR));
System.out.println("MONTH: " + calendar.get(Calendar.MONTH));
System.out.println("WEEK_OF_YEAR: " + calendar.get(Calendar.WEEK_OF_YEAR));
System.out.println("WEEK_OF_MONTH: " + calendar.get(Calendar.WEEK_OF_MONTH));
System.out.println("DATE: " + calendar.get(Calendar.DATE));
System.out.println("DAY_OF_MONTH: " + calendar.get(Calendar.DAY_OF_MONTH));
System.out.println("DAY_OF_YEAR: " + calendar.get(Calendar.DAY_OF_YEAR));
System.out.println("DAY_OF_WEEK: " + calendar.get(Calendar.DAY_OF_WEEK));
System.out.println("DAY_OF_WEEK_IN_MONTH: "
+ calendar.get(Calendar.DAY_OF_WEEK_IN_MONTH));
System.out.println("AM_PM: " + calendar.get(Calendar.AM_PM));
System.out.println("HOUR: " + calendar.get(Calendar.HOUR));
System.out.println("HOUR_OF_DAY: " + calendar.get(Calendar.HOUR_OF_DAY));
System.out.println("MINUTE: " + calendar.get(Calendar.MINUTE));
System.out.println("SECOND: " + calendar.get(Calendar.SECOND));
System.out.println("MILLISECOND: " + calendar.get(Calendar.MILLISECOND));
System.out.println("ZONE_OFFSET: "
+ (calendar.get(Calendar.ZONE_OFFSET)/(60*60*1000)));
System.out.println("DST_OFFSET: "
+ (calendar.get(Calendar.DST_OFFSET)/(60*60*1000)));

System.out.println("Current Time, with hour reset to 3");
calendar.clear(Calendar.HOUR_OF_DAY); // so doesn't override
calendar.set(Calendar.HOUR, 3);
System.out.println("ERA: " + calendar.get(Calendar.ERA));
System.out.println("YEAR: " + calendar.get(Calendar.YEAR));
System.out.println("MONTH: " + calendar.get(Calendar.MONTH));
System.out.println("WEEK_OF_YEAR: " + calendar.get(Calendar.WEEK_OF_YEAR));
System.out.println("WEEK_OF_MONTH: " + calendar.get(Calendar.WEEK_OF_MONTH));
System.out.println("DATE: " + calendar.get(Calendar.DATE));
System.out.println("DAY_OF_MONTH: " + calendar.get(Calendar.DAY_OF_MONTH));
System.out.println("DAY_OF_YEAR: " + calendar.get(Calendar.DAY_OF_YEAR));
System.out.println("DAY_OF_WEEK: " + calendar.get(Calendar.DAY_OF_WEEK));
System.out.println("DAY_OF_WEEK_IN_MONTH: "
+ calendar.get(Calendar.DAY_OF_WEEK_IN_MONTH));
System.out.println("AM_PM: " + calendar.get(Calendar.AM_PM));
System.out.println("HOUR: " + calendar.get(Calendar.HOUR));
System.out.println("HOUR_OF_DAY: " + calendar.get(Calendar.HOUR_OF_DAY));
System.out.println("MINUTE: " + calendar.get(Calendar.MINUTE));
System.out.println("SECOND: " + calendar.get(Calendar.SECOND));
System.out.println("MILLISECOND: " + calendar.get(Calendar.MILLISECOND));
System.out.println("ZONE_OFFSET: "
+ (calendar.get(Calendar.ZONE_OFFSET)/(60*60*1000))); // in hours
System.out.println("DST_OFFSET: "
+ (calendar.get(Calendar.DST_OFFSET)/(60*60*1000))); // in hours
方法是:
boolean isLeapYear(int year)
Determines if the given year is a leap year.
呵呵 彼此彼此。
可惜啊 你要去贵阳了
re: 短信发送模板 冷面阎罗 2007-05-25 13:30  
那还不如换成飞信发短信,pc端飞信发短信是free的,我现在就是用飞信发短信
re: 计算机中着了 冷面阎罗 2007-05-18 17:22  
SAV更新到5月17日的病毒定以后,会把

C:\windows\system32\netapi32.dll和 C:\windows\system32\lsasrc.dll

认为是backdoor.haxdoor, 并且把他们隔离掉。

会造成重起机器后无法进入系统,安全模式也无法进入,蓝屏。



目前的紧急对策:

从系统中心---右击服务器---所有任务---Symantec antivirus---病毒定义管理器---点击右上角的“配置”----出现对话框后店击“病毒定义文件”---然后选择之前的病毒定义。

使得服务器不要下发今天的病毒定义。



对于已经更新病毒定义的客户端,千万不要重新启动电脑。

关掉symantec antivirus 服务,如果netapi32.dll和lsasrc.dll文件存在,且修改日期不是今天,说明没有被完全隔离(应该是部分) ;从隔离区里面恢复这两个文件,或者从没有问题的电脑copy这两个文件到C:\windows\system32。

然后把C:\program files\common files\symantec shared\virusdefs\下把20070517这个文件夹删掉。







Blue screen fix 出现蓝屏的解决方案

1。使用安装盘启动

2。进入系统恢复控制台。

3。删除C:\Program Files\Common Files\Symantec Shared\VirusDefs\20070517.018 这个目录

4。使用安装盘I386目录下的netapi32.dll和lsasrv.dll文件替换系统system32下的文件
re: ★ 看看你的博客值多少钱 ★ 冷面阎罗 2007-05-15 16:29  
要不咱们往dudu要钱么?
re: ★ 看看你的博客值多少钱 ★ 冷面阎罗 2007-05-15 11:13  
我的才只有你的一半,呵呵,还是你的 之前

呵呵 我现在就买,谁要?
其实有关代码的优化,每个人都有自己的心得,我只是把自己的一点想法说出来,具体做法因地制宜。
第三条,在现实编程中,这种情况,肯定是不会出现的。
其实这个string和stringbuffer之间的讨论,到底谁好谁不好,一直争下去。我个人的观点
一、考虑是动态的还是静态,什么意思呢?就是我拼的东西是在编译时还是运行时执行。
二、代码的合理、可读等
三、如果性能差不多时,我感觉完全时可以相互替代的。

这么说吧:你不论在什么都用string,错不错?错了没有?不错,我可以实现功能了对吧,那么我要作的更高级的是代码的优化。

即首先是完成功能然后才是代码的优化。
re: 荣成话6级考试 冷面阎罗 2007-04-04 11:01  
楼上的想必是俺的老乡吧!
可惜,我不在广州。对了你们活动后的材料,上传么?
我到那里可以下载么?
re: ajax中获取xmlHttp对象方法 冷面阎罗 2007-04-02 18:31  

判断xmlhttp为空时,跳出即可。
re: 有关项目的优化问题 冷面阎罗 2007-03-30 14:49  
我个人感觉new是不大好的,而且感觉java的垃圾回收也只能在系统空闲时,而在c++中就要处处考虑内存的问题,那么我们在java中是可以借鉴一下的,如果系统不大的话,这些就不用考虑那么多了,我现在手头上这个项目java代码差不多有100M。
re: 有关项目的优化问题 冷面阎罗 2007-03-29 22:46  
数据库的查询是比较头疼的事,sql语句的优化,数据库字段的设计 这些专业的dba好多都说不明白,更何况是我们这边写程序的人。

数据实时性这个也是需要着重考虑的,有些需要刷新比较快,应该考虑刷新的方法,查询数据库应该在刷新前,最好是在后台进行。
re: Eclipse小技巧之一Tab键的妙用 冷面阎罗 2007-03-25 15:15  
这个凡是使用eclipse的人都知道,
re: weblogic与axis之间向冲突 冷面阎罗 2007-03-08 16:26  
你把jar发在最前面试试看,我们以前写的是这样的
set SERVER_NAME=myserver

set CLASSPATH=D:\ept\WEB-INF\lib\classes129_2_0_1.jar;%WEBLOGIC_CLASSPATH%;%POINTBASE_CLASSPATH%;%JAVA_HOME%\jre\lib\rt.jar;%WL_HOME%\server\lib\webservices.jar;%CLASSPATH%

@REM Call WebLogic Server

D:\ept\WEB-INF\lib\classes129_2_0_1.jar包就是连接数据jdbc的jar,后来发现再加axis就更多了就直接该的weblogic.xml文件了
re: 日历控件 冷面阎罗 2007-03-07 10:38  
获取指定年月的天数:
Date date = new Date(year_log, month_log + 1, 1); // now
Calendar cal = Calendar.getInstance();
cal.setTime(date);
cal.add(Calendar.MONTH, -1); // 前个月
month_day_score = cal.getActualMaximum(Calendar.DAY_OF_MONTH);// 最后一天
re: JAVA 写的一截屏小工具 冷面阎罗 2007-03-07 09:07  
我机子上的jdk有3个版本,4、5、6的都有,其实我只是想研究一下具体是在么实现的
re: JAVA 写的一截屏小工具 冷面阎罗 2007-03-07 08:58  
那个jar我好像运行不成,我希望能和楼主研究一下这个程序。
不知道可以么?
在么和你联系呢
re: 无所不能的java 冷面阎罗 2007-02-28 16:30  
@纷纷
我见过以前有人用java写过魔兽游戏,不过没有现在网络那个魔兽强,只是helloword程序
re: HTTP请求发送XML数据 冷面阎罗 2007-01-26 08:55  
我记不请了在什么地方看,应该就是2m,如果是2k那也太小了吧
re: 学习Java6(七)Desktop(6)打印所选文件 冷面阎罗 2007-01-25 18:39  
对啊
不过我感觉现在用jdk6好像有点不现实,除非你是纯java的程序,其中你包涵任何一点其他的语言,像我现在用weblogic8,jdk还用不了5,只能用4.
所以jdk6只能是自己耍耍了
re: 学习Java6(七)Desktop(6)打印所选文件 冷面阎罗 2007-01-25 15:53  
呵呵 看楼兄一直研究jdk6,不知道你参考什么?sun公司的api还是市场上出关于jdk6的新书?
那建一个罪简单的Web Service ,应该如何?
re: 又谈乱码问题解决 冷面阎罗 2007-01-25 15:50  
那weblogic的情况应该和tomcat差不多吧?还是
看了weblogic的config.xml好像没有地方改
活动参加不了,只能下载讲义看了
re: jdk的安装以及环境变量的设置 冷面阎罗 2007-01-20 15:24  
不会吧
这个都要写在blog首页上.
re: 周末了 冷面阎罗 2007-01-18 17:11  
昨天手机不小调到下水管道了,情侣表说白白了.和她也应该彻底..........
希望她在"天堂"能过的好些.........
re: 公告 冷面阎罗 2007-01-15 13:52  
ip地址变了?那地址变了么?还是blogjava么?
共3页: 上一页 1 2 3 下一页