<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" version="2.0">

<channel>
	<title>Lauct's BLOG</title>
	
	<link>http://blog.lauct.org</link>
	<description>什麼都是假的，平安退伍才是真的</description>
	<lastBuildDate>Wed, 11 Nov 2009 03:36:34 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/justinlover" type="application/rss+xml" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item>
		<title>[Django] 調整時區和語系</title>
		<link>http://blog.lauct.org/?p=1470</link>
		<comments>http://blog.lauct.org/?p=1470#comments</comments>
		<pubDate>Wed, 11 Nov 2009 03:36:34 +0000</pubDate>
		<dc:creator>Lauct</dc:creator>
				<category><![CDATA[Web開發]]></category>
		<category><![CDATA[Django]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://blog.lauct.org/?p=1470</guid>
		<description><![CDATA[進 settings.py 編輯
時區調整
TIME_ZONE = 'Asia/Taipei'
語系調整
LANGUAGE_CODE = 'zh-tw'


Related posts:[Django] 安裝與開新專案步驟[NAS-01G] backdoor script


Related posts:<ol><li><a href='http://blog.lauct.org/?p=1468' rel='bookmark' title='Permanent Link: [Django] 安裝與開新專案步驟'>[Django] 安裝與開新專案步驟</a></li><li><a href='http://blog.lauct.org/?p=1393' rel='bookmark' title='Permanent Link: [NAS-01G] backdoor script'>[NAS-01G] backdoor script</a></li></ol>]]></description>
			<content:encoded><![CDATA[<p>進 settings.py 編輯</p>
<p>時區調整<br />
<code>TIME_ZONE = 'Asia/Taipei'</code></p>
<p>語系調整<br />
<code>LANGUAGE_CODE = 'zh-tw'</code></p>


<p>Related posts:<ol><li><a href='http://blog.lauct.org/?p=1468' rel='bookmark' title='Permanent Link: [Django] 安裝與開新專案步驟'>[Django] 安裝與開新專案步驟</a></li><li><a href='http://blog.lauct.org/?p=1393' rel='bookmark' title='Permanent Link: [NAS-01G] backdoor script'>[NAS-01G] backdoor script</a></li></ol></p>
<p><a href="http://feedads.g.doubleclick.net/~a/qly5kWvIlegc-hSkn7nb7ACSJjs/0/da"><img src="http://feedads.g.doubleclick.net/~a/qly5kWvIlegc-hSkn7nb7ACSJjs/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/qly5kWvIlegc-hSkn7nb7ACSJjs/1/da"><img src="http://feedads.g.doubleclick.net/~a/qly5kWvIlegc-hSkn7nb7ACSJjs/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.lauct.org/?feed=rss2&amp;p=1470</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Django] 安裝與開新專案步驟</title>
		<link>http://blog.lauct.org/?p=1468</link>
		<comments>http://blog.lauct.org/?p=1468#comments</comments>
		<pubDate>Wed, 11 Nov 2009 02:10:36 +0000</pubDate>
		<dc:creator>Lauct</dc:creator>
				<category><![CDATA[Web開發]]></category>
		<category><![CDATA[Django]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[閱讀筆記]]></category>

		<guid isPermaLink="false">http://blog.lauct.org/?p=1468</guid>
		<description><![CDATA[安裝

tar zxvf Django-*.tar.gz


cd Django-*.


sudo python setup.py install

開一個新專案

~/djcode$ django-admin.py startproject mysite


~/djcode$ ls -a mysite/
./           ../          __init__.py  manage.py    settings.py  urls.py


__init__.py: 偽裝目錄成package
manage.py: 一個cli的工具，讓妳可以用多種方式和Django專案互動
settings.py: Django專案的設定/組態
urls.py: 此Django專案的URL宣告

執行開發用Server

~/djcode/mysite$ python manage.py runserver
Validating models...
0 errors found
&#160;
Django version 1.1.1, using [...]


Related posts:<ol><li><a href='http://blog.lauct.org/?p=1470' rel='bookmark' title='Permanent Link: [Django] 調整時區和語系'>[Django] 調整時區和語系</a></li><li><a href='http://blog.lauct.org/?p=1464' rel='bookmark' title='Permanent Link: [Python] 在Python中使用中文'>[Python] 在Python中使用中文</a></li><li><a href='http://blog.lauct.org/?p=882' rel='bookmark' title='Permanent Link: Perl, Python, Ruby 比較'>Perl, Python, Ruby 比較</a></li></ol>]]></description>
			<content:encoded><![CDATA[<p><strong>安裝</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">tar</span> zxvf Django-<span style="color: #000000; font-weight: bold;">*</span>.tar.gz</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> Django-<span style="color: #000000; font-weight: bold;">*</span>.</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> python setup.py <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

<p><strong>開一個新專案</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">~<span style="color: #000000; font-weight: bold;">/</span>djcode$ django-admin.py startproject mysite</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">~<span style="color: #000000; font-weight: bold;">/</span>djcode$ <span style="color: #c20cb9; font-weight: bold;">ls</span> <span style="color: #660033;">-a</span> mysite<span style="color: #000000; font-weight: bold;">/</span>
.<span style="color: #000000; font-weight: bold;">/</span>           ..<span style="color: #000000; font-weight: bold;">/</span>          __init__.py  manage.py    settings.py  urls.py</pre></div></div>

<blockquote>
<ul>__init__.py: 偽裝目錄成package</ul>
<ul>manage.py: 一個cli的工具，讓妳可以用多種方式和Django專案互動</ul>
<ul>settings.py: Django專案的設定/組態</ul>
<ul>urls.py: 此Django專案的URL宣告</ul>
</blockquote>
<p><strong>執行開發用Server</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">~<span style="color: #000000; font-weight: bold;">/</span>djcode<span style="color: #000000; font-weight: bold;">/</span>mysite$ python manage.py runserver
Validating models...
<span style="color: #000000;">0</span> errors found
&nbsp;
Django version 1.1.1, using settings <span style="color: #ff0000;">'mysite.settings'</span>
Development server is running at http:<span style="color: #000000; font-weight: bold;">//</span>127.0.0.1:<span style="color: #000000;">8000</span><span style="color: #000000; font-weight: bold;">/</span>
Quit the server with CONTROL-C.
<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">10</span><span style="color: #000000; font-weight: bold;">/</span>Nov<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">2009</span> <span style="color: #000000;">19</span>:<span style="color: #000000;">55</span>:<span style="color: #000000;">59</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #ff0000;">&quot;GET / HTTP/1.1&quot;</span> <span style="color: #000000;">200</span> <span style="color: #000000;">2053</span></pre></div></div>

<div id="attachment_1469" class="wp-caption aligncenter" style="width: 310px"><a href="http://blog.lauct.org/wp-content/uploads/2009/11/dj-runserver.png"><img src="http://blog.lauct.org/wp-content/uploads/2009/11/dj-runserver-300x239.png" alt="It worked!" title="dj-runserver" width="300" height="239" class="size-medium wp-image-1469" /></a><p class="wp-caption-text">It worked!</p></div>
<blockquote><p><strong>改Port或IP</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">python manage.py runserver <span style="color: #000000;">8080</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">python manage.py runserver 0.0.0.0:<span style="color: #000000;">8080</span></pre></div></div>

</blockquote>


<p>Related posts:<ol><li><a href='http://blog.lauct.org/?p=1470' rel='bookmark' title='Permanent Link: [Django] 調整時區和語系'>[Django] 調整時區和語系</a></li><li><a href='http://blog.lauct.org/?p=1464' rel='bookmark' title='Permanent Link: [Python] 在Python中使用中文'>[Python] 在Python中使用中文</a></li><li><a href='http://blog.lauct.org/?p=882' rel='bookmark' title='Permanent Link: Perl, Python, Ruby 比較'>Perl, Python, Ruby 比較</a></li></ol></p>
<p><a href="http://feedads.g.doubleclick.net/~a/acYB6nce1pHvaIGuZl6c-Fy4lkA/0/da"><img src="http://feedads.g.doubleclick.net/~a/acYB6nce1pHvaIGuZl6c-Fy4lkA/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/acYB6nce1pHvaIGuZl6c-Fy4lkA/1/da"><img src="http://feedads.g.doubleclick.net/~a/acYB6nce1pHvaIGuZl6c-Fy4lkA/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.lauct.org/?feed=rss2&amp;p=1468</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Office] Word 2007 插入「第幾頁，共幾頁」頁碼</title>
		<link>http://blog.lauct.org/?p=1466</link>
		<comments>http://blog.lauct.org/?p=1466#comments</comments>
		<pubDate>Thu, 05 Nov 2009 07:09:15 +0000</pubDate>
		<dc:creator>Lauct</dc:creator>
				<category><![CDATA[閒話PC]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://blog.lauct.org/?p=1466</guid>
		<description><![CDATA[
頁尾插入「第  頁，共  頁」
Ctrl+F9，插入代碼：{page}、{numpages}

{page}該頁數
{numpages}總頁數


Alt+F9，更新代碼
完成



Related posts:Windows Vista &#038; Office 2007 已開放下載腦殘的 IE 和 eCampus


Related posts:<ol><li><a href='http://blog.lauct.org/?p=503' rel='bookmark' title='Permanent Link: Windows Vista &#038; Office 2007 已開放下載'>Windows Vista &#038; Office 2007 已開放下載</a></li><li><a href='http://blog.lauct.org/?p=433' rel='bookmark' title='Permanent Link: 腦殘的 IE 和 eCampus'>腦殘的 IE 和 eCampus</a></li></ol>]]></description>
			<content:encoded><![CDATA[<ul>
<li>頁尾插入「第  頁，共  頁」</li>
<li>Ctrl+F9，插入代碼：{page}、{numpages}
<ul>
<li>{page}該頁數</li>
<li>{numpages}總頁數</li>
</ul>
</li>
<li>Alt+F9，更新代碼</li>
<li>完成</li>
</ul>


<p>Related posts:<ol><li><a href='http://blog.lauct.org/?p=503' rel='bookmark' title='Permanent Link: Windows Vista &#038; Office 2007 已開放下載'>Windows Vista &#038; Office 2007 已開放下載</a></li><li><a href='http://blog.lauct.org/?p=433' rel='bookmark' title='Permanent Link: 腦殘的 IE 和 eCampus'>腦殘的 IE 和 eCampus</a></li></ol></p>
<p><a href="http://feedads.g.doubleclick.net/~a/b_VQB3u_2lek4j5_YsIAKo7R1m0/0/da"><img src="http://feedads.g.doubleclick.net/~a/b_VQB3u_2lek4j5_YsIAKo7R1m0/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/b_VQB3u_2lek4j5_YsIAKo7R1m0/1/da"><img src="http://feedads.g.doubleclick.net/~a/b_VQB3u_2lek4j5_YsIAKo7R1m0/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.lauct.org/?feed=rss2&amp;p=1466</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Python] 在Python中使用中文</title>
		<link>http://blog.lauct.org/?p=1464</link>
		<comments>http://blog.lauct.org/?p=1464#comments</comments>
		<pubDate>Thu, 05 Nov 2009 03:18:29 +0000</pubDate>
		<dc:creator>Lauct</dc:creator>
				<category><![CDATA[電腦＆網路]]></category>
		<category><![CDATA[CJKV]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[UTF-8]]></category>

		<guid isPermaLink="false">http://blog.lauct.org/?p=1464</guid>
		<description><![CDATA[tchinese.py

#!/bin/python
print &#34;Python是個酷玩意&#34;


python tchinese.py
SyntaxError: Non-ASCII character '\xe6' in file tchinese.py on line 2, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details

錯誤訊息中的連結到這篇文章：PEP 0263 &#8212; Defining Python Source Code Encodings
文中提到：
To define a source code encoding, a magic comment must be placed into the source files either as first or second line in the file, such as:

# coding=&#60;encoding name&#62;

 [...]


Related posts:<ol><li><a href='http://blog.lauct.org/?p=877' rel='bookmark' title='Permanent Link: [Perl] 私人工具箱：flickr2bps'>[Perl] 私人工具箱：flickr2bps</a></li><li><a href='http://blog.lauct.org/?p=882' rel='bookmark' title='Permanent Link: Perl, Python, Ruby 比較'>Perl, Python, Ruby 比較</a></li><li><a href='http://blog.lauct.org/?p=1430' rel='bookmark' title='Permanent Link: [UNIX] pidof：取得執行中程序的pid'>[UNIX] pidof：取得執行中程序的pid</a></li></ol>]]></description>
			<content:encoded><![CDATA[<p>tchinese.py</p>

<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">#!/bin/python</span>
<span style="color: #ff7700;font-weight:bold;">print</span> <span style="color: #483d8b;">&quot;Python是個酷玩意&quot;</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">python tchinese.py
SyntaxError: Non-ASCII character <span style="color: #ff0000;">'\xe6'</span> <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #c20cb9; font-weight: bold;">file</span> tchinese.py on line <span style="color: #000000;">2</span>, but no encoding declared; see http:<span style="color: #000000; font-weight: bold;">//</span>www.python.org<span style="color: #000000; font-weight: bold;">/</span>peps<span style="color: #000000; font-weight: bold;">/</span>pep-0263.html <span style="color: #000000; font-weight: bold;">for</span> details</pre></div></div>

<p>錯誤訊息中的連結到這篇文章：<a href="http://www.python.org/dev/peps/pep-0263/">PEP 0263 &#8212; Defining Python Source Code Encodings</a><br />
文中提到：</p>
<blockquote><p>To define a source code encoding, a magic comment must be placed into the source files either as first or second line in the file, such as:</p>

<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;"><span style="color: #808080; font-style: italic;"># coding=&lt;encoding name&gt;</span></pre></div></div>

<p>    or (using formats recognized by popular editors)</p>

<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">#!/usr/bin/python</span>
<span style="color: #808080; font-style: italic;"># -*- coding: &lt;encoding name&gt; -*-</span></pre></div></div>

<p>    or</p>

<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">#!/usr/bin/python</span>
<span style="color: #808080; font-style: italic;"># vim: set fileencoding=&lt;encoding name&gt; :</span></pre></div></div>

</blockquote>
<p>Example:</p>

<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">#!/bin/python</span>
<span style="color: #808080; font-style: italic;"># -*- coding: utf-8 -*-</span>
<span style="color: #ff7700;font-weight:bold;">print</span> <span style="color: #483d8b;">&quot;Python是個酷玩意&quot;</span></pre></div></div>

<p>Result:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Python是個酷玩意</pre></div></div>



<p>Related posts:<ol><li><a href='http://blog.lauct.org/?p=877' rel='bookmark' title='Permanent Link: [Perl] 私人工具箱：flickr2bps'>[Perl] 私人工具箱：flickr2bps</a></li><li><a href='http://blog.lauct.org/?p=882' rel='bookmark' title='Permanent Link: Perl, Python, Ruby 比較'>Perl, Python, Ruby 比較</a></li><li><a href='http://blog.lauct.org/?p=1430' rel='bookmark' title='Permanent Link: [UNIX] pidof：取得執行中程序的pid'>[UNIX] pidof：取得執行中程序的pid</a></li></ol></p>
<p><a href="http://feedads.g.doubleclick.net/~a/O_Emzz31kZTkZRkCUDaR4aUns-Q/0/da"><img src="http://feedads.g.doubleclick.net/~a/O_Emzz31kZTkZRkCUDaR4aUns-Q/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/O_Emzz31kZTkZRkCUDaR4aUns-Q/1/da"><img src="http://feedads.g.doubleclick.net/~a/O_Emzz31kZTkZRkCUDaR4aUns-Q/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.lauct.org/?feed=rss2&amp;p=1464</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Note] 洞悉UNIX系統管理篇：系統管理者的職責</title>
		<link>http://blog.lauct.org/?p=1462</link>
		<comments>http://blog.lauct.org/?p=1462#comments</comments>
		<pubDate>Wed, 04 Nov 2009 16:07:04 +0000</pubDate>
		<dc:creator>Lauct</dc:creator>
				<category><![CDATA[Unix-like]]></category>
		<category><![CDATA[閱讀筆記]]></category>
		<category><![CDATA[電腦＆網路]]></category>
		<category><![CDATA[book]]></category>

		<guid isPermaLink="false">http://blog.lauct.org/?p=1462</guid>
		<description><![CDATA[
例行工作的規劃。

隨時注意機房溫溼度是否適中，利於主機運作。
訂定報表輸出時間、每人可印份數、每份最大容量、可輸出報表種類（文字檔、程式檔…）等規則。
電子郵件收發管理，需訂定存放多久的信件須刪除，以免佔用磁碟空間。
維持機房整潔，定期進行清潔工作。不可在機房飲食或吸煙。
定期對系統運作的狀況作紀錄以便日後查詢。
訂定開關機程序。
定期檢查各檔案系統，將不必要的檔案刪除，以免佔用太多磁碟空間。


週邊設備增減之規劃。
使用者帳號的管理。

新增、刪除失效或不用的使用者帳號。
區分工作性質相同的工作群組使用者帳號。

設定各個不同工作群使用者帳號的磁碟使用空間


訂定使用者帳號的有效期間
各帳號使用者對應用軟體使用的權限
使用者帳號密碼的更新與維護。
定期備份使用者資料檔，以維護使用者的正常工作。


備份資料方式與規劃。

考慮採用何種方式進行資料備份
備份時間的規劃，是每日、每星期、每月或是每季作備份工作，依作業環境的性質來訂定。


應用軟體新增與更新。

新增時應考慮是否適用現行作業環境。
安裝時是否會更動系統的環境設定，影響原先作業環境的正常作業。
安裝新應用軟體前，最好先將設定檔案備份。
更新版本時，要注意舊有資料檔是否相容於新版，新版軟體是否適用現行作業環境。


各種故障排除與紀錄
當系統產生故障訊息時：

系統管理者應紀錄當時使用者是誰，或發現故障訊息的使用者帳號。
當時的作業環境下正在執行哪些作業。
何時發生和次數。
發生故障的電腦機型和名稱。
紀錄故障訊息為何。



當系統管理者將此故障排除時，需紀錄排除故障的步驟，以作未來參考之用。如無法排除故障時，系統管理者須先判斷可能是哪方面的問題，與軟硬體廠商說明故障訊息與判斷結果，以利維護工程失修復。

系統文件的管理。

將相關說明文件或手冊分類整理存放，以便查詢使用。基本上文件只有一份，所以不得外借，以免造成遺失或損毀。若有必要公佈使用者查閱，可拷貝一份，並規定借閱時間及抵押證件。

對使用者提出的各項問題，應盡解答之責。
系統管理者需建立職務代理制度，如系統管理者因事請假或休假，應將未完之工作交待職務代理人，維繫作業環境的正常運作。
隨時注意有關軟硬體的最新資訊，提供使用者或主管參考。

摘錄自洞悉UNIX系統管理篇. 作者：毛元君, 出版社：和碩科技, 出版日期：1993-12-01


No related posts.


No related posts.]]></description>
			<content:encoded><![CDATA[<ul>
<li>例行工作的規劃。
<ul>
<li>隨時注意機房溫溼度是否適中，利於主機運作。</li>
<li>訂定報表輸出時間、每人可印份數、每份最大容量、可輸出報表種類（文字檔、程式檔…）等規則。</li>
<li>電子郵件收發管理，需訂定存放多久的信件須刪除，以免佔用磁碟空間。</li>
<li>維持機房整潔，定期進行清潔工作。不可在機房飲食或吸煙。</li>
<li>定期對系統運作的狀況作紀錄以便日後查詢。</li>
<li>訂定開關機程序。</li>
<li>定期檢查各檔案系統，將不必要的檔案刪除，以免佔用太多磁碟空間。</li>
</ul>
</li>
<li>週邊設備增減之規劃。</li>
<li>使用者帳號的管理。
<ul>
<li>新增、刪除失效或不用的使用者帳號。</li>
<li>區分工作性質相同的工作群組使用者帳號。
<ul>
<li>設定各個不同工作群使用者帳號的磁碟使用空間</li>
</ul>
</li>
<li>訂定使用者帳號的有效期間</li>
<li>各帳號使用者對應用軟體使用的權限</li>
<li>使用者帳號密碼的更新與維護。</li>
<li>定期備份使用者資料檔，以維護使用者的正常工作。<span id="more-1462"></span></li>
</ul>
</li>
<li>備份資料方式與規劃。
<ul>
<li>考慮採用何種方式進行資料備份</li>
<li>備份時間的規劃，是每日、每星期、每月或是每季作備份工作，依作業環境的性質來訂定。</li>
</ul>
</li>
<li>應用軟體新增與更新。
<ul>
<li>新增時應考慮是否適用現行作業環境。</li>
<li>安裝時是否會更動系統的環境設定，影響原先作業環境的正常作業。</li>
<li>安裝新應用軟體前，最好先將設定檔案備份。</li>
<li>更新版本時，要注意舊有資料檔是否相容於新版，新版軟體是否適用現行作業環境。</li>
</ul>
</li>
<li>各種故障排除與紀錄<br />
當系統產生故障訊息時：</p>
<ul>
<li>系統管理者應紀錄當時使用者是誰，或發現故障訊息的使用者帳號。</li>
<li>當時的作業環境下正在執行哪些作業。</li>
<li>何時發生和次數。</li>
<li>發生故障的電腦機型和名稱。</li>
<li>紀錄故障訊息為何。</li>
</ul>
</li>
</ul>
<blockquote><p>當系統管理者將此故障排除時，需紀錄排除故障的步驟，以作未來參考之用。如無法排除故障時，系統管理者須先判斷可能是哪方面的問題，與軟硬體廠商說明故障訊息與判斷結果，以利維護工程失修復。</p></blockquote>
<ul>
<li>系統文件的管理。</li>
</ul>
<blockquote><p>將相關說明文件或手冊分類整理存放，以便查詢使用。基本上文件只有一份，所以不得外借，以免造成遺失或損毀。若有必要公佈使用者查閱，可拷貝一份，並規定借閱時間及抵押證件。</p></blockquote>
<ul>
<li>對使用者提出的各項問題，應盡解答之責。</li>
<li>系統管理者需建立職務代理制度，如系統管理者因事請假或休假，應將未完之工作交待職務代理人，維繫作業環境的正常運作。</li>
<li>隨時注意有關軟硬體的最新資訊，提供使用者或主管參考。</li>
</ul>
<p>摘錄自<em><span style="color: #000000;"><a title="洞悉UNIX系統管理篇" href="http://findbook.tw/book/9578682204/basic">洞悉UNIX系統管理篇</a></span></em><span style="color: #000000;">. 作者：毛元君, 出版社：和碩科技, 出版日期：</span>1993-12-01</p>


<p>No related posts.</p>
<p><a href="http://feedads.g.doubleclick.net/~a/X1whiTqReMgIQsCswhdRk5frKWo/0/da"><img src="http://feedads.g.doubleclick.net/~a/X1whiTqReMgIQsCswhdRk5frKWo/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/X1whiTqReMgIQsCswhdRk5frKWo/1/da"><img src="http://feedads.g.doubleclick.net/~a/X1whiTqReMgIQsCswhdRk5frKWo/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.lauct.org/?feed=rss2&amp;p=1462</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Unix] 用 du 指令查看目錄所占空間</title>
		<link>http://blog.lauct.org/?p=1460</link>
		<comments>http://blog.lauct.org/?p=1460#comments</comments>
		<pubDate>Tue, 03 Nov 2009 03:33:09 +0000</pubDate>
		<dc:creator>Lauct</dc:creator>
				<category><![CDATA[Unix-like]]></category>
		<category><![CDATA[cli]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://blog.lauct.org/?p=1460</guid>
		<description><![CDATA[-h　　&#8221;Human-readable&#8221; output.  Use unit suffixes: Byte, Kilobyte, Megabyte, Gigabyte, Terabyte and Petabyte.
-s　　Display an entry for each specified file.  (Equivalent to -d 0)
-d　　depth
　　　Display an entry for all files and directories depth directories deep.
只列出目錄大小：

du -sh ~/Documents/EyeTV\ Archive/

3.2G	/Users/name/Documents/EyeTV Archive/
列出目錄裡該層所有檔案大小：

du -sh ~/Documents/EyeTV\ Archive/*

4.0K	/Users/name/Documents/EyeTV Archive/EyeTV Archive.xml
4.0K	/Users/name/Documents/EyeTV Archive/EyeTVAutoTune.log
3.2G	/Users/name/Documents/EyeTV Archive/熱帶魚 &#8211; 單元集單元劇.eyetv
25M /Users/name/Documents/EyeTV Archive/伊索動物劇場 &#8211; 第17集偶戲動畫卡通獅子和山豬.eyetv


Related posts:[Unix] 啟動 root 帳號[Unix] [...]


Related posts:<ol><li><a href='http://blog.lauct.org/?p=8' rel='bookmark' title='Permanent Link: [Unix] 啟動 root 帳號'>[Unix] 啟動 root 帳號</a></li><li><a href='http://blog.lauct.org/?p=179' rel='bookmark' title='Permanent Link: [Unix] 用色彩提醒自己是 root'>[Unix] 用色彩提醒自己是 root</a></li><li><a href='http://blog.lauct.org/?p=1445' rel='bookmark' title='Permanent Link: [UNIX][Mac] 用 ImageMagick 把 PDF 轉成圖片'>[UNIX][Mac] 用 ImageMagick 把 PDF 轉成圖片</a></li></ol>]]></description>
			<content:encoded><![CDATA[<p>-h　　&#8221;Human-readable&#8221; output.  Use unit suffixes: Byte, Kilobyte, Megabyte, Gigabyte, Terabyte and Petabyte.<br />
-s　　Display an entry for each specified file.  (Equivalent to -d 0)<br />
-d　　depth<br />
　　　Display an entry for all files and directories depth directories deep.</p>
<hr />只列出目錄大小：</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">du</span> <span style="color: #660033;">-sh</span> ~<span style="color: #000000; font-weight: bold;">/</span>Documents<span style="color: #000000; font-weight: bold;">/</span>EyeTV\ Archive<span style="color: #000000; font-weight: bold;">/</span></pre></div></div>

<p>3.2G	/Users/name/Documents/EyeTV Archive/</p>
<hr />列出目錄裡該層所有檔案大小：</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">du</span> <span style="color: #660033;">-sh</span> ~<span style="color: #000000; font-weight: bold;">/</span>Documents<span style="color: #000000; font-weight: bold;">/</span>EyeTV\ Archive<span style="color: #000000; font-weight: bold;">/*</span></pre></div></div>

<p>4.0K	/Users/name/Documents/EyeTV Archive/EyeTV Archive.xml<br />
4.0K	/Users/name/Documents/EyeTV Archive/EyeTVAutoTune.log<br />
3.2G	/Users/name/Documents/EyeTV Archive/熱帶魚 &#8211; 單元集單元劇.eyetv<br />
25M /Users/name/Documents/EyeTV Archive/伊索動物劇場 &#8211; 第17集偶戲動畫卡通獅子和山豬.eyetv</p>


<p>Related posts:<ol><li><a href='http://blog.lauct.org/?p=8' rel='bookmark' title='Permanent Link: [Unix] 啟動 root 帳號'>[Unix] 啟動 root 帳號</a></li><li><a href='http://blog.lauct.org/?p=179' rel='bookmark' title='Permanent Link: [Unix] 用色彩提醒自己是 root'>[Unix] 用色彩提醒自己是 root</a></li><li><a href='http://blog.lauct.org/?p=1445' rel='bookmark' title='Permanent Link: [UNIX][Mac] 用 ImageMagick 把 PDF 轉成圖片'>[UNIX][Mac] 用 ImageMagick 把 PDF 轉成圖片</a></li></ol></p>
<p><a href="http://feedads.g.doubleclick.net/~a/RKL8NAJT5koZyjm2mo7P8WZtSfM/0/da"><img src="http://feedads.g.doubleclick.net/~a/RKL8NAJT5koZyjm2mo7P8WZtSfM/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/RKL8NAJT5koZyjm2mo7P8WZtSfM/1/da"><img src="http://feedads.g.doubleclick.net/~a/RKL8NAJT5koZyjm2mo7P8WZtSfM/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.lauct.org/?feed=rss2&amp;p=1460</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Python] 學習參考資料: 如何像電腦科學家一樣思考、電腦做什麼事</title>
		<link>http://blog.lauct.org/?p=1458</link>
		<comments>http://blog.lauct.org/?p=1458#comments</comments>
		<pubDate>Mon, 02 Nov 2009 11:52:04 +0000</pubDate>
		<dc:creator>Lauct</dc:creator>
				<category><![CDATA[電腦＆網路]]></category>
		<category><![CDATA[Docs]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://blog.lauct.org/?p=1458</guid>
		<description><![CDATA[
如何像電腦科學家一樣思考How to Think Like a Computer Scientist (中譯版) 原文


這是一本不錯的 Python 工具書，適合 Python 初學者閱讀的入門書
中譯版

如何像電腦科學家一樣思考
如何像電腦科學家一樣思考 &#124; 1.程式之道
如何像電腦科學家一樣思考 &#124; 2. 變數、表達式及陳述
如何像電腦科學家一樣思考 &#124; 3. 函數
如何像電腦科學家一樣思考 &#124; 4. 條件式
如何像電腦科學家一樣思考 &#124; 5. 多效函數
如何像電腦科學家一樣思考 &#124; 6. 重複
如何像電腦科學家一樣思考 &#124; 7. 字串
如何像電腦科學家一樣思考 &#124; 8. 案例研究： Catch
如何像電腦科學家一樣思考 &#124; 9. Tuple
如何像電腦科學家一樣思考 &#124;10. 模組和檔案
如何像電腦科學家一樣思考 &#124;11. 檔案和例外
如何像電腦科學家一樣思考 &#124;12. 類別與物件




電腦做什麼事


電腦做什麼事是一系列Python程式語言的教學文章，我們嘗試提供給讀者以簡單、直覺的方式學習程式語言，進而了解體會電腦背後運作的道理。

&#8211;
來源：學習寫程式 &#8211; Sy3es_wiki


Related posts:[Python] 在Python中使用中文Perl, Python, Ruby 比較[Django] 安裝與開新專案步驟


Related posts:<ol><li><a href='http://blog.lauct.org/?p=1464' rel='bookmark' title='Permanent Link: [Python] 在Python中使用中文'>[Python] 在Python中使用中文</a></li><li><a href='http://blog.lauct.org/?p=882' rel='bookmark' title='Permanent Link: Perl, Python, Ruby 比較'>Perl, Python, Ruby 比較</a></li><li><a href='http://blog.lauct.org/?p=1468' rel='bookmark' title='Permanent Link: [Django] 安裝與開新專案步驟'>[Django] 安裝與開新專案步驟</a></li></ol>]]></description>
			<content:encoded><![CDATA[<ul style="line-height: 1.5em; list-style-type: square; margin-top: 0.3em; margin-right: 0px; margin-bottom: 0px; margin-left: 1.5em; list-style-image: url(http://w3.sy3es.tnc.edu.tw/wiki/skins/monobook/bullet.gif); padding: 0px;">
<li style="margin-bottom: 0.1em;"><a style="text-decoration: none; color: #3366bb; background-image: url(http://w3.sy3es.tnc.edu.tw/wiki/skins/monobook/external.png); background-repeat: no-repeat; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: initial; padding-top: 0px; padding-right: 13px; padding-bottom: 0px; padding-left: 0px; background-position: 100% 50%;" title="http://www.openfoundry.org/en/Newsletter/Tech.-article/" rel="nofollow" href="http://www.openfoundry.org/en/Newsletter/Tech.-article/">如何像電腦科學家一樣思考</a>How to Think Like a Computer Scientist (中譯版) <a style="text-decoration: none; color: #3366bb; background-image: url(http://w3.sy3es.tnc.edu.tw/wiki/skins/monobook/external.png); background-repeat: no-repeat; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: initial; padding-top: 0px; padding-right: 13px; padding-bottom: 0px; padding-left: 0px; background-position: 100% 50%;" title="http://openbookproject.net/thinkcs/python/english2e/index.xhtml" rel="nofollow" href="http://openbookproject.net/thinkcs/python/english2e/index.xhtml">原文</a></li>
</ul>
<dl style="margin-top: 0.2em; margin-bottom: 0.5em;">
<dd style="line-height: 1.5em; margin-left: 2em; margin-bottom: 0.1em;">這是一本不錯的 Python 工具書，適合 Python 初學者閱讀的入門書</dd>
<dd style="line-height: 1.5em; margin-left: 2em; margin-bottom: 0.1em;">中譯版</p>
<ul style="line-height: 1.5em; list-style-type: square; margin-top: 0.3em; margin-right: 0px; margin-bottom: 0px; margin-left: 1.5em; list-style-image: url(http://w3.sy3es.tnc.edu.tw/wiki/skins/monobook/bullet.gif); padding: 0px;">
<li style="margin-bottom: 0.1em;"><a style="text-decoration: none; color: #3366bb; background-image: url(http://w3.sy3es.tnc.edu.tw/wiki/skins/monobook/external.png); background-repeat: no-repeat; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: initial; padding-top: 0px; padding-right: 13px; padding-bottom: 0px; padding-left: 0px; background-position: 100% 50%;" title="http://www.openfoundry.org/component/option,com_content/Itemid,334/id,1527/task,view/" rel="nofollow" href="http://www.openfoundry.org/component/option,com_content/Itemid,334/id,1527/task,view/">如何像電腦科學家一樣思考</a></li>
<li style="margin-bottom: 0.1em;"><a style="text-decoration: none; color: #3366bb; background-image: url(http://w3.sy3es.tnc.edu.tw/wiki/skins/monobook/external.png); background-repeat: no-repeat; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: initial; padding-top: 0px; padding-right: 13px; padding-bottom: 0px; padding-left: 0px; background-position: 100% 50%;" title="http://www.openfoundry.org/component/option,com_content/Itemid,334/id,1560/task,view/" rel="nofollow" href="http://www.openfoundry.org/component/option,com_content/Itemid,334/id,1560/task,view/">如何像電腦科學家一樣思考 | 1.程式之道</a></li>
<li style="margin-bottom: 0.1em;"><a style="text-decoration: none; color: #3366bb; background-image: url(http://w3.sy3es.tnc.edu.tw/wiki/skins/monobook/external.png); background-repeat: no-repeat; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: initial; padding-top: 0px; padding-right: 13px; padding-bottom: 0px; padding-left: 0px; background-position: 100% 50%;" title="http://www.openfoundry.org/component/option,com_content/Itemid,334/id,1587/task,view/" rel="nofollow" href="http://www.openfoundry.org/component/option,com_content/Itemid,334/id,1587/task,view/">如何像電腦科學家一樣思考 | 2. 變數、表達式及陳述</a></li>
<li style="margin-bottom: 0.1em;"><a style="text-decoration: none; color: #3366bb; background-image: url(http://w3.sy3es.tnc.edu.tw/wiki/skins/monobook/external.png); background-repeat: no-repeat; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: initial; padding-top: 0px; padding-right: 13px; padding-bottom: 0px; padding-left: 0px; background-position: 100% 50%;" title="http://www.openfoundry.org/component/option,com_content/Itemid,334/id,1629/task,view/" rel="nofollow" href="http://www.openfoundry.org/component/option,com_content/Itemid,334/id,1629/task,view/">如何像電腦科學家一樣思考 | 3. 函數</a></li>
<li style="margin-bottom: 0.1em;"><a style="text-decoration: none; color: #3366bb; background-image: url(http://w3.sy3es.tnc.edu.tw/wiki/skins/monobook/external.png); background-repeat: no-repeat; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: initial; padding-top: 0px; padding-right: 13px; padding-bottom: 0px; padding-left: 0px; background-position: 100% 50%;" title="http://www.openfoundry.org/component/option,com_content/Itemid,334/id,1694/task,view/" rel="nofollow" href="http://www.openfoundry.org/component/option,com_content/Itemid,334/id,1694/task,view/">如何像電腦科學家一樣思考 | 4. 條件式</a></li>
<li style="margin-bottom: 0.1em;"><a style="text-decoration: none; color: #3366bb; background-image: url(http://w3.sy3es.tnc.edu.tw/wiki/skins/monobook/external.png); background-repeat: no-repeat; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: initial; padding-top: 0px; padding-right: 13px; padding-bottom: 0px; padding-left: 0px; background-position: 100% 50%;" title="http://www.openfoundry.org/component/option,com_content/Itemid,334/id,1771/task,view/" rel="nofollow" href="http://www.openfoundry.org/component/option,com_content/Itemid,334/id,1771/task,view/">如何像電腦科學家一樣思考 | 5. 多效函數</a></li>
<li style="margin-bottom: 0.1em;"><a style="text-decoration: none; color: #3366bb; background-image: url(http://w3.sy3es.tnc.edu.tw/wiki/skins/monobook/external.png); background-repeat: no-repeat; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: initial; padding-top: 0px; padding-right: 13px; padding-bottom: 0px; padding-left: 0px; background-position: 100% 50%;" title="http://www.openfoundry.org/component/option,com_content/Itemid,334/id,1807/task,view/" rel="nofollow" href="http://www.openfoundry.org/component/option,com_content/Itemid,334/id,1807/task,view/">如何像電腦科學家一樣思考 | 6. 重複</a></li>
<li style="margin-bottom: 0.1em;"><a style="text-decoration: none; color: #3366bb; background-image: url(http://w3.sy3es.tnc.edu.tw/wiki/skins/monobook/external.png); background-repeat: no-repeat; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: initial; padding-top: 0px; padding-right: 13px; padding-bottom: 0px; padding-left: 0px; background-position: 100% 50%;" title="http://www.openfoundry.org/component/option,com_content/Itemid,334/id,1863/task,view/" rel="nofollow" href="http://www.openfoundry.org/component/option,com_content/Itemid,334/id,1863/task,view/">如何像電腦科學家一樣思考 | 7. 字串</a></li>
<li style="margin-bottom: 0.1em;"><a style="text-decoration: none; color: #3366bb; background-image: url(http://w3.sy3es.tnc.edu.tw/wiki/skins/monobook/external.png); background-repeat: no-repeat; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: initial; padding-top: 0px; padding-right: 13px; padding-bottom: 0px; padding-left: 0px; background-position: 100% 50%;" title="http://www.openfoundry.org/component/option,com_content/Itemid,334/id,1950/task,view/" rel="nofollow" href="http://www.openfoundry.org/component/option,com_content/Itemid,334/id,1950/task,view/">如何像電腦科學家一樣思考 | 8. 案例研究： Catch</a></li>
<li style="margin-bottom: 0.1em;"><a style="text-decoration: none; color: #3366bb; background-image: url(http://w3.sy3es.tnc.edu.tw/wiki/skins/monobook/external.png); background-repeat: no-repeat; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: initial; padding-top: 0px; padding-right: 13px; padding-bottom: 0px; padding-left: 0px; background-position: 100% 50%;" title="http://www.openfoundry.org/component/option,com_content/Itemid,334/id,2011/task,view/" rel="nofollow" href="http://www.openfoundry.org/component/option,com_content/Itemid,334/id,2011/task,view/">如何像電腦科學家一樣思考 | 9. Tuple</a></li>
<li style="margin-bottom: 0.1em;"><a style="text-decoration: none; color: #3366bb; background-image: url(http://w3.sy3es.tnc.edu.tw/wiki/skins/monobook/external.png); background-repeat: no-repeat; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: initial; padding-top: 0px; padding-right: 13px; padding-bottom: 0px; padding-left: 0px; background-position: 100% 50%;" title="http://www.openfoundry.org/component/option,com_content/Itemid,334/id,2044/task,view/" rel="nofollow" href="http://www.openfoundry.org/component/option,com_content/Itemid,334/id,2044/task,view/">如何像電腦科學家一樣思考 |10. 模組和檔案</a></li>
<li style="margin-bottom: 0.1em;"><a style="text-decoration: none; color: #3366bb; background-image: url(http://w3.sy3es.tnc.edu.tw/wiki/skins/monobook/external.png); background-repeat: no-repeat; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: initial; padding-top: 0px; padding-right: 13px; padding-bottom: 0px; padding-left: 0px; background-position: 100% 50%;" title="http://www.openfoundry.org/component/option,com_content/Itemid,334/id,2070/task,view/" rel="nofollow" href="http://www.openfoundry.org/component/option,com_content/Itemid,334/id,2070/task,view/">如何像電腦科學家一樣思考 |11. 檔案和例外</a></li>
<li style="margin-bottom: 0.1em;"><a style="text-decoration: none; color: #3366bb; background-image: url(http://w3.sy3es.tnc.edu.tw/wiki/skins/monobook/external.png); background-repeat: no-repeat; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: initial; padding-top: 0px; padding-right: 13px; padding-bottom: 0px; padding-left: 0px; background-position: 100% 50%;" title="http://www.openfoundry.org/component/option,com_content/Itemid,334/id,2088/task,view/" rel="nofollow" href="http://www.openfoundry.org/component/option,com_content/Itemid,334/id,2088/task,view/">如何像電腦科學家一樣思考 |12. 類別與物件</a></li>
</ul>
</dd>
</dl>
<ul style="line-height: 1.5em; list-style-type: square; margin-top: 0.3em; margin-right: 0px; margin-bottom: 0px; margin-left: 1.5em; list-style-image: url(http://w3.sy3es.tnc.edu.tw/wiki/skins/monobook/bullet.gif); padding: 0px;">
<li style="margin-bottom: 0.1em;"><a style="text-decoration: none; color: #3366bb; background-image: url(http://w3.sy3es.tnc.edu.tw/wiki/skins/monobook/external.png); background-repeat: no-repeat; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: initial; padding-top: 0px; padding-right: 13px; padding-bottom: 0px; padding-left: 0px; background-position: 100% 50%;" title="http://pydoing.blogspot.com/" rel="nofollow" href="http://pydoing.blogspot.com/">電腦做什麼事</a></li>
</ul>
<dl style="margin-top: 0.2em; margin-bottom: 0.5em;">
<dd style="line-height: 1.5em; margin-left: 2em; margin-bottom: 0.1em;"><strong>電腦做什麼事</strong>是一系列Python程式語言的教學文章，我們嘗試提供給讀者以簡單、直覺的方式學習程式語言，進而了解體會電腦背後運作的道理。</dd>
</dl>
<p>&#8211;</p>
<p>來源：<a href="http://w3.sy3es.tnc.edu.tw/wiki/index.php/學習寫程式">學習寫程式 &#8211; Sy3es_wiki</a></p>


<p>Related posts:<ol><li><a href='http://blog.lauct.org/?p=1464' rel='bookmark' title='Permanent Link: [Python] 在Python中使用中文'>[Python] 在Python中使用中文</a></li><li><a href='http://blog.lauct.org/?p=882' rel='bookmark' title='Permanent Link: Perl, Python, Ruby 比較'>Perl, Python, Ruby 比較</a></li><li><a href='http://blog.lauct.org/?p=1468' rel='bookmark' title='Permanent Link: [Django] 安裝與開新專案步驟'>[Django] 安裝與開新專案步驟</a></li></ol></p>
<p><a href="http://feedads.g.doubleclick.net/~a/wZazHsCZcl3_u-2sC_A_jVJzRLg/0/da"><img src="http://feedads.g.doubleclick.net/~a/wZazHsCZcl3_u-2sC_A_jVJzRLg/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/wZazHsCZcl3_u-2sC_A_jVJzRLg/1/da"><img src="http://feedads.g.doubleclick.net/~a/wZazHsCZcl3_u-2sC_A_jVJzRLg/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.lauct.org/?feed=rss2&amp;p=1458</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Perl/Tk] 學習筆記 1: Hello World</title>
		<link>http://blog.lauct.org/?p=1451</link>
		<comments>http://blog.lauct.org/?p=1451#comments</comments>
		<pubDate>Wed, 28 Oct 2009 07:19:00 +0000</pubDate>
		<dc:creator>Lauct</dc:creator>
				<category><![CDATA[電腦＆網路]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[Perl/Tk]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://blog.lauct.org/?p=1451</guid>
		<description><![CDATA[Hello World

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env perl
&#160;
# helloworld.pl
#
# Created by Chun-Ting Liu on 2009-10-28
&#160;
require 5.008008;
use warnings;
use strict;
use Tk;
my $mw = MainWindow-&#62;new;	#建立一個視窗
$mw-&#62;title&#40;&#34;Hello World&#34;&#41;;	#改變視窗標題文字，若沒有指定則預設為檔名（首字母會自動大寫）。title method不是必要的但會比較好看。
$mw-&#62;Button&#40;-text =&#62; &#34;Done!&#34;,
	-command =&#62; sub &#123; exit &#125;&#41;-&#62;pack&#40;&#41;;
	#建立一個寫著Done!的Button widget，點擊後則執行 exit。
MainLoop;	#開始GUI事件處理




Related posts:NK手打widget第三發：NK 訳丸中日翻譯[Perl] 私人工具箱：flickr2bps[Perl] BPS-FlickrFilter


Related posts:<ol><li><a href='http://blog.lauct.org/?p=70' rel='bookmark' title='Permanent Link: NK手打widget第三發：NK 訳丸中日翻譯'>NK手打widget第三發：NK 訳丸中日翻譯</a></li><li><a href='http://blog.lauct.org/?p=877' rel='bookmark' title='Permanent Link: [Perl] 私人工具箱：flickr2bps'>[Perl] 私人工具箱：flickr2bps</a></li><li><a href='http://blog.lauct.org/?p=1436' rel='bookmark' title='Permanent Link: [Perl] BPS-FlickrFilter'>[Perl] BPS-FlickrFilter</a></li></ol>]]></description>
			<content:encoded><![CDATA[<h3>Hello World</h3>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
</pre></td><td class="code"><pre class="perl" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/usr/bin/env perl</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># helloworld.pl</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># Created by Chun-Ting Liu on 2009-10-28</span>
&nbsp;
<span style="color: #000066;">require</span> <span style="color: #cc66cc;">5.008008</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">use</span> warnings<span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">use</span> strict<span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">use</span> Tk<span style="color: #339933;">;</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$mw</span> <span style="color: #339933;">=</span> MainWindow<span style="color: #339933;">-&gt;</span><span style="color: #006600;">new</span><span style="color: #339933;">;</span>	<span style="color: #666666; font-style: italic;">#建立一個視窗</span>
<span style="color: #0000ff;">$mw</span><span style="color: #339933;">-&gt;</span><span style="color: #006600;">title</span><span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot;Hello World&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>	<span style="color: #666666; font-style: italic;">#改變視窗標題文字，若沒有指定則預設為檔名（首字母會自動大寫）。title method不是必要的但會比較好看。</span>
<span style="color: #0000ff;">$mw</span><span style="color: #339933;">-&gt;</span><span style="color: #006600;">Button</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">-</span>text <span style="color: #339933;">=&gt;</span> <span style="color: #ff0000;">&quot;Done!&quot;</span><span style="color: #339933;">,</span>
	<span style="color: #339933;">-</span>command <span style="color: #339933;">=&gt;</span> <span style="color: #000000; font-weight: bold;">sub</span> <span style="color: #009900;">&#123;</span> <span style="color: #000066;">exit</span> <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #006600;">pack</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #666666; font-style: italic;">#建立一個寫著Done!的Button widget，點擊後則執行 exit。</span>
MainLoop<span style="color: #339933;">;</span>	<span style="color: #666666; font-style: italic;">#開始GUI事件處理</span></pre></td></tr></table></div>

<p><a href="http://blog.lauct.org/wp-content/uploads/2009/10/圖片-11.png"><img src="http://blog.lauct.org/wp-content/uploads/2009/10/圖片-11.png" alt="Hello World" title="Hello World" width="292" height="86" class="aligncenter size-full wp-image-1453" /></a></p>


<p>Related posts:<ol><li><a href='http://blog.lauct.org/?p=70' rel='bookmark' title='Permanent Link: NK手打widget第三發：NK 訳丸中日翻譯'>NK手打widget第三發：NK 訳丸中日翻譯</a></li><li><a href='http://blog.lauct.org/?p=877' rel='bookmark' title='Permanent Link: [Perl] 私人工具箱：flickr2bps'>[Perl] 私人工具箱：flickr2bps</a></li><li><a href='http://blog.lauct.org/?p=1436' rel='bookmark' title='Permanent Link: [Perl] BPS-FlickrFilter'>[Perl] BPS-FlickrFilter</a></li></ol></p>
<p><a href="http://feedads.g.doubleclick.net/~a/NAa0Al1lJUN4pEXbtf-Izn_89s4/0/da"><img src="http://feedads.g.doubleclick.net/~a/NAa0Al1lJUN4pEXbtf-Izn_89s4/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/NAa0Al1lJUN4pEXbtf-Izn_89s4/1/da"><img src="http://feedads.g.doubleclick.net/~a/NAa0Al1lJUN4pEXbtf-Izn_89s4/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.lauct.org/?feed=rss2&amp;p=1451</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>[Perl] 安裝 Perl CPAN 模組方法筆記</title>
		<link>http://blog.lauct.org/?p=1449</link>
		<comments>http://blog.lauct.org/?p=1449#comments</comments>
		<pubDate>Mon, 26 Oct 2009 02:46:15 +0000</pubDate>
		<dc:creator>Lauct</dc:creator>
				<category><![CDATA[Unix-like]]></category>
		<category><![CDATA[電腦＆網路]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://blog.lauct.org/?p=1449</guid>
		<description><![CDATA[方便的自動安裝

perl -MCPAN -e 'install full::module::name'

但我試了幾次很容易會在 fetch ftp 來源的 source code 時卡住，要重試幾次。
手動編譯

tar xzvf example-&#60;version&#62;.tgz
cd example-&#60;version&#62;
perl Makefile.PL
make
make test
make install

搜尋WP::UserAgent模組

cpan&#62; d /LWP::UserAgent/

重新配置cpan

cpan&#62; o conf init
cpan&#62; reload index

　
驗證安裝了沒

perl -e 'require LWP::UserAgent'



Related posts:[Perl/Tk] 學習筆記 1: Hello World[Perl] 私人工具箱：flickr2bpsdports 軟體安裝失敗錯誤訊息


Related posts:<ol><li><a href='http://blog.lauct.org/?p=1451' rel='bookmark' title='Permanent Link: [Perl/Tk] 學習筆記 1: Hello World'>[Perl/Tk] 學習筆記 1: Hello World</a></li><li><a href='http://blog.lauct.org/?p=877' rel='bookmark' title='Permanent Link: [Perl] 私人工具箱：flickr2bps'>[Perl] 私人工具箱：flickr2bps</a></li><li><a href='http://blog.lauct.org/?p=537' rel='bookmark' title='Permanent Link: dports 軟體安裝失敗錯誤訊息'>dports 軟體安裝失敗錯誤訊息</a></li></ol>]]></description>
			<content:encoded><![CDATA[<p>方便的自動安裝</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">perl</span> <span style="color: #660033;">-MCPAN</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">'install full::module::name'</span></pre></div></div>

<p>但我試了幾次很容易會在 fetch ftp 來源的 source code 時卡住，要重試幾次。</p>
<p>手動編譯</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">tar</span> xzvf example-<span style="color: #000000; font-weight: bold;">&lt;</span>version<span style="color: #000000; font-weight: bold;">&gt;</span>.tgz
<span style="color: #7a0874; font-weight: bold;">cd</span> example-<span style="color: #000000; font-weight: bold;">&lt;</span>version<span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #c20cb9; font-weight: bold;">perl</span> Makefile.PL
<span style="color: #c20cb9; font-weight: bold;">make</span>
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #7a0874; font-weight: bold;">test</span>
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

<p>搜尋WP::UserAgent模組</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">cpan<span style="color: #000000; font-weight: bold;">&gt;</span> d <span style="color: #000000; font-weight: bold;">/</span>LWP::UserAgent<span style="color: #000000; font-weight: bold;">/</span></pre></div></div>

<p>重新配置cpan</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">cpan<span style="color: #000000; font-weight: bold;">&gt;</span> o conf init
cpan<span style="color: #000000; font-weight: bold;">&gt;</span> reload index</pre></div></div>

<p>　<br />
驗證安裝了沒</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">perl</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">'require LWP::UserAgent'</span></pre></div></div>



<p>Related posts:<ol><li><a href='http://blog.lauct.org/?p=1451' rel='bookmark' title='Permanent Link: [Perl/Tk] 學習筆記 1: Hello World'>[Perl/Tk] 學習筆記 1: Hello World</a></li><li><a href='http://blog.lauct.org/?p=877' rel='bookmark' title='Permanent Link: [Perl] 私人工具箱：flickr2bps'>[Perl] 私人工具箱：flickr2bps</a></li><li><a href='http://blog.lauct.org/?p=537' rel='bookmark' title='Permanent Link: dports 軟體安裝失敗錯誤訊息'>dports 軟體安裝失敗錯誤訊息</a></li></ol></p>
<p><a href="http://feedads.g.doubleclick.net/~a/9kVMShIIT2mGRTyFE3Xr9JeMID0/0/da"><img src="http://feedads.g.doubleclick.net/~a/9kVMShIIT2mGRTyFE3Xr9JeMID0/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/9kVMShIIT2mGRTyFE3Xr9JeMID0/1/da"><img src="http://feedads.g.doubleclick.net/~a/9kVMShIIT2mGRTyFE3Xr9JeMID0/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.lauct.org/?feed=rss2&amp;p=1449</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Mac] 新舊 Mac Mini 的差別 （Late 2009 vs. Early 2009）</title>
		<link>http://blog.lauct.org/?p=1447</link>
		<comments>http://blog.lauct.org/?p=1447#comments</comments>
		<pubDate>Sun, 25 Oct 2009 07:28:26 +0000</pubDate>
		<dc:creator>Lauct</dc:creator>
				<category><![CDATA[蘋果電腦]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Mac mini]]></category>

		<guid isPermaLink="false">http://blog.lauct.org/?p=1447</guid>
		<description><![CDATA[

Related posts:台灣Mac mini Intel Core Solo/Duo價錢公佈[Mac] 試做 iWeb 個人首頁Intel-based Mac mini的評測


Related posts:<ol><li><a href='http://blog.lauct.org/?p=262' rel='bookmark' title='Permanent Link: 台灣Mac mini Intel Core Solo/Duo價錢公佈'>台灣Mac mini Intel Core Solo/Duo價錢公佈</a></li><li><a href='http://blog.lauct.org/?p=1354' rel='bookmark' title='Permanent Link: [Mac] 試做 iWeb 個人首頁'>[Mac] 試做 iWeb 個人首頁</a></li><li><a href='http://blog.lauct.org/?p=296' rel='bookmark' title='Permanent Link: Intel-based Mac mini的評測'>Intel-based Mac mini的評測</a></li></ol>]]></description>
			<content:encoded><![CDATA[<div id="attachment_1448" class="wp-caption aligncenter" style="width: 310px"><a href="http://blog.lauct.org/wp-content/uploads/2009/10/37521336.png"><img src="http://blog.lauct.org/wp-content/uploads/2009/10/37521336-300x275.png" alt="New and Old Mac mini's difference" title="新舊 mini 的差異" width="300" height="275" class="size-medium wp-image-1448" /></a><p class="wp-caption-text">New and Old Mac mini difference</p></div>


<p>Related posts:<ol><li><a href='http://blog.lauct.org/?p=262' rel='bookmark' title='Permanent Link: 台灣Mac mini Intel Core Solo/Duo價錢公佈'>台灣Mac mini Intel Core Solo/Duo價錢公佈</a></li><li><a href='http://blog.lauct.org/?p=1354' rel='bookmark' title='Permanent Link: [Mac] 試做 iWeb 個人首頁'>[Mac] 試做 iWeb 個人首頁</a></li><li><a href='http://blog.lauct.org/?p=296' rel='bookmark' title='Permanent Link: Intel-based Mac mini的評測'>Intel-based Mac mini的評測</a></li></ol></p>
<p><a href="http://feedads.g.doubleclick.net/~a/vVqJNEdFrjPZQOy2qN-aoPrbmGM/0/da"><img src="http://feedads.g.doubleclick.net/~a/vVqJNEdFrjPZQOy2qN-aoPrbmGM/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/vVqJNEdFrjPZQOy2qN-aoPrbmGM/1/da"><img src="http://feedads.g.doubleclick.net/~a/vVqJNEdFrjPZQOy2qN-aoPrbmGM/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.lauct.org/?feed=rss2&amp;p=1447</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
