<?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 Asanka Abeyweera on Medium]]></title>
        <description><![CDATA[Stories by Asanka Abeyweera on Medium]]></description>
        <link>https://medium.com/@A5anka?source=rss-96156f71115a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*eE6Aswr3fTKRHsPtin6S9A.jpeg</url>
            <title>Stories by Asanka Abeyweera on Medium</title>
            <link>https://medium.com/@A5anka?source=rss-96156f71115a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 22:52:56 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@A5anka/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[How I Tackled a Sluggish Wi-Fi Connection: From 2 Seconds Latency to 4 Milliseconds]]></title>
            <link>https://medium.com/@A5anka/how-i-tackled-a-sluggish-wi-fi-connection-from-2-seconds-latency-to-4-milliseconds-5182e0da7c40?source=rss-96156f71115a------2</link>
            <guid isPermaLink="false">https://medium.com/p/5182e0da7c40</guid>
            <category><![CDATA[work-from-home]]></category>
            <category><![CDATA[wifi]]></category>
            <category><![CDATA[networking]]></category>
            <dc:creator><![CDATA[Asanka Abeyweera]]></dc:creator>
            <pubDate>Fri, 11 Aug 2023 06:19:11 GMT</pubDate>
            <atom:updated>2023-08-11T06:40:15.517Z</atom:updated>
            <content:encoded><![CDATA[<p>Coming home from work, the last thing you want to deal with is a sluggish internet connection. But that’s precisely what I faced one day when I noticed a painfully slow response time from my home Wi-Fi. With latencies reaching 2 seconds from my laptop to my Wi-Fi router, the connection was nearly unusable. In this blog post, I’ll share my journey from frustration to triumph, cutting down the latency to an incredible 4 milliseconds.</p><h3>The Problem: A Sluggish Connection</h3><p>I returned home from work, ready to unwind and use my laptop, only to find my Wi-Fi connection to be extremely sluggish. Restarting the router didn’t help, and I was left wondering what had gone wrong.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/654/1*RHAkKB0WVq-PV9Gx9sZ32w.png" /><figcaption>PING output before doing anything</figcaption></figure><h3>Step 1: Adjusting the Antenna Angles</h3><p>My first attempt to solve the problem involved repositioning the antennas on my router. I placed one antenna in an upright position and the other at a right angle to it. This simple yet intentional adjustment brought the latencies down to 60 milliseconds.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/654/1*j1CUkxcnSbnh7wXd35VlCw.png" /><figcaption>PING output after adjusting the antenna angles</figcaption></figure><h4>Why did this work?</h4><ul><li><strong>Alignment and Polarization</strong>: The specific orientation of the antennas can affect how they interact with the Wi-Fi signal. Adjusting them to different positions may have created a better alignment with my devices.</li><li><strong>Signal Distribution</strong>: By positioning the antennas in different directions, I might have optimized the signal distribution within my living space.</li></ul><h3>Step 2: Cleaning the Antennas</h3><p>Motivated by the initial success, I went on to clean the antennas, removing accumulated dust. The result? A further drop in latency, down to an astonishing 4 milliseconds.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/654/1*4oFCcg4_VRsKqx9hrdMnOw.png" /><figcaption>Final PING output</figcaption></figure><h4><em>Why did this have such an impact?</em></h4><ul><li><strong>Reducing Obstructions</strong>: Dust and debris can cause interference with the signal. Cleaning the antennas removed these obstructions, leading to a significant improvement.</li></ul><h3>Additional Tips for Wi-Fi Optimization</h3><p>The above steps worked in my specific case, but Wi-Fi performance can be influenced by many factors. Here are some additional considerations that might affect your experience:</p><p>- <strong>Router Placement</strong>: Keep your router away from walls, metal objects, and other electronics that might interfere with the signal.<br>- <strong>Wi-Fi Interference</strong>: Neighboring Wi-Fi networks on the same channel can cause interference. Try changing the channel on your router.<br>- <strong>Software and Firmware</strong>: Ensure your router’s firmware is up to date. Some routers also have Quality of Service (QoS) settings that can be optimized for your needs.</p><h3>Conclusion</h3><p>Wi-Fi is a complex technology, and seemingly small issues like dust or antenna alignment can have significant impacts on performance. My experience serves as a reminder to pay attention to both the big and little things that could affect your connection. Sometimes, the solution is as simple as a minor adjustment or a bit of cleaning.</p><p>Whether you’re a tech expert or just someone who wants a smooth internet experience, understanding these fundamentals can help you troubleshoot issues and enjoy a more reliable connection. And remember, when in doubt, don’t hesitate to reach out to tech support or consult online forums for guidance tailored to your specific situation.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5182e0da7c40" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting from an idea to a reality]]></title>
            <link>https://medium.com/@A5anka/getting-from-an-idea-to-a-reality-622e40f9182f?source=rss-96156f71115a------2</link>
            <guid isPermaLink="false">https://medium.com/p/622e40f9182f</guid>
            <category><![CDATA[entrepreneurship]]></category>
            <category><![CDATA[motivation]]></category>
            <category><![CDATA[self-help]]></category>
            <category><![CDATA[self-improvement]]></category>
            <dc:creator><![CDATA[Asanka Abeyweera]]></dc:creator>
            <pubDate>Sun, 13 Sep 2020 09:26:13 GMT</pubDate>
            <atom:updated>2020-09-13T09:26:13.321Z</atom:updated>
            <content:encoded><![CDATA[<p>Everyone gets ideas. In a world with billions of people probably the ideas get duplicated a lot too. Therefore an idea itself does not worth much. The real value comes with the execution of that idea. Derek Sivers has nicely summarized this. In this post, I am trying to give you a small tip to get you motivated to execute an idea to make it a reality.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/485/0*eHvKDwTrMgwTzlkZ" /><figcaption><a href="https://sivers.org/">https://sivers.org</a></figcaption></figure><p>Humans being creative creatures, there is no lack of ideas. The real question is how many people act on the ideas that are worth pursuing. It is also interesting to find the reason for not executing an idea. Some people would say, it is because people are lazy. Some would say it is because of some people’s procrastination nature. Another one would say it is because of the lack of knowledge to get to the goal. All of these are valid reasons. If we take laziness and procrastination, the chances are it is mainly due to the lack of motivation. What about the lack of knowledge to do something? Maybe without answering that question, I will just point out to a person who attempted more than 1000 times to do something that he did not know to do.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/931/1*0NMSFRic4aryGB5ukyxZDA.jpeg" /><figcaption><a href="https://www.sciencefocus.com/science/who-really-invented-the-light-bulb/">https://www.sciencefocus.com/science/who-really-invented-the-light-bulb/</a></figcaption></figure><p>Let’s take an example to zoom in to the problem. Russell owns a retail business. His business got a big hit from the recent COVID19 pandemic. He sees many businesses have gone online and doing well and gets inspired. He was thinking a lot about going online earlier as well but he was never motivated to execute his idea. But suddenly he is very motivated and he is taking initial steps to move his business online.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/743/1*qNMYYrCjlqpB1VEWgOInfw.png" /></figure><p>Even though Russell got the idea very early, he waited till he got enough motivation from a major event to execute the idea. Most of the people are like this. We commit to do something only when we feel motivated enough. What if similar to Russell we never get our dose of motivation from a major life event? Is motivation happens always like this in a three-part chain?</p><p>Apparently, inspiration and motivation is something we can generate ourselves by doing something towards a goal even though we are missing knowledge on quite a few steps. This is very well explained in the “The Subtle Art of Not Giving a F*ck” book by Mark Manson. If like Russell, you are missing motivation to get started with something important, try to do something spending a small fraction of your time. The chances are that you will get inspired and motivated to do more afterward. The cycle will go on increasing the motivation to do more.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/459/1*3z3-idwfkq_Y4WupbMFa5w.png" /></figure><p>Another important thing is to always define success as doing something, instead of getting it right. Thomas Edison failed more than 1000 times before he got it right. Resilience is the secret weapon. Try to learn something every time you fail and take small steps towards success. Most of the time failures can be fixed. But we can never fix a thing that we have never tried.</p><p>In summary, If you have a great idea that you think is worth pursuing, start small and see where it takes you. Never give up on an idea just because you don’t have the required resources or knowledge.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=622e40f9182f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Common Azure pipeline trigger use cases — part 1]]></title>
            <link>https://medium.com/@A5anka/common-azure-pipeline-trigger-use-cases-part-1-cab20efcfa2b?source=rss-96156f71115a------2</link>
            <guid isPermaLink="false">https://medium.com/p/cab20efcfa2b</guid>
            <category><![CDATA[continous-deployment]]></category>
            <category><![CDATA[ci-cd-pipeline]]></category>
            <category><![CDATA[azure-pipelines]]></category>
            <category><![CDATA[continuous-integration]]></category>
            <category><![CDATA[azure]]></category>
            <dc:creator><![CDATA[Asanka Abeyweera]]></dc:creator>
            <pubDate>Sat, 30 May 2020 16:45:56 GMT</pubDate>
            <atom:updated>2020-05-30T16:45:56.967Z</atom:updated>
            <content:encoded><![CDATA[<h3>Common Azure pipeline trigger use cases — part 1</h3><p>Azure pipelines are also kind of programs. There are inputs, outputs and a processing logic. In most cases the input is a source repository. Output is the release artifacts like binaries. The processing logic is written using YAML adhering to the schema defined by Azure pipelines. Like all the programs, some event should trigger the execution of the program. These events are defined by the triggers configured in a pipeline. There are mainly two trigger types configurable in a Azure pipeline YAML config. They are Continuous integration (CI) triggers and Pull request validation (PR) triggers.</p><p>CI triggers and PR triggers depends on the repository used with the pipeline. Adding commits to a branch and creating a tag are two examples for CI triggers. Opening a PR and pushing changes to a PR are two examples for PR triggers. You can learn more about this different type of triggers from <a href="https://docs.microsoft.com/en-us/azure/devops/pipelines/build/triggers?view=azure-devops">official documentation</a>. Here is an example showcasing the different config options available with triggers.</p><pre>trigger:<br>  branches:<br>    include:<br>    - master<br>    - releases/*<br>    exclude:<br>    - releases/old*<br>  tags:<br>    include:<br>    - v2.*<br>    exclude:<br>    - v2.0<br>  paths:<br>    include:<br>    - docs/*<br>    exclude:<br>    - docs/README.md<br><br># Pull request related triggers<br>pr:<br>  branches:<br>    include:<br>    - master<br>    - releases/*<br>  paths:<br>    include:<br>    - docs/*<br>    exclude:<br>    - docs/README.md</pre><p>I think the config options are self explanatory and needs no detail explanations. Let’s look at some common usecase and see how pipeline triggers are configured to implement them in these series of posts. We will start with the most basic one.</p><h3>Running Tests and build for all changes pushed</h3><p>Maintaining quality in a source repository is vital for both the user and developer productivity. The most fundamental way to do that is by keeping the build passing with tests. All the serious software projects use some sort of a build tool to do this. Therefore it’s just a matter of running the build tool against the current version of the source code to see whether it is broken or not. It is a common practice to use a build automation tool like <a href="https://azure.microsoft.com/en-us/services/devops/pipelines/">Azure Pipelines</a>, <a href="https://github.com/features/actions">GitHub Actions</a>, <a href="https://www.jenkins.io/">Jenkins</a> to perform the build so that the maintainers can take actions on build breaks.</p><p>The expected functionality from the build automation tool for this use case is very simple. i.e. watch for code pushes to all branches in the repository an trigger a build. In a repository, there is the default branch (normally called master) which hosts the latest working version of the project. Then there will be few feature branches where the active feature development is done. There can also be few release branches used to release patch versions, etc.</p><p>Configuring build automation for all branches of a source repository in Azure Pipeline is very trivial: Have nothing in the trigger sections. Yes, you read it correctly. When a trigger is not specified in the pipeline, the default implicit trigger is following.</p><pre>trigger:<br>  branches:<br>    include:<br>	- &#39;*&#39;</pre><p>If you don’t like having no triggers in the pipeline config, you can have above to make it explicit.</p><p>The build pipeline can be configured to build all branches except certain branches by using the triggger/branches/exclude config. I would recommend against it since it is always better to get the build status specially when it is the broken state.</p><p>This is a very trivial trigger use case that can be achieved with Azure pipelines. We will look at more trigger use cases (pushing building and pushing artifacts, running checks against a created PR, updating a deployment with changes, etc) in the next few posts.</p><p><em>Originally published at </em><a href="https://a5anka.netlify.app/common-azure-pipeline-automations-part-1/"><em>https://a5anka.netlify.app</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cab20efcfa2b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Demystifying Azure Pipeline Config Behavior]]></title>
            <link>https://medium.com/@A5anka/demystifying-azure-pipeline-config-behavior-99b486b8cecd?source=rss-96156f71115a------2</link>
            <guid isPermaLink="false">https://medium.com/p/99b486b8cecd</guid>
            <category><![CDATA[continuous-integration]]></category>
            <category><![CDATA[azure-pipelines]]></category>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[continuous-delivery]]></category>
            <dc:creator><![CDATA[Asanka Abeyweera]]></dc:creator>
            <pubDate>Fri, 08 May 2020 11:39:39 GMT</pubDate>
            <atom:updated>2020-05-08T11:39:39.964Z</atom:updated>
            <content:encoded><![CDATA[<p>Every serious software project uses an automation server or a service to implement CI/CD pipelines to ensure that the changes are pushed to production with good quality in a consistent manner. Azure pipelines is such a popular cloud service to implement CI/CD pipelines. There are a couple of ways to define a pipeline in Azure. The visual user interface is one where a user has to go through a series of configuration pages. The other approach is defining the pipeline in a YAML file which is stored along with the source code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/590/0*tQYxmIZG3tndreBG.png" /></figure><p>I prefer using version controlled YAML configs over the GUI based configuration since we can apply all the Git and GitHub related magic to pipeline configs. Microsoft recently <a href="https://devblogs.microsoft.com/devops/announcing-general-availability-of-azure-pipelines-yaml-cd/">announced the general availability of YAML CD features in Azure Pipelines</a>. The YAML based approach and the GUI based approach are very similar if we compare the features. But there is one big difference in the YAML based config due to the nature of Git. When we create the pipeline using the graphical interface, probably the pipeline configuration is stored in persistence storage like a database. Therefore there can be always one copy of the pipeline configuration. But when we use a YAML file stored in Git to define a pipeline, there can be multiple versions of the pipeline config in different Git branches.</p><p>I wanted to understand how Azure Pipeline service decides which config to pick when there are multiple branches. Therefore I conducted a small experiment. I started from the <a href="https://github.com/MicrosoftDocs/pipelines-java">sample repository</a> provided by Azure Pipelines for Java applications. I created two branches in the repo called master and foo. Then I created an Azure Pipeline and used azure-pipelines.yml as the config file of the pipeline. This file exists in both branches. You might already know that the trigger parameter is used in the pipeline config file to specify the branch that should be watched by a pipeline for changes. I tried all combinations of this parameter in two branches while pushing the changes to braches. The following is what I got.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/590/0*0cRhXYFqKUwfYinm.png" /></figure><p>It is evident from the results that the logic used in the Azure Pipeline implementation is not a very complex one. We can see that every time the pipeline has triggered the configuration in the updated file’s branch is pointing to itself. i.e. when a file is updated in the foo branch the pipeline is triggered every time the azure-pipelines.yml config in the foo branch has the foo branch as the trigger.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/590/0*2k8cED1CrkXewGqv.png" /></figure><p>In the next post, let’s have a look at a few use cases and see how to apply this knowledge.</p><p><em>Originally published at </em><a href="https://a5anka.netlify.app/demystifying-azure-pipeline-config-behavior-in-a-multi-branch-repo/"><em>https://a5anka.netlify.app</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=99b486b8cecd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[බොරු චක්කරේ]]></title>
            <link>https://medium.com/@A5anka/%E0%B6%B6%E0%B7%9C%E0%B6%BB%E0%B7%94-%E0%B6%A0%E0%B6%9A%E0%B7%8A%E0%B6%9A%E0%B6%BB%E0%B7%9A-67129ea0bd74?source=rss-96156f71115a------2</link>
            <guid isPermaLink="false">https://medium.com/p/67129ea0bd74</guid>
            <category><![CDATA[sinhala]]></category>
            <dc:creator><![CDATA[Asanka Abeyweera]]></dc:creator>
            <pubDate>Sat, 08 Feb 2020 15:37:03 GMT</pubDate>
            <atom:updated>2020-02-08T15:43:50.941Z</atom:updated>
            <content:encoded><![CDATA[<p>සෙල්ලමට කියන බොරු 10 = පුංචි බොරු 1<br> පුංචි බොරු 10 = පච 1<br> පච 10 = කෙප්ප 1<br> කෙප්ප 10 = කෙබර 1<br> කෙබර 10 = බින්න 1<br> බින්න 10 = ගජ බින්න 1<br> ගජ බින්න 10 = බේගල් 1<br> බේගල් 10 = පට්ට බොරු 1<br> පට්ට බොරු 10 = පල් බොරු 1<br> පල් 10 = පට්ට පල් බොරු 1<br> පට්ට පල් බොරු 10 = අලි බොරු 1<br> අලි බොරු 10 = අලිම අලි බොරු 1<br> අලිම අලි බොරු 10 = ගල් පැලෙන බොරු 1</p><p>— උපුටා ගත්තේ අද අහපු බණකින්.</p><p><em>Originally published at </em><a href="https://a5anka.netlify.com/boru-chakkare/"><em>https://a5anka.netlify.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=67129ea0bd74" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I forgot to clock-out]]></title>
            <link>https://medium.com/@A5anka/i-forgot-to-clock-out-6d59e9b4243b?source=rss-96156f71115a------2</link>
            <guid isPermaLink="false">https://medium.com/p/6d59e9b4243b</guid>
            <category><![CDATA[time-tracking]]></category>
            <category><![CDATA[orgmode]]></category>
            <category><![CDATA[emacs]]></category>
            <dc:creator><![CDATA[Asanka Abeyweera]]></dc:creator>
            <pubDate>Wed, 05 Feb 2020 13:43:51 GMT</pubDate>
            <atom:updated>2020-02-06T02:38:40.580Z</atom:updated>
            <content:encoded><![CDATA[<p>I keep forgetting to clock-out from the working task when I suspend the machine and go home. I only see this when I go home and open the laptop. Sometimes it is few days later. Dumb way to fix this is clocking out using C-c C-x C-o and editing the log entry for the clock manually. This is what I did until recently.</p><p><em>If you are wandering what all this is about, I am using the </em><a href="https://orgmode.org/manual/Clocking-Work-Time.html#Clocking-Work-Time"><em>org mode</em></a><em> to keep track of how I spend my time on certain things.</em></p><p>I wanted to do this more efficiently and it turns out that org-resolve-clock (or C-c C-x C-z) is the better way to do it. Here is how I do it now.</p><ol><li>Use C-c C-x C-z</li><li>Press K when I get the prompt. Remember that it will clock out only when the uppercase K is used.</li></ol><pre>Select a Clock Resolution Command:<br><br>i/q/C-g  Ignore this question; the same as keeping all the idle time.<br><br>k/K      Keep X minutes of the idle time (default is all).  If this<br>        amount is less than the default, you will be clocked out<br>        that many minutes after the time that idling began, and then<br>        clocked back in at the present time.<br>g/G      Indicate that you &quot;got back&quot; X minutes ago.  This is quite<br>        different from &#39;k&#39;: it clocks you out from the beginning of<br>        the idle period and clock you back in X minutes ago.<br>s/S      Subtract the idle time from the current clock.  This is the<br>        same as keeping 0 minutes.<br>C        Cancel the open timer altogether.  It will be as though you<br>        never clocked in.<br>j/J      Jump to the current clock, to make manual adjustments.<br><br>For all these options, using uppercase makes your final state<br>to be CLOCKED OUT.</pre><p>3. Enter the number of minutes that I want to keep when I get the following prompt.</p><p>Keep how many minutes? (default 2743)</p><p>That’s it, I am good to start a new task now.</p><p><em>Originally published at </em><a href="https://a5anka.netlify.com/org-mode-overrun-clock/"><em>https://a5anka.netlify.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6d59e9b4243b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I was kicked out of web after an update]]></title>
            <link>https://medium.com/@A5anka/how-i-was-kicked-out-of-web-after-an-update-6432709d2616?source=rss-96156f71115a------2</link>
            <guid isPermaLink="false">https://medium.com/p/6432709d2616</guid>
            <category><![CDATA[dns]]></category>
            <category><![CDATA[systemd]]></category>
            <category><![CDATA[os]]></category>
            <category><![CDATA[linux]]></category>
            <dc:creator><![CDATA[Asanka Abeyweera]]></dc:creator>
            <pubDate>Tue, 15 Oct 2019 14:31:02 GMT</pubDate>
            <atom:updated>2019-10-15T14:31:02.784Z</atom:updated>
            <content:encoded><![CDATA[<p>I have been an Arch Linux user a for while now. I can’t remember for how long. But It should probably be longer than 5 years. I initially switched from Ubuntu to just try out things and see it fits. I believe that until you use it for the real thing, you can’t really judge it. I think we can safely says it did fit since I have been using it for a long time now. The main difference of Arch with is that, Ubuntu uses a standard release cycle (where they release a new version every 6 month) while Arch Linux uses a rolling release cycle (where they have just one version which is updated very frequently). Adopting a rolling release sounds like a very risky thing to do for an OS, But some how Arch guys did it. Kudos to all the people involved for that.</p><p>Anyway, I did the usual sudo pacman -Syu to update the OS followed by a restart. Everything was working well for a while. But suddenly in the middle of a code review the github.com stopped working. Then I went to google.com find out the reason. The worst nightmare that I could expect happened. I was stranded without Google.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/863/1*9JPDBBMXEl0pfjRxBIWLUw.png" /><figcaption>Where are you Google?</figcaption></figure><p>Never mind Google, I can figure this out myself. I wish I could tell that. But who are we kidding :). So I returned to my phone for some help. And after some research I used sudo journalctl -f -u systemd-resolved.service to look at logs for systemd-resolved. Following is what I got.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/fcaef99b836678fe1664730129fc923d/href">https://medium.com/media/fcaef99b836678fe1664730129fc923d/href</a></iframe><p>Slowly, I started to realize the issue in my laptop. Somehow after the upgrade the systemd-resolved was using DNSSEC in queries with the DNS server and the DNS server did not like it. So I had find a way to turn it off. I did some more Googling and found that I just have to edit /etc/systemd/resolved.conf and add DNSSEC=allow-downgrade which will allow downgrading to non-DNSSEC mode when the server does not support DNSSEC.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/56e47fcdb73fbdc379727b467f3dfbd8/href">https://medium.com/media/56e47fcdb73fbdc379727b467f3dfbd8/href</a></iframe><p>It’s working all good now and I have access to the good old web again 😌 . I just had a look at the systemd-resolved log to see what happened.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/21f93d14d846700d8a80c8f1bafc726e/href">https://medium.com/media/21f93d14d846700d8a80c8f1bafc726e/href</a></iframe><p>It seems that the guess I had about the issue is correct and it is really the DNSSEC is causing all the issues with accessing Web.</p><p>Let me know if you have experienced the same issue and this article helped you. Happy hacking. ✌️</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6432709d2616" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The problem with IM in the workplace]]></title>
            <link>https://medium.com/@A5anka/the-problem-with-im-in-the-workplace-45cba0cfea85?source=rss-96156f71115a------2</link>
            <guid isPermaLink="false">https://medium.com/p/45cba0cfea85</guid>
            <category><![CDATA[team]]></category>
            <category><![CDATA[communication]]></category>
            <category><![CDATA[workplace]]></category>
            <category><![CDATA[productivity]]></category>
            <dc:creator><![CDATA[Asanka Abeyweera]]></dc:creator>
            <pubDate>Mon, 01 Apr 2019 13:31:01 GMT</pubDate>
            <atom:updated>2020-06-05T03:55:14.548Z</atom:updated>
            <content:encoded><![CDATA[<p>First of all, as with every other technology, there is nothing wrong with IM in the workplace. It is just that the way we use it is sometimes wrong. If you use IM correctly, it is a wonderful and very useful piece of technology. The challenge is figuring out how to use it correctly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/594/1*zek4GAxhBzA3kqsuco6U9g.png" /><figcaption><a href="https://georgestocker.com/2014/04/15/how-to-destroy-programmer-productivity">https://georgestocker.com/2014/04/15/how-to-destroy-programmer-productivity</a></figcaption></figure><p>I think that there is no need to explain in detail why interruptions are such a productivity killer especially when you are absorbed in some deep work. If you are working in some less mental intensive tasks, interruptions are not a big issue. You just have to react to the interruption and get back to whatever you were doing. But this is not always the case. In psychology, there is a mental state called “flow” or “the zone” where a person is completely absorbed in the work he does. You can do deep mental tasks very efficiently if you can get into this state. But the problem is getting into the “flow” is not very easy. Therefore it is very costly to break out from the flow state before finishing the task.</p><p><a href="https://en.wikipedia.org/wiki/Flow_(psychology)"></a></p><h3>Things that interrupt us at work</h3><p>There are so many things that always try to grab our attention in the workplace. I will talk about a few of such things that are commonly found at work.</p><h4>Email</h4><p>Email has been around for a very long time and almost every organization is using emails to manage internal and external communications. Generally, in the business world, a response for an email is expected within a few hours of sending the email. But it is acceptable to respond to an email within 24 hours. Therefore if you manage your emails correctly it is the least distracting method of communication.</p><p>Almost all the email client programs have features like labels and filters to manage the email workload better. Some emails need attention only once a day and some only once a week. Therefore using labels and filters, you can easily implement a workflow to match that requirement.</p><h4>Instant Messaging Services</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*66onq4iqJlfxalck" /><figcaption>Photo by <a href="https://unsplash.com/@christianw?utm_source=medium&amp;utm_medium=referral">Christian Wiediger</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>IM services like Google hangout are very attractive since you tend to get responses very quickly. Therefore we try to use it for everything we do. But we always forget that every time we use IM, we are interrupting someone else’s work and forcing him to focus on our task. What is worse is that you can do this at a mass scale when you have group chats. Let’s assume that we have a group chat with 30 people. If we put an IM message and interrupt the group for 2 minutes, we have successfully spent 1 person-hour in theory. But the reality is that we have wasted at least 10 times of that time because people have to spend around 10 minutes to recover from the interruption. Therefore this is a communication medium that we need to be careful to use.</p><p>Even though emails clients have mechanisms like labels and filters, IM clients rarely have that. Therefore each and every IM message grab the attention equally and there is no clear way to prioritize different chats.</p><p>Phone calls are also very similar to IM for grabbing your attention. It also lacks mechanisms to manage like IMs. There are some features like only allowing starred contacts when the “do not disturb mode” is active. But generally, these mechanisms fail at large scales.</p><h4>Face to face communication</h4><p>I believe this is the most efficient way to communicate a complex idea/issue with a person or a group of people. We can even use whiteboards and presentation like tools to communicate very effectively. But then again if you do this too much in day to day work, it could hinder the productivity of that person or group of people. Therefore we need to use it only when required.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*CBF7Izl3gsWxbN2D" /><figcaption>Photo by <a href="https://unsplash.com/@campaign_creators?utm_source=medium&amp;utm_medium=referral">Campaign Creators</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>I do not think that we can categorize meeting as interruptions. Meetings are scheduled beforehand. Therefore people can adjust there work according to that. But if you have too many meetings to attend every day of the week, it will be very hard to find time to do some deep work.</p><h3>How do developers cope with interruptions?</h3><p>Developers are popular to find hacks to get around an issue. Similarly, there are few techniques people use to minimize the impact of interruptions. I let you decide the effectiveness of these methods</p><h4>Do nothing</h4><p>Some just accept this as a nature of the workplace and just recover from where you got interrupted. Some times this is similar to starting from the beginning.</p><p><a href="https://heeris.id.au/2013/this-is-why-you-shouldnt-interrupt-a-programmer/">This Is Why You Shouldn&#39;t Interrupt a Programmer</a></p><h4>Working from home</h4><p>WFH is also effective if you want to avoid people coming to you and interrupting. But it will not help you with the interruptions you get from IMs and phone calls and if you have kids at home good luck 😃.</p><h4>Use a mind map to document the findings</h4><p>Mind maps are great for many things. People use it to visually organize information. We can use the same technique to document all the findings while we are at a task. After an interruption, you can quickly go through the mind map and recover quickly. This will help to reduce the recovery time but it will not be the same as finishing the task in one go.</p><h4>Stacktrace of thoughts</h4><p>I found this idea while going through an HN thread. If you have worked with JAVA programs you should be familiar with the stack traces thrown by programs due to errors. This approach is similar but the trace is thoughts instead of code. Again this will help to reduce recovery time.</p><pre>There is a bug in module X<br>    Module is X is calling module Y when user is not yet activated<br>    We are creating user subscription<br>      We are using current subscription in subscription creation<br>        Current subscription is A when user is not activated<br>        Current subscription is B when user is activated<br>          Probably bug in method c()<br>            Think what is going to happen in situation M when changed the implementation to d().</pre><p><a href="https://news.ycombinator.com/item?id=6625714">Why You Shouldn&#39;t Interrupt a Programmer | Hacker News</a></p><h3>What we can really do to overcome IM services interrupting?</h3><p>In this post, I wanted to discuss how we can minimize the impact of IMs in interrupting a person or a group. Following are some points that I think would help.</p><ul><li><strong>Turn off IM notifications altogether</strong>. If you already have so many groups and personal chats interrupting your work constantly, one thing you can do is turn off IM chat notifications. But this will kill all the chat messages including the relevant ones. Therefore be careful when you do this and check back at least once each hour.</li><li><strong>Mute IM notifications for groups.</strong> People abuse personal chats less frequently when compared with group chats. Therefore if we have a way to turn off notifications for group chats that might help a lot. One option is to manually do that. I use Google chat app instead of Hangouts app so that I only receive personal chats on my mobile.</li><li><strong>Minimize the use of chats for really urgent ones.</strong> This is not easy to do. But very effective if the team can agree. Ideally the group IMs should be limited to the really urgent ones which need the attention of all the group members within minutes. For all the other messages it is better to use email groups instead of group chats (IMs).</li><li><strong>Try to find a way to prioritize the IM clients.</strong> With the popularity of tools like Slack we can only see this problem getting worse. Therefore maybe we have to again get help from the technology itself. If we can do the same thing we did for emails with labels and filters, we might save a lot of people’s time.</li></ul><p>Let me know what do you guys think about this.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=45cba0cfea85" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Capturing Items in Org mode]]></title>
            <link>https://medium.com/@A5anka/capturing-items-in-org-mode-e669bbc5b0d3?source=rss-96156f71115a------2</link>
            <guid isPermaLink="false">https://medium.com/p/e669bbc5b0d3</guid>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[emacs]]></category>
            <category><![CDATA[org]]></category>
            <dc:creator><![CDATA[Asanka Abeyweera]]></dc:creator>
            <pubDate>Sun, 21 Jan 2018 04:12:01 GMT</pubDate>
            <atom:updated>2018-01-21T04:12:01.096Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2YIXdYoiZa3nQZ9i1xN8Bg.jpeg" /><figcaption>Image source : <a href="https://www.instagram.com/p/BP8BQ8-AYuo/">https://www.instagram.com/p/BP8BQ8-AYuo/</a></figcaption></figure><p>It’s sometimes painful to navigate the org tree for adding tasks. Specially if your org tree is quiet grown and you add tasks very frequently. I have both those issues. As always org mode has a solution for this which is called “Capture Templates”.</p><p><a href="https://orgmode.org/manual/Capture.html#Capture">The Org Manual: Capture</a></p><h4>Setting up a global short cut</h4><p>If you are planning to use the org capture a lot, it is a good idea to setup a global key binding.</p><pre>(define-key global-map &quot;\C-cc&quot; &#39;org-capture)</pre><h4>Setting up the templates</h4><p>You can set the variable org-capture-templates to tell org mode about the capture templates you need to use. The format of the variable is as follows,</p><pre>(keys description type target template properties)</pre><p><a href="https://orgmode.org/manual/Template-elements.html#Template-elements">The Org Manual: Template elements</a></p><p>A capture template configuration will look something similar to the following,</p><pre>(setq org-capture-templates<br> &#39;((&quot;t&quot; &quot;Todo&quot; entry (file+headline &quot;~/org/gtd.org&quot; &quot;Tasks&quot;)<br>        &quot;* TODO %?\n  %i\n  %a&quot;)<br>   (&quot;j&quot; &quot;Journal&quot; entry (file+olp+datetree &quot;~/org/journal.org&quot;)<br>        &quot;* %?\nEntered on %U\n  %i\n  %a&quot;)))</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e669bbc5b0d3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cloning tasks with time shift]]></title>
            <link>https://medium.com/@A5anka/cloning-tasks-with-time-shift-15a1dec12dd9?source=rss-96156f71115a------2</link>
            <guid isPermaLink="false">https://medium.com/p/15a1dec12dd9</guid>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[emacs]]></category>
            <dc:creator><![CDATA[Asanka Abeyweera]]></dc:creator>
            <pubDate>Sun, 10 Dec 2017 07:55:44 GMT</pubDate>
            <atom:updated>2017-12-10T07:55:44.938Z</atom:updated>
            <content:encoded><![CDATA[<p>Sometimes in Org mode, you just need to clone a task several times with the date adjusted. Of course you can use repeatable tasks as explained in the <a href="https://medium.com/@A5anka/adding-recurring-tasks-in-org-mode-c38dfb6374e6">previous post</a> for most use cases. But if you want to repeat a task only on weekdays, the easiest way to do this is to have 5 repeating tasks on each weekday.</p><p><a href="https://medium.com/@A5anka/adding-recurring-tasks-in-org-mode-c38dfb6374e6">Adding recurring tasks in Org mode</a></p><p>There is a very useful function you can use exactly for cloning a task with date shifted. org-clone-subtree-with-time-shift will clone the current task according to the user given inputs (number of clones and date shift per clone). You can also use the C-c C-x c key combination to invoke the function.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/581/1*ig_-DvBq7H1L6WGjha6sLA.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=15a1dec12dd9" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>