Example inputs:
| Variable | Value |
|---|---|
| key | the shared secret key here |
| message | the message to hash here |
Reference outputs for example inputs above:
| Type | Hash |
| # dependencies | |
| # pip install -U openai gradio | |
| import os, openai | |
| import gradio as gr | |
| openai.api_key = 'sk-xxxxxx' | |
| messages = [{"role": "system", "content": """Assistant is an expert candidate in | |
| technical IT job interviews. Currently, the interview is | |
| focused on a position for Platform Engineer. So, you have skills |
Example inputs:
| Variable | Value |
|---|---|
| key | the shared secret key here |
| message | the message to hash here |
Reference outputs for example inputs above:
| Type | Hash |
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:
⚠ 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.comindex.html)| #! /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 |
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).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 | - | - | - |
| 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.
| { | |
| "AWSEBDockerrunVersion": "1", | |
| "Image": { | |
| "Name": "<AWS_ACCOUNT_ID>.dkr.ecr.us-east-1.amazonaws.com/<NAME>:<TAG>", | |
| "Update": "true" | |
| }, | |
| "Ports": [ | |
| { | |
| "ContainerPort": "443" | |
| } |
| <<APP>> change this variables |