skysight-inc/HackerNews huggingface dataset:
It has to be an exceedingly naive filter if it won't catch "which which" as being highly likely to be an error and "had had" as being relatively common. False positives are of course possible [it's always possible that you're writing about writing errors], we're talking about an aid though - I'd imagine a company like the BBC would use an in-house spell-checker of some form to check that documents match the style guide and that finding unlikely word duplications could easily be included.

How often is "the the" or "which which" actually intended, less than 1% of occurrences?

Buffalo.
>> [u]intN_t may not exist.

It will, that's guaranteed by the standard. If it's not a standards compliant compiler/runtime/platform, you've got bigger problems.

>> If you are working with arrays, always use size_t if not, use [u]int_leastN_t

Sure, on array indices, size_t is appropriate.

I can't see an advantage in using 'least' as standards dictate that 8/16/32/64 bit types are available.

>> in 99% of the cases, except if you are working with network protocols, [u]intN_t is a bad choice

No, it's the best choice in most cases because it makes the code a little more explicit and easier to understand, and it makes developers think about the range of the data you're using.
To be fair, ez-jails doesn't really abstract away that much. It just streamlines some of the more monotonous stuff.

My home server did originally run with jails which I'd created by hand and that worked really well for a while. But I started running into issues keeping the jails up-to-date. So I recreated those jails with ez-jails and the whole platform has been faultless ever since.

In fact it's been such an effective set up that I've been considering flattening my Proxmox box and running FreeBSD + Jails on that as well
How to ace your first job
I have always hated Amazon Video. I don't think Amazon even comes close to Netflix from user perspective.

There is always the confusion of which video is free and belongs to Amazon prime (free) and which ones need to be purchased. Compare that to netflix - You see it, its yours to watch.

Amazon originals are a torture chamber, I cant even name one. Compare that to Netflix - I renewed my membership just to watch House of Cards.

Amazon, Google, Facebook they all fall into this same problem of having a consistent UI across all their offerings. This constraint of consistency leads to a UI design which might not be the best for that particular product. Netflix because it offers just one thing, video streaming, can design UI best for discovery and personalization and wins compared to Amazon video any given day.
Android versions distribution in 2015, visualized in a chart
Quite a large number of "regular PC monitors" these days ship with HDMI ports, as many desktop PCs have HDMI as well. You can usually find a decent monitor for about $99 with an HDMI port.
Apple Registers Apple.Car Domain Name
Often times people are curious on what it's built with. It was one of the very first questions asked when I showed my recent project.
"I was terrible wit keeping track of"

"healthier homemade meal (if planned)" (missing period at end of sentence)

"how much do you spend on" should be "how much you spend"

"when I’m not drinking (at all) alcohol my performance" should be "when I’m not drinking alcohol (at all) my performance" or "at all" could be changed to "any"

"do I waste on eg having drinks" should be "do I waste on, e.g., having drinks"

"and buy a bread" should be "and buy a loaf of bread"

"which I was eating while on the run. Turns out I’ve spent a lot of money on them" should be use a semicolon, like so: "while on the run; turns out..."

"In a blink f an eye" - of

"on the final straight" - final stretch

"on one category, It’ll point this" - "it'll" should not be capitalized

"you spend to much on for example entertainment, tighten" should be "too much on, for example, entertainment..."

"not rocket since" - rocket science

I really like your fundamental idea of choosing just a few simple categories you care about. Good tip.
You only have to do it when you in-place upgrade the entire table, and once when the user initially logs in after that.

Once the user has logged in successfully, you can replace new_hash(old_hash(password)) with simply new_hash(password).

This is less useful for optimistic upgrades like bcrypt->argon2i, but is absolutely critical if you find yourself taking over responsibility for a database that has a password column full of, say, MD5s.

