skysight-inc/HackerNews huggingface dataset:
After 6 Books, 200+ Apps and 14,000 Students, Where Big Nerd Ranch Is Focusing
"Why do people use the version that's inferior and more complicated?"

This question needs little context to be relevant, so long as the topic is "computer programming".

Certainly not limited to writing ring buffers. It could be an apropos comment in almost any discussion.

Of course in many cases, the part about "no performance penalty" does not apply. Performance is a routine trade off for some other perceived gain.
> Personally I believe that it is a good thing to be critical about everything thats written in the mainstream media.

Are you critical about how to conduct effective medical trials in your everyday life? Are you critical about the best catalogue hierarchy for books in a public library? Are you critical of the driving techniques of truckers under snow conditions?

You can critique anything in life and there's a hell of a lot of things that are important for which we recognize that we have little knowledge in the domain and that our criticism is mere curiousity but has no relevance whatsoever.

For some reason only a narrow band of Americans think that their knowledge or their credentials on the subject allows them to challenge the topic critically or consider that the the scientific consensus on the matter is wrong.

It's a bullshit argument from bullshit skeptics. Critical thinking comes from having a minimum baseline knowledge of the subject. I have yet to meet a skeptic who does.

The actual, real skeptics are the peers of climate scientists who have domain knowledge and can ask about the modeling techniques in papers, what equations were utilized, what assumptions are taken and so on. Without that it's the same level of intellectual drudgery as anti-vaxxers.
No, it's not. A non-power-of-two will lead to incorrect behavior, implementing the data structure the way the author describes, for precisely the reason given by your parent comment. There are other implementations that don't suffer from this (described in the comments there), but it's not simply a matter of replacing bitwise-and with a more generic computation of the modulus.

Imagine we had four bit integers and a three cell array. Stepping from 7 (= 1 mod 3) to 8 (= 2 mod 3) winds up stepping instead to 0 (= 0 mod 3) because overflow, which would reuse cells inappropriately.
What? RTLSDRs go from ~$9-$20 max (I got mine for $10 on eBay), and a Raspberry pi is $35. The PandwaRF is ~$150 USD alone. Does the CC11xx series chip in this device make a difference to your use case?
5 Steps to Help Yourself Recover from a Setback
Two more sources:

http://www.lastampa.it/2016/12/14/cronaca/un-rene-al-posto-d... [ITALIAN]

http://tg24.sky.it/tg24/scienze/2016/12/14/torino-primo-trap... [ITALIAN]
You can change the keys on a laptop usually. I'm using a 2013 Macbook Pro and while it's disconcerting to pop the keys off, it can certainly be done.
Are there ways to serve a related cert 'by accident' if you don't set up https explicitly for a domain?

Annualmedicalreport is in a related line of work to this site - it's not about medical care but about looking up the information health insurers gather about patients. It has some positive reviews from real news sources, but it also sets off some alarm bells for me. It seems to be eager for your data itself, and has a weird sideline of articles about non-medical consumer reporting that read like sponsored content.

Given all that, I wouldn't be surprised if they were connected to (possibly the creator of) this broker site, and that's why their cert is being served.

None of which actually makes me feel better, and the failure to disclose Analytics certainly isn't encouraging.
It could be a proximity sensor at home, a token of some kind, that you need to touch your camera with, say once a month to keep it going. A stolen camera like this would become useless after a month. Once it becomes common knowledge, it could deter buyers and thieves..
I would suggest avoiding bootstrap - not only are the results poorer, it's more complicated than doing it yourself.

Firstly, my CSS or design skills aren't as good as Bootstrap, so the results definitely aren't poorer. My sites are a lot better when I use a framework.

Secondly, unless you happen to test in several versions of about 20 different browsers across a dozen platforms, your code isn't as good as Bootstrap either. It's easy to say you can write better code if you're only targeting the latest versions of Chrome, Firefox and Edge, but if you want exceptional support on niche browsers (or you want something that works on old browsers in the case of Bootstrap 3) then you have little choice but to use a framework. There's simply too much work involved in writing code that works everywhere to do it any other way.

