<?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 Anthony Kiplimo on Medium]]></title>
        <description><![CDATA[Stories by Anthony Kiplimo on Medium]]></description>
        <link>https://medium.com/@anthonylimo90?source=rss-d318658bf018------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*AlzujnNb2vvruVzKXc_jXA@2x.jpeg</url>
            <title>Stories by Anthony Kiplimo on Medium</title>
            <link>https://medium.com/@anthonylimo90?source=rss-d318658bf018------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 16 Nov 2026 18:24:36 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@anthonylimo90/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[Sustainable and Scalable Innovation for Africa]]></title>
            <link>https://medium.com/@anthonylimo90/sustainable-and-scalable-innovation-for-africa-cf54697a6fa5?source=rss-d318658bf018------2</link>
            <guid isPermaLink="false">https://medium.com/p/cf54697a6fa5</guid>
            <category><![CDATA[sustainability]]></category>
            <category><![CDATA[innovation]]></category>
            <category><![CDATA[africa]]></category>
            <dc:creator><![CDATA[Anthony Kiplimo]]></dc:creator>
            <pubDate>Tue, 02 Apr 2024 10:09:26 GMT</pubDate>
            <atom:updated>2024-04-02T10:09:26.380Z</atom:updated>
            <content:encoded><![CDATA[<h4>The Road to Sustainability</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hBS2ONsfKxN78-OpsQ5LiA.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@sickle?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Sergey Pesterev</a> on <a href="https://unsplash.com/s/photos/africa-innovation?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><h4><strong>Innovation in Africa</strong></h4><p>In this article, I intend to look at the current innovation blocks and how incorporating the concepts of viability, sustainability and scalability into the entire journey of innovation, from ideation to actualisation, we can begin to leave a greater impact onto communities across Africa.</p><h4><strong>What innovation blocks are running in Africa?</strong></h4><p>For Africa there are three critical players and funnels that form the current innovation ecosystem:</p><p>1. Institutions of higher learning — universities, colleges, etc.</p><p>2. Incubators, co-working spaces and hubs — the home of startups</p><p>3. Local enterprises — successful startups in the ecosystem</p><h3><strong>The funnels of innovation</strong></h3><p>At the very core of innovation lies ideas and methodologies that nurture and provide a framework for the creative process to take place. Institutions of higher learning provide this environment that helps build up an ecosystems capacity to create new solutions for its pains.</p><h4><strong>Institutions of Higher Learning</strong></h4><p>Innovation is heavily built around the education systems and supported by culture (both existing and nurtured). Here, ideas are prevalent and the support systems are present to make these ideas come to light. These institutions provide a platform where the private sector can synchronise and deliver industry grade training to students.</p><p>Developer communities thrive in educational institutions which encourages industry level training and learning that helps incentivise innovative ideas. Training based initiatives to training young people, and more recently teens, looking to gain skills or pursue a career in technology are increasing.</p><p>Moreover, funding options for students are increasing with organizations looking to enable the next great startups, not only from Africa, but from across the world.</p><p><strong><em>Next steps for institutions of higher learning</em></strong></p><p>However, despite these numerous channels of opportunity, these institutions need to do more to spur viable, sustainable and scalable innovation across the board. Such steps include:</p><p>1. Providing an ecosystem of technology aware investors who can financially support innovative ideas coming out of these institutions.</p><p>2. Strategic partnerships with the industry working together creating synergy between the two parties and insight on both ends</p><p>3. Updated technical knowledge through trainings facilitated by the enterprises in the industry ensuring that academic institutions are training for industry needs</p><p>4. Encouraging multidisciplinary collaboration with regards to building solutions. Healthcare innovation with input from healthcare experts allows more robust solutions.</p><p>5. Setting social, cultural and intellectual tone of their local areas and ecosystems — having deep roots in the community they’re in, academic institutions can play a critical role in creating more STEM based cultures where children are encouraged to take on the sciences.</p><p>6. Contributions to government and industrial decision making. Once academic institutions are on the table, it’s much easier to push for innovation as an agenda.</p><h4><strong>Incubators &amp; Hubs</strong></h4><p>The training provided in the universities and colleges goes a long way in creating the foundation of co-working spaces, hubs and incubators. Hubs or co-working spaces thrive on young entrepreneurs who are interested in building solutions for their communities. Currently, according to a 2018 GSMA report, there are 442 number of hubs located in major cities across Africa.</p><p>From these hubs, come some of the most exciting ideas and business models that are unparalleled anywhere else in the world. MPESA is the brainchild of a campus undergraduate while ideas such as Tanda and Mellowcab are based in co-working spaces.</p><p>There are 6,300+ startups currently running and operational in Africa currently according to Angel List and this is an interesting depiction of how the continent is rising to face its challenges all the way from transport to health.</p><p>However, not many of the startups that emerge end up standing the test of time. Few mature into profitable companies providing services and products for the masses.</p><p><strong><em>Next steps for incubators and hubs</em></strong></p><p>These spaces in Africa have been great spaces for growth but more could be done to improve the experience for young companies. These hubs and co-working spaces serve a critical role in nurturing young businesses with grand ideas into big time enterprises through support in regards to:</p><p>1. Physical infrastructure — affordable office space as well as basic amenities are key in reducing costs of operation for young businesses which is always a good thing</p><p>2. Business assistance — young entrepreneurs need help in getting their businesses in order</p><p>3. Management, guidance and consulting — proper co-working spaces help in not only abstracting the managerial and administrative hustles of a business but also providing free consultation for the businesses as well.</p><p>4. Enabling environment — every co-working space should provide spaces that ensure the young businesses can be productive and allow their creative processes to flourish.</p><p>5. Networking opportunities — opening up hubs/incubators/wo-working spaces to opportunities for</p><h4><strong>Local &amp; Private Enterprises</strong></h4><p>These are companies that are part of the African ecosystem whether its foreign or local enterprises, they all have a role to play in the grand scheme of things. At the core, they should provide direction and opportunities for those in the ecosystem.</p><p>Local enterprises are often not the first in line to fund local startups, that title goes to the multinational enterprises that are hungry to invest in Africa. Sponsoring our own not only helps keep wealth in our countries but allows for growth</p><p><em>Next steps for local and private enterprises</em></p><p>The local enterprises plays a critical role in building innovation blocks in several key ways:</p><p>1. Funding — once local companies recognize the need to help grow startups and SMEs, we begin to nurture local talents and skills empowering them with capital to build the much needed solutions for the community</p><p>2. Education and training — the private sector serves as a directional instrument for academic institutions. Their knowledge of what the industry requires in terms of skill sets should help students build up the skills needed for the future. Not just skills for employment but mentorship that nurtures entrepreneurship.</p><p>3. Infrastructure for Africa — This is one of the passion points for Africa’s Talking and it should be one for enterprises in Africa. We need to see that those building these solutions to African pains are supported by infrastructure, on a technical level, that is designed for Africa. Aside from technological infrastructure, solutions that improve the supply chain across the continent for various materials is key.</p><h3><strong>The cyclic funnel</strong></h3><p>These three players, at their best, feed into one another forming a cyclic model for an ecosystem.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*bAIvlaCK9-oNNjZ7XmCWeA.jpeg" /><figcaption>The Innovation Cycle</figcaption></figure><p><em>Academic institutions providing:</em></p><p>1. Skilled labor to the local and private enterprises</p><p>2. Viable companies and business models generated from research</p><p><em>Incubators and Hubs provide:</em></p><p>1. Provide training and incubation facilities to companies and ideas coming from research in academic institutions</p><p>2. Help convert startups into enterprises which with the right input, are able to scale</p><p><em>Local and private enterprises provide:</em></p><p>1. Funding and technical training to academic institutions to help make sure that there is relevant skilled labor</p><p>2. Investments into startups as well as consulting and advice on how they can scale, run sustainably and become profitable.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cf54697a6fa5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building an Event Registration USSD with Africa’s Talking, NodeJS, Mongo and Docker]]></title>
            <link>https://blog.africastalking.com/building-an-event-registration-ussd-with-africas-talking-nodejs-mongo-and-docker-e7a09265c753?source=rss-d318658bf018------2</link>
            <guid isPermaLink="false">https://medium.com/p/e7a09265c753</guid>
            <category><![CDATA[sms]]></category>
            <category><![CDATA[africastalking]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[finite-state-machine]]></category>
            <category><![CDATA[ussd]]></category>
            <dc:creator><![CDATA[Anthony Kiplimo]]></dc:creator>
            <pubDate>Wed, 11 May 2022 12:55:49 GMT</pubDate>
            <atom:updated>2022-05-11T12:57:23.360Z</atom:updated>
            <content:encoded><![CDATA[<h4>From setup to build and deployment</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PakwSt0K_CLI9lZm2o51bg.png" /></figure><h3>Introduction</h3><p>In this tutorial we’ll cover how to build a simple event registration service on Africa’s Talking with Node. Traditionally, USSDs have been a challenging endeavour. Initially simple to build but gets complicated when you need to track state and manage databases. We’ll use an awesome library called <a href="https://www.npmjs.com/package/ussd-builder">ussd-builder</a> to help us manage our state as we get users registered — it should also make building the USSD a lot easier.</p><h3>Getting Set Up</h3><p>Create your project folder and initialise our app:</p><pre>mkdir registration-ussd &amp;&amp; cd registration-ussd</pre><pre>npm init -y</pre><p>Next, we’ll install the libraries we need:</p><pre>npm install — save express ussd-builder dotenv mongoose</pre><p>Mongoose helps us work with our MongoDB instance a lot easier. We’ll create a MongoDB instance a little later, let’s first get our app up and running.</p><p>Create an index.js file in the root folder and add in the following code:</p><pre>const express = require(‘express’);</pre><pre>const app = express();</pre><pre>app.use(express.json());</pre><pre>app.use(express.urlencoded({extended:true}));</pre><pre>app.listen(3000, () =&gt; console.log(‘App running on port 3000’));</pre><p>On your terminal, run:</p><pre>node index.js</pre><p>…and you are should see output on your terminal.</p><h3>Creating your database</h3><p>We’ll be creating our database on <a href="https://cloud.mongo.com/">MongoDB</a>. Here’s an article on <a href="https://rahmanfadhil.com/express-rest-api/">how to get started with the Mongo platform</a>. Once we have our DB, we will be able to connect to it on our app through Mongoose. Before we write some code, create a .env file and add the following to it:</p><pre>DATABASE_URL=&lt;Add_your_remote_mongo_uri_here&gt;</pre><p>Next edit the index.js file to look like this:</p><pre>require(&quot;dotenv&quot;)<strong>.</strong>config();</pre><pre>const express = require(&quot;express&quot;);</pre><pre>const mongoose = require(&quot;mongoose&quot;);</pre><pre>const mongoString = process<strong>.</strong>env<strong>.</strong>DATABASE_URL;</pre><pre>mongoose<strong>.</strong>connect(mongoString);</pre><pre>const database = mongoose<strong>.</strong>connection;</pre><pre>database<strong>.</strong>on(&quot;error&quot;, (error) =&gt; {</pre><pre>console<strong>.</strong>log(error);</pre><pre>});</pre><pre>database<strong>.</strong>once(&quot;connected&quot;, () =&gt; {</pre><pre>console<strong>.</strong>log(&quot;Database connected...&quot;);</pre><pre>});</pre><pre>const app = express();</pre><pre>app<strong>.</strong>use(express<strong>.</strong>json());</pre><pre>app<strong>.</strong>use(express<strong>.</strong>urlencoded({ extended: true }));</pre><pre>app<strong>.</strong>listen(3000, () =&gt; {</pre><pre>console<strong>.</strong>log(&quot;What&#39;s popping? We&#39;re connected&quot;);</pre><pre>});</pre><p>What we added above:</p><ol><li>We introduced dotenv to help us read values from the .env file</li><li>We created a connection with our remote Mongo database with mongoose.connect(mongoString)</li><li>Made some checks to ensure the MongoDB connection works</li></ol><p>At this point, we can rerun our code to connect to our DB:</p><pre>node index.js</pre><p>You should see this output in the terminal:</p><p>Database connected....</p><p>What&#39;s popping? We&#39;re connected</p><h3>Creating the Data Model</h3><p>Next we need to define the schema of our data. Create a folder models and within it, create a new file models.js</p><pre>mkdir models &amp;&amp; cd models<br>touch models.js</pre><p>Next we’ll define our model and export it:</p><pre>const mongoose = require(&quot;mongoose&quot;);</pre><pre>const dataSchema = new mongoose<strong>.</strong>Schema({</pre><pre>name: {</pre><pre>required: true,</pre><pre>type: String</pre><pre>},</pre><pre>tickets: {</pre><pre>required: true,</pre><pre>type: Number</pre><pre>}</pre><pre>});</pre><pre>module<strong>.</strong>exports = mongoose<strong>.</strong>model(&quot;Data&quot;, dataSchema);</pre><p>We’re only capturing the attendees name and ticket numbers. We could expand this data if necessary for example if we wanted to capture dietary concerns.</p><h3>Creating the USSD Flow</h3><p>Before we jump into building our USSD flow, let’s revisit what it is and what it’s great for.</p><p>USSD is a 2G technology that allows users with both feature-phones and smartphones can access services without needing an internet access. USSD is pretty basic consisting of a text interface with a conversational/menu-based approach. This can be quite useful for numerous use-cases:</p><ol><li>Simple transactional interfaces eg. banking</li><li>Simple data collection eg. a survey</li></ol><p>Add an image of a real world USSD</p><p>Now that we have this out of the way, let’s create our flow:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/641/0*lQ0CbAixhocG2ikD.png" /></figure><p>In this case, we’ll be registering users to a fictional Zizi Conference. The users will be able to register their name, number of tickets and we’ll send them a confirmation text as well. A simple easy to follow flow.</p><p>Before we get started, we’ll create our Africa’s Talking account.</p><h3>Creating your Africa’s Talking Account</h3><p>First off head to Africa’s Talking dashboard. <a href="https://account.africastalking.com/">Login or create a new account</a>. There’s a quick verification process that helps us know you’re real.</p><p>Next up, we’ll head to <a href="https://account.africastalking.com/apps/sandbox">the sandbox environment</a> and <a href="https://account.africastalking.com/apps/sandbox/ussd/channel/create">create the USSD shortcode</a>. Choose a cool number, we’ll be dialling it a lot. If you want a quick overview of the AT dashboard, here’s a quick video:</p><p><a href="https://www.youtube.com/watch?v=IEXrOq1sExM&amp;">https://www.youtube.com/watch?v=IEXrOq1sExM&amp;</a></p><p><a href="https://youtu.be/IEXrOq1sExM">https://youtu.be/IEXrOq1sExM</a></p><p>Remember your USSD code, we’ll need it right after this next section.</p><h3>Using the ussd-builder library</h3><p>As mentioned before, this library is an awesome project that creates a cool FSM based library for USSDs. You can check out their work and documentation here.</p><p>Right below the app.use statements in the index.js file we add the following code:</p><pre>...</pre><pre>let menu = new UssdMenu();</pre><pre>menu<strong>.</strong>startState({</pre><pre>run: () =&gt; {</pre><pre>//<em> use menu.con() to send response without terminating session</em></pre><pre>menu<strong>.</strong>con(&#39;Welcome! Ready to register for the Zizi Conference:&#39; +</pre><pre>&#39;\n1. Get started&#39; +</pre><pre>&#39;\n2. Get out!&#39;);</pre><pre>},</pre><pre>//<em> next object links to next state based on user input</em></pre><pre>next: {</pre><pre>&#39;1&#39;: &#39;register&#39;,</pre><pre>&#39;2&#39;: &#39;quit&#39;</pre><pre>}</pre><pre>});</pre><pre>menu<strong>.</strong>state(&#39;register&#39;, {</pre><pre>run: () =&gt; {</pre><pre>menu<strong>.</strong>con(&#39;Before we go ahead, whats your name?&#39;);</pre><pre>},</pre><pre>next: {</pre><pre>&#39;*[a-zA-Z]+&#39;: &#39;register.tickets&#39;</pre><pre>}</pre><pre>});</pre><pre>menu<strong>.</strong>state(&#39;register.tickets&#39;, {</pre><pre>run: () =&gt; {</pre><pre>let name = menu<strong>.</strong>val;</pre><pre>dataToSave<strong>.</strong>name = name;</pre><pre>console<strong>.</strong>log(dataToSave);</pre><pre>menu<strong>.</strong>con(&#39;How many tickets would you like to reserve?&#39;);</pre><pre>},</pre><pre>next: {</pre><pre>//<em> using regex to match user input to next state</em></pre><pre>&#39;*\\d+&#39;: &#39;end&#39;</pre><pre>}</pre><pre>});</pre><pre>menu<strong>.</strong>state(&#39;end&#39;, {</pre><pre>run: async () =&gt; {</pre><pre>let tickets = menu<strong>.</strong>val;</pre><pre>dataToSave<strong>.</strong>tickets = tickets;</pre><pre>console<strong>.</strong>log(dataToSave);</pre><pre>//<em> Save the data</em></pre><pre>const data = new Model({</pre><pre>name: dataToSave<strong>.</strong>name,</pre><pre>tickets: dataToSave<strong>.</strong>tickets</pre><pre>});</pre><pre>const dataSaved = await data<strong>.</strong>save();<br></pre><pre>menu<strong>.</strong>end(&#39;Awesome! We have your tickets reserved. Sending a confirmation text shortly.&#39;);</pre><pre>}</pre><pre>});</pre><pre>menu<strong>.</strong>state(&#39;quit&#39;, {</pre><pre>run: () =&gt; {</pre><pre>menu<strong>.</strong>end(&quot;Goodbye :)&quot;);</pre><pre>}</pre><pre>});</pre><pre>//<em> Registering USSD handler with Express</em></pre><pre>app<strong>.</strong>post(&#39;/ussd&#39;, (req, res)=&gt;{</pre><pre>menu<strong>.</strong>run(req<strong>.</strong>body, ussdResult =&gt; {</pre><pre>res<strong>.</strong>send(ussdResult);</pre><pre>});</pre><pre>});</pre><pre>...</pre><p>The code above helps us create paths/states around the USSD diagram shared below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pts_RlMAB5OdTfOGt2kVVg.png" /><figcaption>Zizi Conference State Flow</figcaption></figure><h3>Running our app</h3><p>To get the app running, we’ll need to get our app online. Download <a href="https://ngrok.com/">ngrok</a> to tunnel our app. Once you have ngrok installed, run</p><pre>./ngrok http 3000</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1018/1*ANTfvYucce_uw1vGiwEkxA.png" /><figcaption>Your custom tunneled link</figcaption></figure><p>Once you have your custom link from ngrok, open your Africa’s Talking dashboard and paste it into the USSD callback section:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*kUme-Ts1ovekQ5a1b3VLPQ.gif" /><figcaption>Adding your callback URL</figcaption></figure><p>Once this is done, we need to test our app on the Africa’s Talking simulator. The simulator allows you to visualise your USSD before you go live with a real-world code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*1CmOJq2gVUc5_xtdCBbneg.gif" /><figcaption>Testing the Zizi Conference USSD on the AT Simulator</figcaption></figure><h3>(Optional) Adding SMS notifications to the project</h3><p>In this section we’ll be adding in the SMS component that tells our attendee how many tickets they’ve reserved. To do this we need to install the africastalking npm package.</p><pre>npm i -s africastalking</pre><p>Just below where the dataToSave variable is declared, we can add the following code:</p><pre>const atCredentials = {</pre><pre>apiKey: process<strong>.</strong>env<strong>.</strong>AT_SANDBOX_APIKEY,</pre><pre>username: process<strong>.</strong>env<strong>.</strong>AT_SANDBOX_USERNAME</pre><pre>};</pre><pre>const AfricasTalking = require(&quot;africastalking&quot;)(atCredentials);<br>const sms = AfricasTalking<strong>.</strong>SMS;</pre><p>Once done, we can grab our username which is sandbox in this case and your API Key <a href="https://account.africastalking.com/apps/sandbox/settings/key">here</a> then add them to your .env file:</p><pre>AT_SANDBOX_USERNAME=</pre><pre>AT_SANDBOX_APIKEY=</pre><p>Next, we’ll actually send the message to the attendee. Just below the point at which we save data in the endState we’ll add in the send message function:</p><pre>...<br>const dataSaved = await data<strong>.</strong>save();</pre><pre>const options = {</pre><pre>to: menu<strong>.</strong>args<strong>.</strong>phoneNumber,</pre><pre>message: `Hi ${dataToSave<strong>.</strong>name}, we&#39;ve reserved ${dataToSave<strong>.</strong>tickets} tickets for you.`</pre><pre>}</pre><pre>await sms<strong>.</strong>send(options);<br>...</pre><p>This allows us to send a customised message to our attendee confirming attendance.</p><h3>(Optional) Extending the app</h3><p>This would be the end of the app, at least for a tutorial but we can do a lot more and build out a fully working event registration app with a web interface and more. If you would like to see this, leave a comment below and we’ll make a part two of the article.</p><p>To learn more about Africa’s Talking products:</p><ol><li>AT Build Documentation: <a href="https://developers.africastalking.com/">https://developers.africastalking.com/</a></li><li>More on our culture on our blog: <a href="https://blog.africastalking.com/">https://blog.africastalking.com</a></li><li>Join our Freelance Developer community: <a href="https://anthonylimo.hashnode.dev/Link">WhatsApp</a> , <a href="https://anthonylimo.hashnode.dev/Link">Facebook</a>, <a href="https://join.slack.com/t/africastalking/shared_invite/zt-q9k2l7yt-j3~qz_77ft7~QZe4Ia0RZA">Slack</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e7a09265c753" width="1" height="1" alt=""><hr><p><a href="https://blog.africastalking.com/building-an-event-registration-ussd-with-africas-talking-nodejs-mongo-and-docker-e7a09265c753">Building an Event Registration USSD with Africa’s Talking, NodeJS, Mongo and Docker</a> was originally published in <a href="https://blog.africastalking.com/">Africa&#39;s Talking</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AT Developers]]></title>
            <link>https://blog.africastalking.com/at-developers-d27c78655b50?source=rss-d318658bf018------2</link>
            <guid isPermaLink="false">https://medium.com/p/d27c78655b50</guid>
            <category><![CDATA[developer-advocacy]]></category>
            <category><![CDATA[buildwithafricastalking]]></category>
            <category><![CDATA[developer-relations]]></category>
            <dc:creator><![CDATA[Anthony Kiplimo]]></dc:creator>
            <pubDate>Fri, 20 Nov 2020 11:30:26 GMT</pubDate>
            <atom:updated>2020-11-20T11:30:26.092Z</atom:updated>
            <content:encoded><![CDATA[<h4>A world-class developer experience for Africa.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p6sp1YdPi4Me35o6mklFFg.png" /></figure><p>Over the past few months, we have been working on new features and products. In August, we launched the <strong>AT Marketplace</strong>. If you haven’t checked it out yet, you can read about it <a href="https://blog.africastalking.com/at-marketplace-deee62bff8fc"><strong><em>here</em></strong></a>. Now, we have the pleasure of introducing our new interactive documentation platform, <a href="https://developers.africastalking.com/"><strong>AT Developers</strong></a>.</p><blockquote>When we deployed the first version of these docs, we were a little nervous about the reception to this new version of the documentation. Over the years, developers have continued to use the platform to view documentation and take some of our interactive courses. This uptake has been a great encouragement to the team that’s been working on this project. We learned a lot from your experiences and saw the potential to deliver something uniquely placed to serve the African developer’s needs.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nwNuG0utqm9-xsvtLT3pjw.jpeg" /></figure><p>We’ll look at the new features we’ve introduced and explain some of the core ideas that guide the philosophy of our documentation.</p><p><strong>Redesigned UX</strong></p><p>In the first iteration of our developer platform, our core focus was delivering an immersive environment that provided the tools that you need to build on Africa’s Talking with a guided tutorial. In this iteration, we focused on helping you find what you need when you need it.</p><p>If you are looking to check out an endpoint, you may not need to sift through tutorials to get the information you need. However, suppose you need a quick walkthrough on how to implement a mobile checkout, or you want to give the platform a test-run. In that case, the interactive platform is the place for you.</p><p><strong>Brand New UI</strong></p><p>We have extended our new design language from our website to our documentation. It’s always a challenge building a design system, but we think we’re getting there. Upgrading our design language was one of the most ambitious design projects that we’ve undertaken with custom illustrations and design patterns implemented across the board. We hope you love it as much as we loved making it.</p><p><strong>Built for offline access</strong></p><p>One of the critical challenges that developers face across the African continent is access to reliable internet services. Addressing this hurdle prompted us to make our documentation offline first as a progressive web app so you can have your docs wherever you are.</p><p><strong>New App Engine</strong></p><p>We built an app engine that delivers low latency cloud services, therefore bringing application resources closer to the people who need them. This engine powers the entire interactive platform, which we hope will make the experience is as seamless as possible.</p><p><strong>More Features</strong></p><p>We have a lot more built into the experience that we can’t wait for you to discover:</p><ol><li>Revised Voice documentation</li><li>New IoT and Voice experience available for the sandbox environment.</li><li>Documentation and Course rating (coming soon)</li><li>Opening up the platform to 3rd party content creators (in a future release)</li></ol><p><strong>Closing out</strong></p><p>We had so much fun building this, and we are excited to see the great things you will learn and develop from it. #BuildWithUs</p><p>We’d love to get your feedback once you’ve had a chance to check out <a href="https://developers.africastalking.com/"><strong>AT Developers</strong></a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d27c78655b50" width="1" height="1" alt=""><hr><p><a href="https://blog.africastalking.com/at-developers-d27c78655b50">AT Developers</a> was originally published in <a href="https://blog.africastalking.com/">Africa&#39;s Talking</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Build an Interactive Voice Response (IVR) application with Africa’s Talking, Flask, Docker and…]]></title>
            <link>https://medium.com/@anthonylimo90/build-an-interactive-voice-response-ivr-application-with-africas-talking-flask-docker-and-d883c47ac68d?source=rss-d318658bf018------2</link>
            <guid isPermaLink="false">https://medium.com/p/d883c47ac68d</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[africastalking]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[tech]]></category>
            <dc:creator><![CDATA[Anthony Kiplimo]]></dc:creator>
            <pubDate>Thu, 10 Sep 2020 09:57:24 GMT</pubDate>
            <atom:updated>2020-09-10T09:57:24.252Z</atom:updated>
            <content:encoded><![CDATA[<h3>Build an Interactive Voice Response (IVR) application with Africa’s Talking, Flask, Docker and Heroku</h3><p><em>This demo was written and shared with members of the Africa’s Talking Freelance Developer sessions. If you are interested in joining us follow the links at the bottom of this article</em></p><p>Welcome back! This is a brand new series on creating amazing experiences with just phone calls. No fancy UI. No React. No Angular. Just a voice call. It may seem super simplistic but in reality, everyone makes calls. In light of this, is it possible to create apps that run on phone calls? Yes! That’s what we’ll be doing today.</p><p>We’ll be using Flask, a python micro-framework, and deploying our app on Heroku. We don’t have a database as of now but in a future series we’ll be saving the data from user responses so stay tuned in for that.</p><p>What the app will do</p><p>We’ll be building a simple guessing game that allows peeps to guess how old Africa’s Talking is! This is the current user flow:</p><ol><li>A user will call our number and listen to the instructions</li><li>They will dial in their response on the in-call dial pad</li><li>The app will direct them on whether they have chosen the right answer or not</li></ol><p>There are some challenges with the app, we aren’t able to keep a user in a loop until they get the right answer but we’ll cover this in the next series as we look at slightly mode advanced techniques.</p><h3>Getting Started</h3><p>To get your phone call set up, we are going to be using the Africa’s Talking platform. Africa’s Talking provides APIs that tap into telco infrastructure and makes it easier for developers across Africa to integrate services such as SMS, Voice, USSD, Payments and Airtime. There’s also a brand new IoT platform that you could checkout too.</p><p>To get started, what you need is a programmable number. Africa’s Talking provides these numbers at a cost however, for this tutorial, you can get a number for free. All you have to do is tell us what idea you would like to build on the Voice platform and we’ll get you a number free of charge! <a href="https://forms.gle/T9tZ1xTNQCBC4YHr7">Fill out this form to share your ideas</a>.</p><h3>How the Africa’s Talking Voice API works</h3><p>The platform provides a pretty simple approach to building our Interactive Voice Application through a REST API. Here’s a simple diagram showing how it works:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ZbDlezzItuF0PrOr" /></figure><p>Project Setup</p><p>To see the API in action we need to build out our app. I’ll explain where we’ll be working with the API directly as we go along. Let’s get this!</p><p>Make your project directory in your folder of choice with the following commands:</p><pre>mkdir voice-python cd voice-python</pre><p>Next up, since we’re writing python, we should get our python virtual environment set up. We’ll do so with the following commands:</p><pre>pip3 install virtualenv <br>virtualenv venv <br>source ./venv/bin/activate</pre><p>Once done, we can start actually writing some code. Fire up your text editor of choice. I go for <a href="https://code.visualstudio.com/">VS Code</a> but <a href="https://atom.io/">Atom</a> with <a href="https://kite.com/">Kite integration</a> is really awesome for Python development.</p><p>Create a file called app.py in your project&#39;s root directory. This is where most of our code will live. In a real-world scenario we may have way more files and modules but one file makes it easier to write this article 😂</p><p>Right now, all we need is the Flask micro-framework as well as the Flask API module to help us build our server. Flask is designed to make lightweight servers and serves perfectly for this and Flask API just gives us some cool functionality since we’re basically building an API. Lets get it into our project:</p><pre>pip3 install flask <br>pip3 install Flask-API</pre><p>Having Flask and Flask API installed, we can actually write code. Add in the following lines of code:</p><p>This is a basic Flask scaffold that sets up the first basic route and defines how the application will run including ports and the host. Since we’ll be deploying to Docker, we need to set the host to 0.0.0.0 and get our port directly from the OS that will be running our application.</p><p>Now, we build out our actual app.</p><h3>Building XML responses</h3><p>Since, we’re talking about Voice calls, remember that they are still OG tech. Calls have been around for over 100 years now therefore some aspects of it are still shrouded in older communication standards. We use XML to communicate with Voice servers and define certain aspects of our call.</p><p>The first methods that we will define will basically be returning XML that will be used to render various voices and add various functionalities.</p><blockquote><em>I haven’t found a great XML builder library for Python but don’t hesitate to educate all of us in the comments</em></blockquote><p>Let’s get to writing our first proper methods! Just below the app=Flask(__name__) line, add the following lines of code:</p><p>The code above defines the responses that we will be using to give feedback and instructions to the user. Here’s a breakdown of what each of them is doing:</p><p>entry_phrase()</p><p>This will be the first phrase that the user will hear as the app loads and collects the digits that the user presses (We use# to register user input). It contains instructions on what to do including the asking Africa&#39;s Talking&#39;s age. The final XML looks something like this:</p><blockquote><em>We will leave the callback URL element empty for now till we deploy and get our actual route but for testing you can use localhost</em></blockquote><p>success_flow()</p><p>This piece returns XML that will be read out the success message if someone gets the message right.</p><p>error_flow_too_high()</p><p>This will be read out if the user guesses higher than the actual answer</p><p>error_flow_too_low()</p><p>This will be read out if the user guesses lower than the actual answer</p><p>This will be read out if the input isn’t right.</p><h3>Routes and Logic</h3><p>The index route</p><p>The fun part is here! Actually setting up the routes that we will be using is quite simple. Majority of the work is actually done.</p><p>First off, we need to get our root route, &quot;/&quot; playing entry phrase. To do this, change your index route to look like this:</p><p>This route will do a couple of things for us:</p><ol><li>If the HTTP request we get is a GET then we show a 200 status code that means everything is okay (at least, so far)</li><li>If the request comes as a POST then we need to actually say something to our user and we return entry_phrase().</li><li>If we get something that’s not a POST or GET, we then return an error. Only POST and GET requests are allowed on the server.</li></ol><p>Once we have this, we are set to handle the first part of the call. Next, we need to direct the user to the appropriate flow once they have provided their input.</p><p>Something to note is that at this phase, Africa’s Taking’s API will send in data to your API with some basic information. Let’s breakdown some of the data we’ll be receiving:</p><ol><li>sessionId - This uniquely identifies the call session</li><li>callerNumber - This shows you which number is making a call</li><li>destinationNumber - This is your Africa&#39;s Talking number</li><li>dtmfDigits - This is the user input we collect once the user is on the call</li></ol><p>We won’t use all these data points in this tutorial but checkout the <a href="https://build.at-labs.io/docs/voice%2Fhandle_calls">documentation around handling calls</a> for more information on what you can do.</p><p>The next route</p><p>Next we need to define a new route, &lt;YOUR_URL&gt;/voice/say.</p><blockquote><em>You could name the route whatever suits you best.</em></blockquote><p>This route will check if the user input from the previous route is actually correct. Africa’s Talking is 9 years old and that’s the value we’ll be working with. Add the code below just below the first route:</p><p>Here we implement some simple if statement logic that checks whether user input, which we get from the API, is correct. Here we are only using dtmfDigits but you can save user responses and use that as a way of tracking progress through a custom flow.</p><p>Once done, we basically have our voice application ready. Next up, we need to prep it for deployment. You can test your endpoints with <a href="https://www.getpostman.com/">Postman</a> or, as I found out today courtesy of Hashnode, <a href="https://postwoman.io/">Postwoman</a>.</p><h3>Deploying to Heroku with a Docker container</h3><p>We’ll be using Heroku in this case to deploy our app and best of all we’ll be using Docker to containerize our application. To get this done, you’ll need a <a href="https://www.heroku.com/">Heroku account</a> and <a href="https://www.docker.com/products/docker-desktop">Docker</a> installed on your machine. Once you have your accounts created, install the Heroku CLI and run the following commands:</p><p>This logs us into the Heroku CLI and the second command gets our Heroku container registry setup. To confirm that you have Docker properly installed, run:</p><p>You should see something like Docker version 19.03.4, build 9013bf5. That&#39;s what I&#39;m running currently.</p><p>Let’s get to deploying this awesome app of ours!</p><p>Docker and containers</p><p>Docker basically ends the “Works on my machine but not in production” problem that so many of us have faced. To make our app a containerised application, we need to create a Dockerfile. To do this, create a new file on your terminal with:</p><p>Open the file and add the following lines:</p><pre>FROM python:3 <br>WORKDIR /code <br>ENV FLASK_APP app.py <br>ENV FLASK_RUN_HOST 0.0.0.0 <br>COPY requirements.txt requirements.txt <br>RUN pip install -r requirements.txt <br>COPY . . <br>CMD [&quot;python&quot;,&quot;app.py&quot;]</pre><p>This is what is happening:</p><ol><li>The first line creates a container built on the Python 3 Alpine image which a lightweight linux distribution.</li><li>Line 2 sets the working directory as code</li><li>Line 3 sets the default flask application as <a href="https://hashnode.com/util/redirect?url=http://app.py">app.py</a>. This is an environmental variable</li><li>Line 4 sets the default host to 0.0.0.0. This is an environmental variable as well</li><li>We then copy requirements.txt into the container</li><li>We install the packages defined in the requirements.txt file into the container</li><li>We copy all the project files into the container’s working directory which is /code.</li><li>We then execute a command python <a href="https://hashnode.com/util/redirect?url=http://app.py">app.py</a> in the container’s terminal</li></ol><p>We have essentially finished setting up our container. We just need to run a few commands to get up and running to talk to the Africa’s Talking service.</p><p>Firstly, we will build our container into an image. We ask docker to build this container, tag it voiceapp and use the Dockerfile in this folder.</p><pre>docker build -t voiceapp .</pre><p>Secondly, we will create a heroku app.:</p><p>We now have an project on Heroku that can actually host our application. The Heroku CLI displays it on your terminal. We then set up heroku to take our container for deployment:</p><p>The container will be published but it’s still not live. Next, we make it live with this command:</p><pre>heroku container:release web</pre><p><strong><em>We are now live!!!!</em></strong></p><p>You can view your application on your <a href="https://dashboard.heroku.com/">Heroku dashboard</a> or view logs from the container using:</p><blockquote><em>Remember to add in the link to your </em><em>/voice/say route as soon as you&#39;re live</em></blockquote><h3>Connecting to the Africa’s Talking Voice Dashboard</h3><p>Now that our app is live, we head to the <a href="https://account.africastalking.com/">Africa’s Talking dashboard</a> . If you don’t have an account, signing up is super easy. Once it&#39;s all set up, create a team and an app that you would use. We currently are still working on getting the Voice sandbox out hence we’ll be heading to a live account immediately. Head over to the <a href="https://account.africastalking.com/apps/axgldhaeaz/voice/phones">Voice tab</a> and you should be able to see the number assigned to you. You won’t need an API key for this product.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ClLx7pbL8RJefDbS" /></figure><p>Using the link that we have from Heroku, we set it as the callback URL. And that’s it. Give your number a call and enjoy a nice <em>interactive voice response</em> system right there!</p><h3>Summary</h3><p>Today, we built an IVR application with some basic functionality. This is a taste of the power of Africa’s Talking APIs. I would love to know what awesome apps you can build using this tech and we’ll be giving away numbers to developers and start-ups with great ideas on how to use this tech. You can fill out this form and we’ll get back to you ASAP! Can’t wait to see what awesome software comes out of this.</p><h3>Next Steps</h3><p>Next up, we’ll be covering a little more advanced techniques around Voice and USSD. If you have cool apps you’ve built on Africa’s Talking, share it in an article and we’ll give you a shout-out! (and some sway too!!! 😁)</p><p><em>Originally published at </em><a href="https://anthonylimo.hashnode.dev/build-an-interactive-voice-response-ivr-application-with-africas-talking-flask-docker-and-heroku-ck2ncufc8001cfcs1p8h5ifn0"><em>https://anthonylimo.hashnode.dev</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d883c47ac68d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Future Of African Business]]></title>
            <link>https://medium.com/@anthonylimo90/the-future-of-african-business-280b46322c8c?source=rss-d318658bf018------2</link>
            <guid isPermaLink="false">https://medium.com/p/280b46322c8c</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[africa]]></category>
            <category><![CDATA[economics]]></category>
            <category><![CDATA[business]]></category>
            <dc:creator><![CDATA[Anthony Kiplimo]]></dc:creator>
            <pubDate>Tue, 18 Aug 2020 08:59:34 GMT</pubDate>
            <atom:updated>2020-08-18T08:59:34.612Z</atom:updated>
            <content:encoded><![CDATA[<h4>Social Capital &amp; the 3rd Industrial Revolution</h4><figure><img alt="African crowd" src="https://cdn-images-1.medium.com/max/1024/1*_DuyZ3yeJqKbNTrO1UjSvQ.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@mr_chief?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Matthew Spiteri</a> on <a href="https://unsplash.com/s/photos/african-community?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><h4>Africa&#39;s Digital Past and Future</h4><p>The Future isn&#39;t being born in Africa, it&#39;s just manifesting. During Africa&#39;s colonisation, the people were brainwashed, stripped of their own culture, and reprogrammed using religion and a new economic system. This drastically changed the roadmap for Africa. In the short term, there was great suffering as we learned how to navigate this new way of life. Those born in the 1940s have seen the radical change that has happened within a span of 80 years. They can attest to the dramatic change and even name the phases of the second industrial revolution.</p><p>Since then, we have continued to play catch up as the third, data-based, industrial revolution brewed at the seams. The launch of MPESA in Kenya in 2007 ,the same year as the Apple iPhone, marked the launch of a revolution that was uniquely African and uniquely embedded within this new industrial revolution.</p><p>MPESA began by capitalising on peer to peer transactions (community), eventually became a staple of the Kenyan economy. It created a distributed network of agents based in their communities delivering MPESA services to locales that banks could not imagine reaching, they redefined banking as an industry. Mobile money (In sub-Saharan Africa and India) in may ways has inspired the nascent mobile wallet industries in Europe and North America.</p><p>The next step for MPESA was to conquer the C2B and B2C market. How? Direct, cost-effective payments for goods and services. This is the surface level end game. It serves the traditional market by simplifying the payments experience but also begins to collect detailed data on how much money actually flows through the economy and what services and goods are generating the most value for the economy.</p><p>This lays the groundwork for APIs (<a href="https://anthonylimo.hashnode.dev/apis-the-webs-legos-ckb8fqqp300906hs11414oeln">Application Programming Interface</a> or the <a href="https://en.wikipedia.org/wiki/Web_2.0">building blocks of the Web 2.0</a>), which MPESA terms as Daraja(Bridge) which bridges the physical world and the intangible world of the sharing economy. Now, you will notice more apps on your phone supporting MPESA payments. Google now accepts MPESA as a valid form of payment in their Play Store and Alibaba allows merchants to accept payments from Kenyans through MPESA. All of this is happening basically through the Daraja platform.</p><p>Safaricom and Vodacomm laid the ground-work for African platforms. Banks and telecommunications conglomerates from around Africa have joined the bandwagon with mobile money while governments have been slowly realising the benefit of exposing the informal economy.</p><h4>APIs: New tools for the new economy</h4><p>In the 20th century&#39;s industrial age, physical machines (printers, cars, planes, typewriters, etc.) served as the way through which human beings could express their creative abilities. To get these tools we needed to make them and that became the driving force behind this phase of industrialisation. In this new age, we need to rethink what are our tools of creating value? What does value really mean?</p><p>Value is the amount of time and energy spent to delivering satisfaction of a need. If we think about today, we gain the most amount of productivity and satisfaction through computers, smartphones, the internet and the apps and services built on top of it. These are the new tools for Africa&#39;s post-COVID digital transformation strategy; Digital Africa.</p><p>Within the past 5 years, we have seen a surge with companies from all corners of the continent, specifically in the telecommunications, banking and services industries, release APIs that are fundamentally driving change within African communities. MPESA has redefined the informal economy by scrapping the informalities about it. Every transaction (exchange of value) is valid and inherently creates more value by its own virtue. Let me explain.</p><p>What I&#39;ve described above is the evolution of companies from selling goods and services to becoming platforms that allow people to customise their experiences exchanging goods and services. Platforms inherently create new platforms. The data grows exponentially as we find new ways to link data from various sources into one singular source. Africa is still at the early stages of this process but rapidly expanding.</p><h4>Community at the Core</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3f0I1q_om5NuNewLTCFeoA.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@the_gerbs1?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Jean Gerber</a> on <a href="https://unsplash.com/s/photos/africa-phone?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>Startups coming up within the ecosystem will need to take on this new opportunity and work towards up-skilling the community around them with the tools and skills they need to create new ideas. That social responsibility builds the investment capital of the future. Social capital. The good-will of the community around you. This drives consumer behaviour in the modern age. From customer acquisition to loyalty. It&#39;s about <em>telling and actualising</em> a story through your business.</p><p>A recent example of this is the <a href="https://www.dictionary.com/e/pop-culture/cancel-culture/"><em>Cancel Culture</em></a>. A company can make great products but builds its brand around an idea that doesn&#39;t resonate with the people around them and they&#39;re gone in a tweet.</p><p>Sentiment, perception and intention are essential. Just as essential as making a profit and growing monetary capital. This is the idea behind Social Entrepreneurship. This will mean learning from the Silicon Valley ideals and shortcomings and reworking it with what we know to be true for our people and our culture. Building companies that empower our communities is the right way of doing business in Africa.</p><p>Africa has been built on the ideals of community and family. We do not succeed individually, we succeed as a community. By learning how to build new foundations for our society through thinking critically about problems and create new ideas on how to solve problems in our communities, inadvertently creating businesses; by seeing each opportunity we have to be with one another with the intention of helping each other, we lay the groundwork for the future of business and a new way of life in Africa.</p><p>I would love to hear your thoughts around these ideas and what you think your part would be in retelling the African story.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=280b46322c8c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AT Marketplace.]]></title>
            <link>https://blog.africastalking.com/at-marketplace-deee62bff8fc?source=rss-d318658bf018------2</link>
            <guid isPermaLink="false">https://medium.com/p/deee62bff8fc</guid>
            <category><![CDATA[africastalking]]></category>
            <category><![CDATA[developer-relations]]></category>
            <category><![CDATA[developer-advocacy]]></category>
            <dc:creator><![CDATA[Anthony Kiplimo]]></dc:creator>
            <pubDate>Tue, 28 Jul 2020 05:56:01 GMT</pubDate>
            <atom:updated>2020-07-28T16:59:39.868Z</atom:updated>
            <content:encoded><![CDATA[<p>Breaking New Ground for Developers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SufFzXgm23ZW63OgXBT6hQ.jpeg" /></figure><p><em>“We are truly excited about the release of AT’s Marketplace. This marks an important step in our commitment to empowering developers and expanding the reach of their work. In addition, allowing businesses to easily access localized pre-built solutions is key in our mission towards a more digitized continent. We hope you like it as much as we do. ”</em></p><p><em>~ Bilha Ndirangu, CEO @ Africa’s Talking</em></p><h3>The Challenge. The Fix.</h3><p>When we defined our mission as a company, one thing was clear — developers are the force driving innovation and business across the continent and we needed to support them in this endeavor.</p><p>Over the past two years, our developer community has been growing with amazing apps being built on our platform. This progress continues to drive hope that the technical ability of developers on the continent is growing. However, the gap between businesses and high-tech has been steadily increasing.</p><p>Businesses have experienced a dramatic uptake of various Digital Transformation techniques but still suffer when in need of localized access to communications and payments infrastructure. Additionally, developer services can be expensive especially for an up and coming startup while the availability of plugins and software solutions has been lacking. Another challenge is that the gap between great business ideas and available technical talent is yet to be bridged.</p><p>We had to find a way to close the gap and make a difference. This realization was the genesis of <strong>Africa’s Talking Marketplace</strong>.</p><p>With the team rallied around the idea, we started thinking about how software as a service (SaaS) companies on our platform could help existing and incoming customers. What stuck with us is an open platform for developers and businesses alike to take advantage of AT’s brand and marketing infrastructure. This allows them to reach more users and, in turn, grow their businesses.</p><blockquote>“The Marketplace is a one-stop-shop platform for customers looking to use pre-built solutions. This platform eliminates the barriers that come with outsourcing to build solutions from scratch and instead offers a speedy way to find solutions from our partners listed on the platform.”</blockquote><h3>Joining in on the fun.</h3><p>Reading this, you might be asking “How much do I need to join in on this?”. I think it would make you smile to know that we are not charging to join the Marketplace and we don’t expect a cut from your earnings. Our criteria follow simple guidelines:</p><ul><li>Your product utilizes Africa’s Talking APIs</li><li>It’s clear how users can onboard onto the application</li><li>A clear description of the app and features available</li><li>Some screenshots that match the features of the app</li></ul><p>These are the foundations of our review process which guide us while assessing submissions. We are excited to see the innovative ideas, services, and apps that you build.</p><p>We are currently accepting applications for the marketplace. We can’t wait to see what kind of products you end up building alongside the platform.</p><h3>Things to keep in mind.</h3><p>This is an extension of our commitment as a company to empower developers across Africa while addressing the ever-pressing need for customized and localized technology solutions for African businesses.</p><p>We always aim to be free and fair, and welcome feedback by the amazing community of developers and businesses that are part of the AT family. If you have any questions, feedback, or suggestions about the platform. We would love to <a href="https://docs.google.com/forms/d/e/1FAIpQLSd4H4lHRVk3ZYiu9FAMQWnsXqCuuLAw27WlktarFdTKbcSs0g/viewform?usp=sf_link">hear from you</a>.</p><p>To join the Marketplace, you can apply <a href="https://docs.google.com/forms/d/e/1FAIpQLSfiDcJ2N6YE3WXvLZl4R2UAuIobN7oCc6KW-8dSkojPgxWSzA/viewform?usp=sf_link">here</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=deee62bff8fc" width="1" height="1" alt=""><hr><p><a href="https://blog.africastalking.com/at-marketplace-deee62bff8fc">AT Marketplace.</a> was originally published in <a href="https://blog.africastalking.com/">Africa&#39;s Talking</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Build a Interactive Voice Response (IVR) application with Africa’s Talking, HapiJS, Docker and…]]></title>
            <link>https://blog.africastalking.com/build-a-interactive-voice-response-ivr-application-with-africas-talking-hapijs-docker-and-7c05fed481ac?source=rss-d318658bf018------2</link>
            <guid isPermaLink="false">https://medium.com/p/7c05fed481ac</guid>
            <category><![CDATA[ivr]]></category>
            <category><![CDATA[software-developer]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[hapijs]]></category>
            <category><![CDATA[heroku]]></category>
            <dc:creator><![CDATA[Anthony Kiplimo]]></dc:creator>
            <pubDate>Thu, 23 Apr 2020 07:58:52 GMT</pubDate>
            <atom:updated>2022-08-10T10:18:23.057Z</atom:updated>
            <content:encoded><![CDATA[<h3>Build a Interactive Voice Response (IVR) application with Africa’s Talking, HapiJS, Docker and Heroku</h3><p><em>Editorial Note: This is a JavaScript version of an earlier article. You can check it out if you’re interested in getting started with Africa’s Talking’s Voice platform with Python. It was really fun writing this, enjoy!</em></p><p>Welcome back! This is a brand new series on creating amazing experiences with just phone calls. No fancy UI. No React. No Angular. Just a voice call. It may seem super simplistic but in reality, everyone makes calls. In light of this, is it possible to create apps that run on phone calls? Yes! That’s what we’ll be doing today.</p><p>We’ll be using Flask, a python micro-framework, and deploying our app on Heroku. We don’t have a database as of now but in a future series we’ll be saving the data from user responses so stay tuned in for that.</p><p>What the app will do</p><p>We’ll be building a simple guessing game that allows peeps to guess how old Africa’s Talking is! This is the current user flow:</p><ol><li>A user will call our number and listen to the instructions</li><li>They will dial in their response on the in-call dial pad</li><li>The app will direct them on whether they have chosen the right answer or not</li></ol><p>There are some challenges with the app, we aren’t able to keep a user in a loop until they get the right answer but we’ll cover this in the next series as we look at slightly mode advanced techniques.</p><h3>Getting Started</h3><p>To get your phone call set up, we are going to be using the Africa’s Talking platform. Africa’s Talking provides APIs that tap into telco infrastructure and makes it easier for developers across Africa to integrate services such as SMS, Voice, USSD, Payments and Airtime. There’s also a brand new IoT platform that you could checkout too.</p><p>To get started, what you need is a programmable number.</p><h3>How the Africa’s Talking Voice API works</h3><p>The platform provides a pretty simple approach to building our Interactive Voice Application through a REST API. Here’s a simple diagram showing how it works:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0dPo2iVoMdSW0ZLs" /></figure><p>Project Setup</p><p>Let’s get started building our app. We’ll get back to Africa’s Talking in a few moments. In the meantime, we’ll be setting up our project with <a href="https://hapi.dev/">HapiJS</a>. HapiJS is built on the idea that code should be more of configuration than anything else and it will shortly become apparent as we get our project set up. To get started, run the following commands on your terminal:</p><pre>mkdir hapi-voice cd hapi-voice</pre><p>Once done, its time to initialise our NodeJS project with NPM:</p><pre>npm init -y npm install @hapi/hapi xmlbuilder</pre><p>Here, we install two key packages:</p><ol><li>@hapi/hapi - This installs the core HapiJS library which comes with quite a few features. We&#39;ll use just the basic ones but you can <a href="https://hapi.dev/tutorials/?lang=en_US">learn more here</a>.</li><li>xmlbuilder - this library allows us to build out our XML without having to write the actual XML which can be a pain. (Check the <a href="https://hashnode.com/post/build-an-interactive-voice-response-ivr-application-with-africas-talking-flask-docker-and-heroku-ck2ncufc8001cfcs1p8h5ifn0">Python tutorial</a> to see how it works).</li></ol><p>Next up, fire up your favorite code editor. I use <a href="https://code.visualstudio.com/">VS Code</a> for JavaScript. TBH, it’s hard to find a more complete editor right now in the market.</p><p>Create a new file server.js that will be our main file. Add in the following code to set up a basic server:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/42b7d0fe1aed4122d6a036c9db350114/href">https://medium.com/media/42b7d0fe1aed4122d6a036c9db350114/href</a></iframe><p>With this code, we’ve set up a server that when loaded up should show you Server running on port: http://localhost:3000 on your terminal.</p><h3>Building your XML</h3><p>We now need to define what our user should here once they dial in their answer to our question. How do we do this? This is where the xmlbuilder library comes in. All it really does is help us write less XML. You can read more about it <a href="https://github.com/oozcitak/xmlbuilder-js">here</a>.</p><p>Let&#39;s get to building our XML responses. Right under our plugin imports, write the following code:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/52c14448b67242b783508e99c94fedfa/href">https://medium.com/media/52c14448b67242b783508e99c94fedfa/href</a></iframe><p>Let&#39;s break down how the XML builder works:</p><ol><li>We create a root XML tag: xmlbuilder.create(&#39;Response&#39;) which will look something like this &lt;Response&gt;&lt;/Response</li><li>We need to create nested elements and we use the ele method to do so: .ele(&#39;GetDigits&#39;, { timeout: &#39;30&#39;, finishOnKey: &#39;#&#39;, callbackURL: &#39;&#39; }) this outputs something like this: &lt;GetDigits timeout=&quot;30&quot; finishOnKey=&quot;#&quot; callbackURL=&quot;&lt;YOUR_APP_URL&gt;/voice/say&quot;&gt;</li><li>We then close a tag using .end and we add in something to the method, { pretty: true } which makes sure our XML is formatted properly.</li></ol><blockquote><em>You can nest as many elements as you want depending on your XML data structure</em></blockquote><h3>Routes and Logic</h3><p>Since we have our responses already laid out, we’ll get to defining some routes and logic that will serve as a flow for your app. There are two key routes we’ll be setting up:</p><ol><li>&quot;/&quot; POST - this route will be hit the first time our app is loaded up</li><li>&quot;/voice/say&quot; POST - this route is loaded once the user hits the # key. The callbackURL will be executed at this time since this is the route we&#39;ll define as our callback URL</li></ol><p>Let’s actually write these routes! Just below the first route that we set up, add this code in:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e8723efbc86a78f39dd2fc9e03ce9292/href">https://medium.com/media/e8723efbc86a78f39dd2fc9e03ce9292/href</a></iframe><p>Let’s break down a couple of things around what we’ve just done:</p><ol><li>The first index route runs when the user first makes the call. We then read out our text. Once the user dials in their answer and hits the # key, we redirect the user using the callbackURL link we provide which follows this pattern: &lt;YOUR_APP_URL&gt;/voice/say.</li><li>Once we are redirected to the /voice/say route, we check if the user entered the right input and provide feedback based on the answer. We get dtmfDigits from the Africa&#39;s Talking API to make the comparisons.</li></ol><p>Once done, we basically have our voice application ready. Next up, we need to prep it for deployment. You can test your endpoints with <a href="https://www.getpostman.com/">Postman</a> or, as I found out today courtesy of Hashnode, <a href="https://postwoman.io/">Postwoman</a>.</p><h3>Deploying to Heroku with a Docker container</h3><p>We’ll be using Heroku in this case to deploy our app and best of all we’ll be using Docker to containerize our application. To get this done, you’ll need a <a href="https://www.heroku.com/">Heroku account</a> and <a href="https://www.docker.com/products/docker-desktop">Docker</a> installed on your machine. Once you have your accounts created, install the Heroku CLI and run the following commands:</p><p>This logs us into the Heroku CLI and the second command gets our Heroku container registry setup. To confirm that you have Docker properly installed, run:</p><p>You should see something like Docker version 19.03.4, build 9013bf5. That&#39;s what I&#39;m running currently.</p><p>Let’s get to deploying this awesome app of ours!</p><p>Docker and containers</p><p>Docker basically ends the “Works on my machine but not in production” problem that so many of us have faced. To make our app a containerized application, we need to create a Dockerfile. To do this, create a new file on your terminal with:</p><p>Open the file and add the following lines:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/07f08fdc306e1d4c1f700883769fd9bf/href">https://medium.com/media/07f08fdc306e1d4c1f700883769fd9bf/href</a></iframe><p>We have essentially finished setting up our container. We just need to run a few commands to get up and running to talk to the Africa’s Talking service.</p><p>Firstly, we will build our container into an image. We ask docker to build this container, tag it voiceapp and use the Dockerfile in this folder.</p><pre>docker build -t hapivoiceapp .</pre><p>Secondly, we will create a heroku app.:</p><p>We now have a project on Heroku that can actually host our application. The Heroku CLI displays it on your terminal. We then set up heroku to take our container for deployment:</p><p>The container will be published but it’s still not live. Next, we make it live with this command:</p><pre>heroku container:release web</pre><p><strong><em>We are now live!!!!</em></strong></p><p>You can view your application on your <a href="https://dashboard.heroku.com/">Heroku dashboard</a> or view logs from the container using:</p><blockquote><em>Remember to add in the link to your </em><em>/voice/say route as soon as you&#39;re live</em></blockquote><h3>Connecting to the Africa’s Talking Voice Dashboard</h3><p>Now that our app is live, we head to the <a href="https://account.africastalking.com/">Africa’s Talking dashboard</a> . If you don’t have an account, signing up is super easy. Once it&#39;s all set up, create a team and an app that you would use. We currently are still working on getting the Voice sandbox out hence we’ll be heading to a live account immediately. Head over to the <a href="https://account.africastalking.com/apps/axgldhaeaz/voice/phones">Voice tab</a> and you should be able to see the number assigned to you. You won’t need an API key for this product.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*iURW_gsxq-jG-DPi" /></figure><p>Using the link that we have from Heroku, we set it as the callback URL. And that’s it. Give your number a call and enjoy a nice <em>interactive voice response</em> system right there!</p><h3>Summary</h3><p>Today, we built an IVR application with some basic functionality. This is a taste of the power of Africa’s Talking APIs. I would love to know what awesome apps you can build using this tech and we’ll be giving away numbers to developers and start-ups with great ideas on how to use this tech. You can fill out this form and we’ll get back to you ASAP! Can’t wait to see what awesome software comes out of this.</p><h3>Next Steps</h3><p>Next up, we’ll be covering a little more advanced techniques around Voice and USSD. If you have cool apps you’ve built on Africa’s Talking, <a href="https://bit.ly/AT-Customer-Story">share them in an article</a> and we’ll give you a shout-out! (and some swag too!!! 😁)</p><p>To learn more about Africa’s Talking products:</p><ol><li>AT Build Documentation: <a href="https://developers.africastalking.com/">https://developers.africastalking.com/</a></li><li>More on our culture on our blog: <a href="https://blog.africastalking.com/">https://blog.africastalking.com</a></li><li>Join our Freelance Developer community: <a href="https://chat.whatsapp.com/GPGQykkKcupIpjVJZEtZiW">WhatsApp</a>, <a href="https://anthonylimo.hashnode.dev/Link">Facebook</a></li></ol><p><em>Originally published at </em><a href="https://anthonylimo.hashnode.dev/build-a-interactive-voice-response-ivr-application-with-africas-talking-hapijs-docker-and-heroku-ck2ufbsji005j1es1dn46h7k6"><em>https://anthonylimo.hashnode.dev</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7c05fed481ac" width="1" height="1" alt=""><hr><p><a href="https://blog.africastalking.com/build-a-interactive-voice-response-ivr-application-with-africas-talking-hapijs-docker-and-7c05fed481ac">Build a Interactive Voice Response (IVR) application with Africa’s Talking, HapiJS, Docker and…</a> was originally published in <a href="https://blog.africastalking.com/">Africa&#39;s Talking</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Feel]]></title>
            <link>https://medium.com/@anthonylimo90/feel-78c86c1343ae?source=rss-d318658bf018------2</link>
            <guid isPermaLink="false">https://medium.com/p/78c86c1343ae</guid>
            <category><![CDATA[life]]></category>
            <category><![CDATA[poetry]]></category>
            <category><![CDATA[poems-on-medium]]></category>
            <dc:creator><![CDATA[Anthony Kiplimo]]></dc:creator>
            <pubDate>Thu, 03 Oct 2019 18:00:28 GMT</pubDate>
            <atom:updated>2019-10-03T18:01:42.763Z</atom:updated>
            <content:encoded><![CDATA[<h4>A poem</h4><figure><img alt="Photo by Benjamin Ranger on Unsplash" src="https://cdn-images-1.medium.com/max/1024/1*Iyvxb3DvDJcd-37JNmsY9g.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@benjaminranger?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Benjamin Ranger</a> on <a href="https://unsplash.com/s/photos/feel?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>I wanted to be free. I didn’t want to believe; I wanted to know.</p><p>I wanted to feel broken. I wanted to fail; to cry.</p><p>I wanted to lose. Just for a moment. So that maybe, just maybe, I’d know what it is to be happy.</p><p>So that those small, unintentional moments of a smile, a touch or a glow from a warm sunny Sunday could be savored.</p><p>I’m learning to treasure it all.</p><p>Keeping it close to my heart.</p><p>The things I found.</p><p>The people I loved.</p><p>The family I found.</p><p>All this, so that for just a moment, I could <em>feel</em>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=78c86c1343ae" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Chasing Red Dragons]]></title>
            <link>https://medium.com/@anthonylimo90/chasing-red-dragons-c4eb6264d15a?source=rss-d318658bf018------2</link>
            <guid isPermaLink="false">https://medium.com/p/c4eb6264d15a</guid>
            <category><![CDATA[fiction]]></category>
            <category><![CDATA[short-story]]></category>
            <category><![CDATA[love]]></category>
            <category><![CDATA[short-fiction]]></category>
            <dc:creator><![CDATA[Anthony Kiplimo]]></dc:creator>
            <pubDate>Mon, 01 Apr 2019 08:31:04 GMT</pubDate>
            <atom:updated>2019-04-01T08:31:04.002Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZRYGNU_WWtclcfck6jYg2w.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/photos/X-A-LJVAhzk?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Clint Bustrillos</a> on <a href="https://unsplash.com/search/photos/red-dragon-tattoo?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>“You are actually super funny,” James said placing his drink back on the counter.</p><p>“You thought different?”</p><p>“Maybe. Maybe I did”</p><p>Naomi laughed. There was a look in her eye. The kind that makes you want to say things that you normally wouldn’t say. Her hair was tied in a bun at the top of her head. Think of a sumo wrestler but shorter, much slimmer, curvy and the cutest face James had ever seen in his life.</p><p>“Where are you headed from here?”</p><p>“Nowhere in particular. Probably back home.”</p><p>James smiled and looked down at his phone. It was closing in on midnight.</p><p>“Had plans in mind?” Naomi asked teasingly.</p><p>“Not really, “ James paused and looked at her with a charming half smile, “We could go to my place if you’re up for it.”</p><p>She smiled and picked the napkin off the counter. She rested it on her purse and scribbled her number on it.</p><p>“Not tonight, playboy”, she said passing it to James, “But call me sometime. I’d love to hang out again”</p><p>He was flush for a moment. Nothing excites like heading out for a party and leaving with a pretty girl’s number. That and having all your taxes waived for the rest of your life.</p><p>“I will make sure that happens.”</p><p>Naomi smiled, gave him a peck on the cheek and dissolved into the crowd. She was gone but James could still feel her lips on his cheek. He had made it. This was a good night. Time to party for real. He looked at the phone number. Too hard to cram. He placed it in his jacket pocket. He closed his eyes to make a mental note.</p><p>“Call her tomorrow”</p><p>Normally, alarms wake people up. James was often up before the alarm. He waited for its instruction to get out of bed. It was a routine. Perfected the second. Today, he didn’t feel like getting up but the workplace beckons.</p><p>“Why do we even work?” he grumbled as he left his bed to look for some coffee. Much needed coffee. At this point, it was the best part of his day. Making coffee. Wait. Brewing coffee. Deep down, he had resentment for people who made coffee with dissolvable granules. That was cheating. That is escaping ritual.</p><p>Grind the beans. Take the ground beans and pour them into the coffee filter. Pour in the water. Turn the coffee maker on. Wait. Time to do something else as the coffee machine sucks the black caffeinated juice out of the beans and mixes them in with hot water.</p><p>“Couples on Instagram suck” James mumbled as he brushed his teeth. It seemed like these days, everyone was hitched. Everyone was seemingly happy. Even though he didn’t wish anyone hard, low key, he wished they would all end. Then, everyone will be miserable and everyone will understand his side of the story.</p><p>“Don’t worry man, the right girl will come along and you’ll be all smiles again”. Steve said this as they had coffee a week ago. He was one of the happy ones.</p><p>“I hope so too but I really want to see Naomi again”</p><p>“First of all losing her number was your fault.”</p><p>“Regardless”</p><p>“You will see her. Someday. But you can’t focus on that all the time. You’re missing out on the world man. Yo, that girl on second floor at the artsy place likes you, man. You should ask her out”</p><p>“No. Doesn’t work like that”</p><p>“It does. Already gave her your number.”</p><p>James freaked out.</p><p>“Why on God’s green earth would you do that? Why?”</p><p>“Because you’re sad and lonely. Plus, it’s just a date. Talk to her. See where it goes.”</p><p>James sighed, “It’s going nowhere trust me. You know where my heart is and it beats me why you’re making me do this”.</p><p>“Get laid then tell me later” They laughed. For a moment, it took James to a place where things weren’t as sticky as they were now.</p><p>“Okay. I’ll do it. Friday?”</p><p>“Friday it is!”. With no hesitation, Steve pulled out his phone and texted Doreen. The girl from the artsy place on second floor. James didn’t flinch. Looked down at his coffee wondering if they should have gone to a better coffee joint. The coffee was terrible.</p><p>“Holy noodles!” As James was brushing his teeth, he glanced at the date at the top right corner of his phone. It was Friday. Today, he meets Doreen. In a frenzy, he puts on his jeans and a random t-shirt and dashes to the kitchen. The coffee is ready. Time to bounce.</p><p>“Hey, I’ll meet you at Hope’s Coffee in a bit. Running a little late”. The text was sent as a green bubble. People who didn’t have iPhones were missing out. Their loss. He glanced at his emails to see if any urgent matters had popped up. Nothing. Good. The Uber app estimates 15 minutes to the coffee shop meaning he had some time to compose himself before he showed up. The first thing that came to his mind was Naomi’s face. She was dancing that night when they met. Her movement was forever engrained in his mind. As she danced the red dragon tattoo on her arm seemed to pulse under the strobe lights. It was that one mental GIF that was always at the back of his mind. He smiled. Gently. For a brief second, Nirvana.</p><p>“Hey, Doreen right?”</p><p>“Yeah! Glad to finally meet you”. She hugged him. He wasn’t expecting this level of intimacy on the first date but he went with the flow.</p><p>For James, this was a meet and greet. He was wary that this was not the same for Doreen. Nonetheless, she was quite the looker. Her natural hair was nice and fluffy and she had the curves of a true African queen. Maybe this wouldn’t be too bad. Maybe.</p><p>“You’re a funny guy. Just a nice add on that you’re cute”. She was flirting. This was thirty minutes into the date. James in a way liked it. She was good at conversations which made him for a moment forget everything around him. Maybe Steve was right. This could be worth it. The key word here was could. Even as they talked, James still found himself replacing her with Naomi. Imagining sharing this very exact moment with her. But this was Doreen. Just a gentle, mental reminder.</p><p>Jame’s phone buzzed. He tried to ignore it but you never know. Maybe somehow Naomi found his number on a random notice board about guys who lost the love of their lives. However, this was not Naomi. This was his boss asking where he’s been for the last two hours.</p><p>Now, these are some of those moments where all the things that you thought you cared about; love, family or even yourself, completely disappear.</p><p>“I have to leave. My boss will kill me.”</p><p>“Late to work? You should work in an art gallery. Would suit you.”</p><p>“Very funny but I need to get to work. I’ll see you around” He rushed out to catch a taxi or a boda-boda. No time for waiting for apps to call vehicles. He looked around. There was a taxi on the other side of the road. Thank God.</p><p>Black.</p><p>In a flash, everything was black. James couldn’t move. Even his eyelids were heavy.</p><p>“What is this?”</p><p>“You’re fine sir. Just stay with me. Can you open your eyes for me?”</p><p>James, with every single piece of strength he could muster, managed to open his eyes. He couldn’t see much. Everything was blurry. There was someone over his. Every part of him felt cold.</p><p>“Good. You’ve been in an accident, sir. Try and stay with me. You’ll be alright”</p><p>The voice. It was familiar. His eyes were beginning to find some focus. Someone was holding his head. He couldn’t see them but he could begin to feel the latex glove on his head. Probably a paramedic. He turned his head slightly and saw a dragon. The red dragon. A fire was burning throughout his whole body. This is what adrenalin feels like when you’re half dead. Some energy was coming back to him. He raised his hand and placed it on the dragon.</p><p>“I’ve been chasing this dragon for a long time”</p><p>“James?”</p><p>“Finally…”</p><p>Darkness.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c4eb6264d15a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Facing Anxiety]]></title>
            <link>https://medium.com/@anthonylimo90/facing-anxiety-fbc965a533ac?source=rss-d318658bf018------2</link>
            <guid isPermaLink="false">https://medium.com/p/fbc965a533ac</guid>
            <category><![CDATA[life-lessons]]></category>
            <category><![CDATA[anxiety]]></category>
            <dc:creator><![CDATA[Anthony Kiplimo]]></dc:creator>
            <pubDate>Sun, 31 Mar 2019 16:39:43 GMT</pubDate>
            <atom:updated>2019-03-31T16:39:43.630Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-EH48yX3S7pgsPsac4zsEw.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/photos/VBe9zj-JHBs?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Aarón Blanco Tejedor</a> on <a href="https://unsplash.com/search/photos/anxiety?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>I’ve always found myself in a place where I was confident in what I was doing. Some people call it over-confidence but others could call it naivety, depends on what floats your boat. Last week, for the first time in my adult life I faced anxiety. Like the kind that keeps you up at night wondering both consciously and subconsciously.</p><p>I’ve always been worried about everything but always found a way to deal with whatever was going on and I made the necessary changes. However, what happens when you’re not sure about what’s supposed to happen next? What happens when you can’t see the end game of your actions? It’s the fear of the unknown and it’s goddamn painful.</p><p>I’m not here to tell you how I beat it or some buddha like rant on how to deal with things but I have found some solace in a few things that I guess wouldn’t hurt to share.</p><p>First off, remember to be grateful. Consciously grateful. It’s easy to get lost in what is to come and what should happen but focusing on that always placing you in a position where you never get to truly appreciate where you are in life and what matters. When you hone in on the now, you see your family, your friends, your work and yourself. It opens up new opportunities in the now, not in the future. The past informs who we are and the present is the place where we shape the future. So don’t dwell too much on what the future looks like. If you get it right in the now, fate will bring what you deserve.</p><p>I have made many decisions focusing on the future and forgetting that I am here now. In the now. Not the future despite what tech blogs may lead you to believe. And in making those decisions, I have made many mistakes that still haunt me and easily fuel my anxiety. Making that conscious decision to focus on the now has helped alleviate my condition.</p><p>I hope you do the same. We’re here now. Not tomorrow. Not yesterday. Not 10 minutes ago. Now. Be here. Now.</p><p><em>Listening to Logic’s stuff has helped as well. I like the message he puts out. I hope you find the same solace that I found knowing that lots of people are in this boat and you are not alone. We’re all on this spinning ball made of rock trying to figure things out.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fbc965a533ac" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>