514 karma · joined October 2, 2019
But I don't see credits anywhere.
I would love to see stats on the use cases. Personally I have never used canvas other than to getImageData in a loop!
If I only needed to draw primitives, SVG is often a better choice.
If I needed something GPU accelerated, I would switch to webgl and write shaders.
So the only thing left 2D canvas is good for is to get the pixel data to do image processing on (e.g., flood fill connected components, color histograms, etc).
The more elegant way to do optimistic UI would be to use CRDT or OT.
Usually syncing is talked about in the context of syncing multiple clients. Here, we just want to sync the cached offline state with the server state. This allows you to make arbitrary changes to your offline state even if your server has conflicting changes incoming, it will all be eventually consistent in the end.
I would love to see a blog post about that! (the only way I know how to implement it cleanly is using pouchdb)
In particular right now I am trying to add live reloading to my App Engine Standard app but Standard doesn't support long lived connections (so no websockets) and App Engine Flexible seems like it will be pricy.
I think I can set up a single separate websocket instance which is only responsible for doing listen/notify on postgres and telling the client when it's time to refetch from the main webserver again.
Does this sound approximately workable? Will I actually be able to reach the connection numbers like in this article?
I think just out/err has been proven by history but that couldn't have been obvious to the original designers?
I can't help but think that if a lowly dev like me were to report the issue the "won't fix" would've stuck.
I think I have heard of something similar but it didn’t seem to have caught on in any major web frameworks that I know of (strongly typed json API server which generates runtime validators on frontend and backend). Even then most people want control over the presentation of the form and wouldn’t want to create fields from the schema (e.g. a number type is sometimes a slider and sometimes a drop down)
Human rights violation by china are well documented. You can look them up yourself assuming you have access to an uncensored internet. I cited disappearing people as the example that I thought was most relevant for the extradition bill.
The triad attacks are definitely real (we are in the age of smartphones after all): https://www.bbc.com/news/world-asia-china-49071502
I don't think you realize how much the difference in cultural values is making it hard for us to communicate here. Westerners consider what you call "violence and destruction" to be a fair price to pay to have rights guaranteed. Fighting is necessarily ugly but shining laser in eyes is laughably tamed compared to the lengths democratic societies have historically gone to protect their freedoms.
I do understand that some people just want to go on with their daily lives and ignore the atrocities going on in the background as long as it doesn't happen to them. I am not even arguing that's necessarily wrong either, just very different from western thought.
I got phone calls from google cloud platform even though I am certain I didn't give them my number. They even managed to find my real name even though the only place I used it was for the payment method in the billing account, with a fake name on the google account. This is way too much information to give to their internal sales reps.
Between harmony and human rights, it's absolutely clear to a westerner which one is more important.
From your tone, it is also absolutely clear which one you would choose.
> If anything I said is untrue, please correct me
It's possible to only say true things and still be biased. This is probably the most common way of spinning a story for "fake news". Some major events I would definitely include are:
- The 2015 Causeway bay disappearances which justified the fear of extradition: https://en.wikipedia.org/wiki/Causeway_Bay_Books_disappearan...
- Carrie Lam doesn't actually have autonomy and needs confirmation from beijing: https://www.youtube.com/watch?v=IOft2Y6mH_g
- Escalation of force, hiring triads to attack citizens, blinding journalist with rubber bullets, shooting live ammo at students in the chest, etc etc.
There are a lot more I can add but halfway through I realize the details don't really matter. The difference in cultural values will make the interpretation of these events irreconcilable anyway.
To an individualist, the only fact that matters is that at least 2 million in a city of 8 million want the right to their own destiny. To a collectivist, the only fact that matters is that the government is building a more harmonious society so the ends justify any means.
Close contact and narcissism of small differences means fighting will naturally ensue.
For example the statement that "You should wipe your butt standing up" (or sitting down). Neither side knew the other group exists, and once they do they will automatically start ridiculing each other: you're doing it wrong, weren't you raised properly, etc.
A more serious recent example is "feelings matter in open source". Coworkers you previously respected can instantly become enemies because you didn't realize they were monsters.
Unlike the short story, I think these scissors are somewhat healthy. I have faith that people are drawn to controversy because deep down they want to resolve the dissonance. So eventually one side will win and the fighting will stop.
Low maintenance simply means they can afford to give a few months to shut down a service rather than the next day.
Exe is exactly what I think of when I think of bitrot though. None of the games from my childhood can run on a modern OS.
If you're running js or python etc, even if the interpreters are no longer widely available in the future, people using your code can still try to port it themselves (instead of demanding that you support them throughout the eons).
Otherwise this is definitely the way to go. Nothing beats static files that you can just cp into a bucket.
Not trying to defend either of them of course. But just for the record books we would should have a saner way of counting.
If you're going to attribute deaths due to lack of foresight then the inventor of cars probably have one of the highest kill counts. Or Genghis Khan for fathering such a large population of mortals who eventually needs to die.
Police will show up to arrest you just for posting comments online: https://www.youtube.com/watch?v=cCOAbkTs_a4
Another example is Reddit, where a good chunk of their content is just text memes overlaid on images. For compliance, would you force people to describe their images with an alt text before submission?
The better solution would be to do what Facebook does and have builtin tools that will annotate a OCR/description with ML or crowdsourcing. In an ideal world these tools would be available to everyone with no extra work.
Don't settle for making the blind wade through a pile of HTML and call that accessible. It would be a travesty if it became law to use alt tags, because that is so far from the best we can do. Don't lock the world into dead technologies.
Screen readers that are limited to structured inputs can't be the end-all final solution right? It would be shortsighted to set this tech in stone with legal precedents. Do we seriously want to require every blind person to be fluent in reading html/React as the default way to consume sites?
We should be trying to improve the tech so they can consume the world just like sighted people. There are already apps that can use computer vision to caption and describe images. It can even connect you with real people if the AI sucks.
I think pouring investments into those technologies might be cheaper relative to the amount of work added to the industry as a whole.
OTOH the amount of "information" needed to perfectly simulate a cell is probably unbounded. Just a corollary of the fact that we currently don't know how to perfectly simulate reality. Even a single "real" number can take up infinite space.
But SVG can embed javascript which can lead to XSS: https://hackerone.com/reports/148853
So no, you'd would be completely unqualified. You would however gain a deep understanding that might help you come up with novel new techniques for solving large scale problems.
Basically you write a renderer for some data and have a constraint solver (just backprop I think for g9) to solve for the best data that will render something that fits the user input.
There's no way to make the UX work out for images that are only similar. Would be pretty wild to upload a picture of myself just to see a picture of my twin used instead.
But I do wonder if it's possible to deduplicate different resolutions of an image that only differ in upscaling/downscaling algorithm and compression level used (thereby solving the jpeg erosion problem: https://xkcd.com/1683/)
Even when you run out of credits, all cloud providers have a pretty generous free tier.
For example see haveibeenpwn.com's cost breakdown for running a hugely popular api for less than a dollar a month: https://www.troyhunt.com/serverless-to-the-max-doing-big-thi...