skysight-inc/HackerNews huggingface dataset:
The article has some embarrassing errors, and its advice is not going to make your Python programs blazingly fast, but it's a good start.

Resuming a generator in CPython is a lot faster than creating a whole new function call, and especially a whole new method call, contrary to what the article said. But often enough it's faster to just eagerly materialize a list result.

Some other good tips: %timeit, ^C, sort -nk3, Numpy, Pandas, _sre, PyPy, native code. In more detail:

• For benchmarking, use %timeit in IPython. It's much easier and much more precise than time(1). For super lazy benchmarking use %%time instead.

• The laziest profiler is to interrupt your program with ^C. If you do this twice and get the same stack trace, it's a good bet that's where your hotspot is. cProfile is better, at least for single-threaded programs. Others here suggest line_profiler.

• If you have output from the profile or cProfile module saved in a file, you can use the pstats module to re-sort it by different fields. But you probably don't, you have some text it output. The shell command `sort -nk3` will re-sort it numerically by column 3, which is close enough. In Vim you can highlight the output and type !sort -nk3, while in Emacs it's M-| sort -nk3.

• You can probably speed up a pure Python program by a factor of 10 with Numpy or Pandas. If it's not a numerical algorithm, it may not be obvious how, but it's usually feasible. It requires sort of turning the whole problem sideways in your mind. You may not appreciate the effort when you are attempting to modify the code.

• The _sre module is blazingly fast for finite state machines over Unicode character streams. It can be worth it to transmogrify your problem into a regular expression if you can.

• PyPy is probably faster. Use it if you can.

• The standard advice is to rewrite your hotspots in C once you've found them. Maybe this should be updated; Cython, Rust, and C++ are all reasonable alternatives, and for invoking the C etc., you have available cffi and ctypes now. In Jython this is all much simpler because you can easily invoke code in Java, Kotlin, or Clojure from Jython. An underappreciated aspect of this is that using native code can save you a lot of memory as well as instructions, and that may be more important. Consider trying __slots__ first if you suspect this may be the case.
Wells Fargo's 2FA uses SMS. Hardly worth enabling.
Incompleteness and Computability
This feature sounds great on paper, but what's always bugged me is that this only applies to third-party apps. Apple's own location tracking apps (Maps, Find My) aren't subjected to never-ending scary pop-up messages like their competitors.
Clojure does pretty well on clients, ClojureScript for web and single .jar for JVM Clojure.
> If you want muscle and skin cells frog embryos are as fine source as any, I suppose.

There's the issue. I prefer to see us pursue technologies that don't require the harvesting of parts from intelligent life, even if we deem that intelligence to be low or embryonic. Yes, I am aware that we are omnivores, but I believe we can make ourselves into something better. I see this kind of experimentation as a step backwards.
Nice looking readme, I like how you made the example image. With white background and fading the bar itself out on the edges!

For the app itself, not sure I’d use it as I feel night shift works well already.
> It certainly makes for easy automated filtering if a person doesn't have a top-20 school listed on their resume.

That seems like a very weak hiring strategy.

I'd imagine the top 10% of CS majors at a mid-tier school might be better than the bottom 10% at a top-tier school.

Also, college rankings can include all sorts of factors like endowments that might only be weakly correlated with the quality of the education, which itself is probably very difficult to measure.

Plus you're going to have a hiring bias against self-learners or those that can't afford a top 20 school.

A quick quiz or sample of prior work is a much better filter than a college name.
Am I the only one who thinks that in the future we might have with us at all times some sort of complex infrared video-camera-blocking tech, together with a sound jammer?
FDA and NIH let clinical trial sponsors keep results secret and break the law
This discounts all the other benefits the French are getting for their taxes beyond it paying for higher education and healthcare; eg much better public transit. You will still probably do better in the USA, especially at higher incomes, but the French aren’t very unhappy with their life quality.
Wow, I didn't think my comment would be so contentious. Just to clarify, I did not say that she felt she didn't need the team, nor am I sure where you got that impression.

She was quite communicative in other ways -- just didn't see the need for standups. Due her effectiveness, I had no reason to try to change that behavior. She got shit done, and everyone knew it -- with our without a standup.

Edit: And please note that I said "universal" standups. I feel we often want to apply a one size fits all to developer mindsets. Maybe she was shy. Maybe she felt pressure from the ceremony. Maybe she did just feel it was a complete waste of time. Either way, my job as PM was to get products built, and
a big part of that was understanding the individual mindsets and capabilities of the engineers on my team.
Thank you, for everything.
Researchers say every day weather is linked to climate change
What Is Open Banking and PSD2? (2018)
Ha, same. Is how to win friends and influence people the one you haven't read?
I don't quite agree. There's lots of systems where it's always unicode, and the a lot of systems where it's always ASCII, and then some systems where stuff is weird (and should be unicode :x)
I'm not sure I'm following this comment.

