@paarth@pirate.lgbt avatar

paarth

@paarth@pirate.lgbt

🏳️‍🌈 Bi/pan, poly, cis man, and disappointed optimist.

👨🏾‍💻 I'm the admin of #mastodon, #matrix, and #homeassistant servers, and work as a Staff Software Engineer in Silicon Valley.
✍🏾 Aspiring writer, and nearly done™ editing my 155k word science fantasy novel.

This profile is from a federated server and may be incomplete. Browse more on the original instance.

ehmatthes, to python
@ehmatthes@fosstodon.org avatar

TIL how to use itertools.dropwhile() to get all lines from a file after a specific line. I always used to write my own loop to solve this problem.

I'm curious, have you heard of dropwhile()? Have you used it?

paarth,
@paarth@pirate.lgbt avatar

@AlSweigart @ehmatthes itertools and functools take the crown for each being parts of the standard library that are grossly underused. They solve so, so many common programming patterns in a way that is measurably more performant than other solutions.

You want to have a for loop within a for loop? You can use itertools.product instead!
You want memoization of a function/instance property? Just use functools.cache, or functools.cached_property respectively!

paarth, to random
@paarth@pirate.lgbt avatar

@melroy just saw https://melroy.org/thanks.html and I thought it was mildly funny that it still says kbin instead of #mbin 😄

paarth, to python
@paarth@pirate.lgbt avatar

Some people compare to a kiddie-pool programming language.

While I definitely agree it's got a shallow learning curve, the pool has a very sudden drop off after you get more than about ⅔rds through.

After that, you're swimming right in the middle of the C.

paarth, to random
@paarth@pirate.lgbt avatar
paarth, to random
@paarth@pirate.lgbt avatar

Fuck CORS, how does literally anyone do web dev?

paarth, to random
@paarth@pirate.lgbt avatar

Excellent, I'll never lose track of my desk now!

paarth, to random
@paarth@pirate.lgbt avatar

Absolutely wheezing at how is apparently showing the degree I "have"...

paarth, to Costco
@paarth@pirate.lgbt avatar

I wasn't expecting to see a nun picking out glasses frames at a optical today, but that's just where we are as a society I guess

e_urq, to news
@e_urq@journa.host avatar

BREAKING: Conservative Republican Governor Mike DeWine has just announced he will VETO the ban on gender affirming care that recently passed the legislature.

This comes after tireless efforts by families, LGBTQ+ activists, and the heads of Ohio's nationally recognized children's hospitals.

paarth,
@paarth@pirate.lgbt avatar

@e_urq @gavinisdie
> "None of [the families] that I talked to talked about surgery," said DeWine on Friday. "That's not where they were going in the discussion. And I think that's, frankly, a fallacy that's out there that, you know, this goes right to surgery. It just doesn't. All the children's hospitals say that we don't do surgeries."

https://abcnews.go.com/US/ohio-governor-vetoes-transgender-sports-gender-affirming-care/story?id=105988126

paarth, to random
@paarth@pirate.lgbt avatar

Bug I filed at work today:
> Unit tests for <service> have never been run, would always fail, currently report false passes in CI

paarth, to random
@paarth@pirate.lgbt avatar

Number one downside of security keys: forgetting them at home

paarth, to random
@paarth@pirate.lgbt avatar
paarth, to random
@paarth@pirate.lgbt avatar

Leadership when you respond with just '🤦🏾‍♂️' in response to a long analysis and triage in which you did nothing

paarth, to random
@paarth@pirate.lgbt avatar

@melroy (not serious, in case it wasn't obvious): should your kbin entry read mbin now? 😄

paarth, to random
@paarth@pirate.lgbt avatar

After getting a divide by zero panic in code that shouldn't do math, I'm now utterly convinced that teaching sand to think was a mistake.

paarth, to random
@paarth@pirate.lgbt avatar

Lol,
https://www.dmhc.ca.gov/AbouttheDMHC/Newsroom/October12,2023.aspx

> paying the highest fine the DMHC has ever levied against a health plan

paarth, to random
@paarth@pirate.lgbt avatar

This ghoulish thing was sent to my work email.

paarth, to random
@paarth@pirate.lgbt avatar

I'm glad I'm not overly personally invested in my work; my 5 year work anniversary just slipped by me a few days ago and I didn't notice until my manager came back from vacation and said congrats 🎊

paarth, to random
@paarth@pirate.lgbt avatar

Excuse me, wtf Europe.

> Now many countries no longer have a boosters-for-all policy [...]. Health officials in the United Kingdom announced in August that autumn boosters would be offered only to the most vulnerable individuals, such as adults aged 65 and over and health care workers. France does not recommend an autumn booster for people outside vulnerable groups. Germany is not mounting an autumn booster campaign at all [...]

https://www.nature.com/articles/d41586-023-02840-x

paarth, to random
@paarth@pirate.lgbt avatar

So I have a programming question for people. Except it's not really a programming question, except it kinda is.
I can translate it fairly well into a civics problem:

When creating public works, is it more beneficial to society as a whole to create something which:

  1. Takes low-skill but moderately-laborious effort from anyone to repair/maintain
  2. Takes high-skill/nontrivial understanding, but very low effort to repair/maintain

I know the real answer is "it depends", but... 🤔

paarth, to github
@paarth@pirate.lgbt avatar

Fucking just asking for my card number with a "pretty please we won't charge you".
I'm sorry. This is supposed to be the most popular competitor to ?

paarth, to random
@paarth@pirate.lgbt avatar

Important MILEstone achieved for my car (after 4 years lol)

paarth, to Matrix
@paarth@pirate.lgbt avatar

I'd say that's a productive evening for .
Oh... Nvm it's morning.

paarth, to random
@paarth@pirate.lgbt avatar

Hold up. If Spock is alive in this alternate universe, that means that despite Earth never having a friendly first contact with Vulcan, nor the diplomatic relations continuing between their worlds, Sarek and Amanda still got together... How the hell did the famously-racist Vulcans let a half-human command a warship?

Where's that story?
(absolutely fantastic episode btw and I get it was probably throwaway flavor)

paarth, to random
@paarth@pirate.lgbt avatar

The religious right has successfully infiltrated the very highest levels of our government.

https://www.axios.com/2023/06/30/supreme-court-lgbtq-wedding-website

  • All
  • Subscribed
  • Moderated
  • Favorites
  • provamag3
  • kavyap
  • DreamBathrooms
  • cisconetworking
  • magazineikmin
  • InstantRegret
  • Durango
  • thenastyranch
  • Youngstown
  • rosin
  • slotface
  • mdbf
  • khanakhh
  • tacticalgear
  • JUstTest
  • everett
  • modclub
  • Leos
  • cubers
  • ngwrru68w68
  • ethstaker
  • osvaldo12
  • GTA5RPClips
  • anitta
  • megavids
  • normalnudes
  • tester
  • lostlight
  • All magazines