If you do opt to write your own code, on any moderately complex app you'll end up writing something that looks a lot like a framework eventually anyway, except it won't be as well thought out and no one else will be able to contribute to it. I fully understand why people don't like them but they really are a good idea for most apps.
> Then at the very bottom of it all there's a big pile of MySQL instances. Plus some ugly JNI/C++ code allowing the Java parts to come in through a side door of the MySQL interface, bypassing most of the query optimizer (since none of the queries are complex) and hitting InnoDB almost directly.

Ah! I knew it! It's an orchestration layer on top of a mysql layer with floating masters.

I remember back when DDB was first launched we all sat around at Powerset and tried to figure out how Amazon did it given the two pieces of information we were given: "it is not based off the dynamo paper" and "it is based off both open source and proprietary code". We figured it had to be MySQL or Postgres that they were referring to.

I didn't know you were completely bypassing the query layer though.
Ok, but do you accept that we understand enough of the implications to know that it will be very bad for humans?
For me, the hardest was learning where hjkl is in dvorak. I think I remapped them at first, so htns were hjkl. That caused other problems, so I eventually just forced myself to get used to the fact the movement keys were no longer on the home row.
Why that over KeePass?
CS Student choosing China over Silicon Valley after graduation
As a French-speaking person, I was a bit confused by the word "Spleen", as it means something akin to "Melancholy" in French (it was mostly used by Renaissance poets like Beaudelaire), but I always assumed it was an anglicism or something so I really wasn't expecting it to be a body part.

What's kind of funny is that the French word for this organ, "rate", is used in the idiom "Se dilater la rate", which means laughing a lot.

So the same organ's name is related to both sadness and laughter, depending on the language.

I now realize that I still don't know what a spleen is or what it does in the body; time to fire up Wikipedia!
From the site:

"The finished "Ian Knot" is identical to either the Standard Shoelace Knot or the Two Loop Shoelace Knot. Because it was tied much more quickly and symmetrically, the laces suffer less wear and tear and thus last longer."
> SQL is a querying mechanism not an underlying storage protocol

My phone corrected "MySQL" to SQL and before I noticed the edit window expired. My apologies for the error.
In this case of the sort improvement, nobody in the literal Rust core team was involved in reviewing the PR.
It's pretty painful. I love using Xamarin and don't often need to use a native library but when it comes up it is the worst part of the Xamarin experience. There is a tool to help the process on Ios ,objective sharpie, but it's not the easiest thing to use either.
Also interested +1
Few things

- You request once _per CDN_. Common libraries are hosted on multiple CDNs and you may simply load them from multiple locations. For example jQuery is hosted by MaxCDN, Google, Microsoft, Cloudflare, jsdelivr.

- Some CDNs may be temporarily down. It happened for me already multiple times, including Google CDN and Cloudflare CDN.
Did anyone ask Gruber for his help in this? Or is this like the stupid attempt at 'common markdown' a year or so ago to wrest 'control' out of his hands because he was 'a terrible steward' (or whatever the quote was).

If a single guy invented the standard, and you're not involving him (or at least getting his blessing), then this seems hostile.

I haven't seen him mention this on Twitter, which is what makes me wonder.
I don't know why you are being down voted. But you don't have to invoke a conspiracy.

Interesting. The US Military did spawn the self-driving Car Revolution with their DARPA Challange.

http://www.livescience.com/44272-darpa-self-driving-car-revo...
> Phone virtual keyboards are even more different.

Why? I type on an iPhone keyboard without any assistance as fast as on my keyboard. I'm almost touch typing. Even if you have to look at the phone's keyboard—you are way faster if the keys are at their expected place on the keyboard (which is QWERTY in my case).

Edit: If you disagree don't downvote, rather express why you disagree
I would really like to, but I haven't started to push for it yet, as we recently open-sourced EmoDB. That was a big leap for the business to take, and I wanted to give them a chance to breathe before broaching the subject of Polloi.

