2014/10/27

[筆記] Windows 8 Store App 檢查有無網路連線存在

手上正在做一個用 Windows Store App 連接公司現有服務的工作

由於是連 WebService,接資料之前檢查網路連線是不是存在以避免程式噴掉是基本工作

找了好久才找到方法 (是 Google 功力不夠嗎? 0rz)

總之 memo 一下做法

2014/10/20

[MEMO] Channel 9 影音教學

https://channel9.msdn.com/Blogs/Windows-Store-App-develop-walkthrough

話說最近被丟到 windows 8 app 的開發專案去了

然後開發只有一個人...

Google 有關 win 8 app 的開發,會一直撈到 Win 8 app 的使用教學, 找 xaml 則會一直找到 WPF... 0rz

不過發現了上面那個網址 XD

還很甘心的可以下載回來看

--

開始來看....

2014/09/10

[筆記] Silverlight 在 Chrome 瀏覽器 crash 的問題

Chrome 版本 : 36.0.1985.143 m
Silverlight 版本 : 5.1.30514.0

處理公司的產品跨瀏覽器時遇到的問題

Silverlight 上面某個按鈕,IE 跟 Firefox 點下去可以正常執行,偏偏 Chrome 就當掉了....


2014/09/05

[速報?] Chrome 於 37 版(37.0.2062.103)開始不支援 showModalDialog

中午更新了 37.0.2062.103 版,發現自家的系統怎麼點很多按鈕都沒反應 0rz

把版號跟 showModalDialog 查了一下之後發現了這個內容


The web platform has evolved organically over the past two decades, slowly growing new capabilities and APIs. Many features that are added are great ideas that enable web developers to make even better applications. But some APIs turn out, in retrospect, to be mistakes. Over time, the platform accretes more bad APIs, which makes it harder to add new browser features, confuses web developers, and even introduces security bugs. showModalDialog is a bad API that we deprecated earlier this year, and in Chrome 37 we will disable support for it by default.
showModalDialog was first introduced in Internet Explorer 4 and although it was never formally standardized, over time most other browsers added support for it. It allows applications to show a dialog of HTML content that freezes all other content while showing. showModalDialog is not a commonly used API: based on our usage countersless than 0.006% of pages use it.

哭哭...  

連結的下面一點點是有提到說  Enterprise Policy setting to re-enable showModalDialog 

可以透過連結裡面的說明來重新開啟 showModalDialog 的功能到 2015/05之前

但最好是客戶買了系統之後會乖乖聽話讓我們改 client 的機碼

我們敢講客戶的資安規則搞不好還不允許,應該正常來說都不會允許....

2014/08/25

[筆記] 如何把 log4net 的 log file 寫到執行檔下的目錄

以前寫 web 都不知道 XD  最近在寫 exe 才在想總不能指定 user 一定要去哪個位置撈 log

找了一下發現 file 這個 config 可以設定相對路徑 XD


2014/05/12

[筆記] VS2012 無法開啟 Silverlight 專案的簽署頁面問題

硬碟最近怪怪的 趁周末放假換硬碟順道升 Win8

既然升了 win 8 就要順道裝個 vs 2012 啦

悲劇就從這樣的自作聰明開始 XDrz


2014/05/02

[筆記] SQLite.dll 使用 Any CPU 編譯後的執行階段錯誤

公司某案子的另一樣東西升級後得強制把 x64 IIS 的 允許32位元關閉

然後一關 SQLite 就死了,就開始 survey SQLite 也要跟著升級的問題

姑且就叫那個要升級的是 a 元件吧 XD