Better HN
topnewbestaskshowjobs
Log inSign up

Denvercoder9

5,570 karma · joined Oct 5, 2013 (13y ago) · 1,210 submissions

Submissions

comment 2y ago · link · parent

> It would not have happened in any modern language.

It would. pip for example installs from tarballs uploaded to PyPi, not from a git repository.

comment 2y ago · link · parent

Deployments are irrelevant for this conversation; libraries get to run code there anyway. For code execution during installation to be an attack vector, you'd need an environment where npm install gets run with _more_ permissions than npm start (or the equivalent for other package managers). I can't really think of an environment where that is the case. Usually the build and package manager is more restricted than the application, not the other way around.

comment 2y ago · link · parent

I'm not convinced of the additional danger in letting packages run code during installation. You install them because you want to use them, so the code they ship will get run anyway. Are there really common environments where the final product only gets run with less permissions than the package manager?

comment 2y ago · link · parent

It generally isn't really, which is why the powers that be have decided to abolish the leap seconds (at the latest in 2035). There's a notice period to adapt the few systems that do care.

comment 2y ago · link · parent

I'm aware of that, but I'd like to know what specifically violates the GPL in the posed scenario. Your very link states that it's okay to distribute combinations of GPL-licensed code with code licensed under another, GPL-compatible license (which MIT is).

comment 2y ago · link · parent

