Better HN
topnewbestaskshowjobs
Log inSign up

devit

4,235 karma · joined Sep 10, 2015 (11y ago) · 1,525 submissions

Submissions

comment 7y ago · link · parent

That's not a girlfriend, it's someone taking advantage of you.

My suggestion is to read "Models: Attract Women though Honesty", by far the best book on how to be a better man, and possibly the best bet on changing your thought processes for the better (in addition to therapy, possibly).

If you feel like you really need sex to be happy, hire escorts: the ones that are well reviewed online are generally far better people than the women you describe, and will deliver what you agree upon with no manipulation.

comment 7y ago · link · parent

Using a binary protocol library for RPC (e.g. gRPC, raw protobufs, etc.) rather than writing your own text-based protocol incorrectly.

comment 7y ago · link · parent

Why is selling this data not illegal and harshly prosecuted?

You'd expect to find this data being stolen by trojans and sold for bitcoin by anonymous actors on blackhat sites, not by registered companies with offices and employees.

comment 7y ago · link · parent

You can assign keywords to alternate search engines in Firefox.

Apparently there's an extension for the scrollbar thing (https://addons.mozilla.org/en-US/firefox/addon/highlightall/) although I can't quite imagine why it would be more useful than just visiting the search results sequentially.

comment 7y ago · link · parent

Well, if Edge was open source and worked on non-Microsoft OSes, then maybe people would test on it.

comment 7y ago · link · parent

That makes it impossible to properly implement POSIX on top of it and seems like a poor design.

The correct design is to have both a "root" and a "current object" associated with every "file descriptor object" and allow ".." to work up to the "root" (and thoughtfully handle cases where the "current object" is moved outside the "root").

You can't do it with paths because that doesn't track directories being renamed, that would cause the descriptor to suddenly become inaccessible in the middle of an operation.

comment 8y ago · link · parent

It seems like Rust would have been an even better choice, had it been available at the time they chose OCaml.

comment 8y ago · link · parent

Setting NULL or nullptr to any value other than 0 is highly likely to break most complex C/C++ codebases.

comment 8y ago · link · parent

NULL pointing to valid memory seems like a serious flaw that can and should be easily fixed.

comment 8y ago · link · parent

Have you tried simply using a seccomp-isolated Linux executable for each tenant? (with rlimit or cgroup-based resource limits)

You have to create a process for each tenant, but that should be much faster and take much less memory than V8 JITting JavaScript or WebAssembly (Linux process creation is very well optimized).

You can try static linking, dynamic linking or even just forking plus an ad-hoc executable loader in userspace.

comment 8y ago · link · parent

Seems potentially great.

The problem with apps like Tinder is that they focus essentially only on your skill at taking photos, posing for them and retouching them and secondarily on your appearance, and obviously photo-taking skills are completely irrelevant and appearance is at best secondary even for one-night stands.

Hopefully Facebook can actually deliver matches based more on personality, what someone is looking for and how pleasant a person is in general.

comment 8y ago · link · parent

The problem is that voting correctly is irrational since the chance of affecting the outcome is minuscule and not worth the massive effort of making a correct choice.

Hence, the only people who vote are irrational or badly informed (driven by the pleasure or duty of casting the vote rather than a commitment to voting optimally), with the well known poor outcomes all democracies suffer from.

comment 8y ago · link · parent

1. You can store it on the client side in a cookie.

2. You can encrypt the passwords with a key outside of the database instead of hashing them. That means that people can now login with a read-only compromise of both your app and the database, but chances are that such a compromise would be a full compromise anyway.

3. You can also not show them the current password, but instead generate another one and have them both be valid (until explicitly revoked)

comment 8y ago · link · parent

Just set a never-expiring authentication cookie in the browser, so they never need to enter the password in typical one-device use.

When they need to change devices, have the standard e-mail based password reset as well as "show password" in the account settings (make the password reset not reset login, unless the user explicitly elects to "log me out on all devices").

comment 8y ago · link · parent

Here's the "password" killer: generating random passwords on the server and never letting users input their own passwords.

All issues with reused passwords, password strength, hashing passwords with slow hashes, etc. instantly solved.

