{"id":161,"date":"2008-05-07T07:32:31","date_gmt":"2008-05-07T12:32:31","guid":{"rendered":"http:\/\/www.wiredprairie.us\/blog\/index.php\/archives\/161"},"modified":"2008-05-07T07:32:31","modified_gmt":"2008-05-07T12:32:31","slug":"technical-interview-question-4","status":"publish","type":"post","link":"https:\/\/www.wiredprairie.us\/blog\/index.php\/archives\/161","title":{"rendered":"Technical Interview Question #4"},"content":{"rendered":"

Interview Series<\/a><\/p>\n

Write a function that determines if one file path is entirely contained within another file path. You can ignore escaping such as %20, but you cannot ignore directory change sequences such as “..” for “up one level.”<\/p>\n","protected":false},"excerpt":{"rendered":"

Interview Series Write a function that determines if one file path is entirely contained within another file path. You can ignore escaping such as %20, but you cannot ignore directory change sequences such as “..” for “up one level.”<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true},"categories":[4,10],"tags":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pd5QIe-2B","jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":370,"url":"https:\/\/www.wiredprairie.us\/blog\/index.php\/archives\/370","url_meta":{"origin":161,"position":0},"title":"Technical Interview Question\/Coding Challenge #10","date":"June 18, 2008","format":false,"excerpt":"I'm renaming the series of interview questions to be \"Coding Challenges.\" Rules are still the same: you have about 30 minutes from start to finish for each question. The amount of code necessary to solve a problem is one or two whiteboards of reasonable sized handwriting (20-100 lines of code).\u2026","rel":"","context":"In "Coding"","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":22,"url":"https:\/\/www.wiredprairie.us\/blog\/index.php\/archives\/22","url_meta":{"origin":161,"position":1},"title":"Converting a mapped drive letter to a network path using C#","date":"March 2, 2008","format":false,"excerpt":"Occasionally you might have the need to convert a mapped drive letter to a UNC or network path. For example, a drive letter such as\u00a0 \"Z\" might be mapped to a network share: In this example, the \"Z\" drive is mapped to a \"Personal\" folder on a server named \"Home\".\u2026","rel":"","context":"In "Coding"","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":128,"url":"https:\/\/www.wiredprairie.us\/blog\/index.php\/archives\/128","url_meta":{"origin":161,"position":2},"title":"Technical Interview Question Series Starting","date":"April 16, 2008","format":false,"excerpt":"I'm going to begin posting weekly a technical interview question. Generally, each question should be solvable in less than 30 minutes time. Often, much less. Some amount of coding is typically necessary to solve the problem (either actual code or pseudo-code), but occasionally, just a plan or discussion-style response is\u2026","rel":"","context":"In "Coding"","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2165,"url":"https:\/\/www.wiredprairie.us\/blog\/index.php\/archives\/2165","url_meta":{"origin":161,"position":3},"title":"Automatic Reconnection of iSCSI Targets in Windows 10 using PowerShell","date":"April 4, 2017","format":false,"excerpt":"When my highly recommended Synology Disk Station reboots for a required update (I've got it set to automatically reboot), a shared Windows 10 PC in our house cannot always successfully reconnect to the iSCSI targets without manual intervention. Unfortunately, I haven't always noticed which has led to several features of\u2026","rel":"","context":"In "Coding"","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.wiredprairie.us\/blog\/wp-content\/uploads\/2017\/04\/2017-04-04_19-07-23.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":1820,"url":"https:\/\/www.wiredprairie.us\/blog\/index.php\/archives\/1820","url_meta":{"origin":161,"position":4},"title":"Knockout binding for JavaScript route fixup","date":"January 25, 2013","format":false,"excerpt":"Part one. After the first round, I felt compelled to KnockOut the code a bit more. I\u2019d mentioned I wasn\u2019t pleased with the code exactly. It needed some refactoring. So, I\u2019ve created a new Knockout binding handler. This binding handler replaces\u00a0 named parameters with a model\u2019s properties in a path.\u2026","rel":"","context":"In "Coding"","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1592,"url":"https:\/\/www.wiredprairie.us\/blog\/index.php\/archives\/1592","url_meta":{"origin":161,"position":5},"title":"Get path or location of currently executing batch\/command file in Windows","date":"April 1, 2012","format":false,"excerpt":"I didn\u2019t know it was this simple, and am posting this information on my blog so I find it in the future, but hopefully this will help someone else! I\u2019ve created a number of batch files over the years which routinely copy files from one location to another, usually as\u2026","rel":"","context":"In "Coding"","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.wiredprairie.us\/blog\/index.php\/wpjson\/wp\/v2\/posts\/161"}],"collection":[{"href":"https:\/\/www.wiredprairie.us\/blog\/index.php\/wpjson\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wiredprairie.us\/blog\/index.php\/wpjson\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wiredprairie.us\/blog\/index.php\/wpjson\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wiredprairie.us\/blog\/index.php\/wpjson\/wp\/v2\/comments?post=161"}],"version-history":[{"count":0,"href":"https:\/\/www.wiredprairie.us\/blog\/index.php\/wpjson\/wp\/v2\/posts\/161\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wiredprairie.us\/blog\/index.php\/wpjson\/wp\/v2\/media?parent=161"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wiredprairie.us\/blog\/index.php\/wpjson\/wp\/v2\/categories?post=161"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wiredprairie.us\/blog\/index.php\/wpjson\/wp\/v2\/tags?post=161"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}