skysight-inc/HackerNews huggingface dataset:
> It would be the same if Democrats in the House said, "we won't pass a funding bill unless it includes universal healthcare. If you don't agree, you're shutting the government down." Absurd.

That's exactly what happened 5 years ago.
> any english-language newspaper

Most of the newspapers don't go into the reasoning behind it and just blame everything on Trump and it's hard to read a one sided point of view of wikipedia, I wanted to hear different opinions on the topic.
With lots of caveats and gotchas.

See comment from Microsoft guy linked here. https://news.ycombinator.com/item?id=18783525
I wonder, has any research been done on the size of a democracy and how represented the average individual feels?
US government shutdowns (especially extended ones) are rare events. This is not something most of them would have considered when signing on.

Even in the 90s and 00s with the DoD closing bases (BRAC), a lot of people were unimpacted or given job offers at other locations which mitigated the risk for most.

Government employees are, on the whole, underpaid for the sort of work they do compared to private sector equivalents (or where their expertise could be used if not the same job). The primary benefit has been the stability and pension system, both of which are being challenged in recent years.
The fact that shutdowns happen.
https://www.co2meter.com/collections/sensors has a bunch of different ones, I usually look on Mouser also. I don't have a name of one currently. I've been using the particle.io platform with a particle device/LTE for sending out data and programming them.
We are in 2019. Important things have changed since 1933.

Although unrelated but in reply to your message: China is a totalitarian dictatorship but I wonder if more Chinese people support it than US people support Trump or Clinton or any other of the war criminal mass murder US presidents that US democracy had elected in the last century.

I hope that the Green Party or another reasonable party will be elected in the USA in 2020.

Besides: AFAIK it is possible for many to use VPN in China to access the internet privately without censorship and without punishment.

https://www.travelchinacheaper.com/is-it-legal-to-use-a-vpn-...
Yes, signal is better than FB or sms.. But the whole requiring phone number puts a nail in it on my end.

So Signal can learn who talks with whom via requests going through their LDAP-like server. They can get an idea how long calls are, and if it was a vid or audio call. They know the times of communication.

You know, they can see the metadata. When's the last time we had problems with metadata? The POTS network? Yep.

And you're indeed right the client has reproducible builds. But the server side certainly doesn't. And we have no way to ascertain that.
I would be more in favor of removing any campaign contributions and publicly funding elections of candidates who get X signatures. For instance a Congressman might get 200k to campaign while a president might get many millions.

Would cost us a few billion a year but would probably save us at least that in pork barrel spending.
How so? They are changing how recommendations work, they aren't removing videos based on agenda. I am also wondering how the brainwashing comment comes into play here, just because people do not believe in a conspiracy theory doesn't mean they are brainwashed. I also do not remember ever asking to be censored.
The risk of not getting paid due to the longest government shutdown ever? No, I don’t think many people would have considered that risk.
Clever of Trump to offer to temporarily return some of the DACA protections he himself took away.

Offer something substantial, and it would be a more interesting discussion. How about a blanket, one-time grant of citizenship (or at least green cards) to all current DACA kids? Might be political suicide, but ... maybe not. Would really change the political calculus in the country right now. Ha!
Having used Draft and Slate, Slate is definitely the choice to go with today if you want something built on top of React.

