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

mariatta, to django
@mariatta@fosstodon.org avatar

Maybe this is a stupid idea and I'm sure there's a reason for it, but sometimes I wish that when I tried to start a local webserver like , etc, it could suggest using a different port number if the 8000 is already used.

Like:
Error: port 8000 is already in use. Use 9000 instead.

meejah,
@meejah@mastodon.social avatar

@encthenet @mariatta I'm not sure if there's a "good general answer" but it would be great if we normalized listening programs telling the caller where (and when!) they're listening.

e.g. in integration tests, it would be nice to know "yes, the server believes it is ready (on port X)".

For this case specifically, an option that means "listen on any port between 8000 and 12000 that appears open, then tell me what you chose" could be more useful than "listen on this one port or fail")

aral, to random
@aral@mastodon.ar.al avatar

When privileged folks tell me at my talks “I don’t care about my privacy / I have nothing to hide / Give me one example of the ramifications of surveillance capitalism / etc.”, I tell them “you will care when your health insurance premiums go up because your Smart Fridge tells the insurance companies what you’re eating/drinking.” This is basically the same thing. Sad that it takes things hitting their own wallets for privileged folks to pay attention.

🤷‍♂️ https://social.lansky.name/@hn50/112077137922790367

meejah,
@meejah@mastodon.social avatar

@aral Anyone who says this to me, I offer to put the entire contents of their phone online immediately for free.
Nobody has taken me up on this offer...

lavergnetho, to opensource
@lavergnetho@fediscience.org avatar

Is / -mentoring a thing?

One does not contribute to the development of the research or the software itself, but one helps others that don't know how this is done with the Open'ing aspects.

Of course, I know that there are several online resources for learning, but what beats a mentor who dedicates some if his/her time?

😅

@pyOpenSci @scientific_python @turingway ?

meejah,
@meejah@mastodon.social avatar

@lavergnetho I have been considering offering this as a service (but directed at businesses). Basically that: HOWTO contribute to free/open software successfully.
I sort of doubt it would scale for individuals (i.e. "I'd have to charge too much" probably).

meejah,
@meejah@mastodon.social avatar

@lavergnetho Yeah, exactly: I'd think of it as preparing an org (business, whatever) to "do FOSS" either on their own project or an existing one. Hasn't progressed past "idea" stage ;) but ...

b0rk, to random
@b0rk@jvns.ca avatar
meejah,
@meejah@mastodon.social avatar

@b0rk I have done "git checkout <tag>" before for use-cases like "there's a bug on <tag>" so you check out the tag, confirm "yes, that's indeed a bug" and can then re-create a working branch for that release tree (e.g. "git checkout -b <tag + 0.1>" or similar).

meejah,
@meejah@mastodon.social avatar

@b0rk Oh, I see ... yeah I think I've only ever done the former thing.

Luckily, I just use simpler branching / releasing flows for all "my" things these days ;) so it has been a while...

meejah, (edited )
@meejah@mastodon.social avatar

@b0rk ...but also I would assume those are the same thing, but given "it's git" and you clarified I'm assuming "nah, they're different" 🤔

meejah, to random
@meejah@mastodon.social avatar

fowl 24.3.1 released, now much simpler CLI, an interactive mode and better docs.

https://pypi.org/project/fowl/24.3.1/

yantor3d, to python
@yantor3d@mograph.social avatar

One of the biggest points of disagreement I have with my supe about is accessing environment variables like the current project. He is adamant that it always has to be passed in, I made it optional and let it fall back to the environment. He has yet to explain it in a way that makes is case (or at all).

meejah,
@meejah@mastodon.social avatar

@yantor3d If you mean accessing "os.environ" all over the place, I'd avoid that: it's global state, and that is best avoided.

meejah,
@meejah@mastodon.social avatar

@yantor3d It's also still "global state that is magically accessed whenever".

