skysight-inc/HackerNews huggingface dataset:
> If you're wrapping a try block around every piece of code that might throw an exception, then you're doing it wrong.

Well then the C++ standard people are doing it wrong, because something as expected-to-fail as converting a string to a number throws an exception.

What am I supposed to do if I want to load a text file containing numbers and print out where it failed? Yep, I have to wrap every string-to-number conversion in a try-catch block.

Or in reality I make a wrapper function that does it. This is why exceptions are stupid - 80% of the time you want the context provided by the program counter in order to handle the error.

int string_to_int(const std::string& s, int def)
{
try
{
size_t pos = 0;
int v = std::stoi(s, &pos);
// Check that the number was parsed from the entire string (stoi ignores trailing garbage).
if (pos == s.size())
return v;
}
catch (std::logic_error&)
{
// This occurs if there is no conversion (e.g. no digits) or the number doesn't fit in an int.
}
return def;
}

(A Rust-like `std::variant` return would be better here but we don't use C++17 yet in this codebase.)
And following that, what is the likelihood some government agency already have secret projects with larger number of bits already?
> Frankly this is democracy in its true self;

That I would agree with, but...

> I can't wait to see this whole (world) system go down the gutters, and when people open their eyes to this language game.

I do hope this is hyperbolic. I personally like our global technological civilization; with all its injustices it's still better than what we had in the past. Also, I don't like wars, and I definitely don't want to find myself in one.
What if a whistleblower wants to communicate with their elected representative who will then raise and highlight an issue?

Sometimes it's vital that people be able to communicate in private with their reps.
Noooooooooooo :(
Then think of this as a first-class and/or freight subway, I suppose. An extension of public transport to a new sector.
Here is the actual law[1], article 49 of electoral code:

Starting the day before voting at zero hour, it is
forbidden to distribute bulletins, circular and other
documents

Starting the day before voting at zero hour, it is also
forbidden to broadcast electoral propaganda messages using
an electronic public communication.

This explains with an election day newspaper still had a full cover titled "Do as you want but vote macron"[2], but does not explain why there were official legal threats used to deter reporting on the leak.

[1]: https://www.legifrance.gouv.fr/affichCodeArticle.do?cidTexte...
[2]: http://monde.taibaweb.com/wp-content/uploads/2017/05/arton45...
I think Firebase was kind of douchebags assuming the story is correct, if you change how people are billed you should give people time to adjust their software.

Stuff like that makes me want to host everything myself as it will for sure be the cheapest option.
When Python moved from their own silo to github, the project instantly gained more visibility, with thousand of stars in a few days.

You see, github is not just a fantastic plateform, well crafted and reliable, to use git. The important part in the name is "hub".

Everybody is on github, have a github account, nows how to use it. It removes a lot of friction.

Now I know it's proprietary. And it's close source. But since their track record as a company is exemplary, and since you can easily backup the data in there anyway, not being on github is like refusing to put shoes for a marathon because your feet will breathe better.
Sugar and salt make things taste better. Things that taste better also tend to sell better. If you took all salt and sugar out of food, you'd certainly eat and sell less, because it wouldn't taste good.
Which is how figures like Thomas Drake[1] and Mark Klein[2] go the way of Claudette Colvin[3]; careful that you don't merely lionize the most reported figures in this struggle.

Also.. my apologies for leaning on a Civil Rights figure for an analogy, it's just the first thing that came to mind.

[1]: https://en.wikipedia.org/wiki/Thomas_Andrews_Drake
[2]: https://en.wikipedia.org/wiki/Mark_Klein
[3]: https://en.wikipedia.org/wiki/Claudette_Colvin
I will happily accept extra 20 kg weight on my 1500 kg car, if it means 10 most mechanically stressed parts in engine, suspension, transmission etc. will last much longer.

that maximum 0.1l/100km consumption increase will be perfectly fine with me too, most people don't drive for fuel efficiency anyway (that would mean 90 kmh on highway for example).
Framework for Creating Backdoors
Write a proper lexer and parser. You are half-way there already.
Sugar and salt make things taste better. Things that taste better also tend to sell better. If you took all salt and sugar out of food, you'd certainly eat and sell less, because it wouldn't taste good.

You can call it biohacking if you want, but it is no more so than when your mom made you dinner.
I don't know who is the person in the picture you posted. And how am I supposed to find out when you just post random pictures with no context?

What are you trying to accomplish with all these bizarre hints ("sounds like you know...")? Do you think I'm part of some conspiracy?
Link to the actual Virtual Lorenz emulator: http://www.virtualcolossus.co.uk/Lorenz/lorenz.html
What's the problem with a pull request?
No, I think the OP is suggesting that the same URL will have been requested in both JSON and HTML formats, and the browser cache is not differentiating between them.
BlackBerry working with automakers on anti-hack tool: analyst
How a Chess Match Started the Big Data Revolution
I'm a heavy Phabricator user and it's great.
No, crossrail tunnels are WAY less expensive than that:
http://www.crossrail.co.uk/news/articles/crossrail-awards-ma...
It's about 145M$ per mile that is well in the range of 10 times less the outrageous cost that they pay in US for a single mile.
Im wondering what the difference is between this new program and the Msc. Business Informatics programs already available (at least at European universities, Im getting mine at Utrecht University). From what Im reading they sound very similar, with the outlined key strengths in your post being virtually the same.

Thanks for taking the time to answer some questions here.
Good. Hope others see the problem too. Especially the US...
Too late, everything has some phucked up name. :/
> Jio however will have a massive collection of Indians Biometric identities

Citation or shut up. I'm no fan of Aadhar but even a cursory look into it's authentication shows that it does not share this information with services. It only acts as a o-auth like service.
It's actually a very good law I think. The US could really do with that...
I find it interesting - but it would be nice if there is a better README for visitor to grab the concept quick.
Let's not ahead of ourselves. Earning $20k in Poland does not make you super rich. It's probably like making $100k in the US excluding NY, SF, similar places. Statistically, you're rich, but you won't feel that way.
Hangouts Chat / Meet [0] brings a lot, if not all, of this when it comes out. Meet keeps most of what hangouts video has today, but a better UI and uses hardware codecs when it chan.

Hangout Chat is really a rework of the idea of hangouts. It brings a lot of functionality that people like from Slack (everything you mention I believe).

Note that Hangouts today does have search sorta (it ain't great). If conversation history is on, it can be searched from Gmail web (not Inbox either), using the "in:chat" filter.

(I work for G, opinions are my own)

[0] https://thenextweb.com/google/2017/03/09/google-takes-slack-...
I think you already did the first step: you were courage enough to speak about the problem, even if anonymously. Now that your mother has died, you only need to fight your aunt where blood bonds are much weaker.

Don't stop now: your sister needs you and your mind needs peace.
I'm not so sure. Gradient Descent refers to reaching the best solution available. Xkcd seems to be referring to more like the Bonferroni principle where you are looking for patterns without a hypothesis and post facto justifying it.
How would you rather the govt tax? Seems to be a lot more efficient to tax income rather than to have separate taxes on different kinds of consumption and investment.
Thanks for writing this. I didn't really expect that much attention, so I kind of assumed most people reading it are at least somewhat familiar with the graphics hardware of that area. I shouldn't have assumed that :)
Look to stories like this before you go 'serverless' in your organization.

Building on top of a proprietary stack with no guarantees on pricing and future availability will lead here.
I was mainly referring to the 50s-60s, when engines could normally be tuned to produce significantly more power than stock without huge decreases in longevity, because their mechanical parts were far stronger than required. The same goes for other powertrain parts (e.g. THM400 transmission.)

after several rounds of detuning for smog controls, among other reasons.

I doubt any of those "other reasons" were because the engine couldn't survive 400hp.
>Really? I see nothing obvious about it

Check out wikileaks twitter account some time.
With gradient descent you are walking in the direction of negative gradient. Stirring the pile implies that you are walking randomly from point to point.
I agree with a bunch of the UX issues raised, but a lot of the other problems are related to GitLab.com and if you self-host, it's a much, much better experience.
Show HN: Building small docker images using ldd
One of the first consumer cars is considered to be the Benz Patent-Motorwagen [1].

Adjusted price: $3,998

Maximum speed: 10 mph

The improvements in performance and price are not even those seen in computers.

[1] https://en.wikipedia.org/wiki/Benz_Patent-Motorwagen
This is also coming in France as told here: http://www.lemonde.fr/biodiversite/article/2017/05/06/la-cap... (in French)

From now on, the reproduction of cetaceans is prohibited, as the introduction of new animals. Therefore, dolphins and whales in captivity will no longer exist and suffer. This was triggered following an incident at MarineLand, one of the biggest parks, where a mudslide killed many animals in 2015.
Show HN: Complete Guide to Running a SoundCloud Alexa Skill (incl. Code)
As famous russo-ukrainian sentence goes, "is it a defeat or a victory?"
I was reading some of the leaked emails. They are awful. Purchasing "legal highs" off the dark web. Cocaine. All sorts of horrendous stuff.

I think the En Marche! leak has many similar properties to the DNC leaks. Once many very incriminating emails were leaked, many "invested" parties jumped on the opportunity to inject fakes to discredit the whole.

If I was Podesta or Macron, and a bunch of private emails were leaked to show corruption, pedophilia, illegal drug use, etc., what would be my first port of call? Discredit the authenticity with fakes.
That's a serious accusation to make. Back it up or take it back.
Yet another example that Google so far doesn't get the public cloud and may have hard time to catch up with Amazon Web Services.

E.g. shutdown Prediction APIs, charge 70x, not enough support.

I believe Google got much better tech than AWS, but the culture, support and strategy has blind spots.
>he has lots of experience with high-torque electric motors.

From where?
Hosting by yourself is always the safest long-term solution, even if you are hosting it in the cloud, you at least protect yourself from this "Company reserves the right to change the TOS at any time..."
> An analogy would be if VSCode shipped with a fancy CodePlex dashboard by default

Or, for example, a "Deploy to Azure" button...
Me too! Plus everybody calls me "J" or "JJ" because those are my initials and it is universally known that I dislike my name.
Y2k. I get what you're saying, MP3 is going to be around for a long time, but I really don't this whole craze of leaving future-proofing for the future is a good idea.
That option to automatically install security updates is on by default in Ubuntu 16.04, by the way:
http://blog.dustinkirkland.com/2016/10/dirty-cow-livepatched...

Snaps were designed from the beginning to push automatic updates, even of non-security updates:
https://www.youtube.com/watch?v=DLxqdf89hRo
For those breathlessly wondering what the spam announcement was:

https://www.reddit.com/r/modnews/comments/6bj5de/state_of_sp...

/r/spam will be going away. Better automated tools. Moderators (usually) rawk.
This is _so_ on point considering a lot of my customer interactions. Until I go in and go over establishing a process framework that goes through the models in use and sets criteria for their evaluation (even something as simple as ROC), a lot of ML work in companies is mostly tinkering with things (sometimes with wrong theoretical underpinnings) until it performs adequately.

The hype is only real if you systematically work it into measurable process, not virtuoso jamming.
I am quite used to C++ exceptions and strongly favor them against error codes mainly because of error handling decoupling and the fact that exception (unlike return code) cannot be passively ignored - if you want to swallow it you need to do it rather explicitly. If you forget to handle exception it crashes loud and that I prefer.

If anything I would be very please if we got advanced exception catchers in C++. Recently I drooled over Ada exception handling capabilities:
https://en.wikibooks.org/wiki/Ada_Programming/Exceptions#Exc...
Rails 5.1 does not share thread_mattr_accessor variable with subclass
Not sure. My experience with our Self-hosted GitLab instance has been quite great.

I only have some gripes in the UX/UI:

- On GitHub i find the layout / navigation pretty clear. It's a bit hard to explain this feeling, but the information is always well packaged and that makes it easier to grasp (whether we're talking about commit, issues, reviews and whatnot).

- GitLab has definitely improved (even though it's not that nice that you upgrade and everything moves) but still with their layout (probably using too much % of the screen?) i always am confused. I feel there's "too much information" on the screen and that makes it hard to understand where I am and what I am doing.

But I really really love GitLab Pipelines: we use it pretty much as it was intended (CI using Docker images on a runner, manual tasks for deployments, etc.). And it simplifies a LOT our devops.
So far Deep Learning has made this Xkcd obsolete:
https://xkcd.com/1425/

Check whether a photo is of a bird.
The traditional mother's role is compensated. They have their expenses, like heating, electricity, shelter and groceries, paid for by the breadwinner.

They are of course not compensated for what they provide their children, but the same applies to the breadwinner, whose expenditures on the children are not compensated. That's what child-rearing is: an expense in money and/or time.

This is not exclusive to the "capitalist system", and it does not just apply to the traditional mother's role.
No they broke down far more frequently, for different things, and required a tonne more maintenance than modern cars.
I disagree. Even their source-code on Enterprise edition is obfuscated a lot. For a company that preaches open-source they sure are doing everything to keep their own stuff as closed as possible.

Also, a lot of GNOME developers are strong on ethical side of open-source therefore they would never feel comfortable hosting something on closed platform.

GitLab is great choice because it's:

- Open Source

- Self Hosted

- Free (Unless you are going Enterprise)

Yes, the UI sucks and there was this database fiasco. However since it is open-source it is improving and adding new features 10x faster then GitHub.
Using Firebase or similar is akin to opening a restaurant that serves take-away pizzas from a nearby Pizza Hut, after nicely putting them in a porcelain plate.

If Pizza Hut changes the pricing, you either close shop or adapt.

Who would open such a restaurant?
Bomberworld.io
I absolutely second that. I moved from gitlab to gogs being tired of the gitlab setup mess, and it works so well. On the ci side I use drone and both products integrate perfectly
> but now can spend much less.

... or more (for the same amount of homework), if her spouse started earning more.
Complete technical research of WannaCry
Google Cloud IoT Core: for securely connecting and managing IoT devices at scale
> I've lived in a country where live-in housemaids are quite widespread and this kind of behavior would definitely be out of the ordinary, especially among more affluent families. Yes, worse things can happen to housemaids, but I'm talking about the general case.

That's pretty typical of what I've seen in countries like Malaysia, Singapore and China. The maid gets the worst room and in many cases that room is basically an unfinished store room with just concrete. In China, it's usually a bit better, the live-in housekeeper is not locked in the house/apartment with no possibility to go out. Nor do they strip the houseworker before allowing her to go out to make sure she didn't steal anything.

I'm a loudmouth, it disgusts me, and I like to think that I have principles so I make my opinions about the treatment of those housekeepers clear. I've lost acquaintances over this and from what I've seen telling them that what they're doing is right almost never changes things for the housekeepers in question.

I strongly believe that the main issue in all those cases is that the housekeeper lives in the house, this is what creates the abuse, this is what causes the extreme dependence of the housekeeper with their employer.
It DID take a research team and ~ 5 years to get there? :)
Hardenize
Agent 327 trailer: How Blender was used to pull off Hollywood-level animation
No more “J”: Microsoft is finally fixing the Outlook emoji problem
> Well then the C++ standard people are doing it wrong, because something as expected-to-fail as converting a string to a number throws an exception.

I wouldn't say that they are doing it wrong. They throw an exception because they don't want to make assumptions about how you would want to handle the error.

What would you prefer the std::stoi() function to do?
Yes, I understand that, but that seems crazy on multiple levels.

Why the X-Requested-With should be in Vary when the same client did the request? (Yes, I see, Ajax libs populate this field, whereas usual browser navigation doesn't. Makes no sense.)

Why is that resource in cache anyhow, when it should be Cache-Control: no-cache (or at least must-revalidate, but it probably is, but of course that again means that the cache returns the JSON after getting the 304 from the backend, because it doesn't differentiate between responses with different Content-Type)?

It seems to me that the X-Requested-With is again a hack on top of "representational state transfer", because it was easier than trying to use Content-Type.
CBA == can't be arsed?

If so, completely agreed. That was one of Tzu's massive fails, though they supplied same in quantity.
The critical feature of auto complete is discovery, not saving a couple of seconds of typing (its always too slow for that anyways). Even if a plugin exists (which I dont think one does) which has auto complete with in line documentation and method/property details (pretty crucial to discovery), theres not a chance in hell it succeeds in making it presentable in the terminal.

I think VSCode/atom fit in the nice space where you don't want huge, intensive projects, but you do want to do some real programming (aka you'll need this discovery and a good debugger).
Well, if you see the issue where this was enabled, the author had it originally disabled for security reasons so it's not that he's unfamiliar with the reasons why one shouldn't have it enabled. He did it on request from a user while knowing the security risk so that means it's less likely that he's made mistakes so much as yielded to users. And the latter thing is a lot easier to solve.
> but starts by quoting a very high benchmark of $1 billion per mile which is quite easy to beat

Now I know why big companies do those reading comprehension tests...

He didn't say that was a benchmark at all. He explicitly said that was one of the highest costs for tunnels.

> with some projects costing as much as $1 billion per mile
With exceptions, I can trivially pass error information through my whole call stack without any manual work and boilerplate. The whole syntax clutter / OMG-but-try-catch-is-so-ugly is a very stupid argument: with exceptions, you can opt out of local error handling and opt-in at a higher level in the call stack without losing any information. With return code / error codes, this is just not possible. So exceptions declutter application code to a high degree.

Exceptions are to error codes as functions are to goto: there are valid cases where you want to prefer the latter, but they are few and far between.
> Beware of he who would deny you access to information, for in his heart he dreams himself your master.

Excellent quote!
Interesting, it shows how things can move quicker than expected, even when judged by enlightened people.

Is there a way to know the date (1425) was released ?
Pricing mistake 101: You never ever change those old plans. Instead, you grandfather them. Especially so if you're still a young platform and have most growth ahead of you, the "loss" of not charging the new - and supposedly higher - pricing is gonna be trivial 2 years from now, with lots of new projects coming in. But the NPS hit from pissing your most loyal users off and the subsequent damage to your growth curve are huge.

Also, I do love Bezos mantra of always becoming cheaper over time. That is the core of Amazon's brand. Whereas Oracle, IBM, and the old guard always make you pot committed and charge an arm and a leg, the Amazon guys will leave money on the table. That is how you earn trust.
I am so surprised why people buy into some SAAS software that does simple things instead of hiring 2 programmers from cheap location (somewhere between India and Poland western border), getting Hetzner VPS or dedicates server (even the second option is cheap, including a few administrator hours) and be done.

It is not so hard to predict failure/buy out of some SAAS provider, it happened so many times. I am curious why Venture Capital investors are not looking at that problem closely.
Did North Korea Write WannaCry?
It doesn't sound like it's the 'serverless' hosting that is their issue, rather that they have no direct control over the endpoint that their difficult to upgrade client software is hitting. They actually fix it in future versions of the client software by putting controllable serverless endpoints in front of the firebase endpoints they're hitting, so if something like this occurs again they could just change their endpoint to not hit the third-party resource that is costing them so much money.
Either allow you to specify a default value on failure, or take an optional `bool* success = nullptr` parameter to indicate failure.

Or in C++17, return `std::optional<int>`.
Is it a particularly controversial claim?

You can describe any collection of algorithms as a single, more complicated, one. And it seems reasonable to say that humans are quite advanced given we can't yet replicate some of their reasoning capabilities.
I'm all for utilizing standards and whatnot, but I can honestly say I have never emailed an emoji. I generally use email for school or business (or newsletters) and any sort of personal emoji-ridden conversations happen on various IM platforms. Am I alone on this one? Do millennials really use email differently than everyone else?
My exact first thought also... Closed the link after that :)
Searching​ by DOI will give you results. for this paper it is:

10.1016/j.orcp.2017.02.001