{"id":841,"date":"2006-09-02T00:00:00","date_gmt":"1970-01-01T00:00:00","guid":{"rendered":"http:\/\/johnjohnston.info\/blog\/?e=841"},"modified":"2006-09-02T00:00:00","modified_gmt":"1970-01-01T00:00:00","slug":"another-fine-mess","status":"publish","type":"post","link":"https:\/\/johnjohnston.info\/blog\/another-fine-mess\/","title":{"rendered":"Another fine mess"},"content":{"rendered":"<p> Over the last few week I&#8217;ve been blogging happily from <a href=\"http:\/\/macromates.com\/\">TextMate<\/a> and feeling quite pleased with myself. I even wrote a crude command from the blogging bundle to convert a set of selected words to <a href=\"http:\/\/www.technorati.com\/\">technorati<\/a> tags. Unfortunately I didn&#8217;t check it out properly and the links produced were broken. So this morning I fixed it and used textMate to retrive the posts fix the links and repost them, not noticing until I had finished that that set the date to todays. I&#8217;ve reordered them now, but it looks like I went mad blogging today.<br \/>This is my code, it is important to note I know nothing at all about shell scripting so just used <a href=\"http:\/\/www.google.com\/\">google<\/a> to figue out what to use:<\/p>\n<div style=\"width:440px;overflow:auto\"><code><\/p>\n<pre>echo  &quot;&lt;p class=&quot;ttags&quot;&gt;&quot;<br \/><br \/>tt=&quot;&lt;a href=&quot;http:\/\/www.technorati.com\/tag\/thetag\/&quot; rel=&quot;tag&quot; target=&quot;_blank&quot;&gt;thetag&lt;\/a&gt;&quot;<br \/><br \/>str=$TM_SELECTED_TEXT<br \/><br \/>for word in $str; do echo ${tt\/\/thetag\/$word}; done<br \/><br \/>echo &quot;&lt;\/p&gt;&quot;<\/pre>\n<p><\/code><\/div>\n<p>Hopefully the next paragraph will show it works:<\/p>\n<p class=\"ttags\">\n<p><a href=\"http:\/\/www.technorati.com\/tag\/TextMate\/\" rel=\"tag\" target=\"_blank\">TextMate<\/a> <a href=\"http:\/\/www.technorati.com\/tag\/Blogging\/\" rel=\"tag\" target=\"_blank\">Blogging<\/a> <a href=\"http:\/\/www.technorati.com\/tag\/Mistakes\/\" rel=\"tag\" target=\"_blank\">Mistakes<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Over the last few week I&#8217;ve been blogging happily from TextMate and feeling quite pleased with myself. I even wrote a crude command from the blogging bundle to convert a set of selected words to technorati tags. Unfortunately I didn&#8217;t check it out properly and the links produced were broken. So this morning I fixed [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"mf2_syndication":[],"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"webmentions_disabled_pings":false,"webmentions_disabled":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[6],"tags":[],"post_format":[],"class_list":{"0":"post-841","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-wwwd","7":"kind-","8":"h-entry","9":"hentry"},"better_featured_image":null,"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p57zFQ-dz","jetpack_likes_enabled":false,"jetpack_sharing_enabled":true,"kind":false,"_links":{"self":[{"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/posts\/841","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/comments?post=841"}],"version-history":[{"count":0,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/posts\/841\/revisions"}],"wp:attachment":[{"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/media?parent=841"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/categories?post=841"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/tags?post=841"},{"taxonomy":"post_format","embeddable":true,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/post_format?post=841"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}