“There is one feature of self-documenting expressions that I really appreciate: you can put spaces around the equal sign to make the result a little bit more readable.”
Read more 👉 https://pym.dev/debugging-with-f-strings/
Have a #Python #Pandas series with datetime values, and want all those until now? Compare with pd.Timestamp.now():
df.loc[ pd.col('when') < pd.Timestamp.now() ]
This returns the rows from df where the "when" column is before now.

#TIL: There is a UK Ministry of Justice #PyPi account: https://pypi.org/user/ministryofjustice/
Discovered because I was wondering if there is a #Python library for UK public holiday data, as want something that updates itself really, and ideally isn't some sort of live API (which would be daft)... I mean, probability is fairly high we'll have some random extra one sooner rather than later when Charlie pops his clogs.
There is such a library, and the Minstry of Justice is one of its maintainers: https://pypi.org/project/govuk-bank-holidays/
Whodathunkit... (assuming this is a real official account.)
#Anthropics #Claude hat völlig autonom einen Root-Exploit für #FreeBSD gebaut. In exakt vier Stunden. Wir reden hier nicht von einem simplen "Schreib mir ein #Python-Skript"-Prompt, sondern von echtem, iterativem #hacking Das Modell hat die #Schwachstelle im Netzwerk-Login gefunden, sich selbständig ein Lab hochgezogen, den #Payload smart in mehrere Pakete gesplittet und den eigenen Code knallhart gedebuggt, wenn der erste Versuch gecrasht ist.
Der ganze Bericht unter

How to Use rpartition to Split From the Right
rpartition splits on the LAST occurrence. Perfect for filenames. One call. No regex. Nobody uses it.
#python #rpartition #split #string #howto #oneliner
https://www.youtube.com/watch?v=tYohVygO3-0
Animacion 3D mostrando deformacion de rejilla
La fuerza de cizalla empuja las capas superiores de un cubo de goma mientras la base queda fija
#python #numpy crecimiento #STEM
software sostenible soberania #Anzoategui #Lecheria
Scales of Justice
You are the Lady of Justice and you must keep the Serpent from rising up and corrupting your Python code-base.
Game Link: https://blackcatwhitehatsecurity.com/theGame11.cfm
#CyberSecurity #PowerShell #ColdFusion #AI #Networking #SQL #Cloud #GRC #Gaming #Technology #Python #ZeroTrust

We are pleased to announce Quarto 1.9 ✈️
New features for #RStats, #Python, and #JuliaLang users include Posit Connect Cloud publishing, PDF accessibility (PDF/A & PDF/UA), brand asset synchronization, enhanced #Typst support, list table syntax, and #LLM -friendly output.
Learn more: https://quarto.org/docs/blog/posts/2026-03-24-1.9-release/
I'm writing Python and I'm not a Python person.
I have a need to get a Unix timestamp of a time that is an arbitrary number of days ago.
In PowerShell, you can do something like this:
PS > Get-Date -Date (Get-Date).AddDays(-30) -UFormat %s
In Python, this is the best I came up with and it is ugly:
import re
import datetime
`int(re.split('\\.',str((datetime.datetime.now(datetime.UTC) - datetime.timedelta(days=30)).timestamp()))[0])`
That was from me reading module documentation and hacking away at it for a bit.
Surely, there is a better way.
I'm interfacing with an API that only takes datetime in Unix Time format and only down to the second in precision.
#Python #DateTime #UnixTime #EpochTime
PSF Security developers have published incident reports on the LiteLLM & Telnyx #supplychain attacks. Read what happened, who's affected, and what developers & maintainers can do to prepare and protect themselves from future incidents. #security #python
https://blog.pypi.org/posts/2026-04-02-incident-report-litellm-telnyx-supply-chain-attack/
So Where Are All the AI Apps?, by @algal.bsky.social and @rensd.bsky.social:
https://www.answer.ai/posts/2026-03-12-so-where-are-all-the-ai-apps.html
#ai #dependencies #python #metrics
RE: https://mastodon.energy/@catalystcoop/116296109267609315
Last week, we told you there was one week left. Now, merely one week later, there are fewer than 48 hours left to apply to our data lab! Click the link! Apply! https://bit.ly/catalyst-data-lab
#Energy
#OpenData
#Electricity
#OpenSource
#Python
#Education