Intro to Docker Images, Containers

First, these terms mean the same in the docker world: Image, Docker Image, container image and OCI (Open Container Initiative) image. Build time vs Run Time In a typical production cloud deployment, your registry and machines sit in the cloud.While DockerHub is the default registry, there are many options with cloud providers.With the simple case…

Before Docker

Imagine a fresh linux installation. You may want to run a program.A program is a file on a disk. A process is a running instance of that program. Why do we want isolation?Security, Fault containment, Multi-tenancy Step 0: chroot: first steps towards IsolationOne of the oldest isolation tools in Linux is chroot, which changes the…

iOS Speech Recognition (SFSpeechRecognizer)

The iOS Speech framework provides functionality to convert audio to text. This audio can be real-time or pre-recorded. Transcription models are hosted on device with more powerful ones available from Apple servers. How does it work with real time audio? For audio you need to import AVFoundation Flow: Microphone → AVAudioEngine (captures) → Audio Buffers…

Django S3 Pre Signed URLs

How much memory does my server use uploading files? Say you are creating a voice recording app and a user records 30 minutes audio clip and sends it to your django server. How much system memory do you eat up? The browsers media capture will record in its favored compressed audio format and send about…

Creating a dotfiles repo

Your zshrc on one computer is different than the next. Don’t do that. Create a repo called “dotfiles” and put your zshrc, vimrc, and other quality of life dot files into a version controlled home. Now when you make improvements, you can pull down and iterate on every computer.