8,487 karma · joined Feb 1, 2017 (9y ago) · 2,549 submissions
comment 5y ago · link · parent
> For every gay male in a population to have a boyfriend within that population the only necessary condition is that there be an even number of gay males in the population.
That is...a strange take on the kinetics of dating, if you will.
I'm just going to point out that bi/enby/fluid people are a thing, as are poly groups.
Also, online dating is a thing. Most of my (straight male) partners came from other schools, not because of the Male Ratio at my engineering school, but it was just more efficient to find someone with a matching personality online, and sampling from a larger region.
comment 5y ago · link · parent
A hydrogen plane would have to be designed from the ground up.
comment 5y ago · link · parent
- Have a sandbox repo or two just for trying things out and playing around - Use Act to test your workflows locally. It doesn't support all the GH Actions functionality just yet, but it's got all the necessities and most niceties, and saves you having to constantly commit and push just to try things.
comment 5y ago · link · parent
And JSON parsing is a minefield. http://seriot.ch/projects/parsing_json.html
I don't know of any notable S-expr based config languages, probably because they are so easy to parse, people just roll their own, leading to balkanization.
comment 5y ago · link · parent
But yeah it does not bode well for their security appearance.
comment 5y ago · link · parent
Does this sort of rule imply that they are saving passwords whole (either plaintext or encrypted, as opposed to hashed)? I can understand "can't match your last N passwords" cause that's just saving old hash entries. But editdistance(old, new) < 3 implies you know the string value somewhere.
comment 5y ago · link · parent
I would literally close out my account in that very moment if my bank did that. Not only because that's horribly inconvenient and I would never put up with it, but it also shows they have no idea what are sane security measures or not.
comment 5y ago · link · parent
I mean I bet nitric acid would work great for that purpose, it's just a bit more expensive and harder to get in some places, as you mention. It's definitely commercially available in the USA though.
Duda diesel has it: https://www.dudadiesel.com/search.php?query=nitric
Duda also has sulfuric which is likely higher purity, but you seemed to express some concerns about working with corrosives.
I'm a former chemist, so anything short of super angry chemicals like piranha solution, I'm not too phased :D
comment 5y ago · link · parent
Sulfuric acid is not really that dangerous unless you are getting the high test stuff from a chemical supplier. You can use battery acid refill solution, it's just deionized water and H2SO4 at around 30% concentration. That's mild enough that it won't cause any immediate burns, but you should still wear gloves and goggles when handling it.
There's no need for nitric acid, since you are already supplying nitrate ions.
comment 5y ago · link · parent
> From the planetary surface of the Earth, the average height of the troposphere is 18 km (11 mi; 59,000 ft) in the tropics; 17 km (11 mi; 56,000 ft) in the middle latitudes; and 6 km (3.7 mi; 20,000 ft) in the high latitudes of the polar regions in winter; thus the average height of the troposphere is 13 km (8.1 mi; 43,000 ft).
Airliners cruise around flight level 310-380 (31-38,000', about 5.9 to 7.2 miles).
comment 5y ago · link · parent
The link is a great reference by the way.
> Your API should use cloud storage (for example, AWS S3) and simply push a reference to S3 to Kafka or any other message broker.
This is more or less what I figured. We already archive to S3 anyways so switching to using it as transport would be straightforward.
comment 5y ago · link · parent
comment 5y ago · link · parent
Here in NY we recycle glass but it's primarily through single stream recycling or via bottle deposit machines, which I believe both smash the bottles and mix the streams. I presume this is because bins of broken glass are significantly higher bulk density than in-tact bottles.
Seems like this boils down to a logistics and handling problem.
I think we are reaching a point where it makes sense for an "ISO Container" but smaller scale, for ease of automated logistics. Something basically like a milk crate but better for automated stacking, shuttling along conveyers, and un/loading by robots. It would be an interesting way to come full-circle for glass bottle reuse.
Edit: did some digging and I guess Euro boxes are a thing.
comment 5y ago · link · parent
comment 5y ago · link · parent
Have you checked out mypy recently (past few years)? With all the strict flags, it's pretty damn hard to get anything but bulletproof static typed code to pass. The only major downside is it lacks higher kinded types at the moment, and there is a PR in the works to add that. But it has all of the other accoutrements you'd expect from a modern type system: generics, structural subtyping, co/contravariance.
comment 5y ago · link · parent
I think that ornamentation and aesthetics are often overlooked or minimized in the pursuit of optimization, typically cost reduction. But this article and this line in particular elucidates why we stand to benefit from keeping aesthetics in mind.
comment 5y ago · link · parent
B) text selection
C) I think HN is one of the least ignorant communities out there on the net. Occasionally downvoted comments are merely controversial or against the grain, but more often then not, they are flawed in some way. In fact their rarity makes them neat to read (high surprisal) if only to understand where they might be coming from.
comment 5y ago · link · parent
Clearly you've not met many sign language speakers. Or Italians.
This is a perfectly cromulent covert hand gesture. It has high coding entropy - I've literally never once seen someone make this gesture (outside of videos demonstrating it). Fingerspelling is not remotely similar since it's a sequence of codes in rapid succession.
comment 5y ago · link · parent
Orchestration? "Just use some bash/perl, no need for this k8s craziness"
On a thread about Micro - a new cli text editor? "Just use vim."
And of course, the OG: https://news.ycombinator.com/item?id=9224
comment 5y ago · link · parent
If you are at the point where you cannot even get your hands near where other people can see them, your signal bandwidth to the outside world is likely already severely curtailed. As in, you are probably locked in a basement. I don't think this is meant to address that severe of a human trafficking/abuse situation.
comment 5y ago · link · parent
This paper offers a clue into just such a connection. Immuno-psychiatry might be the next big thing.
comment 5y ago · link · parent
Some people like customizing the heck out of their editor, getting super deep into metaprogramming and macros. Personally, I don't really have time for that. I want an editor which does 95% of what I want out of the box. For me, that's pycharm, but vscode is really nice as well. It feels lighter than pycharm.
You can usually configure all kinds of macros and plugins for IDEs. Like you said, it's a bit of a rabbit hole, but so is emacs lisp.
comment 5y ago · link · parent
Pyenv: tool to manage different python major/minor/patch versions.
Pipx: installs CLI/GUI tools in their own virtualenv and links them to ~/.local/bin. Way more convenient if you have commonly used tools
virtualenv: use to isolate python environments
Pip: used to install packages
Conda: basically does all the above, also handles linked libraries and a bunch of stuff. Annoying for deployment, but it's often the least worst option.
Python-N.M: use pyenv to manage your python installations. Way cleaner than brew. Never use system python for things.
Python2 thru 3.3: you really ought to be using py>3.6 by now, but it may not be your choice. I haven't in years but I think you can use pipx or "pip install --user virtualenv" to get the virtualenv binary. Then use virtualenv from there.
Py>3.3: use "python -m venv" to manage virtualenvs. Use pipx to install cli tools. Do everything in venvs.
On windows or if you rely on lots of academic packages: you are probably better off just using conda.
Also the pre-commit tool manages its own virtualenv cache, which is cool for making repos easy to bootstrap.
There's also poetry, but it's more new and if you are at the point in your python journey that you are asking these questions, then in my opinion it's likely to just muddy the waters more.
And if anyone is curious "why the hell is python this way? I don't have this problem with $LANGUAGE?" It's because when python fires up, basically a small miracle occurs that is able to locate and execute .py, .pyc, .zip, several other file types, directories, compiled libraries, and basically anything you want if you override the module machinery.