Pages

Wednesday, October 05, 2011

強制移除 Office - windows installer 問題

環境
MS Windows XP SP3 (Eng) upgraded from SP2
MS Office 2003 SP1 (Eng)

移除、修復時失敗
試著依 wbemcore 失效方式回覆
最後選擇用官方的 uninstaller 處理

KB:
http://support.microsoft.com/kb/290301/zh-tw

下載:
Microsoft Fix it 50416 (MicrosoftFixit50416.msi) 適用各語言版本

執行後即可重新安裝

ps.最後安裝的是中文版

Thursday, May 26, 2011

用 arp -a 查詢 MAC (physical address)

在 dos cmd 模式輸入 arp -a 應可以看到如下:



C:\>arp -a

Interfdce: 10.38.83.18 --- 0x2
Internet address Physical address Type
10.38.84.1 00-13-1d-8e-a4-18 dynamic
10.38.88.18 00-18-81-84-03-83 dynamic
10.38.88.1 00-09-8b-f1-93-8f dynamic
10.38.88.20 00-18-81-83-f9-1b dynamic
10.38.88.38 f0-ae-f1-03-81-88 dynamic
10.38.88.48 90-e8-bd-3d-ea-49 dynamic
10.38.88.84 8c-f0-49-0c-af-49 dynamic
10.38.88.103 00-18-08-33-2f-ac dynamic
10.38.88.203 00-0f-ed-f4-0b-88 dynamic
10.38.88.228 00-1b-fc-82-29-94 dynamic
10.38.88.233 00-1b-fc-f8-84-4a dynamic
10.38.88.240 00-24-be-ed-38-88 dynamic
10.38.88.243 20-cf-30-2d-a9-83 dynamic



第一列顯示的是ip位址
第二列顯示的是網路卡的硬體位址(MAC)
第三列是類型

ps.透過 arp 欺騙(ARP spoofing),這個表裡存的 MAC 可能非真實資料。

Wednesday, May 04, 2011

用 universal extractor 解開安裝檔 (setup.exe) 再用 inno setup 打包!!

因日前有一工具軟體安裝時一直提示要先安裝 .net 2.0 sp2
但裝了 n 版都是一樣的提示。

先去下載了 universal extractor 解開 setup.exe 檔,內含一 install_script.iss 文字檔。
再用 inno setup 5 開啟 install_script.iss ,直接 run 安裝,OK!

PDF 內文複製,貼上 word 時變亂碼

PDF文件狀況如下
1.無加密保全(encrypted)。
2.內文為純英文。
3.內含圖片錯誤,用 adobe acrobat 開啟會提示「影像資料不足」。
4.用 adobe pdf reader, PDF-XChange Viewer等閱讀正常。
5.使用 TouchUP 文字工具看文字屬性,顯示「無系統字型可用」。
6.替換字型時,提示編碼不同,無法解析。

問題:
1.使用文字工具複製,貼至 word 或筆記本時,變成一堆亂碼。
2.PDF內文也無法使用「尋找」功能。

嘗試:
1.以 Adobe Acrobat 開啟,列印至 PDF ,遇「影像資料不足」頁面,無法保存(若跳過該頁則正常如下)。
2.以 Adobe Acrobat 開啟,列印至 PDFill ,成功保存,「影像資料不足」頁面影像損毀。內文複製貼上後,文字正常,空白被移除,可用「尋找」功能。

----
暫存

Tuesday, May 03, 2011

Oracle 名詞對照




Heap Table堆集表格堆表


Tuesday, April 26, 2011

查詢 SQL Server 版本

query_sql_server_product_ver.sql




/*
SERVERPROPERTY(propertyname )
*/
SELECT SERVERPROPERTY('ProductVersion') N'版本編號',
SERVERPROPERTY('ProductLevel') N'版本層級',
SERVERPROPERTY('edition')N'版別',
@@VERSION N'SQL Server 的版本、處理器架構、建置日期和作業系統'



Tuesday, April 19, 2011

Oracle Database 10g - Lesson 1


 

學習目標

Install、create、administer Oracle Database 10g (企業版)

為應用程式configure資料庫、創建使用者、定義storage structures和設置安全性

Monitor資料庫

實施備份和恢復策略

在資料庫和文件檔之間移動資料

Explain the Oracle Database 10g architecture


 

學習順序

1. 簡介

2. Installation

3. DB Creation

4. Instance (實例)

5. Storage

6. Users

7. Schema

8. Data & Concurrency

9. Undo

10. Security

11. Network

12. Proactive Maintenance(主動維護)

13. Performance

14. Backup & Recovery Concepts

15. Backup

16. Recovery

17. Flashback

18. Moving Data

ORACLE資料庫的啟動


 