Also, the team has a fair amount of work to do w.r.t., documentation, etc., to make a high-quality os project.

But, depending on your definition of "near", yeah, I've always intended to open-source this project once it proved itself.

[edit] If a lot of people confirm that they would, in fact, like to get their hands on Polloi, that would help to make the case.
Woah. This is a cool podcast and seems to have just recently gotten started. I'm hoping to start something similar myself as a personal challenge. Any tips?
Things change daily and he's the incoming president. He absolutely needs to dedicate the time. It's not like these are useless staff meetings to plan an upcoming holiday party.
My mistake. Sorry about that. Time really flies sometimes.
Selling votes is not a problem. Secretly selling votes is the problem.

Perhaps it would be better to turn the vote-selling market into a publicly verifiable open market?

If I say that it would cost a buyer $10k more for me to vote yes than the highest open bid for me to vote no, that is a strong quantifiable indication of the magnitude of my opposition. I'm sure the vote-pricing data would be a gold mine for statisticians.

Of course, this would make the plutocratic oligarchy operate out in the open, officially, rather than behind the scenes with lobbying, campaign contributions, and speaking fees. Some people might find that objectionable: both those who do not want a plutocracy and those who do not want their money influence on politics to be openly known.
> A huge number of the world's greatest cities are on the coast since cities have a tendency to develop around ports.

Sure. That effects the cost of rising sea levels and the benefit of lowered sea levels. I'm not saying, 'let's do nothing!': I'm saying, 'let's perform a cost-benefit analysis' and 'I'm suspicious of anyone who has high confidence in his cost-benefit analysis'[1]. It's remarkable that so many folks find those to be distressing views.

[1] Particularly if his analysis supports giving him and people like him the sort of social power that great apes tend to crave like a drug. The Aztec priests had every incentive to believe that the human sacrifices they performed kept the Sun in his track — I won't say that the acted in bad faith (although their actual faith was appallingly bad: if one's religion requires ripping the hearts out of people and then engaging in cannibalism, maybe one should re-evaluate one's religious options), but they were still factually wrong.
Please no more politics!

I thought we were on a one week long hiatus. If you have the ability, please down vote this article.
This is one of the best responses to the GP sentiment I have ever read.
It would be nice to see a plugin for presto
Xamarin compiles through XCode, so having Mac somewhere is a requirement. Any platform that compiles for iOS would have this same issue. I think the MS is pushing Xamarin Forms because it could eventually become a more direct competitor to React Native. In theory, you could remove the compile requirement for a Xamarin Forms only project. I am a C# guy, but React Native is attractive and Xamarin needs to have a compelling alternative.
2C rise = 3.6F rise? I'm honestly asking.
How long would human immunity last in space?
Actually these Uber Volvo self driving cars have been picking up passengers using UberX in San Francisco for weeks. They're easy to spot because they have a huge lidar contraption on the roof and a lot of camera's mounted on the roof, rear vision mirrors, and the rear tailgate of the vehicle. The depot they use is on Harrison and 3rd so you see a lot of them driving around the area just south of Market Street, which has a lot of traffic obstacles, construction, and pedestrians. They go very slow and stop often out of an abundance of caution, much to the consternation of impatient SF drivers behind them.
How about an SD card in to which SmartCard, the size of a micro SIM card, can be inserted. The SmartCard holds a public key, and any files written to the SD card are signed and encrypted using that public key. Decrypting the files would be accomplished with the corresponding private key which is kept separate on a different hardware device and using a PC.
Edit: Confirmed info here

http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP...

Source: https://www.nist.gov/news-events/events/2016/05/random-bit-g...
I never claimed you should use a modulus operation.
Isn't the CO2 density issue far larger than the Ozone layer holes ? I've never seen it mentionned, so I assumed that "fixing" the CO2 issue was not possible yet, and that we would only stop emission as much as possible hoping the system not to tilt out of balance.
Containerd – An open and reliable container runtime, by Docker
You are in for a surprise. The spleen is a very big and very important organ that goes largely unnoticed.
Uber employees caught spying on exes and celebrities
Subtraction requires a branch, which could be worse (or not) depending on architecture.
The case for Ether
This happens all the time. It's detachable.

