skysight-inc/HackerNews huggingface dataset:
Ask HN: What are the best books on automated testing?
In my company, we already have Jenkins pipelines setup and API testing with Cucumber. However, I'd like to read books on automated tests. Ideally, the book should include the following topics:

- Description of all testing levels (unit, integration, acceptance, system, etc)

- What to test

- Best practices
Does anyone know how it compares to mypy? Mypy is very slow in my experience, would love a more performant option.
>Mostly it comes up when sites use inline layout as a poor man's flexbox

That's what we get when for 20 years W3C and co ignore layout, and instead have designers (who don't know better) use the styling mechanism of CSS and floats as a layout engine.

The only sane layout mechanism for most of those years were tables, which, even though they weren't built for general purpose page layout, they at least had innate layout support for their contents that could be abused.

That was abuse, but far less abuse than using floats for layout, the most idiotic "best practice" the web has seen (and promoted with smugness from ignorant designers to boot).

At least now we have Flex and Grids. It only took 20 years...
Single page apps and accessibility are completely unrelated concepts. With any app, single page or otherwise, you must take a11y into consideration when designing and coding the site. Again, nothing really specific to SPAs here. What you’re complaining about here are designers and developers that don’t strongly prioritize (or understand) UX and a11y. I’ve seen plenty of more traditional multi page/server driven apps with terrible UX and no concern for accessibility. Many, oh so many of those, in fact. And I’ve also seen plenty of SPAs with excellent care for UX and a11y. So, you seem to have an axe to grind here, as nothing you’ve said here is really specific to SPAs. As far as disabling JS... well, I suppose for a static site or one with a simple form that’s certainly something to consider. But otherwise: it’s 2019. Let’s not hold the all web apps back just because some feel the need to block JS. Responsible developers and designers: that’s the goal.
For a stable piece of software the build script(s) somehow turn into a change hotspot. You might have not touched the core of the software in five years, but guess what, every couple months some change to the build script is necessary.
The researcher claimed to have observed declining energy use for years before symptoms occurred, showing decreasing energy consumption leading to cell death regardless of fuel availability, finally leading to Alzheimer’s symptoms.

Provision of ketones alone reversed this energy starvation. The PET scan literally lit up like a Christmas tree — turned from all blue/black to red!

It was near the end of the presentation...

If neural cellular degeneration is the target of any Alzheimer’s management strategy, wouldn’t dramatic energy consumption declines over decades before cell death, and reversal of these declines after a short treatment be of specific interest?
A land value tax should never brought up as it has wide support among economists for precisely the purpose of improving land use necessary to make building more housing most productive.

Maybe it takes a huge amount of luxery housing before another type gets "naturally" made, but with good land use at least the rest isn't stuck with crippling commutes.

If we had good land use, we could probably get away with saturating the luxery housing market and not sticking everyone else with terrible commutes.
Kubernetes Learning Resources
How fast can you add 2 numbers?;)
That was a bit of a mess. Technically, no carrier at the time had a "real" 4G network, according to the ITU- only LTE-Advanced and WiMAX 2 met their definition.

Since the ITU had declared that Sprint's WiMAX network and Verizon's LTE network weren't real 4G, T-Mobile decided that they could call their (just-as-fast-as-early-LTE-networks) HSPA+ network 4G too, and then AT&T was almost forced to follow suit because T-Mobile was advertising how their 4G network was so much bigger than everyone else's.
I'm not entirely sure what to make of this post, but the link to Werner's Nomenclature site was very interesting.
MySavings.Fund – Track your savings in the best way possible
Video game playing has at least one notable crossover to real-life in the case of race car driving.
https://en.wikipedia.org/wiki/Jann_Mardenborough
I just tried this with my birthday and all the results were about the challenge.
> The claim that there are no indictments involving collusion is false.

As there is no actual crime of collusion for which a person can be indicted, this is a subjective viewpoint.
> The interviews often include tasks that traditional candidates would find boring and lots of repetition.

Intuitively this sounds like many programming tasks (I still like programming, but admit that many tasks in programming are quite repetitive) - thus good questions for neurotypical candidates, too.
Don't know the details, but maybe at some point, it could have paid to ask some experienced pilots and UI specialists what they thought would be best.
Ha ha, no I've paid a variety of taxes: income, professional, capital gains... I've been an employee and now a startup founder. I also help others with taxes.

The script does have a field for EMPLOYEE_TAX_DEDUCTION. It defaults to 1.6 lac, assuming 1.5 lac for 80C and 10K for the rest (like medical insurance under 80D or whatever). But you can change it to whatever number you want to include other exemptions like HRA and LTA.

I think some things like PF and HRA are calculated based on basic income, but I was able to approximate the calculation without bringing basic income into account. Salary for the purpose of PF is limited to 15K anyway.

