<?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[Stories by Julio Marín on Medium]]></title>
        <description><![CDATA[Stories by Julio Marín on Medium]]></description>
        <link>https://medium.com/@juliomacr?source=rss-8a95de75a269------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Rnujvy5wFIzn12wxUlwxtw.jpeg</url>
            <title>Stories by Julio Marín on Medium</title>
            <link>https://medium.com/@juliomacr?source=rss-8a95de75a269------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 00:24:48 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@juliomacr/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[¿Cómo hacer Voluntariado?]]></title>
            <link>https://medium.com/@juliomacr/c%C3%B3mo-hacer-voluntariado-c0bd35287113?source=rss-8a95de75a269------2</link>
            <guid isPermaLink="false">https://medium.com/p/c0bd35287113</guid>
            <category><![CDATA[voluntariado]]></category>
            <category><![CDATA[scouting]]></category>
            <category><![CDATA[guias-y-scouts]]></category>
            <dc:creator><![CDATA[Julio Marín]]></dc:creator>
            <pubDate>Fri, 01 Feb 2019 19:48:13 GMT</pubDate>
            <atom:updated>2019-02-01T19:48:13.491Z</atom:updated>
            <content:encoded><![CDATA[<p>Se pueden <strong>adquirir muchísimas competencias haciendo voluntariado.</strong> No es simplemente una forma de demostrar que se es una persona que se preocupa por los demás, si no porque en el voluntariado <strong>se realiza un esfuerzo que también es valorado como experiencia profesional.</strong></p><p>Pero del por qué hacer voluntariado voy a hablar en otro post, en esta oportunidad quiero enseñarles una pequeña forma de cómo servir fácilmente.</p><h3>Una forma fácil de hacer Voluntariado</h3><p>Vi el post en facebook de un amigo, el cual tiene buenas intenciones, llamar la atención, dar información, pero se ve poco atractivo y probablemente no llegue a todos los jóvenes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/430/1*btLK-WTkGvgprID6HZtxvA.png" /><figcaption>Post original en Facebook</figcaption></figure><p>Yo no soy diseñador, pero le puedo ayudar con algo mejor que no me toma 15 minutos utilizando Photoshop básico y Adobe Spark:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cNHeTZPymQSRsduORR8twg.jpeg" /></figure><p>Ofrezco ayudarle a cambiarlo cada semana con detalles que necesite, al fin y al cabo es hacer Copy/Paste y lo puedo hacer desde el celular, me agradece sin embargo no quiere abusar de la ayuda y me dice solo haga unos cambios mínimos que permitan editarlo luego ellos:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VI9bmKVZFZEFhY4VmR_epQ.jpeg" /><figcaption>Propuesta para que ellos sigan actualizando la imagen</figcaption></figure><p>Y le dejo Febrero listo:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-pP7nNri2ZEPbkEMNVOECA.jpeg" /><figcaption>Imagen con Febrero listo</figcaption></figure><p>Inmediatamente publica en facebook:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/422/1*18ZTPOhGCZaclrcQBNpXBQ.png" /><figcaption>Nueva publicación en Facebook más atractiva — ¡más veces compartida!</figcaption></figure><p>Le comento del &quot;logo&quot; que usan que ya debería de actualizarlo con los colores e insignia nueva, me cuenta que ese logo lo usan desde hace 11 años que alguien lo había mandado y ahi había quedado.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*MJ0dZGoasBO1bHOefs4l2Q.jpeg" /><figcaption>Logo Original del Grupo 126 — Usando elementos y colores antiguos</figcaption></figure><p>Le hago los cambios al logo para que se vea lo más parecido usando la nueva paleta de colores y logos, armo la composición sencilla y entrego la propuesta. Nuevamente 20 minutos de mi tiempo usando las mismas dos herramientas</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*AVYyTdUmBUMjgmD3s1eboQ.jpeg" /><figcaption>Propuesta actualizada del &quot;logo&quot; del Grupo 126 — Utilizando la paleta de colores y logos actuales</figcaption></figure><p>¡Les gusta a la primera!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/420/1*_gL8Q8xVVQMlPwvru2vxrA.png" /></figure><p>Hago los ajustes al baner inicial:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wy2dXnmes-bW0wBsN9iHVA.jpeg" /><figcaption>Banner con el nuevo logo e información de Febrero</figcaption></figure><p>Comparación final de los &quot;logos&quot;. Yo sé, para un diseñador esto no es un logo, ni mi propuesta ni lo que tenían originalmente, pero como dije antes, yo no soy diseñador y solo quise ayudar a que alguien actualice sus cosas, algo muy sencillo para mi, pero algo que para una persona, un Grupo Guía y Scout y por consiguiente muchos jóvenes si significó una actualización en su imagen de 11 años y una oportunidad de fomentar el sentido de pertenencia a una organización que se está actualizando.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*AVYyTdUmBUMjgmD3s1eboQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*MJ0dZGoasBO1bHOefs4l2Q.jpeg" /><figcaption>Comparación final de los dos &quot;logos&quot; del grupo</figcaption></figure><p>En fin, esta es una de las formas de hacer voluntariado y ayudar en Guías y Scouts, estas son pequeñas cosas que suman la misión de la organización de llegar a más jóvenes.</p><p>Puede venir y donar sus conocimientos, o bien aprender nuevos y participar en los roles activos de la organización. Estamos trabajando en un sistema de formación continua que permitirá desarrollar competencias y habilidades. Y así buscamos gente que quiera venir a compartir sus competencias.</p><p>¡Todos podemos ayudar!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c0bd35287113" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Centralized vs Decentralized vs Distributed: a quick overview]]></title>
            <link>https://medium.com/@juliomacr/centralized-vs-decentralized-vs-distributed-a-quick-overview-1f3bd17b8468?source=rss-8a95de75a269------2</link>
            <guid isPermaLink="false">https://medium.com/p/1f3bd17b8468</guid>
            <category><![CDATA[dapps]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[Julio Marín]]></dc:creator>
            <pubDate>Thu, 31 Jan 2019 16:14:33 GMT</pubDate>
            <atom:updated>2019-01-31T16:14:33.372Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CoOeROiKmvViwed1hrJMfw.png" /><figcaption>Centralized vs Decentralized vs Distributed</figcaption></figure><p>When getting into dApps and blockchain related technologies this concepts sometimes got confused, so here you have a quick overview,</p><h4><strong>Centralized Applications</strong></h4><p>Most of the Internet applications we use every day are centralized, they are owned by a particular company or person that provision and maintain the source code to execute on a computer, server or maybe even a cluster.</p><p>Centralized applications are the majority of applications that engineers are used to building and users are used to using.</p><p>Data resides on a centrally owned database controlled by a company. You ultimately have to trust that this company is doing things correctly and in your interest.</p><h4><strong>Decentralized Applications</strong></h4><p>Distributed means computation is spread across multiple nodes instead of just one. Decentralized means no node is instructing any other node as to what to do.</p><p>The code runs on a peer-to-peer network of nodes and no single node has control over the dApp. Depending on the functionality of the dApp, different data structures can be used to store the application data. Bitcoin uses a blockchain decentralized ledger of transactions.</p><h4><strong>Distributed Applications</strong></h4><p>Applications in which computation is distributed across components, communicate and coordinate their actions by passing messages. The components interact with each other in order to achieve a common goal.</p><p>Some distributed applications examples are:</p><ul><li>CDN</li><li>AWS</li><li>Cloud Instances</li><li>Google, Facebook, Netflix, etc</li></ul><p>Hopefully this will be helpful for you and if you want to know more about the <a href="https://www.salsamobi.com/">SalsaMobi</a> education efforts on different technologies you can <a href="https://salsamobi.us19.list-manage.com/subscribe?u=f699b5966f72d084516ecc1fc&amp;id=3846bc403e"><strong>subscribe here</strong></a><strong> </strong>and we will notified you when we create more articles or tutorials.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/150/1*ZyCjKWZWaVoB-_G2pMPi_A.png" /><figcaption><a href="https://salsamobi.com/">SalsaMobi</a> Logo</figcaption></figure><p><a href="https://www.linkedin.com/in/juliomacr/"><em>Julio Marin</em></a><em> is an advocate for the research and implementation of new technologies and their use on day to day life. Research areas include multimedia development and delivery, cryptocurrencies, mobile development and marketing automation. Currently works in SalsaMobi as Senior Curriculum Developer and Blockchain Development Team Lead.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1f3bd17b8468" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[10 Firebase Realtime Database Rule Templates]]></title>
            <link>https://medium.com/@juliomacr/10-firebase-realtime-database-rule-templates-d4894a118a98?source=rss-8a95de75a269------2</link>
            <guid isPermaLink="false">https://medium.com/p/d4894a118a98</guid>
            <category><![CDATA[database-rules]]></category>
            <category><![CDATA[realtime-database]]></category>
            <category><![CDATA[firebase]]></category>
            <dc:creator><![CDATA[Julio Marín]]></dc:creator>
            <pubDate>Wed, 30 Jan 2019 19:18:33 GMT</pubDate>
            <atom:updated>2019-01-30T19:21:40.577Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0-jtWPrkvKajhQ8hnV6JyA.png" /><figcaption>Firebase Console Realtime Database Rules</figcaption></figure><p>Recently while playing with React+Firebase and the Firebase Realtime Database I had to read about its security and figured that Firebase Realtime Database provides a flexible language of rules based on expressions with a syntax similar to JavaScript that allows you to define how the data should be structured, how they should be indexed and when they can be read and written, all this in an easy way.</p><p>These rules are hosted on Firebase servers and are applied automatically at all times and you can change the rules of your database in Firebase console. You just have to select your project, click on the Database section on the left and select the Rules tab.</p><h3>Rule Types</h3><p>The rules have a JavaScript-like syntax that make it easy to understand and those comes in four types:</p><pre><strong>.read</strong><br>Describes if and when data is allowed to be read by users.</pre><pre><strong>.write</strong><br>Describes if and when data is allowed to be written.</pre><pre><strong>.validate</strong><br>Defines what a correctly formatted value will look like, whether it has child attributes, and the data type.</pre><pre><strong>.indexOn</strong><br>Specifies a child to index to support ordering and querying.</pre><p>The <a href="https://firebase.google.com/docs/database/security/">Firebase Documentation Site</a> is pretty good and if you want to get deep on this and really understand Firebase Realtime Database Rules, it is the place to go.</p><p><strong>Find a list of common Firebase Realtime Database Rules you can use in your projects:</strong></p><h3>1) No Security</h3><p>These rules give anyone, even people who are not users of your app, read and write access to your database.</p><p>During development, you can use the public rules in place of the default rules to set your files publicly readable and writable. This can be useful for prototyping, as you can get started without setting up<a href="https://firebase.google.com/docs/auth/">Authentication</a>. <strong>This level of access means anyone can read or write to your database. You should configure more secure rules before launching your app.</strong></p><pre><strong>// No Security</strong></pre><pre>{<br> “rules”: {<br> “.read”: true,<br> “.write”: true<br> }<br>}</pre><h3>2) Full Security</h3><p>These are the default rules that disable read and write access to your database by users. With these rules, you can only access the database through the <a href="https://console.firebase.google.com/">Firebase console</a></p><pre><strong>// Full security</strong></pre><pre>{<br> “rules”: {<br> “.read”: false,<br> “.write”: false<br> }<br>}</pre><h3>3) Only authenticated users can access/write data</h3><pre><strong>// Only authenticated users can access/write data</strong></pre><pre>{<br> “rules”: {<br> “.read”: “auth != null”,<br> “.write”: “auth != null”<br> }<br>}</pre><h3>4) User Authentication from a particular domain</h3><pre>/<strong>/ Only authenticated users from a particular domain (example.com) can access/write data</strong></pre><pre>{<br> “rules”: {<br> “.read”: “auth.token.email.endsWith(‘<a href="http://twitter.com/example">@example</a>.com’)”,<br> “.write”: “auth.token.email.endsWith(‘<a href="http://twitter.com/example">@example</a>.com’)”<br> }<br>}</pre><h3>5) User Data Only</h3><p>Here’s an example of a rule that gives each authenticated user a personal node at /post/$user_id where $user_id is the ID of the user obtained through <a href="https://firebase.google.com/docs/auth/">Authentication</a>. This is a common scenario for any apps that have data private to a user.</p><pre><strong>// These rules grant access to a node matching the authenticated<br>// user&#39;s ID from the Firebase auth token</strong><br>{<br>  &quot;rules&quot;: {<br>    &quot;users&quot;: {<br>      &quot;$uid&quot;: {<br>        &quot;.read&quot;: &quot;$uid === auth.uid&quot;,<br>        &quot;.write&quot;: &quot;$uid === auth.uid&quot;<br>      }<br>    }<br>  }<br>}</pre><h3>6) Validates user is moderator from different database location</h3><pre><strong>// Validates user is moderator from different database location</strong></pre><pre>{<br> “rules”: {<br> “posts”: {<br> “$uid”: {<br> “.write”: “root.child(‘users’).child(‘moderator’).val() === true”<br> }<br> }<br> }<br>}</pre><h3>7) Validates string datatype and length range</h3><pre><strong>// Validates string datatype and length range</strong></pre><pre>{<br> “rules”: {<br> “posts”: {<br> “$uid”: {<br> “.validate”: “newData.isString() <br> &amp;&amp; newData.val().length &gt; 0<br> &amp;&amp; newData.val().length &lt;= 140”<br> }<br> }<br> }<br>}</pre><h3>8) Checks presence of child attributes</h3><pre>// Checks presence of child attributes</pre><pre>{<br> “rules”: {<br> “posts”: {<br> “$uid”: {<br> “.validate”: “newData.hasChildren([‘username’, ‘timestamp’])”<br> }<br> }<br> }<br>}</pre><h3>9) Validates timestamp</h3><pre><strong>// Validates timestamp is not a future value</strong></pre><pre>{<br> “rules”: {<br> “posts”: {<br> “$uid”: {<br> “timestamp”: { <br> “.validate”: “newData.val() &lt;= now” <br> }<br> }<br> }<br> }<br>}</pre><h3>10) Prevents Delete or Update</h3><pre>// <strong>Prevents Delete or Update</strong><br>{<br> “rules”: {<br> “posts”: {<br> “$uid”: {<br> “.write”: “!data.exists()”<br> }<br> }<br> }<br>}</pre><h3>BONUS: Prevents only Delete</h3><pre><strong>// Prevents only Delete</strong><br>{<br> “rules”: {<br> “posts”: {<br> “$uid”: {<br> “.write”: “newData.exists()”<br> }<br> }<br> }<br>}</pre><h3>BONUS2: Prevents only Delete</h3><pre>// Prevents only Update<br>{<br> “rules”: {<br> “posts”: {<br> “$uid”: {<br> “.write”: “!data.exists() || !newData.exists()”<br> }<br> }<br> }<br>}</pre><h3>BONUS3: Prevents Create and Delete</h3><pre><strong>// Prevents Create and Delete</strong><br>{<br> “rules”: {<br> “posts”: {<br> “$uid”: {<br> “.write”: “data.exists() &amp;&amp; newData.exists()”<br> }<br> }<br> }<br>}</pre><p>Hopefully this will be helpful for you and if you want to know more about the <a href="https://www.salsamobi.com/">SalsaMobi</a> education efforts on different technologies you can <a href="https://salsamobi.us19.list-manage.com/subscribe?u=f699b5966f72d084516ecc1fc&amp;id=3846bc403e"><strong>subscribe here</strong></a><strong> </strong>and we will notified you when we create more articles or tutorials.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/150/1*ZyCjKWZWaVoB-_G2pMPi_A.png" /><figcaption><a href="https://salsamobi.com/">SalsaMobi</a> Logo</figcaption></figure><p><a href="https://www.linkedin.com/in/juliomacr/"><em>Julio Marin</em></a><em> is an advocate for the research and implementation of new technologies and their use on day to day life. Research areas include multimedia development and delivery, cryptocurrencies, mobile development and marketing automation. Currently works in SalsaMobi as Senior Curriculum Developer and Blockchain Development Team Lead.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d4894a118a98" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Host your own Website for FREE]]></title>
            <link>https://medium.com/coinmonks/host-your-own-website-for-free-bf7c10d61e56?source=rss-8a95de75a269------2</link>
            <guid isPermaLink="false">https://medium.com/p/bf7c10d61e56</guid>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[ipfs]]></category>
            <category><![CDATA[hosting]]></category>
            <category><![CDATA[free-hosting]]></category>
            <dc:creator><![CDATA[Julio Marín]]></dc:creator>
            <pubDate>Mon, 14 Jan 2019 23:38:47 GMT</pubDate>
            <atom:updated>2020-08-26T15:32:25.600Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BFeMNXjsuPMVqNDIDIXQIQ.jpeg" /><figcaption>Host your own Website for FREE</figcaption></figure><p>This is an example of how you can use the <a href="https://siminars.com/153565739127704226318098/summary.sv">IPFS: InterPlanetary File System</a> for websites. <em>A guide to hosting your site on IPFS, while learning to use node.js and templates.</em></p><p>You will need some basic knowledge and understanding on Web Design and Web Programming, however while reading this I will help you to deploy your solution in the IPFS network by <strong>FREE</strong>.</p><h4>The Webpage Code</h4><p>For simplicity I am using a simple Landing Page Template you can find <a href="https://onepagelove.com/holly">here</a>. I made some basic customizations, but overall it is the same page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*olFIWJtEwEFfUMRRAiYhlw.jpeg" /><figcaption>Single Page Template</figcaption></figure><p>This template was taken from cruip.com. Cruip is a gallery of free HTML landing pages for startups. Their aim is to help makers and early-stage startups with high-quality templates to enhance the design standards of their next big project.</p><p>If you’re looking for template customizations, or if you’re considering a brand new landing page, you can contact them at hello@cruip.com and they&#39;ll be glad to help.</p><h4>I still want to do it myself, how do I use those templates?</h4><p>Those are node projects and the idea is to use it as a base template for yours, and you should read and follow the instructions that you will find in the README.md file that I will transcript and extend in this article, so first, ensure that <strong>node.js &amp; npm are both</strong> <strong>installed</strong>. If not, choose your OS and installation method from <a href="https://nodejs.org/en/download/package-manager/"><strong><em>this page</em></strong></a><strong><em> </em></strong>and follow the instructions.</p><p>Next, use your command line to enter your project directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vfnezs6rzSyPpdcg2SgUUA.png" /><figcaption>using command line to enter the project directory</figcaption></figure><p>This template comes with a ready-to-use package file called &#39;<strong>package-sample.json</strong>&#39;. You just need to rename it to &#39;<strong>package.json</strong>&#39;, then run &#39;<strong><em>npm install</em></strong>&#39; to install all of the dependencies into your project.</p><blockquote>&gt;mv package-sample.json package.json<br>&gt;npm install</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/573/1*DUZHnqwnz1xZhziRppiZUw.png" /><figcaption>terminal running the project</figcaption></figure><p>You’re ready to go! The installation script will run`<strong><em>npm run watch</em></strong>`. It will start a new server, open up a browser and watch for any SCSS or JS changes in the `src` directory; once it compiles those changes, the browser will automatically inject the changed file(s)!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*yndqTKKkcVMdYrT-_cAUIA.gif" /><figcaption>Changed files being automatically injected on the browser</figcaption></figure><p>Run any task by typing `npm run task` (where “task” is the name of the task in the `”scripts”` object).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/876/1*4Ui1hLuXyQzEd5XQKCQzuQ.png" /><figcaption>scripts object</figcaption></figure><blockquote>If you are getting lost here I suggest you to go and read this +15minutes introduction to <a href="https://nodejs.org/">node.js</a> from <a href="https://codeburst.io/@vick_onrails">Victor Ofoegbu</a> <br><a href="https://codeburst.io/the-only-nodejs-introduction-youll-ever-need-d969a47ef219">https://codeburst.io/the-only-nodejs-introduction-youll-ever-need-d969a47ef219</a></blockquote><h3><strong>Ready to publish online?</strong></h3><p>Take the<strong><em> dist/css/*.css</em></strong>, <strong><em>dist/js/*.js</em></strong> and <strong><em>**/*.html </em></strong>files and copy to another ready to deploy directory.</p><pre><strong>&gt;ls<br></strong>README.md index.html package.json<br>dist  node_modules src<br><strong>&gt;mkdir to_build<br>&gt;cp index.html to_build/<br>&gt;cp -R dist to_build/<br>&gt;ls to_build/<br></strong>dist  index.html</pre><blockquote>Tip: you can customize the deploy locations directly by changing the <em>package.json</em> file</blockquote><p>Now let&#39;s add this <strong><em>to_build</em></strong> folder with our site to IPFS. This is quite simple! Simply turn on your daemon:</p><pre><strong>&gt;ipfs daemon</strong></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/566/1*_Q_HlmAALtmgp6EJcu0ipA.png" /><figcaption>ipfs daemon running</figcaption></figure><blockquote><strong>Warning</strong>: You need to have IPFS installed in your computer! You can take my <strong>FREE</strong> course about IPFS installation and basics <a href="https://siminars.com/153565739127704226318098/summary.sv">here</a> . Also, you can follow the installation instruction on the IPFS install page: <a href="https://docs.ipfs.io/introduction/install/">https://docs.ipfs.io/introduction/install/</a></blockquote><p>And add the directory containing your website:</p><pre><strong>&gt;ls to_build/</strong><br>dist  index.html<br><strong>&gt;ipfs add -r to_build</strong></pre><pre>added QmdWEyh4V6XpiD42Gk4zJmjsjuzoGDYhpqmB4ww6dpLf5g to_build/dist/css/style.css</pre><pre>added QmQT78zwo9iVVRHa4yAPhcT674ni4TLwZoWwn8GNnfx7J4 to_build/dist/js/main.min.js</pre><pre>added QmeVLhqpN6XYf767Kkzwg51b4RvHi9AjcwQQWnCCDornf1 to_build/index.html</pre><pre>added QmXHyR5AK9t74iTckEQP3kU2GCeN34f4D1g28PysD7WreQ to_build/dist/css</pre><pre>added QmTTqN4iQ2EkqQbCyuWnxC1bEiZgRkNn7xTc2SanphsT31 to_build/dist/js</pre><pre>added QmaqSpPkRcdPhuaAtxpSDR8pyU9bgn3AxGPtgQ7kDYbH7s to_build/dist</pre><pre>added <strong>QmSVqWFhuSWJnf9Nx76EvLAtKo9UXqK5GK2czWwZsMFBWm</strong> to_build</pre><pre>78.86 KiB / 79.29 KiB [===============================================]  99.45%&gt;</pre><p>The very last hash next to the folder name is the one you want, let’s call it $SITE_HASH for now.</p><pre><strong>$SITE_HASH = QmSVqWFhuSWJnf9Nx76EvLAtKo9UXqK5GK2czWwZsMFBWm</strong></pre><p>Now, you can test it out locally by opening <strong>http://localhost:8080/ipfs/$SITE_HASH</strong> in your web browser!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/859/1*dCwrYInVgYGf54sbe5SN7w.png" /><figcaption><a href="http://localhost:8080/ipfs/QmSVqWFhuSWJnf9Nx76EvLAtKo9UXqK5GK2czWwZsMFBWm/">http://localhost:8080/ipfs/QmSVqWFhuSWJnf9Nx76EvLAtKo9UXqK5GK2czWwZsMFBWm/</a></figcaption></figure><p>Next, to view it coming from another ipfs node, you can try <strong>http://gateway.ipfs.io/ipfs/$SITE_HASH</strong>.</p><h4>So now you have your website hosted by free over the IPFS network, once you became more familiarized with the tool you will be starting to think out of the box and including it in your own projects.</h4><blockquote>Note: depending on the state of the network, curl may take a while. The public gateways may be overloaded or having a hard time reaching you.</blockquote><h3>Get rid of the hashes on IPFS</h3><p>If you read my post up to this point, you now have your Website published on the IPFS network for free. Cool, right? But those hashes on the URLs are rather ugly. Let’s look at <strong>some</strong> ways to get rid of them. There are <a href="https://hackernoon.com/ten-terrible-attempts-to-make-the-inter-planetary-file-system-human-friendly-e4e95df0c6fa">lots of ‘solutions’ out there</a> to address this, including url shorteners and things like that. But currently, one of the easiest solutions is to use a DNS TXT record on a domain that you control.</p><p>So, you can do a simple <a href="https://en.wikipedia.org/wiki/TXT_record">DNS TXT</a> record, containing dnslink=/ipfs/$SITE_HASH. Just go to your domain’s DNS settings, and find where to add a TXT record. In the content, you should write dnslink=/ipfs/&lt;your hash here&gt; or dnslink=/ipns/&lt;your hash here&gt; depending on what you use.</p><p>Once that record propagates, you should be able to view your site athttp://localhost:8080/ipns/your.domain. Now that&#39;s quite a bit cleaner. You can also try this on the gateway at <a href="http://gateway.ipfs.io/ipns/your.domain">http://gateway.ipfs.io/ipns/your.domain</a></p><h4>Updating the page</h4><p>Next, you might be asking “well what if i want to change my website, DNS is slow!” Well let me tell you about this little thing called IP<strong>N</strong>S (note the ‘n’). IPNS is the <em>Interplanetary Naming System</em>, you might have noticed the above link has /ipns/ instead of /ipfs/. Ipns is used for mutable content in the ipfs network, it&#39;s relatively easy to use, and will allow you to change your website without updating the dns record every time! So how do you use it?</p><p>After adding your webpage, simply do:</p><pre><strong>&gt;ipfs name publish $SITE_HASH</strong><br>Published to &lt;your peer id&gt;: /ipfs/$SITE_HASH</pre><blockquote>(Disclaimer: When using IPNS to update websites, it’s important to think about that assets could be loaded from two different resolved hashes when updating your website, leading to outdated/missing assets unless accounted for)</blockquote><p>Now, you can test that it worked by viewing: http://localhost:8080/ipns/&lt;your peer id&gt;. And also try the same link on the public gateway. Once you&#39;re convinced that works, let&#39;s again hide the hash. Change your DNS TXT record to dnslink=/ipns/&lt;your peer id&gt;, wait for that record to propagate, and then try accessing <a href="http://localhost:8080/ipns/your.domain.">http://localhost:8080/ipns/your.domain.</a></p><p>When publish current version of site to IPNS:</p><pre><strong>&gt;ipfs name publish QmSVqWFhuSWJnf9Nx76EvLAtKo9UXqK5GK2czWwZsMFBWm</strong></pre><pre>Published to QmQ21Eg7NHG4sgzMQtQWUeCzKA5FtdgsyArMifj4enk4JW: /ipfs/QmSVqWFhuSWJnf9Nx76EvLAtKo9UXqK5GK2czWwZsMFBWm</pre><p>That will return your peerID (<em>QmQ21Eg7NHG4sgzMQtQWUeCzKA5FtdgsyArMifj4enk4JW</em>) and the hash you are publishing to peerID. You can confirm by running</p><pre>ipfs name resolve &lt;peerID&gt;</pre><p>After that — you can visit published version of site by link: https://ipfs.io/<strong>ipns</strong>/&lt;peerID&gt;</p><h4>Use your own domain</h4><p>At this point, you have a website on ipfs/ipns, and you may be wondering how you could expose it at http://your.domain, so that the Internet users of today may access it too without them having to know about any of this. It&#39;s actually <strong>surprisingly simple to do</strong>, all you need for this is your previously created TXT record and to point the A record of your.domain to the IP address of an ipfs daemon that listens on port 80 for HTTP requests (such as gateway.ipfs.io). The users&#39; browsers will send your.domain in the Host header of the requests, and you have your dnslink TXT records, so the ipfs gateway will recognize your.domain as an IPNS name, and so it will serve from under /ipns/your.domain/ instead of /.</p><p>So, if you point your.domain&#39;s A record to the IP of gateway.ipfs.io, and then wait for the DNS to propagate, then anyone should be able to access your ipfs-hosted site without any extra configuration simply at <a href="http://your.domain./">http://your.domain.</a></p><p>Alternatively, it is possible to use CNAME records to point at the DNS records of the gateway. This way, IP addresses of the gateway are automatically updated. Note however that CNAME records to not allow for other records, such as a TXT to refer to the ipfs/ipns record. Because of this, ipfs allows to create a DNS TXT record for _dnslink.your.domain with dnslink=/ipns/&lt;yourpeer id&gt;.</p><p>So by creating a CNAME for your.domain to gateway.ipfs.io and adding a _dnslink.your.domain record with dnslink=/ipns/&lt;your peer id&gt; you can host your website without explicitly referring to IP addresses of the ipfs gateway.</p><blockquote><a href="https://coincodecap.com/?utm_source=coinmonks">Get Best Software Deals Directly In Your Inbox</a></blockquote><figure><a href="https://coincodecap.com/?utm_source=coinmonks"><img alt="" src="https://cdn-images-1.medium.com/max/584/0*OJ-qb5G6i863msBB.png" /></a></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bf7c10d61e56" width="1" height="1" alt=""><hr><p><a href="https://medium.com/coinmonks/host-your-own-website-for-free-bf7c10d61e56">Host your own Website for FREE</a> was originally published in <a href="https://medium.com/coinmonks">Coinmonks</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Blockchain using JavaScript]]></title>
            <link>https://medium.com/coinmonks/building-a-blockchain-using-javascript-ac75d1b2af23?source=rss-8a95de75a269------2</link>
            <guid isPermaLink="false">https://medium.com/p/ac75d1b2af23</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[Julio Marín]]></dc:creator>
            <pubDate>Mon, 22 Oct 2018 19:31:45 GMT</pubDate>
            <atom:updated>2020-08-31T14:27:29.711Z</atom:updated>
            <content:encoded><![CDATA[<p>A Blockchain on its basic concept refers to a distributed database that maintains a continuously growing list of ordered records that anyone can read but that are immutable.</p><p>Once a block has been added to the chain, it cannot be changed anymore without invalidating the rest of the chain.</p><h3>Building a Block</h3><p>The structure of the blocks must be defined, the images below shows an example of how the structure should look like. It is important to ensure the data integrity for each block, this is why each block contains a hash that is computed based on its contents. It also contains the hash of the previous block.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/1*pExvwjlo0q42zs3p9TwA-Q.png" /><figcaption>A blockchain data structure</figcaption></figure><p>In JavaScript this is how our block class will look like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D1jjurpjNaDD6yiQGJGaTQ.png" /><figcaption>JS class Block</figcaption></figure><h4>Block Hash</h4><p>Remember that to keep the integrity of the data, the block needs to be hashed and included in a particular field on the block. We are using the crypto-js library and this is the “calculateHash” function:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oj9nIwt8IccMjDvVWNGmgg.png" /><figcaption>calculateHash Function</figcaption></figure><h4>Generating a Block</h4><p>In order to generate a block, the hash of the previous block must be know and the data should be provided. The addBlock() is responsible for adding a new block to our chain. To do that we add the hash of the previous block to our new block. That way we preserve the integrity of the chain. Because we changed the contents of our new block, we need to recalculate it’s hash. When that’s done, I push the block onto the chain (array).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*01RPESvzxMM814xQi9dpqQ.png" /><figcaption>Generate a new Block</figcaption></figure><h4>getLatestBlock() method</h4><p>This is to return the latest block on our blockchain</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JtB64JNgnYYt0UX-ugFPsw.png" /><figcaption>getLatestBlock Function</figcaption></figure><h4>The Genesis Block</h4><p>To initialize our chain array with values for the genesis block:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fMI6wkCqHvVraWilhCKzTA.png" /><figcaption>Genesis Block Function</figcaption></figure><h4>Validate the Chain</h4><p>To make sure that nobody altered the blockchain. It loops over all the blocks and checks if the hash of each block is correct. It also checks if each block points to the correct previous block by comparing the previousHash value. If everything checks out it returns true and if something is wrong it returns false.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/804/1*nRf0b6go4XHADMd0it7v3g.png" /><figcaption>Validate the chain</figcaption></figure><h4>Building the chain</h4><p>Now we can start chaining blocks together in a Blockchain class! This class will include the mentioned functions and the constructor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/567/1*nm6VpRDBvsxiw8wc8hm2Bg.png" /><figcaption>Blockchain class</figcaption></figure><p>In the constructor we initialize the chain by creating an array that contains the genesis block. The first block is special because it cannot point to a previous block.</p><h3>Running the application</h3><p>First you can add some block to the chain with the following code after initializing the app:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WZwTOJfvGA40j3neeXDBaw.png" /><figcaption>adding some blocks to the chain</figcaption></figure><p>To see the Blockchain data you can execute this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a6sYia7DtyBHbJk-wbONxw.png" /><figcaption>command to show the blockchain</figcaption></figure><blockquote>*note that is being JSON styled for easy reading:</blockquote><p><strong>from the terminal run:<br> node &lt;javascript_file.js&gt;</strong></p><p>You can check if the chain is valid by calling the isChainValid() function. Also, you can change the data like in the next 2 code lines, where we are changing the block data value and even recalculating the blockchain. <strong><em>Check the results when you run the app again</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SmUV5wZwiauRyjpBhbkIjA.png" /><figcaption>How to validate the chain</figcaption></figure><h3>Conclusion</h3><p>While this implementation is far from complete. It does demonstrate how a blockchain works and clearly explain the basic concepts of a blockchain and how those are easy to understand and implement.</p><p>The complete project code can be found in the following Git repository:</p><p><a href="https://github.com/juliomacr/blockchain-demo">https://github.com/juliomacr/blockchain-demo</a></p><p>If you want to learn more about Blockchain development, the <a href="https://www.salsamobi.com/">SalsaMobi</a> education efforts on Blockchain related technologies may be a good start point, also you can <a href="https://salsamobi.us19.list-manage.com/subscribe?u=f699b5966f72d084516ecc1fc&amp;id=3846bc403e"><strong>subscribe here</strong></a><strong> </strong>and we will notified you when we create more articles or tutorials.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/150/1*ZyCjKWZWaVoB-_G2pMPi_A.png" /><figcaption><a href="https://salsamobi.com/">SalsaMobi</a> Logo</figcaption></figure><p><a href="https://www.linkedin.com/in/juliomacr/"><em>Julio Marin</em></a><em> is an advocate for the research and implementation of new technologies and their use on day to day life. Research areas include multimedia development and delivery, cryptocurrencies, mobile development and marketing automation. Currently works in SalsaMobi as Senior Curriculum Developer and Blockchain Development Team Lead.</em></p><blockquote><a href="https://coincodecap.com/?utm_source=coinmonks">Get Best Software Deals Directly In Your Inbox</a></blockquote><figure><a href="https://coincodecap.com/?utm_source=coinmonks"><img alt="" src="https://cdn-images-1.medium.com/max/584/0*OJ-qb5G6i863msBB.png" /></a></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ac75d1b2af23" width="1" height="1" alt=""><hr><p><a href="https://medium.com/coinmonks/building-a-blockchain-using-javascript-ac75d1b2af23">Building a Blockchain using JavaScript</a> was originally published in <a href="https://medium.com/coinmonks">Coinmonks</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding the DOM]]></title>
            <link>https://medium.com/crowdbotics/understanding-the-dom-e137c18f3cba?source=rss-8a95de75a269------2</link>
            <guid isPermaLink="false">https://medium.com/p/e137c18f3cba</guid>
            <category><![CDATA[dom]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Julio Marín]]></dc:creator>
            <pubDate>Tue, 09 Oct 2018 03:32:35 GMT</pubDate>
            <atom:updated>2020-08-20T20:20:13.187Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZuwyZ9P6dMFjyapzL5jTGA.jpeg" /></figure><p>Making a website interactive is possible thanks to the <strong>Document Object Model</strong>, usually referred to as the <strong>DOM</strong>. The DOM is an interface that allows a programming language to manipulate the structure, the content and style of a website.</p><p>Understand what it is and how it works allows programmers to create websites that can dynamically change on the browser while the source on the server will not change and will never be affected by client-side script executions.</p><h4>What is the DOM?</h4><p>The Document Object Model is a representation of the HTML and CSS structure and style. Basically, the browser that you use to view a website creates a representation of the code that can be accessed by other web-scripting language as <strong><em>objects</em></strong>.</p><p>In this very basic website you can find the absolute most essential aspects of any website document — a doctype, and an html tag with the head and body nested inside.</p><pre>&lt;!DOCTYPE html&gt;<br>&lt;<strong>html</strong> lang=&quot;en&quot;&gt;<br><br>  &lt;<strong>head</strong>&gt;<br>    &lt;<strong>title</strong>&gt;Understanding the DOM&lt;/<strong>title</strong>&gt;<br>  &lt;/<strong>head</strong>&gt;<br><br>  &lt;<strong>body</strong>&gt;<br>    &lt;<strong>h1</strong>&gt;Hello DocumentObjectModel&lt;/<strong>h1</strong>&gt;<br>  &lt;/<strong>body</strong>&gt;<br><br>&lt;/<strong>html</strong>&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/610/1*HYS3LgtKEZy_HopxTKP98Q.png" /><figcaption>The html code loaded in VSCode</figcaption></figure><p>If you save this code in an html and open it in your browser you will be able to see this very basic website being rendered and using your browser development tools you will be able to inspect the DOM implementation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/649/1*OlPYpj0rXyDE8--iTWQgFg.png" /><figcaption>The website rendered and the DOM</figcaption></figure><p>On this example the DOM will look exactly as the same HTML source code just wrote and by hovering each element will highlight the respective element in the rendered website.</p><h4>The Object and its Properties</h4><p>The document object is a build-in object that has several properties and methods that allows the programmers to modify websites.</p><p>You can easily see the object by typing in the JavaScript console in your browser developer tools <strong><em>document</em></strong> and press <strong><em>ENTER</em></strong>:</p><pre>&gt; document;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/590/1*t4wXRk88wcvPZdhz2jL28A.png" /><figcaption>document object</figcaption></figure><p>While you can see the exact code the file created have on it, this browser-generated code named DOM allows to:</p><ul><li>Be modified by client-site code.</li><li>Fix automatically source code errors.</li></ul><p>If you want to see how the DOM can be modified by client-site scripting, typing <strong><em>document.body</em> </strong>in the console will respond with the body of the DOM, <strong>document</strong> is an <em>object</em>, <strong>body</strong> is a <em>property</em> of that object that is being accessed with dot notation.</p><pre>&gt; document.body;<br>   &lt;body&gt;​<br>      &lt;h1&gt;​Hello DocumentObjectModel​&lt;/h1&gt;<br>   ​&lt;/body&gt;​</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/297/1*dKZfP6dNgonfWEoeA4PGRA.png" /><figcaption><strong>document</strong> is an <em>object</em>, <strong>body</strong> is a <em>property</em> of that object</figcaption></figure><p>Also directly in the console some of the live properties of the body object on this website can be modified. For example change the background color property by typing <strong><em>document.body.style.backgroundColor = ‘red’;</em></strong> in the console and press <strong><em>ENTER</em></strong></p><blockquote>{…} typing <strong><em>document.body</em> </strong>in the console will respond with the body of the DOM, <strong>document</strong> is an <em>object</em>, <strong>body</strong> is a <em>property</em> of that object that is being accessed with dot notation.</blockquote><p>After typing and submitting this instruction the website will be live updated with this new background color.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/538/1*S4WEcQtRJ4Zc2jFuem7dpQ.png" /><figcaption>DOM modified directly from the console</figcaption></figure><p>While the DOM is being live modified if you check the page source code, usually by right clicking on the page and select “View Page Source”, you will notice that the source code of the website doesn&#39;t include this new style attribute. Which will make the background color change made it on the console to disappear if the webpage is refreshed.</p><h4>Conclusion</h4><p>The source of a website will not change and will never be affected by client-side JavaScript. However changes on the DOM can be performed and this allows a programming language to manipulate the content, structure, and style of a website. JavaScript is the client-side scripting language that connects to the DOM in an internet browser.</p><p>Understand what the DOM is and how it works will help you to create more dynamic websites that can be changed on the browser while the source on the server will not change and will never be affected by client-side script executions.</p><p>If you want to know more the <a href="https://www.salsamobi.com/">SalsaMobi</a> education efforts on different technologies may be a good start point, also you can <a href="https://salsamobi.us19.list-manage.com/subscribe?u=f699b5966f72d084516ecc1fc&amp;id=3846bc403e"><strong>subscribe here</strong></a><strong> </strong>and we will notified you when we create more articles or tutorials.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/150/1*ZyCjKWZWaVoB-_G2pMPi_A.png" /><figcaption><a href="https://salsamobi.com/">SalsaMobi</a> Logo</figcaption></figure><p><a href="https://www.linkedin.com/in/juliomacr/"><em>Julio Marin</em></a><em> is an advocate for the research and implementation of new technologies and their use on day to day life. Research areas include multimedia development and delivery, cryptocurrencies, mobile development and marketing automation. Currently works in SalsaMobi as Senior Curriculum Developer and Blockchain Development Team Lead.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e137c18f3cba" width="1" height="1" alt=""><hr><p><a href="https://medium.com/crowdbotics/understanding-the-dom-e137c18f3cba">Understanding the DOM</a> was originally published in <a href="https://medium.com/crowdbotics">Crowdbotics</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why does the Web needs IPFS?]]></title>
            <link>https://medium.com/@juliomacr/why-does-the-web-needs-ipfs-7a1e4618f4fd?source=rss-8a95de75a269------2</link>
            <guid isPermaLink="false">https://medium.com/p/7a1e4618f4fd</guid>
            <category><![CDATA[filesystem]]></category>
            <category><![CDATA[ipfs]]></category>
            <dc:creator><![CDATA[Julio Marín]]></dc:creator>
            <pubDate>Thu, 30 Aug 2018 20:48:24 GMT</pubDate>
            <atom:updated>2018-08-30T20:52:01.738Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/639/1*w_CUoAB_DoaMjkw8Jwkrog.png" /><figcaption>IPFS is the Distributed Web</figcaption></figure><p><strong>​IPFS</strong> is presented as a peer-to-peer hypermedia protocol to make the web faster, safer, and more open. <strong><em>The InterPlanetary File System is a protocol and network designed to create a content-addressable, peer-to-peer method of storing and sharing hypermedia in a distributed file system.</em></strong></p><p>While those terms that define what IPFS is have a lot of benefits by themselves, we can clearly identify 4 areas that are directly impacted on the Web and beneficed by IPFS:</p><h4><strong>HTTP is inefficient and expensive</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/291/0*tPyC4AnitD_myDLS.png" /></figure><p>HTTP downloads a file from a single computer at a time, instead of getting pieces from multiple computers simultaneously. With video delivery, a P2P approach could save 60% in bandwidth costs.</p><p><em>IPFS makes it possible to distribute high volumes of data with high efficiency. And zero duplication means savings in storage.</em></p><h4><strong>Humanity’s history is deleted daily</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/304/0*Qbp1HzSYd0uLWwoa.png" /></figure><p>The average lifespan of a web page is 100 days. Remember GeoCities? The web doesn’t anymore. It’s not good enough for the primary medium of our era to be so fragile.</p><p><em>IPFS keeps every version of your files and makes it simple to set up resilient networks for mirroring of data.</em></p><h4><strong>The web’s centralization limits opportunity</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/284/0*fds_FUcrNYhywicd.png" /></figure><p>The Internet has been one of the great equalizers in human history and a real accelerator of innovation. But the increasing consolidation of control is a threat to that.</p><p><em>IPFS remains true to the original vision of the open and flat web, but delivers the technology which makes that vision a reality.</em></p><h4><strong>Our apps are addicted to the backbone</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/301/0*UNiHOhp0G5R74R31.png" /></figure><p>Developing world. Offline. Natural disasters. Intermittent connections. All trivial compared to interplanetary networking. The networks we’re using are so 20th Century. We can do better.</p><p><em>IPFS powers the creation of diversely resilient networks which enable persistent availability with or without Internet backbone connectivity.</em></p><blockquote><strong>IPFS aims to replace HTTP and build a better web for all of us.</strong></blockquote><h3>Conclusion</h3><p>IPFS is a solution to replace HTTP and build a better Web for all of us. The InterPlanetary File System is a protocol and network designed to create a content-addressable, peer-to-peer method of storing and sharing hypermedia in a distributed file system.</p><p>If you want to know more the <a href="https://www.salsamobi.com/">SalsaMobi</a> education efforts on Blockchain related technologies may be a good start point, also you can <a href="https://salsamobi.us19.list-manage.com/subscribe?u=f699b5966f72d084516ecc1fc&amp;id=3846bc403e"><strong>subscribe here</strong> </a>and we will notified you when we create more articles or tutorials.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/150/1*ZyCjKWZWaVoB-_G2pMPi_A.png" /><figcaption><a href="https://salsamobi.com/">SalsaMobi</a> Logo</figcaption></figure><p><a href="https://www.linkedin.com/in/juliomacr/"><em>Julio Marin</em></a><em> is an advocate for the research and implementation of new technologies and their use on day to day life. Research areas include multimedia development and delivery, cryptocurrencies, mobile development and marketing automation. Currently works in SalsaMobi as Senior Curriculum Developer and Blockchain Development Team Lead.</em></p><p><em>Julio have over 10 years of higher education teaching experience also worked as a tutor for several technologies research initiatives. With more than 12 years working on B2B and B2C companies in Content Delivery, Marketing and Multimedia industries; as Project Manager, Solutions Architect and Global Operations Team Lead.</em></p><p><em>On his free time he enjoys studying Music Production and Sound Engineering, while enjoys his other and main passion: spend time with his son and teach him new things as he watching him growth.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7a1e4618f4fd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Blockchain as a Data Structure]]></title>
            <link>https://medium.com/@juliomacr/blockchain-as-a-data-structure-3bd125d8ddda?source=rss-8a95de75a269------2</link>
            <guid isPermaLink="false">https://medium.com/p/3bd125d8ddda</guid>
            <category><![CDATA[data-structures]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[Julio Marín]]></dc:creator>
            <pubDate>Fri, 27 Jul 2018 01:10:43 GMT</pubDate>
            <atom:updated>2019-01-30T14:18:19.226Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H5ftKDrCy6-XU-5kJc4T1w.jpeg" /><figcaption>Blockchain</figcaption></figure><p>A blockchain is essentially a continuously growing list of records. Its <em>append-only</em> structure only allows data to be added to the database: altering or deleting previously entered data on earlier blocks is impossible because of its hashing methodology on each block. Blockchain technology is therefore well-suited for recording events, managing records, processing transactions, tracing assets, and voting just as it is.</p><p>However blockchains are saw as one form of distributed ledger technology, which gives an extra value to the blockchain data structure but not all distributed ledgers employ a blockchain.</p><h3>What is a Data Structure?</h3><p>In simple words a data structure is a particular way of organizing and storing data in a computer so that it can be accessed and modified efficiently. Also a data structure can be referred as a collection of data values, the relationships among them, and the functions or operations that can be applied to the data.</p><p>To simplify things I like to see a blockchain as a new data structure that mixes two of the most popular and simple ones: Linked List and Stack.</p><h3>Linked List</h3><p>Paraphrasing Wikipedia, the linked list is a linear collection of data elements, in which order is not given by their physical placement in memory. Instead, each element points to the next. It is a data structure consisting of a group of nodes which together represent a sequence. Under the simplest form, each node is composed of data and a reference (in other words, a link) to the next node in the sequence.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/864/1*qfVQP-wnlqXqXuf-3kc-0w.png" /><figcaption>Linked List</figcaption></figure><p>This structure allows for efficient insertion or removal of elements from any position in the sequence during iteration. More complex variants add additional links, allowing efficient insertion or removal from arbitrary element references. A drawback of linked lists is that access time is linear (and difficult to pipeline). Faster access, such as random access, is not feasible. Arrays have better cache locality as compared to linked lists. If you want to get deep on this take a look at the Wikipedia page on <a href="https://en.wikipedia.org/wiki/Linked_list">Linked Lists</a></p><h3>Stack</h3><p>The Stack data structure is an abstract data type that serves as a collection of elements, with two principal operations:</p><ul><li><strong><em>push</em></strong>, which adds an element to the collection, and</li><li><strong><em>pop</em></strong>, which removes the most recently added element that was not yet removed.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/773/1*_Y2fMTuIBSS5kwq3V4htgQ.png" /><figcaption>Stack</figcaption></figure><p>The order in which elements come off a stack gives rise to its alternative name, LIFO (last in, first out). Additionally, a peek operation may give access to the top without modifying the stack. The name “stack” for this type of structure comes from the analogy to a set of physical items stacked on top of each other, which makes it easy to take an item off the top of the stack, while getting to an item deeper in the stack may require taking off multiple other items first</p><h3>Blockchain</h3><p>Blockchain on its simple definition is a data structure used to create a decentralized ledger. Is composed of blocks in a serialized manner. A block contains a set of transactions, a hash of the previous block, timestamp, block reward, block number, and so on. Every block contains a hash of the previous block, thus creating a chain of block linked with each other.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/865/1*KYYL_lfp6tN4C9Sg_XF7xQ.png" /><figcaption>Blockchain</figcaption></figure><p>As mentioned blockchain is essentially a continuously growing list of records where the different added elements will come as in a stack structure but with no pop function due to the hashing methodology that is used to link the different blocks on the list. Its append-only structure only allows data to be added to the database: altering or deleting previously entered data on earlier blocks is impossible without invalidating the rest of the chain because of the hashing methodology on each block.</p><p>The major advantage of blockchain data structure is that it automates auditing and makes an application transparent yet secure. It can prevent fraud and corruption. It can be used to solve many other problems depending on how you implement and use it.</p><p>On decentralized applications and distributed layers for blockchains, every node on the network contains a copy of the blockchain and through a logical algorithm called consensus the blockchain is validated.</p><p>However as mentioned you can build and use the blockchain data structure to secure your data in your applications, ensuring and preventing fraud and corruption while automatically auditing the already inserted elements on the chain. If you want to learn more on Blockchain and build a simple implementation using JavaScript you can Signup in <a href="https://siminars.com/151330500909470182118098/summary/signup.sv">this</a> <a href="https://siminars.com/151330500909470182118098/summary/signup.sv">Intro course to Cryptocurrencies and Blockchain Development</a> and/or <a href="https://share.hsforms.com/1jy6dN70URxuy1M8QERC0xg2sg4j"><strong>subscribe here</strong></a> and we will notified you when we create more articles or tutorials as part of the <a href="https://www.salsamobi.com/">SalsaMobi</a> education efforts on Blockchain related technologies.</p><h3>Conclusion</h3><p>Distributed ledgers broadly, and blockchains specifically, are conceptual breakthroughs in managing information and can be expected to find application in every economic sector, even though you can use a blockchain in a not distributed ledger and still take advantage of it by handling it as a data structure.</p><p>If you want to know more the <a href="https://www.salsamobi.com/">SalsaMobi</a> education efforts on Blockchain related technologies may be a good start point, also you can <a href="https://medium.com/@juliomacr/why-does-the-web-needs-ipfs-7a1e4618f4fd"><strong>subscribe here</strong></a> and we will notified you when we create more articles or tutorials.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/150/1*ZyCjKWZWaVoB-_G2pMPi_A.png" /><figcaption><a href="https://salsamobi.com/">SalsaMobi</a> Logo</figcaption></figure><p><a href="https://www.linkedin.com/in/juliomacr/"><em>Julio Marin</em></a><em> is an advocate for the research and implementation of new technologies and their use on day to day life. Research areas include multimedia development and delivery, cryptocurrencies, mobile development and marketing automation. Currently works in SalsaMobi as Senior Curriculum Developer and Blockchain Development Team Lead.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3bd125d8ddda" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why do I feel it is so difficult to develop for Ethereum?]]></title>
            <link>https://medium.com/@juliomacr/why-you-may-feel-is-so-hard-to-develop-for-ethereum-6ff3b9c90b25?source=rss-8a95de75a269------2</link>
            <guid isPermaLink="false">https://medium.com/p/6ff3b9c90b25</guid>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[Julio Marín]]></dc:creator>
            <pubDate>Thu, 28 Jun 2018 22:40:46 GMT</pubDate>
            <atom:updated>2018-08-30T20:49:55.563Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/978/1*drkVOsPRV1M6ZcC-XQtrSw.jpeg" /><figcaption>Image source <a href="https://www.talk2solicitors.co.uk/blog/limits-frustration-contract/">https://www.talk2solicitors.co.uk/blog/limits-frustration-contract/</a></figcaption></figure><p>Unless you have been living under a rock you should have heard about cryptocurrencies, Bitcoin and Blockchain. Probably already know something about decentralized platforms and smart contracts. Well, Ethereum is a decentralized platform that runs smart contracts and allows us to create our own cryptocurrencies and decentralized applications.</p><p>Ethereum was founded in late 2014, and the amount of articles trying to explain what it is and how it works have grow exponentially during recent months, but still confusing everybody and moreover if you are a developer and want to get into this trend the chances to feel frustrated and lost increase exponentially.</p><p>You may say that as an IT person every day is common to have those feelings of frustration and satisfaction when overcome challenges, I think is part of what keep us doing this, but getting into Ethereum and Solidity got me into new levels.</p><h3>Why is hard?</h3><p>I am this kind of person that believes you can accomplish whatever you want and you can learn at least basics on anything easily. But when I get into this trend I felt overwhelmed by the amount of articles and tutorials. Where should I start? I went to the main site and read a lot of articles and every single one got me a new detail or explain something in a different way. The protocol is hard, the documentation is weak and difficult to understand, the API is annoying, the tools are weird, and goes on…</p><h3>How hard it is?</h3><p>I will give you my impressions on the topics I found more annoying and difficult to work with after playing with Solidity and Ethereum for a while.</p><h4>The Protocol</h4><p>The Ethereum protocol still on development, this forces you to spend some time everyday just reading. Is something good, I’m pretty sure that at some point when completely stable will be easy for everyone to build and deploy dApps, but because this is an ongoing work there are a lot of things that can change from one to another day.</p><h4>The Documentation</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1017/1*Hin5aFN2L_7dQqFW9HLqoQ.png" /></figure><p>As I mentioned at the beginning of this post, there are a bunch of articles trying to explain what Ethereum is and how it works and this can be really overwhelming, but even with all this articles and blog posts you still have the feeling that something is lost when you decide to make the next step and start building your first dApp. I went through a lot of tutorials and “Hello World” examples, all of them said were introductory tutorials and I still get confused. All the tutorials assume you have deep knowledge in other platforms and languages, which bring me to the next point.</p><h4>Prerequisites</h4><p>To be able to understand the full capabilities that dApps can bring you need some knowledge on infrastructure, different platforms, networking, security, and different tools and programming languages. Not all developers I know have knowledge in all those things, making hard to even setup your own development environment.</p><h4>The Tools</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4pJ9h1fIvu0oicv3qMudEg.png" /><figcaption>Ganache accounts view</figcaption></figure><p>How to setup your development environment? Which IDE to use? CLI tools? Web tools? The true is that there are several tools I found very useful, unfortunately most of them don’t have good documentation, had bugs you will discover until you are programming and nothing works, some are discontinued and/or consumes lots of memory. Also once you finally setup your environment and development flow you may find some other problems with the tools to build and run your local blockchain.</p><h4>Ether</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1BHJOYr1jHvwIb8qItQK6Q.png" /><figcaption>There are lots of Pyramid Schemes/Scams around the cryptocurrencies — <strong>Stay away!</strong></figcaption></figure><p>You need money to deploy your app. Yes real and actual money, because in order to send your app and interact with the network you need to pay “gas” to the miners who do all the work to include the code in the blockchain, you will have to specify how much money are you willing to pay but the gas price is set by the network and the amount of gas expensed will determinate the final amount you will end paying for your transaction.</p><h4>Solidity</h4><p>This is one of the languages you can use to build and compile code into Ethereum machine code, is the most popular and the one for which you will find most (if not all) the tutorials to deploy your smart contracts. The language is pretty similar to JavaScript and Ethereum apparently has been designed to be extremely easy to learn by web-designer with basic JavaScript knowledge. This is true, however the language have some particularities you need to be aware of, like how the language handle the array definition syntax and how you retrieve those values. Also some errors while compiling when you use one IDE or another in which you may need to deploy your contract using hex values for all the test data you sent.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/503/1*zIybrXWUYpSRhBL57ib2Vg.png" /><figcaption>Basic JavaScript and other stuff knowledge required</figcaption></figure><h3>What should you do?</h3><p>I would say that most of the issues are due to lack of knowledge on some tools and that there is so much incredible and talented people working on this that the growth is faster that my learning capabilities. With that being said and with all my points exposed, if you still in for a challenge this is your next learning step.</p><p>The opportunities for Blockchain and Ethereum developers are a lot and the uses cases are wide open right now. There is no “Blockchain Amazon” yet, there are a lot of ideas that can be maintained in a blockchain model, there a lot of chance for the Ethereum network to grow.</p><p>So, you need to read a lot and keep an eye on Ethereum channels. Practice a lot and spend some time taking all the courses and tutorials you will find out there. There are companies like <a href="https://www.salsamobi.com/"><strong><em>SalsaMobi</em></strong></a> making efforts to educate on blockchain related stuff, sign into webinars and conferences, read about the different communities. <strong>Basically get involve!</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/442/1*3i_41NGLlhREgH5AZYbSog.png" /><figcaption><a href="https://www.salsamobi.com/">SalsaMobi</a> education efforts on Blockchain related technologies</figcaption></figure><p>As a first step you can find a <strong><em>FREE</em></strong> Introductory course to Ethereum that I design <a href="http://siminars.com/152700307097018534618098/summary.sv">here</a>.</p><p>If you like to get notified when I write more articles or tutorials, you can <a href="https://medium.com/@juliomacr/why-does-the-web-needs-ipfs-7a1e4618f4fd"><strong>subscribe here</strong></a><strong>.</strong></p><p><a href="https://www.linkedin.com/in/juliomacr/"><em>Julio Marin</em></a><em> is an advocate for the research and implementation of new technologies and their use on day to day life. Research areas include multimedia development and delivery, cryptocurrencies, mobile development and marketing automation. Currently works in SalsaMobi as Senior Curriculum Developer and Blockchain Development Team Lead, while works as Technology Professor in the Latin American University of Science and Technology and helps with the growth initiatives for mobile apps.</em></p><p><em>Julio have over 9 years of higher education teaching experience at several Universities, teaching different courses on Web Development, Mobile Development and Operative Systems at Technical, Bachelor Masters and post degree or specialization levels. Also worked as a tutor for several student research initiatives in mobile and web development for engineering faculties. Moreover he have provided support on new class development and career curriculum updates.</em></p><p><em>He have more than 12 years working on B2B and B2C companies in Content Delivery, Marketing and Multimedia industries; as Project Manager, Solutions Architect and Team Lead.</em></p><p><em>As Project Manager have been in charge of projects of any kind, recently for restaurants in the Missouri area. Those projects goes from implementing POS systems up to to security systems and online marketing projects. Also have provided help with different initiatives like franchise creations, new business development and new marketing strategies.</em></p><p><em>Have worked in Marketing Automation companies specialized in Lead Management, Demand Generation, Telemarketing and CRM as a Solutions Architect working with several North America accounts, implementing solutions and integrations with several CRMs and Marketing automatization tools.</em></p><p><em>Also has experience Leading global operations and implementation teams in the overall process of support and integration of new products for delivering digital content of the highest quality at the most important customers worldwide.</em></p><p><em>On his free time he studies Music Production and Sound Engineering, while trying to get involve into his local musical scene supporting small bands and events. His other and main passion is to spend time with his son and teach him new things as he watching him growth.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6ff3b9c90b25" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>