skysight-inc/HackerNews huggingface dataset:
I don't know who to give credit for this concept, but I'm a fan of "tombstoning" functions that are being removed. You basically replace (or prepend) the body of the function with a call to a method that logs the timestamp, calling function, etc.

Here's an example in PHP from a quick google:

https://github.com/scheb/tombstone

I once had to lead a large refactor of a project written in an foreign dynamically typed language and tombstoning was a necessity for how large and poorly designed the projet was.
>Surely you see someone clearly messed up after doing drugs.

You may not start to see the negative impact of drug use until years later. By then it's too late.
>Price gouging incentivizes creative and extreme tactics to increase the supply of a scarce good. And even when supply is inherently fixed, it at the very least gives you a clean way (even if it's not necessarily fair or good) to figure out who gets the last 10 bottles of water.

If we're willing to discard fair and good there are plenty of "clean" ways to distribute water that aren't gouging.

>If you create a law that bans me from selling water for $99, I'm not going to be able to do any of that. Not only am I no longer incentivized to drop everything and spend a week organizing a water supply chain, even if I was incentivized I don't have the kind of budget I need to get water bottles into a city that's underwater.

Good. Listen markets work in certain situations but maybe it's time we stop trying to marketize everything. Disasters are not your business opportunity. This is firmly in the government's realm and we should ask government to do more. If our social contract is a kind of insurance on the harshness of nature then it's hard to see a situation more deserving of government intervention than a natural disaster. This is the exact same problem we have with healthcare: find a market where people need your product to live, push that price up as high as you can. Charging the needy $100 for water is sick and reminds me of a Galbraith quote, namely that you are:

engaged in one of man's oldest exercises in moral philosophy; that is, the search for a superior moral justification for selfishness.
Our mindset in society is that the wealthy survive and prosper. From my experience most wealthy people are terrible out of shape - probably would have a heart attack if asked to run a mile. While I don't live anywhere near these disasters, if I saw a wealthy person purchase all the water because they could afford it, I would hope they are carrying. The strong survive, not the wealthiest.
In fairness, we don't know if she was buying for her or her and several of her neighbors. So, while a picture tells a thousand words, it can very well tell the wrong thousand.
Oh, they wrote their own uwsgi, based on what presumably started as nginx2. That's cool.

I hope they would avoid the Second System syndrome..
FWIW, there are MFI hearing aids with Bluetooth audio support (along with individual R/L volume control, profile selection and remote microphone support - seems pretty neat) that I've seen some people raving about on reddit. Rather expensive devices, but hearing aids in general are outrageously priced even for low-end models.
Show HN: Database Flow – Modern web database client using SQL or GraphQL
I've read in the past of how such deals (of factory/office X choosing to open location Y based on tax incentives) ultimately not benefiting the city involved, especially when the companies pull tactics like closing unexpectedly shortly after receiving incentives and moving elsewhere. Given this, I'm fairly sure that a wide-ranging study of such infrastructural deals would show that many (most?) communities involved are left at a net loss financially.
And yet businesses in the real world are working hard to increase supply of these very goods right now just so that they can sell them at a regular price. Some companies even give away stuff like bottled water, what's the economic explanation of that?

tl;dr left out of your economic models are things like good will and civic pride.
Or just stop being really bad at it. Other countries are doing it, so it isn't an unsolvable problem.
That's just an example. When you follow the WP link, you get to another example (https://en.wikipedia.org/wiki/Criticism_of_Apple_Inc.#Accusa...). There are plenty. For example, if you want to develop iOS apps, you are forced to buy a Mac. Technically, there's nothing to stop you from running macOS in a virtual machine, but Apple claims it's illegal and that you need to buy hardware from them. Everything, literally everything is well thought out as a way to make customers spend even more money. This is where Apple's marketing genius lies and this is where their huge profits are coming from.

As another author writes (http://www.business-standard.com/article/management/apple-s-...):

> Apple has adopted the opposite stance creating proprietary hardware and platforms that firmly lock you into their ecosystem and this is one of the reasons why today, despite falling market share, it remains one of the world's most profitable companies.
THIS.

No law can ever repeal the laws of supply and demand, demand increases MASSIVELY during times of crisis, the result is prices must increase until supply increases or demand decreases again.

The alternative scenario that anti-gouging laws attempt to realize is for sellers to keep the cost of goods (now in high demand) the same, meaning they will quickly run out and shortages will arise, leaving those willing to pay higher prices unable to purchase goods.

Also, from a practical standpoint, if businesses are forced to keep prices the same, nothing stops people from buying up all the (now in high demand) goods and reselling them at a (much higher) current market price.
I can't speak to the original intentions of the authors, but I suspect it might be related to difficulty of making significant changes to the project due to some strongly held beliefs.

An example: react-native depends on alpha/beta versions of react, and libraries in the react-native ecosystem tend to include a peer dependency on react (eg: react >= 15). React 16.0.0-alpha.12 will not satisfy this range, but 16.0.0 will. It's unclear to me in what way it is useful to exclude pre-release versions, and this causes a lot of confusion for users. I posted about it here: https://github.com/npm/npm/issues/8854 and it was shutdown for ideological reasons, rather than practical considerations. On the other hand, someone submitted a patch to yarn to improve this behaviour and it was quickly accepted: https://github.com/yarnpkg/yarn/pull/3361.
I'm not quite sure what you're insinuating about YC here but I suppose a standard "no, we don't do anything like that" is in order.

We sometimes rate-limit HN accounts when they have a habit of posting low-quality comments too quickly or (especially) getting involved in flamewars. Since we've discussed this more than once before, I assume you remember it, but other people might not know. That's all that's happening here and of course it has nothing to do with your opinions, about Kafka or YC or anything else.
egregiously false dichotomy
Show HN: Indoor positioning for robots and AGVs using UWB beacons
Tesla Semi could be ‘the biggest catalyst in trucking in decades’
Several people are asking about the "why" of this, much of it stems from legitimate prescriptions for Oxycontin which due to the "12 hour problem" [1] balloons into a heroin (cheaper, easier to get) addiction [2]

1 - http://www.latimes.com/projects/oxycontin-part1/

2 - http://www.narconon.org/blog/heroin-addiction/5-reasons-pres...
I wish I could upvote both of you twice.
As I said: The problem is not using the software itself but knowing that the green checkmark (or whatever) it displays actually means the vote was correctly counted. The former is trivially done by a competent team, the latter not so much.

Just an example from another field: It is easy to compare key fingerprints shown by WhatsApp/Signal/GPG but how do I know that the software does not encrypt the text with a second key? Personally I am not competent to do so and have to trust others. Don't forget that it's not enough to audit the code itself but you would also need the check the whole build process from scratch (and processors it was done on for that matter - and while we are at it: how can I know that the display actually shows that it was asked to do?). How many people know how to do so?
RE the 2nd issue: Are you sure you even need `private: true`? Scoped modules are private by default right? I thought `private: true` was supposed to prevent publishing to npm altogether.

It's odd they haven't at least triaged the issue (but you know humans/time). That said the fact it's a niche workflow (it's unclear why the user is using --no-save) and the steps to reproduce won't be doable by the team ... probably doesn't help the issue get attention.
If it were the 80s, they would blame heavy metal.
5 Corporate Perks Today’s Workforce Truly Cares About
Southpark Game gets harder if you choose dark skin
Hi everyone. I'm the author of the featured post; thanks for the interest.

> If the code never calls the function with bad values, there's no UB

Exactly. Even if a function might have undefined behavior for some input values, compilers are still required to compile the code correctly for the other input values (if any). And I would still expect them to optimize for those other input values.

Anyway, would everyone be happily convinced if I updated the example as follows?

#include <math.h>
#include <limits.h>

char fn1(float p1) {
if (isfinite(p1) && CHAR_MIN <= p1 && p1 <= CHAR_MAX) {
return (char) p1;
}
return 0;
}

I think that covers all that could possibly go wrong. And (unsurprisingly, to me at least) it still shows the same behavior with GCC of storing to the stack and reloading instead of zero-extending register-to-register.
The cost is the impermanence of knowledge capital
Indeed, and ultimately someone that rich doesn't need to win every case. He can just keep racking up the costs.
Some people are also more prone to addiction. I have no interest in drugs but I have unsuccessfully tried to stop eating chocolate. Couldn't do it. So if you are prone to addiction it's just really hard to stay away.
IRC is a technical detail like SMTP or TLS 1.2 (or XMPP), and should be treated as such. That there are numerous pre-existing clients is beneficial for those who already have a preference, but as evidenced by Slack, the number of client programs available is far from the most important feature.

It would be really neat to create a IRC server that bundled supported web, desktop, and mobile (ios and android) clients with first-class support for that last 5% of features, but I'm doubtful of how much money there really is to be made. People are cheap, and Slack is "free" - I mean, it's actually not free for the organization, but users don't pay a monetary price to download the client to use the system, so I see charging users money for high quality IRC clients as an uphill battle.
Tax Evasion is corruption, its that simple.
There is a 'Focus' mode; built into the app, which provides a summary after you come out of it.

Seems like a neat feature - if it became the norm across app apps, it may solve the concentration problem.
Question: how does it differ to testrpc + web3?
yup just a bit of sentiment analysis, mood analysis, personality analysis, predicting how you would behave as an employee, as as an irate customer, determining your demographics, your social influence. Just those few bits:)

