{"id":231,"date":"2013-11-02T13:56:54","date_gmt":"2013-11-02T13:56:54","guid":{"rendered":"http:\/\/www.nicassio.it\/daniele\/blog\/?p=231"},"modified":"2013-11-02T13:56:54","modified_gmt":"2013-11-02T13:56:54","slug":"genetic-shaping-layout","status":"publish","type":"post","link":"http:\/\/www.nicassio.it\/daniele\/blog\/?p=231","title":{"rendered":"Genetic Shaping Layout"},"content":{"rendered":"<p>It&#8217;s been a long time since I decided to try to use genetic algorithms for optimizing a web page style, and here&#8217;s my first try. The idea is simple: generating some random styles and then making the user choose which one he prefer. Then using the genetic rules to combine the chosen CSS with the other&#8217;s. Actually with a &#8216;population&#8217; of only six elements it doesn&#8217;t have a real genetic value, but the principle is the same.<\/p>\n<p>The problem with this kind of implementation is that you need a human to select the best styles generated, and this prevents from having large population and selection. However, a possibility could be to implement this server side, taking advantage of the selection made by multiple users.<\/p>\n<p>Here&#8217;s <a href=\"http:\/\/www.nicassio.it\/daniele\/genetic-shaping-ui\/\" target=\"_blank\">the link<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It&#8217;s been a long time since I decided to try to use genetic algorithms for optimizing a web page style, and here&#8217;s my first try. The idea is simple: generating some random styles and then making the user choose which one he prefer. Then using the genetic rules to combine the chosen CSS with the &hellip; <a href=\"http:\/\/www.nicassio.it\/daniele\/blog\/?p=231\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Genetic Shaping Layout<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[13,4,7],"tags":[],"_links":{"self":[{"href":"http:\/\/www.nicassio.it\/daniele\/blog\/index.php?rest_route=\/wp\/v2\/posts\/231"}],"collection":[{"href":"http:\/\/www.nicassio.it\/daniele\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.nicassio.it\/daniele\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.nicassio.it\/daniele\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.nicassio.it\/daniele\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=231"}],"version-history":[{"count":0,"href":"http:\/\/www.nicassio.it\/daniele\/blog\/index.php?rest_route=\/wp\/v2\/posts\/231\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.nicassio.it\/daniele\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=231"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.nicassio.it\/daniele\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=231"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.nicassio.it\/daniele\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=231"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}