{"id":1399,"date":"2010-03-07T00:36:00","date_gmt":"2010-03-07T04:36:00","guid":{"rendered":"http:\/\/johncohn.org\/base\/2010\/03\/07\/staurday-evening-that-kind-of-day\/"},"modified":"2010-03-07T00:36:00","modified_gmt":"2010-03-07T04:36:00","slug":"staurday-evening-that-kind-of-day","status":"publish","type":"post","link":"http:\/\/johncohn.org\/base\/2010\/03\/07\/staurday-evening-that-kind-of-day\/","title":{"rendered":"Staurday evening &#8211; that kind of day"},"content":{"rendered":"<p><div id=\"pBlogBody_530473372\" class=\"blogContent\">\n<center><\/p>\n<div align=\"left\">Today was the perfect &#8216;that kind of day&#8217; I have so much on my mind about work that I needed the kind of day that forced me not to think o fit.. It was incredibly sunny and beautiful out..\u00a0\u00a0 Diane. Gabe , the doga and I left here about 7am for Smugglers nithc for the final event in teh ASaSA )American Ski and Snowboard Association) for our regien. Gabe had a pretty good day.. he came in 2nd. that gives him enough poins to go compete in the national finals in Colorado in early April (along with a thousand or so kids). I&#8217;m going to be taking him. it&#8217;ll be be so much fun !<\/p>\n<p>After the event today there was a rail jam in memory of Molly, a 5 year old girl who died of lymphoma last July.. this is the second rail jam her family has held\/. last year it was raising money for her treatment. this year its a memorial .. The money raised goes to help the family of kids battling cancer.<\/div>\n<p><img decoding=\"async\" src=\"http:\/\/i147.photobucket.com\/albums\/r319\/johncohn\/mar0610\/mar0610009.jpg\" \/><\/p>\n<div align=\"left\"> I met Buck. moolly&#8217;s dad and tlaked for a bit. .he knows about Sam. We shared alot in that short conversation about our kids. I know exactly how much it took for Buck and his family to turn it on for their friends and hold this event. <\/p>\n<\/div>\n<p><img decoding=\"async\" src=\"http:\/\/i147.photobucket.com\/albums\/r319\/johncohn\/mar0610\/mar0610010.jpg\" \/><\/p>\n<div align=\"left\">Even though the event was for a very sad reason, It was a good turnout.. which made me happy.\n<\/div>\n<p><img decoding=\"async\" src=\"http:\/\/i147.photobucket.com\/albums\/r319\/johncohn\/mar0610\/mar0610011.jpg\" \/><\/p>\n<div align=\"left\">The rest of the day was sleepy and fun.. I did two geeky projects.&gt; Gabe and I finished the forge we&#8217;d made. We needed to add legs to the forge.. Gabe did all the welding. He&#8217;s such a natural at this stuff. Makes me so proud..<\/p>\n<\/div>\n<p><img decoding=\"async\" src=\"http:\/\/i147.photobucket.com\/albums\/r319\/johncohn\/mar0610\/mar0610013.jpg\" \/><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/i147.photobucket.com\/albums\/r319\/johncohn\/mar0610\/mar0610015.jpg\" \/><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/i147.photobucket.com\/albums\/r319\/johncohn\/mar0610\/mar0610014.jpg\" \/><\/p>\n<div align=\"left\">TH elegs on the forge will kep us from having to bend down to heat the metal.. a great build for a sunny Saturday afternoon <\/div>\n<p><img decoding=\"async\" src=\"http:\/\/i147.photobucket.com\/albums\/r319\/johncohn\/mar0610\/mar0610017.jpg\" \/><\/p>\n<div align=\"left\">I also did another goofy project Diane and I are obsessed with this new power monitor <br \/>I installde in the house.. We&#8217;re trying to figure out what appliance take which power.. the catch is, you need to be staring at the screen all the time to see the power changing.. which makes it tough to figure out what&#8217;s using the power.. Today I wrote a simple program that plays a simple tone sequence over the sterieo when the power he house is using increases or decreases suddenly .. it makes it easy to figure out what device is using the power. <\/p>\n<p>Right now it s driving us crazy\u00a0\u00a0 dah-dah-dah dah .. dee-dee-dee-deeee<\/p>\n<p>here&#8217;s the code if anyone&#8217;s interested.. <\/p>\n<p><i><font color=\"#ff0000\">from BeautifulSoup import BeautifulSoup<br \/>from time import sleep<br \/>import re, urllib2<br \/>import audiere<\/p>\n<p>def read_entry(url):<br \/>\u00a0\u00a0\u00a0 <br \/>\u00a0\u00a0\u00a0 try:<br \/>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 resp = urllib2.urlopen(url,None,100)<\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 html_code = resp.read()<\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 soup = BeautifulSoup(&#8221;.join(html_code))<br \/>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 power = soup.findAll(&#8220;powernow&#8221;)<br \/>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 return int(power0.contents0)<br \/>&#035;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 print soup.prettify()<\/p>\n<p>\u00a0\u00a0\u00a0 except IOError, e:<br \/>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 print e.reason<\/p>\n<p>go = 1<br \/>last = 0<\/p>\n<p>&#035; Open default audio device<br \/>d = audiere.open_device()<\/p>\n<p>threshold = 50<\/p>\n<p>while (go == 1):<br \/>\u00a0\u00a0\u00a0 this = read_entry(&#8216;<a href=\"http:\/\/www.msplinks.com\/MDFodHRwOi8vdGVkNTAwMC9hcGkvTGl2ZURhdGEueG1s\">http:\/\/ted5000\/api\/LiveData.xml<\/a>&#8216;)<br \/>\u00a0\u00a0\u00a0 diff = this &#8211; last<br \/>\u00a0\u00a0\u00a0 print this,&#8221; &#8220;, last, &#8221; &#8221; , diff<br \/>\u00a0\u00a0\u00a0 if\u00a0 abs(diff) &gt; threshold :<br \/>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 steps = abs(diff) \/ threshold<br \/>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 freq = last<br \/>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 for i in range(steps) :<br \/>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 t = d.create_tone(freq)<br \/>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 t.pan = 1<br \/>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 t.play()<br \/>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 sleep(0.05)<br \/>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 t.stop()<br \/>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 if diff &gt; 0 :<br \/>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 freq = freq + threshold<br \/>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 else :<br \/>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 freq = freq &#8211; threshold<br \/>\u00a0\u00a0\u00a0 <br \/>\u00a0\u00a0\u00a0 last = this<br \/>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <br \/><\/font><\/i><font color=\"#ff0000\"><font color=\"#000000\">Gotta go now.. Diane is watching the &#8220;Flying Nun&#8221; on Youtube.. <\/font><\/font><i><font color=\"#ff0000\"><font color=\"#000000\"><br \/><\/font><\/font><\/i><font color=\"#ff0000\"><font color=\"#000000\">Now <\/font><\/font><font color=\"#ff0000\"><font color=\"#000000\"><i>that <\/i>was a weird show<\/p>\n<p><a><img decoding=\"async\" width=\"325\" src=\"http:\/\/c4.ac-images.myspacecdn.com\/images02\/125\/l_15d14022c19943abb98d221c0ac5efd3.jpg\" \/><\/a> <\/p>\n<p><\/font><\/font><i>Nite folks.. nite sam<br \/>-me<\/p>\n<p><\/i><\/div>\n<p><\/center>\n<\/div><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today was the perfect &#8216;that kind of day&#8217; I have so much on my mind about work that I needed the kind of day that forced me not to think o fit.. It was incredibly sunny and beautiful out..\u00a0\u00a0 Diane. Gabe , the doga and I left here about 7am for Smugglers nithc for the &hellip; <a href=\"http:\/\/johncohn.org\/base\/2010\/03\/07\/staurday-evening-that-kind-of-day\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Staurday evening &#8211; that kind of day<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"enabled":false},"version":2}},"categories":[1],"tags":[],"class_list":["post-1399","post","type-post","status-publish","format-standard","hentry"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"http:\/\/johncohn.org\/base\/wp-json\/wp\/v2\/posts\/1399","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/johncohn.org\/base\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/johncohn.org\/base\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/johncohn.org\/base\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/johncohn.org\/base\/wp-json\/wp\/v2\/comments?post=1399"}],"version-history":[{"count":0,"href":"http:\/\/johncohn.org\/base\/wp-json\/wp\/v2\/posts\/1399\/revisions"}],"wp:attachment":[{"href":"http:\/\/johncohn.org\/base\/wp-json\/wp\/v2\/media?parent=1399"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/johncohn.org\/base\/wp-json\/wp\/v2\/categories?post=1399"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/johncohn.org\/base\/wp-json\/wp\/v2\/tags?post=1399"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}