skysight-inc/HackerNews huggingface dataset:
Hackers are opening SMB ports on routers so they can infect PCs with NSA malware
Or, a government could just say...

Why not both? I'm serious. It seems like a good idea to promote competition and put a ceiling on the prices of essential medicines based on the global market. 10% above the lowest price may be a bit aggressive, but something must be done to stop these 10,000% markups we're seeing now.
Wait, you do this before getting an N3? How is that possible?
We left the servers running unmolested and un-upgraded behind a firewall (thankfully they were super stable) until we could replace the 3 unmaintainable microservices that did something simple in the most complex manner imaginable with a 50-line module within our monolith.

(In this case, technically one person on the team - our most sophisticated developer - was able to decipher it. But every time he needed to touch it it would take him 2 full days just to understand the code again. Just wasn’t worth keeping when it was so pointless to have and so easy to replace.)

For a more complex codebase, the equation might have been different.
Fwiw Google solves this problem by having tooling generate the file template.

In other words, my vimrc pulls in a global vimrc that, when I open a new .cc file, it starts as a stub that has the correct ifdefs and some common imports (flags iirc). This, combined with a lint/presubmit that prevents submission of files missing the correct defs makes this a nonissue in practice.
Exploit Tutorials
Doesn't seem to work on mobile. Did anyone have better luck?
Meh. C and C++ should just standardize on #pragma once. Everything supports it. It's trivial for new compilers to implement. There's no reason a stupid preprocessor hack should still be required in order to prevent double-inclusion.
It's not, not even remotely. You clearly haven't actually lived day-to-day with Linux or you'd know how buggy and unreliable the random drivers for less-than-popular hardware actually is.

Further, you've clearly never had a critical outage happen during off hours. Try running to the community when your job is on the line at 3AM Christmas Day, let me know how responsive they are to you then.

You get the quality you pay for, and while the open source community is wonderful and amazing, it's done by people working for free, and subject to the whims of those people, which makes it A) unreliable B) inconsistent, and C) lower quality, on average.
> unless knowing an absolute path was enough to allow you to access it

If understand correctly in fuchsia "absolute path" is always relative to a filesystem handle so knowing it and being able to use it are pretty similar
All major SQL databases support extensions though.
You don’t need a blockchain for that also if the “transcation data” itself is not immutable such as in the case of a banana so how would this work exactly?
> The #define Guard. GSG prefers #ifndef/#define idiom over the simpler #pragma once. Yes, #pragma once is non-standard but widely supported.

What? I cannot read more after this.
As per my mother over Thanksgiving break, I did not have trouble breast-feeding, just to be clear that that is not alway present, particularly in mild-moderate cases.

A tendency to mouth-breathe and ear infections are both symptoms in youth.
Bringing Xmas joy to coders in milliseconds
I would expect your use case would be better suited by use just using postgres. However if you do need to scale to the point where you'd need to distribute your database and take advantage of CRDB's capabilities, it uses the Postgres protocol, so you most likely can just migrate your data and use the same code.
As a Bitcoin guy, I'm going to chime in there.

> Yet it was always rooted in this sort of cynicism that distrusts institutions and the power of humans to have any positive impact with anything but the tools of physics and math: to wit, the endless conspiracy theories around the FED, the infatuation with Gold and land, etc.

Realism, not cynicism. The historical record shows that anyone with a printing press will abuse it to his own benefit. All central banks do this. Plenty of private banks prior to the Fed did it, albeit with government help via legal tender laws, sanctioned suspension of specie payments (breach of contract), and par laws.

Thus Bitcoin separates money and state and seeks to be a sound digital commodity.
It seems to me that the biggest thing that the author does not know about the provenance of Google's style guide is just how massive Google's projects that this guide applies to really are. A lot of the author's complaints may not make sense on their project with a few engineers, but they are absolutely vital in a code base on which thousands of engineers work on every day.

Those engineers often have to touch parts of the monorepo that are far away from what they usually work on, creating changes that need to go through reviews by teams that they have never interacted with before, and in turn need to be understood by future engineers in a similar position.

For example, the author states that "top level/application code" does not need to be in a namespace, but it's often downright absurd to classify what's considered "top level" code in Google's monorepo. I also chuckled at this:

> “Do not define implicit conversions”. I would urge the reader to consider what life would be like if std::string(const char*) constructor was marked explicit (especially in the absense of user defined literals, which GSG also outlaws). Nuff said.

