{"id":6697,"date":"2014-05-31T10:08:29","date_gmt":"2014-05-31T16:08:29","guid":{"rendered":"http:\/\/www.fathead-movie.com\/?p=6697"},"modified":"2014-05-31T10:08:29","modified_gmt":"2014-05-31T16:08:29","slug":"pix-fix","status":"publish","type":"post","link":"https:\/\/www.fathead-movie.com\/index.php\/2014\/05\/31\/pix-fix\/","title":{"rendered":"Pix Fix"},"content":{"rendered":"<p>A couple of readers let me know lots and lots of links to pictures in my old posts are broken. I checked with my IP provider, and it turns out the links went bad when they moved the site from a Windows server to a Linux server last month.<\/p>\n<p>Windows isn&#8217;t case-sensitive when it comes to file names and links. Linux is. A whole bunch of pictures in the images folder have an extension of .JPG but are linked as .jpg in my posts. Windows interpreted, Linux doesn&#8217;t. The only way to track down and fix the links is to go through every post from the last five years, look for broken links, and update the file name. So that&#8217;s what I&#8217;ve started doing, occasionally mumbling &#8220;Why the @#$% did I write so many posts?!&#8221;<\/p>\n<p>2009 is done. Moving on.<\/p>\n<p><strong>Geek Rant &#8212; you may want to skip this<\/strong><\/p>\n<p>As a programmer, I don&#8217;t like the case-sensitive feature one bit. For software I develop on my own to sell to customers, I prefer VB.NET for lots of reasons, one of which is that it&#8217;s NOT case-sensitive.\u00a0 When naming my variables and classes, I use what&#8217;s called CamelCase, capitalizing what would be the first letter of each word if they were separated &#8230;. e.g., <strong>TotalTrademarks<\/strong>, <strong>DateOfRenewal<\/strong>, <strong>BoundRecordset<\/strong>, etc.\u00a0 When I use those variables later, I can type in lower case and VB will auto-correct.\u00a0 So if I type <strong>dateofrenewal<\/strong>, it&#8217;s immediately converted to <strong>DateOfRenewal<\/strong>, which I use as sort of a spell-check.\u00a0 If my lowercase is auto-corrected to CamelCase, I know I typed the variable correctly.<\/p>\n<p>In most of my contractor gigs, the companies have used C# for development &#8212; largely because old-time programmers who are now in management believe VB is a toy while C# is for serious programming.\u00a0 And that was true maybe 15 years ago.\u00a0 Now both languages are built on the same platform, call the same code libraries and compile into exactly the same machine code, so pretty much anything you can do with one, you can do with the other.\u00a0 You could even code part of your software in VB and another part in C#, and the compiler wouldn&#8217;t care.\u00a0 The difference is in the coding language itself, not the result.<\/p>\n<p>Like Linux, C# is case-sensitive.\u00a0 So if I have a variable named <strong>DateOfRenewal<\/strong> and type <strong>dateofrenewal<\/strong> in my code, C# doesn&#8217;t auto-correct; it flags my variable as undeclared and then I have to go back and type it slowly, using the SHIFT key.\u00a0 And yes, I&#8217;ve seen code where a programmer intentionally created one variable with a name like <strong>TrademarkDate<\/strong> and another with a name like <strong>trademarkDate<\/strong>, which I think is both stupid and confusing.<\/p>\n<p>Anyway, that&#8217;s my rant on the subject.\u00a0 I don&#8217;t like case-sensitive languages, and I don&#8217;t think sane people would want to have file names that are identical other than the capitalization.<\/p>\n<p>Back to fixing all those @#$%ing links now &#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A couple of readers let me know lots and lots of links to pictures in my old posts are broken. I checked with my IP provider, and it turns out&#8230; <a href=\"https:\/\/www.fathead-movie.com\/index.php\/2014\/05\/31\/pix-fix\/\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[45],"tags":[],"class_list":["post-6697","post","type-post","status-publish","format-standard","hentry","category-random-musings"],"_links":{"self":[{"href":"https:\/\/www.fathead-movie.com\/index.php\/wp-json\/wp\/v2\/posts\/6697","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fathead-movie.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fathead-movie.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fathead-movie.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fathead-movie.com\/index.php\/wp-json\/wp\/v2\/comments?post=6697"}],"version-history":[{"count":5,"href":"https:\/\/www.fathead-movie.com\/index.php\/wp-json\/wp\/v2\/posts\/6697\/revisions"}],"predecessor-version":[{"id":6702,"href":"https:\/\/www.fathead-movie.com\/index.php\/wp-json\/wp\/v2\/posts\/6697\/revisions\/6702"}],"wp:attachment":[{"href":"https:\/\/www.fathead-movie.com\/index.php\/wp-json\/wp\/v2\/media?parent=6697"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fathead-movie.com\/index.php\/wp-json\/wp\/v2\/categories?post=6697"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fathead-movie.com\/index.php\/wp-json\/wp\/v2\/tags?post=6697"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}