{"id":1479,"date":"2020-09-26T17:12:33","date_gmt":"2020-09-26T17:12:33","guid":{"rendered":"http:\/\/sdi.thoughtstorms.info\/?p=1479"},"modified":"2020-09-26T17:12:33","modified_gmt":"2020-09-26T17:12:33","slug":"a-test-of-mind-traffic-control","status":"publish","type":"post","link":"https:\/\/sdi.thoughtstorms.info\/?p=1479","title":{"rendered":"A Test of Mind Traffic Control"},"content":{"rendered":"<p>Today I managed to screw up my todo.txt file that I use with Mind Traffic Control.<br \/>\nI had to recreate it from some backups that weren&#8217;t quite as up-to-date as I needed them to be.<br \/>\nAnd I got a lot of duplication in the file. And obviously items that had been done are now back in it. (Remember, I don&#8217;t keep &#8220;checked off&#8221; items)<br \/>\nSo how to fix?<br \/>\nDiffing MTC is complicated. Because you do a lot of re-ordering of the queue in MTC, two todo.txt files can be almost identical, but the diff of them is huge. And it&#8217;s hard to understand how similar they really are.<br \/>\nFixing that problem is kind of easy : you sort both copies of the file into alphabetical order, diff them again, and now it&#8217;s much easier to see and deal with how much difference there really is.<br \/>\nSo I did that. On Linux simply<br \/>\n[cce width=80]<br \/>\ncat todo.txt | sort\u00a0 &gt; sorted_todo.txt.<br \/>\n[\/cce]<br \/>\nAnd then<br \/>\n[cc width=80]<br \/>\nmeld sorted_todo.txt sorted_backup.txt<br \/>\n[\/cc]<br \/>\nAnd that was fine.<br \/>\nDeduping a sorted file is easy. I&#8217;m sure there&#8217;s a command line tool for it already but I wrote a 4 line Python script.<br \/>\nSo now I have as up-to-date a version of the todo.txt as it&#8217;s possible to have. And it&#8217;s deduped.<br \/>\nBUT &#8230;<br \/>\nit&#8217;s now sorted in alphabetical order. And has 1506 items in it.<br \/>\nThis is going to be interesting.<br \/>\nSo the philosophy of MTC is precisely that the order \/ structure of the overall queue isn&#8217;t really that important. It obviously IS important because your &#8220;Next Item&#8221; is what&#8217;s at the front of the queue.<br \/>\nBut most of the time you deal with a few items in the front. And then searching \/ pulling \/ pushing &#8220;tags&#8221; to estimated distances into the future.<br \/>\nThat&#8217;s worked fine. But I&#8217;ve never done a mass (and arbitrary) reordering of the queue before.<br \/>\nSo this is going to be a big test. Are the facilities of MTC, plus my own previous tagging discipline and ability to remember what to search for, sufficient to the job of managing a list of 1500 items now that they are out of order?<br \/>\nIn some ways, I&#8217;m happy to have to face this challenge. It&#8217;s going to be a very interesting test. I&#8217;m <em>optimistic<\/em> that MTC is up to it. But I&#8217;m keeping an open mind. I may find some issues. And have to write some extra functionality to resolve it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today I managed to screw up my todo.txt file that I use with Mind Traffic Control. I had to recreate it from some backups that weren&#8217;t quite as up-to-date as I needed them to be. And I got a lot of duplication in the file. And obviously items that had been done are now back [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,5],"tags":[175,282,283,460],"class_list":["post-1479","post","type-post","status-publish","format-standard","hentry","category-me","category-tools","tag-getting-things-done","tag-mind-traffic-control","tag-mind-traffic-geometry","tag-todo"],"_links":{"self":[{"href":"https:\/\/sdi.thoughtstorms.info\/index.php?rest_route=\/wp\/v2\/posts\/1479","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sdi.thoughtstorms.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sdi.thoughtstorms.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sdi.thoughtstorms.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sdi.thoughtstorms.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1479"}],"version-history":[{"count":0,"href":"https:\/\/sdi.thoughtstorms.info\/index.php?rest_route=\/wp\/v2\/posts\/1479\/revisions"}],"wp:attachment":[{"href":"https:\/\/sdi.thoughtstorms.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1479"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sdi.thoughtstorms.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1479"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sdi.thoughtstorms.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1479"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}