Showing posts with label Software. Show all posts
Showing posts with label Software. Show all posts

Use Stellarium to Simulate 2009.07.22 Solar Eclipse

最近突然興起玩起Stellarium這套軟體,也介紹給小朋友使用,還教他們如何模擬今年七月二十二日的天文界的盛事--日全蝕。
小朋友反應還不錯,畢竟依照天文科學教育館的網站上的說法,這可是本世紀難得一件是天文景象呢!
以下的影片就是模擬2009年7月22日的日全蝕,觀測地點在台北,算是日偏蝕而已吧!

Eclipse中文化

Eclipse的中文化方式與安裝Plugin的方式一模一樣:
在Eclipse的功能列的"Help"-->"Software Updates..."
在標籤"Available Software"選項裡"Add Sites..."
填入Eclipse language package的網址

http://download.eclipse.org/technology/babel/update-site/ganymede

之後,展開網址,等Pending之後選擇想要安裝的語言,然後Install即可。

Enjoy it.

編輯.PO檔,轉譯成.MO檔(po to mo)

這兩天遇到中文化的檔案,可是需要翻譯po檔,然後上傳mo檔,翻譯po檔倒是還好,只需要使用一般的文字編輯器即可,不過要編譯成mo檔就需要其他的工具了。最後找到一個好用又免費的工具Poedit,支援多國語系,可以在翻譯po檔之後,存檔時順道編譯成mo檔。我拿wordpress mu的po檔來修改,發現一切OK,並沒有太大的問題。
希望這套Poedit未來能為網路上的套件做中文化的志願者會愈來越多,哈!

Plone 3 中文化

下載CJKSplitter與ZopeChinaPak,並放置於X:\....\Plone 3\Data\Products
CJKSplitter:http://www.zope.org/Members/panjunyong/CJKSplitter
ZopeChinaPak:http://plone.org/products/zopechinapak

