Wednesday, August 7, 2024

The Key to Understanding Moses

 

The Key to Understanding Moses

You already know that the story of Moses receiving the Ten Commandments on Mount Sinai is among the most famous in the Bible. But we don’t know much else about this mysterious time other than Moses neither eating bread nor drinking water (Ex. 34:28). 

When we turn to the Book of Deuteronomy, though, we learn an additional detail: “I lay prostrate before the Lord those forty days and forty nights” (Deut. 9:25). The original Hebrew word for “lay prostrate” is etnapal אֶתְנַפַּל from the root N-P-L (“to fall”). This is an extremely rare word in the Bible, literally meaning, “I threw myself down”.

We learn that Moses did not merely lie down on the ground waiting for the forty days to end. It was quite the contrary... He actively devoted himself to prayer and fasting, to atone for the sins of the people. See how this single Hebrew word contains a much deeper meaning? It not only tells the story of what was happening at that time, but it's also the key to understanding the spiritual character of Moses! 

Tuesday, May 21, 2024

Dataset to Json

 


        public static async Task<string[]> ExecuteReaderArrayAsync(string connectionString, string spName, List<SqlParameter> sqlParameters)

        {

            string[] strArray = new string[2];

            await Task.Run(() => {

                using (var connection = new SqlConnection(connectionString))

                {

                    using (var command = new SqlCommand(spName, connection))

                    {

                        var dataset = new DataSet();

                        var adapter = new SqlDataAdapter();


                        command.CommandType = CommandType.StoredProcedure;

                        command.Parameters.AddRange(sqlParameters.ToArray());

                        adapter.SelectCommand = command;

                        adapter.Fill(dataset);

                        strArray[0] = JsonDataHelper.DataSetToJson(dataset.Tables[0]);

                        strArray[1] = JsonDataHelper.DataSetToJson(dataset.Tables[1]);

                    }

                }

            });


            return strArray;

        }



        public static String DataSetToJson(DataTable dataTable)

        {

            var JSONString = string.Empty;

            JSONString = JsonConvert.SerializeObject(dataTable);

            return JSONString;

        }


Friday, May 17, 2024

JValue and JArray

    IEnumerable<dynamic> testObject = JValue.Parse(jsonString);

    var testLists = testObject .Select(obj => new { 

       FirstName = obj.first_name, 

       LastName = obj.last_name}).ToList();



Convert Newtonsoft.Json.Linq.JArray to a list of specific object type

List<SelectableEnumItem> items = ((JArray)array).Select(x => new SelectableEnumItem
{
    FirstName = (string)x["first_name"],
    Selected = (bool)x["selected"]
}).ToList();

Monday, June 22, 2020

The Law of Resistance

Series: The Law of Resistance from Discovering the Jewish Jesus with Rabbi Schneider Episode 1 of 2: Practicing Resistance
https://www.youtube.com/watch?v=nHv4R2xIFok

Episode 2 of 2: Darkness in Disguise
https://www.youtube.com/watch?v=_n7TJo11nRs

Friday, June 19, 2020

信耶稣见证


信耶稣见证

June 3 2020

信耶稣前的生命状态

2006315日,我们全家从广州移民到了温哥华。短暂的兴奋很快结束,移民生活开始的阶段不容易,苦闷和烦躁,一种说不清的不确定性带给我极大的不安。生活的反差使我进入一种紧张压力状态中, 虽然很快就找到一份工作,但不到三个月就结束了。在陌生的国度里,经历了和中国完全不同的找工作方式,偶然有面试机会,但是由于语言的障碍,结果都不尽人意,由于找工作压力很大,有时候觉得度日如年。在朋友的介绍下,终于找到一份工作,公司有个同事是佳恩教会的姐妹,她经常给我传福音。


信耶稣的关键事件

