<?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 suman astani on Medium]]></title>
        <description><![CDATA[Stories by suman astani on Medium]]></description>
        <link>https://medium.com/@SumanAstani?source=rss-f0935ecda9bd------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*lLizxJr3XU0Lt9nZ_JpQ-A.jpeg</url>
            <title>Stories by suman astani on Medium</title>
            <link>https://medium.com/@SumanAstani?source=rss-f0935ecda9bd------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 23:52:50 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@SumanAstani/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[Foundations of Resolve: A Tale of Rebuilding”]]></title>
            <link>https://medium.com/@SumanAstani/foundations-of-resolve-a-tale-of-rebuilding-2ef970776e4b?source=rss-f0935ecda9bd------2</link>
            <guid isPermaLink="false">https://medium.com/p/2ef970776e4b</guid>
            <dc:creator><![CDATA[suman astani]]></dc:creator>
            <pubDate>Fri, 16 Feb 2024 20:19:59 GMT</pubDate>
            <atom:updated>2024-02-16T20:19:59.307Z</atom:updated>
            <content:encoded><![CDATA[<p>I was on the top floor, the right section collapsed. There was a knot that held the building. I have to press that tighten it to hold it. I was new to the building, The building tilted 30 degrees, about to collapse. I didn’t know what was happening, or what to do. I came to the elevator. The building regains its position. because I was balancing it. I should have stayed there to make it stand. I was scared. didn’t know what to do. I decided to run. I survived. Came down. But the building collapses. People were injured from debris. only half the right section. Two sections are intact. It fell, I can rebuild it with a fresh restart with a strong foundation. The foundation was weak. It was okay I was weak I was happy. I know now what needs to be done.</p><p>==============================================================</p><p>In the heart of a bustling city stood a three-sectioned house, a unique structure admired for its architectural beauty yet not fully understood in its complexity. The protagonist of this story, a newcomer to the world of building and architecture, found themselves residing on the top floor of this intriguing edifice.</p><p>One fateful day, reality took a sharp turn towards the surreal. The right section of the house, as if in slow motion, began to collapse. Amidst the chaos, a crucial detail emerged — a knot, the heart of the building, holding it all together. This knot required tightening, a simple yet profound act that could prevent the impending doom. Our protagonist, inexperienced and taken aback by the sudden responsibility, was the only one in position to make a difference.</p><p>As the building tilted a harrowing 30 degrees, teetering on the brink of total collapse, panic ensued. The very foundations of what was considered safe and stable were now questioning their existence. In this moment of turmoil, the protagonist didn’t fully grasp the gravity of the situation or the solution within their reach.</p><p>Driven by instinct, they made their way to the elevator, seeking escape. Miraculously, as they moved, the building began to regain its original posture. It was a revelation — their presence within the structure was somehow balancing it, a human keystone amidst the chaos. However, fear clouded judgment. The thought of staying put, becoming a pillar of strength for the building and its inhabitants, was overshadowed by the primal urge to survive.</p><p>Choosing to run, the protagonist descended, leaving the fate of the building hanging in the balance. Upon reaching the ground, the inevitable happened. The building collapsed, sending debris flying, injuring people, and leaving destruction in its wake. Only half of the right section was affected, but the damage was done. Two sections remained intact, standing as silent witnesses to the catastrophe.</p><p>In the aftermath, amidst the rubble and the heartache, a profound realization dawned upon our protagonist. The collapse was not just a failure of physical structure but a reflection of their own foundations, both literal and metaphorical. The building’s weak foundation mirrored their initial inability to stand firm in the face of adversity.</p><p>Yet, in this moment of despair, there was a glimmer of hope, an opportunity for redemption. The protagonist understood that this was not the end but a chance for a new beginning. With lessons learned and a newfound strength, they could rebuild not just the physical structure but also their inner resolve.</p><p>The journey ahead would be arduous, requiring more than just architectural skills. It would demand courage, resilience, and a willingness to confront and overcome personal fears and limitations. But the protagonist was ready. They had faced their moment of truth and emerged with a clear vision.</p><p>The collapsed building became a symbol of transformation, a reminder that from the ruins, a stronger, more resilient structure could rise, one with a foundation solid in both material and spirit. And so, with a heart fortified by experience and a mind enlightened by understanding, the protagonist set forth on their new path. They were not just rebuilding a house; they were laying the groundwork for a future where they, and the structures they create, would stand tall against any storm, unyielding and proud.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2ef970776e4b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SOLID ARCHITECTURE IN PYTHON]]></title>
            <link>https://medium.com/@SumanAstani/solid-architecture-in-python-a7eaec35fdb5?source=rss-f0935ecda9bd------2</link>
            <guid isPermaLink="false">https://medium.com/p/a7eaec35fdb5</guid>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[suman astani]]></dc:creator>
            <pubDate>Tue, 16 Apr 2019 11:08:10 GMT</pubDate>
            <atom:updated>2019-04-16T11:08:10.765Z</atom:updated>
            <content:encoded><![CDATA[<p>Solid Architecture is the first five object oriented design pattern forwarded by Robert C. Martin also known by the name Uncle bob. This design pattern helps developer to maintain, extend their code base in more agile way during software development process.</p><p>Their exist quite references for solid architecture principle in different languages. But I am quiet interested in how this principle can be implemented in pythonic way. (Here, pythonic means idiomatic python . it refers to the style, as well as architecture and design of the code)</p><p>The architecture is not complex. It is pretty simple to grasp.</p><blockquote>S = Single Repository Principle.</blockquote><blockquote>O = Open/Closed Principle.</blockquote><blockquote>L = Liskov Substitution Principle</blockquote><blockquote>I = Inversion segragration Principle</blockquote><blockquote>D = Dependency Inversion Principle</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a7eaec35fdb5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Lambda | map | list comprehension (Functional programming concept)]]></title>
            <link>https://medium.com/@SumanAstani/lambda-map-list-comprehension-functional-programming-concept-b789f0a23a5f?source=rss-f0935ecda9bd------2</link>
            <guid isPermaLink="false">https://medium.com/p/b789f0a23a5f</guid>
            <category><![CDATA[functional-programming]]></category>
            <category><![CDATA[lambda]]></category>
            <category><![CDATA[maps]]></category>
            <category><![CDATA[list-comprehension]]></category>
            <dc:creator><![CDATA[suman astani]]></dc:creator>
            <pubDate>Wed, 19 Sep 2018 03:31:25 GMT</pubDate>
            <atom:updated>2018-09-19T03:31:25.299Z</atom:updated>
            <content:encoded><![CDATA[<p>Must of the programmers, must have knowledge of Object Oriented Programming Concept. Here, we extensively used classed based view to create our programs. Its hard to move from classed based view to function based view in java. However, it is possible in python. In functional programming, Unlike object, the function provides the main logic in the program.</p><blockquote><strong>Lambda</strong></blockquote><p>In python, we can use lambda to mimic the use of function with out defining def: function in our code. It is usually used to create the small anonymous function. i.e. function with out the name.</p><p>syntax : lambda argument_list: expression</p><p>Here argument_list points to comma separated arguments and expression points to arithmetic operation between the arguments passed.</p><pre>sum = <strong>lambda </strong>x,y : x+y<br><br><strong>print </strong>sum(2,4)</pre><p>(vnenv) divyatech@divyaTech:~$ python lambda.py <br>6</p><p>we don’t to define the function like”</p><pre>def sum(x,y):<br>    return x +y</pre><pre><strong>print </strong>sum(2,4)</pre><blockquote>Comment down for more content.. I will upload it soon.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b789f0a23a5f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Python Decorators]]></title>
            <link>https://medium.com/@SumanAstani/python-decorators-31588314804c?source=rss-f0935ecda9bd------2</link>
            <guid isPermaLink="false">https://medium.com/p/31588314804c</guid>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[suman astani]]></dc:creator>
            <pubDate>Mon, 17 Sep 2018 04:19:58 GMT</pubDate>
            <atom:updated>2018-09-17T04:19:58.799Z</atom:updated>
            <content:encoded><![CDATA[<p>Python Decorators</p><p>Example 1:</p><p>In python, decorators are callable python object that is used to modify python function, method or class definition. Here, the object that are going to get modified is passed as argument to the decorators. Here I have provided the simple decorators with only one arguments.</p><pre><strong>def </strong>our_deocorator(func):<br>    <strong>def </strong>function_wrapper(x):<br>        print(<strong>&quot;Before calling &quot; </strong>+ func.__name__)<br>        s = func(x)<br>        print(s)<br>        print(<strong>&quot;After calling &quot; </strong>+ func.__name__)<br>    <strong>return </strong>function_wrapper<br><br>@our_deocorator<br><strong>def </strong>succ(n):<br>    <strong>return </strong>n+1<br><br>succ(3)</pre><p>Output:</p><p>Before calling succ<br>4<br>After calling succ</p><p>In above code snippet, What we did is used additional code to run before executing the function succ(). We call decorator function with @ symbol before the function.</p><p>Example 2:</p><p>checking arguments with decorators. One application of decorators are checking the arguments. The real practical example can be to check the authenticated user in our application. Here, I provided simple example of factorial number. Where it checks whether the passed no is positive integer or not. If the passed integers is negative. It raise the exception errors.</p><pre><strong>def </strong>argumetnt_test_natural_no(F):<br>    <strong>def </strong>helper(x):<br>        <strong>if </strong>type(x) == int <strong>and </strong>x &gt; 0:<br>            <strong>return </strong>F(x)<br>        <strong>else</strong>:<br>            <strong>raise </strong>Exception(<strong>&quot;Argument is not a positive integer&quot;</strong>)<br>    <strong>return </strong>helper<br><br>@argumetnt_test_natural_no<br><strong>def </strong>factorail(n):<br>    <strong>if </strong>n == 1:<br>        <strong>return </strong>1<br>    <strong>else</strong>:<br>        <strong>return </strong>n * (n-1)<br><br><strong>for </strong>i <strong>in </strong>range(1,10):<br>    print(i, factorail(i))<br><br>print(factorail(-1))</pre><p>Output:</p><p>(1, 1)<br>(2, 2)<br>(3, 6)<br>(4, 12)<br>(5, 20)<br>(6, 30)<br>(7, 42)<br>(8, 56)<br>(9, 72)<br>Traceback (most recent call last):<br> File “factorial.py”, line 19, in &lt;module&gt;<br> print(factorail(-1))<br> File “factorial.py”, line 6, in helper<br> raise Exception(“Argument is not a positive integer”)<br>Exception: Argument is not a positive integer</p><p>Example 3:</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=31588314804c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Conky Configuration in Linux Machine]]></title>
            <link>https://medium.com/@SumanAstani/conky-configuration-in-linux-machine-20ddb9e86c57?source=rss-f0935ecda9bd------2</link>
            <guid isPermaLink="false">https://medium.com/p/20ddb9e86c57</guid>
            <category><![CDATA[kali-linux]]></category>
            <category><![CDATA[debain]]></category>
            <category><![CDATA[conky-manager]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[conky]]></category>
            <dc:creator><![CDATA[suman astani]]></dc:creator>
            <pubDate>Wed, 28 Feb 2018 02:16:39 GMT</pubDate>
            <atom:updated>2018-02-28T02:16:39.733Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K6tfDqpmDqzqGpbLrJXBrg.png" /></figure><p>Hello and Namaste from the top of the World. I will be sharing new knowledge regarding how you can install and configure conky scripts in linux machine. At the end of the tutorial you will be able to configure my custom made conky scripts. Further more, you will be able to customize the scripts as your will.</p><p>I will be attaching <a href="https://github.com/SimonAstani/conky"><strong>github</strong></a> link and complete <a href="https://youtu.be/nvQ1DeU0zAo"><strong>youtube</strong></a> video regarding the tutorials.</p><p>Do ping the link above for complete guide.</p><p>Do feel free to comment for any problems that gets encounter. Any feedback is welcome. Do Subscribe my youtube channel, follow my github link. So, you will get notified whenever i shared the new contents.</p><p>In future , I am planning to write my own custom gmail , weather scripts and addition features in conky. So, stay tuned..</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=20ddb9e86c57" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>