Better HN
topnewbestaskshowjobs
Log inSign up

programmarchy

1,892 karma · joined Apr 15, 2012 (14y ago) · 1,207 submissions

Submissions

comment 4y ago · link · parent

This is a very interesting approach. I've been wanting a way to filter YouTube videos on my Apple TV so that only certain channels are whitelisted (my kids like to yell "butt" and "poop" at Siri which is... problematic). Seems like a custom root certificate would make this possible.

comment 4y ago · link · parent

In my view, hooks are more about managing state dependencies, rather than functional programming, per se. So they're more useful for simplifying methods like componentDidUpdate, rather than componentDidMount. When you need to detect changes by comparing prevProps to this.props or prevState to this.state, the logic can quickly get really ugly. Instead you can just put the relevant prop or state you want to monitor in the dependency list of a hook, and it will be triggered whenever that dependency list changes.

comment 4y ago · link · parent

There’s something more weird about tying healthcare to employment. In fact, it’s largely an accident of history:

> In 1943 the War Labor Board, which had one year earlier introduced wage and price controls, ruled that contributions to insurance and pension funds did not count as wages. In a war economy with labor shortages, employer contributions for employee health benefits became a means of maneuvering around wage controls.

https://www.ncbi.nlm.nih.gov/books/NBK235989/

comment 4y ago · link · parent

Yeah this makes the most sense. There’s probably enough local compute power to run these filters on the client. But that’s a huge power shift and the change is likely more political than technological.

comment 4y ago · link · parent

Seems like this is only going to help attract less intelligent women, because the smart ones will know their offspring won’t be getting genetics for height with someone who is artificially tall. Full speed ahead toward idiocracy.

comment 4y ago · link · parent

Sweet, maybe I can finally render volumetric clouds in Cycles now!

comment 4y ago · link · parent

Right, I was referring to the wholesale banning operation of the service, not the source code. Sure, you can print the source code on a t-shirt or something like DeCSS, but that's less relevant.

comment 4y ago · link · parent

I watched the committee hearing, and there didn't seem to be much partisan politicking going on. The primary focus was protecting the privacy of users, which impressed me. However, at one point Lindsey Graham mentioned he and Elizabeth Warren were in agreement enough to start fleshing out some kind of social media operator licensing regime, which sounds terrible.

comment 4y ago · link · parent

Maybe Jack saw a shitstorm on the horizon, and Agrawal was naive or willing enough to become the patsy?

comment 4y ago · link · parent

If Tornado Cash could be banned, couldn't the same logic be used to ban Tor?

The former obscures financial transactions, and the latter obscures communications, but there's a similar principle in play.

comment 4y ago · link · parent

If you wait until the layoffs happen, you'll be competing in a much larger pool.

comment 4y ago · link · parent

Thinking that it has to be located somewhere in space might just be an artifact of a classical mechanics model of the universe, with atoms bumping into each other like billiard balls in a long causal chain all the way back to the Big Bang. But reality doesn’t appear to actually work that way, at least according to modern physics.

Not all things seem to necessarily have a location in space. For example, where is the color red, or where is “red-ness”? I’m not talking about light waves radiating at a certain frequency but rather the experience of red we have in our minds. Plato gets at this concept with his ideal forms, which transcend space and time, yet can be “materialized” within space and time as matter and observed by consciousness. In other words, there is no difference between “red-ness” and the experience of “red-ness” we have in our minds, rather they are one in the same. Yes, there may be interference with our perception of the ideal form e.g. color blindness, or other impairments analogous to a radio with a damaged antenna. However it’s still plausible that there is a transcendent form that exists independent of space and time, yet which is accessible within space time via the organs of consciousness we experience as matter.

Anyway, just some musings, but I have found that ancient metaphysics are not incompatible with modern physics. It gets interesting because if you accept the metaphysics about “red-ness”, then you can extend this line of thought more broadly to concepts like “good-ness”, and what is the good, and how we could possibly know this.

comment 4y ago · link · parent

The discussion of how Big Science presents a macro level threat has been ongoing since at least WWII. It's no secret that the way things are funded have introduced bias or in some cases completely undermined the scientific method. There's the opportunity cost of Big Science displacing smaller, more independent researchers, the replication crisis, the publish or perish culture that has developed, etc. It's because of the concerns raised by the scientific community that the paltry checks and balances we do have even exist. So it's totally off base to write off this history of concern as non-existent, or pedantry.

It's also wrong to say a single dissenter can't bury a paper. It depends on the field, but in some fields there will only be one referee, and even when there are multiple referees, if the dissenter is a "leading authority" then they can absolutely bury the paper single-handedly.

comment 4y ago · link · parent

> not a monolith > I highly doubt any of them

Do you see the problem with your reasoning here?

If you say scientists are not a monolith, then you don’t get to make sweeping generalizations about them.

comment 4y ago · link · parent

It’s not irrelevant because a herd behaves in a monolithic way.

comment 4y ago · link · parent

Isn’t the whole point of Cloudflare to stop DDoS, though?

Cloudflare may be able to handle a botnet that can generate 250GBps of traffic, but a few hundred problematic forum posts coupled with some Twitter outrage totally jams them up. (Purposely leaving aside the qualitative details here.)

This shows that Cloudflare is completely defenseless against a certain variety of meatspace attacks.

comment 4y ago · link · parent

Hardly. Howard Stern gets views by shocking his audience. He's raunchy and sadistic, either asking people about their personal sex lives, or bringing on a disabled person in order to humiliate them. He's not pursuing any intellectual aims. There's no comparing what Stern and Rogan are doing.

comment 4y ago · link · parent

Funny, had the same happen to me. Thought maybe it was a coincidence, but getting back into my cardio routine eliminated the lingering fatigue I had after Covid, too.

comment 4y ago · link · parent

Cool project. You seem like a fun and interesting person. I genuinely mean that!

comment 4y ago · link · parent

Try extracting tabular data from a PDF! With XML it's trivial, but for PDF you need highly specialized software packages to do this. One of the best, pdfplumber, is largely based [1] on a Master's thesis titled Algorithmic Extraction of Data in Tables in PDF Documents [2].

[1] https://github.com/jsvine/pdfplumber/blob/stable/pdfplumber/...

[2] https://trepo.tuni.fi/bitstream/handle/123456789/21520/Nurmi...

comment 4y ago · link · parent

This is a really interesting format. Researching a historical figure then producing a fictional interview with them is a very engaging way to communicate their ideas in a modern context.

comment 4y ago · link · parent

The slashing can only occur if the validator can be proven to break certain rules e.g. double voting. The reports are evaluated by the network.

comment 4y ago · link · parent

There are staking pools, just like there were mining pools.

comment 4y ago · link · parent

I actually use Stitch so I don’t have to host orchestration, which is how I came to know about Singer in the first place.

It’s true that Stitch got acquired by Talend, but Singer seems independent enough. I don’t understand why Stitch would “abandon” Singer. They’re a sponsor, and seems like they have an incentive to keep that ball rolling. Their bread and butter seems to be hosting orchestration, so more taps means more customers for them. There’s other stakeholders in Singer, too, like Meltano, and all the self-hosters.

The GitHub activity seems robust to me, but I don’t really have any in depth knowledge about the Singer community. Saying it’s “dying” doesn’t seem accurate, though.

comment 4y ago · link · parent

Would you be able to leverage singer taps / targets?

https://www.singer.io

comment 4y ago · link · parent

For server and system code, Swift is mostly competing with Rust and Go, as people consider fast, compiled, type safe languages. If you look at Docker downloads, Swift has 10M, Rust has 50M, and Go has 1B+.

Compared to Go, yeah, it's nowhere close. But compared to Rust, I wouldn't quite call it a bust, and could see teams choosing it for the easier learning curve.

So yeah, it's a relatively small niche at this point, but I also think it's fair to say the effort to make Swift a contender on the server has been more than just iOS developers being forced to make web apps.

comment 4y ago · link · parent

You might be surprised. Check out Vapor [1] and Soto [2], which are built on Apple's SwiftNIO (non-blocking I/O) [3]. It's actually a very nice ecosystem. All the tools are in place to build web servers, Lambdas, etc.

[1] https://vapor.codes

[2] https://github.com/soto-project/soto

[3] https://github.com/apple/swift-nio

comment 4y ago · link · parent

You’re on to something. I did a stint at a .NET shop and C# is still my favorite language. Dabbled with a Xamarin project a few years ago, and although it seemed like it would be fragile, it actually “just worked”.
1
101112
41