@diazona@techhub.social avatar

diazona

@diazona@techhub.social

Software engineer, former particle physicist, occasional blogger. I support the principle of cake.

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

elduvelle, to programming
@elduvelle@neuromatch.social avatar

in question:
This should be easy, but I can’t find a straightforward solution anywhere. How can one ask the user to select one **or more ** directories using a graphical interface?

There is “tkFileDialog.askdirectory()” in the Tkinter module but it only allows to select one directory. Any implementations of that function that allow for directory multiselection?
(Yes, I could do a loop and call the same function multiple times but I wouldn’t call that straightforward)

diazona,
@diazona@techhub.social avatar

@elduvelle Somewhat of a nitpick: it might be worth thinking of this more as a <your graphical toolkit> question than a Python question, because it's the toolkit that determines the capabilities of the file chooser, and you might get better suggestions form people who know the toolkit well than from Python developers in general.

diazona,
@diazona@techhub.social avatar

@Pantherina @louis_sch Markdown does resemble what you mean though. Like, that's part of the intent of Markdown (and also part of why it became so popular), that the raw markup is readable and lends itself to being understood in the same way as the formatted version. The markup for emphasis actually looks like emphasis; the markup for a list looks like a list; likewise for a section header, or a table or footnote if you're using a variant that supports those, or so on. So I don't think that particular argument that Markdown is not good for note-taking holds up very well.

diazona,
@diazona@techhub.social avatar

@Pantherina "I mean notes should have bold headers, not hashtags." OK, but that reflects what you want from a notes app, not what everyone wants. And of course that's totally fine, you can get that from a notes app that has WYSIWYG formatting if you find that it works for you. But I would suggest that it doesn't make sense for you to enter a discussion about a Markdown notes app and tell a bunch of people, for many of whom that app probably works pretty well, that they're making a bad choice to use it because it doesn't offer the behavior you want.

For what it's worth, I think a lot of people use Markdown notes apps in a way that you might not be considering. Like, this separation between writing and viewing that you're talking about simply doesn't exist in my note-taking workflow. I usually just read the raw markup, possibly with some minimal formatting added on by whatever app I'm using.

AkaSci, (edited ) to random
@AkaSci@fosstodon.org avatar

The Event Horizon Telescope org. just released this swirling "image" of Sagittarius A*, the supermassive black hole (SMBH) at the center of our galaxy. The spiral lines in the composite image is based on measurements of polarized light emitted by surrounding plasma and highlights the magnetic field around the black hole.

The spiral structure is a result of the strong magnetic field around the black hole, which is caused and shaped by the swirling plasma.

https://eventhorizontelescope.org/blog/astronomers-unveil-strong-magnetic-fields-spiraling-edge-milky-way%E2%80%99s-central-black-hole

1/n

diazona,
@diazona@techhub.social avatar

@AkaSci Was that really 0.031 µas per pixel for NIRCAM or did you mean 0.031 as (31000 µas) per pixel? Maybe I'm just very confused (I am quite tired to be fair) but something sounds off about the numbers.

publicvoit, to NixOS
@publicvoit@graz.social avatar

Had an issue with where I couldn't run a tool that uses pandas. (Nix really doesn't work well with Python.)

Somebody helped me to find the solution by:
nix-shell -p 'python3.withPackages (ps: with ps; [ pandas numpy ])'

Today, another Python project with pandas and this time, even the nix-shell doesn't fix the situation. 😔

Learning: without being a NixOS wizard with deep knowledge about all the things below the surface, you simply can't run Python scripts.

diazona,
@diazona@techhub.social avatar

@publicvoit That's odd and annoying 😛 but thanks for sharing... I have never used NixOS but I'm curious about it

adamchainz, to python
@adamchainz@fosstodon.org avatar

🏎️ Last night, I fixed a segmentation fault bug in my testing library time-machine.

🤷 There were several outstanding issues about segmentation faults with unclear causes, and I didn’t have time to dive into them.

🐛 Then I received a new bug report from Marcin Sulikowski with a minimal reproduction. This research pointed directly at the problem and revealed the other reports as duplicates.

👏 Clear and reproducible bug reports are very valuable contributions!

diazona,
@diazona@techhub.social avatar