You should use this if you are a product manager whose product needs to know more attributes of its users. You can drop me a line at <username> AT frrole DOT com and i would be happy to walk you through the details.
It's a fault of business for seeking to reduce the tax load that would provide society with the resources to retrain/etc.
> Progressive islands in conservative states are almost worse

Progressive islands in conservative states is pretty much all there is, with the exception of California and New England.

Chicago is the progressive island that turns conservative Illinois blue on the map.
Seattle is the progressive island that turns conservative Washington blue on the map.
New York, Rochester, Syracuse, Albany, and a few others are the progressive islands that turn conservative upstate New York blue on the map.
Houston, Austin, Dallas as the progressive islands that have not yet turned Texas blue on the map.
etc...
etc...
Building an Alarm app on iOS
Its interesting that this tool has no PATENTS grant.
The biggest anti-pattern is the stateful VCR-like digit displays with a couple buttons.

They're somewhat going out of style because more stuff has touch screens or can be controlled by a smartphone. But lots of audio equipment still uses this "pattern". And thermostats have it.

I'm a programmer and I still have problems figuring out that their state machine is without the manual. I just bought a $20 clock with the same issue. It doesn't help when one of the actions is "hold a button" either. There's no feedback as to what action you performed -- did I hold it for long enough?
Probably because the people who got hooked, got hooked before the media storm. You know, back when Pharma said they weren't addictive because the slow release nature of the pills?