啟動ORACLE

  • 第一步是啟動實例本身(nomount)。實例(instance)指的就是已分配的記憶體(SGA)和各種後臺進程(process)的集合。此時可進行一些修復作業,如重建控制檔、重建資料庫。

    SQL> STARTUP NOMOUNT

  • 第二步是掛載(mount)資料庫,此時可訪問資料庫檔。該階段可執行的一些操作:資料庫日誌歸檔、資料庫恢復、重新命名一些資料庫檔(如:系統表空間和日誌檔),此時使用者仍然不可訪問資料庫。。

    SQL> STARTUP MOUNT

    or

    SQL> ALTER DATABASE MOUNT;

  • 最後一步是打開(open)資料,此時使用者可訪問資料庫中的資料。 

    SQL> STARTUP

    Or

    SQL> ALTER DATABASE OPEN;

  • 正常啟動資料庫需要完成這三個步驟。你可以把資料庫停留在以上任一步驟,如果你需要進行一些DBA工作,還可以把資料庫開在限制模式(restricted mode)

SQL> STARTUP RESTRICT

--

SQL> alter system enable restricted session;

--

SQL> alter system disable restricted session;


 


startup

[oracle@dyora01 ~]$ sqlplus /nolog


 

SQL*Plus: Release 10.2.0.1.0 - Production on Mon Jan 21 07:04:30 2002


 

Copyright (c) 1982, 2005, Oracle. All rights reserved.


 

SQL> connect / as sysdba

Connected.

SQL> shutdown immediate

Database closed.

Database dismounted.

ORACLE instance shut down.

SQL> startup nomount

ORACLE instance started.


 

Total System Global Area 356515840 bytes

Fixed Size 1219376 bytes

Variable Size 100664528 bytes

Database Buffers 247463936 bytes

Redo Buffers 7168000 bytes

SQL> alter database mount;


 

Database altered.


 

SQL> alter database open;


 

Database altered.


 

SQL> shutdown immediate

Database closed.

Database dismounted.

ORACLE instance shut down.

SQL> startup mount

ORACLE instance started.


 

Total System Global Area 356515840 bytes

Fixed Size 1219376 bytes

Variable Size 100664528 bytes

Database Buffers 247463936 bytes

Redo Buffers 7168000 bytes

Database mounted.

SQL> startup

ORA-01081: cannot start already-running ORACLE - shut it down first

SQL> shutdown immediate

ORA-01109: database not open


 


 

Database dismounted.

ORACLE instance shut down.

SQL> startup

ORACLE instance started.


 

Total System Global Area 356515840 bytes

Fixed Size 1219376 bytes

Variable Size 100664528 bytes

Database Buffers 247463936 bytes

Redo Buffers 7168000 bytes

Database mounted.

Database opened.

SQL>


 

延伸內容

Problems during Oracle Startup

ORACLE資料庫的關閉:

Oracle Database 10g:“g” 代表什麼?

Oracle Database 10g:“g”代表 "Grid Computing"

Oracle 的 Grid Computing 技術包括:
• Automatic Storage Management (ASM)
• Real Application Clusters (RAC)
• Oracle Streams
• Enterprise Manager Grid Control

同理 Oracle 11g 也代表使用了 Grid Computing


p.s. Oracle 9i 中的 i 是表示 internet 。



Tuesday, April 12, 2011

使用者造字封裝程式

造完字要如何讓其他電腦也可以用相同的字型檔和輸入法呢?

方法一:
1. Copy 造字檔、輸入法表格(TTE, EUF)等檔到新電腦上→2.匯入reg檔→3.開啟造字程式→4.字型連結 …
若經常有造字檔更新或用戶太多,不適合用此法。

方法二
1. 到下列網址下載「造字封裝程式」
http://www.microsoft.com/downloads/details.aspx?FamilyID=6afaf511-5182-4ae4-ae19-a9b9609fa9bd&displayLang=zh-tw
或搜尋「EUDC Deployment Tool」、「EUDC 封裝」

系統需求
支援的作業系統: Windows 2000; Windows Server 2003; Windows XP
「使用者造字封裝程式」支援 Windows 2000, Windows XP 及 Windows Server 2003,且需要事先安裝 Microsoft .NET Framework 1.1 版或更新版本。

其匯出之 Windows Installer 封裝亦支援 Windows 2000, Windows XP 及 Windows Server 2003。

支援匯出之輸入法自訂表格: 注音輸入法、倉頡輸入法、速成輸入法、行列輸入法、大易輸入法。

2. 依預設的選項安裝下載的 msi 檔。其餘的注意事項請見 readme.rtf。
3. 開始 → 程式集 → 使用者造字工具 → Microsoft EUDC Deployment Tool。
4. 選擇造字字型(至少選擇通用字型,其他字型如果有造字依需求選擇)。
5. 選擇輸入法自訂表格。
6. 封裝標題、作者、使用者授權合約等依需求調整或不變即可。
7. 按「匯出」鈕進行 msi 封裝。
8. 發佈到用戶端執行,或以 /quiet 選項背景安裝。



