skysight-inc/HackerNews huggingface dataset:
Is it actually a problem that you've seen in real life where programmers write code without any direction? That seems impossible. A program exists to solve a problem. You might have a pretty vague idea of the details of that problem but ultimately you know what it is.

If programmers are coding whatever they want based on wildly unfounded assumptions then they're not doing Salmon Ladder development -- they're just terrible developers. If they're given some direction, coding, and iterating on that result then that's great. Even if they make some wrong assumptions at first, I don't see anything wrong with that.
What do you gain from a democracy over a monarchy or a dictatorship? The only added value is being decentralized.

Yes, the "only" added value of decentralized power structures is their decentralization. And the absense of all the terrible effects that centralized power structures tend to have in the long term.
getting this as well, 500 & 503
Do you have to write your own apps on Android?
having problems here as well. Slow down errors, 500 errors, and a random EC2 termination we suspect might've been related to EBS
​Linux containers slide into Windows Server beta
I don't know why the author is so disparaging of if constexpr; I think it's going to push c++ metaprogramming in a direction that makes the more powerful aspects of the language easier to understand for beginners.

Surely a good thing.
I love the folks of Texas!

But the fact remains.. it's pretty hot and humid over there.

As expensive as California is, the weather here is pretty nice.

No hurricanes, tornados, blizzards, or monsoons.

You just have to survive the occasional earthquake once every few decades.
Yup I'm seeing 503s in us-west-2 (EC2 instance talking to S3), but outside EC2 is okay.
Also getting 503 Slow Down and 500 internal server errors from S3 in us-east-1
Yes we are getting slowdowns and internal errors as well. Also noticed one of our EC2 instances shutdown due to failed health checks.
I am curious to know, if there is any explanation for why java performs better than Go.
Copperhead supports Nexus 5X, Nexus 6P, Pixel, and Pixel XL.
> no one is complaining that SAG is hurting the ability of a "rockstar ninja actor/actress" from making huge amounts of money, which is the main complaint I hear about unions here.

They absolutely do prevent lots of people from being hired the theater and film industry in the first place, which is a widespread complaint against them. Obviously the lucky few who do gain membership (which is intentionally difficult) make more money as a result of the constricted supply.
Personally I believe there's more to a good hire than good-on-paper qualifications.

But when you hinge your argument and lawsuit on objective qualification then the burden of proof would lie on the accuser to prove its true.
The title is truly misleading. I was expecting a mildly interesting post on FP and got a great one on composition with monads !
Tax avoidance isn't helping large US based tech companies aquire more users or gain more control of the Internet. It only impacts investors and executives. So that's not the reason why EU based competitors have mostly failed to reach dominant positions.
Repeat after me.

iPhone X is less secure than the iPhone 8.

Why?

iPhone X: Chances of someone unlocking while you are asleep is 1 in 1

iPhone 8: Chances of someone unlocking while you are asleep is 1 in 200,000

I certainly prefer the latter odds.
>> they pay it in the country where most of the innovation that drives those profits occurs, i.e. the US.

I believe that's quite unfair and wrong and pretty much BS. You ignore the fact that by allowing a "monster" company like Apple to sell in your country you undermine any potential local manufacturer. See the internet industry in China. Would there be Baidu, Alibaba, Weibo etc leaders in the industry without protectionist policies?I highly doubt it! You would see Google, Amazon, Facebook and Twitter. You ignore the fact the the profit made in EU helps Apple to innovate in the US. Without investment/money there is little innovation.

Paying taxes in US for products sold in EU is like Ikea planting trees in Germany to make up for the ones chopped off in Canada. The point is to give back where you make profit, at the point of sale otherwise you end-up with wastelands. You can do that by paying taxes(so that the local gov. can invest on your behalf) or by investing in the local community(i.e. jobs/R&D).
Seven graphs Showing that This is just the start of the solar age
I think that even by your definition water is a human right. Should we not have access to plumbing anymore lets say, and there was a freshwater lake near where we lived, we should be allowed to get our water from it and no other human should stop us from doing so simply because they said that they owned it.
> The original comment claimed