Also, probably boredom.

You have to understand what middle America looks like today. It used to be vibrant, now it's nothing but shells of ghost towns. This happened for a few reasons:

1. Walmartization killed all the independent shops.
2. Agribusiness made family farming untenable.
3. Out of country manufacturing.
I'm not sure I would call that an externality. The newly-unemployed worker whose job was just outsourced is part of the transaction. I understand "externality" to refer to economic consequences to uninvolved parties, like when a company sells gas to an automobile owner which causes pollution which affects everyone else.
Very much reminds me of Jacques Carelman's "Catalogue of Unfindable Objects", one of my dearest book memories. A Google search gives some examples of objects from the catalogue [1].

[1] https://www.google.com/search?q=Catalogue+d%27objets+introuv...
Personal attacks are not OK on Hacker News. Please don't post like this.
Unless money is being funneled into private politicians’ hands, it’s not corruption. The choice is between amazon + tax breaks and nothing. These cities clearly believe that they’re better off, net net, with Amazon and they’re probably right. This is not at all the same as accepting bribes. There are certainly bad deals out there, but mismanagement is not the same as corruption. Now if you can show that the politicians in question are getting kickbacks, that’s another matter.
Yep. When arguing properly (as opposed to here, for example), I usually try to start with a common set of values or facts with my opponent--oftentimes just using theirs for convenience's sake--and try to reason back to my own position.

Rarely does this fail. When it does fail, it usually means that we both have an incomplete view of the world, or that there is some incorrectness in the chain of reasoning that becomes evident pretty quickly.

