ProxLB v1.1.3 just got released!
ProxLB is a VM load-balancer for your Proxmox clusters also supporting affinity & anti-affinity rules.
GitHub: github.com/gyptazy/ProxLB
Version 1.1.3: https://github.com/gyptazy/ProxLB/releases/tag/v1.1.3
ProxLB v1.1.3 just got released!
ProxLB is a VM load-balancer for your Proxmox clusters also supporting affinity & anti-affinity rules.
GitHub: github.com/gyptazy/ProxLB
Version 1.1.3: https://github.com/gyptazy/ProxLB/releases/tag/v1.1.3
PetPet v1.00: Cross-Platform PETSCII Editor for Commodore 64 Graphics
#Commodore64 #PETSCII #PetPetEditor #RetroComputing #C64Art #Python3 #Revision2025 #CrossPlatformTools #VintageGraphics
https://theoasisbbs.com/petpet-v1-00-cross-platform-petscii-editor-for-commodore-64-graphics/?feed_id=3059&_unique_id=68121f4397870
Look what I made in Python!
New Goal: learn/ find out how/ try as long I need to code a laurel wreath-like thing to go around the stars.
#python3 #pythonProgramming #StarTrek #StarTrekDiscovery
Screaming at python.
Und gleich noch 'ne Frage, diesmal zu #Python3: Kann es sein, daß piexif beim Ersetzen von Exif-Daten das ganze Exif-Gedöns zerschießt?
exifdict['Exif'][piexif.ExifIFD.DateTimeOriginal] = rtime
– wobei rtime ein DateTime-Objekt ist; ich versuche, fehlerhafte Zeitstempel zu korrigieren)
Vor dem Edit sind die Exif-Daten OK, danach heißt es: beschädigt.
Und ja, ich hatte mich mit dem Thema vor drei Jahren schonmal befaßt, war aber an genau diesem Problem gescheitert und hatte dann erstmal aufgegeben.
@jzsimon @arclight @JosetAEtzel
Check this fresh updated article:
https://codingidol.com/how-to-plot-in-python-without-matplotlib/
WARNING: Awesome code follows
I just read there is a more accurate way to calculate a dog's age in human years than simply multiplying by 7 (which does produce a lot of oddities, especially when it comes to dogs giving birth at "7" years old lol). The progression through the first, second and then subsequent years are handled in a manner that is much closer to how dogs typically age compared to humans.
Here are #lisp and #python functions demonstrating the new calculations. Feel free to use them as you wish. Especially if you have one or more dogs.
Feel free to improve or comment on the code in the comments or elsewhere. I always post these kinds of functions for conversation and community, I'm just learning python, so don't bark too loudly.
The formats are:
(dogs-age years months)
and
dogs_age(years, months)
There is no error checking, so use zeros when necessary.
Don't be strangers. Shake a paw!
(defun dogs-age (years months)
"Calculate the human age equivalent of a dog given its age in years and months."
(let ((human-age 0))
(cond
((< years 1)
(setq human-age (* (/ months 12.0) 15)))
((= years 1)
(setq human-age (+ 15 (* (/ months 12.0) 9))))
((>= years 2)
(setq human-age (+ 15 9
(* (- years 2) 5)
(* (/ months 12.0) 5)))))
human-age))
def dogs_age(years, months):
"""
Calculate the human age equivalent of a dog given its age in years and months.
"""
if years < 1:
human_age = months * (15 / 12)
elif years == 1:
human_age = 15 + months * (9 / 12)
else:
human_age = 15 + 9 + (years - 2) * 5 + months * (5 / 12)
return human_age
Hey, @praetor you might be interestd in this, even if it isn't about cats. If you change the subsequent years from 5 to 4, it'll work for cats just the same, apparently.
Today's python: https://paste.tdstoragebay.com/gHMCYg
It's kinda hard to write a decompression routine for a protocol when all your bytes
suddenly become int
with no explanation as to how in the hell that works. Because it turns out, lzma
wants the length of things before it even starts!
Python 3.13 has been released! It includes a better interactive interpreter, improved error messages, mobile platform support & an experimental JIT compiler #Python #python3 #programming #opensource
https://docs.python.org/3.13/whatsnew/3.13.html
Time for my periodic wrestle with #Python 's import system
That's probably enough coding for tonight. I got all the REST endpoints I think I need for now and have extremely basic tests written for them. The tests check the return code is 200 and the integer returned is the right number.
On the actual implementation of the functions, I'm returning some number that the test is looking for so I know I'm getting to the right function.
I am kinda curious if there's a test coverage tool that will tell me how much of my code is running when I run the tests. There's probably something in pytest for that which I can research another time. Rather than trying to hit 100%, I would use it to find out if I'm missing anything as I keep adding code.
Was helping a friend clean up some code and ran into this!?!??!
#Python #Python3 #Programming
I'm trying to learn Python scripting for meshtastic using their API. However, I cannot find documentation that lists (and explains) the available functions.
For instance, from examples I see “interface.sendText(…” but what other options are there for the interface function and what are the arguments? I’ve been digging around for a while and I must be using the wrong search terms.
Any help would be much appreciated!
EDIT: Problem gelöst (siehe Kommentare), es war mal wieder 'ne Kleinigkeit: ein „and“, wo ein „or“ stehen sollte.
Liebe Menschen, die Dinge mit Python3 und Fotos machen: Gibt es einen Trick, die Größe eines Fotos zu ermitteln, das keine EXIF-Daten (oder andere Meta-Daten) hat?
Hintergrund: Ich möchte Fotos, die ich vorher gescannt habe, für einen bestimmten Zweck runterskalieren. Dazu verwende ich meinen downscaler (https://git.atari-frosch.de/?p=downscaler.git;a=tree). Der verläßt sich allerdings auf PIL, ergo auf vorhandene EXIF-Daten. Bei Scans hab ich die natürlich nicht.
downscaler meint, die Dateien seien schon zu klein, aber da muß ich nochmal nachschauen, warum das Fehlen der EXIF-Daten so interpretiert wird.
Some questions regarding Ghidra:
* NetworkX libraries don't support Jython, right?
* Which Python 3.X bridge is the most used for Ghidra? Is it Ghidrathon? Or perhaps ghidra-bridge?
* Do you happen to know if there are differences big enough to worry about supporting Ghidrathon or Ghidra Bridge?
#Ghidra #NetworkX #Jython #Ghidrathon #GhidraBridge
#Python3 #Python2
Using the Python "frontmatter" module, how can I output an empty list?
When I set the value to:
fm["field"] = []
Then the output does not include "field" at all. However I need the actual empty list in the output.
Any ideas? Thanks!
Someone asking if anyone would be interested in porting and maintaining a #Python3 + #GTK3 app to… #GTK 2.x and (indirectly #Python 2.x)… in 2022. Seriously. You can't make this up. ️ https://gitlab.gnome.org/GNOME/meld/-/issues/651
ok working on warning state but still running, next bugs added for the next release #python3
@dmnelson @scriptingosx Good thing you stuck to grep and awk as the years-long #macOS scriptocalypse rolls on: https://tidbits.com/2019/06/25/apple-to-deprecate-scripting-languages-in-future-versions-of-macos/
On life support: #Python3 (needs #Xcode Command Line Tools)
Dead pool (specifically called out for future deprecation): #Perl
#Ruby