radikal.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
radikal.social was created by a group of activists to offer federated social media for the radical left in and around Denmark.

Administered by:

Server stats:

158
active users

#python

21 posts21 participants2 posts today

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:
paypal.com/donate/?hosted_butt
liberapay.com/Villares
wise.com/pay/me/alexandrev562

www.paypal.comDonate to Alexandre Barrozo do Amaral VillaresHelp support Alexandre Barrozo do Amaral Villares by donating or sharing with your friends.

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

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.

#dev#devlife#django

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()

Replied in thread

@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 :(

#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 github.com/Lisa-Ho/small-data-

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.

#Python #Development #ShopLocal 😊

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.

#Linux#Python#PyQt

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?"

Replied in thread

@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.