<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <title>Philipz學習日誌</title>
    <link rel="alternate" type="text/html" href="http://server.everfine.com.tw/blog/" />
    <link rel="self" type="application/atom+xml" href="http://server.everfine.com.tw/blog/atom.xml" />
    <id>tag:server.everfine.com.tw,2008-10-20:/blog//1</id>
    <updated>2008-11-20T14:00:21Z</updated>
    <subtitle>此Blog是為了將每天的學習心得、偶然的發現跟突發奇想記錄下來，並與大家分享，以免白白將突然的想法或發現隨時間淡忘掉。</subtitle>
    <generator uri="http://www.sixapart.com/movabletype/">Movable Type Pro 4.21-en</generator>

<entry>
    <title>How to backup virtural machine on VMware server 2</title>
    <link rel="alternate" type="text/html" href="http://server.everfine.com.tw/blog/archives/2008/11/how-to-backup-v.html" />
    <id>tag:server.everfine.com.tw,2008:/blog//1.261</id>

    <published>2008-11-20T13:58:53Z</published>
    <updated>2008-11-20T14:00:21Z</updated>

    <summary>From: VMware Communities if you want to automate your backups in a script, you can suspend and restart your virtual...</summary>
    <author>
        <name>philipz</name>
        <uri>http://server.everfine.com.tw/blog/</uri>
    </author>
    
    
    <content type="html" xml:lang="en" xml:base="http://server.everfine.com.tw/blog/">
        <![CDATA[<p>From: <a href="http://communities.vmware.com/message/1100422#1100422">VMware Communities</a></p>

<p>if you want to automate your backups in a script, you can suspend and restart your virtual machines using this sort of command</p>

<p>vmrun -T server -h https://<hostserver>:8333/sdk -u <username> -p <password> suspend "[standard] <pathtoVMX>"</p>

<p>replace <hostserver> with the IP or name of the host server<br />
replace <username> and <password> with the username/password you login to the VMWare remote console with<br />
replace <pathtoVMX> with the folder and filename of the .VMX file of the virtual machine you want to suspend. eg. if you have the virtual machine stored at "C:\Virtual Machines\WinXP\WinXP.vmx" then this parameter should be "WinXP\WinXP.vmx", presuming that "c:\Virtual Machines" is the path to your data store.</p>

<p>Replace 'suspend' with 'start' to restart the machine after the backup. </p>]]>
        
    </content>
</entry>

