skysight-inc/HackerNews huggingface dataset:
Originally, there was the stand alone version of docker swarm, invoked using "docker-swarm". This was more difficult to set up than version 1.12's new swarm mode, invoked using "docker swarm", which does almost the same thing, but more succinctly. Presumably, they chose the same name because they serve the same purpose and, if the latter is set to replace the former, why come up with a new name for basically the same concept?
Dts2nim: TypeScript to Nim binding generator
At least in the world of electrical engineering, you are quite incorrect. There are masters and slaves all over the place around here.
The API for malloc is very simple:

void* malloc(size_t len);
void free(void* ptr);

Basically, ask for an amount of memory, and give back a pointer to memory. But it does not allow you communicate anything but the amount on an allocation, and you can only give a memory pointer on freeing. If, for example, malloc had an interface like:

void* malloc(size_t len, duration_t dur);
enum duration_t { SHORT, MEDIUM, LONG};

One can imagine you could optimize based on the given hint. Once you open up one kind of hint, you can imagine many other kinds of things users could communicate explicitly to the memory allocator about the allocation and access patterns of their data.

All implementations of free also need to find the related metadata for the given pointer. We could also imagine an interface for free which required the user to maintain that, but could perhaps speed things up:

void free(void* ptr, meta_t d);

Or, we could also imagine communicating how important it is to free this memory:

void free(void* ptr, immediacy_t im);
enum immediacy_t { IMMEDIATE, DELAYABLE };

In the latter case, maybe the memory allocator could put off doing delayable requests, and do them in a batch later. (Making it a bit more like garbage collection.)

I'm not sure any of these ideas would help, but the point is that because of the limited interface, we really can't explore them. We can, but then convincing the rest of the world to change such a basic building block of C code is quite hard.
Honestly, I don't think I could afford the therapy that I would need to re-live that part of my career in the detail that it would take to do a proper write-up. To this day, I still have no idea how an Android project actually winds up getting built, and their build system philosophy seems to boil down to "keep adding layers of magic, each making lower levels of magic harder to hand-edit and understand".

Most of the difficulty to be honest was with: 1. third party libraries, and 2 the Android NDK.

For third party libraries, every one was slightly different in some frustrating way. Some of them used bog-standard makefiles (thank you, third party developers who do this!), so they basically just worked. Some of them used autoconf/automake, which makes me sad but you can generally get cmake to mate successfully with them. Some of them helpfully had their own CMakeLists.txt, which would build the library, but invariably could never be successfully integrated into a larger project. Some non-open-source libraries came with just one platform's build support, so you'd have to hand-build CMake support for them, and guess which files actually needed to be built/linked. Some of them cleverly generated some of their own source files during the build process ("This is fun to maintain" said nobody ever).

The Android NDK seems to be some Googler's frankenstein hobby project that got accidentally electrified into life and set loose on the world. Like Donald Trump, the NDK is kind of an embarrassing offshoot from the "mainstream Android development story," one that Google would like to pretend doesn't exists. They, in fact, tell you in their docs "Yea, you can use native C and C++ to write Android apps with this thing, but you really shouldn't!" [1] Seriously, their "Getting Started" guide spends a paragraph or so trying to convince you not to get started. Convincing Google's own development tools to build C++/NDK is pretty frustrating itself, so you can imagine how difficult it is to convince cmake to do it.

In short, if you are working on a project that targets desktop, embedded, and mobile platforms and has lots of third party code, and one day that little voice in your head starts saying "Hey we waste a lot of time maintaining separate Makefile, .xcodeproj, .vcproj, etc. Why don't we switch to a single glorious build system that lets us list our source files in one place!?" IGNORE THAT VOICE. Go play some foosball, fix a few bugs, have a cup of coffee, but by no means try to use cmake for this.

1: https://developer.android.com/ndk/guides/index.html
Can you kill it? Unnecessary Ubuntu Server startup processes
I've really enjoyed these two talks by Nickolas Means.

Skunk Works - https://www.youtube.com/watch?v=ggPE-JHzfAM

