<?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 Rushyab on Medium]]></title>
        <description><![CDATA[Stories by Rushyab on Medium]]></description>
        <link>https://medium.com/@rushyab?source=rss-c4fd94e84a48------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*dY0aUUvYol7QRJjHW9qd1Q.jpeg</url>
            <title>Stories by Rushyab on Medium</title>
            <link>https://medium.com/@rushyab?source=rss-c4fd94e84a48------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 19:59:56 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rushyab/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[Incomplete DMARC record will flag your emails as spam]]></title>
            <link>https://rushyab.medium.com/incomplete-dmarc-record-will-flag-your-emails-as-spam-388c1cf53af?source=rss-c4fd94e84a48------2</link>
            <guid isPermaLink="false">https://medium.com/p/388c1cf53af</guid>
            <category><![CDATA[spam]]></category>
            <category><![CDATA[dmarc]]></category>
            <category><![CDATA[custom-domain-email]]></category>
            <category><![CDATA[email]]></category>
            <category><![CDATA[zohomail]]></category>
            <dc:creator><![CDATA[Rushyab]]></dc:creator>
            <pubDate>Fri, 11 Oct 2019 13:53:39 GMT</pubDate>
            <atom:updated>2019-10-11T14:17:56.337Z</atom:updated>
            <content:encoded><![CDATA[<p>A day ago I was trying to set up a custom domain-based email address on <a href="https://www.zoho.com/">Zoho</a>. One of the steps to complete the process was to publish your DMARC policy. DMARC is an email authentication policy for recipient handling of authentication failures, and reporting from receivers to senders, to improve and monitor protection of the domain from fraudulent email.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HFV5fd7jOOMIG5O67d4SRQ.png" /><figcaption>Publishing DMARC Policy — Zoho Mail</figcaption></figure><p>The picture above shows you how to create the record. For the record name, you may have to exclude the ‘.yourdomain.com’ part, depending on your domain registrar (in my case it was GoDaddy). Because some domain registrars append your domain name to the record in the backend, so including it might result in publishing failure.</p><p>For the record value, paste the string from the picture above and change your domain name appropriately. After saving the records you can test them by visiting mxtoolbox.com.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-8Eqe0DameGWvgmph8Gkxw.png" /></figure><p>After the DMARC record was published successfully, I started to send emails using the configured mail address, and I was surprised to see that all my emails were ending up in spam box. I couldn’t figure out what went wrong since all the above tests suggested that everything was configured correctly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DPoTm_vjhKcr8rqPxuMkHQ.png" /></figure><p>After a lot of unsuccessful attempts, I showed the issue to my mentor. He looked into the matter briefly and was able to fix it. The change that did the trick was to append `pct90; sp=none` to the DMARC record value.</p><p>sp — sPolicy for subdomains of the OD</p><p>pct — Percentage of messages subjected to filtering</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GHfBJ5lPSDZRUVCA-mTvmA.png" /></figure><p>I hope this information saves you some time and effort.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=388c1cf53af" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Aggressive Cows — SPOJ]]></title>
            <link>https://rushyab.medium.com/aggressive-cows-spoj-75a155bfe749?source=rss-c4fd94e84a48------2</link>
            <guid isPermaLink="false">https://medium.com/p/75a155bfe749</guid>
            <category><![CDATA[algorithms]]></category>
            <category><![CDATA[spoj]]></category>
            <category><![CDATA[competitive-programming]]></category>
            <dc:creator><![CDATA[Rushyab]]></dc:creator>
            <pubDate>Mon, 05 Aug 2019 07:03:08 GMT</pubDate>
            <atom:updated>2019-08-05T07:17:17.703Z</atom:updated>
            <content:encoded><![CDATA[<h3>Aggressive Cows — SPOJ</h3><p>Being the most upvoted problem on <a href="https://www.spoj.com/"><strong>SPOJ</strong></a>, Aggressive Cows forces you to think like an Algorithmist. I have seen a lot of people (including me) who are getting started with competitive programming, struggle with this problem.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bOhFz1HDppJrpqjWdWBVZQ.jpeg" /></figure><p>But once you get the gist of how to approach it, the implementation part becomes fairly straightforward.</p><p>The problem description can be read <a href="https://www.spoj.com/problems/AGGRCOW/">here</a>.</p><p><strong>Overview</strong>: All the <strong><em>C</em></strong> cows must be placed in the <strong><em>N</em></strong> stalls such that the minimum distance between any two of them is as large as possible. Print the largest distance.</p><p><strong>Solution</strong>: Lets first define a function chk(x) that checks if a distance <strong><em>x</em></strong> is possible between each of the cows. We can use a <em>greedy approach </em>here by placing cows at the leftmost possible stalls such that they are at least<strong><em> x </em></strong>distance away from the last-placed cow.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5322ea032b32c36d5ab2c2472c491825/href">https://medium.com/media/5322ea032b32c36d5ab2c2472c491825/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XUs51MB8oBbwjGC0UHoEoA.jpeg" /></figure><p>As you can see in the above picture, we have taken the stall locations in increasing order. Therefore, we need to sort our array <strong><em>A</em></strong> that stores stall locations.</p><p>Once we have our sorted array, we can apply the <strong>Binary Search<em> </em></strong>algorithm on the sorted input, and use our function chk(x) to find the largest distance possible.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d166bc80d571a2b476bac0a99edf9a6a/href">https://medium.com/media/d166bc80d571a2b476bac0a99edf9a6a/href</a></iframe><p>Time Complexity: O(NlogN), Space Complexity: O(N); Where N ≤ 100000.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=75a155bfe749" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>