Readit News logoReadit News
amne commented on Prime Number Grid   susam.net/primegrid.html... · Posted by u/todsacerdoti
rmrfchik · 11 days ago
Nice patterns are reveals when cols is prime.
amne · 10 days ago
I find the patterns from cols % 30 == 0 very interesting (30,60,90,120, etc.) .. just straight vertical lines.

And if you go up or down by one (119 or 121) they appear to "rotate" left or right.

Very cool viz tool.

amne commented on Show HN: Unregistry – “docker push” directly to servers without a registry   github.com/psviderski/unr... · Posted by u/psviderski
amne · 2 months ago
Takes a look at pipeline that builds image in gitlab, pushes to artifactory, triggers deployment that pulls from artifactory and pushes to AWS ECR, then updates deployment template in EKS which pulls from ECR to node and boots pod container.

I need this in my life.

amne commented on Terpstra Keyboard   terpstrakeyboard.com/web-... · Posted by u/xeonmc
aniviacat · 2 months ago
It's HTTP only, maybe that's why?
amne · 2 months ago
The article link is missing the scheme so the browser will default to https. I get an error about the CNAME mismatching the Host on https for example.
amne commented on If the moon were only 1 pixel: A tediously accurate solar system model (2014)   joshworth.com/dev/pixelsp... · Posted by u/sdoering
raxxorraxor · 3 months ago
Not out of reach if you get very close to light speed. Time would advance very slowly for you, so counterintuitively it is possible to travel 5000ly in your life time.

Although for everyone else at least 5000 years will pass, so better say goodbye to family and friend.

Hm, not sure if that is really less depressing...

Also light isn't slow. A photon instantly travels to the end of time and yet it still takes a few minutes from the surface of the sun to us. Or about 100000 years from the center of the sun to its surface.

amne · 3 months ago
How would that feel as a traveler? Does all motion slow down to a crawl, all sub-atomic particles just "freeze" and essentially your thoughts and body aging too? So it would seem like you got there in an instant?

For sure you're not just sitting there watching people get born, live and die in second and shrugging your shoulders.

amne commented on Tell HN: Help restore the tax deduction for software dev in the US (Section 174)    · Posted by u/dang
ndriscoll · 3 months ago
It's not really "weaponizing the tax code because of an ideological aversion"; it's more:

* It makes sense to tax capital assets as such.

* If companies do R&D and think the results are valuable enough to be kept secret, then obviously they're an asset.

* Depreciation is because real-world assets actually require ongoing maintenance or become worthless over time, but information does not.

* Finite-term IP grants (e.g. copyrights/patents) do become worthless over time, so a depreciation schedule makes sense.

* Trade secrets never expire, so it doesn't make sense to depreciate them. If they never get out, they remain an asset forever. So their development shouldn't be deductible. If they do get out, the company could release all of their (now presumably useless) info on it then for the deduction from their development.

