Posts

A Sabbath-rest for the people of God

Image
我们既蒙留下,有进入他安息的应许,就当畏惧,免得我们(原文是你们) 中间或有人似乎是赶不上了。 (希伯来书 4:1 和合本) Therefore, since the promise of entering his rest still stands, let us be careful that none of you be found to have fallen short of it. (Hebrews 4:1 NIV) 因为有福音传给我们,像传给他们一样;只是所听见的道与他们无益,因为他们没有信心与所听见的道调和。 (希伯来书 4:2 和合本) For we also have had the good news proclaimed to us, just as they did; but the message they heard was of no value to them, because they did not share the faith of those who obeyed. (Hebrews 4:2 NIV) 但我们已经相信的人得以进入那安息,正如 神所说:"我在怒中起誓说:'他们断不可进入我的安息!'"其实造物之工,从创世以来已经成全了。 (希伯来书 4:3 和合本) Now we who have believed enter that rest, just as God has said, "So I declared on oath in my anger, 'They shall never enter my rest.' " And yet his works have been finished since the creation of the world. (Hebrews 4:3 NIV) 论到第七日,有一处说:"到第七日, 神就歇了他一切的工。" (希伯来书 4:4 和合本) For somewhere he has spoken about the seventh day in these words: "On the seventh day God rested from al

bring good news

Image
那报佳音,传平安,报好信,传救恩的,对锡安说:你的 神作王了!这人的脚登山何等佳美! (以赛亚书 52:7 和合本) How beautiful on the mountains are the feet of those who bring good news, who proclaim peace, who bring good tidings, who proclaim salvation, who say to Zion, "Your God reigns!" (Isaiah 52:7 NIV) Photo by Flo Dahm / Unsplash

Correct usage of tzset(), TZ env

https://knowledgebase.progress.com/articles/Article/000044163 TZ variable can be set on on for a session, user profile or use it in the Database start-up script to start the database for the specific timezone or country or city. Following are some examples can be tested in a terminal session of UNIX. For China is UTC+8:00 or GMT+8:00 TZ needs to set it with opposite sign as follows: TZ=UTC-8:00; export TZ or, TZ=GMT-8:00; export TZ or, TZ=Asia/Shanghai;export TZ setenv("TZ", "GMT-8:00", 1) tzset(); For US EST (GMT-5:00, New York): TZ=UTC+5:00; export TZ Or, TZ=GMT+5:00; export TZ Or, TZ=America/New_York;export TZ setenv("TZ", "UTC+5:00", 1) tzset();

Trapping Rain Water

Image
Question: http://www.lintcode.com/en/problem/trapping-rain-water/ Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining. Example Given [0,1,0,2,1,0,1,3,2,1,2,1], return 6. Answer RunTime : 1272ms class Solution { public: /* * @param heights: a list of integers * @return: a integer */ int trapRainWater(vector<int> &heights) { // write your code here if (heights.size() < 3) return 0; int result = 0; size_t l, r; l = 0; r = heights.size() - 1; while (l < r) { while (l < r && heights[l] == 0) l++; while (l < r && heights[r] == 0) r--; int min = heights[l] < heights[r] ?  heights[l] : heights[r]; for (size_t i = l; i <= r; i++) { if (heights[i] >= min) heights[i] -= min; else { result += min - heights[i]; heights[i] = 0; } } } return res

Earn Money from YunFile

Image
Join Now

RIGHT ACTIONS FROM WRONG MOTIVES

Image
"你们祷告的时候,不可像那假冒为善的人,爱站在会堂里和十字路口上祷告,故意叫人看见。我实在告诉你们,他们已经得了他们的赏赐。 (马太福音 6:5 和合本) "And when you pray, do not be like the hypocrites, for they love to pray standing in the synagogues and on the street corners to be seen by others. Truly I tell you, they have received their reward in full. (Matthew 6:5 NIV) 你祷告的时候,要进你的内屋,关上门,祷告你在暗中的父;你父在暗中察看,必然报答你。 (马太福音 6:6 和合本) But when you pray, go into your room, close the door and pray to your Father, who is unseen. Then your Father, who sees what is done in secret, will reward you. (Matthew 6:6 NIV) 你们祷告,不可像外邦人,用许多重复话,他们以为话多了必蒙垂听。 (马太福音 6:7 和合本) And when you pray, do not keep on babbling like pagans, for they think they will be heard because of their many words. (Matthew 6:7 NIV) 你们不可效法他们;因为你们没有祈求以先,你们所需用的,你们的父早已知道了。 (马太福音 6:8 和合本) Do not be like them, for your Father knows what you need before you ask him. (Matthew 6:8 NIV) 所以,你们祷告要这样说:我们在天上的父:愿人都尊你的名为圣。 (马太福音 6:9 和合本) "This, then, is how you should pray: " 'Our Fa

Welcome to use Magoosh coupon code: CNAMBLER

Image
I am Ambassador of Magoosh . http://magoosh.com/ Welcome to use my Magoosh coupon code: CNAMBLER You can get more discount and save your money.