HNHacker News
TopNewBestAskShowJobs

clashmeifyoucan

530 karma · joined June 24, 2019

aadibajpai dot com
submissionscomments
clashmeifyoucan··on Acme Weather
I enjoyed the part about factoring in unpredictability. One of my peeves with weather apps had been that they do switch the forecast on the fly if it is inaccurate, and I have joked before that what we need is a derivative weather app accountability app that tells you how often a weather app corrects itself. So I'm excited to see if Acme makes a meaningful difference!
clashmeifyoucan··on Ask HN: What are some cool but obscure data structures you know about?
a textbook example of an algorithm that works very well with union-find is the kruskal's algorithm to find the minimum weight spanning tree given a graph. Using union-find improves the time complexity of the algorithm from O(V²) to O(ElogV).

This happens because kruskal's algorithm essentially selects the cheapest edge not already included in our spanning tree that won't cause a cycle. So union-find is able to speed up this potential cycle check which would otherwise be naively quadratic.

clashmeifyoucan··on How I clean my glasses
Yeah, but the fabric of my shirt seemed noticeably worse at cleaning my glasses, so I stopped using that completely. Having a microfiber on hand at all times is very helpful for that
clashmeifyoucan··on How I clean my glasses
My opticians have always given me a microfiber whenever I got a set of glasses made, and last time I went I asked for a spare as well. Now I have the habit of having one in my pocket at all times so I don't have to devolve back to using the bottom of my tshirt.
clashmeifyoucan··on Maccy is an open source lightweight and searchable clipboard manager for macOS
I swear by Paste as well, since coming from Windows, it mimics the Windows clipboard ui and hence was easy to get used to. I do wish that macOS at some point makes a native clipboard manager.
clashmeifyoucan··on Psst: Fast Spotify client with native GUI, without Electron, built in Rust
this, I wanted to make a little utility for getting lyrics for whatever song is currently playing on spotify[1] and ran into the issue for getting the song name without using the API since that's just inconvenient for the end user. The most popular such project does go that way though.[2]

I ended up writing a small library that does that locally cross-platform by using the metadata from the app.[3] The approach is probably not as robust as the API, but much faster and works well.

[1] https://github.com/SwagLyrics/SwagLyrics-For-Spotify

[2] https://github.com/johnwmillr/LyricsGenius

[3] https://github.com/SwagLyrics/SwSpotify

clashmeifyoucan··on Escaping from the abyss: Nix, the purely functional package manager
it appears the author has changed the link, so this is deadlinked now.
clashmeifyoucan··on GitHub Copilot
one thing that caught my eye was the convert comments to code feature. If you can use your voice to dictate comments then combined with copilot it might just be possible to write code without touching the keyboard at all!

of course I guess copilot won't be perfectly accurate right now or even maybe for a long time but it is interesting to imagine a future where the programmer can think and get code written without lifting a finger.

clashmeifyoucan··on Zero-Knowledge Proofs
Another nice resource for understanding zk snarks that I found easily digestible was this paper that was shared on hn a few months ago[0]. https://arxiv.org/abs/1906.07221

[0]: https://news.ycombinator.com/item?id=24815649

clashmeifyoucan··on GitHub – nushell/nushell: A new type of shell
not OP but the two features of fish that stood out for me so much that I make it my default shell on remote servers are

1) the autocomplete suggestion as you type a command [1]

2) scrolling thru commands after partially writing one only shows entries that match the written text

3) knowing if a command will work before pressing enter -- saves from a lot of gotchas.

all of these read like features nice to have but not essential, but when you're using something every day, it's worth it :)

[1]: https://fishshell.com/docs/current/tutorial.html#autosuggest...

clashmeifyoucan··on Show HN: I built an online interactive course that helps you learn Vim faster
Ah, I guess should've tried before saying. Just excited there's a way.
clashmeifyoucan··on India asks WhatsApp to withdraw new privacy policy over ‘grave concerns’
Incidentally, it's weird to me how we lack internet laws in a lot of aspects yet have strong IT laws when it comes to blocking and censoring websites when needed (eg. porn¹)

[1] https://internetfreedom.in/why-is-porn-being-blocked-in-indi...

clashmeifyoucan··on Show HN: I built an online interactive course that helps you learn Vim faster
thanks for making this! The undo from insert mode¹ one sold it for me :)

[1] https://vimtricks.com/p/undo-from-insert-mode/

clashmeifyoucan··on Show HN: I built an online interactive course that helps you learn Vim faster
As an aside, I love the vim keybinds with IntelliJ combo, vim makes it so easy to navigate and perform operations, eg. the one I use most being dt<some char> to delete until a char.

Never can seem to get vim selections and deletions right though, because it deletes the character after the cursor as well so the mouse comes clutch there.

clashmeifyoucan··on Ask HN: Is Signal Down?
Yes, https://news.ycombinator.com/item?id=25792396
clashmeifyoucan··on Stanford pulls plug on the return of freshmen and sophomores to campus
fwiw even before the football game, Notre Dame temporarily shifted to online for half a month after an outbreak.¹

Regular testing is great, but it needs to be coupled with effective contact tracing to curb spread.

