<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[A developer journal - Medium]]></title>
        <description><![CDATA[My experience as developer, IT manager and so on - Medium]]></description>
        <link>https://medium.com/a-developer-journal?source=rss----952c68ce36f5---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>A developer journal - Medium</title>
            <link>https://medium.com/a-developer-journal?source=rss----952c68ce36f5---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 06:16:26 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/a-developer-journal" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Twitter is crashing, will it be able to recover?]]></title>
            <link>https://medium.com/a-developer-journal/twitter-is-crashing-will-it-be-able-to-recover-7b015f6e73e3?source=rss----952c68ce36f5---4</link>
            <guid isPermaLink="false">https://medium.com/p/7b015f6e73e3</guid>
            <category><![CDATA[elon-musk]]></category>
            <category><![CDATA[future]]></category>
            <category><![CDATA[twitter]]></category>
            <dc:creator><![CDATA[Gian Luca Dalla Torre]]></dc:creator>
            <pubDate>Sun, 15 Jan 2023 19:12:30 GMT</pubDate>
            <atom:updated>2023-01-15T19:12:30.222Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Joke on Twitter, taken from Oatmeal (https://twitter.com/oatmeal/status/1594401424297033728)" src="https://cdn-images-1.medium.com/max/710/1*fse3vjN04h6X8x08KpwgHw.jpeg" /><figcaption>Joke on Twitter, taken from Oatmeal Twitter account</figcaption></figure><p>It has been several months since Twitter was acquired by Elon Musk, and the social network has undergone profound changes, not least of which is <a href="https://www.theinformation.com/articles/musks-twitter-intentionally-suspended-tweet-bot-third-party-apps-messages-show">the exclusion of third-party applications</a>, which allowed end user to use Twitter without been continously overwhelmed by ads.</p><p>It is undeniable that, compared to what it was less than a year ago, Twitter has changed in a confusing and radical way, and not all of its users are happy about it.</p><h3>Twitter before Musk’s acquisition</h3><p>Before the advent of the Musk era, Twitter was an <em>anomaly</em> compared to the more traditional social networks such as TikTok, Snapchat, Instagram, Facebook.</p><p>Twitter is the only social network where you can find the President of the United States and the Pope.</p><p>Its micro-messaging structure, organized in a continuous stream of information, has made it the place to comment on real-time events of any kind.</p><p>If there is an earthquake, there is a tweet that says where and when it happened. <br>If your national football team is winning a World Cup match, be sure that hundreds of people will be commenting on it on Twitter.</p><p>If something happens in the world, the first place where the news will be proposed (and commented on) will be Twitter.</p><p>This type of setting, combined with the fact that Twitter is mainly a text and image-based system, has made it unappealing for private companies.<br>Companies, in fact, cannot express their marketing potential in 280 characters and have focused on more visual platforms such as TikTok and Instagram.</p><p>Despite everything, in over 15 years of activity, the social network has created a community of over 200 million people (not gigantic but not negligible) and monetizing it has been the worry of those who had managed Twitter until the arrival of Musk.</p><p>Like all social networks, Twitter has its bills to pay, both in personnel and in hardware systems. And the classic way that all social networks use to finance themselves (profiling and advertising) is not easily applicable to Twitter. Until recently, Twitter was primarily financed by inserting advertising messages between tweets, but this was not sufficient and Twitter (as of March 2021, before Musk’s acquisition, <a href="https://finance.yahoo.com/news/twitters-debt-overview-162536543.html">the company’s debt was around $3.45 billion</a>).</p><p>In this situation, the $44 billion acquisition by Musk, could not have brought anything but joy to Twitter’s shareholders (at the time Twitter was publicly traded), but they were certainly not interested in what Twitter would become in the hands of the new CEO.</p><h3>Twitter after Musk’s acquisition</h3><p>Musk’s arrival was disruptive.</p><p>Those who were expecting an enlightened CEO who would listen to user demands (such as the edit button, for example) and a more concerted effort to fight the discrimination and hate that unfortunately pervade the platform, have been greatly disappointed.</p><p>Musk has a debt of $44 billion, which matures, in effect, $2 million in interest per day. <br>Like any entrepreneur, his first (and perhaps only) goal is to make money, not lose it. <br>Driven by this single mantra, he has made shocking choices but, from his perspective, necessary:</p><ul><li>He reduced Twitter’s workforce by over 70%, with a massive wave of layoffs. <br>The cuts were across all sectors. Developers, press office, moderation offices on fake news, on COVID, on hate within the platform were swept away in less than a month. <br>And, though from a technical point of view the platform held up, from a management point of view it was total chaos</li><li>He tried to monetize as much as possible, acting in a confusing manner and sending misleading messages to both users and investors. <br>In less than a month, after acquiring Twitter, he launched a subscription to acquire the blue checkmark (a label that, until before the acquisition, was only released by Twitter to people who were verified by the platform’s offices, to distinguish real users from those posing as them) which caused image damage, but also economic damage (a user, with the purchased blue checkmark, <a href="https://www.firstpost.com/explainers/explained-how-twitter-blue-chaos-cost-an-insulin-maker-billions-of-dollars-11638171.html">posed as the pharmaceutical company Elli Lilly stating that from that day they would market insulin for free</a>, causing a stock market crash of the same company)</li><li>He reactivated accounts on Twitter that had been closed for issues of hate and violence incitement (including that of Donald Trump) only to <a href="https://nypost.com/2022/12/02/kanye-west-suspended-from-twitter-after-swastika-post/">re-close them when they had again incited racial hate</a>.</li><li>Most recently, he blocked unofficial Twitter apps because they do not display advertisements and therefore are a potential loss for the platform. Even in this case, the choice was made in a sneaky way because<a href="https://www.macstories.net/stories/twitter-intentionally-ends-third-party-app-developer-access-to-its-apis/"> no announcement was made on the matter leaving users and app developers awaiting a fate of which the outcome is unknown</a></li></ul><p>While from a business perspective one can understand the reasoning behind certain choices, the way in which these choices are made, the timing, and the neglect in handling sensitive issues (especially letting go of those who were skilled in handling these issues) have raised serious doubts about the platform’s stability.</p><p>This instability has turned into uncertainty among Twitter’s traditional investors, who have decided, some temporarily and some permanently, to suspend advertising on the platform, creating an even more dire situation for the platform itself.</p><p>There have been recent reports that Twitter’s Singapore offices have been closed due to unpaid rent (although officially<a href="https://www.bloomberg.com/news/articles/2023-01-12/elon-musk-s-twitter-singapore-hq-workers-told-to-clear-desks-work-from-home?leadSource=uverify%20wall"> it has been announced as simply a cost-cutting measure</a>) and there are rumors that the Los Angeles offices may also be insolvent.</p><h3>Twitter Today</h3><p>What is Twitter today?</p><p>Without a doubt, it is a social network that is transforming from an atypical product to a bloated platform:</p><ul><li>Infused with advertising with a single point of access that forces the user to view it (eliminating third-party clients)</li><li>loaded with debt and with a bleak outlook given the recession expected this year (despite the impressive cut in workforce and constant attempts to reduce costs)</li><li>in search of its own identity, made in the image and likeness of its current CEO (Musk says everything and the opposite of everything about the platform’s technological innovation on a daily basis. As of now, any technical and corporate policy decision must be vetted by him personally before it can be implemented)</li></ul><p>From the perspective of the users, I don’t think there is the perception of what is happening on the platform, for 90% of the users nothing has changed.</p><p>For those of us who have seen this social network born and grow, today we see great confusion and a desperate attempt, by Musk, to recover the money of an investment that, perhaps, he did not even expect to be so disastrous.</p><p>Despite<a href="https://news.yahoo.com/elon-musk-searching-ceo-run-192735523.html"> the announcement of seeking a new CEO</a> to take Twitter forward (and it will not be easy to find someone to step on a sinking ship), Elon Musk is dedicating heart and soul to forge Twitter in his own way, but with disappointing economic and technical results so far.</p><p>One wonders, in light of the deep changes of the last year, if Twitter will be able to find its new identity and maintain its user base.</p><p>The signs are not all positive. The alternative network to Twitter, <a href="https://joinmastodon.org/">Mastodon</a>, since Musk’s acquisition has seen a steady increase in its users, tired of Musk’s diva behavior, and today it counts 8 million users, far from the 200 of Twitter, but still a sign of discontent. <br>Furthermore, some companies like General Motors, Volkswagen, Audi and Pfizer have suspended advertising on Twitter and have no longer invested in the platform.</p><p>It must be said that Elon Musk has also been able to perform magic from an entrepreneurial point of view:</p><ul><li>SpaceX rockets were not even taking off at the beginning of the acquisition and now the company is the only private contractor of NASA</li><li>Tesla has been radically transformed to be the pioneering company for autonomous driving and fully electric cars. <br>Although it is no longer the market leader today, for years we have seen car manufacturers chasing what Musk had already done here.</li></ul><p>The question remains if he will be able to make magic in this sector too, although the initial impressions are certainly not the best.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7b015f6e73e3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/a-developer-journal/twitter-is-crashing-will-it-be-able-to-recover-7b015f6e73e3">Twitter is crashing, will it be able to recover?</a> was originally published in <a href="https://medium.com/a-developer-journal">A developer journal</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[PostgreSQL 10 explained from who really support it]]></title>
            <link>https://medium.com/a-developer-journal/postgresql-10-new-feature-347e7ab71560?source=rss----952c68ce36f5---4</link>
            <guid isPermaLink="false">https://medium.com/p/347e7ab71560</guid>
            <category><![CDATA[itpug]]></category>
            <category><![CDATA[2ndquadrant]]></category>
            <category><![CDATA[postgres]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[support]]></category>
            <dc:creator><![CDATA[Gian Luca Dalla Torre]]></dc:creator>
            <pubDate>Sun, 15 Oct 2017 15:48:30 GMT</pubDate>
            <atom:updated>2017-10-16T16:38:54.555Z</atom:updated>
            <content:encoded><![CDATA[<h3>PostgreSQL 10 explained from who really support it — The italian PG Day</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0TJ8h32FUYKjApYzzUB0NA.png" /></figure><p>Some day ago I was invited to the <a href="http://2017.pgday.it/en/"><em>Italian PGDay</em></a>, which is a convention organized by <a href="http://www.itpug.org/index.it.html">ITPUG — ITalian PostgreSQL Users Group</a> on PostgreSQL.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6x5CiPVc5mf1DFLBelvNSQ.jpeg" /><figcaption>Marco Nenciarini, president of ITPUG, introduces #PGDayIT</figcaption></figure><p>During this meeting a great staff has introduced <a href="https://www.postgresql.org/">PostgreSQL 10</a>, which has been <a href="https://www.postgresql.org/about/news/1786/">recently released</a>. A lot of interesting arguments had been discussed and there was a bunch of great speech I had attend. This is the summary of a worthwhile day I spent in Milan that enhanced my knowledge on PostgreSQL.</p><h3>The Gaia Project and Postgres — XL</h3><p>The first speech was attended by <em>Krzysztof Nienartowicz</em>, tech leader of the Gaia Data Processing Centre in Geneva (A division of European Space Agency) which introduced us to its work which is, basically, store a tons of data gathered from Gaia Project’s incredible technologies.</p><p>In this area <a href="https://www.postgres-xl.org/">Postgres — XL</a>, a fork of PostgreSQL specifically designed to deal with huge amount of data, has been proved to be a very useful allied. Their cluster, based on this technology, will eventually store <strong>petabytes</strong> of data!</p><p>Even if that this kind of application is very far from my daily experience, I was very interested about how this throughput of data is handled. Moreover Postgres — XL could be considered a mature project that can be safely used in production.</p><h3>New on Postgres 10: Parallelized index scan</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tpOepIGDa-9sv-KHDedVlw.jpeg" /></figure><p>The second speech I attended was the one held by <a href="https://www.linkedin.com/in/gbroccolo7/"><em>Giuseppe Broccolo</em></a> which unveiled some of the new feature of PostgreSQL 10: indices that uses parallelization to fetch data.</p><p>This speech was very helpful because Giuseppe, before talking about the news on Postgres 10, took a deep journey on indices supported by Postgres and how they works. Moreover, he explained the importance of choosing the right index by comparing costs and benefits of every index type.</p><p>The PostgreSQL 10 part also vas very interesting. The index parallelization works like <em>map — reduce</em> and can effectively speeds up data fetching. But all that glitters is not gold: if not properly tuned on your hardware, PostgreSQL parallelization can slow down your searches.</p><h3>PostgreSQL replication: the present and the future</h3><p><a href="https://www.linkedin.com/in/simonat2ndquadrantdotcom/">Simon Riggs</a> speech is always the most attended one, partly because he is one of the major developer of PostgreSQL itself but mostly because he always describes what it will be going on in the Postgres development. And even this year its talk had not failed expectations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L4K1rUQTBbZQ6QUZopOfpw.jpeg" /></figure><p>He focused mainly on PostgreSQL replication system and in particular <em>master — master</em> replication.</p><p>As you probably now, <em>hot standby</em>, the tecnology that permits to PostgreSQL to create a <em>master — slave</em> replication is already present into the core of PostgreSQL (fully opensource) since ages, what is missing yet is the <em>master — master</em> one.</p><p>In fact a logical replication has been created from 2ndQuadrant with the <a href="https://www.2ndquadrant.com/en/resources/pglogical/"><strong>pglogical</strong></a> project since PostgreSQL 9.4 (this is an extension to PostgreSQL that permits master to slave replication without any trigger or any query replication, but it is not a master to master replication) and there is also <a href="https://www.2ndquadrant.com/en/resources/bdr/"><strong>Postgres-BDR</strong></a><strong>, </strong>an extension available for PostgreSQL 9.6 and beyond that allows multi master replication using a publish — subscribe mechanism (only for data now, DDL is not yet supported), also developed by 2ndQuadrant.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KpnCvOKUCoKaUiJySAZh_Q.jpeg" /></figure><p>Both of these technologies had been used successfully in production environment by 2ndQuadrant for years, but they are not available as core code for the project yet.</p><p>Simon stated a detailed roadmap on when these technology will be possibly ready for the core project and obviously 2ndQuadrant will push to include these features on main PostgreSQL project as soon as they can.</p><p>For now these technologies has to be used carefully, not because they are unstable (they are not) but because they require extra fine tuning on your servers.</p><h3>Business continuity with PostgreSQL</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gIapwcV3Noe4NIpZa7GVfg.jpeg" /></figure><p>The next speech I attended was the one held by <a href="https://www.linkedin.com/in/gbartolini/">Gabriele Bartolini</a>, Head of Support of 2ndQuadrant, and focused on how secure it is your PostgreSQL installation, expecially when the focus is disaster recovery and business continuity.</p><p>In this area PostgreSQL offer many options but often, due to misconfiguration or sysadmin laziness, the system is not as secure as you think.</p><p>Starting with <em>logical backup</em> with <em>pg_dump</em> to the more reliable <em>physical backup</em> with <a href="https://www.postgresql.org/docs/current/static/continuous-archiving.html"><em>PITR</em></a>, there is always a change that your backup will not work, mainly because you have to test it before considering it safe (maybe using a spare server).</p><p>If you also want <em>business continuity</em> then a <a href="https://www.postgresql.org/docs/10/static/hot-standby.html"><em>hot standby</em></a> is the minimum setup your company require.</p><p>In order to help your sysadmin to setup these environments, 2ndQuadrant had developed a great open source tool of backup and business continuity management called <a href="http://www.pgbarman.org/"><strong>barman</strong></a>, which deserves an extensive try.</p><h3>Installing PostgreSQL with Ansible</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FENEPQApYPngdzsTAFu29g.jpeg" /></figure><p><a href="https://www.linkedin.com/in/denis-gasparin-19395817/">Denis Gasparin</a> from Smart Solutions talked about installing PostgreSQL in a repeatible way using <a href="https://www.ansible.com/"><strong>Ansible</strong></a><strong>.</strong></p><p><em>Ansible</em> is an agentless automation program that permits repeatible operations on a set of servers.</p><p>Using this tool that is full of modules that already automate common operations, it is quite easy to create a procedure that install a server from scratch (even on Amazon, Google or Microsoft cloud services) and tune up a PostgreSQL installation ready to work.</p><p>Denis, moreover, has extended Ansible with its <a href="https://github.com/rtshome/ansible_pgsql">own modules</a> (called <em>roles </em>in Ansible systems) to execute queries inside the newly created environment.</p><h3>Benchmarking your hardware for PostgreSQL</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NrBJHXF1Wq18naNVL2JJqQ.jpeg" /></figure><p><a href="https://www.linkedin.com/in/jonathanbattiato/">Jonathan Battiato</a> from 2ndQuadrant pointed out on its speech the importance of benchmarking the hardware you will use for your server installation.</p><p>Finding bottleneck, hardware failure and the best tuning option for your server can really improve how PostgreSQL will behave on that machine.</p><h3>Disaster recovery: <em>A Series of Unfortunate Events</em></h3><p>In order to end this day with a smile on our face, <a href="https://www.linkedin.com/in/leonardo-cecchi-54b0a396/">Leonardo</a>, <a href="https://www.linkedin.com/in/gcalacoci/">Giulio</a> and <a href="https://www.linkedin.com/in/francescocanovai/">Francesco</a> told us their experience on disaster recovery with their costumers when something was wrong.</p><p>What I really learned from this talk:</p><blockquote><strong>I really want a hot stand by server</strong>!</blockquote><h3>Conclusion</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/646/1*3sUoDQetSRNSYyKPx7iIhg.png" /></figure><p>The Italian PGDay has been very interesting. A lot of food for thought has been offered by 2ndQuadrant guys, expecially for yhour data security and what the future will bring to us from PostgreSQL.</p><p>I am reconsidering some choices we made after these speech, hopefully their experience will help me to improve my IT structure.</p><p>See you next year on Garda Lake!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=347e7ab71560" width="1" height="1" alt=""><hr><p><a href="https://medium.com/a-developer-journal/postgresql-10-new-feature-347e7ab71560">PostgreSQL 10 explained from who really support it</a> was originally published in <a href="https://medium.com/a-developer-journal">A developer journal</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Welness seen by an IT Engineer]]></title>
            <link>https://medium.com/a-developer-journal/welness-seen-by-an-it-engineer-966152509b48?source=rss----952c68ce36f5---4</link>
            <guid isPermaLink="false">https://medium.com/p/966152509b48</guid>
            <category><![CDATA[sports]]></category>
            <category><![CDATA[sports-tech]]></category>
            <category><![CDATA[fitness]]></category>
            <category><![CDATA[health]]></category>
            <category><![CDATA[personal-development]]></category>
            <dc:creator><![CDATA[Gian Luca Dalla Torre]]></dc:creator>
            <pubDate>Sat, 16 Sep 2017 12:06:40 GMT</pubDate>
            <atom:updated>2017-09-16T12:06:39.846Z</atom:updated>
            <content:encoded><![CDATA[<h3>Wellness seen by an IT Engineer</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QkPcGXyYnawymKWKjaS_MA.jpeg" /></figure><p>This is that time of the year that, after a deserved holiday period, you reckon with your weight scale.<br>I did it and what I saw was not so cute, <em>I weighted too much</em>.</p><p>In fact, even if I do <em>kettlebell training </em>(if you are interested I use the <a href="http://www.strongfirst.com/">StrongFirst tecnique</a>) <em>on a regular basis</em>, I enjoy too much eating and the results of my lifestyle are clearing blinking on my weight scale display.</p><p>This leads me to make a decision: <em>I need to get back into shape</em>.</p><h3>The engineer inside me</h3><p>I am an optimist by nature, I used to think that every problem has a solution.</p><p>I am also an Engineer and I tend to see a problem like something that have a cause and an effect.<br>In my case, I weight too much because I assume a lot of calories, more than that I can burn daily. The solution is simple and made by two points:</p><ul><li>I have to introduce less calories into my body</li><li>I have to burn more calories as possible during the day</li></ul><p>The first part is quite simple in theory (although it is very hard on reality); choose a food plan with fixed calories and do it. In my case I already have a plan for 1.700 calories a day (I am an habitual) and I am stuck on it.<br>The second part requires some daily fitness exercises added to my usual workout.</p><p>Moreover, as engineer, I would like to monitor and measure my progress both in lost weight and burnt calories.</p><h3><strong>The IT Guy inside me</strong></h3><p>As I mentioned I want to monitor burnt calories and weight. I want also track records of my progresses.</p><p>For the first part I needed a way to monitor my hearth pulse during activity and estimate calories burnt. I wanted also a device that can track some data into my <em>iPhone</em> (I am an Apple Guy but the sotware and hardware I use can be easily found also for Android devices), particularly I want to use the <em>Apple Healthkit </em>to store data into <em>Apple Health</em> application (which will be my data store).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*VT3fGYYELY3iLVsVRg60vA.jpeg" /><figcaption>Xiaomi MI Band 2</figcaption></figure><p>I do not want to spend a lot of money on this monitoring device, mostly because I am quite lazy and, if I will give up, I will not regret about how much money I spent.</p><p>My choice has fallen upon <a href="http://www.mi.com/en/miband2/"><em>Xiaomi Mi Band 2</em></a>. This device has a pedometer, an heartbeat tracker and a sleep analyzer wrapped into a tiny band. Moreover, it costs less than 50 €.</p><p>I read a lot about this device and it has a great value for money. Obviously it can not stand with professional devices (which costs notably more of this band) but it is quite accurate with its measurement. Also <a href="https://itunes.apple.com/us/app/mi-fit/id938688461?mt=8">its software for Apple</a> is quite simple and integrated with <em>Apple Healthkit: </em>every measurement the device can take is synchronized with <em>Apple Health </em>instantly<em>.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/937/1*Wjv1PON2zXTw-C4u6Y8TgQ.png" /><figcaption>MI Heart rate Software for iOS</figcaption></figure><p>The only thing I missed on this device was the abilty to be used as a continouous heartbeat tracker that could be paired to <a href="https://www.runtastic.com/">Runtastic</a>. I was not blaming the device for this missing feature. The device itself is quite cheap and I can not pretend too much from it but, after digging into Apple Store, I found <a href="https://itunes.apple.com/us/app/mi-heart-rate-continuous-monitoring-be-fit/id1074341151?mt=8"><em>Mi Heart rate continues monitoring</em></a>. This software does exactly what I want, it pairs the band with health software and the device becomes a continuous heartbeat tracker.</p><p>It has a free version that monitors heart for ten minutes and a cheap in-app purchase that will unlock all the features, such as <em>Apple Healthkit integration</em>. Using this software I gained continous heartbeat tracking that usually costs a lot more (this feature is available only with heart rate monitor chest straps).</p><p>Having set up my monitor system, I focused on storing my possible weight loss. I needed an application that could be a sort of diary for my weight, used to check if I am performing well or not. Also, this software has to interact with <em>Apple Healthkit</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/958/1*0-HnELIAaQErfoqU1xzf0Q.png" /><figcaption>Happy Scale on iOS</figcaption></figure><p>To be honest the MI Band software also has weight tracking functionality (because they sell also a MI scale which interacts with it), but it merely tracks the weight, it is not able to compute trends nor define time — goals.</p><p><a href="https://itunes.apple.com/us/app/happy-scale-weight-loss-tracker-trend-prediction/id532430574?mt=8"><em>Happy Scale</em></a>, on the contrary, is able to do what I was looking for. I bought this software (also this one is not expensive at all) and completed my hardware — software suite.</p><p>After I had satisfied the IT Guy that lives in me, I had to use what I have bought.</p><h3>The not so sportsman inside me</h3><p>As I said before, I want to pair my actual <em>StongFirst</em> training with some daily activity to boost my calories consumption.<br>Since I am not a fan of running, I rejected the idea of going outside every day trying to run, barely breathing because I have no stamina at all. Moreover my knees will surely be wrecked by this activity since I weight too much to run properly right now.</p><p>So I focused into a <a href="https://en.wikipedia.org/wiki/High-intensity_interval_training">HIIT</a> activity I can manage in the morning, before going to work. <br>There are plenty of videos on Youtube that can teach you a lot of exercises that you can do without any kind of equiment (the only equipment I bought was a <em>yoga mat</em>). I am currently doing some of these exercises:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FMrV4vCotio0%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DMrV4vCotio0&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FMrV4vCotio0%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/bb6d44be596025968ac97c007b390271/href">https://medium.com/media/bb6d44be596025968ac97c007b390271/href</a></iframe><p>Aside the inital awkwardness and laziness, I managed to do this everyday workout just after woke up and I am still doing it!</p><h3>After a month…</h3><p>It is almost a month I engaged myself in doing more fitness and eating less food and <strong>it worked!</strong></p><p>At the beginning I was very puffy and weight loss was quick, now I have <em>a costant weight lost around 0,8kg a week</em>. <br>The Abs Workout is a daily routine right now; at the beginning it was very hard, now it is better (however it is still hard) and my stubbornness helped a lot on doing this exercises.<br>Kettlebell workout is always on the stage, and it is also helping a lot.</p><p>Moreover in <em>Apple Health</em> I have all the history of my progresses, which in case I will post on next articles, that I proudly admire and use to monitor if I am improving or not.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=966152509b48" width="1" height="1" alt=""><hr><p><a href="https://medium.com/a-developer-journal/welness-seen-by-an-it-engineer-966152509b48">Welness seen by an IT Engineer</a> was originally published in <a href="https://medium.com/a-developer-journal">A developer journal</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Is cryptography really a pain for end user?]]></title>
            <link>https://medium.com/a-developer-journal/is-cryptography-really-a-pain-for-end-user-4bd7cac8ed58?source=rss----952c68ce36f5---4</link>
            <guid isPermaLink="false">https://medium.com/p/4bd7cac8ed58</guid>
            <category><![CDATA[telegram]]></category>
            <category><![CDATA[encryption]]></category>
            <category><![CDATA[whatsapp]]></category>
            <category><![CDATA[google]]></category>
            <category><![CDATA[security]]></category>
            <dc:creator><![CDATA[Gian Luca Dalla Torre]]></dc:creator>
            <pubDate>Sun, 05 Mar 2017 14:57:38 GMT</pubDate>
            <atom:updated>2017-03-05T14:57:37.591Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3HOz61QwDZUgQvZL6ee25A.jpeg" /></figure><p>Some days ago an <a href="http://incoherency.co.uk/blog/stories/gpg.html">interesting article</a> popped up on <a href="https://news.ycombinator.com/">Hacker News</a>. It dealt with how difficult for an end user was to setup mail encryption on its favorite mail client.</p><p><strong>It took two hours to the blogger to finally send an encrypted email</strong> to his recipient. This was partially due to a bug inside the software he used to crypt the email but mostly because he barely understood how asymmetric encryption works.</p><h3>Asymmetric encryption is quite complex…</h3><p>In fact, <a href="https://en.wikipedia.org/wiki/Public-key_cryptography">asymmetric encryption</a> is not a user friendly topic. Assuming you have understood exactly how it works, if you have to send an encrypted mail you have to:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/615/1*t_VUrqFDJstyrvZh-6C2JA.jpeg" /><figcaption>Encryption on WW2: the Enigma Machine used by Nazi, this was painful to use!</figcaption></figure><ul><li>generate a public and private key</li><li>find a suite of tools that handles encryption</li><li>upload your public key to a server in order to distribute it to other people who want to write to you</li><li>find and download the public key of your recipient (using the server mentioned above)</li><li>use you suite to encrypt the mail</li><li>Send the encrypted mail</li></ul><p>As you can see, <strong>a lot of work have to be done in order to be able to send encrypted mail</strong> and, even to a skilled person who knows the topic, <strong>it took a fairly amount of time to setup the encryption environment</strong>.</p><h3>… but it is used every day!</h3><p>While encrypting a mail message using a custom generated key pair is quite a mess, <strong>there are other asymmetric encryptions applied to everyday routine that probably no one notice at all</strong>.</p><p><a href="https://en.wikipedia.org/wiki/HTTPS">HTTPS Protocol</a> is an example of transparent cryptography. As you may known it is used to secure the communication between your browser and the server who is providing contents so, if you are providing sensitive data such as passwords or credit cards, it ensures that no one except you and the site owner could read the data transmitted.<br>This protocol uses asymmetric encryption (precisely, it uses an handshake with asymmetric encryption and then a symmetric encryption once a shared key is exchanged using the handshake, but this is technical jargon), but <strong>your browser</strong> does not ask to anybody to generate key pair, it generates temporary keys all by itself and, moreover, it <strong>handles all the hassle of cryptography in real time without changing the user experience</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*qhnQjZMGxp1CiQACHikqpw.jpeg" /></figure><p>Instant messaging program like <a href="https://www.whatsapp.com/">WhatsApp</a> (with a variation of <a href="https://en.wikipedia.org/wiki/Double_Ratchet_Algorithm">Double Ratchet Algorithm</a>), <a href="https://telegram.org/">Telegram</a> (with <a href="https://core.telegram.org/api/end-to-end">MTProto</a>, a custom asymmetric — symmetric cryptography) and <a href="https://whispersystems.org/">Signal</a> (with <a href="https://en.wikipedia.org/wiki/Signal_(software)#Encryption_protocols">Axolotl</a>, a variation of Double Ratchet Algorithm) uses cryptography for every message you send and receive. <br>And yet, you are not generating any key pair on this apps nor you have to do something special to use cryptography.</p><p><strong>All these programs uses cryptography out of the box without annoying the end user with complex procedures</strong>.</p><h3>Is cryptography a technical problem or a business one?</h3><p>So, there is a strange contrast. <br>On a side encryption is really cumbersome, expecially when deal with email, on the other one it is so easy that you even notice you are using it.</p><p>Why business like Google, Facebook and others encourage the use of certain encryption (by marking <a href="https://security.googleblog.com/2016/09/moving-towards-more-secure-web.html">insecure the site is not using HTTPS</a>) and strongly refuses mail encryption?</p><p>In my opinion the answer is simple, encryption on business-controlled network, for companies, is a good thing. It permits to share credit card data and passwords in a safely manner; the communication between user and company is secured and, in meantime, companies gathers data they need for business.<br>From a company perspective it is a win win position.</p><p>On the contrary, if a user encrypts data using a pair of keys a company can not access, data will be unreadable. <br>A company cannot do business on that data, they are useless. <br>If you encrypt a mail using your personal key and store it on GMail, Google is unable to read that mail, and their advertising algorithms cannot understand your tastes. <br>This is a lose lose position for Google (they maintain a service and they not do business on that) and this is why they are not making email encryption easy.</p><p>Facebook do the same thing, it gives you a messenger application (Whatsapp and Messenger) where, even if the message you write are encrypted and urnreadable (but I am not so sure about that, and<a href="http://www.dailymail.co.uk/sciencetech/article-4117328/Facebook-read-private-WhatsApp-messages-Security-flaw-means-texts-intercepted-governments-hackers.html"> I am not the only one</a>), it gathers sensitive data like phone numbers and geo position (and <a href="https://www.whatsapp.com/faq/general/28030012">they will use that information</a>).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/695/1*WrOlEl3zjVJRKs9uVbB4yg.jpeg" /><figcaption><a href="https://propakistani.pk/2016/12/13/google-facebook-control-half-online-ad-market/">Google and Facebook control of advertising market</a></figcaption></figure><p>Google and Facebook dominates the advertising market (these companies reach the 60% of the market). <strong>To mantain their leadership they have to deliver good advertising</strong> and to do so <strong>companies need your personal data</strong>, they use it to personalize advertising, know your tastes, know where you are. <strong>When they owe your personal data, they know how to sell things to you</strong>.</p><p>Using companies point of view, if the encryption is useful to their business it will be implemented such as a kid can use it.<br>But if encryption could mine their business, they will at least ignore it.</p><p>This is why you will never see an <em>encrypt and sign</em> button on GMail.</p><p>If an user want to use encryption for its needs, it has to face to study and implement encryption hard way, such as <a href="http://incoherency.co.uk/blog/stories/gpg.html">James Stanley</a> has done.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4bd7cac8ed58" width="1" height="1" alt=""><hr><p><a href="https://medium.com/a-developer-journal/is-cryptography-really-a-pain-for-end-user-4bd7cac8ed58">Is cryptography really a pain for end user?</a> was originally published in <a href="https://medium.com/a-developer-journal">A developer journal</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Front-End Developer Handbook]]></title>
            <link>https://medium.com/a-developer-journal/front-end-developer-handbook-b76338fb46de?source=rss----952c68ce36f5---4</link>
            <guid isPermaLink="false">https://medium.com/p/b76338fb46de</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[ebook]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[ebooks]]></category>
            <dc:creator><![CDATA[Gian Luca Dalla Torre]]></dc:creator>
            <pubDate>Sat, 11 Feb 2017 12:02:59 GMT</pubDate>
            <atom:updated>2017-02-11T12:02:58.697Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ck8YLaq62OZoQVRpK_bcSg.jpeg" /></figure><p>Thanks to my friend <a href="https://www.linkedin.com/in/acasaccia/">Andrea Casaccia</a>, who found this eBook, I am reading <a href="https://www.gitbook.com/book/frontendmasters/front-end-handbook-2017/details"><em>Front-End Developer Handbook 2017</em></a><em>.</em></p><p>This eBook is really worth reading. It is about the practice of Front-end development. It states which knowledge and tools a Front-end Developer should know in 2017.</p><p>With a lot of follow-up links, this eBook is giving me a lot of foods of thoughts on what me and my team will focus over the next years.</p><p>Definitively an engaging reading.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b76338fb46de" width="1" height="1" alt=""><hr><p><a href="https://medium.com/a-developer-journal/front-end-developer-handbook-b76338fb46de">Front-End Developer Handbook</a> was originally published in <a href="https://medium.com/a-developer-journal">A developer journal</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Fake news or lazy people?]]></title>
            <link>https://medium.com/a-developer-journal/fake-news-or-lazy-people-2038da357945?source=rss----952c68ce36f5---4</link>
            <guid isPermaLink="false">https://medium.com/p/2038da357945</guid>
            <category><![CDATA[journalism]]></category>
            <category><![CDATA[social-media]]></category>
            <category><![CDATA[fake-news]]></category>
            <dc:creator><![CDATA[Gian Luca Dalla Torre]]></dc:creator>
            <pubDate>Sun, 08 Jan 2017 12:16:33 GMT</pubDate>
            <atom:updated>2017-01-08T12:16:33.227Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H-npGwrpyK7286uIcU2tPQ.jpeg" /></figure><p>Recently in Italy, the place where I live, a debate on fake news have arisen.</p><p>It is associated to politics: <a href="http://www.movimento5stelle.it/">MoVimento 5 Stelle</a> (which, as surveys state, it is the first political italian party) is constantly attacked by politicized media and journalists. These powerful actors craft fake news against the MoVimento while hiding real corruption facts associated to the other parties they are supposed to work for. This, of course, <a href="http://www.beppegrillo.it/2017/01/una_giuria_popolare_per_le_balle_dei_media.html">according to the public statement from its leader</a>.</p><p>Fake news is not only an Italian problem, during the last election of The President of United States, <a href="https://www.facebook.com/">Facebook</a> had to deal with this problem. <br>A problem on which even <a href="https://www.facebook.com/zuck/posts/10103253901916271">Mark Zuckerberg had expressed his concerning</a>: he admitted that not only the problem exists, but also that Facebook is working hard on find a solution for fake news.</p><p>Honestly, I doubt that fake news will be eradicated by Artificial Intelligence in the near future: a lot of problem have to be solved before this could be applied but, how about our Natural Intelligence?</p><p>When I read (or see) a news that is of some interest to me, I read it carefully. I always apply some rules of thumb that helps me to debunk a fake news rather quickly.</p><h3>Check the news on multiple sources</h3><p>A relevant news is always reported multiple times. <strong>If the fact can not be found on other sites or on </strong><a href="https://www.google.com/"><strong>Google Search</strong></a><strong>, then it is probably a <em>hoax</em></strong>. <br>In fact <em>Google itself would index a fake news as a hoax</em>, so it is relative easy to find a fake news.</p><p>If the news is present in multiple sources, you should take some spare time and <em>read the source you found.</em></p><h3>Differences between opinions and facts</h3><p>Every news contains a fact and some writer opinions.</p><p><em>The fact is what is happened or what exists</em>, whether or not someone write about it.<br><em>The opinion</em>, on the other hand, <em>is what the reporter thinks about the fact</em>. It is normal that a fact creates multiple opinions and usually opinions are very different because they depends from people background (its life, its scholarship, its social background, its family, its political party and so on).</p><p>To have a clear vision of the news, <strong>the reader should recognize the fact inside the opinions bubble</strong> and the quickest way to do that is read multiple sources of the news. Once the reader have the great picture of the news, it is easy to recognize the fact from the various opinions.</p><h3>No one is omniscient</h3><p>As a experienced IT professional, when I read some IT related news written from non IT journalist I feel somehow frustrated. Usually the news is filled with inaccuracies and, in the worst case, with errors.</p><p>The problem is that a fairly complex concept is explained to a person who do not have the basis to understand the topic. This person would write only what it has understand on the matter (which is not the real fact, unfortunately).</p><p><strong>If the reader assumes that no reporter is omniscient</strong> (if these behaviour is revised in my field of competence, I assume that every news about politics, medicine, engineering, law… have the same flaws), <strong>almost every news reported is not accurate</strong>.</p><p>Again, <strong>the only way to get a general and trustworthy news is to read multiple sources and gather a general picture on the topic </strong>(if you prefer you could graduate in every topic, but I think the first option is somehow quicker).</p><h3>Your opinion on real fact</h3><p>Debunk a fake news is a relative simple task but it requires time and the use of your brain.</p><p>If you find a news which contains opinions, <strong>do not make it as yours</strong>, <strong>make your opinion</strong>. You should find the news on multiple source and read them; find the fact (not the opinions) and make your opinion on it using your intelligence. This way not only you will know if a news is a fake or not, but you could have a fairly good opinion on it.</p><p><strong>The real truth is people tends to be lazy and they prefer that someone thinks for them</strong>. It is easier to repeat a news or a motto from a political party then search for news and analyze them.</p><p>Seriously, do you really think that fake news spread is due to magic actors that craft news? <br>Or is it due to people laziness that prefer ignore the facts and become parrots of others opinions?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2038da357945" width="1" height="1" alt=""><hr><p><a href="https://medium.com/a-developer-journal/fake-news-or-lazy-people-2038da357945">Fake news or lazy people?</a> was originally published in <a href="https://medium.com/a-developer-journal">A developer journal</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Remember to load your kernel modules at boot]]></title>
            <link>https://medium.com/a-developer-journal/module-load-boot-centos-6-20a013e80b2b?source=rss----952c68ce36f5---4</link>
            <guid isPermaLink="false">https://medium.com/p/20a013e80b2b</guid>
            <category><![CDATA[centos]]></category>
            <category><![CDATA[kernel]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[modules]]></category>
            <dc:creator><![CDATA[Gian Luca Dalla Torre]]></dc:creator>
            <pubDate>Wed, 04 Jan 2017 19:37:53 GMT</pubDate>
            <atom:updated>2017-01-04T19:37:52.676Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V88_Y2VyTfupaH8PdFrZhw.jpeg" /></figure><p>During my holiday I had a server rebooted due to a scheduled mainteinance of my service provider.</p><p>This server was a steady one, this was the first reboot after over an year.</p><p>After the reboot, suddently some scripts stopped working. A kernel module was not loaded at boot time, causing a partial block of network connectivity.</p><p>Probably, when I setup the server over a year ago, I loaded the module manually using modprobe and I forgot to set it up at boot time.</p><p>So if you are using <strong>CentOS 6.x</strong> branch and you have to load a kernel at boot please remember to create an <em>executable script</em> called &lt;<strong>your_module&gt;.modules<em> </em></strong>into /etc/sysconfig/modules directory.</p><p>Then your file should contains this line of code:</p><pre>#!/bin/sh</pre><pre>exec /sbin/modprobe &lt;your_module&gt; 2&gt;&amp;1</pre><p>This way <em>CentOS </em>will load your kernel modules at boot.</p><p>More on this on <a href="https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/sec-Persistent_Module_Loading.html">Red Hat documentation online</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=20a013e80b2b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/a-developer-journal/module-load-boot-centos-6-20a013e80b2b">Remember to load your kernel modules at boot</a> was originally published in <a href="https://medium.com/a-developer-journal">A developer journal</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Google Drive in Linux (or OSX, or Windows) CLI]]></title>
            <link>https://medium.com/a-developer-journal/google-drive-cli-4b6e18e45771?source=rss----952c68ce36f5---4</link>
            <guid isPermaLink="false">https://medium.com/p/4b6e18e45771</guid>
            <category><![CDATA[bash]]></category>
            <category><![CDATA[cli]]></category>
            <category><![CDATA[google-drive]]></category>
            <category><![CDATA[raspberry-pi]]></category>
            <category><![CDATA[linux]]></category>
            <dc:creator><![CDATA[Gian Luca Dalla Torre]]></dc:creator>
            <pubDate>Mon, 02 Jan 2017 09:32:24 GMT</pubDate>
            <atom:updated>2017-01-02T09:32:24.020Z</atom:updated>
            <content:encoded><![CDATA[<p>An interesting project I bump info is <a href="https://github.com/prasmussen/gdrive">gdrive</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/200/1*SRtHKKRCk2jrmId3ikqsyg.png" /></figure><p>I was looking for a <em>quick and dirty</em> command that allows me to interact with a <a href="https://www.google.com/intl/en_ALL/drive/">Google Drive</a><em> directly from Command Line Interface </em>and I found this project on Github.</p><p>Written completely in <a href="https://golang.org/"><em>go</em></a>, gdrive has precompiled binaries for almost every operating system, from <em>Microsoft Windows</em> to <em>Arm based Linux</em> like <em>Raspbian</em>.</p><p>gdrive home page describes minutely how to install and use the command line interface but, basically, it works like <a href="https://git-scm.com/">git</a> by <em>pushing</em> and <em>pulling </em>data from Google Drive.</p><p>I had tested it with a freshly created Google Drive and it worked flawlessly.<br>It behaves quite well using either a bunch of small files or a single larger one.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4b6e18e45771" width="1" height="1" alt=""><hr><p><a href="https://medium.com/a-developer-journal/google-drive-cli-4b6e18e45771">Google Drive in Linux (or OSX, or Windows) CLI</a> was originally published in <a href="https://medium.com/a-developer-journal">A developer journal</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Fixed splash screen with network information after Raspbian Boot]]></title>
            <link>https://medium.com/a-developer-journal/raspberry-pi-fixed-splash-screen-after-boot-d171fce6e167?source=rss----952c68ce36f5---4</link>
            <guid isPermaLink="false">https://medium.com/p/d171fce6e167</guid>
            <category><![CDATA[raspberry-pi]]></category>
            <category><![CDATA[raspberry]]></category>
            <category><![CDATA[splash-screen]]></category>
            <category><![CDATA[raspbian]]></category>
            <dc:creator><![CDATA[Gian Luca Dalla Torre]]></dc:creator>
            <pubDate>Fri, 30 Dec 2016 21:47:18 GMT</pubDate>
            <atom:updated>2016-12-31T13:01:08.965Z</atom:updated>
            <content:encoded><![CDATA[<p>On my spare time I am playing with <a href="https://www.raspberrypi.org/">Raspberry</a>.<br>This tiny computer can do virtually everything if programmed and I have some ideas in mind how to use it.</p><p>I had bought a great <a href="https://www.amazon.com/Kuman-320x480-Resolution-Protective-Raspberry/dp/B01FXC5ECS/ref=sr_1_sc_2?ie=UTF8&amp;qid=1483109056&amp;sr=8-2-spell">starter kit for Raspberry on Amazon</a>, which provided me with a tiny capacitive monitor that speed up the configuration process for <a href="https://www.raspbian.org/">Raspbian</a>.<br>Since these devices come with network capabilities (both wired and wireless in its third version), in my opinion it is useful to provide a quick and easy method to connect Raspberry with a network. <br>The <a href="http://kumantech.com/kuman-35-inch-tft-lcd-display-480x320-rgb-pixels-touch-screen-monitor-for-raspberry-pi-3-2-model-b-b-a-a-module-spi-interface-with-touch-pen-sc06_p0014.html">Kuman LCD</a> has proved itself as an affordable way to to that.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wRSjBteaJ1-VkmnZ2mWoPQ.jpeg" /><figcaption>First boot of Raspberry, with network configured</figcaption></figure><p>After the first boot, a custom <a href="https://www.x.org/wiki/">X.org</a> interface showed up and a <em>geek</em> like me configured Wi — Fi network in less than a minute.<br>But I am a <em>techie</em>, a normal consumer would be able to configure the network?</p><p>Also, if the device is used on a client place, it is safe to permit to the customer to hack with the device?</p><p>While I am currently looking for a way to configure the network without the use of this open — wide interface, the second goal I wanted to achieve was a fixed screen that would hide the Raspberry Login prompt until a user would press Enter on Raspberry keyboard.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fplayer.vimeo.com%2Fvideo%2F197518502&amp;url=https%3A%2F%2Fvimeo.com%2F197518502&amp;image=https%3A%2F%2Fi.vimeocdn.com%2Fvideo%2F610265821_1280.jpg&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=vimeo" width="1920" height="1080" frameborder="0" scrolling="no"><a href="https://medium.com/media/a23676dc99a2f8094a474ce2be08b2e3/href">https://medium.com/media/a23676dc99a2f8094a474ce2be08b2e3/href</a></iframe><p>Please note that I was not looking for a <em>splash screen during boot</em> (there are plenty of <a href="http://www.raspberry-projects.com/pi/pi-operating-systems/raspbian/custom-boot-up-screen">tutorials</a> about this on the Net), but for a blocking splash screen after boot.</p><h4>Implementing the splash screen</h4><p>The idea I developed is a script that, starting from a blank image (that you can change with one of your own), shows an image with network configuration currently used.</p><p>To obtain this effect I reconfigured Raspbian with this setting (through raspi-config):</p><ul><li>set up the startup process as <em>login with text console </em>(look at <a href="https://www.raspberrypi.org/documentation/configuration/raspi-config.md">raspi-config documentation</a> on how to achieve this)</li><li>set up the startup process to wait that the network is available before proceed, otherwhise the script can not read network configuration (look at <a href="https://www.raspberrypi.org/documentation/configuration/raspi-config.md">raspi-config documentation</a> on how to achieve this)</li></ul><p>Then I wrote a script, which I <a href="https://bitbucket.org/torre/pi_simple_welcome_screen">made public</a>, that creates and shows the startup image.<br>This script is meant to be installed in /opt/boot and it will use the image named boot.png as a background for the splash screen. It is a 480x320 image because the LCD I use has this resolution but you have to adapt it to the monitor you are using.<br>The <a href="https://bitbucket.org/torre/pi_simple_welcome_screen/src/53e8de2a20c913512e2c1254f8b0e92c0ca77788/boot.sh?at=master&amp;fileviewer=file-view-default">script source code</a> is self explanatory and it uses ImageMagick and fbi to achieve its goal.</p><p>After the script is installed and configured, it must be enabled by adding this line to /etc/rc.local:</p><pre>/opt/boot/boot.sh &amp;<br>wait $!</pre><p>just before the exit 0 line.</p><p>Finally, the tty1 should be disabled by using the command (as <em>root</em>)</p><pre>systemctl disable getty@tty1.service</pre><p>If the configuration has been implemented successfully, after the Raspberry reboot you should see the result showed by the video.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d171fce6e167" width="1" height="1" alt=""><hr><p><a href="https://medium.com/a-developer-journal/raspberry-pi-fixed-splash-screen-after-boot-d171fce6e167">Fixed splash screen with network information after Raspbian Boot</a> was originally published in <a href="https://medium.com/a-developer-journal">A developer journal</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>