Pythonic coding conventions
In PEP 8, from The quick python book.
A paper conical #sundial
From the Sun's altitude and azimut, this sundial derives solar time, & the place on the map where the Sun is directly overhead.
Here its approx.4:20pm local solar time ; the Sun is approaching the Brazil-Bolivia border.
The diurnal arcs crossing the hour lines are the shadow's paths on the 21st of each month (approx). These lines also tell the sunrise/sunset times where they join the cone's rim.
Made with a #Python script.
Besides the usuals gnomonic calculations, I also needed a bit of #math for the developped truncated cone (called a 'frustum' !), and some #cartography work to project the coastlines and borders on the curved surface.
Script free to download and use:
https://tinyurl.com/383u9n8z

[blog] writing to linked tables in a transaction https://recology.info/2025/10/database-writing-linked-tables/ #python
For those ones who missed this documentary recently :
'Python: The Documentary ~ An origin story'
https://www.youtube.com/watch?v=GfH4QL4VqJ0
New rtcirqus 0.2.1 release. Fixed an error with sorting the list of IRQs that are used for Message Signaled Interrupts (MSI).
https://codeberg.org/autostatic/rtcirqus
#LinuxAudio #rtcirqus #Linux #Python
Cocotb version 2.0
https://linuxfr.org/news/sortie-de-cocotb-version-2-0-0
#Cocotb #fpga #python #vhdl #verilog #systemverilog
@tartley Personally I've never liked that view that uv is the future of #Python packaging. I would say the future is standards, and uv just happens to be a particularly convenient implementation of those standards. But there will always be other tools that do the same thing, too.
(But +1 to your thread aside from that slight nitpick!)
#Python
#Flask web development detail:
If you change data in a nested structure in your `session` object you might need to set
`session.modified = True`.
(I took me quite a while for debugging.)
This is the tricky thing to seemingly self-explaining frameworks: They are 95% self-explaining and 5% secret must-know insider knowledge... 😉
How to merge dictionaries in #Python using 3.9 or greater

S1 EP5 T6 - Machine Learning in Python Not Everything is a Data Frame #learntocode #jupyternotebook #python #mathematics #linq #softwareengineer #vscode #artificialintelligence #jupyterlabs #codingbasics #datascience #dataengineering #visualstudio #statistics #coding #computerscience #algorithims #softwaredeveloper #machinelearning #sql
Any Software Engineers looking for work: please check out this open position at Uplight.
https://jobs.jobvite.com/uplight/job/oi8Iyfwq
#FediHire #energyindustry #python #rubyonrails #kubernetes #decarbonization
Boost for visibility!
So, threw a #python script together for a education task i have to hand in. Simple file encryption program.
Totally dependent on pycryptodome, tried at first with pycrypt but noone told me that it had not been updated for a long time. Plenty of pycrypt code examples around, and many of them doesn't work.
Anyway, about python packages, it sucks having to install these for every script you write, also they are treated like system packages(!) and can cause lots of problems, there is a handy switch for pip called --break-system-packages if you want to shoot yourself in the foot.
This is not how things work in real language development (.NET languages, C++ etc), as in you can include the libraries you refer to inside your project, either as an external dependency (like a .dll) or include it in your executable (like a .NET AOT compiled file).
I REALLY don't like python for this reason, feels like the user has to put legos together before they can use something, but i guess Linux people are used to that...