skysight-inc/HackerNews huggingface dataset:
> The `print()` function is nice, but they could have left in the `print` statement for a transitional (deprecation) period. Or left the `print` statement in, and advise against its use.

They did, it's from __future__ import print_function. python2.7 was, essentially, the transitional deprecation period you mention, and it lasted a decade.

> A lot of the incompatibilities are just stdlib modules being moved around unnecessarily.

six.moves

> - All the new features in Python 3 (async, nice helper functions, etc.) are compatible with Python 2. They could have added them to Python 2.

This assumes a level of similarity in the py2 and py3 codebases that isn't true in practice. There are different bytecodes and 3.0 only optimizations. Backporting some of these is possible, but not a reasonable burden.

>The Python 2 stdlib could have been made compatible with both types of strings (as nearly all third-party libraries have).

I don't know what you're working with, but most third party libs aren't compatible with both types of strings. They're compatible with str or bytes, but not both except in rare and usually wrong cases.

Importing unicode literals only sometimes solves the issues, and often times introduces different problems.
tot.se
It's great that she did the right thing and had the paper retracted, but this is still terrible on so many levels.

Maybe with a strong effect for every single subject a little more skepticism would have been warranted in the first place? Some manual spot checking if possible, or using a minimal independent implementation of the analysis code?

Who knows if she'd gotten her grant, her assistant professorship without the publication of this incorrect finding. Who knows who didn't get any of that because they were a bit too careful in their work.
Different meanings of "slow". I like L4 a lot though. But, I mean, you're generally attacking the things running on top of it.
Still live and as relevant as ever -> https://picard.ytmnd.com

EDIT: Apologies if anybody here had forgotten or still didn't know about this and now can't take this tune out of their head. It's what it does, don't fight it.
I also don’t think we can completely exclude that the peak observed in sweden corresponds to the seasonality of the virus.
My post is just a blueprint for letting us know what to do at all.

Its the plan for making a plan.
I'm trying to get a basic editor working, but my hope is that i'll have something within in next 30 days. The video scanning and track injection seems to be working alright, now it's just making the process of creating tracks less laborious
Show HN: Docker.hostip.dev – Access localhost from Docker on Mac, Linux, windows
That it’s turned from a search engine into a shopping portal and there are certain things you simply can’t search for because Google assumes you must be going shopping.
haha! now that is a great link you've got there. here's hoping you are somewhere remote / peaceful / beautiful enough to enjoy the tradeoff! 8^)
And if you go around to people's homes, you'll oversample people who aren't out during the lockdown. There's no silver bullet here.
Even more relevant to this observation is that false positives aren't properly random: if the test happens to be falsely positive for some other rare virus it's very much possible that the entire prison was hit by that virus, creating a cluster of connected false positives.
If a package doesn't provide a stable branch that will receive security updates then it's not mature enough to be used anyway. That's the sensible middle ground between bleeding edge and security, unfortunately most packages/projects aren't mature enough to provide this.

There's a reason companies stick with old COBOL solutions, modern alternatives simply aren't stable enough.
This seems to directly contradict YAGNI. I find that when I "write for the future", I over-engineer things and they get messy and bloated.
Is there a convenient place to input web url to get at the article text? I saw someone post a few days ago ...
Wasn't quite a lot of what you say about China true about the USA in the 19th century? Not saying the cases are the same and I am skeptical of grand historical theses, but I don't think you can glibly dismiss China either.

Personally I see China replacing a superpower, but the superpower being replaced is Russia. Russia is by nearly every metric declining and much faster than the USA.

The question is whether the USA will remain the dominant superpower or whether China will be a serious challenger by mid century. To really challenge the USA China would have to export more than just goods and services but also ideas and culture. I see a little bit of ideas being exported but very little cultural export happening.
Nobody likes the flippant attitude, that's why you're getting downvoted.

As for questioning the quality of the journalism, they requested the information from the military and the military chose not to respond. What more do you expect out of them?