The only movie I can find with both of those actors in it is Proof[1] from 1991, and it doesn't seem to be about anything to do with law enforcement/not speaking to police/right to silence.

[1] https://www.imdb.com/title/tt0102721/
See also (with no overlap in authors): The case for medical nihilism and “gentle medicine” (Richard Smith's review of book by Jacob Stegenga): https://blogs.bmj.com/bmj/2018/06/04/richard-smith-the-case-...

> Most practising doctors are, I believe, instinctive medical nihilists even if they would never use that term: they know the limitations of magic bullets, are highly sceptical of claims for new drugs, and recognise the importance of the human as opposed to the technical. Some patients and politicians are also medical nihilists, but most are not. They are the group who would benefit the most from this important book but also, sadly, are perhaps the least likely to read it.
Connection between music and dreams is a very deep rabbit hole from which there is no return (in a good sense). This article does a good job at bringing attention to the topic, although ideas presented there are naive.
Parent site: https://link.springer.com/article/10.1007%2Fs00376-020-9283-...
I work with a number of people who are fixated and super judged about brand-name school when hiring, especially Stanford. Single anecdotal example though.
I don't know if you have just taken a cursory look or you have actually used the software that you're going to compete against. My advice would be just to find someone who is using the other software that would love to work with you in making something that is competitive. That way you can get some continuing advice on the details. having done similar to what you're describing, it is usually the details that can take up the most time. It's easy to get the basics shell up and running but the details can increase the time and cost more than you expected in the beginning.
Maybe we have different definitons of high speed. A pedestrian who gets hit by a car going 30 km/h will most likely survive, while one hit at 50 will most likely not.
Likewise, a car crash at 70 km/h is very survivable by driver and passengers (in a modern car), while one at 120 is normally not, unless they are lucky.
> Tesla Model 3 is the best selling BEV in every market it participates in

No, that's incorrect.

The Model 3 is the second best seller in France: https://ev-sales.blogspot.com/2019/12/france-november-2019.h...

It's the third best seller in Germany: https://ev-sales.blogspot.com/2019/12/germany-november-2019....

And it's the 9th best selling BEV in China: https://ev-sales.blogspot.com/2019/12/china-november-2019-up...
Ask HN: 3D Printing resources, as a hobby/side project?
Please recommend resources to get started and learn about 3D printing as a hobby/side project.
w00h00, this is my area of expertise.

After 8 years of working on this, I have changed my thoughts:

- The correct algorithm is not always the correct user experience.

- End-to-end encryption is too important to not have.

- Offline support is great, but it behaving consistently is more important than it behaving "intently".

- Biggest pain points can most easily be solved at the editing layer, not data layer.

As a result, OT gets thrown out the door immediately.

I built the most popular CRDT powered database on the market (https://github.com/amark/gun, 11K+ stars, 11M+ monthly installs), but have some harsh words for CRDT obsessed people:

CRDTs are great, but if you create an infinitely complex one to handle "every word editing operation" it'll actually result in an inferior user experience.

As such, for example, GUN supports lock-free concurrent operations on any depth of data in a graph, but keeping text/strings behavior atomic is way more important than having built-in automatic string merges.

Why? It is much simpler to build a correct text/string CRDT on top of a predictable, stable, graph CRDT that is understandable.

Another example is, in our blog editing tools, despite having spent years researching & implementing (+ others in our community) precise character-by-character CRDT resolution schemes, I found I personally had a much better offline & local first user experience with a predictable per-paragraph sync scheme.

This is a stupid simple approach, but what it means is that I as a user, can easily predict whats going to happen, so if I'm offline I know I should just copy a new paragraph and fiddle with things there, cause it isn't gonna get "auto delete regrammar merged".

Generally speaking, me and colleagues don't "fight" over the same paragraph, we're usually concurrently writing different "sections" at the same time, it is pretty rare to grammar fix their edit same paragraph as they're typing it - that is also just kinda, rude looking.

Anyways, finally, is that the majority of text styling and DOM edge cases can be handled by having a deterministic canonical DOM hierarchy that always gets applied at the editing layer, BEFORE any CRDT operations even occur.

So for instance, re-arrange the DOM tree such that <i> is always inside <u> inside <b>, or something like that.

We built this into a library called normalize, and it instantly eliminated so much complexity, especially at the CRDT level. Ping me if you want a demo of this library.

Finally, for everyone else, we also built an INTERACTIVE CARTOON EXPLAINER of an extremely basic text CRDT to help others understand the more detailed concepts:

https://gun.eco/explainers/school/class.html
Wealth owned by the lower and middle class used to be higher. Not always, but certainly we're in a period where wealth inequality is wildly different than it used to be.

In periods of increasing wealth inequality, I'd expect less class mobility and increased anxiety and hopelessness.

Combine that anxiety with climate change, political gridlock, loss of privilege, a sense that retirement will never happen, and generally feeling like your parents generation had it better... I can see why people might check out. All these things seem so systemically inevitable.
Could you please not truncate titles in this way, leaving unreadable bits at the end? You've submitted a lot of these, and the idea on HN is for titles to be well-formed.
Lying is an act of speech and the government is prohibited from abridging that right according to the first amendment. We all know how that goes. Graduates of Yale, Harvard, et al. are appointed to SCOTUS over the course of generations. They parse plain language to mean whatever suits them and, well, here we are.
Given what you just said, why would you comply? Seems better to heed the Miranda warning "Anything you say can and will be used against you in a court of law" and just say "I'd like to talk to an attorney first". Whether you did what you're suspected of or not, given how the deck is stacked against you, compliance seems like the wrong choice and you may very well end up making things worse for yourself.

The cop is already pretty sure you did it (or he wouldn't have brought you in), so seems like there's little you can say that will change his mind.
Once there is a place I’m supposed to go to work remotely, am I still working remotely?

Complete Side note- I think there must be a market selling RVs to remote workers that work well as home offices. I converted a shed to a home office, but I spent almost as much as a similarly sized RV even after doing a lot of the work myself. The RV has the advantage of being easy to deliver, avoids building code restrictions, can come well wired for power and internet, and you get to have an RV.
> Each part of society is trying to maximize for its own good.

No. Only the elites are even capable of reasoning about their own good nevermind trying to maximize it. The vast lower class are incapable of even formulating a concept of "their own good". As orwell so cleverly put it, the proles are pretty much animals, they aren't able to organize and think about their own "good" no more than livestock in an industrial farm are able to think about their own good. If the proles were capable of maximizing their own good, they wouldn't be proles, they would be the elites.

"As the Party slogan put it: 'Proles and animals are free.'" --1984

> I dont define good and i dont even try

Neither have I.
> you need to make the statement that you do not wish to answer their questions as explicit as possible

It's also important to phrase it as a declarative sentence (including the correct inflections) and be sure of what you say. If you preface it with "maybe I should..." or "can I have a lawyer?", you are not asserting your right and police are free to continue to questioning you.

I learned all I know about the law from the internet, so it's worth what you paid me to hear it. IANAL
Unsure what that means, can you elaborate
All I can say is that all your base are belong to us...
> If you have a large amount of Python 2 code that doesn't make sense to rewrite as Python 3 but does make sense to keep developing as opposed to just keep running as-is, it makes sense to want compatibility-preserving improvements to the language.

But it really doesn't. If the new features are that valuable, you can convert your code. It's not actually that hard (I have a few 100kloc ported forward now, with millions of lines of dependencies that says so).
This post has it all wrong.

Music is the shadow of spoken language syntax, ornamented with mathematically recursive patterns, enigmatic suggestions, and all of the other various cerebral plumage humans are attractive to, all for one simple evolved purpose: “you gotta get down with the get down.” ;)

Dreaming has much more to do with core memory processes which remain a deep mystery. Nobody has put forward even a plausible explanation of how memory actually works on a physical level.
Wait. Is that the guy I remember seeing forever ago first person streaming his life for a while?
Unfortunately, this is a common misconception. The government pays for private universities in a number of ways:

1. Private non-profit universities are typically exempt from paying property tax. While this may seem like a reasonable idea, do note that many of these universities also own and operate commercial and retail centers, which complicates the tax exempt benefits. The ability to not pay tax is a direct subsidy from the local government to the university. One common and long standing story that illustrates this is the relationship between Yale and New Haven:

https://www.nhregister.com/colleges/article/Yale-s-tax-exemp...

Yale does pay some property tax, but really not as much as they should. They do actually make voluntary payments and New Haven is vastly better off that they're there, but they're still subsidized by the city and state.

2. The R&D departments at both public and private universities are heavily funded by the federal government. Note, only a fraction of the business that a university conducts relates to teaching students. One of its primary, central duties also involves research. The federal government funds both public and private universities and many private universities receive hundreds of millions dollars in such grants:

https://247wallst.com/special-report/2017/03/22/universities...

3. Pell grants, the GI Bill, and federal students are allowed to be given to private universities. In fact, for profit universities are supposed to limit their total income to only 90% of federal grants and most push right up against this limit. Without these government funds, they could not exist:

https://www.brookings.edu/blog/brown-center-chalkboard/2017/...

More generally, I'm not sure why the grandparent comment is getting as much grief as they are for laying blame on state legislators. The linked article from CBPP is pretty telling and damning. Candidly, the issue is complicated, but the state legislatures consistently decreasing funding the universities has made tuition raises inevitable. If anyone is interested, Pew has a recent article that has a lot of information that details the source of university funding:

https://www.pewtrusts.org/en/research-and-analysis/issue-bri...

There's a lot in there, but one of things they document is a shift from funding universities primarily through state funds to funding them through federal. Federal dollars are not just transferred to the university in the same way that state funds are. The law requires these funds be transferred through things like the GI bill, or Pell grants, or student loans, or some other vessel. Universities get access to these dollars by raising tuition. So, yes, federal student loans are a problem, but turning off that spigot doesn't magically mean the universities will have the money they need to operate. State legislatures should be held accountable for the problem that they helped facilitate.
For ecommerce sites it is so common to want to go from Excel to UTF8 csv that a lot of people use Libre/Open Office to open and save the Excel file. Then you can do safe things like double-quoting all fields, and choosing your encoding. Perhaps more systems should have Excel upload rather than insisting on UTF-8 csvs that the most common spreadsheet software has never been able to produce?
Have there been any times you applied and didn't get a job?

I ask because it is very unlikely an employer will straight up tell you that this was the reason.
Yes. Except in his dream the lyrics were

"Scrambled eggs,
Oh my darling you've got lovely legs..."

Once I learned that my enjoyment of the original was greatly enhanced.
If only we were remotely close to giving everyone equal opportunities. Sadly, we've got a lot of work to do before we're there, and to some it's going to feel very unfair when they start to lose their advantages.
Language as an intellectual tool: From hieroglyphics to APL (1991)
Blame the calculator...'misuse of Microsoft Excel'
FWIW The Snowy Day at #1 is a kids’ book where the protagonist is a positively portrayed black child, which was quite unique and controversial when it was written in 1962. If you grew up long after that era it makes more sense to never have heard of it.
Airplanes are not tracked( as in, they run on tracks) so they have more options as to where they might be. With trains it's far far simpler to position. Being on a collision course should be obvious.

Funny, I'm form Romania too, and CFR is a shining example of mismanagement. I really doubt we can extrapolate a general rule from what is happening with CFR. Precautions and some automated safety systems could surely avoid this.
This makes a lot of sense for deeper sleep where dreams are fragments of thoughts within a barely coherent mind but little sense in REM sleep where people have shown to be aware by doing preestablished eyemovements. There is a lot of indication that people are aware during dreams that occur in REM sleep (eye movement is unrestricted by the brain stem blocking signals so eyes move as if the person is doing things). Point being that if a person is aware and can do tasks and communicate with regular timing then the dream cannot take place at the moment of waking up.
> They absolutely are. In fact, python 3.9 is in the works right now, which has many new evolutions beyond 2.7.

I meant compatible (in the sense that old programs keep running and you can add new stuff to old programs using the new features) evolutions.

> You're arguing that the psf should treat python2 and 3 as different languages.

For practical purposes, they are different languages and the PSF has been treating them as distinct things.

> In their (any my) opinion, this is harmful. It bifurcates python into two incompatible languages. That's bad long term (Perl).

It indeed is bad. I hope that every other programming language community and designer takes a close look at what happened and makes sure never to do a Python 3 analog of their language.

> In other words, what's best for python the language, and what's best for python2 the language are not the same. And for the psf, python is more important.

That's the core problem from the perspective of Python 2 users. The organization that was the steward of the language that they invested in (in the form of writing code in the language) decided not only that a different programming language is more important for the org but that the old language needed to be shut down in order to benefit their new thing.

It's OK for people to get bored with a project and move onto something else, but with the level of usage that Python 2 had and has, it's very problematic for the language steward organization to turn around and seek to shut the language down instead of continuing to evolve it in a way that's respectful of the language users' investment in the language.
The most challenging and important problems to solve in an engineering organisation are rarely technical in nature.
Very cool, amazing this is OSS.
> it would be extremely short sighted to allow third (incompatible) python into the mix

The whole point of Tauthon is that it is compatible with Python 2 (in the direction that old programs work).
The taxonomy of jobs that most people have in their minds is extremely simple (doctor, lawyer, teacher, builder, engineer, window cleaner, garbage collector, astronaut, ...) and is mostly based on a grade-school understanding of what kind of jobs people do.

But the reality is that there are millions of types of jobs, with incredible variety and specialisms, and the real content of a job is rarely captured in a job title.
Holy shit, this.
Perhaps 1984 have become the go-to dystopia because it is not that relevant today. It is not dangerous. If it was, it wouldn't be something you read in school.
Then we must get right of all private law firms. Why should a wealthy person get a better lawyer?
I believe that was the point, phrased in sarcasm. Philosophers move on to the next thing after they hand problems to science.