At least when I worked with the code (many years ago, parts of Maps specifically), Google had its entirely own string handling routines that followed their conventions, and I did not miss std::string's implicit constructor much. This is a completely different world, where the standard library does not matter, and almost every code comes from Google themselves.
All agreed up until the "100% certain they don't mass track everyone in Europe part"—what's the basis for that strong certainty? That they don't want to, they realize it would be wrong, they don't think it would be worth it, or just that they can't because the European governments aren't facilitating it or looking the other way when they do it?

There are quite a few mass surveillance techniques that don't require support from a local government:

* undersea cable tapping
* hacking routers
* hacking servers
* bribing people
* backdooring hardware
* spy satellites
* RF surveillance from embassies or shell companies

Several of those seem pretty plausible for me for the PRC to be using against Europeans. :-(
The title says "Japan Is Giving Away 8 Million Abandoned Houses — Here's How to Get One (Video)" there is nothing explained in the article nor in the video how to get one!
Zuckerberg's name may be removed from the hospital to which he donated $75M
Internet sleuthing leads me to believe he works at AWS as a senior program manager.
You have many vendors that handle the product. The farm, multiple distributors, and transportation companies.

Having a consolidated/consistent view of transactions from the full supply chain relative to tangible product could be genuinely helpful for reducing errors that could be consequential from a food safety perspective. It's unlikely to stop cheating since many of these food vendors will almost certain being humans entering transactions at keyboards (and then when you can get compliance with that transaction entry) and at those points all you can do is make cheating harder.

The challenge is how to get that consolidated/consistent view of the world across disparate parties, some of which don't know all of the other parties involved, in a secure enough manner, and in a way that the supply chain participants will be willing to take part in.

Larger players, like Walmart, can set the stage for some of that cooperation to happen just because of their relevance to the market. The government agencies that buy food also want that and also are pushing for it (that's where my clients are getting some pushes in that direction). None of that means the end goal will be achieved for any number of reasons, including many that are not technical in nature... "blockchain" just complicates those odds.
A much preferable strategy.
Resolved: Debate is stupid
holy hell that is going to invalidate a lot of research
How to Harness the Powers of the Cloud TPU?
thanks for sharing - that makes sense. Where do you usually write your runbooks? In a google docs/confluence type wiki or with your code? How do you organize them so that you can find/share them quickly?
Instagram is now using AI to describe photos for users with visual impairments
In 2017, over a million people[1] received legal permanent resident status. In 2017 it was slightly less than in 2016, but on roughly the same level as the previous decade. So recent policy changes don't seem to have much effect in that regard.

[1] https://www.dhs.gov/immigration-statistics/yearbook/2017
Considering this account and the event going on, I'd say it is a mix of both.
And Python's Axe!

I mean doctest: https://docs.python.org/3/library/doctest.html
Similar but unrelated topic... Does anyone have a good C style guide they like?
I'd prefer the opposite, businesses that don't allow children. Why can't every place be a bar and/or strip joint?
Dark side of working in the video game industry
Anyone know how this would compare to IPOPT for constrained, sparse nonlinear optimization?
When I started my current job I was the only white person in engineering.

The reason that it makes no sense to have a "white male" group is that's the dominant culture generally. A lot of that culture, the "baseline American" culture, is of interest to people who aren't in that group, but the reverse is true way less frequently. Indian-Americans are going to know what Christmas is and might even participate in a gift exchange, but are white people going to observe Diwali?

I was the only LGBT person, and THAT experience is way more isolating.

Groups around interests are great, but you run the risk of creating groups that are popular/mainstream and still fail to include those who are not as mainstream in their interests.

The whole point is to help people who feel like they are different find their place, and a lot of potential interest groups can start to look like a white male club under a different label. For instance, consider a craft beer group, or an (American) Football group.
> If that's the case, you believe that libertarians are shills, then?

I'm sure some are.

I'm also sure some are honest people who believe things at odds with what we know about market failures.

Here's a market-oriented (that is, based on the idea of market economies) critique of Libertarianism:

http://slatestarcodex.com/2017/02/22/repost-the-non-libertar...

It's founded in, ultimately, game theory, with a lot about coordination problems and defection.
A better explanation consistent with "blunt force injuries" is a jump from several floors up.
Yeah stupid clickbait titles i want my abandoned house
Why Didn’t the Dream of a Laptop Upgrade Slot Take Off? (2017)
I've been on Fi for ~2 years now, and while the network kinda sucks sometiems, and $10/GB can be expensive, keeping the Google Voice spam filtering/call filtering, and doing all my texting via Hangouts is amazing.

I'm sure sooner or later Google will fuck it up, and I'd honestly much rather have an iPhone these days, but for my current setup, its perfect.
It sounds like any centralized database to track ownership of shares would solve this though, and then you wouldn’t require third party proof of work or run the risk of losing your shares when your usb flash drive breaks
As someone who lives in a really shitty part of SF, crime will affect you. Your apartments garage will get broken into, your packages will be stolen. People you don’t know will brazenly ask to buzz in at all times. If you are female, you will be harassed. If you are male, you may be harassed. It’s tolerable and my landlord has all kinds of fantastic security measures but it’s no breeze. Fights on the street can get pretty heated and you never know when something bad will go down. I balance all that with an apartment large enough to run my company from and entertain my dog but I’m totally down to move once I have enough capital to get a proper office and a nice place.
> Yes, those are the cases where it isn't possible to avoid forward declarations, so it's fine to use them?

The author explicitly mentions how it is possible to avoid forward declarations in those cases: "both of these forward declarations are possible to avoid by type-punning through a void* but it is not a good pattern."
MDN Web Docs performs language selection based on the Accept-Language header
I had to encode a factory's shift schedule. I noticed that it repeated in a regular way with each month. Then I noticed that there was yet another, more subtle symmetry in between weeks, so I encoded that too. Then I realized the remaining pattern was a simple wavy line, so I replaced that part with a function based on a sine wave with the appropriate amplitude and period.

In my defense, I was 16.
Behind MimbleWimble
Perhaps it's a matter of rule-based versus principle-based view of the world.
Generally speaking, in a principle-based system, there is room for different interpretations of the stated principles. Edge cases usually don't require special mention.
In a rule-based system, rules are strictly defined and enforced with little room for interpretation. Anything not explicitly mentioned is a grey area and edge cases often end up amending the rules so they are covered as well.

Sounds to me like the author prefers the rule-based approach and/or is assuming these rules are strictly enforced.
Some libertarians (such as myself) generally believe corporations already have strong incentives to make non-defective products. Some products that compromise safety for cost provide consumers low cost options they would otherwise not have. Efforts to regulate such products to make them safer can cause more harm than good (by making such products more expensive and therefore unavailable so consumers will use something older or less safe).

Currently it costs zero dollars to "hire" a lawyer in a class action against a company for a defective product. If a company has made a defective product there will probably be a class action and you will receive a small settlement. If you have been seriously injured eg by asbestos it also costs zero dollars to hire a lawyer, they work on contingency. I am totally in favor of reforming licensing laws, but if you have been seriously injured and you have a strong legal case, money is not a barrier to getting a lawyer.

Generally I think there is too much regulation and too much litigation, I don't think private litigation is a solution for regulation, I think market incentives are the solution. When there are obviously unsafe products on the market is worth looking deeper to see if consumers are willingly sacrificing safety for cost.
Fun piece of trivia for you: The C++ Core Guidelines referenced in this article are longer than the language spec for Go.
After developing on unix variants for over 20 years, I can say that most people developing software do not use the command line. I see this every day... Even skilled developers run from command line git and into a GUI tool, instead of really understanding the tooling they're using.
JUST IN.ASUU SUSPENDS NATIONWIDE STRIKE
Erlang is great - we ended up settling on it as the basis of our platform. It was between Erlang and C++ for our real time highly available system and in hindsight Erlang was a no brainier. So far it hasn’t disappointed.
He chose to enter his story into the public.

Unfortunately, his version was a lie. Not a bad thing for someone to expose the truth.
Here's a critique of Libertarianism (not the same one I posted above, in fact) with an answer to that:

http://world.std.com/~mhuben/faq.html

> If you don't pay your taxes, men with guns will show up at your house, initiate force and put you in jail.

> This is not initiation of force. It is enforcement of contract, in this case an explicit social contract. Many libertarians make a big deal of "men with guns" enforcing laws, yet try to overlook the fact that "men with guns" are the basis of enforcement of any complete social system. Even if libertarians reduced all law to "don't commit fraud or initiate force", they would still enforce with guns.

If you don't like this contract, you can vote to change it.

If you can't get enough people on board to change it and you still don't like it, you can leave.
Show HN: Get discovered by companies looking to hire remote
I don't know, that sounds like a lot of work. I think a well-calibrated shock collar would suffice and would sell better in drought-prone areas.
This 100%.

I’ve worked on several codebases over the years where a mgr said “here’s a special case, inputs of (foo, bar) should give baz2 not baz1. Coder whips up a hacky workaround to that very specific ask in the simplest place possible, not the right place. A few dozen requests come in like this over the months. Overrides and exceptions are now scattered all over the code base, without any semblance of order, functions no longer do what they advertise because data is modified downstream, etc.

Sometimes the time to redo it right is worth the investment in terms of future maintenance. Other times it’s too foregone and you have to bite the bullet and stick with the mess.
All true, but I think even more fundamentally, they treat all requirements as of equal importance, and reported based on the % of requirements met. The requirement to, for example, know at least one programming language, is different than the requirement to have experience with a particular IDE. Someone who does not have the latter requirement is probably much more likely to nonetheless get a callback, than someone who has no programming experience, even though each might be one "requirement".

Secondly, the people applying who have <100% of the requirements, know this, and are trying to guess if they meet all of the _actually_ required criteria. The ones who apply anyway, and get an interview, might be doing a better job at guessing which "requirements" are real.
Sorry, I just can't let your second to last remark pass: SVN is snapshot based.
oh, it's hard to tell when Grischuk is joking. It's true, he never had a negative rating: http://universalrating.com/player.php?PlayerID=16626
Going three-for-three in this thread, a whole page on the fact Liberalism Works:

https://www.zompist.com/liberalism.html
I’m not a huge fan of the GSG, at least the C++ one. It seems to be less about style and more about forbidding scary language features. A language feature only becomes a “foot gun” in the hands of a careless developer. Maybe it’s too idealistic but IMO it’s better to fix the “careless developer” problem at the interview stage, not in a style guideline.

Hire developers who voluntarily follow best practices and use good judgment...don’t try to mandate it with an arbitrary list of forbidden practices.
I would start here:

https://aws.amazon.com/transcribe/
You can use Google Voice/Hangout for all their features without Fi So is there an advantage to paying for Fi otherwise that I am missing? The cost for the amount of data I use would far outweigh any benefits I can see here unless there are features you get with Fi for Voice/Hangout that I don’t know about.
There's also some dispute over whether OpenSSL has the right to relicense all of its codebase to Apache 2.0; they didn't require a copyright transfer from individual authors and don't have 100% authorial consent.
Check out Rapport, big banks prompt you to install it everytime you visit their login page.
“Stylish” is back, and you still shouldn't use it
Comparing to California, which also has earthquakes, and nobody thinks twice about buying a used house. And it's not like they are built to be super-resilient either - it's mostly wooden planks, particle boards, sheet rock and stucco...
Possibly my first post, so sorry if I have make faux pas. In the UK the national health service [NHS] engages nationally to negotiate price. They have the concept of the value of a medicine compared to the improved quality of life it brings. As a result generic medicines are priced against their value.

This means that an epipen is priced at £45 or about $60. Google Lloyds pharmacy epipen - UK only search.

I rather like this approach to healthcare, I am not sure about transnational ability to buy this - but to those that need it I hope you can make it work.

My observation is that the UK approach to healthcare has some advantages in its approach, it is not without faults but value for money [affordability] is embedded in delivery.
I don't think "emsmallen" can be said reasonably :)
There are some super boneheaded comments in here.

* "Don't use forward declarations unless necessary" with the counter example of why it's bad, being a case we're they're necessary?

* The complaint against "inline" is nonsense. The only thing inline impacts is function linkage. Literally nothing else. If the compiler thinks a function is profitable to inline, it will inline it. If it does not think inlining is profitable it won't, the fact that you say "inline" means nothing.

* Complaining about complex globals initialisers: they directly impact library load time, they do cause breakages on ordering. Yes you could structure your code to avoid ordering issues, but then every developer needs to work for all time to avoid breaking it. Or you could just not use them, and it's not a problem.

* Restricting copies: It should be super easy to tell at a glance if code is going to be needlessly inefficient. Easiest way to ensure that is to make your code fail to compile.

* Exceptions: they add significantly to code size and launch time. The failure modes are hard to reason about. The standard idiom everyone is move to is option<> or result<> types. It means you have to handle errors, or be explicit in ignoring them.

* Template meta programming is extremely slow to compile, and very difficult for people to understand. constexpr is easier to read and understand, more efficient to compile, and can also be reused for non-constant cases.

* Boost: if you're using boost then you're requiring all your developers to install boost. Then you need to also ensure that they're all using the same version, and then people can end up requiring multiple versions. Again, super large company, with many many engineers and many projects mean the chances of multiple projects depending on different versions of libraries will cause misery.

* C++11 - Cool, it's 2018, guess what: many machines are running versions of an OS that has a 2018 edition of the C++ standard library. If you compile targeting newer versions of the standard library then you can't ship to those systems, unless you include a copy of the standard library in your binary. Then you have to hope your copy of the standard library doesn't conflict with any loaded by the system's own libraries.