Waiting for each and every user to log in to upgrade those vulnerable hashes is suicidal.
A web app for testing your app ideas
This may seem like an incredible story to the general public but I think many of us who are founders know that in our community there are many people like Vijay Shekhar. People who have put everything on the line because they have this vision of being a world changer and creating a legacy for themselves. The only difference between the Vijays of the group and the rest is opportunity. It really is. All of them have the drive and intelligence, but only a very very few have the right opportunity strike at the right time and know what to do with it. He is special, no doubt, but this article glorifies his achievements.
Oh sure, for array index stuff like that. For general iteration against another number, say, I would use a fixed (or fast) size appropriate to my data.
locality.

It makes the code more readable.
How to fend off a jerk
The indeterminacy may not be real. It's just that you don't know the state. I don't believe there is a rule that says you get to know everything.
Most people's eyes are affected by modern lifestyle (all day staring at a computer screen). Eyes are muscles, use 'em or lose 'em. Looking at a two dimensional plane all day instead of constantly focusing on things at varying distances makes your eyes weaker. I bet a lot of us devs who wear glasses now and have terrible eyesight would have been better off in the olden days in terms of vision health.
The funny thing is that Ninebot (the company that bought Segway) has been making single-wheeled devices since at least 2014. They're quite a bit nicer than either of the devices mentioned in this article and can be had for $800-900.

I only know because I did some halfassed window shopping for them before deciding that however fun they looked, I wouldn't really be able to ride one anywhere in town legally so it would end up being a pretty expensive toy to ride around the park with.

