• 51ad70f3d52dc2e5456c5c4f80599a65.png
    雖然透過 Dockerfile 可以快速又方便的產生出新的 image,但是在某些特殊環境,常常還是會失敗 (比如拉不到某些套件的 respostory 之類的)。即使拉的到,卻還是要花很長的時間重新 build。那是否能把 build 好的檔案存起來,需要的時候拉下來直接用呢?
    Google 的 container registry 就是一個方便的選擇。
    Docker | 142 觀看 | 09-13 | 洪國恩 上傳
  • 最近用 json_encode 儲存計算結果,因為計算結果有浮點數,就發現了神奇的現象。
    要儲存的資料是
    value = 3.36,但是透過 json_encode 之後,存進檔案竟然變成
    {"value": 3.3599999999999999}
    研究了一下發現,原來是 json_encode 預設採用 IEEE 754 的方式儲存,所以就 QQ 了~~
    要解決這個方法很簡單,只需要調整 php.ini
    把 serialize_precision 設為 -1 即可
    serialize_precision = -1
    或是透過 ini_set
    ini_set("serialize_precision","-1");
    也可以喔~~~
    PHP | 119 觀看 | 09-10 | 洪國恩 上傳
  • 353ecd01bfba00ae0eeccd8e693a8027.png開發網頁時,其實常常遇到 JS 無法執行。原因是因為透過 Line, WeChat 等等 IM 工具將連結發出去。雖然達到推廣效果,但卻常常因為部分功能沒有啟用 (像是 localStorage 等),造成 script error... 
    所以最好先判斷是否在 Webview 中,避免悲劇發生。
     
    這個 NPM library, https://www.npmjs.com/package/is-webview, 還不錯用,簡單輕巧。
     
    如果需要在當作一般 Js 使用,可以用附件 (is-webview.js),在 window 直接註冊了 isWebView(),呼叫後就會回傳 true / false 囉~~
     
     
    JavaScript | 208 觀看 | 08-22 | Kuann Hung 上傳
  • Uploaded by 新北市召會中和會所 on 2018-08-11.
    夏季訓練 - 利未記結晶讀經 (二) | 379 觀看 | 08-14 | Kuann Hung 上傳
  • 4792d6bd5aa7c5992ed58d0828bb88c4.jpg
    Nginx 是一套相當強悍又好用的伺服器,特別在 reverse proxy 或是 load balancce 的使用上,都非常的方便好用。
    但一般都是用在 web 方便的應用較多。如果是其他服務,其實可以透過 nginx_tcp_proxy_module  達到代理或是 Load balance 的目的喔!!~
    Linux | 251 觀看 | 08-13 | Kuann Hung 上傳
  • 先來個最基本的 TensorFlow 實作
    869c27393f454e42406f2e55a5b2a34a.png
    這個範例是把圖片根據 "目錄名稱" 分類好,透過 retrain.py 來訓練,訓練後的結果會存在 output_graph.pb 跟 output_labels.txt 中,可以隨時調用。
     
     
    TensorFlow | 338 觀看 | 08-02 | Kuann Hung 上傳
  • 這是個滿方便的網站,如果需要繁簡互轉,而且包含一些用法轉換的話,像是 "資料庫" 會轉換成 "数据库"。
    好用又方便喔~ (如果文字太多就需要下載程式自行手動執行喔!~
     
     
    9885c017eeab09d1e94028e5099bb4dc.png
    Web 相關 | 165 觀看 | 07-31 | 洪國恩 上傳
  • Scripture Reading: Lev. 26:1-13; 1 John 5:20-21; Matt. 28:19; 1 Tim. 3:15-16; Eph. 2:21-22
    I. Leviticus 26:1 and 2 speak of not making idols, keeping Jehovah's Sabbaths, and reverencing His sanctuary; we need to understand the intrinsic significance of these three points—the processed Triune God, His work, and the result of His work.
    夏季訓練 - 利未記結晶讀經 (二) | 220 觀看 | 07-28 | Kuann Hung 上傳
  • Scripture Reading: Lev. 25:8-17; Isa. 61:1-3; Luke 4:16-22; Acts 26:16-19; Rom. 7:24; 8:2
    I. Announcing the gospel to the poor, proclaiming release to the captives and recovery of sight to the blind, and sending away in release those who are oppressed are the freedoms and blessings of the jubilee—Luke 4:18-19:
    A. The word jubilee in Leviticus 25:10 means "a time of shouting," or "a time of the trumpeting of the ram's horn"; the trumpeting of the ram's horn signifies the preaching of the gospel as the proclaiming of liberty in the New Testament jubilee to all the sinners sold under sin that they may return to God and God's family, the household of God, and may rejoice with shouting in the New Testament enjoyment of God's salvation—Luke 4:16-22; Acts 26:16-19.
    B. Our preaching of the gospel is our blowing of the trumpet of redemption to proclaim to the world, "Behold, now is the well-acceptable time; behold, now is the day of salvation," the year of jubilee—2 Cor. 6:2; Isa. 61:1-3:
    1. When God created man, He intended to give Himself in Christ to man as man's possession, man's inheritance (Gen. 2:9; 13:12-15; Psa. 16:5; 90:1); however, man became fallen, and in the fall man lost God as his possession (Gen. 3:24; 4:16; Eph. 2:12) and sold himself into slavery under sin, Satan, and the world (John 8:34; Rom. 7:14b; Gal. 4:8; Titus 3:3; 1 John 5:19b).
    2. God's New Testament salvation, accomplished by God's grace based on His redemption in Christ (Rom. 3:24; 5:1-2; Eph. 2:8), brings fallen man back to God as his divine possession (Acts 26:18; Gal. 3:14; Eph. 1:14; Col. 1:12; Luke 15:12-24), releases man from slavery under sin, Satan, and the world (John 8:32; Rom. 6:6, 14; 8:2; Heb. 2:14-15; John 12:31), and restores man to his divine family, the household of God (Gal. 6:10; Eph. 2:19), that he may enjoy fellowship in God's grace (2 Cor. 13:14).
    夏季訓練 - 利未記結晶讀經 (二) | 226 觀看 | 07-28 | Kuann Hung 上傳
  • Scripture Reading: Lev. 25:8-17; Isa. 61:1-3; Luke 4:16-22; Acts 26:16-19
    I. The year of jubilee in Leviticus 25:8-17 is recorded as a prophecy in Isaiah 61:1-3 and is fulfilled in reality in Luke 4:16-22:
    A. In the year of jubilee there were two main blessings: the returning of every man to his lost possession and the liberation from slavery—Lev. 25:8-17:
    1. In the year of jubilee everyone who had sold his possession, his allotted portion of the good land, was returned to it without paying anything to redeem it (vv. 10, 13, 28), and everyone who had sold himself into slavery regained his freedom and returned to his family (vv. 39-41).
    2. Returning to one's possession and being freed and returning to one's family signify that in the New Testament jubilee the believers have returned to God as their lost divine possession, have been released from all bondage, and have returned to the church as their divine family—Eph. 1:13-14; John 8:32, 36; cf. Psa. 68:5-6.
    B. In the Old Testament type the jubilee lasted for one year, but in the fulfillment it refers to the entire New Testament age, the age of grace, as the time when God accepts the returned captives of sin (Isa. 49:8; Luke 15:17-24; 2 Cor. 6:2) and when those oppressed under the bondage of sin enjoy the release of God's salvation (Rom. 7:14—8:2).
    C. The believers'enjoyment of the jubilee in the age of grace (their enjoyment of Christ as God's grace to them) will issue in the full enjoyment of the jubilee in the millennium and in the fullest enjoyment in the New Jerusalem in the new heaven and new earth—John 1:16-17; Rom. 5:17; Phil. 3:14; Rev. 22:1-2a.
    夏季訓練 - 利未記結晶讀經 (二) | 196 觀看 | 07-28 | Kuann Hung 上傳