Skip to content

Instantly share code, notes, and snippets.

View teaalltr's full-sized avatar

teaalltr

  • In the world, probably
View GitHub Profile
@teaalltr
teaalltr / gist:63ee755de74105a7e1f550aa03f8d4aa
Created March 14, 2025 13:26
error ladybird with ffmpg qsv enabled vcpkg
autoreconf: export WARNINGS=
autoreconf: Entering directory '.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I m4
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy --force
autoreconf: configure.ac: not using Intltool
autoreconf: configure.ac: not using Gtkdoc
autoreconf: running: aclocal --force -I m4
autoreconf: running: /usr/bin/autoconf --force
@teaalltr
teaalltr / gist:b480cd3caf4e1f52e1ad3ee8b363f812
Created March 14, 2025 12:59
Error ladybird ffmpeg qsv added to vcpkg
ninja: Entering directory `/home/marco/yt-ladybird-test/ladybird/Build/release'
[0/2] Re-checking globbed directories...
[1/2] Re-running CMake...
-- Running vcpkg install
Detecting compiler hash for triplet x64-linux-dynamic...
Compiler found: /usr/lib64/ccache/c++
The following packages will be rebuilt:
ffmpeg[avcodec,avdevice,avfilter,avformat,core,dav1d,openh264,opus,qsv,swresample,swscale,theora,vorbis,vpx,webp,zlib]:[email protected]#1 -- /home/marco/yt-ladybird-test/ladybird/Build/vcpkg/buildtrees/versioning_/versions/ffmpeg/8bf6bad9b522d47e259a13d9033a825a6abd41a9
The following packages will be built and installed:
* mfx-dispatch:[email protected]#4 -- /home/marco/yt-ladybird-test/ladybird/Build/vcpkg/buildtrees/versioning_/versions/mfx-dispatch/0e2d18fc6010dd23044bade1a855669f8e9c9c86

Units formations

Military units can be arranged in various formations. Here's an overview on how this may be implemented

Line formation

If you table the number of units in the first row, in the second row and so on accordingly to the number of units in the group, you'll find a pattern in the units number intervals for a given row count: namely, the length of the first interval (0...6) is 6, the second (7...15) is 9 = 6+3 + 0, the third (16...28) is 13 = (6+3) + 3+1, the fourth (maybe) (29...46) is 18 = ((6+3) + 3+1 ) + 3+2.

The value of 46 is chosen by observing that the difference between the last value for a certain row count and the first value for the following row count is always 3; in this case, with 46 units 4 rows are formed: the first 3 with 12 units and the last with 10. For the next value, 47, we guess 5 rows with 10, 10, 10, 10, 7.