skysight-inc/HackerNews huggingface dataset:
> It'll take at least weeks of continued use to get addicted again

False. Psychological addiction isn't physical addiction and is arguably exactly the kind of addiction that brings an addict to use after an extended period of sobriety.

This is also inaccurate w/r/t opioids and benzodiazepines. Each time you withdraw, become dependent and withdraw from opioids the length and amount of use needed to induce withdrawals is lessened. Using twice in a period of three days is enough to trigger withdrawals after kicking multiple times.

After being heavily dependent on benzodiazepines or alcohol and withdrawing, subsequent use can induce a phenomenon called kindling[0]. A week, a weekend binge, or one night of drinking might be enough to trigger withdrawal symptoms. One dose of a benzodiazepine can be enough to trigger withdrawal after being heavily dependent.

[0] https://en.wikipedia.org/wiki/Kindling_(sedative-hypnotic_wi...
>"growing monopolies"

How are Facebook & co monopolies?
This guy (i.e. me) wasn't aware of this functionality in btrfs. Are reflinks commonly used? Yes, I know more about ZFS than the other filesystems mentioned.
You mean socialism didn't turn out to be a grand utopia where no one is poor and the government efficiently distributes resources? I'm totally shocked! Maybe they should nationalize a few more industries and throw more capitalists in prison
"All prescribe birth control pills, and some prescribe patches, rings and morning-after pills. Some ship contraceptives directly to women’s doors."

It's the ship directly to the door part that sounds like it could allow the selling of fraudulent medicine.
Oops, made a mistake. The bit pattern is 10 in the upper two bits if you're not at the first byte of a code point and not 11.
"right tool for the job" ends up being almost meaningless unless the players involved have enough experience with multiple tools to make a useful judgement. Too often "right tool" is "whatever I've already used before". :/
Or, if by "string" we mean "sequence of code points" (rather than graphemes) then it doesn't get corrupted by any chopping or rearrangement which only permutes the code points.

If we chop UTF-8, we can end up with bad characters, or possibly invalid overlong forms.
Do you know why it was abandoned? Just player density being too low for it to be useful?
If we're using one-handed gestures to indicate X/Y position on a standard QWERTY layout, we're truly lost.
I think not in that the proclamation states that the flag should be lowered "at the White House and upon all public buildings and grounds, at all military posts and naval stations, and on all naval vessels of the Federal Government in the District of Columbia and throughout the United States and its Territories and possessions" and "at all United States embassies, legations, consular offices, and other facilities abroad, including all military facilities and naval vessels and stations".

So, for those locations it seems mandatory. But the flag code that states things like that state flags should be flown lower that the federal flag is codified tradition and not law, so technically states do not have to follow, as far as I understand.
#Mobprogramming #XP at Xero
Or you could make an iOS app for it
Unclear, but a member of the ZFS development team at Apple told me that Giampaolo complained that ZFS would never work on the phone. So the team demonstrated it working on the phone. I know of no obstacles to making it work on the watch other than engineering.
This strikes me as one of those great and terrible ideas. It has a tremendous potential for good, but it is one opt-out checkbox (Share the data you collect with the police to help catch criminals!) away from convincing the surveilled to create their own big brother.

http://asofterworld.com/index.php?id=346
Envisioning the Hack That Could Take Down New York City
If a cloud provider mistakenly provides access to someone else's content, the end-user has not violated the CFAA. I have not heard of anyone charged for this alone. Not to mention, I'm not sure CFAA protects private computers / webcams in any case, only "protected computers".

Additionally, I'm not sure if this would be a violation of the Wiretap Act as an "interception" either, even if it was intentionally used to spy on the new owner of the device. Federal law is somewhat lacking in this regard.
Good thing it's very easy not to make mistakes :->
> Do you mean they return the text as bytes using some (likely ASCII) character encoding and all the text characters are in ASCII range?