How to Crash an Airplane - https://www.youtube.com/watch?v=S2FUSr3WlPk
How Cuts to Public Universities Have Driven Students Out of State
The problem with addicts is that they are born addicts. That is to say that addiction (to drugs, to food, gambling, video games, sex etc) is a disorder of the brain. It is something some people are born with and some people are not.

Addicts "make poor choices" because their brains are wired that way. What the government needs to do is provide options for addicts to re-learn how to cope with life without resorting to their addiction.
HN has always had this pluralistic bent, because that's the way the site founder is. The word for pg's taste is 'catholic' in the original sense. So the appearance of a book on child-rearing isn't a decline or even a change; the question is whether the book is interesting, not what it's about.

It would be concerning if unpredictable, unrelated things didn't appear, still more concerning if all the things made sense and were correlated with some (any) convention, and most concerning of all if the convention were that of a majority.
Belize Fugitive John McAfee's Next Company
Microsoft Visited by Zinc-Air Battery Startup
Thank you all for the conversation around this!

The security team at DigitalOcean has been working to ensure that DO is a safe place for security researchers to identify issues on the Internet as well as at DigitalOcean - security is in everyone's interest. We encourage researchers to contact us when they want to use our platform for this type of work specifically so that we can avoid the types of pain that Matthew encountered while doing his experimentation.

Feel free to reach out to security@digitalocean.com and we will be happy to help.

Nick, DigitalOcean Security Director
I was providing an example of a host that provides FreeBSD support. To be clear, I don't think Vultr is a good host so I'm not really sure why I mentioned them to be honest...
> It would be like saying studying malaria and not reporting your findings makes people less healthy.

That isn't necessarily an absurd thing to say in some circumstances, but let's take a different angle.

A striking difference between information security and microbiology is that the information necessary to attack someone and the information necessary to defend against attacks are almost identical. (People can develop an exploit from a patch, or a patch from an exploit, in a matter of days or hours. And they expect to be able to do so; if we had a working exploit or a detailed vulnerability description, we'd be very critical if a vendor couldn't patch promptly solely on the basis of that information.)

In microbiology, there is a relationship between these two kinds of research or capability, and biomedical researchers sometimes produce more virulent pathogens as part of their research, but overall the relationship is dramatically more attenuated. There are pathogens that researchers have had samples of for decades that they still haven't produced a successful prophylaxis against. And just having drugs that treat infection, or vaccines, doesn't automatically allow someone to cause infections or epidemics.
>and liked my other VPS better anyway

Which ones?
Ask HN: How to make smart chatbot?
Surfing the web I can find a lot of information about how to make chatbot. Mostly it will be how to use FB or Telegraf API.

But I wonder does anybody know scientific approach how to make assistant? Where with out deep NLP and ML knowledge I can make my own chatbot.

PS: I have expirience in ML and small expirience in NLP. I want to try Google Syntaxnet.
Theranos to Appeal Regulatory Sanctions
Maybe "increasing anyone's health risk"?
Was it a cloth?
So does DigitalOcean.
GiveCampus is hiring Ruby engineers – end crappy software in education
We are working to bring great software to educational institutions. Too many are stuck using software built in the 90's, or making do with what's out there, and not having it work well for their purposes. Our mission is to ensure that schools have the resources they need to deliver the highest-quality education possible, and that education is affordable and accessible to everyone.