It's possible for both the original claim and your counterclaim to be untrue. Two lies don't make a truth. The original claim of no relationship is untrue. So is your "tracking very closely" counterclaim. There's a relationship, but it's not very strong and it's growing weaker.

> Labour productivity growth obviously does cause wage gains.

Cause? Without qualification? Not so fast, hoss. Sometimes productivity growth translates into wage increases. Other times either can change independently. The whole point - what those data really show - is that the relationship has been weakening.
I observe the reverse - 90% in a case. But then again, I'm in an older, wiser demographic.
In addition, most customs/immigration lines have signs requiring you to turn off your phone.
The whole premise behind letsencrypt is the ACME protocol, so you don't have to manually renew certs [although you can]. The problem is in handling SSL renewals on a cluster, you have to do renewals via DNS & rsync certs around, and there's not many tools to do this. But for a single server, its very easy to automate. Another problem with letsencrypt is the rate limits & such.
Try startpage and searx.me. They're more of a direct Google proxy.
Eaze, cannabis delivery company, raises 27M
Yes, I agree. The robotic car fleet might actually be the game changer.
What do you think will come out of the class-action lawsuits and how much do you think people will get per capita after the lawyers are paid?

I have a feeling that in small courts you can at least get more than that. PA for example has a max of $12k claim amount.
> Munchen and Berlin are completely different markets

In what respect? Berlin and Munich are 363 miles apart, share standard German, a currency, a time zone, a prime minister, some culture, legal system...

Are you referring to class/wealth?
google-drive-ocamlfuse: for simple fuse access to Google Drive

firefox-dev: as someone else has already mentioned Firefox Nightly
Amazon S3 consistently displaying 'internal error' fetching pictures
Aws status says all systems OK, but fetching photos yields:

<Error>
<Code>InternalError</Code>
<Message>
We encountered an internal error. Please try again.
</Message>
<RequestId>xxxxxx</RequestId>
<HostId>
xxxxxxxx
</HostId>
</Error>

Seems to happen on about 10% of the time.
> The EU considers the death penalty as a cruel, inhuman and irreversible punishment which fails to act as a deterrent to criminal behaviour.

http://www.eidhr.eu/highlights/death-penalty

edit: Hmm, now I'm not sure whether you meant a companies metaphorical death? ..I'll leave it here anyhow. :)
Finally, Some Answers from Equifax to Your Data Breach Questions
"*The above uncompensated care figures represent the estimated cost of bad debt and charity care to the hospital."

Cost is the key word there and is bolded in the link. The billed amount they would have lost would be much higher. Most hospitals collect about only 25% of patient payments owed to them. When they write it down, they use the cost to the hospital not the amount billed.
Millennial Founders: Stop Doing These 7 Things
>Even if you are using a static typed language, there's no guarantee that what's inside the data structure even makes sense.

You should always put validation in constructor so you are 100% sure that the object created is valid.
> The Pixel handset has the fingerprint sensor on the back of the phone.

How would I use my phone on a desk without lifting it up? I can do that with TouchID, but if the sensor is on the back, I can’t.
What makes California distinct in this regard?
Well, the answer is you need a new type for every option in your list. That's not a massively satisfactory answer, but it is the answer...
From what I've read on some law blogs, this doesn't happen often at all, and were it to happen, it would also mean that there's no reason for Equifax not to also deal with these cases in a class action.
Is the author complaining that the process is too complicated? This is typical of the c++ world, other languages make it easy but c++ isn't other languages.
This. I took the habit of writing very Python-like pseudocode while taking lecture notes, and having it run almost verbatim at home was a blast.
Yup, getting elevated error rates uploading to S3 - writes failing as well as closing the uploads. Also seeing 503 slow down as reported by others.
Seven Lessons Every Startup Founder Can Learn from on Their Journey to Success
> I think the stigma is well-deserved. Indeed they are rife with corruption and often create very odd incentives.

