<?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 Moshood Alimi on Medium]]></title>
        <description><![CDATA[Stories by Moshood Alimi on Medium]]></description>
        <link>https://medium.com/@moshood988?source=rss-a5da5ff50810------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ZiJ67Rk716diBjCt52ee6Q.png</url>
            <title>Stories by Moshood Alimi on Medium</title>
            <link>https://medium.com/@moshood988?source=rss-a5da5ff50810------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 02:11:14 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@moshood988/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[“rebirth”]]></title>
            <link>https://medium.com/@moshood988/rebirth-afbe7f18e686?source=rss-a5da5ff50810------2</link>
            <guid isPermaLink="false">https://medium.com/p/afbe7f18e686</guid>
            <category><![CDATA[short-story]]></category>
            <category><![CDATA[fiction]]></category>
            <category><![CDATA[science-fiction]]></category>
            <dc:creator><![CDATA[Moshood Alimi]]></dc:creator>
            <pubDate>Fri, 28 Feb 2025 08:26:27 GMT</pubDate>
            <atom:updated>2025-02-28T08:26:27.882Z</atom:updated>
            <content:encoded><![CDATA[<p>In a not so distant world, rich people don’t die; the body dies, but the mind is uploaded into another synthetic body. The “rebirth,” as they call it, is crazy expensive and can only be afforded by the top 1%. Recently, the government made it part of the “benefits” for soldiers who die during battles, as long as you sign to fight for the military for 100 years. Every time you die, your “mind” gets transferred into another body. This is where the problem started. People start realizing that even though they remember everything before they die, they feel nothing. Sergeant Mummen was one of the first soldiers to go online about this. He remembers his kid and all the memories they made together, but he feels nothing towards the kid.</p><p>The military brass called it “emotional recalibration,” a necessary side effect of the transfer process. They claimed it would fade with time, but it never did.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*GZMdKHa3eddM11ka" /><figcaption>Photo by <a href="https://unsplash.com/@mrsunburnt?utm_source=medium&amp;utm_medium=referral">Xu Haiwei</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Mummen’s post went viral despite the military’s attempts to scrub it from the net. Soon, others came forward. Thousands of reborn soldiers describing the same emotional void. They remembered joy, grief, love — but couldn’t feel them anymore. Just hollow echoes where feelings used to be.</p><p>The rich had kept this quiet. When you own the media conglomerates, you control the narrative. Their PR firms spun tales of immortal bliss, while behind mansion walls, the wealthy elite medicated themselves into oblivion, trying to feel anything.</p><p>The protests began small, with families of reborn soldiers demanding answers. Then civilians joined, those who’d lost loved ones to “rebirth” only to return empty shells wearing familiar faces. The movement grew, fueled by leaked documents revealing that the military knew exactly what happened during the transfer — the emotional centers couldn’t be mapped properly, leaving only cognitive memories intact.</p><p>Mummen became the reluctant face of the resistance. He couldn’t feel passion for the cause, but his logic was unassailable: “They’ve created a caste of immortal slaves. We fight and die endlessly for a freedom we can never truly experience.”</p><p>The wealthy countered with their own movement, “Longevity Rights.” They argued that emotions were overrated compared to eternal life. Some soldiers even supported this view — it was better to exist without feeling than not exist at all.</p><p>Then came the whispers about the “underground transfers” — black market procedures claiming to preserve emotional capacity. Desperate families pooled resources to send their reborn loved ones for the risky procedure. Most died permanently. The few who returned felt “something” — not quite what they’d had before, but a faint whisper of emotion.</p><p>Mummen stood at the precipice of decision. Risk everything for the chance to love his child again, or remain in the safe, emotionless void of his government-issued immortality?</p><p>He stared at the photo of his son, trying to conjure the feeling that should accompany the memory of that smile.</p><p>Nothing came.</p><p>But something else stirred within him — not emotion, but purpose. Perhaps this emptiness was itself a kind of gift. Without fear or attachment clouding his judgment, he could fight a war the emotional could not. Against those who would turn humanity into empty vessels for their endless wars.</p><p>Mummen put down the photo, looks at his kid, looks at his gun…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=afbe7f18e686" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Obsession with Football Style: Winning vs. Philosophy]]></title>
            <link>https://medium.com/@moshood988/the-obsession-with-football-style-winning-vs-philosophy-6578691e40dd?source=rss-a5da5ff50810------2</link>
            <guid isPermaLink="false">https://medium.com/p/6578691e40dd</guid>
            <category><![CDATA[coaching]]></category>
            <category><![CDATA[premier-league]]></category>
            <category><![CDATA[soccer]]></category>
            <category><![CDATA[pep-guardiola]]></category>
            <category><![CDATA[football]]></category>
            <dc:creator><![CDATA[Moshood Alimi]]></dc:creator>
            <pubDate>Thu, 05 Dec 2024 08:37:05 GMT</pubDate>
            <atom:updated>2024-12-05T08:37:05.572Z</atom:updated>
            <content:encoded><![CDATA[<p>I have a bone to pick. I don’t understand this growing obsession with playing a certain style of football, even when it’s crystal clear that a club isn’t set up for it — and isn’t even in the process of setting up that style.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*fo9fGN6YiN1qpKIt" /><figcaption>Photo by <a href="https://unsplash.com/@acrehuet98?utm_source=medium&amp;utm_medium=referral">Adrià Crehuet Cano</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>We’re living in an era where coaches prioritize style over winning. It seems that coaches in smaller teams care more about using their current job as an audition for the next bigger opportunity, instead of trying to squeeze every ounce of potential from the players they have. Consider this: Vincent Kompany can land a Bayern Munich job after relegating Burnley. Meanwhile, Sean Dyche is viewed as a C-level manager — despite keeping Everton up with minimal signings and an 8-point deduction!!!</p><p>I know this is an oversimplified example. I absolutely adore Kompany and wish him the best at Bayern Munich. However, this is more about how someone like Sean Dyche is perceived simply because of what he prioritizes.</p><p>To understand this phenomenon, I believe we need to categorize managers into two very broad groups:</p><ol><li><strong>Style-First Managers</strong>: Those with a predetermined tactical philosophy where the team is built to fit their vision. Think Pep Guardiola, who meticulously constructs teams around a specific playing style.</li><li><strong>Player-Adaptive Managers</strong>: Those who build the team’s style around the players’ existing strengths and qualities. Managers like Sir Alex Ferguson and Carlo Ancelotti prioritize player quality over a rigid tactical system.</li></ol><p>From where I’m sitting, modern football seems to disproportionately romanticize the first group.</p><p>The mind-boggling reality is that only a few clubs can genuinely pull off this style-first approach. We’re talking about:</p><ul><li>Mega-rich clubs with enormous resources (Manchester City, Barcelona, Bayern Munich)</li><li>Exceptional outliers like Brighton, who’ve mastered recruiting from smaller nations and essentially operate as a selling club</li></ul><p>Recruiting the “right” players — those with both the perfect profile and quality — requires:</p><ul><li>Substantial financial investment</li><li>Incredibly shrewd executives who truly understand recruitment</li></ul><p>This is precisely where most teams stumble.</p><p><strong>The Critical Message</strong>: Smaller teams attempting to mimic this approach often fail spectacularly. Recruitment is challenging, and sometimes you must adapt your system to suit your players’ strengths. The bottom line? <strong>Winning should always be the most important objective.</strong></p><p>Let me be clear: I’m not trying to make this an attacking style vs. defensive style discourse. Take Carlo Ancelotti, for example — an attacking manager whose style and shape are determined by the type of players he has at his disposal.</p><p>I’m not here to sell you on what the “best” style is. There are plenty of examples across recent history where both approaches have found success. The point I’m attempting to make is that football is far kinder to style-first managers than to those who try to adapt. Managers who adapt are often looked down upon and dismissed as being bailed out by individual brilliance.</p><p>For clubs without bottomless pockets or generational talent, flexibility isn’t a weakness — it’s survival. Managers finding ways to get the best out of their players should be celebrated, not criticized or dismissed as relying merely on individual brilliance. These are the true tacticians who understand that football is about maximizing potential, not forcing a one-size-fits-all approach.</p><p>In the relentless pursuit of a beautiful, idealized football philosophy, we’re losing sight of the game’s fundamental purpose: winning. Not every team can be 2010 Barcelona, and that’s okay. Football isn’t about rigidity and adherence to a tactical blueprint — it’s about maximizing the potential of the players you have, finding creative solutions, and ultimately, putting points on the board.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6578691e40dd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Agents?]]></title>
            <link>https://medium.com/@moshood988/why-agents-c157fdc48f55?source=rss-a5da5ff50810------2</link>
            <guid isPermaLink="false">https://medium.com/p/c157fdc48f55</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[openai]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[agents]]></category>
            <dc:creator><![CDATA[Moshood Alimi]]></dc:creator>
            <pubDate>Mon, 06 May 2024 09:04:34 GMT</pubDate>
            <atom:updated>2024-05-06T09:04:34.625Z</atom:updated>
            <content:encoded><![CDATA[<p>“Why agents? Or, more importantly, what are agents?</p><blockquote>According to Wikipedia, in intelligence and artificial intelligence, an intelligent agent (IA) is an entity that acts in an intelligent manner. It perceives its environment, takes actions autonomously to achieve goals, and may improve its performance through learning or acquiring knowledge.</blockquote><figure><img alt="AI Robot" src="https://cdn-images-1.medium.com/max/1024/0*qZYZMSdGupLG1kJL" /><figcaption>Photo by <a href="https://unsplash.com/@mrsunburnt?utm_source=medium&amp;utm_medium=referral">Xu Haiwei</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>So, for something to be called an AI agent, it must have the capacity to perceive its environment and take action to achieve its goals. I believe it’s important to clarify this, especially for newcomers. For something to be classified as an agent, it must have a goal and must be able to, of its own accord, pursue that goal, ideally without supervision.</p><p>To understand agents, we must first talk about tools. According to <a href="https://en.wikipedia.org/wiki/Holden_Karnofsky">Holden Karnofsky</a>, there’s a distinction between an AI functioning as a tool versus one functioning as an agent. In his words, a tool AI would:</p><blockquote>1. Calculate which action A would maximize parameter P, based on existing dataset D.<br>2. Summarize this calculation in a user-friendly manner, including what Action A is, what likely intermediate outcomes it would cause, what other actions would result in high values of P, etc.</blockquote><p>In contrast, an agent AI would:</p><blockquote>1. Calculate which action, A, would maximize parameter P, based on existing dataset D.<br>2. Execute Action A.</blockquote><p>If you search online, you will see a lot of examples of agents that in reality are just tools, or even at most tools that mimic the behavior of agents. So, in order not to fall into the same trap I did, ask yourself, can this AI pursue a goal and take action in pursuit of the said goal?</p><p>A good example of an AI agent is AI chess, whose goal is to beat you. As a human, you have no input in its action between when the game starts and when it ends. Another example is a fully autonomous( we use the term autonomous to refer to an agent whose decision-making relies to a larger extent on its own perception than on prior knowledge given to it at design time) self-driving car. That is a true example of an AI agent in its true form.</p><p>In the end, it’s important to be clear about what qualifies as a true AI agent versus merely a tool that mimics agency. Many systems marketed as “AI agents” are just sophisticated tools that calculate recommendations without autonomously executing them. As AI becomes more prevalent, we must be vigilant in identifying systems with robust, independent agency to pursue goals in the real world. Loosely labeling tools as “agents” muddies the waters and sets incorrect expectations about an AI’s capabilities. Exercising precision in our language around agency will be critical for fostering trust and a realistic understanding of AI as it continues evolving.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c157fdc48f55" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Receiving Documents from WhatsApp Cloud API Webhook: Downloading and Writing to Local File]]></title>
            <link>https://medium.com/@moshood988/receiving-documents-from-whatsapp-cloud-api-webhook-downloading-and-writing-to-local-file-3682eafd64d4?source=rss-a5da5ff50810------2</link>
            <guid isPermaLink="false">https://medium.com/p/3682eafd64d4</guid>
            <category><![CDATA[whatsapp]]></category>
            <category><![CDATA[webhooks]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Moshood Alimi]]></dc:creator>
            <pubDate>Mon, 15 Apr 2024 12:42:41 GMT</pubDate>
            <atom:updated>2024-04-15T12:42:41.483Z</atom:updated>
            <content:encoded><![CDATA[<p>The WhatsApp Cloud API allows you to receive text and documents sent by users through a webhook. In this tutorial, we’ll walk through the process of setting up a webhook endpoint, handling incoming document messages, and downloading the received documents to a local file using code examples.</p><figure><img alt="Hand holding a black phone with whatsapp logo on the screen" src="https://cdn-images-1.medium.com/max/1024/0*DF0KfLr4ETj_LNMF" /><figcaption>Photo by <a href="https://unsplash.com/@kommumikation?utm_source=medium&amp;utm_medium=referral">Mika Baumeister</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Prerequisites</p><p>Before we dive into the code, make sure you have the following prerequisites set up:</p><p>1. A WhatsApp Cloud API account and an access token.<br>2. A server or hosting environment capable of running Node.js applications.<br>3. Basic knowledge of JavaScript and Node.js.</p><p>Step 1: Set up the Webhook Endpoint</p><p>First, let’s create a simple Express.js server with a `/webhook` endpoint to receive incoming messages from WhatsApp:</p><pre><br>const express = require(&#39;express&#39;);<br>const app = express();<br>const port = 3000;<br>app.use(express.json());<br>app.post(&#39;/webhook&#39;, async (req, res) =&gt; {<br> // Handle the webhook request here<br> // …<br>res.sendStatus(200);<br>});<br>app.listen(port, () =&gt; {<br> console.log(`Server running on port ${port}`);<br>});</pre><p>Step 2: Handle the Webhook Request</p><p>Next, we’ll add code to handle the incoming webhook request and check if it contains a document message:</p><pre>app.post(&#39;/webhook&#39;, async (req, res) =&gt; {<br> if (req.body.object &amp;&amp; req.body.entry?.[0]?.changes?.[0]?.value?.messages?.[0]) {<br> const body = req.body.entry[0].changes[0].value;<br>if (body.messages[0].type === &#39;document&#39;) {<br> console.log(&#39;Received document!!&#39;);<br> const MEDIA_ID = body.messages[0].document.id;<br> const fileName = body.messages[0].document.filename.replace(/ /g, &#39;_&#39;);<br>// Process the document here<br> // …<br> } else {<br> console.log(&#39;Unknown message type. Nothing to do.&#39;);<br> }<br> } else {<br> res.sendStatus(404);<br> }<br>res.sendStatus(200);<br>});</pre><p>Step 3: Fetch the Document</p><p>Now, let’s create a function to fetch the document’s URL from the WhatsApp API using the document ID:</p><pre>const axios = require(&#39;axios&#39;);<br>const token = &#39;YOUR_ACCESS_TOKEN&#39;;<br>async function fetchMediaData(MEDIA_ID) {<br> try {<br> const response = await axios.get(`https://graph.facebook.com/v19.0/${MEDIA_ID}/`, {<br> headers: {<br>   Authorization: `Bearer ${token}`,<br>  },<br> });<br> return response.data;<br> } catch (error) {<br>   console.error(error);<br> }<br>}</pre><p>Step 4: Download the Document</p><p>Next, we’ll create a function to download the document from the URL and save it locally:</p><pre>const fs = require(&#39;fs&#39;);<br>async function getFile(URL, FILE_NAME) {<br> try {<br> const response = await axios.get(URL, {<br> headers: {<br>   Authorization: `Bearer ${token}`,<br>  },<br>   responseType: &#39;stream&#39;,<br> });<br>const writer = fs.createWriteStream(FILE_NAME);<br> response.data.pipe(writer);<br>await new Promise((resolve, reject) =&gt; {<br> writer.on(&#39;finish&#39;, () =&gt; resolve(FILE_NAME));<br> writer.on(&#39;error&#39;, reject);<br> });<br>console.log(`Downloaded file: ${FILE_NAME}`);<br>   return FILE_NAME;<br> } catch (error) {<br>   console.error(error);<br>   throw error;<br> }<br>}</pre><p>Step 5: Putting It All Together</p><p>Finally, let’s update the `/webhook` endpoint to handle the document downloading and writing to a local file:</p><pre>app.post(&#39;/webhook&#39;, async (req, res) =&gt; {<br> if (req.body.object &amp;&amp; req.body.entry?.[0]?.changes?.[0]?.value?.messages?.[0]) {<br> const body = req.body.entry[0].changes[0].value;<br>if (body.messages[0].type === &#39;document&#39;) {<br> console.log(&#39;Received document!!&#39;);<br> const MEDIA_ID = body.messages[0].document.id;<br> const fileName = body.messages[0].document.filename.replace(/ /g, &#39;_&#39;);<br>const document = await fetchMediaData(MEDIA_ID);<br> const filePath = await getFile(document.url, fileName);<br>console.log(`Document downloaded: ${filePath}`);<br>// You can perform further operations on the downloaded file if needed<br> } else {<br> console.log(&#39;Unknown message type. Nothing to do.&#39;);<br> }<br> } else {<br> res.sendStatus(404);<br> }<br>res.sendStatus(200);<br>});</pre><p>In this example, we’re fetching the document’s URL from the WhatsApp API, downloading the file using the `getFile` function, and writing it to a local file with the provided filename. The downloaded file path is logged to the console.</p><p>Good luck</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3682eafd64d4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Diving into Smart Contracts: A Simple Donation System]]></title>
            <link>https://coinsbench.com/diving-into-smart-contracts-a-simple-donation-system-63aa770aec6d?source=rss-a5da5ff50810------2</link>
            <guid isPermaLink="false">https://medium.com/p/63aa770aec6d</guid>
            <category><![CDATA[solidity]]></category>
            <category><![CDATA[smart-contracts]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[sepolia-testnet]]></category>
            <dc:creator><![CDATA[Moshood Alimi]]></dc:creator>
            <pubDate>Mon, 18 Sep 2023 08:27:16 GMT</pubDate>
            <atom:updated>2023-09-23T09:34:37.269Z</atom:updated>
            <content:encoded><![CDATA[<p>The emergence of blockchain technology and decentralized applications has given birth to a plethora of new concepts, including smart contracts. These digital agreements, facilitated by cryptographic methods, have made many traditional operations more efficient and trustless. Today, let’s explore a beginner-friendly donation smart contract, designed to simplify and secure the process of online donations using Ethereum’s cryptocurrency, ETH.</p><h4>Understanding the “Donate” Smart Contract</h4><p>The “Donate” smart contract is a project created by a budding blockchain enthusiast who is on a quest to learn about smart contracts. This contract allows users to make coin donations, and it serves as an excellent starting point for anyone looking to delve into the world of blockchain development.</p><figure><img alt="coins" src="https://cdn-images-1.medium.com/max/1024/0*S2u6o_gQOjUwwbt3" /><figcaption>Photo by <a href="https://unsplash.com/@joshappel?utm_source=medium&amp;utm_medium=referral">Josh Appel</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4>Contract Overview</h4><p>The contract begins with some essential declarations:</p><pre><br>// SPDX-License-Identifier: MIT<br>pragma solidity ^0.8.8;<br>error Donate__NotEnoughETHDonated();<br>error Donate__NotOwner();<br>contract Donate {<br>uint256 private immutable i_minimumDonation;<br>address payable[] private s_donors;<br>address immutable i_owner;<br>uint256 private s_totalAmountDonated;<br>…</pre><p>Here, we define the contract’s minimum donation amount, an array to store donors’ addresses, the contract owner’s address, and the total amount donated.</p><p>Constructor Function</p><p>The constructor function sets the owner and the minimum donation amount when the contract is deployed:</p><pre><br>constructor(uint256 minimumDonation) {<br>i_owner = msg.sender;<br>i_minimumDonation = minimumDonation;<br>}</pre><p>Donation and Withdrawal Functions</p><p>The heart of this smart contract lies in the “donate” and “withdraw” functions. Let’s take a closer look:</p><p>Donation Function: Users can donate coins by calling the “donate” function and sending Ether along with it. If the sent amount is less than the minimum required donation, the contract throws an error.</p><pre><br>function donate() public payable {<br>if (msg.value &lt; i_minimumDonation) {<br>revert Donate__NotEnoughETHDonated();<br>}<br>s_donors.push(payable(msg.sender));<br>s_totalAmountDonated = address(this).balance;<br>}<br></pre><p>Withdrawal Function: Only the contract owner can trigger the “withdraw” function, which transfers the entire contract balance to their address.</p><pre><br>function withdraw() public onlyOwner {<br>(bool callSuccess, ) = payable(msg.sender).call{<br>value: address(this).balance<br>}(&quot;&quot;);<br>require(callSuccess, &quot;Call failed&quot;);<br>}</pre><p><strong>Conclusion:</strong></p><p>This donation smart contract is an excellent demonstration of the power of blockchain technology and the utility of smart contracts. While it’s a basic example, it serves as a solid foundation for more intricate systems. As always, before deploying any contract to a live environment, it’s imperative to ensure it undergoes rigorous testing and possibly professional auditing to ensure its security and functionality. You can also check out the full contract in this <a href="https://github.com/cyberkillua/Donate-smartcontract">repo</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=63aa770aec6d" width="1" height="1" alt=""><hr><p><a href="https://coinsbench.com/diving-into-smart-contracts-a-simple-donation-system-63aa770aec6d">Diving into Smart Contracts: A Simple Donation System</a> was originally published in <a href="https://coinsbench.com/">CoinsBench</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Smart Contract Connectivity Problem]]></title>
            <link>https://medium.com/@moshood988/the-smart-contract-connectivity-problem-22a764615fb2?source=rss-a5da5ff50810------2</link>
            <guid isPermaLink="false">https://medium.com/p/22a764615fb2</guid>
            <category><![CDATA[solidity]]></category>
            <category><![CDATA[chain-link]]></category>
            <category><![CDATA[smart-contracts]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <dc:creator><![CDATA[Moshood Alimi]]></dc:creator>
            <pubDate>Mon, 07 Aug 2023 08:13:17 GMT</pubDate>
            <atom:updated>2023-08-07T08:13:17.763Z</atom:updated>
            <content:encoded><![CDATA[<h3>What are Smart Contracts</h3><p>Smart Contracts are automated programs that enforce the terms and conditions of a contract or agreement. Their purpose is to automatically execute, control or document events and actions according to the terms of a contract or an agreement.</p><figure><img alt="A hand playing with the rubik’s cube" src="https://cdn-images-1.medium.com/max/1024/0*nWgDPHtlVdixlD79" /><figcaption>Photo by <a href="https://unsplash.com/@olav_ahrens?utm_source=medium&amp;utm_medium=referral">Olav Ahrens Røtne</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>The Problem With Smart Contracts</h3><p>The Smart Contract Connectivity Problem arises due to the isolation of smart contracts within their respective node networks. Smart contracts lack direct access to external data feeds, such as the Internet, APIs, or other off-chain systems. As a result, they are confined to the limited data available within the blockchain network itself. This limitation severely restricts their ability to gather real-world information and make informed decisions based on current events or changing conditions.</p><h3>Possible Solutions</h3><p>To overcome the Smart Contract Connectivity Problem, several potential solutions have been proposed:</p><ol><li>Oracles: Oracles act as intermediaries that facilitate data exchange between the outside world and smart contracts. They serve as trusted sources of information and supply real-world data to smart contracts. By leveraging oracles, smart contracts can make informed decisions based on real-time information from various sources.</li><li>Second Layer Solutions: These are off-chain protocols built on top of the blockchain that provides additional functionalities to smart contracts. These solutions can interact with external data feeds and process complex computations, allowing smart contracts to access a more comprehensive range of data.</li><li>External Data Integration: Some blockchain networks are exploring ways to integrate external data directly into their protocols. This approach involves establishing secure connections with external systems to fetch relevant data, enabling smart contracts to access a broader pool of information.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=22a764615fb2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why do I get charged a Transaction fee and a Gas fee?]]></title>
            <link>https://medium.com/@moshood988/why-do-i-get-charged-a-transaction-fee-and-a-gas-fee-67dd89916410?source=rss-a5da5ff50810------2</link>
            <guid isPermaLink="false">https://medium.com/p/67dd89916410</guid>
            <category><![CDATA[solana-network]]></category>
            <category><![CDATA[nft]]></category>
            <category><![CDATA[ethereum-gas-fee]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <dc:creator><![CDATA[Moshood Alimi]]></dc:creator>
            <pubDate>Mon, 31 Jul 2023 08:33:34 GMT</pubDate>
            <atom:updated>2023-07-31T08:33:34.554Z</atom:updated>
            <content:encoded><![CDATA[<h3>Transaction fee</h3><p>Transaction fee is a charge a user pays to process transactions on a blockchain network. Look at it as a kind of “service charge” paid to a centralized fintech company like PayPal. But, instead of it being paid to a centralized company, it&#39;s paid out to the miners.</p><p>The transaction fees serve as an incentive for miners to prioritize transactions and include them in the blocks they mine. Higher fees attract more attention from miners, increasing the likelihood of faster transaction confirmation.</p><h3>Gas Fees</h3><p>Gas fees are paid by users in blockchain networks that use smart contracts, like Ethereum, and many layer-1 blockchains like Solana and Polkadot. When you want to do something on these blockchains, like making a transaction or using a smart contract, you have to pay a gas fee. This fee is like a payment to the people who help process and secure the blockchain network (the miners).</p><p>The amount of gas required for a transaction or smart contract execution depends on the complexity of the operation and the demand for computational resources on that specific blockchain network at that moment. Gas prices can fluctuate based on network congestion, with higher demand leading to higher gas fees.</p><p>Before you confirm your transaction, the blockchain will show you an estimated “gas expense.” This is the amount you need to pay for the gas fee. Unlike regular transaction fees, you have to pay gas fees with the specific cryptocurrency of the blockchain you are using.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*HWRYlSOdZ7Wyp3_K" /><figcaption>Photo by <a href="https://unsplash.com/@austindistel?utm_source=medium&amp;utm_medium=referral">Austin Distel</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Transaction Fees Vs Gas Fees</h3><p>Although the two are mainly being paid to the miners, transaction fees are paid to miners to serve as incentives to include transactions in a block and process them. They encourage faster transaction processing and ensure the security and sustainability of the blockchain network. Gas fees however, are paid to Miners to cover the computational resources needed to execute operations within a smart contract. Each operation in a smart contract consumes a certain amount of gas, and users pay gas fees to compensate miners for the computation.</p><p>The transaction fee amount is typically determined by the sender of the transaction. Users can set the transaction fee based on their preference for transaction speed and network congestion.</p><p>Gas fees are determined by the complexity of the smart contract’s operations and the demand for computational resources on the Ethereum network. The more complex the operations, the higher the gas cost. During periods of high network activity, gas fees can increase significantly.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=67dd89916410" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Proof Of Work Vs Proof Of Stake]]></title>
            <link>https://medium.com/@moshood988/proof-of-work-vs-proof-of-stake-fbe4c3c54b41?source=rss-a5da5ff50810------2</link>
            <guid isPermaLink="false">https://medium.com/p/fbe4c3c54b41</guid>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[pow]]></category>
            <category><![CDATA[solidity]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[pos]]></category>
            <dc:creator><![CDATA[Moshood Alimi]]></dc:creator>
            <pubDate>Fri, 21 Jul 2023 20:48:51 GMT</pubDate>
            <atom:updated>2023-07-21T20:48:51.143Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Proof of Work (PoW) and Proof of Stake (PoS)</strong> represent two common consensus mechanisms employed by blockchain that plays a crucial role in helping these networks agree on the state of the blockchain and validate transactions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EjU18ij-baH3z4uO4IXU1A.png" /><figcaption>The Sybil resistance mechanism</figcaption></figure><p>In a <strong>Proof of Work</strong> system participants (known as miners) compete against each other to solve mathematical puzzles. The first miner to find the solution is rewarded with the opportunity to create a block and add it to the blockchain. This process requires an amount of computational power and resources. Consensus is achieved when the majority of power in the network agrees on the validity of a new block. Examples of well-known PoW cryptocurrencies often mentioned include Bitcoin, Litecoin, and Dogecoin.</p><p>On the other hand in <strong>Proof of Stake</strong> validators are selected based on the number of coins they “stake” or lock up as collateral. These validators are responsible, for creating blocks and validating transactions. The selection process is determined by both their stake and random selection. Consensus is reached when most of the network coins agree on the validity of a new block. Others using PoS protocols include Ethereum 2.0, Tezos, Cardano, Solana, and Algorand.</p><h4><strong>PoW vs PoS</strong> (Resources Requirements)</h4><p>PoW uses up so much energy, high energy consumption and computational power are required to solve the puzzles, making it resource-intensive while PoS is more energy-efficient since there is no need for complex calculations, but validators need to have a certain amount of cryptocurrency to participate.</p><h4><strong>PoW vs PoS (</strong>Centralization Risk)</h4><p>PoW tends to lead to the centralization of mining power in the hands of a few large mining pools due to economies of scale while in PoS, centralization can occur based on the distribution of wealth, where the richest participants have more influence over the network.</p><h4><strong>PoW vs PoS (</strong>Environmental Impact)</h4><p>PoW is high energy consumption and it has raised concerns about its environmental impact, especially for large networks like Bitcoin while PoS is considered more environmentally friendly due to its lower energy consumption.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fbe4c3c54b41" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to setup continuous deployment to your Elastic Beanstalk (Javascript/typescript Nodejs app)]]></title>
            <link>https://awstip.com/how-to-setup-continuous-deployment-to-your-elastic-beanstalk-javascript-typescript-nodejs-app-796c7a8c81ad?source=rss-a5da5ff50810------2</link>
            <guid isPermaLink="false">https://medium.com/p/796c7a8c81ad</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[elastic-beanstalk]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[codepipeline]]></category>
            <dc:creator><![CDATA[Moshood Alimi]]></dc:creator>
            <pubDate>Fri, 07 Oct 2022 10:03:58 GMT</pubDate>
            <atom:updated>2022-10-11T10:56:59.590Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/675/1*9Lqlpak-GOAppLgTzKGomQ.png" /></figure><p>Are you tired of zipping your project and uploading it to Elastic Beanstalk every time you make an update to your app? In this tutorial, I will teach you how to set up continuous deployment from your GitHub to your elastic beanstalk instance.</p><h3><strong>CodePipeline</strong></h3><p>This creates a pipeline such that when you make changes to your project, it propagates it to AWS. To access it, click on services on the console, then developer tools, then Codepiplene (services &gt; developer tools &gt; CodePipeline).</p><p>On the dashboard, click Create pipeline.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9HkzTeEveVZ-2EbAWmS3nA.png" /></figure><figure><img alt="pipeline settings" src="https://cdn-images-1.medium.com/max/1024/1*ViHPB7kKoVYwpF_6MBPjLg.png" /></figure><p>After clicking Create pipeline, It takes you to the page above where you input the pipeline name and role name; it usually gives you a role name as soon as you enter your pipeline name; once you are done with this, click the Next button.</p><p><strong>Add Source Stage</strong></p><p>This is where you connect the source code repo to the pipeline, basically connecting where you are storing your project to the deployment pipeline.</p><figure><img alt="Add source stage" src="https://cdn-images-1.medium.com/max/1024/1*KubAdRug9q2XFtwiafEJqg.png" /></figure><p><strong>Add Build Stage</strong></p><p>This stage is why I decided to write this tutorial; every tutorial I saw online said I could simply skip this stage, which is the truth if your app is a javascript app. Still, if, like me, you are trying to deploy a typescript app, you will need to set up the build stage, and it is essential to pick a build provider. I suggest AWS CodeBuild.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sXMVzugtyi43SMBwM0TP4A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Pddh1ZMyzLXXu-A-sFKplw.png" /></figure><p>To set up AWS CodeBuild, you will need to create a project, or choose an existing one. If it is your first time, you must create a project, so click on Create project.</p><figure><img alt="create project" src="https://cdn-images-1.medium.com/max/1024/1*1Jd1X2mrX8M0tnhNQSci8Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2cDMRJtAgObB-n3539yuyQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iY4idwQcKax034tCyct9Sg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IcstPYuq2FD4p-Lpz34KUg.png" /></figure><p>For this to work you will have to add a Buildspec.yml file at the root of your project folder; if you don&#39;t know what a Buildspec.yml file is you can check out this article <a href="https://awstip.com/how-to-write-a-buildspec-yml-file-5fd3ae950564">here</a>.</p><p><strong>Deploy Stage</strong></p><p>This stage is where you connect the app you are trying to deploy to the pipeline, pick your deploy provider from the available options and add the application you are trying to deploy to.</p><figure><img alt="Deploy stage" src="https://cdn-images-1.medium.com/max/1024/1*XnSk15H6emSnBb0_sVMAiw.png" /></figure><p>And that is all. When you click next, you are presented with a page to review everything you have set up so far to double-check and make sure you did not make any mistakes. If you have any questions, please be sure to leave a comment. Thank you.</p><p><strong>Conclusion</strong></p><p>I hope you find this article useful.</p><p>Give it some claps to make others find it too! Make sure you follow me on <a href="https://medium.com/@moshood988"><strong>Medium</strong></a> not to miss anything. Also, let’s be friends on <a href="https://www.linkedin.com/in/moshood-alimi-413869199/"><strong>Linkedin</strong></a><strong>.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=796c7a8c81ad" width="1" height="1" alt=""><hr><p><a href="https://awstip.com/how-to-setup-continuous-deployment-to-your-elastic-beanstalk-javascript-typescript-nodejs-app-796c7a8c81ad">How to setup continuous deployment to your Elastic Beanstalk (Javascript/typescript Nodejs app)</a> was originally published in <a href="https://awstip.com/">AWS Tip</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to write a Buildspec.yml file]]></title>
            <link>https://awstip.com/how-to-write-a-buildspec-yml-file-5fd3ae950564?source=rss-a5da5ff50810------2</link>
            <guid isPermaLink="false">https://medium.com/p/5fd3ae950564</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[aws-codebuild]]></category>
            <category><![CDATA[tyepscript]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Moshood Alimi]]></dc:creator>
            <pubDate>Mon, 15 Aug 2022 09:18:06 GMT</pubDate>
            <atom:updated>2022-08-17T12:05:52.073Z</atom:updated>
            <content:encoded><![CDATA[<p>Recently, I tried using the AWS CodeDeploy to automate the deployment of my code from GitHub to AWS. Since my project is a typescript Nodejs app I needed to write build instructions to tell AWS how to get my code from typescript to javascript. Because it was my first time I tried to google my way out like I always do but I couldn’t find any concrete material on how to write a Buildspec.yml file. So I thought why not just write one?</p><p><strong>What is a Buildspec.yml file?</strong></p><p>This is just a file that provides the build instructions for the codeBuild.</p><p><strong>Where should you put it?</strong></p><p>For it to work, it needs to be at the root of your project folder.</p><p>Here is an example</p><pre>version: 0.2</pre><pre>phases:<br>  install:<br>    runtime-versions:<br>      nodejs: 16<br>    commands:<br>      - npm install -g typescript<br>      - npm install<br>  pre_build:<br>    commands:<br>      - echo Installing source NPM dependencies...<br>  build:<br>    commands:<br>      - echo Build started on `date`<br>      - tsc<br>      - npm prune --production<br>    post_build:<br>      commands:<br>        - echo Build completed on `date`  <br>artifacts:<br>  type: zip<br>  files:<br>    - package.json<br>    - package-lock.json<br>    - &quot;build/**/*&quot;<br>    - .ebextensions/**/*</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/319/1*alrw97eeHq07A1M1dntpRA.png" /></figure><p><strong><em>Version</em></strong><em>:</em> This is the buildspec version and it&#39;s either 0.1 or 0.2(recommended). It affects the default shell in the build environment. 0.1 runs each build command in a different instance while 0.2 runs all build commands in the same instance.</p><p><strong><em>Phases: </em></strong>These are the commands that run during each phase of the build and there is a specific order that they go through. The order is Install, pre_build, build, and post_build.</p><pre><strong>Install:</strong> This is for installing packages in the build enviroment.</pre><pre><strong>pre_build</strong>: Are commands that runs before the build.</pre><pre><strong>build:</strong> Are commands that runs during the build. </pre><pre><strong>post_build:</strong> Are commands that runs after the build </pre><p><strong><em>Artifacts: </em></strong>This is where we can find our build output and it gets deployed to AWS.</p><p><strong>Conclusion</strong></p><p>I hope you find this article useful.</p><p>Give it some claps to make others find it too! Make sure you follow me on <a href="https://medium.com/@moshood988"><strong>Medium</strong></a> not to miss anything. Also, let’s be friends on <a href="https://www.linkedin.com/in/moshood-alimi-413869199/"><strong>Linkedin</strong></a><strong>.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5fd3ae950564" width="1" height="1" alt=""><hr><p><a href="https://awstip.com/how-to-write-a-buildspec-yml-file-5fd3ae950564">How to write a Buildspec.yml file</a> was originally published in <a href="https://awstip.com/">AWS Tip</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>