因為在做開發,以防之後會用到。(ex:網頁相容性)
-------
Windows 10 附帶的 Edge,好久沒使用它;經歷了好幾個Win10更新,要使用它時,執行一段時間便自動關閉。
- Sep 15 Fri 2017 11:00
[Edge] 修復 微軟瀏覽器 Edge
- Aug 30 Wed 2017 09:19
[程式][C#] 如何以程式將資料夾設為共享?
1. 首先:要將「System.Management」加入參考。
2. 程式碼:
ManagementClass mClass = new ManagementClass( "Win32_Share" ); ManagementBaseObject mBaseObj_in = mClass.GetMethodParameters( "Create" ); mBaseObj_in["Path"] = installDirInfo.FullName ; // 資料夾位置. mBaseObj_in["Type"] = 0x0; // 共用類型. ManagementBaseObject mBaseOjb_out = mClass.InvokeMethod( "Create", mBaseObj_in, null ); if ( (uint)(mBaseOjb_out.Properties["ReturnValue"].Value) != 0) { Console.WriteLine( "無法共享資料夾: " + mBaseOjb_out.Properties["ReturnValue"].Value ); } /// ReturnValue: /// 0 – Success /// 2 – Access denied /// 8 – Unknown failure /// 9 – Invalid name /// 10 – Invalid level /// 21 – Invalid parameter /// 22 – Duplicate share /// 23 – Redirected path /// 24 – Unknown device or directory /// 25 – Net name not found
- Aug 04 Fri 2017 09:17
[Microsoft] 尋求官方支援列表
不論是個人、企業、開發人員,尋求的管道 都不太一樣..;
而微軟的連結,真是錯綜複雜..;
也常常遇到頁面已不存在..。
- Aug 04 Fri 2017 08:59
關於Wanna Cry在微軟作業系統使用的漏洞
今年初 爆發大規模的 勒索病毒 Wanna Cry,據災情統計 台灣排行第二;
許多文章列了許多的安全性更新項目。
小弟曾聯絡微軟技術支援,
- Jul 07 Fri 2017 14:42
[程式][Java] 如何開啟一個檔案 以附加方式 寫入資料?
簡單記錄:
private static final String FILENAME = "E:\\test\\filename.txt"; File file = new File(FILENAME); // if file doesnt exists, then create it if (!file.exists()) { file.createNewFile(); } // true = append file FileWriter fw = new FileWriter(file.getAbsoluteFile(), true); BufferedWriter bw = new BufferedWriter(fw); bw.write(data); bw.close(); fw.close();
來源:Java – How to append content to file
- Jun 27 Tue 2017 15:11
[JavaScript] 執行順序 / 擺放位置
(1) W3C 建議放在 <head></head> 中。
(2) 不論擺在哪裡,都是從頭讀到尾的執行順序。(call function除外)
(3) jquery可以放在head中;jquery會綁定一個監聽,當全部的html文檔解析完之後,再執行內部代碼。
- Jun 26 Mon 2017 17:04
Regular Expression 正則表示式
(1) 如何找出 指定的tag 有用該屬性 的文字檔?
例題:「<rich:panel type="a" label="b">」。
答案:「(rich:panel[^>]*)\blabel(\s*=)」。 // 這是 tag 與 attribute 之間,有white-space也可以找出來的答案。
- Jun 22 Thu 2017 15:04
[程式][IDE][Eclipse] 文字編輯中的中文字太小
如何設定 Eclipse 在編輯文字視窗中,中文字太小的問題:
選單上->"Window"->"Preferences"->"General"->"Appearance"->"Colors and Fonts"
->"Basic"->"Text Font"->"Edit"。
- Jun 22 Thu 2017 14:24
[程式][IDE][Eclipse] 編碼設定
Eclipse 執行時如何讓Console顯示中文、建置全UTF-8的環境、針對個別檔案類型設定預設編碼
Eclipse 執行時如何讓Console顯示中文
Eclipse主功能表-->Run-->Run Configuration-->Common 頁籤-->
- Mar 29 Wed 2017 09:50
[Java] 快速切換jdk的方法 (Windows)