Again, enhancements welcome.
> the amount of housing (and thus people) is so high that the place becomes miserable

What a bunch of nonsense.
From the readme of Pytype, it's doing type inference instead of type checking. Although I don't know how accurate it is, type inference is much harder than type checking, especially on a language designed with dynamic typing in mind
Sounds so very strange. Entitlement while asking for money...in tech, beggers CAN be choosers then?
Some things are indeed objective, and the author has failed utterly in pointing out any of the building's objective flaws.

Meanwhile, other things are inherently subjective, which means that by definition, there is no right or wrong answer. Treating an architect with contempt for purely subjective reasons, is not a mark of a "great writer" in any way.
> You're still 30k CHF ahead in Zürich. I don't see how these salaries are comparable.

How? Because everything costs twice as much in Zurich.

You can afford a way more with 50k / year in Berlin than with 80k / year in Zurich.
Maybe your ad blocker is misconfigured, an ad was loaded and requested that permission?
I suppose. Though you might expect a GNU editor to follow Emacs for this behavior.
I opened up port 22 once so that it connected (without crypto) and issued the phrase,

YOU ARE STANDING AT THE END OF A ROAD BEFORE A SMALL BRICK BUILDING.
AROUND YOU IS A FOREST. A SMALL STREAM FLOWS OUT OF THE BUILDING AND
DOWN A GULLY.

>

and if they typed in something it would continue to play the game. After hundreds of thousands of automated SSH worm probes over several months, an actual human did connect and play the game for a few minutes! But even this triumph was short lived, they did not even play it to the end to see if something interesting might be unlocked (it would have been an invitation to contact my email address).
https://www.cnbc.com/2019/03/08/43-percent-of-california-res...

“43% of Californians say they can’t afford to live there”

Also, what’s the point of your footnote formatting when your link immediately follows?
Mathematics may be innately about computation, but hacking is in large part about social constructs. I wouldn't be at all surprised if the same mental tendency that causes one to appreciate the beauty and elegance of pure mathematics, also causes one to flee in horror away from the computing edifice we've built so far.
You can use docker for this
Public-Private Partnerships Are Killing Us
Is it possible that you get a wider berth with regards to terms due to who you are and what you do?

Not a snark... genuine question.
Ask HN: Lesser known resources for depression and self esteem
I'm really struggling with depression and my self esteem is virtually nonexistent. I've been in therapy and on various antidepressants for over a year, but things aren't getting much better. Given the trajectory of my thoughts I'm worried that one day soon ideation will become reality and I'd rather not do that to my loved ones.

So I'm looking for some additional resources to help with depression or self esteem or both. Has anyone tried anything besides therapy/antidepressants that has worked?
Only takes a few reports like this one, where a 10 y/o and 6 y/o are referred to CPS a half mile from home, for parents to keep kids in.

https://www.nbcconnecticut.com/news/national-international/M...
The author says he doesn’t look at the mirror or the camera screen when backing up and only listens to proximity sensor beeps. Is this something people do really? I am amazed.
What if the only value they got was to look at the shit show and then not do that? That’s just as reliant on the stolen data/information and I would think just as illegal.
I think it’s likely attributable to financial returns of angels.

One of my business school professors was a prolific angel investor. I asked him about his returns and he laughed. He said it wasn’t about the returns - by the time he cashed out, he was so diluted (or enough failed) that the ROI was far less than an index fund.

What it did give him was social capital - to say he was an angel in a famous unicorn was immensely valuable to him.

Unless you’re already rich, social capital doesn’t pay the bills.
What kind of net worth should you have before considering angel investing?
Is pyright's dependency on node really that bad? Many projects need to have Node anyway, and/or use Docker or another tool to dictate which version of Python they're using.
Yup same here. It's not any slower IMO.
Professors Want to Change Their Teaching but Don’t. One University Found Out Why
Yeah, but I wonder about the over head. Why do you want to use a framework with like 200mb over head for even the smallest thing?

That does not sound "micro" to me..
Have you tried PyRight? It claims to be much better than mypy.
I'm sure nano/pico and the like are nice but to me there's two things a terminal editor can try to solve for: being nice, or bring ubiquitous. The nicest ones (say emacs) are way nicer than nano in terms of features, extensibility, etc. Now for being ubiquitous, nothing beats vi to date. I can't tell what nano is aiming for?

EDIT

I guess I had assumed that vi/vim was significantly more widespread than nano. Maybe that's an outdated assumption? I feel like I've come across a few instances where vi has been the only choice...
I found the same in e-commerce. We manage orders, products, delivery providers, shipments in and out, warehouse stuff, etc.