(current example: http://www.ninebot.com/ninebot/NinebotOne/)
This has been the subject of some papers, like

https://www.cs.princeton.edu/~appel/papers/memerr.pdf [2003]
It seems like the focus is more to get one's feet wet with Phoenix/Elixir (especially as the OP refers to a tutorial series he wants to write) - not making this site into a wildly successful business
Well, the assumption you have typically been making, when your unsigned loop counter is causing problems because it is larger than expected, is that the counter will exhibit a particular behavior when it over- or underflows. IIRC, this is unspecified in the standard and you can't write portable code making such assumptions.

I can see how the type changing to a smaller one might cause problems, but I don't see how IshKebab's example could happen without exploiting implementation specific overflow behavior.
Market share.

FreeBSD has had jails for a long time and people using FreeBSD in production have been using them for a long time.

Linux just has a lot more attention.
The only issue I can think of is that arithmetic on an uint16_t will be signed on a 32-bit target and unsigned on a 16 bit target. I think the only possible way to get undefined behavior would be to left shift by enough to overflow the signed integer on the 32-bit target, which should be rare (and might not be well defined on the 16 bit target; I don't have the spec in front of me right now).
>>anyone here seems to be proposing is to make the rich less rich but still rich.

This is backwards. Not sure why this should even be done. And why does this have to end at an individual? Why should some countries be so economically powerful and others not? Will it be ok if wealth from developed nations were transferred to poor nations, every year?

You make poor people rich, you make the sick and malnourished healthy, you make the illiterate literate. You don't make the rich less rich, or the healthy less healthy or the literate less read.

Progress happens in the forward direction, not by pulling people down to make your failure look good.

There is a irrational fear here somehow equating wealth and evil. Not sure why people even think that way.
Can you recommend a small, single-home capacity natural gas generator?
Right back atcha, bro; your willful ignorance of the topic or any other solution is, I would say, a focus of your piece.

Done:

[x] Identify a problem ("overpaid millennial techies don't keep track of their spending because they just can't be arsed")

[x] Waste a bunch of time shipping a mobile app six people will ever use

[x] Write self-important, poorly-copyedited Medium post

These are the most visible parts of the design process, but they won't get you success unless you're reeeeeally good in a room with some pretty rich, dumb motherfuckers. (I am made to understand this is getting harder and harder lately.)

Not done:

[ ] Hard stuff?

[ ] Research design process: what else happens??? (<- this sounds hard)

The difficult, meaningful stuff no one really seems to give much of a shit about anymore. Except, of course, the people making good and interesting work that will actually matter a few years from now, and not just destroy a bunch of wealth and effort. But they don't write Medium posts.

Be more like them.
I started basic barbell training 3 times per week, including squats and deadlifts, about 3 months ago.

I guess I didn't notice any problems with hip flexors when sitting on a few very long flights recently, so maybe you're right.
Yes well, I don't think anyone would argue that success breeds competition. Just look at the "hoverboard" market, or any product for that matter, for proof of that.
Spending somebody else's money on somebody else describes a large fraction of what many employees of a business do. It looks to me as if those employees generally do a decent enough job of buying useful things at a reasonable price.

How can that be, given what Milton Friedman says? Two reasons. First: there are incentives in place to encourage them to do it. If they buy useless things or spend too much money, someone may notice and they may lose their job. If they find a particularly good bargain, they may be rewarded. Second: most people are not perfectly selfish utility-maximizing homo economicus, and even when spending "somebody else's money on somebody else" they do in fact prefer to do so in a way that benefits the second somebody-else at not too much cost to the first one.

Guess what? Much the same applies in government. Suppose you're a doctor in a nationally-run health system like the UK's. You examine a patient and prescribe a drug. Does the fact that you're spending "somebody else's money on somebody else" really mean that you won't prefer to prescribe a drug that actually helps the patient's problem? Does it mean you won't prefer a cheaper drug over a more expensive one that performs no better? Of course not. And if in fact you are the way Milton Friedman professes to be -- if you prescribe with blithe indifference to whether your patients live or die and to whether your national health service goes bankrupt -- then there's a real risk that someone will notice and you'll be out of a job, or pilloried in the newspapers, or something similarly undesirable.
I didn't know that but it makes sense from a liability perspective. Not sure if other prepaid offerings are similar.
Maybe cosmic rays give you a lower bound on the defect rate (though you can certainly measure and account for them). But I have never seen a complete system in which cosmic ray errors were anything more than the tiniest of undetectable noise, drowned out by the vast weight of software errors.
It's probably not too high level for game dev.

However, modern AAA game dev is largely about customising and upgrading large existing game engines, which are all C++ based. Rust could be used for them, but isn't, and the extra features Rust brings are not compelling enough to rewrite huge amounts of working code and suffer (re)training costs.

This is a hole many new languages find themselves in. JetBrains have come up with a very clever solution for their Java/Scala competitor Kotlin: the language was carefully designed from the ground up with perfect Java interop in mind (Java/Kotlin call into each other seamlessly, the IDE can refactor across languages, Kotlin uses the same standard library etc). And quite amazingly, the IDE can automatically rewrite Java into Kotlin. This isn't a party trick, it works very well.

I think if Rust wants/wanted to be a serious competitor to or upgrade path from C++ it'd have needed to take at least some level of C++ interop into account from the start such that Rust and C++ could be intermixed freely. AFAIK though, the best you get is a typical C export/import layer which is too trivial to be compelling.

Of course, it's a lot harder than connecting with Java because of the way C++ stuff is defined using header files. But at least basic interop could have been done.
> Who defines 'social good'? You assume an elite that can determine efficiency! This is the socialist conceit.

Er, no, democracy defines it.
Why Can’t Programmers Be More Like Ants? Or a Lesson in Stigmergy (2015)
You’ve got the burden of proof backward. When I say, "water is unsafe," it's on me to explain why. The folks who said "MSG is unsafe," like the folks who told us margarine is healthier than butter, have been shown over time to have relied on bad science.

anyway one can accomplish the same flavor with dried shrimp or bonito flakes, which are high in glutamate. I’m sure all restaurants that claim not to use MSG just go there instead.
> I can see how the type changing to a smaller one might cause problems, but I don't see how IshKebab's example could happen without exploiting implementation specific overflow behavior.

INT_MAX (or INT_LEASTN_MAX for annathebannana's suggestion) doesn't require exploiting overflow behaviour, but going from 2^15 iterations to 2^31 or 2^61 iterations may be problematic.
C90 allows declarations (almost) anywhere; you just have to use an explicit binding construct, which in C consists of a statement block. That is, instead of this:

{
int x = 3;

do_something();

int y = 4;

}

you write this:

{
int x = 3;

do_something();

{
int y = 4;
}
}

As a Lisp programmer, I prefer clear binding constructs which put the variables in one place. The (define ...) in Scheme that you can put anywhere makes me cringe; you have to walk the code to expand that into proper lambdas before you can analyze it. Other Lisp programmers don't agree with me. The CLISP implementation of Common Lisp, whose core internals are written in C and which historically predates C90, let alone C99, uses a "declarations anywhere" style on top of ANSI C. This is achieved with a text-to-text preprocessor called "varbrace" which basically adds the above braces in all the right places.

You get better locality with explicit binding blocks, because their scope can end sooner:

{
foo *ptr = whatever();
/* this is a little capsule of code */
/* scope of ptr ends */
}

{
foo *ptr = whatever_else(); /* different ptr */
/* this is another little capsule of code */
}

These tighter scopes are much more tidy than the somewhat scatter-brained "from here to the end of the function" approach.

I can look at that capsule and know that that ptr is meaningful just within those seven lines of code. After the closing brace and before the opening one, any occurrence of the name "ptr" is irrelevant; any such occurrence refers to something else.
Write me a sentence that you wouldn't want to flag as potentially erroneous that includes duplication of "which".

'"Which which is which?" he said'

... but I'd still want a human editor to focus on that. Surely with such a massive text output a news organisation doesn't rely solely on human focus to maintain good grammar and such? Am I really expecting too much?
I made an app for finding new apps
I have a service that may be of interest for you to blog about called http://elevtr.io. I made it because I have a lot of app ideas but I have trouble knowing whether my ideas are actually good or if they only sound good to me. I also have trouble gaining my first couple of users whenever I release anything. Elevtr io allows you to test your idea by writing a post. Other users can view your post and if they say that "they would use your app", they are put on a listserve. When you are finally ready to release your app to the public you can click launch and we will email everyone who agreed to use your app.
fdr had the real threat of revolution to help move things along. we aren't there yet.
Imba – Ruby-esque programming language for the web
Nothing gets reversed at the equation level. It's just that every equation with a dt in it gives you reversed results with a negative dt.
I understand what you are saying, but why in the world should the customer care about T Mobile's bandwidth problems? It's up to the company to provide as much bandwidth as the customer desires, not restrict it in crappy little ways to save money for the service provider who doesn't want to invest properly.
1. There is nothing inherently wrong in "leaking" a page which used to cache some word-readable file or belonged to a process you'd be able to ptrace anyway.

2. One could imagine this being configurable for embedded or HPC systems which don't care about security, though I'm not aware of people actually doing that.

3. The memory could equally well be overwritten with 0xdeadbeef and you have no control over that.

4. I once heard that Windows may sometimes fault-in nonzero pages if it runs out of pre-zeroed ones, but I couldn't locate this in MS docs so I'm not quite sure.
Ripples in galaxy help locate dark-matter satellites of Milky Way
The JVM is written in C, but that C has been subject to some formal analysis. And even if it hadn't, I'd bet the defect rate of a Java program running on a C JVM would be much much lower than that of a C program.
A more precise comparison on Linux would be OpenVZ and LXC (or Zones if you're a Solaris admin).

As for why it's not gained more momentum, that would likely just be because Linux popularity dwarfs FreeBSD. Much the same reason as why so much effort was made to port ZFS to Linux despite FreeBSD already having excellent support. But for what it's worth, jails have been widely used within the FreeBSD community for quite some years.

It's a great shame FreeBSD doesn't get more love because it really is a fantastic platform. But then it's just one of a long list of very credible operating systems that often get overlooked.
A company that's willing to make a product for a 20% margin might not be willing to make that same product for a 5% margin. Would you put all of your savings in an account with 1% interest and zero-risk? The opportunity cost is important too. Also, remember that your pay as an employee depends on the success of the company, just as much as the dividends for the owners do. Not to mention that the owners include just about all of society, through mutual funds, pension funds, and retirement accounts. The more you raise burdens to business and profit, the poorer your society gets.

That's not to say we shouldn't regulate pollution, but we can't ignore the trade-offs involved. It's not just a matter of the rich taking less of a cut; that's not how it works.
MSG is a salt, so when you put it in water, it dissolves into sodium and glutamate. Glutamate is an amino acid found naturally in a variety of tasty foods. So, you already consume it and you're fine.

To be more sure of yourself, you can run an controlled, blinded experiment where you have group A consume food with monosodium glutamate added and group B consume food without the additive. So long as you don't tell which food is which, then group A won't have a different response from group B.

But these things don't actually answer your question. They answer the question "How do we know it is safe?"

To explain "why MSG is safe" seems like it would be impossible for the same reason that proving a negative is impossible: you would have to go through all of the possible metabolic processes and show that and it does not screw with them.
You say advertising, I say block that malware
It's safe because it's simply the salt of sodium and glutamic acid. Glutamate is an amino acid that is a fundamental building block of your metabolism. It's also been omnipresent in human diets for millennia.

If we had discovered how to synthesize salt in 1909 and had called it "NACL" since then, it would be precisely as controversial as MSG is.
> In the past few years Convolutional Neural Networks (CNNs) have revolutionized the field of computer vision. Each year the ImageNet Challenge (ILSVRC) has seen plummeting error rates due to the ubiquitous adoption of CNN models amongst the contestants.

Am I right that the "Convolution" part only refers to the speed by which the models can be trained, and not to any other quality of these models?
Ironically, it could be this very abundance of ideas which is so paralyzing. The more choices you have, the harder it is to choose.

That being said, I agree that this problem has its roots in corrupt politics.
Before looking at your tool, I think that there are already many tools for time tracking with Trello.
While I agree with you for the most part, according to this[1] Musk does seem to have a mansion. It says the value is only $17 million though, so pretty far from Gates[2].

[1]: http://www.bloomberg.com/news/videos/b/6e27fcba-309d-494e-b8...

[2]: https://en.wikipedia.org/wiki/Bill_Gates'_house
You can also use the EFF's affiliate code on top of Smile. That's ?tag=electronicfro-20.

I'd be careful with any Smile-forcing browser plugins though, as I bet they conveniently insert their own affiliate code in addition to setting the Smile link. This is also common of price comparison applications.
I'm actually pissed that Amazon agreed to 'buy' 'Top Gear' and that Netflix was interested.

Clarkson should not be rewarded with more freedom and money after punching a staff member over some little thing.
I made a web app for testing your app ideas
I have a service that may be of interest for you to blog about called http://elevtr.io. I made it because I have a lot of app ideas but I have trouble knowing whether my ideas are actually good or if they only sound good to me. I also have trouble gaining my first couple of users whenever I release anything. Elevtr io allows you to test your idea by writing a post. Other users can view your post and if they say that "they would use your app", they are put on a listserve. When you are finally ready to release your app to the public you can click launch and we will email everyone who agreed to use your app.
> and musk is a dick now.

Why?

> it's a product of age and aggression.

Should I wonder about your age now?
The lack of support for Chromecast/Android TV is the big killer for Amazon Prime video in my book.

Also the shady practice of removing alternatives to the Fire TV Stick from the Amazon store leaves a pretty bad taste as well.
But what are some actual numbers for costs to the grid per household?

I've yet to see any concrete numbers but I see a lot of justification of minimum fees using grid costs as the primary reason.

If these costs are so visible and important, why is it hard to find actual costs? Is it $2k per year per household? $400? $100? Does it match up with some of these $50/mo minimum fees?