skysight-inc/HackerNews huggingface dataset:
I do not write C++ often as i'm not a fan of the language, but when i do... i don't follow any of these :-P. I have my own style which is pretty much an "evolution" of what i see a lot of C++ projects, mainly from the MSVC/Windows world, use.

In short, whitespace is mostly Allman style with spaces for indentation. Names use mostly CamelCase, with some exceptions. Public members go first, protected members go middle, private members go last.

Instance fields have an m_ prefix, static fields that have an s_ prefix and both use javaCase instead of CamelCase. Function parameters and local variables also use javaCase. In the cases where javaCase is used, whenever possible single word identifiers are used. Classes have a C prefix except mixings which have an M prefix and interfaces which have an I prefix, structs have an S prefix, enums have an E prefix, namespaces have an N prefix, templates have a T prefix (not C/S, etc), function types have an F prefix, typedefs meant for aliasing have an A prefix. Exported/imported global variables have a G prefix, static toplevel variables have an L prefix. Macros all in all caps with underscores separating words. Pointer and reference declarations have the start/ampersand right after the type name, whenever possible there is a single declaration per line and only a single pointer/reference use (using aliases for more complex stuff). All types are declared in the global namespace, however functions are grouped in topic-specific namespaces. When inheriting a class and overriding virtual methods, the overrides are declared in a separate block in the class with the comment "// Baseclass methods" or something like that. Other members have a single line documenting their purpose (no doxygen, plain text, i find doxygen comments to be noise, if there is need for explicit documentation it should be in a separate file).

There are other minor things, like how header files are laid out, "getter" functions that only return a private/protected member being inlined, etc but the above are the main stuff. I do not have any of these rules written out anywhere, i just happen to "grow" to write C++ code like that over time. Interestingly my C code style is totally different (snake_case, _t suffix for types, _s suffix for structs, etc).

Here is an example:

https://pastebin.com/anLvHRQ2

It is the model document (as in document/view) for the mesh editor in this video:

https://www.youtube.com/watch?v=rr1Sr9hTkzg
Thanks! We're a student group running an open puzzle hunt for medical/biomedical students who want to learn or practise coding. This is one of our puzzles based on a simplified cell automata model of a single heart ventricle.

We use Elm on our frontend and plan on using it to make other interactive puzzles like this one - we originally got into Elm from HN and it's been a joy to work with, so we wanted to share it back!
We jammed a ton of intermediate layers and hacks into social interaction. Of course they are removed from a natural social habitat. And they will rebel against it. There will come a generation who completely discards everything tained by valley tech.
When will computer hardware match the human brain? Hans Moravec, (1998)
As stated previously: this is useless.

What is the point of building alternative push notification services that can’t even properly rise above the bar of technical feasibility?
It's not like there weren't anything like "basket of deplorables" from the losing side either, and saying that it's always "the other side" that "ramped to 11 seems to be a prime case of "they learned nothing and forgot nothing". It is a problem by itself.

Although I might agree that AOC's and Omar's success is predicated on Trump being in the White House -- in current climate Democrats pretty much have to circle wagons around even someone as vile as them.

By the way, doesn't, say, Al Sharpton predate Alex Jones?
Would he be qualified to state that men and women are equally skilled at physics? Surely you would need the same credentials to determine that.
In the referenced paper the trigger for the filter is lack of novelty, not any specific content. In neither of the cases you present would you be able to demonstrate that a filter like this could be operated in way to discriminate on content rather than on novelty other than by shifting the corpus in a manner that would be obvious to everyone.
It sounds like you're backing in to your beliefs based on what you like/dislike. Is that what you mean?
Borg Backup also has this feature, and so far my experience with it has been great.
The crow hits the bear in the face clearly just before the bear turns away and focus in the easier meal available. The video fades and do not show what happened later but the crow was far from being safe still.

Other possibility would be that the bear was just annoyed by the crowing sound so maybe it was not totally an altruistic conduct. Not easy to evaluate because we lack the first and last part of the scene. How the crow ended in the pool? Maybe was trow there by the bear. We don't know.

> leopard ... would be inclined to save it for later by just caching it (dead) in a tree.

That would be the best way to attract the maximum of flies and predators. Cats are know to play with their preys when satiated keeping them alive as long as possible. It seems that they have a lot of fun with it.
US citizens will need visa to visit Europe from 2021
Guess that's a bad example then, but I am still against using degrees as a credential requirement for basically anything.
Worth noting that if you run your own Restic server you can run it in append only mode.
Go read the indictment of the American justice system. Locking up violent people is racist because comparatively more blacks and hispanics are violent.
The Original Star Wars Movies Have Way More Aliens Than You Think
Has to be Joe Rogan.
Java is a very decent language even in comparison with other modern languages. And the amount of tooling, libraries are not matched by any other. It is easier to hire good Java developers. C# is the only other languages I can think which is as much capable as Java. I was hoping for golang but IMO it is not great for anything other than small command line apps.
You're thinking of another post [0]. Not a joke either, really

