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

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

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

    Dev@Free

    zJun's Tech Weblog

    2008年1月24日

    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

    使用說(shuō)明
    打開(kāi)Software Manager,點(diǎn)擊Edit⇒Software Sources
    在Download from中選擇Other
    選擇China⇒mirrors.ustc.edu.cn
    點(diǎn)擊Choose Server
    posted @ 2012-06-05 00:55 zJun's帛羅閣 閱讀(1128) | 評(píng)論 (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帛羅閣 閱讀(608) | 評(píng)論 (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帛羅閣 閱讀(481) | 評(píng)論 (0)編輯 收藏

    1.安裝JAVA環(huán)境

    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.啟動(dòng)tomcat

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

    如果能看到下列提示,就表明啟動(dòng)成功了!

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

    打開(kāi)Firefox,在地址欄中輸入http://localhost:8080,如果出來(lái)Tomcat的缺省界面,說(shuō)明測(cè)試通過(guò)!

    5.停止Tomcat服務(wù)

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

    posted @ 2012-03-28 01:18 zJun's帛羅閣 閱讀(718) | 評(píng)論 (0)編輯 收藏
    1.下載安裝 RubyInstaller: http://rubyforge.org/frs/?group_id=167&release_id=46588

    2. 檢查 RubyGems 版本,須高于 1.3.6
    gem -v
    3.如果版本不是最新,可以通過(guò)下面的命令更新至最新版本:
    gem update --system
    gem uninstall rubygems-update
    4.安裝 Rails:
    gem install rails
    posted @ 2012-03-27 18:30 zJun's帛羅閣 閱讀(813) | 評(píng)論 (0)編輯 收藏
    1.按照github上的指南配置(http://help.github.com/win-set-up-git/)基礎(chǔ)的git環(huán)境。

    2.在github上創(chuàng)建一個(gè)Repository。

    3.在Eclipse中通過(guò)“Eclipse Marketplaces”,在Market Places里安裝egit。

    4.在Eclipse中生public key, 并添加到GitHub Repository中。
    Eclipse中通過(guò):performance -> SSH2 -> Key Management -> Gernerate RSA Key 生成 SSH 的 public key。
    在GitHub中通過(guò):edit your profile -> ssh key -> Add SSH Key 添加SSH Key, 把上面生成的 public key 拷貝到這里,保存。

    5.Eclipse里File菜單,Import,即可從git導(dǎo)入剛添加到git的項(xiàng)目了。

    6.修改,并提交。在項(xiàng)目上點(diǎn)右鍵–>team–>commit。commit是commit到本機(jī)的git庫(kù),而push才是同步到github。
    posted @ 2012-03-27 01:16 zJun's帛羅閣 閱讀(3027) | 評(píng)論 (0)編輯 收藏
    1.下載最新版 Eclipse:
    官方下載:http://www.eclipse.org/downloads/

    2.解壓下載的壓縮包:
    $sudo tar xvfz eclipse-SDK-3.1.2-linux-gtk.tar.gz -C /opt

    這個(gè)時(shí)候,就可以在 /opt 文件夾中看到出現(xiàn)了一個(gè)eclipse的文件夾,雙擊其中的eclipse文件就可以運(yùn)行eclipse了。

    3.在菜單設(shè)置Eclipse選項(xiàng):
    $gedit ~/.local/share/applications/eclipse-user.desktop

    插入一下內(nèi)容:
    [Desktop Entry]
    Comment=Java IDE
    Name=Eclipse
    Exec=/opt/eclipse/eclipse
    Encoding=UTF-8
    Terminal=false
    Type=Application
    Categories=Application;Development;
    Icon=/opt/eclipse/icon.xpm

    posted @ 2012-03-27 01:00 zJun's帛羅閣 閱讀(650) | 評(píng)論 (0)編輯 收藏

    方法1: 用SET PASSWORD命令

      mysql -u root

      mysql> SET PASSWORD FOR 'root'@'localhost' = PASSWORD('newpass');

    方法2:用mysqladmin

      mysqladmin -u root password "newpass"

      如果root已經(jīng)設(shè)置過(guò)密碼,采用如下方法

      mysqladmin -u root password oldpass "newpass"

    方法3: 用UPDATE直接編輯user表

      mysql -u root

      mysql> use mysql;

      mysql> UPDATE user SET Password = PASSWORD('newpass') WHERE user = 'root';

      mysql> FLUSH PRIVILEGES;

    方法4: 在丟失root密碼的時(shí)候,可以這樣

      mysqld_safe --skip-grant-tables&

      mysql -u root mysql

      mysql> UPDATE user SET password=PASSWORD("new password") WHERE user='root';

      mysql> FLUSH PRIVILEGES;

    ---------------------------------------

    經(jīng)測(cè)試,方法三修改成功,其他三種方法沒(méi)有測(cè)試。

    posted @ 2012-03-17 22:53 zJun's帛羅閣 閱讀(523) | 評(píng)論 (0)編輯 收藏

    一.問(wèn)題環(huán)境:
      Eclipse3.4 + Tomcat6.0.20
    二.問(wèn)題現(xiàn)象:
      在Eclipse下啟動(dòng)Tomcat6時(shí),控制臺(tái)會(huì)有下面警告信息
      警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:...' did not find a matching property.
    三.詳細(xì)解決辦法:
       1.打開(kāi)服務(wù)器視圖:窗口 > 顯示視圖 > 服務(wù)器 > 服務(wù)器
       2.雙擊服務(wù)器列表中的Tomcat,打開(kāi)“服務(wù)器概述”窗口
       3.選中"Publish module contexts to separate XML files"選項(xiàng)。
       小提示:如果Tomcat處于啟動(dòng)狀態(tài),請(qǐng)先停止,否則,在保存服務(wù)器設(shè)置時(shí),提示不能保存。

    posted @ 2012-03-17 22:52 zJun's帛羅閣 閱讀(857) | 評(píng)論 (0)編輯 收藏

    Here is a simple way to generate a analyze report by using FindBugs plugins in RSA:

    • Using FindBugs to scan the code and save the result as XML file
    • the XML report is in a bad format for reading, we can use XSL file to make it easy and clear to read:
    <?xml version="1.0" encoding="UTF-8"?>
    <?xml-stylesheet type="text/xsl" href="summary.xsl"?>
    • Use Internet Explore to open the XML report, now we get a report:
    Note: FindBugs provided following xsl files for different format:

    1、default.xsl;
    2、fancy.xsl;
    3、fancy-hist.xsl;
    4、plain.xsl;
    5、summary.xsl;

    posted @ 2012-03-17 22:46 zJun's帛羅閣 閱讀(466) | 評(píng)論 (0)編輯 收藏
         摘要: GZIP
    1. Compressing a File in the GZIP Format
    2. Uncompressing a File in the GZIP Format

    ZIP
    1. Creating a ZIP File
    2. Listing the Contents of a ZIP File
    3. Retrieving a Compressed File from a ZIP File   閱讀全文
    posted @ 2008-06-03 23:02 zJun's帛羅閣 閱讀(1360) | 評(píng)論 (1)編輯 收藏
         摘要: 使用 JSEclipse,JavaScript 程序員現(xiàn)在有了自己的 Eclipse 插件,該插件將提供許多重要功能來(lái)輔助開(kāi)發(fā) JavaScript 應(yīng)用程序。像 Eclipse 多年來(lái)為 Java? 語(yǔ)言和其他語(yǔ)言提供了易用性一樣,JSEclipse 為 JavaScript 開(kāi)發(fā)人員提供了同樣的優(yōu)點(diǎn)。  閱讀全文
    posted @ 2008-01-29 17:20 zJun's帛羅閣 閱讀(12378) | 評(píng)論 (1)編輯 收藏
    分享一個(gè)不錯(cuò)的編寫(xiě)properties文件的Eclipse插件(plugin),有了它我們?cè)诰庉嬕恍┖?jiǎn)體中文、繁體中文等 Unicode文本時(shí),就不必再使用native2ascii編碼了。您可以通過(guò)Eclipse中的軟件升級(jí)(Software Update)安裝此插件,步驟如下:
    1、展開(kāi)Eclipse的Help菜單,將鼠標(biāo)移到Software Update子項(xiàng),在出現(xiàn)的子菜單中點(diǎn)擊Find and Install;
    2、在Install/Update對(duì)話框中選擇Search for new features to install,點(diǎn)擊Next;
    3、在Install對(duì)話框中點(diǎn)擊New Remote Site;
    4、在New Update Site對(duì)話框的Name填入“PropEdit”或其它任意非空字符串,在URL中填入http://propedit.sourceforge.jp/eclipse/updates/;
    5、在Site to include to search列表中,除上一步加入的site外的其它選項(xiàng)去掉,點(diǎn)擊Finsih;
    6、在彈出的Updates對(duì)話框中的Select the features to install列表中將所有結(jié)尾為“3.1.x”的選項(xiàng)去掉(適用于Eclipse 3.2版本的朋友);
    7、點(diǎn)擊Finish關(guān)閉對(duì)話框;
    8、在下載后,同意安裝,再按提示重啟Eclipse,在工具條看到形似vi的按鈕表示安裝成功,插件可用。此時(shí),Eclpise中所有properties文件的文件名前有綠色的P的圖標(biāo)作為標(biāo)識(shí)。
    posted @ 2008-01-24 22:41 zJun's帛羅閣 閱讀(21921) | 評(píng)論 (4)編輯 收藏

    導(dǎo)航

    <2008年1月>
    303112345
    6789101112
    13141516171819
    20212223242526
    272829303112
    3456789

    統(tǒng)計(jì)

    常用鏈接

    留言簿(15)

    隨筆分類

    隨筆檔案

    相冊(cè)

    收藏夾

    博客

    文檔

    站點(diǎn)

    論壇

    搜索

    積分與排名

    最新評(píng)論

    閱讀排行榜

    評(píng)論排行榜

    主站蜘蛛池模板: 亚洲av无码成h人动漫无遮挡| 毛片大全免费观看| 国产综合亚洲专区在线| 亚洲熟女乱色一区二区三区| 久久永久免费人妻精品下载| 国产成人A人亚洲精品无码| 国产成人无码免费网站| 久久久久亚洲AV成人网| 国产日韩AV免费无码一区二区三区| 又大又黄又粗又爽的免费视频| 色噜噜噜噜亚洲第一| 国产伦精品一区二区三区免费迷| 校园亚洲春色另类小说合集| 亚洲AV无码乱码在线观看| 午夜不卡AV免费| 亚洲国产精品无码专区| 色欲色香天天天综合网站免费| 2022年亚洲午夜一区二区福利| 久久99国产综合精品免费| 亚洲免费二区三区| 免费无码又爽又刺激高潮| 美女被免费视频网站| 亚洲日韩在线观看免费视频| a毛片久久免费观看| 久久精品国产亚洲AV无码偷窥| 99久久这里只精品国产免费| 亚洲人成未满十八禁网站| 亚洲毛片av日韩av无码| 97人妻精品全国免费视频| 亚洲成综合人影院在院播放| 亚洲人成无码网WWW| a级成人毛片免费图片| 亚洲一级毛片在线播放| 一区二区三区亚洲视频| 东方aⅴ免费观看久久av| 亚洲a视频在线观看| 亚洲AV成人潮喷综合网| 久久午夜无码免费| 亚洲.国产.欧美一区二区三区| 亚洲综合色视频在线观看| 成人免费的性色视频|