skysight-inc/HackerNews huggingface dataset:
Ask HN: Which parts of C++ do I need to learn in order to use Qt?
I am looking to write a cross-platform GUI to sit on top of, and display the results of, some number-crunching algorithms. (The code to do the number-crunching calculations has already been written in C.) The consensus seems to be that Qt is the best toolkit for such cross-platform user interfaces.

Unfortunately, using Qt requires writing C++, a language I have very little experience with. Which parts of C++ do I need to learn in order to use Qt?

For example, it seems I will not need to learn the details of exception-safety in C++, as Qt does not use exceptions [1]. Similarly it will not be necessary to learn the details of the standard library containers, because Qt provides its own versions [2].

Are there any other parts of C++ which I can safely ignore if I only intend to use the language with Qt? Is there agreement on a subset of the language which forms "Qt-flavoured" C++?

[1] http://doc.qt.io/qt-5/exceptionsafety.html

[2] http://doc.qt.io/qt-5/containers.html
I would argue, and I could be wrong about this, but there is so much diversity in the human population that people really need to do "self experimentation" and go for a diet and lifestyle that maximises how good they feel.

re: "A single person's biased self-analysis isn't particularly valuable." I was not asking the other poster to accept my results, but rather suggesting that it would be worth the effort to do the experiment themselves.
+1 for SSO as a worthy feature
Ethics and the Algorithm
Yeah, sugar from fruit. Not refined sugar.
You probably just reduced your calorie intake. There is scant evidence that those sources of carbs matters at all in the sense that they are somehow worse than other sources of calories. But fair play to you for doing something. It's genuinely admirable.
What did someone do that made you think they were really smart?
I cut back my sugar intake for half a year (bread, chocolate, sodas, etc.) and felt worse, my digestion becoming more erratic and irregular. Right now, I am enjoying a couple of pieces of delicious chocolate while laughing about the people who demonize certain classes of food. We know embarrassingly little about our digestion. Who knows, in 30 years we will say proteins are the devil and then we go back to hating fats. You have to go absolutely crazy on sugars to cause diabetes. We are talking about 'regularly skipping meals and then compensating by eating a couple of chocolate bars' crazy.
Very good article. I might add that a further pitfall in being "highly mathematical" is when you assume that the person you are communicating with is also "highly mathematical" and therefore has similar habits. That's not true MOST OF THE TIME and can lead therefore to severe misunderstandings.
I assume it's about the salt that is dumped back into the ocean after removing the water from it.
Differential dataflow roadmap
What are some good alternatives to Kickass Torrents?
Unlike other add-ons you disable, Pocket will still always be in memory after you disable it. See `about:memory`.
No. Tobacco companies are not moral agents.

Such a scenario might well involve individuals engaged in banal evil and because individuals are moral agents, that's where blame and praise may accrue.

Anthropomorphizing a tobacco company muddies our thinking. A trade agreement is a document. The consequences of following the ideas in that document may be detrimental. But it is not a moral agent.
I agree that folks are latching onto any "proof" they can find even when it's not true. I don't know what those devices were, but there are white noise devices that look like that. Also, it's not unheard of for these devices to be used by Clinton. Take a listen to these before/after videos. http://www.huffingtonpost.com/entry/hillary-clinton-static-n...
The answer to this problem was much easier: a solid Android browser in every Android marketplace, with an easily-extendable architecture. There was no need to go full-OS. Of course, it would have been less fashionable from a development perspective.
> IQ is an imperfect predictor of many outcomes.

It's _very_ often the best single predictor.

As the article you quote puts it:

>IQ is an imperfect predictor of many outcomes. A person who scores very low on a competently administered IQ test is likely to struggle in many domains. However, an IQ score will miss the mark in many individuals, in both directions.

If IQ test misjudges 5-20% of applicants, it's still hell of a predictor.
It seems that marriages in capitalist societies are inherently unstable. If rights are equal, then women are incentivised to divorce to "cash in" the value of their husband. If the rights are unequal, then men are incentivised to divorce to "trade up" to a more attractive wife.

