Hacker Newsnew | past | comments | ask | show | jobs | submit | bennettfeely's commentslogin

I made something similar a few months ago, a CSS pie chart generator

https://bennettfeely.com/csspiechart/


I'm stunned by the image showing the difference between original and what Google apparently considers "high quality"


I think that image is faked. The caption says the difference will exist, but "not by this much". It's a fake.


My guess here is that the image isn't fake per se, but it's missing the context.

I'm guessing the "original" is much higher resolution than 16MP. Google Photos' "high quality" being always limited to 16MP, my guess is that the comparison shot is between what I'm guessing at least 60MP or even 100MP image vs (downsampled) 16MP.

For more sane comparison of what "high quality" does, I find:

https://www.phonearena.com/news/Google-Photos-High-quality-v...

i.e. unless you have a camera with substantially higher resolution than 16MP or you're a professional photograph (or equivalent amateur who cares about subtle pixel level details), high quality is good enough for all casual photographers , which is basically 99% of us including myself.


I'm curious about the actual percentage of US adults who have ever used a delivery service (e.g. Uber Eats). I imagine it's far lower than you think.


The "Avoiding animation pollution" section has a few minor typos,

`transition: * 0.6s ease` won't work anyway, `*` is a selector, they're looking for a value of `all`. Omitting the transition property all together (i.e. `transition: 1s`) is what people often do but this is bad practice for the reasons they stated.

Also, for the CSS examples I believe they mean to set `.animated:hover` to `opacity: 1;` not 0.

I like the idea of using an SVG mask to make a transparent background on the jpg.


I'd add the NWS to that. I don't know of a better place to get weather information and forecasts than weather.gov. Perhaps it's just a lack of ads on the website compared to every other weather site.


And maybe in a few years they'll find a way to shove ads in your face while stopped at a light.


Oh yes, combined with location data, you have a great ad platform there. "For Nachos Supreme, turn right!"


Self driving cars. They'll turn right all by themselves to take you on a tour of advertisers. Mandatory expenditure before they'll take you to your destination. Pay more to turn it off...


Paired with artificial odors coming out of the air vents to whet your appetite.


This sounds so stupid that I think it will come. You have it in taxi's already so why not expand?


Waze already does this -- it started with ads for food places nearby/on route and a "drive" button, now it's all categories. Sounds likely that some manufacturer will do this in some capacity. Maybe they'll market it as "recommended for you".


Waze is a mobile phone app that I get access to and maintenance of for free. If manufacturers think they'll get the same reaction from me on a car that I paid $40,000 for, they're in for a nasty surprise.