[0] https://stackoverflow.com/questions/1732348/regex-match-open...
Amazing, I may steal the idea.
The convention says this because the intent is to introduce measures which are clearly discriminatory (in the way they describe), but nominally intended to prevent violence against women in particular. Of course, a major error on their part is to limit it based on sex, which (regardless of your take on the expediency or righteousness of the distinction) is inherently discriminatory.
> Bottom line: if you’re being described as an abusive boss, you’re bad at your job.

There is such a thing as highly over-sensitive people. There are people who suffer from things like high paranoia, and their paranoia will often be directed at any authority figures in their life. I think you should have left things at "probably".
I'll just say this. Anyone who discourages anybody from even TRYING to learn or pursue a career in science is a bully and a jerk. That's the way the world is going and being tech savvy only makes the world a better place. That said our schools and workplaces should still be based on MERIT. I don't care where the science comes from so long as it's good science. If it just so happens to be more men are doing science than women, then we should make sure it's not because somebody is being shut out. Everyone get's to try and I even mean slow learners who are men and maybe even white. I say this because we NEED science and technological know-how going forward. If someone is so inclined educate them, give them a job. Yes we need more women in science, because we need more people in science, badly. It would be a pity if someday we achieve some quota that we're satisfied with and leave it at that. The world demands more people competent in science than can every fill the need, especially going forward. I personally DO NOT CARE wha the sex of the scientist who did XYZ happens to be. If fewer women get into the sciences or lean towards studying biology or something else, I accept that on one condition, that the DOOR is OPEN for EVERYONE. The country with the most technologically capable citizens is probably the one that's going to lead the world. Science education should be given out liberally and not rationed for an elite few. I personally do not care how the final stats and quotas look. Did every woman sincerely interested in a science career have the support and means necessary to pursue her goals? The answer to the question should be a resounding YES. The next thing is that I don't like sexist people but why make an example out of this guy and fire him? It doesn't solve anything. He didn't harass or grope someone. Go ahead and trash his ideas, discredit him, etc. whatever but leave his job alone. It's savage to fire people just because they have opinions you do like.
I had exactly the same problem, and ended up using Signal. I like it more than normal push notifications because you can reply and have a full chatbot running.

I liked it so much that I even wrote a small Python library for it: https://gitlab.com/stavros/pysignald/
Awesome! I've been working on a collection of news source parsers [1] (a combination of RSS and HTML scrapers) that this will work perfect with to replace my native news app. All I have to do is pipe the lines from my parser through a Python script issuing these message POST requests and it just works out of the box.

[1] https://github.com/wybiral/stream-sources
How does this have anything to do with Hacker News or tech?
People complain about government-funded women's refuges not accepting male victims of domestic violence.

I think those people are wrong, especially if there are male refuges available.
Undermind Episode 14 (A Podcast about Brood War AI Development)
I realize that. What they may not know is how many people have left directly because of that bad manager.
That’s not it. We have all those tools on MacOS which share much of the same underpinnings with iOS
There's problems with just reusing packing peanuts, too.

I have no idea where I could drop them for reuse, or how I'd even look that up local to me. Then how many do I need to take in one trip to be make sense, carbon-wise, for me to make the drive over? I bet it's an awful lot, and I don't really have a place to store packing peanuts for 2 years while I accumulate enough to be worth the trip
We live in a tiny bubble of time that could change at any moment. Our recent ancestors struggled with smallpox outbreaks, measles, and of course the horror that is polio. My mother knew a man who lived in an iron lung! We’re just part of one or two generations that has enjoyed both vaccines, and potent antibiotics, but were only ever a novel pathogen away from reliving the horrors of medieval plague towns. The influenza epidemic of 1918 killed millions of people, and given populations densities and air travel today, such an outbreak would kill far more. Society is no more resilient today if we’re being honest, but it’s more dependent on technology a relative few can understand or repair, and on food and water being delivered to our towns or homes.

If the shit hits the fan, we’ll be in a truly unenviable position.
Indeed. And reddit used Lisp, only to their regret after some time [0].

Such decisions are in fact not simply about languages in themselves. They revolve around languages, availability of libraries needed for the task in hand, community, availability of proficient programmers vs your ability to train new ones etc.

[0] https://redditblog.com/2005/12/05/on-lisp/
Who would need a study to state the obvious? In which Universe is a bullying boss help a company? The only example that comes to my mind is when a corporation wants to reduce workforce but doesn’t want to pay severance pay. But this puts people’s health at risk and who in his right mind could want this?
I’m working for a SaaS company who takes very much care of its employees and I’m asking myself if I am just naive...
I think you are both forgetting about Venus. And kinda Mars.
Open Review https://openreview.net/forum?id=SkfMWhAqYQ
We also see remarkably shallow dependency graphs in the C++ world. Many projects are only a few layers on top of Boost!

I made a few dot graphs if people are interested.
Ken Jennings: What Alex Trebek Is Like
Nasa images of 2 jets' supersonic shockwaves colliding in mid-air
> I've read a bit in a judaism book that the kosher idea comes from the mental struggle to rationalize taking a life to sustain your own.

This seems very unlikely because the stated reason to spare these animals is that they are unclean and eating them is bad for the eater, not the animal.
Could you explain what electron offers here over for example a browser plugin? I'm not that familiar with limitations of WebExtension APIs

It looks like an interesting project but only for a few selected sites. For more random browsing I believe I would be too security conscious (https://electronjs.org/docs/tutorial/security) to allow it

Might be unlikely that some random script on a random site will target Electron but you never know
Trump to propose massive renewable energy cuts
My favorite murder. End of list.
> The survivors (or more, their children) ended up significantly better-off, for a century or so, basically because there was more land per person

Really gives you something to ponder with regard to immigration policy.
>we were loading the van at 11 am.

>he wouldn't have had as much help if he had asked his own -Irish- friends because they'd be too hangover to bother.

6pm might work with irish folks, though.

I mean, I love my friends but moving their furniture at, say, 9am on Saturday is just... not gonna work.
> If you or others you know of are involved in any of these kangaroo court type situations, it does help to hire an attorney to try to get these kinds of proceedings taken out of the kangaroo court system whenever possible and as soon as possible.

Understand that in the US students have no rights to challenge a college's rulings, whether it be a public or private institution. They can absolutely do arbitrary decisions like expel you.

I was in this situation. A friend did a stupid thing and police were called. I had filed a witness statement with the police as supporting evidence that the stupid thing he did was not malicious. Instead of a criminal charge, he got a petty disorderly persons charge.

School didn't like that, the police got their blood but the administration wanted to power trip. As I was signing up for classes for next semester, I noticed the system had a financial hold on my account. So I contacted the dean of academics, which responded by email saying that by student handbook regulations I would have to give an account of what happened on school grounds, this was procedural and no charges were being brought against me.

I go to give my account with other student witness, the 'kangeroo court' was made up of 50% administration, 50% student body. I was given a school advocate. I told them they had an official account from my police witness statement. They informed me that they were looking to sanction me, but wouldn't state what they would do that day. I told them the dean had said there would be no charges against me, I was literally only a witness. I demanded due process, claiming that since I hadn't been informed of potential charges/sanctions I wasn't given the opportunity to retain legal advice. They said they didn't have to abide by any sort of due process. I had to wait a week for the outcome of the tribunal to come in the mail. I was to have my records marred by the event, would be forced to do an absurd number of community service hours, letters of apology, and a paper about the event.

I hired an attorney and spent 2 years in civil courts fighting. The school retaliated by expelling me. They also did things like tell the other witness that they would have reduced his sanctions, but because I was challenging them he would have to serve out the full amounts. It was a gigantic waste of time and money. I did get my credits out and was able to continue on with my life but there was no other upside to this.

The disgust I have for US university administration knows no bounds. Going to university in the US is like living in a concentration camp: the goal is not to challenge the masters, but rather to keep one's head down and survive.

EDIT: Best part of the above. School couldn't touch the guy who was charged. He paid a small fine and the record was sealed after a year of no charges. Through the entire ordeal I had the support of my fellow students and the faculty that believed such things were not possible. It absolutely is and I have a large stack of court precedent detailing prior cases that have gone to trial where the school was affirmed in its absolute power over students.
Cool. Thanks. So I take it you primarily write code leveraging the Unreal engine but the point-n-click functionality of the Unreal editor is more utilized by people doing the world design and artists?

I've explored Unity a small amount but I was really turned off by the overly simplistic approach to game development. The whole scene-first approach where you'd just drag in your hero object, set some attributes, drag and drop some enemy objects, etc. It reminded me heavily of Flash game development 15 years ago.
But are they good for the COMPANY?

That's what matters.
Meanwhile people (though broadly, it appears, a different set of them) also appear to be unwilling, to the point of delusion, to accept the fact that it is meaningless to attempt to extrapolate from statistical phenomena to individual, or vice-versa.

So, sure: stipulated. Male h. sapiens sapiens have statistically greater variability, across the population. That in no way whatsoever prevents a woman from being the biggest or smartest, or a man the smallest or weakest, or either the best at one job, or the worst at another. Population trends are population trends. They do not meaningfully constrain individual expression.
I wonder how much "recycling" ends up blowing around the neighborhood and getting mowed over because of people using old buckets or the classing "recycling bin" that lacks a lid or any way to contain the contents when it's windy.

I live in Kansas, we get a lot of wind. I pick up an enormous amount of my neighbor's "recyclables" that have clearly spent a long time blowing around before they land in my yard. We need to mandate better receptacles.
If we are seeking truth, as we do in science, we must accept that there can never be anything wrong with attempting to analyze whether A outperforms B, no matter what A and B are. It doesn’t matter if it’s offensive or politically incorrect. So, what he did seems to be no more “overt” than attempting to analyze which thruster design is most efficient.

If he’s wrong, the most appropriate and most effective rebuttal is a dispassionate fact-based one, not a moral one.

There are going to be some things we learn that we don’t like to hear. I have no idea if this is one of them, and I’m not the person to ask.

Either he is correct, and we have to deal with it, or he isn’t, and we don’t really advance (or worse, we regress) until someone examines the subject more closely and provides something closer to truth.
I'm nearly 50 and decided some years ago that life was just too short to bother accommodating people who are assholes. Perhaps he's brilliant, but there's quite a lot of brilliant people around and if there's a discovery just waiting to be made it's more likely that someone else will do than that the opportunity to make it will be lost forever.

I'm not arguing that everyone has to hold the same views, but if your need to have your views heard is so pressing that you're willing to damage the social cohesion of your peer group or team to the point that they can't get anything done then it better be something super-important like the lab being on fire or the discovery of fraud or catastrophic professional negligence.
Not necessarily, if she enlisted someone else to do it.
Measuring Software Teams
Americans Will Need a Visa for European Travel Beginning 2021
https://pcpartpicker.com/trends/internal-hard-drive/
You are generalizing. I am aware of several unicorn startups have have moved all their engineering operations to India paying huge big bucks.

Now, the WITCH companies are into the BS jobs, jobs that help American economy be far more efficient.
Europe also had a shared language of scholarship (Latin) and a political institution (Catholic Church) that made it easy for information and invention to travel across nation state boundaries.
California could raise a tax, let’s call it a “CRV” tax for container redemption value, and then use it to subsidize curbside pickup of pre-sorted recycling.

Seriously though, at the current 5-20 cents per container crv tax, how can recycling in California not be profitable for the state?

Where is that money going?!?
When I first heard the term “sprint” I thought it was surely being used so they could later make some point like “since sprinting is of course unsustainable, we introduce weeks of relaxation between them”... Nope!
Vet and former high school hacker here. Just saying.
No and he would still be just as dumb for using weak science and fake research to justify the position that he is unqualified to assert. But obviously there wouldn't be as big of a reaction from the scientific community because the assertion wouldn't have been tinged with vitriolic bigotry.

Any other weak what-ifs you want to discuss?
Even if something seems obvious to you it’s still best to verify it rigorously.

From a cynical point of view a bullying boss might be able to extract more working hours out of employees, or get them to upsell products at places like Best Buy.
Wikipedia: Outline of Roget's Thesaurus
Yeah I watched a documentary on what happens to the imported 'recycled' plastic, and stuff was blowing away in the wind, burning, kids were picking thru it by hand, etc. I'm not surprised that China would want to put a damper on the whole thing.
He didn’t publicly ridicule anyone. His comics are not offensive, and I found them to be pretty on point.
This is how a huge chunk of the Windows or Windows-trained world writes C++. You don't have to like it but it's recognizable and common.
just write a Twilio or Slack plug-in?
I just read the marketing material for Delphi and I beg to differ. I thought Delphi was a curiosity last heard of in 1993. How wrong I was.

According to the tick boxes you can rapidly develop for any platform and deploy everything without waiting around. I have no idea why anyone would want to develop in anything else. If the client could not find a developer to take on the project they could be up and running pushing all the features by teatime.
Sands convention center in Las Vegas just has trash cans that are marked with a label indicating the whole waste stream has recyclables sorted out of it. who knows what the truth is.
Your use of parens in the first sentence made it difficult for me to parse.
I see it covering the same use case as CC0, which is trivial bits of code that benefit mostly from mass adoption. In the case of this license it would be useful for code fitting that description which also may be covered by patents.
> Cats are know to play with their preys when satiated keeping them alive as long as possible.

When they do, it doesn't look like what the leopard was doing with the calf. They don't "play" in that sense, they just incapacitate the prey so it can't escape and "play" with it until it's dead. Definitely not what the leopard was doing.
How is a GET request easier? I assume you need to include authentication somehow, so it isn't like you are triggering it by typing the url in a browser.
Is that because zune is only searching among a small set of song names, not among all possible strings like the phones do?
Sledge a site builder that will let your fun