Better HN
topnewbestaskshowjobs
Log inSign up

usrbinbash

4,687 karma · joined Dec 4, 2021 (4y ago) · 1,693 submissions

Submissions

comment 3y ago · link · parent

> If there was a new continent somehow popped up we wouldn't be fine just sending some drones there or taking pictures of it with satellites.

True.

You know what else is true? We could breathe on that new continent, there would be enough nitrogen compounds to grow food, anyone who wanted to go back home could eventually do so, our colonists bodies would not deteriorate due to the low gravity, and if our colonists there got into trouble, we could send help before they all died horribly.

comment 3y ago · link · parent

> We need to go there so we can study it properly.

The only thing that would accomplish, compared to sending robotic probes, is wasted payload capacity that could otherwise transport scientific instruments.

comment 3y ago · link · parent

Cameras.

Which btw. can see better, further, and in a lot more spectra than the human eyes. Oh, and they can record what they see, and send it back for thousands of pairs of human eyes to examine back home on earth, where the users of said eyes are not constantly in danger of dying to explosive decompression, being frozen to death, or killed by space radiation or microabrasive silica dust.

And the best part? I don't have to waste tons of payload capacity on food, water, air and toilet paper, just to keep the cameras running!

comment 3y ago · link · parent

The robotic probe is backed up by thousands of scientists, analyzing the data it sends back home, while the man with the shovel is unlikely to even survive long enough on Mars (if he even gets there alive) to discover anything the robot missed.

If I send a probe, I can pack the entire payload with scientific instruments. If I send a man with a shovel, I have to pack food, water, air, habitats, spacesuits, and other tidbits instead, just to keep the man with the shovel alive (for a time).

comment 3y ago · link · parent

> We should be there already.

Why? What purpose does a human presence on Mars have? Exploratory activity can, is and should be done by robotic drones. Mars has zero resources Earth doesn't already have in abundance, is inimical to almost every lifeform on earth and confers no advantage as a launch platform for furture space exploration over the moon or a space station.

> We're focusing everything on the easier planet that might not be livable after one year of bad politics.

Fun fact: Even after a full-scale thermonuclear war, Earth would still be a more liveable planet than Mars.

So what policy decisions could possibly make Mars attractive as a living space, or a "backup planet"?

comment 3y ago · link · parent

The problem isn't "mobile first" design.

The problem is "mobile only" design.

PCs and Laptops exist. They have wide, high resolution screens and precision pointing devices. All relevant technologies support changing the rendering based on the display available to the browser. It's not that hard.

The problem starts when designers ignore these facts, and instead pop giant buttons, zero navbars, hamburger menus, and thin columns with low information density into the Webbrowser running on my PC with a 4k screen and a 120$ laser mouse.

https://idlewords.com/talks/website_obesity.htm#sprawl

comment 3y ago · link · parent

> But this seems to require access to a different oauth token already

The article explans quite well how that works. The attacker makes an outwardly legitimate service, which is registered at the OAuth authentication provider, and waits for people to access it. All it has to do, is store the tokens on its backend, and try them, with the same username, against other services, using the same auth provider.

comment 3y ago · link · parent

> always available and securely secret forever

Yeah...about that...

https://password-managers.bestreviews.net/faq/which-password...

And while I am certainly not qualified to fly an aircraft, I do feel that I am quite qualified when it comes to software engineering and systems administration.

So yeah, this is something I rather do myself.

comment 3y ago · link · parent

> And having the cookies wouldn't have helped me debug it.

But having that cookie, or any other data from my dev environment, after I manage to recreate the reported bug internally, has often helped me debug problems.

The point here is, debug tools that delete information are less useful. Worst case, they are useless.

Yes, such tools can be problematic. With great power comes great responsability. But I rather have powerful tools with a big 'ol warning sign, than useless tools.

comment 3y ago · link · parent

> semver and version pinning is a problem not a solution

Almost every practice in software development is a compromise that wouldn't be necessary if some decision in the past were different.

I think I agreed with you somewhere in this thread, that version-names (flask1, flask2, ...) are a better solution than major versions.

