- The Rust Programming Language - the official book about all of Rust. This is what I recommend starting with if you want to learn Rust. The chapters most relevant to what I talked about are:
- The Rustonomicon - an official book all about writing unsafe Rust. Great deep dive of why and how to write good unsafe code.
- Fearless Concurrency - an official blog post on how safety makes concurrency easier.
- Memory Leaks are Memory Safe - a blog post written by a core team member on why memory leaks are still possible in Rust and what that implies.
- [Ruby, Rust, an
#!/usr/bin/env bash | |
set -x | |
NS="ns1" | |
VETH="veth1" | |
VPEER="vpeer1" | |
VETH_ADDR="10.200.1.1" | |
VPEER_ADDR="10.200.1.2" |
First three sections are just stuff from the Go team itself.
Introductory/general
- https://tour.golang.org
- https://play.golang.org
- https://golang.org/ref/spec (much shorter and less formal than most language specs)
- https://golang.org/pkg/ (stdlib ref, also reachable via godoc.org, e.g. godoc.org/compress/gzip)
- https://talks.golang.org
- https://blog.golang.org
#![allow(dead_code)] | |
use std::fmt::Display; | |
use std::fmt::Formatter; | |
use std::fmt::Result; | |
enum Fzb { | |
Value(u64), | |
Fizz(u64), | |
Buzz(u64), |
mike@rbci:~$ psql -U postgres | |
psql (9.0.3) | |
Type "help" for help. | |
postgres=# update pg_database set datallowconn = TRUE where datname = 'template0'; | |
UPDATE 1 | |
postgres=# \c template0 | |
You are now connected to database "template0". | |
template0=# update pg_database set datistemplate = FALSE where datname = 'template1'; | |
UPDATE 1 |
A type is a collection of possible values. An integer can have values 0, 1, 2, 3, etc.; a boolean can have values true and false. We can imagine any type we like: for example, a HighFive type that allows the values "hi" or 5, but nothing else. It's not a string and it's not an integer; it's its own, separate type.
Statically typed languages constrain variables' types: the programming language might know, for example, that x is an Integer.
In that case, the programmer isn't allowed to say x = true
; that would be an invalid program.
The compiler will refuse to compile it, so we can't even run it.
The purpose of this document is to make recommendations on how to browse in a privacy and security conscious manner. This information is compiled from a number of sources, which are referenced throughout the document, as well as my own experiences with the described technologies.
I welcome contributions and comments on the information contained. Please see the How to Contribute section for information on contributing your own knowledge.
#!/usr/bin/env python | |
# -*- coding:utf-8 -*- | |
""" greetings """ | |
import os | |
import sys | |
from django.conf import settings | |
BASE_DIR = os.path.dirname(os.path.abspath(__file__)) |
""" | |
License: MIT - https://opensource.org/licenses/MIT | |
ChromeLogger is a protocol which allows sending logging messages to the Browser. | |
This module implements simple support for Django. It consists of two components: | |
* `LoggingMiddleware` which is responsible for sending all log messages | |
associated with the request to the browser. | |
* `ChromeLoggerHandler` a python logging handler which collects all messages. |