Seriously though, I was a bit confused by the link title until I clicked on it. On topic, it's somewhat interesting as I hadn't realized how many mammals had penis bones.
I immediately thought it was

Because this girl survived
This is another interesting ring buffer implementation that uses mmap. https://github.com/willemt/cbuffer
Please no more politics!

I thought we were on a one week long hiatus from this crap.

Please, down vote this article if you have the ability.
Edward Snowden says “the central problem of the future” is control of user data
Unfortunately, the experiment was ended early. Mostly the mods gave up because it's hard to define politics.

https://news.ycombinator.com/item?id=13131251

https://news.ycombinator.com/item?id=13132782
Tbh, it's mostly the lack of a full keyboard. I'm kinda irked by not having the key combinations and shortcuts I'm used to. Also, I use Vim as my editor and it's impacted similarly.

There are, however, things like ack, that I have running linux (out of the box, btw) that I had to find a replacement for on macOS.

It's mostly small stuff.
> Doesn't it break the order invariant of the buffer, though

No, if you increment the read pointer prior to the write pointer, the read pointer will still point at the oldest valid value in the buffer.

So, in pseudo code:

if (w+1 >= r) {
r = w + 2
}
w++
b[w-1] = value

For a debugging ring buffer (i.e. looking at it in a core file), you have the last value of the write pointer, so you can simply read from write pointer + 1 back around to the write pointer and have your messages in order. This makes the assumption that there is no readers of the debug buffer, so you're only having to deal with the one pointer.
My laptop has a fingerprint sensor that I use. There is a backup password but I don't know what it is but I do have it in my password manager that I can access from my phone.

My office computer has a relatively weak password because there's nothing on it that is personally sensitive. They force a password change every three months so I added a counter to the password and just increment that each time (pa$$1word, pa$$2word, pa$$3word, etc...).
you'll stress less and make way more money has a tattoo artist
My spleen hurts when I laugh a lot :) (Not really, just that part of my body)
> He said he doesn't need to dedicate time to have people tell him the exact same thing everyday, but to let him know when things change.

I imagine it is somewhat frustrating to hear,

Analyst A: "We have more developments in how the Russian intelligence operation helped in securing your election, sir."

Trump: "I don't believe that happened, next subject!"

Analyst B: "Sir we have more corroboration that the Russians were involved in the election as bad actors."

Trump: "You're fired!"
Americans are one of the heaviest polluters per capita; so that could be why. Also, they often blame countries with highest emissions (in total) (China), as if climate change cares about borders.
> How can mindless mathematical laws give rise to aims and intention?

By the wonders of self replicating adaptive systems, tending for their existence by intelligent behavior and sexual reproduction. Meaning arises from the context of optimizing their own life (based on rewards and RL).

We, humans, have 3 levels of self reproduction - the cellular level, the organism level, and the mental (cultural/technologic/AI) level. Each of them operate their own game of survival and adaptation. There is a fundamental difference between "mindless mathematical laws" and self replicators - the second have agency, are embodied and participate into a larger world.

All of these conclusions are immediately visible from the paradigm of reinforcement learning, but are not so clear from the mainstream consciousness philosophy. They're still fighting zombies and muse about bats in Chinese rooms (armchair philosophy at its finest) while the RL guys beat the best human at Go.
When you are presented with uniform agreement of countless scientists, debating it is a waste of time. Seriously. I just can't understand how people still believe debating this makes any sense.
quite racist
Oh, I think I have some material in my Google Docs on this. Might as well package it up and enter it for a chance at the prize.
It's been a while, but I've had good luck using the "Bindings Library" project type to wrap native Java Libs. Sometimes I would have to build an intermediate Android project (using Eclipse or android studio) to proxy the calls, but it wasn't too painful. For iOS it's more difficult and a bit of a weak spot for the platform.
Do not ignore .dockerignore
If being the PEOTUS is half as hard as having a new baby, I can speak from experience: time to poop is at a premium.

