<?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 Farhan Naqvi on Medium]]></title>
        <description><![CDATA[Stories by Farhan Naqvi on Medium]]></description>
        <link>https://medium.com/@farhannaqvi16?source=rss-4060da3dfed4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*rGAGHlFSm6A3MnKI.jpg</url>
            <title>Stories by Farhan Naqvi on Medium</title>
            <link>https://medium.com/@farhannaqvi16?source=rss-4060da3dfed4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 05:39:29 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@farhannaqvi16/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[Tomcat installation]]></title>
            <link>https://medium.com/@farhannaqvi16/tomcat-installation-4a58fcf93eae?source=rss-4060da3dfed4------2</link>
            <guid isPermaLink="false">https://medium.com/p/4a58fcf93eae</guid>
            <category><![CDATA[rhel-8]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[tomcat]]></category>
            <category><![CDATA[installation]]></category>
            <category><![CDATA[centos-8]]></category>
            <dc:creator><![CDATA[Farhan Naqvi]]></dc:creator>
            <pubDate>Mon, 29 Jan 2024 20:11:33 GMT</pubDate>
            <atom:updated>2024-01-29T20:11:33.141Z</atom:updated>
            <content:encoded><![CDATA[<p>Code Attached</p><pre>sudo yum install java-11-openjdk-devel<br><br>sudo update-alternatives --config java <br># select java 11 version<br><br><br>cd /opt<br>wget https://dlcdn.apache.org/tomcat/tomcat-8/v8.5.98/bin/apache-tomcat-8.5.98.tar.gz<br>tar -xvzf /opt/apache-tomcat-8.5.98.tar.gz<br><br>chmod +x /opt/apache-tomcat-8.5.98/bin/startup.sh <br>chmod +x /opt/apache-tomcat-8.5.98/bin/shutdown.sh<br><br>ln -s /opt/apache-tomcat-8.5.98/bin/startup.sh /usr/local/bin/tomcatup<br>ln -s /opt/apache-tomcat-8.5.98/bin/shutdown.sh /usr/local/bin/tomcatdown<br><br><br>tomcatup or /usr/local/bin/tomcatup<br><br><br>#search for context.xml<br>find / -name context.xml<br><br>#in the below files comment out the following line by changing<br># &lt;Valve className=&quot;org.apache.catalina.valves.RemoteAddrValve&quot;<br>#          allow=&quot;127\.\d+\.\d+\.\d+|::1|0:0:0:0:0:0:0:1&quot; /&gt; <br># to<br># &lt;!-- &lt;Valve className=&quot;org.apache.catalina.valves.RemoteAddrValve&quot;<br>#          allow=&quot;127\.\d+\.\d+\.\d+|::1|0:0:0:0:0:0:0:1&quot; /&gt; --&gt;<br>/opt/tomcat/webapps/host-manager/META-INF/context.xml<br>/opt/tomcat/webapps/manager/META-INF/context.xml<br><br># Restart tomcat services<br>tomcatdown  or /usr/local/bin/tomcatdown<br>tomcatup    or /usr/local/bin/tomcatup<br><br>#Update users information in the tomcat-users.xml file goto tomcat home directory and Add below users to conf/tomcat-users.xml file<br> &lt;role rolename=&quot;manager-gui&quot;/&gt;<br> &lt;role rolename=&quot;manager-script&quot;/&gt;<br> &lt;role rolename=&quot;manager-jmx&quot;/&gt;<br> &lt;role rolename=&quot;manager-status&quot;/&gt;<br> &lt;user username=&quot;admin&quot; password=&quot;admin&quot; roles=&quot;manager-gui, manager-script, manager-jmx, manager-status&quot;/&gt;<br> &lt;user username=&quot;deployer&quot; password=&quot;deployer&quot; roles=&quot;manager-script&quot;/&gt;<br> &lt;user username=&quot;tomcat&quot; password=&quot;s3cret&quot; roles=&quot;manager-gui&quot;/&gt;<br><br><br>/usr/local/bin/tomcatdown<br>/usr/local/bin/tomcatup</pre><p>Now you can access the it via VM_IP:8080. If you’ll go to Manager App and type credentials as username:tomcat &amp; password:s3cret, you’ll be able to login .</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4a58fcf93eae" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Nichts to Wunderbar : Guten Abend]]></title>
            <link>https://medium.com/@farhannaqvi16/from-nichts-to-wunderbar-guten-abend-e7ff5a8ab670?source=rss-4060da3dfed4------2</link>
            <guid isPermaLink="false">https://medium.com/p/e7ff5a8ab670</guid>
            <category><![CDATA[german]]></category>
            <category><![CDATA[goethe-zertifikat]]></category>
            <category><![CDATA[a1]]></category>
            <category><![CDATA[german-language]]></category>
            <category><![CDATA[goethe]]></category>
            <dc:creator><![CDATA[Farhan Naqvi]]></dc:creator>
            <pubDate>Sun, 31 Dec 2023 18:14:59 GMT</pubDate>
            <atom:updated>2023-12-31T18:14:59.350Z</atom:updated>
            <content:encoded><![CDATA[<h3>From Nichts to Wunderbar : Guten Abend</h3><h4>Lesson 2</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*vRU4XPgnR_xSmgNf" /><figcaption>Photo by <a href="https://unsplash.com/@tonny_tran?utm_source=medium&amp;utm_medium=referral">Tony Tran</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>You might be wondering when we’ll get to proper sentences, but it’s important to start with learning a few words before jumping into short sentences. This way, you won’t be completely lost when you come across any German text.</p><p><strong>Danke</strong> — thank you</p><p><strong>Bitte!</strong> — please</p><blockquote>The reply to “Danke” is often “Bitte!” (There are multiple answers though)</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*NqktabUfOaK4IALa" /><figcaption>Photo by <a href="https://unsplash.com/@punttim?utm_source=medium&amp;utm_medium=referral">Tim Gouw</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>richtig — right</p><p>falsch- false</p><p>Zhalen — numbers</p><p>Handy — mobile</p><p>Nummer — number</p><p>Handynummer — mobile number</p><p>Telefon— Telephone</p><p>Telefonnummer — Telephone number</p><p>Herr — Mr.</p><p>Frau — woman</p><p>gut — good</p><p>und — and</p><p>sprache — language</p><p>sprechen — speak</p><h3>Wie ist Ihre Handynummer? (What’s your mobile number)</h3><p>0650–32…. (While you may know how to answer it in English, do you know how to answer it in German?)</p><blockquote>I have explained numbers in the 3rd lesson</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e7ff5a8ab670" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Nichts to Wunderbar : Guten Morgen]]></title>
            <link>https://medium.com/@farhannaqvi16/from-nichts-to-wunderbar-guten-morgen-e9ecf2270410?source=rss-4060da3dfed4------2</link>
            <guid isPermaLink="false">https://medium.com/p/e9ecf2270410</guid>
            <category><![CDATA[a1]]></category>
            <category><![CDATA[guten-morgen]]></category>
            <category><![CDATA[german-language]]></category>
            <category><![CDATA[german]]></category>
            <category><![CDATA[wunderbar]]></category>
            <dc:creator><![CDATA[Farhan Naqvi]]></dc:creator>
            <pubDate>Sun, 31 Dec 2023 18:11:32 GMT</pubDate>
            <atom:updated>2023-12-31T18:12:41.199Z</atom:updated>
            <content:encoded><![CDATA[<h3>From Nichts to Wunderbar : Guten Morgen</h3><h4>Lesson 1</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*vo0OKPksGKdDXIbp" /><figcaption>Photo by <a href="https://unsplash.com/@sarah_noltner?utm_source=medium&amp;utm_medium=referral">Sarah Noltner</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>I have such fond memories of my first German class. Though I was nervous at first and didn’t know what to expect or who I’d meet, it turned out to be an amazing experience. I couldn’t believe how much I learned in just two short hours! Looking back, I’m so grateful that I took that first step and decided to embark on my German language-learning journey. It’s been a wonderful adventure filled with so much growth and progress.</p><p>I’ll never forget the first thing my German teacher said to us: ‘<strong>Hallo</strong>!’ For a split second, my brain went into overdrive, thinking, ‘Wait, does she not know English? How is she going to teach us German?!’ Of course, it quickly dawned on me that ‘<strong>Hallo</strong>’ meant ‘<strong>hello</strong>’ in German.</p><p>Talk about a blonde moment! Looking back, it’s hilarious to think how my mind was so frazzled over a simple greeting. But hey, we all have those moments, right? At least I can say my German language-learning journey started off with a good laugh!</p><p>That day we were taught some basic concepts which included words like:</p><p><strong>Hallo </strong>— hello</p><p><strong>Tag </strong>— day</p><p><strong>Guten Morgen</strong> — good morning</p><p><strong>Guten Tag</strong> — good day which can also be used for good afternoon</p><p><strong>Guten Abend </strong>— good evening</p><p><strong>Gute Nacht</strong> — good night</p><p><strong>Mein Name ist …..</strong> — My name is …..</p><p><strong>Ich bin …</strong> — I am …</p><p><strong>Tschüss</strong> — Bye</p><p><strong>auf wiedersehen</strong> — Bye</p><p><strong>Ich heiße …</strong> — My name …</p><blockquote>As soon as I heard the phrase ‘Ich heiße’, I asked my teacher why to use it if we already have ‘Mein Name’. It was then that I learned that there are often multiple German phrases that correspond to the same English phrase and are used interchangeably in daily conversations. It was at this moment that I realized that learning German was not going to be easy.</blockquote><p><strong>Klar!</strong> — clear</p><p><strong>Alles klar!</strong> — all clear</p><p><strong>Ja/Nein </strong>— Yes/No</p><p><strong>Vorname </strong>— first name</p><p><strong>Nachname </strong>— last name</p><p><strong>Fragen </strong>— questions</p><p><strong>Antworten </strong>— answers</p><blockquote>we learned how to ask and answer basic sentences in German, such as…</blockquote><h3><strong>Wie heiße Sie? (What’s you name)</strong></h3><p>Ich heiße Farhan. (My name is farhan)</p><h3>Woher kommen Sie?(Where do you come from)</h3><p>Ich komme aus Indien. (I come from India)</p><h3>Wo wohnen Sie? (where do you live)</h3><p>Ich wohne in Pune. (I live in pune)</p><h3>Was lernen Sie? (What are you learning)</h3><p>Ich lerne Deutsch.(I am learning german)</p><blockquote>You might be wondering why the word ‘Sie’ always comes at the end of every question, while the word preceding it always ends with ‘-en’. On the other hand, in the answers, when we use ‘Ich’ at the beginning of each sentence, the ending of words like ‘kommen’ and ‘lernen’ changes from ‘-en’ to ‘-e’, resulting in ‘komme’ and ‘lerne’, respectively.</blockquote><p>Even I had a similar doubt and when I approached with this question I was assured that the reason behind this would soon be explained to me, and let me tell you, it’s definitely worth the wait.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e9ecf2270410" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Post-Mortem of a Hello World program (code attached)]]></title>
            <link>https://medium.com/@farhannaqvi16/post-mortem-of-a-hello-world-program-code-attached-e4879a46f985?source=rss-4060da3dfed4------2</link>
            <guid isPermaLink="false">https://medium.com/p/e4879a46f985</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[analysis]]></category>
            <category><![CDATA[hello-world]]></category>
            <category><![CDATA[c-programming]]></category>
            <category><![CDATA[program]]></category>
            <dc:creator><![CDATA[Farhan Naqvi]]></dc:creator>
            <pubDate>Thu, 28 Dec 2023 18:39:07 GMT</pubDate>
            <atom:updated>2023-12-28T18:39:07.887Z</atom:updated>
            <content:encoded><![CDATA[<h4>Analysis for the C++ code</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4aXcjZw_12MsNxtM" /><figcaption>Photo by <a href="https://unsplash.com/@uns__nstudio?utm_source=medium&amp;utm_medium=referral">Unseen Studio</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><pre>#include &lt;iostream&gt;<br>using namespace std;<br> <br>int main()<br>{<br>    cout &lt;&lt; &quot;Hello World&quot;;<br>    return 0;<br>}</pre><h4><strong>#include</strong> &lt;iostream&gt;</h4><ul><li><strong>#include </strong>is a preprocessor directive that tells the compiler to include the contents of a file in the source code.</li><li><strong>#include&lt;iostream&gt;</strong> tells the compiler to include the standard iostream file which contains declarations of all the standard input/output library functions.</li></ul><h4><strong>using namespace std;</strong></h4><ul><li>It imports the entity of the std namespace into the current namespace of the program.</li><li>Alternative to this can be not writing this line and just using <strong>std::cout </strong>instead.</li><li>The :: indicates the scope operator</li></ul><h4>int main(){ … }</h4><p>The main() function is the entry point of every C++ program. All the statements inside this function are run.</p><h4>cout &lt;&lt; “Hello World”;</h4><ul><li>cout is an instance of the ostream class.</li><li>Its used to display output on the screen.</li><li>The semi-colon character indicates the ending of the statement.</li></ul><h4>return 0;</h4><ul><li>Returns a value from a function and indicates the finishing of a function.</li><li><strong>return</strong> is basically used to return the results of the operations performed by a function.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e4879a46f985" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is a structure in CPP? (code attached)]]></title>
            <link>https://medium.com/@farhannaqvi16/what-is-a-structure-in-cpp-code-attached-b517a512e388?source=rss-4060da3dfed4------2</link>
            <guid isPermaLink="false">https://medium.com/p/b517a512e388</guid>
            <category><![CDATA[abstract-data-type]]></category>
            <category><![CDATA[data-structures]]></category>
            <category><![CDATA[cpp]]></category>
            <category><![CDATA[user-defined-types]]></category>
            <category><![CDATA[structure-in-c]]></category>
            <dc:creator><![CDATA[Farhan Naqvi]]></dc:creator>
            <pubDate>Thu, 28 Dec 2023 11:49:12 GMT</pubDate>
            <atom:updated>2023-12-28T11:49:40.163Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Is it similar to groupism?</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*pmnzktl7Q27SE1i6" /><figcaption>Photo by <a href="https://unsplash.com/@martinsanchez?utm_source=medium&amp;utm_medium=referral">Martin Sanchez</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>During your entire coding journey, you must have come across variables. Variables are used to store data/information. This can be an integer value (0,1,2,3,…) , a double value ( 0.17, 0.2563, … ) , a string ( “This is a string.” ) , a Boolean value (True/ False).</p><blockquote>Variable is like a name given to the memory location that holds the data value.</blockquote><p>You cannot assign several values to primitive data type variables. For Example,</p><p>You can write this:</p><pre>int data = 1526;<br>char ch = &#39;s&#39;;<br>bool is_true = true;</pre><p>But you can’t write:</p><pre>int data = 1526,123.46;<br>char ch = &#39;s&#39;,&#39;f&#39;,&quot;hey&quot;;<br>bool is_true = true, false;</pre><p>If you are using a structure, you can group different data variables under one umbrella. This umbrella is then assigned a name.</p><p>All the data elements are called as its members and can have different types and lengths. Data structures in C++ are declared using the following syntax:</p><pre>struct struct_name {<br>data_type1 data_member_name1;<br>data_type2 data_member_name2;<br>data_type3 data_member_name3;<br>};</pre><p>Example of declaring a structure:</p><pre>struct Product{<br>  int id;<br>  double price;<br>};</pre><p>This declaration will create a new user defined data type <strong><em>Product</em></strong> which contains 2 data members : <strong><em>id, price</em></strong> which are of data type <strong><em>int</em></strong> and <strong><em>double</em></strong> respectively.</p><p>Now if you want to use this structure, you need to create a variable of the user defined data type <strong><em>Product</em></strong>. There are two ways of doing this:</p><pre>struct Product{<br>  int id;<br>  double price;<br>};<br><br>Product apple;</pre><pre>struct Product{<br>  int id;<br>  double price;<br>} apple;</pre><p>If you want to create multiple variables of the type <strong><em>Product</em></strong>, then perform any of the following ways:</p><pre>struct Product{<br>  int id;<br>  double price;<br>} apple, banana, guava;</pre><p>OR</p><pre>struct Product{<br>  int id;<br>  double price;<br>};<br><br>Product apple, banana, guava;</pre><p>You can access the members using any of the following ways:</p><pre>struct Product{<br>  int id;<br>  double price;<br>} apple, banana, guava;<br><br>int main(){<br>  <br>  apple.id=1;<br>  apple.price = 12.43;<br>  <br>  banana.id=2;<br>  banana.price = 28.82;<br><br>  guava.id=3;<br>  guava.price = 19.37;<br>  return 0;<br>}</pre><p>OR</p><pre>struct Product{<br>  int id;<br>  double price;<br>} ;<br><br>int main(){<br><br>  Product apple, banana, guava;<br>  <br>  apple.id=1;<br>  apple.price = 12.43;<br>  <br>  banana.id=2;<br>  banana.price = 28.82;<br><br>  guava.id=3;<br>  guava.price = 19.37;<br>  return 0;<br>}</pre><p>OR</p><pre>struct Product{<br>  int id;<br>  double price;<br>} apple;<br><br>int main(){<br>  <br>  <br>  apple.id=1;<br>  apple.price = 12.43;<br><br>  Product banana = {2,28.82};<br><br>  Product guava;<br><br>  guava.id=3;<br>  guava.price = 19.37;<br>  return 0;<br>}</pre><p><strong><em>Please do give a like !!</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b517a512e388" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>