It's only agrarian societies that manage to make husband and wife dependent enough on each other that divorce is a bad option for everybody.
I can't speak for anyone else, but I know when we've talked to real lawyers about T&Cs for online B2C services (based in England) their view was similar to the judge's comments in this case. In short, if your terms are fair and reasonable then it's a binding agreement and it is likely to be upheld by a court in the event of a dispute. However, if you have an unusual or potentially surprising term then it is more likely to stand up if it's prominently disclosed near the start of the terms, and less likely to stand up if it's buried deep inside. For example, in the terms for a service that was doing something new with a certain technology, we included a short but realistic note about certain known limitations of that technology prominently and early. As an aside, the same legal advice recommended writing in plain English rather than legalese as much as possible.
Not anymore :) I've gotten 3 emails from employees there after this thread. Mind if I ask you why you removed it?
Huh? No.

Dishonest marketing does not infringe upon your property rights. I've never heard any libertarian claim that limiting speech, for any purpose, is justifiable base on libertarian ideals.

Where do you get that idea?
Cultures change. Changing gender imbalances are one of the driving forces of said change.
Whoa, authoritarianism? Who said anything about authoritarianism? All prosperous economies are quite heavily regulated. You sound like that messianic group in the 40s and 50s of Milton Friedman, Mises, Hayek and friends who believed that the market solves everything. No one is proposing communism; no need to dig up the politics of the Mont Pelerin Society.
curious, what are the regional options? singapore comes to mind but is extremely small and i presume therefore limited/difficult. are malaysia/indonesia/vietnam open to skilled immigrants?
Also, check out Vipassana meditation.... It is not a guided imagery meditation but rather the use of our breath and awareness of our bodies. I found it to be the answer for me (guided meditation felt to whooo hooey for me)... Star breathing technique is awesome because the control of breath helps us to calm ourselves in all situations and the awareness of our body gives way to knowledge of how we react to stress or lack of sleep, etc... Truly a valuable practice!
It's practically modern culture to be negative about everything. When there are two equally probable outcomes I've noticed that people tend to lavish on the negative one to exclusion and treat people with positive outlooks as annoying, chipper, ignorant, or immature. It's odd. My theory is that positivity requires some claim of responsibility over the outcome while negatively allows one to divorce themselves from it.
>Statistically speaking, women are indeed more than men, but the mating process is not statistic.

Now it would be fascinating if people could generate probability distributions that accurately describe social-economic systems/relationships like what I would say that you accurately describe quantitatively.
Ohh yeah thats what all that evidence after he stepped down pointed to. His long history of bigotry and many many examples of his specific intolerance towards any specific persons.

Instead of judging people on their technical merits I propose we totally start to judge them on how well their ideology lines up with ours. That's the best way to promote diversity and ensure technical capability. Clearly it has worked well for Mozilla
There has been new legislation passed that starting..next year?..labels will have to show total sugar and added sugar, so you can realistically get a sense of how much is original vs. additive.
I wouldn't bet on that, they are really different.

Some of the most blatantly off-putting characteristics of school math, like mindless repetition, are antagonical to real math.
Calculus doesn't have any true rigour/precision. That's why it's not analysis.
A man is not fungible, but 600,000,000 men are.
Not true , 80s OS language for home computers was 100% Assembly, z80 assembly to exact. Basic was provided as an easy to use scripting language. Modern web tools and languages and frameworks are bloated and fragmented. Actually the only thing that keeps the 80s nostalgia is modern implementations of Smalltalk if you come from Amiga , or lisp if you come from command line CP/M OS. Web Dev is a huge pile of mess and I am surprised how you consider anything but the exact opposite of the 80s home computers.
Uncaught TypeError: xScale.rangeBand is not a function in D3.js
Because distributing child porn is not legal?
Came across this Dijkstra quote via https://www.youtube.com/watch?v=GqmsQeSzMdw

