Dev@Free

          zJun's Tech Weblog

          2012年3月28日

          http://ubuntu.dormforce.net/

          Ubuntu 12.04 Precise Pangolin:

          deb http://ubuntu.uestc.edu.cn/ubuntu/ precise main restricted universe multiverse
          deb http://ubuntu.uestc.edu.cn/ubuntu/ precise-backports main restricted universe multiverse
          deb http://ubuntu.uestc.edu.cn/ubuntu/ precise-proposed main restricted universe multiverse
          deb http://ubuntu.uestc.edu.cn/ubuntu/ precise-security main restricted universe multiverse
          deb http://ubuntu.uestc.edu.cn/ubuntu/ precise-updates main restricted universe multiverse
          deb-src http://ubuntu.uestc.edu.cn/ubuntu/ precise main restricted universe multiverse
          deb-src http://ubuntu.uestc.edu.cn/ubuntu/ precise-backports main restricted universe multiverse
          deb-src http://ubuntu.uestc.edu.cn/ubuntu/ precise-proposed main restricted universe multiverse
          deb-src http://ubuntu.uestc.edu.cn/ubuntu/ precise-security main restricted universe multiverse
          deb-src http://ubuntu.uestc.edu.cn/ubuntu/ precise-updates main restricted universe multiverse

          使用說明
          打開Software Manager,點擊Edit⇒Software Sources
          在Download from中選擇Other
          選擇China⇒mirrors.ustc.edu.cn
          點擊Choose Server
          posted @ 2012-06-05 00:55 zJun's帛羅閣 閱讀(1123) | 評論 (0)編輯 收藏
          a wonderful Eclipse plugin:  WindowBuilder, which can be used to develope Swing/SWT UI:

          WindowBuilder is built as a plug-in to Eclipse and the various Eclipse-based IDEs (RAD, RSA, MyEclipse, JBuilder, etc.). The plug-in builds an abstract syntax tree (AST) to navigate the source code and uses GEF to display and manage the visual presentation.

          Develop Java graphical user interfaces in minutes for Swing, SWT, RCP and XWT with WindowBuilder Pro's WYSIWYG, drag-and-drop interface. Use wizards, editors and intelligent layout assist to automatically generate clean Java code, with the visual design and source always in sync.

          The project website: http://www.eclipse.org/windowbuilder/

          To install the plugin in Eclipse: http://www.eclipse.org/windowbuilder/download.php

          posted @ 2012-05-31 18:44 zJun's帛羅閣 閱讀(606) | 評論 (0)編輯 收藏
          Example:
          abc 1000 3452 2463 2343 2176 7654 3452 8765 5643 3452
          abc 1000 3452 2463 2343 2176 7654 3452 8765 5643 3452
          tas 3420 3562 2123 1343 2176 7654 3252 8765 5643 3452
          aer 1000 3452 2463 2343 2176 7654 3452 8765 5643 3452
          tas 3420 3562 2123 1343 2176 7654 3252 8765 5643 3452

          UNIX:

          display the no of occurance and the record
          > sort f1.txt|uniq -c
             2 abc 1000 3452 2463 2343 2176 7654 3452 8765 5643 3452
             1 aer 1000 3452 2463 2343 2176 7654 3452 8765 5643 3452
             2 tas 3420 3562 2123 1343 2176 7654 3252 8765 5643 3452

          display only the duplicate records
          > sort f1.txt|uniq -d
          abc 1000 3452 2463 2343 2176 7654 3452 8765 5643 3452
          tas 3420 3562 2123 1343 2176 7654 3252 8765 5643 3452

          display distinct records
          > sort f1.txt|uniq
          abc 1000 3452 2463 2343 2176 7654 3452 8765 5643 3452
          aer 1000 3452 2463 2343 2176 7654 3452 8765 5643 3452
          tas 3420 3562 2123 1343 2176 7654 3252 8765 5643 3452

          Reference:
          How to find Duplicate Records in a text file
          Shell: How To Remove Duplicate Text Lines

          Windows:

          Notepad++ can sort by line, and remove the duplicate lines at the same time.
          1. Open the menu under: TextFX-->TextFX Tools
          2. Make sure "sort outputs only unique..." is checked
          3. select a block of text (ctrl-a to select the entire document).
          4. click "sort lines case sensitive" or "sort lines case insensitive"

          posted @ 2012-04-11 12:10 zJun's帛羅閣 閱讀(478) | 評論 (0)編輯 收藏

          1.安裝JAVA環境

          sudo apt-get install sun-java5-jre

          2.下載tomcat: http://tomcat.apache.org/

          3.解壓tomcat

          $sudo tar zxvf apache-tomcat-7.0.26.tar.gz -C /opt
          $sudo mv /opt/apache-tomcat-7.0.26.tar.gz /opt/tomcat

          4.啟動tomcat

          $sudo /opt/tomcat/bin/startup.sh

          如果能看到下列提示,就表明啟動成功了!

          >Using CATALINA_BASE: /opt/tomcat
          >Using CATALINA_HOME: /opt/tomcat
          >Using CATALINA_TMPDIR: /opt/tomcat/temp
          >Using JRE_HOME: /usr/lib/j2sdk1.5-sun

          打開Firefox,在地址欄中輸入http://localhost:8080,如果出來Tomcat的缺省界面,說明測試通過!

          5.停止Tomcat服務

          $sudo /opt/tomcat/bin/shutdown.sh

          posted @ 2012-03-28 01:18 zJun's帛羅閣 閱讀(714) | 評論 (0)編輯 收藏

          導航

          <2012年3月>
          26272829123
          45678910
          11121314151617
          18192021222324
          25262728293031
          1234567

          統計

          常用鏈接

          留言簿(15)

          隨筆分類

          隨筆檔案

          相冊

          收藏夾

          博客

          文檔

          站點

          論壇

          搜索

          積分與排名

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 丹江口市| 宣城市| 余庆县| 长阳| 平泉县| 黄大仙区| 江门市| 溧水县| 高青县| 江安县| 普安县| 福泉市| 华宁县| 温宿县| 阜城县| 铁力市| 出国| 霍林郭勒市| 青神县| 宜阳县| 荥阳市| 屯门区| 山东省| 建平县| 淳化县| 洞头县| 合阳县| 鸡西市| 炎陵县| 容城县| 如东县| 永城市| 合阳县| 镇宁| 铁力市| 上虞市| 河曲县| 太和县| 准格尔旗| 抚顺市| 崇明县|