Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
In this ZK demo, a partition places the primary on the minority component. All | |
operations time out while the cluster converges on a new primary, at which | |
point three clients (talking to the three nodes in the majority component) can | |
proceed again. When the partition is healed, the two minority nodes can begin | |
accepting writes again. As with single-node Postgres, Zookeeper's client | |
protocol and ZAB both allow for false negatives (timeouts may actually succeed) | |
but not false positives (every successful write *will* be present in the final | |
set.) | |
HOW TO READ THIS CHART: |
Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
use postgres::{Connection, TlsMode}; | |
use std::error::Error; | |
use serde::Deserialize; | |
#[derive(Clone, Debug, Deserialize)] | |
struct Person { | |
name : String, | |
data : Vec<u8>, | |
} |
#![feature(async_await)] | |
/* | |
Cargo.toml dependencies: | |
serde = { version = "1.0", features = ["derive"] } | |
tokio = { git = "https://github.com/tokio-rs/tokio", default-features = false, features = ["io", "codec"] } | |
tokio-postgres = { git = "https://github.com/sfackler/rust-postgres", branch = "std-futures" } | |
futures-preview = { git = "https://github.com/rust-lang-nursery/futures-rs" , features = ["nightly", "async-await"] } | |
futures-util-preview = { version = "0.3.0-alpha.4", features = ["compat"] } |
A wide variety of widely-available flight controllers and associated robotics boards have been released in the past five years. These boards incorporate a careful selection of sensors and actuator outputs useful for robotics-- not just for flying vehicles, but also rovers and underwater vehicles. This living document analyzes briefly the compatibility of embedded Rust with these inexpensive and powerful boards.
General issues that impact the usefulness of embedded Rust with these kinds of boards:
This is inspired by https://fasterthanli.me/blog/2020/a-half-hour-to-learn-rust/
the command zig run my_code.zig
will compile and immediately run your Zig
program. Each of these cells contains a zig program that you can try to run
(some of them contain compile-time errors that you can comment out to play
with)
#![allow(unused)] // silence unused warnings while exploring (to comment out) | |
use std::{error::Error, str}; | |
use s3::bucket::Bucket; | |
use s3::creds::Credentials; | |
use s3::region::Region; | |
use s3::BucketConfiguration; | |
// Youtube Walkthrough - https://youtu.be/uQKBW8ZgYB8 |