<?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 Gaurav Arora on Medium]]></title>
        <description><![CDATA[Stories by Gaurav Arora on Medium]]></description>
        <link>https://medium.com/@gaurav-arora?source=rss-a4edad366277------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*QvDfz8rAQRwkcH1MUVfMZA.jpeg</url>
            <title>Stories by Gaurav Arora on Medium</title>
            <link>https://medium.com/@gaurav-arora?source=rss-a4edad366277------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 09:50:47 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@gaurav-arora/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[Can the current generation of LLM models be Evil ???]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://gaurav-arora.medium.com/can-the-current-generation-of-llm-models-be-evil-b7ea6257b9a0?source=rss-a4edad366277------2"><img src="https://cdn-images-1.medium.com/max/1792/1*z-7B3aCIpVrVgRYlm7u8bw.jpeg" width="1792"></a></p><p class="medium-feed-snippet">The current Large language models have surpassed the expectations of the biggest AI enthusiasts. No one ever believed just making the&#x2026;</p><p class="medium-feed-link"><a href="https://gaurav-arora.medium.com/can-the-current-generation-of-llm-models-be-evil-b7ea6257b9a0?source=rss-a4edad366277------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://gaurav-arora.medium.com/can-the-current-generation-of-llm-models-be-evil-b7ea6257b9a0?source=rss-a4edad366277------2</link>
            <guid isPermaLink="false">https://medium.com/p/b7ea6257b9a0</guid>
            <category><![CDATA[large-language-models]]></category>
            <category><![CDATA[openai]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[ai-risk]]></category>
            <dc:creator><![CDATA[Gaurav Arora]]></dc:creator>
            <pubDate>Sat, 23 Nov 2024 10:18:45 GMT</pubDate>
            <atom:updated>2024-11-23T10:18:45.891Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[ChatGPT Search? Revolutionary or Derivative or Bad]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://gaurav-arora.medium.com/chatgpt-search-revolutionary-or-derivative-or-bad-40aa16f293e4?source=rss-a4edad366277------2"><img src="https://cdn-images-1.medium.com/max/1156/1*o3Y6kJvJ0p16fmjt_TctEw.png" width="1156"></a></p><p class="medium-feed-snippet">What does ChatGPT do incredibly well? select and summarise the relevant bits. The search model allows it to tap into live data feeds and&#x2026;</p><p class="medium-feed-link"><a href="https://gaurav-arora.medium.com/chatgpt-search-revolutionary-or-derivative-or-bad-40aa16f293e4?source=rss-a4edad366277------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://gaurav-arora.medium.com/chatgpt-search-revolutionary-or-derivative-or-bad-40aa16f293e4?source=rss-a4edad366277------2</link>
            <guid isPermaLink="false">https://medium.com/p/40aa16f293e4</guid>
            <category><![CDATA[large-language-models]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[search]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[chatgpt]]></category>
            <dc:creator><![CDATA[Gaurav Arora]]></dc:creator>
            <pubDate>Sun, 10 Nov 2024 15:04:10 GMT</pubDate>
            <atom:updated>2024-11-10T15:04:10.007Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Debugging Exclude at Match regex Datadog]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-snippet">We wanted to exclude CloudFront logs from the Datadog ingest as out of 5 Million allowed logs per day, 4 Million were consumed by two&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/gaurav-arora/debugging-exclude-at-match-regex-datadog-e39f862a3a38?source=rss-a4edad366277------2">Continue reading on Gaurav Arora »</a></p></div>]]></description>
            <link>https://medium.com/gaurav-arora/debugging-exclude-at-match-regex-datadog-e39f862a3a38?source=rss-a4edad366277------2</link>
            <guid isPermaLink="false">https://medium.com/p/e39f862a3a38</guid>
            <category><![CDATA[datadog]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[regex]]></category>
            <category><![CDATA[logs]]></category>
            <dc:creator><![CDATA[Gaurav Arora]]></dc:creator>
            <pubDate>Sat, 02 Nov 2024 03:44:05 GMT</pubDate>
            <atom:updated>2024-11-10T15:10:28.757Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Celery — Identifying memory leaks and a temporary fix]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/gaurav-arora/celery-identifying-memory-leaks-and-a-temporary-fix-768f0cb0d858?source=rss-a4edad366277------2"><img src="https://cdn-images-1.medium.com/max/1024/1*ePCs_jYmAbQNlllFcVmViw.png" width="1024"></a></p><p class="medium-feed-snippet">Setting maximum memory/task limit per working in celery can hide memory leaks.</p><p class="medium-feed-link"><a href="https://medium.com/gaurav-arora/celery-identifying-memory-leaks-and-a-temporary-fix-768f0cb0d858?source=rss-a4edad366277------2">Continue reading on Gaurav Arora »</a></p></div>]]></description>
            <link>https://medium.com/gaurav-arora/celery-identifying-memory-leaks-and-a-temporary-fix-768f0cb0d858?source=rss-a4edad366277------2</link>
            <guid isPermaLink="false">https://medium.com/p/768f0cb0d858</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Gaurav Arora]]></dc:creator>
            <pubDate>Thu, 23 Feb 2023 11:34:57 GMT</pubDate>
            <atom:updated>2023-02-23T11:34:57.246Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Clean-up text content using unicode Normalisation]]></title>
            <link>https://medium.com/gaurav-arora/clean-up-text-content-using-unicode-normalisation-d629e9cc3564?source=rss-a4edad366277------2</link>
            <guid isPermaLink="false">https://medium.com/p/d629e9cc3564</guid>
            <category><![CDATA[unicode]]></category>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Gaurav Arora]]></dc:creator>
            <pubDate>Sun, 31 Jul 2022 03:59:15 GMT</pubDate>
            <atom:updated>2022-07-31T04:04:21.074Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to remove \x0a, accented characters or other things from your text before feeding them into machine learning model</h3><p>While building a model on text data we do want to normalise or clean your data to avoid unnecessary confusion.</p><p>Consider a title like “<em>Samsun\x0aTV</em>”. Since \\x0a is a space you would like to convert those to spaces.</p><p>Otherwise your model needs to learn \\x0a is a space and which would require more training data — Ideally normalising your text before feeding it into your model would be ideal.</p><p>Most of the answer of stack overflow would suggest to do something like following:</p><pre>s.encode(&#39;ascii&#39;, errors=&#39;ignore&#39;).decode(&quot;utf-8&quot;)</pre><pre>new_str = unicodedata.normalize(&quot;NFKD&quot;, unicode_str)</pre><p>Issue with those approaches is they are not flexible and would remove a lot of characters you would still want to be part of normalised text and would helpful for model to make a decision.</p><p>Examples of side effects are:</p><pre>In [15]: a = &quot;Crash Bandicoot™ 4: It’s About Time (PS4) (incl. PS5 Digital Upgrade) PlayStation 4 Standard&quot;</pre><pre>In [16]: unicodedata.normalize(&quot;NFKD&quot;, a)<br>Out[16]: &#39;Crash BandicootTM 4: It’s About Time (PS4) (incl. PS5 Digital Upgrade) PlayStation 4 Standard&#39;</pre><p>Notice how TM was added to Bandicoot, this is undesirable.</p><p>Using unicodedata normalisation smartly:</p><p>We can first decompose the characters using NFD and then selectively drop characters based on our requirement. Code snippet below:</p><pre>import unicodedata</pre><pre>def map_chars_for_good_title(chr):<br>     cat = unicodedata.category(chr)<br>     # Refer &lt;https://www.fileformat.info/info/unicode/category/index.htm&gt; for th<br>     # unicode categories.<br>     if cat in [&quot;Zl&quot;, &quot;Zp&quot;, &quot;Zs&quot;, &quot;Cc&quot;]:<br>         return &quot; &quot;<br>     elif cat in [&quot;So&quot;, &quot;Lm&quot;]:<br>         return &quot;&quot;<br>     elif cat in [&quot;Mc&quot;, &quot;Me&quot;, &quot;Mn&quot;]:<br>        return &quot;&quot;<br>     elif cat in [&quot;Ps&quot;, &quot;Pe&quot;]:<br>        return &quot;&quot;<br>     return chr</pre><pre>def clean_up_title(title):<br>    # Decomposes unicode characters i.e accented characters to 2 characters.<br>    decompose_title = unicodedata.normalize(&quot;NFD&quot;, title)<br>    # We remove character with space or delete character based on their category<br>    mapped_title_chars = map(map_chars_for_good_title, decompose_title)<br>    return &quot;&quot;.join(mapped_title_chars)</pre><p>Cleaning up above example with this process</p><pre>In [18]: clean_up_title(a)<br>Out[18]: &#39;Crash Bandicoot 4: It’s About Time PS4 incl. PS5 Digital Upgrade PlayStation 4 Standard&#39;</pre><p>I like this method as this allows more control over the process of what we want to keep and what we want to avoid/remove.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d629e9cc3564" width="1" height="1" alt=""><hr><p><a href="https://medium.com/gaurav-arora/clean-up-text-content-using-unicode-normalisation-d629e9cc3564">Clean-up text content using unicode Normalisation</a> was originally published in <a href="https://medium.com/gaurav-arora">Gaurav Arora</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Running List of Interesting Resources]]></title>
            <link>https://medium.com/gaurav-arora/running-list-of-interesting-resources-cb1a7b0669a1?source=rss-a4edad366277------2</link>
            <guid isPermaLink="false">https://medium.com/p/cb1a7b0669a1</guid>
            <category><![CDATA[data]]></category>
            <category><![CDATA[lists]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Gaurav Arora]]></dc:creator>
            <pubDate>Sun, 28 Oct 2018 11:29:25 GMT</pubDate>
            <atom:updated>2018-10-28T11:29:25.904Z</atom:updated>
            <content:encoded><![CDATA[<p>Quite an Important concept in Machine Learning :</p><h3><strong>Bias vs variance:</strong></h3><p>Did you ever come across a question why don’t we do away with Linear machine learning methods when non-linear can learn complex behaviors?</p><p>This link contains the answer:</p><p><a href="https://nlp.stanford.edu/IR-book/html/htmledition/linear-versus-nonlinear-classifiers-1.html#fig:typicallinear">Linear versus nonlinear classifiers</a></p><h3><strong>Support Vector Machine:</strong></h3><p>Are you finding maths behind Support vector machines too complex?</p><p>Did you know that maths behind SVM actually sing?</p><p>Hear the song at <a href="https://www.youtube.com/watch?v=_PwhiWxHK8o&amp;t=2492s">https://www.youtube.com/watch?v=_PwhiWxHK8o&amp;t=2492s</a></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F_PwhiWxHK8o%3Fstart%3D2492%26feature%3Doembed%26start%3D2492&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D_PwhiWxHK8o&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F_PwhiWxHK8o%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/017cab273ef41a2ec0de6794fff09b19/href">https://medium.com/media/017cab273ef41a2ec0de6794fff09b19/href</a></iframe><h3>Linear Algebra:</h3><p>Does linear algebra scare you?</p><p>It won’t scare you if you know the intuition why what is done:</p><p>Get your intuition dose at <a href="https://www.youtube.com/watch?v=fNk_zzaMoSs&amp;list=PLZHQObOWTQDPD3MizzM2xVFitgF8hE_ab">https://www.youtube.com/watch?v=fNk_zzaMoSs&amp;list=PLZHQObOWTQDPD3MizzM2xVFitgF8hE_ab</a></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FfNk_zzaMoSs%3Flist%3DPLZHQObOWTQDPD3MizzM2xVFitgF8hE_ab&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DfNk_zzaMoSs&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FfNk_zzaMoSs%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/070a32e320205a4ddbedb159aca6b8ab/href">https://medium.com/media/070a32e320205a4ddbedb159aca6b8ab/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cb1a7b0669a1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/gaurav-arora/running-list-of-interesting-resources-cb1a7b0669a1">Running List of Interesting Resources</a> was originally published in <a href="https://medium.com/gaurav-arora">Gaurav Arora</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Linear to Quadratic and Back]]></title>
            <link>https://medium.com/gaurav-arora/linear-to-quadratic-and-back-310d909fe413?source=rss-a4edad366277------2</link>
            <guid isPermaLink="false">https://medium.com/p/310d909fe413</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[bash]]></category>
            <category><![CDATA[shell]]></category>
            <category><![CDATA[optimization]]></category>
            <category><![CDATA[shell-script]]></category>
            <dc:creator><![CDATA[Gaurav Arora]]></dc:creator>
            <pubDate>Tue, 16 Oct 2018 11:22:51 GMT</pubDate>
            <atom:updated>2018-10-16T11:36:23.922Z</atom:updated>
            <content:encoded><![CDATA[<h3>Linear to Quadratic and back</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y8sNHNIWGyAj3l7K05GprA.png" /><figcaption>What’s wrong</figcaption></figure><p>I wrote a shell script to generate data for a test I was writing. The script goes something like this:</p><p><strong>Script A</strong></p><pre>#!/bin/sh</pre><pre>data=&quot;&quot;<br>for i in `seq 1 6000`;<br>do<br>data=&quot;${data}newdata=$i&quot;;<br>done<br>##Time for this script  <br>##./new.sh  9.01s user 0.02s system 99% cpu 9.049 total</pre><p>It sure looks like a script which can run in <em>O(n)</em> time, a single <em>for</em> loop.</p><p>It was bit baffled when I got review comment saying this is quadratic or <em>O(n2) </em>in time complexity. I initially thought it’s something to do with shell!! Maybe it does some advanced representation thing and stuff.</p><p><strong>Script B</strong></p><pre>#!/bin/sh</pre><pre>data=&quot;&quot;<br>for i in `seq 1 6000`;<br>do<br>data=&quot;newdata=$i&quot;;<br>done<br>##Time for this script  <br>##./new.sh  0.05s user 0.00s system 97% cpu 0.051 total</pre><p>The script A above takes <em>9.01 second</em>, whereas Script B takes <em>0.05 seconds</em>.</p><p>It’s just <strong>the assignment operator</strong> which was increasing the time complexity of this script.</p><h3><strong>How?</strong></h3><p>Since it has to assign whole data of string to the new variable.</p><p>It has to traverse the whole data generated from 1 to 5999 and append data of 6000th iteration. So 6000th iteration is equivalent to generating data from the whole loop. <strong>Quadratic!!</strong></p><h3>Back to Linear space, we seem to like them.</h3><p>In advanced shells, we can just change the script to:</p><p><strong>Script C</strong></p><pre>data=&quot;&quot;<br>for i in `seq 1 6000`;<br>do<br>data+=&quot;newdata=$i&quot;;<br>done<br>##Time for this script  <br>##./new.sh  0.07s user 0.01s system 97% cpu 0.075 total</pre><p>It would make it linear. But the version of shell we use for test script doesn’t support append operation like Script C. Yet to figure out how to solve it.</p><h3><strong>Just a reminder to me: Think and code</strong></h3><p>It is interesting how <strong>substitution</strong> instead of <strong>append </strong>can increase performance time with the same result.</p><p>These small mistakes can make your program unusable. Though our example is in the shell script, doing this mistake in other languages is possible but less probable as people are used to <em>+=</em> operators.</p><p>But the various version of bash with different features these mistakes highly probable in shell scripting.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=310d909fe413" width="1" height="1" alt=""><hr><p><a href="https://medium.com/gaurav-arora/linear-to-quadratic-and-back-310d909fe413">Linear to Quadratic and Back</a> was originally published in <a href="https://medium.com/gaurav-arora">Gaurav Arora</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Is Catastrophic Interference slowing training?]]></title>
            <link>https://medium.com/gaurav-arora/is-catastrophic-interference-slowing-training-e9244e7b5994?source=rss-a4edad366277------2</link>
            <guid isPermaLink="false">https://medium.com/p/e9244e7b5994</guid>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[computer-vision]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Gaurav Arora]]></dc:creator>
            <pubDate>Wed, 22 Aug 2018 14:46:04 GMT</pubDate>
            <atom:updated>2018-08-22T14:48:42.818Z</atom:updated>
            <content:encoded><![CDATA[<p>Recently, while reviewing the literature in NLP. I traversed through citation graphs. One thing which was pretty evident was Catastrophic Interference is a major issue/problem in achieving General Artificial Intelligence.</p><p><strong>What’s Catastrophic Interference?</strong></p><p>Ah, It’s fun explained this way:</p><blockquote>Do you remember the kid next door, who couldn’t remember what was taught yesterday?</blockquote><p>Current neural networks are those kids. When taught a lesson, they would know it all. But once you teach them a new lesson, they would forget it all the old lesson damn!!</p><p>TBH I haven’t come across a kid who was at such extreme.</p><p>I am still learning about them but here are what i learned till now. What basically happens inside these neural networks is, Learning is stored as weights or parameters. Once we start training for this new task these parameters get changed in incompatible way.</p><p>WAIT! WAIT! WAIT!</p><p><strong><em>Isn’t that what happens while actual training of neural networks??????</em></strong></p><p>Yes, Does it mean solving catastrophic interference would lead to efficient training of neural networks?</p><p>I would hope so.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e9244e7b5994" width="1" height="1" alt=""><hr><p><a href="https://medium.com/gaurav-arora/is-catastrophic-interference-slowing-training-e9244e7b5994">Is Catastrophic Interference slowing training?</a> was originally published in <a href="https://medium.com/gaurav-arora">Gaurav Arora</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ADHM 2017]]></title>
            <link>https://medium.com/gaurav-arora/adhm-2017-d1889dda9e57?source=rss-a4edad366277------2</link>
            <guid isPermaLink="false">https://medium.com/p/d1889dda9e57</guid>
            <category><![CDATA[marathon]]></category>
            <category><![CDATA[running]]></category>
            <category><![CDATA[airtel]]></category>
            <category><![CDATA[pollution]]></category>
            <category><![CDATA[delhi]]></category>
            <dc:creator><![CDATA[Gaurav Arora]]></dc:creator>
            <pubDate>Mon, 20 Nov 2017 20:20:19 GMT</pubDate>
            <atom:updated>2017-11-20T20:44:54.682Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ySfRSHeLWsqVJlzPneoWBQ.jpeg" /></figure><p>First things first: Finished Half Marathon in 1:55:27, shaving off almost 21 minutes from my ADHM 2016 timing. Thanks @sriram for training and seeding idea of doing sub-2 and making me believe it was possible by training during Womanathon.</p><p>Airtel Delhi Half Marathon(ADHM) 2017 could well be defined with the hue and cry over pollution in Delhi and amazing weather on race day. Silver lining being raised awareness about pollution level in Delhi.</p><blockquote>2016 edition saw a lot more training energy than 2017 which went missing inside clouds of pollution this year.</blockquote><p>One of the overarching question i kept asking due to all this buzz about pollution were:</p><ol><li>Is it really extremely bad/harmful to run in this pollution ?</li><li>Should i be running or not, given ADHM is something we look forward though-out year ?</li></ol><p>Obviously it’s harmful to run in pollution and if it’s a visible pollution in form of smog one shouldn’t run Otherwise i think just start slow and see if we feel comfortable and don’t shy away from quit run if you been different due to high pollution level.</p><h3>Pollution or not!! Listen to your body: it does talk</h3><p>I did one of my best tempo runs like 1 hour tempo 2 weeks before ADHM where i did 11.1 km in 1 hour which gave me confidence i could do sub-2 and I felt terrible on one of training run 1 week when there was visible smog. To a point 2 km into the run, i could see/feel pollution and turned to other side and finished my at much slower than target pace.</p><blockquote>So, The key is listen to your body.. it will guide you accordingly and be cautious.</blockquote><h3>Pace workouts do help, but is it ok to do just them?</h3><p>I started training by ASICS training plan, but having followed the training plans @Alfi . I found ASICS plan were missing actions of tempo and interval runs. So switched to plan by alfi once they made there way to Facebook.</p><p>I couldn’t follow them to T, but i tried my best to do interval and tempo runs and long runs. Though i missed quite a few long runs.</p><p>But one question i still have, if you are not able to manage slower runs then is it ok to do just pace workouts in week? I did this but is it harmful</p><h3>Last 3 KM are always tough, idea to tackle them:</h3><p>This is where mental game starts and u start getting tired. I have also felt last 3 km being tough one is generally waiting for the finish line.</p><p>One interesting thing i learned from @gagan deep during NDM 2017 was atleast during last km when u are tired, cheering up people and shouting “Just last few km, come run” not only gives energy to other runner, it gives you 2X energy back to you.</p><p>I tried that during ADHM 2017 when i was feeling tired and it really works like charm. Do give it a try in your next race.</p><h3><strong>Give your best and smartest on Race Day:</strong></h3><p>Since i was training for sub-2 and didn’t even follow the plan to T. I couldn’t have planned running 1:55 which i ended up doing. Though i was advised by @manish singh about following bus of 1:55.</p><p>One good thing i did was i planned to follow my body and rhythm and not be mad about any bus.</p><p>I started out by thinking i would strictly follow pace the pace of 5:40 required for sub and bring home sub-2. But somewhere around 2km, i saw 1:55 Bus driven by @Dinesh heda crossing me. Amazingly i found myself in vicinity of his Bus for next 4–5 KM and then i thought i joined his bus though i think i was listening to my body and doing what my body allowed going ahead of him if i felt like it but then he would overtake me and stay in my vicinity. This went on till 14–16KM when i started to feel i was not falling in his vicinity by listening to my body. in few minutes other bus of 1:55 KM driven by @shailja sridhar crossed when i lost the hope of getting sub 1:55 but shailja then slowed down and started calling people forward around 18km which gave motivation something closer to 1:55 is achievable and i followed on.</p><p>Best is to be listening to your body and following / getting motivation from surrounding Buses and people works best for me.</p><h3>Avoiding being smart while overtaking and complicated calculation!!</h3><p>One of the incident during this year run struck me bad, Around 19KM being motivated by shailja’s bus i was running ahead and had two runners ahead of me: One of the walking and one of them running at pace little slower than me and walking person just ahead of me and person running at slower just next to me.</p><p>I thought i could overtake walking person before the person on side came close enough. Idea was not to break the rhythm which is difficult to get at this point in race. But!!!!!!!!!!!!!!!!!!!!!!!!!!!!</p><p>ah! miscalculation…. It resulted in me getting too close and other person losing rhythm and me and he himself saving him from tripping. No one got hurt which is good thing else i would have felt 100X more terrible. Which is why it’s a important lesson to learn.</p><p>I know it was a mistake and not be repeated again. My intentions were not wrong. Sorry to the runner..</p><h3>Timing Certificate and pics:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ySfRSHeLWsqVJlzPneoWBQ.jpeg" /><figcaption>Certificate</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5-4rzt8KNkqSetaKEDlr0Q.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UHzHfP8zDILvFlU-iZYibA.jpeg" /><figcaption>DRG Gang</figcaption></figure><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F07mzxcDmMmE%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D07mzxcDmMmE&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F07mzxcDmMmE%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/25da5118596050ad3baa53613efdeff8/href">https://medium.com/media/25da5118596050ad3baa53613efdeff8/href</a></iframe><h3>Plans made by DRG and Alfie</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Sfnds8SCCTV2dH29u2WBuA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M1Rij0zxDnLZaFVzFB2BFg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AYXQwkDfABuRAfRb1tqGBQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xsKRIR8NRgnUbPvDl36X3g.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h_0WarQx6EPUNfjunkk1Fg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SWARhr_y-7uBt7iJu4C7cw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G74K_RU1m7QG3a4LYYOesQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LRSur0B-N6w98u3cAdAsUg.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d1889dda9e57" width="1" height="1" alt=""><hr><p><a href="https://medium.com/gaurav-arora/adhm-2017-d1889dda9e57">ADHM 2017</a> was originally published in <a href="https://medium.com/gaurav-arora">Gaurav Arora</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deleting specific type of terms from a Xapian document]]></title>
            <link>https://medium.com/gaurav-arora/deleting-specific-type-of-terms-from-a-xapian-document-bb3bf36df1c7?source=rss-a4edad366277------2</link>
            <guid isPermaLink="false">https://medium.com/p/bb3bf36df1c7</guid>
            <category><![CDATA[search-engines]]></category>
            <category><![CDATA[search]]></category>
            <category><![CDATA[xapian]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[dev]]></category>
            <dc:creator><![CDATA[Gaurav Arora]]></dc:creator>
            <pubDate>Mon, 19 Jun 2017 14:38:51 GMT</pubDate>
            <atom:updated>2017-06-19T14:40:27.932Z</atom:updated>
            <content:encoded><![CDATA[<p>Recently i was working on a problem. Where i needed to delete all the terms with specific prefix let’s say NA from the xapian document.</p><p>So, the Xapian document model provide us with amazing API’s to play with index and the individual indexed document.</p><ol><li>It provide’s us with iterator of terms in a particular document. TermIterator , <strong>termlist_begin(did)</strong> , <strong>termlist_end(did)</strong>.</li><li>It provides us with a API to delete the specific term in a document. <strong>remove_term(term).</strong></li></ol><p>I am like then why are we even blogging about it, It’s simple</p><ol><li>Iterate through the termlist of the document.</li><li>Check if the terms starts with NA.</li><li>call remove_term(term) if term starts with NA.</li></ol><p>yes, this looks like the perfect thing. It worked for initial simple example also But then when things or data started getting complex the strategy started going hay-way.</p><p>It was not deleting lot of the prefix terms. I tried a lot of things which could be causing that. But the main issue was deleting the terms was causing the underlying dataset or termlist to change which was causing the termlist to also change. Hence we were missing deleting lot of terms. Which was detected after a lot of debugging.</p><p>Correct algorithm to do it:</p><ol><li>create a empty list of string.</li><li>iterate through the termlist of the document.</li><li>check if the term starts with NA.</li><li>Add the term to list&lt;string&gt; if the term do start with NA.</li><li>After the iterator of document finishes. Iteratre thorough the string list which contains terms to be deleted.</li><li>Delete all the terms from document in this list via remove_term(term).</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/486/1*yohRA7KahbOE004KlKlZ3g.jpeg" /></figure><p>Just something to share. In this also We are also iterating through all the block trying to find the loose block to remove which will not make the building fall. Until one point when the building becomes unstable and it falls off.</p><p>Though the process is similar we want to delete based on condition while iterating through the blocks.</p><p>I recently discovered this game and i am liking it :) .</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bb3bf36df1c7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/gaurav-arora/deleting-specific-type-of-terms-from-a-xapian-document-bb3bf36df1c7">Deleting specific type of terms from a Xapian document</a> was originally published in <a href="https://medium.com/gaurav-arora">Gaurav Arora</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>