It’s difficult to design, and there’s very little good information around. Open source code based like Magento are impenetrable with a ton of tech debt, or they are way too simplified for our purposes.
I tried switching to Kitty last year, but then it stopped working properly with the OSX 10.14 release. It turns out this was a known issue from the beta, but the author decided not to do anything about it until the release [1]. I can't rely on a terminal that's maintained like that.

[1] https://github.com/kovidgoyal/kitty/issues/887#issuecomment-...
That CEO sounds horrible. Don’t let a bad apple ruin angel investing for you.
Cameras today. Tomorrow they will remove the mirrors. Next to go are rear windows. Better fuel economy and cheaper production costs. It is a conspiracy, a public one.
To my eyes, it’s not quite clear if these are free or not. Royalty free in some cases might mean pay one time and then not any more for future applications. Are they free?
Yeah, the daemon is way better for sure.
Turing-completeness is – as always – a red herring.

Sure, I can technically use Assembler to write a modern Windows program, but that's no argument against high-level languages.
You're tautologically right, but not with the colloquial definition of "conservative" that gets used politically. So for your comment to mean anything, you have to make a larger point.

(I'd argue that the colloquial "branding" definitions are a part of the problem. eg "drain the swamp" isn't conservative rhetoric)
How to Make Nukadoko (Fermented Rice Bran Bed) for Pickling (2014)
> Seattle Angle Conference

So they teach you how to be one of those lousy angels who shoot angles all the time?

/s
But that seems to support the correlation between marketing spend and smoking, since marketing is banned in the US but legal elsewhere right?
First of all, the website looks good and the illustrations (final product) are nice, but a couple of things put me off a bit:

First, the chatbot at the bottom right. I know it's common to many websites, and perhaps there are stats that show they help conversion, but I find it very annoying. If I need something, I can click on the chat button: you don't need to already start a chat with me and use up real estate for a chat that I haven't requested, and require 2 clicks from me to close it (the first click just opens up a bigger overlay, and the second click minimizes it to the state I wanted it to be to begin with). Also I know that it's an automated greeting and nothing personal, so it feels like an ad, disguised as a personal interaction.

Second, any business proposition where I am offered "unlimited" anything where I know that real human work (not automated) is required, or that limited resources (bandwidth, storage, etc) will have to be shared in order to satisfy my needs tells me that it is not sustainable from the provider side (business-wise) and that the only way it will actually work is if the service to me gets degraded so that it can handle the load from all the other customers.

Perhaps consider the level of service that you can really offer and state it clearly in the plans. If I see "10 requests" monthly it will signal to me that you've done your homework to figure out what the right number is so that your business can support me appropriately at that level, but if you say you can handle an unlimited amount of work from me for a fixed fee, it gives me the feeling that you haven't done your homework, and that our relationship is going to be difficult at some point.

Another vague commitment is to "get an update on your task/order within one business day" - which I can interpret, if my experience with other services serves, that I will get an email with a confused one liner every day until we finally converge on what I really need after half a dozen emails that used up 6 days of "service". I have dealt with parties that offered 24h turnaround support/updates/modifications only to find out that their response, perhaps due to workload stress, was not helpful and required another interaction from me: it creates an artificial throttling system that is most annoying to customers that want stuff to get done.

Solutions?

Consider a pay-per-use model. You can always do volume discounts and even a fixed monthly fee to access a discounted price per if you want to address bigger customers. You can also provide N free interactions for new customers if you want to showcase your work.

What I as customer want is to see a business model where your incentives and my incentives are aligned to get each piece of work out of the pipeline as soon as possible. This should be a common goal for both parties: you want the job to be done so you can make money on another one, and I want the job to be done for obvious reasons. Any business interaction where I will be in a position of needing to push at a throttled rate tells me the incentives to get my work done aren't shared, and that worries me.

Good luck!
> the result is the same as under a totalitarian government but without the threats.

If the totalitarian government doesn't like your movie about their troops blowing up aliens, they can execute you. Not exactly the same results, IMHO.
>They benefit their customers

While making it a nuisance for people actually living in the city. I live in a condo in downtown Toronto, and every tenant in my building unanimously hates airbnb residents. There are weekends when people who airbnb and come for the sole reason to party throw liquor bottles and garbage in the lobby, destroy elevator buttons because they can't access their floor with the fob, puke in the hallway/elevator when they come back from a night out at 3am. The list goes on. While it definitely does benefit people who actually want to travel and are respectful of the building, not everyone is like that.