Also improves conversion rate since there's no risk the user gives up signing up because he can't be bothered to think about or generate a password.

comment 8y ago · link · parent

How do they compare to bikes for city transit?

Also, the prices of Segway kickscooters from Bird and Lime (1$ + 0.15$/min) seem way higher than Mobike's prices (around $10/month, unlimited rides).

comment 8y ago · link · parent

It's because sales, and in general any social activity, has inherently unpredictable and random results, while engineering is mostly deterministic.

Also, much easier to sell something that exists since obviously customers don't gain much by and thus don't care much about signalling whether they would buy something that they might be able to buy in the future, as opposed to just buying something they want and can get immediately.

comment 8y ago · link · parent

Is there are a reason to not just use DRAM along with a battery to achieve the same persistence but as fast as DRAM?

comment 8y ago · link · parent

<< As the Times reported, DeVaul, whose title is “director of rapid evaluation and mad science,” told a young female job candidate during a 2013 interview that he was in a polyamorous relationship. Later, when he saw the woman at Burning Man while she was still waiting to hear back about the job, DeVaul asked her if she would take off her shirt for a back massage. >>

This certainly does not seem something that warrants firing, and might even be correct behavior depending on circumstances (e.g. if he had reason to believe she would not feel coerced or otherwise be happy consenting).

comment 8y ago · link · parent

Couldn't it just bind "this" to whatever object it uses to store component data?

comment 8y ago · link · parent

Because the fact that they can do such a thing at a profit means the market is inefficient.

Imagine that instead of having a single Tesla, there were two identical companies each selling half of what the actual Tesla does.

Now one of them could offer an unlocked 75kWh version at $1 more than the locked-to-60kWh version (since they cost the same to make and they are profitable) and would capture all the market, so the cost of those two products should be the same.

So Tesla essentially can only do this because they have a monopoly on Tesla-or-functionally-identical cars.

comment 8y ago · link · parent

Why aren't these functions methods on "this" instead of magic freestanding functions?

comment 8y ago · link · parent

Where do you get the 2.7 trillion figure?

According to https://en.wikipedia.org/wiki/Wealth_in_the_United_States, total household wealth is $54 trillion, or 180k$ per head.

https://www.thebalance.com/what-is-average-income-in-usa-fam... gives $48k average income.

So if all wealth and income were redistributed, you'd end up with 180k$ wealth and $48k income, which is enough to buy an apartment and live well at least outside the most expensive cities.

comment 8y ago · link · parent

What needs to be dropped the most are non-TLS non-localhost http:// URLs.

comment 8y ago · link · parent

Is there any description of the actual interventions?

Could this be useful even for healthy people as a way to boost cognitive performance and prevent dementia later in life?

comment 8y ago · link · parent

Is it really?

Seems unlikely Python can be more popular than JavaScript/TypeScript since they are equivalent to Python and have the critical advantages of working on the web (and thus being known by all web developers) and having optimized engines in web browsers.

comment 8y ago · link · parent

Because the standard library has reference counting with no static checking to avoid cycles, and it was decided to also have safe mem::forget since it can be (mostly) emulated with the former.

It has no such static checking because it was deemed to reduce expressiveness, while not impacting memory safety.

comment 8y ago · link · parent

Is this Hasura GraphQL Engine open source? What's the business model? Are there any features missing if you don't pay anything?

How does it get notified by PostgreSQL when the result of a query changes, since AFAIK PostgreSQL has no such built-in functionality? (it works if other apps change the database, right?)

comment 8y ago · link · parent

Well, not really.

You could have a single secure system that holds encrypted session keys (and encrypted data if needed) for all the calls, and have it give them out under arbitrary logic, which could include rate limiting, multiple approval and publishing access requests (maybe after a delay), which would prevent "no encryption" from happening, assuming that system is properly secured.

Non-physical security can obviously be made perfect, and physical security can be achieved by launching the system hardware on a rocket, which still allows to communicate with it but makes physical access obviously impractical.

But obviously the issue is that the users have no incentive to use such a program as opposed to one without "key escrow", and there are plenty of PCs and Android smartphones on which arbitrary software can be installed.

1
363738
51