<?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 Hamza on Medium]]></title>
        <description><![CDATA[Stories by Hamza on Medium]]></description>
        <link>https://medium.com/@hamzafetuga?source=rss-6adf4944f581------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Hmcjf8CTde5HOyOV97Viiw.jpeg</url>
            <title>Stories by Hamza on Medium</title>
            <link>https://medium.com/@hamzafetuga?source=rss-6adf4944f581------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 14:35:35 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@hamzafetuga/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[Hebrew Name Validation]]></title>
            <link>https://medium.com/@hamzafetuga/hebrew-name-validation-7799e083d356?source=rss-6adf4944f581------2</link>
            <guid isPermaLink="false">https://medium.com/p/7799e083d356</guid>
            <category><![CDATA[regex]]></category>
            <dc:creator><![CDATA[Hamza]]></dc:creator>
            <pubDate>Sun, 26 Mar 2023 13:38:47 GMT</pubDate>
            <atom:updated>2023-03-26T19:12:08.201Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/512/0*fPee7zYvQpcgdanN.png" /></figure><p>Recently, I encountered an interesting problem which involved validating if a string is a valid Hebrew name. The basic requirement was that it must contain all Hebrew characters.</p><p>Immediately, I knew regex was the way to go! I started thinking of what unicode character range I’d need to check for. However, after some digging, I realised that <a href="https://www.regular-expressions.info/unicode.html#script:~:text=The%20JGsoft%20engine%2C%20Perl%2C%20PCRE%2C%20PHP%2C%20Ruby%201.9%2C%20Delphi%2C%20and%20XRegExp%20can%20match%20Unicode%20scripts">most popular regex engines</a> support <a href="https://www.regular-expressions.info/unicode.html#script">unicode scripts</a>. I could use a unicode grouping (like <em>{InHebrew}</em>) which nicely curates the unicode characters for non Latin character based languages. Other examples of this are <em>{InArabic}</em> and <em>{InGreek} </em>which work for Arabic and Greek characters. My first solution to this problem was to use this pattern. Nice and simple!</p><pre>&quot;^\\p{InHebrew}+\$&quot;.toRegex().matches(name)</pre><p>About a month after deploying this, I encountered a bug. Someone with a valid Hebrew name couldn’t use this flow. I dug deeper only to realise that I didn’t account for ‘special’ characters. After some conversations with a number of Hebrew speakers I know, I discovered that Hebrew names could contain an apostrophe. Not only that, the apostrophe could only be either in the middle or the end of the string, not both.</p><p>I went ahead to modify the regex and ended up with this.</p><pre>&quot;^\\p{InHebrew}+&#39;?\\p{InHebrew}+|\\p{InHebrew}+&#39;?\$&quot;.toRegex().matches(name)</pre><p>…and that my friends brings us to the end of my occasional but always fun ride to regex-land.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7799e083d356" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Jetpack navigation: Pitfalls and recommendations]]></title>
            <link>https://medium.com/@hamzafetuga/jetpack-navigation-pitfalls-and-recommendations-f4ea2792bb08?source=rss-6adf4944f581------2</link>
            <guid isPermaLink="false">https://medium.com/p/f4ea2792bb08</guid>
            <category><![CDATA[jetpack-compose]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[jetpack-navigation]]></category>
            <dc:creator><![CDATA[Hamza]]></dc:creator>
            <pubDate>Fri, 21 Jan 2022 09:31:37 GMT</pubDate>
            <atom:updated>2022-01-21T11:23:43.009Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*27hj2A-A-tvWD7-uQej6Tg.jpeg" /><figcaption>Source: Pexels</figcaption></figure><p>I’ve used Jetpack Compose in a production app for about 4 months now, and in that time, I’ve experienced all manner of emotions. Most times, it’s relief and excitement at how fast it is to create views and reuse components. On the other hand, it is pain, and one of the main sources other than how slow and resource intensive the preview rendering is, has been the Jetpack navigation library.</p><p>Don’t get me wrong, it’s <em>not</em> all gloom and doom. I genuinely love how simple navigation is in Compose. It’s just that the pitfalls are unforgiving and hard to predict without prior experience.</p><p>In the post, I’ll be outlining some of the common pitfalls, how to solve them and some other interesting tips I’ve come and across or used in my projects.</p><ul><li><strong>Save the routes as constants.<br></strong> You can do this with an object and group them with a sealed class. Why? Not doing this exposes one to the risk of misspelling the routes and causing this exception to be thrown.</li></ul><blockquote>java.lang.IllegalArgumentException: Navigation destination that matches request … cannot be found in the navigation graph …</blockquote><p>In addition, a sealed class can help with grouping related destination routes for clarity. You can also add a prefix to your routes to distinguish routes with similar names or use-cases.</p><pre>const val SALES_DETAILS = &quot;sales.detailsPage&quot;<br>const val SPEND_DETAILS = &quot;spend.detailsPage&quot;</pre><pre><em>composable</em>(&quot;$SALES_DETAILS&quot;) <strong>{<br>     ...<br>}</strong></pre><pre>navController.navigate(&quot;$SALES_DETAILS&quot;)</pre><ul><li><strong>Be wary of the </strong><strong>? and </strong><strong>&amp; when passing parameters via the routes</strong>. <br>I’ve found myself using the ? multiple times in the same route for more than 1 parameter, causing an error to occur. You can create a route Builder class or use a library that safely generates routes.</li><li><strong>You should URLEncode any parameter you are passing via the routes.<br></strong>This is important because, if your route contains ?, &amp; ,/ or any other URL related special characters, your route will interpret them not as mere strings but as route delimiters. This can cause the navigation to break. If you pass non-primitive parameters by serialising to JSON Strings, then you <strong>have</strong> to do this. Don’t forget to URLDecode the parameters when you extract them.</li><li><strong>Use subgraphs as much as you can, for your sanity.<br></strong> With a single, flat graph, your files can get really large, making it difficult to find stuff. Subgraphs are nice and with Hilt, you can create ViewModels scoped to your subgraphs in case you need to share data across its destinations. <a href="https://twitter.com/ianhlake">Ian Lake</a> explains how <a href="https://stackoverflow.com/a/64961032/2643382">here</a>.</li><li><strong>Use JetPack Compose Navigation Material<br></strong>Using the <a href="https://google.github.io/accompanist/navigation-material/">Jetpack Compose Navigation Material</a> library simplifies your graph by making your BottomSheets mere destinations like your other ‘full screen’ destinations (s/o <a href="https://twitter.com/jossiwolf">Jossi Wolf</a> for this one). The <a href="https://developer.android.com/reference/kotlin/androidx/compose/material/package-summary#BottomSheetScaffold(kotlin.Function1,androidx.compose.ui.Modifier,androidx.compose.material.BottomSheetScaffoldState,kotlin.Function0,kotlin.Function1,kotlin.Function0,androidx.compose.material.FabPosition,kotlin.Boolean,androidx.compose.ui.graphics.Shape,androidx.compose.ui.unit.Dp,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.unit.Dp,kotlin.Function1,kotlin.Boolean,androidx.compose.ui.graphics.Shape,androidx.compose.ui.unit.Dp,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,kotlin.Function1)">original way</a> works but it makes the graph clunky, especially when you have to display multiple BottomSheets in the same root. Your graph gets longer and you have to write extra code to manage the state of your many BottomSheets.</li><li><strong>Subscribe to </strong><a href="https://jetc.dev/"><strong>Mark Murphy’s JetC’s newsletter</strong></a><strong><br></strong>Lastly, I’d recommend you subscribe to <a href="https://twitter.com/commonsguy">Mark Murphy</a>’s JetC newsletter. It contains a lot of useful information about Jetpack Compose from all over the internet, especially the #kotlinlang Slack channel. Trust me, you won’t regret it.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f4ea2792bb08" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[v2.3]]></title>
            <link>https://medium.com/hardware-lagos/v2-3-manufacturing-as-a-service-in-nigeria-de4814641870?source=rss-6adf4944f581------2</link>
            <guid isPermaLink="false">https://medium.com/p/de4814641870</guid>
            <category><![CDATA[fabrication]]></category>
            <category><![CDATA[manufacturing]]></category>
            <category><![CDATA[lagos]]></category>
            <category><![CDATA[hardware]]></category>
            <category><![CDATA[3d-printing]]></category>
            <dc:creator><![CDATA[Hamza]]></dc:creator>
            <pubDate>Tue, 26 Sep 2017 15:18:10 GMT</pubDate>
            <atom:updated>2017-12-04T20:49:50.481Z</atom:updated>
            <content:encoded><![CDATA[<h4><strong>Manufacturing as a Service</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/805/1*gSZIBYM-riteICGbapMtrA.png" /></figure><p>On the 19th of August at Capital Square, Ikoyi we organized our sixth event. This edition focused on local manufacturing and had three speakers, each at the helm of a manufacturing outfit.</p><p>At 2pm and going on for about 4 hours, there were thrilling sessions one after the other and exchanges from all in attendance.</p><p>Ushering in the event was <a href="https://twitter.com/TemiAiye">Temi Aiyelari</a> of Hardware Lagos who welcomed all attendees and did a brief introduction of the speakers.</p><p>Our speakers were Ahmad Sadiq of <a href="http://www.microscale-embedded.com/"><em>Microscale Embedded</em></a>, Akinwole Akinpelu of <a href="http://stampar3d.com/"><em>Stampar 3D</em></a>, Jude Abalaka of <a href="http://tranos.ng/"><em>Tranos Consulting</em></a>, with the project showcase on <a href="http://www.rloop.org/"><em>rLoop</em></a> by Tobi Oyinlola. To loosen the tension in the room, attendees were asked introduce themselves telling everyone their names, what they did and what they hoped to gain from the day’s event. This was swiftly followed by a <a href="http://google.com/">brief recap of the last event</a> by <a href="https://twitter.com/biodunalfet">Hamza Fetuga</a> also of Hardware Lagos.</p><p>Mr Ahmad Sadiq of <em>Microscale Embedded</em> went first, talking about PCB design for manufacturing. He spoke at length about his experiences, both good and bad in building PCBs for products in the past. He shared several lessons he had learnt over the years and other vital pointers for people who intended to venture into hardware. Some of the tips for cheaper PCB manufacturing he recommended were using cheaper chips, implementing sleep mode on your micro-controllers to conserve power and using off market enclosures to package the device.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/417/1*tWspA2onJswQa8NWClHlcw.png" /><figcaption>Ahmad Sadiq of Microscale Embedded taking questions</figcaption></figure><p>He argued that custom enclosures can be too pricey for devices that are not certain to sell high volumes. The <em>Microscale Embedded</em> chief went ahead to argue against the use of open source chips beyond the prototyping stage. Boards like the Rasbperry Pi and Arduino can play to one’s disadvantage when a huge part of their capabilities remain unused (wasted). As an alternative, he suggested the use of boards like Vocore and MediaTek which are low cost and expandable. He however mentioned that chips like that can be a slightly more difficult to program. For people who don’t have much expertise in circuit building and hardware programming, he proffered outsourcing.</p><p>Ahmad also mentioned that one has to carefully understand what the design constraints are before going ahead to choose components. For example where power consumption rate is important, ZigBee and RFID can be used in place of WiFi for wireless data transfer. After his session, questions around talent development and discovery in the hardware sector in Nigeria as well as the role of government in the development of hardware were also asked. He said his company usually has to train new entrants before they can be trust to work without supervision. This he said can be attributed to the deplorable state of education in the country. He lamented the government’s absence of sufficient support, funding and incentives for hardware development in Nigeria.</p><blockquote>You can never lose out by putting money in tech because even if the company runs down, a lot of knowledge is gotten — Ahmad Sadiq</blockquote><p>The next session was about an rising form of manufacturing gradually gaining global prominence. Founder of <em>Stampar 3D</em>, Akinwole Akinpelu spoke on 3D printing tips and tricks.</p><h3>Hardware Lagos on Twitter</h3><p>Akinwole Akinpelu of @Stampar3D introducing himself before diving into his talk on 3D printing tips and tricks</p><p>Akin gave a brief introduction of himself, talking about his educational and professional background. He then proceeded by going over the definition of 3D printing highlighting the differences between additive and subtractive manufacturing. At <em>Stampar 3D</em>, they work on projects broadly classified into: individual projects, industry, student projects, novelty/arts/souvenirs and small scale manufacturing. Further along in his talk, he explained the unique benefits additive manufacturing brings to the table. In his words,</p><blockquote>Design for additive manufacturing will introduce a whole new way of designing and building with less materials, less processing, less assembly and no tooling. The products are more customizable, weigh less, perform better and can launch faster. On the business side, supply chain is shorter, inventory control is easier and businesses can be highly responsive to feedback — Akinwole Akinpelu</blockquote><p>While all the above are undoubtable, Akin stated that the main unique challenge to the adoption of 3D printing locally is cost. He went ahead to explain this point arguing that Nigerians value monetary cost over the sentimental joy that can be derived from a product. As long as it works, we don’t care how it looks or feels!</p><p>One of the most exciting parts of his talk was the showcase of some 3D printed works he had done personally and for some customers. We were able to grab a few pictures of them!</p><h3>Hardware Lagos on Twitter</h3><p>A 3D printed prostethic hand and a propeller by @Stampar3D</p><p>The third and final speaker of the day, Tranos Consulting boss, Mr Jude Abalaka did a very brief talk on <em>Manufacturing Preparation. </em>Mr Abalaka has a wealth of managerial experience in the manufacturing and energy sectors.</p><p>Jude stated that unlike many people think, power wasn’t the biggest challenge in manufacturing in Nigeria. He said the power can be easily solved with good generators. However, what was more of a problem to the manufacturing sector was the <em>supply chain. </em>If the materials needed for manufacturing cannot be procured, transported and/or stored, how can any work be done at all? He also spoke a great deal about the processes involved in sheet metal manufacturing from laser/metal cutting to CNC turret punching, bending, joining, painting, assembly and finally packaging.</p><p>Like the other speakers, he also took questions and did justice to them.</p><h3>Hardware Lagos on Twitter</h3><p>Currently we have a lot of competition from China, especially for small goods that can be mass produced&quot; - Jude Abalaka</p><h4>Showcase</h4><p>The much awaited showcase of <a href="http://www.rloop.org/">rLoop</a>’s entry for the HyperLoop competition organized by Elon Musk. This presentation was led by <a href="https://twitter.com/TobiOyinlola">Tobi Oyinlola</a>, an embedded systems engineer who is on the Avionics team of rLoop. He was supported by another rLoop team member, <a href="https://twitter.com/eloace">Elochukwu Clarence</a>, who is on the Mechanical/Manufacturing team.</p><p>They spoke about how the rLoop was formed from a thread on Reddit. From Reddit, a proper team was formed and a Slack was created for team members to interact. The beauty of the rLoop team is that it is completely distributed! Team members are from over 10 countries across North America, Africa, Europe and Asia.</p><p>The duo spoke introduced the idea of the Hyperloop and its underlying principles. They compared it to currently existing transport technology (like the Maglev speed trains and the Concord) in terms of cost, safety and speed. For the final stage of the Hyperloop competition they had to travel to the US. Their presentation had loads of pictures of their prototype, their teammates and notable events that took place at the finals. Tobi passionately spoke about the potential greatness that can be achieved when people collaborate and urged attendees to collaborate more and not be scared of things like “idea theft”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RkF993M8LrV8WxaS1KW7GA.jpeg" /><figcaption>Attendees engrossed in the rLoop design talk!</figcaption></figure><h4>i3D Challenge</h4><p>Judith Okonkwo of Imisi3D joined us in announcing the first ever VR Hardware Challenge in Nigeria. More on that can be found <a href="https://medium.com/hardware-lagos/a-different-kind-of-design-challenge-984e0ef58ba8">here</a>.</p><h3>E B I S E R I on Twitter</h3><p>i3D hardware challenge All in one Solar powered VR headset. #HardwareLagos #imisi3D</p><p><em>Our next event holds on </em><strong><em>November 18th</em></strong><em> and it promises to be lit! Save the date!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=de4814641870" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hardware-lagos/v2-3-manufacturing-as-a-service-in-nigeria-de4814641870">v2.3</a> was originally published in <a href="https://medium.com/hardware-lagos">Hardware Lagos</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[v2.1]]></title>
            <link>https://medium.com/hardware-lagos/v2-1-ba7da4344f15?source=rss-6adf4944f581------2</link>
            <guid isPermaLink="false">https://medium.com/p/ba7da4344f15</guid>
            <category><![CDATA[hardware]]></category>
            <category><![CDATA[internet-of-things]]></category>
            <category><![CDATA[lagos]]></category>
            <category><![CDATA[iot]]></category>
            <category><![CDATA[hackaday]]></category>
            <dc:creator><![CDATA[Hamza]]></dc:creator>
            <pubDate>Mon, 13 Mar 2017 22:15:26 GMT</pubDate>
            <atom:updated>2017-03-13T22:45:07.032Z</atom:updated>
            <content:encoded><![CDATA[<h4>We introduced themes, the event centering on IoT viability</h4><p>On the 18th of February, 2017 Hardware Lagos held her fourth meetup at WebCoupers in Yaba. Compared to previous editions of the meetups, this one had a central theme which guided the selection of the topics and speakers.</p><p>The theme was <strong>Internet of Things </strong>and the event was to discuss the viability of developing solutions of the kind in Nigeria. Yen Choi, EVP &amp; CTO of Netcom Africa and Nifemi Marcus-Bello, Lead Industrial Designer at TECNO spoke at the event, leaving us with their insights and other <em>gems</em>.</p><h3>hackaday on Twitter</h3><p>Looks like a packed house at the latest @hardwarelagos meetup! Join the #meetup for upcoming events: https://t.co/33UqCpXSRS #Nigeria</p><p>Yen spoke on <strong>Infrastructure for IoT</strong>. In his comprehensive talk he took us through the length and breadth of IoT, starting from the basic definition of the term, exploring subtopics like IoT characteristics, enabling technologies, stages of maturity, security, current and future states of infrastructure among other things.</p><p>His presentation had very descriptive charts and stattistics to back many of the claims and projections he made about the subject. A data advocate himself, Yen spent some time explaining how important data is in the whole IoT picture. A lot of data will be aggregated via IoT networks hence making sense of it will crucial to the success and adoption of the technology. He rounded up his talk by stating the challenges IoT adoption faces in Nigeria shortly before he dropped a list of predictions.</p><blockquote><em>‘Connected devices will become the norm; devices will integrate with and into humans...’</em></blockquote><p>This interesting list can be viewed on his presentation on <a href="https://speakerdeck.com/hardwarelagos/infrastructure-for-iot-yen-choi">SpeakerDeck</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jxxDqgLrV4MCZJPuyuzXyg.jpeg" /><figcaption>Serious faces at the event</figcaption></figure><p>Nifemi Marcus-Bello led the second talk. The lead designer at TECNO spent about a half-hour speaking on Product Design for IoT solutions. His talk was actually not peculiar to IoT solutions as he generally talked about applying design principles to industrial design. The talk began with humorous yet witty pictures of products made to solve unusual problems like controlling bus driver over-speeding in an Asian country.</p><p>With those pictures he explained the goal of product design: problem solving; and how important it is in the whole design workflow. He went ahead to enlist and discuss in detail each of the 5 steps involved in <a href="http://ideo.com/">IDEO</a>’s Human-Centered Design giving real life examples of some popular cases and a few of his personal experiences at TECNO and other places he had worked. His talk was particularly awash with follow up questions which he did justice to.</p><blockquote>‘Even if it’s your final idea, you will never know it is correct if you do not test’</blockquote><p>Be sure to take a look at his presentation <a href="https://speakerdeck.com/hardwarelagos/product-design-for-iot-solutions-nifemi-marcus-bello">here</a>.</p><h3>Hackaday HW Lagos on Twitter</h3><p>Nifemi Marcus-Bello, product design of IoT solutions speaking on product design for IoT solutions</p><p>At the end of the talks, an informal networking session ensued. Attendees had a chance to ask more questions from the speakers and share ideas.</p><p>There was a <a href="https://www.facebook.com/WebCoupers/videos/1049673728510101/">live-stream of the entire event</a> by the good guys at <a href="http://webcoupers.com/">WebCoupers</a>.</p><p>Our next event promises to be even more interesting. We will be focusing on solar systems and renewable energy solutions in Nigeria.</p><p>Until then…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hwXzYjmptrEbiwdSnFmfag.jpeg" /><figcaption>Stay alert on our <a href="http://twitter.com/@hardwarelagos">social media</a></figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ba7da4344f15" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hardware-lagos/v2-1-ba7da4344f15">v2.1</a> was originally published in <a href="https://medium.com/hardware-lagos">Hardware Lagos</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[v1.3]]></title>
            <link>https://medium.com/hardware-lagos/hackaday-hardware-lagos-v1-3-234517e908a0?source=rss-6adf4944f581------2</link>
            <guid isPermaLink="false">https://medium.com/p/234517e908a0</guid>
            <category><![CDATA[virtual-reality]]></category>
            <category><![CDATA[hardware]]></category>
            <category><![CDATA[nigeria]]></category>
            <category><![CDATA[basketball-equipment]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Hamza]]></dc:creator>
            <pubDate>Thu, 03 Nov 2016 19:12:46 GMT</pubDate>
            <atom:updated>2017-01-06T22:19:00.424Z</atom:updated>
            <content:encoded><![CDATA[<p>Hackaday Hardware Lagos held her 3rd meetup on Saturday, the 29th of October, 2016. In attendance were two interesting speakers; Judith Okonkwo of <a href="http://imisi3d.com/">Imisi3D</a> and Opeyemi Babalola of <a href="https://www.facebook.com/webberengineering/">Webber Engineering</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Rtw6rSJ4nCr8zOY_FLLO9A.jpeg" /><figcaption>Judith Okonkwo of Imisi 3D giving the camera a big smile</figcaption></figure><p><a href="https://www.linkedin.com/in/judith-okonkwo-5240b71">Judith</a>, who is the CEO and founder of Imisi3D, spoke about her passion for VR, the state of Virtual Reality (VR) technology in the world and why Nigeria has to join the community early. She talked about one of her projects: creating a community of VR content creators and enthusiasts in Nigeria. Judith explained that the reluctance commonly expressed by people towards VR is due to the focus on the upper (and very expensive) end of the VR gadgets line like Facebook’s Oculus Rift or the HTC Vive.</p><p>She argued that people should focus more on the lower end which works with existing smartphone tech. Smartphone tech is accessible by local developers, content creators and potential end users. She also highlighted efforts by local enthusiasts to make cheap VR kits based on the open source Google Cardboard design. Her talk started with a fascinating <a href="https://www.youtube.com/watch?v=d_OeQxoKocU">3D video of CERN ‘s Large Hadron Collider in Switzerland</a>. Further demos were held after the event using various VR kits like the Samsung Gear and the Google Cardboard. Attendees had the opportunity to see a 3D camera record a video. Also, some Google Cardboards were given out to interested attendees.</p><p>She announced that Imisi3D will be holding the first VR hackathon in Nigeria next month around educational and healthcare solutions and implored attendees to register. If you haven’t experienced VR, and you must, do visit Imisi3D at <a href="http://cchubnigeria.com/">CCHub</a>; they work out of the third floor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4f-ziMIfUWZt4OElDBldrw.jpeg" /><figcaption>Judith assembling the Google Cardboard during her talk</figcaption></figure><p><a href="https://www.linkedin.com/in/opeyemibabalola">Opeyemi Babalola</a> of Webber Technologies spoke on <em>Developing Niche (Hardware) Markets</em> with a focus on Nigeria. Blessed with a wealth of experience on this subject, Opeyemi discussed the journey of how his passion for basketball led him to doing his final year project at the University of Ilorin on the construction of a basketball rim.</p><p>After a career in the oil sector, he left his job as a Subsea Engineer at a multinational and eventually starting up his fabrication company. At Webber Technologies, standard basketball equipment are built from ground up, shipped and installed. At present, his company is the only one in Nigeria that employs a Plasma CNC Machine for it’s operations. (View our list of Hardware Service Providers in Nigeria <a href="http://bit.ly/hwlagos-providers">here</a>).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IoM_sAj66NG9HW3jLGx2LQ.jpeg" /><figcaption>Opeyemi Babalola introducing himself to attendees</figcaption></figure><p>Attendees were particularly interested in his talk. He had on display beautiful pictures of various basketball equipment built by his company including rims and backstops. He took questions continuously for over an hour after which we had a general discussion session among attendees and speakers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/360/1*gdzTcX7wlmWcOlXBzCIanA.jpeg" /><figcaption>These two just kept talking about fabrication techniques, CNC machines and 3D printing</figcaption></figure><p>The speakers&#39; slides are up on <a href="http://speakerdeck.com/hardwarelagos">Speaker Deck</a>, as well as other talks from the previous event. The next edition is scheduled for February next year and it promises to be even more exciting. See you then!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=234517e908a0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hardware-lagos/hackaday-hardware-lagos-v1-3-234517e908a0">v1.3</a> was originally published in <a href="https://medium.com/hardware-lagos">Hardware Lagos</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to make a Simple ExpandableRecyclerView]]></title>
            <link>https://medium.com/@hamzafetuga/how-to-make-an-simple-expandablerecyclerview-82ce1df2e7cd?source=rss-6adf4944f581------2</link>
            <guid isPermaLink="false">https://medium.com/p/82ce1df2e7cd</guid>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Hamza]]></dc:creator>
            <pubDate>Wed, 08 Jun 2016 12:41:48 GMT</pubDate>
            <atom:updated>2016-06-21T23:04:17.255Z</atom:updated>
            <content:encoded><![CDATA[<p>I created a basic<em> Expandable RecyclerView</em> a few days ago, having tried one or two third party libraries only to be left grossly disappointed. So, I decided to document the steps I took while creating one here!</p><p>The data to be displayed will be a list of people, which can be expanded to display a list of their individual friends. The final thing looked something like this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/180/1*VX4Lp4XA-yv9PhJrc1cL3A.gif" /></figure><p>Yeah, so the first thing I did was to create a RecyclerView adapter and pass in the RecyclerView (RV) itself. Then I created a layout manager and attached it to the RV</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9a38a99a1f24c771638c64f4d5121939/href">https://medium.com/media/9a38a99a1f24c771638c64f4d5121939/href</a></iframe><p>I needed a way to store both parent and child objects in one List. That led me to creating a base class called <em>Entity.java </em>from which the <em>parent</em> and <em>child</em> classes were going to inherit. The only property it has is an <strong><em>isParent </em></strong>attribute which uniquely identifies an object as a parent or as a child.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/70a762f69bf78b4bb41af2fdc56d9b06/href">https://medium.com/media/70a762f69bf78b4bb41af2fdc56d9b06/href</a></iframe><p>Next, I converted the raw data of people and friends which I pulled somewhere online, from JSON to POJO then stored it in the List&lt;Person&gt; variable, <strong><em>datas</em></strong><em> </em>using GSON.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e95582c1ecf3a7cb1a151b6a0e9eb96a/href">https://medium.com/media/e95582c1ecf3a7cb1a151b6a0e9eb96a/href</a></iframe><p>After that, I created an List&lt;Entity&gt; variable, <strong><em>general</em></strong><em> </em>to hold all the objects currently displayed by the RV. This variable was in charge of keeping the constantly changing state of the RV views.</p><p>I went ahead to iterate through the elements of variable <strong><em>datas</em></strong><em> </em>and set their <em>isParent </em>property to the correct value, <em>true</em> for parent, <em>false</em> for children and <em>setChildVisible </em>to false for all the parent items since initially only the parents will be shown.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/76847e1c8d6f854f7e1e1feb38a433fe/href">https://medium.com/media/76847e1c8d6f854f7e1e1feb38a433fe/href</a></iframe><p>I created two viewHolders, one for the parents, the other for the children.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/418485966e74579a2fe5c0c35c8e7714/href">https://medium.com/media/418485966e74579a2fe5c0c35c8e7714/href</a></iframe><p>To distinguish between parent and child viewHolders, I implemented the below logic in the <em>getViewType()</em> method. It gets the item at a certain position and checks if it’s a parent or a child and returns the corresponding flag.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2f3647a21668e966adb086efaab2e54f/href">https://medium.com/media/2f3647a21668e966adb086efaab2e54f/href</a></iframe><p>In the <em>onBindViewHolder() </em>method, I bound the right views after checking the <em>viewType </em>variable from the viewHolder</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/da758864b60e01e5fa1d598b28811e8c/href">https://medium.com/media/da758864b60e01e5fa1d598b28811e8c/href</a></iframe><p>The <strong>meat</strong> of this whole implementation is in the <em>onClick</em> method of the parent and child viewHolder. For the parent’s viewHolder’s <em>onClick</em> method, I got the ID of the clicked view, returned it’s corresponding object from the <em>general </em>variable I created earlier, then checked if it had any children. If yes, I went ahead to check if the view was expanded prior to the click by invoking <em>isChildrenVisible() </em>on the clicked object. If expanded, I changed the <em>childrenVisible</em> attribute of the parent to false, then I remove all its children from the <em>general </em>list. After which I call <em>notifyDataSetRemoved</em> to notify the adapter to refresh the views affected</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5d5736e999e00007a30b86b8adf0ea17/href">https://medium.com/media/5d5736e999e00007a30b86b8adf0ea17/href</a></iframe><p>If the clicked view was collapsed, I set the <em>childrenVisible </em>attribute to true, then add the clicked object’s children to the <em>general </em>list. Then I call <em>notifyDataSetInserted.</em></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4accf1f224f707afd45d2217afe08cf1/href">https://medium.com/media/4accf1f224f707afd45d2217afe08cf1/href</a></iframe><p>After doing all this, I noticed that when you click on the parent item occupying the base of the viewport, there’s no feedback to show that the view has truly been expanded until you scroll. So I did this</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d9852abfd0bd617678d5727f21a9165f/href">https://medium.com/media/d9852abfd0bd617678d5727f21a9165f/href</a></iframe><p>It gets the last visible item position and checks if it’s less than the view immediately after the clicked view, and scrolls to it if <em>true.</em></p><p>That’s pretty much the important part of the code. The full code can be viewed <a href="https://github.com/biodunalfet/expandablerecyclerview">HERE</a>.</p><p>There are other sweet things you can do to your Expandable RVs. You can style the methods to fit whatever kind of data you want and/or add nice expand-collapse animations.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=82ce1df2e7cd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Let’s talk about PID controllers: What are they? And why do we need them?]]></title>
            <link>https://medium.com/@hamzafetuga/let-s-talk-about-pid-controllers-what-are-they-and-why-do-we-need-them-73cd60523360?source=rss-6adf4944f581------2</link>
            <guid isPermaLink="false">https://medium.com/p/73cd60523360</guid>
            <category><![CDATA[pid-controller]]></category>
            <category><![CDATA[robotics]]></category>
            <category><![CDATA[cruise-controller]]></category>
            <dc:creator><![CDATA[Hamza]]></dc:creator>
            <pubDate>Sun, 07 Feb 2016 22:18:55 GMT</pubDate>
            <atom:updated>2016-02-07T22:18:55.660Z</atom:updated>
            <content:encoded><![CDATA[<p>Imagine you’re in your car on a long deserted road and you suddenly need to some note-taking or do something that requires both your hands. For this to happen successfully, your car needs to move at a constant speed and you need to take your hands off the steering wheel. The normal way to do this is to turn on the cruise controller in your car but imagine your car doesn’t have one, how do you achieve this?</p><p>You know what, let’s build our own basic cruise controller.<br>Intuitively, the first algorithm that comes to mind is this</p><pre>v = current speed of car<br>x = required speed<br><br>  start loop:<br>    if v greater than x, reduce v (i.e. decelerate)<br>    else if v less than x, increase v (i.e. accelerate)<br>    and probably<br>    if v is equal to x, do nothing</pre><p>This works perfectly. When we code this up and create a visual representation of our movement, this is what we get.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/648/1*y9SAoX4XvQLy4DZAAN2Ksw.gif" /><figcaption>Cruise Controller: First attempt, no PID</figcaption></figure><p>When it gets to 20 speed units, it oscillates a little but the oscillations are so small you won’t even notice.</p><p>Good right? :)</p><p>Nah. Not quite. I’ll explain</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/648/1*hNtFaA3ewXyFbvshM2CLmQ.gif" /></figure><p>This is what we’re doing to our car.</p><p>Here’s a clearer picture</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/648/1*ZVVvKnABjtr2bULxYPVCnw.gif" /></figure><p>At 20 speed units, we had to step on the pedal sharply within very short intervals to maintain it, and this can only lead to one thing, damage of our actuators. More actually, spilling your drink or being unable to write whatever you wanted to or losing a tooth. We obviously do not want that. Another reason this is a terrible idea is, who drives this way anyway?.</p><p>How do we solve this?</p><p>The simple answer in our case is PID controllers.</p><p>PID controllers are widely used, low level controllers used in systems that require some form of control. PID stands for Proportional, Integral and Differential controllers. It consists of these three parts which contribute to achieving optimal control of our systems.</p><p>A more bookish definition (from Wikipedia) goes thus</p><blockquote>A proportional–integral–derivative <strong>controller</strong> (<strong>PID controller</strong>) is a <strong>control</strong> loop feedback mechanism (<strong>controller</strong>) commonly used in industrial <strong>control</strong> systems. A <strong>PID controller</strong> continuously calculates an error value as the difference between a measured process variable and a desired setpoint.</blockquote><p><strong>The P controller</strong></p><p>What a P controller does is that it applies measured input proportional to the error (i.e. deviation of the actual output from required output) to the system. That’s sounds really decent. If we’re really behind our required speed we apply more force to our pedal and as we draw closer to the required speed we gradually reduce the force exerted. A P controller is defined mathematically as:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/118/0*KJ15J5aXs4m8Qvfe.png" /><figcaption>P controller</figcaption></figure><p><strong><em>P out</em></strong><em> = desired output, </em><strong><em>Kp</em></strong><em> = proportionality gain constant, </em><strong><em>e</em></strong><em> = error term</em></p><p>In pseudo code, our system looks like this:</p><pre>//x = required speed<br>//cs = current speed<br>//e = error (i.e. deviation from the required speed)<br>//f= Force applied to pedal<br>//K = proportionality gain constant<br><br>start loop<br>  e = x - cs<br>  f = -Ke</pre><p>I coded this up and created a graphical representation of our car’s movement in space and we got this…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/648/1*7-RCAoaB1KSLgscp6jwjBA.gif" /><figcaption>P only controller</figcaption></figure><p>This looks really lovely. Our actuators aren’t unnecessarily stressed and the car is pretty stable. No oscillations. However, there’s a little problem. We haven’t been able to attain the exact desired speed. Why? There’s this little thing called <a href="https://en.wikipedia.org/wiki/Drag_(physics)"><strong>drag</strong></a><strong>, </strong>or<em> </em>air resistance. Air resistance is this external opposing force which increases the faster we go and vice versa. It more or less hinders us from reaching our desired speed. So what do we do about this? We introduce the I term.</p><p><strong>The PI controller</strong></p><p>The PI controller consists of a Proportional part and an Integral part. The Integral part continuously gathers the errors in our system over time and feeds a force that makes up for it back into the system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/169/0*Fk8-LHQVAtlSIDqa.png" /><figcaption>The Integral term</figcaption></figure><p>Since we’re dealing with discrete time, the integral term is relatively simple to compute in code. It’s simply a sum of the <strong>(<em>current speed — desired speed)s </em></strong>over time. In pseudo code, this controller will look somewhat like this</p><pre>//x = required speed<br>//cs = current speed<br>//e = error (i.e. deviation from the required speed)<br>//ae = accumulated error<br>//f= Force applied to pedal<br>//Kp = proportionality gain constant<br>//KI = integral gain constant<br><br>start loop<br>  e = x - cs<br>  ae = ae + e<br>  <br>  f = Kp * e + KI * ae</pre><p>This improves our cruise controller to something like this</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/648/1*M1yg49qBblDiQaQoXrJaKw.gif" /><figcaption>PI Controller in Action</figcaption></figure><p>Voila! The PI Controller does the job. We begin by accelerating nice and smooth till we get to our goal velocity. No oscillations, <em>no hands</em>, quite stable. PI controllers alone are sufficient in most control problems.</p><p><strong>The PID Controller</strong></p><p>In certain systems, using a P — only controller or a PI doesn’t help achieve the needed tracking or stability. In some cases, they produce an undesirable overshoot which needs to eliminated. As explained earlier, the I part of a controller has a contributory effect on the magnitude of the P part but the D part has a counteractive effect on it making it really good for controlling overshoots. It however increases the settling time.</p><p>The D part stands for the “derivative term” and is calculated by multiplying the rate of change of the error term by Kd, the derivative gain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/132/0*Mu0k1Rf_UrzX8sBd.png" /><figcaption>The derivative term</figcaption></figure><p>The expression below represents a PID controller</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/427/0*Gp4sEpr3NBIOwAuo.png" /><figcaption>A PID controller</figcaption></figure><p><strong>Parameter Optimization</strong></p><p>The last thing I’ll be talking about is parameter optimization. While we know how to make PID controllers, selecting good values for our gains isn’t so trivial. It could take series of trials with different values to achieve the kind of output one requires from a controller. Someone once termed the act of picking these parameters “an art”. There are however a few systematic ways. The only one I’ve tried is <em>Twiddle</em> also known as coordinate ascent. There are other methods like <em>Ziegler–Nichols</em> and <em>Tyreus Luyben</em> and they all have their pros and cons.</p><p>In conclusion, I think it’s important to note that there are still many more modifications that can be done to PID controllers to attain design objectives. There are also other types of controllers.</p><p>If this interests you, go ahead and do some more research :) and yes, hit <strong><em>Recommend</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=73cd60523360" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Book Review: William Golding’s Lord of the Flies]]></title>
            <link>https://medium.com/@hamzafetuga/book-review-william-golding-s-lord-of-the-flies-483a203b37fc?source=rss-6adf4944f581------2</link>
            <guid isPermaLink="false">https://medium.com/p/483a203b37fc</guid>
            <category><![CDATA[reading]]></category>
            <category><![CDATA[books]]></category>
            <dc:creator><![CDATA[Hamza]]></dc:creator>
            <pubDate>Sun, 24 Jan 2016 22:42:28 GMT</pubDate>
            <atom:updated>2016-02-04T21:13:48.259Z</atom:updated>
            <content:encoded><![CDATA[<p>Interesting one! I still think if I read this back in secondary school I wouldn’t have appreciated it. Lord of the Flies depicts how people lose their values and become savages in the absence of laws and ultimately highlights the importance of upholding laws and order in society. I liked the power play and the social dynamics that helped win people over to a side. I often wonder if the story would’ve turned out different had some girls been marooned on the island along with the boys. What social variable would that have introduced to the behavior of the boys and the overall outcome of the story?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/186/1*6gdzBOPSEIv6Tyza0KkYKw.jpeg" /></figure><p>It was a delightful read although I must confess, I had to struggle with William Golding’s descriptions of the island and it’s many features.</p><p>Over 10, I’ll give it a resounding 9!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=483a203b37fc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Book Review: Khaled Housseini’s The Kite Runner]]></title>
            <link>https://medium.com/@hamzafetuga/book-review-khaled-housseini-s-the-kite-runner-de2b6182bd1c?source=rss-6adf4944f581------2</link>
            <guid isPermaLink="false">https://medium.com/p/de2b6182bd1c</guid>
            <category><![CDATA[books]]></category>
            <category><![CDATA[afghanistan]]></category>
            <category><![CDATA[khaled-housseini]]></category>
            <dc:creator><![CDATA[Hamza]]></dc:creator>
            <pubDate>Fri, 18 Dec 2015 00:39:56 GMT</pubDate>
            <atom:updated>2015-12-18T00:44:49.910Z</atom:updated>
            <content:encoded><![CDATA[<p>Many Khaled Housseini fans say this is his best work yet. I don’t quite agree but I can assure you this is an exceptional book.</p><p>It’s a tale of Amir, a morally-conflicted young Afghan boy, born with a silver spoon, and his experiences on one hand with his demanding father whom he loved dearly and on the other hand, his young, brave and tolerant friend Hassan.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/1*zobfMvIYMicD6turi_0uVA.png" /></figure><p>The novel was set in the US and Afghanistan. The tale depicts Afghanistan — from her glory days of peace, harmony and the no-longer-popular kite running sport where hoards of people gathered to fly, watch and “fight” kites; to the days of pain, poverty, anger and war resulting from the invasion of Russia and sets at the rise of the Mujahedeen and the Taliban. Also, one could sense how devastating it must be for refugees to rebuild their lives after so many years of clueless gathering.</p><p>The Kite Runner contains several razor-sharp plot twists, seasoned with Khaled Housseini-esque honey-sweet, almost poetic writings and thought-provoking dialogues. As also in “And the mountains echoed”, Afghan culture was portrayed and their views on Arabs, life, family, marriage and religion as a whole can be perceived in this beautiful piece of literature.<br>On a scale of 1–10, I’ll give it an 8.5</p><p>“ For you, a thousand times…”</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=de2b6182bd1c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Book Review: Khaled Hosseini’s “And the Mountains Echoed”]]></title>
            <link>https://medium.com/@hamzafetuga/review-of-khaled-s-and-the-mountains-echoed-ad64ee0d8167?source=rss-6adf4944f581------2</link>
            <guid isPermaLink="false">https://medium.com/p/ad64ee0d8167</guid>
            <category><![CDATA[khaled-housseini]]></category>
            <category><![CDATA[afghanistan]]></category>
            <category><![CDATA[books]]></category>
            <dc:creator><![CDATA[Hamza]]></dc:creator>
            <pubDate>Sun, 27 Sep 2015 22:23:59 GMT</pubDate>
            <atom:updated>2015-09-27T22:30:18.256Z</atom:updated>
            <content:encoded><![CDATA[<p>I’ve heard a lot about Khaled’s books. From friends to goodreads.com and finally Quora, I was awash with tales of how great his books are, so I decided to give it a spin. I purchased two of his books, <em>And the Mountain Echoed </em>and <em>the Kite Runner</em> earlier this year; and I’m glad I did.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/985/1*t9sYYQc8n_Y8Jlyb06G2KA.jpeg" /></figure><p><em>And the Mountains Echoed</em> is an exceptional story about two Afghan siblings, Abdullah and Pari, who lost their mother when Pari was born, and had to survive under underwhelming conditions in a village called Shadbagh. Their father, Saboor, a very hardworking man, would do anything, ranging from digging of wells, to menial work at construction sites, just to make ends meet for his family. He cared dearly for his children and made a good storyteller. Every night, his kids would look forward to hearing a bedtime story, often to get disappointed because he was usually tired from the day’s toil.</p><p>When Pari was two years old, she was sold to a wealthy family in the flourishing capital, Kabul for an arguably worthy cause. Her father wanted Pari to be educated and lacking nothing. Saboor’s brother-in-law, Nabi who worked as a chef at the Wahdati’s was responsible for brokering the deal. His intentions however were rather questionable.</p><p>Nabi was awestruck and in love with his boss’ sterile wife, Nila. The Wahdati’s marriage was strained and dysfunctional up until the moment Pari came in their lives. Prior to this time, Nila would spend several hours chatting with Nabi, who drove her around the city, and was fully aware of all her sexcapades. Pari’s arrival heralded a rekindling in the marriage life of the Wahdati’s and subsequently, Nabi lost all the attention he previously enjoyed and craved for.</p><p>Meanwhile, Abdullah had left his father’s village shortly after Pari’s departure as he didn’t feel whole anymore. The firm bond between his sister and him had been broken overnight — unannounced and unanticipated, and unfortunately, he couldn’t do anything to stop it.</p><p>As the story unfolds, Mr Wahdati fell terribly ill and suffered from paralysis. Nila couldn’t keep up with her nagging mother, endless influx of visitors into the house and especially, taking care of Mr Wahdati’s needs. Hence, she fled to Paris with Pari who was still very young, never to return again, leaving Saboor to cater for Mr Wahdati. In spite of the monotony and arduousness of the task, he stood by Mr Wahdati till the last of his days.</p><p>With the overthrow of the government of Afghanistan by the Taliban, the country deteriorated and Kabul had its fair share of the ruin. The once-elegant house of the Wahdati’s deteriorated as the war wore on, though Nabi managed to maintain its interiors. Nabi later found out Mr Wahdati had been in love with him from the day he was recruited. After Mr Wahdati’s demise, Nabi refused to remarry. He highlighted his clearly-thought-out reasons, which raises questions on what people look out for in marriages or companionship.</p><p>With the influx of humanitarian Aid workers into Kabul, there was a high demand for housing. Nabi generously gave out the house to Dr Markos, a plastic surgeon, and his colleagues. The story of Dr Markos and Thalia, his childhood friend, is another sweet tale of undying love- one that isn’t deterred by distance or facial beauty. The doctor was greatly responsible for connecting Pari to her roots by carefully following Nabi’s instruction before his death. This eventually led to the reunion of brother and sister amidst bursts of emotions</p><p>Reading this book, I got a picture of the happenings during the Afghan war and the role the Taliban played. Khaled spices the story up with various important aspects of Afghan culture ranging from the food, their language (Farsi) and their poetry. The poetry was highlighted when Nila once said</p><blockquote>“Even your graffiti artists spray Rumi on the walls”</blockquote><p>Earlier in the book, there was a brief scene where two schoolboys were trying to woo teenage Pari’s stepmother’s sister with some catchy lines from Rumi’s large collection of poems.</p><blockquote>I swear, since seeing your face, the whole world is fraud and fantasy,<br>The garden is bewildered as to what is leaf or blossom.<br>The distracted birds can’t distinguish the birdseed from the snare</blockquote><p>Another important thing Khaled did was highlight the human part of war-torn Afghanistan. Amidst all the fighting, I could sense the disconnect between the average people, and the Afghan government and their supporters. Virtually all characters in the book who were in Afghanistan during the war were victims, leaving me with the impression that the war wasn’t a true reflection of the grievances of the common people. While reading, I had to pause severally to ponder or argue certain seemingly sincere actions carried out by different characters. Several philosophical arguments are highlighted in this book.</p><p>I was marveled by how palpable Khaled’s descriptions of old age were. It made me spend time imagining how people come to terms with the fact that they’re aging and certain parts of their minds and bodies were getting vestigial.</p><p>Overall, it was a super amazing experience. Awesome story told through great writing. Definitely my best book this year so far.</p><p><strong>Rating: 9.3/10</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ad64ee0d8167" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>