{"id":21871,"date":"2014-05-29T08:35:13","date_gmt":"2014-05-29T06:35:13","guid":{"rendered":"https:\/\/mamchenkov.net\/wordpress\/?p=21871"},"modified":"2014-05-29T10:58:51","modified_gmt":"2014-05-29T08:58:51","slug":"wheres-the-fish","status":"publish","type":"post","link":"https:\/\/mamchenkov.net\/wordpress\/2014\/05\/29\/wheres-the-fish\/","title":{"rendered":"Where&#8217;s the fish?"},"content":{"rendered":"<!-- google_ad_section_start -->\n<p>A colleague shared with me the link to <a href=\"http:\/\/www.manbottle.com\/trivia\/einstein_s_riddle\">this Einstein&#8217;s riddle<\/a>. \u00a0It looks easy at first, but it actually isn&#8217;t. \u00a0I&#8217;ve tried a couple of different models to solve it, but haven&#8217;t figured it out yet. \u00a0Something tells me that if I remembered Prolog from my college days, I would have solved it in about 3 minutes. \u00a0But I don&#8217;t. \u00a0So pieces of paper and text files it is. \u00a0If that won&#8217;t be enough until lunch time today, I&#8217;ll start doing something in PHP or Perl&#8230;<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Update<\/strong>: Solved it! \u00a0My initial model of addition wasn&#8217;t right. Subtraction worked much better.<\/p>\n<!-- google_ad_section_end -->\n","protected":false},"excerpt":{"rendered":"<!-- google_ad_section_start -->\n<p>A colleague shared with me the link to this Einstein&#8217;s riddle. \u00a0It looks easy at first, but it actually isn&#8217;t. \u00a0I&#8217;ve tried a couple of different models to solve it, but haven&#8217;t figured it out yet. \u00a0Something tells me that if I remembered Prolog from my college days, I would have solved it in about &hellip; <a href=\"https:\/\/mamchenkov.net\/wordpress\/2014\/05\/29\/wheres-the-fish\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Where&#8217;s the fish?<\/span><\/a><\/p>\n<!-- google_ad_section_end -->\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"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},"_links_to":"","_links_to_target":""},"categories":[1],"tags":[3303,478,3304],"keyring_services":[],"class_list":["post-21871","post","type-post","status-publish","format-standard","hentry","category-general","tag-albert-einstein","tag-logic","tag-puzzles"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":13524,"url":"https:\/\/mamchenkov.net\/wordpress\/2010\/11\/03\/type-while-walking-problem-solved\/","url_meta":{"origin":21871,"position":0},"title":"Type while walking problem solved","author":"Leonid Mamchenkov","date":"November 3, 2010","format":false,"excerpt":"Even though I don't ever type when I walk or drive, I can still aware of the problem. \u00a0And I think that this solution - a mobile phone application, which uses the camera to project the image in front of you as the background of your text entry - is\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2010\/11\/type_while_walking.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":16312,"url":"https:\/\/mamchenkov.net\/wordpress\/2012\/05\/31\/guinness-bubbles-problem-solved\/","url_meta":{"origin":21871,"position":1},"title":"Guinness bubbles problem &#8211; solved!","author":"Leonid Mamchenkov","date":"May 31, 2012","format":false,"excerpt":"If you are a beer fan, you've probably heard about the famous Guinness bubbles problem. \u00a0While bubbles in most other beers rise up, in Guinness they go down. \u00a0A lot of people were puzzled by that fact, and now, it seems, the puzzle is solved. According to the article in\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2012\/05\/Guinness-500x500.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":44256,"url":"https:\/\/mamchenkov.net\/wordpress\/2019\/09\/12\/google-how-to-do-a-code-review\/","url_meta":{"origin":21871,"position":2},"title":"Google: How to do a code review","author":"Leonid Mamchenkov","date":"September 12, 2019","format":false,"excerpt":"Google is sharing \"How to do a code review\" as part of its engineering practices. Unlike many similar guides online, I find this document to be a lot more comprehensive. It covers both the technical bits of the process, as well as suggestions that improve overall team communications and efficiency.\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":9288,"url":"https:\/\/mamchenkov.net\/wordpress\/2005\/07\/31\/calendaring-issues-solved-with-airset\/","url_meta":{"origin":21871,"position":3},"title":"Calendaring issues solved with AirSet","author":"Leonid Mamchenkov","date":"July 31, 2005","format":false,"excerpt":"I've been looking for a tool to do shared calendaring for some time now. I went through manual editing of text files, ical, Korganizer, RSSCalendar.com and some other tools that I don't remember anymore. None of these provided all the functionality and comfort that I needed. So, I used neither\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":26045,"url":"https:\/\/mamchenkov.net\/wordpress\/2016\/04\/20\/oreilly-parody-book-generator\/","url_meta":{"origin":21871,"position":4},"title":"O&#8217;Reilly Parody Book Generator","author":"Leonid Mamchenkov","date":"April 20, 2016","format":false,"excerpt":"I have\u00a0utmost respect for O'Reilly Media. \u00a0 They've published numerous technology books, aggregate and shared plenty of human knowledge, and saved years in productivity and tonnes in pulled out hair. But no matter how many books they will publish, there's always the need for more. \u00a0Well, know that need is\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"Procrastination","src":"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2016\/04\/procrastination-357x500.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":14978,"url":"https:\/\/mamchenkov.net\/wordpress\/2011\/05\/27\/day-in-brief\/","url_meta":{"origin":21871,"position":5},"title":"Day in brief","author":"Leonid Mamchenkov","date":"May 27, 2011","format":false,"excerpt":"I'm at Primetel Maritime Center http:\/\/4sq.com\/lwNmcs # I just ousted @kayyroll as the mayor of Primetel Maritime Center on @foursquare! http:\/\/4sq.com\/hQlwEV # MySQL is dead on my laptop after upgrade to Fedora 15. Service just fails to start.And in order to troubleshoot I need to fix my WiFi first. #\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_sharing_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts\/21871","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/comments?post=21871"}],"version-history":[{"count":0,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts\/21871\/revisions"}],"wp:attachment":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/media?parent=21871"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/categories?post=21871"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/tags?post=21871"},{"taxonomy":"keyring_services","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/keyring_services?post=21871"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}