<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<?xml-stylesheet type="text/xsl" href="/rss.xsl"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Error on Raveen Kumar</title>
    <link>https://raveenkumar.com/tags/error/</link>
    <description>Recent content in Error on Raveen Kumar</description>
    <generator>Hugo</generator>
    <language>en-US</language>
    <copyright>Raveen Kumar</copyright>
    <lastBuildDate>Mon, 27 Feb 2023 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://raveenkumar.com/tags/error/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Git hangs on git pull or git fetch</title>
      <link>https://raveenkumar.com/posts/2023-02-27-git-hangs-on-git-pull-or-git-fetch/</link>
      <pubDate>Mon, 27 Feb 2023 00:00:00 +0000</pubDate>
      <guid>https://raveenkumar.com/posts/2023-02-27-git-hangs-on-git-pull-or-git-fetch/</guid>
      <description>&lt;p&gt;Sometime I find git hanging in wsl and it is not able to recover. The only way to recover is restarting the computer.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Errors and bugs</title>
      <link>https://raveenkumar.com/library/programming/errors/</link>
      <pubDate>Fri, 17 Feb 2023 00:00:00 +0000</pubDate>
      <guid>https://raveenkumar.com/library/programming/errors/</guid>
      <description>&lt;h2 id=&#34;removing-old-name-device-or-resource-busy&#34;&gt;Removing old name: Device or resource busy&lt;/h2&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://unix.stackexchange.com/questions/11238/how-to-get-over-device-or-resource-busy&#34;&gt;https://unix.stackexchange.com/questions/11238/how-to-get-over-device-or-resource-busy&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;The tool you want is lsof, which stands for list open files.&lt;/p&gt;&#xA;&lt;p&gt;It has a lot of options, so check the man page, but if you want to see all open files under a directory:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;lsof +D /path&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;That will recurse through the filesystem under /path, so beware doing it on large directory trees.&lt;/p&gt;&#xA;&lt;p&gt;Once you know which processes have files open, you can exit those apps, or kill them with the kill(1) command.&lt;/p&gt;</description>
    </item>
    <item>
      <title>When to use implicit else</title>
      <link>https://raveenkumar.com/posts/2022-12-12-when-to-use-implicit-else/</link>
      <pubDate>Mon, 12 Dec 2022 00:00:00 +0000</pubDate>
      <guid>https://raveenkumar.com/posts/2022-12-12-when-to-use-implicit-else/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;https://medium.com/lost-but-coding/when-to-use-implicit-else-e891cdcfe1bd&#34;&gt;https://medium.com/lost-but-coding/when-to-use-implicit-else-e891cdcfe1bd&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;The author describes an ‘implicit else’. I’ve never heard of such a thing. Turns out it’s just doing this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;if (x) {&#xA;  return y;&#xA; }&#xA;return z;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;instead of this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;if (x) {&#xA;  return y;&#xA; } else {&#xA;  return z;&#xA; }&#xA;&lt;/code&gt;&lt;/pre&gt;</description>
    </item>
  </channel>
</rss>
