{"id":242,"date":"2015-03-29T22:34:31","date_gmt":"2015-03-29T21:34:31","guid":{"rendered":"http:\/\/alexander.vondrous.de\/?p=242"},"modified":"2015-08-12T10:04:45","modified_gmt":"2015-08-12T09:04:45","slug":"software-chindogu","status":"publish","type":"post","link":"https:\/\/alexander.vondrous.de\/?p=242","title":{"rendered":"Software Chindogu"},"content":{"rendered":"<p>Coding in a train is usually a thing for itself but during winter time it is much harder because your fingers are cold and rigid. Once it got really cold and I needed a method to heat my fingers up. How to programmatically heat fingers? The good thing was, that I had an old IBM\u00a0Thinkpad\u00a0with a hot air exhaust, which can be activated. The magic trick to activate the fan is to give the CPU an endless busy waiting task, such that\u00a0I awkwardly typed with my frozen fingers a piece of heating code, which is\u00a0not more than a parallel endless loop iterating over an integer.<\/p>\n<pre class=\"brush:cpp\">#include \"omp.h\"\r\nint main (int argc, char *argv[]) {\r\n  int i;\r\n  #pragma omp parallel\r\n  {\r\n    while (1) {\r\n      i++;\r\n    }\r\n  }\r\n  return 0;\r\n}<\/pre>\n<p>This piece of code is unusual\u00a0and falls pretty well into the definition of a <a href=\"http:\/\/en.wikipedia.org\/wiki\/Chind%C5%8Dgu\">Chindogu<\/a>, which is a japanese art form. It is unusual because the program\u00a0does not have a digital output.<\/p>\n<p>If your fingers are feeling cold, feel free to download the source code from\u00a0<a href=\"https:\/\/github.com\/Threadmonkey\/chindogu-heat\">GitHub<\/a>:<br \/>\n<a href=\"https:\/\/github.com\/Threadmonkey\/chindogu-heat\"><img decoding=\"async\" loading=\"lazy\" class=\"  wp-image-299 aligncenter\" src=\"http:\/\/alexander.vondrous.de\/wp-content\/uploads\/2015\/03\/Octocat.jpg\" alt=\"Octocat\" width=\"63\" height=\"52\" srcset=\"https:\/\/alexander.vondrous.de\/wp-content\/uploads\/2015\/03\/Octocat.jpg 800w, https:\/\/alexander.vondrous.de\/wp-content\/uploads\/2015\/03\/Octocat-300x249.jpg 300w, https:\/\/alexander.vondrous.de\/wp-content\/uploads\/2015\/03\/Octocat-500x416.jpg 500w\" sizes=\"(max-width: 63px) 100vw, 63px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Coding in a train is usually a thing for itself but during winter time it is much harder because your fingers are cold and rigid. Once it got really cold and I needed a method to heat my fingers up. How to programmatically heat fingers? The good thing was, that I had an old IBM\u00a0Thinkpad\u00a0with &#8230; <span class=\"more\"><a class=\"more-link\" href=\"https:\/\/alexander.vondrous.de\/?p=242\">[Read more&#8230;]<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[29,30,31,32,33],"_links":{"self":[{"href":"https:\/\/alexander.vondrous.de\/index.php?rest_route=\/wp\/v2\/posts\/242"}],"collection":[{"href":"https:\/\/alexander.vondrous.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/alexander.vondrous.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/alexander.vondrous.de\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/alexander.vondrous.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=242"}],"version-history":[{"count":31,"href":"https:\/\/alexander.vondrous.de\/index.php?rest_route=\/wp\/v2\/posts\/242\/revisions"}],"predecessor-version":[{"id":354,"href":"https:\/\/alexander.vondrous.de\/index.php?rest_route=\/wp\/v2\/posts\/242\/revisions\/354"}],"wp:attachment":[{"href":"https:\/\/alexander.vondrous.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=242"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/alexander.vondrous.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=242"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/alexander.vondrous.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=242"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}