skysight-inc/HackerNews huggingface dataset:
I recently found and fixed a 5 1/2 year old bug that was caused by a caller assuming that an integer parameter is an absolute quantity, but the function treated it as a delta. (The really funny thing is that the commit which introduced this bug introduced both that function and the incorrect call to it; and then, for the next 5 1/2 years after that, subsequent new uses of the function elsewhere in the code all correctly use its argument!)

The expressions x - y and y - x often have exactly the same type tree, but calculate a different value. Same with f(x, y) and f(y, x) when the parameter types are the same.

To actually catch real bugs such as this with types, you have to make such a fine grained use of types that programming becomes nigh intractable.

If x has type minuend<integer> and y has type subtrahend<integer> then, x - y is well typed, whereas y - x isn't. Problem is, the values come from some other context in which their minuend and subtrahend are meaningless (and, in any case, are not involved).

The kinds of errors that are found by static typing in practice are those that, under dynamic typing, will only sneak into production if the code is not tested at all. I.e. if the code had been executed even once with any inputs, the problem would have showed up.

Plus, if you assume that "dynamically typed" language means "language with no static checks", you're arguing against a strawman of dynamic typing. That is even more ridiculous if you're pitting True Scotsman's state-of-the-art static typing against this dynamic strawman.

(Of course, some dynamic languages in widespread use do more or less look like that strawman; however, the best examples of dynamic typing are languages which are considerably informed about type prior to executing a program, like the SBCL dialect of Common Lisp, for instance.)
I find this mindset both admirable and deeply troubling, of people who feel that being able to do a handstand on another person is a worthwhile trade-off for the considerable risk of injury to yourself and the other person.
Well, let's see.

Go: map[string]int64

Java: HashMap<String, long>

Rust: HashMap<&str, i64>

I think Haskell is one of the only statically typed languages which doesn't really care about algebraic typing. And yes, if you're talking about static typing, you get the baggage of dealing with algebraic typing to go with it as a rule. You can't arbitrarily separate the two until more languages follow Haskell's route.
it is really important to be aware that the duration of the freeze varies based on your state - it isn't always "until you lift it". I believe pennsylvania is an example where it is a 7 year term.
The token is not pegged to some dollar-valued fixed amount of that service. Using the air miles analogy, it's like instead of purchasing a fixed number of miles, you are purchasing some percent of the total miles that the airline will fly, and are free to sell those to people who want to travel later. It's theoretically a good investment because it will not be possible for anyone to fly on the airline without buying air miles from someone who participated in the ICO. For example, if you think that the market for filecoin file storage is going to be bigger than $200 million, then it makes sense to buy their tokens in the ICO.
I took it as a joke. Obviously one shouldn't concern themselves with how their editors store the text while editing. Furthermore macros or rectangular editing (which the author argues are superior to multiple cursors) have exactly the same performance issues on big files. If multiple cursors are really useful then one should use them.

But I think the author makes a good case about why it's a rather pointless feature in the end. Macros and rectangular edition are strictly more powerful than multiple cursors. That's a good reason to prefer them over multiple cursors.
Spring WebFlux with Kotlin – Reactive Web DSL
im pretty sure the maths doesnt work out in favor of this. it'd be more efficient to simply insulate the roof better, than to try to capture solar power.. but maybe I'm wrong.
A collection of (mostly) technical things every software developer should know
I'm having a hard time distinguishing "premium mediocre" from "bourgeois" as the term is applied to tastes and preferences.

As with so many other neologisms, I think this concept is already amply covered in English's huge vocabulary.
I would wager the textbook probably covered history & development, various topologies, congestion control algorithms, queueing theory, etc. There is more to networking than programming sockets.

But for a guide on programming sockets, which is all it sought to do, yeah it's excellent.
Any modern introduction to C should make heavy use of Valgrind at the very least. In addition to catching the nastiest class of bugs C programs are heir to, it can be used to teach how memory works at a low level.
I would love to see something like this happen as well. I'd be happy to setup the website, but we'd need a lawyer to help with the forms.
> I'm really looking to _build_ something rather than just going through a book or tutorial (although they have a place and time). '

It might be worthwhile to start 'small' by taking one of your C# projects and converting some small section into a native/unmanaged C or C++ DLL that gets used by the C# side. There's a lot of boilerplate involved setting things up on both sides of the divide, but you can stay in a mostly familiar environment yet start learning about some of the 'magic' C# handles for you that is exposed by the unmanaged code, and extend your experimental forays into the C side as you get more comfortable.
On a related note, I'm confused why the hash is even required. Why not just name this file datajoy.txt or some other static name?

