{"id":997,"date":"2013-08-20T16:19:27","date_gmt":"2013-08-20T23:19:27","guid":{"rendered":"https:\/\/logicalelegance.com\/journey\/?p=997"},"modified":"2013-09-12T09:21:08","modified_gmt":"2013-09-12T16:21:08","slug":"all-that-i-need-now-is-a-jar","status":"publish","type":"post","link":"https:\/\/logicalelegance.com\/journey\/2013\/08\/all-that-i-need-now-is-a-jar\/","title":{"rendered":"All that I need now is a jar"},"content":{"rendered":"<p>One thing that I didn&#8217;t really get before working on my\u00a0<a title=\"Last installment in the web page saga\" href=\"https:\/\/logicalelegance.com\/journey\/2013\/08\/nothing-is-ever-wasted\/\" target=\"_blank\">thinking-of-you webpage<\/a>: all web developers write OpenSource code. Once it is on the web, anyone can read it.<\/p>\n<p>Copyrights are fine but is copying someone else&#8217;s method of selecting colors of setting up a form or changing font colors for a section instead of a div really protected? I&#8217;m not talking wholesale page stealing, just copying snippets.<\/p>\n<p>I didn&#8217;t do anything that I didn&#8217;t attribute (or learn from <a title=\"Head First HTML and CSS\" href=\"http:\/\/www.headfirstlabs.com\/books\/hfhtml\/\" target=\"_blank\">HTML and CSS book<\/a> I mentioned before). But I did read a few random pages, trying to see how they did this or that.\u00a0That was kinda neat, looking at how pages are put together, now that I speak a little bit of the language. I understand why so many things are hidden in PHP layers: so no one can see a site&#8217;s undergarments.<\/p>\n<p>Usually, my code is seen by one or two other people, during code reviews or when it is reused, not by anyone who cares to look. I don&#8217;t think I mind but it is a little odd. I mean, what if there was a better way to do it? On the other hand, I&#8217;m such a noob at web dev that I&#8217;m sure there is. And if you tell me, I&#8217;ll be happy to know. So why am I nervous?<\/p>\n<p>Here it is:<\/p>\n<p><a href=\"https:\/\/logicalelegance.com\/journey\/wp-content\/uploads\/2013\/08\/ThinkingOfYouV1.jpg\"><img loading=\"lazy\" decoding=\"async\" alt=\"Thinking Of You V1\" src=\"https:\/\/logicalelegance.com\/journey\/wp-content\/uploads\/2013\/08\/ThinkingOfYouV1-300x163.jpg\" width=\"300\" height=\"163\" \/><\/a><\/p>\n<p><a title=\"Webpage for Thinking of You\" href=\"https:\/\/logicalelegance.com\/portfolio\/thinking-of-you-wout-id.html\" target=\"_blank\">https:\/\/logicalelegance.com\/portfolio\/thinking-of-you-wout-id.html<\/a><\/p>\n<p>That won&#8217;t actually blink my LED. While it will let you set your name (and color if you don&#8217;t like the one it chooses), it will give you an error when you try to send some love to Christopher. (Hey, if I&#8217;m going to be working on this, might as well make it <em>my<\/em> sweetie.)<\/p>\n<p>The response page is ugly, I&#8217;m going to ask Electric Imp about making the response prettier. I don&#8217;t care too much about the no-id get-error version but the one with the real key just sends back a page with OK in it sans prettifying.<\/p>\n<p>Note that I met most of my goals: it is one page, settings are hidden after you put your name in, the cookie works (though Firebug can&#8217;t find it which is a pain for debugging). I also added my stretch feature of changing the button text on reload. That was easier than I expected and it amuses me.<\/p>\n<p>I updated the Electric Imp code so with the right key in the html, I can change the LED. But I&#8217;ve decided to use a PWM LED instead of my fancy I2C LED. That shouldn&#8217;t take too long (Electric Imp has RGB LED example code). Then I&#8217;ll combine it my USB chargeable LiPo, then put it all in a jar with some hotglue.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>One thing that I didn&#8217;t really get before working on my\u00a0thinking-of-you webpage: all web developers write OpenSource code. Once it is on the web, anyone can read it. Copyrights are fine but is copying someone else&#8217;s method of selecting colors of setting up a form or changing font colors for a section instead of a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"footnotes":""},"categories":[1],"tags":[52,43,5,8,34],"class_list":["post-997","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-ayok","tag-entrepreneur","tag-gadgets","tag-learning","tag-tech"],"_links":{"self":[{"href":"https:\/\/logicalelegance.com\/journey\/wp-json\/wp\/v2\/posts\/997","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/logicalelegance.com\/journey\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/logicalelegance.com\/journey\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/logicalelegance.com\/journey\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/logicalelegance.com\/journey\/wp-json\/wp\/v2\/comments?post=997"}],"version-history":[{"count":10,"href":"https:\/\/logicalelegance.com\/journey\/wp-json\/wp\/v2\/posts\/997\/revisions"}],"predecessor-version":[{"id":1026,"href":"https:\/\/logicalelegance.com\/journey\/wp-json\/wp\/v2\/posts\/997\/revisions\/1026"}],"wp:attachment":[{"href":"https:\/\/logicalelegance.com\/journey\/wp-json\/wp\/v2\/media?parent=997"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/logicalelegance.com\/journey\/wp-json\/wp\/v2\/categories?post=997"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/logicalelegance.com\/journey\/wp-json\/wp\/v2\/tags?post=997"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}