... Suppose you are translating a novel from Russian to English, and come across a sentence whose literal translation is, "She had a bowl of borscht." Now perhaps many of your readers will have no idea what borscht is. You could attempt to replace it by the "corresponding" item in their culture – thus, your translation might run, "She had a bowl of Campbell's soup." Now if you think this is a silly exaggeration, take a look at the first sentence of Dostoevsky's novel Crime and Punishment in Russian and then in a few different English translations. I happened to look at three different
/* | |
Helper program for resolving the path to the interpreter executable | |
relative to the script location in shebangs. | |
Sample usage: | |
#!/usr/bin/delegate ../my-virtualenv/bin/python | |
import sys | |
def main(): |
CFLAGS = -pedantic -Wall -Wextra -std=c11 -O2 | |
rel: rel.o | |
rel.o: | |
clean: | |
-rm *.o rel |
Looking for a bookmarklet which improves readability on mobile devices. Such bookmarklets are sometimes called "declutterers" or "simplifiers".
readable
from tastefulwords.com is one of the best-known examples.
Here is a modified and customised version of it by @akaleeroy and others.
But I've found the Mozilla customization of it tends to work better: https://github.com/mozilla/readability.
Bookmarklet Browser Enhancement Readability
Readable is an application that helps you read more of the web. It reformats text — on any website — according to your exact specifications.
Script started on 2023-05-01 12:07:01+08:00 [TERM="xterm-256color" TTY="/dev/pts/6" COLUMNS="116" LINES="31"] | |
INFO global: Vagrant version: 2.3.4 | |
INFO global: Ruby version: 2.7.6 | |
INFO global: RubyGems version: 3.1.6 | |
INFO global: VAGRANT_INSTALLER_VERSION="2" | |
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/mnt/data/opt/vagrant/embedded" | |
INFO global: VAGRANT_INSTALLER_ENV="1" | |
INFO global: VAGRANT_EXECUTABLE="/mnt/data/opt/vagrant/embedded/gems/2.3.4/gems/vagrant-2.3.4/bin/vagrant" | |
INFO global: VAGRANT_LOG="debug" |
For an emulator that mimics a Pixel 5 Device with Google APIs and ARM architecture (for an M1/M2 Macbook):
-
List All System Images Available for Download:
sdkmanager --list | grep system-images
-
Download Image:
sdkmanager --install "system-images;android-30;google_atd;arm64-v8a"
# firebase.tf https://gist.githubusercontent.com/Zebreus/906b8870e49586adfe8bd7bbff43f0a8/raw/firebase.tf | |
# Terraform configuration for creating a firebase project with firestore, functions and storage | |
# Unfinished | |
terraform { | |
required_providers { | |
google-beta = { | |
source = "hashicorp/google-beta" | |
version = "4.11.0" | |
} |
Peter Naur's classic 1985 essay "Programming as Theory Building" argues that a program is not its source code. A program is a shared mental construct (he uses the word theory) that lives in the minds of the people who work on it. If you lose the people, you lose the program. The code is merely a written representation of the program, and it's lossy, so you can't reconstruct