If they wanted to speculate in an op-ed, they'd probably write something to the effect that it's very unlikely that the military (or government in general) can restrict citizens from displaying whatever they want off-duty. This is 1st amendment but comes with a strong caveat that it's as long as there's no association with the US military. Basically nothing to suggest the military endorses their speech/beliefs or that the message they are transmitting comes from the military in any way.
SARS, MERS, and now SARS-2 are all known for super-spreader events where occasionally one person just infects a ton of other people. And we know from testing that the amount of live virus in a person's phlegm can vary by many orders of magnitude so I guess that isn't surprising. There are a lot of people who infect just one other person but the overall R(effective) is substantially driven by the long tail.
The version I played was much more bloody.
Is it your thesis that the economy must never reopen until we know the long-term ramifications of the virus?
A Professor in 101 put it as:
"Programming is just a tool, CS is a study that just so happens to use that tool now and then."

Without reading through every year's syllabus you will come across supprises (and very few students seem to do this)

Its expectation versus reality, CS seems to be taught very differently depending on where you go
ie different levels of maths focus is a big one,
another is if they teach "reality" like common industry tools, software development methodologies, software ethics etc

Often there can a problem with elitism "this course is for knowledge, not your career"
that changes many students minds on if this huge amount of debt is worth it vs just finding a job right away.
I just want a modern spreadsheet-like interface that isn't limited to the concept of sheets. A visually-represented functional language that lets a user with no programming knowledge run a pipeline of data transformation and ultimately output the data in a management/client-ready format.

I want to build it myself, but I have neither the time nor the expertise.
Under what circumstances to non-contiguous data structures run faster? I know of circumstances where structures with pointers make it easier to get better asymptotic behavior with a large amount of data, but none where a linked structure out-performs the analogous contiguous one on moderate amounts (a few cache lines) of data.
Nope. It ran an in-house OS named "Delphi". There was a PDP 11/45 at LCS and a PDP 11/40 in building 38 used to teach 6.031 (the predecessor of 6.001).
> but its cheap labor is easily replaceable

If it's that easy, it should have happened by now.
That's a perfectly reasonable interest rate. Imagine you borrow $1000 at an APR of 15% and for some reason decide to only pay $22 per month. You have 68 months to pay the full amount back until you pay $500 in interest. If you had decided to pay $100 per month you'd pay $75 in interest in total.

Meanwhile payday lenders will let you borrow $1000 for 3 months. You have to pay back $500 each month and if you can't pay it off within three months you will have to pay additional fees. That is basically a 500% APR.

There is no need to hate credit card companies. They are doing a perfectly fine job. They obviously have higher rates than regular loans simply because buying something with your credit card doesn't require approval from the company. When you apply for a regular loan it is often tied to a specific purchase that can be repossessed or directly increases your income and therefore ability to repay the loan.
The Pixel 3a has an OLED display, and probably the best update guarantees you can get on Android.

Why are you expecting Android phones to come with a 4-5 year warranty? The iPhone comes with a 1 year warranty
This (specifically car/bike traffic) may be the first real-life example of a Giffen Good I've come across: https://en.wikipedia.org/wiki/Giffen_good

You'd think that people avoiding public transport would result in increased car traffic. But in a scenario where the roads were already at or near capacity, that's impossible. Not only would a number equivalent to those switching from public transport have to use bikes. Because bikes also need (some, but less) space on the roads, car traffic actually needs to decrease.
I guess the answer is no then?
> That is, given the list [7, 3, 5], she expects that the program will return [3, 5, 7] and satisfy the definition. Yet the list [1, 2] also satisfies the definition since “it is a sorted list, just not the sorted list we were probably hoping for,” Parno said.

Because the human meant "sort this list", not just "return a sorted list". They put in [7, 3, 5] and got back [1, 2]. Then they realized their specification was incomplete.
As my professor put it: "Computer science is as much about computers as astronomy is about telescopes."
more seriously, thanks for the excellent and formative good times. You made something great.
https://docs.microsoft.com/en-us/windows/win32/api/winuser/n...

