Better HN
topnewbestaskshowjobs
Log inSign up

sheharyarn

123 karma · joined Mar 24, 2016 (10y ago) · 36 submissions

[ my public key: https://keybase.io/sheharyar; my proof: https://keybase.io/sheharyar/sigs/PAl5t1g2hhLmKsut41MudcthQoPQvZLAoqTc27C-xEo ]
Submissions

comment 5y ago · link · parent

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!

2.

Tracking content and changes with Delta in Elixir(slab.com ↗)

8 points · by sheharyarn · 5y ago · 1 comment

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

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.

5.

Building secure Multi-tenant applications in Elixir(slab.com ↗)

6 points · by sheharyarn · 5y ago · 3 comments

6.

Opening the black box of vision AI algorithms(medium.com ↗)

1 points · by sheharyarn · 5y ago · discuss

7.

Defensive Bash Programming(kfirlavi.herokuapp.com ↗)

5 points · by sheharyarn · 6y ago · discuss

8.

Grayscale is buying 100% of mined Bitcoins since halving(hamad.blog ↗)

3 points · by sheharyarn · 6y ago · discuss

9.

Reflections on the color of my skin(haydenplanetarium.org ↗)

55 points · by sheharyarn · 6y ago · 42 comments

10.

Your Indie game dev team will fail(medium.com ↗)

14 points · by sheharyarn · 6y ago · 3 comments

11.

Why I'm Betting on Gutenberg(hariszulfiqar.com ↗)

4 points · by sheharyarn · 6y ago · discuss

12.

Show HN: Que – Distributed Job Processing in Elixir with Mnesia(github.com ↗)

12 points · by sheharyarn · 7y ago · 2 comments

13.

Show HN: Memento – Real-Time Distributed Database (Mnesia) in Elixir(github.com ↗)

2 points · by sheharyarn · 7y ago · discuss

14.

Elixir 1.9.0-RC released(github.com ↗)

4 points · by sheharyarn · 7y ago · discuss

15.

Apple makes zsh default shell on macOS(support.apple.com ↗)

100 points · by sheharyarn · 7y ago · 44 comments

16.

Show HN: Memento – Mnesia Real-time Distributed Database in Elixir(github.com ↗)

5 points · by sheharyarn · 7y ago · discuss

17.

Andy Grove Formed Modern Startup Culture(slab.com ↗)

5 points · by sheharyarn · 7y ago · discuss

18.

How Elon's writing style hurts Tesla(slab.com ↗)

3 points · by sheharyarn · 7y ago · discuss

19.

Interview with Alan Kay (2012)(drdobbs.com ↗)

5 points · by sheharyarn · 7y ago · discuss

20.

Don't use the greater-than sign in programming (2016)(llewellynfalco.blogspot.com ↗)

48 points · by sheharyarn · 7y ago · 94 comments

21.

Erlang – The Movie (1990)(youtube.com ↗)

2 points · by sheharyarn · 7y ago · discuss

comment 8y ago · link · parent

This is exactly why AI was needed (and subsequently created) in the first place!

23.

The Mine: CSS Only Adventure Game (No Javascript!)(codepen.io ↗)

4 points · by sheharyarn · 8y ago · discuss

24.

Memento – Mnesia Distributed DB in Elixir(github.com ↗)

3 points · by sheharyarn · 8y ago · discuss

25.

YOLO v3 – Object Detection Model [pdf](pjreddie.com ↗)

2 points · by sheharyarn · 8y ago · discuss

26.

DenseNet Image Segmentation in Tensorflow(github.com ↗)

2 points · by sheharyarn · 8y ago · discuss

27.

Writing Custom CSS vs. Using Front End Frameworks(stackoverflow.com ↗)

5 points · by sheharyarn · 8y ago · 1 comment

comment 9y ago · link · parent

I love Mitmproxy and how easy it is to use! One of my favorite pentesting tools!

29.

A quantitative socio-economic study of Tinder(medium.com ↗)

1 points · by sheharyarn · 9y ago · discuss

12