> The purpose of abstraction is not to be vague, but to create a new semantic level in which one can be absolutely precise

By taking away all the non-essential things and leaving only on what you need, it allows you to truly understand the structures that you are studying. Definitely rings true when I work in ML/Haskell-style type systems. Easier said than done convincing the students though...
I think I might be wrong about this, so apologies, I stand corrected. For myself, staying away from processed foods (which means eating less sugar), has made me feel much better. As a result, when I read about the problems with Candida and it resonated with my own experiences and I came to biased conclusions.

I do take supplements specifically to reduce the amount of Candida in my gut (probiotics and caprylic acid) so my feeling of better heath in the last 4 or 5 years of avoiding processed foods might also be a result of these supplements and not just avoiding processed foods. I feel better, but I can't pinpoint why.
Clinton campaign servers were accessed as part of DNC hack
> I think that the topology [emphasis mine] of the javascript language is perfectly suited for front-end development.

What exactly does “topology” mean in the context of programming languages? Are you trying to pull a Derrida (using fancy words without any actual meaning)?

> I'm actually amazed that people who designed Javascript got it so right.

Are you assuming that, even with a better language, the DOM's crappiness was inevitable, and thus we need a loosey-goosey language like JavaScript to deal with it? I doubt this is the case. Good languages make it easier to design good programs and APIs.
Definitely agree. If you want a remedy for the specific problem of audio and video, you could come up with some browser + youtube-dl integration. I've been using such a setup for the past year, watching web audio and video in mpv. It's great to have a consistent video player interface, as you said, but you also get powerful features you don't often see in web players, like gamma adjustment, playback speed control and an audio compressor.
Galaxy Note 7 Apps and ROM for Note 5 and Note 4 (Grace UX)
No, I wasn't kidding. My cab experiences in Boston, going back to 2008, well before any Uber competition can apply, have always been good -- perfectly normal with no serious complaints. I'm not saying the cab drivers poured me a glass of champagne or something, just that they had clean, newer cars with functioning card readers, they were on time, and I didn't stand in very long lines except a few times at the airport.

It is very telling that when a person describes his taxis experiences in a super boring, uncontroversial and simple manner: i.e. that the taxis are just normal cars with credit card readers and you should expect a perfectly normal experience if you get in one -- then everyone here acts like I'm giving some kind of gushing, outrageous praise to taxis, and acts indignant that I don't describe taxis as basically the car Fred Flintstone drove but with killer bees inside.

It's crazy that people are so adamant to do social engineering for Uber that they won't even agree to entirely uncontroversial claims, like most taxis in Boston are clean or have functioning card readers -- things which are indisputably accurate.

I'm not saying you should dislike Uber. I'm not saying you should ride in a taxi. I'm not saying the taxi services are perfect. I'm not saying there are zero bad taxi experiences.

I'm only saying that most taxi experiences in Boston are perfectly uneventful, normal rides that completely meet the expectation of the riders, and don't suffer from the hyperbolic criticisms here.
> it might mean not everyone will ever go to said parties

It only means that as long as people think "better" technology is the answer. I think the answer, if it comes, will be in the form of a new take on the incentive structures ("economics") involved, which will probably require some new technology, but will not be driven by it. It isn't a hopeless battle, it just isn't one that will be won with technology alone.
Ask HN: Alternative to jottit.com
Hello all,

As many of you know there was a product from Aaron Schwartz called jottit.com. Site is down for a long time. Do you know some alternative where you can create an instant web page w/ or w/o registration? Markdown would be cool.
You don't need actual sugar. Some carbs that the body turns to sugar perhaps.
Not all the time, but common enough that no one is shocked and it's not a secret that business men engage in these activities.
Hold on, you have a giant non sequitur.

For example, suppose the conversation were about entrepreneurship, and your parent comment maintained that anybody coudl start a corporation "easily" and for about $100.

Now, suppose you replied:

>If it were as easy as you say, everyone would just do it. 97% of US adults have never owned a company.

