{"id":1975,"date":"2022-12-12T19:22:22","date_gmt":"2022-12-12T18:22:22","guid":{"rendered":"http:\/\/www.meanboyfriend.com\/overdue_ideas\/?p=1975"},"modified":"2022-12-12T19:26:06","modified_gmt":"2022-12-12T18:26:06","slug":"advent-of-code-with-openrefine-day-7","status":"publish","type":"post","link":"http:\/\/www.meanboyfriend.com\/overdue_ideas\/2022\/12\/advent-of-code-with-openrefine-day-7\/","title":{"rendered":"Advent of Code with OpenRefine day 7"},"content":{"rendered":"\n<p>This was a really tricky one &#8211; it took me ages to work out how to approach it and even then, and with a dry run to get the answer, I made several mistakes as you can see if you take a look at the mammoth video (maybe watch this one at 2x speed?!).<\/p>\n\n\n\n<p>This is definitely not the right kind of problem for OpenRefine to solve but it turned out it was possible &#8211; just about. I wonder if I missed a trick somewhere along the line and there could have been a simpler approach &#8211; after all the simpler question of &#8220;how big was each directory&#8221; was trivial in OpenRefine &#8211; it was the fact that we had to calculate the path to each directory based on the list of &#8216;change directory&#8217; commands that made it difficult.<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"Advent of Code 2022 Day 7 using OpenRefine\" width=\"640\" height=\"360\" src=\"https:\/\/www.youtube.com\/embed\/IgrAEi5ena0?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>This was a really tricky one &#8211; it took me ages to work out how to approach it and even then, and with a dry run to get the answer, I made several mistakes as you can see if you take a look at the mammoth video (maybe watch this one at 2x speed?!). This [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[104],"class_list":["post-1975","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-adventofcode2022"],"_links":{"self":[{"href":"http:\/\/www.meanboyfriend.com\/overdue_ideas\/wp-json\/wp\/v2\/posts\/1975","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.meanboyfriend.com\/overdue_ideas\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.meanboyfriend.com\/overdue_ideas\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.meanboyfriend.com\/overdue_ideas\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.meanboyfriend.com\/overdue_ideas\/wp-json\/wp\/v2\/comments?post=1975"}],"version-history":[{"count":1,"href":"http:\/\/www.meanboyfriend.com\/overdue_ideas\/wp-json\/wp\/v2\/posts\/1975\/revisions"}],"predecessor-version":[{"id":1976,"href":"http:\/\/www.meanboyfriend.com\/overdue_ideas\/wp-json\/wp\/v2\/posts\/1975\/revisions\/1976"}],"wp:attachment":[{"href":"http:\/\/www.meanboyfriend.com\/overdue_ideas\/wp-json\/wp\/v2\/media?parent=1975"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.meanboyfriend.com\/overdue_ideas\/wp-json\/wp\/v2\/categories?post=1975"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.meanboyfriend.com\/overdue_ideas\/wp-json\/wp\/v2\/tags?post=1975"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}