However, `flask` as an import name isn't going to go away. That is simply a reality and we have to work with it, because alot of projects rely on this. The same is true for tens of thousands of important software packages all over the OSS landscape.

So we can argue all day and then some over "what if"s...it won't change the status quo that exists, and in that state, semver is a good compromise that solves way more problems than it introduces.

comment 3y ago · link · parent

> I'd be nervous every day of losing data

And I am, same as I am worried everyday about losing the keys to my apartment. I am speaking as a person who once only got them back by sheer luck (and a young mans honesty), after they fell out of a hole in my trousers pocket.

However, I would be even more nervous if the security of these keys were up to someone other than me. For example a random employee of a big company, whos access to the system I have no say in, who I never met, and whos actions I can neither see nor regulate.

Bottom line is: I prefer worrying about myself failing, than someone else. Because I can do something about the former.

comment 3y ago · link · parent

I thank you for your advice and no, it's not bitwarden. I have losely described my setup elsewhere in this thread.

comment 3y ago · link · parent

A random attack that just happens to breach specifically my home server, that uses custom made service scripts to enable syncing to my devices, isn't reachable from the internet, and is airgapped from my DMZ?

Which then somehow manages to exfiltrate and decrypt data that is still encrypted with a public key, the private key to which is not stored on that system, and itself encrypted symetrically?

Yeah, that doesn't sound like a "random attack" to me, that sounds like a subplot in a Keanu Reeves Movie...

comment 3y ago · link · parent

An attacker would first have to find my system, specifically, and then breach it. In terms of the most common method of breaching systems, social engineering, it is me, a single software engineer with a very solid background as a sysadmin, compared to a staff of many hundreds or thousands of employees at a large, visible company.

So simply in terms of attack surface, exposure and discoverability, doing that is a REALLY tall order. Many animals on this world survive not because they are huge and strong, but because they are tiny, fast and next to invisible.

Economics play a huge role in attacking systems. Targeted attacks are time consuming, costly, and if the end result is one guys passwords, usually not worth it. People carrying out such attacks want to use a dragnet, not a fishing rope.

> If you use open-source and a critical bug is found

...then many many many large organisations have the same problems as I do, only while being a lot more exposed and visible than me. Because the software I use relies on the same standardized, battle tested, vetted and re-vetted for years technologies as many commercial products.

comment 3y ago · link · parent

Never used it, so can't say anything about it. I prefer `pass`. It certainly fits my bill, and is easy for me to audit myself.

comment 3y ago · link · parent

> 1password passwords are encrypted with a key only you have.

So is my password store.

> I HIGHLY doubt that you can keep your homeserver more secure than 1password can its servers.

I also highly doubt that my trousers pockets are harder than the 1.5cm thick hardened-steel-doors of the storage lockers at the local train station, or that my pyhsical constitution is superior to those of the trained security guards they have there.

And yet, guess where the keys to my apartment are kept. Hint: Not at the train station.

comment 3y ago · link · parent

https://www.passwordstore.org/

comment 3y ago · link · parent

How about: People shouldn't send around HAR files that contain sensitive information, or at least make sure the information contained is no longer sensitive (eg. by flushing active sessions)?

HAR files are a debug tool. If I have to debug a problem with a webservice, I require them to contain all the information that was sent/received by the browser. The browser arbitrarily deciding to delete part of that information, would make it worthless to me as a debug tool.

comment 3y ago · link · parent

And people keep asking me why I use a self-hosted, self synced, password manager instead of using one of those super-easy, super-helpful online services to do it for me.

For the same reason why I don't throw my apartment keys into the local train stations safebox.

comment 3y ago · link · parent

> Being more hesitant about breaking changes as a industry

... would lead to even more outrage, because we tried that in the past. And the result were "rotting libraries", that became unmaintainable, incomprehensible, and riddled with hard to track and harder to fix bugs, because they had to drag along code that was often more than a decade old, kicking and screaming, just so libadbandonedsincebronzeage.so wouldn't have to issue an update.

So no, we should have breaking changes.

We should keep libraries vital and get rid of old code. We shouldn't drag along stuff just because we can. We have established procedures to deal with this, and with good reason.

comment 3y ago · link · parent

> Forcing a breaking change

