skysight-inc/HackerNews huggingface dataset:
Everything new is inspired by something in the past. Literally nothing comes from whole cloth. I think the point I was trying to make is that we're going to see more of these types of apps.
Recent PyQt segfaults a bit less than it used to do in Qt4-times. I believe Riverbank made some efforts to avoid the most common problems with object lifecycle. This said, underneath C++ and CPython have very different ideas about lifecycle, and Qt is very complex, so the occasional issue has to be expected.

I cannot speak for pyside/“qt for python”, but that project has always lagged behind PyQt, so it’s unlikely to be much better.
I upvoted you but I have to say:

1) the argument “you use X in reasonable amounts so how can you say that X in huge amounts is bad” is a terrible argument

2) I agree that we should stop talking about temperature and simply call it what it is: AIR POLLUTION, and the solution is to tax it and redistribute the money to everyone... end government subsidies to fossil fuels including the military industrial complex... do reparations for all the wars and subsidies we did for oil... watch how quickly we get CHOICE of how to fuel our cars, and fossil fuels will go the way of the dodo BEFORE we hit peak oil

We absolutely need to do #2 because that’s what is incontrovertible - the raw data about carbon concentrations, carbon emissions, ocean acidity and so on. There are plenty of other things besides temperature that are a side effect of desertification, deforestation, killing off tons of species, insects and so on. The problem is far worse than temperature so we need to stop giving non-scientist talking heads on the right like Ben Shapiro ammunition to say idiotic things like “well so what we’ll just sell our beachfront homes when Miami goes underwater, meanwhile let’s make money wheeeee”.

Where I wish I didn’t upvote you is:

3) you know better, you’re smart, you realize #2 has grave consequences and Climate Justice is a CO2 and methane tax and redistributing to everyone as a dividend. So stop muddying the waters yourself and help us clarify the issue on YOUR side. The side that is driving us off a cliff!!!

4) stop throwing our red herrings such as #1 where you don’t do similar things when Trump blames China and illegal immigrants while his companies use labor from China and illegal immigrants. Notice how when you agree with an idea, the hypocrisy of the speaker doesn’t matter and you say hate the game not the player. Total double standard — but this left vs right is just that — a game — that you’re playing on your computer while our house is on fire. And we all share this house, there is no other one!
Sorry, english is not my first language, I meant this:
When you build initially the used dependencies get downloaded. Only if you [A] update, [B] add a new dependency or [C] clean your project and build it again there will be new things downloaded.

If you update the versions in your Cargo.lock are ignored and updated if the build is sucessful.

If you add a dependency only that depndency is downloaded, the rest is kept as you had it.

If you clean it is as if you cloned that project fresh with git and you will have to download all dependencies. If there is a lockfile the exact versions from it will be used.

To me this is extremely flexible and works very well AND you get precise control over versions if you want it. By the way it is also possible to clone all dependencies and keep a local copy of them, so you are really 100% sure that nothing could ever change with them. Although I am quite sure crates.io doesn't allow changes without version number change, which means you should be save as long as you rely on the version number.
Maybe a better way to summarize the difficulty I'd have with using Polar heavily is that I put my stuff into projects: something I'm researching, a home improvement project, a new language, etc. It doesn't really seem to fit in with projects, because not everything in a project is going to be PDF files and websites, and I don't see how you can embed Polar in a project either - it's a dump of hundreds of files, and no way to focus on just one project.

> But I don't get your point about a missing tag.

I find tags to be very complex because I have to remember exactly which tags go with which types of material. If I don't attach a particular tag to a file, that file is as good as lost, because it will never come up again.

In contrast, if I organize by projects, I dump all my files into the project and I can come back in two years and have everything I need. Tags just aren't in my experience a substitute for proper organization.
+1 for dub techno when working. Pretty much the only thing that helps me focus
Same for me and I’m curious why (Safari on iPhone)
Thing is, I totally randomly met a British criminologist while visiting Svalbard a few years ago and I spent a while talking to him. He generally agrees that homogeneity reduces problems in a society. If everyone's the same, everyone kind of gets along. There is merit to that argument for better or worse, although I believe we can also move past that in time.