Draft appears to be essentially somewhat unmaintained, whereas the Slate community has continued to be very active (thanks for the Android support! That's one reason we ended up using Quill for now)

The built-in copy-paste handling is pretty messy to extend compared to Slate, where the system of normalizers works a lot better.
Indeed. But that kind of shorter-term quid-pro-quo is less corrupt than the depths of a single-party alignment over the course of decades.
Yes they degrade over time.
I am learning using the book "APL with a Mathematical Accent" and so far all the examples work fine (I am on chapter 3). I'll probably switch to learning J if I start running into problems. It says on the GNU page "implementation of ISO standard 13751" so if it's not standards compliant it should likely be filed as a bug.

I did request a copy of Dyalog but they rejected my application (probably because I didn't add my address?). I don't have a lot of enthusiasm for learning using a proprietary implementation of a language anyway.
I would hope this only applies to the Union's ability to call a strike, not an individuals right to call in sick?
In many colleges, the cost of one or two textbooks outdoes the cost of a chromebook. If you have to work to put food on the table in college, you can work to put a chromebook on the table too and spend your college time on self study vs college itself
IIRC, at least in the private space, you are legally obligated to "regular" paychecks.
Let's be honest. Anybody talking "both sides" nonsense is right wing. True moderates and centrists are not at all with Trump on this particular issue. It goes well beyond the wall.
Have some empathy for goodness sakes.

A lot of us (myself included), might work in startups and take big risks in our careers, but we're also exposed to a lot more upside. Not every other job should be like this, and lots of people don't want to work in such uncertain situations. These people thought they had a job that was largely safe, and that implicit promise has been broken.
> A lot of modern interviewing isn't about finding talented programmers, it's about finding those who know how to follow their (albeit implicit) rules. You study, we give you the job, you don't, we won't.

From my perspective it feels like that. For some reason, it also feels like there is a gun pointed at me when doing these kinds of job interviews.
I find the persimitic locking model of NT handles to a fundamental design flaw in NT. is this something that came from VMS.

Sure the unix model of ‘user must handle errors’ is a pain, but it leads to more flexibility in the long run.
EVs still make up only a fraction of a percent of the global or domestic auto markets. Toyota has plenty of time to catch up, especially given Tesla's inability to properly execute.
Way before internet, I remember people were talking about how Marilyn Manson had surgery to be able to suck himself

I also remember when I watched in disbelieve people saying the sun was going around the earth.

Internet is just the reflect of human nature. Flat earth theory would have existed without it.
That's pretty clearly interstate commerce. Not sure what approval is required, but presumably it at least covers accurate labeling of ABV.
Don't have google write your reply emails then? Sometimes you get a crappy solution because the problem being solved is just not worth the effort.
> give it to them as a freelance job

I've always wondered why this isn't more common. It's win-win to be able to test the waters in this way. What downsides am I not seeing?
The US has undergone a right-wing coup and apparently no one noticed it. The government has been "shut down" except actually only things that benefit poor people have been shut down and everything that rich people need has been deemed essential. Libraries, maintenance of public natural spaces like the parks, social services for the poor, being able to detect and punish tax evasion by the rich (aka the IRS)? All "non-essential".

But let me assure that the various law enforcement agencies are still very fully funded, and ready to arrest you if you try to steal bread to eat. So it's not a full government shutdown, it's a shutdown of services that might benefit the poor or threaten the rich, while making sure that the richest in society still have all the benefits of the powerful US government. In another country we'd call this a coup, but in the US it's just par for the course I guess.
> The way the algorithm pushes steadily more radical content is really concerning. Try making a completely fresh browser profile and deliberately browsing around right-leaning or "anti-SJW" channels and see how long it takes before YouTube starts pushing videos about white genocide and the impending destruction of western civilization by the muslim hordes (not very long in my experience).

Seems like they're trying to profile the user for recommendations too early, or just generally suggesting based on too small of a sample of videos. The blank profile is like a knife balanced on edge, where the slightest push will tip it one way or the other. If they'd just hold off the personalized recommendations entirely until you had 100 or 200 videos, it might be better.
Seems that both "official" SDK for esp8266 and its Arduino port support ipv6 out of the box: https://github.com/esp8266/Arduino/pull/5136.

esp8266-nonos-sdk/esp8266-rtos-sdk/esp8266-arduino uses lwip as tcp/ip stack, which supports ipv6.
> No one is entitled to income, a job, or having others pay for their expenses.

So no life, liberty, and pursuit of happiness for these folks? Got it.
Using Complex Systems Research to Predict Organizational Life Span
This is literally a historic shutdown. Two missed paychecks in a single shutdown has never happened before in the history of the USA.

This is the longest running shutdown in US History, and it isn't anywhere close to over yet.
You could mostly just get rid of Nancy Pelosi and Chuck Schumer and most of the really bad stuff of late would be resolved. /s
Yes, that does safisfy the definition of end-to-end encryption. The broker - and anyone else - can intercept messages, which is fully accounted for. That does not compromise the confidentiality or authenticity of the secure channel. What is explicitly disallowed is the intercepting party getting access to the plaintext. That includes the broker.
Amazon can ban your account. You can get put on the No Fly list.

Not to mention the Drone Strike List,

> ...former CIA and NSA director Michael Hayden said in a public debate, “We kill people based on metadata.”

> According to multiple reports and leaks, death-by-metadata could be triggered, without even knowing the target’s name, if too many derogatory checks appear on their profile. “Armed military aged males” exhibiting suspicious behavior in the wrong place can become targets, as can someone “seen to be giving out orders.” Such mathematics-based assassinations have come to be known as “signature strikes.”

https://www.rollingstone.com/politics/politics-features/how-...
To add to the other comment, for example the Patent Office is self-funded and they're currently working and getting paid.

But, absurdly, they might have to stop soon because even though they're self-funded Congress must allocate their funding.

https://thehill.com/homenews/administration/426904-patent-of...
Tech monkeys here did even realize that it is about the trade war.
National security is decades ago is the reason why Chinese gov banned tech giant unless they have completely complied with Chinese laws. Now it's your turn America
I don't know which specific language, but there been around since at least 80s I would guess.
History of AI defeating humans in games, in one chart
Oh, I thought you were making a point related to the article.

I'm not interested in interpretations and I'm positing the idea that unless you act out the doctrine of Christ in your life, you cannot make a valid claim to be religious (in the Christian sense).

Please find a Lutheran and posit this to them. :)
You can't log out of the YouTube Android app anymore. There's only an incognito mode.
For my next interview I will start talking about hash tables and hope for the best!
> They aren't really required to work. They're allowed to quit. They're just required to work if they want to keep the job

I'm not really required to breathe, but if I don't, I'll stop living.

So...yeah...that's what's known as a requirement.
> flushing longer term congresspeople could mean the breaking of many lobbyist ties, shadow coalitions, and other impediments to reasonable progress.

You think lobbyists and interests groups having all the people experienced with legislation while members of Congress are all neophytes that get booted out after a handful of years (and then with job experience most relevant to legislating, which they can't do any more, and lobbying...so what is it they are going to be setting tthemselves up to do afterwards?) is going to make things better?
Workaround: Use conscripts.
I'm an educator in a 'Google' school board. We use google products for all documentation, and it's given me pause to think that Google's ML algorithms will be combing through allegedly confidential documents. Is it appropriate for a 3rd grader's bathroom accidents to be documented 'in the cloud', subject to Google's massive profile-making engine? Google Apps for Education (or whatever the title) makes assurances against targeted advertising for students, but it's anyone's guess as to what happens with student account data after it's exported to a 'grownup' account at graduation.

It's unclear to me whether confidential communication respecting students using Google products meets our legal obligations, given that I'm in Canada and (as far as I know) Google doesn't have any data centers physically located in Canada...
Not as long as people keep confessing and being convicted.
Difficult to hire people who already have a job and aren't interested in moonlighting.
Completely agree with you. Yes you should have savings for six months or whatever that may be, but just because you should, doesn't make it right for you to engineer a situation where you put everyone who didn't into an extremely difficult situation.
same, one really needs to engage the interviewee to see how it solves day to day problems, not just get packaged answer to closed questions.

that said, we have one extremely exercise (a simpler foo baz) just to avoid going in deep with people that lack the basic skills, of which there are many and were clogging our hiring queue.
> No one is entitled to income, a job, or having others pay for their expenses.

According to the Universal Declaration of Human Rights, of which the USA is a signatory, they do. Namely:

Article 22.

Everyone, as a member of society, has the right to social security and is entitled to realization, through national effort and international co-operation and in accordance with the organization and resources of each State, of the economic, social and cultural rights indispensable for his dignity and the free development of his personality.

Article 23.

(1) Everyone has the right to work, to free choice of employment, to just and favourable conditions of work and to protection against unemployment.

(2) Everyone, without any discrimination, has the right to equal pay for equal work.

(3) Everyone who works has the right to just and favourable remuneration ensuring for
himself and his family an existence worthy of human dignity, and supplemented, if necessary, by other means of social protection.
I'm not sure where you are seeing that, on the GNU page I'm looking at[0] they are very clear that they are not following the complete standard.

"The APL interpreter is an (almost) complete implementation of ISO standard 13751 aka. Programming Language APL, Extended."

[0] https://www.gnu.org/software/apl/
Please don't be dishonest here. In 2013 the GOP was trying very specifically to defund the ACA. The Democrats were pushing clean CRs. Again, it was the GOP trying to use a gov't shutdown to force the Democrats to agree to their wishes.
Or an increased demand for long-range travel systems such as airplanes, buses, railroads, and/or zeppelins. America has fetishized the long distance road trip for a long time, but it's not the only way to travel.
> Yes, they could serve you a MITM key, but it would be easily discoverable when you compare security codes in the client.

Who does that for every conversation? Or even once per week/contact?
Indeed. They sued Samsung for making a phone that was a rectangle with rounded corners as if every maker of watches, wallets, tables, beds, couches, previous cell phones, cafeteria trays, cars seats, coffee cups with handles, axe handles, power tools, sports rackets, three-ring binders, televisions, remote controls, radios, messenger bags, and briefcases didn't realize sharp pointy edges are uncomfortable.
Yea, and if we did the continuance bit, we'd end up always running on automatic continuance funding, because that means all the politicians can continue to not do the hard work of negotiation and compromise.

I like the 'triggers an election' thing. Puts the right pressure in the right place - if people in place can't get along and come to a reasonable compromise to keep the country working, then the people need a way to make some changes.
Information theory holds surprises for machine learning
Having little experience in ML:

Write the sets in ascending order and, treating them as an n+1 dimensional vector, and use Euclidean distance.

Googling, you could look at section 2.1 of https://papers.nips.cc/paper/3708-ranking-measures-and-loss-...
Proprietary _and closed source_. We make use of open source (but not open license) proprietary software on my team.
Presumably the pre-integration builds are still sitting around somewhere on Facebook servers. I suppose they could destroy this IP specifically to sabotage the sale-value of it, but I can't imagine shareholders being too pleased with that.
That is eye-opening, although:

> even if clean energy supplied all the power, over 1.5 million people would still have to switch

So it does factor in the current state of electricity-generation, which makes a big difference. I guess the way I've always looked at it is, the energy industry has a big head start (and much more flexibility) in moving to clean sources than cars do. It's really hard to:

1) Create a cultural change for billions of individual people

2) Replace the infrastructure of fueling stations

3) Create the technologies to make electric motors and storage feasible on a moving platform, where space and weight are at a premium

Each of those things has its own powerful network-effect holding it in place. While not easy per say, I think the energy sector has much more opportunity to branch out. If you want to try out clean nuclear energy, you just decide to make your next plant a nuclear one.

I honestly think one of Tesla's greatest contributions to the world - on par with its battery innovations - was making electric cars "cool". I think this was the core genius behind Musk's business plan. Much as we'd like to think otherwise, car culture in America has always been one of the greatest barriers to adoption of non-fossil-fuel vehicles; in the past, hybrids and electrics have always been boxy nerd-wagons. Elon said, "let's start with an exotic sports car". He broke that most entrenched of barriers and I think that's what really got the ball rolling.
Many thanks. I'm really happy with how it turned out. I hope you all like it! :)
It includes the cycle detection in a linked list problem, and even has an illustration of the classic algorithm of Floyd using the tortoise and hare. It's kind of fun and interesting to look at what is actually required for that algorithm to work.

It's almost always presented as having the tortoise and the hare start on the same node, with the tortoise advancing one node per iteration and the hare advancing two nodes per iteration. Let's call this a (1,2) stepping version.

That suggests the first question to explore: for what positive integers n, m does an (n, m) stepping always work, when the tortoise and hare start from the same node?

A lot of people from what I've seen think that n and m have to be relatively prime, but that is not correct.

The surprising answer is that an (n, m) stepping works for any positive n and m as long as n != m.

This is surprising, because you might expect that if you were using something like a (2, 4) stepping, and the cycle length was a multiple of 2, you could get the tortoise and hare stuck in non-intersecting loops. E.g., if the cycle length is 8 and we number the nodes in the cycle 0, 1, ..., 7, and the nodes before we reach the cycle are -1, -2, -3, ..., couldn't we end up where the tortoise gets stuck in looping over 0, 2, 4, 6, and the hare gets stuck out of phase with the hare looping over 1, 5?

It turns out that there is no way for the hare to enter the loop at 1 without the tortoise also entering the loop at 1, which puts the tortoise on the 1, 3, 5, 7, and it will meet the hare. This is a consequence of the tortoise and hare starting from the same node.

That suggests the second question to explore: what is required for an (n, m) stepping to guarantee it works regardless of the starting nodes of the tortoise and hare?

The answer there is the difference in speed, m-n, has to be relatively prime to the cycle length.

Note that (1, 2) is a stepping that works universally. If the tortoise and hare start at the same node, it works because 1 != 2. If they start on different nodes, it works because 2-1 = 1, and 1 is relatively prime to every possible cycle size.