No one is forcing a breaking change on anyone.

    a) PIP usually retains past versions
    b) A python package can specify it's dependencies, including their version, as hard requirements
    c) virtualenvs exist
If a packages maintainer doesn't want to change his code to support some changes in some_dependency-v4.2, he can specify that the package requires some_dependency-v2.1 or whatever other existing version he is happy with.

If he doesn't do that, and instead specifies only `some_dependency`, that signals to the package management software that the package works with the `@latest` version of that dependency. The onus to make sure that is, and continues to be, the case in code, is on the maintainer of the package, not the maintainer of the dependency, period.

And no, this is not "disrespectful". This doesn't go against any sense of community in FOSS. This is established practice in software development and package maintenance.

comment 3y ago · link · parent

No.

That would break every single module that is compliant with flask 3.x and imports it with `import flask`. This simply isn't justified by the "benefit" of some old packages not having to change a single line of code.

Yes, maybe in hindsight it would have been beneficial to put the major version of some packages (flask is far from the only one) directly into the package name, as a workaround for pythons inability to deal with multiple versions of the same module under the same name in one environment. But python works as it does, `import flask` is how god-knows how many projects use it, so that's how the show runs, period.

If some package requires a certain version, it can pin that version in its `setup.py`. If a project requires a certain version it can pin that version in it's `requirements.txt`. If an environment requires a certain version, the admin can create a virtualenv.

comment 3y ago · link · parent

> how are they going to do this while making sure programs are still correct? So much existing multithreaded Python code is written in an unsafe manner.

a) It isn't a language maintainers job to make sure unsafe code written by someone else in that language runs correctly.

b) The GIL doesn't prevent data races. It keeps the internal running of the interpreter sane, that's it's only job. There is a reason the threading library has a plethora of lock-classes

comment 3y ago · link · parent

The version number, and especially the major version, IS part of the name, so they did exactly that.

comment 3y ago · link · parent

> But if Flask forces every package

The reverse would be that every package that depends on flask forces it to make all future changes dependent on whether or not they break someones code. Which obviously isn't a sustainable model for software development.

> I would argue that is not very respectful of all those other package maintainers.

Define what is "respectful" then?

The flask team announces changes. They deprecate things. They use deprecation warnings. They use major versions correctly. They honor well established good practices in software development, to give package maintainers the opportunity to react to changes early.

Please, do explain: What else is required to meet whatever definition of "respectful" we are talking about here?

comment 3y ago · link · parent

> A numbering scheme doesn’t really make it suck any less.

Yes it does, because that "numbering scheme" tells my users when and if breaking changes happen.

It also allows them to avoid them. Don't want to keep up with the dependency? Make the version a hard requirement. Done.

comment 3y ago · link · parent

> Flask-Login is by no means the only Flask-using Python package that was broken by this change

Package maintenance also means to keep up with changes in the packages dependencies. If I don't do that, that's my problem, not the dependencies.

If I want to fix a certain version as my requirement, I can do so. Every major package system, including the ones used in Python, allow this. If I don't want that, then I need to keep my package maintained, and that means keeping an eye on what my dependencies do. That's part of package maintenance, simple as that.

There is no onus on the dependencies maintainers to care about whether I do my maintenance or not.

comment 3y ago · link · parent

> breaking changes in widely-used packages are disrespectful to your users

No they are not.

The flask team announces changes, deprecates things and uses major versions correctly. The major version change also doesn't happen frequently.

If a package absolutely requires a certain version, IT CAN SPECIFY AS MUCH in its requirements. If it doesn't, tough luck.

comment 3y ago · link · parent

> an API change is a very big deal, to be used only when the older version just can't work anymore

That's one opinion.

Another opinion is, that API and major version changes can be used whenever the maintainers of an open source project feel like it. No other reason is necessary. Because it's their project. They write the code. They don't have to justify that decision.

If a large portion of the projects userbase is unhappy about that, the project will lose traction and new project, or a fork, will arise.

comment 3y ago · link · parent

https://semver.org/

    Given a version number MAJOR.MINOR.PATCH, increment the:
    
    1. MAJOR version when you make incompatible API changes
So what exactly is the issue here?
1
181920
57