{"id":14654,"date":"2015-01-30T22:44:12","date_gmt":"2015-01-31T02:44:12","guid":{"rendered":"http:\/\/johncohn.org\/base\/?p=14654"},"modified":"2015-01-30T22:44:12","modified_gmt":"2015-01-31T02:44:12","slug":"friday-night-swift-tailor","status":"publish","type":"post","link":"http:\/\/johncohn.org\/base\/2015\/01\/30\/friday-night-swift-tailor\/","title":{"rendered":"Friday night &#8211; Swift Tailor"},"content":{"rendered":"<p>No.. not Taylor Swift.. I mean that I finally took the time to try out the new Swift programming language for my iPhone and iPad. I used to use Objective C.. which was pretty complicated&#8230;<\/p>\n<p>&nbsp;<\/p>\n<p>Swift is a more modern language designed for morons \u00a0like me. It really is fun to program.. My first attempt was a tutorial by a guy named Wei-Meng Lee that coupled a TI sensor tag to my phone or table to allow you to take remote selfies.. How cool is that ? \u00a0I took advantage of a couple of boring meetings (not with any of you) to do my coding as I listened)<\/p>\n<p>&nbsp;<\/p>\n<p>The Sensor tag is this very cool $25 dollar wireless gizmo with thermometers, barometer, accelerometer, magnetometer, gombometer (remember gumby ?)..<\/p>\n<p><img decoding=\"async\" title=\"\" src=\"http:\/\/johncohn.org\/base\/wp-content\/uploads\/2015\/01\/ti-sensortag.jpg\" alt=\"\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>here&#8217;s the Storyboard for the design in Xcode<\/p>\n<p><img decoding=\"async\" title=\"\" src=\"http:\/\/johncohn.org\/base\/wp-content\/uploads\/2015\/01\/Screen-Shot-2015-01-30-at-9.14.14-PM2.jpg\" alt=\"\" \/><\/p>\n<p>and heres a little bit\u00a0<img decoding=\"async\" title=\"\" src=\"http:\/\/johncohn.org\/base\/wp-content\/uploads\/2015\/01\/Screen-Shot-2015-01-30-at-9.14.42-PM.png\" alt=\"\" \/><img decoding=\"async\" title=\"\" src=\"http:\/\/johncohn.org\/base\/wp-content\/uploads\/2015\/01\/Screen-Shot-2015-01-30-at-9.14.42-PM1.png\" alt=\"\" \/>\u00a0of the swift code.. almost all of it in one file<\/p>\n<p>&nbsp;<\/p>\n<p>And here&#8217;s the result.. you click the button on the sensor tag and it takes your picture. how cool is that<\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" title=\"\" src=\"http:\/\/johncohn.org\/base\/wp-content\/uploads\/2015\/01\/IMG_1938.jpg\" alt=\"\" \/><\/p>\n<p>i fee proud of myself l like a kid who just tied his own shoe for the first time.. !<\/p>\n<p>you&#8217;re never to old or weird looking to learn.. are you ?<\/p>\n<p>&nbsp;<\/p>\n<p>nite all, nite sam<\/p>\n<p>-me<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>No.. not Taylor Swift.. I mean that I finally took the time to try out the new Swift programming language for my iPhone and iPad. I used to use Objective C.. which was pretty complicated&#8230; &nbsp; Swift is a more modern language designed for morons \u00a0like me. It really is fun to program.. My first &hellip; <a href=\"http:\/\/johncohn.org\/base\/2015\/01\/30\/friday-night-swift-tailor\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Friday night &#8211; Swift Tailor<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","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":[1051],"class_list":["post-14654","post","type-post","status-publish","format-standard","hentry","tag-swift-tailor"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"http:\/\/johncohn.org\/base\/wp-json\/wp\/v2\/posts\/14654","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=14654"}],"version-history":[{"count":1,"href":"http:\/\/johncohn.org\/base\/wp-json\/wp\/v2\/posts\/14654\/revisions"}],"predecessor-version":[{"id":14663,"href":"http:\/\/johncohn.org\/base\/wp-json\/wp\/v2\/posts\/14654\/revisions\/14663"}],"wp:attachment":[{"href":"http:\/\/johncohn.org\/base\/wp-json\/wp\/v2\/media?parent=14654"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/johncohn.org\/base\/wp-json\/wp\/v2\/categories?post=14654"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/johncohn.org\/base\/wp-json\/wp\/v2\/tags?post=14654"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}