Posts

Image
伯利恒的以法他啊,你在犹大诸城中为小,将来必有一位从你那里出来,在以色列中为我作掌权的;他的根源从亘古,从太初就有。 (弥迦书 5:2 和合本) “But you, Bethlehem Ephrathah, though you are small among the clans of Judah, out of you will come for me one who will be ruler over Israel, whose origins are from of old, from ancient times.”  (Micah 5:2 NIV) 耶和华必将以色列人交付敌人,直等那生产的妇人生下子来。那时掌权者(原文是他) 其余的弟兄必归到以色列人那里。 (弥迦书 5:3 和合本) Therefore Israel will be abandoned until the time when she who is in labor bears a son, and the rest of his brothers return to join the Israelites.  (Micah 5:3 NIV) 他必起来,倚靠耶和华的大能,并耶和华—他 神之名的威严,牧养他的羊群。他们要安然居住;因为他必日见尊大,直到地极。 (弥迦书 5:4 和合本) He will stand and shepherd his flock in the strength of the Lord , in the majesty of the name of the Lord his God. And they will live securely, for then his greatness will reach to the ends of the earth.  (Micah 5:4 NIV)
Image
末后的日子,耶和华殿的山必坚立,超乎诸山,高举过于万岭;万民都要流归这山。 (弥迦书 4:1 和合本)  In the last days the mountain of the Lord ’s temple will be established as the highest of the mountains; it will be exalted above the hills, and peoples will stream to it.  (Micah 4:1 NIV) 必有许多国的民前往,说:来吧,我们登耶和华的山,奔雅各 神的殿。主必将他的道教训我们;我们也要行他的路。因为训诲必出于锡安;耶和华的言语必出于耶路撒冷。 (弥迦书 4:2 和合本) Many nations will come and say, “Come, let us go up to the mountain of the Lord , to the temple of the God of Jacob. He will teach us his ways, so that we may walk in his paths.” The law will go out from Zion, the word of the Lord from Jerusalem.  (Micah 4:2 NIV) 他必在多国的民中施行审判,为远方强盛的国断定是非。他们要将刀打成犁头,把枪打成镰刀。这国不举刀攻击那国;他们也不再学习战事。 (弥迦书 4:3 和合本) He will judge between many peoples and will settle disputes for strong nations far and wide. They will beat their swords into plowshares and their spears into pruning hooks. Nation will not take up sword against nation, nor will they train for war anymore.  (Micah 4:3 NIV) 人人都要坐在自己葡萄树下和无花果树下,无人惊吓。这是万军之耶和华亲口说的。 (弥迦书 4:4

How to fetch chromium codes on windows with proxy.

Image
If you can access googlesource without proxy, please refer to: https://chromium.googlesource.com/chromium/src/+/master/docs/windows_build_instructions.md#Install

约拿的悔改祷告

Image
说:我遭遇患难求告耶和华,你就应允我;从阴间的深处呼求,你就俯听我的声音。 (约拿书 2:2 和合本) He said: “In my distress I called to the Lord , and he answered me. From deep in the realm of the dead I called for help, and you listened to my cry.  (Jonah 2:2 NIV) 你将我投下深渊,就是海的深处;大水环绕我,你的波浪洪涛都漫过我身。 (约拿书 2:3 和合本) You hurled me into the depths, into the very heart of the seas, and the currents swirled about me; all your waves and breakers swept over me.  (Jonah 2:3 NIV) 我说:我从你眼前虽被驱逐,我仍要仰望你的圣殿。 (约拿书 2:4 和合本) I said, ‘I have been banished from your sight; yet I will look again toward your holy temple.’  (Jonah 2:4 NIV) 诸水环绕我,几乎淹没我;深渊围住我;海草缠绕我的头。 (约拿书 2:5 和合本) The engulfing waters threatened me, the deep surrounded me; seaweed was wrapped around my head.  (Jonah 2:5 NIV) 我下到山根,地的门将我永远关住。耶和华—我的 神啊,你却将我的性命从坑中救出来。 (约拿书 2:6 和合本) To the roots of the mountains I sank down; the earth beneath barred me in forever. But you, Lord my God, brought my life up from the pit.  (Jonah 2:6 NIV) 我心在我里面发昏的时候,我就想念耶和华。我的祷告进入你的圣殿,达到你的面前。 (约拿书 2:7

How to fix error : no module named sendgrid when try to use sendgrid python lib in PHP.

Image
"no module named sendgrid" error reported with below codes: <?php system("/usr/bin/python sendmail.py 2>&1"); system("/usr/bin/python --version 2>&1", $ret); ?> sendmail.py import sendgrid import os from sendgrid.helpers.mail import * sg = sendgrid.SendGridAPIClient( apikey = os.environ.get( ' SENDGRID_API_KEY ' )) from_email = Email( " test@example.com " ) to_email = Email( " test@example.com " ) subject = " Sending with SendGrid is Fun " content = Content( " text/plain " , " and easy to do anywhere, even with Python " ) mail = Mail(from_email, subject, to_email, content) response = sg.client.mail.send.post( request_body = mail.get()) print (response.status_code) print (response.body) print (response.headers) ....

nginx config your websites' favicon

Image
        1. vim nginx.conf         # set site favicon         location /favicon.ico {             root html;         }        2. place a favicon.ico file under html/        3. optional, add below codes to your index.html. <link rel="icon" href="/favicon.ico" mce_href="/favicon.ico" type="image/x-icon"> <link rel="shortcut icon" href="/favicon.ico" mce_href="/favicon.ico" type="image/x-icon">     # set site favicon location /favicon.ico { root html; }

How to extend file extensions to be parsed by PHP

Image
sudo vim /etc/php/7.0/fpm/pool.d/www.confsudo vim /etc/php/7.0/fpm/pool.d/www.conf By default, PHP only parse files with .php extension. We can extend extensions with security.limit_extensions directive. sudo vim /etc/php/7.0/fpm/pool.d/www.conf sudo vim /etc/php/7.0/fpm/pool.d/www.conf ; Limits the extensions of the main script FPM will allow to parse. This can ; prevent configuration mistakes on the web server side. You should only limit ; FPM to .php extensions to prevent malicious users to use other extensions to ; exectute php code. ; Note: set an empty value to allow all extensions. ; Default Value: .php ; You can add any extensions you want to be parsed as php security.limit_extensions = .php .php3 .php4 .php5 .php7 .ler sudo service php7.0-fpm restart Config nginx: /etc/nginx/nginx.conf         location ~ \.(php |ler )$ {             include fastcgi.conf;             fastcgi_pass   unix:/run/php/php7.0-fpm.sock;         } location ~ \.(php|ler)$ { r