@nedbat@hachyderm.io
@nedbat@hachyderm.io avatar

nedbat

@nedbat@hachyderm.io

Python, software, coverage.py, typography, juggling, Boston, autism (dad). Laughing at the world doesn't mean I don't take it seriously. He/him.

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

nedbat, to random
@nedbat@hachyderm.io avatar

A fun browser toy: The Blob Toy.
Here's an example: https://oimo.io/works/blob/
https://oimo.io/works/blob/?id=07eb178b

nedbat, to python
@nedbat@hachyderm.io avatar

I guess the time has come. I think I have to finally figure out what #Python's sys.meta_path does...
https://docs.python.org/3/library/sys.html#sys.meta_path

o76923, to python
@o76923@kitty.social avatar

I still think it's nuts that 's best solutions for rendering are a bunch of wrappers around CairoSVG with the two next best solutions being use Inkscape from the command line and wand, a wrapper around ImageMagick.

nedbat,
@nedbat@hachyderm.io avatar

@o76923 Can you say more about why it's nuts to wrap CairoSVG? Is there something wrong with it?

nedbat, (edited ) to random
@nedbat@hachyderm.io avatar

How long am I willing to stick with something if it works? I'm currently editing an XSLT file that underpins my blog... https://nedbatchelder.com/site/xuffpx.html

nedbat, to python
@nedbat@hachyderm.io avatar

Mostly you shouldn't subclass built-in types. But if you do, dict subclasses can define missing: it's called when a key is missing. Instead of hiding a dict in a function as a cache, how about hiding a function in a dict!? A Fibonacci dictionary:

nedbat, to python
@nedbat@hachyderm.io avatar

Nested loops can sometimes be replaced by one itertools.product() from the #Python stdlib:

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