<?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 Mohit Rakhade on Medium]]></title>
        <description><![CDATA[Stories by Mohit Rakhade on Medium]]></description>
        <link>https://medium.com/@devmohit?source=rss-b49250cdbd81------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*8fQKmyvniAnkZ3V3</url>
            <title>Stories by Mohit Rakhade on Medium</title>
            <link>https://medium.com/@devmohit?source=rss-b49250cdbd81------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 02:13:02 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@devmohit/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[Setting Up OpenClaw: When Your AI Stops Talking and Starts Doing]]></title>
            <link>https://devmohit.medium.com/setting-up-openclaw-when-your-ai-stops-talking-and-starts-doing-b879338813c4?source=rss-b49250cdbd81------2</link>
            <guid isPermaLink="false">https://medium.com/p/b879338813c4</guid>
            <category><![CDATA[openclaw]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[ai-agent]]></category>
            <dc:creator><![CDATA[Mohit Rakhade]]></dc:creator>
            <pubDate>Wed, 11 Feb 2026 07:16:14 GMT</pubDate>
            <atom:updated>2026-02-11T07:16:14.339Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*XDbD82py3Nmpg_-b.png" /></figure><p>Most AI tools today are great conversationalists.<br>They answer politely, explain patiently and then stop right there.</p><p><strong>OpenClaw</strong> is built for the moment when you ask:</p><blockquote>“Okay, but can you actually do something?”</blockquote><p>This blog walks through setting up <strong>OpenClaw</strong>, an open-source framework for running your own AI assistant one that lives on your infrastructure, integrates with real systems, and behaves more like an <strong>agent</strong> than a chatbot.</p><h3>Why OpenClaw Exists</h3><p>The problem with most AI assistants isn’t intelligence, it’s <strong>agency</strong>.</p><p>They:</p><ul><li>Don’t live close to your tools</li><li>Can’t reliably trigger real workflows</li><li>Are locked behind platforms you don’t control</li></ul><p>OpenClaw flips that model.</p><p>It gives you:</p><ul><li>Full ownership of the runtime</li><li>Freedom to choose models and providers</li><li>A structured way to connect AI with real channels and actions</li></ul><p>In short, OpenClaw is about <strong>control</strong> over data, behavior, and execution.</p><h3>A Quick Look at the Architecture</h3><p>Understanding the architecture early makes the setup feel intentional rather than magical.</p><p><strong>Core building blocks:</strong></p><ul><li><strong>CLI</strong> — Your control surface for initializing and managing everything</li><li><strong>Gateway</strong> — The runtime brain that routes messages, invokes models, and executes skills</li><li><strong>Providers</strong> — The LLM backends you choose</li><li><strong>Channels</strong> — Where messages come from and go to</li><li><strong>Skills</strong> — The actions your assistant can perform</li></ul><p>The separation is deliberate. It keeps the system flexible, testable, and production-ready.</p><h3>Prerequisites</h3><p>Before starting, make sure you have:</p><ul><li>Node.js <strong>v22+</strong></li><li>npm (or an alternative package manager)</li><li>An API key for your preferred LLM provider</li><li>Comfort with terminal-based workflows</li></ul><p>Nothing exotic — just modern JavaScript tooling.</p><h3>Step 1: Install the OpenClaw CLI</h3><p>Install the CLI globally:</p><pre>npm install -g openclaw</pre><p>Confirm it’s available:</p><pre>openclaw --version</pre><p>If this works, your environment is ready.</p><h3>Step 2: Initialize Your Workspace</h3><p>Create a new workspace:</p><pre>openclaw init</pre><p>This step sets the foundation by:</p><ul><li>Generating configuration files</li><li>Creating directories for channels and skills</li><li>Establishing a predictable project structure</li></ul><p>You’re not just starting a tool — you’re defining an <strong>agent workspace</strong>.</p><h3>Step 3: Configure Environment Variables</h3><p>Open the generated .env file and add your provider credentials:</p><pre>OPENAI_API_KEY=your_api_key_here</pre><p>This separation keeps secrets out of source control and makes deployments cleaner.</p><h3>Step 4: Choose a Provider and Model</h3><p>In openclaw.config.json, define the model configuration:</p><pre>{<br>  &quot;provider&quot;: &quot;openai&quot;,<br>  &quot;model&quot;: &quot;gpt-4o-mini&quot;<br>}</pre><p>This layer of abstraction matters. It allows you to:</p><ul><li>Swap models without code changes</li><li>Optimize for cost or performance</li><li>Prepare for multi-model strategies later</li></ul><h3>Step 5: Start the Gateway</h3><p>Now comes the moment where OpenClaw becomes alive.</p><pre>openclaw gateway start</pre><p>The gateway:</p><ul><li>Listens for incoming events</li><li>Passes context to the LLM</li><li>Executes skills when needed</li><li>Sends results back through channels</li></ul><p>Think of it as the operating system for your AI agent.</p><h3>Step 6: Connect Channels</h3><p>Channels are how OpenClaw interacts with the outside world.</p><p>They can represent:</p><ul><li>Messaging platforms</li><li>Web interfaces</li><li>Internal tools</li><li>Custom enterprise systems</li></ul><p>Each channel requires configuration and credentials, but once connected, your assistant is no longer isolated it’s embedded.</p><h3>Step 7: Add Skills (Where Things Get Interesting)</h3><p>Skills define <strong>capability</strong>.</p><p>Instead of just replying, your assistant can:</p><ul><li>Call APIs</li><li>Read or write files</li><li>Trigger workflows</li><li>Orchestrate multi-step actions</li></ul><p>This is the point where OpenClaw stops feeling like an experiment and starts feeling like infrastructure.</p><h3>Step 8: Test, Observe, Iterate</h3><p>Send test messages, watch logs, and observe behavior.</p><p>This feedback loop is critical:</p><ul><li>You learn how the agent reasons</li><li>You spot unsafe assumptions early</li><li>You refine skills and permissions</li></ul><p>Agent systems are built, not prompted.</p><h3>Security and Operational Discipline</h3><p>With power comes responsibility — especially when AI can act.</p><p>Best practices:</p><ul><li>Run OpenClaw in an isolated environment</li><li>Audit skills before enabling them</li><li>Avoid public gateway exposure</li><li>Use least-privilege API keys</li></ul><p>Treat OpenClaw like a backend service, not a toy.</p><h3>Final Thoughts</h3><p>OpenClaw represents a quiet but important shift:<br>from <strong>AI that talks</strong> to <strong>AI that operates</strong>.</p><p>It doesn’t try to hide complexity it structures it.<br>And that’s exactly what makes it suitable for serious use cases.</p><p>If you’re exploring agentic systems, internal AI tools, or self-hosted assistants, OpenClaw isn’t just worth trying , it’s worth understanding.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b879338813c4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Vector Databases: The Secret Sauce Making AI Systems Smarter (And Why You Should Care)]]></title>
            <link>https://devmohit.medium.com/vector-databases-the-secret-sauce-making-ai-systems-smarter-and-why-you-should-care-fe36e237ed5c?source=rss-b49250cdbd81------2</link>
            <guid isPermaLink="false">https://medium.com/p/fe36e237ed5c</guid>
            <category><![CDATA[database]]></category>
            <category><![CDATA[vector-database]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Mohit Rakhade]]></dc:creator>
            <pubDate>Mon, 09 Dec 2024 09:03:19 GMT</pubDate>
            <atom:updated>2024-12-09T09:03:19.069Z</atom:updated>
            <content:encoded><![CDATA[<p>Picture this: You’re at a massive library with billions of books, and someone asks you to find all books “similar” to Harry Potter. Impossible, right? Well, not for vector databases — they’re basically the Marie Kondo of the AI world, organizing data in ways that spark joy (and efficient similarity searches)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*itOBF0hOWIrWgDLqOh_Cyg.png" /></figure><h3>The Evolution of Data Storage: From Filing Cabinets to Vector Spaces</h3><p>Remember when databases were simple? You had neat rows and columns, like a well-organized spreadsheet. SQL databases were the gold standard, followed by NoSQL databases that helped us deal with messier, unstructured data. But then AI came along and said, “Hold my neural networks.”</p><p>Traditional databases are great at answering questions like “Find all customers who spent over $1000 last month” or “Get me all tweets from user @techie123.” But they start sweating when you ask questions like “Find images similar to this sunset photo” or “What documents have similar meaning to this paragraph?”</p><p>This is where vector databases enter the chat.</p><h3>What Makes Vector Databases Special?</h3><p>Imagine trying to explain the taste of an apple to an alien. You might use numbers to rate its sweetness, tartness, crunchiness, etc. That’s essentially what vector databases do — they represent complex data (text, images, audio) as lists of numbers (vectors) that capture their characteristics and meaning.</p><p>Here’s why this is revolutionary:</p><ol><li><strong>Semantic Understanding</strong>: They capture the meaning and context of data, not just exact matches</li><li><strong>Similarity Search</strong>: They can find “similar” items quickly using mathematical distance calculations</li><li><strong>AI Integration</strong>: They speak the same language as AI models — mathematics</li></ol><h3>The AI Connection: Why Vector Databases are Booming</h3><p>Modern AI applications, especially those using Large Language Models (LLMs), need to process and retrieve information quickly. Consider these scenarios:</p><ul><li>A chatbot needs to find relevant context from a knowledge base</li><li>A recommendation system needs to suggest similar products</li><li>An image recognition system needs to match faces</li></ul><p>Traditional databases would struggle with these tasks, but vector databases handle them efficiently using techniques like nearest neighbor search.</p><h3>ChromaDB: A Practical Example</h3><p>Let’s get our hands dirty with ChromaDB, a popular open-source vector database. It’s particularly beloved in the AI community for its simplicity and integration with LLMs.</p><pre>import chromadb<br>from chromadb.utils import embedding_functions<br><br># Initialize ChromaDB<br>client = chromadb.Client()<br><br># Create a collection with OpenAI embeddings<br>embedding_function = embedding_functions.OpenAIEmbeddingFunction(<br>    api_key=&quot;your-api-key&quot;,<br>    model_name=&quot;text-embedding-ada-002&quot;<br>)<br><br>collection = client.create_collection(<br>    name=&quot;my_documents&quot;,<br>    embedding_function=embedding_function<br>)<br><br># Add documents<br>documents = [    &quot;Vector databases are revolutionizing AI applications&quot;,    &quot;Traditional SQL databases store data in tables&quot;,    &quot;Machine learning models use mathematical vectors&quot;]<br><br>collection.add(<br>    documents=documents,<br>    ids=[&quot;doc1&quot;, &quot;doc2&quot;, &quot;doc3&quot;]<br>)<br><br># Query similar documents<br>results = collection.query(<br>    query_texts=[&quot;How do AI applications store data?&quot;],<br>    n_results=2<br>)<br><br>print(results)</pre><h3>Real-World Applications</h3><p>Vector databases aren’t just theoretical — they’re powering some impressive real-world applications:</p><h3>1. Content Recommendation</h3><p>Spotify uses vector similarity to find songs you might like based on your listening history. Each song is represented as a vector capturing various musical attributes.</p><h3>2. Image Search</h3><p>Pinterest uses vector databases to power their visual search feature. When you select an image, it can find visually similar pins by comparing vector representations.</p><h3>3. Semantic Search</h3><p>Modern search engines use vector databases to understand the meaning behind your queries, not just matching keywords.</p><h3>The RAG Revolution</h3><p>One particularly exciting application is Retrieval Augmented Generation (RAG). Here’s how it works:</p><ol><li>Store documents in a vector database</li><li>When a user asks a question, find relevant documents using similarity search</li><li>Feed these documents to an LLM as context</li><li>Get more accurate, contextual responses</li></ol><pre># RAG example with ChromaDB and OpenAI<br>import openai<br><br>def get_context(query):<br>    results = collection.query(<br>        query_texts=[query],<br>        n_results=2<br>    )<br>    return &quot; &quot;.join(results[&#39;documents&#39;][0])<br><br>def answer_question(query):<br>    context = get_context(query)<br>    response = openai.ChatCompletion.create(<br>        model=&quot;gpt-3.5-turbo&quot;,<br>        messages=[<br>            {&quot;role&quot;: &quot;system&quot;, &quot;content&quot;: f&quot;Use this context to answer: {context}&quot;},<br>            {&quot;role&quot;: &quot;user&quot;, &quot;content&quot;: query}<br>        ]<br>    )<br>    return response.choices[0].message.content</pre><h3>The Future of Vector Databases</h3><p>The vector database market is exploding, and it’s not hard to see why. As AI continues to evolve, the need for efficient similarity search and semantic understanding will only grow. We’re seeing exciting developments in:</p><ul><li>Hybrid searches combining traditional and vector search</li><li>Multimodal vector databases handling different types of data</li><li>Improved scaling and performance optimization</li></ul><h3>Getting Started</h3><p>If you’re interested in exploring vector databases:</p><ol><li><strong>Start with ChromaDB</strong>: It’s user-friendly and well-documented</li><li><strong>Experiment with embeddings</strong>: Try different models for converting data to vectors</li><li><strong>Build a simple RAG application</strong>: Combine ChromaDB with an LLM</li><li><strong>Join the community</strong>: The vector database community is active and welcoming</li></ol><h3>Conclusion</h3><p>Vector databases are more than just a trendy tech buzzword — they’re fundamentally changing how we store and retrieve information in the age of AI. Whether you’re building the next big AI application or just trying to make sense of unstructured data, understanding vector databases is becoming increasingly crucial.</p><p>Remember: In a world where data is growing exponentially, it’s not just about storing information — it’s about making it intelligently accessible. Vector databases are leading this charge, one similarity search at a time.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fe36e237ed5c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What are tokens :/  in AI world ?]]></title>
            <link>https://devmohit.medium.com/what-are-tokens-in-ai-world-bd9c8259045a?source=rss-b49250cdbd81------2</link>
            <guid isPermaLink="false">https://medium.com/p/bd9c8259045a</guid>
            <category><![CDATA[token]]></category>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[gpt]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Mohit Rakhade]]></dc:creator>
            <pubDate>Mon, 22 Apr 2024 06:18:51 GMT</pubDate>
            <atom:updated>2024-04-22T06:18:51.933Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>What are tokens :/ in AI world ?</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VsdxCfQ-kOLriqsbWxhANg.png" /><figcaption>chatGPT tokenizer</figcaption></figure><p>Here in this article, we will understand what exactly the token is !!!</p><p>Tokens in the context of OpenAI relate to the fundamental textual unit that the language model uses to process and produce text that is human-like.</p><p>Large volumes of text data are used to train OpenAI language models, such GPT-3, which then utilises this training to produce new text. Each token in the input text represents a word, punctuation mark, or other character, and the model processes the text one token at a time.</p><p>As an illustration, the line “The curious cat chases the playful mouse.”</p><p>Deconstructing this into individual tokens gives us:</p><ul><li>“The”</li><li>“curious”</li><li>“cat”</li><li>“chases”</li><li>“the”</li><li>“playful”</li><li>“mouse”</li></ul><p>During the text generation process, the language model employs an autoregression technique to forecast the subsequent token by analysing the preceding tokens in the sequence. The machine can produce extremely cohesive, naturally-sounding prose that mimics human writing by predicting one character at a time.</p><p>To put it briefly, tokens are the fundamental text building blocks that the OpenAI language model uses. They are employed in text generation and processing to represent specific words, letters, and punctuation.</p><p>You don’t ask for tokens, but I haven’t seen that mistake you are receiving before. The text that the AI model feeds in and out is called a token.</p><p>Just to understand it in better way, I will explain with some examples.</p><p>You can think of tokens as word fragments. The input is divided into tokens before the API processes the prompts. These tokens can contain trailing spaces and even subwords. they are not broken up precisely where the words begin or finish. The following are some useful guidelines for comprehending token lengths:</p><p>4 English characters make up one token.</p><p>One token is equal to ½ words.</p><p>75 words ~= 100 tokens</p><p>or</p><p>30 tokens &lt;= 1–2 sentences</p><p>100 tokens ~= 1 paragraph</p><p>2048 tokens ~= 1,500 words</p><p>There is <strong>A Short Lesson on Tokens and Text </strong>do check it out here:</p><iframe src="https://cdn.embedly.com/widgets/media.html?type=text%2Fhtml&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;schema=reddit&amp;url=https%3A//www.reddit.com/r/chatgpt_promptDesign/comments/12dtu6q/a_short_lesson_on_tokens_and_text/&amp;image=" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/e823e3e169bca87b7d2d26ba763fed5e/href">https://medium.com/media/e823e3e169bca87b7d2d26ba763fed5e/href</a></iframe><p>If you came till here, to understand more go to: <a href="https://platform.openai.com/tokenizer">https://platform.openai.com/tokenizer</a></p><h4>Thank you, hope this helped you… see you soon :)</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bd9c8259045a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MariaDB vs MySQL]]></title>
            <link>https://devmohit.medium.com/mariadb-vs-mysql-3322792f7047?source=rss-b49250cdbd81------2</link>
            <guid isPermaLink="false">https://medium.com/p/3322792f7047</guid>
            <category><![CDATA[mysql]]></category>
            <category><![CDATA[mariadb]]></category>
            <category><![CDATA[sql]]></category>
            <dc:creator><![CDATA[Mohit Rakhade]]></dc:creator>
            <pubDate>Wed, 20 Sep 2023 14:52:07 GMT</pubDate>
            <atom:updated>2023-09-20T14:52:07.968Z</atom:updated>
            <content:encoded><![CDATA[<p>lets talk…</p><p>Discover the differences between MariaDB and MySQL in terms of functionality, release philosophy, and more. Explore the unique approaches each database takes and how it may impact your projects.</p><p>MariaDB and MySQL have diverged in terms of functionality and release philosophy. MySQL is developed by Oracle Corporation and contributions are accepted, while MariaDB is released by a non-profit MariaDB Foundation that encourages contributions and has a lot of development done in public.</p><p>MarieDB Foundation is responsible for MarieDB server, while MarieDB Corporation builds proprietary solutions around MarieDB. MarieDB Foundation focuses on serving the MarieDB community, developing the open-source MarieDB server. MarieDB Corporation is a venture, for-profit corporation that builds proprietary solutions around MarieDB, providing enterprise-grade performance and database-as-a-service.</p><p>The complexity lies in the fact that running the MarieDB database requires more than just the server. It also involves connectors, proxies for connection management, and other components owned by MarieDB Corporation, released under different licenses. Marie DB’s community builds are now maintained by MariaDB Foundation, making it cleaner. Marie DB’s knowledge base is hosted by MariaDB Corporation, acting as lead generation for the commercial entity. Downloading from,iedb.org redirects to mariadb.com, creating confusion. Marie DB Corporation is the biggest sponsor and contributor to MariaDB Foundation, expecting a return on investment.</p><p>Open source in MySQL and MariaDB follows the open core model. MariaDB is an open-source database server with some proprietary parts. MariaDB is completely open source, including all its plugins. MariaDB is based on MySQL’s source code, which is GPL licensed. Downloading resources for MariaDB server can be challenging. GPL requirements only mandate distributing the source code. MariaDB, is an extended subset of the community version. Certain community features are not included in the enterprise version. Different lifecycle and release schedules for enterprise and community versions. MariaDB’s relationship with open source and enterprise versions.</p><p>The cloud-native or Kubernetes situation is also interesting. MariaDB Foundation is working on creating an official open-source Kubernetes operator for MariaDB. The project is in an early stage but shows great promise. Both MySQL and MariaDB have community versions available on major clouds. MariaDB also offers enterprise versions and has a partnership with Alibaba Cloud. In terms of analytics, MariaDB has the MariaDB ColumnStore storage engine while Oracle offers the MySQL Analytics Service called HeatWave. Marie DB focuses on comparability with Oracle and Microsoft SQL Server, targeting the unique needs of sysadmins and dbas. Marie DB has improved usability with features like service control and colored error messages. Marie DB has also integrated with cloud services like S3 storage engine. Marie DB’s focus has been on developers with improvements in SQL support and tools like Docstore and JSON MySQL Shell. Marie DB does not focus on advanced Oracle or other database features.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3322792f7047" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to get a lot of goerliETH? ]]></title>
            <link>https://devmohit.medium.com/how-to-get-a-lot-of-goerlieth-4d7985cfa0e?source=rss-b49250cdbd81------2</link>
            <guid isPermaLink="false">https://medium.com/p/4d7985cfa0e</guid>
            <category><![CDATA[faucet]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[eth]]></category>
            <category><![CDATA[goerli]]></category>
            <dc:creator><![CDATA[Mohit Rakhade]]></dc:creator>
            <pubDate>Fri, 14 Apr 2023 19:02:01 GMT</pubDate>
            <atom:updated>2023-04-14T19:02:01.705Z</atom:updated>
            <content:encoded><![CDATA[<p>Tired of the 0.2 eth per day thing???</p><p>So, my buddies and I have been tinkering around with some fancy-sounding stuff like dex and defi perpetual things. We’re trying to make it big in the crypto world. But before we could launch our genius creations on the real deal Mainnet, we had to do some testing. And that’s where things got tricky.</p><p>We were using this thing called Hardhat to fork the Mainnet and try out our strategies, but we couldn’t collaborate effectively. Turns out, sharing our local Mainnet forks was a pain in the neck.</p><p>But then, hallelujah! We stumbled upon this nifty tool called Buildbear at <a href="https://buildbear.io/">https://buildbear.io/</a>. It’s like a magic wand for us crypto geeks!</p><p>With Buildbear, we could finally create a common Mainnet fork and work together seamlessly. Plus, it has this explorer feature that lets us track transactions and dig into any failed ones in detail. It’s been a game-changer for us!</p><h4>Here’s a step-by-step guide on how to get started with BuildBear:</h4><p>Step 1: Create a custom network First, head over to the BuildBear App and log in using your GitHub or Google Account. Once you’re in, you can create your own Testnet by forking from any chain that we offer, like Ethereum Mainnet or Polygon Mainnet, and more! It’s as simple as that! 🐻</p><p>Step 2: Add your private Testnet to your MetaMask wallet After creating your custom network, you can easily add it to your MetaMask wallet by using the “Unlock And Add to MetaMask” button. This will allow you to seamlessly connect your wallet to your private Testnet and start experimenting with your own blockchain. You’re in control now! 💪</p><p>Step 3: Use the faucet and mint native tokens With BuildBear, you can easily use the faucet to mint as many native tokens as you want for your custom network. No more searching for faucets or worrying about limited supply! We’ve got you covered. And if you’re looking for popular ERC20 tokens that are hard to find in public Testnets, we also provide mint support for them. It’s a minting frenzy! 🚀</p><p>Step 4: Use the explorer of your custom network BuildBear’s explorer is your best friend when it comes to debugging transactions on your custom network. It works just like Etherscan, but with added features like transaction trace and logs, which can be incredibly helpful in troubleshooting failed transactions. You’ll be a blockchain detective in no time! 🔍</p><p>Compared to existing options, BuildBear offers a hassle-free and user-friendly way to create and test your very own private network. Say goodbye to the struggles of getting TestETH and hello to seamless blockchain experimentation with BuildBear! Don’t wait any longer, check out BuildBear now and unlock your blockchain dreams! 💫</p><p>Oh, and here’s the cherry on top — they have this Twitter account that shares awesome developer content every single day. So, if you’re looking to dive into the crypto world, check out their guide at <a href="https://buildbear.notion.site/Getting-Started-8e561563dd2e410c969874ba3c1684ee">https://buildbear.notion.site/Getting-Started-8e561563dd2e410c969874ba3c1684ee</a> and get ready to be a crypto genius in no time.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4d7985cfa0e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to name variables?]]></title>
            <link>https://devmohit.medium.com/how-to-name-variables-bb4ac61a5016?source=rss-b49250cdbd81------2</link>
            <guid isPermaLink="false">https://medium.com/p/bb4ac61a5016</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[developer]]></category>
            <category><![CDATA[habits]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Mohit Rakhade]]></dc:creator>
            <pubDate>Tue, 31 Jan 2023 10:30:15 GMT</pubDate>
            <atom:updated>2023-01-31T10:30:15.204Z</atom:updated>
            <content:encoded><![CDATA[<p>It&#39;s essential that you should follow proper naming conventions when you code to be a good developer.</p><p>It won’t change the performance of the code for sure, but the time and effort ( forget about your peers ) you will require to make changes in code or debug your code will keep you awake for some nights.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NHPLP1Z0o81rBh3kkPocmw.png" /><figcaption>thanks DALL E2 for image</figcaption></figure><blockquote>note: whatever writer has written above is based on true events, nothing is fiction. don’t take the advice casually. thanks for reading note :)</blockquote><h4>Forget x, y, and i, j’s like they are your ex</h4><p>leave them when you are actually coding on the project, you can use them when you are wasting your time doing competitive programming.</p><p>Don’t get into the habit of giving your variables short names that mean nothing. Don’t name variables x or y.</p><p>Give them descriptive names like numberOfDepositsLeft and costOfItem.</p><p>Let’s optimize this also, what if you use itemCost instead of costOfItem this is better.</p><p>And for boolean type variables, ask a question on the state of things like -</p><p>IsActive, IsPaid, IsFloating, IsDeletable, etc.</p><h4>non-compulsory tip</h4><p>here is one non-compulsory tip, it’s called Hungarian notation. some people like some don’t. Add an identifier of the type of variable as a prefix.</p><p>E.g. iLives (for integers), fTokens (for floats), bIsAlive (for booleans), etc. To check the type faster than hovering on it in your IDE.</p><p>And most people avoids it for good reason. If you spend that much time wondering what types you’re dealing with, your design probably sucks. It’s hard for me to recall ever spending so much time figuring that out that I thought I should change anything.</p><p>you can use this non-compulsory tip depending on the project structure you will be working on.</p><h4>You can comment, code doesn’t get Offended by a Comment</h4><p>try to add comments to your code that explain things a little because when you come back to the code at a later date you won&#39;t understand that mess. Comments are best served to tell you <em>why</em> you did something rather than <em>what</em> you did.</p><p>The comments have to be very meaningful in my opinion and not be used to replace bad coding.</p><p>If you are following the Design and Development Principles of KISS, SOLID YAGNI, etc in building your projects, a lot of things you do would be very self-explanatory. For example, if you building functions, they should be self-explanatory with descriptive names and descriptive variable names, do only one thing at a time.</p><p>Do check my Twitter 🐦</p><h3>Mohit.eth * Blockchain Developer on Twitter: &quot;Don&#39;t code for 12 hours at a time, Take breaks. Like only going 11 hours at a time. Break for 3 minutes.Then get back to it you have a project to finish!!! / Twitter&quot;</h3><p>Don&#39;t code for 12 hours at a time, Take breaks. Like only going 11 hours at a time. Break for 3 minutes.Then get back to it you have a project to finish!!!</p><p>Thanks for your time, hope you enjoyed this ❤️</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bb4ac61a5016" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The New Boston : Spin up validator guide]]></title>
            <link>https://devmohit.medium.com/the-new-boston-spin-up-validator-guide-54eaf5071d23?source=rss-b49250cdbd81------2</link>
            <guid isPermaLink="false">https://medium.com/p/54eaf5071d23</guid>
            <category><![CDATA[validator]]></category>
            <category><![CDATA[defi]]></category>
            <category><![CDATA[solidity]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[Mohit Rakhade]]></dc:creator>
            <pubDate>Sun, 23 Jan 2022 10:58:30 GMT</pubDate>
            <atom:updated>2022-01-23T10:58:30.264Z</atom:updated>
            <content:encoded><![CDATA[<h3>The New Boston : <a href="https://github.com/thenewboston-developers/KeyGenerator">Spin</a> up validator guide</h3><ol><li>Create a digital ocean ubuntu server with a minimum of 2 CPU</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VDYw_e597QHY9EWfLnsfYw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o3Dk4vnxMfT6TM9q2-HVug.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ohc8c52vAnHzOsOvlpr7ZQ.png" /></figure><p>2. generate key to access :</p><p><a href="https://github.com/thenewboston-developers/KeyGenerator">thenewboston-developers/KeyGenerator</a></p><p>a. Clone the repo in your local machine</p><p>b. Install required packages:</p><p>pip3 install -r requirements.txt</p><p>c. run the python file and you will get the keys pairs</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dOhTaKEAE5FSbWrdUEXreA.png" /></figure><p>Account Number Signing Key:<br>482028209af7ccdc1d1ff3fe29d33a34704f5ea16cc921f4342e0edd21253467</p><p>Account Number:<br>bcea9bd50bb478269666b808a249f445b61aa21216f216720373eb028d17da8c</p><p>NID Signing Key:<br>1e79eb494c68e0465752fb11be120edfa0a5b4220b91dead5669c18f9b55bb6a</p><p>NID:<br>c75520c2171780fa6fb74d4845c209df62bb901cedb99d4691c828e0ebfa62fb</p><p>SECRET_KEY:<br>ib1tbmzy51gbe*ibvip54jxar2(jvq-ok*k3x6h*vj4ul3c38p</p><p>NID key prove you identity on network. SECRET_KEY has nothing to do with network protocol or digital currency.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/808/1*h9mvGzdTx9Djo--9xTJzjQ.png" /></figure><h3>Install Dependencies</h3><p>Update and install packages:</p><pre>sudo add-apt-repository universe</pre><pre>sudo apt -y update &amp;&amp; sudo apt -y upgrade</pre><pre>sudo apt -y install build-essential libpq-dev nginx postgresql postgresql-contrib python3-pip redis-server</pre><h3>Firewall</h3><p>Enable firewall:</p><pre>sudo ufw app list</pre><pre>sudo ufw allow &#39;Nginx Full&#39; &amp;&amp; sudo ufw allow OpenSSH &amp;&amp; sudo ufw enable</pre><p>Verify that firewall is active and nginx is running:</p><pre>sudo ufw status &amp;&amp; systemctl status nginx</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*yZgutMGYeCI4GVbhfCT5mA.png" /></figure><p>Do check ip of your server in browser that will show screen like this that means your nginx is working properly</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EKtTf60hvIMph-lt89Tmvw.png" /></figure><p>You should now be able to visit your server’s public IP address and see the welcome page.</p><p>Create a new user:</p><pre>sudo adduser deploy</pre><p>Fill the form and set a password:</p><pre>&gt; enter a secure password</pre><p>Allow this user to use sudo:</p><pre>sudo visudo</pre><p>Add following line into the opened file:</p><pre>deploy ALL=(ALL) NOPASSWD:ALL</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/493/1*Wwh25Slm98210H5CqenHYQ.png" /></figure><p>Switch to that new user:</p><pre>su - deploy</pre><h3>Project Setup</h3><p>Update /var/www/ permissions:</p><pre>sudo chmod go+w /var/www</pre><p>Clone project to server and install dependencies:</p><pre>git clone https://github.com/thenewboston-developers/Validator.git /var/www/Validator<br>cd /var/www/Validator/<br>sudo pip3 install -r requirements/production.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-usOtcOUPhrmsazr6QI8Dw.png" /></figure><h3>NGINX</h3><p>Create NGINX configuration:</p><pre>sudo rm /etc/nginx/sites-available/default<br>sudo nano /etc/nginx/sites-available/default</pre><p>Paste in the following and save:</p><pre>upstream django {<br>    server 127.0.0.1:8001;<br>}</pre><pre>server {<br>    listen 80 default_server;<br>    server_name localhost;<br>    charset utf-8;<br>    client_max_body_size 75M;</pre><pre>    location /media {<br>        alias /var/www/Validator/media;<br>    }</pre><pre>    location /static {<br>        alias /var/www/Validator/static;<br>    }</pre><pre>    # Send all non-media requests to the Django server<br>    location / {<br>        proxy_pass http://django;</pre><pre>        proxy_http_version 1.1;<br>        proxy_set_header Upgrade $http_upgrade;<br>        proxy_set_header Connection &quot;upgrade&quot;;</pre><pre>        proxy_redirect off;<br>        proxy_set_header Host $host;<br>        proxy_set_header X-Real-IP $remote_addr;<br>        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<br>        proxy_set_header X-Forwarded-Host $server_name;<br>    }</pre><pre>}</pre><p>Test configuration:</p><pre>sudo nginx -t</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/819/1*o4s4FMwkJCXNepeOXOjkOw.png" /></figure><h3>Redis</h3><p>Since we are running Ubuntu, which uses the systemd init system, change this to systemd:</p><pre>sudo nano /etc/redis/redis.conf</pre><p>Update the following line in the configuration and save file:</p><pre># Note: these supervision methods only signal &quot;process is ready.&quot;<br>#       They do not enable continuous liveness pings back to your supervisor.<br>supervised systemd</pre><p>Restart the Redis service to reflect the changes you made to the configuration file:</p><pre>sudo systemctl restart redis.service</pre><p>Check status to make sure Redis is running correctly:</p><pre>sudo systemctl status redis</pre><h3>Gateway Interface (daphne)</h3><p>Gateway Interface translate the web requests by Nginx to python commands for django. and ones DJango done with that requests it will sent back to daphne, then to the nginx and then to the user.</p><p>Create script to run daphne:</p><pre>sudo nano /usr/local/bin/start_api.sh</pre><p>Paste in the following and save:</p><pre>#!/bin/bash</pre><pre>cd /var/www/Validator<br>daphne -p 8001 config.asgi:application</pre><p>Update permissions for the shell script:</p><pre>sudo chmod a+x /usr/local/bin/start_api.sh</pre><h3>Celery</h3><p>It just run the long process or request in background</p><p>Create a file to contain our environment variables:</p><pre>cd /etc/<br>sudo mkdir validator<br>sudo mkdir /var/log/celery<br>sudo chown deploy /var/log/celery<br>sudo nano /etc/validator/environment</pre><pre>then add following to it:</pre><pre>DJANGO_APPLICATION_ENVIRONMENT=production<br>NETWORK_SIGNING_KEY=YOUR_NID_SIGNING_KEY<br>SECRET_KEY=YOUR_SECRET_KEY</pre><p><strong>Note : exchange those keys with the keys we generated before</strong></p><p>Create celery env config:</p><pre>sudo nano /etc/validator/celery.conf</pre><pre>CELERYD_NODES=&quot;w1 w2 w3&quot;<br>CELERY_BIN=&quot;/usr/local/bin/celery&quot;<br>CELERY_APP=&quot;config.settings&quot;<br>CELERYD_MULTI=&quot;multi&quot;<br>CELERYD_OPTS=&quot;--time-limit=1800 -Q:w1 celery -c:w1 2 -Q:w2 block_queue -P:w2 solo -Q:w3 confirmation_block_queue -P:w3 solo&quot;<br>CELERYD_PID_FILE=&quot;/var/log/celery/%n.pid&quot;<br>CELERYD_LOG_FILE=&quot;/var/log/celery/%n%I.log&quot;<br>CELERYD_LOG_LEVEL=&quot;DEBUG&quot;<br>DJANGO_APPLICATION_ENVIRONMENT=production<br>NETWORK_SIGNING_KEY=YOUR_NID_SIGNING_KEY<br>SECRET_KEY=YOUR_SECRET_KEY</pre><p>Create service:</p><pre>sudo nano /etc/systemd/system/api.service</pre><pre>Add this: </pre><pre>[Unit]<br>Description = Service to run Django API<br>After = network.target</pre><pre>[Service]<br>EnvironmentFile = /etc/validator/environment<br>User = deploy<br>ExecStart = /usr/local/bin/start_api.sh</pre><pre>[Install]<br>WantedBy = multi-user.target</pre><p>Update permissions for file:</p><pre>sudo chmod a+x /etc/systemd/system/api.service</pre><p>Create service for celery:</p><pre>sudo nano /etc/systemd/system/celery.service</pre><pre>[Unit]<br>Description=Validator Celery Service<br>After=network.target</pre><pre>[Service]<br>Type=forking<br>User=deploy<br>EnvironmentFile=/etc/validator/celery.conf<br>WorkingDirectory=/var/www/Validator<br>ExecStart=/bin/sh -c &#39;${CELERY_BIN} multi start ${CELERYD_NODES} \<br>  -A ${CELERY_APP} --pidfile=${CELERYD_PID_FILE} \<br>  --logfile=${CELERYD_LOG_FILE} --loglevel=${CELERYD_LOG_LEVEL} ${CELERYD_OPTS}&#39;<br>ExecStop=/bin/sh -c &#39;${CELERY_BIN} multi stopwait ${CELERYD_NODES} \<br>  --pidfile=${CELERYD_PID_FILE}&#39;<br>ExecReload=/bin/sh -c &#39;${CELERY_BIN} multi restart ${CELERYD_NODES} \<br>  -A ${CELERY_APP} --pidfile=${CELERYD_PID_FILE} \<br>  --logfile=${CELERYD_LOG_FILE} --loglevel=${CELERYD_LOG_LEVEL} ${CELERYD_OPTS}&#39;</pre><pre>[Install]<br>WantedBy=multi-user.target</pre><p>Reload systemd and enable both services:</p><pre>sudo systemctl daemon-reload &amp;&amp; sudo systemctl enable api &amp;&amp; sudo systemctl enable celery</pre><p>Verify it is enabled:</p><pre>ls /etc/systemd/system/multi-user.target.wants/</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WaUqfUntGAtn3vjR2f3_nA.png" /></figure><h3>System Services</h3><p>Start API service, restart NGINX, and verify services are active:</p><pre>sudo systemctl start api &amp;&amp; sudo systemctl start celery &amp;&amp; sudo systemctl restart nginx</pre><p>Check the status of the services:</p><pre>sudo systemctl status api celery nginx redis</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ML4fmtbQoljahKGSk0bt-g.png" /></figure><h3>Static Files and Application Configuration</h3><p>Set environment variable:</p><pre>nano ~/.profile</pre><pre>export DJANGO_APPLICATION_ENVIRONMENT=&quot;production&quot;<br>export NETWORK_SIGNING_KEY=&quot;YOUR_NID_SIGNING_KEY&quot;<br>export SECRET_KEY=&quot;YOUR_SECRET_KEY&quot;</pre><p>Log out and log back in:</p><pre>logout<br>su - deploy<br>printenv</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Xj6S49Ja4NJYRCkRKxTdIg.png" /></figure><p>Initialize database:</p><pre># Create a new user (or more precisely, a role)<br>sudo -u postgres createuser --interactive</pre><pre>Enter name of role to add: thenewboston<br>Shall the new role be a superuser? (y/n) y</pre><pre># Create new database<br>sudo -u postgres createdb thenewboston</pre><pre># Set a password for the user<br>sudo -u postgres psql template1<br>ALTER USER thenewboston PASSWORD &#39;thenewboston&#39;;</pre><pre># Exit prompt<br>\q</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/895/1*uSDk97Ted78nvqadsZ7Pzg.png" /></figure><p>Populate database:</p><pre>cd /var/www/Validator/<br>python3 manage.py makemigrations &amp;&amp; python3 manage.py migrate<br>python3 manage.py createsuperuser<br>python3 manage.py collectstatic</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/1*J6V4I2tHIpLrh4YBS5999g.png" /></figure><p>Check you browser on &lt;ip&gt;/admin :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jwtFcvDnW-cXKJUseKK6hw.png" /></figure><p>after login:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w5lFCPB_DRHL-tE5b8N3Uw.png" /></figure><p>Now before running validator node, if you do not installed the new boston then go and run that first : <a href="https://thenewboston.com/">https://thenewboston.com/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/878/1*8PM_Inq-nyfuQwQpM12U4g.png" /></figure><p>after installing you will see validators and banks there. UI is so simple you can figure things out youself and configure validator.</p><p>TNB Account Manager will look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xP88Gxw9DUP_stHi2KvLlw.png" /></figure><p>Initialize validator node:</p><pre>python3 manage.py initialize_validator</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F2i-lz-W-z-f9hj7ilkwrg.png" /></figure><p>Use primary validatory info to run <strong>above</strong> script:(also add the NID and Account keys)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*_HOIR5bHpe5sR4bTLtF7aQ.png" /></figure><p>If setting up confirmation validator, run this script to connect to the primary validator:</p><pre>python3 manage.py set_primary_validator</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1016/1*cK00fkCIHpa0eJEvaG-X7w.png" /></figure><h4>Now Finally, your validator start syncing with primary validator.</h4><p>Kuddos to you xD</p><p>Here is our validator, which is connected to primary validator</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HnAjiw5J82ntP6BPm35ZSw.png" /></figure><p>Verify everything is working correctly by visiting:</p><pre><a href="http://[IP_ADDRESS]/config">http://[IP_ADDRESS]/config</a></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oPAjTT9MsCEwdpzzRK_N4w.png" /></figure><p>This is our validator-</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N-DnTtpO5HfUYBksQrq4cg.png" /></figure><h3>Troubleshooting</h3><p>Check the status of the services:</p><pre>sudo systemctl status api celery nginx redis</pre><p>View the logs:</p><pre>sudo journalctl -u api.service<br>sudo journalctl -u celery.service<br>sudo journalctl -u nginx.service</pre><p>Thanks</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=54eaf5071d23" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Install Hyperledger Fabric V2.2 & Run Test Network ]]></title>
            <link>https://medium.com/coinmonks/install-hyperledger-fabric-v2-2-run-test-network-20ef2782d64a?source=rss-b49250cdbd81------2</link>
            <guid isPermaLink="false">https://medium.com/p/20ef2782d64a</guid>
            <category><![CDATA[hyperledger-fabric]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[hyperledger]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Mohit Rakhade]]></dc:creator>
            <pubDate>Mon, 07 Dec 2020 13:22:49 GMT</pubDate>
            <atom:updated>2020-12-28T13:43:47.950Z</atom:updated>
            <content:encoded><![CDATA[<h4>Errors covered | with each step snapshot | bring up HF network fast</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M7RKBg822r2NYHWIZffbcg.png" /></figure><p>Before starting this article, let me give you some context about it. In this article we will install Hyperledger Fabric and run test-network with clean and minimal steps, we will also look into possible errors that might lead you to scratch your head for hours if you don’t read this.</p><p>This article will hold your hand from zero to bring up network, If you want to intensify each term, I will highly recommend you to read <a href="https://medium.com/u/32dec75e8ca9">KC Tam</a>’s 👉 ( <a href="https://kctheservant.medium.com/test-network-script-walk-through-95ca973bc676">this</a> ) article after completing this one, to understand how exactly things work in detail.</p><p>Before installing fabric samples make sure you have installed all the <a href="https://hyperledger-fabric.readthedocs.io/en/latest/prereqs.html">prerequisites</a></p><blockquote>Quick Note: Refer my Golang artical to set golang environment 👇</blockquote><p><a href="https://medium.com/@mohitrakhade20/install-golang-setting-up-its-path-and-env-variable-cafae8c9f54">Install Golang &amp; Setting up its path ( and Env Variable)</a></p><p>To first install the fabric-sample run this command to install :</p><pre>curl -sSL https://bit.ly/2ysbOFE | bash -s --2.2.0 1.4.9</pre><p>Fabric v2.3.0 is released but we will go with v2.2.0 ( as it is stable) and 1.4.9 is fabric CA version</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/894/1*XNIIBabiSsY34ieNSWRykQ.png" /></figure><p>This curl script will clone fabric-samples repo and pull Hyperledger Fabric binaries.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ylPyfyOxOoeZ7oo4snQZYQ.png" /><figcaption>pulling binary images</figcaption></figure><p>It will only pull the images that did not exist and will use prev images ( if you have used fabric before )</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bSMCGU5z-w1Sv5aaZL1Ofg.png" /></figure><p>If script successfully run then it will show all the images that you pulled, and will look like this —</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DtiiCMVORVgK4ZRbHt4IBQ.png" /></figure><p>Now, navigate to test-network to check its properly installed or not and we will do some operation ( init, invoke ) on test-network.</p><pre>cd fabric-samples/test-network</pre><p>To start nice &amp; fresh, run this command to tear down artifacts, crypto material, containers and chaincode images from previous runs to avoid unwanted error.</p><pre>./network.sh down</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/988/1*wBJJxTSk5ipcj6ynJtasGg.png" /></figure><p>Now we are ready to bring our network up by running—</p><pre>./network.sh up</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EbI3dJlUs-RCA3lIWEUofg.png" /></figure><p>test-networks has two members i.e. Org1 &amp; Org2. Each Org has two peers and One Orderer maintain the ordering service. We will able to see two peers and one orderer if we run —</p><pre>docker ps -a</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_4gBj2emLS9LTCRFLAWJhw.png" /></figure><p>Now we will create channel between Org1 and Org2, peer will also join the same channel ( default channel name : mychannel ), if we run —</p><pre>./network.sh createChannel</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/864/1*tpQ4wCFdlHvDt16hRsGp5w.png" /></figure><p>You will find follwing message, if it’s successful</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Modf1IG9zEfIQiRcNDck3Q.png" /></figure><p>Lets deploy our chaincode, the script will install the chaincode dependencies if you are deploying it for first time —</p><pre>./network.sh deployCC</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/790/1*FJaVGLFpIds__z8bA78fLg.png" /></figure><p>🐞 It will fail if you do not set your GOROOT path and will say somthing like this —</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oml6G1NFqeMZ6IONOvnt0A.png" /><figcaption>ERR: GOROOT</figcaption></figure><p>Lets resolve this my setting GOROOT path ( do this only if you faced above ERR )</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/942/1*rZrnbSHLgNtqf-uKaGeZvg.png" /><figcaption>setting GOROOT path</figcaption></figure><p>Refer this, If you still facing errors 💁</p><p><a href="https://hyperledger-fabric.readthedocs.io/en/release-2.2/test_network.html#troubleshooting">Using the Fabric test network - hyperledger-fabricdocs master documentation</a></p><pre>export PATH=${PWD}/../bin:$PATH</pre><p>&amp;</p><pre>export FABRIC_CFG_PATH=$PWD/../config/</pre><p>To initialize the ledger run in your terminal—</p><pre>peer chaincode invoke -o localhost:7050 --ordererTLSHostnameOverride orderer.example.com --tls --cafile ${PWD}/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem -C mychannel -n basic --peerAddresses localhost:7051 --tlsRootCertFiles ${PWD}/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt --peerAddresses localhost:9051 --tlsRootCertFiles ${PWD}/organizations/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt -c &#39;{&quot;function&quot;:&quot;InitLedger&quot;,&quot;Args&quot;:[]}&#39;</pre><p>result will look like this, if command is successful —</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2OgUY3_6oSZw0J7uD9wyHQ.png" /></figure><p>List the ledger by running this query —</p><pre>peer chaincode query -C mychannel -n basic -c &#39;{&quot;Args&quot;:[&quot;GetAllAssets&quot;]}&#39;</pre><p>if successful, output will look like this —</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U4j6sY9DAmLH7H-WIH-EQQ.png" /></figure><p>Command to change the owner by invoking asset-transfer chaincode —</p><pre>peer chaincode invoke -o localhost:7050 --ordererTLSHostnameOverride orderer.example.com --tls --cafile ${PWD}/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem -C mychannel -n basic --peerAddresses localhost:7051 --tlsRootCertFiles ${PWD}/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt --peerAddresses localhost:9051 --tlsRootCertFiles ${PWD}/organizations/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt -c &#39;{&quot;function&quot;:&quot;TransferAsset&quot;,&quot;Args&quot;:[&quot;asset6&quot;,&quot;Christopher&quot;]}&#39;<br></pre><p>respones if its successful—</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7B5o-fXCxS27TFs2T4gUMA.png" /></figure><p>query the asset-transfer (basic) chaincode running on peer0.org2.example.com</p><pre>peer chaincode query -C mychannel -n basic -c &#39;{&quot;Args&quot;:[&quot;ReadAsset&quot;,&quot;asset6&quot;]}&#39;</pre><p>Result showing asset6 transferred to Chirstoper —</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R8AGg7GXbTyDWo_EOvSZ_Q.png" /></figure><p>If you made it to the end, then you have installed HF, run test-network, and also perform some operation on chaincode.</p><p>Now to tear down the test network, run —</p><pre>./network.sh down</pre><p>Congratulations 🤜🤛 you installed the fabric-samples and tested first network</p><p>Thank You for reading 🍃</p><h4>Also, Read</h4><ul><li>The Best <a href="https://medium.com/coinmonks/crypto-trading-bot-c2ffce8acb2a">Crypto Trading Bot</a></li><li><a href="https://medium.com/coinmonks/deribit-review-options-fees-apis-and-testnet-2ca16c4bbdb2">Deribit Review</a> | Options, Fees, APIs and Testnet</li><li><a href="https://medium.com/coinmonks/ftx-crypto-exchange-review-53664ac1198f">FTX Crypto Exchange Review</a></li><li><a href="https://medium.com/coinmonks/bybit-exchange-review-dbd570019b71">Bybit Exchange Review</a></li><li>The Best Bitcoin <a href="https://medium.com/coinmonks/the-best-cryptocurrency-hardware-wallets-of-2020-e28b1c124069?source=friends_link&amp;sk=324dd9ff8556ab578d71e7ad7658ad7c">Hardware wallet</a></li><li><a href="https://medium.com/coinmonks/top-10-crypto-copy-trading-platforms-for-beginners-d0c37c7d698c">Crypto Copy Trading Platforms</a></li><li>The Best <a href="https://medium.com/coinmonks/best-crypto-tax-tool-for-my-money-72d4b430816b">Crypto Tax Software</a></li><li><a href="https://medium.com/coinmonks/the-best-crypto-trading-platforms-in-2020-the-definitive-guide-updated-c72f8b874555">Best Crypto Trading Platforms</a></li><li>Best <a href="https://medium.com/coinmonks/top-5-crypto-lending-platforms-in-2020-that-you-need-to-know-a1b675cec3fa">Crypto Lending Platforms</a></li><li><a href="https://blog.coincodecap.com/ledger-nano-s-vs-trezor-one-ledger-nano-x-trezor-t">Ledger Nano S vs Trezor one vs Trezor T vs Ledger Nano X</a></li><li><a href="https://medium.com/coinmonks/blockfi-vs-celsius-vs-hodlnaut-8a1cc8c26630">BlockFi vs Celsius</a> vs Hodlnaut</li><li><a href="https://medium.com/coinmonks/bitsgap-review-a-crypto-trading-bot-that-makes-easy-money-a5d88a336df2">Bitsgap review</a> — A Crypto Trading Bot That Makes Easy Money</li><li><a href="https://medium.com/coinmonks/quadency-review-a-crypto-trading-automation-platform-3068eaa374e1">Quadency Review</a>- A Crypto Trading Bot Made For Professionals</li><li><a href="https://medium.com/coinmonks/primexbt-review-88e0815be858">PrimeXBT Review</a> | Leverage Trading, Fee and Covesting</li><li><a href="https://medium.com/coinmonks/haasonline-review-d8d1a3400419">HaasOnline Review</a> and Get a 10% discount</li><li><a href="https://medium.com/coinmonks/ellipal-titan-review-85e9071dd029">Ellipal Titan Review</a></li><li><a href="https://blog.coincodecap.com/secux-stone-hardware-wallet-review">SecuX Stone Review</a></li><li><a href="https://medium.com/coinmonks/blockfi-review-53096053c097">BlockFi Review</a> | Earn up to 8.6% interests on your Crypto</li><li><a href="https://medium.com/coinmonks/best-crypto-apis-for-developers-5efe3a597a9f">Best Crypto APIs</a> for Developers</li><li><a href="https://bitquery.io/blog/best-blockchain-analysis-tools-and-software">Best Blockchain Analysis Tools</a></li><li><a href="https://medium.com/coinmonks/crypto-arbitrage-guide-how-to-make-money-as-a-beginner-62bfe5c868f6">Crypto arbitrage</a> guide: How to make money as a beginner</li><li>Top <a href="https://blog.coincodecap.com/bitcoin-node-solutions">Bitcoin Node</a> Providers</li><li>Best <a href="https://medium.com/coinmonks/what-are-the-best-charting-platforms-for-cryptocurrency-trading-85aade584d80">Crypto Charting Tool</a></li><li>What are the <a href="https://medium.com/coinmonks/what-are-the-best-books-to-learn-bitcoin-409aeb9aff4b">best books to learn about Bitcoin</a>?</li></ul><blockquote><a href="https://medium.com/coinmonks/newsletters/coinmonks">Get Best Software Deals Directly In Your Inbox</a></blockquote><figure><a href="https://medium.com/coinmonks/newsletters/coinmonks"><img alt="" src="https://cdn-images-1.medium.com/max/584/1*BoDnKUyK8p4hitHAJZ5Pdw.png" /></a></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=20ef2782d64a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/coinmonks/install-hyperledger-fabric-v2-2-run-test-network-20ef2782d64a">Install Hyperledger Fabric V2.2 &amp; Run Test Network 🚀</a> was originally published in <a href="https://medium.com/coinmonks">Coinmonks</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Install Golang & Setting up its path ( and Env Variable)]]></title>
            <link>https://devmohit.medium.com/install-golang-setting-up-its-path-and-env-variable-cafae8c9f54?source=rss-b49250cdbd81------2</link>
            <guid isPermaLink="false">https://medium.com/p/cafae8c9f54</guid>
            <category><![CDATA[install-go]]></category>
            <category><![CDATA[installation]]></category>
            <category><![CDATA[ubuntu]]></category>
            <category><![CDATA[hyperledger-fabric]]></category>
            <category><![CDATA[go]]></category>
            <dc:creator><![CDATA[Mohit Rakhade]]></dc:creator>
            <pubDate>Fri, 13 Nov 2020 05:39:08 GMT</pubDate>
            <atom:updated>2020-11-13T06:05:07.956Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6UkTReZOkzUvY5avSEOnIg.jpeg" /></figure><p>While running the Hyperledger Fabric network on <strong>Ubuntu 20.04</strong>, I faced lots of issue while deploying chaincode due to the older version of golang-go. In this article I discribed step-by-step how to install new version of golang and set its path and env variable.</p><h3>1. Clean-up everything</h3><p>If you have have some older versions of Go. Then its necessary to delete that version before installing the new one. We can’t upgrade the version directly.</p><p>Run this in your terminal</p><h4>To remove go-lang-packages</h4><pre>sudo apt-get remove golang-go</pre><h4>To remove all golang dependencies</h4><pre>sudo apt-get remove --auto-remove golang-go</pre><h4>Uninstall/remove ( existing ) Golang-go package</h4><pre>sudo rm -rvf /usr/local/go</pre><h3>2. Install (new) Golang-go</h3><p>Download golang binary release to your machine by running this command in your terminal or you can also download this from <a href="https://golang.org/dl/">Golang Website</a></p><pre>wget <a href="https://dl.google.com/go/go1.14.linux-amd64.tar.gz">https://dl.google.com/go/</a>go<strong>1.15.5</strong>.linux-amd64.tar.gz</pre><p>Note : change the<strong> bold part </strong>according to the version you downloaded (or want)</p><p>Extract the archive file by running</p><pre>sudo tar -xvf go<strong>1.15.5</strong>.linux-amd64.tar.gz</pre><p>Move file to proper location</p><pre>sudo mv go /usr/local</pre><p>Now golang is installed in our system, its time to set the path so that we can use golang without entering whole path.</p><h3>3. Setting up the path &amp; env variable</h3><p>From the Home directory, open <strong>.profile</strong> file by running</p><pre>vim ~/.profile</pre><p>added following lines to that file</p><pre>export GOROOT=/usr/local/go<br>export GOPATH=$HOME/go<br>export PATH=$GOPATH/bin:$GOROOT/bin:$PATH</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/990/1*a1qKdY73m13FK8EIK5xtUw.png" /></figure><h3>Kuddos to you xD</h3><p>Golang-go is now installed and path is also configured in your system. Let’s check it ones, is it properly installed or not by running —</p><pre>go version</pre><p>To check all Env variables</p><pre>go env</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YCGCsepFmys2wh1vmwH9CA.png" /></figure><h4>Thank You for reading :)</h4><p>Mohit Rakhade</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cafae8c9f54" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Patent | Patent Troll | Using Blockchain for Patenting]]></title>
            <link>https://devmohit.medium.com/patent-patent-troll-using-blockchain-for-patenting-5b277f44a105?source=rss-b49250cdbd81------2</link>
            <guid isPermaLink="false">https://medium.com/p/5b277f44a105</guid>
            <category><![CDATA[patents]]></category>
            <category><![CDATA[trolls]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[blockchian]]></category>
            <category><![CDATA[silicon-valley]]></category>
            <dc:creator><![CDATA[Mohit Rakhade]]></dc:creator>
            <pubDate>Sun, 28 Jun 2020 00:31:01 GMT</pubDate>
            <atom:updated>2020-06-28T00:31:01.358Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jAP0ReGTg7gT-ld4yDqt_w.jpeg" /><figcaption>patent</figcaption></figure><p>It is a legal form for restricting our intellectual property from making, using, or selling by patent trollers. Startups have limited resources, patent protection blocks larger corporations from copying their innovations, and then putting those startups out of business.</p><p><a href="https://www.imdb.com/title/tt5915160/">&quot;Silicon Valley&quot; The Patent Troll (TV Episode 2017) - IMDb</a></p><p>This episode in series silicon valley where pied piper faced patent troll. A <strong>patent troll</strong> uses patents as legal weapons, instead of actually creating any new products or coming up with new ideas.</p><p>But obtaining patents is <strong>expensive </strong>and can be <strong>speculative</strong>. Software innovation changes fast. A brilliant invention might soon be obsolete. There is a more communal approach. Innovators can share their innovations and replace the time and energy spent filing patent applications with an increased effort at research, and development. The community would contribute to a database of filed patent applications. Anyone can check to see what’s been published in a given field to avoid directing resources on the same subject matter. The US Patent and Trademark Office wait <strong>18 months to publish applications</strong>. Companies could join the community to share applications much sooner. Contributors might lose some strategic advantage, but the overall ecosystem could benefit by not duplicating efforts.</p><blockquote>What if <strong>Satoshi Nakamoto</strong> had filed for and been issued a patent for the basic concept of <strong>Bitcoin</strong>, and thus the <strong>blockchain</strong>? It would be broad enough to encompass pretty much any application in the various blockchain business models, stifling innovation.</blockquote><h3>Using Blockchain for Patenting</h3><p>Using a blockchain for patent pools help streamline licensing, negotiation, and enforcement. Automated review systems become more feasible. High-fidelity tracking of changes is built-in, and it provides a testing bed for non-blockchain industries to move their pools to a blockchain system. But participation is crucial to ensure the success of the blockchain essential patent pool. Voluntary communal coordination can also take place off-blockchain. Individual companies don’t have to share intellectual property, but community members could provide incentives for sharing. Companies could follow policies protecting some of their core intellectual property without being selfish. This approach would start with education. Industry leaders could agree upon a framework of suggested policies to share throughout the industry. Companies could be encouraged to publish open source blocking patents to the community. So blockchain-based technologies, and non-competing businesses wouldn’t be blocked.</p><p>No patent troll could attempt to monopolize the discovery. Voluntary publication already happens to some degree in the blockchain space. GitHub has thousands of blockchain-related repositories. Not every repository holds innovative code, but the sheer volume indicates immense interest in the technology. The community would need to urge companies holding blockchain patents to make them unenforceable or agree to offer royalty-free licenses. This would align with the motivations of companies using patents mainly to defend against patent trolls.</p><h4>Thank you :)</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5b277f44a105" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>