<?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: Arun Kumar</title>
    <description>The latest articles on DEV Community by Arun Kumar (@ajinspiro).</description>
    <link>https://dev.to/ajinspiro</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%2F202401%2F77d00412-1d8e-44d6-855f-b9d4cca8af8c.jpeg</url>
      <title>DEV Community: Arun Kumar</title>
      <link>https://dev.to/ajinspiro</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ajinspiro"/>
    <language>en</language>
    <item>
      <title>Today I learned some stuff about .NET Core configuration</title>
      <dc:creator>Arun Kumar</dc:creator>
      <pubDate>Wed, 02 Mar 2022 15:01:14 +0000</pubDate>
      <link>https://dev.to/ajinspiro/today-i-learned-some-stuff-about-net-core-configuration-c72</link>
      <guid>https://dev.to/ajinspiro/today-i-learned-some-stuff-about-net-core-configuration-c72</guid>
      <description>&lt;p&gt;If we make any changes to &lt;code&gt;appsettings.json&lt;/code&gt; file, the &lt;code&gt;IConfiguration&lt;/code&gt; object will get updated on runtime.&lt;/p&gt;

&lt;p&gt;But &lt;code&gt;IOptions&amp;lt;MyClass&amp;gt;&lt;/code&gt; wont get updated like that so you need to use &lt;code&gt;IOptionsMonitor&amp;lt;MyClass&amp;gt;&lt;/code&gt; or &lt;code&gt;IOptionsSnapshot&amp;lt;MyClass&amp;gt;&lt;/code&gt;. (All three of them are from the same namespace &lt;code&gt;Microsoft.Extensions.Options&lt;/code&gt;)&lt;/p&gt;

&lt;p&gt;&lt;code&gt;IOptionsMonitor&amp;lt;MyClass&amp;gt;&lt;/code&gt; is singleton, so any mutation you make to this object will persist throughout the life of the application.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;IOptionsSnapshot&amp;lt;MyClass&amp;gt;&lt;/code&gt; is scoped, so any mutation you make to this object will be thrown out when the request finishes its life.&lt;/p&gt;

&lt;p&gt;I learned this from Nick Chapsas in YouTube. &lt;a href="https://www.youtube.com/watch?v=J0EVd5HbtUY"&gt;URL&lt;/a&gt;&lt;br&gt;
Keep coding.&lt;/p&gt;

</description>
      <category>dotnet</category>
      <category>configuration</category>
    </item>
    <item>
      <title>How I "Unfollowed All" in twitter... </title>
      <dc:creator>Arun Kumar</dc:creator>
      <pubDate>Tue, 03 Sep 2019 15:13:41 +0000</pubDate>
      <link>https://dev.to/ajinspiro/how-i-unfollowed-all-in-twitter-2jah</link>
      <guid>https://dev.to/ajinspiro/how-i-unfollowed-all-in-twitter-2jah</guid>
      <description>&lt;p&gt;tldr; &lt;/p&gt;

&lt;p&gt;var lst = document.querySelectorAll('section .css-1dbjc4n &amp;gt; .css-1dbjc4n &amp;gt; div.css-18t94o4');&lt;br&gt;
var arr1 = [];&lt;br&gt;
lst.forEach(x =&amp;gt; arr1.push(x));&lt;br&gt;
arr1.map(x =&amp;gt; x.click());&lt;/p&gt;

&lt;p&gt;This script will trigger click event for all the Unfollow button in following page of twitter.&lt;/p&gt;

&lt;p&gt;Hey everyone, hope you are having a great day. &lt;br&gt;
So today I logged into my long abandoned twitter account and found myself following a lot of people whom I didn't know. Hmmm... very suspicious. I found that some random apps had access to my account so maybe they did it. Whatever the scenario I wanted to unfollow everyone. Of course twitter developers made the process of unfollowing VERY painful by adding a confirmation popup and no option to do a quick "Unfollow All". So this left me with no choice but to tinker with developer tools...&lt;/p&gt;

&lt;p&gt;"Back to hardware mode"&lt;/p&gt;

&lt;p&gt;I tried googling but no answer worked for me. Out of desperation I created the above script to trigger click event on all Unfollow button concurrently so all the confirmation popups will open one after another. It still required me to click 132 times on the confirmation button but still it was easier. I hope this helps anyone else who is trying to do this same thing and is frustrated by not having a "unfollow all" button...&lt;/p&gt;

&lt;p&gt;Have a good day.. &lt;/p&gt;

</description>
      <category>twitterunfollow</category>
    </item>
  </channel>
</rss>
