mastodontech.de ist einer von vielen unabhängigen Mastodon-Servern, mit dem du dich im Fediverse beteiligen kannst.
Offen für alle (über 16) und bereitgestellt von Markus'Blog

Serverstatistik:

1,5 Tsd.
aktive Profile

#nerdsniped

0 Beiträge0 Beteiligte0 Beiträge heute

Nerdsniping of the day (I was the victim): Are there years when the US vs ISO abiding countries do not agree on the week number?

The answer as per playing a bit with python is: yes indeed, and 2027 will be the next occurrence. On this date 2 years from now, the US is living week 15 while most of us are still in week 14.

The root cause is a different definition of week 1, whether it's placed on January 1st or January 4th.

In addition there's the bit where we disagree on the number every Sunday and other Fun conflicts I'm omitting for brevity, but that's mostly small potatoes to almost an entire year of potential misunderstandings!

Antwortete im Thread

@simontatham
(and yes, I grabbed a quick set of unicode emoji/symbol ranges and wrote a #Python script that expanded them all to their individual code-points, iterated over them checking if 0x20 was set and if not-0x20 was also among the code-points; and if so, emitted the unicodedata.name() of both characters for quick evaluation) 🤓

I got properly #NerdSniped last night thinking about how to create #shapes.

A circle is easy and has a defined #circularity (1) and #AspectRatio (1), but how do you create a set of shapes with given values for these properties?

An ellipse seems like a decent "base" shape to start with but then calculating the perimeter is not as trivial as I thought it would be.

Here is the question that started it if anyone is interested in chiming in:
forum.image.sc/t/free-shape-ge
#Maths #Geometry #Mathstodon

@teunbrand First draft.

Notes:
* There's an interesting choice to be made when multiple candidates match
* Locally optimal/greedy matching probably gives globally sub-optimal final result
* Feels like there should a 2d divide/conquer method.
* Also feels like there should be a 2d growth+simulated annealing that would producing something nice
* quadtrees / binary space partitioning methods?

Do you have interesting test cases to try this on?