>It's obviously a lot more complicated and harder than taking "simple" advice.

First, why am I using this example. Because we can all agree that actually, yes, anyone can pretty much start a corporation for $100. It's true. It's also true that 99% of people don't.

That doesn't make starting a corporation 'harder'. It takes certain steps, and you have to go through with it.

Whether 1%, 5%, 10%, or 75% of people have tried starting companies, has no impact on its difficulty.

Likewise, whether 20%, 30%, 50%, or 90% of people are obese, does not influence the dfificulty of not being obese.

Perhaps in the future only 1/10 people will be able to maintain an athletic, fit, weight. Perhaps they will have to throw away 80% of what they're served at restaurants, because they simply cannot order anything that does not have 2500 calories, whereas they want to eat 500.

This is not far from the status quo in America.

So, while it is certainly "easy" in a sense not to overeat, it's only "easy" in the same way as starting a corporation is "easy".

It's easy on paper.

If your parent argues that people should 'just do it' -- he's probably right.
> The people who care about sugar intake avoid Milky Ways and similar candies already.

This may be true, but this statement is also missing the (possibly large?) group of people that simply have no benchmark in their mind for how much sugar is acceptable.

I've read several competing articles about daily limits to added sugar, and the number I have in my mind is 80g/day max. Given that a teaspoon of sugar is roughly 4g, this amounts to 20 teaspoons of sugar per day! I've wondered if nutrition labels listing sugar in terms of teaspoons instead of grams would help people visualize exactly how much sugar they are consuming.

I would agree that those who care about sugar intake probably will avoid Milky Ways, but I'm also concerned that if we don't have a % DV on sugar, people will perhaps assume that there is no ceiling. Why do we have % DV for fat, carbs, etc., but not sugar? Hmm, well maybe it's that no amount of sugar you eat today will harm you.

As a curious experiment, walk down the street and randomly survey people for how many grams of sugar they think they should limit themselves to.
I agree with this very much. The WMDs are an example of intelligence errors as casus belli. It's important to keep in mind the political context as well, with Cold War II emerging from the last NATO summit http://www.salon.com/2016/07/12/the_west_escalates_with_russ...
Global warming will be fixed in the same fashion - via a mass market, technological solution.
> I don't disagree but would argue that the far more common problem is people - not just mathematicians, mind you - not considering definitions enough which ultimately leads to confusion and/or misunderstandings and consequently additional, unnecessary, cycles spent in discussion about "what do you really mean?"

It's all a difference in context and environment. When talking through the specification of a product your building and prerequirements for it, nitpicking the definitions will save you pain and money.

On the other hand, nitpicking whether someones analogy in covers exact 100% cases of the issue while ignoring the point of the conversation will just make you look like an arsehole in front of the group of people. And the latter is still painfully common on HN as well. As the article says - understanding when some detail is important for the current conversation is an important social skill.
I agree with you 100%.

But that is not usually considered libertarian.

A libertarian scheme would usually be like 'certification should be a business, and foods should be certified sugar free by a specific certification company, and bear that company's sugar-free logo'.

