<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: zaidhaan</title><link>https://news.ycombinator.com/user?id=zaidhaan</link><description>Hacker News RSS</description><docs>https://hnrss.org/</docs><generator>hnrss v2.1.1</generator><lastBuildDate>Thu, 02 Jul 2026 11:29:08 +0000</lastBuildDate><atom:link href="https://hnrss.org/user?id=zaidhaan" rel="self" type="application/rss+xml"></atom:link><item><title><![CDATA[New comment by zaidhaan in "Play snake in the URL address bar"]]></title><description><![CDATA[
<p>I am not aware of any approaches that work consistently across all major browsers. This matter is nothing new -- there's a Bugzilla report[0] from 13 years ago about this behavior that remains open.<p>Since there's no spec for global history and it's unlikely one will be introduced, the most practical solution to avoid flooding the browser history would be to debounce the changes.<p>This is the approach taken by Google Maps -- with maps being a well-known case where URL updates would clutter the history, as noted in the Bugzilla report.<p>[0] <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=753264" rel="nofollow">https://bugzilla.mozilla.org/show_bug.cgi?id=753264</a></p>
]]></description><pubDate>Mon, 29 Sep 2025 16:01:37 +0000</pubDate><link>https://news.ycombinator.com/item?id=45415409</link><dc:creator>zaidhaan</dc:creator><comments>https://news.ycombinator.com/item?id=45415409</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=45415409</guid></item><item><title><![CDATA[New comment by zaidhaan in "Play snake in the URL address bar"]]></title><description><![CDATA[
<p>One thing to note about these two APIs is that they affect how the <i>session history</i> (the back/forward stack) behaves, but the <i>global browser history</i> (entries shown in the History tab) is separate.<p>Most browsers record every change in the global history regardless of whether `history.pushState` or `history.replaceState` is used. The HTML Spec[0] is explicit about session history but does not define how global history should behave.<p>I can understand why the spec makes no mention of this -- global history is a user-facing UI feature, similar to address bar autocomplete, and it makes sense for browsers to control this behavior. That said, I'm always annoyed when I look into my history tab after visiting a page like this (e.g. Vercel Domains[1]), and see my global history flooded with entries for each individual keystroke I've made, all in the name of "user experience".<p>In this particular case, it's just a fun gimmick, but for everyday websites I'd much prefer if they just debounced the updates to the URL to avoid cluttering the global history.<p>[0]: <a href="https://html.spec.whatwg.org/#navigation-and-session-history" rel="nofollow">https://html.spec.whatwg.org/#navigation-and-session-history</a><p>[1]: <a href="https://vercel.com/domains" rel="nofollow">https://vercel.com/domains</a></p>
]]></description><pubDate>Mon, 29 Sep 2025 00:48:38 +0000</pubDate><link>https://news.ycombinator.com/item?id=45409404</link><dc:creator>zaidhaan</dc:creator><comments>https://news.ycombinator.com/item?id=45409404</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=45409404</guid></item><item><title><![CDATA[New comment by zaidhaan in "I Made an Extended Version of Vimtutor – Introducing Vimtutor Sequel"]]></title><description><![CDATA[
<p>I too share your sentiment about VS Code. Its extension API[0] is extensive and approachable, often with examples[1] for each API.<p>Just a small anecdote: At work, I found it frustrating not being able to quickly locate where views for Django API endpoints were, so I wrote a simple extension that took the output of django-extensions' show_urls, parsed it, and displayed a quick pick list of all API endpoints, upon which selecting an endpoint would open the file and reveal the exact line in which the view for it was defined.<p>Implementing this did not take much effort (in fact, TypeScript and JSDoc make everything a lot simpler as it's clear to see what each function in the API does and what arguments they accept), and now this is something I use almost every day and greatly improves my satisfaction when navigating the codebase if not my productivity in general.<p>I have tried looking into implementing something similar in Neovim and came across the API for telescope.nvim[2], but found it a lot less intuitive to use. I do think Vim/Neovim shines when it comes to text manipulation and extensions built around it, but when it comes to more complex UI that often deals a lot more with graphical elements (e.g. tree views, hover text, notifications), it's hard to beat VS Code.<p>[0]: <a href="https://code.visualstudio.com/api/references/vscode-api" rel="nofollow">https://code.visualstudio.com/api/references/vscode-api</a><p>[1]: <a href="https://github.com/microsoft/vscode-extension-samples">https://github.com/microsoft/vscode-extension-samples</a><p>[2]: <a href="https://github.com/nvim-telescope/telescope.nvim/blob/master/developers.md">https://github.com/nvim-telescope/telescope.nvim/blob/master...</a></p>
]]></description><pubDate>Sat, 03 Aug 2024 20:35:48 +0000</pubDate><link>https://news.ycombinator.com/item?id=41149061</link><dc:creator>zaidhaan</dc:creator><comments>https://news.ycombinator.com/item?id=41149061</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=41149061</guid></item><item><title><![CDATA[New comment by zaidhaan in "Ugrep – a more powerful, fast, user-friendly, compatible grep"]]></title><description><![CDATA[
<p>A little off-topic, but I'd love to see a tool similar to this that provides real-time previews for an entire shell pipeline which, most importantly, integrates into the shell. This allows for leveraging the completion system to complete command-line flags and using the line editor to navigate the pipeline.<p>In zsh, the closest thing I've gotten to this was to bind Ctrl-\ to the `accept-and-hold` zle widget, which executes what is in the current buffer while still retaining it and the cursor position. That gets me close (no more ^P^B^B^B^B for editing), but I'd much rather see the result of the pipeline in real-time rather than having to manually hit a key whenever I want to see the result.</p>
]]></description><pubDate>Sun, 31 Dec 2023 06:10:04 +0000</pubDate><link>https://news.ycombinator.com/item?id=38822203</link><dc:creator>zaidhaan</dc:creator><comments>https://news.ycombinator.com/item?id=38822203</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=38822203</guid></item><item><title><![CDATA[New comment by zaidhaan in "Rep and Ren: A new approach to CLI find, replace, and renaming"]]></title><description><![CDATA[
<p>Honestly, upon further thought I think it should be fine as long as the diffs look good.<p>I just personally would feel more confident with using perl for anything to do with multi-file substitutions. In theory, ripgrep with `--passthru` and `-r` should work.</p>
]]></description><pubDate>Sun, 31 Dec 2023 05:19:15 +0000</pubDate><link>https://news.ycombinator.com/item?id=38822009</link><dc:creator>zaidhaan</dc:creator><comments>https://news.ycombinator.com/item?id=38822009</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=38822009</guid></item><item><title><![CDATA[New comment by zaidhaan in "Rep and Ren: A new approach to CLI find, replace, and renaming"]]></title><description><![CDATA[
<p>It might be worth noting that while ripgrep doesn't support in-place file editing, it's still possible to replace matches using the `-r` flag, couple that with a tool like `sponge` from moreutils[0] and you can effectively perform search and place like such:<p><pre><code>    $ rg --passthru search -r replace file.txt | sponge file.txt
</code></pre>
And preview changes like this:<p><pre><code>    $ rg --passthru search -r replace file.txt | diff -u file.txt -
</code></pre>
Of course, this is only practical when working with a single file. Though I'd imagine if one threw in the `--files-with-matches -0` flags together and piped that into `xargs`, something similar to `rep` could be be achieved. (Not that I'd encourage anyone to do this at all)<p>[0] <a href="https://joeyh.name/code/moreutils/" rel="nofollow">https://joeyh.name/code/moreutils/</a></p>
]]></description><pubDate>Sat, 30 Dec 2023 16:48:27 +0000</pubDate><link>https://news.ycombinator.com/item?id=38816612</link><dc:creator>zaidhaan</dc:creator><comments>https://news.ycombinator.com/item?id=38816612</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=38816612</guid></item><item><title><![CDATA[Rosetta Code]]></title><description><![CDATA[
<p>Article URL: <a href="https://rosettacode.org/wiki/Rosetta_Code">https://rosettacode.org/wiki/Rosetta_Code</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=37991027">https://news.ycombinator.com/item?id=37991027</a></p>
<p>Points: 1</p>
<p># Comments: 0</p>
]]></description><pubDate>Mon, 23 Oct 2023 20:21:40 +0000</pubDate><link>https://rosettacode.org/wiki/Rosetta_Code</link><dc:creator>zaidhaan</dc:creator><comments>https://news.ycombinator.com/item?id=37991027</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=37991027</guid></item><item><title><![CDATA[New comment by zaidhaan in "Zsh tricks you may not know"]]></title><description><![CDATA[
<p>The author has also written a few other similar articles[0] that are also worth taking a look at.<p>[0] <a href="https://hn.algolia.com/?q=zsh%20tricks%20you%20may%20not%20know" rel="nofollow">https://hn.algolia.com/?q=zsh%20tricks%20you%20may%20not%20k...</a></p>
]]></description><pubDate>Tue, 09 May 2023 13:39:48 +0000</pubDate><link>https://news.ycombinator.com/item?id=35874140</link><dc:creator>zaidhaan</dc:creator><comments>https://news.ycombinator.com/item?id=35874140</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=35874140</guid></item><item><title><![CDATA[Zsh tricks you may not know]]></title><description><![CDATA[
<p>Article URL: <a href="https://leahneukirchen.org/blog/archive/2013/03/10-fresh-zsh-tricks-you-may-not-know.html">https://leahneukirchen.org/blog/archive/2013/03/10-fresh-zsh-tricks-you-may-not-know.html</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=35874136">https://news.ycombinator.com/item?id=35874136</a></p>
<p>Points: 1</p>
<p># Comments: 1</p>
]]></description><pubDate>Tue, 09 May 2023 13:39:25 +0000</pubDate><link>https://leahneukirchen.org/blog/archive/2013/03/10-fresh-zsh-tricks-you-may-not-know.html</link><dc:creator>zaidhaan</dc:creator><comments>https://news.ycombinator.com/item?id=35874136</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=35874136</guid></item><item><title><![CDATA[New comment by zaidhaan in "Learning Some Logarithms"]]></title><description><![CDATA[
<p>I'm very fond of looking at problems in a different light to come up with solutions or approximations that can be computed with ease mentally. Do any folks here have pointers to related techniques or resources?</p>
]]></description><pubDate>Wed, 03 May 2023 09:04:17 +0000</pubDate><link>https://news.ycombinator.com/item?id=35799828</link><dc:creator>zaidhaan</dc:creator><comments>https://news.ycombinator.com/item?id=35799828</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=35799828</guid></item><item><title><![CDATA[New comment by zaidhaan in "Ask HN: What's a good open-source alternative to Cloudflare?"]]></title><description><![CDATA[
<p>One thing I really appreciate about Wikimedia is the openness and quality of documentation for their infrastructure (which can be found at <a href="https://wikitech.wikimedia.org/wiki/Wikimedia_infrastructure" rel="nofollow">https://wikitech.wikimedia.org/wiki/Wikimedia_infrastructure</a>).<p>It's an excellent resource for anyone curious to learn about their systems. I wish more organizations would embrace transparency and open-source principles as much as Wikimedia does.</p>
]]></description><pubDate>Wed, 15 Feb 2023 11:06:28 +0000</pubDate><link>https://news.ycombinator.com/item?id=34802321</link><dc:creator>zaidhaan</dc:creator><comments>https://news.ycombinator.com/item?id=34802321</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=34802321</guid></item><item><title><![CDATA[New comment by zaidhaan in "Diff Models – A New Way to Edit Code"]]></title><description><![CDATA[
<p>They do note that the models "tend to do better when prompted with longer code generation tasks".<p>But yes, the choice of scales for the graph was rather peculiar.</p>
]]></description><pubDate>Sat, 28 Jan 2023 21:19:22 +0000</pubDate><link>https://news.ycombinator.com/item?id=34562009</link><dc:creator>zaidhaan</dc:creator><comments>https://news.ycombinator.com/item?id=34562009</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=34562009</guid></item><item><title><![CDATA[New comment by zaidhaan in "Show HN: GPT-3 Powered Shell"]]></title><description><![CDATA[
<p>Pretty cool! Does anyone know how open-source alternatives like GPT-J compare to ChatGPT? I've heard that it's comparable to GPT-3, but nothing close to GPT-3.5. I'd much prefer using a tool that I know won't eventually be put behind a paywall.</p>
]]></description><pubDate>Sun, 25 Dec 2022 07:45:29 +0000</pubDate><link>https://news.ycombinator.com/item?id=34125246</link><dc:creator>zaidhaan</dc:creator><comments>https://news.ycombinator.com/item?id=34125246</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=34125246</guid></item><item><title><![CDATA[New comment by zaidhaan in "Swing Ratio"]]></title><description><![CDATA[
<p>The brython appears to only have been used for SVG manipulation. I would have been more interested in seeing the audio being generated dynamically based on the swing ratio, but instead it just plays pre-rendered mp3s.</p>
]]></description><pubDate>Thu, 22 Dec 2022 05:55:48 +0000</pubDate><link>https://news.ycombinator.com/item?id=34090298</link><dc:creator>zaidhaan</dc:creator><comments>https://news.ycombinator.com/item?id=34090298</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=34090298</guid></item><item><title><![CDATA[New comment by zaidhaan in "Actually Portable Perl"]]></title><description><![CDATA[
<p>What do you typically use perl for? I thought it was most commonly used for scripting and running cgi scripts. I find bash to be much more readable and tend to use it or python for most of my scripts</p>
]]></description><pubDate>Thu, 15 Dec 2022 11:04:38 +0000</pubDate><link>https://news.ycombinator.com/item?id=33997766</link><dc:creator>zaidhaan</dc:creator><comments>https://news.ycombinator.com/item?id=33997766</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=33997766</guid></item><item><title><![CDATA[New comment by zaidhaan in "Crows are capable of recursion, scientists claim"]]></title><description><![CDATA[
<p>Thanks for the clarification. That seems fair, I suppose the title of the article gave me the impression that they were claiming such an ability would be widespread in all crows (despite the study being done on two carrion crows), when in fact it seems the intention was to state that the ability <i>can</i> exist in any crow given that they proved it exists for those two specific crows.</p>
]]></description><pubDate>Sun, 06 Nov 2022 18:57:34 +0000</pubDate><link>https://news.ycombinator.com/item?id=33495844</link><dc:creator>zaidhaan</dc:creator><comments>https://news.ycombinator.com/item?id=33495844</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=33495844</guid></item><item><title><![CDATA[New comment by zaidhaan in "Crows are capable of recursion, scientists claim"]]></title><description><![CDATA[
<p>Not sure why I got downvoted. If my assumption is wrong then I'd be really curious to hear from someone that knows better.</p>
]]></description><pubDate>Sun, 06 Nov 2022 17:24:43 +0000</pubDate><link>https://news.ycombinator.com/item?id=33494927</link><dc:creator>zaidhaan</dc:creator><comments>https://news.ycombinator.com/item?id=33494927</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=33494927</guid></item><item><title><![CDATA[New comment by zaidhaan in "Crows are capable of recursion, scientists claim"]]></title><description><![CDATA[
<p>> Adapting the protocol used in the 2020 paper, the team trained two crows to peck pairs of brackets in a center-embedded recursive sequence.<p>> Two of the three monkeys in the experiment generated recursive sequences more often than nonrecursive sequences ...<p>I'm no academic but aren't those extremely small sample sizes to make any reasonable deductions from? This looks to be even addressed in one of the papers cited...<p>> While a sample size of two is not enough to infer that any crow in the population may generate center-embedded recursive sequences, we present a "proof of existence" showing that this cognitive capacity is, in principle, within the reach of carrion crows.[0]<p>[0] <a href="https://www.science.org/doi/10.1126/sciadv.abq3356" rel="nofollow">https://www.science.org/doi/10.1126/sciadv.abq3356</a></p>
]]></description><pubDate>Sun, 06 Nov 2022 17:03:00 +0000</pubDate><link>https://news.ycombinator.com/item?id=33494648</link><dc:creator>zaidhaan</dc:creator><comments>https://news.ycombinator.com/item?id=33494648</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=33494648</guid></item><item><title><![CDATA[New comment by zaidhaan in "Katamari Hack (2011)"]]></title><description><![CDATA[
<p>To get it to work, I just copied the contents of both the scripts using the command below and ran it in the developer console.<p><pre><code>    wget -q -O - http://kathack.com/js/kh.js http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js | xclip -sel c</code></pre></p>
]]></description><pubDate>Sat, 29 Oct 2022 17:02:21 +0000</pubDate><link>https://news.ycombinator.com/item?id=33385886</link><dc:creator>zaidhaan</dc:creator><comments>https://news.ycombinator.com/item?id=33385886</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=33385886</guid></item><item><title><![CDATA[New comment by zaidhaan in "Tupper's Self-Referential Formula"]]></title><description><![CDATA[
<p>Link to the paper: <a href="https://www.dgp.toronto.edu/~mooncake/papers/SIGGRAPH2001_Tupper.pdf" rel="nofollow">https://www.dgp.toronto.edu/~mooncake/papers/SIGGRAPH2001_Tu...</a></p>
]]></description><pubDate>Fri, 14 Oct 2022 16:16:08 +0000</pubDate><link>https://news.ycombinator.com/item?id=33205492</link><dc:creator>zaidhaan</dc:creator><comments>https://news.ycombinator.com/item?id=33205492</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=33205492</guid></item></channel></rss>