If you rely on std::exception::what() while building a localizable software, you’ll end with inconsistent GUI language. Because some exceptions (that are part of STL) will return English messages, other exceptions (that aren’t part of STL) will return non-English messages.

This means if you’re developing anything localizable, you can’t rely on std::exception::what().

Then why care about it’s prototype?
This is only relevant for global objects for which no node is the authority. Do you really need it for, say, threaded conversations?

Decentralization can be a achieved to a great degree by simply taking federation to its extreme.
In an Age of Online Sharing, of Course the Monsters Do It Too
Calm Technology
No offense, but you don't know what the fuck you are talking about. We'd rather see her go to jail, than be dead. Which is a likely path for her.
There seems to be a disturbing trend of Israeli developers creating software that crosses some serious ethical lines. A few offhand: this, an iPhone backdoor exploit they're hiding and have provided to the us government, I believe the biggest license plate reader developer is Israeli.

Can anyone speak to this? Am I observing this on some kind of bias?
Tell HN: Thanks for the unvote button
Don't know when it was actually turned on (sometime between this afternoon and after the NBA Finals), but whoever had to work on the weekend to get it done, thanks!
Only a few users can see this. Check your email :)

I'm going to kill this post now, but if anyone notices it and wants in on the sneak preview, drop us a note at hn@ycombinator.com and we'll be happy to add you.

The actual release should be sometime this week.
Which wide characters are you talking about? Because on Windows, where wide characters are 16 bits, it's quite possible to get corrupted strings (and in fact quite a few well-known programs, written by quite well-known software companies, make this exact mistake).

All you need to do is index/slice a string half-way through any character that is outside Unicode's Basic Multilingual Plane
What an utter and complete disaster. More socialist government control is not the answer to this unmitigated managerial disaster. They need to recognize that they will have to let go of command and control of the economy and private property and let the people who know how to run businesses run their businesses. Further nationalization and confiscation will not improve things.

It's a country with enviable natural resources. It's not like they don't have arable land or suffer from prolonged droughts and they did not suffer a civil war recently but they do suffer from government hubris and an economic death spiral. Complete national economic mismanagement.

One can only hope the country does not fundamentally collapse and people try to escape at any cost. It's not like Brazil is economically up to absorbing the exodus.

Of course, this will be blamed on the imperialist gringos and the failure of their "socialist" policies will not be recognized.
Did you see the website url? It's a hoax, any real news would come from a real site. Why is this trending?
They explicitlessly didn't allow it for Google Glass apps so I wouldn't be surprised.
The master (meta) server sort of happened, it was just GameSpy. Global scoring and stat keeping didn't but then there was NetGames USA a bit later although it always seemed a bit pointless to me for FPS games.
Meth and heroin are what the average person considers 'drugs' when speaking about addiction, but alcohol, which is romanticized, and at times suggested as part of a healthy diet, is probably the most subtly destructive of all given how pervasive it is in our modern society.

Imagine if meth and heroin, instead of being portrayed as taboo, and dark, were portrayed the same way drinking is in sophomoric college comedies as a cool, silly thing to do, and 'everybody does it'.

You don't necessarily see these contrasts until you have been sober many years, and open your eyes and look around you.
I know a C++/Java instructor (with a very dry wit) who would deliberately do this to see if his students were paying attention.
Indeed they do, because the guards' union want to maintain their monopoly on the contraband smuggling business.
Code is here: https://gist.github.com/Antelox/020c727e1917bd018441cb6425ca...

There is no such thing as low-level JS.

Edit: For those who don't believe that JS can't be low-level, please see Wikipedia's definition of "low-level programming language"[1]:

"a programming language that provides little or no abstraction from a computer's instruction set architecture—commands or functions in the language map closely to processor instructions"

If you know literally anything about JavaScript, how it runs, or how processors run, you'll know that JS is not even in the ballpark of "low-level".

Perhaps the parent comment was referring to "JavaScript without frameworks, third-party libraries, or heavy abstractions," which is still not exactly a complex or mystifying arena.

