{"id":526,"date":"2017-08-31T09:49:02","date_gmt":"2017-08-31T15:49:02","guid":{"rendered":"http:\/\/arcanasphere.com\/blog\/?p=526"},"modified":"2017-08-31T09:49:02","modified_gmt":"2017-08-31T15:49:02","slug":"coding-in-my-sleep","status":"publish","type":"post","link":"https:\/\/arcanasphere.com\/blog\/2017\/08\/coding-in-my-sleep\/","title":{"rendered":"Coding In My Sleep."},"content":{"rendered":"<p>Well, it happened.<\/p>\n<p>For some reason, while I was dreaming, I wanted to build a square out of random passages from Lorem Ipsum text. Something like this: <!--more Oh, lua lua.  Oh, no. I gotta code.--><\/p>\n<pre>S Q U A R E S\nQ           Q\nU           U\nA           A\nR           R\nE           E\nS Q U A R E S<\/pre>\n<p>I wanted it to be 64 characters across and 64 characters tall.<\/p>\n<p>So I started plotting it out. Get the length of the string. Start each passage at a random somewhere between character 0 and strlen(LoremIpsum)-64. Do that four times. Write a loop so that the vertical text can be drawn one letter a time in a line. Then print the horizontal text as is. Offset them all by one characer so that they make the square.<\/p>\n<p>It happened. I wrote a small and functionally useless program in my sleep.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Well, it happened. For some reason, while I was dreaming, I wanted to build a square out of random passages from Lorem Ipsum text. Something like this:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_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}},"categories":[1],"tags":[],"class_list":["post-526","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8uTsK-8u","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/arcanasphere.com\/blog\/wp-json\/wp\/v2\/posts\/526","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/arcanasphere.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/arcanasphere.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/arcanasphere.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/arcanasphere.com\/blog\/wp-json\/wp\/v2\/comments?post=526"}],"version-history":[{"count":1,"href":"https:\/\/arcanasphere.com\/blog\/wp-json\/wp\/v2\/posts\/526\/revisions"}],"predecessor-version":[{"id":527,"href":"https:\/\/arcanasphere.com\/blog\/wp-json\/wp\/v2\/posts\/526\/revisions\/527"}],"wp:attachment":[{"href":"https:\/\/arcanasphere.com\/blog\/wp-json\/wp\/v2\/media?parent=526"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/arcanasphere.com\/blog\/wp-json\/wp\/v2\/categories?post=526"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/arcanasphere.com\/blog\/wp-json\/wp\/v2\/tags?post=526"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}