20087月份,我辞去工作,决定重新找工作,开始还有些面试机会。接下来碰到2008年环球金融危机,网络经济泡沫破裂,许多电脑公司倒闭,很多大的电脑软件公司裁员达到30%,发简历如石沉大海。在妻子和女儿的推动下,无耐之中参加了佳恩教会的小组聚会。感觉聚会非常无聊,所以说话极其负面,有一次,有人请我分享聚会感受,我回答:人死是要下地狱的(信耶稣的基督徒相信死后上天堂),大家都无语。在小组里,有个和女儿同年的小女孩,她们每次在一起都玩得很开心,就为了给女儿找个伴玩,勉强参加小组聚会。有一天,牧师劝参加过几次小组聚会的一对夫妇接受耶稣,他们非要拉着我们一起相信耶稣,聚会时间过了晚上11点半,大家似乎都不想结束,想想这几个人待我们家还不错,算是给他们一个面子,做个相信耶稣的祷告,能把我怎么样呢?就希望赶紧结束聚会回家。那天,有三家人一起做了接受耶稣的祷告,他们尽管疲惫,却像捡了金子一般高兴,实在迷惑不解。

因为金融风暴的影响,打算暂时放弃找工作,准备申请学校读书,拿个本地认可的文凭。申请学校要等待很久,一天偶然翻开圣经,看到一节经文,耶稣用52鱼喂饱5000人,违反我的常理,我竟然开始思想这奇怪的事,并且稀里糊涂寄盼望于圣经里的耶稣,希望耶稣能喂饱我在温哥华的一家人。有一次,教会邀请我去兰里(LANGLEY)参加一个教会的认识神特会,我的反应是不再上当了,拒绝参加。奇怪的事发生,一天晚上做一个梦,我顺着一个山间的小溪往上游走,那地方出奇的平安和宁静,从未经历过,当我费力攀登到山顶时,发现妻子和女儿在那里等我,平静安稳充满了我的心。这个梦使我百思不得其解,梦境就像挂在脑门子上一样,忘不掉,并且不断冲击我。后来,我主动给教会打电话,决定参加认识神特会。特会中的经历,不是我所能理解和明白的。特会回来后,我勇敢地分享了特会的感受,也相信神会看顾我们一家在温哥华的生活。牧师立即给我祝福祷告:求神按照我的信心成就我的工作。牧师周日祷告,接下来的周二就有一个电脑软件公司面试,周四公司主管电话面试,时间竟然是在晚饭时间,问候几句就结束,因为英文口语不行,电话面试对我是最困难的,周五公司通知我被录用了。因为这件事实在无法理解,全家人一起说:这真是神迹奇事。不得不相信有位大能的神在看顾我,帮助我在信心上跨出了重要的一步。

信耶稣后的生命改变

我喜欢在网上看八卦新闻和各种军事新闻评论,经常熬夜到半夜12点。2009年参加教会主办的一次特会,牧师讲:2009年有非常特别的一点是,2009年比其他年份要多一秒,所以要用这一秒思想,你正想做的事值得吗?一天晚上,边浏览网页上的八卦新闻,边思想这事,电脑突然异常死机,自认为精通电脑的我,破天荒第一次,没有去解决死机问题,安静地去睡觉了。紧接着的一天,晚上12点左右,吸引我的网页突然不动了,其他一切运行正常,思想一番,关电脑去睡觉了。接着第三天,晚上11点左右,正在编辑程序的编辑器突然冻结不工作了,其他却正常,在电脑前,纳闷了一会儿,关电脑睡觉了。妻子奇怪地问我,怎么啦?我好像没有回答妻子的问题,但从此以后,就没有熬夜看各种八卦新闻了。其实在日常工作中,电脑程序异常或死机,每天都会经历很多次,不同的是,我开始思想自己的行为,不再一意孤行了。


太奇妙了,我有了能听的耳和受教的心!感谢赞美主!

Wednesday, June 17, 2020

【展開清晨的翅膀 Wings of the Dawn】官方歌詞版MV (Official Lyrics MV) - 讚美之泉敬拜讚美 (7)

