clashmeifyoucan
clashmeifyoucan on Hacker News
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.
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
Stages of Denial
Itty-router – router in 30 lines of code
Moon Tricks Tesla's Full Self-Driving Feature into Thinking It's a Yellow Light
What Does Copilot Mean for Open Source?
Escaping from the abyss: Nix, the purely functional package manager
CS in Vietnam (2013)
Hammock Driven Development
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.
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...
Apple admits that iMessage for Android was killed to keep its walled garden
Vanderbilt researchers discovered how to switch off cancer growth driving gene
[1] https://internetfreedom.in/why-is-porn-being-blocked-in-indi...
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.
Linux Ported to the M1
Show HN: Custom link shortener using Cloudflare Workers and KV
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...
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.