Show newer

**Did You Know‽**

Most people know that humans drown when immersed in water for prolonged periods of time, but did you know that they also cannot survive immersion in molten lead?!

For more fun human facts, subscribe to my newsletter *Human Fact of the Day*!

Do you ever visit the Python datetime docs specifically to look up those percent formatting codes?

Good news!

I've added a handy shortcut at the top to take you directly there!

⤵️🎉

docs.python.org/3/library/date

#Python #docs #datetime

Tried to go extremely stereotypical, specifying the "three eyes" multiple ways. The closest I got was a lemur with a little yellow light on its forehead.

“a three-eyed lemur; the lemur is sitting in a lotus position and all three of its eyes are open. The third eye is centered on its forehead. highly detailed digital art trending on artstation”

Show thread

Anyone have any good tricks for getting AI image generation models like or to produce animals or people with three eyes? I was hoping to get a lemur with a typical "mind's eye" third eye, but all the models seem to ignore the third eye condition no matter how frequently I specify it.

"Papa, I hate Swiper."

Yo también, little buddy.

Thanks to [this response](mastodon.social/@ryanprior/110) and [this one](fosstodon.org/@hanno/110860898), I realized that I Orgzly actually _can_ be used with the local file system, I was just trying to sync a whole folder hierarchy and Orgzly wants to do it folder-by-folder (and manage everything in one big flat file).

I've been using it for about a day now and it's actually working for me! Thanks @ryanprior and @hanno!

Paul Ganssle  
I am really disappointed by the current state of org mode (or just note taking in general) on Android. I really want a simple, dedicated app where ...

I wanted to try , but their release method is "download an apk from our website" for some reason?

It is unclear why they aren't on Fdroid or the play store: github.com/logseq/logseq/discu

Show thread

I hate to link to reddit, but this is a disheartening thread: old.reddit.com/r/orgmode/comme

There's an emacs port on f-droid, but when I tried to use it it's not exactly a native app experience. Opening a file involves typing the full path to the file!

Show thread

I am really disappointed by the current state of org mode (or just note taking in general) on Android.

I really want a simple, dedicated app where I can:

1. make a simple list or takes some notes
2. have that be saved in some plain text format that can be edited in vim or emacs on my computer
3. have that file be accessible in a way that Syncthing can pick it up
4. Pick up changes made on the file system

Orgzly seems to want to do its own thing and fails at 3 and 4. orgro is read-only. Every other note-taking or list app I've seen just stores stuff in its own little database in its own format.

By the way, if you are starting up your own fediverse server, it may be tempting to blindly copy someone else's block list, but some corners of the fediverse have been a bit over eager with full instance bans, in my opinion, which tends to break the whole federation model (imagine if you couldn't email anyone with a certain university's email domain because your email provider disagrees with the university policies).

If an instance is putting a lot of irritating stuff in your server's global timeline, it might be better to just mute them from the global timeline.

Seems like my son is the first person in his friend group to lose a tooth.

How much do you think the other parents will pay me to *not* set the going price for teeth at $20?

Here's a typing puzzle: mypy-play.net/?mypy=latest&pyt

I want to have a method decorator that constrains the type of `self` with respect to a generic, but (obviously) does not _reduce_ the type of `self` to require that it accept any instance of the bound the decorator requires. Do I just need higher-kinded TypeVars for this (github.com/python/typing/issue) or am I missing something obvious?

I have the most thoughtful kids!

They know how much I like cottage cheese, so sometimes when I give them milk, rather than drink it all, they'll save some and hide it somewhere. That way, when I am cleaning up the messes they've made around the house, I can find it and oh, look, it's turned into a papa snack!

Warms my heart every time. 😍

Just finished with my son's reading lesson (using *Teach Your Child To Read in 100 Easy Lessons*, which is working *amazingly*, by the way); afterwards, I was trying to looking up the history of the character "a" and was reminded of how rigged the game is.

It still feels like magic to me that #NumPy allows slices that aren't "rectangular". They can be arbitrary index lists, which in the simplest form allows you to "draw" polygons by first selecting the pixels and then making a single assignment. That's what ski.draw.polygon does.

But it goes further, you can have really arbitrary lists of multi-dimensional indexes so they don't have to be continuous or anything. My simple high-school math mind can barely accept it 🤯

#Python

NumPy 2.0 is coming. You should be excited and terrified in equal measure.

- Stan Siebert at #SciPy2023

I'm not really a textbook reader type, anyone have a recommendation for my colleague who is a Java/Kotlin expert and looking to skill up on ?

Wow. Meta commits to dedicate three engineer-years to implement the removal of the GIL from #Python and fix upcoming compatibility and performance issues with it.

All this dependent on whether the Steering Council accepts PEP 703.

discuss.python.org/t/a-fast-fr

Need to work with timezones in #Python?

Don't use pytz! Use zoneinfo.

It's included in the Python standard library from Python 3.9 onward and pip install-able if you're on Python 3.8.

If your code needs to run on Windows, note that you'll need to pip install tzdata to use Python's zoneinfo module properly.

If you're really curious to understand this topic deeply, watch @pganssle's talk from @pycon: m.youtube.com/watch?v=rYzgroaK

The scope of a feature request often isn't obvious to the asker. For example, someone just asked on the Python forum to make it possible to subclass `pathlib.Path.` Meanwhile, Barney Gale has spent the last *three years* or so working on all the nuances of that, and it's finally making it into Python 3.12 although there's more to do. He worked so much they made him a core dev. #Python #TodayInOpenSource

Show older
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.