最近在新加坡設立了一臺 AWS 主機,並且搭配 WHM/cPanel 做為網站伺服器。多數的運作都還算不錯,除了 DNS 伺服器,被做為攻擊 cpsc.gov 美國消費品安全委員會的跳板。有大量 IP 向主機發出 dig 請求,雖然服務正常,但由於數量極大,保守估計耗費了 100M 的頻寬在回應攻擊請求。

最近在新加坡設立了一臺 AWS 主機,並且搭配 WHM/cPanel 做為網站伺服器。多數的運作都還算不錯,除了 DNS 伺服器,被做為攻擊 cpsc.gov 美國消費品安全委員會的跳板。有大量 IP 向主機發出 dig 請求,雖然服務正常,但由於數量極大,保守估計耗費了 100M 的頻寬在回應攻擊請求。
General case, we can use these scripts below to display camera on the scene in the Unity3d.
WebCamTexture wc = new WebCamTexture ();
GameObject.Find (“/plane”).renderer.material.mainTexture = wc;
wc.Play ();
But sometimes we want to save camera to image, or realized video streaming. We can use WebcamTexture.GetPixels() and Texture2D.SetPixels(), but you must noticed returning width and height.
以往若要取得使用者塗鴉牆上的文章,多是透過 read_stream 權限。 Facebook Graph API 在日前釋出的 2.3 版,將不再是利用 read_stream 權限取得使用者的塗鴉牆內容,而是改用 user_posts 權限。
I put my solution here, try to build 32bit Unity3d and plugin. Recently I build Unity3d project in Linux 64bit. The project need to analysis web camera it only support MJPEG format, MJPG format seems could not be captured by using WebCamTextrure() directly on Linux. (By the way, MJPG format seems can be analysis on Windows 32bit/64bit normally.) So I developed plugin that using libjpeg to analysis web camera.
MySQL 中的 ORDER BY 可以針對欄位進行升序 (ASC) 或降序 (DESC) 排序,例如數字從小到大,或者英文字母從 Z 到 A 等。不過有時難免會有需要自訂順序的需求,列如希望排列的數字順序是 3, 5, 1, 2。