<?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>[Upcycle It] Nixie Display #11 - Display blog views and likes</title><link>/challenges-projects/design-challenges/upcycleit/b/blog/posts/upcycle-it-nixie-display-11---display-blog-views-and-likes</link><description>&amp;lt;&amp;lt; Previous Blog Index Next &amp;gt;&amp;gt; Time is going fast, and the project submission deadline approaches quickly. In order to finish the project as complete as possible I had a quick look at what the original plan was in my application:to add the I...</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: [Upcycle It] Nixie Display #11 - Display blog views and likes</title><link>https://community.element14.com/challenges-projects/design-challenges/upcycleit/b/blog/posts/upcycle-it-nixie-display-11---display-blog-views-and-likes</link><pubDate>Sat, 27 May 2017 09:16:35 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:2116b937-1d70-4751-8670-b8026ba12f44</guid><dc:creator>gpolder</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;First thing I saw this morning when entering my workspace &lt;span&gt;[View:/resized-image/__size/16x16/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-2116b937-1d70-4751-8670-b8026ba12f44/6175.contentimage_5F00_930.png:16:16]&lt;/span&gt;:&lt;/p&gt;&lt;p&gt;&lt;span&gt;[View:/resized-image/__size/620x302/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-2116b937-1d70-4751-8670-b8026ba12f44/0317.contentimage_5F00_184514.jpg:620:302]&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;In the mean time I also fixed a software error.&lt;/p&gt;&lt;p&gt;The line:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;em&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; blog_counts = views * &lt;/span&gt;&lt;span class="number"&gt;100&lt;/span&gt;&lt;span&gt; + likes&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Showed the expected value (075006), although the multiplication was wrongly set at 100 in stead of 1000.&lt;/p&gt;&lt;p&gt;How can that be?&lt;/p&gt;&lt;p&gt;The answer is that javascript does automatically type conversions (&lt;a class="jive-link-external-small" href="https://www.w3schools.com/js/js_type_conversion.asp" rel="nofollow ugc noopener" target="_blank" title="https://www.w3schools.com/js/js_type_conversion.asp"&gt;https://www.w3schools.com/js/js_type_conversion.asp&lt;/a&gt; ). Both &lt;em&gt;views&lt;/em&gt; and &lt;em&gt;likes&lt;/em&gt; are string values. multiplication of &lt;em&gt;views&lt;/em&gt; with 100 makes it a number, but &lt;em&gt;likes&lt;/em&gt; still is a string, so what we get here is 7500 + &amp;quot;6&amp;quot;, which makes &lt;em&gt;blog_counts&lt;/em&gt; a string again &amp;quot;75006&amp;quot;.&lt;/p&gt;&lt;p&gt;Solution is to convert likes to a number by multiplying it by 1:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;em&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; blog_counts = views * &lt;/span&gt;&lt;span class="number"&gt;1000&lt;/span&gt;&lt;span&gt; + likes * 1&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Now blog_count will become the number 75000 + 6 = 75006, which is right.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=3088&amp;AppID=147&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: [Upcycle It] Nixie Display #11 - Display blog views and likes</title><link>https://community.element14.com/challenges-projects/design-challenges/upcycleit/b/blog/posts/upcycle-it-nixie-display-11---display-blog-views-and-likes</link><pubDate>Sat, 27 May 2017 03:53:08 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:2116b937-1d70-4751-8670-b8026ba12f44</guid><dc:creator>dougw</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Super cool - bonus points and kudos for scraping the likes&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=3088&amp;AppID=147&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: [Upcycle It] Nixie Display #11 - Display blog views and likes</title><link>https://community.element14.com/challenges-projects/design-challenges/upcycleit/b/blog/posts/upcycle-it-nixie-display-11---display-blog-views-and-likes</link><pubDate>Sat, 27 May 2017 03:07:33 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:2116b937-1d70-4751-8670-b8026ba12f44</guid><dc:creator>jasonwier92</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;I&amp;#39;ll give you a view and a like! Great job.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=3088&amp;AppID=147&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: [Upcycle It] Nixie Display #11 - Display blog views and likes</title><link>https://community.element14.com/challenges-projects/design-challenges/upcycleit/b/blog/posts/upcycle-it-nixie-display-11---display-blog-views-and-likes</link><pubDate>Sat, 27 May 2017 00:25:11 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:2116b937-1d70-4751-8670-b8026ba12f44</guid><dc:creator>mcb1</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Great post.&lt;/p&gt;&lt;p&gt;The web scraping lends itself to so much.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I&amp;#39;m worried about your Rain Volume in the last 3Hr.&lt;/p&gt;&lt;p&gt;Here in Fiordland they measure annual rainfall in metres, so I hope your figure isn&amp;#39;t mm. &lt;span&gt;[View:/resized-image/__size/16x16/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-2116b937-1d70-4751-8670-b8026ba12f44/contentimage_5F00_3.png:16:16]&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;a class="jive-link-external-small" href="http://www.dunluce-fiordland.co.nz/Fiordland.html" rel="nofollow ugc noopener" target="_blank" title="http://www.dunluce-fiordland.co.nz/Fiordland.html"&gt;Fiordland National Park,World heritage National Park in New Zealand,&lt;/a&gt; &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Mark&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=3088&amp;AppID=147&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: [Upcycle It] Nixie Display #11 - Display blog views and likes</title><link>https://community.element14.com/challenges-projects/design-challenges/upcycleit/b/blog/posts/upcycle-it-nixie-display-11---display-blog-views-and-likes</link><pubDate>Fri, 26 May 2017 21:41:08 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:2116b937-1d70-4751-8670-b8026ba12f44</guid><dc:creator>DAB</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;I agree, the vintage nixie tubes are just too cool.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;DAB&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=3088&amp;AppID=147&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: [Upcycle It] Nixie Display #11 - Display blog views and likes</title><link>https://community.element14.com/challenges-projects/design-challenges/upcycleit/b/blog/posts/upcycle-it-nixie-display-11---display-blog-views-and-likes</link><pubDate>Fri, 26 May 2017 17:23:23 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:2116b937-1d70-4751-8670-b8026ba12f44</guid><dc:creator>carmelito</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Awesome post, this has got me thinking. I could do something similar using &lt;a class="jive-link-external-small" href="https://www.crummy.com/software/BeautifulSoup/" rel="nofollow ugc noopener" target="_blank"&gt;python-beautifulsoup&lt;/a&gt;, but looks like time is not on my side. Maybe, I will try this after the challenge. Thanks - Carmelito&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=3088&amp;AppID=147&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: [Upcycle It] Nixie Display #11 - Display blog views and likes</title><link>https://community.element14.com/challenges-projects/design-challenges/upcycleit/b/blog/posts/upcycle-it-nixie-display-11---display-blog-views-and-likes</link><pubDate>Fri, 26 May 2017 16:58:55 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:2116b937-1d70-4751-8670-b8026ba12f44</guid><dc:creator>balearicdynamics</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Great post! I love always more the nixies &lt;span&gt;[View:/resized-image/__size/16x16/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-2116b937-1d70-4751-8670-b8026ba12f44/contentimage_5F00_1.png:16:16]&lt;/span&gt; &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Take a look, what do you think to a hack to this &amp;#39;80s train station clock (don&amp;#39;t ask me how I got it) with some more tech info with a set of nixies in the middle? &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span&gt;[View:/resized-image/__size/1200x900/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-2116b937-1d70-4751-8670-b8026ba12f44/contentimage_5F00_184513.jpg:1200:900]&lt;/span&gt;&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=3088&amp;AppID=147&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: [Upcycle It] Nixie Display #11 - Display blog views and likes</title><link>https://community.element14.com/challenges-projects/design-challenges/upcycleit/b/blog/posts/upcycle-it-nixie-display-11---display-blog-views-and-likes</link><pubDate>Fri, 26 May 2017 16:23:10 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:2116b937-1d70-4751-8670-b8026ba12f44</guid><dc:creator>Workshopshed</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Perhaps the Edison could calculate pi and you could scroll it across the display?&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=3088&amp;AppID=147&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>