If only Trump worked harder, I guess.
> A typical server under load has more outstanding requests to answer than it can OS threads.

First of all, I object to the use of "can" here. There was a time where this was true, but, as I said, that time has passed. There is no problem running millions of kernel threads today.

That being said, there are advantages of not doing that. Right now Go uses a network polling mechanism like epoll to implement network I/O without consuming threads. This is totally orthogonal to the 1:1 vs. N:M discussion. Go can use 1:1 scheduling while still performing asynchronous I/O behind the scenes, just as it does today.

The nature of the mapping between g's and m's does not influence the other {g, g, ...} -> {g0{m}} mapping used to implement network I/O.

> It is not uncommon in a Go server at Google to find a million or so goroutines.

No problem with that, they can continue to do so.

> If you want to have an OS thread that can also run C code, it needs a large enough stack to run C code. A million such stacks is not practical.

C code needs its own stack, but this is again orthogonal to scheduling. Right now there is a N:1 mapping {g, g, ...} -> {g0} which makes it easy to switch to g0 stack. This will have to change to a N:M mapping {g, g, ...} -> {g0, g0, ...} and Go code would have to acquire C stacks, just as it acquires any other resource that it needs to use.

This is not expensive, in fact, C calls are now expensive precisely because there is a deep interaction between calling C code and the scheduler (that needs thousands of cycles). All this cycles will Go away. In a 1:1 model all you'd have to do is acquire a C stack, which is very fast and happens in userspace for the uncontented case (the common case), probably less than a hundred cycles.

> You would still need an N:M pool for cgo.

As explained above, you need a N:M pool, but this does not need to be integrated with the scheduler any more, making it much simpler to implement (and more performant).

> Anywhere you have an unbuffered channel and block waiting for a value, a 1:1 model requires a context switch to pass the value, whereas M:N means the userland scheduler can switch goroutines on the OS thread.

Only if you naively implement channels as mutex-based queues.

There is still a runtime underneath that can switch stacks on different threads. I want to move general scheduling decisions out of the Go runtime and into the kernel, but pointwise, stateless, swap-of-control type of things can still happen synchronously in the Go runtime.
> I should add: if you believe these are surmountable problems, please take it out of the forum and write a proposal.

Yes, I've been wanting to write a proposal for over 5 years now, if only there was more time in the world...

Coincidentally, I also have a method for implementing Go stacks (growing and shrinking) that does not involve copying stacks and avoids the hot-split problem.

Late edit:

In fact, this method would work particularly well for "growing" the stack to call C code in the 1:1 model proposed above.

It would make calling a C function, just another function call with some marker on it (like we have NOFRAME and NOSPLIT now). And when we switch to a more ABI-compatible calling convention (which we want to do anyway, irrespective of all this), then we would not even be a need for a C translator written in assembly any more.

Quite literally we would get cgo for free.
How WiFire Made It to the “App Store Best of 2016”
> how's that for mixing correlation & causation.

I'm just noting the correlation. In some cases it's likely that causation goes one way (e.g. post-industrial changes), but in other cases it's not (e.g. well before there were enough men to make a mark on the Earth).

Of course, even back then there's still a post hoc, propter hoc fallacy to watch out for: the mere fact that civilisation has done better as the world has warmed — if it is even a fact — doesn't mean that warming is the cause.

It could be as simple as increased sunlight leading to both more plant growth and more heat, and more plant growth leading to more food & other resources for man's use. Which — if the case — would raise the question of how much is too much: a greenhouse in winter can be great, but an unvented greenhouse in summer can be unlivable for plants or anything else.
No need it's already here - https://steemit.com/ . But i haven't looked how it really works under hood. Given recent events with CEO of reddit who did edit negative post about him [1] it becomes more and more actual.

[1]:( http://www.huffingtonpost.com/entry/reddit-ceo-edits-user-co... ).