<?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 Abhinav Gupta on Medium]]></title>
        <description><![CDATA[Stories by Abhinav Gupta on Medium]]></description>
        <link>https://medium.com/@donebutwhy?source=rss-2486e3d82207------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*OMEPVeZYmz4_8Qxq2g1rxQ.jpeg</url>
            <title>Stories by Abhinav Gupta on Medium</title>
            <link>https://medium.com/@donebutwhy?source=rss-2486e3d82207------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 04:41:47 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@donebutwhy/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[Observability and Compliance in Skills]]></title>
            <link>https://donebutwhy.medium.com/observability-and-compliance-in-skills-b07833dcf8c7?source=rss-2486e3d82207------2</link>
            <guid isPermaLink="false">https://medium.com/p/b07833dcf8c7</guid>
            <category><![CDATA[hooks]]></category>
            <category><![CDATA[skills]]></category>
            <category><![CDATA[agents]]></category>
            <category><![CDATA[til]]></category>
            <dc:creator><![CDATA[Abhinav Gupta]]></dc:creator>
            <pubDate>Mon, 28 Sep 2026 21:06:58 GMT</pubDate>
            <atom:updated>2026-09-28T21:06:58.142Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>What actually stops an AI coding agent from running any skill it finds, and what tells you which ones it actually used?</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*AJbkTd3227jY9LCO" /><figcaption>Photo by <a href="https://unsplash.com/@abi057?utm_source=medium&amp;utm_medium=referral">Abi abdullah miyad</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>A hook is a checkpoint the agent has to pass through right before it runs a tool, a skill, or a subagent, and another one right after.</p><p>The checkpoint before the action is where a guardrail lives. It can approve the action, deny it with a reason, or rewrite the arguments before anything runs.</p><p>The checkpoint after the action is where telemetry lives. It just records what happened like which skill ran, with what input, in which session.</p><p>Copilot’s deny schema looks something like this:</p><pre>{&quot;permissionDecision&quot;: &quot;deny&quot;, &quot;permissionDecisionReason&quot;: &quot;requires security review&quot;}</pre><p>On the guardrail side, two jobs come up again and again. Blocking a specific dangerous action before it runs (like don’t edit a .env file, don’t touch a protected config file), and keeping a script from reading secrets it has no business touching.</p><p>The deny reason itself does useful work too. It is the exact text handed back to the model, so a rejected attempt often leads the agent to try something different on the next turn, with no extra prompting needed.</p><p>The after-action checkpoint builds an audit trail for compliance. It can also ship each event straight to an external endpoint over HTTP, without slowing down the tool call itself, like tying these events into OpenTelemetry trace context automatically, so a hook’s own logged span lines up with the rest of the session’s trace, instead of sitting as one isolated log line.</p><p>The tradeoff is, a hook runs synchronously, in the critical path of every tool call — nothing happens until the check finishes, which increases the latency to complete the job.</p><p>But that also means a hook’s failure mode matters as much as its logic. Copilot’s own docs say that a hook which times out fails open, (not denied, but allowed silently) as if the check never ran. So a slow validation script doesn’t just cost latency, if it’s slow enough to hit the timeout, it stops guarding, without telling anyone.</p><p>Further reading: <a href="https://awesome-copilot.github.com/instruction/hooks/">https://awesome-copilot.github.com/instruction/hooks/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b07833dcf8c7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deterministic vs Indeterministic — The Two Instruction Styles Every AI Agent Needs]]></title>
            <link>https://donebutwhy.medium.com/deterministic-vs-indeterministic-the-two-instruction-styles-every-ai-agent-needs-c53137d9ba3b?source=rss-2486e3d82207------2</link>
            <guid isPermaLink="false">https://medium.com/p/c53137d9ba3b</guid>
            <category><![CDATA[til]]></category>
            <category><![CDATA[prompt-engineering]]></category>
            <category><![CDATA[agent-design]]></category>
            <category><![CDATA[ai-agent]]></category>
            <dc:creator><![CDATA[Abhinav Gupta]]></dc:creator>
            <pubDate>Sun, 27 Sep 2026 21:34:17 GMT</pubDate>
            <atom:updated>2026-09-27T22:12:36.095Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Why does the exact same agent setup nail a task on one run and go sideways on the next?</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kMeAMxzSjtmnqjc4" /><figcaption>Photo by <a href="https://unsplash.com/@soymeraki?utm_source=medium&amp;utm_medium=referral">Javier Allegue Barros</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>I hit this building a skill, where there were same instructions, same model, different outcome each run. The problem was not model, it was how I wrote the instructions.</p><p>For example, picture an expense report bot with four jobs, check the category, check the amount, ask again if the receipt is missing, reply to the employee. Instruct a model to those four actions the normal way (register the tools, let it pick one each turn) and nothing stops it from replying “Approved!” before checking the amount, or asking for that receipt forever.</p><p>Why would it actually do that? A tool calling model is not running your checklist as a program, on every turn it just generates whichever next action seems most fitting, the same mechanism that predicts the next word in a sentence. “Travel expense” reads as routine, so “approved” can feel like the finished answer, with no internal step forcing the amount check to run first. It is the same pattern when models sometimes skip a calculator sitting right there and just guessing the math, having a tool available never guarantees it gets used before the model commits to an answer.</p><p>That is called as loop (powerful, but nothing forces order). What is the fix? Consider it like a flowchart. A box for “check category,” an arrow to “check amount,” one that splits depending on the amount, and so on (like a graph). The “reply” box only has arrows coming in from boxes where a decision is already final, so the bot can’t reply before deciding (the option is not available). The missing receipt box gets one rule on its own arrow too (“asked twice? send it to a person”), so that loop closes as well, and it is not because the model got smarter, but because a third pass down that path no longer exists on the map.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kuuCMaSDTmiePMCN" /><figcaption>LOOP vs GRAPH</figcaption></figure><p>Rule — it is an arrow. Judgement call — thats the one box I still let the model think freely in.</p><p>Further Reading: <a href="https://futureagi.com/blog/what-is-langgraph-2026/">https://futureagi.com/blog/what-is-langgraph-2026/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c53137d9ba3b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What OpenTelemetry still can’t tell about the LLM calls]]></title>
            <link>https://donebutwhy.medium.com/what-opentelemetry-still-cant-tell-about-the-llm-calls-4bb4b968a507?source=rss-2486e3d82207------2</link>
            <guid isPermaLink="false">https://medium.com/p/4bb4b968a507</guid>
            <category><![CDATA[opentelemetry]]></category>
            <category><![CDATA[llmops]]></category>
            <category><![CDATA[til]]></category>
            <category><![CDATA[genai]]></category>
            <category><![CDATA[observability]]></category>
            <dc:creator><![CDATA[Abhinav Gupta]]></dc:creator>
            <pubDate>Sat, 26 Sep 2026 20:21:34 GMT</pubDate>
            <atom:updated>2026-09-26T20:21:34.846Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>When my code calls any LLM model, how do I actually know what happened inside the call?</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ehnf88i-puq8a0VI" /><figcaption>Photo by <a href="https://unsplash.com/@nickbrunner?utm_source=medium&amp;utm_medium=referral">Nick Brunner</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>The answer is tracing. OTel is the open standard for writing it, so any tool can read it the same way.</p><p>For LLM calls specifically, OTel defines real fields for those tags like gen_ai.request.model (which model answered), gen_ai.token.type (whether a token count is input or output).</p><p>But problem is, every one of those fields is labeled as Development, not Stable. Development means it is not promised that a rename comes with a compatibility path, the next release can rename gen_ai.token.type to something else entirely, and every dashboard filter or alert you built around that exact name just stops matching. There will be no error, no warning, it silently returns nothing.</p><p>So the basics like model, tokens, timing will work today, but they are built on a name that is not guaranteed to still be the name next month.</p><blockquote>Knowing what happened is one problem. Knowing whether the answer was actually correct is a different, harder one, and there is no field for it. Not because nobody has gotten it yet, but because of how a span works.</blockquote><p>A span opens when the request starts and closes the moment it ends — that’s the instant it gets shipped off to the tracing backend. Checking the answer means sending it to a second, separate model to grade it, and that grading call almost never finishes before the original span has already closed and shipped. By the time you have an answer, there is no open record left to write it into.</p><p>So we are left with 2 options:</p><ol><li>Make the users request wait for the grader too, then write the score onto the same span. This works well for end to end trace, but slower for the end user.</li><li>Let the response return immediately, and send the grade later as its own span, correlated back to the original by trace ID. This is faster for the user, but the cost doesn’t disappear — it just shifts from the user’s wait time to the tracing backend. Correlation is the technique that makes this possible, but it doesn’t make it free (you still have to manually carry the original trace ID into the later grading call, since the request’s own context is already gone by the time that call runs, and the tracing backend has to accept a span that shows up after the trace already looked finished. From then on, every time anyone wants to read the result, they are joining two separate records by trace ID instead of reading one attribute off one span. This is not a one time setup cost, but every time)</li></ol><p>If the user already has their answer by the time the grade comes back, what is the point of grading it at all? Not for that user, that chance is gone the moment the response returns. It is for the system which aggregates the grades across thousands of requests and you can watch a pass rate over time, catch it drop after a bad prompt change or model change, pull the failed answers out for a human review or feed them into fixing the next version. (Inline grading protects one answer, async grading protects the next thousand)</p><p>This is not a hypothetical situation, it is one every real tool that traces LLM calls today has already had to solve on its own, each picking a name ahead of any standard, so whichever way OTel eventually settles this, some of them will have to migrate.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4bb4b968a507" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Tracing isn’t enough for AI agents anymore]]></title>
            <link>https://donebutwhy.medium.com/tracing-isnt-enough-for-ai-agents-anymore-9a7256d5c8fd?source=rss-2486e3d82207------2</link>
            <guid isPermaLink="false">https://medium.com/p/9a7256d5c8fd</guid>
            <dc:creator><![CDATA[Abhinav Gupta]]></dc:creator>
            <pubDate>Fri, 25 Sep 2026 20:27:31 GMT</pubDate>
            <atom:updated>2026-09-25T20:27:31.569Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Ever debugged an AI agent that quietly called the wrong tool 3 times before giving up, with scattered logs to go on?</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_dhyOfF2sr6jxTyu" /><figcaption>Photo by <a href="https://unsplash.com/@edge2edgemedia?utm_source=medium&amp;utm_medium=referral">Edge2Edge Media</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Thats exactly what OTel is fixing for agents.</p><p>Normal tracing follows one request through the services. An agent rewrites its own plan while processing, calls a tool, reads the result, picks a different tool, repeats. Each decision needs its own span, or I am stuck going through print statements in the logs.</p><p>AWS Bedrock AgentCore Observability emits OTel compatible traces for every tool call and model invocation, routed into a Cloudwatch GenAI dashboard (by default, but exportable to any other targets like Datadaog, Grafana, etc)</p><p>The conventions define agent, workflow, tool and model spans, along with token usage and latency as real metrics, not something I want to grep out of a log.</p><p>A trace only proves what my dashboard says happened, but nothing stops the log itself being edited by a bug or by someone quietly cleaning up an embarrassing run before an audit.</p><p>So how can we prove a log was not touched afterward?</p><blockquote>AWS CloudTrail fingerprints every log file, then fingerprints that hour’s fingerprints, and chains each hourly summary to the one before it. Edit an old log and its fingerprint breaks, which breaks every link after it.</blockquote><p>The EU AI Act now requires automatic event recording for high-risk AI systems. A paper called <a href="https://arxiv.org/abs/2609.12582">NovaFabric</a> applies the same trick to a single agent run. Fingerprint each step, chain the fingerprints, seal the bundle with a signature and a timestamp. Edit one decision in the middle, and everything downstream stops matching, and it even saves enough to replay the whole run later.</p><p>Observability tells me what my agent did. A fingerprint chain tells me that record is still true.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9a7256d5c8fd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Progressive Disclosure in Agentic AI]]></title>
            <link>https://donebutwhy.medium.com/progressive-disclosure-in-agentic-ai-964aca55c23b?source=rss-2486e3d82207------2</link>
            <guid isPermaLink="false">https://medium.com/p/964aca55c23b</guid>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[context-engineering]]></category>
            <category><![CDATA[til]]></category>
            <dc:creator><![CDATA[Abhinav Gupta]]></dc:creator>
            <pubDate>Thu, 24 Sep 2026 21:03:38 GMT</pubDate>
            <atom:updated>2026-09-25T20:28:24.727Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Why doesn’t an AI agent just load every tool it has access to, every time?</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*QYkzC2TERCnq3j9s" /><figcaption>Photo by <a href="https://unsplash.com/@lunarts?utm_source=medium&amp;utm_medium=referral">Volodymyr Hryshchenko</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>That was my exact question when I first started wiring tools into an agentic project recently, and it turns out I wasn’t inventing anything new, I was rediscovering something that already had a name.</p><p>Each AI model has a limited context window, or a fixed amount of working memory. Every tool description that I give goes into the context and eats that space, whether or not that tool ever gets used.</p><blockquote>So, what happens when an agent has access to lots of tools, say 500 tools?</blockquote><p>Just the description of the tools, when even not using them can consume and burn lots of tokens, and agent runs out of the room before it has done anything. It feels like an AI agent stuck in the equivalent of 40 open browser tabs and a spinning fan.</p><p>What is the solution?</p><p>The fix is borrowed from UX design: Progressive Disclosure, which means that don’t show everything upfront and reveal detail only when needed.</p><p>When an agent starts, it just sees the skills name and description which consumes maybe &lt; 100 tokens each. If there are 20 skills, it will be roughly around 2k combined. Full instructions loads only when a task triggers that skill.</p><p>I am watching this happen in my own tool list right now, some tools show up only as names until I search for them, and only then does the full schema loads in.</p><p>The important point is, this isn’t just saving tokens, too much context degrades output quality, not just cost. So agents pickup what they need right now, not everything it might need eventually.</p><p>But it is not free. Every on demand load is a search step, which costs latency and opens a new failure mode, for example, an agent doesn’t know that tool exists or a lookup chain nested so deep that it breaks. Indexes drift too, for example, listing skills whose underlying files got renamed or deleted.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=964aca55c23b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Parse FixedLength String with Apache Camel Bindy]]></title>
            <link>https://donebutwhy.medium.com/parse-fixedlength-string-with-apache-camel-bindy-5677f94e1e57?source=rss-2486e3d82207------2</link>
            <guid isPermaLink="false">https://medium.com/p/5677f94e1e57</guid>
            <category><![CDATA[java]]></category>
            <category><![CDATA[apache]]></category>
            <category><![CDATA[apache-camel]]></category>
            <category><![CDATA[parse]]></category>
            <category><![CDATA[fixed-length]]></category>
            <dc:creator><![CDATA[Abhinav Gupta]]></dc:creator>
            <pubDate>Tue, 21 Apr 2020 14:17:10 GMT</pubDate>
            <atom:updated>2020-04-21T14:17:10.522Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wKW9Sg712Kj2V8-_" /><figcaption>Photo by <a href="https://unsplash.com/@anniespratt?utm_source=medium&amp;utm_medium=referral">Annie Spratt</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>This article shows an example which helps in parsing a fixed-length string with Apache Camel Bindy.</p><p><strong>What are we trying to achieve?</strong></p><p>To convert a fixed-length string to Java Object. For example:</p><pre>&quot;101 OnePlus 7Pro 0010053000 INR &quot;</pre><p>Above fixed-length string give details for a mobile. Following lengths are defined for each parameter of the mobile object.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1718715345c8506cc0466543a717da8c/href">https://medium.com/media/1718715345c8506cc0466543a717da8c/href</a></iframe><p>The expected output is:</p><pre>Mobile [id=101 , brand=OnePlus , model=7Pro , numberOfPieces=100, price=53000.0, currency=INR ]</pre><h3><strong>Code</strong></h3><ol><li>Create a class for mobile along with annotations required by Camel Bindy.</li></ol><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8e9809761c4db349eef9096e7572790c/href">https://medium.com/media/8e9809761c4db349eef9096e7572790c/href</a></iframe><p>2. Main Logic</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f0694fe0d33cb7a0c6baebd8158ae795/href">https://medium.com/media/f0694fe0d33cb7a0c6baebd8158ae795/href</a></iframe><p>3. Gradle</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/cfa833daf7bdeed5a8baf9714947c513/href">https://medium.com/media/cfa833daf7bdeed5a8baf9714947c513/href</a></iframe><p>4. Run the application. You should see the expected output.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5677f94e1e57" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Custom AWS Lambda (with SAM) in AWS Cloud9 — No weirder names]]></title>
            <link>https://donebutwhy.medium.com/custom-aws-lambda-with-sam-in-aws-cloud9-no-weirder-names-e093ec5398c2?source=rss-2486e3d82207------2</link>
            <guid isPermaLink="false">https://medium.com/p/e093ec5398c2</guid>
            <category><![CDATA[names]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[sam]]></category>
            <category><![CDATA[cloud9]]></category>
            <category><![CDATA[weird]]></category>
            <dc:creator><![CDATA[Abhinav Gupta]]></dc:creator>
            <pubDate>Fri, 03 May 2019 09:54:27 GMT</pubDate>
            <atom:updated>2019-05-03T12:03:27.343Z</atom:updated>
            <content:encoded><![CDATA[<h3>Custom AWS Lambda (with SAM)in AWS Cloud9 — No weirder names</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8SQPvwOQJi9jDG73yhP5-g.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/photos/842ofHC6MaI?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Yancy Min</a> on <a href="https://unsplash.com/search/photos/ide?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><h3>Problem</h3><p>Are you facing problems while creating Lambda Function from AWS Cloud9? Like:</p><ol><li>No hyphens are allowed in Lambda Name if you create using Cloud9.</li><li>If you create Lambda Function using Cloud9, it will assign big weird name like cloud9-xxx-xxx-xxx with custom roles to Lambda functions.</li></ol><p>Well, there is a solution to it.</p><h3>Steps</h3><ol><li>Create a Cloud9 environment and open IDE. Let&#39;s name it, <strong><em>my-dev-env</em></strong>.</li><li>In the root folder (<em>my-dev-env</em>), right click and create a new folder. Give your project name. For our understanding, let&#39;s name it <strong><em>my-lambda-function</em></strong>.</li><li>Under the Lambda project (<em>my-lambda-function</em>), create a file <strong><em>.application.json </em></strong>(with an initial dot)</li><li>Write the following content in <strong><em>.application.json</em></strong></li></ol><pre>{<br>    &quot;ApplicationName&quot;: &quot;<strong>mylambdafunction</strong>&quot;,<br>    &quot;DeploymentMethod&quot;: &quot;cloudformation&quot;,<br>    &quot;Functions&quot;: {<br>        &quot;<strong>mylambdafunction</strong>&quot;: {<br>            &quot;PhysicalId&quot;: {<br>                &quot;<strong>eu-west-1</strong>&quot;: &quot;<strong>my-lambda-function</strong>&quot;<br>            }<br>        }<br>     },<br>     &quot;StackName&quot;: &quot;cloud9-<strong>my-lambda-function</strong>&quot;<br>}</pre><p>5. Please note that at some places, I am using <strong><em>mylambdafunction</em> </strong>instead of <strong><em>my-lambda-function</em></strong> because hyphens are not allowed at those places, but don’t worry, it will create a Lambda function with hyphens.</p><p>6. Create a folder under <strong><em>my-lambda-function</em></strong>. Let’s name it <strong><em>mylambdacode</em></strong>. Write all your code in this folder. For example, in the case of Python lambda_function.py or in case of Node it is index.js. You can also write other code in the same folder. <em>Writing code is out of scope for this article so skipping it.</em></p><p>7. Create another file under <strong><em>my-lambda-function</em></strong>. Let&#39;s name it <strong><em>template.yaml</em></strong></p><pre>AWSTemplateFormatVersion: &#39;2010–09–09&#39;<br>Transform: &#39;AWS::Serverless-2016–10–31&#39;<br>Description: An AWS Serverless Specification template describing your function.<br>Resources:<br> <strong>mylambdafunction</strong>:<br>  Type: &#39;AWS::Serverless::Function&#39;<br>  Properties:<br>   FunctionName: &#39;<strong>my-lambda-function<em>&#39;</em></strong><br>   Description: &#39;&#39;<br>   Handler: <strong>mylambdacode</strong>/lambda_function.lambda_handler<br>   MemorySize: 128<br>   Role: <strong>&lt;role-arn&gt;</strong><br>   Runtime: python3.6<br>   Timeout: 15</pre><blockquote>While copying the above YAML file in Medium, I lost YAML format. So please make sure indentation is correct. Also while copying, hyphens are replaced by dash, please replace all dash by hyphens.</blockquote><p>8. Again in the above file at some places, I am using <strong><em>mylambdafunction</em> </strong>instead of <strong><em>my-lambda-function</em></strong> because hyphens are not allowed at those places.</p><blockquote>You can either pass IAM Role ARN or you can write Cloudformation template for IAM Role and other services in <strong>template.yaml</strong> <em>to associate with Lambda Function</em></blockquote><p>9. After saving all the above code, you should be able to see <strong><em>my-lambda-function</em></strong> in AWS Resources on the right, and if you expand it you should see <strong><em>mylambdafunction</em></strong>.</p><p>10. Right click on <strong><em>mylambdafunction</em></strong> in AWS Resources and choose <strong>Deploy</strong>.</p><p>11. Once deployed, check your Lambda Function in AWS Lambda Console.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e093ec5398c2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SMILE, BREATH & MOVE :)]]></title>
            <link>https://donebutwhy.medium.com/smile-breath-move-d6d3035e9a67?source=rss-2486e3d82207------2</link>
            <guid isPermaLink="false">https://medium.com/p/d6d3035e9a67</guid>
            <category><![CDATA[move]]></category>
            <category><![CDATA[stress]]></category>
            <category><![CDATA[smile]]></category>
            <category><![CDATA[life-lessons]]></category>
            <category><![CDATA[breath]]></category>
            <dc:creator><![CDATA[Abhinav Gupta]]></dc:creator>
            <pubDate>Sun, 17 Mar 2019 14:09:30 GMT</pubDate>
            <atom:updated>2019-03-17T14:09:30.853Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>SMILE, BREATH &amp; MOVE</strong> :)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MMzvngIvG3_jgvhBH1j0Yg.jpeg" /><figcaption>Source: <a href="https://unsplash.com/photos/Vtnw7QFlDAw">Unsplash</a></figcaption></figure><blockquote>A smile will not only make a day better for other people but yours too.</blockquote><h4><strong>What is the problem?</strong></h4><p>I am a guy, who can freak out for anything and born a tension. In short, I overthink. And I think, I heard this about myself from school days, college days and even in professional life. I used to ignore this. But now, I realize I take the stress, but I am improving.</p><h4><strong>What are the effects of the problem?</strong></h4><p>I observed the following points when I am stressed out:</p><ol><li>I could feel my heartbeats.</li><li>Stress is totally written on my face (observed while writing an app which involved laptop camera)</li><li>Along with this, my breathing rate was slow.</li></ol><p>So, I thought of doing something about it.</p><h4><strong>The Experiment</strong></h4><p>I started smiling. Literally a lot of smiling for no reason. <em>Creepy, right?</em> But <strong>(big creepy) smiling</strong> for at least 2 minutes continuously had a drastic change in me.</p><ol><li>It made me feel better even in the most stressed situation. I could come up with much better solutions.</li><li>I started observing and taking a <strong>deep breath</strong> for at least 2 minutes.</li><li>It is hard, but during stress, I started taking a <strong>walk</strong> for at least 10 minutes.</li></ol><h4><strong>Complaint about the experiment above</strong></h4><p>I understand smiling all the time is creepy, so I have got a solution for this:</p><ol><li>Try to find an alone place where you can do big creepy smiling.</li><li>Or try to smile a lot while you’re alone. Like in your apartment, or during shower.</li><li>You can also (soft) smile during meetings, sessions or while you work.</li></ol><h4><strong>More benefits</strong></h4><p>We have a problem and solution for a period when you’re stressed. But there can be a situation which can keep poking you for a longer duration. Or even you are not stressed at all. Even after this, you should follow the above points:</p><ol><li>It will keep you away from negativity. This will help you work on the correct path.</li><li>Even if you feel negative, let it flow. Don’t try to suppress it. Try to make them positive.</li><li>Nothing is more important than <strong>YOU</strong>. You’re smart and you can anyway figure out a solution or get over with a problem.</li></ol><h4>Conclusion</h4><p>I am 26 years old and fighting an initial stage of hypertension. There is no one in my family with this problem, so this is not hereditary. I don’t want to blame my professional life for it, because if that would have been a situation, everyone must be suffering from the same.</p><p>Above solution is working for me. So fight stress and negativity, <strong>SMILE, BREATH &amp; MOVE</strong> :D</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d6d3035e9a67" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting started with a ‘Technology’]]></title>
            <link>https://donebutwhy.medium.com/getting-started-with-a-technology-179f06cb4680?source=rss-2486e3d82207------2</link>
            <guid isPermaLink="false">https://medium.com/p/179f06cb4680</guid>
            <category><![CDATA[freecodecamp]]></category>
            <category><![CDATA[kaggle]]></category>
            <category><![CDATA[getting-started]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Abhinav Gupta]]></dc:creator>
            <pubDate>Fri, 08 Feb 2019 12:24:15 GMT</pubDate>
            <atom:updated>2019-02-08T16:44:57.646Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sjet9qSO4O8fX2-FXvxflw.jpeg" /><figcaption><a href="https://unsplash.com/photos/bJhT_8nbUA0">Source</a>: Photo by Mikito Tateisi</figcaption></figure><p>Yesterday, during snack time, I was scrolling through the Medium homepage to read some articles in the cafeteria. I came across this article <a href="https://towardsdatascience.com/use-kaggle-to-start-and-guide-your-ml-data-science-journey-f09154baba35">Use Kaggle to start (and guide) your ML/ Data Science journey — Why and How</a> which caught my eye, as this is what I am looking from last several months, to how to learn ML and Data Science. I tried to go through multiple courses on getting started with Machine Learning, but no success, there was a lot of theory and lots of Mathematics (which needs a revision). I am not denying that we should not learn Mathematics behind it, but it was killing the excitement after hearing 100s of unknown/forgotten terminologies. To start learning something new, there have to be practical projects — say a mini project (<em>which is fun</em>) instead of going through theory (<em>which is boring</em>).</p><p>Some of the main reasons I started liking Kaggle or <a href="https://www.freecodecamp.org/">freeCodeCamp</a> is because:</p><ol><li>(<em>if you have time</em>) Reading a document and practically implementing then and there is better than watching videos and solving MCQs. This kind of learning is best for self-paced learners. Also, while watching videos we may miss some point which the author is trying to focus, which we can’t miss while <strong>reading</strong> (<em>you get it, right?</em>).</li><li>The way the course is designed are for dummies like me. The course starts with a design that people don’t know anything. Thanks to the authors.</li><li>No software/IDE installation required, all the implementation/writing of code is on the web browser =&gt; Learn from anywhere.</li></ol><p>I have started with the Python course in Kaggle. I have never majorly worked with Python earlier except writing basic ETL scripts in AWS Glue for Proofs-of-Concept.</p><p>As a self-paced learner, I am loving it.</p><p>Happy Learning!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=179f06cb4680" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Elasticsearch-Logstash-Kibana (ELK) Overview — Part 2]]></title>
            <link>https://donebutwhy.medium.com/elasticsearch-logstash-kibana-elk-overview-part-2-87948e96eb14?source=rss-2486e3d82207------2</link>
            <guid isPermaLink="false">https://medium.com/p/87948e96eb14</guid>
            <category><![CDATA[elasticsearch]]></category>
            <category><![CDATA[elk]]></category>
            <category><![CDATA[technical-writing]]></category>
            <dc:creator><![CDATA[Abhinav Gupta]]></dc:creator>
            <pubDate>Sat, 17 Feb 2018 12:00:07 GMT</pubDate>
            <atom:updated>2018-02-17T12:00:07.392Z</atom:updated>
            <content:encoded><![CDATA[<p>In <a href="https://medium.com/@abhinav.gupta.2406/elasticsearch-logstash-kibana-elk-overview-part-1-cf6483f3cf63">part 1</a>, it was about E, L &amp; K (theoretically). Now it is time to play around ELK stack. We will start with basics (which means this story is for understanding, not for production usage).</p><p>I am going to use AWS EC2 to setup ELK stack. You can use local machine or create VMs in GCP or Azure.</p><h4>Play with Elasticsearch</h4><ul><li>Create a machine in AWS EC2 for Elasticsearch. Use Ubuntu for AMI. For security group, open port 9200 with source 0.0.0.0/0.</li></ul><blockquote>9200 is default port for Elasticsearch. It is best practice to not give default port in production and source open to world. Example, you can give port like 19200 and CIDR range of your VPC as source.</blockquote><ul><li>Install Java8 in this machine. Elasticsearch, Logstash and Kibana needs Java8.</li><li>Download latest Elasticsearch from <a href="https://www.elastic.co/downloads/elasticsearch">here</a>. Right click on tar.gz format and save link address</li><li>Go to Linux machine in home directory (/home/ubuntu). Wget to download Elasticsearch tar.gz file. Example,</li></ul><pre><strong>Location: /home/ubuntu</strong><br>$ wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.1.2.tar.gz</pre><ul><li>To untar above downloaded file, use tar command. Example,</li></ul><pre><strong>Location: /home/ubuntu</strong><br>$ tar -xzf elasticsearch-6.1.2.tar.gz</pre><ul><li>Change basic configuration of Elasticsearch in elasticsearch.yml</li></ul><pre><strong>Location: </strong>/home/ubuntu/elasticsearch-6.1.2/config/elasticsearch.yml</pre><p>Make following changes for <em>network.host</em> and <em>http.port</em>:</p><pre># — — — — — — — — — — — — — — — — — Network — — — — — — — — — —<br>#<br># Set the bind address to a specific IP (IPv4 or IPv6):<br>#<br><strong>network.host: 0.0.0.0</strong><br>#<br># Set a custom port for HTTP:<br>#<br><strong>http.port: 9200</strong></pre><ul><li>Boostrap configuration for Elasticsearch. Run following commands:</li></ul><pre>$ sudo sh -c &quot;echo &#39;vm.max_map_count=262144&#39; &gt;&gt; /etc/sysctl.conf&quot;<br>$ sudo sh -c &quot;echo &#39;*    soft nofile 65536&#39; &gt;&gt; /etc/security/limits.conf&quot;<br>$ sudo sh -c &quot;echo &#39;*    hard nofile 65536&#39; &gt;&gt; /etc/security/limits.conf&quot;<br>$ sudo sh -c &quot;echo &#39;*    soft memlock unlimited&#39; &gt;&gt; /etc/security/limits.conf&quot;<br>$ sudo sh -c &quot;echo &#39;*    hard memlock unlimited&#39; &gt;&gt; /etc/security/limits.conf&quot;<br>$ sudo sh -c &quot;echo &#39;root soft nofile 65536&#39; &gt;&gt; /etc/security/limits.conf&quot;<br>$ sudo sh -c &quot;echo &#39;root hard nofile 65536&#39; &gt;&gt; /etc/security/limits.conf&quot;<br>$ sudo sh -c &quot;echo &#39;session required pam_limits.so&#39; &gt;&gt; /etc/pam.d/common-session&quot;<br>$ sudo sh -c &quot;echo &#39;session required pam_limits.so&#39; &gt;&gt; /etc/pam.d/common-session-noninteractive&quot;</pre><ul><li>To make above changes in system, sign out of machine and re-login. (or reboot machine)</li><li>Start Elasticsearch</li></ul><pre><strong>Location: </strong>/home/ubuntu/elasticsearch-6.1.2<br>$ bin/elasticsearch</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=87948e96eb14" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>