<?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 Martibezyose on Medium]]></title>
        <description><![CDATA[Stories by Martibezyose on Medium]]></description>
        <link>https://medium.com/@martibezyose?source=rss-f6630af2440f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*0o_pmYSQxM5Fz6pZ.jpg</url>
            <title>Stories by Martibezyose on Medium</title>
            <link>https://medium.com/@martibezyose?source=rss-f6630af2440f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 09:13:16 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@martibezyose/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[Kristin Smith, Blockchain Association executive director, breaks down 2019’s biggest crypto…]]></title>
            <link>https://medium.com/@martibezyose/kristin-smith-blockchain-association-executive-director-breaks-down-2019s-biggest-crypto-2781870e8eec?source=rss-f6630af2440f------2</link>
            <guid isPermaLink="false">https://medium.com/p/2781870e8eec</guid>
            <category><![CDATA[blog]]></category>
            <dc:creator><![CDATA[Martibezyose]]></dc:creator>
            <pubDate>Sun, 29 Dec 2019 07:10:06 GMT</pubDate>
            <atom:updated>2019-12-29T07:10:06.947Z</atom:updated>
            <content:encoded><![CDATA[<h3>Kristin Smith, Blockchain Association executive director, breaks down 2019’s biggest crypto stories on Capitol Hill</h3><p>Kristin Smith is executive director of the Blockchain Association. In this episode, Kristin sits down for her second time with Frank, Ryan, and Steven to discuss:</p><ul><li>Where we stand after the Libra hearings and predictions on how this story will play out in 2020</li><li>The important differences between Republicans and Democrats in the manner they introduce crypto related legislation</li><li>The Blockchain Association’s efforts in making the U.S. more appealing for blockchain businesses to operate</li><li>The implications of Brad Sherman being appointed as new chair of the subcommittee of the Financial Services Committee</li></ul><p><em>The transcript is provided for your convenience, please excuse any errors or typos resulting from the transcription process:</em></p><p><strong>Frank Chaparro </strong>Ladies and gentlemen, thank you so much for tuning in to what is a very special episode of The Scoop. We have Kristin Smith and this is the second time. Yes, the second time she’s joining us. No, this is quite the accomplishment. We have a prize for her, as a result.</p><p><strong>Kristin Smith </strong>I love prizes.</p><p><strong>Frank Chaparro </strong>We have a case of White Claw waiting in the fridge for you from our event from Wednesday leftover. And that’s the best we can do. We’re a startup. We’re a venture-backed startup, so that is literally the best we can do. We’re gonna be diving into so many interesting things. You’re plugged into Washington. Whenever, you know, we’re picking up on something, we reach out to you to get your opinion because you represent so many companies at the Blockchain Association where you are pushing for thoughtful, innovative crypto regulations and policies. And those are some of the things we’ll be talking about. Moving into 2020, what we can expect, what we might not expect. 2019 defined, obviously, by Libra, by Facebook and now most recently, Kelly Loeffler being appointed to the Senate. Some of these things, I imagine, are going to spill over into 2020. What are you most excited about?</p><p><strong>Kristin Smith </strong>I’m excited that Washington in general, but specifically Congress, is getting much better on this stuff. There is a deeper understanding of the technology. There’s a belief that it’s inevitable and that it’s important and that the U.S. wants to be competitive. And that’s not universal throughout every single individual lawmaker, but the conversations have gotten way more sophisticated than they were a year ago at that time. So I think that we’ll see some thoughtful efforts coming out of the Senate. We’ll see some targeted legislation at Libra in the House. But, yeah, we’re able to have a deeper conversation. And I don’t think we’ll get any broad legislation necessarily passed this year, but the debate’s happening and that’s an important phase of the process to be entering into.</p><p><strong>Frank Chaparro </strong>When you joined us last time, you talked about the dichotomy of crypto regulations changing either through law, through the courts, rather through courts or through regulation brought down by Congress and lawmakers. Do you see the space moving towards that direction of Congress, moving forward and pushing for standards and regulations versus things being determined by courts?</p><p><strong>Kristin Smith </strong>I think we’ll see some efforts in Congress. I don’t think we’ll see anything actually enacted into law. It is a presidential year coming up, and so policymaking in D.C. — even at the agency level, not that there’s anything live going on at the agency level right now — but it almost entirely shuts down, especially as we get sort of past the first quarter, second quarter of the year. All people care about on Capitol Hill is getting reelected. We’ve got a presidential race going on that’s in the backdrop. So, you know, sort of federal agencies now most the agencies we deal with are, you know, sort of independent agencies, so they’ll continue to do their enforcement actions, but nobody is going to take on any major political type of an effort in a presidential year. So what does that mean for us? It doesn’t mean we, you know, go home and not engage with lawmakers. There is gonna be a lot of activity and there’s still much more education that needs to be done, and so we can use this time to lay the groundwork. Whether there is a change in power in Congress or a new administration or not, we’ll have new leaders in place in the start of 2021, so we really need to use this time to be ready for some action.</p><p><strong>Ryan Todd </strong>Is there a dead period next year where there’s just not going to be much progress on that front? Like, people just focused on the election?</p><p><strong>Frank Chaparro </strong>I forgot to introduce Ryan, Ryan Todd, our great researcher, standing beside me.</p><p><strong>Kristin Smith </strong>Yeah, D.C. shuts down around June, typically. You know, things happen. If there’s a crisis — you know, a major financial crisis or a terrorist attack or something like that, you know — the town will kick up again and start running and moving policy.</p><p><strong>Frank Chaparro </strong>Well it seemed like things were in full swing right after Libra. Where are we at in terms of the sentiment in Washington when it comes to cryptocurrencies? Seems like a lot of those bills that were proposed not passed are dead in the water and not really going to go anywhere.</p><p><strong>Kristin Smith </strong>Oh, no, that’s quite, quite the contrary.</p><p><strong>Frank Chaparro </strong>So let’s focus in on the anti-big tech in finance bill. I don’t think that’s the name of it, but it’s something to that effect.</p><p><strong>Kristin Smith </strong>So there’s a couple of bills that were circulated. So the timeline is as follows. We had the Libra hearings in the House and the Senate back in July, and then in October, Mark Zuckerberg came and testified before the House of Representatives. And when he came back for that hearing, there was a series of bills that were proposed at that time. One is to keep big tech out of finance acts that if you have more than twenty-five billion dollars of revenue in tech, you can’t also be in finance. There was another one called the Managed Stable Coins are Securities Act. And that one is — that’s a live exercise right now. That is — actually up until this morning, right, we’re recording this on a Friday, I don’t know when this will go live, but up until this morning, we were on track for that bill to be voted on at the committee level on Tuesday next week on the 10th and 11th.</p><p><strong>Frank Chaparro </strong>Now, what would that bill propose?</p><p><strong>Kristin Smith </strong>So this bill is, it’s really an effort to go after Libra. What it does is It defines something called a managed stable coin, and it declares that that managed stable coin is a security and that if you want to trade them —</p><p><strong>Frank Chaparro </strong>And that’s a direct attack on Facebook in terms of it’s structure, there’s no other —</p><p><strong>Kristin Smith </strong>Yes.</p><p><strong>Ryan Todd </strong>But it also spills over to other stable coin projects too, right? So it’s like how would that impact Coinbase?</p><p><strong>Frank Chaparro </strong>Well, it’s not necessarily managed like the way that Libra is, because it’s a basket of these currencies and securities versus just a peg.</p><p><strong>Kristin Smith </strong>Yes. And so what’s interesting here — and this happens a lot with early-stage legislative proposals, right? So you have to remember that these proposals are drafted by sometimes by committee staff, but sometimes just personal office staff, sometimes they’re lawyers, sometimes are not. There is a legislative council that helps with this process, but it’s very often in the early stage — and in some ways, this is the beauty of the legislative process — you throw ideas out there and then you work to improve them. And so Representative Sylvia Garcia is on the Financial Services Committee and wanted to take a stab at doing this. And so put out this idea that, hey, this looks to me like an ETF. I think it’s probably, you know, she’s thinking it’s probably already a security, but wants to drive that point home, and so crafted this in an effort to go after Libra. The problem is the way it was crafted at this early stage is that it captured probably everything. But the good news is the intent of this was not “All cryptocurrencies are Securities Act” or “All stable coins are Securities Act,” it was the Managed Stable Coins are Securities Act. So if you think about it, that’s actually — the intent is to be fairly narrow on what is a managed stable coin.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fbutton.like.co%2Fin%2Fembed%2Fmartiyose%2Fbutton%2F&amp;url=https%3A%2F%2Fbutton.like.co%2Fmartiyose&amp;image=https%3A%2F%2Fstatic.like.co%2Flikecoin_de-portrait.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=like" width="485" height="212" frameborder="0" scrolling="no"><a href="https://medium.com/media/229fe1906427e61c0785a45731bab481/href">https://medium.com/media/229fe1906427e61c0785a45731bab481/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2781870e8eec" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Spotify: Your Political Ads Are No Good Here]]></title>
            <link>https://medium.com/@martibezyose/spotify-your-political-ads-are-no-good-here-a676a9d69dbf?source=rss-f6630af2440f------2</link>
            <guid isPermaLink="false">https://medium.com/p/a676a9d69dbf</guid>
            <category><![CDATA[politics]]></category>
            <dc:creator><![CDATA[Martibezyose]]></dc:creator>
            <pubDate>Sun, 29 Dec 2019 07:08:05 GMT</pubDate>
            <atom:updated>2019-12-29T07:08:05.453Z</atom:updated>
            <content:encoded><![CDATA[<p>Streaming giant Spotify will ban all political advertising in early 2020, <a href="https://adage.com/article/digital/spotify-suspend-political-ads-2020/2224281">Ad Age reported</a> on Friday, saying in a statement to the site that it does “not yet have the necessary level of robustness in our process, systems and tools to responsibly validate and review this content.”</p><p>The suspension of paid political ads on Spotify’s streaming platform will apply to all ad-supported content, including its original podcasts, Ad Age wrote. That tier has <a href="https://www.cnbc.com/2019/12/27/spotify-suspends-political-ads-for-2020-opposing-facebook-position.html">around 141 million users</a>. The company added in the statement that it would “reassess this decision as we continue to evolve our capabilities.”</p><p>By banning political ads, Spotify is following the same path as Google and Twitter, the former of which suspended microtargeting for political ads and the latter shut them down entirely. It’s the opposite strategy as the one pursued by Facebook, which has not only embraced political ads but allowed politicians to <a href="https://gizmodo.com/facebook-doesnt-give-a-fuck-if-politicians-lie-in-ads-1839069267">openly lie in them</a>.</p><p>Facebook has <a href="https://gizmodo.com/company-that-profits-off-political-misinformation-says-1839236544">faced relentless criticism</a> for months over its stance, which primarily benefits politicians eager to lie as much as possible and appears to be <a href="http://nymag.com/intelligencer/2019/10/facebook-political-ad-election.html">partially the result</a> of a <a href="https://www.wsj.com/articles/peter-thiel-at-center-of-facebooks-internal-divisions-on-politics-11576578601">pressure campaign</a> <a href="https://mashable.com/article/facebook-right-wing-social-network/">by conservatives</a>. However, some progressive groups have <a href="https://www.nytimes.com/2019/11/22/technology/campaigns-pressure-facebook-political-ads.html">also opposed restrictions</a> on Facebook ads, and there’s also the question of whether setting up for-profit companies as the arbiters of political discourse will have negative consequences for groups <a href="https://www.thenation.com/article/twitter-facebook-political-advertising/">opposing the status quo</a> (essentially a no-win scenario created by tech firms holding too much power in the first place).</p><p>Google’s approach <a href="https://gizmodo.com/google-will-restrict-political-ads-worldwide-starting-i-1839981909">stakes a middle ground</a>, allowing political ads but restricting microtargeting tools that could enable candidates to tailor messages — or lies — to extremely specific constituencies. Its policy applies worldwide and limits advertisers to targeting based on age, gender, and location at the postal code level, as well as “contextual” data like what type of news they consume.</p><p>Political ads are not huge money-makers for any of the aforementioned platforms, but they generate other benefits such as <a href="https://gizmodo.com/sheryl-sandberg-thinks-you-re-an-idiot-1839695899">influence on the political process</a> for the larger players with troves of useful data. Ad Age reported that a person familiar with Spotify’s ad business characterized political ads as negligible financially; buyers included Democratic candidate Senator Bernie Sanders and the Republican National Committee.</p><p>“Spotify wasn’t a widely used online advertising platform for campaigns before,” GOP digital strategist Eric Wilson <a href="https://www.reuters.com/article/us-spotify-political-ads/spotify-to-suspend-political-advertising-in-2020-idUSKBN1YV1GI">told Reuters</a>. “But as other online platforms restricted their political ad inventory, advertisers were on the hunt for new options.”</p><p>According to Ad Age, Spotify will prohibit ads placed by “political organizations such as candidates for office, elected and appointed officials, Super PACs, nonprofits and political parties,” as well as ads lobbying for or against political groups, legislation, or judicial decisions. It will not affect content embedded in podcasts themselves, the site wrote, and the decision will only be in effect stateside.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fbutton.like.co%2Fin%2Fembed%2Fmartiyose%2Fbutton%2F&amp;url=https%3A%2F%2Fbutton.like.co%2Fmartiyose&amp;image=https%3A%2F%2Fstatic.like.co%2Flikecoin_de-portrait.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=like" width="485" height="212" frameborder="0" scrolling="no"><a href="https://medium.com/media/229fe1906427e61c0785a45731bab481/href">https://medium.com/media/229fe1906427e61c0785a45731bab481/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a676a9d69dbf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I got sucked into the cryptocurrency craze and walked away]]></title>
            <link>https://medium.com/@martibezyose/how-i-got-sucked-into-the-cryptocurrency-craze-and-walked-away-dc744b2cfca0?source=rss-f6630af2440f------2</link>
            <guid isPermaLink="false">https://medium.com/p/dc744b2cfca0</guid>
            <dc:creator><![CDATA[Martibezyose]]></dc:creator>
            <pubDate>Sun, 29 Dec 2019 07:04:48 GMT</pubDate>
            <atom:updated>2019-12-29T07:04:48.981Z</atom:updated>
            <content:encoded><![CDATA[<p>On a gray morning in May 2016, I left my office in downtown San Francisco and walked down Montgomery Street, to Wells Fargo.</p><p>I swiveled open the two gigantic doors, walked up to the counter, and explained to the teller that I needed to send a money wire to Gemini Trust Company, LLC., a cryptocurrency exchange based in New York City.</p><p>“Certainly,” she said. “How much will you be sending today, Mr. Conway?”</p><p>“One hundred thousand dollars.”</p><p>My voice sped up as I said it: <em>$100k</em>. This represented my family’s entire life savings. It was money my wife and I planned to use to pay for our 3 kids’ college tuition, our eventual retirement, and emergency expenses. I was a middle-aged guy with a family who had never been on the cutting edge of anything. But I was about to bet everything I had on an unproven virtual currency called Ethereum.</p><p>This could only end two ways: I’d lose everything I owned, or make a fortune.</p><h3>Restless in corporate America</h3><p>Up to that point, my professional life was one of quiet desperation.</p><p>I was a 45-year-old middle manager at a major multi-media company in San Francisco. Though I earned a respectable $150k per year, I hated the fake company culture, the bureaucracy, and the endless chains of command.</p><p>Like so many others, I was looking for some kind of escape. And soon, I found one.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fbutton.like.co%2Fin%2Fembed%2Fmartiyose%2Fbutton%2F&amp;url=https%3A%2F%2Fbutton.like.co%2Fmartiyose&amp;image=https%3A%2F%2Fstatic.like.co%2Flikecoin_de-portrait.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=like" width="485" height="212" frameborder="0" scrolling="no"><a href="https://medium.com/media/229fe1906427e61c0785a45731bab481/href">https://medium.com/media/229fe1906427e61c0785a45731bab481/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dc744b2cfca0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Solve the Secret Santa Mix-Match with Google Sheets and Apps Script]]></title>
            <link>https://medium.com/@martibezyose/solve-the-secret-santa-mix-match-with-google-sheets-and-apps-script-e888f8363e16?source=rss-f6630af2440f------2</link>
            <guid isPermaLink="false">https://medium.com/p/e888f8363e16</guid>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Martibezyose]]></dc:creator>
            <pubDate>Mon, 11 Nov 2019 10:56:32 GMT</pubDate>
            <atom:updated>2019-11-11T10:56:32.433Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*BjX2y7dZpTTbJXce.png" /></figure><blockquote><em>Originally published on </em><a href="https://medium.com/u/8ff45ee92f18"><em>Hashnode</em></a><em> : </em><a href="https://hashnode.com/post/secret-santa-mix-match-with-google-sheets-and-apps-script-cjptefe1d00rikas2z9joelqa"><em>https://hashnode.com/post/secret-santa-mix-match-with-google-sheets-and-apps-script-cjptefe1d00rikas2z9joelqa</em></a></blockquote><p><strong><em>Google Apps Script has always been a tool in the shadow. Many developers don’t know about this tiny JavaScript-based powerful scripting language. In this tutorial, I will show you how to build a very simple Secret Santa mix-match using Google Sheets.</em></strong></p><p>All reference links, code, random generators are listed at the bottom of the article.</p><h3>The Problem</h3><p>You have a huge list with people’s names/emails/whatever, and now you want to shuffle them and then assign their respective partners randomly.</p><p>This can be a really time-consuming task, but instead of doing this manually, I’ll show you how to automate this process.</p><h3>The Solution</h3><p>Google Apps Script is this less-known JavaScript-based lightweight application programming language which allows you to automate the whole Google G-suite and build add-ons for it. In this tutorial, I will teach you how to deal with Google Sheets and automate a few things.</p><p>Create a new spreadsheet in <a href="http://sheets.google.com/">sheets.google.com</a>, let’s call it MixMatch and fill the columns with users emails and their respective names.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1TrC1tZ4ELAGYpWT.png" /></figure><p>Next, click on Script editor and a new tab will open with an editor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3o1YgPInFot3VqkP.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*89cI2FbeP-mfpcT6.png" /></figure><p>Erase the content and let’s start fresh.</p><h3>Steps We Need to Complete</h3><ol><li>Read the data of your current open spreadsheet.</li><li>Arrange and shuffle the data.</li><li>Save it in a new sheet</li><li>If needed, send everyone their respective partner’s details through email.</li></ol><h3>Step 1: Get the Data from Sheet</h3><pre>function readCurrentSheet() { var currentActiveSheet = SpreadsheetApp.getActiveSheet(); Logger.log(currentActiveSheet.getDataRange().getValues()); return currentActiveSheet.getDataRange().getValues(); }</pre><p>SpreadsheetApp.getActiveSheet() is an API provided by Apps Script. You can read more about it <a href="https://developers.google.com/apps-script/reference/spreadsheet/sheet">here</a>.</p><p>This returns a Range object, but what we need is the data from the sheet. For this, we can use getValues() method which returns a multi-dimensional array of cell values.</p><p>Logger.log() is like console.log() of Javascript. You can use that to log data and verify it. You can view the logs by clicking on view drop-down in the menu bar or use ctrl + enter.</p><p>When you type the above-mentioned function and hit save hit save ( ctrl+ s). You will be prompted for a project name, fill it and proceed.</p><p>Now, in the top menu bar select a function that you want to run. This will run that function and ask for your permission to access the sheet. Sign in to your account and you will see a security error. Don’t worry about that and proceed. It’s you who is accessing your own sheets, so no worries there.</p><figure><img alt="Run the readCurrentSheet() function and view log" src="https://cdn-images-1.medium.com/proxy/1*t8fZzmvCpypN6B21DKtnMg.png" /></figure><p><em>Run the readCurrentSheet() function and view log.</em></p><h3>Step 2: Shuffle the Data</h3><p>Now we have the data, all we have to do is mix it up.</p><pre>function shuffle(array) { var currentIndex = array.length, temp, randomIndex; while (0 !== currentIndex) { randomIndex = Math.floor(Math.random() * currentIndex); currentIndex -= 1; temp = array[currentIndex]; array[currentIndex] = array[randomIndex]; array[randomIndex] = temp; } return array; }</pre><p>We have an array consisting of rows of data from our sheet. Now we have to split it into two and save it in a new sheet. The catch here is that person A gifts B, now person C should gift A and not B. So for this, we will have to shuffle the second half and assign it back to the first list as givers.</p><h3>Step 3 — Saving Data in a Final Sheet</h3><p>Loop through and append the shuffled array into a new sheet.</p><pre>var firstHalf = shuffledList.splice(0, shuffledList.length/2); var newShuffledGivers = [].concat(firstHalf); var newShuffledGivers = shuffle(newShuffledGivers); var newSheet = SpreadsheetApp.getActiveSpreadsheet().insertSheet(&#39;Final list&#39;); for(var i=0; i&lt;firstHalf.length; i++){ temp = []; temp = temp.concat(firstHalf[i] || [&#39;&#39;,&#39;&#39;,&#39;&#39;]).concat(shuffledList[i]).concat(newShuffledGivers[i] || [&#39;&#39;,&#39;&#39;,&#39;&#39;]); newSheet.appendRow(temp); }</pre><p>You will now have a new sheet called “Final list” with shuffled data having each user with their respective partner’s details. If you are running this script again, which means that you already have a script with name ‘Final list’, it will throw an error. So make sure to delete the sheet before you run it again or modify the script to update the script.</p><h3>Step 4 — Emailing the Participants</h3><p>Google Apps Script is so cool that you can even email from right inside this script ( from your email).</p><pre>MailApp.sendEmail(TO_EMAIL_ADDERSS, TITLE_HERE, MESSAGE_HERE);</pre><p>A final function with mailing built-in.</p><pre>var newSheet = SpreadsheetApp.getActiveSpreadsheet().insertSheet(&#39;FinalList&#39;); for(var i=0; i &lt; firstHalf.length; i++){ temp = []; temp = temp.concat(firstHalf[i] || [&#39;&#39;,&#39;&#39;,&#39;&#39;]).concat(shuffledList[i]).concat(newShuffledGivers[i] || [&#39;&#39;,&#39;&#39;,&#39;&#39;]); MailApp.sendEmail(firstHalf[i][0], &#39;You secret santa partner&#39;, &#39;Hello there, your secret santa partner is &#39; + shuffledList[i][1]); MailApp.sendEmail(shuffledList[i][0], &#39;You secret santa partner&#39;, &#39;Hello there, your secret santa partner is &#39; + newShuffledGivers[i][1]); newSheet.appendRow(temp); }</pre><p>Finally, you will have a list such as this one. Make sure to select function main() before you hit Run</p><figure><img alt="Yellow send to green, Green send to Red" src="https://cdn-images-1.medium.com/proxy/1*-umulUc6u8Eb3_4FJS_9WA.png" /><figcaption><em>Yellow to green, Green to Red</em></figcaption></figure><p>This script literally takes about 15 mins to write and does a whole lot of work. However, it’s not perfect, we need to handle randomness and cover edge cases, but we weon’t do that in this tutorial. Imagine using it for some bigger tasks, automate your business, maybe even build a tiny CRM for your company. Next time don’t build a huge tool for your client, give Apps scripts a try.</p><p>I hope this will help you get started with the infamous Google Apps Script and help you understand how to use it. There are way more things that apps script can do, e.g. host a website from docs, sheets, interact with Firebase… Most of the add-ons for G-suite are built using apps scripts.</p><p>There is even a CLI &amp; version control to manage your projects if it gets big. Check out intro of <a href="https://medium.com/@theevilhead/clasp-the-clasp-google-appsscript-cli-d3389aaa302b">this article</a> and <a href="https://developers.google.com/apps-script/guides/clasp">main docs</a>.</p><p>You can see the final script <a href="https://gist.github.com/theevilhead/62ae52718729b612e75efa3a57deee39">here</a>, and get a glimpse of the whole setup. (Comment the mail part before you run this script since those are dummy emails)</p><p>Please let me know if you found this useful and feel free to share this tutorial with people you think might need this 😎✌</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fbutton.like.co%2Fin%2Fembed%2Fmartiyose%2Fbutton%2F&amp;url=https%3A%2F%2Fbutton.like.co%2Fmartiyose&amp;image=https%3A%2F%2Fstatic.like.co%2Flikecoin_de-portrait.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=like" width="485" height="212" frameborder="0" scrolling="no"><a href="https://medium.com/media/229fe1906427e61c0785a45731bab481/href">https://medium.com/media/229fe1906427e61c0785a45731bab481/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e888f8363e16" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hacking Education For The Future with Eric P.M. Vermeulen]]></title>
            <link>https://medium.com/@martibezyose/hacking-education-for-the-future-with-eric-p-m-vermeulen-1fd3a5cdcb9e?source=rss-f6630af2440f------2</link>
            <guid isPermaLink="false">https://medium.com/p/1fd3a5cdcb9e</guid>
            <category><![CDATA[podcast]]></category>
            <dc:creator><![CDATA[Martibezyose]]></dc:creator>
            <pubDate>Mon, 11 Nov 2019 10:54:32 GMT</pubDate>
            <atom:updated>2019-11-11T10:54:32.695Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8NJi6KLzWuPgz5tl.jpeg" /></figure><p><a href="https://hackernoon.com/@trentlapinski"><strong>Trent Lapinski</strong></a></p><p>@trentlapinski</p><h3>Hacking Education For The Future with Eric P.M. Vermeulen</h3><p>January 21st 2019</p><p><a href="https://twitter.com/intent/tweet?text=Hacking%20Education%20For%20The%20Future%20with%20Eric%20P.M.%20Vermeulen&amp;url=https%3A%2F%2Fhackernoon.com%2Fhacking-education-for-the-future-with-eric-p-m-vermeulen-d1323d92d8ba&amp;via=trentlapinski&amp;hashtags=podcast,hackernoonpodcast,education"><strong>TWEET THIS</strong></a></p><h3>Episode 19 of the <a href="https://podcast.hackernoon.com/">Hacker Noon Podcast</a>: An interview with <a href="https://medium.com/u/9eaa7a0096d3">Erik P.M. Vermeulen</a>, Professor, Executive, and innovator.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PEbXzQcPf4xzDjQQA5Ab9g.jpeg" /></figure><blockquote>Today’s show would not be possible without <a href="https://do.co/2TTnFCL">Digital Ocean</a>. Learn more at <a href="https://do.co/2TTnFCL">do.co/hackernoon</a>.</blockquote><p>In this episode <a href="https://medium.com/u/138c86887e95">Trent Lapinski</a> and <a href="https://medium.com/u/9eaa7a0096d3">Erik P.M. Vermeulen</a> discuss decentralization, automation, and the future of work for Millennials.</p><blockquote><em>“I really believe in communities.”</em></blockquote><blockquote><em>“When I talk about creativity, and what I want my students to be, I want them to understand communities. I want them to be visible.’”</em></blockquote><blockquote><em>“Thinking about how to become visible in a community based World, and how you can actually contribute and build something with the community is something they cannot do on their own. Most of them don’t even understand it, and when we talk about education, that’s what education is about, because it is going to happen, this decentralized thing.” — </em><a href="https://medium.com/u/9eaa7a0096d3"><em>Erik P.M. Vermeulen</em></a></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/0*jmvtej9HriC1a3HN.jpg" /></figure><p></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fbutton.like.co%2Fin%2Fembed%2Fmartiyose%2Fbutton%2F&amp;url=https%3A%2F%2Fbutton.like.co%2Fmartiyose&amp;image=https%3A%2F%2Fstatic.like.co%2Flikecoin_de-portrait.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=like" width="485" height="212" frameborder="0" scrolling="no"><a href="https://medium.com/media/229fe1906427e61c0785a45731bab481/href">https://medium.com/media/229fe1906427e61c0785a45731bab481/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1fd3a5cdcb9e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Adventure of Humans in the World of Mess: Automation To The Rescue]]></title>
            <link>https://medium.com/@martibezyose/adventure-of-humans-in-the-world-of-mess-automation-to-the-rescue-76792df3dae8?source=rss-f6630af2440f------2</link>
            <guid isPermaLink="false">https://medium.com/p/76792df3dae8</guid>
            <category><![CDATA[life]]></category>
            <dc:creator><![CDATA[Martibezyose]]></dc:creator>
            <pubDate>Mon, 11 Nov 2019 10:52:01 GMT</pubDate>
            <atom:updated>2019-11-11T10:52:01.162Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/960/0*jnnOfjHpxBFH6rS1.jpeg" /></figure><p>Keeping our desks filled with shiny stuff that projects our personality has become the only way we want others to learn us. We are so willing to define ourselves by faking our nature regardless of how fragile and calm we are from the inside. Our thirst for success has gone so far where in the end it only shows us how much we have missed.</p><p>All the things we feel and know but would never dare to go against, cause all that matters is,</p><ul><li>Are we happy doing them?</li><li>Does it relieve us from the pressure of worrying about the future wellness?</li><li>Does it help us evolve?</li><li>Are all this mess the reason we have come so far, the growth and the life we own now?</li></ul><p><strong>Probably yes!</strong></p><p>And that’s enough to be doing what we want. But it’s important we know where and when to <strong><em>pause and resume.</em></strong></p><blockquote><strong><em>“Wellness is determined by the time we take out for ourselves also it’s not a one day hack”</em></strong></blockquote><p>Grinding for 8 months and breaking off the cycle wouldn’t work cause you’ve subconsciously gotten into the habit of being engaged with things constantly. Taking a break just doesn’t happen. Rather we give it a thought while there’s still a chance. Stand a chance to invest time on things that excite and rejuvenate you.</p><p><strong>Leverage technology on good terms.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*7LY45JYk4iLxDQ4u41MlGg.jpeg" /><figcaption>Image Source: Pixabay</figcaption></figure><blockquote><em>At your home where waking up in the morning is so unachievable ask </em><a href="https://www.engadget.com/2018/11/17/alexa-wake-on-lan-voice-control/"><strong><em>Alexa</em></strong></a><em> to do it. Don’t over analyse your humane feelings, your mum is just isn’t ready to wake you up anymore, she’s tired and she’s happy now there’s Alexa to do it. Well now, it’s time you go for your morning jog, but your attention has dipped to zero, so go wired with the </em><a href="https://medium.com/u/60a317bb70e4"><em>Spotify</em></a><em> and give jogging through a lengthy road a shot. You’re back home, up for a quick breakfast, your </em><a href="https://techcrunch.com/2017/01/07/toaster/"><strong><em>Griffin Toaster</em></strong></a><em> already making it.</em></blockquote><p>Next in the list is to go through your day’s agenda and that’s when all the mess become even messier, super uncomfortable and lost in the space of data overload. You’ve no idea where you business is getting at.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fbutton.like.co%2Fin%2Fembed%2Fmartiyose%2Fbutton%2F&amp;url=https%3A%2F%2Fbutton.like.co%2Fmartiyose&amp;image=https%3A%2F%2Fstatic.like.co%2Flikecoin_de-portrait.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=like" width="485" height="212" frameborder="0" scrolling="no"><a href="https://medium.com/media/229fe1906427e61c0785a45731bab481/href">https://medium.com/media/229fe1906427e61c0785a45731bab481/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=76792df3dae8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Lightning Network Apps that Don’t Cost a Cent]]></title>
            <link>https://medium.com/@martibezyose/lightning-network-apps-that-dont-cost-a-cent-cadf84b3ba4?source=rss-f6630af2440f------2</link>
            <guid isPermaLink="false">https://medium.com/p/cadf84b3ba4</guid>
            <category><![CDATA[ethereum-blockchain]]></category>
            <dc:creator><![CDATA[Martibezyose]]></dc:creator>
            <pubDate>Sun, 03 Nov 2019 13:40:50 GMT</pubDate>
            <atom:updated>2019-11-03T13:40:50.262Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*chXtgSRXvnBm9_nC.png" /></figure><p>The Lightning Network enables anyone to use bitcoin instantly, with minimal fees, while still being permissionless and having the bitcoin’s blockchain acting as a fallback that you can always count on.</p><p>Hundreds of people have been working on new <a href="https://www.lapps.co/">Lightning Network apps</a> (Lapps), from indie hackers interested in creating new ways of experiencing payments online, to VC funded companies creating new businesses on top of Lightning.</p><p>Getting on Lightning used to be difficult in the beginning, but today you can start playing around with all these Lapps in less than 5 minutes, without spending a single penny.</p><h3>Choosing a Lightning wallet</h3><p>There are multiple <a href="https://www.lapps.co/wallets">Lightning Network wallets</a> available for all kinds of platforms, mobile, desktop, web, you name it.</p><p>The wallet you choose will determine how easy, private and secure your experience using the Lightning Network is:</p><p>A custodial wallet will be the easiest way to get started — you don’t have to worry about channels or routing,. However, it comes with some privacy and self-sovereignty concerns.</p><p>On the other hand, non-custodial wallets can be a little more difficult to set up, but your funds remain completely under your control.</p><h3>Using Breez wallet (non-custodial)</h3><p>The <a href="https://breez.technology/">Breez wallet</a> is one of the easiest ways to use Lightning, while remaining completely non-custodial.</p><p>This wallet has a great user experience and is solely focused on the Lightning Network — there are no on-chain funds to be seen inside the app’s UI.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/454/0*4eH5IDszIKC-2Dx4" /></figure><p>One cool feature is that Breez will automatically open an incoming channel from their node to your wallet, meaning that you can immediately receive money through Lightning, for free!</p><p>Breez is available for both iOS and Android.</p><h3>Using Wallet of Satoshi (custodial)</h3><p><a href="https://walletofsatoshi.com/">Wallet of Satoshi</a> is a mobile custodial wallet, meaning that you don’t have to worry about incoming liquidity, channels or any technical details at all.</p><p>You just have to install it and you can immediately start transacting on the Lightning Network.</p><p>Wallet of Satoshi is available for both iOS and Android.</p><h3>Using Bottle Pay (custodial)</h3><p>If you would rather have a Lightning wallet in your browser rather than in your mobile phone, <a href="https://about.bottle.li/">Bottle Pay</a> is the way to go.</p><p>Bottle Pay offers an amazing user experience while requiring no installation at all. You just have to sign up with any of the multiple authentication methods and you’re good to go!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/596/0*BxfmDgFW7ioLTqY3" /></figure><p>Bottle Pay is also tightly integrated with social media — you can use their Twitter bot to sends sats just using Twitter!</p><h3>Getting some satoshis to play with</h3><p>There are multiple ways to earn satoshis on the Ligthning Network:</p><p><a href="https://kriptode.com/satsforlikes/index.html">Sats4Likes </a>— This platform allows you to earn satoshis by following, liking and retweeting tweets. The payouts can range from a few hundred satoshis to thousands of satoshis per each action, making this a really reliable way of getting your hands on quite a few sats!</p><p><a href="https://microlancer.io/">Microlancer.io</a> — If Twitter is not your thing, Microlancer has a wide variety of tasks, ranging from signing up at different websites or just giving your honest feedback about something. The tasks are usually very quick to complete so you can stack some sats with ease.</p><p><a href="https://satoshis.games/">Satoshi’s Games</a> — Gamers, this one is for you! Try out the numerous classic games that are available on Satoshi’s Games, from Super Bro to Lightning Agar.</p><p><a href="https://yalls.org/">Y’alls</a> — Have interesting things to share? Publish your piece on Y’alls and earn satoshis everytime someone unlocks your article.</p><h3>Using your satoshis</h3><p>Now that you stacked some sats, it’s time for you to use them! Check out the many <a href="https://www.lapps.co/">Lightning Network apps</a> available on mainnet right now and give them a try!</p><p>Enjoy the world of instant, permissionless transactions that settle instantly over the internet — all backed by the soundest money known to man!</p><p>Buy anything on Amazon using the Lightning Network with <a href="https://paywithmoon.com/">Moon</a> or buy some Domino’s Pizza with <a href="https://ln.pizza/">Lightning Pizza</a>. The possibilities really are endless, and the network is barely getting started!</p><p>See you on the Lightning Network!</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fbutton.like.co%2Fin%2Fembed%2Fmartiyose%2Fbutton%2F&amp;url=https%3A%2F%2Fbutton.like.co%2Fmartiyose&amp;image=https%3A%2F%2Fstatic.like.co%2Flikecoin_de-portrait.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=like" width="485" height="212" frameborder="0" scrolling="no"><a href="https://medium.com/media/229fe1906427e61c0785a45731bab481/href">https://medium.com/media/229fe1906427e61c0785a45731bab481/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cadf84b3ba4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Lightning Network 101 — The Bitcoin Layer 2 Network for Micropayments]]></title>
            <link>https://medium.com/@martibezyose/lightning-network-101-the-bitcoin-layer-2-network-for-micropayments-466634cb0978?source=rss-f6630af2440f------2</link>
            <guid isPermaLink="false">https://medium.com/p/466634cb0978</guid>
            <category><![CDATA[ethereum-blockchain]]></category>
            <dc:creator><![CDATA[Martibezyose]]></dc:creator>
            <pubDate>Sun, 03 Nov 2019 13:38:41 GMT</pubDate>
            <atom:updated>2019-11-03T13:38:41.319Z</atom:updated>
            <content:encoded><![CDATA[<h3>Lightning Network 101 — The Bitcoin Layer 2 Network for Micropayments</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_FeJbdkkbKGznsGw.png" /></figure><p>Nowadays, it is widely believed that bitcoin was an experimental technology pushed forward by Satoshi Nakamoto as a way to introduce the new decentralized governance system to the world — the kind of system that runs independently, driven purely by the market and doesn’t rely on any central authority whatsoever. Now the question arises, what makes people think that it was purely an experimental technology?</p><p>The answer (to them) is pretty obvious! The bitcoin network can only handle up to 7 transactions per second and a single transaction takes anywhere from 15 minutes to even one hour in some cases. Billions of transactions happen every day and in many forms, but if bitcoin was meant to be the ‘new currency’ of the world, why is it technically so limited and constrained? If Satoshi Nakamoto knew that bitcoin would take over the world, then why did he make the architecture in such a way that the entire network can only handle up to 7 transactions per second with 1MB block size and an average 15 minutes to one hour block confirmation time?</p><h3>The Protocol vs The Infrastructure</h3><p>These questions are valid, but if you are the one thinking on these terms too, then you are probably wrong. Bitcoin, by its design, isn’t technically limited or constrained, but it lacks the ‘scalability factor’ which can be solved. When the internet came along in the early 90s, the infrastructure wasn’t scalable at that time. It couldn’t support videos, photos, any kind of multi-media, etc. and a simple message could take hours or even days to propagate through the network.</p><p>The ‘internet infrastructure’ lacked proper scalability, but the ‘underlying protocol’ wasn’t restricted, and it was later used to improve both the architecture and the infrastructure! When you’re watching a 4K YouTube video today, do remember that it is the same TCP/IP and HTTP protocol at the backend, which was used in the late 90s when you couldn’t even send an email effectively. That’s the difference between the protocol and the infrastructure. Bitcoin is essentially a protocol that supports its infrastructure. The infrastructure is currently limited. However, the protocol is very flexible and has all the necessary ingredients built-in for the scalability.</p><h3>The Scalability Trilemma</h3><p>Before discussing the lightning network, lets first discuss an important concept called the ‘Scalability Trilemma’. This term was first coined by Vitalik Buterin, the founding father of Ethereum Blockchain and The Ethereum Foundation. Scalability Trilemma states that any blockchain can only have two of the following three properties:</p><ul><li>Scalability</li><li>Security</li><li>Decentralization</li></ul><p>If any blockchain protocol is very scalable and highly secure, then they would have to compromise on decentralization (e.g., EOS, Cardano). If a blockchain protocol is very secure and highly decentralized, then it would be scalable (e.g., Bitcoin, Ethereum). The reason why bitcoin has given more importance to security and decentralization is that it is dealing with a very critical concept — The Currency!</p><p>Without any central authority, the bitcoin protocol should be very secure in the first place because you’re talking about the money here. Security was given so much importance that it became the first priority after decentralization, and we can see this from the fact that since the emergence of Bitcoin in January 2009, not even a single person can hack the network and steal all the Bitcoins!</p><p>But now the question arises, if bitcoin protocol is highly decentralized and extremely secure, how would it tackle billions of transactions if it’s not scalable beyond 7 transactions per second? Let’s discuss this question in our next section before jumping into the Lightning Network.</p><h3>The Scalability Approach and the Lightning Network</h3><p>To solve this fundamental scalability problem, many people coming from diverse backgrounds proposed different solutions. One solution was to simply increase the block size so that more transactions can be accumulated into a single block, thus increasing the number of transactions per second. However, this approach wasn’t accepted by the community, and it resulted in a hard fork, creating Bitcoin Cash (BCH) and Bitcoin SV (BSV) later on.</p><p>It was also counterintuitive because to match the transaction capacity of a leading payment network like Visa or MasterCard, you have to increase the block size from 1MB to several hundred MBs, which are very difficult to propagate across the network just because the available bandwidth won’t be able to support such huge blocks. This would significantly slow down the bitcoin network, and the network would be chocked quite often. This is why the hard forks of bitcoin that emerged as a result of this thought process failed miserably.</p><p>Another scalability approach was ‘optimization’. It should be noted that the transaction signatures takes a lot of space in a bitcoin block. These signatures can be reduced or compressed using a variety of techniques to save the space to have more transactions. This was achieved using <strong>SegWit</strong>. With the introduction of the <strong>Schnorr Signature scheme</strong>, the block size would be optimized even further. However, these optimizations are at the protocol level. They won’t result in a significant increase in the average TPS(transaction per second) of the bitcoin network. The only solution to massively increase the TPS of the bitcoin etwork, ensuring mass adoption and scalability, is the ‘<strong>Layer-2 Networks</strong>’.</p><h3>Lightning Network, the best Layer-2 Network solution ?</h3><p>Layer-2 Networks are the independent protocols that run on top of the primary protocols. To simply understand this concept, you can think of a Layer-2 Network as a software that runs on top of the Operation System (which would be a primary Layer-1 Network). The only difference is that in this case, the Layer-2 Network doesn’t rely on the primary portal (Layer-1 Network) and can run independently.</p><p>Lightning Network (often denoted as LN Network) is a kind of a Layer-2 Network that is primarily built for micropayments. The LN Network runs on top of the bitcoin network, utilizing its multi-sig scheme using payment channels. The famous question that the LN prospects often throw away is, ‘Can you buy a cup of coffee with bitcoin?’ The obvious answer is ‘No’ because, to buy a $2 coffee, you would have to give away the equivalent amount of transaction fees and have to wait for like an hour for the transaction settlement. However, with the LN Network on top of bitcoin, you can instantly make this transaction (within milliseconds) without the fees and an extra hassle! ☕️</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wH6I8bNQuFXCbE3m" /></figure><p>Lightning Network achieves this using what’s called ‘<strong>micropayment channels</strong>’ (sometimes they’re just called payment channels). You can think of these payment channels as a collection of unconfirmed transactions that aren’t yet broadcasted to the bitcoin network. One important thing to note here is that these payment channels work completely off-chain before the final settlement. At the heart of these payment channels, is bitcoin’s <strong>multi-sig (m of n) scheme</strong>. Multi-sig allows multiple parties to sign the transaction before it’s broadcasted on the network. For the transaction to be successful, all the parties taking part in the multi-sig transaction scheme should sign the transaction.</p><h3>How Lightning Network Works ⚡️?</h3><p>Imagine Alice running a coffee shop, and Bob walks in to buy a cup of coffee worth $2. Alice would open up a payment channel and sign it with an initial transaction that would generate a multi-sig address. Bob would send the funds to this address, and he would sign the transaction. Since its a multi-sig scheme, Alice would get the transaction but won’t sign it or broadcast it. Many people would walk into the coffee shop, and they would send the transactions to this address. After the end of the day, Alice would sign all the transactions and would broadcast them to the bitcoin network for final settlement.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Ll4IRpGeWdA6ctAq" /></figure><p>Using Lightning Network, people can make micro-transactions without worrying about the fees, transaction settlement, and block confirmation times. They can just send an off-chain transaction to the micro-payment channel and enjoy their coffee! The owner or the creator of the micro-payment channel can leave it open as long as he wants. Once he wishes to receive all the transactions of the day, he can just sign all the transactions in the micro-payment channel and broadcast them to the bitcoin network for final settlement and collection.</p><h3>Payment Routing Mechanism and the LN channels</h3><p>Another important thing to note here is that the opening and closing of a payment channel isn’t required for every transaction. In Lightning Network, every user is treated as a node, and every node is connected to other nodes on the network. If you want to send a lightning transaction to someone but you don’t have an active payment channel with them, you can just use other nodes as a ‘<strong>hop</strong>’ to find an already opened channel and make the transaction instantly. Let’s imagine there are three separate payment channels.</p><ol><li>First payment channel is between Alice and Bob</li><li>Second payment channel is between Bob and Carol</li><li>Third payment channel is between Carol and Dave</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*s3VanXKND-X6d4W_" /></figure><p>Imagine if Bob wants to pay Dave, but he doesn’t have an active payment channel with Carol. In that case, Bob can use Carol as a ‘hop’ to send the LN transaction to Dave since they already have an active payment channel. This would reduce network congestion since Bob won’t have to open up another payment channel with Dave, and instead, he can use a simple hop.</p><p>On the Lightning Network, users find the required payment channels using hops across the network of nodes and find the nearest hop for the transaction, and the network handles the rest.</p><h3>How Lightning Network handles fraudulent transactions?</h3><p>If someone makes an off-chain transaction into the payment channel, which is broadcasted by the owner of the channel later, how is it ensured that the previous off-chain transaction was valid and that no party would try to cheat? Well, there is a very simple solution to that. When you are sending the LN transaction, the channel ensures that you have sufficient funds into your wallet.</p><p>When the transaction is broadcasted, all the individual transactions are verified first, and they are matched with the transaction history to avoid broadcasting fake or incorrect transactions. In the LN Network, there is also a penalty imposed on fraudulent transactions where if the network detects a bad actor in the system, they are immediately charged with a penalty (which you can think of as a variation of higher transaction fees). This way, the entire network ensures credibility and consistency while discouraging bad behaviour.</p><h3>Conclusion</h3><p>Overall, the lighting network would make micro-payments a breeze instead of chocking the bitcoin blockchain with millions of small transactions. LN network enables the settlement of one large transaction onto the bitcoin blockchain which is a combination of hundreds of small transactions (think of it as a closing balance sheet for the end of the day).</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fbutton.like.co%2Fin%2Fembed%2Fmartiyose%2Fbutton%2F&amp;url=https%3A%2F%2Fbutton.like.co%2Fmartiyose&amp;image=https%3A%2F%2Fstatic.like.co%2Flikecoin_de-portrait.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=like" width="485" height="212" frameborder="0" scrolling="no"><a href="https://medium.com/media/229fe1906427e61c0785a45731bab481/href">https://medium.com/media/229fe1906427e61c0785a45731bab481/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=466634cb0978" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The reports of bitcoin environmental damage are garbage]]></title>
            <link>https://medium.com/@martibezyose/the-reports-of-bitcoin-environmental-damage-are-garbage-eba0fafa07d6?source=rss-f6630af2440f------2</link>
            <guid isPermaLink="false">https://medium.com/p/eba0fafa07d6</guid>
            <category><![CDATA[climate-change]]></category>
            <dc:creator><![CDATA[Martibezyose]]></dc:creator>
            <pubDate>Sun, 03 Nov 2019 13:36:18 GMT</pubDate>
            <atom:updated>2019-11-03T13:36:18.695Z</atom:updated>
            <content:encoded><![CDATA[<p>I have a background in electricity, from when I was an investment banker. I worked in a Natural Resources &amp; Power group for about 8 years and modelled electricity systems and assets in the UK and China in the context of acquisitions, capital raisings, restructurings, and regulatory submissions. One of the banks that I worked for was HSBC, in their emerging markets M&amp;A team, and I know China well. The models, created in groups, were used to support perhaps $4–5 billion equivalent of transactions, including public tender offers, acquisition finance, syndicated loans, and bond sales. The only time I went back to my old business school for course work was for modules offered by Decision Sciences, one of which was an in-depth power systems dynamics course. The financial models were built using @Risk statistical software to apply a distribution shape to inputs. When I left investment banking, I purchased (with partners) an electricity business in Italy that had eight run-of-river hydro plants and two CCGT facilities.</p><p>I’m also an environmentalist. I grew up mainly in rural Canada and I like the outdoors a little bit more than people. Now I live in Switzerland and do a lot of mountain climbing. I donate to two (moderate) environmental groups.</p><p>I believe that crypto is the best way to reduce inequality in the world and provide financial inclusion to low-income people. I think that most people get into crypto for reasons related to value and values.</p><p>I write this article because I’m sick of being confronted by people, even others in crypto, about crypto allegedly being an environmental disaster. It isn’t. That is an egregious lie.</p><p><strong>Patient Zero</strong></p><p>Almost all news articles that repeat the lie that crypto is an environmental problem can be traced back to one source: Alex de Vries, a twenty-something year old who has zero knowledge of the electricity industry, power system modelling, China, or any related real-world experience. He blogs from home on digiconomist.net. His “reports” are about as unscientific and unethical as you can get.</p><p>While claiming to be unbiased and touting “peer reviewed” “academic articles” his site uses incendiary language to describe the bitcoin computers that maintain system security and administration as “consuming huge amounts of energy” which have now, apparently, reached “epic proportions”. This “massive energy consumption” isn’t the biggest problem, though, according to de Vries; it is that “the network is mostly fueled by coal-fired power plants in China”, resulting in “an extreme carbon footprint for each unique Bitcoin transaction.”[1]</p><p>He goes on to write: “Additional research published in Nature Climate Change (October 2018) even suggested that Bitcoin mining alone could push global warning ‘above 2 °C within less than three decades’.”</p><p>He then compares the efficiency of bitcoin to the Visa system, writing “the current global payment system handles 6,800 times more digital transactions per day than Bitcoin does. Even on this flawed comparison, Bitcoin still requires 3,400 times more energy than an average non-cash transaction.”</p><p>He also claims that there are “half a billion people who might be mining Bitcoin <em>without even knowing it</em>” and then, generously, says that he doesn’t include these miners in his calculations. Yet, elsewhere on his blog, he says that the only way to mine bitcoin today is by using specialized mining equipment, like an Antminer S9. I don’t have an Antminer S9 at home (at least, I don’t think I do), but I understand that they are about the size of a small refrigerator and throw off a fair bit of heat. I think that half a billion people might notice. Anyway, regardless of where he gets this “information” the only proper response to it is to think <em>WTF that isn’t very likely </em>and not to repeat it.[2]</p><p><strong>Antidote</strong></p><p>I address his assertions one by one, so we can get to an honest appraisal of the situation.</p><p><em>Economic assumptions</em></p><p>In respect of his Bitcoin Energy Consumption Indexde Vries writes: “The index is built on the premise that miner income and costs are related.”</p><p>That is wrong. The market price for a product made by a business and the prices for what it takes to create the product are (in almost all cases) completely separate. Want to sell mud pies and you set up an expensive factory to do so, hire lots of staff, spend a lot on marketing? Well, the price you sell the mud pies for has nothing to do with the input prices you have to pay. No one who has a basic understanding of economics or has run a business in the real world would make this error.</p><p>Based on his own assumptions, de Vries completely contradicts himself in his calculations: since the price of bitcoin has fallen significantly, based on the assumption on his site (which is a fixed cost to income ratio), the costs to miners must also have fallen equivalently. But, no. Now that the price has fallen, he simply changes his assumptions to fit his narrative. There is no commensurate decline in his index; his assumptions still conclude that bitcoin allegedly consumes more energy than [pick whatever small country you want].</p><p><em>Methodology</em></p><p>The empirical way to test hypotheses since the Scientific Revolution is to collect input data, perform some operation, and then observe the output. You might have heard about this at school.</p><p>So, this is what de Vries does, right? Well, no. It is a lot of hard work to collect input data and he doesn’t do this at all. He has a better idea. He asserts that this method produces errors and the data isn’t available, so he “therefore proposes to turn the problem around, and approach energy consumption from an economic perspective.”</p><p>Does that sound valid to you? Do you want to know what he really means by this? I’ve read everything in his reports, so I’ll make it simple for you to understand.</p><p>He means that his power consumption index starts with the <em>financial output </em>(i.e. the income and costs for the miners who maintain the Bitcoin architecture) and then backs out the <em>technical inputs </em>to these financial statements (i.e. the amount of electricity consumed). So, he has these financial outputs, right, and makes them available? Well, no again. He doesn’t have this information either. So, his methodology, if you can call it that, is to make assumptions for financial information that he doesn’t have, to then derive the technical volume. The derivation method is also completely based on his assumptions. Which he just makes up out of thin air; they are not at all based on any empirical data whatsoever. Given that everything is basically his own assumption, does he bring any biases to the “analysis” that we should know about? Well, on his site he writes that the index is designed to “raise awareness on the unsustainability of [bitcoin’s architecture].”</p><p>Here is what a real scientist thinks about his approach.</p><p>Enter Jonathan Koomey, special advisor to the Chief Scientist of the Rocky Mountain Institute. He was a lecturer in Earth Systems at the School of Earth, Energy, &amp; Environmental Sciences at Stanford University and a Research Fellow at the Steyer-Taylor Center for Energy Policy and Finance at Stanford University. He worked as a researcher and scientist at Lawrence Berkeley National Laboratory for more than two decades and he serves on the editorial board of the journal Contemporary Economic Policy.</p><p>Koomey says that de Vries’ work is “fundamentally flawed” because it backs into bitcoin’s power consumption by estimating miners’ revenues and expenses. “Any time you do that, you introduce multiple layers of error and uncertainty. It’s a completely unreliable way to do the analysis, and no credible energy analyst would ever do that.”[3]</p><p><em>The assertion by de Vries that “the network is mostly fueled by coal-fired power plants in China”</em></p><p>He provides absolutely <strong>zero</strong> evidence for this statement, like almost everything else on his site. I guess that, if you knew nothing about the electricity industry, you might have a general idea that China has a lot of coal plants and you might superficially come to this conclusion.</p><p>However, it is <strong>completely incorrect</strong>. Most of those who administer the Bitcoin network and provide security (called miners) are located close to cheap, and underutilized, hydro power facilities. I recently spoke several times and at length to former power industry colleagues in Hong Kong and their estimate is that more than 80% of all Chinese miners are located in Sichuan province. The vast majority of power produced in Sichuan is from hydro power. I was in China late last year and visited Sichuan and some of the locals told me that officials are extremely keen on crypto because it leads to more jobs and taxes. There was a policy to curtail renewables development, as there was so much overcapacity, until crypto arrived.</p><p>A recent report into crypto energy use, done by Coinshares, which is the only honest, data-driven report ever to be undertaken[4], concludes that almost half of global bitcoin mining takes place in Sichuan. Overall, they estimate that 77.6% of global bitcoin mining is powered by renewable energy. My former colleagues in Hong Kong and I think that the real amount is closer to 85% and rising. This is mainly concentrated in cooler climates with abundant, and underutilized, hydro power, including: Quebec, Iceland, and the Pacific North-West.[5]</p><p>My former colleagues in Hong Kong characterized the assertion that the Bitcoin network is fueled by coal-fired power plants in China as “laughable,” “amateurish” and “obviously made up by someone who doesn’t know [the power industry in] China at all.”</p><p><em>Bitcoin is going to cause us to miss global warming targets …</em></p><p>On his main page, de Vries writes: “Additional research published in Nature Climate Change (October 2018) even suggested that Bitcoin mining alone could push global warning ‘above 2 °C within less than three decades’.” So, I read the article, which was written by Camilo Mora, an associate professor of geography at the University of Hawaii at Manoa and published (and included it in a press release) on 29 October 2018. It was the subject of a lead article on Bloomberg, in which Mora says of bitcoin, “If this takes off it will be something that we will not be able to control.” According to Bloomberg, “Mora’s research often uses large data sets to tackle far-off problems.” Great, I thought; finally some data. However, on reading the Hawaii paper it is curious that … there is no data. The core “data” for the paper comes from … guess who? That is right, our blogger friend de Vries.[6]</p><p>So, for corroborating support on his website, de Vries references an “academic” article whose main source is … de Vries. It is unbelievably disingenuous.</p><p><em>The allegation that the Bitcoin network displaces energy consumption</em></p><p>Again, <strong>completely incorrect</strong>. It shows a shocking lack of knowledge of the electricity industry. Electricity systems are quite complicated, mainly because electricity cannot be stored, except in small quantities. So, you have the concept of pools, grid operator despatch functions, etc. Hydro power is mainly located in mountains, a long way from population centers. The transmission line losses often make it unfeasible to transport the electricity supply to where it is demanded; consequently, a lot of hydro power is underutilized.</p><p>Miners are highly mobile; they can move to where the cheapest power is, in a way that hospitals, schools, etc. cannot. Hydro power is cheaper than coal and the vast majority of miners have, naturally, set up close to cheap and underutilized hydro facilities. The ones who have not are economically incentivized to move there and they are clearly doing so.</p><p>In my conversations with former industry colleagues and from what I heard in Sichuan, it seems that, today, there is an enormous amount of unused hydro power capacity. Because of transmission constraints, they just cannot use all of the power that they have. Some people commented that every deal that they do with a miner is “pure profit”; the electricity revenues would otherwise be lost. The same appears to be the case in a neighboring province. A few local industry experts told me that they estimated that at least 200–225 TWh per year of <em>surplus </em>hydro power exists, just in Sichuan. For reference, the Bitcoin network uses maybe between 25–35 TWh per year.[7]</p><p>Of course, hydro power is not completely carbon zero and it does have an environmental impact. But, for anyone to state that most of the Bitcoin network is powered mainly by coal or that renewables used for the network displace other users or have an electricity price impact are just blatant lies.</p><p><em>Energy consumption compared to country size</em></p><p>On his site, de Vries has a comparison of (his complete guesstimate of) bitcoin energy consumption compared to energy consumption by certain countries (Hong Kong, Singapore, Portugal, etc.). He has a reference for this data: <a href="http://www.bitcoinenergyconsumption.com./">www.bitcoinenergyconsumption.com.</a> It must be another authoritative third-party source for these conclusions, right? If you type in <a href="http://www.bitcoinenergyconsumption.com/">www.bitcoinenergyconsumption.com</a> guess what happens? Well, you are directed to <a href="http://digieconomist.net./">http://digieconomist.net.</a> There is no such site as <a href="http://www.bitcoinenergyconsumption.com,/">www.bitcoinenergyconsumption.com,</a> despite it being prominently displayed as the source. <strong>It doesn’t exist</strong>.[8] There is no third-party verification, as the reader is led to assume. It is just de Vries again. It is unbelievably unethical. The graph, with this fake reference, appears in at least a dozen news articles that I could find before I got bored and stopped searching for new ones.</p><p>It gets more unethical. On the site he writes, “The entire Bitcoin network now consumes more energy than a number of countries, based on a report published by the International Energy Agency,” to which he provides a link. However, the link is to the IEA’s main page, not to an IEA report that finds that the Bitcoin network consumes more energy than a number of countries. So, I called the IEA in Paris. <strong>There is no such report</strong>. The IEA does publish reports on energy consumption by country, but they don’t assert that the Bitcoin network consumes more electricity than these countries. It is de Vries who asserts this, not the IEA. The only connection to the IEA is that de Vries uses their data for country energy use. He then compares IEA country data to his own made-up numbers for Bitcoin energy use. His article in the academic journal Joule also references the IEA. It is the same story: there is no IEA report asserting that the Bitcoin network consumes more energy than small countries. Just de Vries does this.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fbutton.like.co%2Fin%2Fembed%2Fmartiyose%2Fbutton%2F&amp;url=https%3A%2F%2Fbutton.like.co%2Fmartiyose&amp;image=https%3A%2F%2Fstatic.like.co%2Flikecoin_de-portrait.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=like" width="485" height="212" frameborder="0" scrolling="no"><a href="https://medium.com/media/229fe1906427e61c0785a45731bab481/href">https://medium.com/media/229fe1906427e61c0785a45731bab481/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eba0fafa07d6" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>