HackerTrans
TopNewTrendsCommentsPastAskShowJobs

grschafer

no profile record

Submissions

Soda Constructor (Revisited) (2018)

maciejmatyka.blogspot.com
1 points·by grschafer·4 năm trước·0 comments

How to Benchmark PostgreSQL Queries Well

tangramvision.com
4 points·by grschafer·4 năm trước·0 comments

Hands-On with PostgreSQL Authorization – Part 2 – Row-Level Security

tangramvision.com
95 points·by grschafer·4 năm trước·32 comments

Hands-On with PostgreSQL Authorization – Part 1 – Roles and Grants

tangramvision.com
3 points·by grschafer·5 năm trước·0 comments

Abusing Terraform to Upload Static Websites to S3

tangramvision.com
64 points·by grschafer·5 năm trước·11 comments

Show HN: Depth Sensor Visualizer

tangramvision.com
16 points·by grschafer·5 năm trước·2 comments

[Tutorial] Creating PostgreSQL Test Data with SQL, PL/PgSQL, and Python

tangramvision.com
3 points·by grschafer·5 năm trước·1 comments

Loading Test Data into PostgreSQL

tangramvision.com
3 points·by grschafer·5 năm trước·0 comments

Exploring Ansible via Setting Up a WireGuard VPN

tangramvision.com
3 points·by grschafer·5 năm trước·0 comments

comments

grschafer
·4 năm trước·discuss
Good questions! Regarding maintaining the definition of what a role can or can't do -- I think this comes down to how you organize your SQL. If you keep authz declarations in one place, it's going to be more maintainable than if they're spread across many database migrations. One way you can keep those authz declarations in one place is by doing development/maintenance on that one place then using a database-diffing tool[1] to generate migrations based on whatever changes you made.

Regarding database connections -- one way to avoid needing a connection per user is to use something like PostgREST[2] to handle incoming requests, identify the user making the request, and use an existing db pool connection to switch roles and execute whatever queries are requested. EDIT: RedShift1 beat me to this explanation by a little bit! :)

RLS certainly isn't the answer for every domain or problem size, but I've been surprised by how powerful it is compared with how relatively unknown it is.

[1]: https://supabase.com/blog/2021/03/31/supabase-cli#migrations

[2]: https://postgrest.org/en/stable/auth.html
grschafer
·5 năm trước·discuss
Open-sourced the code here: https://gitlab.com/tangram-vision-oss/fov-visualizer
grschafer
·5 năm trước·discuss
Hello HN! I made this tool to hopefully help computer vision and robotics folks play around with camera parameters and compare different commercial depth cameras. This tool was inspired by another, similar tool: https://www.smeenk.com/webgl/kinectfovexplorer.html

Also shoutout to three.js for having an incredible variety of examples and great documentation to learn from. And credit to mixamo for the android-esque robot model.

Feedback and suggestions welcome! :)