<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: kali kimanzi</title>
    <description>The latest articles on DEV Community by kali kimanzi (@kalikimanzi).</description>
    <link>https://dev.to/kalikimanzi</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F298130%2F2a414be8-4c92-4225-a23a-e5b38021cc36.png</url>
      <title>DEV Community: kali kimanzi</title>
      <link>https://dev.to/kalikimanzi</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kalikimanzi"/>
    <language>en</language>
    <item>
      <title>The Vision of One or the Vision of Many: A Dilemma in the Age of Innovation(Elon Musk or Jack Dorsey)</title>
      <dc:creator>kali kimanzi</dc:creator>
      <pubDate>Fri, 27 Oct 2023 15:29:46 +0000</pubDate>
      <link>https://dev.to/kalikimanzi/the-vision-of-one-or-the-vision-of-many-a-dilemma-in-the-age-of-innovationelon-musk-or-jack-dorsey-3okd</link>
      <guid>https://dev.to/kalikimanzi/the-vision-of-one-or-the-vision-of-many-a-dilemma-in-the-age-of-innovationelon-musk-or-jack-dorsey-3okd</guid>
      <description>&lt;p&gt;Imagine a solar system with a single star and many planets, each with its own orbit, rotation, and characteristics. Now imagine another solar system with multiple stars and fewer planets, each influenced by the gravitational forces of different stars. Which solar system is more stable, more diverse, and more conducive to life?&lt;/p&gt;

&lt;p&gt;This is the metaphor that comes to my mind when I think about the vision of one versus the vision of many in the world of technology and innovation. Should we follow the lead of a single visionary who has a clear and ambitious plan for the future, or should we embrace the diversity and creativity of many visionaries who have different perspectives and goals?&lt;/p&gt;

&lt;p&gt;A few years ago, if you had asked me this question, I would have told you that I believe in the vision of many. I would have argued that from chaos comes order, and that the vision of many creates chaos that fosters innovation and adaptation. I would have associated Jack Dorsey with the vision of many, not from his role as the CEO of Twitter, but from his involvement in Bitcoin, Nostr, and Primal, projects that aim to decentralize and democratize various aspects of society.&lt;/p&gt;

&lt;p&gt;But lately, I have been conflicted by the impressive achievements of Elon Musk, who epitomizes the vision of one. He has a grand vision for humanity that spans across multiple domains, such as space exploration, electric vehicles, renewable energy, neural interfaces, and artificial intelligence. He has demonstrated his ability to execute his vision with remarkable speed and efficiency, creating companies that disrupt and dominate their respective industries.&lt;/p&gt;

&lt;p&gt;Can the vision of one and the vision of many coexist and complement each other, or are they incompatible and competitive? While I have not lived long enough to witness the long-term outcomes of these two approaches, I can see from a distance that both have their merits and drawbacks. The vision of one can provide direction, focus, and scale, but it can also entail risk, rigidity, and monopoly. The vision of many can offer diversity, creativity, and resilience, but it can also result in fragmentation, confusion, and conflict.&lt;/p&gt;

&lt;p&gt;What does this mean for the computing systems of the future? Which approach has more advantages over the other, or should we reframe the question and look at how each approach has been implemented? Does this mean that centralized systems are not all that bad, or that decentralized systems are not all that good? Time will tell.&lt;/p&gt;

</description>
      <category>decentralization</category>
      <category>centralized</category>
      <category>systems</category>
    </item>
    <item>
      <title>The Daily Newsletter: Your Secret Weapon for Success in Software Engineering</title>
      <dc:creator>kali kimanzi</dc:creator>
      <pubDate>Tue, 24 Oct 2023 09:11:07 +0000</pubDate>
      <link>https://dev.to/kalikimanzi/the-daily-newsletter-your-secret-weapon-for-success-in-software-engineering-454g</link>
      <guid>https://dev.to/kalikimanzi/the-daily-newsletter-your-secret-weapon-for-success-in-software-engineering-454g</guid>
      <description>&lt;p&gt;As a software engineer, I know how important it is to keep up with the latest developments in technology. But with so much information out there, how can I find the time and energy to read everything?&lt;/p&gt;

&lt;p&gt;That’s why I have adopted a simple habit: reading a newsletter a day. Yes, you heard me right. Just one newsletter a day can make a huge difference in my skills and knowledge as a software engineer.&lt;/p&gt;

