@meejah@mastodon.social
@meejah@mastodon.social avatar

meejah

@meejah@mastodon.social

Professional freelance programmer (#python, #haskell, #c++, #linux)
https://meejah.ca
https://txtorcon.readthedocs.org
https://carml.readthedocs.org
#twisted #python #tor #infosec #privacy
I re-toot all reasonable replies
"rumoured to be Canadian"

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

meejah, to random
@meejah@mastodon.social avatar

@neilk what in actual fuck? Why does CBC give these morons attention??!

pkw, to python
@pkw@mastodon.sdf.org avatar

fixture config is magic and I don't like it.

def test_something(fixture):
...

So in pytest. What this does is get the name of the param fixture to see if it matches the name of a previously defined fixture function. If you don't know that it looks bizarre. That IS NOT a parameter passed into a function but a sentinel that is used to look up a fixture by it's parameter name.

WHY not just pass in the ACTUAL FIXTURE ?!?!

def test_something(fixtures=[fixture1, fixture2]):
...

meejah,
@meejah@mastodon.social avatar

@pkw in the end it does pass in a value (whatever the fixture function returns).

There is definitely some magic involved, though -- at least it gives an error if you misname one. (On balance, I prefer the less typing -- you can try "testtools" for one that has more-explicit fixtures)

meejah,
@meejah@mastodon.social avatar

@pkw It can definitely feel a little weird ... but it's hard to get some of the other very-useful fixture features (module/session scoping, parametrization, ..) with other mechanisms. It's also nice and short (although of course you need to "know" pytest to read the code)

The command-line library Click also does something a little similar with the option decorators (i.e. "magically" maps names)

meejah,
@meejah@mastodon.social avatar

@pkw The similarity I see is that Click "magically" uses the option-name to pass the value to the correct arg; pytest "magically" uses the arg-name to call the correct fixture (it's not just for the side-effect: it passes the value returned into your function). Click also depends on "side effects" of the decorators...

Certainly I still agree that pytest's is "more magic", but they're both about convenience (e.g. you could implement Click's to be strictly explicit passing too)

meejah, to random
@meejah@mastodon.social avatar
stux, to random
@stux@mstdn.social avatar

> "It's the best country in the world!"

< "But you rank 20th in reading, 23th in science, 19th in math on a global scale."

> "Yes but we are the number 1 in confidence!"

< "So it's a country full confident idiots."

meejah,
@meejah@mastodon.social avatar

@andemann @stux hah, wanted to see this comment :)

PsySal, to photography
@PsySal@mastodon.social avatar

Wandered around campus one Sunday in February. Its sort of nostalgic. Part of that is just that it hasn't much changed. Part of that, I think, is that brutalist architecture is by nature resistant to change.

Since, these days, change is often hyper financialization at the expense of everything else, this permanence is, I think, a virtue.

These spaces from the 70s (60s?) still carry their original intent.

Full easy peasy web 1 scroll page + one dream: https://kittylambda.com/?p=pictures_2024-02-25_university_of_calgary

Wood wall art. Angular forms pocked with circles that evoke pots filled with cracked dirt.
Hallway. Concrete walls and staircase. Polished floor reflecting natural light. Some seating and a relief map of Alberta visible.

meejah,
@meejah@mastodon.social avatar

@PsySal It's also interesting what's new in those scenes, like most of the furniture (well, "new sometime in the last 20 years" but still)

meejah,
@meejah@mastodon.social avatar

@PsySal Yeah, I'm not as sure about the atrium but the ScienceA/B couches are new for sure (and the tacky slogans haha). Those one-piece tables might be original...

"The Zipper" is original too :)

meejah,
@meejah@mastodon.social avatar

@PsySal p.s. there's a very fun space up the stairs higher than the elevators go in the S tower of the new comp-sci building :)

meejah, to random
@meejah@mastodon.social avatar

The right term is "anti-genocide".

But I guess it's harder to get angry about someone supporting that position ....

rowdypixel, to random
@rowdypixel@hachyderm.io avatar

People are going too fast on this road. How can we prevent this? There’s already a speed limit but people are ignoring it. What can we do?

I know! Add another sign asking drivers to follow the directions on the first sign! Surely that will work!

meejah,
@meejah@mastodon.social avatar

@rowdypixel What if there was a FOURTH sign, but above all the others saying "READ THIS"? Surely that would be enough?

ghorwood, to random
@ghorwood@mastodon.social avatar

two weeks ago i was “i should get a quieter keyboard so i don’t disturb lee so much” and since then i’ve found myself reading reviews of switches and posts on whether key sculpting actually does anything and counting the u’s on the bottom row of my corsair.

“keyboard people” are detached from reality. and i fear i could easily become a “keyboard person”.

meejah,
@meejah@mastodon.social avatar

@ghorwood hook up that "pinball replay" sound ;)

meejah, to random
@meejah@mastodon.social avatar

Do I know any lawyers familiar with EU contract law? Preferably local to but video calls are cool ;)

meejah, to random
@meejah@mastodon.social avatar

