轉自:https://dotblogs.com.tw/may05005/2016/01/21/110533
Win 10 "啟動"資料夾的位置在那裏?
方法一:
系統[啟動]資料夾的位置
X:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp
個人[啟動]資料夾的位置
X:\Users\用户名\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
方法二:
打開[執行],輸入開啟啟動資料夾的命令
系統啟動資料夾
shell:Common Startup
個人啟動資料夾
shell:startup
2018年8月5日 星期日
2018年1月6日 星期六
[SQL] 您為 Analysis Services 服務提供的認證無效。若要繼續,請為 Analysis Services 服務提供有效的帳戶和密碼
安裝MS SQL時,在設定授援發生如下錯誤
【您為 Analysis Services 服務提供的認證無效。若要繼續,請為 Analysis Services 服務提供有效的帳戶和密碼。】
只要都選「NT Authority\SYSTEM」即可
【您為 Analysis Services 服務提供的認證無效。若要繼續,請為 Analysis Services 服務提供有效的帳戶和密碼。】
只要都選「NT Authority\SYSTEM」即可
2017年12月21日 星期四
取得本機上的wifi密碼紀錄
原文網址:https://read01.com/Ky5RN0.html
轉自: https://read01.com/zh-tw/Ky5RN0.html#.WjxdAWiWbIU
*在給出的曾經使用過的WiFi連接中選擇你想查詢的連接名稱,然後套入如下命令(上圖②號命令)中查詢密碼:
netsh wlan show profile name="連接名" key=clear
注意上述命令中的空格,符號不要使用中文,文中「連接名」三個字替換為查詢到的連接名稱。
*也可以使用如下命令直接查詢所有使用過的連接密碼:
netsh wlan show profile * key=clear
注意通配符「*」前後的空格不要漏掉。
使用這兩種方法能夠查詢到目前Windows7/Windows 8.1/Windows10電腦正在使用的WiFi連接密碼和曾經使用過的WiFi連接密碼,需要這些內容的用戶可以在查詢到之後為自己和親朋好友的手機、平板、筆記本等設備連接WiFi提供方便。
2017年12月12日 星期二
[C#] 編碼問題,把所有的編碼都跑過一輪
轉自 https://dotblogs.com.tw/yc421206/archive/2011/06/09/27596.aspx
foreach (EncodingInfo ei in Encoding.GetEncodings())
{
Encoding e = ei.GetEncoding();
Console.WriteLine("Name:{0},CodePage:{1}",ei.Name, e.CodePage);
}
轉自 https://goo.gl/Xgh24y
重新解碼在編碼,以解決亂碼問題
StringBuilder sb = new StringBuilder();
string source = "hello 浣犲ソ";
foreach (var e1 in Encoding.GetEncodings())
{
foreach (var e2 in Encoding.GetEncodings())
{
byte[] unknow = Encoding.GetEncoding(e1.CodePage).GetBytes(source);
string result = Encoding.GetEncoding(e2.CodePage).GetString(unknow);
sb.AppendLine(string.Format("{0} => {1} : {2}", e1.CodePage, e2.CodePage, result));
}
}
File.WriteAllText("test.txt", sb.ToString());
2017年5月17日 星期三
[C#] CompareOrdinal與Equals比對測試
轉自:http://www.cnblogs.com/LoveLyre/archive/2011/09/02/2163594.html
//CompareOrdinal
start = Environment.TickCount;
for (int i = 0; i < Num; i++)
{
string.CompareOrdinal(s1, s2);
}
end = Environment.TickCount;
AddLog("CompareOrdinal : " + (end - start));
//靜態Equals
start = Environment.TickCount;
for (int i = 0; i < Num; i++)
{
string.Equals(s1, s2);
}
end = Environment.TickCount;
AddLog("靜態Equals : " + (end - start));
//CompareOrdinal
start = Environment.TickCount;
for (int i = 0; i < Num; i++)
{
string.CompareOrdinal(s1, s2);
}
end = Environment.TickCount;
AddLog("CompareOrdinal : " + (end - start));
//靜態Equals
start = Environment.TickCount;
for (int i = 0; i < Num; i++)
{
string.Equals(s1, s2);
}
end = Environment.TickCount;
AddLog("靜態Equals : " + (end - start));
2017年5月10日 星期三
[C#] CLR 在過去 60 秒一直無法從 COM 內容........
執行VS開發工具時發生以下錯誤訊息:
CLR 在過去 60 秒一直無法從 COM 內容 0x1a1d38 轉換為 COM 內容 0x1a1ea8。
擁有該目的內容/Apartment 的執行緒,很可能正在進行非提取等候或正在處理非常長的執行作業,而未提取 Windows 訊息。
這種情況通常會對效能產生負面影響,甚至可能導致應用程式停止回應,或導致記憶體使用量持續隨時間而累積。
若要避免這個問題,所有單一執行緒的 Apartment (STA) 執行緒都應該使用提取等候基本方法
(例如 CoWaitForMultipleHandles),並且在長時間的執行作業中定期提取訊息。
這時更改以下設定,取消勾選 ContextSwitchDeadlock
2017年1月5日 星期四
[google] google sheet 限制
Author: Mango
|
at:下午3:00
|
Category :
google
|
from: https://productforums.google.com/forum/#!msg/docs/g8RkXItHY0M/ntC02cXtpMMJ
The maximum rows in Google Docs spreasheets only depends on the maximum number of cells in a spreadsheet. When you hve reached this maximum you most probably won't be able to add any more rows.
The theoretical limit of the number of rows in a spreadssheet is 200,000 rows, provided you have one sheet and a single cell wide column. See also the limits below.
Spreadsheets
- Each spreadsheet can be up to 256 columns, or up to 200,000 cells, or up to 100 sheets -- whichever limit is reached first. There's no limit on number of rows.
- Each spreadsheet can have up to 20,000 cells with formulas. Of this total, the following limits apply:
- Up to 1,000 GoogleFinance formulas
- Up to 1,000 GoogleLookup formulas
- Up to 50 Import formulas
- You have a limit of 1000 spreadsheets. The spreadsheets that are shared with you do not count against 1000 limit.
- The limit on spreadsheets open at one time is 11.
- You can import spreadsheets up to approximately 1 Mb in xls, csv, or ods, txt, tsv, tsb format.
2016年12月13日 星期二
[javascript] 掃描某個ID的 Element
javascript 抓某個ID值的 Element
for(i=0; i<document.getElementsByTagName("div").length; i++)
{
try {
if(document.getElementsByTagName("div")[i].getAttribute("id") == Today)
{
var Field = document.getElementsByTagName("div")[i];
}
}
catch(e){}
}
[javascript] 解決【您正在檢視的網頁嘗試要關閉視窗,您是否要關閉此視窗】
Author: Mango
|
at:下午6:51
|
Category :
javascript
|
參考:https://social.msdn.microsoft.com/Forums/zh-TW/1649d31b-43c6-4b76-8d57-40b36aaf9d27
當使用javascript呼叫window.close();要關閉時有時候會出現
"您正在檢視的網頁嘗試要關閉視窗,您是否要關閉此視窗?"
window.close();
2016年10月17日 星期一
[C#] 取得網址 Using Request.Url to find specific parts of the web page's URL
參考:http://www.codepal.co.uk/show/Using_RequestUrl_to_find_specific_parts_of_the_web_pages_address
| Request.Url.GetLeftPart(UriPartial.Authority) | http://www.codepal.co.uk:123 |
| Request.Url.GetLeftPart(UriPartial.Path) | http://www.codepal.co.uk:123/RequestUri.aspx |
| Request.Url.GetLeftPart(UriPartial.Query) | http://www.codepal.co.uk:123/RequestUri.aspx?queryStringVal=Hello |
| Request.Url.GetLeftPart(UriPartial.Scheme) | http:// |
| Request.Url.ToString | http://www.codepal.co.uk:123/RequestUri.aspx?queryStringVal=Hello |
| Request.Url.AbsolutePath | /RequestUri.aspx |
| Request.Url.AbsoluteUri | http://www.codepal.co.uk:123/RequestUri.aspx?queryStringVal=Hello |
| Request.Url.Authority | www.codepal.co.uk:123 |
| Request.Url.GetComponents(UriComponents.AbsoluteUri, UriFormat.SafeUnescaped) | http://www.codepal.co.uk:123/RequestUri.aspx?queryStringVal=Hello |
| Request.Url.GetComponents(UriComponents.Fragment, UriFormat.SafeUnescaped) | |
| Request.Url.GetComponents(UriComponents.Host, UriFormat.SafeUnescaped) | www.codepal.co.uk |
| Request.Url.GetComponents(UriComponents.HostAndPort, UriFormat.SafeUnescaped) | www.codepal.co.uk:123 |
| Request.Url.GetComponents(UriComponents.HttpRequestUrl, UriFormat.SafeUnescaped) | http://www.codepal.co.uk:123/RequestUri.aspx?queryStringVal=Hello |
| Request.Url.GetComponents(UriComponents.KeepDelimiter, UriFormat.SafeUnescaped) | |
| Request.Url.GetComponents(UriComponents.Path, UriFormat.SafeUnescaped) | RequestUri.aspx |
| Request.Url.GetComponents(UriComponents.PathAndQuery, UriFormat.SafeUnescaped) | /RequestUri.aspx?queryStringVal=Hello |
| Request.Url.GetComponents(UriComponents.Port, UriFormat.SafeUnescaped) | 123 |
| Request.Url.GetComponents(UriComponents.Query, UriFormat.SafeUnescaped) | queryStringVal=Hello |
| Request.Url.GetComponents(UriComponents.Scheme, UriFormat.SafeUnescaped) | http |
| Request.Url.GetComponents(UriComponents.SchemeAndServer, UriFormat.SafeUnescaped) | http://www.codepal.co.uk:123 |
| Request.Url.GetComponents(UriComponents.SerializationInfoString, UriFormat.SafeUnescaped) | http://www.codepal.co.uk:123/RequestUri.aspx?queryStringVal=Hello |
| Request.Url.GetComponents(UriComponents.StrongAuthority, UriFormat.SafeUnescaped) | www.codepal.co.uk:123 |
| Request.Url.GetComponents(UriComponents.StrongPort, UriFormat.SafeUnescaped) | 123 |
| Request.Url.Host | www.codepal.co.uk |
| Request.Url.HostNameType.ToString | Dns |
| Request.Url.OriginalString | http://www.codepal.co.uk:123/RequestUri.aspx?queryStringVal=Hello |
訂閱:
文章 (Atom)