&lt;p&gt;Here are some of the benefits of reading a newsletter a day:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;It provides concise information that summarizes the most important updates in software engineering.&lt;/li&gt;
&lt;li&gt;It offers curated content from reputable sources or industry experts who know what matters.&lt;/li&gt;
&lt;li&gt;It ensures regular updates that keep me informed about the latest trends, tools, and technologies in software engineering.&lt;/li&gt;
&lt;li&gt;It gives me diverse perspectives from different authors, which broaden my understanding and approach towards software engineering.&lt;/li&gt;
&lt;li&gt;It allows me to learn at my own pace, spending time on complex topics and skipping those that are not relevant to me.&lt;/li&gt;
&lt;li&gt;It creates networking opportunities with online communities or forums where I can interact, ask questions, and share ideas with like-minded professionals.
I have been reading a newsletter a day for the past few months and I can say that it has significantly improved my skills and knowledge as a software engineer. I have learned new things, discovered new tools, and gained new insights that have helped me in my work.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you’re looking for an easy and effective way to stay updated and grow as a software engineer, I highly recommend reading a newsletter a day. You can find many newsletters that cater to your interests and needs online. Just pick one that resonates with you and make it part of your daily routine.&lt;/p&gt;

&lt;p&gt;Trust me, you won’t regret it!&lt;/p&gt;

</description>
      <category>newsletters</category>
      <category>softwareengineering</category>
    </item>
    <item>
      <title>The Efficacy of Psychometric Tests in Identifying Proficient Software Engineers</title>
      <dc:creator>kali kimanzi</dc:creator>
      <pubDate>Mon, 23 Oct 2023 00:10:47 +0000</pubDate>
      <link>https://dev.to/kalikimanzi/the-efficacy-of-psychometric-tests-in-identifying-proficient-software-engineers-39pj</link>
      <guid>https://dev.to/kalikimanzi/the-efficacy-of-psychometric-tests-in-identifying-proficient-software-engineers-39pj</guid>
      <description>&lt;p&gt;In the recent past, I found myself taking a psychometric test that emphasized speed and accuracy. This approach seemed somewhat out of place to me. Is the essence of engineering truly about speed? Has the discipline been diminished to mere instincts, much like foreign exchange trading? While I recognize that engineering involves solving problems, I question whether reaching a solution more quickly is synonymous with reaching the safest solution.&lt;/p&gt;

&lt;p&gt;Engineering is not merely about finding solutions at a rapid pace. Accuracy is indeed a factor to consider, but it is not the sole determinant of a good engineering solution. Safety and resource efficiency must also be taken into account.&lt;/p&gt;

&lt;p&gt;Interestingly, psychometric tests seem to reduce engineering to an analytical approach, while in reality, engineering is largely a classical discipline.&lt;/p&gt;

&lt;p&gt;So, are psychometric tests the most effective way to determine if an engineer excels in their work? I would challenge this approach to some extent. From my own engineering experience, I have come to realize that solutions can arise from various perspectives and that quick thinking contributes minimally to effective engineering solutions.&lt;/p&gt;

&lt;p&gt;I believe that speed and accuracy only measure certain aspects of an individual engineer's quick thinking abilities. While these traits might be beneficial in certain fields like aviation engineering, I believe that they represent an inner layer - something innate - that has minimal influence on the overall effectiveness of an engineer.&lt;/p&gt;

&lt;p&gt;Finally, psychometric tests can be gamed. There are many resources available online and in books that teach people how to improve their performance on psychometric tests. This means that candidates who are good at taking tests may score higher than candidates who are more skilled in engineering.&lt;/p&gt;

&lt;p&gt;While there may not be a universally accepted approach to determine a good engineer, I am skeptical about the inclusion of psychometric tests in the hiring process. These tests may provide some insights but should not be the sole or primary determinant in the hiring decision.&lt;/p&gt;

