A form including the fields `username` and `password` & #python script checks, if username and password have been submitted. If either one is missing, it throws an error message. Working as it should.
When I add another field named `invite` to the form and also the check, whether it's been submitted also, to the python script, the check is completely ignored.
```
if not request.form.get("invite"):
flash(u'Missing invite code.', 'warning')
return render_template("register.html")
```
Python Snapshot: Stop Missing Trick Format
Python Snapshot: Stop Missing Trick Format This content explores interesting aspects of this topic. The information provided offers valuable insights and perspectives. Understanding this reveals how everyday things are more thoughtful than they appear. Next time you'll notice this detail. This fascinating detail shows how much thought goes into things we take for granted.
#python #coding #programming #ju...
https://www.youtube.com/watch?v=00O7YpS1CP8
More tweaking with Toad and Claude. Hopefully fixed sound on Windows. 🤞
Count down to New Years 2026.
https://pysdr.org/_images/fft_logo_wide.gif
Just released! 🚀
stravavis 0.6.0: create visualisations of Strava activities
* add option to select visualisations/allow --bbox as file/support 3.13-3.14/drop 3.9
https://github.com/marcusvolz/strava_py/releases/tag/v0.6.0
termcolor 3.3.0: ANSI formatting for the terminal
* add italic/fix error handling
https://github.com/termcolor/termcolor/releases/tag/3.3.0
pylast 7.0.1: A Python interface to Last.fm
* fix type hints
https://github.com/pylast/pylast/releases/tag/7.0.1
#Python #release #stravavis #termcolor #pylast

Just got my first #3DPrinter and started designing with #SolidPython - it's amazing to see #Python code turned into something physical.
#ClaudeCode has been very helpful.
Here's a cable organiser box I made, it's based on https://www.printables.com/model/146721-cable-management-box, but fits my needs better

⏰ Last call! Nominate an Outstanding PyLady 💜🐍
Nominations close Dec 31 — open to women & non-binary PyLadies (self-noms welcome!).
🎥 Get inspired by past winners:
https://youtube.com/playlist?list=PLOItnwPQ-eHwQ_lZ8FifjtvrCLY_lbUBy
#PyLadies #Python #WomenInTech #NonBinaryInTech

#python #MathSky #mathematics #maths
#python #MathSky #mathematics #maths
DevOps Python Supply Chain Security: https://mkennedy.codes/posts/devops-python-supply-chain-security/
Python Supply Chain Security Made Easy: https://mkennedy.codes/posts/python-supply-chain-security-made-easy/
This radar scheduling thing is dominated by a Knapsack Problem with a dash of Traveling Salesman to keep from wearing out hardware/looking dumb.
I think I have a workable solution to each of these now.
It took a little while to get the TSP portion to behave usefully. It's funny, because you'd think getting a "feasible" solution would be easier than an optimal one. But in terms of software it's much more difficult--you have to define "feasible".
The TSP-relevant tasks are the GEO satellite belt. These objects are spread out in a mostly-linear ~150deg azimuthal band that is somewhat clustered. You might have 5 objects within a degree of each other and then nothing for 3 degrees.
Inside these clumps, I don't care about the path much. But I definitely don't want to zip back and forth between clumps.
I can't limit to a set time since other jobs may intervene. I can't do it as a percentage since I don't know what percentage these jobs are at ay given time.
What I ended up doing is basically defining the costs just like I described them above. We have "close' objects (within say 3 degrees) that all have the same cost. Then medium and and large distance.
For a problem with more time than jobs, I get a reasonable answer in 3s. With more jobs than time, I just set a 10s upper bound and still get a reasonable time.
I need to integrate this solution with the larger program to really check runtimes with a more realistic set of jobs. But I think I have enough understanding and knobs in place to make this work.
#constraintprogramming #ortools #scheduling/#routing #optimization #python #software #programming #engineering