The point about finding trade secrets to be dubious is that it seems natural to tax them as an everlasting capital asset (since that's what they are), and I don't see why we wouldn't do that since society doesn't eventually get the benefit of that knowledge, so incentivizing it runs counter to the purpose of IP law. Why would a knowledge economy provide a tax deduction for developing knowledge we don't eventually get?

amne · 3 months ago
Cue LLM-driven generation of garbage research to release as "useless" so I can deduct actual research.
amne commented on Why I no longer have an old-school cert on my HTTPS site   rachelbythebay.com/w/2025... · Posted by u/mcbain
motorest · 3 months ago
> I feel like not understanding why JSON won out is being intentionally obtuse. JSON can easily be hand written, edited, and read for most data.

You are going way out of your way to try to come up with ways to rationalize why JSON was a success. The ugly truth is far simpler than what you're trying to sell: it was valid JavaScript. JavaScript WebApps could parse JSON with a call to eval(). No deserialization madness like XML, no need to import a parser. Just fetch a file, pass it to eval(), and you're done.

amne · 3 months ago
it's in the name after all: [j]ava[s]cript [o]bject [n]otation
amne commented on I ruined my vacation by reverse engineering WSC   blog.es3n1n.eu/posts/how-... · Posted by u/todsacerdoti
keepamovin · 4 months ago
Correct! The browser is now the key vector because it's the most promiscuous and lascivious-for-code-and-data software on most devices.

Browser-zero days are why I factored out a way to distribute "web RPA agent creation" on any device, with no download - into its own product layer for browser-isolation. It's a legitimate defense layer but main barriers to adoption are operating friction, even tho it makes the task of hackers who want to compromise your network with browser 0-days much harder.

Because of that the RBI aspect is not as popular as ways its being used where you need a really locked down browser, with policies for preventing upload/download, even copy and paste, etc - for DLP (data loss prevention), for regulated enterprises.

Even so I think the potential applications of this tech layer are just starting.

amne · 4 months ago
Just the other day I went to a website to flash a new firmware on a zigbee dongle. Straight from a chrome tab. wild!

Then it hit me: the only thing keeping a rogue website from sweeping your entire life is a browser's permissions popup.

amne commented on Show HN: Memex is a Claude Code alternative built on Rust+Tauri for vibe coding   memex.tech... · Posted by u/davidvgilmore
amne · 4 months ago
so "vibe coding" is the term to use? I have to say for a me, as a non-native english user, it sounds .. weird. Can't take it serious. I think of Kai Lentit's videos everytime I see it.
amne commented on Attacking My Landlord's Boiler   blog.videah.net/attacking... · Posted by u/ericvolp12
sz4kerto · 4 months ago
We've moved to an new apartment (house) and we had to do a full renovation. It doesn't have modern insulation and I calculated that for the time being the ROI on insulation isn't worth it. It's a multi-floor semi-detached house and I wanted the best comfort and the most economical heating possible.

In particular: stable and individually adjustable temperatures for bedrooms and living rooms; underfloor heating in some rooms (bedrooms), radiator-based heating in some others (living room), and combined UFH+radiators in some others (where UFH might not be enough during extreme colds).

I thought I can just pay someone some money and they'll set up the controls for me. It must be a simple exercise, right?

I could not have been more wrong. After spending a few hours of understanding the setups that "experts" have recommended, I figured out edge cases where they would be either wasteful or uncomfortable (meaning: unnecessary and inavoidable temperature overshoots or undershoots, etc.). I had many-many rounds with Honeywell, Tado, Siemens, etc. and every single one of them had _major_ issues.

The renovation got a bit stuck because of this, but the plumbing was ready so I wanted to see whether the pluming and pumps are working, at least. So I connected the pumps and valves to "smart plugs", i.e. Zigbee-controlled plugs, so that I can see that they turn on. They did, which got me thinking...

Right now I have $20 Zigbee temp sensors sprinkled across the house, $30 smart plugs and relays driving valves, pumps and the boiler, and Home Assistant is controlling the whole thing. Everything works perfectly and I could implement some features that simply no system would have done out of the box, for example in rooms where there's combined UFH and radiators I can drive both heating systems when the target temperature is far from the desired (so that the room heats up quickly) but as the room temp is getting closer to the target, the radiators are turned off so that UFH dominates heating (more comfortable and more energy efficient than radiators). In rooms with radiators, temp is +- 0.4 C within target, in rooms with UFH, it's +-0.1C within target.

amne · 4 months ago
a bit off-topic: Are you running a single boiler and if so, how are you mixing UFH with radiators given there's a ~20C difference between the recommended temps for the two?

My knowledge is that for UFH you run at temps between 40-50

C and radiators run at 60-70*C.
amne commented on War story: the hardest bug I ever debugged   clientserver.dev/p/war-st... · Posted by u/jakevoytko
latexr · 5 months ago
You don’t call Math.abs() on its own, you need to give it a number. Regardless if it is positive or negative, it should always return a positive (that’s what an absolute value is). The issue here is that it was returning a negative number when given a negative value, which is wrong:

> We rerun the repro. We look at the logged value. Math.abs() is returning negative values for negative inputs. We reload and run it again. Math.abs() is returning negative values for negative inputs. We reload and run it again. Math.abs() is returning negative values for negative inputs.

Regardless, that is beside the point. I was not arguing either way if this was a deterministic bug or not, I was pointing out that the author’s conclusion does not follow from the premise. Even if the bug had turned out to be nondeterministic, they had not done the necessary steps to confidently make that assertion. There is a chasm of difference between “this bug is nondeterministic” and “I haven’t yet determined the conditions that reproduce this bug”.

amne · 5 months ago
With the appropiate butterfly wing flap everything is deterministic.

https://xkcd.com/378/

u/amne

KarmaCake day388March 29, 2021View Original