My first C Sharp Programming

Two days ago, I finally got to a point where I made myself designed a more automated system for resetting the troublesome router craches at NYGC. The cause is yet unknown to be, but I would imagine it has something to do with heavy piracy downloads upon heavy connections of at least 30 stations.

I already used a remote appliance switch, which works quite well when attached to the CD-ROM Driver tray of a computer in a way I could use the computer (even remotely) to switch off and on the router by opening and closing the CD tray, thereby resetting the router.

But this took time. And to use the iphone to control this mechanism, it takes even longer to achieve. Not to mention the time it takes to detect a crash by a special detection host (30 minutes for free version) or when someone started complaining about the crash.

So, on Wednesday, during my usual check in, I looked up a few references to C# programming, which is supposed to be the latest most efficient windows programming tool, downloaded the free compiler from Microsoft, and did a skeleton coding. So it will not be relying on any other detection service except for its own. I set the loop to 3 minutes and not less so I don't put too much data on the network, not that it actually matters, I just don't like the idea of spamming servers every minute.

So now, it will do a detection every 3 minutes or so and reset the router if it has crashed. It is programmed to open the CD tray thereby turning the switch off and on. All I need to do is just sit back and receive notification emails which the program is also programmed to do.

Of all the programming I did, this is one windows based I find most useful thus far.

Now, I just need to put some covering on this skeleton program. It is still running from the compiler itself without any user friendly features nor is it compiled to run standalone.

At least I won't be getting text messages almost every day about the router crashing complaints.

Note to self: The cause and a more efficient remedy of the router problem is a mystery that needs to be solved as well.

Posted in Technical | Leave a comment

Gays in NYC

Now they are trying to legalize homosexual marriage in New York City. It is a surprise to see people surprise at the 50/50 for and against the legislation.

It is a great burden upon the delicate framework of God's institute. Nevertheless, such is merely a chip from the block. The more we see our sins, the heavier we find the darkness around us; The holier we live in Christ in our new lives, the more we recognize God's inculpable power.

I recalled when someone once optimistically exclaimed how New Yorkers are far from the enigma of California with its proposition 8.

55% women vs 44% men supporting gay marriage. This reminded me of a few incidents at church whenever such issue came up, when there's talk of homosexuality is sin, the offended party just seems to be women. Since I'm not a sexist, I would look for other causes to blame: city luxury while also causes great many problems for men (ie. greed, laziness, lust, etc.), usually deprives women of family value. So in a twisted sense, while men justify their sense of the opposite sex with lust, the women justify it with "as long as it's peaceful, satisfactory, everyone minding their own business and they are happy, why not the homosexuals have their own family value".

All this does make me ponder upon the ministry of using the PCUSA church which seems to have a good shelter program. I believe it is a good tool to begin evangelical ministry in the city to some extend. The only problem is, PCUSA (Presbyterian Church of USA) has issues on this subject. Perhaps it is a challenge for me.

You either tolerate this and deal with another or tolerate another and deal with this. And these are merely tools. Such is the presupposition.

Posted in News, Questions, Reflection | 1 Comment

Outlook Missing Warning on Empty Subject

A couple of times I've sent emails with blank subject line unknowningly.

Blank subject emails are often blocked or filtered.

For Outlook 2007, and perhaps 2003, there doesn't seem to be a warning pop-up upon sending an email with an empty subject line.

Solution: (Thanks to Ankit Jain)

Need to write macro in Visual Basic editor (Alt-F11) -> Microsoft Office Outlook->ThisOutlookSession (double click) and paste code below to right panel.

For MS Outlook 2007 (Works)

Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
Dim Answer As String


If IsNull(Item.Subject) Or Len(Item.Subject) = 0 Then


