HNHacker News
TopNewBestAskShowJobs

arcastroe

678 karma · joined September 20, 2016

submissionscomments
arcastroe··on Left-Pad (2024)
The package's original implementation[1] also seems like it would have resulted in O(n^2) operation rather than desired O(n).

[1] https://en.wikipedia.org/wiki/Npm_left-pad_incident

arcastroe··on Self-hosting your own media considered harmful according to YouTube
> Watchlistarr: syncs your Plex Watchlist with Overseerr.

Overseerr already supports syncing your plex watchlist out of the box.

arcastroe··on Show HN: Kan.bn – An open-source alterative to Trello
https://en.wikipedia.org/wiki/Scope_creep
arcastroe··on Lossless video compression using Bloom filters
Well yes.. I agree.

But my comment was addressing parent's point that pure blue and pure red are currently considered close together since they share the same greyscale values.

arcastroe··on Lossless video compression using Bloom filters
It'd be better to convert to HSL, and compute the distance from there.

HSL-distance preserves color similarity with higher fidelity than converting both pixels to greyscale as done in the shared link

arcastroe··on The WinRAR approach
I kinda like sublime's approach. It only asks when I repeatedly spam ctrl+s to save the file. But never on the first save. Only when I spam it five or so times.

I like to think the developer specifically targetted this "redundant consecutive save" behavior knowing many users do this.

But it's probably more like "every X saves, only after Y time period since last nag", which only coincidentally triggers for me when I spam the save shortcut

arcastroe··on The Windows Subsystem for Linux is now open source
I've considered it, but there are two Windows features I need that sound like they'd require some time investment to set up correctly on linux.

1. I use UWF on windows (Education Edition). All disk writes to C:/ are ephemeral. On every single reboot, all changes are discarded and my pc is back to the exact same state as when I first set it up. I do keep a separate partition for documents that need persistence.

2. Miracast for screen mirroring.

arcastroe··on The Windows Subsystem for Linux is now open source
Thats odd. I have none of these problems. Sleep doesnt interrupt the VM. And I regularly use the git CLI through WSL on projects living within windows user directories. Both work fine.
arcastroe··on Silicon Valley Braces for Chaos
https://archive.is/Oj99S
arcastroe··on When flat rate movers won't answer your calls
Things with sentimental value have so because they trigger memories. I find a photo of the object triggers memories just the same. Snap a photo, place it in some memories album, and donate. It's much easier to hoard digital photos than physical objects
arcastroe··on Is 1 Prime, and Does It Matter?
"2 is the only even prime number. Therefore, it's the oddest of them all!"
arcastroe··on Fibonacci Hashing: The Optimization That the World Forgot
> So it is uniquely hard to approximate with a rational number.

Fun fact. The best rational approximations for golden ratio are sequential fibonnaci numbers. E.g. fibonacci(n+1)/fibonacci(n)

or for a more concrete example, 21/13

arcastroe··on Meta got caught gaming AI benchmarks
https://archive.is/Ec6V1
arcastroe··on It would take three years to install a speed bump. So I bought my own
Especially since the only camera facing the street is the author's own! The city would have to ask the author if his camera happened to pick up the "culprit" responsible for the rogue speed bump
arcastroe··on Circuit breaker triggered in Japan for stock futures trading
> Reallocate portfolios if that makes sense

Yes. This is one of the reasons 80 stocks / 20 bonds is a common strategy. The rebalancing "forces" you to buy low and sell high.

When stocks dip, your portfolio might become unbalanced at 70/30, so you reallocate funds to buy stock bringing you back to 80/20. Conversely, if stock market soars, you might get to 90/10, and selling stocks would bring you back to 80/20. Performing this balancing is, in effect, "buying the dip"

arcastroe··on Trump's Tariffs Wipe Out over $6T on Wall Street in Epic Two-Day Rout
do these friends participate in the market?
arcastroe··on ØNTHR The World’s First Perfect Guaranteed $0.00 Stablecoin
I would've enjoyed seeing February 30th
arcastroe··on Karatsuba Matrix Multiplication and Its Efficient Hardware Implementations
> this performs about the same as using Karatsuba multiplication on the entries of the matrices (instead of on the matrices themselves).

If it offers improvements in both, why wouldn't one do it in both?

arcastroe··on A 2FA app that tells you when you get `314159` (2024)
1 - (999899/999999)^100 = 0.00995

The math checks out.

arcastroe··on I outsourced my memory to an AI pin and all I got was fanfiction
I did not understand the reference. But here's an AI generated explanation.

-----------

