{"id":2022,"date":"2011-05-13T09:36:33","date_gmt":"2011-05-13T09:36:33","guid":{"rendered":"http:\/\/nycphantom.com\/journal\/?p=2022"},"modified":"2011-05-13T09:36:33","modified_gmt":"2011-05-13T09:36:33","slug":"my-first-c-sharp-programming","status":"publish","type":"post","link":"http:\/\/nycphantom.com\/journal\/?p=2022","title":{"rendered":"My first C Sharp Programming"},"content":{"rendered":"<p>\nTwo 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.\n<\/p>\n<p>\nI 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.\n<\/p>\n<p>\nBut 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.\n<\/p>\n<p>\nSo, 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.\n<\/p>\n<p>\nSo 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.\n<\/p>\n<p>\nOf all the programming I did, this is one windows based I find most useful thus far.\n<\/p>\n<p>\nNow, 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.\n<\/p>\n<p>\nAt least I won't be getting text messages almost every day about the router crashing complaints.\n<\/p>\n<p>\nNote to self: The cause and a more efficient remedy of the router problem is a mystery that needs to be solved as well.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 &hellip; <a href=\"http:\/\/nycphantom.com\/journal\/?p=2022\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-2022","post","type-post","status-publish","format-standard","hentry","category-technical"],"_links":{"self":[{"href":"http:\/\/nycphantom.com\/journal\/index.php?rest_route=\/wp\/v2\/posts\/2022","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/nycphantom.com\/journal\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/nycphantom.com\/journal\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/nycphantom.com\/journal\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/nycphantom.com\/journal\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2022"}],"version-history":[{"count":0,"href":"http:\/\/nycphantom.com\/journal\/index.php?rest_route=\/wp\/v2\/posts\/2022\/revisions"}],"wp:attachment":[{"href":"http:\/\/nycphantom.com\/journal\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2022"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/nycphantom.com\/journal\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2022"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/nycphantom.com\/journal\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2022"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}