Our highest priority is to satisfy the customer through early and continuous delivery of valuable software.

          我們的最高目標(biāo)是,通過盡早和持續(xù)地交付有價值的軟件來滿足客戶。

          Welcome changing requirements, even late in development. Agile processes harness change for the customer's competitive advantage.

          歡迎對需求提出變更——即使是在項目開發(fā)后期。要善于利用需求變更,幫助客戶獲得競爭優(yōu)勢。

          Deliver working software frequently, from a couple of weeks to a couple of months, with a preference to the shorter timescale.

          要不斷交付可用的軟件,周期從幾周到幾個月不等,且越短越好。

          Business people and developers must work together daily throughout the project.

          項目過程中,業(yè)務(wù)人員與開發(fā)人員必須在一起工作。

          Build projects around motivated individuals. Give them the environment and support they need, and trust them to get the job done.

          要善于激勵項目人員,給他們以所需要的環(huán)境和支持,并相信他們能夠完成任務(wù)。

          The most efficient and effective method of conveying information to and within a development team is face-to-face conversation.

          無論是團隊內(nèi)還是團隊間,最有效的溝通方法是面對面的交談。

          Working software is the primary measure of progress.

          可用的軟件是衡量進(jìn)度的主要指標(biāo)。

          Agile processes promote sustainable development. The sponsors, developers, and users should be able to maintain a constant pace indefinitely.

          敏捷過程提倡可持續(xù)的開發(fā)。項目方、開發(fā)人員和用戶應(yīng)該能夠保持恒久穩(wěn)定的進(jìn)展速度。

          Continuous attention to technical excellence and good design enhances agility.

          對技術(shù)的精益求精以及對設(shè)計的不斷完善將提升敏捷性。

          Simplicity--the art of maximizing the amount of work not done--is essential.

          要做到簡潔,即盡最大可能減少不必要的工作。這是一門藝術(shù)。

          The best architectures, requirements, and designs emerge from self-organizing teams.

          最佳的架構(gòu)、需求和設(shè)計出自于自組織的團隊。

          At regular intervals, the team reflects on how to become more effective, then tunes and adjusts its behavior accordingly.

          團隊要定期反省如何能夠做到更有效,并相應(yīng)地調(diào)整團隊的行為。

          posted @ 2008-12-06 12:25 Robert Su 閱讀(140) | 評論 (0)編輯 收藏

          ExtJS例子中的分頁是基于JSON來傳遞對象的
          xmlReader跟JSONReader是有差別的
          今天遇到一個分頁問題一直困擾我,總是得不到正確的總數(shù)據(jù)數(shù)。
          后來發(fā)現(xiàn)xmlReader中的總記錄表示為totalRecords而JSONReader對應(yīng)的是totalCounts



          posted @ 2008-12-06 11:49 Robert Su 閱讀(1045) | 評論 (0)編輯 收藏

          今天跟師兄聊天,他說的一句話令我印象非常深刻——“搞編程3、4年如果還來問你搞java還是C,其實還是很傻逼”
          仔細(xì)想想很有道理,搞編程這么久了,其實語言對于程序來說限制很少,關(guān)鍵是對于整個系統(tǒng)體系的理解與把握。

          平時做好很明確的項目規(guī)劃、進(jìn)度管理、版本控制,其實這些雖然對于學(xué)生來說可能用到的不是特別多,但是還是應(yīng)該養(yǎng)成良好的習(xí)慣

          另外平時做這些代碼工人的工作也許對將來找工作意義不是特別大,所以有必要自己合理的安排下時間學(xué)習(xí)下其他的

          posted @ 2008-11-28 16:32 Robert Su 閱讀(185) | 評論 (0)編輯 收藏

          由于項目要部署在weblogic上,裝了一個weblogic來測試運行。
          安裝配置完之后提示

          ***************************************************************************
          The WebLogic Server did not start up properly.
          java.io.InvalidClassException: javax.management.MBeanAttributeInfo; local 
          class incompatible: stream classdesc serialVersionUID = 7043855487133450673, local class serialVersionUID = 8644704819898565848
              at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:
          562)
              at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:
          1583)
              at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:
          1496)
              at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:
          1583)
              at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:
          1496)
              at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:
          1732)
              at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:
          1329)
              at java.io.ObjectInputStream.readArray(ObjectInputStream.java:
          1667)
              at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:
          1323)
              at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:
          1947)
              at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:
          480)
              at javax.management.MBeanInfo.readObject(MBeanInfo.java:
          669)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
          39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
          25)
              at java.lang.reflect.Method.invoke(Method.java:
          597)
              at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:
          974)
              at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:
          1849)
              at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:
          1753)
              at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:
          1329)
              at java.io.ObjectInputStream.readObject(ObjectInputStream.java:
          351)
              at weblogic.management.internal.TypesHelper.getMBeanInfo(TypesHelper.java:
          261)
              at weblogic.management.internal.TypesHelper.getAdminOrConfigMBeanInfo(TypesHelper.java:
          366)
              at weblogic.management.internal.ConfigurationMBeanImpl.
          <init>(ConfigurationMBeanImpl.java:128)
              at weblogic.management.AdminServer.
          <init>(AdminServer.java:59)
              at weblogic.management.AdminServerAdmin.initialize(AdminServerAdmin.java:
          245)
              at weblogic.t3.srvr.T3Srvr.initializeHere(T3Srvr.java:
          753)
              at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:
          664)
              at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:
          342)
              at weblogic.Server.main(Server.java:
          32)
          --------------- nested within: ------------------
          weblogic.management.configuration.ConfigurationException:  
          - with nested exception:
          [java.io.InvalidClassException: javax.management.MBeanAttributeInfo; local 
          class incompatible: stream classdesc serialVersionUID = 7043855487133450673, local class serialVersionUID = 8644704819898565848]
              at weblogic.management.internal.TypesHelper.getMBeanInfo(TypesHelper.java:
          266)
              at weblogic.management.internal.TypesHelper.getAdminOrConfigMBeanInfo(TypesHelper.java:
          366)
              at weblogic.management.internal.ConfigurationMBeanImpl.
          <init>(ConfigurationMBeanImpl.java:128)
              at weblogic.management.AdminServer.
          <init>(AdminServer.java:59)
              at weblogic.management.AdminServerAdmin.initialize(AdminServerAdmin.java:
          245)
              at weblogic.t3.srvr.T3Srvr.initializeHere(T3Srvr.java:
          753)
              at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:
          664)
              at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:
          342)
              at weblogic.Server.main(Server.java:
          32)
          --------------- nested within: ------------------
          weblogic.management.configuration.ConfigurationError 
          - with nested exception:
          [weblogic.management.configuration.ConfigurationException:  
          - with nested exception:
          [java.io.InvalidClassException: javax.management.MBeanAttributeInfo; local 
          class incompatible: stream classdesc serialVersionUID = 7043855487133450673, local class serialVersionUID = 8644704819898565848]]
              at weblogic.management.internal.TypesHelper.getAdminOrConfigMBeanInfo(TypesHelper.java:
          377)
              at weblogic.management.internal.ConfigurationMBeanImpl.
          <init>(ConfigurationMBeanImpl.java:128)
              at weblogic.management.AdminServer.
          <init>(AdminServer.java:59)
              at weblogic.management.AdminServerAdmin.initialize(AdminServerAdmin.java:
          245)
              at weblogic.t3.srvr.T3Srvr.initializeHere(T3Srvr.java:
          753)
              at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:
          664)
              at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:
          342)
              at weblogic.Server.main(Server.java:
          32)
          ***************************************************************************

          折騰了半天發(fā)現(xiàn)是因為weblogic8.1只能對應(yīng)JDK1.4
          這個確實不如Tomcat方便




          posted @ 2008-11-27 10:36 Robert Su 閱讀(197) | 評論 (0)編輯 收藏

          系統(tǒng)爬蟲部分已經(jīng)相當(dāng)完善了,現(xiàn)在開始做前段開發(fā),html+avaScript+spring+Hibernate
          ExtJS其實還是很強大,感覺有種webservice編程的感覺

          今天MyEclipse中可以連到數(shù)據(jù)庫上,并且可以顯示各個表,可是寫個Junit test 拋出異常
          Javava.sql.SQLException: Io 異常: The Network Adapter could not establish the connection
          JUnit控制臺輸出是這樣的

          Could not connect to:  : 11716            
          java.net.SocketException: Unrecognized Windows Sockets error: 
          10106: create
              at java.net.Socket.createImpl(Unknown Source)
              at java.net.Socket.
          <init>(Unknown Source)
              at java.net.Socket.
          <init>(Unknown Source)
              at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.connect(RemoteTestRunner.java:
          560)
              at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:
          377)
              at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:
          196)



          奇怪的是我用筆記本寫個測試連接就沒問題;
          不知道是Myeclipse出了問題還是系統(tǒng)出了問題,之前裝各種服務(wù)器把系統(tǒng)搞的有點毛病;
          希望這里有高人看到了給指點下這個問題原因在哪里~小弟先謝過

          posted @ 2008-11-25 12:31 Robert Su 閱讀(322) | 評論 (0)編輯 收藏

          <script>
          function a()
          {
          alert('some thing');
          }

          Ext.onReady(function(){
          Ext.get("btnAlert").addListener("click",a);
          });
          </script>
          <input id="btnAlert" type="button" value="alert框" />

          addLinster方法的另外一個簡寫形式是on
          Ext.get("btnAlert").on("click",a);
          ExtJS支持事件隊列,可以往對象的某一個事件中添加多個事件響應(yīng)函數(shù)——

          Ext.onReady(function(){	
          Ext.get("btnAlert").on("click",a);
          Ext.get("btnAlert").on("click",a);
          })






          posted @ 2008-11-24 23:09 Robert Su 閱讀(115) | 評論 (0)編輯 收藏

          Ext.onReady(function(){
              Ext.QuickTips.init();

            

              var dateMenu = new Ext.menu.DateMenu({
                  handler : 
          function(dp, date){
                      Ext.example.msg('Date Selected', 'You chose {
          0}.', date.format('M j, Y'));
                  }
              });

              
          var colorMenu = new Ext.menu.ColorMenu({
                  handler : 
          function(cm, color){
                      Ext.example.msg('Color Selected', 'You chose {
          0}.', color);
                  }
              });

              
          var menu = new Ext.menu.Menu({
                  id: 'mainMenu', 
                  items: [   
          //定義菜單中的元素
                      {
                          text: 'I like Ext',
                          checked: 
          true,     
                          checkHandler: onItemCheck
                      },
                   
                     '
          -',  //添加菜單上的分隔符
                     {
                          text: 'Radio Options',
                          menu: {      
          //定義二級菜單
                              items: [
                                
            '<b class="menu-title">Choose a Theme</b>',
                                  {
                                      text: 'Aero Glass',
                                      checked: 
          true,
                                      group: 'theme',
                                      checkHandler: onItemCheck
                                  }, {
                                      text: 'Vista Black',
                                      checked: 
          false,
                                      group: 'color',
                                      checkHandler: onItemCheck
                                  }
                              ]
                          }
                      },
                      {
                          text: 'Choose a Date',
                          iconCls: 'calendar',
                          menu: dateMenu

                      },
                      {
                          text: 'Choose a Color',
                          menu: colorMenu    //這里前面定義了

                      }
                  ]
              });

              
          var tb = new Ext.Toolbar();  
              tb.render('toolbar');

              tb.add({
                      text:'Button Menu',
                      iconCls: 'bmenu',  
          //
                      menu: menu  //分配menu到toolbar
                  });

              
          // functions to display feedback
              function onButtonClick(btn){
                  Ext.example.msg('Button Click','You clicked the 
          "{0}" button.', btn.text);
              }

              
          function onItemClick(item){
                  Ext.example.msg('Menu Click', 'You clicked the 
          "{0}" menu item.', item.text);
              }

              
          function onItemCheck(item, checked){
                  Ext.example.msg('Item Check', 'You {
          1} the "{0}" menu item.', item.text, checked ? 'checked' : 'unchecked');
              }

              
          function onItemToggle(item, pressed){
                  Ext.example.msg('Button Toggled', 'Button 
          "{0}" was toggled to {1}.', item.text, pressed);
              }

          });


          在html中加入
              <div id="toolbar"></div>

          posted @ 2008-11-18 16:50 Robert Su 閱讀(3008) | 評論 (4)編輯 收藏

           計算CPU利用率:
            1,   取出系統(tǒng)中CPU個數(shù);     
            2,   取出當(dāng)前系統(tǒng)時間(Ticks個數(shù)),減去原來保存的系統(tǒng)時間,得出從上次取值到目前的系統(tǒng)時間差;     
            3,   取出系統(tǒng)當(dāng)前空閑時間,減去原來保存的空閑時間,得出這個時間段空閑時間     
            4,   用這個時間段空閑時間除以系統(tǒng)時間,得出這段時間系統(tǒng)的CPU空閑率     
            5,   用100-(系統(tǒng)的空閑率)/(CPU個數(shù))所得的值就是CPU占有率     


              請問這個算法是否適用于多處理器情況?
              是否直接除以CPU個數(shù)就ok了?

          posted @ 2008-11-11 16:36 Robert Su 閱讀(551) | 評論 (0)編輯 收藏

          java是一種解析性的語言,可是多了一個中間步驟,就是把源代碼編譯成class文件,不過此編譯非編譯器的編譯,因為class里面不是機器語言或匯編語言,而是經(jīng)過編碼的8位字節(jié)二進(jìn)制流。JVM是java的解析器。

          python是一門地地道道的解析型語言。
          它們之間的效率誰更高呢?

          大頭 23:56:14
          “如果相同功能的class和python,class執(zhí)行要快,因為class已經(jīng)全部翻譯好了,python還要一句一句解析。”

          Java多了編譯成class的過程,所以效率相對于python要慢一些。

          事實上python也可以產(chǎn)生class一樣的東西
          字節(jié)編譯的.pyc文件
          “輸入一個模塊相對來說是一個比較費時的事情,所以Python做了一些技巧,以便使輸入模塊更加快一些。一種方法是創(chuàng)建 字節(jié)編譯的文件 ,這些文件以.pyc作為擴展名。字節(jié)編譯的文件與Python變換程序的中間狀態(tài)有關(guān)(是否還記得Python如何工作的介紹?)。當(dāng)你在下次從別的程序輸入這個模塊的時候,.pyc文件是十分有用的——它會快得多,因為一部分輸入模塊所需的處理已經(jīng)完成了。另外,這些字節(jié)編譯的文件也是與平臺無關(guān)的。所以,現(xiàn)在你知道了那些.pyc文件事實上是什么了。”——《python簡明教程》


          (煩請明白的看到了錯誤之處給指正:)

          附:
          編譯型語言,執(zhí)行速度快、效率高;依賴編譯器、跨平臺性差些。如C、C++、Delphi、Pascal,F(xiàn)ortran。
          解釋型語言,執(zhí)行速度慢、效率低;依賴解釋器、跨平臺性好。如Java、Basic.

          posted @ 2008-11-08 00:16 Robert Su 閱讀(4466) | 評論 (0)編輯 收藏

          利用類庫MySQLdb
          實例代碼如下:

          import MySQLdb
          conn 
          = MySQLdb.connect("localhost","root","111","test")
          c
          =conn.cursor()
          c.execute(
          """select * from name""")
          out 
          = c.fetchall();
          print out

          posted @ 2008-11-06 16:51 Robert Su 閱讀(811) | 評論 (0)編輯 收藏

          僅列出標(biāo)題
          共11頁: First 上一頁 3 4 5 6 7 8 9 10 11 下一頁 

          posts - 103, comments - 104, trackbacks - 0, articles - 5

          Copyright © Robert Su

          主站蜘蛛池模板: 鸡泽县| 子洲县| 北海市| 房山区| 布拖县| 永丰县| 天柱县| 临泽县| 张家口市| 平江县| 彭山县| 化德县| 海伦市| 湖口县| 新巴尔虎右旗| 三门峡市| 贵溪市| 临汾市| 西城区| 盐津县| 珠海市| 土默特右旗| 福海县| 凤冈县| 浙江省| 思南县| 安吉县| 阳春市| 元朗区| 岗巴县| 莱州市| 巧家县| 肃北| 中阳县| 霍山县| 荥阳市| 遂平县| 和平县| 新乡县| 随州市| 龙岩市|