Daniel refusing the king's food is a Bible story found in the Book of Daniel, specifically in Daniel 1. This event is a reference to Daniel's commitment to his faith and his adherence to God's laws, even in the face of adversity. Daniel and his friends were taken captive by King Nebuchadnezzar of Babylon and were to be trained for three years before entering the king's service. As part of this training, they were to be fed food and wine from the king's table, but Daniel refused to eat this food because it was likely offered to idols or prepared in a way that did not comply with Jewish dietary laws.

Daniel's refusal was not just about the food's physical properties but was also a symbolic act of maintaining his religious and moral independence from the king. This act demonstrated his unwavering faith and commitment to God, showing that he would not compromise his beliefs even when faced with potential consequences.

Daniel requested to eat vegetables and drink water instead, and after a ten-day test, he and his friends appeared healthier than those who ate the king's food. This outcome further demonstrated God's favor and Daniel's wisdom and integrity.

In summary, Daniel refusing the king's food is a significant biblical story that highlights faithfulness and the importance of adhering to one's beliefs in challenging circumstances.

arcastroe··on Show HN: Bayleaf – Building a low-profile wireless split keyboard
woah, ty! I've been using the Dygma Defy [1], but I might switch to this!

[1] https://dygma.com/products/dygma-defy

arcastroe··on When imperfect systems are good: Bluesky's lossy timelines
I found it odd to base the loss-factor on the number of people you follow, rather than a truer indication of timeline-update-frequency. What if I follow 4k accounts, but each of those accounts only posts once a decade? My timeline would be become unnecessarily lossy.
arcastroe··on UnitedHealth Hires Defamation Firm over Social Media Posts
You can at least control who your posts are visible to on some social media platforms. Not so here. Your comments are public and after the edit window closes, permanent.
arcastroe··on The young, inexperienced engineers aiding DOGE
What does it mean for it to be illegal? If they cast faithless votes, would those votes stand, but then they open themselves up for prosecution? or would the votes not stand at all.
arcastroe··on Test if a number is even
+1. I wholeheartedly agree. That "lazy way" looks all too familiar haha.
arcastroe··on Test if a number is even
No. Math considers -7 = 3 modulo 5. it's a ring that repeats every 5 units. -7 + 5 + 5 = 3.

Think of a clock which is a ring of size 12. In a clock, going backwards 15 hours (-15) is the same as going backwards 3 hours (-3) which is the same as going forwards 9 hours.

-15 = -3 = 9 modulo 12

arcastroe··on Physicists who want to ditch dark energy
> Oh please. Do you really think the people who won the nobel prize for this discovery have a grade school level understanding of speed?

Of course not. My comment is a quibble on the one sentence explanation. You seem to agree with me it's insufficient. Thank you for the additional resource.

arcastroe··on Physicists who want to ditch dark energy
From the article,

> discovering that the expansion of the universe was accelerating. They came to this conclusion by observing faraway exploding stars. These distant supernovae showed that the cosmos was getting bigger faster because the farther away the supernovae, the faster it appeared to be moving away from us.

This explanation always bothers me. After a long time, things that move faster WILL be farther away than things that move slower. Thats just the definition of speed. It does not, by itself, demonstrate acceleration.

arcastroe··on Pathfinding to a moving target in evolving terrain
The way I remember it: A* can find shortest path between any two given points; Djikstras can precompute the shortest path between a single point and all other points; And Floyd-Warshall can precompute the shortest path between all possible pairs of points.

The author starts with Djikstras and updates the precomputed path-map every frame that either the players location changes or an obstacle is added.

Maybe some more performance can be squeezed out. If the player's location changes more frequently than obstacles are added, it may be worthwhile to precompute the all-pairs-shortest-path (floyd-warshall) which would instead only need to be updated on obstacle additions. The precomputed path map would no longer need to be updated on player location changes.

A similar trick can probably be used to efficiently update the precomputed APSP path-map in these cases, since only a single obstacle is added at a time.

Though if obstacles are added fairly frequently relative to player location changes, this is probably not worthwhile.

arcastroe··on Researcher Turns Insecure License Plate Cameras into Open Source Surveillance
I always assumed that traffic cameras were open to the public by design. Why should only the police have access to them if the cameras are public-facing, funded by the public, for the public?

Seattle has a nice page where you can visualize camera locations on a map and access live feeds:

https://web.seattle.gov/Travelers/

I think this is great. There is no expectation of privacy in public. If we're going to have cameras at all, I'd rather they be open to everyone, instead of being gatekept by a select few.

← PreviousPage 2 of 11Next →