Which I think is highly impractical
One into Food
Namibian Schoolboy Invents Cellphone That Make Calls Without Airtime
They also make it very hard to run the sync server on your own :(
My libertarian view: Let companies add as much sugar as they like and consumers shall decide what tastes and feels best. If there's too much sugar inside your food, nobody's gonna buy it. Not the government should decide how much sugar I eat, I should decide that. Everything else infantilizes the people. The only thing that should be illegal is actually lying about sugar content.
Exploring a Minimal WebAPI with .NET Core and NancyFX by Shanselman
how much sugar were you eating perviously?
>Were we exposed to fictitious narratives intended to advance pro-Russian agendas? Was truth revealed, without manipulation of content? It seems to be the latter.

Why assume the " narratives intended to advance pro-Russian agendas" need to be fictitious in order to be effective? You're presenting a false dichotomy that either the Democrats are corrupt, or Russia had nothing to do with the hacks. It can be the case that Russia exposed Democratic party corruption in order to advance their own agenda.
The natural sugar that is in milk is lactose and that is not really a problem (as long as you are not lactose intolerant of course).

The problematic sugar is refined fructose. That is the stuff cannot be properly processed by the body and causes all kinds of chaos for your metabolism.

Even naturally occurring fructose, such as in fruit, is ok. But once you concentrate it into crystallized sugar or HFCS, it becomes a slow acting poison.
High School math (often) is all about memorizing a few tricks from the analysis of real numbers and maybe elementary number theory/combinatorics. I think there'd be more mathematicians if people got to see what math is like in actuality. I fell in love with math when I discovered that it's an actual body of knowledge complete with definitions, concepts and proofs just like any other discipline. Compared to that high school math (loosely) could be said to be a bunch of party tricks with no rhyme or reason to them.
> By taking away all the non-essential things and leaving only on what you need, it allows you to truly understand the structures that you are studying.

This is the essence of type abstraction and parametricity!
But how many of these men are actually desirable by the women?

The services in the article cost upwards of $10k which means the woman in this case might be married to a rich high status man, which is arguably difficult to come by.

If you are a women age 28 married to a high status man for say six years, you probably want to keep that man instead of trying to find another one.
But I use the surface TypeScript syntax for the book examples. It is a clear and concise notation, which is why I like it for this use case.
There is no limit to satire , there is only limit in the head of uneducated people.
The debate need to be shut before it's even opened. You should not have to censure yourself (when doing satire) because you are scared of offending people. Otherwise , any group can claim to be offended by anything , and you give them power on you. What if vegetarian decide it's offensive to eat meat ? What if I decide that eggplant are offensive ?
What if I decide it's offensive to be offended ?
There is no end to this. Let's limit freedom of speech at the hate speech mark and allow the rest , legally and in practice.
Lost my job in technical recruiting.... I've always wanted to travel and live and work round the world... Seemed a pipe dream with costs, family obligations, financial obligations holding me home.... My daughter said to me, "Mom, you can look for a job and network from anywhere in the world... Where do youngest to be? Just go there and work from there!"

Holy cow, could I actually do that?!

I began to change my limiting thinking, and tweaked the way and with whom I was networking with.... I began telling people what I desired in the way of working and living abroad... Low and behold I am recruited for a position abroad!

The company sponsors my visa and I leave in 2 weeks!!

My aha moment came with the encouragement from a lived in line to follow my dream, my desire, with the thought that it all was actually possible... And it is!!
I took parent's comment to mean it's about philosophers who deal with logic. You may recall that logic as a tool free of opinion originated with Aristotle, and the first thing that comes to my mind in this context is Principia Mathematica.
Yeah. That makes sense. My run steps are in Ansible, so it made sense for me to make something that‘s just a packager. The nice thing about Cartage is that it can make use of already-vendored packages (old way) or you can create the deployment package from a developer machine. I really should write it up one of these days, but I’m so busy getting my team’s pipeline fully fed that I haven’t had time to properly shout out about Cartage (because, frankly, it’s kind of awesome if I do say so myself).
>There is scant evidence that those sources of carbs matters at all in the sense that they are somehow worse than other sources of calories.

what about glycemic index? Surely foods with high GI are demonstrably worse?
And it adds nothing to the conversation, and has spawned an entire subthread of comments like ours which also adds nothing to the conversations. Its exactly the type of comment that should be banned from HN.
I use opendns, the black/white-listing is a bit unrefined IMO, it does work though. The limit on the list length is quite tight on the free tier too.
what about athletes and body builders who do carb/sugar loading?

What about ppl who eat greasy food and don't exercise?

Als, Wouldn't this merely penalize poor people with long hours and long commutes, poor people who are forced to live in food desserts, poor people who only have enough cash to buy bad food, poor people who have to feed a family of 5 on minimum wage.