skysight-inc/HackerNews huggingface dataset:
As other people are commenting, malloc can still return NULL, but the critical point here is that even if you handle the NULL cases, you will still miss the other situations where your process runs out of memory. In short, if the OS over-commits RAM, it is impossible for a program to safely handle out of memory situations.

One reason why overcommit is popular is because of fork(). Imagine a process that does malloc(lots of memory), then forks and execs a tiny program (/bin/true or something like it). If the fork() call succeeds, this means the OS has guaranteed that all the memory in the child process is available to be written over. i.e. it has had to allocate 'lots of memory' x 2 in total, even if only 'lots of memory' x 1 will actually be used.

Without overcommit, fork() can fail even if the system won't ever use anywhere close to the limit of RAM+swap space.
A lot of people still think he has no chance at the nomination. Their hypothesis is that the Republican field is still very wide, so Trump is capturing the largest piece of the pie, but once other candidates start dropping out, they won't fall to him, but rather concentrate on another candidate.

I tend to believe this has merit since you can position yourself a certain way and gain a lot of popularity with certain segments of the Republican party/conservatives, but distance yourself from the rest of the party. The fact that this group has largely identified itself as the Tea Party and has been around for several election cycles and Mitt Romney, the most moderate of the of 2012 candidates ran away with the nomination in 2012, speaks well to this hypothesis.
Thanks! And BTW Nystrom's Game Programming Patterns is one of a few great books on game programming, so I take comparison as a compliment :-)
Thanks a lot for the answer and the proposal. But we do not want to have anything critical that is not open source. We try to promote OpenSource, so using non-open-source software is hard to do.

1. Thanks, but see above :)

2. As I said, custom labels are way too limited, as people on the open-letter-to-github said, so I will comment on the issue.

3. Will do.

4. same as 1 :) But thanks a lot.

I will contact you :)
Show HN: CMS.js – Fully Client-Side JavaScript Site Generator
You're being downvoted because it's a stupid assertion and it's "technically" not even the same craft at that point.
A state exists primarily to defend its polity against other states. It takes a lot of resources to maintain a military, accomplish geopolitical objectives, pursue a coherent foreign policy.

Let's say we found aliens living in the next solar system. That would be the beginning of the global human state. Even if they're not hostile, humanity as a whole world need to band together to figure out just what to do about them.

What you're looking for is pan-national governmental institutions. There are plenty of those.
Show HN: Draw on a raspi led matrix over web
I'm sorry that GitLab.com was unavailable an slow. As mentioned on https://about.gitlab.com/gitlab-com/ we're working on that. Have you considered self-hosting it?
They did; I was there for the tail-end of it. I remember Flash developers on salaries big enough to buy apartments in London for one years' pay.

I'm reminded of the Victorian railway investors: railway was the future, but that didn't mean that investment always worked. If the music stopped you would be ruined. But the railways continued to spread.
Show HN: Hierarchical Filtering on Elasticsearch
The GitLab EE source is publicly viewable, but its license is not open source. See https://about.gitlab.com/2015/05/22/gitlab-7-11-released/.
7 Ways Due Diligence Helps Before Final Commitment
> Many times I see commenters on HN making statements to the effect of "users cannot run their own servers" and spurring a "debate" in the context of someone trying to innovate away from the current asymmetric, client-server, "calf-cow" internet.

What that is about is that most consumer level internet connections do not have a fix IP address. Thus you can't (easily) aim a DNS reference at it etc.
Show HN: Aliasme – terminal alias manager
I didn't down vote (I can't; I don't have the points) but I imagine it is because what you said sounded like a knee jerk reaction or perhaps because you missed the word without in your quote.

Or because people are assholes. It doesn't matter. Smile (:
How is this your concern any more? You promised to leave bitcoin scene because it has failed, why don't you focus on R3Coin instead.
The biggest problem I see in Singapore is that regulations are directed at making startups hire locals. Aside from strict quotas, there are also rules about not being able to underpay or overpay foreign talent. This means paying 5k/month for a programmer can often be deemed "overpaying" and the application gets rejected. This is a problem because you can't make a top-tier tech hub on Singporeans alone.

