<?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: Mohit Saud</title>
    <description>The latest articles on DEV Community by Mohit Saud (@manutdmohit).</description>
    <link>https://dev.to/manutdmohit</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%2F499032%2Ffeb56f19-5dc3-4d17-9dd6-59bb791349cd.jpeg</url>
      <title>DEV Community: Mohit Saud</title>
      <link>https://dev.to/manutdmohit</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/manutdmohit"/>
    <language>en</language>
    <item>
      <title>Invalid pb parameter solution while embedding google maps.</title>
      <dc:creator>Mohit Saud</dc:creator>
      <pubDate>Tue, 25 Jul 2023 06:54:06 +0000</pubDate>
      <link>https://dev.to/manutdmohit/invalid-pb-parameter-solution-while-embedding-google-maps-1b64</link>
      <guid>https://dev.to/manutdmohit/invalid-pb-parameter-solution-while-embedding-google-maps-1b64</guid>
      <description>&lt;p&gt;Invalid pb parameter solution while embedding google maps&lt;br&gt;
Original Issue: When trying to embed a Google Maps location for "Hotel Yak &amp;amp; Yeti" using an iframe, the "pb" parameter in the embedded URL caused an error. The special character "&amp;amp;" in the hotel name was likely the cause of the issue.&lt;br&gt;
Solution: To resolve the problem, I removed the special characters from the hotel name, resulting in "Hotel Yak Yeti." Then, I edited the "pb" parameter in the URL accordingly. This adjustment ensures that the URL is properly encoded and validated.&lt;br&gt;
Original Google Embedded URL:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;iframe src="https://www.google.com/maps/embed?pb=!1m14!1m8!1m3!1d14128.750188412732!2d85.3197981!3d27.7114951!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x39eb19042204f6a1%3A0xa7af95e7f7d75e66!2sHotel%20Yak%20%26%20Yeti!5e0!3m2!1sen!2snp!4v1690259560583!5m2!1sen!2snp" width="600" height="450" style="border:0;" allowfullscreen="" loading="lazy" referrerpolicy="no-referrer-when-downgrade"&amp;gt;&amp;lt;/iframe&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Updated Embed URL:
&amp;lt;iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3532.187395792953!2d85.31518467397605!3d27.711499772684373!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x39eb19042204f6a1%3A0xa7af95e7f7d75e66!2sHotel%20Yak%20Yeti!5e0!3m2!1sen!2snp!4v1689753786090!5m2!1sen!2snp" width="600" height="450" style="border:0;" allowfullscreen="" loading="lazy" referrerpolicy="no-referrer-when-downgrade"&amp;gt;&amp;lt;/iframe&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;When saving this updated URL to the database, I used "Hotel%20Yak%20Yeti" to ensure proper URL encoding for the hotel name. This way, the embedded Google Maps location for "Hotel Yak Yeti" works seamlessly on my website.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Pendrive or USB not showing on your Television</title>
      <dc:creator>Mohit Saud</dc:creator>
      <pubDate>Tue, 30 Nov 2021 05:08:38 +0000</pubDate>
      <link>https://dev.to/manutdmohit/pendrive-or-usb-not-showing-on-your-television-2863</link>
      <guid>https://dev.to/manutdmohit/pendrive-or-usb-not-showing-on-your-television-2863</guid>
      <description>&lt;p&gt;Before formatting your device make sure it to backup your files. &lt;br&gt;
May be one thing you did wrong was formatting your pendrive or usb with NTFS extension. The solution would be formatting your pendrive with FAT32 extension. &lt;/p&gt;

</description>
    </item>
    <item>
      <title>Importance of double ampersand: logical AND(&amp;&amp;)in JavaScript</title>
      <dc:creator>Mohit Saud</dc:creator>
      <pubDate>Tue, 09 Nov 2021 04:36:20 +0000</pubDate>
      <link>https://dev.to/manutdmohit/importance-of-double-ampersand-logical-andin-javascript-31bf</link>
      <guid>https://dev.to/manutdmohit/importance-of-double-ampersand-logical-andin-javascript-31bf</guid>
      <description>&lt;ul&gt;