</description>
      <category>pyschometricte</category>
      <category>aptitudetest</category>
    </item>
    <item>
      <title>Efficient String Splitting in Go: A Solution for Gophers Dealing with API Responses</title>
      <dc:creator>kali kimanzi</dc:creator>
      <pubDate>Tue, 27 Jun 2023 03:19:17 +0000</pubDate>
      <link>https://dev.to/kalikimanzi/efficient-string-splitting-in-go-a-solution-for-gophers-dealing-with-api-responses-38fh</link>
      <guid>https://dev.to/kalikimanzi/efficient-string-splitting-in-go-a-solution-for-gophers-dealing-with-api-responses-38fh</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;When working with API responses in Go, Gophers often encounter the need to split strings based on a specific delimiter. This article aims to provide a solution to this common problem by presenting an efficient code snippet for string splitting in Go. By understanding and implementing this solution, Gophers can effortlessly separate string values, especially when dealing with API responses.&lt;/p&gt;

&lt;h2&gt;
  
  
  Understanding the Problem
&lt;/h2&gt;

&lt;p&gt;In the realm of API development, parsing and manipulating response data is an essential task. It's not uncommon to receive a string that needs to be split into separate parts based on a specific delimiter, such as a dollar sign ($). While Go provides built-in functions for string manipulation, knowing the most efficient way to split strings can greatly enhance a developer's productivity.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Solution: String Splitting in Go
&lt;/h2&gt;

&lt;p&gt;To tackle this problem efficiently, we will leverage Go's standard library package &lt;code&gt;strings&lt;/code&gt; and its &lt;code&gt;Split&lt;/code&gt; function. The code snippet provided below demonstrates a clean and effective way to split a string using the dollar sign ($) as the delimiter:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight go"&gt;&lt;code&gt;&lt;span class="k"&gt;package&lt;/span&gt; &lt;span class="n"&gt;main&lt;/span&gt;

&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="s"&gt;"fmt"&lt;/span&gt;
    &lt;span class="s"&gt;"strings"&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;func&lt;/span&gt; &lt;span class="n"&gt;separateString&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;input&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;[]&lt;/span&gt;&lt;span class="kt"&gt;string&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="c"&gt;// Split the string using the dollar sign ($) as the delimiter&lt;/span&gt;
    &lt;span class="n"&gt;parts&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="n"&gt;strings&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Split&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;input&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;"$"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

    &lt;span class="c"&gt;// Remove any leading or trailing empty strings resulting from the split&lt;/span&gt;
    &lt;span class="k"&gt;var&lt;/span&gt; &lt;span class="n"&gt;result&lt;/span&gt; &lt;span class="p"&gt;[]&lt;/span&gt;&lt;span class="kt"&gt;string&lt;/span&gt;
    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;_&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;part&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="k"&gt;range&lt;/span&gt; &lt;span class="n"&gt;parts&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;part&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="s"&gt;""&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="n"&gt;result&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;part&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;result&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;func&lt;/span&gt; &lt;span class="n"&gt;main&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="c"&gt;// Example usage&lt;/span&gt;
    &lt;span class="n"&gt;input&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="s"&gt;"Hello$world$how$are$you?"&lt;/span&gt;
    &lt;span class="n"&gt;parts&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="n"&gt;separateString&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;input&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

    &lt;span class="n"&gt;fmt&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Println&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"Original String:"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;input&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;fmt&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Println&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"Separated Parts:"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;parts&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Results&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Original String: Hello$world$how$are$you?
Separated Parts: [Hello world how are you?]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;By utilizing the &lt;code&gt;strings.Split&lt;/code&gt; function, the input string is split into separate parts based on the dollar sign ($) delimiter. To ensure clean results, the code snippet also removes any leading or trailing empty strings that may result from the split.&lt;/p&gt;

&lt;h2&gt;
  
  
  Benefits and Use Cases
&lt;/h2&gt;

&lt;p&gt;The provided code snippet offers several benefits and can be applied in various scenarios:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;API Response Parsing&lt;/strong&gt;: When working with API responses, it's common to receive string data that needs to be parsed and processed. The efficient string splitting solution presented here can be a valuable asset in handling and extracting meaningful information from API responses.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Custom Delimiters&lt;/strong&gt;: While the code snippet uses the dollar sign ($) as the delimiter, it can be easily modified to work with other delimiters based on your specific requirements. This flexibility empowers developers to adapt the solution to a wide range of use cases.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Improved Productivity&lt;/strong&gt;: By understanding and implementing this efficient string splitting approach, Gophers can save valuable development time and effort. The solution provides a streamlined way to process and manipulate strings, making API response handling more convenient and less error-prone.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Working with API responses often requires Gophers to split strings based on specific delimiters. With the provided solution for efficient string splitting in Go, developers can handle this task effortlessly. By utilizing the &lt;code&gt;strings.Split&lt;/code&gt; function and incorporating the additional logic to remove empty strings, Gophers can extract meaningful information from API responses with ease. Armed with this knowledge, Gophers can enhance their productivity and streamline their string handling capabilities in Go.&lt;/p&gt;