1. https://en.wikipedia.org/wiki/Low-level_programming_language
Venezuela is berning.
I use 1password and share on dropbox. Can create vaults for different kinds of passwords etc
Is the data closing the Gap?
True, that's also a good point. Alas, many of the non-systemd Linux distros have pretty small communities. Do you have any preferred distro's for this?
I just spent the last 6 hours reading a fraction of the pages on that site. Thanks for the link!
A "limited corpus of faces"? That would be face recognition, not face detection. I see OpenCV has both.
We're pretty much on the same page here. When you want to slice a string (because you can only display or store a certain amount) or you want to do text selection and other cursor operations you can't so it by code point. That's where you want to break at character boundries which are graphemes or grapheme clusters.

For parsing it's easier to just scan for a byte sequence in UTF-8 because you know what you're looking for ahead of time. If you're looking for a matching quote, brace, etc. you just need to scan for a single byte in your text stream. Adding a smart iterator to the process that moves to the start of each code unit is not necessary and will slow things way down.

I just gave JSON and XML as examples and not an exhaustive list. If you know the code points you are scanning for it's way more effecient to scan for their code units. The state machine in a paraer will be operating at the byte level anyways.

I have yet to see a good example where processing/iterating by code point is the better choice (other than the grapheme code of the unicode library).
Alcohol is devastating to the body, over many years. A year of meth, oh my. Drugs do damage. Sugar has consequences, but the consequences of sugar aren't the same as cigarettes, and cigarettes aren't the same as heroin.

You're not wrong. just about everything will kill you in excess. Alcohol will kill you faster than steak. Some things are much much easier to consume to excess. And that difficulty varies by person.
I would consider that for $100 but not $500
Having difficulty finding a family doctor is not that odd. Many Canadians are having a hell of a time of it.[1]

"...almost two million reported they have tried to find a family doctor in the past year and failed."

[1]http://www.nationalpost.com/scripts/story.html?id=5c461d67-d...
Version 2.1 of tmux combined all those config flags to a simple :mouse=on, so you don't have to go through one by one to enable all the mouse features.
This actually started over 2 months ago, and has been pretty common since:

(Apr 26) http://www.latimes.com/world/mexico-americas/la-fg-venezuela...

(May 11) https://panampost.com/sabrina-martin/2016/05/11/venezuela-lo...

Now it is about essentially anything. Specific product shortages started long, long ago:

(Nov 2015) http://www.businessinsider.com.au/why-venezuela-is-running-o...

And for electronics it has been years. The cause is widely reported to be price regulation.
It's not about portrayal, it's about actual physiology.

The percentage of alcohol users (ie almost everybody) who become alcoholic is quite low. The percentage of heroin or meth users who become heroin or meth addicts is very high indeed.

Alcohol still of course does plenty of damage, unsurprisingly since it's the only such substance which the majority of the population consumes. Maybe the world would be a slightly better place if we hadn't started drinking booze all those thousands of years ago. But I don't buy the idea that because we accept one particular form of stupid behaviour that we should tolerate all the others... any more than I buy the idea that just because I tolerate my unemployed brother living in my apartment that I should open the doors to let everyone else live there too.
A three year drought actually:

>There has been little rain in Venezuela in the past three years, and a crippling deficit last year in particular—a predictable effect of El Niño, the global climate cycle that periodically warms parts of the Pacific Ocean, causing deluges in Texas and Florida, warm weather in eastern Canada, and desiccation in Indonesia and parts of Latin America. As a result, the water behind Venezuela’s dams, which supply around two-thirds of the country’s electricity, is at a historic low. At the Guri Dam, the nation’s largest hydropower facility, the water is reportedly within five metres of dead pool. At this low level, the worry is that air will get into the dam’s inner workings along with the water, producing vibrations in the metal turbine blades that can rattle the structure to death. If Venezuela’s reservoirs run dry and its dams stop working, its grid will, too.