any application can do it, hence why you get laggy cursor in some games that opt to draw their own cursor.
Over the years I've heard that a number of people mistakenly go into CS, thinking they'll learn how to program and develop stuff like games and cool programs. I can imagine how disillusioned some people can become after they realize what CS really is.
Feb 25th seems to predate the reports of the more comprehensive testing that found the near 50% asymptomatic rate.

In particular, that CDC report I linked above citing 46.5% is from late March (early release on March 23, published on March 27th).

That report cites a website by the Japanese Ministry of Health, Labour and Welfare [1], which itself confirms that 46.5% (331/712) is up-to-date as of March 26th.

I'm not very knowledgeable about stats, to be perfect honest, but I think your paper must've turned out to be a red herring. Maybe they got unlucky with their sample?

[1] https://www.mhlw.go.jp/stf/seisakunitsuite/bunya/newpage_000...
Even 100% formally verified code could be vulnerable to side channel and other hardware attacks. There could also be bugs in the verification system, the compiler, the spec that they’re verifying, nothing is hacker-proof.
I don't think anyone is moving goalposts. Most of the antibody studies that have come out have had serious flaws either with the tests themselves or the sampling. The recent NY one was ok, but still had sampling issues because it only sampled people who were out and about during a lockdown. I would expect those people to have a higher prevalence of exposure.

With that said, the extrapolated numbers for NY do fall in line with the original IFR of .5-1% The downside is that if that is the IFR then the US is looking at 1.6-3.3M deaths assuming hospital systems can keep up as the infection spreads.

Edit. It's also important to talk about infection counts (what antibody tests are looking for) and case counts (people who show symptoms and end up seeking medical care). In the past when people were saying it's just the flu they were comparing COVID-19 IFR to the flus CFR.
I don't know the implementation details behind this, but it also seems to me that Ctrl-C/Ctrl-V has a separate clipboard while middle-click-to-paste pastes whatever is selected. Makes no sense to me but I've tried to Ctrl-C / middle click and had issues before. Just one more thing that makes it worse.
No. Policy needs to be decided on the basis of what people need to do.

I'm sorry, but it's simply not good enough to say we can't abide this because you can't manage your own faculties. We're facing a virus that spread around the world in days because of normal social contact. Lasting respiratory and cardiac damage is common and reinfection appears to be possible.

People need to do better. Yeah, we're social beasts and struggle, but that's not a reason to abandon the actual goal here. It's possible to get through this with some support.

Willpower is a trainable life skill. We live in a society that does its level-best to undermine willpower to coerce you into bad purchasing decisions, but this is reversible. But you have to engage. Nobody can do this for you.
Of course, I agree with you that it's dishonest. It's the typical dishonesty of marketing. All marketing is dishonest. Sorry to be the bearer of bad news, but you can't trust marketing. You can't trust corporations, and you can't trust marketing.
One could imagine that the keytops were identifiable by the keyboard, so that it could actually detect that you swapped two keys and adjust what it sends to the host based on this.
https://www.independent.co.uk/news/world/europe/sweden-coron...

"Alarming data has shown Sweden’s approach to containing coronavirus has led to a far greater number of fatalities than their Nordic neighbours."

Is this article I read a week ago not true anymore?
All you said might be true 5 years ago. But many no longer holds.

China is no longer an export dependent economy, and moving manufacturing away from it, is hard.

The belief that manufacturing is about labor is simply false.

Dalio is pretty smart to smell the trend, maybe just because he is less idealogical driven but data-driven.
> I have to imagine that the US military is the only military in the world that has a history of flying a traitors flag

The present article gives no instances of Marine Corp units flying the confederate flag in an official capacity, do you have sources for this? The article is about banning its display such as via tattoos, pickup truck rear windows, apparel like hats and shirts by marine Corp members. Generally these thing are only enforced on base or during deployment. I do know some state run military schools had a history of displaying the confederate flag, but they’re not Federal institutions.
Alabama, Florida, Georgia, and Mississippi certainly do.