</description>
      <category>go</category>
      <category>strings</category>
      <category>gophers</category>
    </item>
    <item>
      <title>Sending Gmail with Swiftmailer</title>
      <dc:creator>kali kimanzi</dc:creator>
      <pubDate>Mon, 12 Jul 2021 12:02:41 +0000</pubDate>
      <link>https://dev.to/kalikimanzi/sending-gmail-with-swiftmailer-22l6</link>
      <guid>https://dev.to/kalikimanzi/sending-gmail-with-swiftmailer-22l6</guid>
      <description>&lt;p&gt;adding mailing functionality to website is quite an essential part of website development. most website have this sections either in the contact us section, feedback sections among other sections like registration and sign up. It can be quite a hustle when you are beginner because we have you need to have a solutions that works without too much hassle, I prefer swift mailer because i find it straight of the box solutions compared to vanilla solutions and PHPMAILER(you are allowed to have an alternative view who cares though ). This tutorial assumes you have installed your XAMPP or whatever server you have there and also prior knowledge on PHP is a bonus .&lt;/p&gt;

&lt;p&gt;To avoid too much stories let's get straight to it.&lt;/p&gt;

&lt;p&gt;Steps&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Download swiftmailer&lt;/li&gt;
&lt;li&gt;create mailing script&lt;/li&gt;
&lt;li&gt;Enable your gmail account for IMAP&lt;/li&gt;
&lt;li&gt;Testing your mailing script &lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  1. Download swiftmailer
&lt;/h2&gt;

&lt;p&gt;In your htdocs folder create your working director in my case i have named it &lt;strong&gt;sendmail.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;inside the sendmail directory install swiftmailer with &lt;strong&gt;composer&lt;/strong&gt;. Check also on the swiftmailer official website &lt;a href="https://swiftmailer.symfony.com/docs/introduction.html#installation"&gt;here&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="n"&gt;composer&lt;/span&gt; &lt;span class="k"&gt;require&lt;/span&gt; &lt;span class="s2"&gt;"swiftmailer/swiftmailer:^6.0"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  2. Create mailing script
&lt;/h2&gt;

&lt;p&gt;This is a simple script which contains mailing function and html form, the message is hardcoded but for demonstration purpose. create this script inside your working directory eg &lt;strong&gt;sendmail&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="cp"&gt;&amp;lt;?php&lt;/span&gt;

