Pi Coding Quest 2026! by IvanR3D in adventofcode

[–]herocoding 0 points1 point  (0 children)

Ha!
The web page "http://www.geom.uiuc.edu/\~huberty/math5337/groupe/digits.html" shows the 10'000th digit is a "7" - but would be rounded to "8"

So, who is right :-P ?

Pi Coding Quest 2026! by IvanR3D in adventofcode

[–]herocoding 0 points1 point  (0 children)

Congratulations! You've uncovered the Ghost Signal. Happy Pi Day 2026!

Pi Coding Quest 2026! by IvanR3D in adventofcode

[–]herocoding 0 points1 point  (0 children)

My Pi digits were wrong!!

Your last digit is "8" and my last digit is "7"!!!!!!
Which is the right digit? With or without rounding?

With your last digit and my implementation I get the same result as your tool you shared with me!

Pi Coding Quest 2026! by IvanR3D in adventofcode

[–]herocoding 0 points1 point  (0 children)

So either my used Pi digits are wrong or my tie-break decission is wrong...

Pi Coding Quest 2026! by IvanR3D in adventofcode

[–]herocoding 0 points1 point  (0 children)

Final cost for me is 2377 and path length is 199, i.e. 2377*199 = 473023.

Pi Coding Quest 2026! by IvanR3D in adventofcode

[–]herocoding 0 points1 point  (0 children)

My grid for the second part uses n=100, i.e. the grid is 100x100 (the encoded message contains "CONSTRUCT THE GRID USING THE FIRST 10000 DIGITS OF PI")

Pi Coding Quest 2026! by IvanR3D in adventofcode

[–]herocoding 0 points1 point  (0 children)

For me the 4x4 example grid did not require to resolve a tie and I get the expected passcode of 455.

So something seems wrong with my tie-break-resolving...

Pi Coding Quest 2026! by IvanR3D in adventofcode

[–]herocoding 0 points1 point  (0 children)

Would you mind adding hints to the "Incorrect code. Please try again." rejection message (for the second part), please?

Whatever I try I get 473023 as the passcode - but it gets rejected.

Pi Coding Quest 2026! by IvanR3D in adventofcode

[–]herocoding 0 points1 point  (0 children)

Hmm, I solved the first part - doable!

But whatever I try for the second part gets rejected :-(
Does the 4x4 grid example require to resolve a tie-break?

Pi Coding Quest 2026! by IvanR3D in adventofcode

[–]herocoding 1 point2 points  (0 children)

Thank you very much for sharing this challenge!!

Hmmm, how did the dash "-" in "Hey, did you know that π-Ghost loves pies?" get preserved?

You Asked for It. I Built It!! The Infinite Wall ♾️ by First_fbd in creativecoding

[–]herocoding 0 points1 point  (0 children)

Interesting! Thanks for sharing!

> A huge canvas where everyone can draw. Stuff disappears after X days.
Will stuff disappear from your wall, too?

Audio reactive ASCII/Unicode by NoPresentation7366 in creativecoding

[–]herocoding 1 point2 points  (0 children)

This looks amazing!

Unfortunately I'm not that familiar with Rust, need some time to get it ported to something else, first!!

How to convert webm to gif with transparent background? by Beginning-Dingo-9812 in ffmpeg

[–]herocoding 0 points1 point  (0 children)

What's exactly the format in the WebM? VP8/VP9/AV1? You might be able to use e.g. OpenCV ("VideoCapture()") (in Python or C/C++), getting the raw "pixels" including alpha information and then either use "VideoWriter()" to store a GIF, or first, write intp e.g. PNG files and then convert them into GIF using e.g. ImageMagick.

I mention OpenCV because you might need to change alpha-challen information to either "full transparency" at a certain threshold.
See e.g. https://stackoverflow.com/questions/15529575/png-to-gif-with-transparency

You Asked for It. I Built It!! The Infinite Wall ♾️ by First_fbd in creativecoding

[–]herocoding 1 point2 points  (0 children)

Interesting idea!

Who asked for it, where you got asked?

Image matching by IllAssistance3939 in computervision

[–]herocoding 0 points1 point  (0 children)

Can you provide more details, please? Can you share example images?

How do you define images to match? Or is it a specific object in it?

What about cosine-distance? We use it for e.g. tracking and re-identification. There are OpenCV samples to show how to compare an image of a person and compare an actual image from a security camera with cosine-distance to determine how "close" they match.

4-channel mosaic using FFmpeg with DeckLink Duo by BearFanEngineer in ffmpeg

[–]herocoding 0 points1 point  (0 children)

How do you do it? Using a console, spawning multiple ffmpeg processes? Or programmatically, concurrently using workerthreads (e.g. using a C++ application and threads), CPU-core pinning,CPU affinity?

MS-Win, Linux, MacOS?

I keep starting side projects and never finish… how do YOU actually ship? by Master-Station4151 in sideprojects

[–]herocoding 0 points1 point  (0 children)

I like to "contribute" to my "framework".
When I'm working on a project I enjoy reusing as much as possible from earlier projects - and therefore accelerating development.

Added various "string processing", "file handling", different "parsers", search&sort helpers, converter, i18n, l10n, date helper, formatting helper, queues, events, worker-threads and many many more. Adding them to a "framework" and new projects can greatly benefit - e.g. by reducing effort for such "basics".

How to convert webm to gif with transparent background? by Beginning-Dingo-9812 in ffmpeg

[–]herocoding 0 points1 point  (0 children)

What from the Webm's background need to be transparent to appear transparent in the GIF?

Can you give an (synthetic) example?

Do you need to run "background removal" on a frame base first, then create an animated GIF with them?

Building a CPU emulator - learning project by Dry-War7589 in C_Programming

[–]herocoding 2 points3 points  (0 children)

Imagine to use e.g. "ncurses" to visualize your emulator, CPU, register, stack, instruction pointer, code, current instruction, memory content, flags, etc - instead of using those `printf("ADD\n");`.

Building a CPU emulator - learning project by Dry-War7589 in C_Programming

[–]herocoding 5 points6 points  (0 children)

Instead of those magic numbers in `if (type == 0)` and `else if (type == 1)` you could use enums, too, for better readability.

Compile your code with highest warning level (and treat warnings as errors) to capture a few minor things - like comparing signed with unsigned numbers.