Good #Coding practices question for #Documentation:
Are there some general guidelines on what info to put in the comment at the top of each code file? Like date, author, basic description of what the code does? Maybe something about dependencies? Are there templates for this somewhere (e.g. for #Matlab or #Python if that matters)?
Hi folks! Some of you are generously offering recurring donations for which I'm extremely grateful.
It pains me to keep asking here, but things have been very hard economically for me lately, and are getting even harder in the next months as I'm teaching less classes while also being pressed for time trying to finish my PhD.
So, if you can, and would like to help me, please donate using:
https://www.paypal.com/donate/?hosted_button_id=5B4MZ78C9J724
https://liberapay.com/Villares
https://wise.com/pay/me/alexandrev562
@liaizon thank you!
If you are curious, I added some references about L-Systems to this post: https://github.com/py5coding/py5generator/discussions/555
heeeeeey #python cats!
anyone know of a decent multi-language text tokenizer?
To be clear: I am explicitly looking to use it for non-generative-AI and other [slop/scab/labor theft] purposes.
Not sure of the specific terms I need to be looking up, frankly, since I'm mostly just finding Python's built in tokenize library which seems to be focused just on Python code.
Thank you!
#techPosting
#LSystem Code at: https://github.com/villares/sketch-a-day/tree/main/2025/sketch_2025_04_02
More sketch-a-day: https://abav.lugaralgum.com/sketch-a-day
If you like this, support my work:
https://www.paypal.com/donate/?hosted_button_id=5B4MZ78C9J724
https://liberapay.com/Villares
https://wise.com/pay/me/alexandrev562 #Processing #Python #py5 #CreativeCoding
Hey fellow developers!
If you've ever accidentally caused a security incident, or been part of a team that did, I'd like to hear about it (privately if you want).
I have a few of my own, I'm not just hoping to laugh at others.
I'm writing a presentation about how security incidents come about, from a dev and product perspective. For our learning, but mostly for security people who are flummoxed as to why we would do the things we do.
Django 5.2 has arrived! https://www.djangoproject.com/weblog/2025/apr/02/django-52-released/ Featuring a composite of new features – auto-importing models in the shell. Composite primary keys (!?!). BoundField overrride improvements.
Version 5.2 is Long Term Support (LTS) ️ 3 years of support, until April 2028.
We hope you like it! #Python #OpenSource
Building a square wave with a Fourier series of odd harmonics under #Python #51
#!/usr/bin/python3
from matplotlib import pyplot as plt
import numpy as np
x=np.arange(0,2*np.pi,.01)
y1=np.sin(x)
y2=np.sin(x)+np.sin(3*x)/3
y3=np.sin(x)+np.sin(3*x)/3+np.sin(x*5)/5
y4=np.sin(x)+np.sin(3*x)/3+np.sin(x*5)/5+np.sin(x*7)/7
y5=np.sin(x)+np.sin(3*x)/3+np.sin(x*5)/5+np.sin(x*7)/7+np.sin(x*9)/9
plt.plot(y1)
plt.plot(y2,color='green')
plt.plot(y3,color='yellow')
plt.plot(y4,color='orange')
plt.plot(y5,color='red')
plt.show()
@liaizon no name yet, directory on my projects folder is called "activitypub", Python module is un-creatively called "leoactivitypub".
All it can do is follow people (send signed Follow actions) and validate incoming post signatures.
I wanted to do it in #Rust but ended up in #Python to get something working quickly. The whole thing is a mess right now :(
Announcing The Great Django Webring
https://micro.webology.dev/2025/04/01/announcing-the-great-django-webring/
#30DayChartChallenge Day1 Fractions - animal rescue incidents attended by the London fire brigade.
5 of 10 animals rescued are cats, but there are some interesting differences between boroughs - birds in Westminster, horse in Bexley, foxes in Hammersmith.
Made in #python #matplotlib using custom svg markers + #pyfonts to read in Google font.
Full code https://github.com/Lisa-Ho/small-data-projects?tab=readme-ov-file#042025-animal-rescue-incidents
So, just wondering: what is a decent European alternative for payment handling like #Stripe? (It must support both single payments and monthly subscriptions.)
I've been out of the loop and I am sure there are people with experience here.
Preferably one with a matured API (and a Python library would be a nice bonus).
Thanks in advance for any suggestions.
Weekend project complete, after being shelved for over a year! Sure feels good.
10' e-ink display connected to my RaspberryPi and serving a dashboard with my upcoming calendar events, weather, and trivia.
I brushed up on Python, learned some Arduino, and made more use of the RPi that's always on anyway (because of #syncthing )
Project here: https://github.com/fdmarcin/MagInkDash-updated
I have been making progress with my color converter/creation application built with PyQt. I just added a 4 point gradient tool this morning. This application will allow you to create, convert and manage all your colors in one place.
jaha. Det är nåt fel på mina cert så kan inte köra SSL. Så försöker laga medelst
%> pip install --upgrade certifi --force-reinstall
men det funkar såklart inte... pga
Could not fetch URL https://pypi.org/simple/certifi/: There was a problem confirming the ssl certificate
jamen jag veeeeet .... Argh!!
antar att jag måste lista ut hur jag gör detta manuellt
Posting is an API client that runs completely in your terminal - and version 2.6 is out now!
It's one of the biggest releases yet, adding the ability to edit headers/query params, compact mode, more autocompletion and much more!
I can't really figure out how to comment #Rust. I'm so used to so much happening in #Python one-liners that need a big paragraph length explanation above them.
With Rust I just wind up with rare little comments marking (to avoid future befuddlement) little tiny things happening and the function name and definition documents what the code does. Comments above functions are really just big markers so I can find where stuff starts.
"Who needs comments... can't you just read variable names?"
@aethrvmn
That's what I'm doing.
I've used #Python for a lot of years (since #Theano was *the* deep learning library and you had to learn Python to play with it), but I'm still in shock that so few lines could be a full web service with nice rendering, does HTTPS now, all that good stuff.
A month of #Rust and building functions inch by inch and screen-full by screen-full just makes that feel impossible and possibly magic.
Proof of concept #KiCad addon: #Datasheet Application Notes.
You edit the form with the component values, it calculates the parameters from them and injects them in the schematics that is copied to the clipboard.
https://github.com/mmuman/kicad-application-notes
(oh, and it's using KiCad's new plugin API so requires 9.0 with API enabled)