-
Video
- Host -> YouTube - Private Video -> Udacity -> Vimeo, Wistia -> Self Hosted - nginx
- Analytics
- Lot of data
- 1 user watches for 10 seconds on 100 videos * 10_000
- Lot of writes
- Frame by Frame analysis -> 30 FPS -> 120 second -> 3600
-
Members
- Sign up
- Login
- Remember things
- Email Validation / Confirmation
- Payments
AstraDB - Managed NoSQL Cassandra
-
Database name
- Keyspace name
- Tables
- Keyspace name A
- Table A
- Table b
- Table c
- Keyspace name
-
Database for Testing
- keyspace -> Project 1
- tables (correspond to prod)
- keyspace -> Project 1
from app import db
from app.users.models import User
db.get_session()
User.objects.create(email='[email protected]', password='abc123')
User.objects.create(email='[email protected]', password='abc123d')
q = User.objects.all()
for user in q:
print(user.email, user.user_id, user.password)
Common Classes
-
Layout
container-fluid
orcontainer
row
col
(100% width)
row
col-6
(50%)col-3
(25%)col-3
(25%)
row
col-9
(75%)col-3
(25%)
row
col-md-9 col-12
(75% at medium size screen, 100% below that)col-md-3 col-12
(25% at medium size screen, 100% below that)
-
Buttons
btn btn-primary
orbtn btn-secondary
this is a primary or secondary color (basically blue or gray)btn btn-outline-primary
this is a clear button with a blue outlinebtn btn-sm btn-success
this is a small button with green
-
Forms
form-control
on an<input>
element makes the form input a bootstrap class
-
Spacing
my-5
,my-4
, ...,my-1
gives a relative margin on top and bottompy-5
,py-4
, ...,py-1
gives a relative padding on top and bottommx-5
orpx-5
changes the direction of the margin/padding to left and right (due thex
) instead of top/bottom (which was due to they
)me-3
orpe-3
changes the direction of the margin/padding to only the end (aka after & due to thee
).ms-2
orps-2
changes the direction of the margin/padding to only the start (aka start due to thes
).
-
Video
ratio ratio-16x9
orratio ratio-1x1
in adiv
above aniframe
will resize the video to fit that ratio.