BOTAN jpg creating on LINUX


● (No.1174) BOTAN jpg creating on LINUX (2025年10月24日)
 -------------------------------------------------------



[Extract]
|------- 20 -------||------- 20 -------| 
2025-10-11 00:27:54|94A662B29AB26094A662
B2A0A86103F042CCFF800000FFD8FFE000104A46
494600010100000100010000FFDB00430050373C
463C32504641465A55505F78C882786E6E78F5AF
B991C8FFFFFFFFFFFFFFFFFFFF||BX1AD-PL04vq

> [5407] is the number of rows in the csv file.
> [5407] decimal = [151f] hexadecimal
> Save the following as [ext080.rb]

[ext080.rb]
for i in 0..0x151f
printf("grep 03F042CCFF80%04X 20251023btn.csv | head -1 | cut -c 65-186 >> 20251023btn_80_cut.hex\n", i)
end

[Terminal]
$ ruby ext080.rb
$ ruby ext080.rb > 51023btn.sh
$ sh 51023btn.sh
$ cat 20251023btn_80_cut.hex > 51023btn.hex
$ tr -d '\n' < 51023btn.hex > 51023btn-oneline.hex
$ cat 51023btn-oneline.hex | xxd -r -p > 51023btn-completion.jpg


[Extract] |------- 20 -------||------- 20 -------| 2025-10-14 05:26:09|94A662B29AB26094A662 B2A0A86103F042CCFFD00000FFD8FFE000104A46 494600010100000100010000FFDB004300020101 0101010201010102020202020403020202020504 04030406050606060506060607||BX1AD-PL04vq > [5407] is the number of rows in the csv file. > [5407] decimal = [151f] hexadecimal > Save the following as [ext0D0.rb] [ext0D0.rb] for i in 0..0x151f printf("grep 03F042CCFFD0%04X 20251023btn.csv | head -1 | cut -c 65-186 >> 20251023btn_D0_cut.hex\n", i) end [Terminal] $ ruby ext0D0.rb $ ruby ext0D0.rb > 51023bt2.sh $ sh 51023bt2.sh $ cat 20251023btn_D0_cut.hex > 51023bt2.hex $ tr -d '\n' < 51023bt2.hex > 51023bt2-oneline.hex $ cat 51023bt2-oneline.hex | xxd -r -p > 51023bt2-completion.jpg


Image No.90 で、ついに地球の姿を捉えた。 [Extract] |------- 20 -------||------- 20 -------| 2025-10-13 06:15:39|94A662B29AB26094A662 B2A0A86103F042CCFF900000FFD8FFE000104A46 494600010100000100010000FFDB00430050373C 463C32504641465A55505F78C882786E6E78F5AF B991C8FFFFFFFFFFFFFFFFFFFF||JA5BLZ-PM63uo > [5407] is the number of rows in the csv file. > [5407] decimal = [151f] hexadecimal > Save the following as [ext0D0.rb] [ext090.rb] for i in 0..0x151f printf("grep 03F042CCFF90%04X 20251023btn.csv | head -1 | cut -c 65-186 >> 20251023btn_90_cut.hex\n", i) end [Terminal] $ ruby ext090.rb $ ruby ext090.rb > 51024bt3.sh $ sh 51024bt3.sh $ cat 20251023btn_90_cut.hex > 51024bt3.hex $ tr -d '\n' < 51024bt3.hex > 51024bt3-oneline.hex $ cat 51024bt3-oneline.hex | xxd -r -p > 51024bt3-completion.jpg


[Extract] |------- 20 -------||------- 20 -------| 2025-10-29 22:22:20|94A662B29AB26094A662 B2A0A86103F042CCFFDC0000FFD8FFE000104A46 494600010100000100010000FFDB004300020101 0101010201010102020202020403020202020504 04030406050606060506060607||JA3TDW-PM74vr > [2145] is the number of rows in the csv file. > [2145] decimal = [861] hexadecimal > Save the following as [ext0D0.rb] [ext0DC.rb] for i in 0..0x861 printf("grep 03F042CCFFDC%04X 20251030btn.csv | head -1 | cut -c 65-186 >> 20251030btn_DC_cut.hex\n", i) end [Terminal] $ ruby ext0DC.rb $ ruby ext0DC.rb > 51030btn.sh $ sh 51030btn.sh $ cat 20251030btn_DC_cut.hex > 51030btn.hex $ tr -d '\n' < 51030btn.hex > 51030btn-oneline.hex $ cat 51030btn-oneline.hex | xxd -r -p > 51030btn-completion.jpg


[ext.rb] test for BOTAN [ext.rb]プログラムの中の一行を BOTAN用に書き換えて、わずか 2行(下記$以下)の ターミナル実行で、前回と同じ地球画像(下半分が奇妙) foo-90.jpg が得られた。 > YOMOGI用 pattern = "4A4736594257304A4736594D58303EF0FFF0FF#{ID}" > BOTAN用 pattern = "94A662B29AB26094A662B2A0A86103F042CCFF#{ID}" https://gist.github.com/jh4xsy/a45da2f1946e997fe09fb838f8157efd $ grep 2025-10-13 20251023btn.csv > wip.csv $ ruby ext.rb 90


ほぼ綺麗な画像。 $ grep 2025-10-29 20251030btn.csv > wip.csv $ ruby ext.rb DC



トップ へ戻る.
前のページ へ戻る.
次のページ へ移る.(編集中)
ホームページ(目次) へ戻る.