<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    posts - 97,  comments - 93,  trackbacks - 0
      2007年4月5日
    Rank 1:


           SIGMOD: ACM SIGMOD Conf on Management of Data
           PODS: ACM SIGMOD Conf on Principles of DB Systems
           VLDB: Very Large Data Bases
           ICDE: Intl Conf on Data Engineering

           CIKM: Intl. Conf on Information and Knowledge Management
           ICDT: Intl Conf on Database Theory


    Rank 2:

    SSD: Intl Symp on Large Spatial Databases
    DEXA: Database and Expert System Applications
    FODO: Intl Conf on Foundation on Data Organization
    EDBT: Extending DB Technology
    DOOD: Deductive and Object-Oriented Databases
    DASFAA: Database Systems for Advanced Applications
    SSDBM: Intl Conf on Scientific and Statistical DB Mgmt
    CoopIS - Conference on Cooperative Information Systems
    ER - Intl Conf on Conceptual Modeling (ER)


    參考 http://www3.ntu.edu.sg/home/assourav/crank.htm

    posted @ 2009-09-25 00:02 wqwqwqwqwq 閱讀(277) | 評(píng)論 (0)編輯 收藏
         摘要: That’s why I don’t want to hear people’s ideas.
    I’m not interested until I see their execution.  閱讀全文
    posted @ 2008-08-11 11:21 wqwqwqwqwq 閱讀(1304) | 評(píng)論 (1)編輯 收藏
         摘要: 這兩天在學(xué)習(xí)python,主要參考簡明教程http://www.swaroopch.com/byteofpython/ , 入門很不錯(cuò),有興趣推薦參考。
    在16章中,作者建議讀者寫一個(gè)地址簿程序,還記得寫它都是在大一學(xué)c語言的年代了,不過下午還是抽出了一點(diǎn)時(shí)間來寫這個(gè)程序,寫了兩個(gè)版本,一個(gè)是使用python 字典來存儲(chǔ)名字和地址,另一個(gè)版本則使用python的面向?qū)ο筇匦裕瑏礞準(zhǔn)酱鎯?chǔ)聯(lián)系人對(duì)象。  閱讀全文
    posted @ 2008-07-24 17:51 wqwqwqwqwq 閱讀(1561) | 評(píng)論 (3)編輯 收藏
         摘要: 據(jù)說最近psp最近要升值了~無論是因?yàn)槠平獾脑蜻€是什么,但總之估計(jì)sony還是很難想到,當(dāng)然我們也很值得慶幸的是這幫hack的大牛已然將kvm,python stackless等移植到了psp平臺(tái),強(qiáng)大的ppc支持,可足以媲美幾年前的personal computer,這一點(diǎn)毋庸置疑,更不用去與手機(jī)平臺(tái)相對(duì)比了。  閱讀全文
    posted @ 2008-07-24 12:21 wqwqwqwqwq 閱讀(2507) | 評(píng)論 (4)編輯 收藏
         摘要: org.eclipse.jface.viewers.TreeViewer

    的繼承關(guān)系是  閱讀全文
    posted @ 2008-04-23 00:10 wqwqwqwqwq 閱讀(4857) | 評(píng)論 (3)編輯 收藏
    目前 ext已經(jīng)全面升級(jí)了主站,而且也release2.1版本,并新增了一些例子。
    最近發(fā)布的Firefox3 beta 5版本,個(gè)人認(rèn)為還是比較不錯(cuò),運(yùn)行JS的也更快、上網(wǎng)速度也快了很多。
    但經(jīng)原來做的一些js程序測(cè)試,ext2.0版本運(yùn)行在FF3Beta5上還存在一些顯示問題。

    posted @ 2008-04-22 12:50 wqwqwqwqwq 閱讀(1464) | 評(píng)論 (1)編輯 收藏
         摘要: 昨天寫了個(gè)關(guān)于圖庫的總結(jié)mail 在這貼下,以供參考,當(dāng)然望不吝賜教  閱讀全文
    posted @ 2008-04-21 18:09 wqwqwqwqwq 閱讀(1423) | 評(píng)論 (0)編輯 收藏
         摘要: 前兩天寫了一個(gè)處理邏輯表達(dá)式的小程序,可以用來處理專家系統(tǒng)實(shí)事等邏輯關(guān)系表達(dá)式。  閱讀全文
    posted @ 2008-02-26 19:05 wqwqwqwqwq 閱讀(2592) | 評(píng)論 (2)編輯 收藏
         摘要: EasyMock 是一套通過簡單的方法對(duì)于指定的接口或類生成 Mock 對(duì)象的類庫,它能利用對(duì)接口或類的模擬來輔助單元測(cè)試。本文將對(duì) EasyMock 的功能和原理進(jìn)行介紹,并通過示例來說明如何使用 EasyMock 進(jìn)行單元測(cè)試。   閱讀全文
    posted @ 2008-02-18 22:14 wqwqwqwqwq 閱讀(770) | 評(píng)論 (0)編輯 收藏
         摘要: Craigslist的網(wǎng)站上沒有圖片,只有密密麻麻的文字,標(biāo)著各種生活信息,是個(gè)巨大無比的網(wǎng)上分類廣告加BBS的組合...  閱讀全文
    posted @ 2008-01-21 13:06 wqwqwqwqwq 閱讀(2537) | 評(píng)論 (0)編輯 收藏
    posted @ 2007-12-25 20:25 wqwqwqwqwq 閱讀(438) | 評(píng)論 (0)編輯 收藏
         摘要: Trie樹是一棵度 m ≥ 2 的樹,它的每一層分支不是靠整個(gè)關(guān)鍵碼的值來確定,而是由關(guān)鍵碼的一個(gè)分量來確定。  閱讀全文
    posted @ 2007-12-13 20:07 wqwqwqwqwq 閱讀(1737) | 評(píng)論 (0)編輯 收藏
         摘要: For myself learning.
    Personal Mastery  閱讀全文
    posted @ 2007-12-09 18:28 wqwqwqwqwq 閱讀(1459) | 評(píng)論 (3)編輯 收藏
         摘要: Have you read Jess In Action by Earnest J. Freedman-Hill? It's one of the better books out there on rule engines, though it does require some experience to get the most out of the book.
    A variation on the bookstore could be recommendation engine. That would provide an opportunity to use a rule engine for direct matching on category/subcategory and aggregations.  閱讀全文
    posted @ 2007-11-29 10:42 wqwqwqwqwq 閱讀(984) | 評(píng)論 (5)編輯 收藏
         摘要: IBM Dump Analyzer for Java是來分析虛擬機(jī)穩(wěn)定性的一種可擴(kuò)展框架。對(duì)Java虛擬機(jī)生成的產(chǎn)物進(jìn)行自動(dòng)診斷。  閱讀全文
    posted @ 2007-11-16 15:36 wqwqwqwqwq 閱讀(1246) | 評(píng)論 (1)編輯 收藏
         摘要: 實(shí)在忍受不了sun的做事風(fēng)格和它的開發(fā)工具了,nb的beta6一踏糊涂一堆bug,唉~想著就想起來sun中國弄個(gè)nb插件的比賽不僅過程糟糕,獲獎(jiǎng)了居然還不兌現(xiàn)承諾,到現(xiàn)在也杳無音信,估計(jì)是證書也不想發(fā)了,真是讓大家對(duì)它越發(fā)感到?jīng)]有信心~~~~~~~~~不提這個(gè)了,還是講講Europa 和 myeclipse, 最近在寫一個(gè)基于規(guī)則的引擎,用的Europa 和myeclipse6 感覺非常舒服,myeclipse的功能也大大加強(qiáng)了比如改進(jìn)了javaEE5 提高了EJB3開發(fā)效率可以支持從數(shù)據(jù)模型到bean的轉(zhuǎn)換,java的持久化程度及其Spring-JPA的高度集成。開發(fā)ajax的朋友可以發(fā)現(xiàn) myeclipse對(duì)ajax的開發(fā)和測(cè)試做的也非常好,尤其是對(duì)js的調(diào)試。Web開發(fā)的另一個(gè)特點(diǎn)是支持RAD web。nb原來喊的一項(xiàng)特色是集成了matisse,在myeclipse目前也集成了它而且對(duì)于可視化swing開發(fā)非常方便,當(dāng)然你也可以自己按照,不直接更新。
    myeclipse中集成的derby和tomcat也大大加速了服務(wù)器的連接和部署,調(diào)試等。至于db視圖個(gè)人使用oracle  閱讀全文
    posted @ 2007-11-11 15:11 wqwqwqwqwq 閱讀(2247) | 評(píng)論 (11)編輯 收藏
         摘要: Given a picture composed entirely of horizontal and vertical line segments, calculate the minimum number of times you must lift your pen to trace every line segment in the picture exactly n times.
    Each line segment will be of the form " " (quotes for clarity), representing a segment from (x1,y1) to (x2,y2). Segments may cross each other. Segments may also overlap, in which case you should count the overlapping region as appearing in the drawing only once. For example, say t  閱讀全文
    posted @ 2007-10-30 21:36 wqwqwqwqwq 閱讀(1188) | 評(píng)論 (0)編輯 收藏
         摘要: In most states, gamblers can choose from a wide variety of different lottery games. The rules of a lottery are defined by two integers (choices and blanks) and two boolean variables (sorted and unique). choices represents the highest valid number that you may use on your lottery ticket. (All integers between 1 and choices, inclusive, are valid and can appear on your ticket.) blanks represents the number of spots on your ticket where numbers can be written.  閱讀全文
    posted @ 2007-10-24 21:20 wqwqwqwqwq 閱讀(1205) | 評(píng)論 (1)編輯 收藏
         摘要:
    Let's say you have a binary string such as the following:
    011100011
    One way to encrypt this string is to add to each digit the sum of its adjacent digits. For example, the above string would become:
    123210122  閱讀全文
    posted @ 2007-10-23 13:34 wqwqwqwqwq 閱讀(1055) | 評(píng)論 (1)編輯 收藏
         摘要: People enjoy mazes, but they also get them dirty. Arrows, graffiti, and chewing gum are just a few of the souvenirs people leave on the walls. You, the maze keeper, are assigned to whiten the maze walls. Each face of the wall requires one liter of paint, but you are only required to paint visible faces. You are given a map of the maze, and you must determine the amount of paint needed for the job.  閱讀全文
    posted @ 2007-10-21 21:28 wqwqwqwqwq 閱讀(1460) | 評(píng)論 (1)編輯 收藏
         摘要: In written languages, some symbols may appear more often than others. Expected frequency tables have been defined for many languages. For each symbol in a language, a frequency table will contain its expected percentage in a typical passage written in that language. For example, if the symbol "a" has an expected percentage of 5, then 5% of the letters in a typical passage will be "a". If a passage contains 350 letters, then 'a' has an expected count of 17.5 for that passage (17.5 = 350 * 5%). Pl  閱讀全文
    posted @ 2007-10-21 20:14 wqwqwqwqwq 閱讀(917) | 評(píng)論 (1)編輯 收藏
         摘要: A speed radar is installed in a highway zone where the maximum speed limit is maxLimit mph, and the minimum speed limit is minLimit mph.  閱讀全文
    posted @ 2007-10-20 13:25 wqwqwqwqwq 閱讀(1262) | 評(píng)論 (1)編輯 收藏
         摘要: 好長時(shí)間沒寫程序了感覺,忘了很多東西,呵呵,今天打開Eclipse寫了一個(gè)Struts的小應(yīng)用,也回顧了一遍它的主要內(nèi)容,這篇隨筆就把整理的一些東西貼出來吧。  閱讀全文
    posted @ 2007-10-07 16:55 wqwqwqwqwq 閱讀(1020) | 評(píng)論 (0)編輯 收藏
         摘要: 本程序?yàn)閮?yōu)化,比較好的方法是,進(jìn)行曲線積分,算誤差比進(jìn)行方程約束,由于時(shí)間比較少,稍候會(huì)給出優(yōu)化程序。  閱讀全文
    posted @ 2007-08-14 17:27 wqwqwqwqwq 閱讀(1006) | 評(píng)論 (0)編輯 收藏
         摘要: A simple implement of own stack  閱讀全文
    posted @ 2007-08-03 18:14 wqwqwqwqwq 閱讀(996) | 評(píng)論 (0)編輯 收藏
         摘要: To find a max segment in a array which includes negative and positive no.There r several methods to solve this question.  閱讀全文
    posted @ 2007-07-31 12:45 wqwqwqwqwq 閱讀(846) | 評(píng)論 (0)編輯 收藏
         摘要: 今天很早的來到公司,首先查收了一下郵箱,發(fā)現(xiàn)5封新郵件,仔細(xì)的看了下都是關(guān)于我前天申請(qǐng)一個(gè)IBM USA那邊的一個(gè)DB訪問權(quán)限的郵件。  閱讀全文
    posted @ 2007-07-27 08:55 wqwqwqwqwq 閱讀(297) | 評(píng)論 (2)編輯 收藏
         摘要: Sun has just announced the winners of netbeans plugin competition  閱讀全文
    posted @ 2007-07-21 23:34 wqwqwqwqwq 閱讀(1138) | 評(píng)論 (0)編輯 收藏
    PMI
         摘要: PMI(Performance MonitoringInfrastructure)   閱讀全文
    posted @ 2007-07-13 17:32 wqwqwqwqwq 閱讀(1186) | 評(píng)論 (2)編輯 收藏
    there r so many sundries during these days and almost every point is focussing on papers\projects\ ...\recommending data for my next master degree, but my thought just is in a mess, i cannot describe the stage && status except paying more attention,well,just feeling time is out of my hand.the only thing I am looking forward is the result of nb plugin competition and i will send the request and willing letter to the professors later but then.I m believing that though  have lost the opportunity of my target ~~God, it's so pity for a sudden change,at the same time, I stood with everything.I have got another time now and have prepared all the condition for the coming applying.thx in advance for my friends, because u have give a stage and some suporting.especially to stand^-^.TracyYan now has just rushing in && strangely,I find~~~~after six years,why not then, I have also no answers, may be pretty but not really for the feeling,~~~~~.
    Yestoday I have collected some data about computer science department professors of pku, bless.
    benny is a so kind person though he(she is a judge, but i really want to say,actually not to him.here the only puzzlement is why now after a month asking the method how to use the tool and why dont know the document which has contains all the info he want to know, I know, really, each guy is busy, busy with one's sundries,so many! Symptom.


    posted @ 2007-07-11 22:19 wqwqwqwqwq 閱讀(527) | 評(píng)論 (0)編輯 收藏
         摘要: 首先說點(diǎn)別的:),今天google adsense給我回信關(guān)于blog頭搜索不好用的原因是嵌在了里。我評(píng)論的前兩條是表揚(yáng)google...  閱讀全文
    posted @ 2007-06-02 23:16 wqwqwqwqwq 閱讀(1519) | 評(píng)論 (8)編輯 收藏
         摘要: 好長時(shí)間沒寫隨筆了^^,主要是因?yàn)檫@幾天很忙,ibm的、學(xué)校的、還有sun的插件大賽,但是這段時(shí)間自己確一直在學(xué)習(xí),在繼續(xù)關(guān)注技術(shù)的進(jìn)展,隨著這篇關(guān)注焦點(diǎn),在之后的幾天里,我會(huì)繼續(xù)寫一些,IBM SOA、SOAP、RBD、EGL還有我們HotJava的 SmallWorld等內(nèi)容。
    JavaFX當(dāng)前是備受SUN推崇和重點(diǎn)推廣的項(xiàng)目之一,也是Java技術(shù)繼續(xù)演化的內(nèi)容之一。  閱讀全文
    posted @ 2007-05-31 11:03 wqwqwqwqwq 閱讀(1222) | 評(píng)論 (0)編輯 收藏
         摘要: 今天瀏覽網(wǎng)頁,看見篇寫JNDI比較基礎(chǔ),也比較詳細(xì)的文章,又自己整理了一下,post到新手區(qū)了,。。。。:)JNDI是java訪問名字和目錄服務(wù)的接口,與JDBC一樣,它僅僅只定義了一套服務(wù)接口,實(shí)現(xiàn)由具體廠商提供。作為j2ee核心組件之一,它為應(yīng)用程序查找其他程序組件和資源提供了統(tǒng)一的接口,其中最常見的用途就是數(shù)據(jù)源的配置、EJB名字查找、JMS相關(guān)配置等。JNDI的架構(gòu)如下圖。在JDK1.3中...  閱讀全文
    posted @ 2007-05-14 23:33 wqwqwqwqwq 閱讀(816) | 評(píng)論 (0)編輯 收藏
    ITM
         摘要: 開篇,哈哈哈,我喜歡這句話“NO MONEY ONLY WORK DADADI”。
    ITM provides out of box uses to quickly deploy and active the app with the best ibm practice.admins can define the user's views,threshold and so on.Tivoli Enterprise Monitoring Agents are available for monitoring different types of platforms and applications, including mainframes,middleware,distributed,and database...  閱讀全文
    posted @ 2007-05-11 23:00 wqwqwqwqwq 閱讀(957) | 評(píng)論 (0)編輯 收藏
         摘要: CLI command line interface ...  閱讀全文
    posted @ 2007-05-10 23:23 wqwqwqwqwq 閱讀(988) | 評(píng)論 (0)編輯 收藏
         摘要: 據(jù)說極有可能迅速取代目前流行的SWING和SWT技術(shù)。  閱讀全文
    posted @ 2007-05-07 22:30 wqwqwqwqwq 閱讀(991) | 評(píng)論 (1)編輯 收藏
    北京今天有些風(fēng),但是依然擋不住本有的悶熱。傍晚下樓吃飯,就像突然走進(jìn)蒸籠一樣的感覺,想象著眼前如果是大海該多好啊,說到這真是慚愧,我在大連待了20多年,居然不會(huì)游泳,哎~...吃完飯,我從上地佳園溜達(dá)到公司,休息了一下。本想著看點(diǎn)書,但是這個(gè)時(shí)候似乎是快到下班的時(shí)間了,看著白領(lǐng)一族的匆匆離去、聯(lián)想圍欄旁悠然自得的粉刷小匠,我突然萌生要離開這兒,去高校轉(zhuǎn)轉(zhuǎn)的念頭。
    繞過DASCOM沿著信息路來到了五街,在路牌下等者656...我真的實(shí)在受不了了太陽的直射和等車的煩躁,終于決定今天也學(xué)一次抗日前的長征,學(xué)一次開學(xué)前的軍訓(xùn),...自己走到北大,也算熟悉熟悉一路的環(huán)境。現(xiàn)在回來我真的發(fā)現(xiàn)這是一個(gè)了不起的決定,因?yàn)檫@實(shí)在太累,走去五環(huán)-北大-四環(huán),又跑回上地,即使在地圖上只能算作一指之距。想想先前走到北京體校時(shí)看見一個(gè)學(xué)生繞學(xué)校跑時(shí)的竊竊思緒,我更敬佩自己。腳累得很,但我也算是準(zhǔn)備好了這段時(shí)間出門在外的辛苦...RuiRui,你說得很好,堅(jiān)持久了,也就好了。

    posted @ 2007-05-07 21:40 wqwqwqwqwq 閱讀(447) | 評(píng)論 (0)編輯 收藏
         摘要: 今天自己突然想起來整理一下標(biāo)準(zhǔn)的charset,感覺還算有必要。當(dāng)然java...  閱讀全文
    posted @ 2007-05-06 19:50 wqwqwqwqwq 閱讀(617) | 評(píng)論 (0)編輯 收藏
    昨天來得北京,準(zhǔn)備我以后幾個(gè)月的實(shí)習(xí)生活。北京還是和我原來來的感覺一樣,到處都是人流車流,太陽總是離得很近,風(fēng)吹起的揚(yáng)塵讓我透不過氣...唯一使人感覺現(xiàn)代感的和不很疲憊的就是坐著北京的城鐵和地鐵,起碼它們不會(huì)因?yàn)樾苟S行┌参康氖亲贗BM的辦公大廳,我喜歡IT深邃的魅力,和品茶的悠然...
    昨天一天十分疲倦,或許正如跟個(gè)遠(yuǎn)方的小弟在instantChat上所談的,這一天真的讓我品到了生活的很多酸澀和勞苦,我漸漸發(fā)現(xiàn)走路也是一件非常非常累得事情,漸漸發(fā)現(xiàn)與人相處的道理和囊中的羞澀。其實(shí)昨天一天就花了我3千多,房屋的中介賺得很多感覺,1200的房子,中介費(fèi)也要得1200,還有押金。不過房子我到是感覺還好,在上地佳園,至少感覺這的環(huán)境和保安還算可以,只是與人合租,不是很自在。
    昨天也累壞了我一個(gè)高中同學(xué),她陪我到處轉(zhuǎn)了一天,真的很謝謝她。
    不知道下一步會(huì)如何,但是我得準(zhǔn)備好在這煎熬悶熱、運(yùn)籌自己的生活、學(xué)會(huì)太多太多...

    posted @ 2007-05-06 12:24 wqwqwqwqwq 閱讀(463) | 評(píng)論 (0)編輯 收藏
         摘要: 這兩天找了一些portal相關(guān)的資料,也從中學(xué)到了很多東西。據(jù)說我們學(xué)校還有個(gè)portal,不過現(xiàn)在不知為什么down掉了...  閱讀全文
    posted @ 2007-04-27 20:48 wqwqwqwqwq 閱讀(2779) | 評(píng)論 (6)編輯 收藏
         摘要: Sun has rolled out the Temple of Sun Contest with a US$5,000 cash prize. This is a great vehicle to promote Sun Studio on campus.  閱讀全文
    posted @ 2007-04-24 11:00 wqwqwqwqwq 閱讀(1355) | 評(píng)論 (2)編輯 收藏
    ANT
         摘要: ANT是一個(gè)基于JAVA的自動(dòng)化腳本引擎,腳本格式為XML。除了做JAVA編譯相關(guān)任務(wù)外,ANT還可以通過插件實(shí)現(xiàn)很多應(yīng)用的調(diào)用。  閱讀全文
    posted @ 2007-04-19 14:56 wqwqwqwqwq 閱讀(246) | 評(píng)論 (0)編輯 收藏
         摘要: 軟件開發(fā)習(xí)慣中一個(gè)細(xì)微更改都可能會(huì)對(duì)軟件質(zhì)量產(chǎn)生巨大改進(jìn)。將單元測(cè)試合并到開發(fā)過程中,然后從長遠(yuǎn)角度來看它可以節(jié)省多少時(shí)間和精力。本文通過使用代碼樣本說明了單元測(cè)試的種種好處,特別是使用 Ant 和 JUnit 帶來的各種方便。  閱讀全文
    posted @ 2007-04-19 14:52 wqwqwqwqwq 閱讀(474) | 評(píng)論 (0)編輯 收藏
         摘要: 在Ant出現(xiàn)之前,構(gòu)建和部署Java應(yīng)用需要使用包括特定平臺(tái)的腳本、Make文件、各種版本的IDE甚至手工操作的“大雜燴”。現(xiàn)在,幾乎所有的開源 Java項(xiàng)目都在使用Ant,大多數(shù)公司的內(nèi)部項(xiàng)目也在使用Ant。Ant在這些項(xiàng)目中的廣泛使用自然導(dǎo)致了讀者對(duì)一整套Ant最佳實(shí)踐的迫切需求。  閱讀全文
    posted @ 2007-04-19 14:45 wqwqwqwqwq 閱讀(487) | 評(píng)論 (0)編輯 收藏
         摘要: By the way,there is a tool,Sun Device Detection Tool ,which is based on jnlp protocol, can tell us in just a few minutes whether the Solaris OS supports the devices that are detected in our x86 system, in advance.  閱讀全文
    posted @ 2007-04-14 23:52 wqwqwqwqwq 閱讀(1274) | 評(píng)論 (0)編輯 收藏
         摘要: 昨晚同學(xué)找我?guī)兔懸粋€(gè)利用GOOGLE API的小程序,也比較感興趣所以就應(yīng)下了。下載了GOOGLE提供的googleapi.jar,大約花了20多分鐘,寫了這個(gè)小程序,由于需要提供GOOGLE key所以也懶得去申請(qǐng),就沒有測(cè)試~~呵呵  閱讀全文
    posted @ 2007-04-14 15:22 wqwqwqwqwq 閱讀(3561) | 評(píng)論 (9)編輯 收藏
         摘要: 元數(shù)據(jù)是利用JDBC創(chuàng)建和操作數(shù)據(jù)庫對(duì)象的一個(gè)很重要的概念和應(yīng)用,所以今天我特地的找了一些詳細(xì)解析個(gè)概念的資料,和利用java來操作的實(shí)例。  閱讀全文
    posted @ 2007-04-12 23:58 wqwqwqwqwq 閱讀(1719) | 評(píng)論 (0)編輯 收藏
    出于java的安全限制,System.getProperty("line.seperator")是不能夠直接取得的。可以這樣做:
    String lineSeparator = (String) java.security.AccessController.doPrivileged(
                   
    new sun.security.action.GetPropertyAction("line.separator"));
    具體參考java.io.BufferedWriter的源代碼就可以找到上面這行代碼。 DriverManager里也有
     1     private static void loadInitialDrivers() {
     2         String drivers;
     3 
     4         try {
     5             drivers = (String) java.security.AccessController
     6                     .doPrivileged(new sun.security.action.GetPropertyAction(
     7                             "jdbc.drivers"));
     8         } catch (Exception ex) {
     9             drivers = null;
    10         }
    11         println("DriverManager.initialize: jdbc.drivers = " + drivers);
    12         if (drivers == null) {
    13             return;
    14         }
    15         while (drivers.length() != 0) {
    16             int x = drivers.indexOf(':');
    17             String driver;
    18             if (x < 0) {
    19                 driver = drivers;
    20                 drivers = "";
    21             } else {
    22                 driver = drivers.substring(0, x);
    23                 drivers = drivers.substring(x + 1);
    24             }
    25             if (driver.length() == 0) {
    26                 continue;
    27             }
    28             try {
    29                 println("DriverManager.Initialize: loading " + driver);
    30                 Class.forName(driver, true, ClassLoader.getSystemClassLoader());
    31             } catch (Exception ex) {
    32                 println("DriverManager.Initialize: load failed: " + ex);
    33             }
    34         }
    35     }
    sun.security.action.GetPropertyAction() hasn't been publiced.actually and exactly,it's not be doced,which reflects that sun doesn't surport us to use these class or method which is lower class,usually, we use the classes api tells us is proier and maybe has called these undoc class  but usually for us ,it's not necessary.so in the program of us or even others ,we could and i think it's really better for us to neglect  them which u can find out in the jar file of rt.jar.

    posted @ 2007-04-11 16:35 wqwqwqwqwq 閱讀(564) | 評(píng)論 (0)編輯 收藏
         摘要: 可供程序利用的資源(內(nèi)存、CPU時(shí)間、網(wǎng)絡(luò)帶寬等)是有限的,優(yōu)化的目的就是讓程序用盡可能少的資源完成預(yù)定的任務(wù)。優(yōu)化通常包含兩方面的內(nèi)容:減小代碼的體積,提高代碼的運(yùn)行效率。本文討論的主要是如何提高代碼的效率。  閱讀全文
    posted @ 2007-04-09 11:12 wqwqwqwqwq 閱讀(472) | 評(píng)論 (0)編輯 收藏
    1.變量引用的時(shí)候,空指針情況的防止,即為空檢查.
    2.數(shù)學(xué)運(yùn)算異常,如除0的情況.數(shù)組越界異常,字符串訪問過界
    3.數(shù)據(jù)庫檢索記錄,結(jié)果記錄行數(shù)狀況的處理.
    4.畫面顯示項(xiàng)目的確認(rèn).
    5.畫面顯示項(xiàng)目達(dá)到上限時(shí)情況的處理.
    6.系統(tǒng)出錯(cuò)的時(shí)候,異常信息是否正確.
    7.數(shù)據(jù)庫連接,游標(biāo)的處理.
    8.數(shù)學(xué)運(yùn)算時(shí),數(shù)據(jù)精度的處理.
    posted @ 2007-04-09 11:06 wqwqwqwqwq 閱讀(219) | 評(píng)論 (0)編輯 收藏
    Today with tomcat admin, a Graphic interface for us to config the JNDI for our program,I configured the context and connection pool jioning IBM DB2 ExC-9.Actually,JNDI is an API specified in Java technology that provides naming and directory functionality to applications written in the Java programming language. It is designed especially for the Java platform using Java's object model. Using JNDI, applications based on Java technology can store and retrieve named Java objects of any type. In addition, JNDI provides methods for performing standard directory operations, such as associating attributes with objects and searching for objects using their attributes (Name-Value,context).JNDI is also defined independent of any specific naming or directory service implementation. It enables applications to access different, possibly multiple, naming and directory services using a common API. Different naming and directory service providers can be plugged in seamlessly behind this common API. This enables Java technology-based applications to take advantage of information in a variety of existing naming and directory services, such as LDAP, NDS, DNS, and NIS(YP), as well as enabling the applications to coexist with legacy software and systems. Using JNDI as a tool, we can build new powerful and portable applications that not only take advantage of Java's object model but are also well-integrated with the environment in which they are deployed.
    A directory is typically used to associate attributes with objects. A person object, for example, can have a number of attributes, such as the person's surname, fisrtName,telephone numbers, electronic mail address and so on. Using JNDI, to retrieve the email address of a person object, the code looks as follows.
    1 Attribute personAttribute=directory.getAttributes(personName).get("email");
    2 String email = (String)personAttribute.get();
    (Recently,finding that blogjava can help us format our code,that's perfect,but if can max the editor area which will enhance the function and coursely be better:).)
    An intuitive model for the Java programmer is to be able to lookup objects like printers and databases from the naming/directory service. Using JNDI, to lookup a printer object, the code looks as follows. (it's important and most used)
    1 Printer printer =(Printer)namespace.lookup(printerName);
    2 printer.print(document);

    posted @ 2007-04-08 15:10 wqwqwqwqwq 閱讀(470) | 評(píng)論 (0)編輯 收藏

    //*******************The Log class
    import java.io.BufferedWriter;
    import java.io.File;
    import java.io.FileWriter;
    import java.io.IOException;
    import java.uitl.Date;
    import java.text.DateFormat;

    public class Log{
       private static final String filePath = PropertyReader.getResource("Log_File_Path");//Supposing we have define in the last ProperyReader class and the file
      
       public static final String EXCEPTION                  =   "Exception";
       public static final String CREATE_STAFF           =   "Create Staff";
       public static final String EDIT_STAFF                 =   "Edit Staff";
       public static final String DELETE_STAFF            =   "Delete Staff";
       public static final String RECORD_HAS_EXIST  =   "Record Has Exist";

       public static void log(String msg_type, Exception e){
          StringBuffer errMsg = new StringBuffer(e.toString);
         
          for(int i=0;i<e.getStackTrace().length;i++){
             errMsg.append("\n\t at");
             errMsg.append(e.getStackTrace()[i].toString);
          }
          log(msg_type,errMsg.toString());
          OptionPanel.showErrMsg("Sorry,System may have an error \n System will exit");
          System.exit(-1);
       }

      public static void log(String msg.type,Staff staff){
         String msg = null;
         if(msg_type == CREATE_STAFF){
             msg = staff.toString() + "has benn created";
         }else if(msg_type == EDIT_STAFF){
             msg = staff.toString() + "has been Changed";
         }else if(msg_type == DELETE_STAFF){
             msg = staff.toString() + "has been Deleted";
         }else if(msg_type == RECORD_HAS_EXIST){
             msg = staff.toString() + "has exist in the database";
         }
         log(msg_type,msg);
      }

      private static void log(String msg_type,String msg){
          BufferedWriter out = null;
          DateFormat df = DateFormat.getDateInstance(DateFormat.MEDIUM);
         
          try{
            out = new BufferedWriter(new FileWriter(getLogFilePath(),true));//如果為 true,則將字節(jié)寫入文件末尾處,而不是寫入文件開始處
            out.write("["+df.format(new Date()) + "] <" + msg_type + "> :" + msg);
            out.newline();
            out.newline();
          }catch(IOException e){
              e.printStackTrace();
          }finally{
             try{
               if(out!=null){
                  out.close();
               }
             }catch(IOException e){
                e.printStackTrace();
             }
          }
      }

      private static String getLogFilePath(){
         File logDir = new File(filePath);
         if(!logDir.exists()){
           logDir.mkdir();
         }
        
         int i = 1;
         String fileName = filePath + "log_";
         File file = new File(fileName + i + ".txt");
       
         while(file.exists() && file.length() > 30000L) {
             i++;
             file = new File(fileName + i + ".txt");
         }
       
          return fileName + i + ".txt"
      }
    }

    //*****************************The OptionPanel Dialog Class for the Log Class
    import javax.swing.JOptionPane;

    public class OptionPanel {
       private static final String appTitle = PropertyReader.getResource("App_Title");//suposing the file has been established and the property app-title stands for the name of application
       private static final MainFrame frame = MainFrame.getMainFrame();

       public static void showWarningMsg(String msg){
          JOptionPane.showMessageDialog(frame,msg,appTitle,JOptionPane.WARNING_MESSAGE);
       }
       public static void showErrMsg(String msg){
           JOptionPane.showMessageDialog(frame,msg,appTitle,JOptionPane.Error_MESSAGE);
       }
       public static int showConfirmMsg(String msg){
            return JOptionPane.showConfirmDialog(frame,msg,appTitle,JOptionPane.YES_NO_OPTON,JOptionPane.QUESTION_MESSAGE);
       }
    }

    posted @ 2007-04-05 10:01 wqwqwqwqwq 閱讀(872) | 評(píng)論 (1)編輯 收藏

    In a project, we can write a class to read the properties.As following,

    import java.io.InputStream;
    import java.io.IOException;
    import java.util.Properties;

    public class PropertyReader{
       private static Properties property = null;
      
       static{
          InputSteam stream = null;
          try{
            stream=PropertyReader.class.getResourceAsStream("/resource/properties.properties");
            property = new Properties();
            property.load(stream);
          }catch(IOException e){
              e.printStackTrace();
          }finally{
              if(stream != null){
                 try{
                    stream.close();
                 }catch(IOException e){
                    e.printStackTrace();
                 }           
              }
          }
       }
       public static String getResource(String key){
         if(property == null){
           return null;// init error;
         }
         
         return property.getProperty(key);
       }
    }

    posted @ 2007-04-05 08:13 wqwqwqwqwq 閱讀(482) | 評(píng)論 (0)編輯 收藏
    <2007年4月>
    25262728293031
    1234567
    891011121314
    15161718192021
    22232425262728
    293012345




    常用鏈接

    留言簿(10)

    隨筆分類(95)

    隨筆檔案(97)

    文章檔案(10)

    相冊(cè)

    J2ME技術(shù)網(wǎng)站

    java技術(shù)相關(guān)

    mess

    搜索

    •  

    最新評(píng)論

    閱讀排行榜

    校園夢(mèng)網(wǎng)網(wǎng)絡(luò)電話,中國最優(yōu)秀的網(wǎng)絡(luò)電話
    主站蜘蛛池模板: 久久久www成人免费毛片| 丰满妇女做a级毛片免费观看| 亚洲国产成人久久综合碰碰动漫3d | 亚洲午夜免费视频| 亚洲av色影在线| 精品无码一区二区三区亚洲桃色| 亚洲av无码片在线播放| 少妇中文字幕乱码亚洲影视| 99ri精品国产亚洲| 亚洲神级电影国语版| 亚洲人成免费网站| 亚洲欧美综合精品成人导航| 亚洲成AV人影片在线观看| 国产午夜亚洲精品不卡免下载| 西西人体大胆免费视频| 一级做a毛片免费视频| 中文字幕免费视频精品一| 久久国产免费一区二区三区| 91禁漫免费进入| 免费a级毛片高清视频不卡| 成人永久免费福利视频网站| 国产99视频精品免费视频7| 狠狠亚洲狠狠欧洲2019| 午夜亚洲国产理论秋霞| 亚洲一区在线免费观看| 国产亚洲精品AAAA片APP| 一级毛片免费不卡直观看| 黄页免费在线观看| 人成午夜免费视频在线观看| 日本久久久免费高清| 国产亚洲精品无码拍拍拍色欲| 亚洲一级二级三级不卡| 亚洲www在线观看| 高潮毛片无遮挡高清免费视频| 三年片免费高清版 | 亚洲日韩av无码中文| 无遮挡呻吟娇喘视频免费播放| 国产免费内射又粗又爽密桃视频| 久久国产精品免费观看| 毛片a级毛片免费观看免下载| 亚洲人成影院在线无码观看|