It's also a shame that the email has to be the only content in the file. For documentation purposes, it would be nice if subsequent lines would be guaranteed to be ignored so some documentation could be added on why the file exists.
Formula for producing interesting content
I think it can work, but it requires some kind of laser focus on the "true goal". I also tend to fear what else our (hypothetical) protagonist may do when the ends are (much) more important than the means.
They have access to the OS drive, and found some logfile or metadata on there.

http://www2.ca3.uscourts.gov/opinarch/153537p.pdf

Despite Doe’s refusal, f orensic analysts discovered the password to decrypt the Mac Pro Computer , but could not de crypt the external hard drives. [...] The Forensic examination also disclosed that Doe had downloaded thousands of files known by their “hash ” values to be child pornography. 3 The files, however, were not on the Mac Pro, but i nstead had been stored on the encrypted external hard drives. Accordingly, the files themselves could not be accessed.
So, 2, 3 years?

It is like someone from 97 that was using computers since the 80's saying that didn't see anything revolutionary or useful being building in that time.
It absolutely does meet those criteria and then some.

They aren’t called Nazi’s because people disagree with them but because they are actual Nazis
It's a bad idea to worry about writing and formatting at the same time, you get distracted. For me, when writing papers and blog posts, it helps to break it down into three steps:

1. First, I write just the ideas I want to convey, in bullet points. I don't worry too much about the exact phrasing of these ideas, or how they flow together. If I want to put a diagram, I just sketch a quick concept idea on a notebook.

2. Next, I go through and turn all the ideas into readable paragraphs. This is easy because I know what I'm going to say, I just have to figure out exactly how I want to say it.

3. In the last step, I worry about formatting, like making sure the fonts are consistent, the size and margins on images, etc. This is a purely mechanical task and it's nice not worrying about it when writing.
Seriously, do we need any more incidents to prove that Uber is simply one of the most overtly grimey companies to ever exist?
Would it?