But (1,2) is not the only stepping that works universally. (n, n+1) works for the same reason.

That suggests a third question to explore: are there circumstances where it is better to use an (n, n+1) stepping with n > 1 than to use (1, 2)?
So like a Chinese “No Fly List?”
p-code?
> If one version can include significantly fewer comments without issue then that’s good sign.

Which is why I don't buy what the article tries to sell, at least not fully.

In the first example, having a few initial handle-and-exit if statements to deal with edge cases, and a main body that's clean means you don't need to comment.

The approach suggested by some here that you could just have two for loops over the input, while clever, might not be immediately obvious to everyone and as such would probably need a comment explaining it.

The latter does not need special case handling, but is less obvious.
Yeah. You've got short-sighted "warriors" on both sides, trying to score cheap political points while the country burns (mostly figuratively, so far).

Can states do recall elections? Because maybe that's the answer. If all 50 states held recall elections for all Senators and Representatives, that might concentrate minds in DC a bit...
A company that asks these types of questions has likely never critically examined its own interview process. For every last one of them, my first thought was "why was this data structure chosen, and could this specific problem be solved architecturally rather than algorithmically?"

First question: "How would you find the missing number in an array?"

Easy answer: If there's only one missing number, XOR every number in the array together and XOR that with your expected result, from XORing every number you expected to have been there. That's the missing number. It even works with nonconsecutive numbers, which your n(n+1)/2 solutions won't get. And for consecutive numbers, to get the XOR of the whole list from 1 to N, switch on N % 4, returning 0: N, 1:1 , 2: N+1, 3: 0 .

Hard answer: I can't think of any real-world situation in which the developer couldn't solve this problem better by ensuring it never needs solving at all. Keep track of numbers that were never added, or later removed. What are the missing numbers? Return the list. Fix the problem upstream, and you won't have to recover missing information later.