skysight-inc/HackerNews huggingface dataset:
> his point about the concatenation of unicode and bytearrays certainly seems a valid point

This is one of those subjects where I feel like being a non-English programmer has given me surprisingly valuable experience.

The operation of concatenating a text value (string) and binary data (byte array) simply does not make sense, for two reasons. What do you expect the result to be?

1. Binary data with the text appended. Then you need to specify which encoding you want the text to have. Once you do (a.encode('utf-8')), all will be fine. You could argue that a conversion to utf-8 should be implicit since that's almost always the correct choice, but you'd be surprised how fast you run into trouble with other systems.

2. Text with the binary data appended after interpreting it as text. Again, which encoding? You'll get very confusing and terrible results if you do not specify this. If you specify this (b.decode('utf-8')) everything will be fine.

The only other alternative I accept is a type error. I'm guessing zed would be even angrier if that was the case. I'm not quite sure what Python 3 does, but at least it somewhat communicates that whatever interpretation it does is internal and arbitrary. The Python 2 result is ridiculous.
I wouldn't say it's generally considered false, considering that the company founded on this assumption - Vanguard - is now the largest fund in the U.S. and second largest asset manager in the world.

Markets are interesting, though, in that the more people believe they are efficient, the more inefficiencies creep in, and the more people believe they are inefficient, the more they become efficient. When everyone assumes everyone else has found all the opportunities, nobody bothers to look, and so there are lots of undiscovered opportunities to cash in on. When everyone assumes they can get rich finding opportunities, they bid up prices to very close to their "true" value, and the profit opportunities disappear. It's a self-correcting system.

The question of how widely believed the EMH is itself suffers from selection bias. People who believe markets are efficient don't enter the financial industry, they give their money to Vanguard to manage. That means that everyone in the financial industry, by definition, believes that they can make better-than-average returns, otherwise they wouldn't be in the industry. And then by returns, most of them are wrong, but that also doesn't matter because the few who are right are the ones who survive to play the next round.
No, gzip compressed tape archive has nothing to do with the tape archiver or the archiver format. Pipe the format to stdout without using compression and then it should be pretty obvious. This isn't Windows, Atari TOS or AmigaOS where archivers like pkzip and lha or lzx are also (de)compressors: that is precisely why on UNIX, gzip, compress, bzip2 or xz can only compress one single file and aren't archivers. They're dedicated (de)compressors. cpio, ar, pax and tar serve as dedicated archivers.
Red Heart Black – Misdemeanor Crew
I hope you are aware that those introductory courses give you a rather high level view of things and often hide any problematic points from you. It's like driving and only learning to know about the accelerator.
>Mostly fucked up by politicians. Nothing to do with the fact that people on Oil rigs and me both willing to co-operate.

I don't think it's that clear cut, the "bad politicians" vs the "peaceful people". Peoples (citizens of a country) will pursue their interests, even if that means stealing/taking advantage of others as a nation.

At least, throughout history, that has been the case, even in very explicit scenarios, e.g. ancient Athens, when the will of the citizens was pretty much directly put into policy, they opted to take advantage of nearby countries to build their power and economy.

What politicians/governments in powerful nations do is not just to serve their self interest, it's also in the interests of their country. In less powerful nations, politicians can be "bought" by foreign powers, so that's not always the case, but an "empire" like nation will promote the "strategic interests" of its people (way beyond mere defense). Of course that goes first through the interests of its rich people, but that also trickles to the common folk (e.g. cheap oil).

>Don't see the problem with that.

Sure, no problem with pollution and exhausting farmland etc...

>They leave for better life. I left my village for better life. Village life sucks.