You can read more about what we do, and how we do it, in The Washington Post (https://www.washingtonpost.com/news/grade-point/wp/2016/04/1...).

Who we are looking for:
- Ruby and Rails expert - Comfortable working on the front-end and back-end, but skews toward the back-end.
- Enjoys building new features, from idea to supporting it in production
- Passionate about education

We are a team of four, and are really excited to bring high tech to the education space.

Please email careers@givecampus.com with your resume, any past projects you're proud to show us, and a note about yourself to apply.

We are based in Washington, DC, and are looking for people here, in the SF Bay Area, or someone who wants to to move to DC.
Kubernetes security issue inside kubelet
Verio's big play was in the transit business; they ultimately became NTT America.
In Java with maven as a package manager:

a. Different build goals with different settings in a build file.

b. Build steps can be changed in the build file but there are a lot of sane defaults.

c. Plain constants and if statements. The compiler optimizes away dead code.

d. Code gen is done as another step before the build and not really a task of the compiler.
>The only way that the NSA could be actively making systems less secure would be if they were putting vulnerabilities into the source code or silicon.

I just wanted to point out that the NSA does that.[1][2]

[1]http://www.nytimes.com/interactive/2013/09/05/us/documents-r...

[2]https://www.grahamcluley.com/2013/12/nsa-bribe-rsa-encryptio...
Ask HN: Running web app and database on the same VPS?
I know this question is very broad, so I'm really interested for small projects that can actually support both.

What are the pros and (mainly) the cons of running a web app and the DB on the same instance/droplet of a VPS?

Finally let's keep this on the two most popular DBs PostgreSQL and MongoDB
He didn't steal anything at all.

All of those domain owners are free to change their nameservers at any time.
I remember hearing a podcast about the idea [where 'client' is used in the software sense, not the person who pays a consultant money sense, though I suppose that might not be a bad idea]. It was probably on SE-Radio or perhaps Hanselminutes. Hanselminutes probably has better search.

So here's my vague eyewitness account. I make a 220 mile round trip about one evening a week and listen to podcasts. I have a vague recollection of where I was when I heard the idea and based on that I have a rather uncertain feeling that it was in the context of Google and rewriting their software updating system in Go. But that could be totally wrong.

Good luck.
What makes it different from reading a book by a dead author?

I ask this question genuinely because neither case seems particularly weird to me, but watching a film and realizing that "everyone in this frame is dead" or "everyone who worked on this film in any way is dead" is somewhat creepy to me.

The difference is weird. Which is why I ask about what seems creepy to you. Could it be that a web page feels like a dialogue?
An empty string hash does not equal the empty string (if you are on Oracle) and does certainly not equal null.

This will make it impossible for those users to login. Also, if you are luck it won't take the rest of the service down with them, making it impossible for the other users to login too.
A guy at our makerspace in Sydney built a couple times larger system with working seven segment speed & fuel indicators, two joysticks, etc.
That was last year, I think the project kept growing since.

Here's a demo video from last year's Makerfaire: https://www.youtube.com/watch?v=uCuNyiseJ5g&feature=youtu.be...

edit: grammar
This was exactly it.
> Addicts "make poor choices" because their brains are wired that way.

I reject this statement. Even if people are more prone to addiction, that doesn't excuse their choices. Otherwise you could excuse serial killers by saying "Oh well, his brain was wired that way. He got derived sexual satisfaction from torture and killing. He couldn't control his actions; he's not responsible for his choices."

Once you blame genetics, then suddenly nobody has accountability for anything. "Oh, he did X? He didn't have a choice, his brain was wired that way."
This is a great way to build relationships. I have been a part a mentor for iMentor (https://imentor.org/) for the last four years. Their mentoring curriculum expects one email per week between mentor and mentee and every email starts with a "roses and thorns" exchange. They call it "highs and lows" but it's the same thing. I was surprised how significant this seemingly innocuous thing was to building a relationship with my mentee. I imagine it would also have a significant affect in a marriage or other long term partnership to help the people stay connected.
Thanks! It's always a pleasant surprise when people react like this, and I have the impression that it has been happening more often lately. Dare we hope?
We very much appreciate it. Thank you.
I see the controller as an objects whose purpose is to shuttle data back and forth between the view and the model. The business rules should be in the model. the controller can do some very minor formatting type things, handle events, etc. but no business rules.

Basically, the View is presentation, the Controller is interaction and the Model is logic and data.
> wouldn't just running processes be just as fast

The applications we test with this system have dependencies, both system packages and datastores. Containers allow us to isolate the test process with all the dependant datastores (MySQL, Redis, ElasticSearch, etc)

If we were to use regular processes we'd both have to ensure the environment is properly setup before running the tests, and also fiddle with tons of port configurations so we can run 16 MySQLs and 16 Redises on the same host.

See my other comment for more details https://news.ycombinator.com/item?id=12366824
The Death of Flair
You mean the (often) same company that will insist that you sign an NDA lest you steal their ground-breaking, change-the-world idea?
But the point is that the US don't prosecute (and persecute) obese people and supermarkets, because health problems are not criminal matters. That's where the difference is.
drug user != drug addict. To continue down the thread of logic, any alcohol user is a 'victim(s) of their own poor choices' as well.

I say make it all legal, and tax it proportionate to the cost of running enough rehabilitation centers nationally that any American can get treatment if they so wish (and include alcohol, tobacco and prescription drugs under that same mandate). This is really a problem that solves itself.
I agree that it's strange, but the discussion has gone badly, and it has something to do with how you engage people. That's what I mean by unintentional trolling.
Cloud Computing Brings Sprawling Centers, but Few Jobs, to Small Towns
Mexico's only government-certified forensic cleaner
Not obsolete. Just illegal.
The White House is planning to let more foreign entrepreneurs work in the U.S
Self driving taxis in Singapore first
They changed their ToS a year before, you got a notice to review them. What's illegal about revoking promotional credit?

https://www.digitalocean.com/company/blog/details-on-expirin...
I regularly switch between a MacBook for work, Linux desktop at work, Windows 10 home machine, iMac home machine, iPad, and iPhone, using at least two browsers on each (Chrome/Safari or Chrome/Edge) and often two Chrome profiles.

I use 1Password with the encrypted vault synced to Dropbox and it works wonderfully well. 1Password has native apps / browser extensions for all of those platforms (except Linux local app where they support and recommend using Wine).
Now, doesn't "soar" mean to go higher/farther? Maybe they mean that by soaring closer to Jupiter, Juno is going higher and farther from Earth?

I never thought I'd be this guy. Sorry... but the children.

http://www.merriam-webster.com/dictionary/soar
> [...] Linus Torvalds had begun his project to write a UNIX-like kernel for the IBM 386.

IBM 386? Did they mean to say Intel 386, or did Linus actually have a computer that used an IBM 386SLC, which was an 80386 that IBM designed and manufactured under license from Intel?
Addiction is not misbehavior. It is a health issue. If it were simply making a choice it would not be called addiction.
> The problem with addicts is that they are born addicts. It is something some people are born with and some people are not.

This is not in line with contemporary, mainstream medical thoughts on the topic.

There are some people who are genetically and/or biologically prone to addictive behaviors, but that's not to say that those behaviors will necessarily manifest (or, if they do manifest, that they will manifest as drug addictions). And even that's a far cry from this broad claim about addiction and addicts in general.
What are they, then?
> I say make it legal, and tax it proportionate to the cost of running enough rehabilitation centers nationally that any American can get treatment if they so wish.

Seems like a pipe dream. Tax the drugs too much and you'll just create a black market and/or encourage addicts to commit crimes to obtain the drug. Tax it too little and it won't cover the costs of rehab.
I can see this being useful for police sketch artists.
I've gotten the same recommendation from them. I complained because they pulled the network connection on the drive connected to the database and completely torched the drive. They were like: well maybe you should consider running multiple database machines with replication so you can survive the next time we screw things up.
I'm talking about "expectation".
Yeah, in your situation I understand the frustration.

By the way, if you're using a Mac you might like 'Franz': http://meetfranz.com/
> And addicts are addicts for life

Ethics aside, that is the problematic part of your reasoning. First, only less than half of treated patients relapse [1], second: a relapse is not a measure of a failed treatment as it is a qualitative value (relapse happened/didn't happen), not a quantitative one (to what degree did the patient relapse into old behaviour).

More importantly, it most probably costs more to incarcerate patients than to treat them. The US has the highest incarceration rate in the world. Thats expensive: $47.000 per inmate per year. [2]

[1] = https://www.drugabuse.gov/publications/principles-drug-addic...

[2] = http://www.lao.ca.gov/PolicyAreas/CJ/6_cj_inmatecost
I actually suggested this was possible on security.stackexchange.com a while back and was basically met with "meh".

http://security.stackexchange.com/questions/49612/how-does-d...
This is lovely. As a lazy programmer, I would appreciate this as a web service. Instead of googling for an image to steal as placeholder art, I could request a uniquely generated image.
I assume you wanted to submit this: https://news.ycombinator.com/item?id=12358495
Dude use cmake like a proper adult
Ummmm use cmake like a proper adult
Examples from Java:

a. debug/release doesn't matter much so all Java code is in "debug" mode (http://stackoverflow.com/questions/8613535/does-java-have-de... ); the actual debugging is handled via source code/source code jars (jars are just zip files with a standard structure) -> Maven: https://maven.apache.org/plugins/maven-source-plugin/jar-moj...

b. configuration files -> Maven: https://maven.apache.org/plugins/maven-compiler-plugin/compi...

c. don't do that? :)

d. no macros and most people seem to agree that's a good thing; C macros are not really the kind of tool you want to be using, unless forced to; code generation is used instead

Regarding header files: Javadoc for humans, code inspection on the class files for IDEs. No need for separate files in a system designed after the 70s :)
> It takes a new generation of elected representatives to revoke old laws.

Well, we are currently getting a big chance in that regard in the UK. All parties, including the one in government, are heavily in flux. Overton windows on all sort of topics are being pushed pretty hard.

If you care about changing long-established political "truthisms", now it's the time to do it.
>The owner of www.jonathanturner.org has configured their website improperly. To protect your information from being stolen, Firefox has not connected to this website.

I added an exception as I pretty much always do but in case the owner of the site is around here, they might want to investigate this.
Well and good. The &reg; slapped everywhere is very annoying.
One of the definitions in your link is merely "to fly aloft or about." Higher/farther is a common implication, but not a necessary one.

For the children!
So, How Do You Make Agile Successful?
I remember that one... it looks like I shared a similar view in your thread (https://news.ycombinator.com/item?id=10927366). :)

I think your hunch is correct — we hover over the links and see it in the query string. There's probably a Chrome extension out there somewhere to strip affiliate links from URLs, but honestly they've never bothered me because they don't detract from my experience.
Couple of Things You Can Do to Grow Your Business Through Instagram
You have some good points but personal attacks at GP's friends were uncalled for.
We've banned this account because it appears to be trolling and impersonating another user, which (if true) is an abuse of this site.

If we're mistaken, or if you don't want to be banned, please email hn@ycombinator.com.
Do we know if there's a lot or a little lost electricity that is generated as a result of the main engines running? I know cars waste a bunch of electricity (which is how hybrid batteries charge themselves when driving).
Here's the comment: https://news.ycombinator.com/item?id=12316857

nkurz has over 37,000 karma, and is currently about 30-35 in the list of people by karma. https://news.ycombinator.com/leaders
SAP Simple Finance Online Training in SRY IT Solutions
On one hand, the policy change was made a year prior. On the other hand, we didn't communicate it as well as we should have. I apologize for that. I consider myself as much responsible as anyone else on that. If you ever want that account credit back, please let me know. I'm an easy find on Google, or you can open a support ticket anytime.

For what it's worth, we posted on our blog about just this. https://www.digitalocean.com/company/blog/details-on-expirin...
>The affected systems are ones that I had told others were likely insecure (by virtue of being closed source), but no one listened to me. If you care about network security, then you should use a properly configured software firewall/router running Linux or *BSD. This Cisco/Juniper/etcetera equipment is closed source, hard to scrutinize and almost certainly has horrible flaws that would never be allowed into a serious OSS project.

You went wildly off the rails here; the OSS vs closed source security argument is foolish. If you think 'many eyes, shallow bugs' still has validity in 2016, you're not up to speed.