Merge pull request #2668 from xexyl/html06

Format fix some of 2006 entries' index.html
This commit is contained in:
Landon Curt Noll authored and GitHub committed 2024-09-02 14:37:33 -07:00
commit 7faec7d6a1
8 files changed
+65 -49

No files matched your search

+1 -3
View File
@@ -27,8 +27,6 @@ For more detailed information see [2006/birken in bugs.html](../../bugs.html#200
./try.sh ./try.sh
``` ```
etc.
## Judges' remarks: ## Judges' remarks:
@@ -41,7 +39,7 @@ What is TOFU? It's not a veggie friendly food, nor it is
[VHDL](https://en.wikipedia.org/wiki/VHDL) It is not even [VHDL](https://en.wikipedia.org/wiki/VHDL) It is not even
[Pascal](https://en.wikipedia.org/wiki/Pascal_(programming_language))! [Pascal](https://en.wikipedia.org/wiki/Pascal_(programming_language))!
NOTE: On some systems, `file(1)` claims one of the `.tofu` files is Pascal **NOTE**: On some systems, `file(1)` claims one of the `.tofu` files is Pascal
source. :-) source. :-)
It may not be the most readable hardware description language, but it is It may not be the most readable hardware description language, but it is
+1 -2
View File
@@ -419,7 +419,6 @@ Location: <a href="../../location.html#US">US</a> - <em>United States of America
<pre><code> ./birken &lt; file.tofu</code></pre> <pre><code> ./birken &lt; file.tofu</code></pre>
<h2 id="try">Try:</h2> <h2 id="try">Try:</h2>
<pre><code> ./try.sh</code></pre> <pre><code> ./try.sh</code></pre>
<p>etc.</p>
<h2 id="judges-remarks">Judges’ remarks:</h2> <h2 id="judges-remarks">Judges’ remarks:</h2>
<p>Q: EDAMAME?</p> <p>Q: EDAMAME?</p>
<p>A: Electronic Design Automation - Mechanical Abstract Machine Emulator</p> <p>A: Electronic Design Automation - Mechanical Abstract Machine Emulator</p>
@@ -427,7 +426,7 @@ Location: <a href="../../location.html#US">US</a> - <em>United States of America
<a href="https://en.wikipedia.org/wiki/Verilog">Verilog</a> or <a href="https://en.wikipedia.org/wiki/Verilog">Verilog</a> or
<a href="https://en.wikipedia.org/wiki/VHDL">VHDL</a> It is not even <a href="https://en.wikipedia.org/wiki/VHDL">VHDL</a> It is not even
<a href="https://en.wikipedia.org/wiki/Pascal_(programming_language)">Pascal</a>!</p> <a href="https://en.wikipedia.org/wiki/Pascal_(programming_language)">Pascal</a>!</p>
<p>NOTE: On some systems, <code>file(1)</code> claims one of the <code>.tofu</code> files is Pascal <p><strong>NOTE</strong>: On some systems, <code>file(1)</code> claims one of the <code>.tofu</code> files is Pascal
source. :-)</p> source. :-)</p>
<p>It may not be the most readable hardware description language, but it is <p>It may not be the most readable hardware description language, but it is
one of the easiest 55 page long manuals to learn. :-)</p> one of the easiest 55 page long manuals to learn. :-)</p>
+1 -1
View File
@@ -38,7 +38,7 @@ answer that you do not wish to make another.
This entry uses a very user-friendly representation of the font This entry uses a very user-friendly representation of the font
it uses (with a few exceptions). Check out the source and see it uses (with a few exceptions). Check out the source and see
yourself! :-) for yourself! :-)
The resulting GIF file is likely to puzzle optical character The resulting GIF file is likely to puzzle optical character
recognition tools. The amount of imagination necessary to recognition tools. The amount of imagination necessary to
+1 -1
View File
@@ -427,7 +427,7 @@ answer that you do not wish to make another.</p>
<h2 id="judges-remarks">Judges’ remarks:</h2> <h2 id="judges-remarks">Judges’ remarks:</h2>
<p>This entry uses a very user-friendly representation of the font <p>This entry uses a very user-friendly representation of the font
it uses (with a few exceptions). Check out the source and see it uses (with a few exceptions). Check out the source and see
yourself! :-)</p> for yourself! :-)</p>
<p>The resulting GIF file is likely to puzzle optical character <p>The resulting GIF file is likely to puzzle optical character
recognition tools. The amount of imagination necessary to recognition tools. The amount of imagination necessary to
recognise the <code>@</code> character will certainly challenge a few recognise the <code>@</code> character will certainly challenge a few
+11 -7
View File
@@ -4,7 +4,7 @@
make make
``` ```
NOTE: this entry requires the `X11/Xlib.h` header file and the X11 library to **NOTE**: this entry requires the `X11/Xlib.h` header file and the X11 library to
compile. For more information see the compile. For more information see the
FAQ on "[X11](../../faq.html#X11)". FAQ on "[X11](../../faq.html#X11)".
@@ -45,11 +45,14 @@ by hitting `0-9`,`#`, and `*`.
To be able to run the program you need to determine the following To be able to run the program you need to determine the following
parameters: parameters:
``` * `carrier_freq`
carrier_freq - base frequency used to host music - base frequency used to host music
pixelclock - refresh rate of the monitor
horizontal_total - total scan along the horizontal axis * `pixelclock`
``` - refresh rate of the monitor
* `horizontal_total`
- total scan along the horizontal axis
If you have `xvidtune` installed you can get the `pixelclock` and If you have `xvidtune` installed you can get the `pixelclock` and
`horizontal_total` with the following command `horizontal_total` with the following command
@@ -99,7 +102,8 @@ Others can be found by doing a search for "touch tone phone songs".
### Obfuscations ### Obfuscations
- Some numbers expressed in Octal, some in hex and some in decimal: - Some numbers expressed in Octal, some in hex and some in decimal:
"A foolish consistency is the hobgoblin of little minds" - Ralph Waldo
> "A foolish consistency is the hobgoblin of little minds." - Ralph Waldo
Emerson. Emerson.
- Funky scoping, looking at the nanosleep section and `XsetWindowAttributes` - Funky scoping, looking at the nanosleep section and `XsetWindowAttributes`
+40 -25
View File
@@ -409,7 +409,7 @@ Location: <a href="../../location.html#US">US</a> - <em>United States of America
<!-- BEFORE: 1st line of markdown file: 2006/grothe/README.md --> <!-- BEFORE: 1st line of markdown file: 2006/grothe/README.md -->
<h2 id="to-build">To build:</h2> <h2 id="to-build">To build:</h2>
<pre><code> make</code></pre> <pre><code> make</code></pre>
<p>NOTE: this entry requires the <code>X11/Xlib.h</code> header file and the X11 library to <p><strong>NOTE</strong>: this entry requires the <code>X11/Xlib.h</code> header file and the X11 library to
compile. For more information see the compile. For more information see the
FAQ on “<a href="../../faq.html#X11">X11</a>”.</p> FAQ on “<a href="../../faq.html#X11">X11</a>”.</p>
<h2 id="to-use">To use:</h2> <h2 id="to-use">To use:</h2>
@@ -430,9 +430,20 @@ the frequencies for an old fashion touch tone phone, so old songs can be played
by hitting <code>0-9</code>,<code>#</code>, and <code>*</code>.</p> by hitting <code>0-9</code>,<code>#</code>, and <code>*</code>.</p>
<p>To be able to run the program you need to determine the following <p>To be able to run the program you need to determine the following
parameters:</p> parameters:</p>
<pre><code> carrier_freq - base frequency used to host music <ul>
pixelclock - refresh rate of the monitor <li><code>carrier_freq</code>
horizontal_total - total scan along the horizontal axis</code></pre> <ul>
<li>base frequency used to host music</li>
</ul></li>
<li><code>pixelclock</code>
<ul>
<li>refresh rate of the monitor</li>
</ul></li>
<li><code>horizontal_total</code>
<ul>
<li>total scan along the horizontal axis</li>
</ul></li>
</ul>
<p>If you have <code>xvidtune</code> installed you can get the <code>pixelclock</code> and <p>If you have <code>xvidtune</code> installed you can get the <code>pixelclock</code> and
<code>horizontal_total</code> with the following command</p> <code>horizontal_total</code> with the following command</p>
<pre><code> xvidtune -show | head -n 1 | awk &#39;{ print &quot;pixelclock &quot; $2 * 1000000 &quot; horizontal_total = &quot; $6 }&#39;</code></pre> <pre><code> xvidtune -show | head -n 1 | awk &#39;{ print &quot;pixelclock &quot; $2 * 1000000 &quot; horizontal_total = &quot; $6 }&#39;</code></pre>
@@ -454,29 +465,33 @@ and <a href="https://en.wikipedia.org/wiki/ZX81">Timex Sinclair ZX-81</a>s.</p>
<p>Others can be found by doing a search for “touch tone phone songs”.</p> <p>Others can be found by doing a search for “touch tone phone songs”.</p>
<h3 id="obfuscations">Obfuscations</h3> <h3 id="obfuscations">Obfuscations</h3>
<ul> <ul>
<li><p>Some numbers expressed in Octal, some in hex and some in decimal: <li>Some numbers expressed in Octal, some in hex and some in decimal:</li>
“A foolish consistency is the hobgoblin of little minds” - Ralph Waldo </ul>
Emerson.</p></li> <blockquote>
<li><p>Funky scoping, looking at the nanosleep section and <code>XsetWindowAttributes</code> <p>“A foolish consistency is the hobgoblin of little minds.” - Ralph Waldo
declares local variables.</p></li> Emerson.</p>
<li><p>Algorithm is very weird, uses <code>y</code> dimension to draw carrier frequency </blockquote>
<ul>
<li>Funky scoping, looking at the nanosleep section and <code>XsetWindowAttributes</code>
declares local variables.</li>
<li>Algorithm is very weird, uses <code>y</code> dimension to draw carrier frequency
and <code>x</code> dimension to draw audio frequency, based on <a href="http://www.erikyyy.de">Erik and <code>x</code> dimension to draw audio frequency, based on <a href="http://www.erikyyy.de">Erik
Thiele</a>’s Thiele</a>’s
<a href="http://www.erikyyy.de/tempest/">Tempest for Eliza</a>.</p></li> <a href="http://www.erikyyy.de/tempest/">Tempest for Eliza</a>.</li>
<li><p>lack of <code>#define</code>s confuses many people :-)</p></li> <li>lack of <code>#define</code>s confuses many people :-)</li>
<li><p>figuring out your <code>pixelclock</code> and <code>horizontal_total</code> and which <code>carrier_freq</code> <li>figuring out your <code>pixelclock</code> and <code>horizontal_total</code> and which <code>carrier_freq</code>
to use can be an exercise in obfuscation for the user.</p></li> to use can be an exercise in obfuscation for the user.</li>
<li><p>use of commas in various places, confuses most C code beautifiers <li>use of commas in various places, confuses most C code beautifiers
sometimes making the beautified code harder to read</p></li> sometimes making the beautified code harder to read</li>
<li><p>use of <code>static</code> to ensure initialization is EVIL and done in several <li>use of <code>static</code> to ensure initialization is EVIL and done in several
places</p></li> places</li>
<li><p>uses <code>static</code> declarations &amp; <code>void</code> function returns we don’t care about <li>uses <code>static</code> declarations &amp; <code>void</code> function returns we don’t care about
making the code harder to read.</p></li> making the code harder to read.</li>
<li><p>does sound using only <a href="https://en.wikipedia.org/wiki/Xlib">X11 libs</a>, no other <li>does sound using only <a href="https://en.wikipedia.org/wiki/Xlib">X11 libs</a>, no other
libs required.</p></li> libs required.</li>
<li><p>demonstrates tempest emissions in a fun/easy way.</p></li> <li>demonstrates tempest emissions in a fun/easy way.</li>
<li><p>follows good programming practices of actually setting exit codes and giving <li>follows good programming practices of actually setting exit codes and giving
usage when run with incorrect parameters.</p></li> usage when run with incorrect parameters.</li>
</ul> </ul>
<h3 id="references">References</h3> <h3 id="references">References</h3>
<p><a href="http://www.erikyyy.de/tempest/">Tempest for Eliza - Basis for Algorithms</a>.</p> <p><a href="http://www.erikyyy.de/tempest/">Tempest for Eliza - Basis for Algorithms</a>.</p>
+5 -5
View File
@@ -27,10 +27,10 @@ For your first input try:
where `a` is the row (`a`-`i`), `0` is the column (`0`-`8`) and `1` is the where `a` is the row (`a`-`i`), `0` is the column (`0`-`8`) and `1` is the
number (`1`-`9`). number (`1`-`9`).
NOTE: if you do not input three different 'words' it will block. You can input **NOTE**: if you do not input three different 'words' it will block. You can input
more text to fulfil the program's requirements. more text to fulfil the program's requirements.
NOTE: if your move is invalid it will prompt you again but not show the board. **NOTE**: if your move is invalid it will prompt you again but not show the board.
## Judges' remarks: ## Judges' remarks:
@@ -43,7 +43,7 @@ code](%%REPO_URL%%/2006/meyer/meyer.c)! :-)
## Author's remarks: ## Author's remarks:
I wanted submit a fully object-oriented entry to show that I wanted to submit a fully object-oriented entry to show that
object-orientated code: object-orientated code:
1. is ridiculously bloated. 1. is ridiculously bloated.
@@ -62,8 +62,8 @@ _manually_ translated it from a generic object-oriented programming
language to C, it didn't just end up unreadable, but awfully language to C, it didn't just end up unreadable, but awfully
messed up, i.e. obfuscated. messed up, i.e. obfuscated.
As it is already (pre)translated to C, you could also call it an object- As it is already (pre)translated to C, you could also call it an
disoriented program. object-disoriented program.
Comparing this program to a potential object-oriented implementation, Comparing this program to a potential object-oriented implementation,
it is obvious, that object-oriented code isn't '`WYWIWID`' ('what it is obvious, that object-oriented code isn't '`WYWIWID`' ('what
+5 -5
View File
@@ -417,16 +417,16 @@ Location: <a href="../../location.html#US">US</a> - <em>United States of America
<pre><code> a 0 1</code></pre> <pre><code> a 0 1</code></pre>
<p>where <code>a</code> is the row (<code>a</code>-<code>i</code>), <code>0</code> is the column (<code>0</code>-<code>8</code>) and <code>1</code> is the <p>where <code>a</code> is the row (<code>a</code>-<code>i</code>), <code>0</code> is the column (<code>0</code>-<code>8</code>) and <code>1</code> is the
number (<code>1</code>-<code>9</code>).</p> number (<code>1</code>-<code>9</code>).</p>
<p>NOTE: if you do not input three different ‘words’ it will block. You can input <p><strong>NOTE</strong>: if you do not input three different ‘words’ it will block. You can input
more text to fulfil the program’s requirements.</p> more text to fulfil the program’s requirements.</p>
<p>NOTE: if your move is invalid it will prompt you again but not show the board.</p> <p><strong>NOTE</strong>: if your move is invalid it will prompt you again but not show the board.</p>
<h2 id="judges-remarks">Judges’ remarks:</h2> <h2 id="judges-remarks">Judges’ remarks:</h2>
<p>This entry turns a newspaper solitaire puzzle into a competition <p>This entry turns a newspaper solitaire puzzle into a competition
with the computer to be the last one moving. The object of this with the computer to be the last one moving. The object of this
<a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2006/meyer/meyer.c">source code</a> is to determine the object of this <a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2006/meyer/meyer.c">source <a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2006/meyer/meyer.c">source code</a> is to determine the object of this <a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2006/meyer/meyer.c">source
code</a>! :-)</p> code</a>! :-)</p>
<h2 id="authors-remarks">Author’s remarks:</h2> <h2 id="authors-remarks">Author’s remarks:</h2>
<p>I wanted submit a fully object-oriented entry to show that <p>I wanted to submit a fully object-oriented entry to show that
object-orientated code:</p> object-orientated code:</p>
<ol type="1"> <ol type="1">
<li>is ridiculously bloated.</li> <li>is ridiculously bloated.</li>
@@ -443,8 +443,8 @@ you shouldn’t break in any case: Rule Nr 2, The size of …</p>
<em>manually</em> translated it from a generic object-oriented programming <em>manually</em> translated it from a generic object-oriented programming
language to C, it didn’t just end up unreadable, but awfully language to C, it didn’t just end up unreadable, but awfully
messed up, i.e. obfuscated.</p> messed up, i.e. obfuscated.</p>
<p>As it is already (pre)translated to C, you could also call it an object- <p>As it is already (pre)translated to C, you could also call it an
disoriented program.</p> object-disoriented program.</p>
<p>Comparing this program to a potential object-oriented implementation, <p>Comparing this program to a potential object-oriented implementation,
it is obvious, that object-oriented code isn’t ‘<code>WYWIWID</code>’ (‘what it is obvious, that object-oriented code isn’t ‘<code>WYWIWID</code>’ (‘what
you write is what it does’). It may be tempting to think that</p> you write is what it does’). It may be tempting to think that</p>