8.13.2008

衝動的瞬間

很多時候, 只是因為感動, 所以就行動了.

雖然我沒有寫卡片, 但是我關心, 我是這樣安慰自己的. 畢竟搞出那些字, 對我來說, 可能比生個幾千行程式碼還硬.

下面是朱豪宅的相關連結, 有連續性:

大縣長與小警員

你跟我講有個屁用!之父親節快樂篇!

給吳道源警員的一封信

給吳道源警員的55封信

給吳道源警員的99封信

8.05.2008

IIS 7 & Community Server, Tag problem

The day, I upgraded the Community Server 2007 to 2008 in IIS7 (Windows Server 2008), and encountered one problem. The tag cloud links became ooo+xxx when the tag include space character. Of course, the link was broken.

The message from IIS as below

Untitled

Most likely causes: The request contained a double escape sequence and request filtering is configured on the Web server to deny double escape sequences.

Things you can try:Verify the configuration/system.webServer/security/requestFiltering@allowDoubleEscaping setting in the applicationhost.config or web.confg file.

The discussion in the Telligent is as windows server 2008 - IIS7 - tags with space in name give 404.

The the clear steps as this KB.

 

  1. Locate the following directory: %windir%\System32\inetsrv\config
  2. Open the applicationHost.config file in a text editor such as Notepad.
  3. In the applicationHost.config file, locate the following code:
    <section name="requestFiltering" overrideModeDefault="Deny" />
  4. Replace the code that you found in step 3 with the following code:
    <section name="requestFiltering" overrideModeDefault="Allow"/>
  5. Locate the following diretory:
    %windi%\System32\com
  6. Double-click the directory of the SOAP-enabled server that you want to activate.
  7. Open the web.config file in a text editor such as Notepad.
  8. In the web.config file, locate the following code:
    </configuration>
  9. Replace the code that you found in step 8 with the following code:
    <system.webServer>
    <security>
    <requestFiltering allowDoubleEscaping="True"/>
    </security>
    </system.webServer>
    </configuration>

7.06.2008

貓空纜車....

上個禮拜六日, 親戚從南部上來, 我當陪客, 想說貓空纜車沒坐過, 他們要去坐坐看. 我想說好久沒上去喝喝茶, 也是不錯的選擇. 因為每次經過那邊看到那一坨人, 感覺上就要排很久, 所以就跟他們說, 如果人少我們去坐, 人多的話就直接搭車上去.

後來到了那附近, 看到人並不會很多, 於是就去排隊. 排並沒有很久, 就可以坐了. 然而在排隊或是坐纜車之間, 有個廣播很心煩, 隱隱約約聽到下雨打雷等字眼. 想說也不在意, 沒想到坐到指南宮就因為山上打雷所以要乘客下車的狀態. 於是就下車, 本想說捷運或是哪個單位應該會提供接駁服務, 畢竟連百貨公司都會做了, 看起來像營利單位的纜車應該都會做. 沒想到的是, 有接駁服務, 一小時兩班, 只往山下. 於是你就看到一大陀人被卡在站內. 大個一兩百人就這樣滯留在纜車車站. 沒廣播說明狀態, 服務人員也顯然不足, 於是一大群人困在那邊, 真是令人傻眼. 我一開始也呆呆的等, 等了十幾分鐘發現不對, 跑去問服務人員, 才搞清楚接駁的狀況. 於是我回頭跟照片裡困住的那一坨人說明, 然後就不鳥那個閘門, 出去找計程車或是巴士.

 DSC08701

老實講, 這種服務狀態就跟那種狀況外的公家機關一樣, 一不小心我還以為我到了難民營. 纜車的服務也不是一天兩天了, 怎麼都沒有媒體反應, 這倒是我最好奇的. 難道困在那邊的都是外國的遊客嗎? 這倒是真是促進觀光的優異教材. 不過要是這樣小小的打雷就停駛(2 PM - 7 PM)的話, 當初提議建纜車的人物我倒是很想認識一下.

7.03.2008

ORA-01599

In a couple days ago, I couldn't start the oracle database after imported. After check the log file located at $ORACLE_BASE/adminORCL/bdump/alert_ORCL.log, I got an error message:

ORA-01599: failed to acquire rollback segment (xx), cache space is full (currently has (xx) entries) Error 1599 happened during db open, shutting down database. (xx is certain number)

After check some reference, the root cause is the limitation of the parallel online rollback segments, the default size is 30. So, just add max_rollback_segments=50 or larger in the oracle database initial file, and then restart the database. Done.

After the database ready, you can query by select count(*) from dba_rollback_segs to get the precise amount of the rollback segments.

6.30.2008

Update "Modified By", "Created By" fields (Document Library)

How to change the information "Modified By", "Created By" of the files in the document library?

That's easy, the key point is the field name inside SPFile.Item, you must change the fields which fields' name as "Document Modified By" and "Document Created By".

Remember! Create a new SPUser and assign it into the fields, done.

 

怎咪改編Document Library裡面的檔案的"修改者", "建立者" 呢? (好像中文版是這樣)

很簡單, 把檔案相對應的Item裡面的Fields裡面的"Document Modified By"跟"Document Created By"塞進你想要的SPUser, 記得要是只有名字的話, 要想辦法生個instance出來喔(new 一個出來).

 

4.30.2008

Community Server 2008 security modules 4.0.30423

Error Message:


The account you are attempting to login with could not be completely activated.


Please contact your site administrator to activate the account or enable automatic account activation.


Solution:


New dll in securitymodules_4_0_30423


Here is reference : Discussion of New Version of CS2K8 SSO Module

4.29.2008

FatalError: @bRetainObjectIdentity is not a parameter for procedure proc_AddNonListViewFormWebPartForUrl.

A couple days ago, I want to using stsadm to export a site from stage environment and import into production environment. I trying to figure out what's root cause of the import failed after two tries.



The error message is "FatalError: @bRetainObjectIdentity is not a parameter for procedure proc_AddNonListViewFormWebPartForUrl.", it's very strange, because the error is a simple database operation of .NET framework.



I disassemble the Microsoft.SharePoint.dll to look for the problem, everything seems fine, and the library don't using the "@bRetainObjectIdentity" parameter to run the stored procedure.



So, I turned to the different view of this problem, then I found the root cause of this error message. The database version don't update after hotfix installation. and both have different version number.



After discuss with my colleague, we found something we ignored when the hotfix installation, we forgot run the SharePoint installation wizard. The database schema only changed after running the wizard.



Here is the great article described the post hotfix of SharePoint 2007 SP1. Hope this help.



Btw, the hotfix we installed is for the this problem :



On a SharePoint Server 2007 site, you modify a task in a task list. When you do this, users other than the users who are assigned to the task receive the notification e-mail message for the change.