Even Silicon Valley wouldn't be Silicon Valley if it only employed Americans as early employees either. Just look at all the Indians who were early Google employees, Jan Koum of Whatsapp, the Canadian team behind Flickr and Slack.

The US immigration system is deeply flawed and hurts the tech ecosystem. Singapore has a golden opportunity to compete on this axis, but it isn't.

https://www.techinasia.com/talk/dark-side-tech-development-s...

http://sbr.com.sg/hr-education/news/singapores-new-hiring-ru...

https://www.quora.com/How-does-a-Singapore-based-startup-hir...
I'm not so sure these are very good examples. Monaco is effectively a tiny gated community of France for the super rich that produces little-to-no goods or services. Luxembourg is heavily dependent on support and the existance of the EU (receiving approximately €3,000 per person, the highest in the entire EU). Singapore is probably the best example of a city-state succeeding outside the framework of a larger state, but the size of their public debt is a little frightening for such a small country - and would be slightly less so if it was within a larger body.
The rocket runs out of usable fuel, but that doesn't mean that it is empty. If for no other reason the turbo pumps would probably get damaged beyond repair if you run the tank bone dry. Also it's not just fuel, but oxygen too in the right ratio.
Im co-author of Searchkit (www.searchkit.co). This Hierarchical filtering demo uses Elasticsearch aggregations on nested documents with our Hierarchical filter component.

For more info see
http://docs.searchkit.co/stable/docs/components/navigation/h...

and

https://www.elastic.co/guide/en/elasticsearch/reference/curr...
(Calculator in the standard iOS distribution and some classes of the WWDC app.)
ASO as a Service – Here’s how to do it
App Store Optimization as a Service is the easy way to build strong recurring revenue for your app business, tie your customers to you and offer highly valuable services that put you in a great position to win follow on app development projects.
Here's how to structure your offering around “the 4 R’s” and why you can’t afford not to offer it to your mobile app customers.

https://www.kumulos.com/2016/01/18/app-store-optimisation-as-a-service/
It's interesting that Fed members have downplayed the recent volatility: http://uk.reuters.com/article/uk-usa-fed-dudley-idUKKCN0UT2J...

'''"The short-term volatility is not something that worries me for monetary policy; it reflects market participants trying to make sense of global developments," Williams told reporters on Friday, adding that he sees no signs of distress or a weak economy in declining asset values, and is unsurprised that stock prices .SPX would decline as the Fed raises rates.'''

That's a pretty clear signal that the Fed have knowingly and openly popped a bubble. This is going to be painful.
To keep hn fair and balanced, I'll start the "Hillary Mail Server" project
Isn't that an oxymoron - multiple pan-national states? You're only supposed to need one.

Anyway, I predict when other people are discovered in another solar system, then each nation on Earth will attempt to have a relationship with them and it will be business as usual. Why would America or China agree on the best policy vs interstellar trade? They agree on so little else!
Agreed. Federighi and his team are seasoned vets in building and delivering software to millions.

They aren't naive and know they need to balance end-user benefit with engineering's wishes for maintainability etc. Is the user going to see a vast difference in experience if they re-wrote the Settings.app? Swift is a language, not framework, so it doesn't offer the end-user anything worth caring about.

Swift will probably cost them more than it gains them in the immediate term, but the long-term is what Apple is all about, so I don't think they are concerned about this.
Should I make a comment talking about how satire is the cheapest form of political expression? I know it will get voted down. Bah, who cares. TRUMP 2016!
Dynamic pagination (2013)
One of the commenters state that the watercolors are fake.
The answer is: it depends.

I remember the lesson my Stats teacher: How many Martians do you have to measure to determine the average height of a Martian? What if I told you that all Martians are exactly 6 feet tall?

