<?xml-stylesheet type="text/xsl" href="https://community.element14.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Enchanted Objects Design Challenge - The townsfolk get Rickrolled</title><link>/challenges-projects/design-challenges/enchanted-objects/b/blog/posts/enchanted-objects-design-challenge---the-townsfolk-get-rickrolled</link><description>Good morning Ricksville One morning Farmer Hogg woke up, looked out the window and checked the colour of his field.He headed down to the kitchen and turned on his internet radio, Rick Astley was playing so he turned it off again.Old Mother Hubba...</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Enchanted Objects Design Challenge - The townsfolk get Rickrolled</title><link>https://community.element14.com/challenges-projects/design-challenges/enchanted-objects/b/blog/posts/enchanted-objects-design-challenge---the-townsfolk-get-rickrolled</link><pubDate>Mon, 01 Jun 2015 16:23:54 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:740befba-0028-4a16-b18b-b850acb0d993</guid><dc:creator>Former Member</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;god damn you Rick Astley!!! lol!!&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=20879&amp;AppID=117&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Enchanted Objects Design Challenge - The townsfolk get Rickrolled</title><link>https://community.element14.com/challenges-projects/design-challenges/enchanted-objects/b/blog/posts/enchanted-objects-design-challenge---the-townsfolk-get-rickrolled</link><pubDate>Mon, 01 Jun 2015 15:47:11 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:740befba-0028-4a16-b18b-b850acb0d993</guid><dc:creator>Workshopshed</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;I put the numbers into a spreadsheet and came up with the following algorithm. I&amp;#39;ll see how well that does and adapt as necessary.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;[embed:dc8ab71f-3b98-42d9-b0f6-e21e02a0f8e2:3ef06e6b-9b7d-4651-b12d-db8be7f5e991:type=python&amp;amp;text=%23+Take+the+two+command+line+arguments+and+generate+a+1+to+5+rating+of+it+it+will+rain%0A%23+See+http%3A%2F%2Fwww.tutorialspoint.com%2Fpython%2Fpython_command_line_arguments.htm%0A%0Aimport+sys%2C+getopt%0A%0Adef+guess_weather%28rel_humidity%2C+temp%29%3A%0A++++%23+Temperature+in+Degrees+C+and+Relative+Humidity+as+a+percentage%0A++++%23+Based+on+an+approximation+of+these+graphs%0A++++%23+ftp%3A%2F%2Fwww.star.nesdis.noaa.gov%2Fpub%2Fsmcd%2Fspb%2Flzhou%2FAMS86%2FPREPRINTS%2FPDFS%2F97921.pdf%0A++++if+rel_humidity+%3C+0.66+*+temp+%2B+53%3A%0A++++++++weather+%3D+1++%23+Very+likely+dry%0A++++elif+rel_humidity+%3C+0.66+*+temp+%2B+63%3A%0A++++++++weather+%3D+2%0A++++elif+rel_humidity+%3C+0.66+*+temp+%2B+73%3A%0A++++++++weather+%3D+3++%23+Changeable%0A++++elif+rel_humidity+%3C+0.66+*+temp+%2B+83%3A%0A++++++++weather+%3D+4%0A++++elif+rel_humidity+%3E%3D+0.66+*+temp+%2B+83%3A%0A++++++++weather+%3D+5++%23+Probably+rainy%0A++++return+weather%0A%0A%0Adef+main%28argv%29%3A%0A++++try%3A%0A++++++++opts%2C+args+%3D+getopt.getopt%28argv%2C+%27t%3Ar%3A%27%2C+%5B%27temperature%27%2C+%27relativehumidity%27%5D%29%0A++++++++for+opt%2C+arg+in+opts%3A%0A++++++++++++if+opt+in+%28%27-r%27%2C+%27--relativehumidity%27%29%3A%0A++++++++++++++++rel_humidity+%3D+float%28arg%29%0A++++++++++++elif+opt+in+%28%27-t%27%2C+%27--temperature%27%29%3A%0A++++++++++++++++temp+%3D+float%28arg%29%0A++++except+getopt.GetoptError%3A%0A++++++++print+%27test.py+-r+%3Crelativehumidity%3E+-t+%3Ctemperature%3E%27%0A++++++++sys.exit%282%29%0A%0A++++print+guess_weather%28rel_humidity%2C+temp%29%0A%0A%0Aif+__name__+%3D%3D+%22__main__%22%3A%0A++++main%28sys.argv%5B1%3A%5D%29]&lt;/p&gt;&lt;div&gt;&lt;/div&gt;&lt;img src="https://community.element14.com/aggbug?PostID=20879&amp;AppID=117&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Enchanted Objects Design Challenge - The townsfolk get Rickrolled</title><link>https://community.element14.com/challenges-projects/design-challenges/enchanted-objects/b/blog/posts/enchanted-objects-design-challenge---the-townsfolk-get-rickrolled</link><pubDate>Mon, 25 May 2015 19:03:34 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:740befba-0028-4a16-b18b-b850acb0d993</guid><dc:creator>DAB</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Great series Andy.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I like your weaving an interesting story into the technical stuff.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Lots of fun,&lt;/p&gt;&lt;p&gt;thanks&lt;/p&gt;&lt;p&gt;DAB&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=20879&amp;AppID=117&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>