<entry>
    <title>Spring Framework using RAD7</title>
    <link rel="alternate" type="text/html" href="http://server.everfine.com.tw/blog/archives/2008/11/spring-framewor.html" />
    <id>tag:server.everfine.com.tw,2008:/blog//1.260</id>

    <published>2008-11-15T16:03:25Z</published>
    <updated>2008-11-15T16:50:53Z</updated>

    <summary>Reference from: Developing a Spring Framework MVC application step-by-step If you want to use Spring in Rational Application Developer v.7,...</summary>
    <author>
        <name>philipz</name>
        <uri>http://server.everfine.com.tw/blog/</uri>
    </author>
    
    
    <content type="html" xml:lang="en" xml:base="http://server.everfine.com.tw/blog/">
        <![CDATA[<p>Reference from: <a href="http://www.springsource.com/download?project=Spring%20Framework">Developing a Spring Framework MVC application step-by-step</a></p><p><br />
If you want to use Spring in Rational Application Developer v.7, follow below steps.<br />
1.Create A EAR project to contain Spring web project.<br />
2.Create A Dynamic Web Project, add to an EAR. In Project Facets, adds support for Struts to your project.<br />
3.Copy spring.jar (from spring-framework-2.5/dist), spring-webmvc.jar (from spring-framework-2.5/dist/modules) and commons-logging.jar (from spring-framework-2.5/lib/jakarta-commons) to the '/WEB-INF/lib'.<br />
4.In project properties -&gt; Java Build Path -&gt; Libraries, Add Step 3 those jar files using Add External JARs.<br />
5.Open Web Deployment Descriptor, add a servlet, check Use existing Servlet class, Browse. Type DispatcherServlet, select that in springframework package. Name: springapp, modify URL Mapping from /DispatcherServlet to *.htm, Finish.<br />
6.Create /WEB-INF/springapp-servlet.xml, like below.<br />
</p><blockquote>&lt;beans xmlns="http://www.springframework.org/schema/beans"&gt;<br />xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"<br />xsi:schemaLocation="http://www.springframework.org/schema/beans<br />http://www.springframework.org/schema/beans/spring-beans-2.5.xsd"&gt;<br />&lt;!-- the application context definition for the springapp DispatcherServlet --&gt;<br />&lt;bean name="/hello.htm" class="springapp.web.HelloController"&gt;<br />&lt;/bean&gt;&lt;/beans&gt;<br /></blockquote>
7.Create the Controller, HelloController.<br />
8.Write a test for the Controller, HelloControllerTests. To test the Controller, HelloController.<br />
9.Create the View, hello.jsp.<br />
10.Click Add and Remove Projects, add EAR to WAS server.<br />
11.Open Browser, http://localhost:9080/Spring/hello.htm. You will see the hello.jsp content.]]>
        
    </content>
</entry>

<entry>
    <title>線上英漢字典 Bookmarklet</title>
    <link rel="alternate" type="text/html" href="http://server.everfine.com.tw/blog/archives/2008/11/-bookmarklet.html" />
    <id>tag:server.everfine.com.tw,2008:/blog//1.259</id>

    <published>2008-11-14T01:26:36Z</published>
    <updated>2008-11-14T01:50:13Z</updated>

    <summary>之前分享使用FireFox書籤來即時翻譯網頁。 而單字翻譯，Google toolbar仍有其不足，故寫了個小小Bookmarklet，線上英漢字典，將網頁文字圈選，即可利用http://cdict.net/來查詢此單字。 請將下列Bookmarklet置換那http://cdict.net/的Bookmark。 javascript:(function(){d=document;w=window;S=w.getSelection();U=&quot;http://cdict.net/&quot;+S;if(S!=&quot;&quot;){w.open(U,&quot;%E7%B7%9A%E4%B8%8A%E8%8B%B1%E6%96%87%E5%AD%97%E5%85%B8&quot;,&quot;width=600,height=500,location,status,scrollbars,resizable,dependent=yes&quot;);}else{w.alert(&quot;%E8%AB%8B%E9%81%B8%E6%93%87%E6%96%87%E5%AD%97%EF%BC%81%EF%BC%81&quot;);}})() 參考來源：Bookmarklet 的小技巧...</summary>
    <author>
        <name>philipz</name>
        <uri>http://server.everfine.com.tw/blog/</uri>
    </author>
    
    
    <content type="html" xml:lang="en" xml:base="http://server.everfine.com.tw/blog/">
        <![CDATA[<p>之前分享<a href="http://server.everfine.com.tw/blog/archives/2005/03/aecfirefoxcaece.html">使用FireFox書籤來即時翻譯網頁</a>。<br />
而單字翻譯，Google toolbar仍有其不足，故寫了個小小Bookmarklet，線上英漢字典，將網頁文字圈選，即可利用http://cdict.net/來查詢此單字。<br />
請將下列Bookmarklet置換那http://cdict.net/的Bookmark。<br />
<blockquote>javascript:(function(){d=document;w=window;S=w.getSelection();U="http://cdict.net/"+S;if(S!=""){w.open(U,"%E7%B7%9A%E4%B8%8A%E8%8B%B1%E6%96%87%E5%AD%97%E5%85%B8","width=600,height=500,location,status,scrollbars,resizable,dependent=yes");}else{w.alert("%E8%AB%8B%E9%81%B8%E6%93%87%E6%96%87%E5%AD%97%EF%BC%81%EF%BC%81");}})()</blockquote><br />
參考來源：<a href="http://klcin.tw/net/bookmarklet">Bookmarklet 的小技巧</a></p>]]>
        
    </content>
</entry>

<entry>
    <title>Ubuntu Disk management</title>
    <link rel="alternate" type="text/html" href="http://server.everfine.com.tw/blog/archives/2008/11/ubuntu-disk-man.html" />
    <id>tag:server.everfine.com.tw,2008:/blog//1.258</id>

    <published>2008-11-06T14:43:11Z</published>
    <updated>2008-11-06T14:56:48Z</updated>

    <summary>1.Fdisk /dev/xxx 2.mkfs.XXXXX /dev/xxx 3.mount /dev/xxx /home/xxx 4.Modify /etc/fstab, type &quot;sudo vol_id /dev/sdb1&quot; to get device uid....</summary>
    <author>
        <name>philipz</name>
        <uri>http://server.everfine.com.tw/blog/</uri>
    </author>
    
    
    <content type="html" xml:lang="en" xml:base="http://server.everfine.com.tw/blog/">
        <![CDATA[<p>1.Fdisk /dev/xxx<br />
2.mkfs.XXXXX /dev/xxx<br />
3.mount /dev/xxx /home/xxx<br />
4.Modify /etc/fstab, type "sudo vol_id /dev/sdb1" to get device uid.</p>]]>
        
    </content>
</entry>

<entry>
    <title>Apt &amp; dpkg</title>
    <link rel="alternate" type="text/html" href="http://server.everfine.com.tw/blog/archives/2008/11/apt-dpkg.html" />
    <id>tag:server.everfine.com.tw,2008:/blog//1.257</id>

    <published>2008-11-06T14:05:40Z</published>
    <updated>2008-11-06T14:34:50Z</updated>

    <summary>From Apt和dpkg快速參考 apt-cache search # ------(package 搜索包) apt-cache show #------(package 獲取包的相關信息，如說明、大小、版本等) sudo apt-get install # ------(package 安裝包) sudo apt-get install...</summary>
    <author>
        <name>philipz</name>
        <uri>http://server.everfine.com.tw/blog/</uri>
    </author>
    
    
    <content type="html" xml:lang="en" xml:base="http://server.everfine.com.tw/blog/">
        <![CDATA[<p>From <a href="http://wiki.ubuntu.org.cn/index.php?title=Apt%E5%92%8Cdpkg%E5%BF%AB%E9%80%9F%E5%8F%82%E8%80%83&variant=zh-tw">Apt和dpkg快速參考</a><br />
apt-cache search # ------(package 搜索包)<br />
apt-cache show #------(package 獲取包的相關信息，如說明、大小、版本等)<br />
sudo apt-get install # ------(package 安裝包)<br />
sudo apt-get install # -----(package - - reinstall 重新安裝包)<br />
sudo apt-get -f install # -----(強制安裝?#"-f = --fix-missing"當是修復安裝吧...)<br />
sudo apt-get remove #-----(package 刪除包)<br />
sudo apt-get remove - - purge # ------(package 刪除包，包括刪除配置文件等)<br />
sudo apt-get autoremove --purge # ----(package 刪除包及其依賴的軟體包+配置文件等（只對6.10有效，強烈推薦）)<br />
sudo apt-get update #------更新源<br />
sudo apt-get upgrade #------更新已安裝的包<br />
sudo apt-get dist-upgrade # ---------升級系統<br />
sudo apt-get dselect-upgrade #------使用 dselect 升級<br />
apt-cache depends #-------(package 了解使用依賴)<br />
apt-cache rdepends # ------(package 了解某個具體的依賴?#當是查看該包被哪些包依賴吧...)<br />
sudo apt-get build-dep # ------(package 安裝相關的編譯環境)<br />
apt-get source #------(package 下載該包的源代碼)<br />
sudo apt-get clean && sudo apt-get autoclean # --------清理下載文件的存檔 && 只清理過時的包<br />
sudo apt-get check #-------檢查是否有損壞的依賴</p>

<p><br />
apt-get install<br />
下載 以及所有倚賴的包裹，同時進行包裹的安裝或升級。如果某個包裹被設置了 hold (停止標誌，就會被擱在一邊(即不會被升級)。更多 hold 細節請看下面。</p>

<p>apt-get remove [--purge]<br />
移除 以及任何倚賴這個包裹的其它包裹。<br />
--purge 指明這個包裹應該被完全清除 (purged) ，更多信息請看 dpkg -P。</p>

<p>apt-get update<br />
升級來自 Debian 鏡像的包裹列表，如果你想安裝當天的任何軟體，至少每天運行一次，而且每次修改了<br />
/etc/apt/sources.list 后，必須執行。</p>

<p>apt-get upgrade [-u]<br />
升級所以已經安裝的包裹為最新可用版本。不會安裝新的或移除老的包裹。如果一個包改變了倚賴關係而需要安裝一個新的包裹，那麼它將不會被升級，而是標誌為 hold。apt-get update 不會升級被標誌為 hold 的包裹 (這個也就是 hold 的意思)。請看下文如何手動設置包裹為 hold。我建議同時使用 '-u' 選項，因為這樣你就能看到哪些包裹將會被升級。</p>

<p>apt-get dist-upgrade [-u]<br />
和 apt-get upgrade 類似，除了 dist-upgrade 會安裝和移除包裹來滿足倚賴關係。因此具有一定的危險性。</p>

<p>apt-cache search<br />
搜索滿足 的包裹和描述。</p>

<p>apt-cache show<br />
顯示 的完整的描述。</p>

<p>apt-cache showpkg<br />
顯示 許多細節，以及和其它包裹的關係。</p>

<p>dselect<br />
console-apt<br />
aptitude<br />
gnome-apt<br />
APT 的幾個圖形前端(其中一些在使用前得先安裝)。這裡 dselect 無疑是最強大的，也是最古老，最難駕馭。</p>

<p>普通 Dpkg 用法<br />
dpkg -i<br />
安裝一個 Debian 包裹文件，如你手動下載的文件。</p>

<p>dpkg -c<br />
列出 的內容。</p>

<p>dpkg -I<br />
從 中提取包裹信息。</p>

<p>dpkg -r<br />
移除一個已安裝的包裹。</p>

<p>dpkg -P<br />
完全清除一個已安裝的包裹。和 remove 不同的是，remove 只是刪掉數據和可執行文件，purge 另外還刪除所有的配製文件。</p>

<p>dpkg -L<br />
列出 安裝的所有文件清單。同時請看 dpkg -c 來檢查一個 .deb 文件的內容。</p>

<p>dpkg -s<br />
顯示已安裝包裹的信息。同時請看 apt-cache 顯示 Debian 存檔中的包裹信息，以及 dpkg -I 來顯示從一個 .deb 文件中提取的包裹信息。</p>

<p>dpkg-reconfigure<br />
重新配製一個已經安裝的包裹，如果它使用的是 debconf (debconf 為包裹安裝提供了一個統一的配製界面)。你能夠重新配製 debconf 它本身，如你想改變它的前端或提問的優先權。例如，重新配製 debconf，使用一個 dialog 前端，簡單運行：</p>

<p>dpkg-reconfigure --frontend=dialog debconf (如果你安裝時選錯了，這裡可以改回來喲：)</p>

<p>echo " hold" | dpkg --set-selections<br />
設置 的狀態為 hlod (命令行方式)</p>

<p>dpkg --get-selections ""<br />
取的 的當前狀態 (命令行方式)</p>

<p>支持通配符，如：<br />
Debian:~# dpkg --get-selections *wine*<br />
libwine                                         hold<br />
libwine-alsa                                    hold<br />
libwine-arts                                    hold<br />
libwine-dev                                     hold<br />
libwine-nas                                     hold<br />
libwine-print                                   hold<br />
libwine-twain                                   hold<br />
wine                                            hold<br />
wine+                                           hold<br />
wine-doc                                        hold<br />
wine-utils                                      hold</p>

<p>例如：<br />
大家現在用的都是 gaim-0.58 + QQ-plugin，為了防止 gaim 被升級，我們可以採用如下方法：</p>

<p>方法一：<br />
Debian:~# echo "gaim hold" | dpkg --set-selections<br />
然後用下面命令檢查一下：<br />
Debian:~# dpkg --get-selections "gaim"<br />
gaim                                            hold<br />
現在的狀態標誌是 hold，就不能被升級了。</p>

<p>如果想恢復怎麼辦呢?<br />
Debian:~# echo "gaim install" | dpkg --set-selections<br />
Debian:~# dpkg --get-selections "gaim"<br />
gaim                                            install<br />
這時狀態標誌又被重置為 install，可以繼續升級了。</p>

<p>同志們會問，哪個這些狀態標誌都寫在哪個文件中呢?<br />
在 /var/lib/dpkg/status 里，你也可以通過修改這個文件實現 hold。</p>

<p>有時你會發現有的軟體狀態標誌是 purge，不要奇怪。<br />
如：事先已經安裝了 amsn，然後把它卸了。<br />
apt-get remove --purge amsn<br />
那麼狀態標誌就從 install 變成 purge。</p>

<p>方法二：<br />
在/etc/apt 下手動建一個 preferences 文件<br />
內容：<br />
Package: gaim<br />
Pin: version 0.58*<br />
保存</p>

<p>dpkg -S<br />
在包裹資料庫中查找 ，並告訴你哪個包裹包含了這個文件。(注：查找的是事先已經安裝的包裹)</p>]]>
        
    </content>
</entry>

<entry>
    <title>CVS Configuration on Ubuntu</title>
    <link rel="alternate" type="text/html" href="http://server.everfine.com.tw/blog/archives/2008/11/cvs-configurati.html" />
    <id>tag:server.everfine.com.tw,2008:/blog//1.256</id>

    <published>2008-11-06T06:47:55Z</published>
    <updated>2008-11-06T07:44:21Z</updated>

    <summary>1.sudo apt-get install cvsd 2.cancel the setup screen. 3.The default cvsd work directory is /var/lib/cvsd. If want to change, use...</summary>
    <author>
        <name>philipz</name>
        <uri>http://server.everfine.com.tw/blog/</uri>
    </author>
    
    
    <content type="html" xml:lang="en" xml:base="http://server.everfine.com.tw/blog/">
        <![CDATA[<p>1.sudo apt-get install cvsd<br />
2.cancel the setup screen.<br />
3.The default cvsd work directory is /var/lib/cvsd. If want to change, use cvsd-buildroot /home/cvs. Then modify /etc/cvsd/cvsd.conf, find RootJail, change /var/lib/cvsd to /home/cvs.<br />
4. The /var/lib/cvs is default repository. If want to create a new repository, use cvs -d /home/cvs/cvsroot init. Then modify /etc/cvsd/cvsd.conf, find Repos, change /xxxxx to /cvsroot.<br />
5. Restart cvsd.</p>

<p>Extended Reading <a href="http://www.faqs.org/docs/Linux-mini/Secure-CVS-Pserver.html">Secure CVS Pserver Mini-HOWTO</a></p>]]>
        
    </content>
</entry>

<entry>
    <title>轉碼工具 convmv</title>
    <link rel="alternate" type="text/html" href="http://server.everfine.com.tw/blog/archives/2008/11/-convmv.html" />
    <id>tag:server.everfine.com.tw,2008:/blog//1.255</id>

    <published>2008-11-02T15:43:16Z</published>
    <updated>2008-11-02T15:49:12Z</updated>

    <summary>convnv --list 列出支援那些編碼。 convmv -f big5 -t utf8 xxxx 將xxxx從big5轉成utf8。 convnv -r -f big5 -t utf8 [dir] 將dri目錄所有檔案從big5轉成utf8。 上述皆不會真正變更只是測試，需加上--notest才會執行。 convnv...</summary>
    <author>
        <name>philipz</name>
        <uri>http://server.everfine.com.tw/blog/</uri>
    </author>
    
    
    <content type="html" xml:lang="en" xml:base="http://server.everfine.com.tw/blog/">
        <![CDATA[<p>convnv --list 列出支援那些編碼。<br />
convmv -f big5 -t utf8 xxxx 將xxxx從big5轉成utf8。<br />
convnv -r -f big5 -t utf8 [dir] 將dri目錄所有檔案從big5轉成utf8。<br />
上述皆不會真正變更只是測試，需加上--notest才會執行。<br />
convnv -r -f big5 -t utf8 --notest [dir]<br />
另外如判斷錯誤，加上--nosmart則強迫皆轉換。</p>]]>
        
    </content>
</entry>

<entry>
    <title>BIRT WebSphere 6.1 Deployment</title>
    <link rel="alternate" type="text/html" href="http://server.everfine.com.tw/blog/archives/2008/10/birt-websphere.html" />
    <id>tag:server.everfine.com.tw,2008:/blog//1.254</id>

    <published>2008-10-30T11:28:08Z</published>
    <updated>2008-10-30T11:46:14Z</updated>

    <summary>Reference from Birt WebSphere Deployment. But, if use WebSphere 6.1,just need to download BIRT 2.2.2 runtime. Then, do step 8...</summary>
    <author>
        <name>philipz</name>
        <uri>http://server.everfine.com.tw/blog/</uri>
    </author>
    
    
    <content type="html" xml:lang="en" xml:base="http://server.everfine.com.tw/blog/">
        <![CDATA[<p>Reference from Birt WebSphere Deployment.</p>

<p>But, if use WebSphere 6.1,just need to download BIRT 2.2.2 runtime.<br />
Then, do step 8 and 9.</p>

<blockquote>8. Next, to deploy the application in WebSphere we need to create an ear file which contains an application.xml file, an example is shown at the end of this page.

<p>   1. In the same directory where the birt.war file is create a META-INF directory and in this directory create the application.xml file shown below. </p>

<p>9. Now create the ear file which will be deployed to WAS 6.0.1.0;</p>

<p>   1. cd \birt-runtime\<br />
   2. jar -cvf birtTestEAR.ear META-INF/* birt.war </blockquote></p>

<p><br />
</p>]]>
        
    </content>
</entry>

<entry>
    <title>Resetting mysql root password in Ubuntu</title>
    <link rel="alternate" type="text/html" href="http://server.everfine.com.tw/blog/archives/2008/10/resetting-mysql.html" />
    <id>tag:server.everfine.com.tw,2008:/blog//1.253</id>

    <published>2008-10-29T14:45:46Z</published>
    <updated>2008-10-29T14:56:38Z</updated>

    <summary>After install mysql in Ubuntu, you should reset root password, those steps in below: 1.Stop Mysql, sudo /etc/init.d/mysql stop 2.sudo...</summary>
    <author>
        <name>philipz</name>
        <uri>http://server.everfine.com.tw/blog/</uri>
    </author>
    
    
    <content type="html" xml:lang="en" xml:base="http://server.everfine.com.tw/blog/">
        <![CDATA[<p>After install mysql in Ubuntu, you should reset root password, those steps in below:<br />
1.Stop Mysql, sudo /etc/init.d/mysql stop<br />
2.sudo su<br />
3.mysqld --skip-grant-tables &<br />
4.After blank line, type mysql -u root mysql<br />
5.UPDATE user SET Password=PASSWORD('XXXXXXXX') WHERE User='root';<br />
6.exit<br />
7.Stop Mysql, sudo /etc/init.d/mysql stop<br />
8.exit su<br />
Then, try new password with mysql -u root -p<br />
</p>]]>
        
    </content>
</entry>

<entry>
    <title>Install unix2dos on Ubuntu</title>
    <link rel="alternate" type="text/html" href="http://server.everfine.com.tw/blog/archives/2008/10/install-unix2do.html" />
    <id>tag:server.everfine.com.tw,2008:/blog//1.252</id>

    <published>2008-10-13T18:16:57Z</published>
    <updated>2008-10-13T18:20:15Z</updated>

    <summary>Reference from coggeeyy&apos;s blog. If want to use unix2dos in ubuntu , we need: $ apt-cache search tofrodos tofrodos -...</summary>
    <author>
        <name>philipz</name>
        <uri>http://server.everfine.com.tw/blog/</uri>
    </author>
    
    
    <content type="html" xml:lang="en" xml:base="http://server.everfine.com.tw/blog/">
        <![CDATA[<p>Reference from <a href="http://coffeeyy.blogspot.com/2007/12/ubuntu-install-unix2dos.html">coggeeyy's blog</a>.<br />
<blockquote>If want to use unix2dos in ubuntu , we need:</p>

<p>$ apt-cache search tofrodos<br />
tofrodos - Converts DOS <-> Unix text files, alias tofromdos<br />
$ sudo apt-get install tofrodos</p>

<p>then we got unix2dos and dos2unix both.</blockquote></p>]]>
        
    </content>
</entry>

<entry>
    <title>RAD 英文、繁體、簡體顯示</title>
    <link rel="alternate" type="text/html" href="http://server.everfine.com.tw/blog/archives/2008/09/rad-eaceaceec.html" />
    <id>tag:server.everfine.com.tw,2008:/blog//1.251</id>

    <published>2008-09-28T07:54:47Z</published>
    <updated>2008-09-28T07:58:24Z</updated>

    <summary>英文-&gt; -nl &quot;en_US&quot; 繁體-&gt; -nl &quot;zh_TW&quot; 簡體-&gt; -nl &quot;zh_CN&quot;...</summary>
    <author>
        <name>philipz</name>
        <uri>http://server.everfine.com.tw/blog/</uri>
    </author>
    
    
    <content type="html" xml:lang="en" xml:base="http://server.everfine.com.tw/blog/">
        <![CDATA[<p>英文-> -nl "en_US"<br />
繁體-> -nl "zh_TW"<br />
簡體-> -nl "zh_CN"</p>]]>
        
    </content>
</entry>

<entry>
    <title>Ubuntu PPPoE Command</title>
    <link rel="alternate" type="text/html" href="http://server.everfine.com.tw/blog/archives/2008/09/ubuntu-pppoe-co.html" />
    <id>tag:server.everfine.com.tw,2008:/blog//1.250</id>

    <published>2008-09-18T12:50:23Z</published>
    <updated>2008-09-18T12:58:40Z</updated>

    <summary>現在，您可以使用 &quot;pon dsl-provider&quot; 來建立 DSL 連線並使用 &quot;poff&quot; 來中斷連線。 您可以使用 &quot;plog&quot; 使用來檢視狀態。或使用 &quot;ifconfig ppp0 &quot; 來瀏覽網路介面資訊。...</summary>
    <author>
        <name>philipz</name>
        <uri>http://server.everfine.com.tw/blog/</uri>
    </author>
    
    
    <content type="html" xml:lang="en" xml:base="http://server.everfine.com.tw/blog/">
        <![CDATA[<p>現在，您可以使用 "pon dsl-provider" 來建立 DSL 連線並使用 "poff" 來中斷連線。<br />
您可以使用 "plog" 使用來檢視狀態。或使用 "ifconfig ppp0 " 來瀏覽網路介面資訊。</p>]]>
        
    </content>
</entry>

<entry>
    <title>Dual monitors on ubuntu 8.0.4</title>
    <link rel="alternate" type="text/html" href="http://server.everfine.com.tw/blog/archives/2008/09/dual-monitors-o.html" />
    <id>tag:server.everfine.com.tw,2008:/blog//1.249</id>

    <published>2008-09-17T15:49:17Z</published>
    <updated>2008-09-17T16:02:24Z</updated>

    <summary>Form:ubuntu 8.04 投影顯示與雙螢幕輸出 1. &quot;sudo gedit /etc/X11/xorg.conf&quot;, modify like below: Section &quot;Screen&quot; Identifier &quot;Default Screen&quot; Monitor &quot;Configured Monitor&quot; Device &quot;Configured...</summary>
    <author>
        <name>philipz</name>
        <uri>http://server.everfine.com.tw/blog/</uri>
    </author>
    
    
    <content type="html" xml:lang="en" xml:base="http://server.everfine.com.tw/blog/">
        <![CDATA[<p>Form:<a href="http://lzy-blah.blogspot.com/2008/04/ubuntu-804.html">ubuntu 8.04 投影顯示與雙螢幕輸出</a><br />
1. "sudo gedit /etc/X11/xorg.conf", modify like below:<br />
<blockquote>Section "Screen"<br />
Identifier "Default Screen"<br />
Monitor "Configured Monitor"<br />
Device "Configured Video Device"<br />
SubSection "Display"<br />
Depth 24<br />
Modes "1024x768"<br />
Virtual 2048 1536<br />
EndSubSection<br />
EndSection</blockquote><br />
2. "sudo apt-get install grandr"<br />
3. Restart gmd, Ctrl+Shift+F1, then type "sudo /etc/init.d/gdm restart"<br />
4. type "grandr" to setup dual monitors.</p>]]>
        
    </content>
</entry>

<entry>
    <title>另類的衛星地圖遊戲</title>
    <link rel="alternate" type="text/html" href="http://server.everfine.com.tw/blog/archives/2008/09/ecee.html" />
    <id>tag:server.everfine.com.tw,2008:/blog//1.248</id>

    <published>2008-09-08T11:47:35Z</published>
    <updated>2008-09-08T11:47:38Z</updated>

    <summary> thelastguy Originally uploaded by philipz. PS3上的The Last Guy使用世界各地的衛星地圖，建構大型實境的人形接龍遊戲。 而官方網站更可以使用網頁當成地圖直接在Browser上玩。...</summary>
    <author>
        <name>philipz</name>
        <uri>http://server.everfine.com.tw/blog/</uri>
    </author>
    
    
    <content type="html" xml:lang="en" xml:base="http://server.everfine.com.tw/blog/">
        <![CDATA[<div style="float: right; margin-left: 10px; margin-bottom: 10px;">
 <a href="http://www.flickr.com/photos/philipz/2838881521/" title="photo sharing"><img src="http://farm4.static.flickr.com/3166/2838881521_5720c27600_m.jpg" alt="" style="border: solid 2px #000000;" /></a>
 <br />
 <span style="font-size: 0.9em; margin-top: 0px;">
  <a href="http://www.flickr.com/photos/philipz/2838881521/">thelastguy</a>
  <br />
  Originally uploaded by <a href="http://www.flickr.com/people/philipz/">philipz</a>.
 </span>
</div>
PS3上的<a href="http://lastguy.jp/">The Last Guy</a>使用世界各地的衛星地圖，建構大型實境的人形接龍遊戲。<br />
而官方網站更可以使用網頁當成地圖直接在Browser上玩。
<br clear="all" />]]>
        
    </content>
</entry>

<entry>
    <title>Python物件說明的程式</title>
    <link rel="alternate" type="text/html" href="http://server.everfine.com.tw/blog/archives/2008/08/pythoncaeecc.html" />
    <id>tag:server.everfine.com.tw,2008:/blog//1.247</id>

    <published>2008-08-31T12:28:22Z</published>
    <updated>2008-08-31T15:16:52Z</updated>

    <summary>From Dive Into Python: def info(object, spacing=10, collapse=1): &quot;&quot;&quot;Print methods and doc strings. Takes module, class, list, dictionary, or string.&quot;&quot;&quot;...</summary>
    <author>
        <name>philipz</name>
        <uri>http://server.everfine.com.tw/blog/</uri>
    </author>
    
    
    <content type="html" xml:lang="en" xml:base="http://server.everfine.com.tw/blog/">
        <![CDATA[<p>From <a href="http://diveintopython.org/">Dive Into Python</a>:<br />
<blockquote>def info(object, spacing=10, collapse=1):<br />
    """Print methods and doc strings.<br />
    <br />
    Takes module, class, list, dictionary, or string."""<br />
    methodList = [method for method in dir(object) if callable(getattr(object, method))]<br />
    processFunc = collapse and (lambda s: " ".join(s.split())) or (lambda s: s)<br />
    print "\n".join(["%s %s" %<br />
                      (method.ljust(spacing),<br />
                       processFunc(str(getattr(object, method).__doc__)))<br />
                     for method in methodList])</p>

<p>if __name__ == "__main__":<br />
    print info.__doc__</blockquote></p>

<p>與help function有相同功能，為help實作的範例。</p>]]>
        
    </content>
</entry>

</feed>