update old AdSense code

原代碼:

<script type="text/javascript"><!--
google_ad_client = "pub-09194002021xxxxx";
google_ad_width = 125;
google_ad_height = 125;
google_ad_format = "125x125_as";
google_ad_type = "text_image";
//2006-12-27: club, diving, scuba
google_ad_channel = "0642876578+6711664441+02033xxxxx";
google_color_border = "66B5FF";
google_color_bg = "E6E6E6";
google_color_link = "0066CC";
google_color_text = "66B5FF";
google_color_url = "3D81EE";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>


一直無法轉換:

The format of the line for the parameter google_ad_format is incorrect. Line 5: google_ad_format = 125x125_as;

the line in the code is:
google_ad_format = "125x125_as";


修改以下代碼,原:
google_ad_type = "text_image";
成:
google_ad_type = "text";

新產生的代碼:

<script type="text/javascript"><!--
google_ad_client = "ca-pub-09194002021xxxxx";
/* ckc */
google_ad_slot = "26010xxxxx";
google_ad_width = 200;
google_ad_height = 200;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

Monday, April 11, 2011

Windows 7 共用根目錄

http://windows.microsoft.com/zh-TW/windows7/Share-files-with-someone

"與他人共用檔案

在 Windows 7 中,您可以與其他人員共用個別檔案和資料夾,甚至整個媒體櫃 (如需概觀,請參閱「檔案共用基本資訊」。)
"

"進階共用

基於安全理由,Windows 中的某些位置不能直接使用 [共用對象] 功能表進行共用。其中一個範例是您嘗試共用電腦上的整個磁碟機 (例如磁碟機 C) (有時稱為磁碟機的「根目錄」) 或系統資料夾 (包括使用者和 Windows 資料夾)。

若要共用這些位置,則您必須改用 [進階共用]。不過,一般並不建議共用整個磁碟機或 Windows 系統資料夾。
"

"注意

您無法像在比 Windows Vista 舊的 Windows 版本中使用磁碟機代號加上錢字號來共用磁碟機的根目錄。例如,您無法以 "C$" 來共用 C 磁碟機的根目錄,但您可以使用 "C" 或其他任何名稱來進行共用。
"

Friday, April 08, 2011

Windows 7 PPPOE 錯誤 651 error


狀況:
1.ADSL會突然無法使用(IP分享器),改直接接 adsl moden 撥號,發現居然 windows XP Pro (ThinkPad T42) 可以撥號,windows 7 pro (VAIO-Z) 還是一直錯誤651。
2.打中華電信客服 reset modem 後,windows 7 錯誤依舊。

參考網路上整理的12種方法:














結果:再打一次中華客服,隔兩天來換了光世代,至少用IP分享器不用再重開機了。

....windows 7 error 651 還是沒解決 :P





Thursday, February 17, 2011

Blog 內插入美觀程式碼 SyntaxHighlighter

使用 SyntaxHighlighter 3.0.83

官方網站:http://alexgorbatchev.com/SyntaxHighlighter/

1.到 官網 下載,解開並上傳至網路空間或使用 hosted version.

2.加入下方程式碼到網頁中,使用 blogger 需開啟 bloggerMode 為 true

<link type="text/css" rel="stylesheet" href="script_path/shCore.css"/>
<link type="text/css" rel="stylesheet" href="script_path/shThemeDefault.css" id="shTheme"/>
<script type="text/javascript" src="script_path/shCore.js"></script>
<script type="text/javascript" src="script_path/shBrushBash.js"></script>
<script type="text/javascript" src="script_path/shBrushCpp.js"></script>
<script type="text/javascript" src="script_path/shBrushCSharp.js"></script>
<script type="text/javascript" src="script_path/shBrushCss.js"></script>
<script type="text/javascript" src="script_path/shBrushJS.js"></script>
<script type="text/javascript" src="script_path/shBrushPhp.js"></script>
<script type="text/javascript" src="script_path/shBrushSql.js"></script>
<script type="text/javascript" src="script_path/shBrushVb.js"></script>
<script type="text/javascript" src="script_path/shBrushXml.js"></script>
<script type='text/javascript'>SyntaxHighlighter.config.bloggerMode = true;</script>
<script type='text/javascript'>SyntaxHighlighter.all();</script>


3.使用 <pre /> 方式調用

<pre class="brush: css;">
/* Footer
----------------------------------------------- */
#footer {
clear:both;
padding:15px 0 0;
}
#footer hr {
display:none;
}
#footer p {
margin:0;
}
</pre>



4.DEMO 效果
/* Footer
----------------------------------------------- */
#footer {
clear:both;
padding:15px 0 0;
}
#footer hr {
display:none;
}
#footer p {
margin:0;
}



5.注意事項
使用 <pre /> 方式調用時,
所有的左括號 < 都必需 HTML escaped ,
也就是需使用 &lt; 來代替。