HNHacker News
TopNewBestAskShowJobs

throwaway_bad

514 karma · joined October 2, 2019

submissionscomments
throwaway_bad··on Issue 914451: Autofill does not respect autocomplete="off"
And worse part is that autofill still works in incognito.
throwaway_bad··on Humans will not 'migrate' to exoplanets, Nobel winner says
In sci-fi, the next step is usually to move to living on a dyson swarm harvesting the sun's energy first. Not another planet or different solar system.

https://www.youtube.com/watch?v=pP44EPBMb8A

throwaway_bad··on Show HN: You will die in X weeks
This is not an original idea: https://waitbutwhy.com/2014/05/life-weeks.html

But I don't see credits anywhere.

throwaway_bad··on Chrome 77 Breaking Drag and Drop Events
> Chances are if you are calling getImageData regularly, you are doing something wrong and inefficient.

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).

throwaway_bad··on Making Instagram.com faster: Part 3 – cache first
This looks like a pretty naive solution.

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)

throwaway_bad··on 600k concurrent websocket connections on AWS using Node.js (2015)
Does anyone have experience doing the same on GCP?

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?

throwaway_bad··on The Birth of Standard Error (2013)
As someone who is prone to overengineering, I wonder if they also tried adding more standard streams after that (e.g., debug or verbose, different levels you would find in logging libraries today).

I think just out/err has been proven by history but that couldn't have been obvious to the original designers?

throwaway_bad··on Chrome 77 Breaking Drag and Drop Events
Interacting with googlers is horrifying. He was ready to commit to the bad decision until he was threatened with a PR disaster of breaking the software used by "hundreds of thousands of school kids".

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.

throwaway_bad··on Show HN: React Hook Form – Simple Form Validation
Can you point to a real world example of what you mean?

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)

throwaway_bad··on The China Cultural Clash
I am not immune to fake news. I think that's why I appreciated your original response so much. I wanted to see how others are interpreting the same events.

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.

throwaway_bad··on Personal information and ads on Twitter
I am still waiting for the same article to be written about google so they can fix their shit too.

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.

throwaway_bad··on Personal information and ads on Twitter
On twitter/fb, people can look up your account by phone number. This is really fucking stupid because I only added my phone number for two factor authentication. So now I have to choose between security or people finding my dumb throwaway accounts.
throwaway_bad··on The China Cultural Clash
This is unintentionally the clearest demonstration of the clash of cultural values in the whole thread.

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.

throwaway_bad··on Scissor Statements: Sort by Controversial
The story defined scissor statements as ones that simply make two ideologically incompatible groups realize the "other" is hiding amongst "them".

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.

throwaway_bad··on Ask HN: How do you build applications that require zero maintenance?
I hate that you're right that a mere decade is an impossible time horizon for the vast majority of apps.

Low maintenance simply means they can afford to give a few months to shut down a service rather than the next day.

throwaway_bad··on Ask HN: How do you build applications that require zero maintenance?
> if possible, generate native .exes

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).

throwaway_bad··on Ask HN: How do you build applications that require zero maintenance?
S3 breaks url format in a backward incompatible way occasionally: https://news.ycombinator.com/item?id=19821406

Otherwise this is definitely the way to go. Nothing beats static files that you can just cp into a bucket.

throwaway_bad··on 'We good now China?' South Park creators issue mock apology
Technically speaking it's not really apples to apples. One is due to malice (hitler was actively trying to exterminate a race). The other is due to incompetence (mao would've preferred if those people didn't die but was too stupid to predict the result of his actions).

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.

throwaway_bad··on 'We good now China?' South Park creators issue mock apology
Sometimes we forget that getting disappeared in china is not just a meme.

Police will show up to arrest you just for posting comments online: https://www.youtube.com/watch?v=cCOAbkTs_a4

throwaway_bad··on Scissor Statements: Sort by Controversial
I guess it did partially come true. The GPT-2 model by OpenAI (2019) trained on reddit links did tear some communities apart. :)

https://openai.com/blog/better-language-models/

throwaway_bad··on Supreme Court allows blind people to sue retailers if websites aren't accessible
You are thinking of the most trivial of apps. For example I have worked on a web-based image editor that is practically impossible to make accessible to the blind. Not with current screen reader technology.

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.

throwaway_bad··on Supreme Court allows blind people to sue retailers if websites aren't accessible
It there is one, I hope they made it styled with black on black text and/or with a braille font!
throwaway_bad··on Supreme Court allows blind people to sue retailers if websites aren't accessible
Rather than crippling the rest of the world for the blind, why not improve the tools for them instead?

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.

throwaway_bad··on Scribe: Transporting petabytes per hour via a distributed, buffered queueing
Are you trying to quantify the "information" by the size of the DNA? I think this is a pretty meaningless number to multiply since most of the DNA will be exact copies and DNA alone doesn't capture all the information about a cell.

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.

throwaway_bad··on Web Graphics Done Right
One case where you probably can't is for image uploads. You might think it would be nice to allow a user to upload a svg for their avatar or something.

But SVG can embed javascript which can lead to XSS: https://hackerone.com/reports/148853

throwaway_bad··on Foundations of Data Science [pdf]
I have taken a course based on this book (before it was retitled "foundations of data science"). It was more or less a math class where all homeworks are about proving stuff. You won't write a single line of code and usually don't even talk too deeply about the applications.

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.

throwaway_bad··on Building a constraint programming solver in Julia
I am not sure if it's what the OP meant, but g9.js has a lot of neat interactive examples: http://omrelli.ug/g9/gallery/

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.

throwaway_bad··on Show HN: Imagededup – Finding duplicate images made easy
People do deduplicate files to save on space, except it's usually based on exact byte match using md5 or sha256. Some don't due to privacy issues: https://news.ycombinator.com/item?id=2438181 (e.g., MPAA can upload all their torrented movies and see which ones uploaded instantly to prove that your system has their copyrighted files)

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/)

throwaway_bad··on Ask HN: Where do you get your cheap servers?
Take advantage of student credits!

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...

throwaway_bad··on An Augmented Reality Game Escalated into Real-World Spy Warfare
I love these gaming story. Reminds me of the EVE online stories which also have crazy espionage going on.
← PreviousPage 3 of 4Next →