See the new site: https://postgresisenough.dev
| from diffusers import DiffusionPipeline, StableDiffusionXLImg2ImgPipeline | |
| import torch | |
| model = "stabilityai/stable-diffusion-xl-base-1.0" | |
| pipe = DiffusionPipeline.from_pretrained( | |
| model, | |
| torch_dtype=torch.float16, | |
| ) | |
| pipe.to("cuda") | |
| pipe.load_lora_weights("model/", weight_name="pytorch_lora_weights.safetensors") |
A few days ago, another sensationalist news story emerged, promising new clues regarding the true identity of Satoshi Nakamoto: Allegedly, an old message signed by Hal Finney had surfaced (published by Martin Shkreli in this blog post), suggesting that Paul Le Roux was the person behind the synonym of Satoshi Nakamoto.
I briefly highlight the facts surrounding this story:
Right away, yes indeed, a valid signed message has surfaced:
| import { createComponent, Stack, Text, Theme, Events } from '@jsxui/react' | |
| export type ButtonProps = { | |
| title: string | |
| background: Theme.Color | |
| color: Theme.Color | |
| stroke: { | |
| align: 'inside' | 'outside' | |
| size: number | |
| color: Theme.Color |
| export type Await<T> = T extends PromiseLike<infer U> ? Await<U> : T; | |
| export type IsPromise<T> = PromiseLike<infer U> ? true : false; | |
| export type Length<T> = T extends { length: infer L } ? L : never; | |
| export type KeysOfType<O, T> = { | |
| [K in keyof O]: O[K] extends T ? K : never; | |
| }[keyof O]; | |
| // ConvertLiterals would convert literal types like `1337` to their base type like `number` if set to true |
This document isn't an explainer on Feature Flags, you can find that with my amateur writeup, or literally hundreds of better writeups out there.
This document is also agnostic to the choice of service you'd use: LaunchDarkly or split.io or optimizely or whatever; that's orthogonal to this conversation.
Instead, this document is a list of considerations for implementing a client for using Feature Flags for User Interface development. Service providers usually give a simple fetch and use client and that's it; I contend that there's a lot more to care about. Let's dive in.
To encourage usage, we'd like for the developer experience to be as brutally simple as possible. So, this should be valid usage:
| <body onload=z=c.getContext`2d`,setInterval(`c.width=W=150,Y<W&&P<Y&Y<P+E|9<p?z.fillText(S++${Y=`,9,9|z.fillRect(p`}*0,Y-=--M${Y+Y},P+E,9,W),P))):p=M=Y=S=6,p=p-6||(P=S%E,W)`,E=49) onclick=M=9><canvas id=c> |
The nixos.org website suggests to use:
sh <(curl -L https://nixos.org/nix/install)For macOS on Intel (x86_64) or Apple Silicon (arm64) based macs, we need to use
sh <(curl -L https://nixos.org/nix/install) --darwin-use-unencrypted-nix-store-volume