Consider testing: now you have to mock/fake this global for many kinds of tests (and, ensure that the "test environment" is sufficiently clean etc of things you didn't want set).

If instead you "grok the environment / config once" and pass in a Config() or similar object, tests can now just create their own Config

meejah,
@meejah@mastodon.social avatar

@yantor3d I try to avoid mock entirely whenever possible.

(I also don't view APIs that tests need as "just for tests" since IME it usually demonstrates a real need -- or a non-optimal API)

meejah,
@meejah@mastodon.social avatar

@yantor3d Yes .. and to be clear, it is "just a goal".

I've definitely used "mock" myself before. Still, it's a crutch to be avoided IMO, and often indicates API problems.

meejah,
@meejah@mastodon.social avatar

@yantor3d https://pythonspeed.com/articles/verified-fakes/ might help with that sort of test

(For that sounds like "integration-style" tests with "real" Maya would be beneficial. IMO.)

kevinlovestech, to random
@kevinlovestech@mstdn.ca avatar

News never should have been on FB in the first place. That’s not what we signed up for and it has no place being there.

From: @itnewsbot
https://schleuss.online/@itnewsbot/112018412983216817

meejah,
@meejah@mastodon.social avatar

@kevinlovestech @itnewsbot FB shouldn't exist.

meejah,
@meejah@mastodon.social avatar

@kevinlovestech It was never good; it was always "merely" a centralized service, and at best existed to enclose existing blogs, website, etc into its (ever increasing) walled garden

ghorwood, to random
@ghorwood@mastodon.social avatar

ah yes, it’s that time of year again when the sky tries to kill us.

meejah,
@meejah@mastodon.social avatar

@ghorwood With a dry Crowsnest River, definitely need some death-from-above :/

rose_alibi, to random
@rose_alibi@post.lurk.org avatar

this mac from 1997 has a built-in FM tuner, why can't my phone? all these antennas all around and none of them are the right ones.

meejah,
@meejah@mastodon.social avatar

@rose_alibi For a long time, they did! But in North America they turned them off "because of reasons" (cough capitalism cough)

e.g.
https://www.cbc.ca/news/business/fm-radio-cellphone-telecoms-1.3577447

ppival, to ai
@ppival@glammr.us avatar
meejah,
@meejah@mastodon.social avatar

@ppival Gross.

And, as per the article, that's not "public sentiment" but "the sentiment of people who still have the fortitude and/or poor sense to keep using X".

(The linked paper doesn't actually have anything to do with urban planning, though, so I'm a little confused here...)

meejah,
@meejah@mastodon.social avatar

@ppival The paper is about "identifying passive-voice in human speech" so I don't really get the connection even to "social media / X sentiment analysis" 🤷

luciedigitalni, to random
@luciedigitalni@aus.social avatar

I love my electric bike for my getting around and doing stuff requirements.

I now want to buy a cheap, light road/hybrid bicycle for weekend excursions and some more serious exercise.

Should I pay the $150 extra to get the one with the disc brakes?

meejah,
@meejah@mastodon.social avatar
skribe, to python
@skribe@aus.social avatar

Is there an obvious way for argparse to check if the source file and destination file are the same? ie. the user has accidentally inputted the source file twice?

This doesn't work:

if args.source_file == args.dest_file:
do something

meejah,
@meejah@mastodon.social avatar

@skribe I much prefer the argument library Click https://click.palletsprojects.com/en/8.1.x/ if you're just starting out

meejah, (edited ) to python
@meejah@mastodon.social avatar

A new release of "fowl": https://pypi.org/project/fowl/

This lets users beyond play with the powerful Dilation protocol of -wormhole (see also https://magic-wormhole.readthedocs.io/en/latest/dilation-protocol.html)

Human users can create identity-less, durable stream forwarding (think "ssh -L" or "ssh -R" but without pre-sharing keys, having servers running, etc)

meejah, to python
@meejah@mastodon.social avatar

Hey what other information would you like to see in a CLI coverage tool?
(This shown inside a github action log)

meejah,
@meejah@mastodon.social avatar

@orsinium There is already "cuv next" (to show the "next uncovered line).

Perhaps I could add "--biggest" to that..?

meejah,
@meejah@mastodon.social avatar

@orsinium I do like the idea of "functions" ... the underlying coverage tool / data is providing "line" coverage and it's not immediately obvious to me if it's "easy" or "really hard" to turn that into function-based numbers

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