I can imagine at least some companies would stop worrying about security since they are insured if something goes wrong.
It will be a frustrating experience to learn C with a mindset of career. The mindset of career is about results, C is often not a shortcut to most superficial (visible) results. (It is a shortcut to real programming skill though, but a real skill without paper career record doesn't mean much for your career.)

But if you can afford a hobby and have the luxury of certain time at disposal, then I would suggest you to approach C as if you are picking up a leisure book. You learn more and enjoys more that way. You only need a day or two with a book or tutorial. Then you should simply start solving simple problems. If your math is OK, I would suggest project Euler. Programming is mostly common sense, you learn through practicing. Without the career mindset, you are very likely to enjoy the practice.

Now assume you acquired your career some other way (Java for example) and now you gained certain freedom in your job, and with the unique experence from C, you can try make decisions based on your understanding and common sense. I choose C in my work only because I have that freedom (but that freedom was not gained via C).
*always refers to government interference to speech
I noticed a couple (4) "No agencies, recent bootcamp grads, or visa candidates." on this month's "who is hiring?" https://news.ycombinator.com/item?id=15148885
What if someone did it and is willing to admit it? Still force them to go to trial, a trial that may take longer than the punishment for their crime? And victims too, say someone robs you, now you're forced to take time off work to attend a trial for the person that admitted to robbing you and also doesn't want a trial.

Plus there would need to be a massive expansion of the court system to accommodate trials for everyone. Where's the money to pay for that going to come from?

Criminal justice reform is necessary, removing plea deals completely is foolishly short sighted.
Banned pesticides from illegal pot farms seep into California water
I'm not convinced Trump and the US spend a lot of time worrying about how to defend against N.K.

It seems to me Trump would be rather unconcerned if N.K. attacked first as that would then give him the reason he is looking for, the reason to respond in full.

As an outsider it looks a lot like the Richard Nixon’s "madman theory".

As an example Trump, call out Kim Jong In's bluff to attack Guam, where he almost dared N.K. to fire anywhere in the region of Guam.

Kim Jong Un seemed to quickly back down on that Guam threat, only because he was not sure Trump would not have declared war immediately and smashed N.K. with a hail storm of US nukes.

I suspect Kim Jong Un is now thinking, I might be mad but that other guy is truly crazy.
You know, I've never even considered that they were chocolate. I always thought they were just a smooth soft candy kind of thing. For, like, 4 decades.
Micro benchmarks don't matter. Only particular benchmarks of your project/system matter. Benchmarks of how fast your team produces value matter most.
The United States spends more per pupil than all but four other countries in the world! Most schools are not underfunded.

http://www.politifact.com/florida/statements/2015/apr/21/jeb...

Much like healthcare the U.S. spends a lot of money per pupil on public education, but it is a wildly inefficient system. Our return per dollar is poor.

Furthermore, there are a lot of factors contributing to this inefficiency.

- Schools are locally controlled and budgeted, but have to deal with federal and state regulations and initiatives.

- Wildly different systems for school funding, property tax, school tax, etc. that all have their drawbacks and favor middle and upper class neighborhoods.

- In the US we expect a lot of services from the school that are not provided in other countries (sports and band are prime examples that in other countries would be programs staffed by volunteers and not paid out of the school budget).

- Litigation, helicopter parents...

- Intellectually bankrupt unions opposing reform

Outside of the discussion around funding, the larger problem is cultural. You could gold plate the toilets in Detroit or Baltimore or Appalachia and buy every student a MacBook Pro and pay the teachers 50% more and it won't make students want to learn.

If you want to increase the "quality of eduction" you need to fix the culture first.

I am not denying that there are some deplorable public schools out there and those should be fixed, but they are a small minority of schools.

The problems are larger and societal.
lol. Exactly.
Thanks; I also had to double back and change DoD to the more accurate "federal government", which includes other branches that used OPM services.
The OPM data never showed up for sale. It depends on whether a state actor was behind it.
We should go one step further and just terminate consumers that use companies that don't have good security. That way it will never happen again for sure.
Java: Free at Last
I didnt know fabien was working on this, yet alone writing a book! I def. Need to picl this one up...in like 3 months...after my projects.
>Misleading title and some people have already taken the bait.

Curious why you say it's misleading? The title is 'Drive File Stream launching to all G Suite customers' which doesn't say anything more than a new feature or app is coming to ALL G Suite customers.

Not misleading or click bait. I don't know why you think that cause knee-jerks reactions like that also don't help.
Things like OS search indices, recently used items databases or thumbnail caches can store hashes of files to identify whether they are up to date and referring to the correct file.
RAD is definitely back, it even has it's own gartner quadrant: low-code, with tools like Mendix, OutSystems, Betty Blocks, MS Power Apps.

How do you see the relevance of react and vue for RAD 2.0?
Huh? I've been a part of many class action suits and received many hundreds of dollars. Better than just giving up.
Back when I started college, my SSN was my student ID number. It felt weird, of course. I think there was a change in the law soon after I started college, because it did soon get changed into a different number of the same length.

Later on, I did a brief stint working for the federal gov't. In that setting, they used the SSN as our employee IDs. It was on all the personnel forms, and often seen on "list of people in the department" spreadsheets. Of course in order to comply with some law, these forms would also have a footnote explaining why they needed the SSN.

From these experiences, I have a very hard time actually thinking of the SSN as the sort of "secure password" everyone else wants to insist that it is. Unfortunately, I'm not aware of an alternative.
It is a case of FOMO, it is treatable.
I'd guess that's just when they got around to posting their pictures? Why so cynical?
Ha, ha ha.
Yes. The issuing banks don't care if you get a low interest card or 25% per annum.

I lived at my current address for 20+ years and still a bank issued a credit card for someone 3 states away ....

I have a credit monitoring (not through Equifax, Transunion or the other one; 3rd party) due to a identity breach through Blue Cross a few years ago.

The credit monitoring alerted me that the bank issued a credit card 3 states away. That 3-way call between the monitoring agency, myself and the issuing bank was interesting.
I'm saying it's a somewhat nonsensical viewpoint, imagine substituting another governmental protection. Do you support businesses that oppose quartering soldiers in the homes of citizens? "Free speech" applies to the rights granted/enforced/protected by government and businesses are operating on a different level than that.
I doubt this would be upheld by a judge in the event that a class action were to be taken to court.

Remember, any legalize like this is worthless unless a judge says it's valid.
Actually, back in high school I did some statistics and found a link between tidal forces and earthquakes. Which is reasonable as the crust does flex a little.

An eclipse means the moon earth and sun are in a line which maximizes the net tidal forces. However, you can get the same impact from a lunar eclipse. It's also not much stronger than a normal full moon.

Anyway, the effect was not that strong, but I have seen it validated by other studies. The problem is say a 50% increase in odds for the next hour can be statistically significant, but the odds for a random hour are so low it's just not that useful.

PS: Best data was actually micro quakes near volcano's, but they are so tiny as to be mostly meaningless.
Isn't what you are describing simply implementation deficiencies of current multi-cursor implementations ?

Conceptually, multiple cursors are nothing but a partial visualisation of a macro functionality.
Wow, the hypocrisy is hillarious.
> It even means a restaurant should be able to refuse to seat (pick one): black people, white people, males, redheads, left-handed people or introverts. Whatever. They probably won’t stay in business very long, it’s a form of corporate Darwinism.

I think the point of the argument is that you can't pick and choose when discrimination is OK. But then the second half, about corporate Darwinism, is a moral escape hatch, possibly because the author senses how manifestly wrong that argument feels.

There is no one-size-fits-all solution. Right vs. wrong will be a "you know it when you see it" case by case basis. And the test for that will mutate as our society mutates. Things that feel right today will embarrass our children.

What I think is important today is not to rely on capitalist mechanisms to protect minorities from discrimination. Wheelchair ramps are needed by a tiny fraction of our society. Many businesses probably wouldn't bother with accessibility, but it's mandated, because the disabled don't have a large enough wallet to bankrupt companies that don't put ramps in.
Suikervrije dranken drinken als afwisseling met water
Hey everybody! One of the creators here.

This idea came from a pain point I felt when I was trying to become better at selling my main project. I was trying to learn to become a better sales person, so I watched Jordan Belfort’s straight line persuasion which requires building a really solid sales script and sticking closely to it.

I followed his guidelines and wrote a script, but I realized that it was annoying to jump around to different sections of the script and follow along on paper. I figured it would probably be better if I could build a web app that would link me to the correct section of the script based on customer responses, so I built something that did it! Once I used this instead of the paper script, it was much easier to stay on track and not get lost in the pages of the script anymore.

Excited to get feedback on whether or not this is useful for any other sales teams!
The exact remark I'm responding to was this:

> The ability to save the macro misinterprets the flexibility to do exactly what is needed at the moment.

This makes it sound like a +1 for multiple cursors and and a plus null for macros/replay. You could argue that the wording is just so and doesn't actually claim that macros are less flexible. But the reality of the situation is that macros are +1 and multiple cursors is plus null, and the gestalt of comment I responded to doesn't convey that. That is, in all the cases where multiple cursors shine, Vim's native features are, at worst, on equal footing, and there's a non-zero count of cases where the inverse is not true. However, someone who hears the argument in the message I responded to might come away feeling that the opposite is true.

> "you don't need intuitive feature X, just use Y which is even more powerful instead" isn't a great message to users.

This, too, sounds like a crafted message—that Vim's native approach is missing something, and that advocating for e.g. repeat instead multiple cursors is shortsighted (somewhat reminiscent of [1]). The implication tends to be that the alternative might be more powerful but less intuitive or require orthogonal thinking. And there are cases in computing like that. Plenty. But using repeat instead of multiple cursors is not one of them.

1. https://xkcd.com/974/
It is the control mechanisms that make it interesting, not just the group of retailers and funding source.

With the control mechanisms you have the basis of a food subscription, a book subscription... allowances for very specific purposes at a rate that is pre-determined and could be set per retailer or even for specific products if such integration were achieved.

This is what makes it more interesting than any pre-paid card or coupon system.
Summary violations are reasonable enough in my opinion as the fine doesn't increase by virtue of attending court.
Their reasoning seems to be this:

We are a free speech registrar.
free speech means a private company shouldn't be forced to host content it disagrees with.
We are a company and we disagree with the content, therefore we will not host it.

OK fine, but this reduces "free speech registrar" to something pretty meaningless from a consumer point of view.
What can invalidate a contact though is conscionability.

If the consideration is unconscionable, a court could invalidate it. The classic example is selling a million dollar life preserver to a drowning man. Such a contract would be unconscionable.

In this case, Equifax has thrown us into the water, and is willing to give us the life preserver for free if we're willing to forget that they did it in the first place.
> Why would any human think blockchains and not stocks when you talk about investing?

Good question. What I've seen enough millenials to slightly alarm me is that they don't think stocks or blockchains but multi-level marketing schemes.

Are they more susceptible to being drawn into these than any other cohort? I'd guess probably not (I remember seeing Amway jugs in my parents' garage as a kid), but with social media it just feels that way.