There was a time when people thought like that about their $10k Samsung 8K TV ... you know, the one that now shoves ads into their face :(


You're right, I didn't mean to justify this, just that it's been done before in a fitting way. I assume they'll borrow that implementation at some point.


This doesn't actually work, the value attribute of the input doesn't change as a user types something.

With that said, I still think there is a a big discovery yet to be made with browsers leaking users' history via the :visited selector. Only a few CSS properties can be set with it (all related to color). But if there was a way to detect the color difference or timing of the painting that would be a big deal.

Possibilities might be with mix-blend-mode, @property, or applying "slow" css properties like a blurry text-shadow dozens of times. I've played around with this a little but haven't found a crack yet.


How about an extremely slow to render zalgo text, switching between opacity 0 and 1 depending on visited?


Nice idea. I just tried it - looks like alpha is ignored for colors specified in ::visited and the alpha of the non-visited color is always used.


well then, use white-on-white vs black-on-white, with subpixel rendering enabled and zalgo text this should still have a measurable performance impact


It would work however on a password change form though which might write out on page load to a password input for comparison: [old] [new] [retype new] Sometimes old is prefilled with [****] for trivial JS overlap checks.


I’m confused. Are you saying a website might actually spit out your current password or what you had just entered when attempting to change it? The former should never, ever be the case; the latter shouldn’t be the case, although it does happen from time to time.


Attack scenario would be a website loading CSS that is controllable by someone malicious. This could be due to ad code or custom themes for part of the site. That CSS would include selectors that would trigger different remote image requests for different partial matches on the value of the input. Based upon what remote URLs were triggered, one could reconstruct all or part of a password.

But I get your point. The website should not know the plaintext of your password for an overlap check unless their security practices are really bad. And if they are that bad, hopefully it is a throwaway password anyway. A duplicate check could still be done with hashes, but partial hash leaks are NBD.

Personally, I've had this happen though on password change prompts, which makes me think that the website is storing the value I just entered temporarily in the session. That's still bad even if it isn't being persisted beyond that page post though.


They could store the hashes of all the prefixes of the password and send them to the client. It's almost as bad as sending the password, because it's easy to brute force the cleartext.


Please don't be evil. I use the visited feature every single day, and I would be pissed if browsers had to disable it because some jagoff hacked it.


Could this mean it's a bad idea to drink Coke from a styrofoam cup?


Only if you plan to leave the coke in there for a week beforehand.


Coke doesn't contain acetone or alkanes like in gasoline so you will be fine. You should be more worried about your teeth and blood sugar.


Don't these cups have some kind of inner coating?


They do not. You are thinking of paper cups with a plastic or wax coating.


They used to have a wax coating, in just the past decade that has disappeared almost entirely and any recently manufactured cups have a polyethylene (not styrene) lining. Many cups made for hot drinks have polystyrene on the outside, some are multi-layer paper and some have a cardboard sleeve.


It's generally a bad idea to drink coke, or to drink from a styrofoam cup.


>It's generally a bad idea to drink coke

Not really, it's not worse compared to many other things people consume.


Some people I know lecture me about drinking too much soda while their kid chugs cup after cup of orange/apple/grape juice.

https://www.forbes.com/sites/nancyhuehnergarth/2015/12/14/wa....


> Not really, it's not worse compared to many other things people consume.

Yes really. Other things being worse is whataboutism to derail from the issue.

Coke, specifically, from can bottle. If you drink the brown sugar suspension that is fountain soda, you are just marching toward diabetes. The chemistry is unique between these products.


Coke isn't limited to sugary coke.


> Could this mean it's a bad idea to drink Coke from a styrofoam cup?

> It's generally a bad idea to drink coke

All coke colas (and most other products) are insanely high in fructose. The distinction to "drinking coke" is that it's a coke carbonated cola product. The conversation isn't nuanced that a distinction is being made.


>All coke colas (and most other products) are insanely high in fructose

by "Coke isn't limited to sugary coke.", I'm guessing the parent commenter was talking about the sugar free variants eg. diet coke or coke zero.


Yep.


Uhhh no, diet coke and the various kinds of coke zero are NOT high in fructose.


Why is this downvoted. I'm quite sure that many soft drinks like "coke no sugar" use aspartame instead.


If you look at my posts, I seem to be on the "downvoted every post list" from a few unhappy members as I frequently find my posts instantly downvoted for no reasons...


Most fruit juices sold have very similar amounts of sugar to non-diet sodas.


The good news is that US nuclear weapon silos are stuck with 1970s technology.

https://slate.com/technology/2014/04/huge-floppy-disks-and-o...


This is no longer the case, they’ve since upgraded: https://www.nytimes.com/2019/10/24/us/nuclear-weapons-floppy...


Everyone calm down:

It was just a kid trying to hack into a video game company. He accidentally started a war simulation. The US had recently turned over control of its entire nuclear arsenal to an AI because humans resisted launching weapons that would kill millions.

Anyway, the kid accidentally started a war simulation and now the AI wants to nuke everyone. Don’t worry though, as soon as the AI plays itself in tic-tac-toe, it will realize that peace is the only way.

If you aren’t old enough to understand this, you need to catch up on your 80s nerd movies. :)


How about a nice game of chess?


Reliable, boring old tech to the rescue.


> Reliable, boring old tech to the rescue.

Reliable is not a word that comes to mind when recalling floppy disks of my youth.


Reliable no, but difficult to access via a REST API yes


A Kubernetes cluster of nuclear weapons. Want mutually assured destruction? Simply deploy a helm chart!


Finally, Terraform and CloudFormation can truly live up to their names!


Have you heard of Amazon’s new Chaos Engineering as a service?


Worked for Galactica


No networks on the old mAn's ship!


Which is probably the reason they were not compromised.


You mean either launch password 1111 or 1234.


It's long past time for executives of these companies and others to be in prison.

Someone can spend years in prison for possession of one of these videos but the people who run a distribution company for them are free.


Won't somebody think of the children!


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: