My recent side-project vindex is a semantic video indexing platform. Users upload videos that then run through a multi-step processing pipeline to prepare and index them. Finally, users can search specific locations in the video using natural language. The processing pipeline involves extracting frames, extracting audio, transcribing audio and computing various embeddings for the index. I’m using…
Using Pipenv with Visual Studio Code (VS Code) Run pipenv --venv in the root directory of your pipenv project. It will return something like /Users/[username]/.local/share/virtualenvs/[project]-[random_string] on Mac. Put this path into the .vscode/settings.json file of your project: { "python.defaultInterpreterPath": "[PATH_GOES_HERE]", }
GHC9.x Install on M1 mac Preqs: brew install llvm@13 Add to path export PATH="/opt/homebrew/opt/llvm@13/bin:$PATH" Install via GHCup Fix ffitarget_arm64.h not found on M1 Mac fatal error: 'ffitarget_arm64.h' file not found Fix: C_INCLUDE_PATH="`xcrun --show-sdk-path`/usr/include/ffi" stack build --fast --pedantic See also issue 20592
Sharing files between app and app extension Need to enable App Groups (see the Capabilities of the app) and add a group extension. let groupDocumentPath = FileManager . default . containerURL ( forSecurityApplicationGroupIdentifier : "group.your.group" ) ! // ...
Localhost cookies not working? Omit domain and sameSite when setting localhost cookies during development – the browser will ignore the cookie entirely if set.
Create user & database Depending on your setup, might need to run sudo su -u postgres first. createuser <user> createdb <db> psql -c "grant all privileges on database <db> to <user>;"
xcrun: error If running into xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun while doing e.g. git status (especially after a MacOS update), re-run xcode-select --install or sudo xcode-select --reset . changing the name of an app After changing the display name of an app, the app might no longer…