Anyway, between college debt among white collar millenials with decent jobs and crappy service-sector jobs among the rest, I suspect the real problem is they just don't have anything to invest.
duplicate: https://news.ycombinator.com/item?id=15173781
The important part of multi-cursor editing is the visual feedback. It means that the user doesn't have to fully understand what is going on before using the feature. And more importantly, there is no need to plan 10 moves ahead.
Hm, you could always delay a ping. But maybe some sort of GPS-like system could be made to work.
Wouldn't "actual Nazis" be members of the German National Socialist Party?

Pedantic, perhaps, but I think the proper term for these people is "racists" or "white supremacists" (edit: or even better, Neonazis) . I find the term "Nazi" to be overused in the modern discourse, often hyperbolic in nature, usually to refer to people who lean right of political centre.

Not sure why down voters appear to disagree : I prefer to call a spade a spade.
Probably about as "feel good" as the panel on the spoiler of our Nissan Leaf: looks cool, doesn't do much. Keep in mind that a Leaf does about four miles per 1000Wh. That Audi can't have more than 200W worth of panels.
I don't think this is a legal issue but a moral issue. By siding with the moral majority this companies loses the ability to position itself as a baston of privacy and open speech. It is easy to say you support an idea but when presented with a choice this company decided to act differently. A light needs to shine on these imposters because when we really need privacy and openness we can't be fooled into trusting them.