Regarding incarceration rates specifically, the next 3 leading jailers behind the US (Russia, the Ukraine and Poland) are unbelievably homogeneous. I believe Poland is almost 97% white [1]. They're my people, so I think I can safely say, they consider a mild tan to represent diversity. There are homogenous countries that lock people up, and there are homogenous countries that don't. There are also diverse countries that lock people up, and diverse countries that don't.

I was trying to be very careful in not comparing Norway's incarceration rate (which is, itself, 1/10th of the US) but rather their substantially lower recidivism rate which I think one can more easily treat as an apples-to-apples comparison, meaning that there is room to improve on the process.

[1] https://www.chicagotribune.com/news/ct-xpm-2005-10-16-051015...
For what it's worth at this late stage:

Yes, this is an accurate summary. re2c works when it works, and there's clearly a good niche for "pattern matching stuff that determinizes cleanly". However, in the general case, DFAs catch fire (combinatorial explosion in # of states), especially when handling multiple regular expressions.

IIRC SpamAssassin has lots of quite hard patterns and re2c can only handle a subset. I forget what the fallback position is (libpcre?).
> I feel like the art of UNIX is slowly fading into oblivion, especially with the new generation of programmers/developers.

For what it's worth, I'm a first-year computer science major and the class I'm currently taking is very much focused on the "art of Unix." We've been doing shell scripting and regular expressions and the like. I quite enjoy it.
Tesla Model Y will be unveiled March 14th
I mean, to use sendfile you need to open the file, and that does a permission check too...
In this case, yes, I was generalizing the future in general.
I wrote that insanitybit post. It's unrelated to Phantom types.

A session type allows you to encode a state machine into your type system. What this means is that, at compile time, you can validate that your code can't transition into an invalid state.
Testing.

Unit testing to me seemed akin to drinking 8 glasses of water every day. A lot of people talk about how important it is for your health, but it really tends to get in the way, and it doesn't seem to really be necessary. Too frequently, code would change and mocks would need to change with it, removing a good chunk of the benefit of having the code under test.

Then I started writing integration testing while working on converting a bunch of code recently, and it has been eye-opening. Instead of testing individual models and functions, I was testing the API response and DB changes, and who really cares what the code in the middle does and how it interfaces with other internal code? So long as the API and DB are in the expected state, you can go muck about with the guts of your code all you want, while having the assurance that callers of your code are getting exactly out of it what you promise.

Unit test suites would break all the time for silly reasons, like someone optimizing a function would mean a spy wouldn't get called with the same intermediary data, and you'd have to stop and go fix the test code that was now broken, even though the actual code worked as intended.

Integration tests (mainly) only break when the code itself is broken and incorrect results are getting spit out. This has prevented all kinds of issues from actually reaching customers during the conversion process, and isn't nearly so brittle as our unit tests were.
The file is fungible and that's great, but the license isn't. It's still bound to Amazon/Apple etc. and you can't give it to someone else, without Apple's/Amazon's permission. With CDs/DVDs, Walmart or wherever you bought the CD from, has no say onto what you do with it afterwards. Whether you give it to someone else, sell it, etc.

Of course, if you have a perfectly fungible system, you could have websites where you are being lended a medium for a short time (e.g. one day) for really low amounts of money and of course this would be bad for content creators as it would dramatically lower the sales. However, that can be countered by other means e.g. minimum restriction on lending duration (e.g. one day) and fees that content creators get on ownership transfer and each lending interaction (e.g. 5% for the first 5 years after movie release, afterwards 1%).
The current version of npm does this and this is "correct behaviour". I got bitten by this a few weeks ago.

For the passers-by, the only way to make npm behave expectedly in this specific case is to use "npm ci" instead of "npm install". If you do not do this, npm will assume you want to update the packages to the latest version at all times, at all costs, even if you have a lock file in place, and even if you have your package file and lock file locked to exact versions. (i.e. 2.0.0 exact, not ^2.0.0)

This is a new addition, and it has been added a couple months ago. Before that, you had to check your dependencies into your source control. That might still be the best practice, and likely the only trustable way to get reproducible builds consistently over a longer time horizon.
Interesting...on one hand it appears that he likely molested children. On the other hand he was very talented. Can we apply the same standard to Edison, Bell, DaVinci, Socrates, Steve Jobs, Einstein etc. Granted molesting kids these days (maybe 2000 years ago wasn't seen as such) is on its own class, but maybe how they treated their wives, slaves, kids etc? Is MJ's music less amazing now...?
>> People seek out the most efficient path to maximizing social capital

Trying to take the shortest path is like flinging yourself over an invisible wall and hoping that you don't smash into it.

There are only so many times that you can hit that wall before you break. So it makes sense to pick a very long path that will take a lifetime to finish; that way you can be sure that you won't live long enough to see yourself fail.
I don't think the stateful approach with .generate() is thread-safe if you make the stream parallel. The API doc says it's an unordered stream, parallelizing it would mean concurrent reads/writes in the supplier.

Stream.iterate() docs on the other hand guarantee happens-before ordering for invocations.
> The bottleneck has always been in understanding all the implicit assumptions baked into the system that for one reason or another are essential to its correctness.

> It takes a particular kind of masochist to enjoy reverse engineering a black box from just poking at it with simple linear impulses.

These are great observations and brilliantly put. In particular the second one I think rightly explains why some very smart people definitely do not take to programming as a profession.
Is it “incredibly” high though? I think you have legitimate criticisms but compared to other news aggregator/ social media sites I think the quality is very high.
I read this as “GDPR non-linear function detector” for neural network regulation
Exploring Global Consciousness [pdf]
Scala.

It really opened my mind up to what I was missing, as a recovering Perl programmer. Perl folk tend to think their shit doesn't stick. But it's the Blub Paradox in full effect.

Types matter. Functional programming matters.

Anyone advocating for dynamic typing in the year 2019 is captain of the USS Blub; and it's sinking.
Such a picture might convey something accurate about someone’s perception, which may or may not be seen as valuable and may or may not be close to some sort of consensus.

A map is not the territory[0]; the map is not even of the world but merely of perception of it.

[0] https://en.wikipedia.org/wiki/Map–territory_relation#"A_map_...

Addendum: no, I would never call a non-documentary work of any kind ‘fake’, the word conveys nothing of substance yet has the potential to discourage further creative work, which I would like to avoid. Depending on what it is, I might say ‘surreal’, for example. To each their own.
Your experience is not universal. Public transportation covers maybe 5% of my needs, and that's if I'm being generous.
> you should write tests for things you want to make sure they will not break

You should also write tests for things that are already broken before you work on the fix so that you can be sure it's actually fixed. Basically the red/green/refactor cycle[1] from TDD.

[1] http://www.brendanconnolly.net/test-driven-testing-red-green...
By spending money on upgrading it, astonishingly. The problem with US infrastructure is very simple. Money. There’s no magic secret that everyone else has.
Why do the returns have to be higher, and not just comparable?
That's one high-quality rant. The likes of Pretending that the system and the runtime traces of the system are the specification is why there is always a shortage of programmers. That's really insightful. And I think the implied derived actionables are obvious.
To address the things you raise directly: Mars has gravity, and if you have plenty of energy to melt it, it has plenty of water. Nuclear power can supply plenty of energy.
The password “ji32k7au4a83” has been seen over a hundred times
Worry
تحميل تطبيق الرسائل Messages من جوجل مع مميزات رائعه للاندرويد و الويب
Sure, but your monetization strategy could still be tied to online access/community/etc. -- in other words, you could provide the software to keep track of the event offline for free, but have it connect to a website where people can see results live (when the event supports it), search historical results, and even watch video of the event for a fee (again, if the event supports it).
The bullet point right below the 2 you quoted literally answers you question.
"If neither you nor your business is based in the UK. You must register as soon as you supply any goods and services to the UK (Same with EU)".
Alternatively, don't do business in a country you consider to complex to deal with.
I don't think Europe's infrastructure is exactly the envy of the world. Sure, they've got a decent train network. That's because it's much more densely populated than the US.

Infrastructure in Paris or Madrid isn't much different than in New York or Boston. And infrastructure in the middle of nowhere Romania isn't that much different than infrastructure in North Dakota.
Charge money + 25% maintenance annually.
I talked to a guy working at facebook and he just insisted its not actually that bad and nothing shady is going on. He clarified that nothing shady meant nothing that the public doesn't already know.
I never said it wasn't. But I'm not so sure you can buy status without putting in some effort on your own part. Maybe it's a bit like physical fitness -- you can pay for a nice gym, a personal trainer, etc, but you still have to do the heavy lifting yourself (pun intended).
Look at the books "Have Fun at Work" and "Friends in High Places" by Livingston.

The confusion you describe reflects the difficulty of getting everyone to pull in the same direction when you are trying to do something that is too complex for one person to do.
QML is just a teaser. Once you taste it you'll want the real thing and you'll move to Electron.
> maybe a rise in fortunes will make people yearn for freedoms they don’t have.

Actually this is a big thing already now as rich chinese people invest in western properties that the Chinese government can't seize.

If you are rich in an authoritarian country, all of your wealth can vanish quickly if you fall out of favour of the people who rule. This doesn't even have to be your own contribution, they can just say they take it. If you are rich in a western democracy, nothing much can happen to you.
It was completely true in all respects. Natural uranium requires a moderator.
Just adding to this, for me I think the benefits of testing became really clear in situations where you end up fixing the same bug twice.

Knowing about that bug is really valuable knowledge and not adding a test for it is basically like throwing away that knowledge instead of sharing it for future people working on the project.
Thanks for pointing f-strings out. I'm transitioning a script with a lot of string manipulation from Python 2 to 3 and this is better than concatenation, % formatting, or str.format().
What a strange blog post, the author did a copy-paste job of the man's story but never in there did s/he write what s/he personally learned from reading about the guy that s/he wishes to share by blogging about him.

And the last paragraph is just another point by point list of what that man did...
> a push for mobile [...] where QtWidgets wouldn’t work at all

Er, they actually worked fine on Maemo/Meego. I think even Android was supported at some point. But it has never been “cool”, and Nokia were desperate for getting cool.

QML was an attempt at doing what Electron has done, but starting from the other end (i.e. desktop -> web, rather than the other way around). It was aimed squarely at “cool web people” trying to build desktop and mobile apps. I believe it was also supposed to be married with some integrated cloud service (where rendering a QML-based interface in-browser was obviously going to be much easier than reimplementing QtWidgets), but I had no interest in that sort of thing at the time, and I don’t know the current situation.
I love to hate on MBA types just as much as the next engineer, but this article contains a distracting logical fallacy right away:

That CEO pay increased because of a trend in aligning incentives (the analysis of the CEOs performance says nothing about this).

The article spends no time on this and is at best an ancillary point, it should have started with a general statement of how crazy CEO pay is and if it’s worth it without dealing with the incentive nonsense at the beginning.

Otherwise good article.
>I don’t think confidentiality is that important for bodycam footage. In the sense that most will be released anyway.

Why would most videos be released, anyway; especially, in Germany? This is all videos, inclusive of "routine stops" or "health and wellness checks".

>This seems like a non-issue unless, for some reason unknown to me, they have extra reasons for not wanting the NSA to see bodycam footage.

Why would they need extra reasons for not wanting that? Your supposition seems to infer that they should be o.k. with the NSA wanting to see bodycam footage any time that they want?

That makes no sense... That would be akin to saying that the Americans should be fine with the Chinese seeing bodycam videos any time that they choose. If it's not fine for one, why would it be fine for the other?

>Although I suspect that any German data center is the same, if not more vulnerable.

Possibly but they wouldn't be victim to the Cloud Act, yeah?
Just Federal interest on debt in 2018 was $523,017,301,446.12 or 523 Billion. https://www.treasurydirect.gov/govt/reports/ir/ir_expense.ht...

To get 230 Billion you must first ignore state and local debt a rather significant number, then ignore over half of Federal Interest. So, I am not sure where you’re getting that number from.

Which gets back to my point, the way you do the calculation makes a huge difference in what the numbers look like. Only consider interest over the inflation rate and boom it suddenly looks vastly smaller.
Haven't read this yet, but just from Jake Vanderplas' reputation, I think it's probably worth

If you want some more recs, my two favorites are Chris Albon's Machine Learning with Python Cookbook and Joel Grus' Data Science from Scratch: First Principles with Python
Private spacecraft are under the authority of the government from which the organization originates in. For example, Swarm got in serious trouble with the FCC when they launched on an Indian rocket without FCC authorization.

I believe geostationary and geosynchronous orbits have some kind of bidding/registration, but for a lot of LEO it's generally free space.

NORAD tracks every object near the Earth that's over a certain size (a few cm). There's tens or hundreds of thousands and growing. It's operator responsibility to avoid collisions. The ISS, for example, will adjust its orbit slightly if they get a warning about debris passing too close.

Can't answer for economics, but Aerospace is still a small and tight knit industry. We all learn from each other and study failures. Deviating from the standards (such as the aforementioned unsanctioned launches is frowned upon).

Your mention of parasite cubesats is already implemented on some launches.
There are at least several of us!

Also have found myself really enjoying enterprise. It is by far my favorite premise of any of the Star Treks.
A corollary, would faster hardware help NOAA & friends? Do they already have the best available? Or are the models not able to take advantage of extra computational power?
Ask HN: Should I Go to Office?
Hi, I can't sleep last night. Should I go to office today? It's 7am and I still haven't slept.
Moderation asymmetries also leads to a chilling effect for controversial/challenging viewpoints.
The question is what he means by "all state".

If we take the OP post as definitional, then eliminating state means eliminating compound data structures, because that's the usage of "state" implied by that Fibonacci example.

Hopefully the person at your work has something less extreme in mind. Ask him to explain what he means by "state".
They were for ages. I’m not really sure how non-drm won out but I’m glad it did
Previous discussion: https://news.ycombinator.com/item?id=13904384

I'll just say now what I said then (https://news.ycombinator.com/item?id=13905409):

This is not as silly an article as it may appear to be in hindsight. When it appeared (in May 1940: https://www.scientificamerican.com/article/dont-worry-it-can...), most scientific authorities, including such non-idiots as Niels Bohr, believed that, while an atomic chain reaction was theoretically possible, the only way an it could be achieved was by bringing together a quantity of nuclear fuel so large as to make the effort impractical.

The first proof that this was not in fact the case came in the Frisch-Peierls memorandum (https://en.wikipedia.org/wiki/Frisch%E2%80%93Peierls_memoran...), which had been written two months before Harrington's article appeared, but which was highly classified and thus out of reach of pop-science journalists. Frisch and Peierls' figures indicated that a critical mass could be achieved with just one kilogram of uranium-235; this turned out to be an underestimate, but not so much as to invalidate their fundamental point, which was that criticality could be achieved with a mass of fuel small enough to be delivered by a 1940s-era airplane.

This came as news to the brightest lights in the world of physics, up to and including Albert Einstein, so it's probably unfair to expect a contemporary writer for Scientific American to be further ahead in the science than they were.