Как я писал тусобота на Python: от идеи к работающему коду
Нейропомощников появилось превеликое множество и применение у них самое разное. Повсеместно начинаю замечать, что многие коллеги и друзья, так или иначе, пользуются текстовыми помощниками. Мне захотелось не просто рассмотреть эти технологии, но и сделать что-то полезное для себя — чтобы помогало в повседневной жизни. Меня зовут Михаил — я разработчик компании БАРС Груп. В этой статье расскажу, как родилась идея бота для поиска тусовок в городах России, с какими проблемами я столкнулся и к чему пришел.
https://habr.com/ru/companies/barsgroup/articles/934660/
#боты_для_мессенджеров #мессенджеры #программирование #python
Marmite! The static blog generator written in #Rust is now available on the #Python Package Index.
https://pypi.org/project/marmite/
pip install marmite
or uvx marmite will get you a full feature blog with zero config required!
I think I will just turn off code suggestions in Zed. It's becoming pretty annoying!
#ai #coding #zededitor #zed #golang #python #llm
When I want a puzzle, I go to HackerRank, LeetCode, etc. I try to solve them relatively compactly…
```
import string, sys
print(*list(map(lambda u: 'Valid' if (len((u := set(u.strip())) & alphanum) == 10 and len(u & upper) >= 2 and len(u & digit) >= 3) else 'Invalid', [(upper := set(string.ascii_uppercase)), (digit := set(string.digits)), (alphanum := set(string.ascii_letters + string.digits)), (N := int(input())), sys.stdin.readlines()[:N]][-1])), sep='\n')
```
Last week's US jobs report significantly reduced the estimates from previous months, leading to the firing of the head statistician.
In the latest Bamboo Weekly, we examine the government's data, calculating these changes ourselves. Were these the biggest-ever downward revisions?
Improve your #Python #Pandas skills every Wednesday with new, real-world data-analysis problems: https://BambooWeekly.com

Nice idea. Easily create HTML from Python code with https://htpy.dev
The one thing I don't like about it is that it doesn't generate XHTML, i.e. no self-closing tags and stuff. Not sure whether that's a dealbreaker for me or whether I should just finally stop my 2000s webdev attitude.

pytest fixtures nuts and bolts - revisited
https://pythontest.com/pytest-fixtures-nuts-bolts-revisited/
A series on pytest fixtures gets an update
- posts split into one concept each
- made sure all of the info was correct for modern versions of Python and pytest
- examples reran to make sure output is correct
#Python #pytest
Nuovo passo per l'epopea "connessione SFTP via python".
Ho correttamente caricato un file (e segnalato via mail la cosa per evitare casini), ora devo capire come impostare il tutto per metterlo in produzione al posto di quello schifo in powershell che si rifiuta di loggare alcunché.
Understanding and debugging Data Structures is easier when you can see the structure of your data using memory_graph: https://github.com/bterwijn/memory_graph
Here we show values being added to a Linked List in Cursor AI. When adding the last value '5' we "Step Into" the code to show more of the details: https://raw.githubusercontent.com/bterwijn/memory_graph/main/images/linked_list.gif
🎥 See the Quick Intro video for the VS Code integration: https://youtu.be/23_bHcr7hqo
#Python #LinkedList #DataStructure #memory_graph #debug

Unoptimised order of events:
1. Write clever #python util to transpose csv output of a command line program.
2. Read man mages for said program to solve unrelated problem.
3. Spot that program has optional argument `--transpose`.
🙃
Kudos for the communication work that @riecatnor is doing for the PSF and #python community. Not all posts are fun or easy to write, and it speaks volumes to put your name on it. Thank you!
Today, we took a closer look at the new OpenAI models and training methods. They seem promising, but their local use still needs to prove itself: https://cusy.io/en/blog/openai-open-weight-models.html