2011年1月4日 星期二

DELETE 陳述式與COLUMN REFERENCE 條件約束衝突

狀況:
當按下刪除時,出現DELETE 陳述式與COLUMN REFERENCE 條件約束衝突錯誤.

發生原因:
在沒有清完參考到的子資料前就刪除主資料,才會發生這個錯誤訊息 .

解決方式:
如果確認是要刪除的話,先清子資料再刪主資料,就可以解決這個問題.

2010年12月27日 星期一

Pietty中文變亂碼解決方式


使用Pietty透過ssh方式連線Linux系統,中文字變亂碼,該如何解決?
解決方式:
1.功能表選項\字元編碼
2.勾選Unicode UTF-8
3.功能表選項\亞洲語系修正
4.取消勾選Unicode 亞洲寬符號字元

2010年12月22日 星期三

Using the Flash ‘Nested Ojects’ method in ASP pages

資料來源:http://seanys.com/2007/09/10/asp-flash-nested-objects/


Using the Flash ‘Nested Ojects’ method in ASP pages

Occasionally I want to use Flash on a web page. Tragic, but true. I’ve been looking for an accessible, valid method for doing this. There are few candidates. I settled on the ‘Nested Objects’ method. It seemed quick, painless and didn’t require javascript. But there was a hitch…
Active Server Pages error 'ASP 0139'
Nested Object
An object tag cannot be placed inside another object tag.  
IIS’s ASP interpreter wouldn’t pass the page with nested <object> tags.
Of course, nothing is ever simple. I’ve configured IIS to serve .htm and .html files as ASP so every page on my site is an ASP page. This may be an odd thing to do but it seemed easier than renaming every page, ~2000 at that time, and creating appropriate redirects. I also couldn’t easily edit out the snippets of ASP from any given page as the entire site heavily relies on DreamWeaver templates and the ASP is not in editable regions.
I needed a simple solution and this is it… use a server-side include.
Put the non-IE <object>… </object> and IE conditional comments section in the include file.
<!--[if !IE]> <-->
      <object data="movie.swf" width="320" height="240"
              type="application/x-shockwave-flash">
        <param name="salign" value="lt" />
        <param name="quality" value="high" />
        <param name="scale" value="noscale" />
        <param name="bgcolor" value="#FFFFFF" />
        <param name="pluginurl"
               value="http://www.macromedia.com/go/getflashplayer" />
        </object>
    <!--> <![endif]-->
 
Put the include reference where the displaced code should go.
      <!--#include file="flash.txt"-->
Job done.

其他參考資料:

SWFObject FAQ:http://code.google.com/p/swfobject/wiki/faq
Object Paranoia:http://juicystudio.com/article/object-paranoia.php

2010年12月21日 星期二

如何把windows 2008重新佈署(Sysprep)

資料來源:http://www.dotblogs.com.tw/dotjason/archive/2009/09/29/10823.aspx


今天Jason於客戶端協助排除問題時,因客戶欲把備份的image檔倒回去到設備中,但必須將SID重新取得
Jason置入了Win 2008光碟就是遍尋不著sysprep工具,此時直接進到系統中,找到這個工具就預載到作業系統中了
其路徑如下:c:\windows\system32\sysprep\sysprep.exe
執行後畫面如下:

此時,系統清理動作選擇「進入系統全新體驗(OOBE)」
關機選項則依照個人意願即可,記得…要勾核一般化,如此一來按下確定隨即完成sysprep