Bookmark
Python Practical Package Packing 2024
https://matt.sh/python-project-structure-2024, posted 19 Jul by peter in development howto python reference toread
requirements.txt
(or “requirements insetup()
call”) is not a valid way to manage dependencies — and it hasn’t been for the past 5+ years. If you are still usingrequirements.txt
it shows you need professional help. luckily, i’m a professional.Let’s go over some bad / good / example practices for living your best python life in 2024.
Bookmark
What is a Vector Database & How Does it Work? Use Cases + Examples | Pinecone
https://www.pinecone.io/learn/vector-database/, posted 17 Jun by peter in ai development reference storage toread
A vector database indexes and stores vector embeddings for fast retrieval and similarity search, with capabilities like CRUD operations, metadata filtering, horizontal scaling, and serverless.
Bookmark
How to think about HTML responsive images
https://danburzo.ro/responsive-images-html/, posted 9 Apr by peter in css development graphics howto html reference webdesign
Here’s how I made sense of responsive image content, progressing from simpler to more complicated — and then back to simple.
Bookmark
What I wish I’d known about Yocto
https://docs.yoctoproject.org/what-i-wish-id-known.html, posted 5 Apr by peter in development documentation linux reference
Using the Yocto Project is fairly easy, until something goes wrong. Without an understanding of how the build process works, you’ll find yourself trying to troubleshoot “a black box”. Here are a few items that new users wished they had known before embarking on their first build with Yocto Project. Feel free to contact us with other suggestions.
Bookmark
Arkivering digitalt eller på papper – vad gäller?
https://www.bjornlunden.se/digitalisera-f%C3%B6retaget/arkivering-digitalt-eller-p%C3%A5-papper--vad__516, posted Jan '24 by peter in business inswedish reference
Enligt bokföringslagen ska räkenskapsinformation arkiveras (sparas) i sju års tid – och i den form den hade när den kom till företaget. Får exempelvis ett företag in material på papper ska det också arkiveras på papper och har det kommit in elektroniskt ska det arkiveras elektroniskt. Det går däremot inte att skanna in pappersfakturor och sedan slänga fakturorna när allt är inskannat. Man får inte heller skriva ut elektroniska fakturor och sedan bara arkivera dem på papper, de måste även arkiveras digitalt.
Väljer du att skanna in en pappersfaktura säger dock bokföringslagen att du bara behöver arkivera pappersfakturan (originalet) i tre år och den inskannade kopian i sju år.
Bookmark
Kiwix
https://kiwix.org/en/, posted Dec '23 by peter in android free linux reference software storage
Store any website on your mobile phone or computer, easily.
Bookmark
What to read to become a better writer
https://www.economist.com/the-economist-reads/2022/09/09/what-to-read-to-become-a-better-writer, posted Dec '23 by peter in howto list reference toread writing
Yes, writing is hard. But if you can first grasp the origins and qualities of bad writing, you may learn to diagnose and cure problems in your own prose (keeping things simple helps a lot). Similarly heartening is the observation that most first drafts are second-rate, so becoming a skilled rewriter is the thing. These five works are excellent sources of insight and inspiration.
Bookmark
Håll dem stången — Institutet för de inhemska språken
https://www.sprakinstitutet.fi/sv/publikationer/sprakspalter/reuters_rutor_1986_2013/2010/hall_dem_stangen, posted Jul '23 by peter in inswedish language reference sweden
Det svenska uttrycket, liksom dess tyska förebild ”einem die Stange halten” har enligt Svenska Akademiens ordbok två olika ursprung, med från början lite olika betydelse. I det första fallet avser stången en lans eller motsvarande, och uttrycket bygger på att första ledet i en äldre stridsordning hade lansar som vapen som de höll mot fienden — och så länge de höll fienden stången kunde fienden inte ta sig framåt. Det andra fallet bygger på att skiljedomaren vid en medeltida tvekamp skilde de stridande åt med en stång när den ena parten gav upp och förklarade sig övervunnen. En numera utdöd variant av det uttrycket var ”hålla stången rätt emellan (två personer)”, med betydelsen ’medla på rätt sätt’.
Bookmark
The A to Z of economics
https://www.economist.com/economics-a-to-z?etear=nl_special_1, posted Mar '23 by peter in finance list reference
Economic terms, from “absolute advantage” to “zero-sum game”, explained to you in plain English
Bookmark
Git - git-worktree Documentation
https://git-scm.com/docs/git-worktree, posted 2022 by peter in development documentation howto reference versioncontrol
In its simplest form,
git worktree add <path>
automatically creates a new branch whose name is the final component of<path>
, which is convenient if you plan to work on a new topic. For instance,git worktree add ../hotfix
creates new branchhotfix
and checks it out at path../hotfix
. To instead work on an existing branch in a new worktree, usegit worktree add <path> <branch>
. On the other hand, if you just plan to make some experimental changes or do testing without disturbing existing development, it is often convenient to create a throwaway worktree not associated with any branch. For instance,git worktree add -d <path>
creates a new worktree with a detachedHEAD
at the same commit as the current branch.If a working tree is deleted without using
git worktree remove
, then its associated administrative files, which reside in the repository (see "DETAILS" below), will eventually be removed automatically (seegc.worktreePruneExpire
in git-config[1]), or you can rungit worktree prune
in the main or any linked worktree to clean up any stale administrative files.