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

Update: a few hours before the deadline, we reached the goal!!!

Uncategorized
17 1 1

Gli ultimi otto messaggi ricevuti dalla Federazione
  • @roland next time!

    read more

  • @evan sorry i missed you! Saturdays!

    read more

  • @evan That's a great strategy. Love it!

    read more

  • @virtuous_sloth my co-founder for a startup had a great strategy: meeting for coffee 30 minutes before we had to be somewhere. It was a pleasant thing to try to get to, and built a little buffer into our time.

    read more

  • So, I have benefited undeservedly from the kindness of others when I've been late for a flight, although I rarely have jumped the queue. I'm going to say, Yes, But, where the "but" is to realise that it's a hassle for the staff and for other passengers.

    read more

  • @evan My father (was in the RCN then RCMP) was perpetually early. He always planned to be at least 15 minutes early for simple appointments in town and often was 30 minutes early.

    He wanted to never be late.

    read more

  • Leaving for the train from Seattle to Vancouver yesterday, for example, I had ample time to take light rail from UW to the King Street Station, do passport check, and get seated. But it turned out that light rail was closed between UW and downtown, and I had to take a courtesy shuttle bus instead. All my enjoyable travel time (coffee at the station) got eaten up by the shuttle bus. I barely got through passport check with enough time to get through the gate and onto the train.

    read more

  • I am habitually late for transportation. I have gotten better at leaving with enough time to travel the distance to the airport, but I still have not developed the habit of having enough *extra* time for one (1) thing to go wrong. So, if there are any even minor setbacks, I'm in hilarious travel catastrophe mode.

    read more
Post suggeriti
  • 0 Votes
    1 Posts
    0 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
    1 Posts
    8 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)
  • Hey data nerds!

    Uncategorized rstats python datascience getfedihired
    1
    0 Votes
    1 Posts
    11 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
    8 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