Skip to content

Piero Bosio Social Web Site Personale Logo Fediverso

Social Forum federato con il resto del mondo. Non contano le istanze, contano le persone
  • 0 Votes
    1 Posts
    9 Views
    Under the hood update!I’ve finally retired the old cron + sh setup for the weather bots. It served us well, but it had a major flaw: if I rebooted the server while it was posting, the job just died halfway. If the server was down during a scheduled slot, the forecast was lost forever.So, I wrote a custom Python daemon to run inside the FreeBSD Jails.It’s stateful now. If a crash happens at city 15 of 50, it resumes exactly there on reboot.If the server naps/is rebooting during a scheduled run, the bot realizes it missed a slot and runs immediately upon waking up.#FediMeteo #SysAdmin #Python #FreeBSD #Coding #SelfHosted #OwnYourData #StayTuned
  • 0 Votes
    2 Posts
    9 Views
    @PythonPeak video removed by the uploader.
  • 0 Votes
    1 Posts
    13 Views
    I've been wanting a CO2 monitor for a long time. (As a virus monitoring proxy: my heart condition is most like a result of #COVID, and I'm fairly anxious to avoid getting it again.)I finally got around to ordering a sensor (SCD40) plus some CircuitPython microcontrollers, and got a basic monitor up and running in a few hours. Fun! Now I just have to build some sort of case to make it easier to carry around.#Maker #esp32 #CircuitPython #Python #COVID19 #CovidIsNotOver
  • 0 Votes
    2 Posts
    11 Views
    @sgued USB and NTSC are clearly missing.
  • 0 Votes
    1 Posts
    12 Views
    Howto on how to set up a local #webdev setup on #FreeBSD via #Apache featuring #Python and #PHP https://jhx7.de/blog/webdev-setup-on-freebsd/#freeBSD #BSD #unix #webdev #php #python
  • 0 Votes
    1 Posts
    16 Views
    Python verso Rust: un futuro più sicuro per il linguaggio di programmazione📌 Link all'articolo : https://www.redhotcyber.com/post/python-verso-rust-un-futuro-piu-sicuro-per-il-linguaggio-di-programmazione/#redhotcyber #news #python #rust #cpython #sicurezzamemoria #rustbelt #programmazione #linguaggiodiprogrammazione #sviluppatore #cybersecurity #informatica #memoriasicura #sicurezzainformatica
  • 0 Votes
    1 Posts
    9 Views
    Forget about trying to get your company to support something abstract like the PSF. You use PyPI: you know, the place that pip installs from. Wouldn't it be bad if `pip install` stopped working? Support the organization that runs PyPI instead.Surprise, it's the PSF! Support the PSF! Your company depends on #Python. You want it to keep working and keep being good. Support the PSF. https://www.python.org/psf/sponsors/
  • 0 Votes
    17 Posts
    16 Views
    With only a few hours left to go, WE HAVE CROSSED THE FINISH LINE, and fully matched all $17,000! Here is a screenshot of my own match (as I said at the beginning, I was going to give $5000 regardless and $5000 to match, so this is the full $10k).
  • 0 Votes
    1 Posts
    20 Views
    cross-posted from: https://lemmy.dbzer0.com/post/55501944 Hey, I’ve been kicking around an idea for a bot: it would look for fanfiction links shared in a server and keep track of which ones get shared the most. The concept: Track sites like AO3, FanFiction.net, ScribbleHub, etc. Count how often each link gets posted Commands to see the “top” links or which domains are tracked It’s just a rough idea, I haven’t built it yet. Curious if anyone thinks this would actually be useful or has tips for implementing it without overcomplicating things. import re import json import discord from collections import Counter from discord.ext import commands TOKEN = "YOUR_BOT_TOKEN" intents = discord.Intents.default() intents.message_content = True bot = commands.Bot(command_prefix="!", intents=intents) # Domain list you want to track (lower-case) TRACK_DOMAINS = { "archiveofourown.org", "fanfiction.net", "forum.questionablequesting.com", "forums.spacebattles.com", "forums.sufficientvelocity.com", "webnovel.com", "hentai-foundry.com", "scribblehub.com", } link_pattern = re.compile(r'https?://\S+') link_counter = Counter() def domain_of_url(url: str) -> str | None: try: # Extract domain part from urllib.parse import urlparse parsed = urlparse(url) domain = parsed.netloc.lower() # remove leading “www.” if domain.startswith("www."): domain = domain[4:] return domain except Exception: return None def save_links(): with open("links.json", "w") as f: # convert counts to dict json.dump(dict(link_counter), f) def load_links(): try: with open("links.json") as f: data = json.load(f) for link, cnt in data.items(): link_counter[link] = cnt except FileNotFoundError: pass @bot.event async def on_ready(): load_links() print(f"Bot is ready. Logged in as {bot.user}") @bot.event async def on_message(message): if message.author.bot: return links = link_pattern.findall(message.content) for link in links: dom = domain_of_url(link) if dom in TRACK_DOMAINS: link_counter[link] += 1 await bot.process_commands(message) @bot.command(name="links") async def links(ctx, top: int = 10): if not link_counter: await ctx.send("No links recorded.") return sorted_links = sorted(link_counter.items(), key=lambda x: x[1], reverse=True) display = sorted_links[:top] lines = [f"{link} — {count}" for link, count in display] await ctx.send("**Top links:**\n" + "\n".join(lines)) @bot.command(name="domains") async def domains(ctx): """Show which domains are tracked.""" await ctx.send("Tracked domains: " + ", ".join(sorted(TRACK_DOMAINS))) @bot.command(name="dump") async def dump(ctx): """For admin: dump full counts (might be large).""" if not link_counter: await ctx.send("No data.") return lines = [f"{link} — {cnt}" for link, cnt in sorted(link_counter.items(), key=lambda x: x[1], reverse=True)] chunk = "\n".join(lines) # Discord message length limit; you may need to split await ctx.send(f"All counts:\n{chunk}") @bot.event async def on_disconnect(): save_links() bot.run(TOKEN)
  • 0 Votes
    1 Posts
    9 Views
    Something in #VSCode just wrote a #JupyterNotebook in my name, seemingly based on the name I gave to the #Python project. When I saw that the file existed, I assumed it was just some “Hello, world” like thing.Eventually I looked at it.It was extensive had lots of sentences like, “I haven't yet decided how to represent digits larger than 9”, which either are not true or non-sensical for my project.I am pleased that I could this before that ever made it to a public repository. And I am extremely annoyed that I could have published some AI generated text in my name.I’m not in principle opposed to using AI to assist in development. After all, linters are AI as far as I am concerned. But something that writes crap in my name without explicitly drawing my attention to the fact that it is doing so is not the kind of thing that will win me over to AI.
  • 0 Votes
    3 Posts
    21 Views
    @frenck ARRRGHHH this Python Engineer job is exactly what someone I know is looking for, fantastically qualified and passionate about data sovereignty, lots of experience building for personal data management products --- but not based in Europe. Who else is hiring similar positions please? #getfedihired
  • Hey data nerds!

    Uncategorized rstats python datascience getfedihired
    1
    0 Votes
    1 Posts
    23 Views
    Hey data nerds! I've made a lateral move and my old role is open for applications. It's a data science leader role in home insurance (industry experience strongly preferred). Hybrid in the listed locations. Take a look!#RStats #python #dataScience #GetFediHired https://thehartford.wd5.myworkdayjobs.com/en-US/Careers_External/job/Hartford-CT/Director--Data-Science--Personal-Insurance--Homeowners_R2522508-1
  • 0 Votes
    1 Posts
    12 Views
    No posting yet, but my team at chainguard.dev is looking to hire someone to work on AI/ML packages; think nVidia bits like CUDA, PyTorch, Tensorflow, etc. This is more like OS/distro work than "doing things with LLMs". This is my fourth week here, but so far so good: https://www.chainguard.dev/careers Poke me for info!Presumably "Senior" to "Staff" level folks, but if you're more junior than that and interested, you should still poke us, we're happy to mentor.#fedihired #getfedihired #python
  • 0 Votes
    1 Posts
    21 Views
    Is Fortran better than Python for teaching basics of numerical linear algebra?Link: https://loiseaujc.github.io/posts/blog-title/fortran_vs_python.htmlDiscussion: https://news.ycombinator.com/item?id=45351624#python
  • Any Python folk following me

    Uncategorized python django opensource
    1
    0 Votes
    1 Posts
    19 Views
    Any Python folk following me?I’m looking for personal recommendations of good Python and Django open source projects. I want to get a sense of good, idiomatic real life Python code.#Python #Django #OpenSource