@simon @adamchainz This is pretty much the standard method for testing anything that involves a process dying, isn't it? Like, it's used in Googletest and other testing frameworks. Handy to know about for sure, but it's not like it's groundbreaking or anything. (of course it generally doesn't come up in Python testing because Python errors don't kill the whole process unless there's a bug in the interpreter or some native cod involved)

solarbird, to cooking

okay gastrodonians gimmie a hand with this

So I have this skillet.

A small skillet, silver in colour, not non-stick and not black/cast iron. The handle appears to be cast, the skillet itself is smooth.Obviously, it’s a skillet. And it looks like a cheap skillet – real cheap. But I don’t think it is.

The handle is cast iron or steel of some kind, despite being silver. The handle is also magnetic and heavy. The actual pan part, however, is aluminium, with no hint of magnetism, and also quite heavy – heavier than I feel it should be, like it has a slab of copper sandwiched inside layers of aluminium. There are three big thick bolts holding this thing together.

This is an object I feel like had to have been made with a purpose. I don’t know what that purpose was. And despite being a decent baker, I am no chef, and am merely an adequate cook in the sense of “I can follow directions correctly and produce the intended meal.”

So what the hell is this for?

Am I wrong about it having a special purpose? Is it in fact really cheap? Because it looks cheap. But it doesn’t feel cheap, and I think that’s important here.

Is it some sort of esoteric camping kit? Is that it? Feels way too heavy for that but it is nicely small.

What’m I missing here, Gastrodonians? Is this some sort of special implement? Or is it just a weird kind of cheap pan I’ve never seen before.

Do you know? ’cause I sure don’t.

[link]

diazona,
@diazona@techhub.social avatar

@solarbird My curiosity is piqued, I don't think it would have occurred to me that this might be anything more than an ordinary pan (maybe just a particularly sturdy one). I hope you find out!

jonny, to monsterdon
@jonny@neuromatch.social avatar

No way in hell am i watching with ads. importing the tubi version to @monsterdon rn, should be ready in time

diazona,
@diazona@techhub.social avatar

@jonny @monsterdon I am curious about how you actually go about doing this (though I don't even have a Tubi account so it's not for any practical reason)

diazona,
@diazona@techhub.social avatar

@jonny @monsterdon Oh makes sense, didn't realize it would work on Tubi though

diazona,
@diazona@techhub.social avatar

@jonny Thank you 🙏 🙏 🙏 I have to preserve this one for posterity and I'm hoping your version doesn't have the sound randomly cut out in the middle

#Monsterdon

diazona,
@diazona@techhub.social avatar

@jonny You mean yt-dlp? I'm quite familiar, I use it on an almost daily basis. I even made it into a personal batch download service for myself 🙂

PeerTube is also sounding increasingly impressive the more I hear about it

diazona,
@diazona@techhub.social avatar

@jonny @RufusJCooter oh that explains why they invited all the people to that very part of town for the presentation

🤦🤦🤦🤦🤦

#Monsterdon

ethantyping, to python
@ethantyping@hachyderm.io avatar

Extremely excited to share my team at NVIDIA is hiring for a full time role working on ✨ open source Python packaging projects ✨ like Warehouse, pip, and more!

If you are or know someone excited about open source Python development, especially focusing on open source packaging projects, please take a look! And if you have any questions for me, please reach out.

Please boost for spread!

https://nvidia.wd5.myworkdayjobs.com/en-US/NVIDIAExternalCareerSite/job/Senior-System-Software-Engineer---Open-Source-Python-Ecosystem_JR1981378

#python #opensource #getfedihired #fedijobs

diazona,
@diazona@techhub.social avatar

@ethantyping Oh wow that sounds like exactly the kind of thing I'd love to do! But I don't think I have the credentials for it.

villares, to random Portuguese
@villares@ciberlandia.pt avatar

If you are not a professional software developer, setting up the SSH keys/agent/everything to use git/gh CLI is just beyond horrible... I just want to write, version control, fetch/push and run some code, damn it.

diazona,
@diazona@techhub.social avatar

@villares For plain old Git, at least, I never found it particularly hard to handle. I guess figuring out how to generate a new SSH key if you don't already have one can be a little tricky? But it is just one command to run (at least on Linux, or I think no more than a couple button clicks or such with typical SSH clients on Windows), and beyond that, all you have to do is take the content of a file, paste it into a web form, and you're all set.

Not that this does much for you, I suppose, except to suggest that if you're having this much trouble with it, there may be an easier way because I don't think it's supposed to be that hard 🤷

diazona,
@diazona@techhub.social avatar

@villares Huh, weird. This definitely sounds unusual.

Anyway, the main point I wanted to make (which I kind of forgot to get to before) is that it's an overreach to say that the process is "beyond horrible" based on your single atypical experience. It still works fine and smoothly for a lot of other people.

I suppose you could share the errors and maybe get some help here, if you wanted to.

diazona, to random
@diazona@techhub.social avatar

Hey , for anyone still looking, YouTube has a high-quality upload of Beyond the Time Barrier in black and white: https://www.youtube.com/watch?v=V6EdVv01Rqo

Somebody linked to this earlier in the week but I can't find the toot to thank them

diazona, to random
@diazona@techhub.social avatar

So is it just a coincidence that we're watching Beyond the Time Barrier on the same day we passed a (Daylight Savings) Time barrier 🤯

diazona, to random
@diazona@techhub.social avatar

Ugh, it's one of those cases when I find myself contemplating which of Amazon or Walmart is less distasteful to do business with

Or eBay, but the thing I'm looking at sells for $60 on Amazon or Walmart and the various eBay sellers offering it are charging $130 minimum for comparable quality. I mean, I'm all for supporting smaller and (hopefully) less selfish sellers, but only within reason, and paying double the price is not kind of beyond reason in this case.

I wonder what others would do?

kmherkes, to scifi
@kmherkes@wandering.shop avatar

My humble offering to anyone seeking a weekend read:

Weaving In The Ends, a novella duology that starts w/a summer fling & ends w/a Winter Solstice brawl.

It's the closest I have to a feel-good story, it's a cozyish quick read that can be read as a standalone, or as an easy springboard into the world of 2 connected novels.

Available in print & ebook now, audio coming soon!

https://books2read.com/WeavingInTheEnds

@bookstodon

diazona,
@diazona@techhub.social avatar

@kmherkes @bookstodon Sounds like this might scratch an itch I've been having lately 😀 I'm putting it on my list

talesofaprinny, to KDE
@talesofaprinny@mastodon.social avatar

How... do I log into lemmy, say KDE Social lemmy using my Mastodon account? @kde I'm not sure how this works 👴🏼👴🏼👴🏼

diazona,
@diazona@techhub.social avatar

@talesofaprinny @kde I'm not sure how helpful this will be for you, but it's kind of like email. You have an account on one email server (like, say, Gmail), and you can use that account to exchange messages in a standard format with people on other email servers (Outlook, Yahoo Mail, Proton Mail, Fastmail, etc.), but your account on Gmail doesn't let you log in anywhere else. If you want to use any of those other servers directly, you need to create an account on the server you want to use.

Similarly, you can use your account on one Fediverse server (mastodon.social) to exchange messages in a standard format with people on other Fediverse servers (techhub.social, lemmy.kde.social, etc.), but your account on mastodon.social doesn't let you log in anywhere else. If you want to use any of this other servers directly, you need to create an account on the server you want to use.

jonny, to random
@jonny@neuromatch.social avatar

frick i got subs not dubs for

diazona,
@diazona@techhub.social avatar

@jonny @monsterdon I may have to join you in this since I didn't get it set up on Plex in time

atomicpoet, to random
@atomicpoet@atomicpoet.org avatar

In light of recent events, I’m actually thinking about defederating the “opt-in” purists for the following reasons:

  1. They did not actually opt into receiving my posts, therefore they shouldn’t have access to them
  2. They so far refuse to join or operate a whitelisted version of the Fediverse that is specifically opt-in
  3. Despite this inconsistency, they are dogpiling and harassing people who do not share their vision of an opt-in version of the Fediverse
  4. Each time someone who’s a total beginner experiments with the ActivityPub spec, the opt-in purists respond with ugliness, and this is toxic to the future of the Fediverse itself
  5. I do not want to subject myself to death threats, or worse, simply for expressing an opinion that is different from the opt-in purists

This is not something I’m going to pursue immediately, but certainly considering this quite heavily. Either way, if the opt-in purists won’t create their own opt-in version of the Fediverse, then I’m likely going to opt out of federation with them.

diazona,
@diazona@techhub.social avatar

@atomicpoet Oh this is interesting. I suppose defederating is the proverbial "nuclear option" and on one hand it would be unfortunate if it comes to that, but on the other hand your points are very good ones - I especially liked the one about how the opt-in crowd has the effect of shutting down innovation surrounding ActivityPub and that's a bad thing for the Fediverse. The idea of a Fediverse where adding a new server or service requires opt-in from everyone already there (or their representatives) is not one I find appealing.

I mean, there's certainly nothing wrong with a group of people who want such a thing creating their own separate opt-in-only network that doesn't federate with the rest of us. That's just not the Fediverse I want to be part of.

diazona,
@diazona@techhub.social avatar

@atomicpoet BTW I dunno how it is for you but I see a bunch of missing line breaks in your post

diazona,
@diazona@techhub.social avatar

@atomicpoet Ah yeah, I was using the Android client to view it earlier, but now that I look on the website it seems fine. Maybe the Android client can't handle numbered lists.

Incidentally, how did you get a numbered list in the post? Some kind of custom server software I imagine? (This is just out of curiosity)

MylesRyden, to KDE
@MylesRyden@vivaldi.net avatar

So far, I have to say that my experience sucks.

The theme I was using doesn't work. The icons all suck. EventCalendar, which was synced to my Google calendar is dead. Vivaldi looks like crap. The panel at the bottom of my screen is floating up probably 100 pixels, leaving useless space below it, I can't find a way to sink it to the actual bottom of the screen. I had increased all my font sizes because my eyes are bad, they have all shrunk and changing the font sizes and the interface percentage doesn't fix it.

So far, not a happy experience @kde

diazona,
@diazona@techhub.social avatar

@Fleppensteijn @Max_P The change in the first component of the version number from 5 to 6 is what could have tipped you off. I mean, admittedly there's no universal standard for software versioning that everyone follows, but the closest thing there is to a commonly adopted standard (https://semver.org/) says that when the first component of the version number changes, it's a big deal and things might break. (Or, a relatively big deal, but just how big that is in practice depends on the package.) If you didn't know to look out for that, now you do. 😀

Unless by "average user" you mean someone who relies on automatic updates and doesn't look at what's getting installed. Which is fine, but if you're allowing automatic updates, you have to understand you're giving up the ability to catch stuff like this before it happens. (This situation could certainly be improved, but generally that's the state of things right now.)

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