&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;isset&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$_POST&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"email"&lt;/span&gt;&lt;span class="p"&gt;])){&lt;/span&gt;

&lt;span class="c1"&gt;//echo $_POST["email"] ;&lt;/span&gt;

&lt;span class="k"&gt;require_once&lt;/span&gt; &lt;span class="s1"&gt;'./vendor/autoload.php'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Create the Transport&lt;/span&gt;
&lt;span class="nv"&gt;$transport&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Swift_SmtpTransport&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'smtp.gmail.com'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;465&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'ssl'&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
  &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;setUsername&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'putyouremail@gmail.com'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;setPassword&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'putyouremailpassword'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Create the Mailer using your created Transport&lt;/span&gt;
&lt;span class="nv"&gt;$mailer&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Swift_Mailer&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$transport&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="c1"&gt;// Create a message&lt;/span&gt;
&lt;span class="nv"&gt;$message&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Swift_Message&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'Mail tutorial '&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
  &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;setFrom&lt;/span&gt;&lt;span class="p"&gt;([&lt;/span&gt;&lt;span class="s1"&gt;'putyouremail@gmail.com'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="s1"&gt;'sending mail tutorial'&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;
  &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;setTo&lt;/span&gt;&lt;span class="p"&gt;([&lt;/span&gt;&lt;span class="nv"&gt;$_POST&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"email"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="s1"&gt;'testing the mail sending option '&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;
  &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;setBody&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'congrats you have send your firstmail cheers to your new skill'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Send the message&lt;/span&gt;
&lt;span class="nv"&gt;$result&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;$mailer&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;send&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$message&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="cp"&gt;?&amp;gt;&lt;/span&gt;

&lt;span class="nt"&gt;&amp;lt;form&lt;/span&gt; &lt;span class="na"&gt;action=&lt;/span&gt;&lt;span class="s"&gt;""&lt;/span&gt; &lt;span class="na"&gt;method=&lt;/span&gt;&lt;span class="s"&gt;"post"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;input&lt;/span&gt; &lt;span class="na"&gt;type=&lt;/span&gt;&lt;span class="s"&gt;"text"&lt;/span&gt; &lt;span class="na"&gt;name=&lt;/span&gt;&lt;span class="s"&gt;"email"&lt;/span&gt; &lt;span class="na"&gt;placeholder = &lt;/span&gt;&lt;span class="s"&gt;"Email Me"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;input&lt;/span&gt; &lt;span class="na"&gt;type=&lt;/span&gt;&lt;span class="s"&gt;"submit"&lt;/span&gt; &lt;span class="na"&gt;value=&lt;/span&gt;&lt;span class="s"&gt;"Email me"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/form&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  3. Enable your gmail account for IMAP
&lt;/h2&gt;

&lt;p&gt;after you have created this script use the following address to enable IMAP settings due to google security settings &lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.google.com/settings/security/lesssecureapps"&gt;https://www.google.com/settings/security/lesssecureapps&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Testing your mailing script
&lt;/h2&gt;

&lt;p&gt;Run your script on local host and enjoying using it. you can create complicated mailing systems with swiftmailer among other things. Happy coding&lt;/p&gt;

&lt;h2&gt;
  
  
  ABOUT ME
&lt;/h2&gt;

&lt;p&gt;I hope you have liked this article.&lt;br&gt;
I am Kali Kimanzi a Masters student Energy Informatics at University of Applied Sciences Upper Austria, I am also a software developer at NTUITY a brand of neoom group Gmbh Wien | Freistadt. I take interest in Data sciences using python and I use python libraries like pandas, numpy and Matplotlib. I specialize in Python, PHP/Laravel, Java.&lt;br&gt;
Social media links&lt;br&gt;
Kali kimanzi @ Facebook: Kali Kimanzi&lt;br&gt;
Kali Kimanzi @ Linkedin: Kali Kimanzi&lt;br&gt;
Kali Kimanzi @ instagram : Kali_Kimanzi&lt;br&gt;
Kali Kimanzi GitHub: Kali Kimanzi&lt;br&gt;
kali kimanzi Twitter : Kali Kimanzi&lt;/p&gt;

</description>
      <category>smtp</category>
      <category>php</category>
      <category>swiftmailer</category>
      <category>gmail</category>
    </item>
    <item>
      <title>HOW TO PUT A ANGULAR APPLICATION TO A DOCKER CONTAINER</title>
      <dc:creator>kali kimanzi</dc:creator>
      <pubDate>Wed, 05 Aug 2020 14:03:25 +0000</pubDate>
      <link>https://dev.to/kalikimanzi/how-to-put-a-angular-application-to-a-docker-container-496j</link>
      <guid>https://dev.to/kalikimanzi/how-to-put-a-angular-application-to-a-docker-container-496j</guid>
      <description>&lt;p&gt;I have read quite complicated articles on how to deploy an Angular application to a docker container that is why I am motivated to write this simplest step by step guide to putting your angular app to docker container&lt;/p&gt;

&lt;p&gt;1 Assuming you have already created your app and now you want to dockerize it. run the code below to create a dist folder in your application folder&lt;/p&gt;

&lt;p&gt;&lt;code&gt;ng build&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;2 create a file called Dockerfile under root of your application as illustrated below&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--fVwzXs1q--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/i1ip1j0pkso1k84kx2n1.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--fVwzXs1q--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/i1ip1j0pkso1k84kx2n1.PNG" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;3 copy following code to your Dockerfile&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;FROM node:alpine AS my-app-build
WORKDIR /app
COPY . .
RUN npm install &amp;amp;&amp;amp; npm run build

FROM nginx:alpine
COPY --from=my-app-build /app/dist/{name-of-your-application} /usr/share/nginx/html
EXPOSE 80
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;4 Now your application is ready to be put in a docker container. this tutorial assumes you have downloaded docker and a copy is running locally on your machine. if you have not downloaded the docker application visit the Docker website to download the version suitable for your machine . when all that has been set up use the code below to build image for your application.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;// docker build -t name-of-container:tag-of-image .
docker build -t my-application-container:latest . 
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;5 To start your application locally and test it on a browser run&lt;br&gt;
&lt;code&gt;docker run --publish 80:80 --detach --name bb bulletinboard:lastest&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;I hope you enjoyed this tutorial. i will write more tutorials on how to deploy your Docker container on Azure.&lt;/p&gt;

</description>
      <category>angular</category>
      <category>docker</category>
    </item>
    <item>
      <title>Finding a minimum number in a Java Array</title>
      <dc:creator>kali kimanzi</dc:creator>
      <pubDate>Fri, 10 Jan 2020 10:35:38 +0000</pubDate>
      <link>https://dev.to/kalikimanzi/finding-a-minimum-number-in-a-java-array-5hc</link>
      <guid>https://dev.to/kalikimanzi/finding-a-minimum-number-in-a-java-array-5hc</guid>
      <description>&lt;p&gt;Sometime back we were given a java assignment but I realized the concepts looked easy but some of my friends had problems implementing them that is why I have decided to be sharing some of the java assignments that I have done in the past to help students and learners who are new to programming in java.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Question:&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;Write a function int findMin (int[] numbers), which yields the smallest element of numbers that contains positive integers. The result shall be -1, if numbers has the value null or the array does exclusively contain positive integers. Use several test cases.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Java Source Code:&lt;/b&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight java"&gt;&lt;code&gt;

&lt;span class="kd"&gt;public&lt;/span&gt; &lt;span class="kd"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;FindingMinimum&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;

    &lt;span class="kd"&gt;public&lt;/span&gt; &lt;span class="kd"&gt;static&lt;/span&gt; &lt;span class="kt"&gt;void&lt;/span&gt; &lt;span class="nf"&gt;main&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;String&lt;/span&gt;&lt;span class="o"&gt;[]&lt;/span&gt; &lt;span class="n"&gt;args&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
        &lt;span class="c1"&gt;// int[] numbers =null;&lt;/span&gt;
        &lt;span class="c1"&gt;// System.out.println(x);&lt;/span&gt;
        &lt;span class="c1"&gt;// int[] numbers= {2,3,4,5,6,20,1,-5};&lt;/span&gt;
        &lt;span class="kt"&gt;int&lt;/span&gt;&lt;span class="o"&gt;[]&lt;/span&gt; &lt;span class="n"&gt;numbers&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;6&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="o"&gt;};&lt;/span&gt;
        &lt;span class="c1"&gt;//int[] numbersSet1= {2,3,4,5,6,20,1,-5};&lt;/span&gt;

        &lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="n"&gt;minimumNumber&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;findMin&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="n"&gt;numbers&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
        &lt;span class="nc"&gt;System&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;out&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;println&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"The Minimum number is :\t"&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="n"&gt;minimumNumber&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
        &lt;span class="c1"&gt;//minimumNumber = findMin(numbersSet1);&lt;/span&gt;
        &lt;span class="c1"&gt;//System.out.println("The Minimum number is :\t"+minimumNumber);&lt;/span&gt;

    &lt;span class="o"&gt;}&lt;/span&gt;

    &lt;span class="kd"&gt;static&lt;/span&gt; &lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="nf"&gt;findMin&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;int&lt;/span&gt;&lt;span class="o"&gt;[]&lt;/span&gt; &lt;span class="n"&gt;numbers&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
        &lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="n"&gt;minValue&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;numbers&lt;/span&gt;&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="o"&gt;];&lt;/span&gt;

        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="n"&gt;isExclusivePositive&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="n"&gt;numbers&lt;/span&gt;&lt;span class="o"&gt;))&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;

            &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="n"&gt;numbers&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;length&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="o"&gt;++)&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
                &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="n"&gt;numbers&lt;/span&gt;&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="n"&gt;minValue&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
                    &lt;span class="n"&gt;minValue&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;numbers&lt;/span&gt;&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="o"&gt;];&lt;/span&gt;
                &lt;span class="o"&gt;}&lt;/span&gt;
            &lt;span class="o"&gt;}&lt;/span&gt;
        &lt;span class="o"&gt;}&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
            &lt;span class="n"&gt;minValue&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
        &lt;span class="o"&gt;}&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;minValue&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;

    &lt;span class="o"&gt;}&lt;/span&gt;

    &lt;span class="kd"&gt;static&lt;/span&gt; &lt;span class="kt"&gt;boolean&lt;/span&gt; &lt;span class="nf"&gt;isExclusivePositive&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;int&lt;/span&gt;&lt;span class="o"&gt;[]&lt;/span&gt; &lt;span class="n"&gt;numbers&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
        &lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;

        &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="n"&gt;numbers&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;length&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="o"&gt;++)&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
            &lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;numbers&lt;/span&gt;&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="o"&gt;];&lt;/span&gt;

            &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt;
                &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
        &lt;span class="o"&gt;}&lt;/span&gt;

        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
    &lt;span class="o"&gt;}&lt;/span&gt;