The correct way to sample to is to determine the variance in the population. If there is no variance, sample size needs to be only one. If not, there are statistical charts that tell you what your sample size needs to be to have some specific confidence that some percentage of the time your sample will be representative. If your population has a Normal distribution, you can use a Z chart to calculate sample size.

Believe it or not, for normal distributions and command variances, a population below 200 is all that is necessary.
That's the silly summary, there's a much better one here

https://github.com/BuzzFeedNews/2016-01-tennis-betting-analy...
The Zen of TrumpScript:

Ugly is better than beautiful.

Explicit language is best.

Simplistic is better than simple.

Having complexes is better than being complicated.

Flat world is better than complex world.

Special cases aren't special enough to break the rules, bitches!

Dissidents should never pass silently, unless explicitly silenced.

In the face of ambiguity, fall back to prejudices.

There should be one-- and only one --way to do it: Mine.

Although that way may not be obvious at first unless you're Donald Trump.
This is not new. History is full of powerful city states that were stable during centuries thanks to their trading networks. Venice is a very good example. There are many more examples.
As I understand it, this is one of the main reasons that there are two detectors thousands of miles apart, in Washington and Louisiana. There will be a whole lot of false alarms at each one separately, but it's extremely unlikely that precisely matching earthquakes will occur at both locations at once. (They have other very sophisticated ways of isolating the system from outside noise, too, of course. But I don't think the experiment would be viable without the two location filter.)