http://www.newyorker.com/tech/elements/the-electricity-crisi...
> it can be used to distinguish a UTF-8 stream but it's not recommended

If a specification says “something may be encountered”, for me, when I write my software, it means I must support that thing. Otherwise, the software won’t conform to the spec.

> I'm curious where you've encountered missing content-encoding headers or other OOB indicators where it wasn't because of programmer error or laziness.

Everywhere.

Most filesystems don’t have encoding headers for their text files. Most databases don’t have headers for their blob columns.

Only web that has encoding headers.
So many times I see people handing out a root password to edit /etc/password. Sure, it may be crazy for performance but, even a trivial number of users and aliases are more easily managed with a remote mysql client. Everyone that has used postfix in a production environment knows the pain otherwise, the rest feel free to vote down.
In all honesty, the fact that he had been an upright taxpaying citizen to begin with... good job, house, car, friends etc., was an excellent incentive to break the habit.
My stepbrother is in his late 30's, has 5 illegitimate kids, no job, no car, and has never held a driver's license. Oh and he's a heroin addict and all his friends are meth heads. Why doesn't he quit? He's lived in the same house virtually his entire life, in and out of jail and prison, and his dad essentially allows him to live there as a daily fuckup.
DeLancey Street is an excellent court appointed 2yr alternative to the courts themselves. You can also just walk or drive in right off the street if you have the balls. Problem is you have to willingly enter it (the hard part), have no outstanding tickets/court appointments, and show up sober. Even so, I've seen guys with 4 years under their belt, walk out the door and OD within a week.
It really boils down to the individul themselves and the choices they make. Guys with 30+ years of addiction do not normally survive it. It just eats them alive, if not slowly.
I'm not offended. I know nothing about your situation specifically, but I understand that you just want to help her. Common advice given to my parents were to give up, there's nothing you can do, but they never did give up and I'm very thankful for that. I never went to prison, but I've met many who did.

Maybe with a good facility it could be helpful, but most prisons are horrible environments with easy access to drugs. Addicts also die in prison, but maybe more common after being released for the difference in tolerance. Many are rejoining society with a massive prison drug debt, continuing the cycle.
I love this idea of website that facilitate business to access this niche expertise. I'd be interested to join such website in my areas of expertise and see it as a great opportunity to help in my free time (& earn some extra money too)
I wonder how well this will scale with time. I've certainly done things while driving that were reckless to varying degrees, I suspect most drivers have as well. How long until 50% of cars on the road have been tagged doing something reckless? Of course I can imagine a number of ways to handle this.

On a more broad note, I wonder how useful it really is to know that a specific vehicle acted recklessly sometime in the past. Seeing someone behaving poorly is good reason to avoid them on the roadway. However I also imagine a scenario where one driver did something to warrant an alert, and some time later every car on the roadway is trying to avoid that vehicle. Is there really any danger from that vehicle in the current situation?

What I would like to see is a map showing where the most incidents occur, and what type of incidents occur there. I assume most drivers genuinely set out intending to behave well, but do not for various reasons. Identifying locations where incidents happen would give civil engineers some valuable data about how their designs impact behavior, and would give police valuable information about where their presence would be useful.
Fun fact: Neither Portugal nor the Netherlands "legalized drugs." Portugal decriminalized personal use. The Netherlands never decriminalized any drugs, not even marijuana. Rather, it adopted an official policy of non-prosecution under certain conditions. In fact, marijuana may be more "legalized" in many U.S. states than it is in the Netherlands. E.g. the legal possession limits are higher in states like Colorado, and growing is less restricted.

And of course, in both countries, anything beyond small-scale growing and sale of marijuana (much less the production and sale of what they call "hard drugs") remains illegal and subject to active prosecution.
Checksums are usually very fast to compute as the ARM CPUs of any modern phone have crypto engines, and their laptops do as well. I think trading data protection for performance reasons would be pretty irrational.
This upsets me because it is such an unnecessary and predictable result. The mentality and fiscal politics of a nation matter.

