過去一直只仰賴 CRL,最近終於把 OCSP 也搞定。其實幾乎全靠著官網的一篇範例程式,加上對憑證鍊的一些粗淺認識,猜到實務上必須怎麼改才能符合自己的情境。
因為 Google App Engine 無法調整一些敏感的系統參數,所以整理的結果不能上雲端,有點可惜。為了怕以後又要花好多時間回想,這次就連測試程式也配套做好留存。
星期四, 10月 09, 2014
星期五, 10月 03, 2014
Eclipse Dark Theme
新版 Luna 向 Visual Studio 學習優點是件好事(希望 Xamarin 也趕快跟進吧!),但不應該只做一半:最重要的寫程式那一大片竟然還是白底,得另外加 Color Theme 外掛來解決。
星期一, 9月 15, 2014
星期五, 9月 12, 2014
一個僅見於 Safari 的網頁回應錯誤
有一個 Servlet 要去抓別人的網頁,解析其中的部份回傳給瀏覽器。測試中無意間發現那個「別人的網頁」有一個神奇字元,只要想吐回 Safari 就會有個用戶端「Failed to load resource: Frame load interrupted」錯誤,但在 Chrome 或 Firefox 不會,留個參考。快速驗證的程式碼如下:
PrintWriter writer = response.getWriter();
writer.print((char)26);
writer.print("You can not see this under Safari 7.0.6 (9537.78.2)");
PrintWriter writer = response.getWriter();
writer.print((char)26);
writer.print("You can not see this under Safari 7.0.6 (9537.78.2)");
星期一, 9月 01, 2014
星期四, 8月 28, 2014
GAE 資料的異常
有個在 GAE 已好一陣子的專案,因為最近部署前多做了一個清除的動作,導致以下這種令人摸不著頭緒的錯誤:
blar.blar.blar 明明就是早八百年前都在讀寫的資料持久化類別,怎麼可能不見?去 Google 一下,原來別人也發生過,而且解法也令人意想不到:
javax.jdo.JDOUserException: Persistent class "Class blar.blar.blar does not seem to have been enhanced. You may want to rerun the enhancer and check for errors in the output." has no table in the database, but the operation requires it. Please check the specification of the MetaData for this class.
blar.blar.blar 明明就是早八百年前都在讀寫的資料持久化類別,怎麼可能不見?去 Google 一下,原來別人也發生過,而且解法也令人意想不到:
- 編輯 Project > properties > Google > App Engine > ORM
- 移除 src/
- 新增 src/blar/blar/*.java
訂閱:
文章 (Atom)
