Developing a #Python application for a #RaspberryPi. Need to write to an #EEPROM to update some state information without human intervention.
Unless there's some way I've missed to make the files for all 1-wire devices (dynamically added at runtime) more open than root:root / rw-r--r--, I'm going to need root access just so I can write this data.
It's made me think about writing some C for the first time in 30 years, just a short #program that only accepts two parameters: the EEPROM id and the data I want to write. That way I can limit additional #root access to suid on a very restricted tool.
Is this just stupid? Obviously, I can add myself with NOPASSWORD to /etc/sudoers and go about my life. The device has nothing insecure on it, so I can't see any harm from doing the sloppy thing. But it still feels wrong.
Приложение на коленке! Почему Vial и QMK — шляпа?
Привет, Хабр! В прошлой статье я подробно рассказал про свою макрос-клавиатуру: про железо, характеристики и немного затронул ваши комментарии 🙂 ссылка на статью И теперь пришло время рассказать про софт. Почему лично для меня софт — это очень важная часть клавиатуры . Я считаю что , как бы хорошо была собрана макрос-клавиатура, без нормального и удобного софта она остаётся просто набором кнопок. Да, удобным, но всё равно ограниченным. Ведь именно в софте ты видишь фирменный стиль, графику и подход к деталям, шрифты и фирменные цвета. Это первое, с чем пользователь взаимодействует осознанно. Даже в магазине, выбирая пакет молока, мы в первую очередь смотрим на дизайн упаковки — часто вообще подсознательно. И если дизайн «так себе», появляется ощущение, что и само молоко будет таким же. Если на упаковке сделали всё спустя рукава, то и на производстве, скорее всего, не заморачивались. Не факт конечно! но ощущение возникает именно такое. С софтом всё работает точно так же. Он либо вызывает доверие и желание работать дальше, либо сразу оставляет чувство «ну такое».
https://habr.com/ru/articles/992732/
#Макросклавиатура #DIY #QMK #VIA #Python #GUI #Дизайн_интерфейсов #Опыт_разработки #Мнение #Создание_гаджетов
Flickr Backup Automation and Video Export
Reading Time: 2 minutesLet's begin by saying that Flickr is not intended for video. It's meant for photographers to backup and share their photos with like-minded individuals. When you use the Flickr app for iOS and Android it automatically backs up videos, and photos.
After some trial and error I was able to get the exif data attached to photos and then sorted chronologically into folders. In the process I noticed that almost 10,000 files were missing when the transfer was finished. The reason for this is that they were video files.
Quick Breakdown
When I tried to add exif data to these files, I failed. I sorted them into three categories instead:
Scale of the Issue
Whatsapp, Flickr and other apps strip exif data from photos. The result is that, after many years of taking and sharing videos you end up with 9700 ghost or orphan files that have the day they were shared or an archive was created as their creation date. If I was to import these files I would have over 9000 video files for the day the archive was created.
Whilst this is a bug, it is also a feature. It's a bug because when I experimented with importing photos to Flickr from Google Photos I ended up with thousands of photos in a single day. Luckily it was easy to select and delete all of them.
The Alternative Solutions
When you use Google Takeout to export photos they might be missing their exif data but they are organised by year, month and day, so if you have difficulties with re-attaching exif data with the json files, which are stored along with the photos and videos, then you can use the folder hierarchy to roughly sort media assets ahead of being more thorough, weeks or months later.
And Finally
Getting data from JSON files to photo files was complicated but getting that JSON data to videos took an extra step. That extra step was to match the video file names to photo filenames, and then match the photo file names to JSON information, before moving the JSON data back to the video files.
Summary
Conclusion
Whilst backing photos up from Android and iOS is automatic, don't rely on it for video. For video kDrive is better because it doesn't strip exif data. I would see Flickr as a backup backup for video. it's a backup solution on top of your primary offsite backup solution.
p.s. I'm not certain the solution worked, at the time of posting.
#AI #exiftool #flickr #JSON #Python #vibeCoding
For the past 16 years there is a #Python module which always seems to pull through and be the difference between a gnarly quick script and the foundation of a useful a reliable tool. That module is fabric by @bitprophet
The amount of beers or coffees I owe you could serve a stadium at this point.
Как мы помогали Стэнфорду следить за акулами
Вот что для этого понадобилось: бэкендеры — 2 штуки, фронтендер — 1 штука, дизайнер — 1 штука, мобильный разработчик — 1 штука, время — 2 учебных семестра. Продолжаем рассказывать об интересных проектах студентов Контура. В этот раз речь пойдёт о приложении для интерактивного мониторинга белых акул по заказу Стэнфордского университета. 🦈 В статье ребята рассказали, какие возможности реализовали внутри приложения, какой стек технологий выбрали и что за сложности случились на фронтенде и бэкенде.
https://habr.com/ru/companies/skbkontur/articles/992662/
#разработка_мобильных_приложений #python #django #flutter #stripe
Python Community on Stoat – beginners welcome!
Join: https://
stoat.chat/invite/QB3W68rE
🐍
I just created a small Stoat server – perfect for beginners and anyone who wants to learn Python or share small projects.
🔹 Calm, helpful community
🔹 No rude comments, fully moderated
🔹 German/English/Hindi/Portuguese/..-speaking, open to everyone
#Python
#Coding
#Programming
#Stoat
#PythonLearning
#Community

"Django security releases issued: 6.0.2, 5.2.11, and 4.2.28"
https://www.djangoproject.com/weblog/2026/feb/03/security-releases/
Python Community on Stoat – beginners welcome!
Join: https://
stoat.chat/invite/QB3W68rE
🐍
I just created a small Stoat server – perfect for beginners and anyone who wants to learn Python or share small projects.
🔹 Calm, helpful community
🔹 No rude comments, fully moderated
🔹 German/English/Hindi/Portuguese/..-speaking, open to everyone
#Python
#Coding
#Programming
#Stoat
#PythonLearning
#Community

German Python Community on Stoat – beginners welcome!
Join: https://stoat.chat/invite/QB3W68rE
#Python #Coding #Stoat #PythonLearning

Антипаттерны в Python, которые пишут почти все
Python позволяет писать код быстро и без лишнего шума, но эта же особенность часто приводит к появлению решений, которые со временем усложняют поддержку проекта. Многие антипаттерны выглядят нормально на первый взгляд и встречаются даже у опытных разработчиков. В статье разобраны распространенные примеры такого кода и объясняется, к каким последствиям они приводят на практике.
https://habr.com/ru/articles/992694/
#python #антипаттерны_python #исключения #исключения_в_python
Calling Lean functions as Python functions. ~ Philip Zucker. https://www.philipzucker.com/leancall/ #ITP #LeanProver #Python
Mais WTF ! C'est tellement improbable comme chaîne d'événement ! 😅
> A compromised dependency in the #JavaScript ecosystem led to credential theft, which enabled a supply chain attack on a #Rust compression library, which was vendored into a #Python build tool, which shipped malware to approx. 4 million developers before being inadvertently patched by an unrelated cryptocurrency mining worm.
https://nesbitt.io/2026/02/03/incident-report-cve-2024-yikes.html
Et tout ça est parti d'un chien nommé Kubernetes qui a bouffé une YubiKey ! 😂