{"id":22,"date":"2005-12-31T04:25:00","date_gmt":"2005-12-31T04:25:00","guid":{"rendered":"http:\/\/10.168.29.5\/blog\/?p=22"},"modified":"2010-02-15T08:35:49","modified_gmt":"2010-02-15T08:35:49","slug":"tst-down","status":"publish","type":"post","link":"https:\/\/davidsterry.com\/blog\/2005\/12\/tst-down\/","title":{"rendered":"TST down"},"content":{"rendered":"<p>Trend Sweet Trend suffered a glitch over the past several days. To begin with my power went out over xmas so updates stopped occurring until I could get back and turn on my Fedora server.<\/p>\n<p>Then TST began to show only one link rather than the 25 or 35 it usually does. This was caused by a deficiency in my livemarks curl script that couldn&#8217;t handle multiple matches per line. It&#8217;s all fixed now but it gave me pause.<\/p>\n<p>If you&#8217;re thinking of using &#8220;if(\/pattern\/) &#8221; to match something in a feed and do something with it, you might as well replace that bit with &#8220;while(\/pattern\/g) &#8221; so you&#8217;ll match pattern as many times as it might occur in a line.<\/p>\n<p>With web services, you&#8217;ve got to think ahead and program for the odd change that might happen upstream. You&#8217;ve got to think what if there&#8217;s more than one match per line in this regex script or if the odd formatting change should occur.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Trend Sweet Trend suffered a glitch over the past several days. To begin with my power went out over xmas so updates stopped occurring until I could get back and turn on my Fedora server. Then TST began to show only one link rather than the 25 or 35 it usually does. This was caused [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[31],"tags":[],"class_list":["post-22","post","type-post","status-publish","format-standard","hentry","category-trend-sweet-trend"],"_links":{"self":[{"href":"https:\/\/davidsterry.com\/blog\/wp-json\/wp\/v2\/posts\/22","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/davidsterry.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/davidsterry.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/davidsterry.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/davidsterry.com\/blog\/wp-json\/wp\/v2\/comments?post=22"}],"version-history":[{"count":1,"href":"https:\/\/davidsterry.com\/blog\/wp-json\/wp\/v2\/posts\/22\/revisions"}],"predecessor-version":[{"id":207,"href":"https:\/\/davidsterry.com\/blog\/wp-json\/wp\/v2\/posts\/22\/revisions\/207"}],"wp:attachment":[{"href":"https:\/\/davidsterry.com\/blog\/wp-json\/wp\/v2\/media?parent=22"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/davidsterry.com\/blog\/wp-json\/wp\/v2\/categories?post=22"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/davidsterry.com\/blog\/wp-json\/wp\/v2\/tags?post=22"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}