HNHacker News
TopNewBestAskShowJobs

sheharyarn

123 karma · joined March 24, 2016

[ my public key: https://keybase.io/sheharyar; my proof: https://keybase.io/sheharyar/sigs/PAl5t1g2hhLmKsut41MudcthQoPQvZLAoqTc27C-xEo ]
submissionscomments
sheharyarn··on Tracking content and changes with Delta in Elixir
Here's a little context on Delta (https://github.com/slab/delta-elixir) and the linked blog post:

Delta is a format to describe documents' contents and how it changes over time. This is a core piece of technology at Slab, that powers our real-time collaboration engine, thanks to the built-in support for Operational Transform (think multiple users working together in Google docs).

Though we've been using it internally for almost 4 years now, we're finally open-sourcing it to the wider Elixir community.

Would love your feedback!

sheharyarn··on Building secure Multi-tenant applications in Elixir
Not an alternative, but as a companion to it. In our use-case we use a custom `OrgRepo` wrapper around `Repo` which handles a lot more read/write scenarios.
sheharyarn··on Building secure Multi-tenant applications in Elixir
This obscure little feature in Ecto/Elixir is something we've been using at Slab.com for about a year. While the blog post only covers the feature itself, I wanted to give a better overview of *WHY* we're using it.

Slab is a multi-tenant Phoenix app where all tables in our database, including pivot tables, have an `org_id` foreign key that references the team the data belongs to. Using association defaults enforces that the correct `org_id` value is automatically set for all resources.

We combine this with an `OrgRepo` module that wraps around our default `Repo`, which can only write or read other resources with the same `org_id`, ensuring that data for one team has no possibility of accidentally leaking to another team (using `Repo` is forbidden in our codebase).

An added bonus is; when we eventually have to scale our databases via something like sharding and have to vertically partition the data based on `org_id`, we would already have this system in place to support us.

sheharyarn··on Decensoring Hentai with Deep Neural Networks
This is exactly why AI was needed (and subsequently created) in the first place!
sheharyarn··on Mitmproxy – Open-source console-based proxy
I love Mitmproxy and how easy it is to use! One of my favorite pentesting tools!
sheharyarn··on Ask HN: What are your Hobbies?
- Programming

- Programming Hackathons / Conferences

- Music (Alternative / Indie)

- TV Shows and Anime (I waste too much time on them)

- Yoga

- Cooking

- Learning other languages

- Non-Fiction Books

sheharyarn··on Where New Slang Comes From
Disappointed to not find "Cuck" in the list
sheharyarn··on Pixels Don’t Care (2013)
Loved the post. I've been through something similar.
sheharyarn··on The Veil of Ignorance
This was a very interesting read!