>their hosts (many of whom keep their finances afloat through AirBnB revenue, or have been able to enjoy life-changing increases in their standard of living

Agreed, but this is when Airbnb is actually used how it is supposed to. Either the host lists it as a short term rental for a one off weekend, or a spare bedroom in their apartment. What ends up happening for a majority of units is, that a lot of rich people end up 1+xth property just for the sole reason of Airbnbing it full time and thus decreasing the supply of long term rental units for people in the city. You know what this leads to.

If airbnb actually cared, they would have more checks before a host can sign up, work the city to give them names of owners who list their unit for more than allowed days (a lot of European cities actually allow 90 days of rental or something similar), work with condo-boards to ban the building if it's against the building policy, etc.
I often reach for

emacs -nw -Q

It boots up quickly and the basic editing defaults are all there. Has the advantage of being everywhere Emacs already is as well
Nano is somewhat ubiquitous in that it's the default editor on many Linux distros, including both Debian and Ubuntu. I often run "crontab -e" or "git commit" and end up in nano because I forgot to set $EDITOR on a new Linux box.

Edit: I suspect it's the default because it launches with visible instructions on how to exit. Launching Vim or Emacs strands a lot of new users.
Trump and Conscience in the Age of Demagogues
Vi is ubiquitous. Vim is not.
I wonder if this is more accurate for what people are pursuing as businesses as well where the up front costs are just higher. Trying to start a Reddit or Facebook class site just needs a working server and some basics, where as a lot of the gig economy ideas/things-as-a-service ideas like Uber or Blue Apron need more up front capital that can't be solved by just trading sweat for marketing/growth. Not because that this is the best business idea but I can imagine a lot of proposals are trying to chase similar things. I'm not saying that those who may be considered copycats are wrong just that their upfront costs might be higher. A business starting out that is similar to an Uber or Blue Apron kills its growth if it has no money.

I have also been hearing about people that are chasing WeWork as well so there is an upfront cost of facility that is almost explicitly what-not-to-do from the prior generation startup handbook: don't have an office. If an office is the product, then what? You do need a bit more money.

It definitely feels like the last few years of startups are chasing very different goals that an influx of $25k (as suggested here) isn't going to help enough to solve the overhead of getting that $25k.
Mate is such a clean and usable DE - makes me really wonder what happened with GNOME 3
Cloudinary is nice, but it gets expensive really fast on a high traffic site that's image heavy and bandwidth optimized. For example, a single image might have 5-6 versions on top of the original -- low quality thumbnail, high quality thumbnail, default, default 2x retina, default 3x retina. Then activate their webp service and perhaps offer another image aspect ratio. Each is a conversion that counts against your quota. Now you've got 15+ (con)versions and you're shelling out hundreds of dollars a month.
>psycho-societal immune response

I like this term, I think it conceptualizes some of my looser thoughts about how we ought to respond to influences in life.

The thought process I see acted out by our institutions often looks like this: Declaring Foo is a bad influence that causes Bar, therefore we should engage in social engineering and propaganda against foo and/or bar.

Forget that the causal relationship between foo and bar can be tenuous, or that bar's badness is often motivated reasoning. The entire process just leaves people worse off to navigate the influences in their life.

Sorta related anecdote: When I was a child we had an anti-drug program at school. They taught us some of the ways "bad guys" would pressure us into doing drugs or drinking. I wasn't the only one to notice it was the exact same way parents, teachers and the media tell us to do the "good" things. ..... That put a resentful streak in my life that still exists to this day.
QUIC will also usher in a new era of volumetric DDoS attacks. No longer can content providers use upstream ACLs to block udp garbage and fragments. The only option will be to use Fastly, AWS, or Cloudflare to ride out attacks.

QUIC is the tool to bring about the next phase of Internet centralization by the mega players.
Where Boeing’s 737 Max Planes Go When They’re Grounded
Wow, thanks for sharing that anecdote. That's the thing - many C64 musicians were also great programmers, especially to get the impressive sounds they wanted out of the SID.

Quote "If you wanted to be a videogame musician in the early 1980s, having a fantastic tune and even a Royal College of Music diploma meant nothing without some lateral thinking and a significant amount of programming skills, because the SID chip needed special software routines to turn its potential into sound. You had to know how to compose both melodies and machine code."

https://theconversation.com/the-sound-of-sid-35-years-of-chi...
I've found that the worst part of the hills in SF are the other drivers who get _RIGHT_ on your bumper. This is especially awkward in my truck which is a manual without a handbreak and a bumper that is high enough that sometimes cars will pull slightly under it.

When I'm stopped on a steep hill and see someone coming up behind me I've tried rolling back a little to discourage getting too close only to find (multiple times) that the driver just lays on the horn and then proceeds to slide right up to my bumper. ... (don't even get me started on all the bay area drivers that drive around at night with their headlights off and are completely unresponsive to light-flashing, ...)

On some roads I've adopted a practice of just going up the hill slowly enough when there is traffic in front of me so that I'm able to stop at the intersection where the hill has flattened out, rather than one car back where it's still really steep and then it doesn't matter if someone wants to wear my bumper as a mustache.