<?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 Malende Fahad on Medium]]></title>
        <description><![CDATA[Stories by Malende Fahad on Medium]]></description>
        <link>https://medium.com/@malendefahad?source=rss-b600426ceb6e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*FUDwNzqX0h37DyWIQg7vAQ.jpeg</url>
            <title>Stories by Malende Fahad on Medium</title>
            <link>https://medium.com/@malendefahad?source=rss-b600426ceb6e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 00:29:16 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@malendefahad/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[Getting started: MTN Mobile Money API with Python]]></title>
            <link>https://medium.com/@malendefahad/getting-started-mtn-mobile-money-api-with-python-7486148d650e?source=rss-b600426ceb6e------2</link>
            <guid isPermaLink="false">https://medium.com/p/7486148d650e</guid>
            <category><![CDATA[mobile-money]]></category>
            <category><![CDATA[mtn]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[innovation]]></category>
            <dc:creator><![CDATA[Malende Fahad]]></dc:creator>
            <pubDate>Fri, 16 Nov 2018 14:11:03 GMT</pubDate>
            <atom:updated>2019-05-07T10:10:23.489Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oGWlSpwkaalL9pqT_ArXeA.png" /><figcaption>Screenshot of the momo developer website</figcaption></figure><p>Recently, MTN Uganda <a href="https://www.dignited.com/37031/mtn-uganda-opens-mobile-money-api/">announced</a> the official opening up of their mobile money platform to the developer community to foster innovation and improve financial inclusion. Developers will no longer need to go through painful bureaucracy with MTN headquarters or integrate with payment aggregators to leverage the power of MTN mobile money in their applications.</p><p>This is a step by step tutorial to show you how to integrate your python application with the MOMO api.</p><p>Steps summary:</p><ol><li>Sign up for an account</li><li>Get a product subscription key</li><li>Create an API user</li><li>Create an API key</li><li>Generate a JWT token</li><li>Make authenticated API requests</li></ol><h4>1. Sign up for an account</h4><p>Head over to <a href="https://momodeveloper.mtn.com/">https://momodeveloper.mtn.com/</a> and create your account. Once created, verify your account and sign in to the developer dashboard.</p><h4>2. Get a product subscription key</h4><p>The momo developer API is segmented into different products. Like; Collections, Remittances, Disbursement, and a collections widget. <a href="https://momodeveloper.mtn.com/products">Find and Subscrib</a>e to the product that your application will be using. For the case of this tutorial, we shall subscribe to the collections product. It enables us to make a remote collection of fees and bills. Once subscribed, you shall be able to get a <strong><em>primary subscription key</em></strong> and a <strong><em>secondary subscription key</em></strong> in your <a href="https://momodeveloper.mtn.com/developer">developer dashboard</a>.</p><h4>3. Create an API user</h4><p>The MOMO api relies heavily on uniquely identifying ID’s called UUIDs. python has a UUID library that can be used to generate random UUIDs. So you shall need to create one of those like this;</p><pre>import uuid</pre><pre>reference_id = str(uuid.uuid4())<br>print(reference_id)</pre><p>To create an api user, you shall then have to make a POST request at this endpoint /v1_0/apiuser. Here is a sample python code snippet.</p><pre>########### Python 2.7 #############<br>import httplib, urllib, base64, uuid,json</pre><pre>headers = {<br>    # Request headers<br>    &#39;X-Reference-Id&#39;: &#39;&lt;put-your-reference-id-here&gt;&#39;,<br>    &#39;Content-Type&#39;: &#39;application/json&#39;,<br>    &#39;Ocp-Apim-Subscription-Key&#39;: &#39;&lt;put-your-primary-subscription-id here&gt;&#39;,<br>}</pre><pre>params = urllib.urlencode({})</pre><pre>body = json.dumps({<br>  &quot;providerCallbackHost&quot;: &lt;your application domain&gt; })</pre><pre>try:<br>    conn = httplib.HTTPSConnection(&#39;ericssonbasicapi2.azure-api.net&#39;)<br>    conn.request(&quot;POST&quot;, &quot;/v1_0/apiuser?%s&quot; % params, body, headers)<br>    response = conn.getresponse()<br>    print(response.status)<br>    print(response.reason)<br>    data = response.read()<br>    print(data)<br>    conn.close()<br>except Exception as e:<br>    print(&quot;[Errno {0}] {1}&quot;.format(e.errno, e.strerror))</pre><pre>####################################</pre><p>This creates your api user, <strong>not your api key</strong>. We shall create an API key in the next step.</p><h4>4. Create your API key.</h4><p>Use the reference ID generated above when creating your API user to generate an API key. You shall need to make a POST request to /v1_0/apiuser/&lt;put-your-reference-id-here&gt;/apikey to generate your api key. Below is a sample python code snippet.</p><pre>########### Python 2.7 #############<br>import httplib, urllib, base64, uuid,json</pre><pre>headers = {<br>    # Request headers<br>    &#39;Content-Type&#39;: &#39;application/json&#39;,<br>    &#39;Ocp-Apim-Subscription-Key&#39;: &#39;&lt;put-your-primary-subscription-id here&gt;&#39;<br>}</pre><pre>params = urllib.urlencode({</pre><pre>})</pre><pre>body = json.dumps({<br>  &quot;providerCallbackHost&quot;: &lt;your application domain&gt; })</pre><pre>try:<br>    conn = httplib.HTTPSConnection(&#39;ericssonbasicapi2.azure-api.net&#39;)<br>    conn.request(&quot;POST&quot;, &quot;/v1_0/apiuser/&lt;put-your-reference-id-here&gt;/apikey?%s&quot; % params, body, headers)<br>    response = conn.getresponse()<br>    print(response.status)<br>    print(response.reason)<br>    data = response.read()<br>    print(data)<br>    conn.close()<br>except Exception as e:<br>    print(&quot;[Errno {0}] {1}&quot;.format(e.errno, e.strerror))</pre><pre>####################################</pre><p>The response will be a JSON object with an api key.</p><pre>201<br>Created<br>{&quot;apiKey&quot;:&quot;&lt;api key string here&gt;&quot;}</pre><h4>5. Generate a secure JWT token</h4><p>The last step in your authentication steps will be generating a JWT token. To know how these work, visit <a href="http://jwt.io/">jwt.io</a>. To generate your token you shall need to make an authenticated POSTrequest to the /colection/token endpoint.</p><p>Your request needs basic auth. that implies that you should create a string with api user and api key like this uuid-string-for-api-user:api-key-string and then encode it with the base64 library. The encoded string is attached to the Authorization header of your request.</p><p>Below is a sample python code snippet.</p><pre>########### Python 2.7 #############<br>import httplib, urllib, base64</pre><pre>api_user = &lt;replace with api user&gt;</pre><pre>api_key = &lt;replace with api key&gt;</pre><pre>api_user_and_key  = api_user+&#39;:&#39;+api_key</pre><pre>encoded = base64.b64encode(api_user_and_key)</pre><pre>headers = {<br>    # Request headers<br>    &#39;Authorization&#39;: &#39;Basic &#39;+encoded,<br>    &#39;Ocp-Apim-Subscription-Key&#39;: &#39;&lt;put-your-primary-subscription-id-here&gt;&#39;,<br>}</pre><pre>params = urllib.urlencode({<br>})</pre><pre>try:<br>    conn = httplib.HTTPSConnection(&#39;ericssonbasicapi2.azure-api.net&#39;)<br>    conn.request(&quot;POST&quot;, &quot;/collection/token/?%s&quot; % params, &quot;{body}&quot;, headers)<br>    response = conn.getresponse()<br>    print(response.status)<br>    print(response.reason)<br>    data = response.read()<br>    print(data)<br>    conn.close()<br>except Exception as e:<br>    print(&quot;[Errno {0}] {1}&quot;.format(e.errno, e.strerror))</pre><pre>####################s################</pre><p>The response will contain your secure token that can be used to interact with other parts of the API. It will look something like this</p><pre>200<br>OK<br>{&quot;access_token&quot;:&quot;eyJ0eXAiOiJKV1QiLCJhbGciOiJSMjU2In0.eyJjbGllbnRJZCI6IjQ2MmU1MzNmLTZkYjYtNDk4Ci04OTljLTBhNmRkY2E2ZDE5NSIsImV4cGlyZXMiOiIyMDE4LTExLTE2VDEzOjA1OjByLjExNyIsInNlc3Npb25JZCI6IjAxZGZlZDdlLTI5OGUtNDA5YS05NmI0LWJmODA0OWVkMzA5NCJ9.CureJ3-LnPCUpUAlB9oknqukQalqO1milbh4kBT3L6QTC7EJLApB46sEFszQ53hazvz_HvPIbAO20SxMQtrHN-VVGl8tZN92cAzO-nNdqts8s0LCdGY_Cjjk81ZL3v2cqv9bPxrzB8dp1i-YE6UePRSEqzROmzaywqazEntVYvQ66--uraaV1kdVp-1Gjo658ATu1uJtkWx6tvDD0j227a24gu5_3OoluAErcni3ziKtbKtk5Evu-WAPjcr6FyZrvfmMbkCYvN8NCem2VUe8RV5zL5K-1EKrSsHhsinsYZrS3kTblxPz8Z5t9OHgwH2HRZO_ITCYeiyVFwYMVFJktg&quot;,&quot;token_type&quot;:&quot;access_token&quot;,&quot;expires_in&quot;:3600}</pre><h4>6. Make Authenticated API requests</h4><p>With a valid JWT token at hand. you now wield the power to interact with most of the api endpoints. you can now interact with all endpoints of the product such as. <em>collecting</em> a payment from a mobile subscriber, <em>sending</em> out remittances, etc</p><p>Below is a simple use case for collecting an amount of UGX 5000 from a mobile subscriber.</p><pre>########### Python 2.7 #############<br>import httplib, urllib, base64, uuid,json</pre><pre>token = &lt;replace with token&gt;<br>reference_id = str(uuid.uuid4())</pre><pre>headers = {<br>    # Request headersi<br>    &#39;Authorization&#39;: &#39;Bearer &#39;+token,<br>    &#39;X-Callback-Url&#39;: &lt;replace with own http://myapp.com/momoapi/callback&gt;,<br>    &#39;X-Reference-Id&#39;: refrence_id,<br>    &#39;X-Target-Environment&#39;: &#39;sandbox&#39;,<br>    &#39;Content-Type&#39;: &#39;application/json&#39;,<br>    &#39;Ocp-Apim-Subscription-Key&#39;: &#39;&lt;put-your-primary-subscription-id-here&gt;&#39;,<br>}</pre><pre>params = urllib.urlencode({})</pre><pre>body = json.dumps({<br>  &quot;amount&quot;: &quot;5000&quot;,<br>  &quot;currency&quot;: &quot;UGX&quot;,<br>  &quot;externalId&quot;: &quot;12345&quot;,<br>  &quot;payer&quot;: {<br>    &quot;partyIdType&quot;: &quot;MSISDN&quot;,<br>    &quot;partyId&quot;: &quot;0780123456&quot;<br>  },<br>  &quot;payerMessage&quot;: &quot;test message&quot;,<br>  &quot;payeeNote&quot;: &quot;test note&quot;<br>})</pre><pre>try:<br>    conn = httplib.HTTPSConnection(&#39;ericssonbasicapi2.azure-api.net&#39;)<br>    conn.request(&quot;POST&quot;, &quot;/collection/v1_0/requesttopay?%s&quot; % params, body, headers)<br>    response = conn.getresponse()<br>    print(response.status)<br>    print(response.reason)<br>    data = response.read()<br>    print(data)<br>    conn.close()<br>except Exception as e:<br>    print(&quot;[Errno {0}] {1}&quot;.format(e.errno, e.strerror))</pre><pre>####################################</pre><p>And that’s it. Hope this guide becomes the first step to you building something wonderful. Please clap and leave your feedback below.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7486148d650e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The silent super power of adaptability]]></title>
            <link>https://medium.com/@malendefahad/the-silent-super-power-of-adaptability-dc0779fdfde1?source=rss-b600426ceb6e------2</link>
            <guid isPermaLink="false">https://medium.com/p/dc0779fdfde1</guid>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[andela]]></category>
            <category><![CDATA[growth-mindset]]></category>
            <category><![CDATA[adaptability]]></category>
            <dc:creator><![CDATA[Malende Fahad]]></dc:creator>
            <pubDate>Mon, 01 Oct 2018 13:23:47 GMT</pubDate>
            <atom:updated>2018-10-01T13:23:47.627Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/519/1*nuuYbrf4R7NPooZV_ik1fQ.jpeg" /></figure><p>Today we shall talk about how change can be scary yet inevitable for something better you hope to acheive. Thomas Jefferson once said:</p><blockquote>“To have what you have never had before, you must be willing to do what you have never done.”</blockquote><p>Every life coach/inspirational speaker/mentor etc talks about how important doing new things is if you hope for better results. Which is quite obvious when you think about it. Our entire lives consist of activities that were once daunting and very tasking to accomplish. But with iterative effort and determination we now take them for granted. For example, a child that can crawl and has no idea how to walk sees those that walk as superheroes. The child then iteratively tries to stand and walk as it falls. At that stage, it takes a whole lot of effort to accomplish a single task of standing up and falling back down. But as time goes by, the child stands and walks and then runs then grows up to consider the act of walking as a very mundane task that is taken for granted.</p><p>So many years ago, I got introduced to computers, It was an exciting experience because these machines would do whatever you asked them to do. It turned anyone into a master. Then much later on, I got introduced to the world of instructing computers how to do whatever you want them to do. It was an exciting proposition. I wondered, if those that fully understand the use of software tools and hardware handling are masters then what of those that fully understand the making of the software tools and hardware tools?</p><p>All this fancy of technology spearheaded my journey into electrical and electronics engineering, software programing, firmware design etc. But at the foundation of this long journey, is challenge and frustration after frustration. The only thing that gets you through is <strong>adaptability</strong>.</p><p>Adaptability is accomplished by being okay with change. For example, my college professor wrote this code in our first lecture on the board four years ago:</p><pre>#include&lt;stdio.h&gt;<br>int main(){</pre><pre>  printf(&quot;hello, world!&quot;);<br>  return 0;</pre><pre>}</pre><p>He introduced us to the world of computer programming with C. He preached how pieces of software govern life, they are scattered everywhere in the world and whoever mastered this art would be one of the few to fully concur the world. Almost everyone that day left excited about writing their own tools and reading up on C programming. The college library ran out of the famous <a href="https://www.goodreads.com/book/show/2522685.Let_Us_C">“Let to C”</a> textbook. Personally, I wanted to build tools that were more advanced than this. With the same language and tools shown to me. As several programming lectures and programming challenges stockpiled. Most of us (including me) realized that maybe this wasn’t our divine calling.</p><p>Frustrations started piling up much faster than I could handle.</p><p><strong>Frustration 1:</strong></p><p>Programming is exciting, when at the problem statement. when you start typing down the code, you are going to type wrong things. they are called bugs.</p><p><strong>Frustration 2:</strong></p><p>Fixing errors in your program, will not sometimes, but most times bring you new bugs.</p><p><strong>Frustration 3:</strong></p><p>What you know already is not enough to accomplish the tool you want to build. you need to do research and go back and learn and plan. Long tiring hours ahead.</p><p><strong>Frustration 4:</strong></p><p>Even when you build a tool and complete it, it is not done. A software is fully built when no one needs it anymore. You are in a cycle of never ending work.</p><p>After going through each of these and more, early on while building basic command line tools, I gave up on several projects, fell back on milestones, and intentionally let most of my<a href="https://en.wikipedia.org/wiki/Software_rot"> “code rot”</a>. But what never went away was the desire to build complex tools that the entire world can use and be proud of. I knew I had to do something about all these limitations and adapt to this broad new engineering world I was setting foot into. So I had to quickly identify the key things that I disliked about this new world and find a way of being okay with them. I then had to learn to move from “it doesn’t work, am done.” to “it doesn’t work, ask X” then to reading documentation, checking reference texts, asking peers, etc. I knew that if I were okay with failure, I wouldn’t loose hope that it can be fixed and also will subsequently have ideas on how to fix what’s wrong. After mastering that, everything started falling into place. From 15 line C programs to more functional and more useful ones. Then dipped a little into C#, and then Java and hen Assembly then Javscript and python. From console development and firmware development to web development, mobile development etc. From Algorithms and data structures, SQL and Databases, Security etc Each uniquely challenging but adaptability to all has always been the same. I don’t consider myself an expert at anything that I do but reviewers have repetitively considered it “good enough”.</p><p>Now as I focus less on scalling horizontally (more ways) and focus more on scalling vertically (better of the same ways), I face a fresh set of challenges that I have never seen before. But if I adapted to doing things I had considered not meant for me, I can do it all over again.</p><p>If you are at that point in life where the accomplishment you look towards seems very challenging, remember Bojack Horseman once said:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2RlRLme-OCHBYVBBu5MYdA.jpeg" /></figure><p>Thanks for reading.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dc0779fdfde1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My A-Team at Andela bootcamp.]]></title>
            <link>https://medium.com/@malendefahad/my-a-team-at-andela-bootcamp-1398705a5b35?source=rss-b600426ceb6e------2</link>
            <guid isPermaLink="false">https://medium.com/p/1398705a5b35</guid>
            <category><![CDATA[andela]]></category>
            <dc:creator><![CDATA[Malende Fahad]]></dc:creator>
            <pubDate>Wed, 26 Sep 2018 12:45:56 GMT</pubDate>
            <atom:updated>2018-09-26T12:45:56.220Z</atom:updated>
            <content:encoded><![CDATA[<p>Recently, I applied at Andela. I went through the complex hiring process and got into bootcamp. On day 1 of bootcamp, we were assigned LFAs and put into teams. This post is going to be about the great guys in my team.</p><p>There is Phiona Basemera our LFA, Ntale Shadiq, Francis Kiryowa, Sam Rubarema, Kawalya Andrew and me. This team is quite interesting and unique in many ways. The diversity of characters, passions, backgrounds and abilities is something you can’t miss on the very first day.</p><p>Andela is a unique company, it gives anyone with the skills and passion to take a shot at being a world class developer. That is how I got to be with Andrew on my team. Andrew is a chef but it seems like he makes more than just food, he makes software too. After a short chat with this guy, he’s passion and skills at the different programming languages and development skills can’t be missed. He has an unshakable dedication at making a career shift to join the tech industry.</p><p>Francis is a software engineer by profession. He’s smart and collaborative, always helping the team rise out of their blockers and staying ahead.</p><p>Ntale is from a similar background like francis, He’s the guy that can get you out of a ditch you had no idea how to rise out of. He’s quite knowledgeable and good at what he does. He’s the guy that helped me fix my version control issues on Bootcamp day 1 in a couple of minutes.</p><p>Have Imentioned Sam and Phiona? Sam is the guy that drops the first “good morning” on the team’s slack and checks on everyone to know they are all making progress. Phiona on the other hand does Learning Facilitation, if we were a basketball team she would be the cheerleader+coach+manager all fused into one person. Hope you get it. Anyway, that’s my A-Team at bootcamp. Hope we all become who we hope to be. What do you think of us? Let me know in the responses below.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1398705a5b35" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[“Formal” web development — Writing Code for more than computers]]></title>
            <link>https://medium.com/@malendefahad/diving-into-formal-web-development-has-been-a-roller-coaster-ride-over-the-past-few-weeks-11f0ceb1a2fa?source=rss-b600426ceb6e------2</link>
            <guid isPermaLink="false">https://medium.com/p/11f0ceb1a2fa</guid>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[tdd]]></category>
            <category><![CDATA[programming-paradigms]]></category>
            <dc:creator><![CDATA[Malende Fahad]]></dc:creator>
            <pubDate>Mon, 24 Sep 2018 11:01:24 GMT</pubDate>
            <atom:updated>2018-09-24T11:04:09.585Z</atom:updated>
            <content:encoded><![CDATA[<p>Diving into formal web development has been a roller-coaster ride over the past few weeks. I come from an electronics background. Electrical CAD, prototyping devices with Arduino and raspberry PI is what I know well. At some point, one of my IOT projects required controlling an electrical device over the Internet. I was using the ESP8266 Arduino wifi module that had to connect to the Internet and communicate via sockets with a web server. After a couple of Google searches and hours of work I had managed to build my first web server. It was written in javascript on the nodejs framework. nodejs was easy to dive into because of prior experience with the javascript Language.</p><p>My first web server looked something like:</p><pre>var express = require(&#39;express&#39;);<br>var app = express();<br>var switchState = false;</pre><pre>app.get(&#39;/switch&#39;,function(req,res,next){<br>   switchState = !switchState;<br>   res.send(&#39;done&#39;);</pre><pre>});<br>app.listen(5000);</pre><p>Though, after successfully running that, and my devices working. It looked like the new world of backend development was going to be easy and fruitful. And indeed it was, up to some point. Since there is a significant difference between apps you build for fun as one time hacks and apps you build for the long term, or on teams, or for clients. It dawned on me that having your code run is not actually enough to consider it complete. There are things like programming practices that are very important. Things like version control, test driven development, etc were necessary too.</p><p>That is when I got to “formal” web development. I had to learn about git beyond the basics of git init push, pull, commit. It is one of those things that you have to always do but feel reluctant to learn how to do it. You always have the option to just find someone else to do it for you or skip it out completely. The motivation for this reluctance is that these actions are important but do not provide immediate validation the way a successful compile does. But I knew if I were to turn into the person i want to become, I had to push myself and learn how version control and git is properly done.</p><p>My recent project, “fast food fast” allows a restaurant owner to setup a menu and customers to book fast food items through the internet. From a hacking standpoint, this looks like a site you up in a couple of hours but, If you have to write code that will work well, for a very long time and will be read by other humans as well. Then it is important to adhere to formal programming practices. I pushed myself to learn and follow Testing, user stories, version control and team collaboration throughout the development process. Now I have a project whose code can both run and can be read and improved upon by someone else. Formal web development has been a great learning experience. Thanks for reading this far, I would appreciate if you hit the clap and leave some actionable feedback in the comments.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=11f0ceb1a2fa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The road to electrical lighting]]></title>
            <link>https://medium.com/@malendefahad/in-this-post-i-want-to-share-my-understanding-of-lamps-today-as-i-know-it-533ae3f94ee9?source=rss-b600426ceb6e------2</link>
            <guid isPermaLink="false">https://medium.com/p/533ae3f94ee9</guid>
            <category><![CDATA[electrical-engineering]]></category>
            <category><![CDATA[inventions]]></category>
            <category><![CDATA[energy]]></category>
            <category><![CDATA[candles]]></category>
            <category><![CDATA[life]]></category>
            <dc:creator><![CDATA[Malende Fahad]]></dc:creator>
            <pubDate>Sat, 26 Aug 2017 11:24:04 GMT</pubDate>
            <atom:updated>2017-08-26T11:27:16.643Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*QQtVtXG-cU1H8fbTqeFPTw.jpeg" /></figure><p>In this post, I want to share my understanding of lamps today as I know it. Am not a genius at this but neither are most people so please read along. <br>Let me first talk about lighting in general, mankind for ages has sought for a way to light up his home when the sun goes down. If we look back at where we have come from as a species, our ancestors rubbed stones together and made a fire. With this fire, they were able to torch pieces of wood to give them light. They not only used it for light but they also needed it for heating during cold nights. Fast forward later, there was the invention of wax. A thin thread-like strand called a wick was fitted along the centre of a cylindrical block of wax to make a candle. Candles were better than the wooden torches as they were more mobile and reliable than their predecessors. You could take a candle with you anywhere, keep it anywhere and never be worried about it having been wet by the rain. You didn’t need to build a dedicated fireplace for it in case of indoor lighting. However the candles never really replaced wood torches as they didn’t give as much heat to keep people warm.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UNdguCuiXtkzq5no7aWxNg.jpeg" /><figcaption>A burning wax candle and matchbox.</figcaption></figure><p>Fast forward later, we invented the kerosene lantern. This was an amazing invention of its time. It even had brightness adjustment. Relative to the others, it was much safer and cleaner and brighter. The kerosene lantern worked on a simple principle. there was a wick that was dipped in a flammable fuel know as kerosene. This wick sucked on this fuel gradually and if it had been socked just right, it would burn at the top for as long as it is still dipped in fuel without completely getting burnt itself. Seems like magic right? yeah back then it was. So the lantern was a mechanical structure built around this wick that had compartments for holding the kerosene, adjusting the height of the wick and hence adjusting the brightness of the flame. A transparent bulb that housed the flame and protected it from external winds. Ventilation to let oxygen into the lamp to facilitate burning and mechanical arms for holding and moving it around. It was amazing!!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*Ei3pwI4B-rXK5TqJv-RUyQ.jpeg" /><figcaption>kerosene lanterns in order of papa lantern to baby lantern</figcaption></figure><p>Up to that time, the above inventions were made before the invention of the electric bulb by Thomas Edison in 1878. They all used an adiabatic flame formed from a combination of heat, fuels, oxidants and a chain reaction. The fuels used were mostly organic compounds like wood or wax. This flames needed a constant supply of fuels and oxygen to keep going and give light for as long as possible. The initial heat given to them would initiate the burning which would give light and heat and the presence of more oxygen and more fuel would re initiate the process again and again and the light continues forever. They seem to be good old times, but are they? They served our societies well, made night time social gatherings worthwhile as you could see who is next to you, but they were also recipe for fire hazards, burnt up homes, carbon monoxide poisoning and many other terrible things.</p><p>Some of these lighting systems(Lamps) were relatively safe and reliable but they all lacked one important aspect. They were not clean. Once the flame was burning there was constant CO2 release into the atmosphere, Once the light went out. You had to figure out where to put the ashes or dispose of the unburnt wax. Then With the invention of Electricity, a lot had to change.<br>Electricity recreated the whole way we approach lighting, for very many years most of the electric lamps we have made fall in four major lighting categories; Incandescent, Fluorescent, Electric Arc, Gaseous discharge Lamps and most recently LED lamps. The most common of all these to date are the incandescent lamps. These lamps work on the principle of electrical resistance.</p><p>From basic electricity knowledge, we know that when a voltage is applied across a conductor, a potential difference is set up and current flows through that material. The resistance of that material to current flow is the ratio of the voltage to the current through it. That means when you have control of the current or voltage then you have control over the resistance too, When you can control resistance then you can control temperature too. Once you can control how hot a body can get then you can control the heat and light it can emit too.</p><p>Material resistance, when a material’s resistance is changed it’s temperature changes too(get’s heated up). Talking of heating up, all hot bodies actually emit radiation at different wavelengths depending on their nature and temperature, that includes you and me. The secret source of an incandescent lamp is its filament, this filament usually made of tungsten or osmium when current goes through it, it get’s really heated up to temperatures of over 3000&#39;C but it’s melting point is way much higher (3422&#39;C) so it doesn’t melt or sublime it just gets pretty hot. At this temperature, it shall be radiating waves whose wavelength falls in the visible spectrum of electromagnetic radiation. This radiation energy is interpreted as visual sensation to the human eye giving us the holy grail, LIGHT.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/525/1*M7CB-mIL238FMEGEvwHExQ.jpeg" /><figcaption>Inventor Thomas Edison standing next to the first Incandescent lamp, from 1879</figcaption></figure><p>Several inventions of the incandescent lamp had been made but not until Thomas Edison’s first most practical Incandescent lamp. Thomas Edison’s filament based incandescent lamp had the most practicability amongst all the other options that were there at the time. Carbon filaments were good, They had a high melting point of up to 3500&#39;C but carbon would easily disintegrate after its operating temperature of 1800&#39;C. Sadly, it also had a negative temperature coefficient, Which meant the more you heated it the lesser it’s resistance became which works in reverse sense of what actually makes a good filament. It also had a low commercial efficiency of 3–4.5 lumens per Watt(This mean it would be pretty dim). Then there was Tantalum which had a positive temperature coefficient but still had a low commercial efficiency of about 2 lumens per watt. Now Tungsten, had all A’s, It had a high operating temperature 2500&#39;C-3000&#39;C, It had a positive temperature coefficient, It also had a very high commercial efficiency of up to 18 lumens per Watt. It was bright, It was good and It was clean. So that was the face of Electrical lighting for some time. Incandescent Light bulbs are actually not that efficient because they convert less than 5% of electrical energy given to them to light. The rest is lost to heat.</p><p>Next time I will be sharing what I know about Fluorescent Lamps. Thanks for reading this far. If you enjoyed this Recommend it and leave me some feedback below.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=533ae3f94ee9" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>