Better HN
topnewbestaskshowjobs
Log inSign up

bufferoverflow

5,986 karma · joined Nov 7, 2017 (9y ago) · 2,825 submissions

Submissions

comment 4y ago · link · parent

We can clearly observe many things without interacting with them. Most of the universe, for example.

comment 4y ago · link · parent

> https://jsfiddle.net/vbd3fok5/ looks fine to me

No, it doesn't. Here's the screenshot with a line I added:

https://i.imgur.com/6pLiasn.png

> if you insist on ignoring that, https://jsfiddle.net/qpb0d45n/

And now you have blocks of different heights. Which cause other issues.

comment 4y ago · link · parent

> Given all of this, why wouldn't you cheat?

In my state college they had zero tolerance policy. You caught cheating, you're out.

comment 4y ago · link · parent

Here's an example:

https://jsfiddle.net/a3q87ucs/

comment 4y ago · link · parent

I don't think you understand the problem.

Here, try to align these without changing individual p's CSS:

https://jsfiddle.net/a3q87ucs/

You see how the second text is lower. That has to do with internal font settings that CSS has no control of. Not yet at least.

comment 4y ago · link · parent

> My recommendation is not to implement any design that can’t handle the difference

I'm not going to tell my employer I'm not implementing the design, when I can solve the problem, though in an ugly way.

> if you’re using a webfont and measure before it loads

That's not a problem. You can check if the font has loaded.

https://stackoverflow.com/questions/5680013/how-to-be-notifi...

comment 4y ago · link · parent

ascent-override / descent-override isn't supported by Safari. Which is half of my problem.

We have Mac users using Safari / Chrome / FF, and we have Win users using Chrome / FF / Edge.

comment 4y ago · link · parent

I don't see how flexbox solves this problem. Just because you vertically center text, doesn't mean that the visible text is actually centered. It depends on the font.

comment 4y ago · link · parent

It's not even about being pixel perfect. I can't vertically align text with an image. If I align it with one font, the other one is misaligned. I need something like media query for fonts.

comment 4y ago · link · parent

I'm actually dealing with the massive font differences that break the designs, and I don't know how to solve it. The designer specced the fonts that are available on different OSes. Something like font-family: X, Y, sans-serif;.

The problem is, X and Y have different line heights and different widths. And there's no CSS / media query way to detect which font is available.

So far I'm leaning towards a very ugly solution: rendering a test string into a DIV, measuring it, and then applying the correct class to the parent element.

comment 4y ago · link · parent

Redis has optional durability

https://redis.io/docs/manual/persistence/

comment 4y ago · link · parent

The numbers look very good actually.

I don't care if it's a research project. If it doesn't crash, doesn't corrupt data, and delivers performance, it's useful.

I'd want to see performance against Redis and KeyDB.

comment 4y ago · link · parent

You call it "high performance" and provide no benchmarks?

comment 4y ago · link · parent

Go right ahead, spend $5-50K of your own money and let us use it for free.

comment 4y ago · link · parent

> If a person needs 5L/day for survival (I am making this up), then you’d need to dry out 5000 / 2.6 = 1,923L of air each day

You made a unit conversion mistake there. It's 1923 cubic meters, not liters.

comment 4y ago · link · parent

How much would it cost to train something like this? Is there even a good dataset for it?

comment 4y ago · link · parent

HIV is nowhere near the coronavirus in transmissibility. It's been around for decades, and even now only around 1-2% of the population got it, mostly drug addicts who shared needles and people who have unprotected sex (mostly anal) with strangers.

comment 4y ago · link · parent

So basically you either have to cough into someone's face, or kiss them, or get bitten, or have sex with them to transmit the virus.

Stop worrying. This isn't another coronavirus-level pandemic.

comment 4y ago · link · parent

It's probably not. Exchange hot and cold wallets hold insane amounts, but most of that money doesn't belong to them, it's their clients'.

comment 4y ago · link · parent

There are software engineers that make much more

https://techcrunch.com/2010/11/11/google-offers-staff-engine...

comment 4y ago · link · parent

There's Folding Coin (FLDC)

https://foldingcoin.net/

But it never took off.

comment 4y ago · link · parent

I don't see how it's Nvidia's job to track how their products are used exactly.

comment 4y ago · link · parent

Eqaulity of outcome is a stupid target. Different people have different productivity. There are people who don't want to work at all. There are people who want to work 15 hours a day. There are people who produce 10x of work in the same time span. There are people with rare and hard to learn skills. I will never be convinced that a neurosurgeon should be paid the same as a janitor high school dropout. While both cleaning and neurosurgery are important jobs, they are not of the same value to the society.

comment 4y ago · link · parent

When you get paid per word. And indirectly search engines incentivize longer texts with more keywords.

comment 4y ago · link · parent

I found Italian people very friendly, and most of them would try to help me, a foreigner. Most did struggle financially. Most were unhappy with the tax man. Imagine making around the US minimum wage and constantly getting harassed by the IRS.

comment 4y ago · link · parent

Ah, PPP, so these are adjusted numbers, not actual.

I am talking about young professionals, they make a lot more money than that in Norway, Switzerland, USA. We know a Yoga teacher in Switzerland who makes 150 eur/hr, for example.

comment 4y ago · link · parent

Is it another "tax the rich" scheme, where the rich take their money elsewhere and your country's businesses are left without investors?

It's easy to design a tax system, it's hard to predict its long-term effects.

comment 4y ago · link · parent

You can get a 50 pack of razors for $20 on amazon.

Or a 100 pack of razor blades for $6.19

comment 4y ago · link · parent

I lived in Italy for many years. It's my impression that Italy is losing its young population due to incredibly low salaries. Young professionals see 10x-20x salaries in the US or 5x salaries in Germany, Switzerland, Norway. And they make one obvious choice.

And your taxes and your version of IRS are just insane. We have a relative, a single mother, who is making 15K EUR a year, and they are going after her because her accountant used a wrong category when she paid taxes 5 years ago, so now she has to pay 10K eur fine for that year and 5K for the next (basically a whole year of income).

Another relative is a medical professional making 88K EUR in private practice, but he pays 55% in income taxes.

Another friend was making 14K EUR per year coding C#. He moved to the US since, now making 10x of that.

It's absolutely insane. I have zero surprise young people are fleeing.

comment 4y ago · link · parent

I'm surprised Google didn't fuzz Google Docs.
1
333435
95