add hack-a-round for language specified markdown code blocks

When language is specified in a markdown code block such as:

````
```c
    printf("Hello, world!\n");
```
````

is used, the resulting HTML as produced by `pandoc(1)` combined
with our revised `ioccc.css` is not intent the code block well.

A temporary "_hack-a-round_" is to turn the "markdown code language
specifier" into an HTML comment.  For example:

````
```<!---c-->
    printf("Hello, world!\n");
```
````

This commits turns off existing markdown code language specifiers
for now, while preserving our ability to restore them in the future
when a better  "_hack-a-round_" to the "markdown code language
specifier" problem is found.

The HTML impact if this "_hack-a-round_" is to produce HTML that
looks like this:

```
<pre class="&lt;!---c--&gt;"><code> .. </code></pre>
```

We might be able to create a complex set of classes for each markdown
code language (there won't be very many) in `ioccc.css`, or we might
find a more general CSS (or maybe `pandoc(1)`?) solution.

For now, this hack-a-round will have to do.
This commit is contained in:
Landon Curt Noll committed 2024-04-04 14:50:38 -07:00
1 parent 3919df50fb
commit b66c79254a
700 files changed
+7052 -7056

No files matched your search

+4 -4
View File
@@ -1,13 +1,13 @@
## To build:
```sh
```<!---sh-->
make
```
## To use:
```sh
```<!---sh-->
./anonymous 'foo' > bar.pgm
```
@@ -21,7 +21,7 @@ images.
## Try:
```sh
```<!---sh-->
./try.sh
```
@@ -107,7 +107,7 @@ The following command thus writes a rendering of the [Ring
inscription](https://www.glyphweb.com/arda/r/ringinscription.html) to
the file `ring.pgm`:
```sh
```<!---sh-->
./anonymous "ash nazg durhbatuluhk, ash nazg gimbatul, \
ash nazg thrakatuluhk, agh burzhumh-ishi krimpatul." >ring.pgm
```
+5 -5
View File
@@ -141,9 +141,9 @@ Location: <a href="../../location.html#SG">SG</a> - <em>Republic of Singapore</e
<!-- START: this line starts content for HTML phase 21 by: bin/pandoc-wrapper.sh via bin/md2html.sh -->
<h2 id="to-build">To build:</h2>
<div class="sourceCode" id="cb1"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a> <span class="fu">make</span></span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> make</code></pre>
<h2 id="to-use">To use:</h2>
<div class="sourceCode" id="cb2"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a> <span class="ex">./anonymous</span> <span class="st">&#39;foo&#39;</span> <span class="op">&gt;</span> bar.pgm</span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> ./anonymous &#39;foo&#39; &gt; bar.pgm</code></pre>
<p>Now open the output using your favourite
<a href="https://en.wikipedia.org/wiki/Netpbm#PGM_example">pgm</a> viewer. If you don’t
have a <code>pgm</code> viewer then we suggest the <a href="https://netpbm.sourceforge.net">netpbm
@@ -151,7 +151,7 @@ toolkit</a> to convert the image to a graphics
format that you can view. Most graphical web browsers can display PNG or JPEG
images.</p>
<h2 id="try">Try:</h2>
<div class="sourceCode" id="cb3"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a> <span class="ex">./try.sh</span></span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> ./try.sh</code></pre>
<p>NOTE: technically the text is supposed to be in all lower case but the script
does use some upper case letters for demonstration purposes.</p>
<h2 id="judges-remarks">Judges’ remarks:</h2>
@@ -220,8 +220,8 @@ in lower case.</p>
<p>The following command thus writes a rendering of the <a href="https://www.glyphweb.com/arda/r/ringinscription.html">Ring
inscription</a> to
the file <code>ring.pgm</code>:</p>
<div class="sourceCode" id="cb4"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb4-1"><a href="#cb4-1" aria-hidden="true" tabindex="-1"></a> <span class="ex">./anonymous</span> <span class="st">&quot;ash nazg durhbatuluhk, ash nazg gimbatul, </span><span class="dt">\</span></span>
<span id="cb4-2"><a href="#cb4-2" aria-hidden="true" tabindex="-1"></a><span class="st"> ash nazg thrakatuluhk, agh burzhumh-ishi krimpatul.&quot;</span> <span class="op">&gt;</span>ring.pgm</span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> ./anonymous &quot;ash nazg durhbatuluhk, ash nazg gimbatul, \
ash nazg thrakatuluhk, agh burzhumh-ishi krimpatul.&quot; &gt;ring.pgm</code></pre>
<p>The source code assumes the ASCII character set; also, due to space
constraints, the program uses rather inefficient algorithms, so it may
waste a lot of time and space even when rendering moderately long
+6 -6
View File
@@ -1,6 +1,6 @@
## To build:
```sh
```<!---sh-->
make
```
@@ -11,20 +11,20 @@ code](#alternate-code) below.
## To use:
```sh
```<!---sh-->
./arachnid [mazefile]
```
## Try:
```sh
```<!---sh-->
./arachnid arachnid.txt
```
and then try:
```sh
```<!---sh-->
./arachnid arachnid.c
```
@@ -41,7 +41,7 @@ instead.
### Alternate build:
```sh
```<!---sh-->
make alt
```
@@ -80,7 +80,7 @@ explorers out there.
### Usage
```sh
```<!---sh-->
./arachnid [mazefile]
```
+6 -6
View File
@@ -141,16 +141,16 @@ Location: <a href="../../location.html#NZ">NZ</a> - <em>New Zealand</em></li>
<!-- START: this line starts content for HTML phase 21 by: bin/pandoc-wrapper.sh via bin/md2html.sh -->
<h2 id="to-build">To build:</h2>
<div class="sourceCode" id="cb1"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a> <span class="fu">make</span></span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> make</code></pre>
<p>There is an alt version for rogue players, vi(m) users and Dvorak typist (i.e.
those who need <code>hljk</code> for moving left, right, down and up. See <a href="#alternate-code">alternate
code</a> below.</p>
<h2 id="to-use">To use:</h2>
<div class="sourceCode" id="cb2"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a> <span class="ex">./arachnid</span> <span class="pp">[</span><span class="ss">mazefile</span><span class="pp">]</span></span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> ./arachnid [mazefile]</code></pre>
<h2 id="try">Try:</h2>
<div class="sourceCode" id="cb3"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a> <span class="ex">./arachnid</span> arachnid.txt</span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> ./arachnid arachnid.txt</code></pre>
<p>and then try:</p>
<div class="sourceCode" id="cb4"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb4-1"><a href="#cb4-1" aria-hidden="true" tabindex="-1"></a> <span class="ex">./arachnid</span> arachnid.c</span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> ./arachnid arachnid.c</code></pre>
<p>Navigation is through the use of the <code>wasd</code> inverted-T formation on
QWERTY keyboards. Rogue players, vi users, and Dvorak typists are
invited to get lost (or use the alt version)!</p>
@@ -158,7 +158,7 @@ invited to get lost (or use the alt version)!</p>
<p>If you don’t like the <code>wasd</code> movement keys you can try the vi(m) movement keys
instead.</p>
<h3 id="alternate-build">Alternate build:</h3>
<div class="sourceCode" id="cb5"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb5-1"><a href="#cb5-1" aria-hidden="true" tabindex="-1"></a> <span class="fu">make</span> alt</span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> make alt</code></pre>
<h3 id="alternate-use">Alternate use:</h3>
<p>Use <code>arachnid.alt</code> as you would <code>arachnid</code> above.</p>
<h2 id="judges-remarks">Judges’ remarks:</h2>
@@ -181,7 +181,7 @@ Another maze, <a href="arachnid.txt">arachnid.txt</a> has also been provided. Th
255x255, about the largest maze supported, for the particularly insane maze
explorers out there.</p>
<h3 id="usage">Usage</h3>
<div class="sourceCode" id="cb6"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb6-1"><a href="#cb6-1" aria-hidden="true" tabindex="-1"></a> <span class="ex">./arachnid</span> <span class="pp">[</span><span class="ss">mazefile</span><span class="pp">]</span></span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> ./arachnid [mazefile]</code></pre>
<p>You can explore the maze using the <code>w</code>,<code>a</code>,<code>s</code>, and <code>d</code> keys.</p>
<!--
+2 -2
View File
@@ -1,6 +1,6 @@
## To build:
```sh
```<!---sh-->
make
```
@@ -10,7 +10,7 @@ will not work with it enabled.
## To use:
```sh
```<!---sh-->
./burley
```
+2 -2
View File
@@ -141,11 +141,11 @@ Location: <a href="../../location.html#US">US</a> - <em>United States of America
<!-- START: this line starts content for HTML phase 21 by: bin/pandoc-wrapper.sh via bin/md2html.sh -->
<h2 id="to-build">To build:</h2>
<div class="sourceCode" id="cb1"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a> <span class="fu">make</span></span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> make</code></pre>
<p>NOTE: We FORCE the use of -O0 even if someone overrides it because this entry
will not work with it enabled.</p>
<h2 id="to-use">To use:</h2>
<div class="sourceCode" id="cb2"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a> <span class="ex">./burley</span></span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> ./burley</code></pre>
<p>NOTE: you need to input a number first. See judges’ remarks below for
information on how to play.</p>
<h2 id="judges-remarks">Judges’ remarks:</h2>
+8 -8
View File
@@ -1,6 +1,6 @@
## To build:
```sh
```<!---sh-->
make
```
@@ -10,14 +10,14 @@ for more details.
## To use:
```sh
```<!---sh-->
./gavare > ioccc_ray.ppm
```
Open `ioccc_ray.ppm` with a viewer capable of viewing PPM files. Alternatively,
if you have ImageMagick installed, you can convert it to a jpeg:
```sh
```<!---sh-->
convert ioccc_ray.ppm ioccc_ray.jpg
```
@@ -28,7 +28,7 @@ and then view `ioccc_ray.jpg` in a graphics viewer, editor or web browser.
If you have `xv(1)` you can do:
```sh
```<!---sh-->
./gavare | xv -
```
@@ -53,19 +53,19 @@ on `stdout` which theoretically should work in Windows.
To build the configurable and unobfuscated versions:
```sh
```<!---sh-->
make alt
```
To change the default size from 1024x768 try:
```sh
```<!---sh-->
make clobber XX=640 YY=480 alt
```
You might also wish to change the anti-alias setting:
```sh
```<!---sh-->
make clobber AA=2 alt
```
@@ -78,7 +78,7 @@ This is not possible with the author's version but it is with the alt versions
As the Windows version will not compile on most viewers' systems we do not build
it with `make alt`; instead try:
```sh
```<!---sh-->
make alt2
```
+8 -8
View File
@@ -141,18 +141,18 @@ Location: <a href="../../location.html#SE">SE</a> - <em>Kingdom of Sweden</em> (
<!-- START: this line starts content for HTML phase 21 by: bin/pandoc-wrapper.sh via bin/md2html.sh -->
<h2 id="to-build">To build:</h2>
<div class="sourceCode" id="cb1"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a> <span class="fu">make</span></span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> make</code></pre>
<p>There are three alternate versions; see <a href="#alternate-code">alternate code</a> below
for more details.</p>
<h2 id="to-use">To use:</h2>
<div class="sourceCode" id="cb2"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a> <span class="ex">./gavare</span> <span class="op">&gt;</span> ioccc_ray.ppm</span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> ./gavare &gt; ioccc_ray.ppm</code></pre>
<p>Open <code>ioccc_ray.ppm</code> with a viewer capable of viewing PPM files. Alternatively,
if you have ImageMagick installed, you can convert it to a jpeg:</p>
<div class="sourceCode" id="cb3"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a> <span class="ex">convert</span> ioccc_ray.ppm ioccc_ray.jpg</span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> convert ioccc_ray.ppm ioccc_ray.jpg</code></pre>
<p>and then view <code>ioccc_ray.jpg</code> in a graphics viewer, editor or web browser.</p>
<h2 id="try">Try:</h2>
<p>If you have <code>xv(1)</code> you can do:</p>
<div class="sourceCode" id="cb4"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb4-1"><a href="#cb4-1" aria-hidden="true" tabindex="-1"></a> <span class="ex">./gavare</span> <span class="kw">|</span> <span class="ex">xv</span> <span class="at">-</span></span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> ./gavare | xv -</code></pre>
<p>to not worry about writing it to a file and just viewing the image it creates.</p>
<h2 id="alternate-code">Alternate code:</h2>
<p>The alt code <a href="gavare.alt.c">gavare.alt.c</a> allows you to change the size of the
@@ -165,18 +165,18 @@ was used during development, which we have included in the file
on <code>stdout</code> which theoretically should work in Windows.</p>
<h3 id="alternate-build">Alternate build:</h3>
<p>To build the configurable and unobfuscated versions:</p>
<div class="sourceCode" id="cb5"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb5-1"><a href="#cb5-1" aria-hidden="true" tabindex="-1"></a> <span class="fu">make</span> alt</span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> make alt</code></pre>
<p>To change the default size from 1024x768 try:</p>
<div class="sourceCode" id="cb6"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb6-1"><a href="#cb6-1" aria-hidden="true" tabindex="-1"></a> <span class="fu">make</span> clobber XX=640 YY=480 alt</span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> make clobber XX=640 YY=480 alt</code></pre>
<p>You might also wish to change the anti-alias setting:</p>
<div class="sourceCode" id="cb7"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb7-1"><a href="#cb7-1" aria-hidden="true" tabindex="-1"></a> <span class="fu">make</span> clobber AA=2 alt</span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> make clobber AA=2 alt</code></pre>
<p>You may of course combine the above two commands and give any combination you
wish.</p>
<p>This is not possible with the author’s version but it is with the alt versions
(Windows - see below - and otherwise).</p>
<p>As the Windows version will not compile on most viewers’ systems we do not build
it with <code>make alt</code>; instead try:</p>
<div class="sourceCode" id="cb8"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb8-1"><a href="#cb8-1" aria-hidden="true" tabindex="-1"></a> <span class="fu">make</span> alt2</span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> make alt2</code></pre>
<h3 id="alternate-use">Alternate use:</h3>
<p>Use <code>gavare.alt</code>, <code>gavare.r3</code> or <code>gavare.alt2</code> as you would <code>gavare</code> above.</p>
<h2 id="judges-remarks">Judges’ remarks:</h2>
+9 -9
View File
@@ -1,6 +1,6 @@
## To build:
```sh
```<!---sh-->
make
```
@@ -25,7 +25,7 @@ For more detailed information see [2004 gavin bugs](../../bugs.html#2004_gavin).
## To use:
```sh
```<!---sh-->
./gavin
```
@@ -36,14 +36,14 @@ To enjoy the results (on a Linux/x86 machine) with a floppy drive (remember
those? We do!):
```sh
```<!---sh-->
su
```
Make a floppy with an ext2 filesystem (`mke2fs /dev/fd0` replacing `fd0` with
whatever the floppy device is!), mount it under `/mnt/floppy` and then:
```sh
```<!---sh-->
cp kernel fs.tar lilo.conf boot.b /mnt/floppy
```
@@ -51,26 +51,26 @@ NOTE: If the version of your lilo is not 21.4, use the appropriate boot.b file.
NOTE: If your floppy drive is not `/dev/fd0`, edit lilo.conf appropriately.
```sh
```<!---sh-->
lilo -C /mnt/floppy/lilo.conf
```
Boot from the floppy on an x86 machine with a PS/2 keyboard and mouse.
Move the window away from the corner.
```sh
```<!---sh-->
vi gavin.c
```
Scroll up and down the file with up-arrow and down-arrow.
```sh
```<!---sh-->
sh
```
You can have several shell windows:
```sh
```<!---sh-->
vi README.md
./prim
```
@@ -86,7 +86,7 @@ you can use it with `QEMU`.
### Alternate build:
```sh
```<!---sh-->
make alt
```
+10 -10
View File
@@ -141,7 +141,7 @@ Location: <a href="../../location.html#ZZ">ZZ</a> - <em>Unknown location</em></l
<!-- START: this line starts content for HTML phase 21 by: bin/pandoc-wrapper.sh via bin/md2html.sh -->
<h2 id="to-build">To build:</h2>
<div class="sourceCode" id="cb1"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a> <span class="fu">make</span></span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> make</code></pre>
<p>There is an alternate version for those who wish to use QEMU rather than having
to reboot and rely on having a floppy drive (if you even remember what those are
:-) ) etc. See <a href="#alternate-code">alternate code</a> below.</p>
@@ -152,31 +152,31 @@ to reboot and rely on having a floppy drive (if you even remember what those are
STATUS: INABIAF - please **DO NOT** fix</code></pre>
<p>For more detailed information see <a href="../../bugs.html#2004_gavin">2004 gavin bugs</a>.</p>
<h2 id="to-use">To use:</h2>
<div class="sourceCode" id="cb3"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a> <span class="ex">./gavin</span></span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> ./gavin</code></pre>
<h2 id="try">Try:</h2>
<p>To enjoy the results (on a Linux/x86 machine) with a floppy drive (remember
those? We do!):</p>
<div class="sourceCode" id="cb4"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb4-1"><a href="#cb4-1" aria-hidden="true" tabindex="-1"></a> <span class="fu">su</span></span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> su</code></pre>
<p>Make a floppy with an ext2 filesystem (<code>mke2fs /dev/fd0</code> replacing <code>fd0</code> with
whatever the floppy device is!), mount it under <code>/mnt/floppy</code> and then:</p>
<div class="sourceCode" id="cb5"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb5-1"><a href="#cb5-1" aria-hidden="true" tabindex="-1"></a> <span class="fu">cp</span> kernel fs.tar lilo.conf boot.b /mnt/floppy</span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> cp kernel fs.tar lilo.conf boot.b /mnt/floppy</code></pre>
<p>NOTE: If the version of your lilo is not 21.4, use the appropriate boot.b file.</p>
<p>NOTE: If your floppy drive is not <code>/dev/fd0</code>, edit lilo.conf appropriately.</p>
<div class="sourceCode" id="cb6"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb6-1"><a href="#cb6-1" aria-hidden="true" tabindex="-1"></a> <span class="ex">lilo</span> <span class="at">-C</span> /mnt/floppy/lilo.conf</span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> lilo -C /mnt/floppy/lilo.conf</code></pre>
<p>Boot from the floppy on an x86 machine with a PS/2 keyboard and mouse.
Move the window away from the corner.</p>
<div class="sourceCode" id="cb7"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb7-1"><a href="#cb7-1" aria-hidden="true" tabindex="-1"></a> <span class="fu">vi</span> gavin.c</span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> vi gavin.c</code></pre>
<p>Scroll up and down the file with up-arrow and down-arrow.</p>
<div class="sourceCode" id="cb8"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb8-1"><a href="#cb8-1" aria-hidden="true" tabindex="-1"></a> <span class="fu">sh</span></span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> sh</code></pre>
<p>You can have several shell windows:</p>
<div class="sourceCode" id="cb9"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb9-1"><a href="#cb9-1" aria-hidden="true" tabindex="-1"></a> <span class="fu">vi</span> README.md</span>
<span id="cb9-2"><a href="#cb9-2" aria-hidden="true" tabindex="-1"></a> <span class="ex">./prim</span></span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> vi README.md
./prim</code></pre>
<p>Press and hold any key.</p>
<h2 id="alternate-code">Alternate code:</h2>
<p>This version’s main difference is that the macro <code>K</code> is redefined to <code>1</code> so that
you can use it with <code>QEMU</code>.</p>
<h3 id="alternate-build">Alternate build:</h3>
<div class="sourceCode" id="cb10"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb10-1"><a href="#cb10-1" aria-hidden="true" tabindex="-1"></a> <span class="fu">make</span> alt</span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> make alt</code></pre>
<h3 id="alternate-use">Alternate use:</h3>
<p>The use is mostly the same as <code>gavin</code> except that one initially executes <code>gavin.alt</code>
(which <code>make alt</code> will do) and one will have to use <code>QEMU</code> instead. The files
+9 -9
View File
@@ -1,13 +1,13 @@
## To build:
```sh
```<!---sh-->
make
```
## To use:
```sh
```<!---sh-->
cd build; ./hibachi-start.sh &
```
@@ -42,7 +42,7 @@ There is a `hibachi.tgz` file (NOTE: this file was removed by the judges after
extraction) that unpacks several support files and a subdirectory tree
containing the documentation and examples. It can be viewed by:
```sh
```<!---sh-->
tar -zxf hibachi.tgz
lynx hibachi/localhost/index.html
```
@@ -58,19 +58,19 @@ To build just the executable:
For Cygwin, FreeBSD, Linux (newer), Mac OS X:
```sh
```<!---sh-->
gcc -o hibachi hibachi.c
```
For Linux (older):
```sh
```<!---sh-->
gcc -DSHUT_WR=1 -o hibachi hibachi.c
```
For SunOS:
```sh
```<!---sh-->
gcc -o hibachi hibachi.c -lnsl -lsocket
```
@@ -88,20 +88,20 @@ examples. In which case the preferred build commands are:
To start the server on the default port (8008):
```sh
```<!---sh-->
cd build;
./hibachi-start.sh &
```
To test the server:
```sh
```<!---sh-->
lynx http://localhost:8008/
```
To stop the server:
```sh
```<!---sh-->
kill %1
```
+11 -11
View File
@@ -141,9 +141,9 @@ Location: <a href="../../location.html#CA">CA</a> - <em>Canada</em></li>
<!-- START: this line starts content for HTML phase 21 by: bin/pandoc-wrapper.sh via bin/md2html.sh -->
<h2 id="to-build">To build:</h2>
<div class="sourceCode" id="cb1"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a> <span class="fu">make</span></span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> make</code></pre>
<h2 id="to-use">To use:</h2>
<div class="sourceCode" id="cb2"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a> <span class="bu">cd</span> build<span class="kw">;</span> <span class="ex">./hibachi-start.sh</span> <span class="kw">&amp;</span></span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> cd build; ./hibachi-start.sh &amp;</code></pre>
<p>Then use your web browser to visit <code>http://localhost:8008/</code>. When you’re
finished make sure to kill <code>hibachi</code>.</p>
<p>NOTE: you must be in the <code>build</code> directory when running <code>hibachi-start.sh</code> for
@@ -163,19 +163,19 @@ so the file does not exist here.</p>
<p>There is a <code>hibachi.tgz</code> file (NOTE: this file was removed by the judges after
extraction) that unpacks several support files and a subdirectory tree
containing the documentation and examples. It can be viewed by:</p>
<div class="sourceCode" id="cb3"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a> <span class="fu">tar</span> <span class="at">-zxf</span> hibachi.tgz</span>
<span id="cb3-2"><a href="#cb3-2" aria-hidden="true" tabindex="-1"></a> <span class="fu">lynx</span> hibachi/localhost/index.html</span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> tar -zxf hibachi.tgz
lynx hibachi/localhost/index.html</code></pre>
<p>Or once <code>Hibachi</code> is running, use a web browser (preferably one that
supports images and JavaScript, to view the documentation and try
some of the CGI examples) to visit: <code>http://localhost:8008/</code>.</p>
<h3 id="building">Building</h3>
<p>To build just the executable:</p>
<p>For Cygwin, FreeBSD, Linux (newer), Mac OS X:</p>
<div class="sourceCode" id="cb4"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb4-1"><a href="#cb4-1" aria-hidden="true" tabindex="-1"></a> <span class="fu">gcc</span> <span class="at">-o</span> hibachi hibachi.c</span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> gcc -o hibachi hibachi.c</code></pre>
<p>For Linux (older):</p>
<div class="sourceCode" id="cb5"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb5-1"><a href="#cb5-1" aria-hidden="true" tabindex="-1"></a> <span class="fu">gcc</span> <span class="at">-DSHUT_WR</span><span class="op">=</span>1 <span class="at">-o</span> hibachi hibachi.c</span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> gcc -DSHUT_WR=1 -o hibachi hibachi.c</code></pre>
<p>For SunOS:</p>
<div class="sourceCode" id="cb6"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb6-1"><a href="#cb6-1" aria-hidden="true" tabindex="-1"></a> <span class="fu">gcc</span> <span class="at">-o</span> hibachi hibachi.c <span class="at">-lnsl</span> <span class="at">-lsocket</span></span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> gcc -o hibachi hibachi.c -lnsl -lsocket</code></pre>
<p>Since some systems place socket and network functions into other libraries, a
<a href="https://en.wikipedia.org/wiki/Autoconf">GNU autoconf</a>
<a href="https://en.wikipedia.org/wiki/Configure_script">configure</a> script has been
@@ -185,12 +185,12 @@ examples. In which case the preferred build commands are:</p>
<pre><code> ./configure [--enable-port=number]
make</code></pre>
<p>To start the server on the default port (8008):</p>
<div class="sourceCode" id="cb8"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb8-1"><a href="#cb8-1" aria-hidden="true" tabindex="-1"></a> <span class="bu">cd</span> build<span class="kw">;</span></span>
<span id="cb8-2"><a href="#cb8-2" aria-hidden="true" tabindex="-1"></a> <span class="ex">./hibachi-start.sh</span> <span class="kw">&amp;</span></span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> cd build;
./hibachi-start.sh &amp;</code></pre>
<p>To test the server:</p>
<div class="sourceCode" id="cb9"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb9-1"><a href="#cb9-1" aria-hidden="true" tabindex="-1"></a> <span class="fu">lynx</span> http://localhost:8008/</span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> lynx http://localhost:8008/</code></pre>
<p>To stop the server:</p>
<div class="sourceCode" id="cb10"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb10-1"><a href="#cb10-1" aria-hidden="true" tabindex="-1"></a> <span class="bu">kill</span> %1</span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> kill %1</code></pre>
<h3 id="features">Features</h3>
<ul>
<li><p>Supports virtual hosts.</p></li>
+5 -5
View File
@@ -1,20 +1,20 @@
## To build:
```sh
```<!---sh-->
make
```
## To use:
```sh
```<!---sh-->
./hoyle point ...
```
## Try:
```sh
```<!---sh-->
./try.sh
```
@@ -47,13 +47,13 @@ passed in.
For example, to graph `y = x^2`:
```sh
```<!---sh-->
./hoyle 0 0 1
```
Note that:
```sh
```<!---sh-->
./hoyle 0 0 2
```
+5 -5
View File
@@ -141,11 +141,11 @@ Location: <a href="../../location.html#US">US</a> - <em>United States of America
<!-- START: this line starts content for HTML phase 21 by: bin/pandoc-wrapper.sh via bin/md2html.sh -->
<h2 id="to-build">To build:</h2>
<div class="sourceCode" id="cb1"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a> <span class="fu">make</span></span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> make</code></pre>
<h2 id="to-use">To use:</h2>
<div class="sourceCode" id="cb2"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a> <span class="ex">./hoyle</span> point ...</span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> ./hoyle point ...</code></pre>
<h2 id="try">Try:</h2>
<div class="sourceCode" id="cb3"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a> <span class="ex">./try.sh</span></span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> ./try.sh</code></pre>
<h2 id="judges-remarks">Judges’ remarks:</h2>
<p>The obfuscation functions at several levels. Note the clever
use of use of <code>#define</code>s. The <code>#define do(if,else)</code>, for example,
@@ -167,9 +167,9 @@ passed in.</li>
dashes rather than a simple block of <code>X</code>s.</li>
</ul>
<p>For example, to graph <code>y = x^2</code>:</p>
<div class="sourceCode" id="cb4"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb4-1"><a href="#cb4-1" aria-hidden="true" tabindex="-1"></a> <span class="ex">./hoyle</span> 0 0 1</span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> ./hoyle 0 0 1</code></pre>
<p>Note that:</p>
<div class="sourceCode" id="cb5"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb5-1"><a href="#cb5-1" aria-hidden="true" tabindex="-1"></a> <span class="ex">./hoyle</span> 0 0 2</span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> ./hoyle 0 0 2</code></pre>
<p>will produce the same graph, since the <code>y-axis</code> is auto scaling.</p>
<!--
+7 -7
View File
@@ -1,6 +1,6 @@
## To build:
```sh
```<!---sh-->
make
```
@@ -21,14 +21,14 @@ For more detailed information see [2004 jdalbec bugs](../../bugs.html#2004_jdalb
## To use:
```sh
```<!---sh-->
./jdalbec number ...
```
## Try:
```sh
```<!---sh-->
./try.sh
```
@@ -43,7 +43,7 @@ which line it is on.
### Alternate build:
```sh
```<!---sh-->
make alt
```
@@ -52,7 +52,7 @@ many number of lines to print on a line. Set at default to 11 protons, salt, if
you wish to make it silver, 47 (a prime) protons, do:
```sh
```<!---sh-->
make clobber Ag=47 alt
```
@@ -60,7 +60,7 @@ though it might be odd to have 47 numbers on a line as it would defeat the
purpose. :-) Or if you prefer some prime, golden irony:
```sh
```<!---sh-->
make clobber Ag=79 alt
```
@@ -72,7 +72,7 @@ Use `jdalbec.alt` as you would `jdalbec` above.
### Alternate try:
```sh
```<!---sh-->
./try.alt.sh
```
+7 -7
View File
@@ -141,7 +141,7 @@ Location: <a href="../../location.html#US">US</a> - <em>United States of America
<!-- START: this line starts content for HTML phase 21 by: bin/pandoc-wrapper.sh via bin/md2html.sh -->
<h2 id="to-build">To build:</h2>
<div class="sourceCode" id="cb1"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a> <span class="fu">make</span></span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> make</code></pre>
<p>There is an alternate version that allows one to control the number of numbers
to print on a line. See <a href="#alternate-code">alternate code</a> below.</p>
<h3 id="bugs-and-misfeatures">Bugs and (Mis)features:</h3>
@@ -149,27 +149,27 @@ to print on a line. See <a href="#alternate-code">alternate code</a> below.</p>
<pre><code> STATUS: INABIAF - please **DO NOT** fix</code></pre>
<p>For more detailed information see <a href="../../bugs.html#2004_jdalbec">2004 jdalbec bugs</a>.</p>
<h2 id="to-use">To use:</h2>
<div class="sourceCode" id="cb3"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a> <span class="ex">./jdalbec</span> number ...</span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> ./jdalbec number ...</code></pre>
<h2 id="try">Try:</h2>
<div class="sourceCode" id="cb4"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb4-1"><a href="#cb4-1" aria-hidden="true" tabindex="-1"></a> <span class="ex">./try.sh</span></span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> ./try.sh</code></pre>
<h2 id="alternate-code">Alternate code:</h2>
<p>This version lets you control how many numbers to show on a line before adding a
newline as it can be harder to see when there are a lot of numbers. For lines
that don’t end up having too many line breaks it also makes it easier to see
which line it is on.</p>
<h3 id="alternate-build">Alternate build:</h3>
<div class="sourceCode" id="cb5"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb5-1"><a href="#cb5-1" aria-hidden="true" tabindex="-1"></a> <span class="fu">make</span> alt</span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> make alt</code></pre>
<p>The macro <code>Ag</code> (<a href="https://en.wikipedia.org/wiki/Silver">silver</a>) controls how
many number of lines to print on a line. Set at default to 11 protons, salt, if
you wish to make it silver, 47 (a prime) protons, do:</p>
<div class="sourceCode" id="cb6"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb6-1"><a href="#cb6-1" aria-hidden="true" tabindex="-1"></a> <span class="fu">make</span> clobber Ag=47 alt</span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> make clobber Ag=47 alt</code></pre>
<p>though it might be odd to have 47 numbers on a line as it would defeat the
purpose. :-) Or if you prefer some prime, golden irony:</p>
<div class="sourceCode" id="cb7"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb7-1"><a href="#cb7-1" aria-hidden="true" tabindex="-1"></a> <span class="fu">make</span> clobber Ag=79 alt</span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> make clobber Ag=79 alt</code></pre>
<h3 id="alternate-use">Alternate use:</h3>
<p>Use <code>jdalbec.alt</code> as you would <code>jdalbec</code> above.</p>
<h3 id="alternate-try">Alternate try:</h3>
<div class="sourceCode" id="cb8"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb8-1"><a href="#cb8-1" aria-hidden="true" tabindex="-1"></a> <span class="ex">./try.alt.sh</span></span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> ./try.alt.sh</code></pre>
<h2 id="judges-remarks">Judges’ remarks:</h2>
<p>We still aren’t sure whether or not this is a useful program, but
it’s the first atomic fission we’ve seen in the IOCCC.</p>
+5 -5
View File
@@ -1,6 +1,6 @@
## To build:
```sh
```<!---sh-->
make
```
@@ -10,14 +10,14 @@ will not work with it enabled.
## To use:
```sh
```<!---sh-->
./kopczynski < input_file
```
## Try:
```sh
```<!---sh-->
./try.sh
```
@@ -34,14 +34,14 @@ does.
### Alternate build:
```sh
```<!---sh-->
make alt
```
### Alternate try:
```sh
```<!---sh-->
./kopczynski.alt < kopczynski-10
echo $?
```
+6 -6
View File
@@ -141,13 +141,13 @@ Location: <a href="../../location.html#PL">PL</a> - <em>Republic of Poland</em>
<!-- START: this line starts content for HTML phase 21 by: bin/pandoc-wrapper.sh via bin/md2html.sh -->
<h2 id="to-build">To build:</h2>
<div class="sourceCode" id="cb1"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a> <span class="fu">make</span></span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> make</code></pre>
<p>NOTE: We FORCE the use of -O0 even if someone overrides it because this entry
will not work with it enabled.</p>
<h2 id="to-use">To use:</h2>
<div class="sourceCode" id="cb2"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a> <span class="ex">./kopczynski</span> <span class="op">&lt;</span> input_file</span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> ./kopczynski &lt; input_file</code></pre>
<h2 id="try">Try:</h2>
<div class="sourceCode" id="cb3"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a> <span class="ex">./try.sh</span></span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> ./try.sh</code></pre>
<p>What happens if you feed the program source to the program? Can you figure out
why?</p>
<h2 id="alternate-code">Alternate code:</h2>
@@ -155,10 +155,10 @@ why?</p>
program returned the result as an exit code which is what the alternate version
does.</p>
<h3 id="alternate-build">Alternate build:</h3>
<div class="sourceCode" id="cb4"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb4-1"><a href="#cb4-1" aria-hidden="true" tabindex="-1"></a> <span class="fu">make</span> alt</span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> make alt</code></pre>
<h3 id="alternate-try">Alternate try:</h3>
<div class="sourceCode" id="cb5"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb5-1"><a href="#cb5-1" aria-hidden="true" tabindex="-1"></a> <span class="ex">./kopczynski.alt</span> <span class="op">&lt;</span> kopczynski-10</span>
<span id="cb5-2"><a href="#cb5-2" aria-hidden="true" tabindex="-1"></a> <span class="bu">echo</span> <span class="va">$?</span></span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> ./kopczynski.alt &lt; kopczynski-10
echo $?</code></pre>
<h2 id="judges-remarks">Judges’ remarks:</h2>
<p>What is in a line? A lot when you obfuscate the way Eryk Kopczynski
did it. This small one line program is an outstanding technical
+5 -5
View File
@@ -1,20 +1,20 @@
## To build:
```sh
```<!---sh-->
make
```
## To use:
```sh
```<!---sh-->
./newbern [file.dat arg]
```
## Try:
```sh
```<!---sh-->
./try.sh
```
@@ -34,14 +34,14 @@ This is a configurable `banner(1)`-like program.
- To convert a character glyph into a data file:
```sh
```<!---sh-->
./newbern char < some_nicely_shaped_text >> data_file
```
- To print a string using glyphs from a data file:
```sh
```<!---sh-->
./newbern data_file a_string
```
+5 -5
View File
@@ -141,11 +141,11 @@ Location: <a href="../../location.html#ZZ">ZZ</a> - <em>Unknown location</em></l
<!-- START: this line starts content for HTML phase 21 by: bin/pandoc-wrapper.sh via bin/md2html.sh -->
<h2 id="to-build">To build:</h2>
<div class="sourceCode" id="cb1"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a> <span class="fu">make</span></span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> make</code></pre>
<h2 id="to-use">To use:</h2>
<div class="sourceCode" id="cb2"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a> <span class="ex">./newbern</span> [file.dat arg]</span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> ./newbern [file.dat arg]</code></pre>
<h2 id="try">Try:</h2>
<div class="sourceCode" id="cb3"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a> <span class="ex">./try.sh</span></span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> ./try.sh</code></pre>
<h2 id="judges-remarks">Judges’ remarks:</h2>
<p>The program is formatted using the same font glyphs as the example
data file.</p>
@@ -155,11 +155,11 @@ data file.</p>
<ul>
<li>To convert a character glyph into a data file:</li>
</ul>
<div class="sourceCode" id="cb4"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb4-1"><a href="#cb4-1" aria-hidden="true" tabindex="-1"></a> <span class="ex">./newbern</span> char <span class="op">&lt;</span> some_nicely_shaped_text <span class="op">&gt;&gt;</span> data_file</span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> ./newbern char &lt; some_nicely_shaped_text &gt;&gt; data_file</code></pre>
<ul>
<li>To print a string using glyphs from a data file:</li>
</ul>
<div class="sourceCode" id="cb5"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb5-1"><a href="#cb5-1" aria-hidden="true" tabindex="-1"></a> <span class="ex">./newbern</span> data_file a_string</span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> ./newbern data_file a_string</code></pre>
<h3 id="extra-functionality">Extra functionality</h3>
<p>The program can also act as a Morse encoder, unarguably.</p>
<p>It also has double-super-secret encryption capabilities.
+3 -3
View File
@@ -1,13 +1,13 @@
## To build:
```sh
```<!---sh-->
make
```
## To use:
```sh
```<!---sh-->
./omoikane infile layout outfile
```
@@ -43,7 +43,7 @@ insert a human-readable checksum string in the text itself! `^_^`
### Usage
```sh
```<!---sh-->
./omoikane <infile> <layout> <outfile>
```
+3 -3
View File
@@ -141,9 +141,9 @@ Location: <a href="../../location.html#US">US</a> - <em>United States of America
<!-- START: this line starts content for HTML phase 21 by: bin/pandoc-wrapper.sh via bin/md2html.sh -->
<h2 id="to-build">To build:</h2>
<div class="sourceCode" id="cb1"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a> <span class="fu">make</span></span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> make</code></pre>
<h2 id="to-use">To use:</h2>
<div class="sourceCode" id="cb2"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a> <span class="ex">./omoikane</span> infile layout outfile</span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> ./omoikane infile layout outfile</code></pre>
<h2 id="try">Try:</h2>
<pre><code> ./try.sh</code></pre>
<h2 id="judges-remarks">Judges’ remarks:</h2>
@@ -161,7 +161,7 @@ Comments refer to it as such.</p>
strange file names or package .SFVs with your files! <code>Rinia</code> will
insert a human-readable checksum string in the text itself! <code>^_^</code></p>
<h3 id="usage">Usage</h3>
<div class="sourceCode" id="cb4"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb4-1"><a href="#cb4-1" aria-hidden="true" tabindex="-1"></a> <span class="ex">./omoikane</span> <span class="op">&lt;</span>infile<span class="op">&gt;</span> <span class="op">&lt;</span>layout<span class="op">&gt;</span> <span class="op">&lt;</span>outfile<span class="op">&gt;</span></span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> ./omoikane &lt;infile&gt; &lt;layout&gt; &lt;outfile&gt;</code></pre>
<p>All three arguments may reference the same file. All files is
assumed to be of ASCII character set.</p>
<h3 id="input">Input</h3>
+5 -5
View File
@@ -1,20 +1,20 @@
## To build:
```sh
```<!---sh-->
make
```
## To use:
```sh
```<!---sh-->
./schnitzi <foo | vi -n
```
## Try:
```sh
```<!---sh-->
./try.sh
```
@@ -132,13 +132,13 @@ Try one of these methods to get the animation to run:
1. Redirect the output directly to vi, like this:
```sh
```<!---sh-->
./schnitzi < input.dat | vi
```
2. Redirect the output to a file, like this:
```sh
```<!---sh-->
./schnitzi < input.dat > output.dat
```
+5 -5
View File
@@ -141,11 +141,11 @@ Location: <a href="../../location.html#ZZ">ZZ</a> - <em>Unknown location</em></l
<!-- START: this line starts content for HTML phase 21 by: bin/pandoc-wrapper.sh via bin/md2html.sh -->
<h2 id="to-build">To build:</h2>
<div class="sourceCode" id="cb1"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a> <span class="fu">make</span></span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> make</code></pre>
<h2 id="to-use">To use:</h2>
<div class="sourceCode" id="cb2"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a> <span class="ex">./schnitzi</span> <span class="op">&lt;</span>foo <span class="kw">|</span> <span class="fu">vi</span> <span class="at">-n</span></span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> ./schnitzi &lt;foo | vi -n</code></pre>
<h2 id="try">Try:</h2>
<div class="sourceCode" id="cb3"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a> <span class="ex">./try.sh</span></span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> ./try.sh</code></pre>
<p>NOTE: if you’re one of those who don’t know how to exit <code>vi</code> :-) don’t worry as
it will exit for you.</p>
<h2 id="judges-remarks">Judges’ remarks:</h2>
@@ -221,11 +221,11 @@ scene, the other a bit of scrolling text.</p>
<ol type="1">
<li>Redirect the output directly to vi, like this:</li>
</ol>
<div class="sourceCode" id="cb6"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb6-1"><a href="#cb6-1" aria-hidden="true" tabindex="-1"></a> <span class="ex">./schnitzi</span> <span class="op">&lt;</span> input.dat <span class="kw">|</span> <span class="fu">vi</span></span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> ./schnitzi &lt; input.dat | vi</code></pre>
<ol start="2" type="1">
<li>Redirect the output to a file, like this:</li>
</ol>
<div class="sourceCode" id="cb7"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb7-1"><a href="#cb7-1" aria-hidden="true" tabindex="-1"></a> <span class="ex">./schnitzi</span> <span class="op">&lt;</span> input.dat <span class="op">&gt;</span> output.dat</span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> ./schnitzi &lt; input.dat &gt; output.dat</code></pre>
<p>Then, open the output file, select the text, and copy it
to your system pasteboard/cut/selection buffer and paste
it into vi. The paste is NOT the vi paste command, but
+7 -7
View File
@@ -1,6 +1,6 @@
## To build:
```sh
```<!---sh-->
make
```
@@ -18,14 +18,14 @@ For more detailed information see [2004 sds bugs](../../bugs.html#2004_sds).
## To use:
```sh
```<!---sh-->
./sds
```
## Try:
```sh
```<!---sh-->
./try.sh
```
@@ -63,13 +63,13 @@ decoder.
Try it out. Compile the program, then type
```sh
```<!---sh-->
./sds < sds.c
```
You should see the encoder program displayed. Now save it, like:
```sh
```<!---sh-->
./sds < sds.c > encoder.c
```
@@ -82,14 +82,14 @@ standard input, and will output the results on the standard output.
You can use it like this (assuming you have a file called remarks):
```sh
```<!---sh-->
echo 'Hello, World!' > message
./encoder message < remarks > remarks_msg
```
Then to decode:
```sh
```<!---sh-->
./sds < remarks_msg
Hello, World!
```
+9 -9
View File
@@ -141,15 +141,15 @@ Location: <a href="../../location.html#FI">FI</a> - <em>Republic of Finland </em
<!-- START: this line starts content for HTML phase 21 by: bin/pandoc-wrapper.sh via bin/md2html.sh -->
<h2 id="to-build">To build:</h2>
<div class="sourceCode" id="cb1"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a> <span class="fu">make</span></span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> make</code></pre>
<h3 id="bugs-and-misfeatures">Bugs and (Mis)features:</h3>
<p>The current status of this entry is:</p>
<pre><code> STATUS: INABIAF - please **DO NOT** fix</code></pre>
<p>For more detailed information see <a href="../../bugs.html#2004_sds">2004 sds bugs</a>.</p>
<h2 id="to-use">To use:</h2>
<div class="sourceCode" id="cb3"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a> <span class="ex">./sds</span></span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> ./sds</code></pre>
<h2 id="try">Try:</h2>
<div class="sourceCode" id="cb4"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb4-1"><a href="#cb4-1" aria-hidden="true" tabindex="-1"></a> <span class="ex">./try.sh</span></span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> ./try.sh</code></pre>
<h2 id="judges-remarks">Judges’ remarks:</h2>
<p>Why not use the program to hide another program in the program? It
must have seemed reasonable at the time.</p>
@@ -174,20 +174,20 @@ provide a separate encoding program, you should not be surprised to
learn that I opted to steganographically hide the encoder inside the
decoder.</p>
<p>Try it out. Compile the program, then type</p>
<div class="sourceCode" id="cb5"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb5-1"><a href="#cb5-1" aria-hidden="true" tabindex="-1"></a> <span class="ex">./sds</span> <span class="op">&lt;</span> sds.c</span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> ./sds &lt; sds.c</code></pre>
<p>You should see the encoder program displayed. Now save it, like:</p>
<div class="sourceCode" id="cb6"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb6-1"><a href="#cb6-1" aria-hidden="true" tabindex="-1"></a> <span class="ex">./sds</span> <span class="op">&lt;</span> sds.c <span class="op">&gt;</span> encoder.c</span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> ./sds &lt; sds.c &gt; encoder.c</code></pre>
<p>Then compile <code>encoder.c</code>. You now have the complete system ready.</p>
<p>The encoder expects to get a filename as an argument. This filename
is the name of the file containing the information to be hidden. It
expects the file in which to hide the information to be on the
standard input, and will output the results on the standard output.</p>
<p>You can use it like this (assuming you have a file called remarks):</p>
<div class="sourceCode" id="cb7"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb7-1"><a href="#cb7-1" aria-hidden="true" tabindex="-1"></a> <span class="bu">echo</span> <span class="st">&#39;Hello, World!&#39;</span> <span class="op">&gt;</span> message</span>
<span id="cb7-2"><a href="#cb7-2" aria-hidden="true" tabindex="-1"></a> <span class="ex">./encoder</span> message <span class="op">&lt;</span> remarks <span class="op">&gt;</span> remarks_msg</span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> echo &#39;Hello, World!&#39; &gt; message
./encoder message &lt; remarks &gt; remarks_msg</code></pre>
<p>Then to decode:</p>
<div class="sourceCode" id="cb8"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb8-1"><a href="#cb8-1" aria-hidden="true" tabindex="-1"></a> <span class="ex">./sds</span> <span class="op">&lt;</span> remarks_msg</span>
<span id="cb8-2"><a href="#cb8-2" aria-hidden="true" tabindex="-1"></a> <span class="ex">Hello,</span> World!</span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> ./sds &lt; remarks_msg
Hello, World!</code></pre>
<p>C programs are mostly unaffected by adding steganographic content,
but it is possible in certain circumstances for whitespace to be
changed inside strings where it should be left alone. Plain text
+4 -4
View File
@@ -1,20 +1,20 @@
## To build:
```sh
```<!---sh-->
make
```
## To use:
```sh
```<!---sh-->
./vik1 [arg]
```
## Try:
```sh
```<!---sh-->
./vik1
./vik1 a
@@ -82,7 +82,7 @@ Compile the source code and link X libraries if necessary.
The program takes three options which have to be typed in a specific
order as described below.
```sh
```<!---sh-->
Usage: ./vik1 ['a']['d'][#]
a - Advanced racing in a winter landscape
+14 -14
View File
@@ -141,17 +141,17 @@ Location: <a href="../../location.html#US">US</a> - <em>United States of America
<!-- START: this line starts content for HTML phase 21 by: bin/pandoc-wrapper.sh via bin/md2html.sh -->
<h2 id="to-build">To build:</h2>
<div class="sourceCode" id="cb1"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a> <span class="fu">make</span></span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> make</code></pre>
<h2 id="to-use">To use:</h2>
<div class="sourceCode" id="cb2"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a> <span class="ex">./vik1</span> <span class="pp">[</span><span class="ss">arg</span><span class="pp">]</span></span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> ./vik1 [arg]</code></pre>
<h2 id="try">Try:</h2>
<div class="sourceCode" id="cb3"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a> <span class="ex">./vik1</span></span>
<span id="cb3-2"><a href="#cb3-2" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb3-3"><a href="#cb3-3" aria-hidden="true" tabindex="-1"></a> <span class="ex">./vik1</span> a</span>
<span id="cb3-4"><a href="#cb3-4" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb3-5"><a href="#cb3-5" aria-hidden="true" tabindex="-1"></a> <span class="ex">./vik1</span> d2</span>
<span id="cb3-6"><a href="#cb3-6" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb3-7"><a href="#cb3-7" aria-hidden="true" tabindex="-1"></a> <span class="ex">./vik1</span> ad3</span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> ./vik1
./vik1 a
./vik1 d2
./vik1 ad3</code></pre>
<p>Can you figure out how to cheat?</p>
<p>Also see the author’s remarks below for more details on the different
modes/options.</p>
@@ -184,11 +184,11 @@ glance at the feature list he provided below. Amazing!</p>
<p>Compile the source code and link X libraries if necessary.
The program takes three options which have to be typed in a specific
order as described below.</p>
<div class="sourceCode" id="cb4"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb4-1"><a href="#cb4-1" aria-hidden="true" tabindex="-1"></a> <span class="ex">Usage:</span> ./vik1 <span class="pp">[</span><span class="st">&#39;a&#39;</span><span class="pp">][</span><span class="st">&#39;d&#39;</span><span class="pp">][</span><span class="ss">#</span><span class="pp">]</span></span>
<span id="cb4-2"><a href="#cb4-2" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb4-3"><a href="#cb4-3" aria-hidden="true" tabindex="-1"></a> <span class="ex">a</span> <span class="at">-</span> Advanced racing in a winter landscape</span>
<span id="cb4-4"><a href="#cb4-4" aria-hidden="true" tabindex="-1"></a> <span class="ex">d</span> <span class="at">-</span> Racing in at night in the dark</span>
<span id="cb4-5"><a href="#cb4-5" aria-hidden="true" tabindex="-1"></a><span class="co"># - Race track selection 1-3 are valid numbers</span></span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> Usage: ./vik1 [&#39;a&#39;][&#39;d&#39;][#]
a - Advanced racing in a winter landscape
d - Racing in at night in the dark
# - Race track selection 1-3 are valid numbers</code></pre>
<p>Here are a few examples:</p>
<pre><code> Command line: Description:
+6 -6
View File
@@ -1,13 +1,13 @@
## To build:
```sh
```<!---sh-->
make
```
## To use:
```sh
```<!---sh-->
./vik2
```
@@ -127,7 +127,7 @@ speed up the compilation, define the `STOP` symbol to anything from `_3` to
`_10`. (The default value is `_10` which will make the compilation take some
time.) Prime numbers up to `2^STOP` will be calculated.
```sh
```<!---sh-->
cpp '-DSTOP=_5' '-DFNAME="tmp1.c"' prog.c tmp1.c
```
@@ -135,20 +135,20 @@ Then use `cpp` or any other
[pre-processor](https://en.wikipedia.org/wiki/C_preprocessor) to do the actual
work. This will take some time....
```sh
```<!---sh-->
cpp tmp1.c > tmp2.c
```
Finally compile the pre-processed file
```sh
```<!---sh-->
cc -O tmp2.c -o prog
```
Then run the program to reveal all prime numbers up to 32 (if you used
`STOP=_5` as above):
```sh
```<!---sh-->
./vik2
```
+6 -6
View File
@@ -141,9 +141,9 @@ Location: <a href="../../location.html#US">US</a> - <em>United States of America
<!-- START: this line starts content for HTML phase 21 by: bin/pandoc-wrapper.sh via bin/md2html.sh -->
<h2 id="to-build">To build:</h2>
<div class="sourceCode" id="cb1"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a> <span class="fu">make</span></span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> make</code></pre>
<h2 id="to-use">To use:</h2>
<div class="sourceCode" id="cb2"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a> <span class="ex">./vik2</span></span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> ./vik2</code></pre>
<h2 id="judges-remarks">Judges’ remarks:</h2>
<p>The fun thing about <a href="https://en.wikipedia.org/wiki/C_preprocessor">CPP</a> abuses
is that, in most cases, running the
@@ -234,16 +234,16 @@ symbol must be defined to the name of the output file. If you want to
speed up the compilation, define the <code>STOP</code> symbol to anything from <code>_3</code> to
<code>_10</code>. (The default value is <code>_10</code> which will make the compilation take some
time.) Prime numbers up to <code>2^STOP</code> will be calculated.</p>
<div class="sourceCode" id="cb3"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a> <span class="fu">cpp</span> <span class="st">&#39;-DSTOP=_5&#39;</span> <span class="st">&#39;-DFNAME=&quot;tmp1.c&quot;&#39;</span> prog.c tmp1.c</span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> cpp &#39;-DSTOP=_5&#39; &#39;-DFNAME=&quot;tmp1.c&quot;&#39; prog.c tmp1.c</code></pre>
<p>Then use <code>cpp</code> or any other
<a href="https://en.wikipedia.org/wiki/C_preprocessor">pre-processor</a> to do the actual
work. This will take some time….</p>
<div class="sourceCode" id="cb4"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb4-1"><a href="#cb4-1" aria-hidden="true" tabindex="-1"></a> <span class="fu">cpp</span> tmp1.c <span class="op">&gt;</span> tmp2.c</span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> cpp tmp1.c &gt; tmp2.c</code></pre>
<p>Finally compile the pre-processed file</p>
<div class="sourceCode" id="cb5"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb5-1"><a href="#cb5-1" aria-hidden="true" tabindex="-1"></a> <span class="fu">cc</span> <span class="at">-O</span> tmp2.c <span class="at">-o</span> prog</span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> cc -O tmp2.c -o prog</code></pre>
<p>Then run the program to reveal all prime numbers up to 32 (if you used
<code>STOP=_5</code> as above):</p>
<div class="sourceCode" id="cb6"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb6-1"><a href="#cb6-1" aria-hidden="true" tabindex="-1"></a> <span class="ex">./vik2</span></span></code></pre></div>
<pre class="&lt;!---sh--&gt;"><code> ./vik2</code></pre>
<h3 id="verification">Verification</h3>
<p>I wasn’t able to compile the full program which calculates <a href="https://en.wikipedia.org/wiki/Prime_number">prime
numbers</a> up to 1024 using GNU <code>cpp</code>