Show newer

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 ?

@simon You really should specify the build system there. Not specifying it isn't saying, "pip, handle this for me" it's actually conveying, "I created this file in the period of time after tools other than pip started using it but before pip did."

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

@bitecode @treyhunner @pycon No, I started where everyone else did and I still don't recommend pendulum. They have a somewhat incoherent model, are much slower.

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

Once again, I am so frustrated by Python static typing github.com/pallets/click/issue If any typing expert out there wants to help, that would be wonderful. #Python

I'm on the job market. Any early stage startups hiring lead engineer positions, DM me please! 🙂

WTF is wrong with the Apple ecosystem? I've tried 3 different podcast apps now (Podcasts, @overcastfm and PocketCasts) and it seems like none of them are capable of easily like... opening a link to an RSS feed and turning that into a podcast if the feed is only available on the LAN. It's infuriating that every time I deal with some Apple thing it's something like this.

This weekend I’ve spent more time in the tox rabbit hole than I expected, but check out how I’ve cut the runtime of full tox runs of the attrs test suite by 75%:

Two Ways to Turbo-Charge tox
hynek.me/articles/turbo-charge

@RichardNairn Note that approximately no one in my extended family looked at it in any serious way after I did that 😅

@RichardNairn I started out with gramps but ended up creating a Webtrees installation to make it easier to show the data to my family and let them modify it.

webtrees.net/

@kevin Looking forward to my layovers in Wakanda and Agrabah.

Twitter is falling apart. Reddit is falling apart. Facebook fell apart ages ago. Meta is a trashfire. Instagram is baloney. Google can't even search for anything you want anymore.

You know what website still miraculously works?

Wikipedia.

You should donate to keep it that way.

@bitecode Hmm. Looks like this isn't the right device for me. Maybe the horribly-named Circular (circular.xyz) ring will be better.

I've been tempted to get an Oura ring, but I'm a bit worried that the device would become useless if the company went under and also, more importantly, it seems like they have a proprietary charger that costs $60!

Why don't people build their stuff to work with standard wireless charging pads 😭

@lynne I vaguely recall someone making the case on twitter or something that you can very plausibly describe wood like it's a science fiction magical material; probably not doing it justice here but:

1. Self-assembling nanomaterial made out of sunlight, air and some dirt.
2. Durable building material, an excellent insulator and extremely easy to work with.
3. Can burn directly for fuel, and the ashes can be used for a bunch of random stuff (making potash, you can write with it, etc). Can also heat it to turn it into charcoal.
4. Can pulp it to make paper.

Show older
Qoto Mastodon

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