I really wish @signalapp used "petnames" for chats. (Where a "petname" is a local-only name for a thing that doesn't leak to the outside and is not expected to be globally unique, just locally-unique)

I have two groups named "father", because that's what my kids called them. I'd obviously like to call those groups something different....

meejah, to UI
@meejah@mastodon.social avatar

Has anyone made a "multi-timescale graph"?

Consider a "CPU" or "network activity" graph: I'd like one that has "one dot per second" on the right side and like "1 dot per minute" (or whatever) on the left side, but "rolled up" (i.e. min/max/mean of 60s or similar).

Perhaps could have multiple such segments (seconds, minutes, hours?) etc etc.

angiebaby, to random
@angiebaby@mas.to avatar

I wasn't aware of this.

Because of the topic of the article itself, I'm linking from the Wayback Machine. (This was posted today.)

Please Don’t Share Our Links on Mastodon: Here’s Why!
We need to talk about this problem. Should Mastodon step up?

https://web.archive.org/web/20240501061113/https://news.itsfoss.com/mastodon-link-problem/

meejah,
@meejah@mastodon.social avatar

@ajroach42 @angiebaby @newellijaytv This should scale with "number of instances occupied by followers" as I assume (hope?!) that the previews are generated per-instance.

Unfortunately the post doesn't share the number of servers hitting them (surely it's not 37000+ instances?)

Sites that can't handle this number of requests could presumably take some steps themselves (e.g. "slow down requests from Mastodon instances"). What do they expect "mastodon" to do here, exactly?

meejah,
@meejah@mastodon.social avatar

@benchaotica @ajroach42 @angiebaby There's currently ~11000 mastodon instances; federation itself takes time, so even if you had 11k followers each on their own instance ... is that really "DoS" territory?

On the flip side, do sites that can't handle (at most) 11k requests over "many minutes" already have a way to opt out of preview generation?

Also, "it's foss" takes 84 requests and 6.26MB (or "4 Dooms") to load, perhaps something can be done there too...

wimpy, to random
@wimpy@fosstodon.org avatar
meejah,
@meejah@mastodon.social avatar

@soul_predator @FXBOY4EVA @mina @itsfoss @wimpy Are you actually looking for help here? Can you post actual traffic patterns from real mastodon hosts?

(I would expect the results to "naturally" spread out due to federation). Are you sure it's the link-preview and not something else?

As a "normal" user it takes 101 requests and 3 Dooms of data to load your site; the link preview should be 2 (the html, and the preview-image).

froyed, to security
@froyed@mastodon.social avatar

When you are asked to make answers for security questions, avoid using the real answer. Make up one or use a random jumbo of characters.

In case someone doxxes you, they won't be able to get into your accounts via this method.

meejah,
@meejah@mastodon.social avatar

@froyed yes, my first pet is "wvcfBJnKd+bR6P33GdTkUKwXAWCUQOqjz8gpm67vHLw" ;)

glyph, to random
@glyph@mastodon.social avatar

Rolled credits on yesterday at 162 hours. The endgame was a bit of a tedious slog, and I could nitpick endlessly, but wow, what a tour de force this game is. I did do an absolutely unapologetically goody two-shoes route and it was much more satisfying than in a lot of other games where the "good" ending is a sort of bland default. For example, it's a bit tricky to do this:

meejah,
@meejah@mastodon.social avatar

@glyph I don't play a lot of games, but have enjoyed Rogue Legacy 2 after one of my kids wanted it (a fun side-scroller take on Roguelikes). And works on Debian.

meejah, to random
@meejah@mastodon.social avatar

I have this diagram that I want to "deep zoom" into for more detail. It's not that complex or "deep" (yet?) but already showing it as SVG in a browser is "problematic"

I can make the zoom work, but it's really pixelated and crappy until it "rests" at the new zoom level for a while.

Also Inkscape is somewhat grumpy with the file already, even on a decent desktop.

So, obviously I'm using the wrong tools (or using them wrong) -- how should I make this appear on the web?

Using Inkscape:

A screen-recording showing a diagram in Inkscape that is zoomed into for more and more details.

meejah,
@meejah@mastodon.social avatar

@Scmbradley Not sure, but I should have defined that my solution-space is "software that I can run on a system".

What I actually want to do here is have this diagram on e.g. a https://meejah.ca blog post or similar (i.e. "a normal web site").

"prezi" looks like software I don't get to run, so I'm not super interested in that ..

ghorwood, to random
@ghorwood@mastodon.social avatar

i see doug ford put down his timmies long enough to take credit for a battery plant that’s being built because of federal incentives.

meejah,
@meejah@mastodon.social avatar

@ghorwood do you mean "put down his rolled up $20"?

livewirecalgary, to Calgary
@livewirecalgary@mastodon.social avatar

Councillors say colleague Coun. Sean Chu is participating via camera online, but couldn't explain the lack of in-person attendance at Calgary's citywide rezoning public hearing.

https://livewirecalgary.com/2024/04/24/questions-sean-chu-blanket-upzoning-public-hearing-2024/

meejah,
@meejah@mastodon.social avatar

@livewirecalgary Why is a fucking rapist allowed on council period?

TheGentYYC, to random
@TheGentYYC@mastodon.social avatar

'Republicans must step in!' Trump begs for help with legal troubles in frantic 2 a.m. rant https://www.rawstory.com/donald-trump-legal-trouble/

meejah,
@meejah@mastodon.social avatar

@TheGentYYC very, very few people would see any Truth Social content if the media and others didn't insist on re-posting it far and wide :(

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