&lt;li&gt;Saves time and code length.&lt;/li&gt;
&lt;li&gt;Gets rid of else statement.
Basic Example:
&amp;gt; if/else statement
let x= 2, y =5;
if(y&amp;gt;x){
console.log("y is greater than x");
return;
}&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;Using logical AND (&amp;amp;&amp;amp;) as short-circuit property&lt;br&gt;
let x= 2, y =5;&lt;br&gt;
y&amp;gt;x &amp;amp;&amp;amp; console.log("y is greater than x");&lt;/p&gt;
&lt;/blockquote&gt;

&lt;ul&gt;
&lt;li&gt;The difference the Short-Circuit property makes that you are able to write the code in few lines and is considered as one of the important features of JavaScript and hence making the JavaScript so powerful. &lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>javascript</category>
      <category>react</category>
      <category>webdev</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Answer: mongo - couldn't connect to server 127.0.0.1:27017</title>
      <dc:creator>Mohit Saud</dc:creator>
      <pubDate>Tue, 09 Mar 2021 16:30:56 +0000</pubDate>
      <link>https://dev.to/manutdmohit/answer-mongo-couldn-t-connect-to-server-127-0-0-1-27017-4i65</link>
      <guid>https://dev.to/manutdmohit/answer-mongo-couldn-t-connect-to-server-127-0-0-1-27017-4i65</guid>
      <description>&lt;div class="ltag__stackexchange--container"&gt;
  &lt;div class="ltag__stackexchange--title-container"&gt;
    
      &lt;div class="ltag__stackexchange--title"&gt;
        &lt;h1&gt;
          &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--7Gn-iPj_--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev.to/assets/stackoverflow-logo-b42691ae545e4810b105ee957979a853a696085e67e43ee14c5699cf3e890fb4.svg" alt=""&gt;
            &lt;a href="https://stackoverflow.com/questions/13312358/mongo-couldnt-connect-to-server-127-0-0-127017/53635485#53635485" rel="noopener noreferrer"&gt;
              &lt;span class="title-flare"&gt;answer&lt;/span&gt; re: mongo - couldn't connect to server 127.0.0.1:27017
            &lt;/a&gt;
        &lt;/h1&gt;
        &lt;div class="ltag__stackexchange--post-metadata"&gt;
          &lt;span&gt;Dec  5 '18&lt;/span&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;a class="ltag__stackexchange--score-container" href="https://stackoverflow.com/questions/13312358/mongo-couldnt-connect-to-server-127-0-0-127017/53635485#53635485" rel="noopener noreferrer"&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Y9mJpuJP--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev.to/assets/stackexchange-arrow-up-eff2e2849e67d156181d258e38802c0b57fa011f74164a7f97675ca3b6ab756b.svg" alt=""&gt;
        &lt;div class="ltag__stackexchange--score-number"&gt;
          40
        &lt;/div&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--wif5Zq3z--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev.to/assets/stackexchange-arrow-down-4349fac0dd932d284fab7e4dd9846f19a3710558efde0d2dfd05897f3eeb9aba.svg" alt=""&gt;
      &lt;/a&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--body"&gt;
    
&lt;p&gt;I am a windows user and I installed MongoDB in November 2018 and I didn't wanted to setup data/db directories. But after few days, when I open, got an error message:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;MongoDB shell version v4.0.4
connecting to: mongodb://127.0.0.1:27017
2018-12-05T20:42:40.108+0530 E QUERY    [js] Error: couldn't connect to server 127.0.0.1:27017, connection attempt&lt;/code&gt;&lt;/pre&gt;…
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--btn--container"&gt;
    
      &lt;a href="https://stackoverflow.com/questions/13312358/mongo-couldnt-connect-to-server-127-0-0-127017/53635485#53635485" rel="noopener noreferrer"&gt;Open Full Answer&lt;/a&gt;
    
  &lt;/div&gt;
&lt;/div&gt;


</description>
    </item>
  </channel>
</rss>