然後到Plone的管理後台Zope(http://your.domain:8080/manage)的Control Panel
"Restart" Plone。

接著到站台(http://your.domain/),登入至"Site Setup"(http://your.domain/plone_control_panel)
-->Language
-->
Site language:
勾選 site language選擇"中文"

-->Save

此時會變成簡體中文,再一次選擇"站点語言",選Chinese(Taiwan)-->保存

主要的tag就會變成是正體中文的了,哈!

WAM使用規劃

過去,學校都會以WAM來建置學生當年電腦課所需的帳號密碼,學生都得背一組新的帳號密碼以便在新的學年裡上課及繳交電腦作業或其他課程作業使用,而一年之後,就得重新來過,包括當年所完成的作業也是一併刪除,最後,當孩子到六年級的時候他們所能帶走的就只有六年級的電腦作品(如果學生每年沒有自己備份的話)。
為了改變此種情形,我們規劃新的方式:
1、學生在校期間只有一組帳號密碼。
2、每年作業不刪除,直至學生畢業,作為畢業光碟的一部分。
3、老師檢視學生作業方便。
4、每年不管學生是否在原班或是升級,都可以以最簡單最快的方式來update。

最後想的方法是以學生入學時的學號當作帳號,密碼以身分證字號為主,每個學生的配額為100MB,作業以學生自己建置之資料夾來區分年級及作業別。
建立帳號之時先建立學生群組,學生之家目錄建置於學生群組的資料夾之下;
建立一資料夾,只有老師與管理者才讀寫,學生唯獨,作為老師欲分享給學生之區域;
老師可瀏覽及修改學生群組之目錄底下的所有資料夾(資料夾下包含所有學生之家目錄)。

Samba之smb.conf部分內容如下:

[www]
comment = 學生個人空間
browseable = yes
path = %H/www
writeable = yes
create mode = 0711
directory mode = 0755
veto files = /*.exe/*.eml/*.bat/*.nws/*.vbs/*.com/*.dll/*.msi//*.zip/*.rar/*.reg/*.sh
;預防學生存入不允許之多餘檔案,佔掉空間,譬如:遊戲
delete veto files = yes

[works]
browseable = yes
writeable = yes
printable = no
path = /home/students
write list = @teachers,@admins,
comment = 學生作品(老師專用)
valid users = @admins,@teachers
admin users= @admins,@teachers

[share]
browseable = yes
read list = @students
writeable = yes
printable = no
write list = @teachers,@admins
path = /share/share
comment = 共享區

另外,自己寫了一支小程式應付每年因升級或編班而有變動之網頁,用以方便瀏覽學生作業。
下載http://cid-9383760834731968.skydrive.live.com/self.aspx/Public/createform.zip
(倉促之下寫成,版面處理很差,如有先進幫忙修正,感激不盡)
^^

ArtRage 畫圖的好幫手

今晚無事玩玩久未碰觸的軟體---ArtRage,喜歡畫畫卻畫得不怎麼樣的我,於是就手癢起來了,要畫什麼好呢?就畫我的前女朋友吧!
ArtRage是個很擬真的的繪圖軟體,市面上繪圖軟體何其多,但是會令人驚艷的還是這一套,有空的話可以試試,Stand Edition版本是不用錢的喔!不過功能比Full Edition少了一些,還是可以表現其強大繪畫擬真的功能,尤其是畫筆一畫過會發現有筆壓的感覺喔!
畫未畢,室友一回來就被嚇到,說畫得很恐怖,哈!還說:七月到了幹嘛畫鬼?!
有畫這麼差嗎?我不覺得啊!只是畫胖、畫醜了而已,哈!

官方網站:http://www.artrage.com/

下載(錄製)由Windows Media Player播放的線上影片

網路上有許多文章都描寫如何使用Windows Media Player來看免費、高畫質的MOD奧運直播或重播,是學到了一招,可是可體驗的期限只有二十天左右,時間過後想再看就得付費了。於是,我想把影片下載下來保存。
試過許多方法,螢幕錄製、播放錄製等,雖然可以錄下,但是總是沒有原來的畫質好,我想要的是把MOD上面的影片完整抓下來。
終於,有個軟體可以辦到了,而且不只是MOD上的影片,其他可透過mms://或HTTP://或其他方式播放的都可以下載,甚至連需要帳號密碼的也行。接下來以MOD上的影片來作範例,用到的軟體叫做『WM Recorder』,目前已到第十二版,也就是WM Recorder 12,但是我只能用WM Recorder 10來做示範(因為在內地網站只抓到10版的破解= =!!!),試用版可以抓二~五分鐘。雖然不是最新版的,但是下載的方式都一樣。

步驟如下:
1、找到要下載的檔案的連結,並複製,依Windows Media Player上的MOD的方式就是:

(1)、播放要抓取的影片,打開播放的內容資訊。


(2)、複製檔案『位置』。


2、安裝好WM recoder,執行WM Recorder


3、點擊控制面板上的"URL's"按鈕


4、在跳出的視窗上的功能列上的"Options"-->"Paste",然後貼上URL按"確定"。


5、點一下要下載的URL,接著按"Record"。(可一次貼完URLs,然後全部選起來一起下載)


6、之後會再跳出一個下載的狀態視窗,等"Progress"到了100%就下載完囉!


7、下載完的檔案,如果是在Windows上,預設會在C:\WMR Recordings底下。^^

後記:下載的速度非常快,所以很快就下載好了,除非家裡的是撥接的,哈!下載要快,不然就體驗帳號過後就得付費了。

這樣下載有犯法嗎?我也不知道耶!
↓↓
WM Recoder 10破解版(以下連結為大陸網站,小弟用賣咖啡McAfee沒掃到毒)
http://www.soft168.com/soft/3767.htm

使用Office2007 Word當離線版部落格編輯器

今天無聊在玩Office2007 Word,突然發現新版的Word支援發佈到各種部落格平台上,於是就決定用Word來發一篇文章到Blogger(就是這一篇啦!)。不過,缺點說在前頭,沒有辦法上傳圖片到Blogger上,期待未來微軟能否改進。
0、使用時可以以word檔裡的內容直接發佈成部落格文章,也可以先新增『部落格』之後再來編輯。前者是原先word內容會直接成為部落格文章,然後再決定文章標題及發佈的部落格平台;後者則是先決定部落格平台再寫文章標題及內容。

在此先以先新增『部落格』開始。

一、由左上角office圖案開始-->發佈-->部落格

二、接下來『立即註冊』

三、選擇您的部落格平台,然後點選『下一步(N)』。


四、填入您部落格平台上的帳號密碼

五、直接按『確定』即可。(無-不要上載圖片)

六、選擇您要發佈至的部落格。(假如一個帳號有多個的話)

七、編輯文章完之後可以直接在左上角選擇『發佈』成文章或是草稿。


後記:不能上傳圖片或檔案,對部落格客來說實在一大缺點,所以Word 2007支援部落格這個功能,有點像雞肋一樣,另外,回到blogger上編修時,有時會出現不被blogger接受的tag,所以說,玩玩就好!^^


用FireFox玩任天堂紅白機遊戲: FireNES

閒來無事,在網路上參考他人有使用哪些好用的Firefox Add Ons,結果發現了FireNES,就是把Firefox當作任天堂紅白機模擬器,安裝FireNES之後直接只用Firefox就可以點選遊戲來玩,哈!太有趣了。
官網下載支援Firefox 3的附加元件即可,安裝之後然要重開Firefox。

再來選擇功能列上的『工具』->『FireNES』開啟側邊欄的遊戲列表。

double click想玩的遊戲就會跳出小視窗來,這樣就可以玩了,哈!

控制按鈕:


對了,要先裝Java喔!

我们成功了!

七月三日收到一封Email,來自於spreadfirefox.com,原來是2008 Firefox 3下載日的成功通知,內容如下:

我们成功了!

我们创造了一项吉尼斯世界记录──24小时内软件下载次数最多。凭借您的帮助我们达到了8,002,530次下载

您现在不仅是一项世界记录的一员,还是最好一版Firefox的拥有者!

别忘记下载特别属于您的创造这次吉尼斯记录的证书。
...............

这封邮件的发送人是 Mozilla Corporation, 1981 Landings Drive, Bldg. K, Mountain View, CA 94043-0801.


一共有八百多萬人次耶!哇賽!我至少貢獻了一次,你呢?!參與了嗎? ^_______^

Windows XP Show System Information系統資訊指令

過去每次重灌完作業系統想要知道主機板的型號都要拆開機殼來看,懶得拆就得安裝安裝其他軟體才能得知。後來發現根本不用,Windows XP本身就有這個功能了。只要在桌面左下角

"開始"-->"執行",然後在對話視窗裡輸入 msinfo32 就會跳出"系統資訊"視窗,裡頭包含軟、硬體資訊及系統設定、摘要等等,真是方便,哈!

灯塔安全卡雙系統製作方式(Linux (UBuntu)+WinXP)

前提:如果要保留原作業系統,須先製作備份檔,ghost或其他image檔喔!可以避免重做OS的時間。

Step 1. 如果原硬碟有安裝過任何作業系統須先格式化所有partition,把硬碟還原到最初出廠時的樣子。

Step 2.安裝灯塔的SafetyCard,如果顯示找不到分割區之類的訊息,在第一個步驟時就須以spfdisk(或其它磁碟管理工具)建立一個partition,quota是配置整顆硬碟。

Step 3.以SafetyCard上所附的"FDISK"來建立欲安裝的分割區。

Step 4.Linux須安裝在Window XP之前,所以第一個分割區須為Linux,第二為linux swap,第三為WinXP,第四則為Data(預作Windows與Ubuntu共用的NTFS磁區)。畫面上的排列大概是

系統名稱 XXXX 屬性 檔案系統 方式 復原 容量
1. Ubuntu 備份區 Linux native 還原 手動 ??????MB
2. Ubuntu swap 資料碟 Linux swap 清除 手動 ??????MB
3. WinXP 系統碟 HFPS/NTFS 還原 手動 ??????MB
4. Data 資料碟 HFPS/NTFS 清除 手動 ??????MB

以上,復原的頻率原則上我一開始都設為手動,因為我怕一不小心又得重來。

Step 5.重開機之後會出現選單,但是只是有選單,並沒有作業系統,我先安裝Ubuntu 7.10-desktop。放入光碟之後,在安全卡的選單上的Ubuntu上按Enter,如果沒有意外,會進入Ubuntu的光碟啟動畫面。

Step 6.進入Ubuntu後,桌面上會有一個"安裝"的圖示,要安裝,按它就對了!

Step 7.安裝畫面繁瑣的不說了,挑重點講:
(1)安裝磁區要選擇"手動",而不是其他兩項或三項,導引整顆硬碟或是最大連續空間之類的,手動就是手動。
(2)接下來這邊應該會有已經分割好的partition,最上面哪兩個就是掛載/(root)跟Swap的磁區,設定好順便給他格式化吧!Next
(3)來到最後一頁,別急著按"完成",按下去就馬上做白工;這一畫面的"完成"上面有個"Advance.."按鈕,輕輕用滑鼠按一下,跳出的小小視窗要設定開機管理員安裝在哪?把中間的(hd0)改成你Ubuntu的 / 磁區,如果沒有意外,應該是 /dev/hd0或是 /dev/sda1之類的,這裡如果沒有設,裝好之後就會看到 黑底白字"Missing Operation System"之類的畫面。繼續吧!

Step 8. 好了嗎?Ubuntu裝好了嗎?裝好就重開機吧!注意,重開到安全卡的開機選單時,記得要按F2儲存啊!不然就是....北了剛


Step 9.進入UBuntu看看,如果沒有意外應該成功了。(一進入的剎那我快哭出來了,失敗太多次了。)

Step 10.安裝WinXP的方式跟Ubuntu差不多,從Step 5開始repeat就好了。如果是用ghost檔還原的方式,就繼續看下去。

Step 11.用之前做的ghost檔把source還原到第三個partition裡就ok了。哈!真簡單!

Step 12.還原之後重開機時記得按F2儲存喔!

Step 13.喝咖啡,休息,準備下班!


備註:我用的還原方式是拿Win PE 3.0先開機,然後把WinXP跟Data磁區給格式化為NTFS,然後把source image放進Data裡再還原WinXP。為什麼我要這麼麻煩,沒有為什麼,只是不想浪費光碟片而已! ^^

Microsoft Physics Illustrator for Tablet PC

A few days ago, at a study place that the lecturer show a film about the physics teaching is "MIT sketching" form YouTube. At first glance, it is inconceivable that, it can used "amazing" to be described. After that, I also download the software and try...... Only said: "If the former physics class can be, maybe I have learned better."
------

------
前幾天在研習的會場看到講師秀一段影片,關於物理的教學MIT sketching。乍看,真是令人覺得不可思議,簡直可以用"嘆為觀止"來形容了。之後,我也去下載來玩看看......。只能說:"如果以前的物理課可以這樣上,那當時也許我會學得更好。"

Add Blog to Live Writer | 在Live Writer上新增部落格

Add Blog into Live Writer:
以下是在Windows Live Writer上新增部落格的方式:

On Live Writer, select "Blog"-->"Add blog account"
在功能列上選擇"部落格"-->"新增部落格帳號"

Select blog. Next!
選擇部落格種類(以Blogger為例,所以選"其它的部落格服務"),下一步

Type blog service homepage & account and password.
打上部落格首頁網址及登入的使用者帳號密碼,下一步

Select blog service name(ex. blogger). And the post URL can use atom or feed url.
Next!
選擇部落格服務的提供者(以Blogger為例),
部落格的遠端張貼網址URL可以貼上Blog的Atom網址或是feed網址,下一步

If your account include several blog, select one you want to add.
Next!!!
如果您的帳號含有多個部落格,在此選擇要新增的那一個。下一步

Detecting blog setting.... If there is "Allow Writer to establishment blog temporary content?"
Choose "Yes", the future use of Live Write, Writer editor will use your blog templete that the content of the article set, the same as direct online editor.
Choose "no", then use the default Writer editor appearance.
之後會偵測部落格設定,如果出現"允許Writer建立暫存內容?",可以選擇是或否。
選擇"是",未來使用Live Write的時候,編輯視窗會使用您部落格顯示文章內容的佈景主題,就像直接線上編輯一樣。
選擇"否",則使用Witer預設的編輯器外觀。

The finish info window. If you need modify the setting choose "setting". If you finish it, choose "finish".
設定完成的最後訊息視窗。需修改設定則選"編輯設定",否則選"結束"即可。

This is all. Easy! ^^
這樣就好了,很容易吧!^^

Windows Live Writer

Today I feel my Live Messenger has some problems, when start always show me "failure" and close itselft. So I uninstall it and then link to the MSN official website to download the software. On the website, Windows Live Messenger provide new vesion to download and preview beta version. Which one of it include a sofeware "Windows Live Writer". Curious play. This is what I want! ! ! !

As for what is Windows Live Writer? Below is the describe on his official website, the home page content from http://get.live.com/betas/writer_betas

Introducing Windows Live Writer

Welcome to the Windows Live Writer team blog! We are excited to announce that the Beta version of Windows Live Writer is available for download today.

Windows Live Writer is a desktop application that makes it easier to compose compelling blog posts using Windows Live Spaces or your current blog service.

Blogging has turned the web into a two-way communications medium. Our goal in creating Writer is to help make blogging more powerful, intuitive, and fun for everyone.

Writer has lots of features which we hope make for a better blogging experience. Some of the ones we are most excited about include:

WYSIWYG Authoring

The first thing to notice about Writer is that it enables true WYSIWYG blog authoring. You can now author your post and know exactly what it will look like before you publish it. Writer knows the styles of your blog such as headings, fonts, colors, background images, paragraph spacing, margins and block quotes and enables you to edit your post using these styles.

Writer also includes other views including HTML source-code editing and web preview mode.

Now you don’t have to waste time going through the process of publishing, refreshing, previewing, and tweaking your post to get it looking the way you want. It’s all right there in Writer as you create your post.

.......

So, simply, this is a blog editor, can support general functions of blog editor. It can be off-line editing, support many blog services, and so on.

Download
Version 12.0.1277.0816

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

今天覺得自己的Live Messenger有點問題,怎麼啟動都會出現"啟動失敗",於是就到MSN的官方網頁想下載新的即時通訊,就發現Windows Live Messenger搶鮮版。其中多了一個Windows Live Writer,好奇之下就裝起來玩。發現,這正是我要的!!!!

至於什麼是Windows Live Writer?下面是他官方網站的介紹,取自http://get.live.com/betas/writer_betas的首頁內容

與您的部落格服務相容

Writer 能將內容發佈至 Windows Live Spaces、Sharepoint、WordPress、Blogger、LiveJournal、TypePad、Moveable Type、Community Server 等多家部落格服務。

「所見即所得」的編輯功能

  • Writer 會記住您的部落格所使用的視覺主題。因此,當您在編寫自己的部落格文章時,就能在發布之前預先看到實際的發佈結果。

  • 發佈豐富的媒體內容

  • 在 Writer 的協助之下,發佈豐富的媒體內容就像傳送電子郵件一般簡單。只要插入您想要的相片、地圖、標籤以及各式各樣的酷炫內容,並於完成自訂之後按一下「發佈」即可 - 沒錯,就是這麼簡單!

  • 強大的編輯功能

  • 有了 Writer,您只需要按一按滑鼠,就能立即插入並編輯表格、一面輸入文字一面進行拼字檢查,並為您的內容設定格式及超連結,讓您能夠無比輕鬆地建立引人注目的部落格文章。

  • 離線編輯

  • 從現在起,想要隨時隨地編輯自己的部落格再也不是夢想。Writer 會自動維持您的部落格草稿和離線變更之間的同步化,讓您再也不用擔心內容不一致的問題。

  • .........
  • 所以,簡單來說,這就是一個部落格編輯器,可以支援多個部落格的編輯器、可以離線編輯、集合所有編輯器常用的功能等等。

  • 下載
  • Integrate(整合) MediaWiki & FCKeditor

    裝好了MediaWiki,可是卻發現MediaWiki的編輯器真是一點都不人性化,要記得一些程式標籤寫的文章才能夠比較有變化。但是,平常誰會去記?當然,最好能夠改成WYSIWYG的編輯軟體最好,首選當然是免費的FCKeditor啦!

    我裝的是mediawiki-1.11.0加上mediawiki_fckeditor_ext_N,以下的內容出自Mediawiki+FCKeditor這個網站的一篇FCKeditor integration guide,版權是屬於Mediawiki+FCKeditor,我只是重點式的把它翻譯成中文而已,原文連結為
    http://mediawiki.fckeditor.net/index.php?title=FCKeditor_integration_guide。

    首先先下載Mediawiki的延伸套件Download FCKeditor extension,解壓縮到mediawiki的extense資料夾裡。
    請確認解壓縮出來的FCKeditor裡是不是還有fckeditor這個資料夾,FCKediotr包含了mediawiki的extense,而fckediotr則包含了Rich Text Editor本身。未來如果要升級FCKeditor的版本,只要對fckeditor裡的做升級即可。
    接著,在mediawiki的
    LocalSettings.php的最底下增加一行:
    r
    equire_once $IP . "/extensions/FCKeditor/FCKeditor.php";

    補丁:

    以下將盡其所能的秀出mediawiki源碼的部份,目前只有兩個檔案需要處理以便整合至mediawiki(其中一個是可選的)。(測試版本MediaWiki 1.10.1和MediaWiki 1.11.0)

    includes/EditPage.php (必須的)

    以下的修改是為了讓"顯示預覽"的功能正常。

    getPreviewText()
    ---
    修改前
    global $wgOut, $wgUser, $wgTitle, $wgParser;
    修改後
    global $wgOut, $wgUser, $wgTitle, $wgParser, $wgRequest;
    ---
    ---
    修改前
    wfProfileIn( $fname );
    if ( $this->mTriedSave && !$this->mTokenOk ) {
    修改後
    wfProfileIn( $fname );

    if ($wgUser->getOption( 'showtoolbar' ) && !$wgUser->getOption( 'riched_disable' ) && !$this->previewOnOpen() ) {
    $oldTextBox1 = $this->textbox1;
    $this->importFormData( $wgRequest );
    }

    if ( $this->mTriedSave && !$this->mTokenOk ) {
    ---
    ---
    修改前
    wfProfileOut( $fname );
    return $previewhead . $previewHTML;

    修改後
    if ($wgUser->getOption( 'showtoolbar' ) && !$wgUser->getOption( 'riched_disable' ) && !$this->previewOnOpen() ) {
    $this->textbox1 = $oldTextBox1;
    }

    wfProfileOut( $fname );
    return $previewhead . $previewHTML;
    ---
    includes/Parser.php (必須的)
    這個修改為使其正確的轉換文本。
    doBlockLevels()

    修改前
    $output .= $this->closeParagraph().'<pre>';
    修改後
    $output .= $this->closeParagraph().'<pre class="_fck_mw_lspace">';

    includes/SpecialPreferences.php (可選的)
    這裡的修改是在"我的參數設置"裡新增一個"Rich Editor"選項,用來控制是否使用FCKeditor。如果沒有此修改,FCKeditor的啟用與否將全部列在"雜項"裡。
    mainPrefsForm()
    修改前
    global $wgLivePreview;
    $wgOut->addHTML( '<fieldset><legend>' . wfMsg( 'textboxsize' ) . '</legend>
    <div>' .
    wfInputLabel( wfMsg( 'rows' ), 'wpRows', 'wpRows', 3, $this->mRows ) .
    ' ' .
    wfInputLabel( wfMsg( 'columns' ), 'wpCols', 'wpCols', 3, $this->mCols ) .
    "</div>" .
    $this->getToggles( array(
    'editsection',
    'editsectiononrightclick',
    'editondblclick',
    'editwidth',
    'showtoolbar',
    'previewonfirst',
    'previewontop',
    'minordefault',
    'externaleditor',
    'externaldiff',
    $wgLivePreview ? 'uselivepreview' : false,
    'forceeditsummary',
    ) ) . '</fieldset>'
    );

    修改後
    global $wgLivePreview;
    $wgOut->addHTML( '<fieldset><legend>' . wfMsg( 'textboxsize' ) . '</legend>
    <div>' .
    wfInputLabel( wfMsg( 'rows' ), 'wpRows', 'wpRows', 3, $this->mRows ) .
    ' ' .
    wfInputLabel( wfMsg( 'columns' ), 'wpCols', 'wpCols', 3, $this->mCols ) .
    "</div>" .
    $this->getToggles( array(
    'editsection',
    'editsectiononrightclick',
    'editondblclick',
    'editwidth',
    'showtoolbar',
    'riched_disable', //add new tab (Rich Editor)
    'previewonfirst',
    'previewontop',
    'minordefault',
    'externaleditor',
    'externaldiff',
    $wgLivePreview ? 'uselivepreview' : false,
    'forceeditsummary',
    ) ) . '</fieldset>'
    );

    # FCKeditor
    # load FCKeditor settings into separate tab
    if (!$wgUser->getOption( 'riched_disable' )) {
    $wgOut->addHTML( '<fieldset><legend>' . wfMsg( 'textrichditor' ) . '</legend>' .
    $this->getToggles( FCKeditor::$nsToggles ) . '</fieldset>'
    );
    }
    修改完了就可以去試試看啦!
    後記:不知道有沒有可以批次(大量)新增帳號的extense?

    電子郵件轉移 ( Email Migration ) on Google Apps

    轉移學校所有教職員的信件之前,我在想如何能夠順利轉移,因為移轉需要原Mail Server上所有老師的帳號密碼,有考慮兩種思考:第一種方式:轉移必須知道所有人員的帳號跟密碼,要一一取得所有老師的密碼是件很困難又根本不會達成 的事,而Linux的shadow裡的密碼都是加密過的,用破解的是非常不道德且不允許的,只能用問的,但老師又不見得會告訴你;第二種是在原來的 Mail Server上把所有Mail User的密碼重設,等轉移過後,請使用者們自己在第一次登入時修改密碼。想當然爾,選擇第二種是簡單又迅速的的方法。
    經資訊小組討論過後,決定找一個時間移轉,事前當然需要先公告Mail Server要移轉的緣由跟時間,給User準備跟期待。
    移轉的步驟:

    1、在原本的Mail Server主機上重設所有User的密碼。(我是在Webmin上把所有的User的帳號移出來,用Excel編輯成需求的格式,像這樣

    A B C
    1 username source username source password
    2 picasso picasso 12345
    3 claude.monet claude.monet 12345
    4 lilies lilies 12345
    )

    2、匯回修改後的CSV檔,批次修改所有User的資料。

    3、到Google Apps的電子郵件移轉(Email Migration)設定:此次轉移任務的名稱(不拘). (2)伺服器軟體、主機位置(IP或host.domain都可以)、安全性(看原本的Mail Server是不是採用SSL或STARTTLS模式,如果都沒有則選"無"). (3)通訊埠(安全性選"無"及"STARTTLS"為143,選"SSL"為993,不過要看原Mail Server所採用的協定). (4)IMAP路徑前置字串(Linux上通常為/var/spool/mail或是/var/mail/)

    目前電子郵件轉移(Email Migration)所支援的伺服器軟體

    設定完之後,按"繼續"
    接著是要選擇移轉使用者帳戶的方式:一些或是大量

    決定之後就選擇"繼續"。(我當然是選大量的囉!有幾百人呢!)
    接下來就把之前做的CSV檔給傳上去,按個"上載並測試連線"

    如果成功了,就會顯示所找到的信件匣(通常叫做Inbox)。

    最後就可以開始快樂的轉移(Migration)了。

    後記:
    本來預估半天就可以搞定,但是一直顯示連線失敗,看了Google Apps所提供的錯誤訊息文件也 沒辦法解決,最後打算用最簡單的方式:"砍掉重練"。我把Mail Server(Postfix)相關套件移除(反正移轉後也要移除了),包含MailScanner、Spamassassin、Sasl2、F- prot、Devocet等等移除,只裝SendMail跟Devocet,結果居然伺服器驗證失敗,是帳號驗證失敗,不是伺服器連線測試失敗。後來才發 現我在耍笨,是我在重設老師的密碼,在批次modify時,少了一個欄位(原本webmin匯出的格是一個帳號是13個欄位,要modify時要增加一 個"被修改的帳號"的欄位),難怪伺服器OK,帳號驗證不OK;修正之後就一切正常了,也順利轉移,不過也搞到當天晚上十一點多才睡覺。@@!!!

    Remove Malicious Software移除惡意軟體(俗稱:流氓軟件)

    When browse through China websites usually would being to pop out several advertise pages, or having to install some components and continue to browse. Or perhaps downloaded software from the China websites that be bedded other softwares. It must be forced to install and can use original software. Even the RM or RMVB format files that because of oneself the file format had auto function of opening the web page be used to infix advertisement. These example are too numerous to enumerate.

    Understood not very much before, but know finally recently those malice software is what! Because I also am ever and deeply harmed by it!

    The malice software lies in the virus with regular software or business software. It's classification contain a lot of kinds.( The follows are sorting and classifing by myself. ) for examples:

    Kidnap home page: This kind of malice software will distort the settings of the browser and force an user to browse certain one page with the Plugin, the browser assistance tool(BHO) or the Winsock LSP(the Layered Service Provider), and usually can't change or move. These softwares have : 3721 networks, Tao-Bao net, BT launch machine, DuDu accelerator, CNNic Chinese to the Internet, 3721 Internet Assistant, 888y, 9i5, 37021, instafinder, cnww, okww etc..

    The Malicious shareware: This kind of softwares use common used software to bind the malice software and lure by money offers or the trap or other methods to let the user to register, or force to install to the computer directly. Be often used to be the tools that carry with the malice software : Media Player Classic, QQ2005, KUGOO, Trojan expert 2006, WINRAR, Skype crack version etc., These softwares have no wrong. Wrong is the person who joins the malice software.

    Spyware and Track ware: This type usually install secretly in the computer to be a rootkit(back door). It records the user's usage habit, information, account number, password etc. Familiar of in addition to the Trojan programs, the others are 3721 networks, GetRight, Keyloggers, Dialers etc..

    Paralyze the anti-virus software or other softwares: Some malice softwares avoid the anti-virus softwares or anti-hack softwares to detect for the sake of the protection itself and after install them make duplicate by their own in the meantime and carry out a lot of processes first. Maybe they open a lot of processes to paralyze an anti-virus software and letting the anti-virus software can't thoroughly clearance; Perhaps they paralyze the bandwidth flooding. This kind of software contain: DMCase desktop tools, BankAsh-A(the bank cash) etc..
    Advertise software(Adware): Reach the advertisement benefit or earning advertising reward, the softwares will open many advertisement Windows compulsorily. More than the behavior, user can't remove softwares completely. For example: IE_WinServerName, vste, 37ss mutation, NetSystem, DiRVIn etc..

    The vedio advertises: This type most occur in the RM or the RMVB files. Because of oneself design to be haven the function of the automatic performance affairs(events) and just be made to use to be advertise tool. This behavior of the video let user to abominate extremely.

    The top tool of the clearance malice softwares probably is "360 Safe Bodyguard ". This software author can be treated as the first ancestor of the malice software. But now he repent and develop this software to let people avoid the banes of the malice software. Another software is "KillSoft ", being called Switzerland knife of the system maintenance.

    If want to clean the advertisement of the RM or RMVB files. We can clean the RM advertisement by the freeware Real Fileter or shareware "Real Producer Plus" and the "SuperRrabbit".

    "360 Safe Bodyguard" is more effectively to the malice software of the China. To remove malice softwares of the western word have to depend on the "Ad-Aware SE "! However "Ad-Aware SE" only the personal version doesn't need to be paid and other of all want to pay. And The tool of the Microsoft oneself Microsoft Windows Malicious Software Removal Tool can be try.

    In fine, if meet a web page of having the oddness behavior or the free softwares that free and have full functions, have to notice more by ordinary time. Be carelessly very easy to become a victim by malice softwares.

    P.S: If use the China softwares, the simplified Chinese interface of softwares usually will be a disorderly code. By this way, We can use the Microsoft AppLocale .


    有時候上大陸網站,常常會莫名跳出視窗,或者必須要安裝某些元件才能繼續瀏覽等等,又或者從大陸下載的軟體當中被綑綁了其他的軟體,強迫安裝才能使用原來 的軟體,甚至連RM或RMVB因本身檔案格式有自動開啟網頁的功能,而被利用來作為夾帶廣告的影音檔。這些例子多的不勝枚舉。以前還不是很了解,最近終於 知道那些惡意軟體是什麼東西了!因為我也曾經深受其害!

    惡意軟體介於病毒與正規或商業軟體之間,其分類有很多種,以下是我自己整理分類的,譬如說有:

    綁架首頁:這種惡意軟體會篡改瀏覽器的設定,以瀏覽器的Plugin、瀏覽器輔助工具(BHO) 或是Winsock LSP(Layered Service Provider)的形式來強迫使用者瀏覽某一畫面,而通常無法更改或移除。這些軟體一般有:3721網路實名、淘寶網 BT發動機 DuDu加速器、CNNic中文上網、上網助手、888y、9i5、37021、instafinder、cnww、okww等等。

    惡意共用軟體(Malicious shareware):這種會利用各種常用軟體來綑綁惡意軟體,用利誘或陷阱或其他手段來讓使用者註冊,或直接強迫安裝到使用者的電腦裡。一般常見被利用 來綑綁的軟體有:暴風影音(Media Player Classic)、QQ2005、KUGOO、木馬專家2006、WINRAR、Skype破解版等,這些軟體本身並沒有錯,錯的是加入惡意軟體的人。

    間諜軟體或(Spyware)是行為紀錄軟體(Track ware):這一類的通常偷偷安裝在電腦上當作後門(rootkit),紀錄使用者的使用習慣資訊、帳號、密碼等資料。常見的除了木馬程式之外,另有3721網路實名、GetRight Keyloggers、 Dialers等等。

    癱瘓防毒軟體或其他軟體:有的惡意軟體為了保護自己避免被防毒軟體或防駭軟體偵測到,在安裝好的同時先自我複製且執行一堆程序,譬如開啟一堆視窗來癱瘓防毒軟體,就算防毒軟體抓得到卻也砍不完;又或者是癱瘓頻寬(Bandwidth Flooding)等惡意作為。這一類的大概有:DMCase桌面媒體BankAsh-A (銀行現金)等。

    廣告軟體(Adware) :為個達到廣告效益或賺取廣告費,這類軟體會強制開啟許多廣告視窗,更甚者可能無法完全移除。例如IE_WinServerNamevste37ss變種NetSystemDiRVIn等等。

    影片廣告:這一類多半發生在RM或RMVB檔,因本身設計就具有自動執行事件(events)的功能,只是被利用來當作廣告工具。這會讓觀賞影片者不勝其擾。

    其他:.....

    目前所指比較利害的清除流氓軟體的工具大概是"360安全衛士 ",此軟體作者可說是惡意軟體的始祖,後來"改邪歸正"來發展此軟體以讓人們避免惡意軟體的危害。另外一套是"完美卸載",俗稱系統維護的瑞士刀。

    如果是要去除RM或RMVB上的廣告可用免費軟體RealFilter(Download from my site)或者使用需付費的超級兔子去除RM廣告軟體或是Real Producer Plus來移除。

    360安全衛士對大陸的惡意軟體黑幫比較有效,那西洋的流氓軟體就得靠Ad-Aware SE 囉!不過Ad-Aware SE只有Personal版的才不需付費,其他的都要付費。另外還有微軟自家的Microsoft Windows Malicious Software Removal Tool ,也可以試試看!

    另外,如果使用大陸的軟體,簡體字畫面在其他語系通常會是亂碼,這時候Microsoft AppLocale 是可以使用的工具之ㄧ。

    總之,如果遇到有著奇怪行為的網頁或者看起來免費又大碗的免費軟體,這時候得更加注意,一不小心很容易就成為被流氓欺負的受害者了。

    Install Xcache to accelerate for PHP

    In addition to eAccelerator I found a tool that can accelerate for the PHP. However the person who use it less apparently.

    Install it also easily. But you must install php-devel befor. Because we will use phpize later.

    The suggestion of the official website, if you use php 4 and you want to use 1.03 edition as follows;You use php5 above and you better went to use 1.20-rc1 edition

    1.03(stable):http://210.51.190.228/pub/XCache/Releases/xcache-1.0.3.tar.gz

    1.20-rc1(newest):http://210.51.190.228/pub/XCache/rc/1.2.0-rc1/xcache-1.2.0-rc1.tar.gz

    #cd /usr/local/src

    #wget http://210.51.190.228/pub/XCache/rc/1.2.0-rc1/xcache-1.2.0-rc1.tar.gz

    #tar zxvf xcache-1.2.0-rc1.tar.gz

    #cd xcache

    #phpize // use phpize to create configure file.

    #./configure --enable-xcache --enable...

    #make

    #make install

    #cat xcache.ini >> /etc/php.ini

    #$EDITOR /etc/php.ini //alter xcache settings to what you want and don't forget
    to restart your web server.

    Xcache also has Web UI:

    Copy the directory "admin" to you web root. Maybe you create a directory for Xcache's admin.

    #mkdir /your/webroot/xcachexcache

    #cp -R admin/ /your/webroot/xcache/

    # $EDITOR /etc/php.in

    Alter the username and password to what you want.

    [xcache.admin]
    xcache.admin.user = "admin"
    ; xcache.admin.pass = md5($your_password)
    xcache.admin.pass = ""

    --------------------------------------------------------------------------------
    You can use php page to create your password md5 code.


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

    Reatart you web server and connect your Xcache admin URL. ^^


    除了eAccelerator之外,我又發現一套可以為php加速的工具,但是似乎欲的人比較少了些。

    這套名字叫做Xcache安裝也是同樣簡單,只是前提是要先安裝php-devel,因為後面會用到phpize這個指令。

    依據官方網站的建議,如果是php4以下的要用1.03版本,php5以上請使用1.20-rc1的版本

    1.03版(stable):http://210.51.190.228/pub/XCache/Releases/xcache-1.0.3.tar.gz

    1.20-rc1版(newest):http://210.51.190.228/pub/XCache/rc/1.2.0-rc1/xcache-1.2.0-rc1.tar.gz

    #cd /usr/local/src

    #wget http://210.51.190.228/pub/XCache/rc/1.2.0-rc1/xcache-1.2.0-rc1.tar.gz

    #tar zxvf xcache-1.2.0-rc1.tar.gz

    #cd xcache

    #phpize // 使用 phpize 產生configure檔。

    #./configure --enable-xcache --enable...

    #make

    #make install

    #cat xcache.ini >> /etc/php.ini

    #$EDITOR /etc/php.ini
    //修改php.ini的Xcache設定,隨自己的狀況修改;別忘修改之後要重新啟動網頁伺服器。

    Xcache 也有網頁控制介面:

    把Xcache裡的admin這整個資料夾複製到你的網頁根目錄裡面,也許你會新增一個資料夾來放置。

    #mkdir /your/webroot/xcache

    #cp -R admin/ /your/webroot/xcache/

    # $EDITOR /etc/php.in //修改php.ini裡的xcache的帳號密碼,密碼要填上MD5碼。

    [xcache.admin]
    xcache.admin.user = "admin"
    ; xcache.admin.pass = md5($your_password)
    xcache.admin.pass = ""

    --------------------------------------------------------------------------------
    你可以用PHP的工具來產生md5碼


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

    重新啟動網頁伺服器,然後連上你的Xcache admin的URL。收工!輕輕鬆鬆!^^

    Install eAccelerator ( to accelerate for PHP )

    One day I went to library and use the Internet. When connect to my website and found the reaction speed of the web page was slow and I probably waited for five seconds for loading completely. I thinks that if a foreign person to connect to my website and it must be more slow! Hence I want to accelerate my httpd and I found the eAccelerator. eAccelerator's installion and configure is very simple. I used the rpm method:( Tarball method can be found at nternet. So, I no longer illustrate with example. )

    RPM:

    Download rpm package from mysite ( FC6/httpd-2.3.3-5/PHP-5.1.6) or search from internet.

    #wget http://acmevil.taes.tp.edu.tw/drupal/files/php-eaccelerator-5.1.6_0.9.5-1.fc6.i386.rpm

    #rpm -Uvh php-eaccelerator-5.1.6_0.9.5-1.fc6.i386.rpm

    Install done.

    Configure: /etc/php.d/eaccelerator.ini

    zend_extension="/usr/lib/php/modules/eaccelerator.so"
    eaccelerator.shm_size = "16"
    eaccelerator.cache_dir = "/var/cache/php-eaccelerator" eaccelerator.enable = "1"
    eaccelerator.optimizer = "1"
    eaccelerator.log_file = "/var/log/httpd/eaccelerator_log"
    eaccelerator.name_space = ""
    eaccelerator.check_mtime = "1"
    eaccelerator.filter = ""
    eaccelerator.shm_max = "0"
    eaccelerator.shm_ttl = "0"
    eaccelerator.shm_prune_period = "0"
    eaccelerator.shm_only = "0"
    eaccelerator.compress = "1"
    eaccelerator.compress_level = "9"
    eaccelerator.keys = "shm_and_disk"
    eaccelerator.sessions = "shm_and_disk"
    eaccelerator.content = "shm_and_disk"
    eaccelerator.allowed_admin_path = ""

    Save it. Restart your httpd.

    P.S: If you don't have /etc/php.d/eaccelerator.ini and you must add one.

    eAccelerator also has web UI:

    #cp /usr/share/doc/php-eaccelerator-5.1.6_0.9.5/*.php /your/web/root/eaccelerator

    #$editor //your/web/root/eaccelerator/control.phpeaccelerator

    Alter the usrname and password

    /** config **/

    $user = "admin";

    $pw = "eAccelerator";

    /** /config **/

    Then connect http://ypur.domainname.com/eaccelerator/control.php


    有一天我到圖書館上網。連到我的網站的時候,發現網頁的反應速度慢了一點,我大概等了五秒才全部開好。裡想,那如果是國外的人連到我的網站不就更慢了!於是就找到了eAccelerator。
    eAccelerator的安裝非常簡單,尤其是用RPM這個方法:( Tarball 的方法在網路上容易找到,我就不再舉例說明。 )

    RPM:

    我的網站 ( FC6/httpd-2.3.3-5/PHP-5.1.6)下載rpm套件或從網路上搜尋適合您的版本。

    #wget http://acmevil.taes.tp.edu.tw/drupal/files/php-eaccelerator-5.1.6_0.9.5-1.fc6.i386.rpm

    #rpm -Uvh php-eaccelerator-5.1.6_0.9.5-1.fc6.i386.rpm

    安裝完了!別懷疑,就這麼簡單!

    設定 eaccelerator的設定檔: /etc/php.d/eaccelerator.ini (如果沒有php.d這個資料夾,就把設定檔加在php.ini裡或是新建一個資料夾來符合路徑位置。)

    zend_extension="/usr/lib/php/modules/eaccelerator.so"
    eaccelerator.shm_size = "16"
    eaccelerator.cache_dir = "/var/cache/php-eaccelerator" eaccelerator.enable = "1"
    eaccelerator.optimizer = "1"
    eaccelerator.log_file = "/var/log/httpd/eaccelerator_log"
    eaccelerator.name_space = ""
    eaccelerator.check_mtime = "1"
    eaccelerator.filter = ""
    eaccelerator.shm_max = "0"
    eaccelerator.shm_ttl = "0"
    eaccelerator.shm_prune_period = "0"
    eaccelerator.shm_only = "0"
    eaccelerator.compress = "1"
    eaccelerator.compress_level = "9"
    eaccelerator.keys = "shm_and_disk"
    eaccelerator.sessions = "shm_and_disk"
    eaccelerator.content = "shm_and_disk"
    eaccelerator.allowed_admin_path = ""

    存檔、重新啟動httpd(網頁伺服器)

    收工、喝茶去~~~

    等等,eAccelerator還有網頁介面的控制,你可以:

    #cp /usr/share/doc/php-eaccelerator-5.1.6_0.9.5/*.php /your/web/root/eaccelerator

    把php-eaccelerator的doc裡的所有*.php複製到網頁根目錄

    #$editor //your/web/root/eaccelerator/control.php

    修改control.php裡的帳號跟密碼

    /** config **/

    $user = "admin";

    $pw = "eAccelerator";

    /** /config **/

    最後連上你control.php的URL就可以了!

    喝茶去吧~~~ ^^