2011年7月30日 星期六

消防水管維修 Part 3

2011/7/16 補AB膠

2011/7/30 批土、油漆完成,幾乎看不出痕跡

Perl 判斷文字檔編碼格式

原文 http://www.perlmonks.org/?node_id=256728


Windows的ActivePerl好像沒有File::BOM, File::MMagic。
最後一個方法是讀檔案前面兩個bytes來判斷。
Example:

open $FH_i, "<", "unicode.txt";
read $FH_i, $buf, 2, 0;
close $FH_i;

@File_head = split(//, $buf);
if (($File_head[0] eq "\xFF") && ($File_head[1] eq "\xFE")) {
  print "This is unicode Little Endian file.\n";
} elsif (($File_head[0] eq "\xFE") && ($File_head[1] eq "\xFF")) {
  print "This is unicode Big Endian file.\n";
} else {
  print "This is ASCII file.\n";
}

How do I determine encoding format of a file ?

Perl 5.8 has a module called "Encode::Guess", which might work well if you know the language involved and/or can provide some hints as to the likely candidates. (I haven't tried it yet, but it is admittedly limited and speculative at present.)
Answer: How do I determine encoding format of a file ?
contributed by idsfa
File::BOM provides get_encoding_from_filehandle and get_encoding from_stream to identify the encoding of Unicode files. Example:
use File::BOM qw( :all ); open $fh, '<', $filename; my ($encoding) = get_encoding_from_filehandle($fh);
Answer: How do I determine encoding format of a file ?
contributed by particlehave a look at File::MMagic, it guesses the filetype given the filename or a filehandle, and is quite configurable (you can add more file type descriptions based on regular expressions.) it's a handy little module.
Answer: How do I determine encoding format of a file ?
contributed by donno20Read the first two bytes of the file. Corresponding encoding and hex codes are as follow:
unicode Little Endian = "\xFF\xFE"
unicode Big Endian = "\xFE\xFF"
utf8 = "\xEF\xBB"
ASCII = straight to content

2011年7月29日 星期五

Perl 處理 unicode txt file

open $FH_o, ">", "ansi.txt";
open $FH_i, "<:encoding(UTF-16)", "unicode.txt";
while (<$FH_i>) {
  @item = split(/\s+/);
  print $FH_o "$item[1]\n";
}
close $FH_i;
close $FH_o;


參考 http://www.issociate.de/board/post/325821/Unicode,_ANSI,_and_regular_expressions_in_Perl_5.8.html

Windows ActivePerl GUI example

參考
http://docs.activestate.com/activeperl/5.10/faq/Windows/ActivePerl-Winfaq9.html
http://search.cpan.org/~jdb/Win32-0.44/Win32.pm

範例:
use Win32;
Win32::MsgBox("Message body",0,"Title");

語法:
Win32::MsgBox(MESSAGE [, FLAGS [, TITLE]])

Create a dialogbox containing MESSAGE. FLAGS specifies the required icon and buttons according to the following table:

        0 = OK
        1 = OK and Cancel
        2 = Abort, Retry, and Ignore
        3 = Yes, No and Cancel
        4 = Yes and No
        5 = Retry and Cancel

        MB_ICONSTOP          "X" in a red circle
        MB_ICONQUESTION      question mark in a bubble
        MB_ICONEXCLAMATION   exclamation mark in a yellow triangle
        MB_ICONINFORMATION   "i" in a bubble

TITLE specifies an optional window title. The default is "Perl".
The function returns the menu id of the selected push button:

        0  Error
        1  OK
        2  Cancel
        3  Abort
        4  Retry
        5  Ignore
        6  Yes
        7  No

Lync server 2010 Front End Service not start 解法

昨天裝好了Lync server 2010,今天找上發現連不上去,重開機也不行。
Event Log的錯誤訊息是The Lync Server Front-End service terminated with service-specific error %%-1008193023.

原因:
Windows Update造成的。

解法:
With Server 2008, you can run ServerManagerCmd -i MSMQ-Services and ServerManagerCmd -i MSMQ-Server.

參考:

2011年7月27日 星期三

sharepoint免費版本

Windows SharePoint Services 3.0 含 Service Pack 2 繁體中文版
http://www.microsoft.com/downloads/details.aspx?familyid=EF93E453-75F1-45DF-8C6F-4565E8549C2A&displaylang=zh-tw

Windows SharePoint Services 3.0 x64 含 Service Pack 2 繁體中文版
http://www.microsoft.com/downloads/details.aspx?familyid=9FB41E51-CB03-4B47-B89A-396786492CBA&displaylang=zh-tw


Microsoft SharePoint Foundation 2010 - 中文(繁體)
SharePoint Foundation 2010 is the new version of Microsoft Windows SharePoint Services. 

下載
http://www.microsoft.com/downloads/details.aspx?FamilyID=49c79a8a-4612-4e7d-a0b4-3bb429b46595&DisplayLang=zh-tw


SPS現在已經叫作MOSS了

email 中文亂碼還原 MIME decode

原文
http://portable.easylife.tw/528
http://blog.xuite.net/boavista/blog/11790348

用 CodeView 可還原 MIME 編碼的文字。

Symantec Altiris Multiple NICs 多張網路卡

原文 http://www.symantec.com/business/support/index?page=content&id=HOWTO2774

Error Message: (開機 BIOS 畫面)
TFTP open timeout.

原因:
Altiris 6.9安裝在多張網路卡的server,TFTP只會起在其中一張網路卡,改設定可讓TFTP起在多張網卡上。

解法:

  1. From the PXE Configuration utilty File pull-down menu, click on Choose PXE Serverand specify your PXE server (not "Shared Configuration"). Close PXE Configuration.
  2. Make some change to the local PXE server configuration and then change it back, such as change the default timeout from 3 seconds to 4 and then back to 3 seconds. Then clickSave and then OK.
  3. Stop the PXE Manager and PXE Config Helper services.
  4. Navigate to the PXE folder and open PXEManager.ini with a text editor. Find the entry similar to “[PXEServer\3164593f-f64b-4d8e-92d1-a58a4890e47a\ListeningNICs]”. At this point there should be only one of these entries. This will be the last entry in the PXEManager.ini.
                Change the INI entry to:
                [PXEServer\3164593f-f64b-4d8e-92d1-a58a4890e47a\ListeningNICs]
                NICs="192.168.0.1","10.0.0.1","172.0.0.1"
                HasCustom=True
                Note: The GUID entry will be different for each PXE server. The PXE  Server GUID is located in the PXE.ini file at the PXE Server install location.

    NICs are variables that contain the IP addresses you want PXE server to listen. Change the IP addresses to fit your environment.

    Save the changes and close the text editor.
  5. Restart the PXE Manager and PXE Config Helper services.
  6. Send a simple job to a single client in all subnets. PXE will be listening in all IP addresses set in the above step. 
  7. You might want to verify that the PXE Server service is listening on all IP addresses specificed by using either a "netstat -an" command or by using a utility such as TCPView.exe from Microsoft.com.

2011年7月26日 星期二

2011年7月22日 星期五

關閉 iTunes 自動備份

原文 http://pcuser.pixnet.net/blog/post/27628254


每次只要把iPhone、iPad插上電腦,準備用iTunes同步檔案、歌曲或更新任何東西之前,iTunes都會自動先做備份動作。雖然備份是很重要的工作,不過還蠻多人對它不耐煩的,如果你並不想浪費備份的時間,那只要下載一支小程式,就可以關閉iTunes的自動備份囉!不管是更新韌體或以後同步資料,都能跳過備份程序直接辦正事。

※注意:強烈建議偶爾還是要做一次備份,以免iPhone/iPad上的資料莫名消失。

CPU benchmark

High End CPU's - Intel vs AMD

Linux VNC 顯示速度

狀況:
從Windows用VNC連上兩台Linux,很明顯發現其中一台的畫面顯示速度比較慢。

原因:
Linux VNC靠CPU畫出Desktop,所以CPU慢的那一台VNC顯示畫面就比較慢,和機器的顯示卡沒有關係。

[轉載] 電腦看圖片也會中毒 JPEG病毒搞鬼 (JPG, GIF)

原文 http://pforum.pccenter.com.tw/viewthread.php?tid=5039

過去我們總以為電腦如果要中毒,一定得要開啟一個執行檔,執行了不該執行的程式才會中毒,至於上網看看網頁資料,或是收收信是不會有事的;可是後來層出不窮的「瀏覽器綁架」事件,讓我們的瀏覽器首頁不斷地被修改,然後再加上之後IE的安全性漏洞不斷傳出,我們才被這種切身之痛給「教育」,恍然大悟原來上網瀏覽網頁也會出問題。

那麼,現在讓我們再來給你震撼教育一下吧;你可知道,瀏覽圖片也有可能會中毒?沒錯,就是瀏覽圖片,不管你是從Email所收的圖片,或是上網路相簿瀏覽的圖片,或是根本只是用ACDSee秀圖軟體觀看在你電腦中的圖片,都有可能會中毒!

這是在今年9月由微軟所公佈的一個名叫「JPEG處理程序(GDI+)處理緩衝區溢出」的安全性漏洞,只要是JPEG格式的圖片,經過特殊的處理後,都有可能引發這個漏洞,導致駭客趁虛而入,引發你的系統中毒。

這麼說你一定還是不瞭解,圖片檔案又不是執行檔,為甚麼會引發中毒?事實上,主要的原因並不在於圖片檔,而在於微軟作業系統中一個「GDIPlus.dll」的動態連結檔案;當我們要瀏覽JPEG圖片或是對JPEG檔案作影像處理時,多半都要用到這個檔案裡頭的程式指令,而漏洞就存在這個檔案裡頭。

有安全專家發現,當JPEG圖檔內含有特定的內容時,就會導致「GDIPlus.dll」在處理時發生緩衝區溢位的現象,因而導致系統出現安全性漏洞,這時駭客就可以趁機命令電腦下載病毒並且執行。

由於很多程式都引用「GDIPlus.dll」當作影像處理的主要連結,所以這個安全性漏洞的影響非常龐大,微軟也將這個安全性漏洞的評等提升為「重大」;以windows XP來說,除非你更新到SP2的版本,否則你就有這個安全性漏洞。

而微軟的其它產品,如Office全系列的程式,也都有這些問題存在,至於非微軟的產品,則也同樣處在不安全的疑慮中。
由於圖片病毒屬於系統漏洞的一種,所以就算你安裝了防毒軟體,也不見得能夠保證自己電腦的安全,唯一的辦法就是去微軟網站上下載批次更新檔案,將這個漏洞彌補起來。

台灣微軟在網站上的「Microsoft安全性公告MS04-028」頁面上,已經非常詳細公佈了關於「JPEG處理程序(GDI+)緩衝區溢位」這個問題的相關資訊,其中列出了微軟產品中受到影響的軟體清單,這個清單非常長,幾乎佔了一整個頁面,建議你趕快到這個網頁上去查一查,看看你有哪些軟體需要更新,該公告的網址為:
www.microsoft.com/taiwan/security/bulletin/ms04-028.mspx

另外,這個網站上公佈的更新檔案僅僅針對微軟的產品,如果你有使用其它的影像相關軟體的話,你可能要到各家廠商的網站上查詢看看,是否有新的更新檔案可以下載。
目前第一個利用微軟「JPEG處理程序(GDI+)處理緩衝區溢出」所製造出來的病毒圖片,是在今年9月底由不知名的人士上傳到美國的新聞群組,導致許多人下載了圖片之後引發中毒。

而在不久之後的10月份,馬上在網路上就出現一只叫做「JPGDownloader」的軟體,又被暱稱為「病毒圖片製造機」,這個程式可以讓任何人隨便用一個JPEG圖檔,製作出JPEG圖片病毒;不過這個程式攻擊的目標,僅針對英文版的作業系統,所以國內目前尚未聽到有人成為受害者。
雖然這些可以算是第一批的JPEG病毒,不過JPEG圖片所引發的安全性漏洞,並不是第一次,早在兩年前,當時的Netscape瀏覽器就已經發現過類似的圖片安全性漏洞,被稱為「Netscape Communicator JPEG-Comment Heap Overwrite Vulnerability」,只要在Netscape瀏覽器上瀏覽特定的JPEG圖片,就會導致漏洞的發生。

不過或許是因為使用Netscape瀏覽器的人數不多,並沒有駭客對這個漏洞感興趣,所以當時才沒有爆發災情。
簡單4步驟 看圖更安心現在我們為你示範,如何來下載批次檔案,更新你電腦中的安全性漏洞;步驟很簡單,卻可以讓你以後看圖片時不用提心吊膽,防不勝防。
〈步驟1〉
連上網站(
http://www.microsoft.com/taiwan/security/bulletin/ms04-028.mspx)後,檢視你需要更新的程式或系統,如果你的Windows XP還沒更新到SP2的話,建議你先點選Windows XP的中文版更新連結。
〈步驟2〉
中文版的更新檔案下載頁面,首先記得選擇要下載的是中文版的更新檔案,之後按下右上角的下載按鈕,開始下載。
〈步驟3〉
接下來就會跳出一個視窗,詢問你是否要下載該檔案,點選「儲存檔案」的按鈕就開始下載,下載完畢後執行這個檔案即可。
〈步驟4〉
之後別忘了再回到剛開始的頁面,繼續檢查你還有甚麼其它軟體的安全性漏洞沒有更新,然後依照前面的步驟一一加以更新

2011年7月21日 星期四

Solaris 更改螢幕解析度

指令和顯示卡有關,可到 /dev/fbs 查看顯示卡類型。
cd /dev/fbs
ls -l
如果看到是 ffb0,更改解析度指令為 ffbconfig
如果看到是 m640,更改解析度指令為 m64config

以 ffbconfig 為例:

  • ffbconfig -help ==> print help
  • ffbconfig -prconf ==> print out device hardware configuration
  • ffbconfig -propt ==> print out current option settings
  • ffbconfig -res \? ==> 顯示可用的解析度
  • ffbconfig -res 1152x900x66 try ==> 測試 1152x900x66 是否可用
參考 http://people.chu.edu.tw/~chunpo/solaris/sysadm/docs/graphic.html

PS. Sun Ultra60最低解析度只能到 1152x900x66,想用15吋螢幕 1024x768x60 弄不出來。

Soralis Mount Linux NFS

狀況:
Linux NFS server export 讓 Solaris mount。Solaris 可以 mount,也可以 ls 看到檔案,但是複製 nfs file 到 local 會出現錯誤。

錯誤訊息:
NFS read failed for server error 5 (RPC: Timed out)
NFS lookup failed for server error 5 (RPC: Timed out)
NFS getattr failed for server error 5 (RPC: Timed out)

原因:
網路設定錯誤,造成網路傳輸速度太慢。

檢查網路卡設定:
        ndd -get /dev/hme adv_autoneg_cap
        ndd -get /dev/hme adv_100fdx_cap
        ndd -get /dev/hme adv_100hdx_cap
        ndd -get /dev/hme adv_10fdx_cap
        ndd -get /dev/hme adv_10hdx_cap
        以上得到的值是1  表示 true, 得到0 表示false . 

設定網路卡:(設為 auto)
        ndd -set /dev/hme adv_autoneg_cap 1
        ndd -set /dev/hme adv_100fdx_cap  1 
        ndd -set /dev/hme adv_100hdx_cap 0 
        ndd -set /dev/hme adv_10fdx_cap  0 
        ndd -set /dev/hme adv_10hdx_cap 0 

修改 /etc/system 開機時的網路卡設定
        set hme:hme_adv_autoneg_cap=1
        set hme:hme_adv_100fdx_cap=1
        set hme:hme_adv_100hdx_cap=0
        set hme:hme_adv_10fdx_cap=0
        set hme:hme_adv_10hdx_cap=0


如果設定為set hme:hme_adv_autoneg_cap=1, set hme:hme_adv_100fdx_cap=0reboot後網路會不通,switch port燈不亮。

如果是Giga網卡搭配Giga switch port,可以用set hme:hme_adv_autoneg_cap=1, set hme:hme_adv_1000fdx_cap=1測試看看。


參考 http://www.brandonhutchinson.com/Solaris_NIC_speed_and_duplex_settings.html

2011年7月20日 星期三

Sun Solaris 5.8 change password

狀況:改root password時出現permission denied


解法:用 passwd -r files 即可


參考:man passwd

2011年7月19日 星期二

CentOS Linux NIS server and Sun Solaris NIS client

Linux passwd預設用MD5加密,Solaris passwd只能用DES加密,如果Linux當作NIS server必須修改passwd加密方式 (取消MD5)。

Linux取消MD5方式請參考這一篇。
http://docs.vlas.co.uk/library2//Sun//installing_nis.html
每一台Linux都要改。如果從有MD5的Linux更改密碼,從其他NIS client會無法登入。

取消NIS server MD5影響很大,因為我只有一台Solaris,所以在Solaris建立local account避開此問題。

其他參考
http://forum.icst.org.tw/phpbb/viewtopic.php?f=16&t=14984
http://www.network-builders.com/linux-nis-server-solaris-nis-client-t57468.html

2011年7月17日 星期日

米蟲 預防 處理

預防
  1. 放冰箱冷藏室
  2. 放大蒜、辣椒 (古法,未證實)
  3. 放在寶特瓶裡面,蓋緊瓶蓋
處理
  1. 放冰箱冷凍室一天,再移到冷藏室

仰賴網路、GPS 人腦明顯退化

http://tw.news.yahoo.com/article/url/d/a/110717/4/2v7b0.html


 更新日期:2011/07/17 02:24 鍾玉玨/綜合報導
中國時報【鍾玉玨/綜合報導】
網際網路已全面改寫人類生活,網路搜尋、手機通訊錄、衛星導航系統,已成生活不可或缺的大幫手。不過美國哥倫比亞大學研究顯示,Google的興起,已改變人腦記憶資訊的方式。英國研究也發現,過度仰賴衛星導航系統(GPS),人腦逐漸退化,反而變得不會認路了。
哥大助理教授史派羅(Betsy Sparrow)說,搜尋引擎出現後,人腦越來越仰賴網路存取記憶,就如同以前我們會仰賴朋友、家人、同事、筆記等幫我們記憶。
換言之,現代人懶得花心思記住可以在網路輕易找到的資訊,對於不容易在網路找到的資訊,人腦才肯費心記憶。
史派羅解釋,網路已成為心理學家稱之「交換記憶」(transactive memory)的工具,亦即人腦不再記憶資訊本身,轉而記住存放資訊的資料夾。
史派羅的研究認為,Google出現後,記憶力不見得會變差。她說:「人類記憶正在適應新的通訊科技。我們不是不會思考、再也記不住東西的傻瓜。但我們卻變成是,只善於記得去哪兒找東西。」
她指出,改變人腦記憶模式未嘗不是好事,因為人不用再費力背誦一些網路隨手可得的資訊,可將大腦花在更須創造力的事務上。
不過,英國蘇格蘭鄧迪(Dundee)大學教授蘭斯頓(Rosamund Langston)研究GPS對人腦的影響後發現,過度仰賴GPS,人類天生的方向感以及對環境的認知能力,卻出現明顯退化。
她舉《糖果屋》故事主人翁為例,小鳥吃掉了他們用麵包屑作成的路標之後,主人翁就再也找不到回家的路了。蘭斯頓說,人若只會依照導航器上的指標箭頭開車,一旦導航當機,就完全失去方向感,甚至寸步難行,實在非常荒謬。
她指出,聽導航單調的指令開車,只是在聽命行事,完全沒動腦也沒啟動任何記憶,下次再經過同樣的路段,一樣認不出路,只好更依賴導航。

2011年7月15日 星期五

VMware management 穿過 firewall

需要開啟兩個TCP port,TCP/8333 for https, TCP/902 for VM console。

參考
http://www.cyberciti.biz/tips/howto-control-vmware-server-using-web-port-8333.html
http://kb.vmware.com/selfservice/microsites/search.do?cmd=displayKC&externalId=1003487

Sendmail mail size limit

修改 /etc/mail/sendmail.cf,將 MaxMessageSize 的 # 拿掉,並設定size limit,單位是 byte。

參考 http://www.sendmail.org/m4/tweaking_config.html

CentOS mail client

CentOS沒有pine, elm,要改用mutt。

用Windows內建的telnet使用mutt畫面會亂掉,改用putty就不會。

參考 http://www.linuxjournal.com/content/no-pine-centos

Sendmail startup error message 解法

在 /var/log/maillog 的錯誤訊息
My unqualified host name (atlantis) unknown; sleeping for retry

解法:調整 /etc/hosts
原本 127.0.0.1                localhost    atlantis
改為 127.0.0.1                atlantis    localhost

如何固定一隻貓? 獸醫花一秒鐘讓貓咪乖乖看診

http://www.nownews.com/2011/07/15/11507-2727803.htm

Subversion SVN commit log 自動寄信通知

參考
  1. cd /svn/[your project]/hooks
  2. cp post-commit.tmpl post-commit
  3. chmod 755 post-commit
  4. 編輯post-commit設定寄信工具
  5. 如果要顯示中文要在post-commit裡面加上 export LANG="en_US.UTF-8"
post-commit的寄信工具
  1. commit-email.pl
    • /[path of svn tools]/commit-email.pl "$REPOS" "$REV" receiver@yourdomain
    • path of svn tools可以用 rpm -ql subversion-tools | grep commit-email.pl 查到
  2. mailer.py
    • /[path of svn tools]/mailer.py "$REPOS" "$REV"
    • path of svn tools可以用 rpm -ql subversion-tools | grep mailer.py 查到
    • 設定mailer.py的config檔
      • cd /[path of svn tools]
      • cp mailer.conf.example mailer.conf
    • 修改mailer.conf
如果要做到符合條件的commit才寄mail,請參考以下的mailer.conf。
[Project_1]
for_repos = (?P<Project_1>)    # Project_1 是 repository name
for_paths = ^data($|/.*)             # 最上層是 data 的目錄
to_addr = aaa@example.com, bbb@example.com

[Project_2]
for_repos = (?P<Project_2>)
for_paths = ^bin($|/.*)
to_addr = ccc@example.com, ddd@example


2011年7月10日 星期日

一天10克可溶性纖維 遠離大肚腩 (真的嗎?)

有這麼好康嗎?

http://tw.news.yahoo.com/article/url/d/a/110710/78/2uskr.html

〈吃對了 你也能瘦〉 一天10克可溶性纖維 遠離大肚腩

 更新日期:2011/07/10 04:11
記者/洪素卿
為了擺脫盤踞在肚子上的肥肉,有人仰臥起坐做到運動傷害,肥肉卻還是紋風不動;一項最新出爐的研究顯示,其實,只要每天多攝取10公克「可溶性纖維」,有助於消除大肚腩。
這項發表在本期肥胖(obesity)期刊上的研究,研究人員利用電腦斷層掃描等方式,檢視1114名受試者的內臟脂肪變化,分析其變化與運動、飲食習慣的相關性。結果發現,可溶性膳食纖維的食用量,確實與內臟脂肪的變化相關,飲食中,多吃10公克可溶性膳食纖維,5年內,位於腹部深處的內臟脂肪堆積就能減少3.7%。
腰圍勿超過90公分 女80公分
圍繞在內臟附近的脂肪,原本是為了保護腹腔內的臟器不受傷害;不過,當這些脂肪堆積太多,不只會堆出礙眼的「大肚腩」,雙和醫院祝年豐醫師指出,連帶的高血壓、脂肪肝以及糖尿病等慢性病,也可能會隨之而來。因此,近年來醫師們不斷呼籲,希望男生將腰圍控制在90公分以下、女性別讓腰圍超過80公分。
要控制腰圍,平常除了控制熱量攝取,祝年豐提醒,也要控制飽和脂肪的攝取量,目前已知飽和脂肪攝取多、就容易堆積成為腹部脂肪。想要遠離大肚腩,富含飽和脂肪的動物性蛋白質像是牛肉、豬肉等,切記不能過量。
一旦腰上已經掛上「救生圈」,這項研究顯示,除了多運動、多攝取可溶性膳食纖維也是一個方法。
◎什麼是可溶性纖維?
膳食纖維可以大略分成兩種,一種是民眾比較熟知像是芹菜、竹筍、高纖蔬菜等,感覺得到粗粗的纖維質,主要是不可溶的纖維,包括纖維素、木質素等,這類纖維一般認為與腸道健康比較相關。
至於近年當紅的可溶性纖維,包括:果膠、豆膠、海藻多醣體等,多數的可溶性膳食纖維經由位於腸道內的益生菌、轉換成短鏈脂肪。由於陸續有研究認為可溶性膳食纖維可能與血脂肪代謝等相關,越來越受到關注。
◎該如何才能補充到10公克可溶性膳食纖維?
這項研究的研究人員推薦,兩顆小蘋果、一杯豌豆莢,以及半杯大花豆就夠了。
除了蘋果跟豆莢類,還有什麼食物可以吃到可溶性膳食纖維?台北醫學大學保健營養系助理教授吳映蓉指出,燕麥、木耳、寒天、海帶芽等,也都有豐富的可溶性纖維。

2011年7月7日 星期四

DTM或WLK找不到DTM client的問題

參考原文

原因為DTM client無法透過主機名稱找到DTM Controller。

解法一:將DTM server & client加入DNS record。
解法二:在DTM server & client的c:\windows\system32\drivers\etc\hosts加入IP, hostname對應。

Disable IE Enhanced Security Mode in Windows 2008

原文 http://blah.winsmarts.com/2008-4-Disable_IE_Enhanced_Security_Mode_in_Windows_2008.aspx


  1. Start "Server Manager"
  2. Under the "security information section, click on the Configure IE ESC" link
  3. Change it to -

2011年7月6日 星期三

印度體操 (印度神功?!)

真是太猛了~~~

http://sunraymini.pixnet.net/blog/post/12612451

Exchange 2003 webmail OWA 另存 office 2007 檔案變成 zip 解法

Server端解法:

加入以下這些檔案關聯
.docm,application/vnd.ms-word.document.macroEnabled.12
.docx,application/vnd.openxmlformats-officedocument.wordprocessingml.document
.dotm,application/vnd.ms-word.template.macroEnabled.12
.dotx,application/vnd.openxmlformats-officedocument.wordprocessingml.template
.potm,application/vnd.ms-powerpoint.template.macroEnabled.12
.potx,application/vnd.openxmlformats-officedocument.presentationml.template
.ppam,application/vnd.ms-powerpoint.addin.macroEnabled.12
.ppsm,application/vnd.ms-powerpoint.slideshow.macroEnabled.12
.ppsx,application/vnd.openxmlformats-officedocument.presentationml.slideshow
.pptm,application/vnd.ms-powerpoint.presentation.macroEnabled.12
.pptx,application/vnd.openxmlformats-officedocument.presentationml.presentation
.xlam,application/vnd.ms-excel.addin.macroEnabled.12
.xlsb,application/vnd.ms-excel.sheet.binary.macroEnabled.12
.xlsm,application/vnd.ms-excel.sheet.macroEnabled.12
.xlsx,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
.xltm,application/vnd.ms-excel.template.macroEnabled.12
.xltx,application/vnd.openxmlformats-officedocument.spreadsheetml.template


client端解法:
將OWA的URL加入IE的信任網站即可。

參考
http://www.jeremycole.com/blog/2011/01/05/my-docx-file-opens-as-a-zip-in-outlook-web-access-wtf/
http://www.slipstick.com/exs/owa/docx-xlsx-open-as-zip.asp

思科:網路犯罪者轉至目標式攻擊

原文 http://www.ithome.com.tw/itadm/article.php?c=68493

由於帶來了更豐厚的利益,再加上少量攻擊可閃避安全業者的偵測,網路犯罪者紛紛捨棄成本較低的大量攻擊而轉至成本較高的目標攻擊。

2011年7月4日 星期一

Exchange 轉移

Exchange舊伺服器轉移至新伺服器


一般的做法
http://ithelp.ithome.com.tw/question/10006413
http://technet.microsoft.com/zh-tw/library/aa997176(EXCHG.65).aspx

直接搬信箱的做法
http://support.microsoft.com/default.aspx?scid=kb;en-us;821836
To enable the drive M mapping in Exchange 2003:
1.        Click Start, and then click Run.
2.        In the Open box, type regedit, and then click OK.
3.        Locate and then click the following registry key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EXIFS\Parameters
4.        On the Edit menu, point to New, and then click String Value.
5.        Type DriveLetter, and then press ENTER.
6.        On the Edit menu, click Modify.
7.        In the Value data box, type M, and then click OK.

Note
If you want to map IFS to a drive letter other than M, type the drive letter that you want in the Value data box.

8.        Quit Registry Editor.
9.        Restart the Exchange Information Store service.

Drive M is not visible until you restart the Exchange Information Store service.