Not everybody leaves for a "better live". A lot like their life just fine, thank you, but then its destroyed by external forces (in some cases, they are outright forced too, like in several "urbanization" and "industrialization" pushes, from Industrial Revolution era England to Stalin's USSR and beyond).

>The average working person in USA is having much better life that CEO in 1950s.

Citation needed. More toys != "much better life".
I use Authy - it's been a life-saver for having various phones get: Replaced, broken, reset, flashed during dev, etc.
Errr... what?! C++ is a positive example of language change, because it keeps backwards compatibility, unlike Python where we're still having discussions about 2vs3 after 8 years.

Nobody is having discussions about C++14 vs C++98, the latter is better period. A C++14 compiler will compile C++98 code just fine in most cases. If it doesn't you get a compile time error.

People are complaining about the opposite, that C++ is keeping compatibility for too long and that it has too many features. Both strategies have their pros and cons, but breaking seems to have more negative effects.

C has done a great job of supporting buffer overflows on lots of platforms and injecting safety errors in all software that uses those libraries.
That comic is unfortunately not telling the truth. The password phrase IS 44 bits of entropy, assuming you input random ascii. But any reasonably knowledgeable person trying to crack passwords, will use a dictionary to create a passphrases, rendering this less useful than the first password. Even if you do substitute o/0/ø, i/l/1, a/4, ect randomly. You still need a rather long sentence, and preferably spice it up with simple substitution - now this passphrase is no longer easy or simple to remember.
I wonder if there's any difference between "the lizard people are trying to throw the election because George Soros" and "there are some things that don't make sense that bear further investigation".
Anything that's marketed as a health or dietary supplement (basically, anything that falls under https://en.wikipedia.org/wiki/Dietary_Supplement_Health_and_... ) is unregulated by the FDA--no efficacy studies, not even safety studies are required for marketing.

They are required to list active ingredients, but unlike drug manufacturers, there is no regular inspection to make sure that they're actually producing the things they say they're making. And judging from the several reports I've seen, the manufacturers are so lazy that they can't be bothered to actually acquire the active ingredient.

Whatever you think about Big Pharma, they are saints compared to the supplement industry.
Primarily education and making people understand all software currently has vulnerabilities.
A good enough parody is indistinguishable from extremism. Poe's law.
"Social" Network.
http://sdlrla.com

The horse's mouth. You can obviously find less favorable spins on the story elsewhere.
its currency
I wonder if fringe cries are a valid line of attack on someone you don't agree with.
> As far as I can tell, the network is trained on a specific geometry and must be re-trained if the geometry changes.

The model is trained on a "training set" of various 3D models, and tested on a "test set" of different 3D models. The network can generalize to other 3D models and does not need retraining (see e.g. last part of abstract).

I think what they mean is that they would need to retrain the model if the boundary conditions at the outer boundary of the "studio" (the simulation domain) changed.
Black Friday Sale： How to use the coupon code
> Knowledge-based authentication (KBA) is out.

All the rules are great, but this one might be my favorite. Every time I faced a list of KBAs I felt like I was trapped in UCB's comedy sketch:

https://www.youtube.com/watch?v=tMEjpXJZgIA

(If a common security device is bad enough for a comedy troupe to have a bit on it, maybe it could use some work.)

The worst KBAs I've seen are for United's frequent flyer program. Almost every question is of the form "What is your favorite X?" X includes items like "vegetable" or "summer sport." Maybe most people have strong opinions about the superiority of broccoli and tubing, but I was always just scratching my head. (The questions were mandatory and you could not write your own.)
What's replacing C? I can see languages like go/rust/crystal replacing C++ for application development, but what's producing stable binaries that other languages can consume in the same way the do C ones?
Facebook is not very big in Russia and I wouldn't be surprised if it is banned as LinkedIn soon. Most of ordinary Russians use VKontakte.
Never. Python 4 would be another breaking change that is not a step back.
Not over BDFL's dead body will this happen.
Well, there is a Jim language, it's just not something you'd want to write by hand...
Why everyone is wrong about Southeast Asia's true ecommerce potential
Species and individual are human classifications; they have no ultimate biological significance. If I reproduce successfully, then my genes benefit by becoming more common. If I die before reproducing successfully but manage to assist those who are closely related to me in reproduction, I still score a partial victory by having my genes become more common. The only way in which I truly lose is when my whole tribe gets wiped out.
Whatever it is, it has the look and smell of a tabloid and probably the credibility of one.

Sites like that are part of the problem.
Should be clearly stated on the page. Because Poe's law.
We're talking about Tinder, though.
> debunked, I would say

That's actually NOT for you to say. Rationalizing why it's not without doing the analysis yourself doesn't buy you that right, even if you read it somewhere and it sounds good.
No, I can tune my bike to fit me, rather than having to adapt to the bike.
That said, the conclusion is still false, given how many projects have since converted to or supported Python 3. And a bunch are Python 3 only.
Related to the last paragraph, and in advance excuse me for my lack of knowledge about US history, has the electoral college ever voted for another candidate?
Why hypocrite? It's way better for Facebook to do business in China with censorship, than do no business in China at all. Otherwise other companies will just take that role and do the same Facebook would do.
Why Design is the most important factors in a mobile app development?
Please do blab about math. If you can't be yourself and show off your strengths then the job isn't for you IMO.
I'm a full timer but was a freelancer for ten years. As others have said, a portfolio is a great entry ticket. Try to flesh out your portfolio with further examples of the work you would like to do. Tech writing, like development, is a very broad church. Good luck!
Thanksgiving Sports Guide – Quick Hits for Sugar Babies
Every society, community had ban (shadow ban) for certain type of speech.

Didn't someone get beat up on youtube for voting for the one who shall not be named recently in US?
Free speech doesn't work without lots of culture to support it. The enthusiastic defenses of free speech in the West are also intended to promote that culture (and claim that it can continue to coexist with free speech). If you have people organizing violence regularly using their freedom of speech, to the point where it is a serious problem, something of that culture has got to be missing. At least that's how I understand it.
Everything is S&D, but not necessarily based on rationality. Analogy: The shopping activities of Jews and Muslims don't have an effect on pork prices high or low.

A great many people in our society place higher value on their status than on realizing rational market moves. And to rub salt into the wound, many middle class can't afford a $200-500 dollar callout because their wages have been stagnant as well.

I'll say it again: the existence of Home Depot and other home improvement stores is evidence for wage stagnation.

> Plenty of humans can physically rearrange stuff

It might seem that way but I believe we presently have a building labour shortage. Anecdotally I don't know many master craftsmen, that species seems to be rarer today.

> white collar incumbent's ability to make it illegal to replace them

That is true but that's a problem with government.

There's a limit to how far that can go as well. I see a lot of young entrepreneurs undercutting legal and accounting online.
This article was written in the mental state of hate.
The author may well reread it, and remove all the hate. He can have the opinion that Python3 is not suited for teaching where Python2 is, but his arguments are in fact just opinions.

Another problem in the tone: no respect for his readers.

"if *I* struggle to use Python's strings then you don't have a chance."
Maybe some projects and/or relevant experience in the field
and that's how we become spammers.
Why do we run?
Agreed.

It also allows you to do testing by injecting pre-cooked payloads into your queue system.
I think you're thinking of the time Boris Yeltsin visited a supermarket in Texas: http://blog.chron.com/thetexican/2014/04/when-boris-yeltsin-...
Selecting a First TDD Exercise
That's the one feature that has me open up Sublime instead if VSCode (for now). I need a scratchpad I can get back to after I reboot.

Hoping they really have it out in the next release.
Twitter mistakenly suspended its own CEO’s Twitter account
Exactly. Py3 zip is lazy like py2 izip.
Remote Trips, alternative to remote work and travel programs
Custom made trips for remote workers, find travel buddies and have professional support throughout your trip.http://www.remotetrips.io
Can someone recommend a good and accesible book on fluid simulation?
Nope. It's only fake if you think CNN is so biased they're creating a CGI Trump and interviewing it. The debacle wasn't around something some lawyers said.

Straight from the horse's mouth: http://www.cnn.com/videos/politics/2016/06/03/donald-trump-j...
Elon agrees https://www.tesla.com/solar
> Knowledge-based authentication (KBA) is out

Finally! This is my biggest beef. I've taken to generating long random strings as answers to these questions but in some cases that's insecure too because they present you with a multiple choice set of answers and then it's obvious.

Also glad they're getting rid of ridiculous composition rules, hints, and password expiration.
Lesson learned. Go easy on the mouse. In fact if you don't touch the mouse or keyboard all day you'll be a rock star.
Internet of Things Security and Privacy Recommendations [pdf]
Adding indexes to mongoDB in an Express app
Opinions on where to add indices to mongoDB using the official driver? Not middleware, since that will incur costs for every request and we only need to do it once.
Best advice in this thread.
I know f-strings but I still can't believe them.

There are parts of Python that look like it wants programmers do low level compiler job and I can't understand why. This is one of them. Python can do %s string interpolation without some s'' s-strings so I wonder why it needs this f-string thing. Many languages can do string interpolation without having developers babysitting the interpreter. In 2016 we have the CPUs to make it happen the other way around.
same. i can't tell if he's serious or not and i don't really care.
Rust can produce C compatible libraries. Go apparently can too. I suspect a little googling would show me that Nim and D can as well. I'm sure there are at least a few more.
For the record:

Python 3.5.2 (default, Nov 7 2016, 11:31:36)
[GCC 6.2.1 20160830] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> u'' + b''
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: Can't convert 'bytes' object to str implicitly
>>> u'' + bytearray()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: Can't convert 'bytearray' object to str implicitly

And I agree wholeheartedly. This is the only sane thing to do.
Is there anything floating out there beyond the article in New York[1] and everyone reiterating it?

The stuff over at Election Law Blog[2] seems to be worth quoting here:

> Without public evidence on the record to examine it is hard to really evaluate this claim other than by looking at the credibility of the people involved. Halderman is very credible, and if he says there are anomalies that deserve investigation, they should be investigated. But the fact that this group has gone to Elias and Podesta, and so far the campaign has said nothing since learning of it last Thursday, should give you pause. Time has just about run out. Claiming a hacked or rigged election is about as explosive a claim as one could make—-especially coming after Trump made unsupported allegations of vote rigging throughout the election. If there’s a realistic chance of anything here that could be proven to affect the election outcome, you have to trust Clinton’s legal team to advance it (or have advanced it already).

[1] http://nymag.com/daily/intelligencer/2016/11/activists-urge-...
[2] http://electionlawblog.org/?p=89454
The thing is that doctors are hypocrites, they smoke, they drink, they eat junk food, they don't exercise, they do hard drugs and help themselves to unneeded prescriptions, they don't drink enough water, they don't sleep enough, etc.

They know what's best for people, but they also know that people can make informed decisions, they certainly do.
What causes that kind of rapid GI bleeding?
The most geek way to animate a gif animation
I have made a gif animation of Wilson's uniform spanning tree algorithm and solved it with randomized depth-first-search. Pure python, no dependencies needed!
Glib dismissal, snark, and making a virtue of not reading.
I did not know Tesla/SC is working on this. Thanks for the link!
If the result was changed and Clinton became president elect there would be civil war. The US would never have a peaceful election ever again.
This course is comprehensive and goes from beginner to some fairly advanced content. No previous coding experience is required. You will be guided from the beginning.
The worst discrepancy I see is between the new job market entrants and the older employees. I think that makes a lot of people angry.
An Efficient Quantum Algorithm for a Variant of the Closest Vector Problem
California’s Needless Housing Crisis
Yep, good luck with that for the next 4 years.

I'd wager a guess Trump snorted his share of blow in the 1980s, but congressional republicans and the private prison industry are going to be calling the shots on the drug war for the next 4 years.
Was told I was holding things back in a 2001 interview.

I knew what they were referring to. A problem I solved with a for loop, they then asked me how else I would do it. I couldn't think of another way, but after giving me a few tries they unleashed their genius: "What if you copy paste the loop innards 10 times".

And because I didn't mention that as a solution I guess I was holding back.

Applied 10 years later just to see if they'd improved. They told me that as I applied before and was rejected they could only pay me a graduate salary which was unchanged in 10 years to boot!
We detached this subthread from https://news.ycombinator.com/item?id=13016485 and marked it off-topic.
Facebooks new business model CAAS Censorship as a service, at home and abroad. William Randolf Hurst would be proud. Time for me to cancel my account.
> There is evidence that alcohol prohibition actually reduced demand.

no. The decrease of consumption in US that you posted is pretty much similar to the decrease in consumption during the same time in England for example - from 1900s to 1920s-1930s the consumption decreased 2-3 times and similar to the US it stayed that low until 1960s :

http://www.historyandpolicy.org/images/etimated-overall-cons...

(from here http://www.historyandpolicy.org/opinion-articles/articles/th...)

The Prohibition had no noticeable effect on consumption. The 2 World Wars and state of economy between the wars were the major factors what affected the consumption.

Saying that Prohibition in US reduced consumption is just like saying that Giuliani's "broken windows" policing and "stop and frisk" caused decrease in crime in New York - it actually didn't as the decrease in crime in New York followed the same trajectory as in other cities where weren't such policies applied. Or like it is frequently said on HN - "correlation isn't necessary causation".
I think some already did. Say Sina Weibo.
Across Land, Sea and the Internet: One Startup’s Journey into India
That's a pretty fair point, and I completely agree that the Python 2 result is pretty ridiculous.

In zed's defense, it still does seem like a rather daunting error for a beginner programmer - although like you, I have no good viable alternative to suggest.
" I know Google is planning on dinging sites that don't use HTTPS, is it possible they could ding sites for poor password policies?"

How they gonna do that? Do you expect Google to audit every site in their search ranks?
I happen to know of a bank exploit in which the attackers compromised one thousand online accounts, and attacked all them (transferring funds) on the same day.

Presumably the attackers were worried that after several transfers the bank would notice and block further access, so they kept a roster of compromised accounts to attack all at once. I suppose that a password rotation policy would have helped mitigate damage in this case, though something like fail2ban or automated IDS would have been better.
Nice feedback, I just created an issue for it #71. I will prioritize it.
Then why doesn't he update it?
You severely underestimate the "western" appeal in communist countries, I think.

https://www.youtube.com/watch?v=amx-JHhtsHw
It's not just proprietary software that's problematic - until we have practical solutions for end-to-end verifiable voting, you can't guarantee that the software and hardware that has been audited and certified isn't being tampered with.
Well, this might be cheating, but I would apply a bunch of different filters for things like edge-detection, etc. Then I would come up with a statistical model that, for each feature, gave the likelihood that there image under consideration was a dog. Then I would aggregate all those results into a final likelihood.

Not trying to be sarcastic, I just can't think of any way other than the ML way.
Google Sites Upgraded
Sadly, no. It didn't help that there were a _lot_ of problems in the Travis/C++ ecosystem that complicated the matter.

I actually have an outstanding PR into the Travis docs to update this which hasn't been merged yet for reasons unbeknownst to me https://github.com/travis-ci/docs-travis-ci-com/pull/746
In a sense US is still being settled. Populations are shifting and adjusting.

The United Kingdom has had two hundred years to adapt to the effects of industrialization. The United States got in on that much later, with the majority of it happening post-WWI, and at that point the modern layout of the country had only barely been realized. As you point out the frontier was still very much a thing in the years immediately prior to that.

There's still a lot of shifting within the US that you simply don't see in other countries. People are highly mobile, and cities like Austin and Atlanta have changed dramatically in character because of large-scale migration.

The only country actively changing more than the US is probably China.