Better HN
topnewbestaskshowjobs
Log inSign up

kortex

8,487 karma · joined Feb 1, 2017 (9y ago) · 2,549 submissions

Submissions

comment 5y ago · link · parent

> Opportunities for straight males to date within a straight population depend on the male/female ratio. A necessary condition for every straight male in that population to have a girlfriend in that population is that the male/female ratio be <= 1:1.

> 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

Sorry, it would not remotely make sense. Planes store liquid fuel in the wings. They are engineered from square one to optimize for this design. Hydrogen requires either cryo or high pressure, neither are going to fit in the wing spaces. Even if you could physically make it work, you'd have to re-certify the plane, which just wouldn't happen.

A hydrogen plane would have to be designed from the ground up.

comment 5y ago · link · parent

If you are using actions, and aren't doing this already, I highly recommend two things:

- 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.

https://github.com/nektos/act

comment 5y ago · link · parent

Ignoring S-expr based configs for a moment, of the configuration languages, JSON parsing is probably the most straightforward. YAML is a superset of JSON, TOML is probably on par, TS and JS are obviously more complex than JSON, and XML is...XML. All of that is to say, I'd rather write a JSON parser than any of the above.

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

Bad sanitization, or fear thereof. You should not be inserting raw passwords into databases, nor should you be interpolating raw queries, but people used to, all the time, so these restrictions may have stuck.

But yeah it does not bode well for their security appearance.

comment 5y ago · link · parent

> and the new password must be at least 3 character different from last one.

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 imagine it also disables autofill from password managers (since it's not actually a form field)?

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

Yeah, it's annoying there is no purity spec on the battery acid, but in all likelihood, it's pretty pure. One could always test it.

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 or nitric acid would have a more favorable effect on the nutrient profile, but they're more and much more dangerous respectively.

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

175.45.176.0/22 if anyone is curious. This is a hilarious and probably terrible idea. Also I like how my home LAN has a bigger CIDR (/20) than all of NK's allocation.

comment 5y ago · link · parent

Seconding what jjk said, also airliners cruise in the troposphere, not the stratosphere.

> 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

Thanks. That's kinda what I figured, but wanted to sounding board it out a bit as a sanity check.

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

How well does Kafka handle high density data (e.g. A/V and images)? I'm scouting out systems for our computer vision pipeline and Kafka would simplify the aggregation/collimation step for marshalling to GPUs, and it would be simplest if I can just send raw frames vs some alternate transport.

comment 5y ago · link · parent

It's not just a trust thing. Knowing that some snipped has bounded evaluation is super important, for mental models, processin, security, etc.

It's still resources to detect loops, it often involves introspection or privileged views; it's simply easier to prevent loops.

comment 5y ago · link · parent

You can do it, I've done it, for the express purpose of GUI apps in containers. You have to mount in a Xwindows socket. There's info out there how to do it.

comment 5y ago · link · parent

Yes and no. Yes in that the technology will be stale and there will be far superior materials science, electronics, etc, by the time it is online.

No, in that its principle purpose is fusion and plasma research. It'll still be able to do science.

comment 5y ago · link · parent

I'm surprised to read in these comments that bottle reuse at the commercial scale is quite common in some areas.

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.

https://en.m.wikipedia.org/wiki/Euro_container

https://en.m.wikipedia.org/wiki/Systainer

comment 5y ago · link · parent

Currently yes. There's a lot of heat capacity to the furnaces so a cold start requires a lot of heat to get to nominal. That's not to say one couldn't be designed in such a way that it can be set to idle without losing too much heat. It's probably much easier to do that if it's electric vs nat gas.

comment 5y ago · link · parent

> Python is not an option for me, since I like static typing.

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

> Perhaps we need to do exactly the opposite, and look at the so-called primitive or pre-industrial cultures to find out how they use ornament to increase the significance and worth of the objects they produce.

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

A) you can click on the time / hours ago to link to the comment without lightening

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

> The expressiveness of hand gestures (in general) is quite limited

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

That's a great way to pop your thumb out of your socket, or sprain it. Yeah okay you'd have to actually make contact with your first, but this is like the first thing they teach you in any kind of martial art / pugilism / punching bag work.

comment 5y ago · link · parent

It's as predicatabde as cron. _thread on new technology_ -> some quip about how you can do it with X old tool.

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

The symbol appears (to me) to be deliberately designed to be easy to disguise with a wave or other subtle hand gesture, particularly on some sort of video call. It's very obvious from the front, but not very obvious from other perspectives. It's this information differential that makes it effective.

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

I've heard it phrased "Stress wrecks the body in strange ways." It is one of the best aphorisms I've been given. A physiologist friend told me this years ago when I was remarking how it seems like psychological stress seems to cause every subsystem of the body to freak out, yet there's no obvious connection between these things - why should the brain, which is evolutionarily "late", affect such deep subsystems?

This paper offers a clue into just such a connection. Immuno-psychiatry might be the next big thing.

comment 5y ago · link · parent

I think so, but prepare for people to come out of the woodwork with all kinds of reasons why their workflow is the _one true way_.

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

In short: on posix: pyenv, pipx, then virtualenv+pip or conda.

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.

comment 5y ago · link · parent

Zsh-histdb is one of my absolute lifesavers. It's literally the first thing I install on new systems, after zsh itself and oh-my-zsh. I could never go back to working without it.
1
434445
85