Title: Simple Sabotage Field Manual Author: Strategic Services Office of Strategic Services
| .global _main | |
| .extern _putchar | |
| .align 4 | |
| _main: | |
| ; prolog; save fp,lr,x19 | |
| stp x29, x30, [sp, #-0x20]! | |
| str x19, [sp, #0x10] |
I recently discovered a relatively obscure algorithm for calculating the digits of pi: https://en.wikipedia.org/wiki/Gauss–Legendre_algorithm.
Well, at least obscure compared to Chudnovsky's. Wikipedia notes that it is "memory-intensive" but is it really?
Let's compare to the MPFR pi function:
function gauss_legendre(prec)
setprecision(BigFloat, prec, base=10)
GC.enable(false)| # Save the transcripts using the "Save Page WE" Chrome Extension | |
| # This script was generated by ChatGPT | |
| import sys | |
| from bs4 import BeautifulSoup | |
| # Check if a file was provided as a command line argument | |
| if len(sys.argv) < 2: | |
| print("Please provide an HTML file as a command line argument.") | |
| sys.exit(1) |
I recently happened upon an implementation of popen() (different API, same idea) using clone(2), and so I opened an issue requesting use of vfork(2) or posix_spawn() for portability. It turns out that on Linux there's an important advantage to using clone(2). I think I should capture the things I wrote there in a better place. A gist, a blog, whatever.
So here goes.
Long ago, I, like many Unix fans, thought that fork(2) and the fork-exec process spawning model were the greatest thing, and the Windows sucked for only having [exec*()](http://pubs.opengroup.org/onlinepubs/9699919
| import os | |
| import pickle | |
| import warnings | |
| import numpy as np | |
| import pandas as pd | |
| from sklearn.model_selection import train_test_split | |
| from tensorflow.keras.callbacks import EarlyStopping | |
| from tensorflow.keras.layers import Dense | |
| from tensorflow.keras.layers import Dropout |
A list of useful commands for the ffmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
Picking the right architecture = Picking the right battles + Managing trade-offs
- Clarify and agree on the scope of the system
- User cases (description of sequences of events that, taken together, lead to a system doing something useful)
- Who is going to use it?
- How are they going to use it?
| 1001 Albums You Must Hear Before You Die | |
| List taken from then book edited by Robert Dimery. | |
| Missing from the list: | |
| Machito - Kenya 1957 | |
| Jack Elliot - Jack Takes The Floor 1958 | |
| Dolly Parton - Coat Of Mahy Colors 1971 | |
| George Jones - The Grand Tour 1974 | |
| R.D. Burman / Bappi Lahiri - Shalimar / College Girl 1975 |