This is a very broad statement, which could just as easily be applied to management/capital.
Go sit in time out.
I feel like Google isn't exactly the best place to get your SSL, given their track record with the NSA.
There are dozens of research bases in Antarctica. Establishing a research base on Earth isn't comparable to an off-world research base anyway, if you're looking to study said remote world or establish a lifeline for humanity in case the Earth is devastated.
All the more reason for FaceID
North Korean Hackers Found Stealing Bitcoins for the Regime
I very skeptical that lithium-ion batteries are the end game for huge-scale energy storage.

Lithium-ion batteries are the "hot" energy storage. Efficient, powerful, and very light, but also expensive great for a laptop or a car, not so great for massive-scale "cold" storage.

Simpler things like flywheels, compressed air, reverse hydro, other cheaper battery types all seem like more plausible options.
I think you are confusing reducing competitiveness in labor markets with reducing asymmetry.

If you meant competitiveness of businesses, sure, it probably does that. But the logical conclusion for that line of reasoning ends up with us working in a Gulag.
You want to know how to truly live without google?

Build and run your own systems. That is the only way.
The C++17 equivalent would be something like the following (not tested):

using NumberExpr = int;
using VarExpr = std::string;
struct AddExpr;

using Expr = std::variant<NumberExpr, AddExpr, VarExpr>;

struct AddExpr {
std::unique_ptr<Expr> a;
std::unique_ptr<Expr> b;
}

Of course, this being C++, you need forward declarations and a firm grasp of the rules of incomplete types to be confident about declaring a simple AST type.
>And post / re-post: "I tried that crypto-coin ad alternative thing and you won't believe these results!" ;-)

Haha, according to what I've gathered for the few past hours, it seems that ads are still way more viable. But I'll write my conclusions in 3 days
Before you wholeheartedly embrace tax-funded healthcare (aka "single-payer") think for a moment about what you are giving up freedom-wise. Since the only real freedom is economic freedom, the ability to manage and control your own money as you see fit and to apply capital to investments you want to make and to things you need to live, consider how the forfeiture of 60% of your income will affect you. There's no free lunch. Also consider that the grand majority of people are healthy and don't have huge healthcare expenses, so what you will be taxed for is to subsidize the health problems of others. That sounds altruistic, but consider also that the health issues many people face are completely self-inflicted--from drug, alcohol, tobacco, and food abuse, mainly. For the few out there who were unlucky and have chronic illnesses preventing them from obtaining decent health insurance through no fault of their own, it seems like there should be a solution that doesn't enslave the entire US population for the rest of eternity, don't you think?
Your eyes need to be open for it to unlock. Also someone can't touch your fingertips when you are asleep?
The next day, we'd severely punish entities whose profit-seeking actions denied people fresh water.
I may be biased, but I much prefer "dictionary" to "hash table" and "list" to "array." They provide much better metaphors to real-life things, instead of requiring people to learn and use additional jargon.
Another option instead of 'find' in BASH is the globstar option. If set then pathname expansion will include zero or more subdirectories:

ls **/*.c

Results in something like:

array.c helpers/gendec.c msg.c
awkgram.c helpers/mb_cur_max.c node.c
awklib/eg/lib/grcat.c helpers/scanfmt.c old-extension/bindarr.c

Turn on with:

shopt -s globstar
There are a few coffeeshops in LA that brew four barrel coffee, I think it's a result of how Four Barrel mostly just sells beans instead of opening their own shops everywhere.

Additionally, Stumptown as well as Intellegencia are both owned by the same private equity firm that owns Peet's, Blue Bottle also got a ton of outside investment to allow them to grow as rapidly as they did, in addition to having a successful business of delivering their cold brew to peoples homes.

The thing about the food industry is that it has really high startup costs that take a very long time to pay off, so opening up a new store using the profits from existing stores isn't really all that easy to do without having a hundreds of stores already.
BlissUI – Beautiful UI/UX in minutes
If you don't like your job then switch it, there's plenty of software companies that don't do that. Generally I've seen that the more bleeding edge you're working on then the more overwork you get. If you want to sacrifice working on the bleeding edge for a steady pay and steady working hours you can have that all across the country.
Well, in my own code I would, but you would never get some file handling / parsing library into boost, or the standard, that did that. And then (another C++ issue), installing libraries can be fiddly.
S3 in both US-East-1 and US-East-2 are seeing these errors
That list is entirely based on my personal preference for coffee which does not particularly like Sightglass or Verve. There is no objectivity here :)
KDE is 21 years old. It's been 19 years since Qt has been FOSS.

And within those 2 years, there was an attempt to rewrite Qt to be FOSS.

Also KDE Community has evolved during the past two decades.
How well communicated is that? For example, you could mention it when people first sign up.
TITBITS 9
I'm not sure how I feel about storing 100+ GB in icloud and restoring it via my data plan.
Yep, we're seeing that but recovering now it seems.
I agree that modern tooling largely erases the tedium of getting indentation right. Whether C++ or Python, selecting a block and hitting either tab or shift-tab fixes indentation. (Which beats the heck out of re-indenting on punch cards, which I'm old enough to have used for CS homeworks...)

And, yes, it is hard to argue that presence of {} makes a language objectively more primitive, which is why I used the word "feel"... the syntactic sugar necessary to keep the block structure straight just looks like noise to me any more. But as with many things, it comes down to personal preferences.
We tracked 25,688 abusive tweets sent to women MPs
But it doesn't avoid low wages. It's a zero sum wage redistribution from other workers and from future workers to present unionized workers. If everyone was unionized, and if there were zero profits, then unionisation would have zero benefit for any worker.

Also low wages are not an externality:

https://en.wikipedia.org/wiki/Externality

The point of letting the market modulate supply and demand is that it encourages an economically optimal allocation of resources.

If you'd like to have a more in depth discussion on this, perhaps you could post a thread in a more appropriate forum like Reddit and we can discuss it there.
Boosts variant library has a solution to this problem

http://www.boost.org/doc/libs/1_65_1/doc/html/variant/tutori...

boost::variant<
int,
boost::recursive_wrapper<binary_op<add>>,
boost::recursive_wrapper<binary_op<sub>>
> expression;

When the visitor is applied, the recursive wrappers are unwrapped transparently.
If ye love wealth better than liberty, the tranquility of servitude than the animated contest of freedom — go home from us in peace. We ask not your counsels or arms. Crouch down and lick the hands which feed you. May your chains sit lightly upon you, and may posterity forget that you were our countrymen! — Samuel Adams
I find it and the white paper I interesting. It is very well thought out. I joined. But the stink of money is everywhere and this is distracting. Reddit and HN have worthless internet karma points but we can laugh it off. Making it explicit that we are whoring ourselves in a market pushes it too far I think. It makes us self conscious and that is an impediment to creative discussion. But something will come out of these attempts. Something with tokens and systems and weird rules. It's a game. We just need to find the right game to play in.
Congressmen and Senators also have no restrictions on insider trading. They have all kinds of perks that elite status brings them, it's disgusting.
The idea with ChromeOS is that you should use web apps, web IDE's ...
How much stack space does that use, are there allocations and how many are there and how are they managed?

These questions seem utterly opaque to me with modern C++. Perhaps I just need to spend a weekend reading the docs again?
Seeing lots of S3 errors as well

"An error occurred (503) when calling the HeadObject operation (reached max retries: 4): Service Unavailable"

"An error occurred (SlowDown) when calling the PutObject operation (reached max retries: 4): Please reduce your request rate."
Buying flights on an instalment plan .... what's next buying fancy dinner with a 20 year payment plan?

I am really not sure this is solving a problem or making life worse for some people. Like payday loans.
They exist, yes, (and I've even heard some ridiculous ones like the human right to internet access), but how do you make the "rights" a reality?
Furthermore, can the court compel some kind of class-action suit if it realizes there's a small claims backlog of thousands of plaintiffs against the same defendant for the same issue? This thing could clog all the SC courts in the country if all 100mm people file like this.
Nobody is holding anyone down, bud. You must have mistaken my message for a complaint, I wasn't complaining. At no point did I feel held down or disenfranchised or anything like that, and I do agree that women could use a bit of extra help in a mostly male workplace.

That said, at some point I think one would need to think carefully if their outcomes are strictly the product of institutional bias, or whether there's something they need to change in themselves. Perhaps be more assertive, step up into leadership positions, speak up when they normally wouldn't, etc.

Truth of the matter is, it's very easy to blame one's misfortune on somebody or something else, but this is also the least productive thing one can do, if the goal is to achieve something and not just solicit sympathy or a legal settlement. Contrary to popular belief, things don't just fall from the heaven on (most) white men. They have to work and put themselves in precarious and uncomfortable situations to get where they want to be too.
Joseph Gordon-Levitt Talks about Free Culture at Open Source Summit
@cPerciva: Amazon S3 in us-east-1 started experiencing problems around 18:39 UTC
Looks like our Russian friends strongly disagree with you.
I don't think we're going to agree if you think that "don't do that; you'll die!" is unconstructive hate speech and better left unsaid.
I'm getting issues as well. Here's to hoping this issue is just a hiccup and not like the last outage.. otherwise, it may be time to seriously consider alternatives. Anyone know of a good solution for a self-hosted s3-esque service?

Update:
Seems to be working for me now.. fingers crossed
Cool, this is another valid way of doing it and I suppose it comes down to preference.

A few notes I'd like to mention though, that are not relevant to our toy examples, but may have implications in a production environment:

1. Unless you intend to store the resulting list from a list comprehension, it's good practice to prefer generator comprehensions because they don't grow in memory as the number of iterations increases. Obviously in our examples the sample size is so small that it doesn't matter, but the difference between ''.join(x for x in y) and ''.join([x for x in y]) can grow very large if y consists of many thousands of items.

Here's an example with just integers which requires over a million items before it starts becoming a concern – ultimately it depends on the memory footprint of each item:

In [2]: %memit sum(x for x in xrange(1234567))
peak memory: 46.87 MiB, increment: 0.00 MiB

In [3]: %memit sum([x for x in xrange(1234567)])
peak memory: 68.52 MiB, increment: 11.78 MiB

2. I still prefer the list of tuples in this situation as you have control of word order (you may not want to go through the factors in ascending order). There's [x, z].insert(1, y) which would change the list to [x, y, z] to avoid having to add to the end. Finally, because it's a list you can very easily do a one-time cost in-place sort:

[(5, 'Buzz'), (3, 'Fizz')].sort(key=lambda t: t[0])

Again, it's silly to talk about performance in our toy examples, but small details like these can actually have memory and execution time implications if you don't consider the differences.

Ultimately, the best advice is to always write the code as readable and maintainable as possible and then optimize. Especially when dealing with a language like Python which was built for expressiveness, not leading performance.
Ask HN: Do I need a terms of service?
I have a free mobile app for a niche community (~1300 users and growing) that requires user registration. I don't show ads, but I do use mixpanel for analytics. I have a growing concern that I am exposed somehow, but am having trouble finding resources that clarify best practices with regards to web services and the law.

At what point do I need to have a terms of service, where can I find a good terms of service boilerplate, and are there any good resources for tech and law?

Thanks in advance for any help.
How to compare two functions for equivalence, as in (λx.2*x) == (λx.x+x)?
I'm personally quite in love with Arch on my Desktop machine.

It's an almost pure developer setup, I quite regularly install bleeding edge (-git from AUR) of various software, I tinker around. Arch makes that rather easy.

When something goes wrong, I can usually rather easily tell what just exploded, it's kind of like when you have build yourself a car and now you can tell by the hum of the engine how much oil it has.

Though there are some issues with it; most notably, I hold back the kernel for a long time because updating the kernel is always a bit of a hassle and sometimes you need manual interventions, which you can easily be notified of via email and RSS in advance.

On the other hand, my servers all run either CentOS7 or up-to-date Ubuntu Server installs, I'm not that in love with Arch.
This works only so long as you can pass the problem on to another function that handles arbitrary types (like `std::cout`). If you want to handle it yourself then you have to use object overloads, templates, etc, etc.
The errors seem to be reducing now.