&lt;span class="o"&gt;}&lt;/span&gt;


&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;&lt;b&gt;Output:&lt;/b&gt;&lt;/p&gt;

&lt;pre&gt;
The Minimum number is : 1
&lt;/pre&gt;

&lt;p&gt;I hope you have liked this article.&lt;/p&gt;

&lt;p&gt;I am Kali Kimanzi a Masters student at University of Applied Sciences Upper Austria, I am a software developer at NTUITY a brand of neoom group gmbh Wien | Freistadt. I take interest in Data sciences using python and i use python libraries like pandas, numpy and Matplotlib. I specialize in Python, PHP/Laravel, Java. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Social media links&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Kali kimanzi @ Facebook: &lt;a href="https://www.facebook.com/Kalikimcel"&gt;Kali Kimanzi  &lt;/a&gt;&lt;br&gt;
Kali  Kimanzi @  Linkedin: &lt;a href="http://linkedin.com/in/kalikimanzi"&gt;Kali Kimanzi&lt;/a&gt;&lt;br&gt;
Kali  Kimanzi @ instagram : &lt;a href="https://www.instagram.com/kalikimanzi/"&gt;Kali Kimanzi &lt;/a&gt;&lt;br&gt;
Kali Kimanzi  GitHub: &lt;a href="https://github.com/kalikim"&gt;Kali Kimanzi  &lt;/a&gt;&lt;br&gt;
kali kimanzi Twitter : &lt;a href="https://twitter.com/karliekimcel"&gt; Kali Kimanzi &lt;/a&gt;&lt;/p&gt;