“The Chinese won’t sell to us,” said a taxi driver who watched the crowd haul away all that was inside. “So we burn their stores instead.”

You'll eat tonight, but at the cost of the rest of the output of that store - if you even got the food out before you burned it. While I suppose the time to be philosophical is before the starving crowd gathers in front of the grain store, this is still madness.

Further, the mentality and fiscal politics and a connected world matter.

In the US and all developed nations, our quantitative easing programs are an abstracted, less violent but fiscally equivalent analog to burning a store or selling the future for the present. The consequences of these choices will also come to our door in time.

If they gave me the stick, I'd set interest rates at 3% and hold the line through a recession or depression. Far better that then coming to the end of the line, having no options and no way out.
New Star Trek's Chekov Dies in Car Accident
Yes that's totally correct but they're factoring the entire reinsurance/reinvestment pipeline into how aggressively they can price the policy in the first place.
Socialism is orthogonal to command and control economics, private property rights, and corruption. There are just as many countries that do it right as do it wrong (same with capitalism). Let's be honest with the root cause: populism, corruption, resource curse, nepotism, military appeasement all play a role in this much much more than socialism.
Have you considered her thoughts on the matter? She may find she'd rather be dead than endure withdrawal in jail. Nevermind being a female in jail.

No offense, but you don't know what the fuck you are talking about.
I love backquote for the escape char. It's better than ctrl-anything because it's one less keypress and the location is one of the easiest to hit blindly from a UX perspective (even ESC is more of a reach).
Sounds like the security part is sorely lacking. That and someone needs to get a life.
Pulling into a turn lane, stopping alongside another car and honking incessantly is dangerous and against the law. The other driver was probably scared and trying to ignore you.
This is probably just confirmation bias on your part. That being said, based on the political situation in Israel and the security culture in that country, it isn't surprising that many tech companies there would be developing tools that perpetuate that status quo. As a contrast, you would probably never see an app like this coming out of a hackathon in Gaza.[0]

[0]https://news.ycombinator.com/item?id=11858963
For copyright violation, the only option I was presented with was to send an appeal to the copyright holder.

Youtube just passes the buck to some copyright holder who in my case at least was completely unrelated to my recording, other than coincidental order of tunes. I don't know, maybe three traditional tunes played in that particular order can be copyrighted, though that's a bit ridiculous. Thousands of performances of traditional music would suddenly be infringing.

I was happy to give Vimeo my money to get around this, and I doubt I'll be giving Youtube money for any of their commercial offerings, until they can straighten this mess out. I do understand they're probably overwhelmed with sheer volume, but still.

And, of course, I've never heard back from the copyright holder, who has no incentive to get involved.
Thanks. I didn't know that term.
Indeed! An index can be the difference between a 2-5minute full table scan and a subsecond query.
Yeah I lost the disks I had with the C64 when I let a friend borrow it and he never returned it and moved away from our neighborhood.

But programming the Commodore 64 was a challenge because BASIC on it was primitive and older than some of the others out there like the Atari 8 bit series. I learned what peek and poke accessed parts of the C64 memory you needed to know what they did to write video games and control sprites. If you wanted to write code that changes the data statements you had to know what area of memory it used and use poke to put it there. In a way I guess you are right that it was self modifying code in that it changed the data statement. I'm sure other people did that as well. When all you have is a Commodore 64 before the Internet, best you could do is read magazines like Compute!s Gazette and get on BBS systems and talk to other programmers to get ideas and share tricks we learned.

The Commodore 64 was like the Raspberry PI of the 1980s, it was cheap and it worked. I might buy a Raspberry PI some day.
In the US and all developed nations, our quantitative easing programs are an abstracted, less violent but fiscally equivalent analog to burning a store or selling the future for the present. The consequences of these choices will also come to our door in time.

How come ?