狀況:
在 VMware Workstation 12 安裝了虛擬的 CentOS,無法自動取得 IP address。
解法:
在 Virtual Network Editor 按 Restore Default。
Reference:
Networking is broken in my VMware 10.0 VMs after upgrading to Windows 8.1
2016年9月22日 星期四
2016年9月14日 星期三
Excel VBA 更改文字方塊內容
如果不用 VBA,參考這一篇可以做到 文字方塊 和 特定儲存格 同步。
Excel-讓圖表的標題自動更新
設定 文字方塊 的名稱,提供 VBA 使用。
How to change textbox name in Excel 2007 and 2010 in a chart tab?
用 VBA 設定文字方塊 的內容。
Working with textboxes (vba)
設定文字方塊 Example:
Sheet1.Shapes("文字方塊 1").TextFrame.Characters.Text = "aaaa"
設定圖表中的文字方塊 Example:
Sheet1.ChartObjects("圖表 2").Chart.Shapes("文字方塊 1").TextFrame.Characters.Text = "bbb"
Excel-讓圖表的標題自動更新
設定 文字方塊 的名稱,提供 VBA 使用。
How to change textbox name in Excel 2007 and 2010 in a chart tab?
用 VBA 設定文字方塊 的內容。
Working with textboxes (vba)
設定文字方塊 Example:
Sheet1.Shapes("文字方塊 1").TextFrame.Characters.Text = "aaaa"
設定圖表中的文字方塊 Example:
Sheet1.ChartObjects("圖表 2").Chart.Shapes("文字方塊 1").TextFrame.Characters.Text = "bbb"
2016年9月9日 星期五
IIS7 iis 7 disable server header
Reference:
Remove Unwanted HTTP Response Headers
Remove IIS Server version HTTP response header
1. install URLRewrite
http://www.iis.net/downloads/microsoft/url-rewrite
2. open URLRewrite
3. View Server Variables
4. Add "RESPONSE_SERVER"
5. Add Outbound Rule
Remove Unwanted HTTP Response Headers
Remove IIS Server version HTTP response header
1. install URLRewrite
http://www.iis.net/downloads/microsoft/url-rewrite
2. open URLRewrite
3. View Server Variables
4. Add "RESPONSE_SERVER"
5. Add Outbound Rule
IIS7 disable Method OPTIONs
Reference:
[IIS]OPTIONS method is enabled
1. in server manager. Add Role "Request Filtering"
2. IIS manager / Request Filtering / HTTP Verbs. Add Deny Verb: OPTIONS.
[IIS]OPTIONS method is enabled
1. in server manager. Add Role "Request Filtering"
2. IIS manager / Request Filtering / HTTP Verbs. Add Deny Verb: OPTIONS.
2016年7月27日 星期三
OneNote 2016 無法登入
安裝 OneNote 2016 後一直無法登入。
輸入 Microsoft Account 後出現 "很抱歉,伺服器發生問題,因此目前無法新增 Office 365 SharePoint。請稍候再試一次。"
亂試好多方法,最後終於登入了。
最後一次是先按一次 OneNote 登入不進去,讓登入的畫面留著,在工作列的 OneNote 2016 圖示上按滑鼠右鍵,選 OneNote 2016 並輸入 Microsoft Account / Password 就成功了。
不確定這是不是解法,或是剛好 Microsoft 的伺服器修好了。
輸入 Microsoft Account 後出現 "很抱歉,伺服器發生問題,因此目前無法新增 Office 365 SharePoint。請稍候再試一次。"
亂試好多方法,最後終於登入了。
最後一次是先按一次 OneNote 登入不進去,讓登入的畫面留著,在工作列的 OneNote 2016 圖示上按滑鼠右鍵,選 OneNote 2016 並輸入 Microsoft Account / Password 就成功了。
不確定這是不是解法,或是剛好 Microsoft 的伺服器修好了。
2016年7月26日 星期二
2016年7月15日 星期五
CentOS locale path different on 4.x and 5.x
有個軟體在 CentOS 4.x 執行正常,但是在 CentOS 5.x 會有錯誤訊息:
locale not supported by xlib locale set to c
Warning: translation table syntax error: Unknown keysym name: osfActivate
Warning: ... found while parsing ':<Key>osfActivate: ManagerParentActivate()'
Warning: String to TranslationTable conversion encountered errors
Warning: translation table syntax error: Unknown keysym name: osfBeginLine
Warning: ... found while parsing ':<Key>osfBeginLine: ManagerGadgetTraverseHome()'
Warning: String to TranslationTable conversion encountered errors
Warning: translation table syntax error: Unknown keysym name: osfHelp
Warning: ... found while parsing ':<Key>osfHelp: ManagerGadgetHelp()'
Warning: String to TranslationTable conversion encountered errors
Warning: translation table syntax error: Unknown keysym name: osfActivate
Warning: ... found while parsing ':<Key>osfActivate: ManagerParentActivate()'
Warning: String to TranslationTable conversion encountered errors
Workaround:
1. 在 CentOS 5.x 建立目錄 /usr/X11R6/lib
2. 在目錄內建立 link,指令 ln -s /usr/share/X11 X11
Reference:
http://parallelgeo.com/download/spw2linux/currentrelease/ReadMe_for_recent_Linux_distributions.txt
locale not supported by xlib locale set to c
Warning: translation table syntax error: Unknown keysym name: osfActivate
Warning: ... found while parsing ':<Key>osfActivate: ManagerParentActivate()'
Warning: String to TranslationTable conversion encountered errors
Warning: translation table syntax error: Unknown keysym name: osfBeginLine
Warning: ... found while parsing ':<Key>osfBeginLine: ManagerGadgetTraverseHome()'
Warning: String to TranslationTable conversion encountered errors
Warning: translation table syntax error: Unknown keysym name: osfHelp
Warning: ... found while parsing ':<Key>osfHelp: ManagerGadgetHelp()'
Warning: String to TranslationTable conversion encountered errors
Warning: translation table syntax error: Unknown keysym name: osfActivate
Warning: ... found while parsing ':<Key>osfActivate: ManagerParentActivate()'
Warning: String to TranslationTable conversion encountered errors
1. 在 CentOS 5.x 建立目錄 /usr/X11R6/lib
2. 在目錄內建立 link,指令 ln -s /usr/share/X11 X11
Reference:
http://parallelgeo.com/download/spw2linux/currentrelease/ReadMe_for_recent_Linux_distributions.txt
訂閱:
文章 (Atom)