</description>
      <category>java</category>
      <category>arrays</category>
    </item>
    <item>
      <title>Writing Python Api with Flask RESTful</title>
      <dc:creator>kali kimanzi</dc:creator>
      <pubDate>Thu, 09 Jan 2020 22:20:15 +0000</pubDate>
      <link>https://dev.to/kalikimanzi/writing-python-api-with-flask-restful-1ogo</link>
      <guid>https://dev.to/kalikimanzi/writing-python-api-with-flask-restful-1ogo</guid>
      <description>&lt;p&gt;I had been working on a python application, Now it came to the section where I had to write an API for my application. it was such a headache because I was a newbie on Api's and I had little understanding of APIs. So I spend so much time online reading about APIs and how to integrate one to my application. it all looked like rocket science from most of the articles I went through. that is why I decided to come up with this article. it will take you through implementing a simple API, Later I will come up with a more detailed article though this code will take you through most of the basics of flask RESTful API and how to create one successfully. &lt;br&gt;
I have put comments on my code for clarification and detailed walkthrough.&lt;/p&gt;

&lt;p&gt;everything that starts with # is a comment, I believe if you are reading the article you have an understanding of python coding. hope you will like this article.&lt;br&gt;
The concept of using classes with python has been covered in this article to help you have full understanding. I will write a more advanced article for now this &lt;br&gt;
article is for absolute beginners &lt;/p&gt;