诗篇 139
大卫的诗,交于伶长。
1 耶和华啊,你已经鉴察我,认识我。
2 我坐下,我起来,你都晓得,你从远处知道我的意念。
3 我行路,我躺卧,你都细察,你也深知我一切所行的。
4 耶和华啊,我舌头上的话,你没有一句不知道的。
5 你在我前后环绕我,按手在我身上。
6 这样的知识奇妙,是我不能测的;至高,是我不能及的。
      7 我往哪里去躲避你的灵?我往哪里逃躲避你的面?
8 我若升到天上,你在那里;我若在阴间下榻,你也在那里。
9 我若展开清晨的翅膀,飞到海极居住,
10 就是在那里,你的手必引导我,你的右手也必扶持我。
11 我若说“黑暗必定遮蔽我,我周围的亮光必成为黑夜”,
12 黑暗也不能遮蔽我使你不见,黑夜却如白昼发亮,黑暗和光明在你看都是一样。
      13 我的肺腑是你所造的,我在母腹中,你已覆庇我。
14 我要称谢你,因我受造奇妙可畏;你的作为奇妙,这是我心深知道的。
15 我在暗中受造,在地的深处被联络,那时我的形体并不向你隐藏。
16 我未成形的体质,你的眼早已看见了;你所定的日子,我尚未度一日 a,你都写在你的册上了。
      17 神啊,你的意念向我何等宝贵!其数何等众多!
18 我若数点,比海沙更多。我睡醒的时候,仍和你同在。
19 神啊,你必要杀戮恶人。所以你们好流人血的,离开我去吧!
20 因为他们说恶言顶撞你,你的仇敌也妄称你的名。
21 耶和华啊,恨恶你的,我岂不恨恶他们吗?攻击你的,我岂不憎嫌他们吗?
22 我切切地恨恶他们,以他们为仇敌。
23 神啊,求你鉴察我,知道我的心思;试炼我,知道我的意念。
24 看在我里面有什么恶行没有,引导我走永生的道路。


Friday, May 20, 2016

Read xml file into list with C#


      1.Create an xml file in below format

  xml version="1.0" encoding="utf-8" ?>
   <ArrayOfProduct>
     <Product>
       <Id>1</Id>
       <Name>product 1</Name>
       <Price>20000</Price>
     </Product>
     <Product>
       <Id>2</Id>
       <Name>product 2</Name>
       <Price>15000</Price>
     </Product>
   </ArrayOfProduct>

      2.Create a property class for the xml file

public class Product
       {
              public int Id { getset; }
              public string Name { getset; }
              public float Price { getset; }
}



3. Include these namespaces

using System.Xml.Serialization;
using System.IO;     

4.       Read xml to list

List<Product> lstProduct;
//Datas/Product.xml is the relative path of xml file.
string folderPath = System.Web.HttpContext.Current.Server.MapPath("~/Datas/Product.xml"); 
       XmlSerializer serializer = new XmlSerializer(typeof(List<Product>));
       using (FileStream fs = new FileStream(folderPath, FileMode.Open,FileAccess.Read))
       {
     //Deserialize to Product list.
            lstProduct = (List<Product>)serializer.Deserialize(fs);
       }
//lstProduct contains the result.

5.   Read Xml as a generic method
 /// 
        /// Read the xml to list.
        /// 

        /// Class Name.

        /// Relative path of xml file."
        /// List of objects of specific type.

        public List ReadXml(string relativePath)
        {
            List lstResult = null;
            try
            {
                string folderPath = System.Web.HttpContext.Current.Server.MapPath(relativePath);
                XmlSerializer serializer = new XmlSerializer(typeof(List));
                using (FileStream fs = new FileStream(folderPath,FileMode.Open, FileAccess.Read))
                {
                    lstResult = (List)serializer.Deserialize(fs);
                }
            }
            catch (Exception ex)
            {

            }
            return lstResult;
}


           6.     Call the generic method

       //Read Product.xml to list of products.
List<Product> lstProduct = ReadXml<Product>("~/Datas/Product.xml");