As for space, the LISA project has been trying to get funding for years. (The preliminary "LISA Pathfinder" mission launched on Dec. 3, so there's finally some real progress on this: http://sci.esa.int/lisa-pathfinder/)
The title presented it as if it were a single craft at all times. Of course "delivering 2nd stage to space" would sound silly, but I'm sure the title could be worded factually correct and still be simple and informative (as titles should be).
Monaco and Luxembourg both are inside the EU and exist very much as a result of cooperation with France (and the Treaty of Utrecht). They both have ceremonial militaries only, and subsist by facilitating tax avoidance for the nearby elites.
GitLab has rate limiting on the API http://doc.gitlab.com/ce/security/rack_attack.html but by default we set it pretty high.
I'm currently almost 3.5 years post-treatment in one of Dr. Steven Rosenberg's adoptive cell therapy trials for Stage IV melanoma (which were mentioned in the article). I'm one of the lucky patients (20+%) who have experienced a complete response because of this treatment. Triggering the body's immune response does work for some patients and some cancers, and this can be a fruitful line for research.
It means that anyone who can swipe your Yubikey for a couple of minutes or even just wave an NFC-enabled phone past it can SSH to your server and then at their leisure convert that connection into a persistent backdoor. How often do you check your .authorized_keys? Your list of running processes? Your .bashrc for a line redirecting sudo to a small binary that logs your password for later use? Arguably this even made it less secure than a normal USB key with your SSH key on it encrypted with a strong passphrase.
Funny thing. I just thought it was yet another memory leak, that could be avoided by higher level code handling dangerous network data.

But if all the lessons the author took are that secure code should be lower level than this, well... I can not agree with it.
I just don't understand why they need a silly summary. It makes it hard to take BuzzFeed seriously as an authoritative news source.
I with you on the no-point-checking-for-malloc-fail issue. It has to be done in every place, or it rarely is effective. My old colleage Mike Rowe used to call it "Putting an altimeter on your car. So if you drive over a cliff, you can see how far it is to the ground."
Singapore needs a Role model. For years parents and teachers in Singapore encourage their children and student to stay stable and follow the traditional way of success - work hard, steady income and promotion. The role models of Singapore society are always those who did so. in fact, it is not even possible to name a sound,successful entrepreneur. But in a real startup ecosystem (US and China in particular), the role models come from the entrepreneur world. Their success encourage people to take risk.
If Singapore can have one or two Mark Zuckberg or Jack Ma, it will greatly help the ecosystem to grow
I saw this at HackRice yesterday! You guys were pretty funny.
You had a lot of company saying the same things in 1999.

A central fallacy is assuming that because an idea seems inevitable the companies in that field now will be the ones doing it. Software is indeed eating the world but that doesn't mean that, say, those smart vehicles or robots will be made by a startup rather than GE or GM, or in one of the most expensive places in the world. Remember Kozmo.com? They're a fading memory but a lot of my neighbors get their stuff delivered by the same grocery chain which was there in 1995 who now has a great website, mobile apps, and a fleet of delivery drivers.

This also has an important corollary for developers: unless you have a significant chunk of equity, never forget that even if your company is one of the successes your personal success does not inevitably follow. Most C-level managers see people like us as an expense to be minimized.
Are we seeing the first signs of a tech slowdown?
That was pretty much exactly what I expected to see from the video given the description of a broken landing leg yesterday.

Elon's twitter comment about the ice is interesting because it adds some interesting twists. If the stage is icing up as it descends it would change the mass calculation, however it does not seem to shed ice when it lands in the video. He suggested that ice at launch may have interfered with leg locking, which would mean that ice survived travelling supersonically through the atmosphere. But hard to figure how that could be.
This reminds me of C+=, except that C+= was funnier.
"SpaceX booster explodes during recovery, payload delivery unhindered"
It's true for all of Australia and getting worse each year as the ISPs fight for profits after the country reached market saturation on broadband connections.
were those offered only to undesired applicants or to everyone and somehow only the desired people knew how to solve?
How do I delete my HN account and all it's comments?
> This attempt by the Gitlab folks to ride the Github dissatisfaction wave seems a little low-brow.

I can hardly imagine a better outcome. Now both GitHub and the developers have a choice to make; GitHub can either ignore the complaints or take them into account, and people can either continue using GitHub or start using GitLab (or something else). Nothing better than informing people in a kind, respectful manner.
All you folks in the city will learn your lesson pretty quick once the food stops flowing in. Don't get too uppity!
I've been writing Swift since day 0 of its announcement - the migration issues aren't that big of a deal even for 10k lines of code, especially if you did it at each step. Sure it isn't fun, but everyone knew it was a early/beta language.

After 3.x, their won't be huge breaking changes thankfully.

Personally, only issue that bugged me was slower compilation time.

About significant investment, this is just how Apple is. They don't stop the train for anyone, it's get on or off. Same goes for SDK you compile against, certain features you must bake in etc.

Objective-C is 33 years old, I don't know for sure but I bet it wasn't that stable at the start!
When did HN turn political?
We can't promise we'll never be acquired but we when we raised financing we tried to ensure that we're as much in control of our destiny as you can be as a VC founded start up. For example last month we were cash flow neutral.

GitLab CE is MIT licensed and will not go away in case we get acquired. Some companies (including Oracle themselves) are using GitLab CE with thousands of users (they rebranded it as Orahub, don't ask).

For our promises regarding being a good steward of CE please see https://about.gitlab.com/about/#stewardship
Flagged. Partisan politics.
"It's different this time."

Said every time.

Of course the details of the crashing waves are different, but the tide is the same every time.
>They may happen to think about their work during those activities but ,if they do, it's only by accident

This says so much about how we think about thinking
Pharma Paid Physicians $6.5B in 2014 – Looking into the Open Payments Dataset
But we also know the state of the art of people who don't really know what they are doing going to write crypto, and that state of the art is "laughable".

You're being pointed straight at the problems discovered by other people. Of course they're obvious to you now. The question is, can you just pick up some OpenSSH code, read it and run it, and find a new problem yourself when nobody is pointing you straight at it? Because I'm sure there's at least one in there for you to find.

(Note I did not ask you if you could find this problem. Too easy to imagine that you can now, too hard to realistically pretend you don't already know about it. I'm asking you about new problems that nobody currently knows about.)
I'm curious enough to ask for an example please.
ColorFavs – a new way to create color palettes from images
Verbal-Exprejon: Regexes without any regex
I think you're overstating the complexity. The real problem is once you see how visually noisy Objective C is compared to Swift, you'll get the urge to translate your ObjC code.

NSString *s = @"Swift is the future";
UIViewController *vc = [[UIViewController alloc] init];
NSArray *names = @[@"John", @"Paul", @"George", @"Ringo"];

vs

let s = "Swift is the future"
let vc = UIViewController()
let names = ["John", "Paul", "George", "Ringo"]
Cologne’s aftershocks
I've seen a few speed reading lessons selling on that angle. It's a good way to sift through stuff that doesn't come with a summary. Just slow down once you find the good stuff.
The mystery rocket man behind the Soviet space programme
In 1609-10, Galileo's contemporary Thomas Harriot was also drawing the moon:

http://galileo.rice.edu/sci/harriot_moon.html

Interestingly, in his first drawing (made before seeing Galileo's drawings), there is no sense at all that the unevenness of the shadow across the moon is a sign that there are valleys and mountains on the moon. He looked at the same thing as Galileo, but possibly because he was a much less accomplished artist, didn't recognize what he was seeing as depth. I read about this in a book called The Invention of Science--absolutely fascinating.
In this case, they had enough fuel to return to the launch site but they used the barge because they couldn't get permission to return to Vandenburg. http://observer.com/2016/01/breaking-spacex-fails-a-third-ti...
All that electricity pissed away because people can't (won't) trust a banking authority.
Being a deaf developer
Would investors have invested if the possible return had been a fraction of what it was? That's a far more dubious prospect.
America is great.
Ex-overweight geek from Romania: Why it's easy to IF with the correct mind-set?
I want to help you and anyone else willing to hear me out. I want to show you step by step how to lose weight the fun and easy way. But be warned, don't waste your time reading my crazy and radical ideas unless you have what it takes, an open mind and still some little genuine will to fight.

I'm gonna tell you what happen to me and probably to you too. I always eat very little but every now and then I had my cheat days, some extra calories from sweets or another slice of something. This worked for me for many years and I didn't gained much weight. But then I started gaining weight faster and faster and the older I got the more my metabolism slowed down. Having a desk job and working day and night sure didn't help.

I started to work out more, cooking healthy food, buying supplements, running, taking the stairs, testing all kind of mainstream diets, researching in my spare time about food that increase metabolic resting rate and so on. I was doing everything by the book. But nothing worked for me.

I’m presenting you the missing link between profit orientated mainstream diets and the free as in free beer Intermittent Fasting.

G33k Diet [Level 1] https://www.youtube.com/watch?v=6sqh52moVrs

This video should help you have the correct mind-set to lose weight 100% hands-free. In it I'm presenting all the research I found online that proves fasting is the key to losing weight, we just need to accept it. I'm also debunking that breakfast is the healthiest meal of the day and other myths and I give a few important tips on losing weight successfully while fasting.

Besides losing weight, just think of the amazing benefits of having more time. Now that I've reached my weight goal I don't have to research weight loss anymore, it's out of my mind. I have less shopping to do, less cooking, more money... now I can spend my spare time on the internet sharing my findings with hopefully some lovely geeks with an open mind. Have a Gr8 day!
Push the web forward
Microïds
836% Increasing Website Traffic (How I Did It)
Don't you love it when that happens.
Speed reading promises are too good to be true, scientists find
We think that Git LFS has more traction too. Any reason why you're using Go instead of GitLab CI?
I don't think that limiting it to only-open-source is compatible with the GPL license. But in the HN thread I did make an offer for free EE licenses for open source projects https://news.ycombinator.com/item?id=10924406
We're currently taking language suggestions via pull request on the repository, if you'd like to contribute
Glad to hear that in your case we made the CE/EE feature tradeoff correctly!
Great trip down memory lane. Thanks!!
Only to the undesirables students. Quoting the paper,
"The Mathematics Department of Moscow State University, the most prestigious mathematics school in Russia, was at that time actively trying to keep Jewish students (and other 'undesirables') from enrolling in the department.
One of the methods they used for doing this was to give the unwanted students a different set of problems on their oral exam."
Code History Miner