HNHacker News
TopNewBestAskShowJobs

throwaway_bad

514 karma · joined October 2, 2019

submissionscomments
throwaway_bad··on CloudFlare is ruining the internet for me (2016)
This parallels the conversation going on in the ML world right now.

"They just so happen to look like gorillas!"

This is not okay.

I know it's just a pile of linear algebra and there's no conspiracy to screw a particular country.

But once it's brought up that your system is causing harm by increasing inequality in the world, you can't just say "But that's what the algo is spitting out!".

At least try to fix it.

throwaway_bad··on CloudFlare is ruining the internet for me (2016)
From a technical standpoint, what else can they do?

Your IP is coming from the cloud just like all the actual bot traffic.

throwaway_bad··on Show HN: Easy Serverless GraphQL APIs with Serverless Framework AppSync
Is data validation and permissions/authorization easy to do client-side?

That was my main concern when I was looking into firebase a while back. Just wondering if the situation has improved.

throwaway_bad··on Pigs recorded using tools
I initially read it as we are using (even better) tools to record pigs.

This is in part because an article about pig facial recognition frontpaged on HN before: https://news.ycombinator.com/item?id=19277846

throwaway_bad··on Sqlite 3.30.0
I have a small blog (using Ghost) that uses sqlite as the main database and it's incredibly easy to maintain. It's just a single file. For example if you want to back up, you just copy the file or add it to git. If you want to do a diff you just do sqldiff on two files. It is as easy as working with json or csv files, except with atomic writes and better querying.

From their site: https://www.sqlite.org/whentouse.html

>SQLite does not compete with client/server databases. SQLite competes with fopen().

throwaway_bad··on Look out for the second 2019 GPS week number rollover
It was mostly a theoretical problem and not something I went through with.

I only thought about it because I was also saving the expiration in a session table in mysql and my expires column is a `timestamp` which is 4bytes. I was using a language that uses more than 32 bits for dates, so you're right, it probably would've sent out the right cookie.

throwaway_bad··on Look out for the second 2019 GPS week number rollover
I was recently trying to set a cookie to "never" expire.

Apparently there's no good way to do this other than pick a date that's far enough out in the future.

A stackover answer gave an example setting it for 10 years. I thought I would be defensive and set it to 20 years.

But then it will immediately break because 32 bit dates wrap around in 2038!

throwaway_bad··on Why do companies with unbounded resources still have terrible moderation?
> protect videos promoting and glorifying beheadings

To play devil's advocate, "objectively" these beheadings are still happening somewhere in the world. It's an undeniable truth even though you don't want to see the evidence for it. For a lot of people this is their flat earth. No evidence means it's not happening.

Why not allow the content to be seen, let the world be horrified that there are people driven to become like this, and try to understand what led them to do those things?

throwaway_bad··on Why do companies with unbounded resources still have terrible moderation?
I think this misses why subreddits work. I have seen subs with very inactive mods and ill-defined subreddit rules still flourish.

This is because most content is self-policing by upvotes. Downvoted post dies in new so trolls know they can't reach a large audience. It's actually kind of amazing how quickly can newcomers can learn and adapt to the implicit rules and begin reinforcing it on others.

This does lead to problems when a smaller sub gets brigaded by a larger ones (or ends up on /r/all) and the original community can't outvote the outsiders.

throwaway_bad··on Why should I always enable compiler warnings?
No matter what your language semantics are, there will still be different styles of coding. It's extremely valuable to shepherd your codebase into a particular paradigm for readability reasons.

That said, style warnings are incredibly hard to detect and enforce (e.g., -Weffc++ is so noisy I've never been in any codebase where I could leave it on)

throwaway_bad··on How can we develop transformative tools for thought?
I am one of those guys who had a 4.0 GPA in college but I never used spaced repetition because what I was doing seemed to work well enough. Post-college I tried it for learning japanese and it seems like a downgrade from my usual approach.

The best way to learn something is by contextualizing it. For example it doesn't matter if you forget a math formula if you know how to re-derive it. If the formula is truly important, every time you access it, the entire DAG of knowledge leading up to that formula will be "refreshed". This is a very natural spaced repetition that erodes from the edge of your knowledge graph since the basic building blocks are refreshed so often. New knowledge is extremely easy to acquire, and your graph can be "refactored" every so often.

The space repetition apps I have use doesn't have a similar concept of interrelationship. For example it's possible for you to learn the flashcards for "three" and "one" but not know the word for "two". This is insane way of doing things. You are just refreshing random isolated nodes. Not only does it make it a lot harder to learn (since random out of order information is harder to compress), the knowledge graph you build is a tangled mess that's not as usable and doesn't degrade gracefully.

throwaway_bad··on Ask HN: What are weird and/or novel ways to do web UIs?
If you generate a typical react app with create-react-app, you get ~1000 dependencies in node_modules:

`npx create-react-app some-app-name --typescript`

(it was actually exactly 1000 dependencies which is freaking me out because the number was so round. wondering if it am counting lines wrong `ls | wc -l`)

throwaway_bad··on Ask HN: What are weird and/or novel ways to do web UIs?
Dribbble has a really nice collection:

https://dribbble.com/shots/popular/animation?timeframe=ever

Codepen has stuff you can actually see source code of:

https://codepen.io/popular/pens/

throwaway_bad··on Ask HN: What are weird and/or novel ways to do web UIs?
3d web comics? https://sketchfab.com/3d-models/headache-xkcd-880-5659b3b539...

Also New York Times and other news site sometimes have really sophisticated interactive story telling or visualizations.

throwaway_bad··on The myth of the teacher pay gap?
> I also can't think of another profession that has the same reputation

Game development? Much lower pay relative to other programming jobs, insane hours, and usually requires much deeper and specialized skills.

I guess it's not low pay on an absolute scale like teaching is.

throwaway_bad··on New In Postgres 12: Generated Columns
There's definitely a language/paradigm switching cost if you jump back and forth too much.

What I found helpful was to prototype all the migrations and queries (of whatever feature or user flow you're building) in a .sql file first with mocked values. You'll be surprised by how much you can do if you're simply forced to write pure sql. Once you've reached the limit of what you can do you can move the queries back into your app to wire the rest up. This is usually not much work if you use raw queries instead of ORMs. You usually end up writing a lot more efficient apps this way!

throwaway_bad··on Creating REST API in Node.js with Express and MySQL 🧩
I think there's an sql injection in your /settings route. feed-query also looks extremely sketchy too. In general never build queries with javascript template strings from unsanitized user input.
← PreviousPage 4 of 4