North Carolina's is based their own secessionist flag, not the Confederate flag.

Arkansas's flag is not a variation on the Confederate flag; there is a star that represents the Confederacy, but then there are stars that represent France and Spain as well!

Tennessee's flag is not a variation on a Confederate flag. That page says as much.
> If it's that easy, it should have happened by now.

Why? It's not convenient. I'm just saying it could be done if necessary.

It isn't convenient because China also offers infrastructure, a rich supply-chain of similarly off-shored labor / parts and it's "the devil you know" vs. e.g. Vietnam
Can my hearty pack of wolves make this video trend with Y-combo magic?
>On Windows, DWM's display compositing adds one frame of latency to every window on screen. It's not possible to render a dragged object in any window that sticks to the mouse cursor without at least one frame of latency.

AFAIK you can bypass this by using dxgi flip model so no additional latency is incurred. There's still is going to be 1 frame of latency from the vsync though.

>You can prove this by enabling "Night light" in settings; watch the mouse cursor change colors as it transitions from hardware overlay to software rendering when you start dragging a window.

can't reproduce on my end. maybe the upped the night light implementation so the hardware cursor is tinted as well.
> x / 2 resulting in the off-by-one error mentioned in the paper, if x is LLONG_MIN. LLONG_MIN / 2 = 0 in with their optimization.

Are you saying clang is leading to an off-by-one error? The code seems to behave correctly to me.
As mentioned in the other comment, this is a very deceitful comment. GPT-2 was made for generating text, and the specific thing it's dangerous for is disinformation bots on twitter/reddit as well as fake generated articles, two things the original model quite excels at. It's like claiming that nuclear bombs aren't dangerous because they're not good at taking us to space.
As we work with our clients from the US, we also work closely with their employees - that part still gives the feeling of remote work for us. Most of our team members or employees live 10 to 40 minutes' drive away from each other, so it makes sense to make the change and work in the same place. We have three people who live far away, so they still work remotely with us, but we mostly put them on projects that do not require much team collaboration.
I think there are already such calculations for approving drugs on public health programs - cost of treatment vs years of quality life provided.

So you would need to estimate the number of years lost vs the economic damage. This is impossible to get right on both sides but at least it gives you a framework.
> It's not possible to render a dragged object in any window that sticks to the mouse cursor without at least one frame of latency.

I thought this was a fact of all window managers?

I'd noticed it when making games in SDL / SDL2 on Linux and just assumed it was because the X server couldn't possibly wait on me to paint a frame before updating its own cursor
https://toepub.com/
Humanitarian cause would be preserving the national language and having an international one that is easy for everyone to learn, and Esperanto works great.
not a website, but the old battle.net, and irc in general
friendster.com!
Add volcanoes to climate change outcomes
Lost me in the first paragraph. Examining a history of money supply and debt that predates Bretton-Woods is simply not relevant. Everything I read could have been lifted from a comment thread in /r/Libertarian 10 years ago. The last financial crisis was the ultimate test for fiat currency. One that was pointed at as the moment that debt-driven currency would crash and burn by a lot of gold bugs.

Instead, a deluge of loose money came and went. Banks recovered. Markets recovered. Jobs recovered. Everything recovered. Even if the face of continued fiscal profligacy. There is absolutely no logical conclusion that can be drawn except for fiat currency being one of the greatest accomplishments of the 20th century.
Russia's debt is minuscule in comparison to the other two.
Do state schools really look at names? It's hard for me to imagine a state school looking at peoples names or pictures and reclassifying the races of applicants. It would be fairly disturbing if they did, in fact.

