Один из самых удобных способов записать данные это использование готовых форматов, такие как JSON или YAML.
Из плюсов такого подхода стоит отметить вот что:
🔸 готовый, повсеместно используемый и поддерживаемый формат
🔸 простой и понятный файл, удобочитаемый для человека
🔸 можно легко редактировать в любом текстовом редакторе без специальных программ и библиотек
Но есть и минусы
🔹 затраты времени при записи файла (кодирование данных в нужный формат строки)
🔹 затраты времени при чтении файла (декодирование данных в Python объекты)
🔹 размер файла увеличивается из-за разметки данных (скобки, запятые, переносы, отступы...)
🔹 перед записью все данные должны быть помещены в память в полном объёме (не всегда)
🔹 при чтении необходимо считать весь файл в память и только потом декодировать данные
Если нужно писать немного данных в несколько файлов, то затраты по времени не ощутимы. Обычно это файлы конфига или какие-либо метаданные. Это отличный вариант под такие задачи.
Есть и другой поход к записи файлов - это бинарные файлы. Используется, когда данных достаточно много и никто их не собирается читать глазками😳.
🔸 очень быстрая запись
🔸 чтение значительно быстрей чем JSON, YAML итд
🔸 размер файла значительно меньше, так как нет разметки
🔸 можно записывать данные по мере поступления не загружая всё в память
🔸 можно извлечь любую часть данных независимо
Из минусов
🔹 нужно определить свой формат записи данных (если не используете готовую спецификацию определённого формата)
🔹 не получится открыть файл и визуально понять что там записано, а для чтения файла потребуется знать его спецификацию.
🔹 не так-то просто создать такой файл без специальной библиотеки
В таком виде удобно записывать большой массив любых однородных данных. Например, мониторинг валютной биржи или кэшированная анимация 3D геометрии.
(Это не означает что нельзя записать данные разного типа, просто это будет не так удобно)
Представьте себе JPG-картинку. По сути это немного мета-информации и большой массив пикселей. Тоже самое со звуком или видео файлом. Поэтому, если вы попробуете открыть картинку в текстовом редакторе вы увидите что-то вроде такого
f15d cd29 a564 4578 ...
09e2 9bc4 a696 1253 ...
84e9 4de1 3b23 c24a ...
2534 5161 28e0 709d ...
...
Это и есть записанные байтики. И для их чтения требуется определённый софт который знает что с ними делать. Под каждый тип файла.
К чему это я? Читайте в следующем посте...
#tricks#basic
We already have a list of open-source alternatives to mainstream social media platforms like Twitter.
Take a look 🕵️♀️
https://itsfoss.com/mainstream-social-media-alternaives/
@itsfoss_official
#alternatives#social
Here are some links about #systemd#alternatives for #Linux in no particular order.
Which are your favorite alternatives and distros?
https://wiki.gentoo.org/wiki/Comparison_of_init_systems
https://suckless.org/sucks/systemd/
https://unixsheikh.com/articles/the-real-motivation-behind-systemd.html
https://sysdfree.wordpress.com/
https://nosystemd.org/
https://skarnet.org/software/systemd.html
https://the-world-after-systemd.ungleich.ch/
https://ewontfix.com/14/
https://forums.debian.net/viewtopic.php?t=120652
https://www.devuan.org/os/announce/
https://www.devuan.org/os/init-freedom
https://thehackernews.com/2019/01/linux-systemd-exploit.html
https://judecnelson.blogspot.com/2014/09/systemd-biggest-fallacies.html
https://chiefio.wordpress.com/2016/05/18/systemd-it-keeps-getting-worse/
https://systemd-free.artixlinux.org/why.php
Some more added here too: https://start.me/p/Kg8keE/priv-sec
#systemd#Linux
NewPipe Releases (unofficial) - NewPipe's GitHub releases
The APK sent here cannot be installed over F-Droid's one because they use different signing keys (details)
This pull request adds an experimental SponsorBlock integration, the fork's apk is linked there
👉🏼https://t.me/newpipe_releases👈🏼
💡 read this as well: YouTube video hosting alternatives
https://t.me/NoGoolag/2284
#newpipe#youtube#alternatives
📡@libreware📡@nogoolag
@NoGoolag#browser#alternatives with mitigations, patches etc.
Alpha version release March 6, 2025
FireFox browser options
- Tor Browser (all)
- Mullvad Browser (Desktop)
- IronFox (Android) Read the Known Issues section on the gitlab.
- LibreWolf (mentally ill devs)
Make your own #Firefox with mitigations etc...
- Phoenix / wiki
- Arkenfox user.js / wiki / gui / user-tool / mobile
- Narsil / Narsil Mobile
- Betterfox / Betterfox Mobile
- pyllyukko
- Compare some of the user.js files
Chromium based browser Options
- Ungoogled Chromium (all)
- Cromite (Android, Linux, Windows)
Browser extensions
- uBlacklist
- uBlock Origin or uMatrix (never both)
- LibRedirect (setup your instances for each service in the settings)
Links to block lists...
- Yokoffing
- Celenity/Phoenix
- FilterLists
Set your default search engine to a search proxy
- 4get instances
- Searx instances
Why your favorite browser is not recommended
- Celenity Firefox browser comparisons
- How to choose a browser for everyday use?
- is your browser spyware?
- Choose your browser carefully
- Browsers and the connections they make compared
- Fake Privacy and security
Additional reading...
- Wiki about extensions
- Multiple Extension Conflicts
- uMatrix for beginners
- Firefox user.js install guide
- Arch Linux Firefox Privacy wiki
- Bromite (for knowledge purposes)
Testing your browser
- Fingerprint.com
- How to test browsers for spyware
- Privacytests browser comparison
- Mullvad check
- Bromite fingerprint testing
- IP Leak
- List of test sites A
- List of test sites B
* Thunderbird users should consider taking a look at Dove - Phoenix's sister project.
A list of software #alternatives and resources for professional #audio#video and live events production on #Linux
https://gitlab.com/nodiscc/awesome-linuxaudio
https://github.com/nodiscc/awesome-linuxaudio/releases/tag/1.0.0
Keeweb : Free Cross-Platform Password Manager Compatible With KeePass.
Keeweb webapp is a browser and desktop password manager compatible with KeePass databases. It doesn’t require any server or additional resources. The app can run either in browser, or as a desktop app.
The app is quite stable now. Basic stuff, as well as more advanced operations, should be rather reliable.
https://github.com/keeweb
#keepass#passwords#alternatives
📡@cRyPtHoN_INFOSEC_EN
The best free Audacity Alternatives
https://www.ghacks.net/2021/07/04/the-best-free-audacity-alternatives/
All alternatives listed below lack at least one of the main characteristics of Audacity. They are either only available for one operating system, e.g. Windows, not open source, don't offer the same set of core features, or lack in other departments.
Audacity Forks
Audacity is an open source project, and developers started to fork the application as soon as the announcement hit the Internet that the project team changed.
Forks match all main characteristics of Audacity, but there is no "main" fork yet that all disgruntled developers and users switched to.
Here is a link to a promising forks (because it is updated regularly)
https://github.com/cookiengineer/audacity
Another
https://github.com/SartoxOnlyGNU/audacium
📡@nogoolag📡@libreware
#alternatives#audacity#audio#editor
This is the best search engine for current events and history
Clip Genie - Grand Theft World
https://grandtheftworld.com/clip-genie
https://gtw.clipgenie.com
Another search engine:
https://corbettreport.com
#Google#search#engines#alternatives
Adobe just announced new terms that say they will do whatever they want with your content, so here are some alternatives to consider.
3DS Max
Blender
Acrobat
Evince (read)
Inkscape (edit multi page)
LibreOffice_Draw (create, edit, sign)
LibreOffice_Writer (create)
Nextcloud LibreSign (sign)
Okular (read, annotate, sign)
OnlyOffice (read, edit)
PDF-Shuffler (merge, arrange, delete)
XReader (read)
AdobeXD
Akira
Figma
Lunacy
Pencil
Penpot
After Effects
Astrofox (audio responsive animations)
BlackMagicDesign Fusion (proprietary)
HitFilm (proprietary)
Natron
Animate
Blender (3D)
Friction
Glaxnimate (2D)
Synfig (2D)
Audition
Tenacity
Audor
LMMS
Cinema 4D
Blender
Fresco
Krita
Illustrator
Inkscape
Krita
sK1
InDesign
Lyx
Scribus
Lightroom
Darktable
Raw Therapee
Paint
Krita
MyPaint
Photoshop
GIMP
Krita
PremierePro
DavinciResolve (proprietary)
Kdenlive
Olive Video
OpenShot
Pitivi
Shotcut
⚡️Follow Freedom Tech on NOSTR
https://t.me/LinuxTechIndex
#graphic#editor#Adobe#Alternatives