{"id":702,"date":"2014-11-23T22:29:25","date_gmt":"2014-11-24T06:29:25","guid":{"rendered":"http:\/\/www.certainly-strange.com\/?p=702"},"modified":"2014-11-23T22:33:10","modified_gmt":"2014-11-24T06:33:10","slug":"a-week-of-battling-a-cold-and-python","status":"publish","type":"post","link":"http:\/\/www.certainly-strange.com\/?p=702","title":{"rendered":"A week of battling a cold and Python"},"content":{"rendered":"<p><a href=\"http:\/\/www.certainly-strange.com\/wp-content\/uploads\/2014\/11\/wpid-wp-1416809646936.png\"><img decoding=\"async\" title=\"wp-1416809646936\" class=\"alignnone size-full\"  alt=\"image\" src=\"http:\/\/www.certainly-strange.com\/wp-content\/uploads\/2014\/11\/wpid-wp-1416809646936.png\" \/><\/a><\/p>\n<p>I had a cold for about 3 or 4 days this week, and didn&#8217;t feel like moving very far from my bed, so I decided to take this time to learn Python.<\/p>\n<p>I&#8217;ve had a bit of fun setting challenges for myself in Python to get a hang of the basics, such as making the Spirograph type image above. I also made an alternate version where the radii and distances were all random integers, and it was fun watching them all converge on an average shape. And then I added a sine wave path, which created circles tangentially to the side wave, and whose radii were defined by the amplitude of the wave.<\/p>\n<p>I went a little crazy with making trippy changing images, I guess.<\/p>\n<p>I also made a program where the user can define a triangle by two angles and a side, and then the program defines what type of triangle it is and draws it.<\/p>\n<p>I am now thinking it would be fun to make a hilarious Twitter not, but I am not quite sure what hilarious things it would do yet. One idea was that it just retweets everything Doc tweets. &#8220;For those of you that don&#8217;t want to follow Doc, but want to read all his tweets!&#8221; Another idea I had was that it would tweet at Doc all day long with random philosophers&#8217; quotes. For some reason, Doc did not find that idea as hilarious as I did.<\/p>\n<p>Whatever the case may be, it should be fun to figure out. And hopefully it won&#8217;t be too annoying to Doc.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I had a cold for about 3 or 4 days this week, and didn&#8217;t feel like moving very far from my bed, so I decided to take this time to learn Python. I&#8217;ve had a bit of fun setting challenges for myself in Python to get a hang of the basics, such as making the &hellip; <a href=\"http:\/\/www.certainly-strange.com\/?p=702\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;A week of battling a cold and Python&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-702","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/www.certainly-strange.com\/index.php?rest_route=\/wp\/v2\/posts\/702","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.certainly-strange.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.certainly-strange.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.certainly-strange.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.certainly-strange.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=702"}],"version-history":[{"count":2,"href":"http:\/\/www.certainly-strange.com\/index.php?rest_route=\/wp\/v2\/posts\/702\/revisions"}],"predecessor-version":[{"id":704,"href":"http:\/\/www.certainly-strange.com\/index.php?rest_route=\/wp\/v2\/posts\/702\/revisions\/704"}],"wp:attachment":[{"href":"http:\/\/www.certainly-strange.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=702"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.certainly-strange.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=702"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.certainly-strange.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=702"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}