Gli ultimi otto messaggi ricevuti dalla Federazione
Post suggeriti
  • 0 Votes
    2 Posts
    2 Views
    @weekinfediverse@mitra.social waiting for the 2026 edition of NodeInfo in Fediverse Software
  • 0 Votes
    1 Posts
    0 Views
    Condivisione graditissima! (grazie)Amici miei, vi segnalo che qui nel #Fediverso si può trovare il mio #podcast "Verso Casa", che potete tranquillamente ascoltare da Antenna Pod sul vostro smartphone oppure a questo indirizzo:https://castopod.it/@versocasa/episodes/cadice-jerez-gibilterra-la-speranza-e-tanta-potro-vivere-qui-bbkjpQui la puntata n. 17, l'ultima uscita.E' l'episodio in cui continuo l'esplorazione dell' #Andalusia e di #Gibilterra, per trovare un posto, uno di quelli speciali, dove il dolore si placa e la mente può ragionare più lucidamente; dove la gioia riaffiora, e io torno ad essere me stesso.Un posto dove il cuore vuole stare.Sarà Cadice, Jerez o Gibilterra?#spagna #podcastitaliano #mastoradio #nuovavita #artrite #fibromialgia
  • 0 Votes
    1 Posts
    3 Views
    Tutti a casa, arriva Digital Optimus! L’AI che lavora al posto tuo. Ci riuscirà?📌 Link all'articolo : https://www.redhotcyber.com/post/tutti-a-casa-arriva-digital-optimus-lai-che-lavora-al-posto-tuo-ci-riuscira/#redhotcyber #news #digitaloptimus #intelligenzaartificiale #agentidigitali #automazione #lavoro #aziende #tecnologia
  • 0 Votes
    1 Posts
    1 Views
    Hello, Fediverse!I think it's time for an #introduction to the broader audience of the fediverse.We're the Dark Blue Project, an independent project based in Germany, which publishes content about free and open source software and educate about it. Our primary mission is to inform people about free and open source software and help them with using it.At the time of writing this, the project is under active construction. Feel free to let a follow here and stay tuned for exciting things coming in the future.See you!#opensource #freesoftware #fediverse