	
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=MIC-02-5+Small+progress+during+a+busy+end+of+week&amp;rft.aulast=Yee&amp;rft.aufirst=Raymond&amp;rft.subject=Uncategorized&amp;rft.source=Hypotyposis+on+a+Good+Day&amp;rft.date=2023-09-29&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=https://hypotyposis.net/blog/2023/09/29/mic-02-5-small-progress-during-a-busy-end-of-week/&amp;rft.language=English"></span>
	
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=MIC-02-5+Small+progress+during+a+busy+end+of+week&amp;rft.aulast=Yee&amp;rft.aufirst=Raymond&amp;rft.subject=Uncategorized&amp;rft.source=Hypotyposis+on+a+Good+Day&amp;rft.date=2023-09-29&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=https://hypotyposis.net/blog/2023/09/29/mic-02-5-small-progress-during-a-busy-end-of-week/&amp;rft.language=English"></span>
{"id":1554,"date":"2023-09-29T22:11:52","date_gmt":"2023-09-30T05:11:52","guid":{"rendered":"https:\/\/hypotyposis.net\/blog\/?p=1554"},"modified":"2023-10-03T22:02:06","modified_gmt":"2023-10-04T05:02:06","slug":"mic-02-5-small-progress-during-a-busy-end-of-week","status":"publish","type":"post","link":"https:\/\/hypotyposis.net\/blog\/2023\/09\/29\/mic-02-5-small-progress-during-a-busy-end-of-week\/","title":{"rendered":"MIC-02-5 Small progress during a busy end of week"},"content":{"rendered":"<p>I set the stage for command groups in bike.py with [my latest change to bike.py](<a href=\"https:\/\/github.com\/rdhyee\/python-learning\/commit\/a161fe9dafb244fece9988fe1bdbaf6ee511b9ea\">added sel2pb command to bike.py \u00b7 rdhyee\/python-learning@a161fe9<\/a>).<\/p>\n<p>It seems that Keyboard Maestro doesn't allow for watching for changes in files that already exist. Maybe, more likely, I've just not been able to figure out how. I have some progress using hammerspoon though. Here's a relevant part of my <code>init.lua<\/code>:<\/p>\n<pre><code class=\"language-lua\">\nfunction list_true_flags(flags)\n  local true_flags = &quot; &quot;\n  for key, value in pairs(flags) do\n    if value then\n      true_flags = true_flags .. key .. &quot; | &quot;\n    end\n  end\n  return true_flags\nend\n\nfunction fileModifiedCallback(paths, flagTables)\n  for i, file in ipairs(paths) do\n    if file == &quot;\/Volumes\/ryvault1\/MacHD\/Users\/raymondyee\/obsidian\/MainRY\/bike\/overall.bike&quot; then\n      local flags = flagTables[i]\n      print(i, file)\n      print_true_flags(flags)\n\n      local timestamp = os.date(&quot;%Y-%m-%d %H:%M:%S&quot;)\n      -- local message = timestamp .. &quot; overall.bike changed\\n&quot;\n\n      local logFile = io.open(&quot;\/tmp\/hschange.log&quot;, &quot;a&quot;)\n      logFile:write(timestamp .. list_true_flags(flags) .. &quot;\\n&quot;)\n      logFile:close()\n    end\n  end\nend\n\nwatcher = hs.pathwatcher.new(&quot;\/Volumes\/ryvault1\/MacHD\/Users\/raymondyee\/obsidian\/MainRY\/bike&quot;, fileModifiedCallback)\nwatcher:start()<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I set the stage for command groups in bike.py with [my latest change to bike.py](added sel2pb command to bike.py \u00b7 rdhyee\/python-learning@a161fe9). It seems that Keyboard Maestro doesn&#8217;t allow for watching for changes in files that already exist. Maybe, more likely, &hellip; <a href=\"https:\/\/hypotyposis.net\/blog\/2023\/09\/29\/mic-02-5-small-progress-during-a-busy-end-of-week\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"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,"_jetpack_memberships_contains_paid_content":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":3,"activitypub_interaction_policy_quote":"","activitypub_status":"","footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[1],"tags":[],"class_list":["post-1554","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p7I6qs-p4","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/hypotyposis.net\/blog\/wp-json\/wp\/v2\/posts\/1554","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hypotyposis.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hypotyposis.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hypotyposis.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hypotyposis.net\/blog\/wp-json\/wp\/v2\/comments?post=1554"}],"version-history":[{"count":2,"href":"https:\/\/hypotyposis.net\/blog\/wp-json\/wp\/v2\/posts\/1554\/revisions"}],"predecessor-version":[{"id":1560,"href":"https:\/\/hypotyposis.net\/blog\/wp-json\/wp\/v2\/posts\/1554\/revisions\/1560"}],"wp:attachment":[{"href":"https:\/\/hypotyposis.net\/blog\/wp-json\/wp\/v2\/media?parent=1554"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hypotyposis.net\/blog\/wp-json\/wp\/v2\/categories?post=1554"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hypotyposis.net\/blog\/wp-json\/wp\/v2\/tags?post=1554"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}