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

jacob, to random
@jacob@jacobian.org avatar

I am delighted to inform you that Tom7 is at it again: https://www.youtube.com/watch?v=Y65FRxE7uMc

nedbat, to python
@nedbat@hachyderm.io avatar

Are you sure you know how #Python decorators work? This should be no problem! 😈 🤯 🤓

brohrer,
@brohrer@recsys.social avatar
cstross, to random
@cstross@wandering.shop avatar

If you live in the UK or USA, you need to understand one thing about the coming election:

You need to vote defensively.

Neither of the main parties are appealing. But if you don't vote for the lesser evil you may end up helping a totalitarian horror get elected.

Hold your nose and goddamn vote, dammit. THEN go on protests. Because if you don't vote for the lesser evil, the victor will welcome your protests with bullets.

The prize for political purity this time round is a shallow grave.

coveragepy, to random
@coveragepy@hachyderm.io avatar

Coverage․py 7.5.3: performance improvements, including a sometimes drastic speed-up for combining data files.

https://coverage.readthedocs.io/en/7.5.3/changes.html#changes-7-5-3

kati, to random
@kati@fosstodon.org avatar

Me juggling for the first time in decades at PyCon US. Thank you to @nedbat for some unexpected fun! https://youtube.com/shorts/TJfENk2653c?si=D0laEjmVEWeLK6gV

ludob, to random
@ludob@hachyderm.io avatar

Yesterday was my first time doing at (or anywhere), and I didn't know what to expect coming in. From the time I asked "is this the @coveragepy table?" to when I left, a table of complete strangers were so kind, funny, helpful, and patient as I explained my idea, got set up, and started hacking away while asking tons of questions all along. Thanks to @nedbat @grohe43 @marcgibbons @kevin and the rest of the sprinters for being the best example of what collaboration can be.

brainwane, to python
@brainwane@social.coop avatar

Here is a blog post with links and references to accompany my closing keynote today at , on stories from a few years working on packaging.

http://harihareswara.net/posts/2024/references-pycon-us-keynote/

jacob, to random
@jacob@jacobian.org avatar

“PyCon has all these workshops on how to get into open source, but it doesn’t have any on how to get out”

(Followed by a mix of laughter and knowing groans)

@brainwane #PyConUS

geordie, to random
@geordie@aus.social avatar

OH:

"Have you tried turning it off... ?"

"... and back on again, yeah I have."

"No, just turning it off."

coveragepy, to random
@coveragepy@hachyderm.io avatar

Anyone familiar with the oss-fuzz workflow, or wants to learn about it? I don't understand this bug report or how to see it actually affect coverage․py: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=69058

mathsppblog, to random
@mathsppblog@fosstodon.org avatar

It’s going to be a bit early but I’ll give a lightning ⚡️ talk at tomorrow morning.

Come and join me as I’ll be counting up to 698,438,863,898,480,640 in about 4ms 🤔

coveragepy, to random
@coveragepy@hachyderm.io avatar

Looking forward to Juan's #PyConUS talk on near-zero overhead coverage measurement: https://us.pycon.org/2024/schedule/presentation/110/

Juan and @nedbat will be grabbing dinner Friday. Other coverage-minded peeps are welcome to join.

miketheman, to Dragonlance
@miketheman@hachyderm.io avatar

Are you coming to #PyCon US this week in Pittsburgh? I am!

I put together a helpful custom #map 📍 with the recommended local places from the PyCon US website to help me navigate - hope it helps you too in some way.

https://www.google.com/maps/d/viewer?mid=1Y31kfV0PKgUNNkjlx_JujwL_w5LvV5Y&ll=40.46084522106604%2C-79.9658134&z=13&hl=en

#Python #PyCon2024 #PyCon24 #PyConUS #PyConUS2024

simon, to random
@simon@simonwillison.net avatar

Here's a brilliant neologism: "slop", for text generated entirely by LLMs and published, unwanted, on the Internet

> Watching in real time as "slop" becomes a term of art. the way that "spam" became the term for unwanted emails, "slop" is going in the dictionary as the term for unwanted AI generated content

Source: https://twitter.com/deepfates/status/1787472784106639418

simon,
@simon@simonwillison.net avatar

Blogged a few more notes about slop, and why I like the term so much https://simonwillison.net/2024/May/8/slop/

ogbog, to ai
@ogbog@mastodon.social avatar

So my new format is this: An icosahedron goes up to a dodecahedron and says "Ay gurl, you wanna come over to my place and roll a 20? (or insert whatever you like, the joke's really just an excuse to make up comical rizz)" and then the dodecahedron says "uh...I think we should keep things platonic."

Anyhoo, here's bonus in which 1st search result for platonic solids includes...two cones that are not platonic solids, and neither of our two lovers

elliotjaystocks, to Typography
@elliotjaystocks@mastodon.social avatar

Tip Tuesday! Know your numerals (or figures). There are 4 different kinds and a well made font should contain all of them:

  • Proportional lining
  • Proportional oldstyle
  • Tabular lining
  • Tabular oldstyle

Top 2 rows: Proportional numerals have varying glyph widths, just like most letters and symbols. Oldstyle numerals’ letterforms have ascender- and descender-like designs.

Bottom 2 rows: Tabular numerals have a consistent width.

nedbat, to random
@nedbat@hachyderm.io avatar

My test suite has just one dot on the last line. What would you do?

  • Delete one test
  • Change the width of the terminal
  • Keep it as a visceral reminder of the uncomfortably chaotic nature of the universe
  • Write more tests
ojii,

@nedbat write a pytest plugin that reads terminal width and auto adds noop tests to pad the number of tests to fit the terminal

alex,
@alex@moreati.org.uk avatar

@nedbat rewrite the pytest progress indicator using braille characters, so more passing tests fit on a single line.

danzin,
@danzin@mastodon.social avatar

@nedbat That's a lot of new tests needed for a good dots feng shui. Maybe write a single new one with a loop and use the subtests fixture? Then you can detect the terminal width and scale the loop to always fill it correctly.

dabeaz,
@dabeaz@mastodon.social avatar

@nedbat Put a time.sleep(30) in that one test to just let it hang there for an uncomfortably long time.

do3cc,
@do3cc@mastodon.social avatar

@nedbat write a plugin that randomly inserts whitespace, so that the last line is always full.

jimfawkes,

@nedbat adjust the font size

alex,
@alex@alexwlchan.net avatar

@nedbat Switch your terminal to a proportional font

slott56,
@slott56@fosstodon.org avatar

@nedbat Write a wrapper for pytest that collects the output, counts the characters. While prime, subtract an odd number greater than 1 for the last line of an overflow. When non-prime, pick two factors near the square root (one of which is more than the overflow) and make a rectangle (perhaps with an overflow line.)

I know it sounds complicated, but there are folks willing to let an LLM generate code from this.

danzin, to python
@danzin@mastodon.social avatar

There's this very useful and widely used #Python tool, @coveragepy, that creates HTML coverage reports and uses #JavaScript in them.

I have proposed a simple PR to fix a small issue in sorting columns in the reports: https://github.com/nedbat/coveragepy/pull/1768/files

However, I'm very bad at #JS.

The behavior is working as intended, but I can't shake the feeling that my JS code is awful in some way I can't see.

Could you take a quick look at the diff and point out anything that should be improved? TIA!

#coverage

  • 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