Unfortunately, people usually prefer to take the (quicker, sloppier, more quarrelsome) route of "I have my facts, you have your facts, you are evil for believing <X,Y,Z>".
> gives you a clean way (even if it's not necessarily fair or good) to figure out who gets the last 10 bottles of water.

I think op makes a point that it isn't necessarily fair or good but that it is effective way to get more scarce goods to people.
Higher prices encourage supplying more emergency supplies either through transporting them into the area or storing them in preparation for a disaster. Airlines are more likely to make heroic efforts to fly people out if they can charge more for it.
> Are you seriously suggesting that the decline of the acceptance of rape

Where did I say that? You are just resorting to outright straw man arguments now?

I'm just pointing out that the lies the media tells about "campus rape culture" as if every college woman is being raped and every college male is a rapist doe a disservice to both men and women.

> or the increasing awareness of discrimination against women in America is causing men to use opioids?

Discrimination of women? What about the discrimination against men?

There are more women at colleges than men. Corporations are favoring hiring women over men.

I guess we can blame the opioid crisis for that.

When more men attended college than women, then it was sexist patriarchy.

Now that more women are attending college than men, the media says it's the "natural" order.

"“At the same time, the slower social development and more serious behavioral problems of boys remained and allowed girls to leapfrog over boys in the race to college.”

In other words: As things got more equal for boys and girls, a natural advantage began to reveal itself."

https://www.washingtonpost.com/news/storyline/wp/2014/12/11/...

Can you imagine if a man said it is the "natural order" for more men to attend colleges than women?

But yes, lets pretend that women are being discriminated against.

Millions more women attend college than men, but it's the women being discriminated against.

https://www.bostonglobe.com/metro/2016/03/28/look-how-women-...
what a year do I live in that governments must bow to corpos and politely submit RFP document asking for tax money .... reduction.

There was once a story on hackersnews why this (demanding tax cuts) its unethical on much larger scale than race etc. It went like this (forgive my memory, english, and feel free to correct it):

There were two states, neighboring, with similar budgets and number of people. They werent rich, there werent many benefits for citizens in each state, yet people managed to get by. Then one day, a company came to them and asked, who can give me corpotax subsidy ? I'll build a factory there and employ maaaany people. State A objected, while state B agreed. That was a 10 years deal. A lot of people from State A migrated to state B in search of work. 5 years into the deal, company thrived: no taxes to be paid = most competitors in both states are killed. Company is building another factory. Again asking both states of tax subsidy. This time, due to loss of population, being on verge of collapse, state A had to offer super deal. Company built second factory there. The pendulum is swinging the other direction. The rest of the cycle is left for the reader.

Because population is relatively constant, allowing this shenanigans is effectively allowing corpos to be tax free at the expense of states^H^H^H citizens. Because states or nations are WE, and asking for such reduction is a zero sum game.

This gains of capital because of amazon HQ2 WILL HAPPEN no matter what or where. Asking for tax deduction is abuse and effectively reducing total citizenhood wellness/capital in benefit of Amazon, payed by all other states where HQ2 is not built.

The best policy for all states and cities in USA is saying: no matter who will you choose, we will NOT give you a subsidy. And if you want to talk about offshore outsourcing, let me rephrase it: all countries in the world should show the A a middle finger in unison.
I've heard a lot of people say the arrow of causality goes the other way -- between globalization and automation, our society's struggling to provide enough jobs, so the unemployed turn to idleness, despair and drug use.

Low interest rates are supposed to help, but for the most part they've just led to bidding wars for real estate and financial assets, instead of building new businesses and increasing payrolls.

The 2016 US election is a sign of despair -- our politicians are seen as out-of-touch, barely acknowledging there is even a problem. You know it's bad if people are desperate enough that they're willing to vote for a guy like Donald Trump.
WOW there is a lot of incorrect crap in your comment.

Yes the US proscribes opiate based pain killers at a higher level then Socialized Medicine nations, mainly because American Patients do not accept the "live with the pain" treatment you get from Government run care where they refuse to provide pain killers unless you are screaming in pain, and even then they give you a Advil and tell you to "suck it up butter cup"

Screw that.

There are all kinds of people that cant not get the medication they have a legitimate medical need for because the these new crack downs on Opiate based pain killers, now these people are having to live with chronic pain because the doctor fear being sent to prison by the DEA, because the DEA knows more about medicine than a doctor does clearly

In your Hypothetical from Prescription to Heroin you blame the doctor, I blame the DEA. The artificial limits and constraints the DEA is placing on medical professionals is interfering with patient care, and causing some patients to turn on street drugs instead of proper medication

Contrary to what the DEA thinks, combating Drug abuse is not a police matter, it is a medical matter and should be left in the hand of medical doctors not the legal system
"If highly-demanded goods become expensive, that incentivises creative behaviour to supply more of those goods. That's a good thing."

Maybe in a NORMAL F*CKING MARKET! Not a crisis. How long do you have to be creative when the water is rising in your living room? How quickly can you start an airline that charges reasonable rates when a hurricane is bearing down on your house? What is the economic incentive to rescue you neighbor from their roof during a flood?

Sorry for the yelling but jesus, you're suggesting "incentivizing" saving lives.
I suspect the educational use of Python is having an effect -- many universities are using it as the introductory language rather than Java these days and it is even showing up in high schools. Except for the mostly moribund Shoes project, Ruby never really went for the educational niche.
America has _never_ had a free market. This is doubly true for airlines.
A different and likely larger population that's more likely based on need.

In the event of a disaster, I assert the thing you're sat-solving for is "as many people as possible getting enough of a constrained resource to survive long enough to get out of the disaster condition". In my mind, that's both good and compassionate.
(if your friends are unemployed, it doesn't seem quite so bad, maybe you don't try as hard to get a job).

WTF. I wouldn't spend too much time defending this if I were you.
Not really — wireless audio quality is significantly worse and less stable and wireless electronics are significantly more expensive. It's a feature in search of a purpose.
Hi Hacker News,

this is Jakub, co-founder of Estimote, Inc.

Earlier this year we have added additional UWB radio to our BLE beacons. We did that mostly for floor-plan auto-mapping (read more here: http://blog.estimote.com/post/154460651570/estimote-beacons-...)

Many people asked us if it is possible for robots/drones/AGVs to connect to UWB beacons and get few-inches precision location positioning, so we have decided to release a ROS package.

You can install it on your Raspberry PI, connect to UWB beacons and start locating your robot/device.

We are around - let us know if you have any questions?
TIDAL X Mercedes-Benz
bookmarked the README to look at later. challenging part would be a polyfill using snap.svg or something like that for browsers that dont support otvar well (basically all of them except chrome canary and the webkit nightly)