<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Hacker News: chaitanya</title><link>https://news.ycombinator.com/user?id=chaitanya</link><description>Hacker News RSS</description><docs>https://hnrss.org/</docs><generator>hnrss v2.1.1</generator><lastBuildDate>Sat, 13 Jun 2026 16:18:51 +0000</lastBuildDate><atom:link href="https://hnrss.org/user?id=chaitanya" rel="self" type="application/rss+xml"></atom:link><item><title><![CDATA[Input Metrics vs. Output Metrics]]></title><description><![CDATA[
<p>Article URL: <a href="https://thenorth.io/input-metrics-vs-output-metrics/">https://thenorth.io/input-metrics-vs-output-metrics/</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=36384260">https://news.ycombinator.com/item?id=36384260</a></p>
<p>Points: 2</p>
<p># Comments: 0</p>
]]></description><pubDate>Sun, 18 Jun 2023 20:43:57 +0000</pubDate><link>https://thenorth.io/input-metrics-vs-output-metrics/</link><dc:creator>chaitanya</dc:creator><comments>https://news.ycombinator.com/item?id=36384260</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=36384260</guid></item><item><title><![CDATA[naive-date: a tiny JavaScript lib for Date like objects that aren’t timestamps]]></title><description><![CDATA[
<p>Article URL: <a href="https://github.com/chaitanyagupta/naive-date">https://github.com/chaitanyagupta/naive-date</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=33142519">https://news.ycombinator.com/item?id=33142519</a></p>
<p>Points: 1</p>
<p># Comments: 0</p>
]]></description><pubDate>Sun, 09 Oct 2022 16:06:55 +0000</pubDate><link>https://github.com/chaitanyagupta/naive-date</link><dc:creator>chaitanya</dc:creator><comments>https://news.ycombinator.com/item?id=33142519</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=33142519</guid></item><item><title><![CDATA[New comment by chaitanya in "Day.js – Fast 2kB alternative to Moment.js with the same modern API"]]></title><description><![CDATA[
<p>You can’t, because JavaScript date objects are just timestamps.<p>Here’s what I wrote on this (along with a small library to handle this problem): <a href="https://lisper.in/javascript-date" rel="nofollow">https://lisper.in/javascript-date</a></p>
]]></description><pubDate>Sun, 09 Oct 2022 15:49:22 +0000</pubDate><link>https://news.ycombinator.com/item?id=33142337</link><dc:creator>chaitanya</dc:creator><comments>https://news.ycombinator.com/item?id=33142337</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=33142337</guid></item><item><title><![CDATA[The many variations of the return statement in Kotlin]]></title><description><![CDATA[
<p>Article URL: <a href="https://twitter.com/chaitanya_gupta/status/1481846078203129858">https://twitter.com/chaitanya_gupta/status/1481846078203129858</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=30993789">https://news.ycombinator.com/item?id=30993789</a></p>
<p>Points: 2</p>
<p># Comments: 1</p>
]]></description><pubDate>Mon, 11 Apr 2022 19:44:32 +0000</pubDate><link>https://twitter.com/chaitanya_gupta/status/1481846078203129858</link><dc:creator>chaitanya</dc:creator><comments>https://news.ycombinator.com/item?id=30993789</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=30993789</guid></item><item><title><![CDATA[New comment by chaitanya in "Ask HN: What is your Git commit/push flow?"]]></title><description><![CDATA[
<p>You can have the best of both worlds -- "commit early, commit often", and "nice clean commit histories" -- with git, and it is easier than most people think.<p>- So you start work on a new branch, and reach a checkpoint. Create a new commit with "git commit".<p>- Continue working, and when you reach the next checkpoint, create another commit. But this time, use "git commit --amend". Contrary to what the flag says, this doesn't modify the previous commit, instead it modifies your commit history and replaces the last commit with a new one[1]. So instead of having two new commits in your branch's history, you only have one.<p>- Repeat the process until you have something worth pushing to the remote.<p>- Once you've pushed to remote, remember to not make any further modifications to your git history[2] i.e. going forward, create a new commit and only then run "git commit --amend".<p>Now, there's an obvious question here: if "git commit --amend" keeps replacing the last commit with a new one, what happens when you mess things up and want to revert to NOT the last checkpoint, but some checkpoint before that?<p>The trick here that git has up its sleeve is called "git reflog". You see, while "git commit --amend" replaces the last commit in your branch's history with a new one, the older commit is not actually gone, its still there. And you can see all of them with "git reflog". Basically "git reflog" returns every commit at which the local HEAD (i.e. the commit checked out in your working directory) has been. So none of the commits that you replaced with --amend are actually lost, and you can find them all in the reflog.<p>Restoring to an older checkpoint becomes as easy as running "git reset --hard <previous-commit-id>", or if you want to play safe, "git checkout -b <new-branch-name> <previous-commit-id>".<p>Hope this helps!<p>Notes:<p>1. By design, a commit, or in fact most objects in git cannot be modified. They are immutable.<p>2. Basically you can play with git history as long as it is private to you and not shared with others. But the moment you push it to a remote you share with others it's no longer private and you must not modify that history anymore. Read Linus's note on keeping a clean git history: <a href="https://www.mail-archive.com/dri-devel@lists.sourceforge.net/msg39091.html" rel="nofollow">https://www.mail-archive.com/dri-devel@lists.sourceforge.net...</a></p>
]]></description><pubDate>Thu, 17 Mar 2022 17:58:27 +0000</pubDate><link>https://news.ycombinator.com/item?id=30714048</link><dc:creator>chaitanya</dc:creator><comments>https://news.ycombinator.com/item?id=30714048</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=30714048</guid></item><item><title><![CDATA[India Accidentally Fired Missile into Pakistan]]></title><description><![CDATA[
<p>Article URL: <a href="https://www.ndtv.com/india-news/defence-ministry-on-missile-landing-in-pak-technical-malfunction-led-to-accidental-firing-incident-deeply-regrettable-2817638">https://www.ndtv.com/india-news/defence-ministry-on-missile-landing-in-pak-technical-malfunction-led-to-accidental-firing-incident-deeply-regrettable-2817638</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=30641180">https://news.ycombinator.com/item?id=30641180</a></p>
<p>Points: 3</p>
<p># Comments: 0</p>
]]></description><pubDate>Fri, 11 Mar 2022 15:39:47 +0000</pubDate><link>https://www.ndtv.com/india-news/defence-ministry-on-missile-landing-in-pak-technical-malfunction-led-to-accidental-firing-incident-deeply-regrettable-2817638</link><dc:creator>chaitanya</dc:creator><comments>https://news.ycombinator.com/item?id=30641180</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=30641180</guid></item><item><title><![CDATA[vfork() is still evil]]></title><description><![CDATA[
<p>Article URL: <a href="https://lisper.in/vfork-is-still-evil">https://lisper.in/vfork-is-still-evil</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=30518780">https://news.ycombinator.com/item?id=30518780</a></p>
<p>Points: 5</p>
<p># Comments: 0</p>
]]></description><pubDate>Tue, 01 Mar 2022 19:24:32 +0000</pubDate><link>https://lisper.in/vfork-is-still-evil</link><dc:creator>chaitanya</dc:creator><comments>https://news.ycombinator.com/item?id=30518780</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=30518780</guid></item><item><title><![CDATA[JavaScript's Date is just a timestamp]]></title><description><![CDATA[
<p>Article URL: <a href="https://lisper.in/javascript-date">https://lisper.in/javascript-date</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=30171523">https://news.ycombinator.com/item?id=30171523</a></p>
<p>Points: 4</p>
<p># Comments: 0</p>
]]></description><pubDate>Tue, 01 Feb 2022 23:52:56 +0000</pubDate><link>https://lisper.in/javascript-date</link><dc:creator>chaitanya</dc:creator><comments>https://news.ycombinator.com/item?id=30171523</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=30171523</guid></item><item><title><![CDATA[Fork-Exec for Python Programmers]]></title><description><![CDATA[
<p>Article URL: <a href="https://lisper.in/fork-exec-python">https://lisper.in/fork-exec-python</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=27555285">https://news.ycombinator.com/item?id=27555285</a></p>
<p>Points: 1</p>
<p># Comments: 0</p>
]]></description><pubDate>Fri, 18 Jun 2021 21:34:56 +0000</pubDate><link>https://lisper.in/fork-exec-python</link><dc:creator>chaitanya</dc:creator><comments>https://news.ycombinator.com/item?id=27555285</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=27555285</guid></item><item><title><![CDATA[New comment by chaitanya in "Ask HN: I bought Voltaren at the chemist, now Google shows me ads for it. Why?"]]></title><description><![CDATA[
<p>Only plausible explanation I can think of is that perhaps you or your girlfriend looked something up about drying a wet memory stick.</p>
]]></description><pubDate>Sun, 18 Apr 2021 16:18:31 +0000</pubDate><link>https://news.ycombinator.com/item?id=26853749</link><dc:creator>chaitanya</dc:creator><comments>https://news.ycombinator.com/item?id=26853749</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=26853749</guid></item><item><title><![CDATA[New comment by chaitanya in "Show HN: Quickly find the cheapest EC2 instance that you need across regions"]]></title><description><![CDATA[
<p>>  This would benefit from a "select all/none" option for the regions.<p>Yeah, that would help. I'll add this.<p>> Also, adding spot pricing would be SUPER helpful!<p>Unfortunately spot pricing is not available in the bulk pricing API, which is what I am using here. But there does seem to be a separate API to get the spot pricing history - I will try to use it.</p>
]]></description><pubDate>Wed, 07 Apr 2021 22:36:13 +0000</pubDate><link>https://news.ycombinator.com/item?id=26732390</link><dc:creator>chaitanya</dc:creator><comments>https://news.ycombinator.com/item?id=26732390</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=26732390</guid></item><item><title><![CDATA[Show HN: Quickly find the cheapest EC2 instance that you need across regions]]></title><description><![CDATA[
<p>Article URL: <a href="https://ec2-price-finder.lisper.in/">https://ec2-price-finder.lisper.in/</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=26731761">https://news.ycombinator.com/item?id=26731761</a></p>
<p>Points: 4</p>
<p># Comments: 2</p>
]]></description><pubDate>Wed, 07 Apr 2021 21:44:05 +0000</pubDate><link>https://ec2-price-finder.lisper.in/</link><dc:creator>chaitanya</dc:creator><comments>https://news.ycombinator.com/item?id=26731761</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=26731761</guid></item><item><title><![CDATA[New comment by chaitanya in "An F-117 pilot and the officer who shot him down meet, 15 years later  (2013)"]]></title><description><![CDATA[
<p>Growing up in the pre-Internet era Reader’s Digest was such a good resource due to stories like these. Was always excited to see a new magazine arrive every month.<p>I wonder if it’s any good now. Haven’t looked at it in years.</p>
]]></description><pubDate>Mon, 08 Feb 2021 04:30:00 +0000</pubDate><link>https://news.ycombinator.com/item?id=26060802</link><dc:creator>chaitanya</dc:creator><comments>https://news.ycombinator.com/item?id=26060802</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=26060802</guid></item><item><title><![CDATA[New comment by chaitanya in "Run More Stuff in Docker"]]></title><description><![CDATA[
<p>If you are on a Mac or Windows, this approach only works for utilities that can run on Linux. If you need to run a native Mac program for example, docker won't be able to run that.<p>Perhaps Nix might help here, but I've never used it, so can't say for sure.</p>
]]></description><pubDate>Sun, 27 Dec 2020 00:33:59 +0000</pubDate><link>https://news.ycombinator.com/item?id=25547683</link><dc:creator>chaitanya</dc:creator><comments>https://news.ycombinator.com/item?id=25547683</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=25547683</guid></item><item><title><![CDATA[New comment by chaitanya in "Roughly 2000 blogs running on a $7/month dyno"]]></title><description><![CDATA[
<p>If the upstream returns an error over HTTP, the CDN won’t hide it.</p>
]]></description><pubDate>Wed, 23 Sep 2020 13:45:46 +0000</pubDate><link>https://news.ycombinator.com/item?id=24566974</link><dc:creator>chaitanya</dc:creator><comments>https://news.ycombinator.com/item?id=24566974</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=24566974</guid></item><item><title><![CDATA[Indexes in PostgreSQL]]></title><description><![CDATA[
<p>Article URL: <a href="https://www.postgresql.org/docs/current/indexes.html">https://www.postgresql.org/docs/current/indexes.html</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=22871191">https://news.ycombinator.com/item?id=22871191</a></p>
<p>Points: 1</p>
<p># Comments: 0</p>
]]></description><pubDate>Tue, 14 Apr 2020 20:44:10 +0000</pubDate><link>https://www.postgresql.org/docs/current/indexes.html</link><dc:creator>chaitanya</dc:creator><comments>https://news.ycombinator.com/item?id=22871191</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=22871191</guid></item><item><title><![CDATA[New comment by chaitanya in "Restarts in Common Lisp"]]></title><description><![CDATA[
<p>Many years ago I wrote about restarts in CL using the example of a CSV parser: <a href="https://lisper.in/restarts" rel="nofollow">https://lisper.in/restarts</a><p>Fun fact: the restarts based CSV parser was based on some real world work me and a colleague had done for an online travel portal. I wrote about it here: <a href="https://www.reddit.com/r/lisp/comments/7k85sf/a_tutorial_on_conditions_and_restarts/drceozm/" rel="nofollow">https://www.reddit.com/r/lisp/comments/7k85sf/a_tutorial_on_...</a></p>
]]></description><pubDate>Wed, 01 Apr 2020 17:57:21 +0000</pubDate><link>https://news.ycombinator.com/item?id=22751605</link><dc:creator>chaitanya</dc:creator><comments>https://news.ycombinator.com/item?id=22751605</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=22751605</guid></item><item><title><![CDATA[Webapp Security Exercises for Beginners]]></title><description><![CDATA[
<p>Article URL: <a href="https://gist.github.com/chaitanyagupta/0a43471099285d901dc1d03ab2314ec4">https://gist.github.com/chaitanyagupta/0a43471099285d901dc1d03ab2314ec4</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=21981511">https://news.ycombinator.com/item?id=21981511</a></p>
<p>Points: 1</p>
<p># Comments: 0</p>
]]></description><pubDate>Tue, 07 Jan 2020 16:34:45 +0000</pubDate><link>https://gist.github.com/chaitanyagupta/0a43471099285d901dc1d03ab2314ec4</link><dc:creator>chaitanya</dc:creator><comments>https://news.ycombinator.com/item?id=21981511</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=21981511</guid></item><item><title><![CDATA[Kashmiris Are Disappearing from WhatsApp]]></title><description><![CDATA[
<p>Article URL: <a href="https://www.buzzfeednews.com/pranavdixit/hundreds-of-kashmiris-are-disappearing-from-their-whatsapp">https://www.buzzfeednews.com/pranavdixit/hundreds-of-kashmiris-are-disappearing-from-their-whatsapp</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=21710960">https://news.ycombinator.com/item?id=21710960</a></p>
<p>Points: 2</p>
<p># Comments: 0</p>
]]></description><pubDate>Thu, 05 Dec 2019 09:13:42 +0000</pubDate><link>https://www.buzzfeednews.com/pranavdixit/hundreds-of-kashmiris-are-disappearing-from-their-whatsapp</link><dc:creator>chaitanya</dc:creator><comments>https://news.ycombinator.com/item?id=21710960</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=21710960</guid></item><item><title><![CDATA[New comment by chaitanya in "Why does 1.1.1.1 not resolve archive.is?"]]></title><description><![CDATA[
<p>Does 1.1.1.1 send ECS info to Cloudflare’s own nameservers? More generally, does 1.1.1.1 in any way treat Cloudflare’s own nameservers in a special way and send it information that it doesn’t send to others?<p>If the answer to these questions is no, then Cloudflare’s reasons for blocking ECS (ie privacy) carry weight. Otherwise no.</p>
]]></description><pubDate>Fri, 04 Oct 2019 12:56:13 +0000</pubDate><link>https://news.ycombinator.com/item?id=21157135</link><dc:creator>chaitanya</dc:creator><comments>https://news.ycombinator.com/item?id=21157135</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=21157135</guid></item></channel></rss>