[1] https://www.nytimes.com/2020/08/18/us/notre-dame-coronavirus...

clashmeifyoucan··on Stanford pulls plug on the return of freshmen and sophomores to campus
So I attend Vanderbilt, who invited everyone to attend in person in the Fall and now will do the same in Spring.

The university is doing 1), as well as 2) to an extent by cancelling spring break.

Interestingly, they haven't opted to do pre-arrival testing giving the following justification:

> Based on the lessons we learned last fall, we expect students’ highest risk activities prior to returning to campus are likely to be traveling to campus and engaging in social activities before classes begin, so efforts will focus on arrival testing and a shelter in place protocol.

We will however have biweekly covid testing throughout the sem, which should be quite effective I think. For Fall, it was only weekly, which meant someone who got infected right after their test would not know until a week later.

clashmeifyoucan··on Slack is down
Seems like Notion has a service interruption going on as well: https://status.notion.so/

Potentially related?

clashmeifyoucan··on Slack is down
> We’re still investigating the ongoing connectivity issues with Slack. There's no additional information to share just yet, but we’ll follow up in 30 minutes. Thanks for bearing with us.

Seems to be working intermittently, however.

clashmeifyoucan··on Things I Learnt in 2020
Same, I did not expect that at all. Funnily enough, I haven't heard it used much outside North India so I didn't think it was as popular.

Other replies say it's a common phrase in Maharashtra too, TIL.

clashmeifyoucan··on Ask HN: What low-code “dashboarding“ SaaS would you recommend in 2021?
I love the value proposition of full stack w/ nothing but Python here. Backend has been cool enough with Python but for anything serious in the frontend, js and friends is almost always a necessity. Bridging that gap seems pretty lucrative, especially with your python → js compiler.¹

[1] https://github.com/skulpt/skulpt

clashmeifyoucan··on Microsoft designing its own ARM-based chips for servers and Surface PCs
maybe the url should be the actual source: https://www.bloomberg.com/news/articles/2020-12-18/microsoft...
clashmeifyoucan··on Jetbrains founders turn billionaires without VC help
Agreed, and the education pack is so good. Perpetually free as long as you're a student has been a lifesaver—honestly can't live without CLion and PyCharm at this point.
clashmeifyoucan··on Improving DNS Privacy with Oblivious DoH
I'm wondering how they still get good performance with a proxy server in between, the plots seem quite close to each other (maybe because logarithmic?).

Also, not sure how useful the Tor comparison is, since Tor does 3 hops as opposed to their 1 so it would be a shame if it doesn't beat that.

clashmeifyoucan··on Show HN: Detect Website Visits from a University
Hey! Last year during college applications I wondered if there was a way to modify content or know when a university looks at my website. Sounded crazy but it would mean you could do something as blatant as "I love Harvard University" except it changes to Stanford when someone from there visits. While that is probably not a good idea, it still felt intellectually stimulating to have the ability.

I had thought I'd need to do complex location related tricks so didn't really try, but realized a much simpler way to do it a few days ago and threw together a quick API¹ on a cloudflare worker and a proof of concept to go with it that has worked perfectly so far. The worker code is directly on there and not on github, but it just uses isp and org filtering to determine university or not.

Got hit by a DoS attack yesterday, ironic considering Cloudflare, that exhausted the 100,000 req/day limit but it's back up now.²

I don't know what I'd really use it for, but I'm glad it exists.

[1] https://uni.aadibajpai.workers.dev

[2] https://i.imgur.com/UzCwfdp.jpg

clashmeifyoucan··on Diem – A rebrand of Facebook’s Libra
fwiw, Stellar integrates directly with Keybase.¹ I remember they did an airdrop when they launched and deposited ~100$ worth of XLM into every Keybase users' wallet.

Not sure how interesting Keybase is now, but it does allow sending money to other Keybase users directly through chat.²

[1] https://keybase.io/blog/keybase-stellar-launch

[2] https://book.keybase.io/wallet#chat

clashmeifyoucan··on Ask HN: Alternatives to HN for non-Hacker News?
I used to love Quora but then it became absolutely terrible, so I started using Medium more. Then Medium went ahead and essentially made itself pay to play, so here we are.

I miss the times when both of those platforms were good.

clashmeifyoucan··on Python Pip 20.3 Released with new resolver
Nice, that somewhat reminds me of urllib3 versus requests. Used to use the former but then requests is/was so much simpler for most stuff.
clashmeifyoucan··on I Made a Self-Quoting Tweet
Interesting, I wondered if the same can be done on hn. Likely easier since the IDs appear to be sequential. But one can simply edit their post to point to the URL too if they wanted, so it defeats the fun of the exercise.
clashmeifyoucan··on Python Pip 20.3 Released with new resolver
Agreed. I was in the boat of if it's working, don't change it and just using pip and setuptools over the years.

Switched to poetry for one of my libraries as a test a few weeks ago, noticeably more painless!

One other thing I liked about it is the community, I distinctly remember digging into the setuptools source code once to find something that was undocumented. With poetry, that was one Discord message away.

Page 1 of 4Next →