<?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 It&#39;s me legend on Medium]]></title>
        <description><![CDATA[Stories by It&#39;s me legend on Medium]]></description>
        <link>https://medium.com/@itsmelegend?source=rss-952340adf0de------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*inngncOoSqvM9caQ</url>
            <title>Stories by It&amp;#39;s me legend on Medium</title>
            <link>https://medium.com/@itsmelegend?source=rss-952340adf0de------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 15:59:38 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@itsmelegend/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 10.1.x configuration]]></title>
            <link>https://medium.com/@itsmelegend/tomcat-10-1-x-configuration-fc0257ad307c?source=rss-952340adf0de------2</link>
            <guid isPermaLink="false">https://medium.com/p/fc0257ad307c</guid>
            <category><![CDATA[spring-boot]]></category>
            <category><![CDATA[setup-guide]]></category>
            <category><![CDATA[developer]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[tomcat]]></category>
            <dc:creator><![CDATA[It's me legend]]></dc:creator>
            <pubDate>Mon, 17 Feb 2025 14:13:26 GMT</pubDate>
            <atom:updated>2025-02-17T14:13:26.503Z</atom:updated>
            <content:encoded><![CDATA[<p>Setting up Apache Tomcat 10.1.x can seem like a straightforward task, but like many developers, I found myself facing unexpected challenges along the way. While Tomcat is known for being a reliable web server, my experience was filled with hurdles that made the process far more complicated than I anticipated. From compatibility issues to configuration mistakes, these obstacles left me frustrated at times, but ultimately, they were great learning opportunities.</p><p>In this article, I’ll share my experience setting up Tomcat 10.1.x, walk you through the issues I encountered, and provide solutions to help you avoid the same roadblocks. If you’re struggling with Tomcat installation or configuration, you’re not alone — and this guide will ensure a smoother setup.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0XmY0wIPbHHBSNLRbqaQ2g.png" /></figure><p>One crucial aspect of setting up Tomcat is ensuring that the environment variables are configured correctly. You must set both the CATALINA_HOME variable, which points to your Tomcat installation directory, and the JAVA_HOME variable, which specifies the location of your JDK (not the JRE).</p><p>After setting the environment variables, it’s essential to verify that everything is set up correctly. To check the configuration:</p><ol><li><strong>Open Command Prompt (Windows)</strong> or <strong>Terminal (Linux/macOS)</strong>.</li><li><strong>Check the </strong><strong>CATALINA_HOME Path</strong>: Run the following command to ensure the CATALINA_HOME environment variable is set correctly:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6LyBp_oTq7tYtvqH0DUP6A.png" /></figure><p>If you see this message in your command prompt after running catalina.bat, it means you’ve successfully set up Apache Tomcat. Congratulations, you&#39;re all set and ready to go!</p><p>Note:</p><ol><li>please make sure that any ; is not added at the end of your java_path variable.</li><li>make sure that Cataline_Home is set</li></ol><p>3. if any classpath variable is set please remove complete variable along with path</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fc0257ad307c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Troubleshooting GitHub Streak Discrepancy Despite Regular Code Pushes]]></title>
            <link>https://medium.com/@itsmelegend/troubleshooting-github-streak-discrepancy-despite-regular-code-pushes-54867b2f72cd?source=rss-952340adf0de------2</link>
            <guid isPermaLink="false">https://medium.com/p/54867b2f72cd</guid>
            <category><![CDATA[troubleshooting]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[developer-tips]]></category>
            <category><![CDATA[github]]></category>
            <dc:creator><![CDATA[It's me legend]]></dc:creator>
            <pubDate>Tue, 26 Nov 2024 07:15:34 GMT</pubDate>
            <atom:updated>2024-11-26T07:15:34.434Z</atom:updated>
            <content:encoded><![CDATA[<p>I was genuinely surprised to see my GitHub streak not being maintained, even though I was pushing code regularly. Despite troubleshooting the issue multiple times, I couldn’t pinpoint the cause, leaving me puzzled and eager to find a solution.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dCqzk1ZdmxPIPCOgjbyzTw.png" /><figcaption>1.0</figcaption></figure><p>I even watched a video on YouTube to troubleshoot the issue, but unfortunately, that didn’t work either. Frustrated, I decided to let things go and stopped stressing over it. Interestingly, whenever I created a new repository, my streak would show progress for one column. However, after pushing subsequent code, my streak no longer updated, leaving me confused about what was going wrong.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zOQjv393PWeKungNsY0U-Q.png" /><figcaption>1.1</figcaption></figure><p>I came across a suggestion that to fix this issue, I needed to set my public email as the default email in my Git configuration and ensure only one email was marked as public. I followed these steps carefully, hoping it would resolve the problem, but unfortunately, the issue persisted.</p><p>After countless attempts, a lightbulb moment struck: could it be that my system was tied to a different Git account all along? Determined to uncover the truth, I executed the following command in my terminal:</p><pre>git config --user.name<br>git config --user.email<br></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yqCtPhRE8xS3wjYhWxetbg.png" /><figcaption>1.2</figcaption></figure><p>When I ran the user.email command, I was taken aback by the revelation: my system’s configured email didn’t match my GitHub primary email. It turned out that this simple discrepancy was the root cause of my streak not being updated, explaining why my code pushes weren&#39;t being recorded.</p><p>Excited by the discovery, I ran the following command, and voilà! My streak began working as expected, just like magic:</p><pre>git config --global user.name &quot;Your Username&quot;<br>git config --global user.email &quot;Your Public email&quot;</pre><p>With my streak finally up and running, I felt a sense of relief and accomplishment. It was a small fix, but it taught me the importance of checking the little details. From now on, I’ll make sure my Git configuration is always in sync with my GitHub account to avoid such issues in the future.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=54867b2f72cd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Email-setup in java___]]></title>
            <link>https://medium.com/@itsmelegend/email-setup-in-java-f5b5f5b3189b?source=rss-952340adf0de------2</link>
            <guid isPermaLink="false">https://medium.com/p/f5b5f5b3189b</guid>
            <dc:creator><![CDATA[It's me legend]]></dc:creator>
            <pubDate>Sat, 11 May 2024 19:42:53 GMT</pubDate>
            <atom:updated>2024-05-11T19:56:07.341Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TOoabEGppxae_EUB8Dp56w.jpeg" /></figure><p>“Hello, everyone! Staying up-to-date with the fast-paced world around us has become more essential than ever. From the latest trends to the ever-evolving technologies, staying informed is the key to navigating today’s dynamic landscape.”</p><p>Today, we’ll explore the art of keeping users updated via email notifications for every task they undertake. In our fast-paced world, staying connected is paramount, and email notifications offer a direct line of communication. We’ll cover setting up email servers, crafting personalized messages, and automating notifications to enhance user experience. Join us as we unlock the secrets to seamless communication in the digital age!</p><p>without wasting time lets come on _________</p><p><em>1). need to add some dependency in your pom.xml file.</em></p><pre>&lt;dependency&gt;<br>    &lt;groupId&gt;com.sun.mail&lt;/groupId&gt;<br>    &lt;artifactId&gt;javax.mail&lt;/artifactId&gt;<br>    &lt;version&gt;1.6.2&lt;/version&gt;<br>&lt;/dependency&gt;<br>&lt;!-- https://mvnrepository.com/artifact/javax.mail/javax.mail-api --&gt;<br>&lt;dependency&gt;<br>    &lt;groupId&gt;javax.mail&lt;/groupId&gt;<br>    &lt;artifactId&gt;javax.mail-api&lt;/artifactId&gt;<br>    &lt;version&gt;1.6.2&lt;/version&gt;<br>&lt;/dependency&gt;</pre><p>2). <em>Imagine a scenario where you wish to trigger an email whenever a particular link is accessed within your application. To accomplish this, let’s craft a controller class that gracefully handles such requests. Additionally, we’ll outline the essential service responsible for orchestrating the email dispatch. Let’s dive into the details!”</em></p><pre>public class EmailController {<br> <br> @Autowired<br> private EmailService emailservice;<br> <br> @GetMapping(&quot;/mail&quot;)<br> <br> public String mailReport() {<br>  <br>  try {<br>   emailservice.sendmail();<br>   return &quot;email send successfully&quot;;<br>  }catch(Exception e) {<br>   return &quot;email send successfully&quot;;<br>  }</pre><p>3).<em>Next, we’ll craft services to elegantly compose and dispatch your emails, completing the essential functionalities of your application.</em></p><pre>@Service<br>public class EmailServiceImpl implements EmailService {<br>    String message = &quot;write the email which you want to send&quot;;<br>    String subject = &quot;Testing mail&quot;;<br>    String to = &quot;mail&quot;;<br>    String cc = &quot;mail to whom wanna send &quot;;<br>    String from = &quot;email by you want to send mail&quot;;<br>    private static final Logger logger = LoggerFactory.getLogger(EmailServiceImpl.class);<br>    public void sendmail() {<br>        sendingEmail(message, subject, to, from, cc);//sendingmail is private function for setup and sending mail.<br>}</pre><p>4).<em> private method for setting up default email configurations…..</em></p><pre> private static void sendingEmail(String message2, String subject2, String to2, String from2, String cc) {<br>        String host = &quot;smtp.gmail.com&quot;;<br>        Properties properties = System.getProperties();<br>        properties.put(&quot;mail.smtp.host&quot;, host);<br>        properties.put(&quot;mail.smtp.port&quot;, &quot;465&quot;);<br>        properties.put(&quot;mail.smtp.ssl.enable&quot;, &quot;true&quot;);<br>        properties.put(&quot;mail.smtp.auth&quot;, &quot;true&quot;);<br>        logger.debug(&quot;This is a debug message&quot;);<br>        logger.info(&quot;This is an info message&quot;);<br>        logger.warn(&quot;This is a warning message&quot;);<br>        logger.error(&quot;This is an error message&quot;);<br>        Session session = Session.getInstance(properties, new Authenticator() {<br>            @Override<br>            protected PasswordAuthentication getPasswordAuthentication() {<br>                return new PasswordAuthentication(&quot;use your email&quot;, &quot;use ur password generated by gmail&quot;);<br>            }<br>        });<br>        session.setDebug(true);<br><br>        MimeMessage m = new MimeMessage(session);<br>        try {<br>            m.setFrom(new InternetAddress(from2));<br>            m.addRecipient(Message.RecipientType.TO, new InternetAddress(to2));<br>            m.addRecipient(Message.RecipientType.CC, new InternetAddress(cc));<br>            m.setSubject(subject2);<br>            m.setText(message2);<br>            Transport.send(m);<br>            System.out.println(&quot;sent success!!&quot;);<br>        } catch (Exception e) {<br>            e.printStackTrace();<br>        }<br>    }<br>}</pre><p>“By following these simple steps, you’ll soon be sending emails with ease through your project. Embrace the journey of learning and discovery, and unlock the power of seamless communication for your users. Happy coding, and may your projects soar to new heights!”</p><p>by:Mohd Faisal</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f5b5f5b3189b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Truecaller by command line…]]></title>
            <link>https://medium.com/@itsmelegend/truecaller-by-command-line-a9e800e7ba2d?source=rss-952340adf0de------2</link>
            <guid isPermaLink="false">https://medium.com/p/a9e800e7ba2d</guid>
            <dc:creator><![CDATA[It's me legend]]></dc:creator>
            <pubDate>Sun, 20 Aug 2023 19:09:44 GMT</pubDate>
            <atom:updated>2023-08-20T19:09:44.684Z</atom:updated>
            <content:encoded><![CDATA[<p>we all used truecaller in our phones but here I will tell you something more interesting …</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dzalgQIxTN5TIxKrV3mPyw.jpeg" /></figure><p>what if I said you could use truecaller by command line…yes, you heard right here I’m going to tell you the step-by-step process to use truecaller on your laptop…</p><p>first you have to download and install nodejs in your laptop by using the following link <a href="https://nodejs.org/en/download">https://nodejs.org/en/download</a>…</p><p>To check whether node has been installed or not use following command in your cmd prompt…</p><pre>node --version</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1c0gHzsD3TIIJFOuqIZFDw.png" /></figure><p>after installation of node …install truecaller api by running the following command…</p><pre>npm install -g truecallerjs</pre><p>now you are all set to use truecaller on your laptop …</p><p>use this command to login your account</p><pre>truecallerjs login</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zz-kwYNrFUZMJTxynOxOAg.png" /></figure><p>after successful login now you can search any number by using this command….</p><pre>truecallerjs -s [number]</pre><p>for example:</p><pre>~$ truecallerjs -s +9199123456789 --json<br>{<br>     ...<br>     &quot;name&quot;:&quot;xyz Emmadi&quot;<br>     ...<br>}<br><br>~$ truecallerjs -s +9199123456789 --name<br>Name : abc </pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a9e800e7ba2d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>