Can anyone explain why the answer to the second question (https://fosstodon.org/@drewdevault/112156847020462949) is "no"? The MIT license grants all the rights that the GPL requires to be granted for derivative works (it is GPL-compatible). Is the problem here just that they don't distribute or offer the source code of the GPL-licensed library along with the pre-built binaries?

comment 2y ago · link · parent

They can't relicense contributions, but they can add new GPL-licensed contributions. That makes the whole work a derivative work in the sense of the GPL, which means the requirements of the GPL apply to all of it. Effectively this is the same as if all the contributions were relicensed under the GPL. The only significant difference is that you can still cut out a part of the code that hasn't been touched by a GPL-licensed contribution and use it under the terms of the MIT license. None of this violates the MIT license of the original contributions, as it allows you to do basically anything, including sublicensing, with the code, provided that you retain the copyright notice.

comment 2y ago · link · parent

If everyone on your platform does that, you no longer have a platform though.

Banning/outlawing the majority of your users, no matter how annoying or costly they are, is generally not a winning move for a platform that lives off its users.

comment 2y ago · link · parent

Dupe of: https://news.ycombinator.com/item?id=39692020

comment 2y ago · link · parent

This file seems to be encoded as Windows-1252, but is served as UTF-8; hence all the tofu. Browsers all used to have an option override the encoding, but unfortunately those are gone now. Firefox still has the ability to "Repair Text Encoding" in the View menu (you've to press Alt to show the old-fashioned menu bar), which seems to do a decent job on this page.

comment 2y ago · link · parent

> Printing as service doesn't make any sense unless someone was printing and mailing the output to me. That would actually be worthwhile for a lot of people.

This is called a print shop, and has existed for basically as long as printers have. You might not like the prices they charge for a single print + mailing, though.

comment 2y ago · link · parent

> satellites are just fantastically expensive

This has become less and less the case over the last decade or so. There are more or less mass-produced satellite buses now, and a SpaceX rideshare puts 150kg into orbit for less than a million. If you go small, you can probably procure, launch and operate a satellite for less than $1000 per day of usage.

comment 2y ago · link · parent

It's not really an issue, it's just that the assumption that removing a commit from the history actually deletes it is not correct. That holds for both Git and GitHub, and probably most other Git hosts.

Also in general, don't assume that you can remove anything from the internet once it has been published.

comment 2y ago · link · parent

Neither of those sources back up your claim that paper (or a USB drive, for that matter) is required in certain cases. The court case cited in your second link even lays out the conditions under which a website can be considered to satisfy the requirements.

comment 2y ago · link · parent

The big issue on GitHub is that it doesn't work across forks: I can't create a PR for B that targets A, which both live in my fork, in the parent repository.

The other problem is that without extra tooling it doesn't give a good user experience. It's too easy for B and C to accidentally be merged into A, unless you mark them as WIP, but that requires manually unmarking them when A is ready. There's also no UI to easily navigate across the stack of PRs.

comment 2y ago · link · parent

I don't necessarily create the first PR because I want feedback. The design could've been discussed beforehand, and the PR is just to get a second set of eyes on the details, run the CI checks and to fulfill the review requirements. Nothing that comes out of that would have implications for the follow-on PRs, so why shouldn't I continue working on them?

comment 2y ago · link · parent

Maybe not in the world, but in my country (the Netherlands) in 2022 (last available data) there were 473 million packages send to 8.3 million households, which works out to a bit more than one package per household per week.

comment 2y ago · link · parent

No, it's a solution for reviews being an asynchronous process. Even if I get a review within an hour or two, I should be able to continue further work in that time.

comment 2y ago · link · parent

> For some things, you must use paper

Do you have a source backing that up?

Aside from the local tax collector, which insists on snailmailing me a copy of all correspondence even though they also sent everything to me digitally, I can't even remember the last time I received any documents on paper, and I'm in the EU.

comment 2y ago · link · parent

Small PRs are great, but GitHub's workflow sucks if you have dependencies between PRs.

Say I introduce some new abstraction and then convert two components to use it. I would want to create 3 small PRs, one to introduce the abstraction, and then 2 that convert one component each. That's especially useful if the changes to the components need approval from their respective owners. I want to be able to do all this in one go without being blocked by waiting for reviews.

The problem is that GitHub doesn't support this workflow, as it always uses the same branch for the base and the target. I would want to be able to create the first PR against the trunk branch, and then have the subsequent PRs show only the diff against that PR, but merge into trunk (of course you shouldn't be able to merge them until the first PR is merged). Currently, you have to either put everything in a single PR (creating huge, hard to review PRs), or wait until the first PR is merged before you can open the subsequent PRs.

comment 2y ago · link · parent

Regulation 2018/1971 limits the price for outgoing calls within the EEA to 0.19 ct/minute (excl. VAT). Interestingly enough, there doesn't seem to be a limit on incoming calls, though most providers don't charge for incoming calls.

comment 2y ago · link · parent

Most likely real. In LDAP, the "uid" attribute is commonly used to store the Unix account name. The numeric Unix uid/gid are stored in the "uidNumber"/"gidNumber" attributes.

comment 2y ago · link · parent

> Those 10 times safer than humans have no actual meaning in practice

I'd say that accidents or injuries per mile driven has quite a lot actual meaning. I don't know if they are at 10x compared to human drivers on those stats yet, but when they are, I'd say it's a reasonable take to say that they're 10x safer.

comment 2y ago · link · parent

Public transport solves an overlapping but distinct problem area, and it's not always a feasible solution. Think of e.g. cargo, disabled people that require door-to-door transport, or areas and times where operating public transport isn't viable.

comment 2y ago · link · parent

> Like if we wanted to we can do it pretty quickly using primitive methods.

It seems that even if we don't want it, we can't help but do it anyway.

comment 2y ago · link · parent

There's other FTDI chips than the FT232, the FT230 can be found for <$2.

comment 2y ago · link · parent

Very little of that economic activity was directly linked to the Shuttle flying. If we had moved the Shuttle through the fabrication, preparation and refurbishment cycles without actually launching it, the economic impact would be more or less the same. That's not true of airline flights, which generate most of their economic value by actually moving people and/or stuff.

comment 2y ago · link · parent

> They put letters in the middle of numbers

If you prefer, you could write an IPv6 address in dotted-decimal notation just like an IPv4 address, or an IPv4 in hexadecimal notation like an IPv6 address. It's just 128 (IPv6) or 32 (IPv4) bits of data after all, the representation is completely independent of the protocol.

For example, you can also reach HN through its IPv4 address by writing http://3520653007/ or http://0xD1D8E6CF/.

comment 2y ago · link · parent

> The only justification for human spaceflight at all is that humans can fix things that a robot can't yet.

This was pre-Challenger, back then we also flew with humans because (we believed) they were more versatile and cheaper than robots.

comment 2y ago · link · parent

This information is pretty widely available, e.g. on Wikipedia [1], no need to go off memory. Flight control is done by an FPGA, the main CPU is a Snapdragon 801 running Linux, and it uses Zigbee to communicate with the rover.

[1] https://en.wikipedia.org/wiki/Ingenuity_(helicopter)#Avionic...

1
789
41