&lt;h2&gt;
  
  
  what the application below does
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Receives json file and extracts the json values that are then used for computation &lt;/li&gt;
&lt;li&gt;After computation, the application creates a JSON file. this request can be done through postman which enable to make api calls and request.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Before i begin this article it would be nice if share how the file structure looks on my pycharm IDE.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--MeV4UEC1--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/vrebue0mef8b4w2mbiau.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--MeV4UEC1--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/vrebue0mef8b4w2mbiau.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;This is the main file for your flask
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;from flask import Flask, jsonify, request
#importing flask restful extenstion
from flask_restful import Resource, Api

#importing a class from a package called ntuity in the application

from ntuity.ntuityprac import  #importing a class from a package called ntuity

app = Flask(__name__)
*api=Api(app)


##class Kamau(Resource):

    def post(self):
        jsonval=request.get_json()
        content=jsonval.get("number")
        sum=10*content
        bestie=["welcome", 525, "kiza"]
        return jsonify({"sum":sum,"kenya":bestie})

class Kithome(Resource):
    p=NtuityPrac() #class object
    getval=p.get_square
    getsum=p.get_sum


    def post(self):
        jsonval = request.get_json()
        content = jsonval.get("number")
        get_add=self.getsum(content)
        get_sum=self.getval(content)
        return jsonify({"square":get_sum, "sum":get_add})


api.add_resource(Kamau,'/kama')
api.add_resource(Kithome,'/kithome')
if __name__ == '__main__':
    app.run()

below is the imported class from a package has two methods 

1. get_square()
2. get_sum()


class NtuityPrac:
#this class has two methods get square and get sum
    def get_square(self,num1):
        return num1*num1

    def get_sum(self, num1):
        return num1+num1
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;This a post man json request to kithome endpoint&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--WEtSr5di--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/ipor9i038s0mdrbvuwyn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--WEtSr5di--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/ipor9i038s0mdrbvuwyn.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The output of this request is json file with sum and square&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--8M_UgQGa--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/30q2ngadzu7leqljsqjj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--8M_UgQGa--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/30q2ngadzu7leqljsqjj.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I hope you have liked this article.&lt;/p&gt;

&lt;p&gt;I am Kali Kimanzi a Masters student Energy Informatics at University of Applied Sciences Upper Austria, I am also a software developer at NTUITY a brand of neoom group gmbh Wien | Freistadt. I take interest in Data sciences using python and i use python libraries like pandas, numpy and Matplotlib. I specialize in Python, PHP/Laravel, Java. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Social media links&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Kali kimanzi @ Facebook: &lt;a href="https://www.facebook.com/Kalikimcel"&gt;Kali Kimanzi  &lt;/a&gt;&lt;br&gt;
Kali  Kimanzi @  Linkedin: &lt;a href="http://linkedin.com/in/kalikimanzi"&gt;Kali Kimanzi&lt;/a&gt;&lt;br&gt;
Kali  Kimanzi @ instagram : &lt;a href="https://www.instagram.com/kalikimanzi/"&gt;Kali Kimanzi &lt;/a&gt;&lt;br&gt;
Kali Kimanzi  GitHub: &lt;a href="https://github.com/kalikim"&gt;Kali Kimanzi  &lt;/a&gt;&lt;br&gt;
kali kimanzi Twitter : &lt;a href="https://twitter.com/karliekimcel"&gt; Kali Kimanzi &lt;/a&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>flask</category>
      <category>restfulapi</category>
    </item>
    <item>
      <title>Nesting For loops in Java</title>
      <dc:creator>kali kimanzi</dc:creator>
      <pubDate>Wed, 08 Jan 2020 17:28:32 +0000</pubDate>
      <link>https://dev.to/kalikimanzi/nesting-for-loops-in-java-4p08</link>
      <guid>https://dev.to/kalikimanzi/nesting-for-loops-in-java-4p08</guid>
      <description>&lt;p&gt;this program aims at demystifying the headache behind nesting of for loops in java and other programming languages&lt;/p&gt;


&lt;div class="ltag__replit"&gt;
  &lt;iframe height="550px" src="https://repl.it/@kalikim/Understanding-nesting-of-for-loops?lite=true"&gt;&lt;/iframe&gt;
&lt;/div&gt;
?signin=true

</description>
      <category>replit</category>
      <category>java</category>
    </item>
  </channel>
</rss>
