{"id":188,"date":"2004-05-29T21:13:17","date_gmt":"2004-05-29T13:13:17","guid":{"rendered":"http:\/\/foxpro.ntsl119.com\/scr\/?p=188"},"modified":"2007-11-20T03:35:17","modified_gmt":"2007-11-19T19:35:17","slug":"workblogs-api-shutdown-and-maps","status":"publish","type":"post","link":"https:\/\/foxpro.ntsl119.com\/scr\/archives\/188","title":{"rendered":"workBLOGS . oDAYDreams"},"content":{"rendered":"<p>A Saturday of a week of client visits&#8230; this day is.  For most of my life Saturdays were created to quench my laziness&#8230; dreaming about being a knight or a magician in the medieval era fighting fierce three headed toxic-breathing dragons using three inch USB switchblades, a laser light as my sword and\/or mind control-related powers.<\/p>\n<p>This or the other <font face=\"Tahoma, Verdana\">1001<\/font> dream variations where I came out an unscathed hero at the end of the day, was always the way lazy Saturdays were spent.<\/p>\n<p>Not today.<\/p>\n<p>There were no knights&#8230; no swords nor daydreams, just CDRs, keyboards and codes.<\/p>\n<p>Although I bring a backup of my Microsoft Visual Foxpro installer almost every client visit, I seldom end up using it on a client site.  This day was different.  I spent most of the time re-configuring things and coding at site which I haven&#8217;t done since I started &#8216;serious freelancing&#8217;.  I often test things and think of possible and weird scenarios a day or two before each visit.  Plan Bs and Plan Cs are formulated in advance.<\/p>\n<p>I guess I underestimated converting an existing project to a simpler one.  It was too late when I realized that it is easier to &#8216;complicate&#8217; simple programs than making a complicated program simple.  I&#8217;m talking about Project:Valhalla, a trimmed down version of Project:Sophieia, both Internet Usage Monitoring Systems targeted for Internet Cafes and Computer Laboratories.<\/p>\n<p>On site, the first challenge (or problem) was API related. The codes I made were targeted for Windows XP and Windows <font face=\"Tahoma, Verdana\">2000<\/font>.  Though I tested it with Windows ME before and was quite sure it was working fine then, it seems Windows <font face=\"Tahoma, Verdana\">98<\/font>SE merely logs out the user instead of shutting down the computer.  Good thing the first module I made which contains Windows <font face=\"Tahoma, Verdana\">98<\/font>SE\/ME-compatible codes was included in the CD I brought along.  The newer version of that shutdown I made was supposed to work with older versions of Windows but I guess there&#8217;s really a big difference in theory and once it&#8217;s working &#8216;out there&#8217; already.<\/p>\n<p>The next problem is server related.  Though a server in this case, is not present in the client&#8217;s place.  There is however a &#8216;pseudo-server&#8217; powered by Windows <font face=\"Tahoma, Verdana\">98<\/font>SE (again) but this makes things difficult for me.  I was left with no option but to share a folder and map things on the client computers.  Problem is&#8230; the settings inside the SETUP.dbf, my main configuration database, would be inconsistent already with VALHALLA&#8217;s client modules and its main server module (directory settings and others).  The pseudo-server was not partitioned too, so, I cannot merely place the program in Drive D: and map the shared folder as drive D.  Had this been Windows XP, drive letters could be changed, though I&#8217;m not sure if it can change the primary boot drive too.<\/p>\n<p>Running the program on a read-only CD-ROM is also out of the pool of possible solutions since it needs to write things.<\/p>\n<p>Good thing I brought along an old compiled Essentials CD I compiled a year ago which contains the PowerPack TweakNow <font face=\"Tahoma, Verdana\">2003<\/font> application which can create virtual drives.  TweakNow saved the day in terms of that problem.<\/p>\n<p>After a free lunch (which these days have been a sort of silent unspoken agreement between me and my clients), there were some minor-&#8216;out-of-nowhere&#8217; errors too&#8230; certain variables that won&#8217;t work on the mapped directory but works fine on the un-mapped one, a variable that refuses to update and sticks with its initial value unless you issue another select DBName . Go Top . cInt = DBName.Field_<font face=\"Tahoma, Verdana\">001<\/font> lines of code, a stubborn CD-ROM that &#8216;buffs-out&#8217; which I believe was the source of a heated argument between two IT-related technicians from different companies that visited that place yesterday (another story for now), power-supply related blues, a number of time-field related issues and countless accidental reboots.  I also made a couple of on-the-fly reports in that place.<\/p>\n<p>Around <font face=\"Tahoma, Verdana\">04:30<\/font>PM when every important issue was treated, test files purged, all other utilities installed, and another batch of snacks, we decided to call it a day.<\/p>\n<p>Walking out of the client&#8217;s premises, somehow I have this victorious feeling just like those medieval knights battling three-headed dragons on my past lazy Saturday daydreams.<\/p>\n<p>I guess I&#8217;m just living out some dreams after all. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>A Saturday of a week of client visits&#8230; this day is. For most of my life Saturdays were created to quench my laziness&#8230; dreaming about being a knight or a magician in the medieval era fighting fierce three headed toxic-breathing dragons using three inch USB switchblades, a laser light as my sword and\/or mind control-related [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-188","post","type-post","status-publish","format-standard","hentry","category-workblog"],"_links":{"self":[{"href":"https:\/\/foxpro.ntsl119.com\/scr\/wp-json\/wp\/v2\/posts\/188","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/foxpro.ntsl119.com\/scr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/foxpro.ntsl119.com\/scr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/foxpro.ntsl119.com\/scr\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/foxpro.ntsl119.com\/scr\/wp-json\/wp\/v2\/comments?post=188"}],"version-history":[{"count":0,"href":"https:\/\/foxpro.ntsl119.com\/scr\/wp-json\/wp\/v2\/posts\/188\/revisions"}],"wp:attachment":[{"href":"https:\/\/foxpro.ntsl119.com\/scr\/wp-json\/wp\/v2\/media?parent=188"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/foxpro.ntsl119.com\/scr\/wp-json\/wp\/v2\/categories?post=188"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/foxpro.ntsl119.com\/scr\/wp-json\/wp\/v2\/tags?post=188"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}