<?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 Chaim Lev-Ari on Medium]]></title>
        <description><![CDATA[Stories by Chaim Lev-Ari on Medium]]></description>
        <link>https://medium.com/@chiptus?source=rss-e3f8559c457a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*xe9DvsU47dkmf-i5SRiZOw.jpeg</url>
            <title>Stories by Chaim Lev-Ari on Medium</title>
            <link>https://medium.com/@chiptus?source=rss-e3f8559c457a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 06:53:15 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@chiptus/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[WanTez]]></title>
            <link>https://medium.com/tezos-israel/wantez-47c011c26057?source=rss-e3f8559c457a------2</link>
            <guid isPermaLink="false">https://medium.com/p/47c011c26057</guid>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[tezos]]></category>
            <category><![CDATA[github]]></category>
            <dc:creator><![CDATA[Chaim Lev-Ari]]></dc:creator>
            <pubDate>Wed, 10 Feb 2021 14:49:20 GMT</pubDate>
            <atom:updated>2021-02-11T10:14:58.200Z</atom:updated>
            <content:encoded><![CDATA[<h3>Wantez: Hello World!</h3><h4><strong>A platform for connecting open-source projects and freelance developers, built on Tezos</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4fkR6hTjS_C0aj7oucUnpA.png" /><figcaption>Make sure to check out WanTez.io</figcaption></figure><p>After months of planning, developing, and testing, Tezos Israel is proud to announce a new dApp for the Tezos Ecosystem, <a href="http://wantez.io/">Wantez</a>. A play on the word ‘wanted,’ is a bug bounty platform built on Tezos for all types of open source projects and freelance developers. The development of Wantez is conducted by Tezos Israel’s developer team led by <a href="https://medium.com/u/e3f8559c457a">Chaim Lev-Ari</a> (Twitter @chiptus), and Ameed Jadallah.</p><p>Wantez is an incentivized freelancing platform for Funders and Contributors to meet and cooperate together for bug bounties and requests while ensuring proper and timely development for all open source projects. Wantez allows developers across the world to monetize their skills by contributing code and bug fixes to various open-source projects.</p><ul><li>Developing companies can more cost-efficiently patch bugs.</li><li>Startups will be able to augment their teams for temporary periods of time without increasing the total team size.</li><li>Individuals can more efficiently hire development help. Wantez also incentivizes and helps to bring more developers into the Tezos ecosystem.</li><li>Funders on the platform will be able to offer and fund gigs that need work done. They post a description of the work they need to be completed, along with the amount of compensation included.</li><li>Developers can scroll through various available gigs posted by open-source platforms and decide which ones they want to work on.</li></ul><p>With payments being conducted and verified on the Tezos blockchain, both parties can be confident that they’ll be paid in a timely, secure manner once the work is completed.</p><blockquote>The entire Tezos Israel team is thrilled to be contributing a new, exciting, useful dApp to the Tezos Ecosystem. Wantez creates a brand new use case and utility for your Tez (XTZ), and we hope you will be able to utilize it. A huge thank you to <a href="https://medium.com/u/e3f8559c457a">Chaim Lev-Ari</a>, Head of Research and Development, and Ameed Jadalah, Senior Software Engineer, for their hard work and dedication to putting together this incredible project. We can’t wait to see where Wantez goes and its positive effect it will have on all its users.</blockquote><p>The alpha version of Wantez will be launching soon. Be sure to subscribe at <a href="http://wantez.io/">wantez.io</a>. Twitter @Wantez</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=47c011c26057" width="1" height="1" alt=""><hr><p><a href="https://medium.com/tezos-israel/wantez-47c011c26057">WanTez</a> was originally published in <a href="https://medium.com/tezos-israel">Tezos Israel</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 Simple React Dapp on The Tezos Blockchain — Part 3]]></title>
            <link>https://medium.com/tezos-israel/building-a-simple-react-dapp-on-the-tezos-blockchain-part-3-47af30a550d4?source=rss-e3f8559c457a------2</link>
            <guid isPermaLink="false">https://medium.com/p/47af30a550d4</guid>
            <category><![CDATA[tezos]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[dapps]]></category>
            <category><![CDATA[innovation]]></category>
            <dc:creator><![CDATA[Chaim Lev-Ari]]></dc:creator>
            <pubDate>Wed, 15 Jul 2020 14:22:00 GMT</pubDate>
            <atom:updated>2020-07-20T06:57:45.906Z</atom:updated>
            <content:encoded><![CDATA[<h3>Building a Simple React Dapp on The Tezos Blockchain — Part 3</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dM2xdjPswrH4-MNwNXeCbg.jpeg" /></figure><p><strong><em>NOTE: This is part 3 of a series of posts about how to connect a react webapp to the tezos blockchain. For other posts see:</em></strong></p><ol><li><a href="https://medium.com/tezos-israel/building-a-simple-react-dapp-on-the-tezos-blockchain-part-1-777ff6b0b84e"><em>Part 1 — Bootstrapping</em></a></li><li><a href="https://medium.com/tezos-israel/building-a-simple-react-dapp-on-the-tezos-blockchain-part-2-82ffb3114d5e"><em>Part 2 — Connect to a wallet</em></a></li><li><em>Part 3 — Connect and interact with a contract</em></li></ol><p>Complete code for this series is <a href="https://gitlab.com/tezosisrael/demo-tezos-react"><strong><em>here</em></strong></a><strong><em>.</em></strong></p><h3>Connect to Contract:</h3><p>If you didn’t copy the contract address, go into contracts/build/contracts/Counter.json. You&#39;ll see something like this:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/61ebc9f53248cc2e059d0f6db242453c/href">https://medium.com/media/61ebc9f53248cc2e059d0f6db242453c/href</a></iframe><p>Copy the address value from this file, this is YOUR_CONTRACT_ADDRESS.</p><p>Now, let’s create another hook useContract that will connect us to the counter contract.</p><p>use-contract.js</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0b7fd62e9069e931186a6adebd43895e/href">https://medium.com/media/0b7fd62e9069e931186a6adebd43895e/href</a></iframe><p>Replace YOUR_CONTRACT_ADDRESS with the contract address you copied.</p><p>What we do here, is to use Taquito to load the contract at the provided address, and then load its storage. We load the storage in this hook and not in another hook because storage is dependent on the contract.</p><p>Let’s connect it to see how it works.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/cc7b91db179cae7cb247f04baef9f126/href">https://medium.com/media/cc7b91db179cae7cb247f04baef9f126/href</a></iframe><p>If you review the code (or even better, write it in your App.js file), you’ll see that we imported the contract hook and used it. The main difference from what we saw until now, is the connect function. Since connectToContract also needs to be called when connecting, we call them both in this function. The order is important because all the settings (network, etc.) are set in the connectToWallet. We might be able to call it in a different function, just to make the calls independent of each other.</p><h3>Interact with the contract</h3><p>We want the user to be able to increase and decrease the counter. The contract API lets its users increase and decrease any amount, but we will stick to 1.</p><p>Let’s implement the increase function first. We will implement it inside the App component, although in a new hook or inside the contract hook is also possible.</p><p>Bottom of App component (in App.js inside the App function)</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/179bebbab650525eb9d47fd69df6b224/href">https://medium.com/media/179bebbab650525eb9d47fd69df6b224/href</a></iframe><p>And change the increase button to</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/502ef138f764f2dd6e01db50d3f6b785/href">https://medium.com/media/502ef138f764f2dd6e01db50d3f6b785/href</a></iframe><p>Note that increase calls setOperationError and setOperationLoading, so let&#39;s add them in the upper part of the App component:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/bedc03c2e64cf33d8c0e5b6f73314e1a/href">https://medium.com/media/bedc03c2e64cf33d8c0e5b6f73314e1a/href</a></iframe><p>And of course, we want to show it in the app, so replace the buttons sections with this:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6367a0026f52db5fe938ed666fe709ec/href">https://medium.com/media/6367a0026f52db5fe938ed666fe709ec/href</a></iframe><p>Note how we set the buttons to be disabled when the operation is loading because we don’t want the user to click a few times.</p><p>Let’s see it happening. Go to the browser and click increase (connect again if needed). Since it’s the first operation on the contract we need to reveal it on the chain, so you’ll be asked to permit to operations. Once you agree, a beacon popup will be open, you can close it and see how the app is loading and the buttons are greyed out (disabled). Once the operation is confirmed on-chain, they will be enabled again.</p><h4>What’s wrong?</h4><p>The counter didn’t change. If you refresh the page and reconnect, you’ll see that it did increase and the account balance is a bit lower then what it was.</p><h4>Why didn’t it update automatically?</h4><p>Because we didn’t tell it to. Let’s do that.</p><h3>Auto-sync account balance and contract storage.</h3><p>Ok, this is the tricky part, I’m pretty sure I’ve got a good solution, but if you think of something else, please let me know.</p><p>We want to update the balance and storage when an operation occurs. We can use useEffect for that.</p><p>For instance:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/09a674b1cd4d9a0065ca5d9dfdde2c7f/href">https://medium.com/media/09a674b1cd4d9a0065ca5d9dfdde2c7f/href</a></iframe><p>That’s just pseudocode, as storage is in the contract, and balance is in the account, we will implement them in the different hooks.</p><p>Let’s add a counter of the contract operations, this will be the variable through which we track that an operation has been done.</p><p>useContract:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3ea62cceedb2141861bbaa2bebb285a9/href">https://medium.com/media/3ea62cceedb2141861bbaa2bebb285a9/href</a></iframe><h4>What did we change?</h4><p>We added the operations counter, and instead of loading the storage when the contract is loaded, we increased the operations counter. With that, we also added a useEffect that is dependent on the counter and contract and calls loadStorage whenever one of its dependencies change.</p><p>If you check your app now, it should act the same as before. The difference is that we expose increaseOperationsCount so we can call it inside increase after the confirmation. Let&#39;s do that. Add increaseOperationsCount(); after await op.confirmation();.</p><p>Try your app again, this time the counter should increase by one, but the balance didn’t. That’s because we need to implement the same inside useBalanceState. If you look at your useBalanceState you&#39;ll see that we already have the useEffect, we just need to add a dependency on operationsCount, that means passing it into the hook, and adding it to the dependencies array:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/eb7de3df127f3024f4b988f69a8bed70/href">https://medium.com/media/eb7de3df127f3024f4b988f69a8bed70/href</a></iframe><p>In App.js, we need to pass the operationsCount into useBalanceState, that means to move the call to this hook after the call to useContract (because operationsCount comes from useContract). Let&#39;s do that and see if it works.</p><p>The decrease function is almost the same as the increase, so I’ll leave it for you.</p><h3>Wrap up</h3><p>This was just a short (well, at least was supposed to be short) review of how to create a simple react app that interacts with <a href="https://medium.com/u/948dd45fd3d0">Tezos</a>.</p><p><em>Note: I ignored a lot of things here, like best practices, security, and more. I am still learning this stuff as I go.</em></p><p>A few things you can do:</p><ul><li>While writing this I understood that the contract interactions should also be in the contract hook, feel free to refactor and move them there.</li><li>Implement decrease</li><li>Let the user decide the amount to increase/decrease</li><li>Connect automatically when the user opens the app</li><li>Check the repo to see the whole code.</li><li>There’s another contract that comes with truffle examples (actually two, but the migrations contract is used behind the scenes), implement interaction with it.</li><li>Write me some comments — here or on twitter to <a href="https://twitter.com/chiptus">@chiptus</a></li><li>read <a href="https://medium.com/u/475fd478604e">Claude Barde</a>’s <a href="https://medium.com/coinmonks/build-a-tezos-dapp-using-taquito-and-the-beacon-sdk-692d7dc822aa"><strong>post</strong></a> for more info about the implementation</li><li>Check Tezos Israel at <a href="https://tezos.co.il/"><strong><em>tezos.co.il</em></strong></a></li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F5YaQLMpqhes0IqtiWw%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Fmafs-married-at-first-sight-marriedau-mafs-australia-5YaQLMpqhes0IqtiWw&amp;image=https%3A%2F%2Fmedia1.giphy.com%2Fmedia%2F5YaQLMpqhes0IqtiWw%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="435" frameborder="0" scrolling="no"><a href="https://medium.com/media/b202c79c62ccdb1f24a358057a452857/href">https://medium.com/media/b202c79c62ccdb1f24a358057a452857/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=47af30a550d4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/tezos-israel/building-a-simple-react-dapp-on-the-tezos-blockchain-part-3-47af30a550d4">Building a Simple React Dapp on The Tezos Blockchain — Part 3</a> was originally published in <a href="https://medium.com/tezos-israel">Tezos Israel</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 Simple React Dapp on the Tezos Blockchain — Part 2]]></title>
            <link>https://medium.com/tezos-israel/building-a-simple-react-dapp-on-the-tezos-blockchain-part-2-82ffb3114d5e?source=rss-e3f8559c457a------2</link>
            <guid isPermaLink="false">https://medium.com/p/82ffb3114d5e</guid>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[innovation]]></category>
            <category><![CDATA[tezos]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[Chaim Lev-Ari]]></dc:creator>
            <pubDate>Tue, 14 Jul 2020 21:32:18 GMT</pubDate>
            <atom:updated>2020-07-20T06:57:17.438Z</atom:updated>
            <content:encoded><![CDATA[<h3>Building a Simple React Dapp on the Tezos Blockchain — Part 2</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C0oJwsfCaGymFDwbvLGKhA.jpeg" /></figure><p><strong><em>NOTE: This is part 2 of a series of posts about how to connect a react webapp to the Tezos blockchain. For other posts see:</em></strong></p><ol><li><a href="https://medium.com/tezos-israel/building-a-simple-react-dapp-on-the-tezos-blockchain-part-1-777ff6b0b84e"><em>Part 1 — Bootstrapping</em></a></li><li><em>Part 2 — Connect to a wallet</em></li><li><a href="https://medium.com/tezos-israel/building-a-simple-react-dapp-on-the-tezos-blockchain-part-3-47af30a550d4"><em>Part 3 — Connect and interact with a contract</em></a></li></ol><p>Complete code for this series is <a href="https://gitlab.com/tezosisrael/demo-tezos-react"><strong><em>here</em></strong></a><strong><em>.</em></strong></p><p>This post follows my <a href="https://medium.com/tezos-israel/building-a-simple-react-dapp-on-the-tezos-blockchain-part-1-777ff6b0b84e"><strong><em>last post</em></strong></a> where we bootstrapped a simple react app. In this post, we will connect our app to a wallet and show its balance.</p><h3>Connect to the wallet</h3><p>We will create a few react hooks for this app, so let’s create a new folder hooks and create a new file inside it use-wallet.js.</p><p>VSCode tip: right-click the src folder and choose to create a file, when asked for a name for the file write hooks/use-wallet.js, this will create the folder and the file.</p><p>write inside use-wallet the following:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2d9c1a7df6be0af80e5d599e5dc23783/href">https://medium.com/media/2d9c1a7df6be0af80e5d599e5dc23783/href</a></iframe><p>For now, it doesn’t do anything, except for provide us with the API we want. This hook will tell us when the wallet is initialized, provide the address of the account, show an error is something is wrong, and a connect function.</p><p>We’ve also imported <a href="https://medium.com/u/948dd45fd3d0">Tezos</a> and Beacon Wallet to connect and ask for permission to use a wallet. For more info about hooks read <a href="https://reactjs.org/docs/hooks-intro.html"><strong><em>react’s docs</em></strong></a></p><p>Connect will call taquito to configure the account and network we want to use, and then ask beacon to get permissions from the user to connect.</p><p>Finally, it will return the address.</p><p>replace connect with the following</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/766d445d83a9bde20ea38d8789dac907/href">https://medium.com/media/766d445d83a9bde20ea38d8789dac907/href</a></iframe><p>Actually, there’s no need to separate connect to two functions, but I prefer it like that, so we can see what happens in the react side ( connect) and taquito side initWallet. As this is more an overview for how to connect @claudebarde with react, let&#39;s go to his post for an explanation about <a href="https://medium.com/coinmonks/build-a-tezos-dapp-using-taquito-and-the-beacon-sdk-692d7dc822aa#ecb3"><strong><em>initWallet</em></strong></a></p><p>To use it, let’s import it to App.js:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/be7152afcd7c7ecdd900cbc8a43eab15/href">https://medium.com/media/be7152afcd7c7ecdd900cbc8a43eab15/href</a></iframe><p>You can see I added an import of the useWallet function from use-wallet and called it on the first line of our component. These values will change when we try to connect. initialized will be true and address will be assigned with the wallet address if we succeed to connect, and error will have a value if we failed to connect. I renamed connect to connectToWallet and error to walletError because we will have more of these soon.</p><p>So I can hide and show different parts of the app based on if the wallet is initialized or not. For example, I’ll show the connect button if it’s not, and the increase/decrease buttons if it is connected.</p><h3>Let’s play</h3><p>Open your app and press connect. You’ll should see the following screen:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/420/1*6RCpes9_sPeWc3cJKw_8lg.png" /></figure><p>Press confirm, and you’ll be asked to pair your account (if you haven’t before — if you did, make sure this account is a Carthagenet account). Let’s create a local account by enabling Developer mode and choosing “Setup local secret” (You might need to scroll down a bit). You’ll see the account details:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/420/1*6RCpes9_sPeWc3cJKw_8lg.png" /></figure><p>Close the window and press connect again, this time you’ll see the option to grant permissions, press confirm, the window will close and a popup (inside the app) will appear with the text “Permission Granted”.</p><p>Going to the explorer won’t give us any info because our account isn’t revealed yet (meaning, the blockchain doesn’t know about it yet). But when we will close the popup we will see the account address, and the buttons are replaced with “Increase”/”Decrease”.</p><h3>Let’s activate the account</h3><p>When we first create the account, it’s not online yet, thus we need to do an operation on-chain to activate it and reveal it, the easiest would be to send it some Tez. You can do that if you have another Carthagenet account, or otherwise you can use <a href="https://web.telegram.org/#/im?p=@tezos_faucet_bot"><strong><em>@tezos_faucet_bot</em></strong></a> on telegram. In the bot’s options choose “Get Coins” and send it to your newly created address.</p><p>Now your account should be activated.</p><h3>Checking the Balance</h3><p>To check the balance we can do two things: Either use the wallet hook or create a new hook. I personally like the second option because then we can use this hook to get balances for other addresses.</p><p>Create a new file hooks/use-balance-state.js</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2c9937858f406f84d5fa16477ee55d62/href">https://medium.com/media/2c9937858f406f84d5fa16477ee55d62/href</a></iframe><p>As before I first show the hook API, we only need the balance, error, and a loading flag, no functions. This hook will update automatically when the address is changed.</p><p>Let’s first connect it to the app so we can see it update automatically.</p><p>Import useBalanceState into App.js and show the balance and error when available:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/20a1097f565040c0343d080aa00d0edf/href">https://medium.com/media/20a1097f565040c0343d080aa00d0edf/href</a></iframe><p>Nothing will change in the app except that the balance is 0 and “Balance Error” disappeared.</p><p>Let’s add loading of the balance inside use-balance-state.js:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d18f949c43d3d5fd6ea38d6004df958c/href">https://medium.com/media/d18f949c43d3d5fd6ea38d6004df958c/href</a></iframe><p>React doesn’t like using of async functions as an effect so we create a loadBalance function that manages the loading of the balance. useEffect basically calls the provided function any time one of the values in the second array parameter changes, in our case, every time the address is changing.</p><p>loadBalance will use taquito to load the balance of the provided address. taquito returns a value in mutez, so we divide it by 1000000 to get the amount in tez.</p><p>Check your app, press connect (this time no confirmation is needed), and see how we first see the address and balance is loading, then we see the amount @tezos_faucet_bot sent us.</p><p>In the next post, we will connect to the contract and make some interactions.</p><p><strong><em>For more stuff about Tezos, go to our </em></strong><a href="https://gist.github.com/chiptus/tezos.co.il"><strong><em>blog</em></strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=82ffb3114d5e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/tezos-israel/building-a-simple-react-dapp-on-the-tezos-blockchain-part-2-82ffb3114d5e">Building a Simple React Dapp on the Tezos Blockchain — Part 2</a> was originally published in <a href="https://medium.com/tezos-israel">Tezos Israel</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 Simple React D-app on the Tezos Blockchain — Part 1]]></title>
            <link>https://medium.com/tezos-israel/building-a-simple-react-d-app-on-the-tezos-blockchain-part-1-777ff6b0b84e?source=rss-e3f8559c457a------2</link>
            <guid isPermaLink="false">https://medium.com/p/777ff6b0b84e</guid>
            <category><![CDATA[tezos]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[dapps]]></category>
            <category><![CDATA[innovation]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[Chaim Lev-Ari]]></dc:creator>
            <pubDate>Tue, 14 Jul 2020 20:59:22 GMT</pubDate>
            <atom:updated>2020-07-20T06:55:58.684Z</atom:updated>
            <content:encoded><![CDATA[<h3>Building a Simple React Dapp on the Tezos Blockchain — Part 1</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xf7yIKoZcfFWgW-4R65LBA.jpeg" /></figure><h4>This is part 1 of a series of posts about how to connect a react webapp to the Tezos blockchain. For other posts see:</h4><ol><li><em>Part 1 — Bootstrapping</em></li><li><a href="https://medium.com/tezos-israel/building-a-simple-react-dapp-on-the-tezos-blockchain-part-2-82ffb3114d5e"><em>Part 2 — Connect to a wallet</em></a></li><li><a href="https://medium.com/tezos-israel/building-a-simple-react-dapp-on-the-tezos-blockchain-part-3-47af30a550d4"><em>Part 3 — Connect and interact with a contract</em></a></li></ol><p>Note: this series is based on <a href="https://medium.com/u/475fd478604e">Claude Barde</a>’s <a href="https://medium.com/coinmonks/build-a-tezos-dapp-using-taquito-and-the-beacon-sdk-692d7dc822aa"><strong>post</strong></a> and is using truffle base example for the Counter contract. If you just want to learn the basics, I suggest following <a href="https://medium.com/u/475fd478604e">Claude Barde</a>’s post. I’m currently creating a similar app, with react and truffle.</p><p>Complete code for this series is <a href="https://gitlab.com/tezosisrael/demo-tezos-react"><strong><em>here</em></strong></a><strong><em>.</em></strong></p><h3>Bootstrap:</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6239c5bece9ff5545f5e8e10f9951ec1/href">https://medium.com/media/6239c5bece9ff5545f5e8e10f9951ec1/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ed8df45ab7ccb5d9ffbeb539f1db35ce/href">https://medium.com/media/ed8df45ab7ccb5d9ffbeb539f1db35ce/href</a></iframe><h3>What?!</h3><ul><li>yarn create react-app web bootstraps a react app with all the defaults.</li><li>yarn add @taquito/beacon-wallet @taquito/taquito - install taquito dependencies</li><li>yarn global add truffle@tezos installs truffle, <em>(you can skip this step if it&#39;s already installed)</em>. Notes:</li></ul><ol><li>You need to check that you have the Tezos version of truffle, if you don’t, you’ll need to uninstall and install this version.</li><li>I just reinstalled my computer and I had a few problems. First, truffle installation includes compiling c++ code, so you’re expected to have it installed. Second, although it says node 12 is supported it failed on my machine so I used node v10.</li></ol><p>Let’s also install the <strong><em>beacon chrome extension</em></strong></p><h3>Configure Contract Deployment.</h3><p>As <a href="https://medium.com/u/475fd478604e">Claude Barde</a>’s tutorial uses carthegent we will use the same for deploying our contracts. Open tezos-counter-app folder using your favorite editor.</p><p>Check <a href="https://www.trufflesuite.com/docs/tezos/truffle/quickstart"><strong>truffle</strong></a> for more explanation about the following commands.</p><p>Using <a href="https://faucet.tzalpha.net/"><strong>https://faucet.tzalpha.net/</strong></a> generate a faucet account and save it into the contracts folder as faucet.json.</p><p>replace truffle-config.js content with the following:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/fddf12a276193378944b77591b99ee13/href">https://medium.com/media/fddf12a276193378944b77591b99ee13/href</a></iframe><p>run truffle migrate inside the contracts folder.</p><p><strong><em>Important: Make sure to save truffle-config.js or it will fail.</em></strong></p><p>This command deploys the contracts to the blockchain (carthagenet) and sets their initial storage (check the contracts and migrations folders to see some code). When it succeeds you can see the contract’s addresses in your terminal and the build folder (JSON file for each contract). Copy the counter contract account and go to <a href="https://better-call.dev/"><strong>BCD</strong></a><strong> </strong>to see the contract. Whenever we do any operation on this contract, you can see it here.</p><p>You can actually use BCD app to interact with the contract already.</p><p>run truffle test to see the tests running and then check BCD to see the tests interactions with the contract.</p><p>Now, since we’re not developing a contract here, the next part is the main one, developing the app.</p><h3>Let’s Start With Client-side Development</h3><p>In your terminal go into web folder and run yarn start. This will start the react development server, so any change we do in the app code will reflect almost immediately in the browser. when yarn start finishes the initial build you&#39;ll be presented with a URL, probably localhost:3000. Open it in your browser and let&#39;s start.</p><p>Open App.js and replace its content with</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/209ce005f99af8a02f325aaab861b4bd/href">https://medium.com/media/209ce005f99af8a02f325aaab861b4bd/href</a></iframe><p>You can see in the browser that the initial app was replaced with an empty file</p><p>Let’s add the main ingredients for the app (it won’t be beautiful, sorry)</p><p>replace &lt;div className=&quot;App&quot;&gt;&lt;/div&gt; with</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/70d3b939b7bfabc68edf63ca7abed157/href">https://medium.com/media/70d3b939b7bfabc68edf63ca7abed157/href</a></iframe><p>This post was relatively short, we just bootstrapped our app. In the next post, we will connect the app to a wallet and show its balance.</p><p>For more stuff about tezos, go to our <a href="http://tezos.co.il/blog"><strong><em>blog</em></strong></a></p><p>— — — — — — — — — — — — — — — — -</p><h3><strong>Who am I? (About the Author)</strong></h3><p>My name is Chaim Lev-Ari. I’m a web developer and in the last 2 years, I got into Tezos. First, as a baker when I co-founded <a href="https://tzbaker.co.il/"><strong><em>BakeryIL</em></strong></a>, and these days I’m starting with smart contract development. These posts are describing my journey in the ecosystem.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=777ff6b0b84e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/tezos-israel/building-a-simple-react-d-app-on-the-tezos-blockchain-part-1-777ff6b0b84e">Building a Simple React D-app on the Tezos Blockchain — Part 1</a> was originally published in <a href="https://medium.com/tezos-israel">Tezos Israel</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How many yogis do you need for replacing a flat tire?]]></title>
            <link>https://medium.com/@chiptus/how-many-yogis-do-you-need-for-replacing-a-flat-tire-36c61c2ef147?source=rss-e3f8559c457a------2</link>
            <guid isPermaLink="false">https://medium.com/p/36c61c2ef147</guid>
            <category><![CDATA[vipassana]]></category>
            <category><![CDATA[meditation]]></category>
            <dc:creator><![CDATA[Chaim Lev-Ari]]></dc:creator>
            <pubDate>Sat, 31 Mar 2018 15:14:07 GMT</pubDate>
            <atom:updated>2018-03-31T15:14:07.056Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8dBBzOiYHNQez5iR." /><figcaption>Photo by <a href="https://unsplash.com/@tentides?utm_source=medium&amp;utm_medium=referral">Jeremy Bishop</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>This is not the beginning of a joke, but a real story that happened on the sixth day of out vipassana retreat. I arrived from my daily walk after lunch and there were a few of my group standing around a car, “helping” someone to replace a flat tire. Very silently, some pointing, some whispering, every now and then bursting with laughter about something one of them said or done.</p><p>So this is the (first part of the) story about my first vipassana retreat. It was written in my mind during the week. In my mind, because we were instructed not to write (or read, speak, use our phone).</p><p>I’m starting to write it on a paper during our ride back home. Everyone around me is very cheerful, talking, laughing. But every now and then, there’s some silence, or you hear someone talks about her/his experience, and you understand we had out of the ordinary week. There’s not one of us who had an easy experience, but then, it wasn’t our intention.</p><p>The word “vipassana” is a word in Pali (the language in which the early scripture of Buddhism is written) means “insight” or “insight into the true nature of reality”. A vipassana retreat is a time interval (traditionally 10 days, but some do it for 1 week, a weekend, or even a few months — ours was a week) in which one takes a vow of silence and concentrate on mindfulness meditation practice and learning of Buddhism. Every place and school has its own tradition of how it conducts the retreat. Tovana, the organization who produced our retreat, is focusing on making mindfulness meditation approachable, and thus makes the week much less demanding in other schools. Yogis (the word for practitioners) are expected to be in silence and distract themselves in other activities (like reading, writing), but it’s not a strict law, and like in the story above, sometime you’ll see someone writing or whispering to a neighbor. I also heard that usually sports are not encouraged, but we had 1 hour each day devoted to that (running/yoga…), and a lot of walking meditations and long breaks.</p><p>Not to say that one approach is better, but this is definitely more easy and approachable.</p><h4>Schedule</h4><p>We woke up every day at 6 am o’clock. We practiced a sitting meditation for 45 minutes, after which we had an hour to exercise — Whatever we chose, running, yoga, resting — and then after a short breakfast made of oatmeal and vegetables, we had our opening session — a talk by our teacher, <a href="http://www.stephenfulder.com/">Stephen Fulder</a>, about the day’s subject.</p><p>Most of the day was made of interchanging 45 minutes sessions of walking and sitting meditations. We had a long 2 hours break for lunch and relaxing. In the evening before dinner, we had a class given by our teacher. Every day the class was about a different subject, all of them come from the Buddhist tradition. After dinner we had another cycle of sitting and walking meditation, and then the last and most favorite session, laying down meditation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_rNw57K6AAlSBbWe." /><figcaption><a href="https://unsplash.com/@stefnoyess?utm_source=medium&amp;utm_medium=referral">Stef Versoza</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4>How I started</h4><p>I’ve been meditating dayish since my birthday in July. I had an experience a few years back, which failed when I didn’t continue practicing, but it did make me understand that mindfulness has the ability to give me tools to help myself in different situations in life and I tried to return to practice since then. Going to a vipassana retreat is an idea that flowered in my mind in the last two years, and in my time in the USA I signed up for a few, but never got past the waiting list.</p><p>For my birthday, my mother gave me a subscription to an app called <a href="http://www.10percenthappier.com/">10% happier</a>. The app is meant for “fidgety skeptics”, and then try to lower the volume of the “blows and whistles” of the Buddhist tradition. They don’t talk about enlightenment, after-life or anything like, they just try to teach the practice, so skeptics (as myself) can overcome their aversion of religion, and use it for their own benefit.</p><p>The app’s motto is “one minute counts”. They start with a series of daily classes, each is made of one video and one short meditation session. In the video Dan Harris, the app’s host, talk with Joseph Goldstein, the course teacher, and the session is led by Joseph. Each session can be between 1 minute to 10 minutes and is meant to be done once a day. After the first introduction course, there are more courses about different subjects (like how to concentrate better, how to be mindful during the day) which are led by different teachers. The common between them all is mindfulness and Dan Harris. As I got more into meditation and really started practicing every day, I began doing some unguided sessions.</p><p>In the beginning, I felt very good about it. I’ve felt relaxed, I found that more of my decisions were made without regretting them, I started to think before getting angry, or better before acting angry. I was told by my girlfriend that she feels this about me. Today, I’m not sure whether I got used to the feeling or whether it just stopped. I think it’s similar to how you feel good after starting an exercise routine, and how when you get used to exercising, you also get used to that feeling or stop feeling it.</p><p>So, like in sports, there are two options (from my viewpoint). Give up or take it to the next level. The retreat was my way of taking it to the next level.</p><h4>Feelings after the retreat</h4><p>I started writing this right after the retreat because I wanted to have a “hot from the oven” report for myself and I had all these feelings to get out of myself. But something happened on the way back (I don’t remember what) and I stopped, and now I’m back. I feel like a few years passed already and not less than two weeks.</p><p>The after-feeling of the retreat was amazing. I was (again) very relaxed. I felt very clear with my thoughts and could communicate them easily. I also felt much more talkative than before, friendlier and actually happy. I started meditating 30 minutes a day first thing in the morning. I also became a bit “hippie”, not killing mosquitos and flies and feeling sad when my friends did that. One night I went out running and there was a slug on my trail, so I stopped and moved it out of the trail so it won’t get hit by runners and bikers. My talk started to be spiritual, talking about our inner happiness…</p><p>Most of that is still there, and still, my concentration in the practice is gone, I’m still doing 30 minutes a day, but I can’t concentrate as much. This is understood and I’m trying not to dwell on negative thoughts about it, just to learn from my experience and progress.</p><p>Ok, so how was the retreat? I can’t summarize in one word. It was good and hard, both physically and mentally. I didn’t enjoy the meditation for one minute after the first five minutes. My back soared, my legs started feeling weird, some muscles I didn’t know about told me stories about themselves. Don’t talk about concentration on my breath. I was totally in my suffering. And this was only the first session, I didn’t believe I’ll be able to complete this week. I’ve started counting back to the finish line, to the night, to the next meal. Counting hours, sessions, minutes, seconds.</p><p>The walking sessions were better, and I actually enjoyed them. Time flew when I was walking, the concentration was much better. I enjoyed checking how slow I could walk. One session I did a circle around the retreat camp and without noticing I passed the 45 minutes limit and when I arrived at the center, they were already in the middle of a sitting session.</p><p>Breaks weren’t better, or even worst. You couldn’t do anything, so I was bored. In the lunch break, I took a nap or a walk to pass them. Sleeping and eating became my highlights.</p><p>This is how I passed the first three days, totally suffering and totally unaware of it. On the third day, we had a group meeting, where we could talk and share how we feel. This was the second meeting, and like in the first I didn’t have anything to share, but since this was my only time I could talk, I decided to share. I didn’t feel like it’s something to share because I felt like everyone has this feeling at the first retreat and it just passes, but when the words left my mouth I realized how much I’m suffering. I knew I suffered, but as I said I felt it was natural, and there is nothing to do about it. When I started talking I felt I’m going to cry and I’m still amazed at not doing so.</p><p>Stephen, our teacher, offered a simple solution: If it’s not going well sitting on the floor, sit on a chair. If it’s still not going well on the chair, lay down. So simple, but it changed everything.</p><p>Ok, so I didn’t stop hurting, or even counting back the sessions. But I started concentrating better, I stopped being afraid of the sitting sessions. I believe that if I didn’t share my experience, I would get to the end of the week, but with a feeling of failure as a yogi, and without any motivation to continue the practice.</p><p>This changed my whole view of the week and the practice and today I’m still happy for going to the retreat and I’m actually looking forward to the next.</p><p>I’m not finished yet, but I am finished with this post. Hopefully, I will continue telling you about it in future posts.</p><p>Just to summarize, I think everyone should try mindfulness. It won’t change your life, but it might help you do it. You don’t have to start with a full week, even one minute counts.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=36c61c2ef147" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Moving on to Koh Phangan]]></title>
            <link>https://medium.com/@chiptus/moving-on-to-koh-phangan-dee2c4d3f87?source=rss-e3f8559c457a------2</link>
            <guid isPermaLink="false">https://medium.com/p/dee2c4d3f87</guid>
            <category><![CDATA[travel]]></category>
            <category><![CDATA[chiang-mai]]></category>
            <category><![CDATA[digital-nomads]]></category>
            <category><![CDATA[thailand]]></category>
            <dc:creator><![CDATA[Chaim Lev-Ari]]></dc:creator>
            <pubDate>Mon, 31 Jul 2017 11:21:40 GMT</pubDate>
            <atom:updated>2017-07-31T11:21:40.564Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lI1ydlAzs6wFBPVeAZ104A.jpeg" /><figcaption>The view on the way to Doi Sutep</figcaption></figure><p>After two weeks in Chiang Mai, I decided to move on and see more of the country. It wasn’t an easy decision and I thought that I can stay in Chiang Mai. But I felt that I should see some more scenery, that I should get out of the city and that I want to see the sea.</p><p>Chiang Mai was a wonderful experience both as a tourist and as a digital nomad. I slept in a hotel in the old city that is called CM Stay. I had a pretty big room with my own bathroom and a refrigerator.</p><p>Every day I was walking the streets (or taking an Uber) to find a cafe or a co-working space to work from. I checked both Punspace places (In <a href="https://www.google.co.th/maps/place/Punspace+Nimman/@18.7946246,98.9702413,16.93z/data=!4m13!1m7!3m6!1s0x30da3a7e90bb6f5d:0x98d46270a59b4367!2sChiang+Mai,+Mueang+Chiang+Mai+District,+Chiang+Mai!3b1!8m2!3d18.7060641!4d98.9817163!3m4!1s0x0:0x958a8f7924d5a5a1!8m2!3d18.793553!4d98.9723526?hl=en">Nimman</a> and in <a href="https://www.google.co.th/maps/place/Punspace+Tha+Phae+Gate/@18.7858845,98.9904409,17.93z/data=!4m13!1m7!3m6!1s0x30da3a7e90bb6f5d:0x98d46270a59b4367!2sChiang+Mai,+Mueang+Chiang+Mai+District,+Chiang+Mai!3b1!8m2!3d18.7060641!4d98.9817163!3m4!1s0x0:0x2e49e5d62aa60eaf!8m2!3d18.7865999!4d98.9914767?hl=en">the old city</a>), I worked from <a href="https://goo.gl/maps/eNCc7ZxgUr52">Mana</a> (My personal favorite) for a day, and also from <a href="https://www.google.co.th/maps/place/StarWork+Chiangmai/@18.796476,99.0141919,17z/data=!3m1!4b1!4m5!3m4!1s0x30da254c6ffcc5cb:0x375d86903a9983c7!8m2!3d18.796476!4d99.016386?hl=en">Starwork</a>, somewhere far in the north east of the city. Most days I sat in cafes, my favorite was <a href="https://goo.gl/maps/zYGEuTVMvbC2">Overstand</a>, right by <a href="https://www.google.co.th/maps/place/Tha+Phae+Gate/@18.7855738,98.9901542,16.92z/data=!4m13!1m7!3m6!1s0x30da3a7e90bb6f5d:0x98d46270a59b4367!2sChiang+Mai,+Mueang+Chiang+Mai+District,+Chiang+Mai!3b1!8m2!3d18.7060641!4d98.9817163!3m4!1s0x0:0x9d3b8fabe43926f6!8m2!3d18.7877407!4d98.9932296?hl=en">Tha Phae gate</a>, but I also checked My secret cafe, Cube 5 and some more that I don’t remember.</p><p>It was a big conflict for me, staying in a very touristic city, with million of stuff to do and work all day. But I felt that I found some balance in that, and I learned some stuff about this life style which I wish to acquire to myself. Most days I finished working at around 6 pm, and after that, I went to see some site or had dinner and a beer with some friends I’ve met. I kept the weekends totally free and found the time to see some nice art (Art in paradise — amazing, go see it).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LQGjwTW4Wtd4yID8UGzJ9A.jpeg" /></figure><p>I learned that as a digital nomad, I need to appreciate what I have and enjoy it. I need to enjoy the fact that if I want, at 6 pm I can climb the mountain and check the vista from there. I actually did that one day, I finished working and suddenly decided I want to do that, so I ordered an uber that took me up there. The driver came to pick me up with his friend and after Doi Suthep (The temple on the mountain) they showed me some of the city and their university — actually it was one of the nicest campuses I had ever seen (I only have a couple to compare to, but still).</p><p>I learned I need to stop feeling like I’m on a vacation and to start feeling like this is my life. Everyday to wake up in a different place, work for a few hours and then walk outside and enjoy where I’m at.</p><p>I’m feeling like I really was able to work like that. I had some nice progress in my job, I found my routine and stick to it. One thing I miss (job wise) is some interaction with my boss to know how he feels about my work. This one thing that I’ll try to fix in the next two weeks.</p><p>Working in Chiang Mai is very easy. The whole city is built for it. You have good internet connection in every hotel, coffee shop, and workspace. You have many workspaces and most cafés don’t mind you sitting there for hours. I will have to see other places to know if I can really work like that. There will be places where it won’t be easy, but I guess that in these places I will need to understand that I can let go and not work for a while.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ihSnh99Yrd6cfYWcSN3kxw.jpeg" /><figcaption>Overload café</figcaption></figure><p>I have many thoughts about the digital nomad community, workspaces, and the whole life style, but that would go on a different post. I just wanted to share that I realized that workspaces are not the thing for me, and I prefer to work out of a cafe. Workspaces felt too much like offices, which is what I wanted to avoid. Coffee shops gave me the ability to work and to see other people who are not only from my line of work.</p><p>With that, I will end, because I want to get some sleep tonight. I’m on the night train to Surathani, from there I will take a bus and then a ferry to Koh Phangan. I hope that I will have some fun there.</p><p>See you in the next post, thanks for reading.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dee2c4d3f87" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Another start for the adventure]]></title>
            <link>https://medium.com/@chiptus/another-start-for-the-adventure-68cba3dfe2f9?source=rss-e3f8559c457a------2</link>
            <guid isPermaLink="false">https://medium.com/p/68cba3dfe2f9</guid>
            <category><![CDATA[work]]></category>
            <category><![CDATA[digital-nomads]]></category>
            <category><![CDATA[travel]]></category>
            <category><![CDATA[vacation]]></category>
            <category><![CDATA[thailand]]></category>
            <dc:creator><![CDATA[Chaim Lev-Ari]]></dc:creator>
            <pubDate>Mon, 17 Jul 2017 16:41:48 GMT</pubDate>
            <atom:updated>2017-07-17T16:41:48.015Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lAOOlAT_nlf58nU9UNM96g.jpeg" /></figure><h3>This is how it starts. You pack your bags, take your laptop board a plane and leave. A new adventure begins.</h3><p>Since 5 months ago, I prepared for this. I found a job that won’t mind me flying around the world, I read about places I want to see and mostly prepared mentally. It took me a long time to find the courage to decide where and when and to book the flight. Probably wouldn’t happen with the encouragement of Renana, my girlfriend.</p><p>The captain just announced we’re starting our descent to Bangkok. From the airport, I’m planning to buy a plane ticket to Chiang Mai and book a hotel for the night. Tomorrow, after a good night sleep, I will go around Chiang Mai and find a better place for the next two weeks.</p><p>Then my plan is to stay in on of Thailand’s islands, and that’s it. Back home, wherever it may be.</p><p>This is my first digital nomad adventure and my first time in Thailand. I chose Chiang Mai from intuition and maybe because I’m looking for an easy start. Chiang Mai is a top destination for digital nomads and as such there are many places to be and many people to meet. I hope to see the community for what it really is, behind all my thoughts.</p><p>I chose a short stay for many reasons. Renana stayed in Israel and I’m going to miss her. I also want to see if I’m really able to work like that, and how my company will like it. They were aware that it’s going to happen soon, but until now it was only a dream. After one month here I can figure out if I can and want to do this, and continue to my next destination.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bPy5HX0WZ84uBNht9qLzlQ.jpeg" /></figure><p>I have many fears and doubts about this trip and about this whole life style. Ideally it’s a dream come true, but what if it’s not really my dream? What if actually, I prefer having a single home somewhere without the need to move too much? What if I get lonely? or better what will happen when I get lonely? Where should I go and what should I do? I thought I’m prepared, but I’m actually doing it on a whim. I even don’t know where I will be sleeping tonight. But maybe this is the thing. To be spontaneous and travel the world to where and whenever I feel like, but also have the job that gives me the ability to be myself.</p><p>I came here to understand / achieve the following:</p><ul><li>Does the DN life style really suits me?</li><li>Can I really work remotely? Not from a 3 hours drive distance, but from another country?</li><li>Clean my head and focus my life and my intentions.</li><li>Have lots of fun.</li></ul><p>I’ll keep you posted, thanks for reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=68cba3dfe2f9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Calling for test-less package owners]]></title>
            <link>https://medium.com/@chiptus/calling-for-test-less-package-owners-6ee3d48083c5?source=rss-e3f8559c457a------2</link>
            <guid isPermaLink="false">https://medium.com/p/6ee3d48083c5</guid>
            <category><![CDATA[npm]]></category>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[chingu]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Chaim Lev-Ari]]></dc:creator>
            <pubDate>Mon, 17 Jul 2017 11:27:10 GMT</pubDate>
            <atom:updated>2017-07-17T11:27:10.483Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Imagine a world where we don’t use money as currency, but only use our knowledge to help each other and give services to get more knowledge.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lOjYU_Nx3dCNrqc5UepeuQ.jpeg" /></figure><p>Ok, so this sounds a bit hippie and utopia, but we at Chingu decided to try and learn how to test our apps through building tests for oss packages.</p><p>Chingu is a community for junior developers, started by <a href="https://medium.com/u/70cd9f274aa7">Chance Taken</a>, that help each other to learn and progress in the software development world. Although we started in web development, today we have channels focused on machine learning, python, freelancing, digital marketing, cs and of course — test-driven-chingus :)</p><p>Lately <a href="https://medium.com/u/f18a43001608">Jason Boxman</a> offered to start looking for packages that don’t have test suites and build the tests for them. The idea is that we will build the test suite and in the process we will learn, well, the process, and you get a new and shiny test suite.</p><p>So we put up the following <a href="https://docs.google.com/forms/d/e/1FAIpQLSdKvtyivpF5zzM-SZzD28rLoVqRwKpPrXYiv24zxT6dgeOVDA/viewform">google form</a>, that you can fill and submit to us and we can start with this amazing project. We target mostly JavaScript packages, but even if your package isn’t written in JS, you are welcome to submit and we will get to it in the future.</p><p>Hopefully this project will be a success like many past projects, and we will have this knowledge to use in our jobs or to help other newer chingus.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6ee3d48083c5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to start using elasticsearch (with docker)]]></title>
            <link>https://medium.com/@chiptus/how-to-start-using-elasticsearch-with-docker-fc608caaddf?source=rss-e3f8559c457a------2</link>
            <guid isPermaLink="false">https://medium.com/p/fc608caaddf</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[elasticsearch]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[tutorial]]></category>
            <dc:creator><![CDATA[Chaim Lev-Ari]]></dc:creator>
            <pubDate>Wed, 26 Apr 2017 13:03:56 GMT</pubDate>
            <atom:updated>2017-06-08T15:47:58.234Z</atom:updated>
            <content:encoded><![CDATA[<p>I just started learning about elasticsearch and I felt like all the guides I found were not complete.</p><p>So I decided to write a post about the steps I had to do to be ready to learn from the elasticsearch <a href="https://www.elastic.co/guide/en/elasticsearch/guide/current">formal guide</a></p><p>I also decided to use docker instead of polluting my environment with elasticsearch. and also to make it easier to start on a new computer.</p><p>This guide is written by a total beginner for docker and elasticsearch, so apologies for my mistakes. Please correct them. Thanks!</p><p>In the end of this guide you will have elasticsearch and Kibana containers installed.</p><p>We’re installing Kibana because the elastic guide uses Sense, which is a GUI to read the data in an elasticsearch database. Sense used to be a chrome extension, but today it’s integrated into Kibana.</p><p>This guide was tested on Linux, I’m not sure how it will work on other environments.</p><h3>Prerequisites</h3><p>First, make sure you have docker and docker-compose installed on your computer. otherwise, go to the following links:</p><ul><li><a href="https://docs.docker.com/engine/installation/">docker</a> — install the right version for your platform and use-case — most cases would use docker CE</li><li><a href="https://docs.docker.com/compose/install/">docker-compose</a></li></ul><p>If you want to know more about docker, try this <a href="https://prakhar.me/docker-curriculum/">guide</a></p><h3>Containers</h3><p>Pull the images for elasticsearch and kibana</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f915e004c79b2e1798b73ed6f73d98c0/href">https://medium.com/media/f915e004c79b2e1798b73ed6f73d98c0/href</a></iframe><h3>Configuration File</h3><p>You should navigate to your working folder: e.g ~/repos/demo/elasticsearch and not on your root folder.</p><p>Create two files called docker-compose.yml and kibana.yml inside your working path. docker-compose.yml is a configuration file for docker-compose, that tells it which containers to run with which settings.</p><p>This is the content for your docker-compose.yml:</p><pre>version: &#39;2&#39;<br>services:<br>  elasticsearch:<br>    image: docker.elastic.co/elasticsearch/elasticsearch:5.3.1<br>    volumes:<br>      - esdata:/usr/share/elasticsearch/data<br>    ports:<br>      - &quot;9200:9200&quot;<br>      - &quot;9300:9300&quot;<br>    networks:<br>      - esnet<br>  kibana:<br>    image: docker.elastic.co/kibana/kibana:5.3.1<br>    volumes:<br>      - ./kibana.yml:/usr/share/kibana/config/kibana.yml<br>    networks: <br>      - esnet<br>    ports:<br>      - &quot;5601:5601&quot;<br>    depends_on:<br>      - elasticsearch<br><br>volumes:<br>  esdata:<br>    driver: local<br><br>networks:<br>  esnet:<br>    driver: bridge</pre><p>I’ll try to explain what’s going in the file.</p><p>When running docker-compose up it looks for this file in the current directory. docker-compose is creating the needed clusters based on the services options. In our example it creates 2 containers, namely: elasticsearch and kibana (based on the keys of the services object)</p><p>We can see that kibana depends on elasticsearch (depends_on key) meaning it will wait until elasticsearch goes up before it starts.</p><p>Each service (or container) gets the following fields:</p><ul><li>image - The image that this container depends on, and will be downloaded (or pulled) if not available.</li><li>volumes - Volume configuration for the containers. From what I understand it maps local files/folders into files/folders in the container. So in the elasticsearch case it exposes a folder to save the db data into, and kibana exposes our kibana.yml to the container so it can use it as a configuration file.</li><li>networks - specify the network that this service will be part of, this way the containers can talk to each other.</li><li>ports - map ports between local ports and the container. this way elasticsearch will be exposed on localhost:9200 and kibana on localhost:5601. elasticsearch also exposes port 9300, this is for its transport protocol. I&#39;m not sure how much this is needed.</li></ul><p>The other options volumes and networks are setting &quot;variables&quot; to use in the services option, as you see in the volumes and networks options of the different services.</p><p>Following is the content forkibana.yml - configuration file for kibana</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/35e4c34466d9f83d7b5ac44aece7b6a0/href">https://medium.com/media/35e4c34466d9f83d7b5ac44aece7b6a0/href</a></iframe><h3>Run</h3><p>run docker-compose up (from the same folder where you saved docker-compose.yml)</p><p>If you don’t want to see the logs you can run docker-compose up -d</p><p>To stop, run docker-compose down or if not in detached mode (If you didn’t use the -d flag) press Ctrl + C</p><h3>Use</h3><p>You got now elastic on http://localhost:9200 and kibana on <a href="http://localhost:5601.">http://localhost:5601</a></p><p>If you want to start with the guide, after reading the foreword and preface, you can skip Installing and Running Elasticsearch, because it is already installed.</p><p>Wherever they ask that you run a curl command from bash (or any other shell), you can just run it as they said, with the addition of -U elastic. When it&#39;s asking for password, write changeme.</p><p>REMEMBER: These settings are only for demo and playing with elastic, when you move to production the settings should be (or have to) be changed.</p><p>If you want to use Sense, go to kibana in http://localhost:5601, log in with the same credentials (user: elastic and password: changeme) and choose the devtools tab in the menu. Welcome to Sense.</p><h3>Troubleshooting</h3><p>If the elastic cluster doesn’t stay up it can be because you need to change a setting.</p><p>try running</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6c764cb01e7a986910079e6a79ff1c5d/href">https://medium.com/media/6c764cb01e7a986910079e6a79ff1c5d/href</a></iframe><p>if it helps, you can change the settings to stay like this for ever (or at least until you change it back)</p><p>add the following line to /etc/sysctl.conf:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9afda9ae19bff7987035a455e484fdd1/href">https://medium.com/media/9afda9ae19bff7987035a455e484fdd1/href</a></iframe><p>Hope this was helpful.</p><p>Thanks for reading.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fc608caaddf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hampi — second week]]></title>
            <link>https://medium.com/@chiptus/hampi-second-week-4227afb4362d?source=rss-e3f8559c457a------2</link>
            <guid isPermaLink="false">https://medium.com/p/4227afb4362d</guid>
            <category><![CDATA[remote-job]]></category>
            <category><![CDATA[travel]]></category>
            <category><![CDATA[india]]></category>
            <dc:creator><![CDATA[Chaim Lev-Ari]]></dc:creator>
            <pubDate>Wed, 07 Dec 2016 07:03:26 GMT</pubDate>
            <atom:updated>2016-12-07T09:44:22.458Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CK0D1jwqmyqFyquxViqF2Q.jpeg" /><figcaption>Hampi’s river</figcaption></figure><p>I’m starting a new experiment, hopefully it will work for me. (UPDATE: it didn’t :-)) I’m going to write for half an hour every morning, and then I will have a complete post for you every weekend.</p><p>So this is the first day I’m trying. I’m afraid that it will become too technical, but I hope it will reduce the time I’m investing in the blog. It’s very important for me, for having a journal to go back to, and for telling my story. But it’s not my top priority and I’m afraid that it takes too much of my time.</p><h3>27.11</h3><p>Yesterday was Shabbat, and I took the opportunity to rest. We started the day with a session of yoga, and then a big breakfast in our guest house — omelet, salad, coffee and cake. It was a very good morning :-) I continued my day by sitting in the guesthouse restaurant for a few hours, reading and enjoying my time. After a long siesta, Renana and I went to see the sunset at <a href="http://hampi.in/anjaneya-hill">Hanuman’s temple</a>. It is a hill believed to be Hanuman’s (the monkey god) birth place. It was a 40 minutes’ walk on the road; the road is relatively safe and quiet and the views are amazing.</p><p>We arrived at the bottom of the hill just in time, and prepared to climb the 575 stairs to the top. There was some holiday and all along the steps there were candles, prepared to be lightened by sunset. About every 100 steps you can stop and appreciate the view, the huge boulders and the amazing vegetation everywhere. On the hill is a small temple and you have a short walk to a point that is named “The number 1 sunset place”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4vJynpQF6Aw5rhLMVM2pRg.jpeg" /><figcaption>Hanuman’s temple</figcaption></figure><p>We sat at the sunset place, we and many more people. We sat there for an hour and enjoyed the amazing sunset. There are many points to climb here and watch the sun setting, but it’s probably one of the best. It’s very high in the sky and you can see everything. The only thing that interfered with my enjoyment was the noise. Many people talking, shouting, listening to loud music on their phones. I guess I’m getting old :-)</p><h3>28.11</h3><p>Not much to write about yesterday. Renana got stomach problem, not so serious but she needed to rest. So I joined her. We spent most of the day resting in the guesthouse. I finished working on my Pomodoro clock (first version) and uploaded it to FCC (more on it in another post). I also started working on my résumé and looked into sites like <a href="http://jobbatical.com/">jobbatical.com</a>. I love that I don’t have pressure to do anything as a tourist and I just feel at home. Every day I can decide whether to work, relax, go for a short/long trip and be spontaneous.</p><h3>2.12</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KJzljOe0pPtPiu8o_7cxeg.jpeg" /><figcaption>Rice field in Hampi</figcaption></figure><p>Not much to write about. I’m not in the mood, and it takes too much of my time. Today Renana and I went to the organic farm I ran by last week and we met the owner. He’s an Austrian guy named Peter. He has had this farm for about 15 years. It’s a mix of an Ashram and an organic farm. They don’t offer any courses, but they have a place for meditation, and lots of different crops. Most of the workers on the farm are locals, and as I understood from Peter, one of the goals of this farm is to help the locals and give them jobs. They have many animals walking around (even a wild boar!), and we heard stories about bears that come to eat their sugar canes. After quite a long talk, we said our goodbyes to Peter. He invited us to come for lunch someday and that’s we are going to do for sure.</p><p>This week was full of pondering, and a lot of self-examination. We decided to change our flight to the beginning of January, meaning that the trip in India is almost over (when you’re already traveling for four months, a month is a short time), and that next month we are going to land in Amsterdam. Additionally, I joined a Dutch course in Amsterdam, starting five days after I arrive until the end of January. Renana is unsure about her way from there, but she’ll probably go back to Israel and we’ll meet in February — we need to decide where, but that’s a decision we can postpone. It feels like the end of the adventure, and I’m thinking of how to use it as springboard to the continuation of the trip instead of as the end of it.</p><p>Since the part of India is close to an end, we’ve started to doubt about our decision to stay here in Hampi for the next month. We are thinking of an additional site to visit, maybe Gokarna. It’s a village close to the beach, with two main beaches — Om beach and Kudli beach. It’s supposed to be quieter than Goa, and we’re hearing many good things about it. It’s where we meant to go before coming to Hampi. We actually made up our mind about it, and now we are trying to decide either to go there next week and come back here or to go there a week before we go back to Delhi.</p><p>I had some work done on my résumé, and sent it to a few places. I’ll continue with that next week and hopefully something will come up. Many places want to see some code I worked on, and since my old company doesn’t publish its code, I’m starting to work on an example app. It something simple, just a simple app that counts. It is stupid as it sounds, but I think it has a potential to work as an example to how I write code and also as a good platform to try new frameworks and tools on. I’ll write a more elaborate post about it, but I’ve started with an app written and designed without any external help of tools like Webpack or frameworks like React or Bootstrap. You can check it out on <a href="http://chiptus.github.io/counter">GitHub</a> or check its <a href="https://github.com/chiptus/counter/">code</a> until I get a real post about it.</p><p>Have some tips for finding me a new job? Or better, have a remote job to offer? Maybe there’s another site I have to see, otherwise I haven’t been to India? Have any tips for continuing my trip? Please write me in the comments.</p><blockquote>This post was published originally on my <a href="http://tdigitalnomad.blogspot.com/">blog</a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4227afb4362d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>