{"id":767,"date":"2020-05-10T11:43:01","date_gmt":"2020-05-10T15:43:01","guid":{"rendered":"http:\/\/darthjedi.logiodice.com\/?p=767"},"modified":"2020-05-10T11:44:09","modified_gmt":"2020-05-10T15:44:09","slug":"geek-alert-when-im-bored","status":"publish","type":"post","link":"https:\/\/darthjedi.logiodice.com\/?p=767","title":{"rendered":"Geek Alert: When I\u2019m bored&#8230;"},"content":{"rendered":"<p>I have to admit, I\u2019m not one to go stir-crazy. I could be completely happy sitting around the house, as long as I have access to a computer, iPad, Instruments (like a Piano or Guitar), and\/or Kindle.<\/p>\n\n<p>I\u2019ve spent a lot of my \u201cextra\u201d time going back and refreshing my programming skills, and recently someone @Work reminded me of PlantUML. I had completely forgotten about it!<\/p>\n\n<p>With PlantUML you can program pictures. If you like to draw UML\/Architecture type pictures to express ideas, I highly recommend you check it out.<\/p>\n\n<p>So here I am, on a Sunday morning, doing another thing that I enjoy: brain teasers.<\/p>\n\n<p>So &#8211; I had this brain teaser that I was staring at and I thought: Why don\u2019t I draw it out. Which is where PlantUML comes into the picture. Here we go. I hope you enjoy it as much as I do (@Amanda says &#8211; you are so boring).<\/p>\n\n<p>You live on an island, you are coming back from a trip to the store, you have in your inventory a duck, some seeds and a fox. You can only carry one item across on the boat at a time. You cannot leave the duck alone with the seeds or the fox alone with the duck, as they will eat each other. How do you get the Duck, the Seeds, and the Fox over to your island?<\/p>\n\n<h2 class=\"wp-block-heading\">Enter PlantUML:<\/h2>\n\n<pre class=\"wp-block-code\"><code>@startuml\nParticipant \"Left Shore\" as L\nParticipant \"Boat\" as B\nParticipant \"Right Shore\" as R\n\nRnote over R\nDuck\nSeeds\nFox\nEndrnote\n\nR-&gt;L: bring over duck\n\nRnote over L\nDuck\nEndrnote\n\nRnote over R\nSeeds\nFox\nEndrnote\n\nL-&gt;R : go back for fox\nR-&gt;L: Bring over Fox\nRnote over L\nFox\nEndrnote\n\nRnote over L\nDuck\nEndrnote\n\nL-&gt;R : bring back Duck\n\nRnote over R\nSeeds\nEndrnote\n\nRnote over R\nDuck\nEndrnote\n\nR-&gt;L : bring over seeds\n\nRnote over L\nFox\nSeeds\nendrnote\n\nrnote over R\nduck\nEndrnote\n\nL-&gt;R : Go back for duck\nR-&gt;L : Bring over Duck\n\nRnote over L\nDuck\nSeeds\nFox\nEndrnote\n@enduml<\/code><\/pre>\n\n<h2 class=\"wp-block-heading\">And here is your result:<\/h2>\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"283\" height=\"723\" class=\"wp-image-768\" src=\"https:\/\/darthjedi.logiodice.com\/wp-content\/uploads\/2020\/05\/E6B046A6-6548-403F-B71D-E498227579AF.png\" alt=\"\" \/><\/figure>\n\n<h2 class=\"wp-block-heading\">You are welcome Internet.<\/h2>","protected":false},"excerpt":{"rendered":"<p>I have to admit, I\u2019m not one to go stir-crazy. I could be completely happy sitting around the house, as long as I have access to a computer, iPad, Instruments (like a Piano or Guitar), and\/or Kindle. I\u2019ve spent a lot of my \u201cextra\u201d time going back and refreshing my programming skills, and recently someone &hellip; <a href=\"https:\/\/darthjedi.logiodice.com\/?p=767\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Geek Alert: When I\u2019m bored&#8230;&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-767","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/darthjedi.logiodice.com\/index.php?rest_route=\/wp\/v2\/posts\/767","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/darthjedi.logiodice.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/darthjedi.logiodice.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/darthjedi.logiodice.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/darthjedi.logiodice.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=767"}],"version-history":[{"count":4,"href":"https:\/\/darthjedi.logiodice.com\/index.php?rest_route=\/wp\/v2\/posts\/767\/revisions"}],"predecessor-version":[{"id":772,"href":"https:\/\/darthjedi.logiodice.com\/index.php?rest_route=\/wp\/v2\/posts\/767\/revisions\/772"}],"wp:attachment":[{"href":"https:\/\/darthjedi.logiodice.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=767"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/darthjedi.logiodice.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=767"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/darthjedi.logiodice.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=767"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}