(Again, I'm not suggesting that you should have to misrepresent your race to be treated fairly. I'm just suggesting that, from a practical standpoint, you could probably avoid discrimination in state school college applications by ticking a box that would be more favorable to you.)
Deep vein thrombosis (DVT) is unlikely to cause strokes, as DVT causes clots to form in the venous system, while strokes involve clots in the arterial system. Clots from veins are more likely to get lodged in the lungs (pulmonary embolism) than pass across the lungs into arteries.

The higher prevalence of strokes in COVID patients isn’t fully understood, but might be due a generally increased inflammatory state in the body, with complement (a cascade of proteins involved in immune response) seeming to play a significant role. It’s known that inflammatory states generally increase risk of clotting (eg cancer, surgery) but it remains to be seen if COVID is having a similar effect, or a more direct influence.
So, in two weeks, if these prisons are still 96% asymptomatic - then what?

I hope that’s the case, everyone should. I have yet to see a single indication this is worse than than anyone’s projections. I think that’s a dangerous scenario for the next time a virus comes along.

If there is any perceptionat all of overreacting, it’ll be a cry-wolf scenario with a lot of people.
DNA may not be life's instruction book, just a jumbled list of ingredients
For equal time and effort, I'm not at all convinced that it's slower. It's easy to underestimate how much time gets spent on debugging, you just don't see it in the up-front cost.
So true. My first thought was this as well. I'm about the same age as you and played RS at much the same time. Personally the experience was greatest due to the huge black market community. Hell, I even first learned to code in order to bot RS. Learned a lot of the exact same lessons (Trading and bartering, getting scammed, talking to people to get help moving forward) but in real life and with real money.

I still haven't gotten over suddenly getting banned from PayPal for selling virtual goods when I was 14. The ~$1000 USD I had made, pretty much all the money to my name, was held hostage for 6 months!
The old SomethingAwful for me.

> Web Rings were amazing, and I think the idea still has merit. Why did everyone stop using them?

They stopped having web pages and started having Xangas/Friendsters/Myspaces that had the networking feature built-in.
Let’s add: appears to be breaking mission critical path that also slipped through cracks in QA. Mistakes happen, run CI/CD before getting to the mission critical path.
An example, San Francisco historically got it's water from the Hetch Hetchy Reservoir. It's all from alpine snow melt and springs. Used to not be chlorinated because it's organic content is very low. I assume a lot of Canada is the same.

https://en.wikipedia.org/wiki/O'Shaughnessy_Dam_(California)
You do both. This is why study design matters. And it's one of the reasons all of the early antibody studies have issues (the other being test accuracy).
The Yahoo Web Directory.
Dependencies in almost any software system are fundamentally built on trust.

You trust that minor version upgrades won't break the system, or that malicious code won't be introduced. But we're human... things break.

This can happen in any ecosystem, but npm is particularly vulnerable because of it's huge dependency trees. Which is only possible due to the low overhead of creating, including and resolving packages.

That's why npm has the "package-lock" file, which takes a snapshot of the entire dependency tree, allowing a truly reproducible build. Not using this is a risk.
I repeatedly point this out. There was the church choir practice where 45 out of 60 people were infected within what two hours? There is also a Korean call center where about 2/3 of the people in an open office were infected.

I've repeatedly linked to CDC study that estimates r0 in Wuhan before lockdown at between 3.8 and 8.7. Median 5.8.

Take away: Completely avoid being indoors with large groups of people.
> You need weed out courses to get people to think about what they actually want to do.

In my experience, "weed out" courses are usually a) very poorly taught and b) much more work than a normal course.

I'm sort of OK with (b) with full disclosure, but there is no excuse for (a).

Science, engineering and math departments should have high-quality onramp courses that do their best to help beginners master the material and discover how fun, interesting, and challenging the subject is.

Personally I've had experience with some fantastic introductory courses where basically everyone succeeded, had a great time, and learned a huge amount; a big part of this seemed to be instructors who actually cared about student learning. This stands in bleak contrast to other courses where the course staff seemed to actively work against any attempts by the students to learn the material.
ahh life is complete again. the only limit is myself.