發表文章

'Microsoft.ACE.OLEDB.12.0' 提供者並未登錄於本機電腦上。 (System.Data)

'Microsoft.ACE.OLEDB.12.0' 提供者並未登錄於本機電腦上。 (System.Data) 下載  Access Database Engine 2010 (ACE 2010)  驅動程式 Microsoft Access Database Engine 2010 可轉散發套件 http://www.microsoft.com/zh-tw/download/details.aspx?id=13255 安裝32位元版本 AccessDatabaseEngine.exe /passive 安裝64位元版本 AccessDatabaseEngine_X64.exe /passive 連線字串(Excel 97-2003 Xls files with ACE OLEDB 12.0) Provider=Microsoft.ACE.OLEDB.12.0;Data Source=c:\myFolder\myOldExcelFile.xls; Extended Properties="Excel 8.0;HDR=YES"; 連線字串(Xlsx files) Provider=Microsoft.ACE.OLEDB.12.0;Data Source=c:\myFolder\myExcel2007file.xlsx; Extended Properties="Excel 12.0 Xml;HDR=YES"; "HDR=Yes;" 表示第一列為欄位名稱 參考資料: Microsoft Access Database Engine 2010 可轉散發套件 https://www.microsoft.com/zh-tw/download/details.aspx?id=13255 Microsoft ACE OLEDB 12.0 connection strings https://www.connectionstrings.com/ace-oledb-12-0/

使用MimeKit寄發加密加簽信件

MimeKit 是 .NET Foundation 開放社群的一項專案,提供處理各式Mime格式的函式庫,例如支持 S/MIME 和 PGP,並且支援.NET/Mono的所有平台等。 預設DefaultSecureMimeContext使用SQLite Windows環境可使用WindowsSecureMimeContext 或TemporarySecureMimeContext var joey = new MailboxAddress ("Joey", "joey@friends.com"); var alice = new MailboxAddress ("Alice", "alice@wonderland.com"); var message = new MimeMessage (); message.From.Add (joey); message.To.Add (alice); message.Subject = "How you doin?"; // create our message body (perhaps a multipart/mixed with the message text and some // image attachments, for example) var body = CreateMessageBody (); // now to digitally sign our message body using our custom S/MIME cryptography context using (var ctx = new MySecureMimeContext ()) { // Note: this assumes that "Joey" has an S/MIME signing certificate and private key // with an X.509 Subject Email identifier that matches Joey's email address. message.Body = MultipartSigned....

Azure Ubuntu 設定root密碼

sudo passwd root

Microsoft Image Composite Editor

由於相機的限制或拍攝技能的限制,我們通常很難將一座高樓、山或其它的場景整體記錄下來,只能分段連續拍攝,透過 Microsoft Image Composite Editor 可以解決這樣的問題。Microsoft Image Composite Editor 是影像接合軟體,它可以將一組含有重疊部分的相片進行高質量的全景拼接,產生無縫接合全景圖。完成的圖片可直接上傳到 Photosynth 網站進行3D景像導覽。支援64位元電腦,支援多種圖片格式輸出,如JPEG, TIFF, BMP, PNG, HD Photo, Photoshop格式和Silverlight Deep Zoom 等 1.4.3版新特點 Stitch directly from a video (only on Windows 7) Automatic lens vignette removal Improved blending engine Options dialog to control memory usage and scratch disk locations 期他特點 Accelerated stitching on multiple CPU cores Ability to publish, view, and share panoramas on the Photosynth web site Support for "structured panoramas" — panoramas consisting of hundreds of photos taken in a rectangular grid of rows and columns (usually by a robotic device like the GigaPan tripod heads) No image size limitation — stitch gigapixel panoramas Support for input images with 8 or 16 bits per component Ability to read raw images using WIC ...

如何在Windows Server 2008安裝Windows Phone Developer Tools

Windows Phone 開發工具官方只支援 Windows Vista 和 Windows 7。若要安裝於Windows 2008環境你可做以下步驟。 1.下載 the Windows Phone Developer Tools web 2.透過執行vm_web.exe /x 解壓縮安裝資料於指定路徑中 3.使用記事本開啟在第二步驟解壓縮資料夾裡的baseline.dat 4.搜尋 [gencomp7788]  5.將 InstallOnLHS 從 1 改為 0 6.將  InstallOnWin7Server 從 1 為 0 7.儲存 baseline.dat 8.從步驟二解壓縮資料夾裡執行 setup.exe /web 注意- 請確定步驟8執行時包含 /web 參數。 否則安裝資料將會直接透過下載進行,將會導致安裝失敗

TOP N rows for a grouped query

方法一 SELECT ac.* FROM mytable AC LEFT JOIN mytable A ON A.id = AC.id WHERE A.id IN ( SELECT TOP 3 id FROM mytable A WHERE A.category = AC.category ORDER BY A.createtime DESC ) ORDER BY AC.category 方法二(使用Having) SELECT c.*, d.ranknum FROM mytable AS c INNER JOIN ( SELECT a.id, COUNT(*) AS ranknum FROM mytable AS a INNER JOIN mytable AS b ON (a.category = b.category) AND (a.num <= b.num) GROUP BY a.id HAVING COUNT(*) <= 3 ) AS d ON (c.id = d.id) ORDER BY c.category, d.ranknum SELECT AC.* FROM historypath AC INNER JOIN (SELECT ROW_NUMBER() OVER(PARTITION BY A.car ORDER BY A.id) AS RowNumber, A.car FROM historypath A ) A ON A.car = AC.car WHERE A.RowNumber <= 3 SELECT& AC.* FROM historypath AC CROSS APPLY (SELECT TOP 3 id FROM historypath A WHERE A.car = AC.car ORDER BY A.id desc ) A ORDER BY A.id desc

W3C 測試瀏覽器 HTML5 相容性結果,IE9表現最符合標準

全球資訊網協會(Worldwide Web Consortium,W3C)是HTML5的標準制定組織,最近公告一份各家瀏覽器 對HTML5 相容性測試結果。 W3C說明,該測試是依據HTML 5規格及官方認可的測試工具,測試HTML5的7項功能,包括屬性(attributes)、音訊(audio)、繪圖功能(canvas)、可根據類別查詢元素的getElementsByClassName、外來內容模式(foreigncontent)、影片(video)及xhtml5等。用來進行測試的都是各大瀏覽器的最新版本,諸如 IE 9 第六個平台預覽版、 Google Chrome 7.0測試版 、 Firefox 4第六個測試版 、 Opera 10.6 及 Safari 5.0 等。 測試結果發現,IE 9在除了canvas及getElementsByClassName之外,拿下了5項功能百分之百符合HTML 5規格的成績,相較於Google Chrome的4項、Firefox及Opera的3項,以及Safari的兩項,IE表現非常出色。 此資料顯示目前 Internet Explorer 9 是目前HTML5相容性最佳的瀏覽器,但是Chrome、Firefox、Opera和Safari等瀏覽器也不會差距太大,報告也顯示微軟對於對HTML5支援相容性部分展現其決心。   Feature Internet Explorer Platform Preview 6 Google Chrome 7.0.517.41 beta Firefox 4 Beta 6 Opera 11.00 alpha (build 1029) Safari Version 5.0.2 (6533.18.5) attributes 1 1 1 1 1 audio 1 1 1 1 1 canvas 0...