Answer = MsgBox("Subject field is empty. Do you still want to
send the e-mail? ", vbYesNo + vbQuestion, "Missing subject")


If Answer = vbYes Then
Cancel = False


ElseIf Answer = vbNo Then
Cancel = True


End If


End If
End Sub

 

 

For MS Outlook 2003 (I have not tested)

Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
Dim strSubject As String
strSubject = Item.Subject
If Len(strSubject) = 0 Then
Prompt$ = "Subject is Empty. Are you sure you want to send the Mail?"
If MsgBox(Prompt$, vbYesNo + vbQuestion + vbMsgBoxSetForeground, "Check for Subject") = vbNo Then
Cancel = True
End If
End If
End Sub

Posted in Technical | Leave a comment

Sunday School using Rev. Stephen Tong's Lecture Series

In a small meeting of 3, Michael Liu brought up a question for pastor on why do we just use the videos and no "live" teaching.

So much thoughts bombarded my mind I didn't focus on giving an answer. That, is a fault. May God has mercy on me.

In judging a Sunday School or Bible study, even sermon but let's just stay on the topic, I always determine the quality based on "How qualified is this speaker/leader" to teach the Sunday School. Ultimately it doesn't depend on the degree one holds for there are those without it. This will decide if I should stay in that fellowship.

When I go to a fellowship and they rotate speakers from the members, calling it a "discussion" while the leader is not even qualified and the best candidate, usually the pastors or theology students are observing instead, I would say to myself - "oh, brother, get me out of here", despite how "warm" and "friendly" the people in the fellowship are. If I just want some kind of social thing, I would find that in a bar.

Of course, Michael was asking out of sincerity. I should have done better than quiet.

Posted in Faults | Leave a comment

Mark Driscoll vs. Paul Washer on Dealing with Jehovah's Witnesses

A Jehovah's Witness knocking on the door,

Mark Driscoll: No trespassing...can't you read the sign?

Paul Washer: You're Jehovah's witness? So am I! Well, come on in!!! (After 5 minutes listening, Paul said...You're not Jehovah's witness...sit down...let me tell you what Jehovah's witness is)

I do this contrast because I failed to accurately pin point Mark's fault before.

Not only should we have a Gospel mandate in our hearts at all times, in and out of seasons, but wisdom, love as well as last but not least - to protect our heritage as Christians.

My conclusion is that Driscoll's teenage like rebellious  characteristic is worsen when he tries to justify it upon the Word. It is a pity, despite all the great doctrines instilled in his heart.

Posted in Reflection | 3 Comments

My common response at work

From now on, I should remind myself whenever I get pujian after doing something really simple like following up with some paperworks and things like that: Wah, Tim you hebat!

My response: No, it's either you're lazy to do it or your English is too bad to accomplish it.

Of course, I cannot say this to the employers, they have every right.

Posted in General | Leave a comment

Preaching today

It is common for the Evangelicals to emphasize preaching to a point do is better than nothing. Not that I say they despise theological study, but when they uphold the act of preaching, quantity has replaced quality.

True theological study leads to preaching. Many failed to see that. Those who are knowledgeable do not preach,  because they are not really pursuing the core of theology. Those who are lazy, not able to discern true value of theology themselves instead of observing others' result, loving praises of men, preach but do not study.

Hence it is said, it is better for the preachers of today to NOT preach but study instead. There, this would shut up those who love to ask around for others to preach like them. For that is God's calling. Men's duty is to give no more instructions than that is in theology.

For those who preach without calling, are definitely damned.

For those who preach without studying, there is no urgency in making Jesus known, for there are others, the Mormons, the Jehovah's witnesses, etc. They are preaching Jesus, albeit the wrong one but it is His name nonetheless. This, I do not say that I'm identifying the Christian Cults with us, but merely point out that if one thinks he's preaching because the world is so in need of people like that and saying that it's what Jesus commanded which is contrary to Scripture's core, he is no better than the most enthusiastic cult. Christ's name is known through them, but not in them, as God's grace allows.

So, as I once put it, it is better to be used by God WITHIN His grace, I will say here:

It is better to have our Lord's name known in us, than merely through us. This is what every preacher must pray for before they preach. And in such way, I pray for all preachers of the world.

Posted in General | Leave a comment

The Apostles' Creed - CCCNY's Monthly

I will just note down the version my church, CCCNY, uses:

中国基督教协会

1. 我信上帝,全能的父,创造天地的主;

2. 我信我主耶稣基督,上帝独生的子;

3. 因圣灵感孕,由童贞女马利亚所生;

4. 在本丢彼拉多手下受难,被钉于十字架,受
死,埋葬;

5. 降在阴间,第三天从死人中复活;

6. 升天,坐在全能父上帝的右边;

7. 将来必从那里降临,审判活人死人。

8. 我信圣灵;

9. 我信圣而公之教会;我信圣徒相通;

10. 我信罪得赦免;

11. 我信身体复活;

12. 我信永生。

阿们。

(source: http://zh.wikipedia.org/wiki/%E4%BD%BF%E5%BE%92%E4%BF%A1%E7%B6%93)

 

English Version of CCCNY, using Church of England's Book of Common Prayer 1662:

I believe in God the Father Almighty,
Maker of heaven and earth:
And in Jesus Christ his only Son our Lord,
Who was conceived by the Holy Ghost,
Born of the Virgin Mary,
Suffered under Pontius Pilate,
Was crucified, dead, and buried:
He descended into hell;
The third day he rose again from the dead;
He ascended into heaven,
And sitteth on the right hand of God the Father Almighty;
From thence he shall come to judge the quick and the dead.
I believe in the Holy Ghost;
The holy Catholick Church;
The Communion of Saints;
The Forgiveness of sins;
The Resurrection of the body,
And the Life everlasting.
Amen.

(Source: http://en.wikipedia.org/wiki/Apostles%27_Creed)

 

 

As for the Thanksgiving After communion responses:

It is Psalms 103:1-5 & 8-13

Posted in Theologization | Leave a comment

Smallest Camera by Medigus

Finally, I know how small it is: roughly 1mm, with cable just like the mechanical pencil lead.

Now, I just wonder about the price and the light problem.

Posted in News, Questions | Leave a comment

Dialogue on Volunteers for donations - An Experimental Dialogue

T: Every time I passed the 42nd Research Library, aggressive modern hippies carrying a writing board, wearing a t-shirt or badge, stopping people on the streets to ask for donation for the children of poverty. I had initially stressed to one of them the importance of spiritual, instead of merely physical need. It is obvious, many of these organizations of the West(if they really exist legitimately) is not Christian centric or theocentric, but anthropocentric, whether they were formerly of Christian organizations or not.

V: Have a heart...it's too bad, people on the street, walking by busy with their lives, as if they were really that busy. No time? Not even for saving the children?

S: Saving what children?

V: So many in poor countries...no food, no medicine and so on!

T: It is quite a judgmental attitude you guys are putting out on the street...firstly, that you assume no one cares or donates through other means, secondly, you justify yourselves of your own responsibility by spending time soliciting from others. Take my advice, be an example yourself before you expect people to listen to you.

S: But surely their presence must count...otherwise who do we donate to?

T: Well, churches who do these kind of services for one. Surely these people must see their organizations are more strangers to the streets than churches, and they still want to push their self-righteous judgment on others.

 

<To be adjourned>

Posted in Reflection | Leave a comment