Class names are CamelCase
.
Methods and variables are snake_case
.
Methods with a ?
suffix will return a boolean.
Install the React Developer Tools Chrome Extension.
Go to the egghead website, i.e. Getting Started with Redux
Click View -> Developer -> Javascript Console
, then the React
tab, then the <NextUpLessonList ...>
tag.
Click back to the Console
tab, then run:
<<APP>> change this variables |
{ | |
"AWSEBDockerrunVersion": "1", | |
"Image": { | |
"Name": "<AWS_ACCOUNT_ID>.dkr.ecr.us-east-1.amazonaws.com/<NAME>:<TAG>", | |
"Update": "true" | |
}, | |
"Ports": [ | |
{ | |
"ContainerPort": "443" | |
} |
layout | title |
---|---|
post |
RethinkDB: why we failed |
Posted on Github by Slava Akhmechet
When we [announced][shutdown-announcement] that RethinkDB is shutting down, I promised to write a post-mortem. I took some time to process the experience, and I can now write about it clearly.
Note: "Forked" from Latency Numbers Every Programmer Should Know
Event | Nanoseconds | Microseconds | Milliseconds | Comparison |
---|---|---|---|---|
L1 cache reference | 0.5 | - | - | - |
Branch mispredict | 5.0 | - | - | - |
L2 cache reference | 7.0 | - | - | 14x L1 cache |
Mutex lock/unlock | 25.0 | - | - | - |
Install the React Developer Tools Chrome Extension.
Go to the egghead website, i.e. Getting Started with Redux
Click View -> Developer -> Javascript Console
, then the React
tab, then
<NextUpLessonList ...>
tag.<_ listType="course" list={... >
tag or enter lessons
in a search field and look for <inject-t-with-lessonScreenStore lessons=[{...}, {...}, {...}, ...]
in results list (and then click on it).#! /usr/bin/bash | |
apm install markdown-preview | |
apm install language-ruby | |
apm install autocomplete-ruby | |
# Lets you maintain long history of items you copied in past using `CTRL + SHIFT + v` | |
apm install clipboard-history | |
apm install goto-definition |
⚠ This post is fairly old. I don't keep it up to date. Be sure to see comments where some people have posted updates
What this will cover
www.website.com
to website.com
index.html
)Over the weekend I spun up a new Elixir :ecto, "2.2.7" project that I was able to get working with CockroachDB and this adapter fork - with some caveats I wanted to share to help others.
Only the root
user can create databases
This requires you configure the Ecto.Adapters.Postgres
username
as root
or else the mix ecto.create
command will always fail. You can go back and change your configured username
to something else after the database has been created, or create your database and user permissions using cockroach sql
and skip the mix ecto.create
command.
Configuring Ecto primary_key ID to be created by CockroachDB
By default when configuring your Ecto.Schema
using autogenerate: false
it appears either CockroachDB, Ecto or the Postrex adapter (I did not investigate this) uses the BIGINT
unique_rowid()
function as the default value for IDs
@primary_key {:id, :id, autogenerate: