Thank you, @chris-sab, for your excellent work and for helping us commit this alpha version of the topbar. As part of this work, the following HTML sections were removed: * begin-row * begin-leftcolumn * sidenav * end-leftcolumn * begin-rightcolumn * before-content * end-rightcolumn * end-row.default Also added a new HTML section, just above the "header" section: * topbar The web site now as a more modern looking topbar, thanks to the work of the contractor (GitHub user @chris-sab) who is working on issue #2273. Performed `make www` to implement the above and test under macOS. TODO: Fix the Responsive Web Design to deal with the new topbar system. TODO: Improve the topbar. What is there now is just an alpha version. TODO: Decide what to do with `png/ioccc.png`. Remove it make selective use of the image on certain top level pages lower down? TODO: The changes to `ioccc.css` causes some formatting problems with pages such as `location.html` (missing blank lines). Fix formatting problems as needed. TODO: Fix the "Nu HTML check this web page" links on things like the year level _YYYY/index.html_ pages. TODO: Correct all HTML errors, warnings and perhaps informative messages from the Nu HTML check. TODO: Consider adding color (colour) to the web pages in such a way that people with color perception challenges can still use the web site. TODO: For those web browsers that have and allow JavaScript, make use of technology such as [Code Mirror](https://codemirror.net/) to directly render source code (C, shell, Makefile, etc.) with syntax coloring (colouring) directly in the browser. For non-JavaScript browsers, fallback to the current use of GitHub source code viewing.
To build:
make
An alt version exists for those in the southern hemisphere (or those who want to see what it would be in the southern hemisphere). See alternate version below.
To use:
./natori
Try:
./try.sh
Try running this on different days, say a few days apart (even better if the Moon phase changes), and each time run it several times in a row (or several times in a day).
Also try modifying the code so that it will show another Moon phase based on input or else just by the code itself. Bonus points if you can make it show all.
NOTE: if it's a Full Moon the script won't look as nice.
Alternate code:
The author noted that those in the southern hemisphere might want to change
acos(l/2) into acos(-l/2) which we have done in the alternate version.
Alternate build:
To run the alternate code that supports the southern hemisphere:
make alt
Alternate use:
./natori.alt
Try running this on different days, say a few days apart, and each time run it several times in a row (or several times in a day).
What happens if you run it in the northern hemisphere? Are there any differences?
Can you identify any Moon phases that result in the same output of both versions? Or are there any?
Alternate try:
./try.alt.sh
Like with try.sh, try using this multiple times in a row or throughout the day on different days (if different phases of the Moon you'll see more of a difference, of course).
NOTE: if it's a Full Moon the script won't look as nice.
Judges' remarks:
Here is a nice compact program that changes with the phase of the Moon. Can you figure out how it does it?
The ANSI-C committee, among their multiple misdeeds, broke perfectly fun C
programs by making it intractable for them to declare their own non-traditional
prototype for main(). We have had to uglify this program in order to prevent
C compilers from failing to compile it due to (the now changed) unusual arg
types of the main() function.
Author's remarks:
This program outputs a rough image of the moon in its current phase. The main obfuscation of this entry is its complicated double recursion (without any loop or conditional statement).
People living in the southern hemisphere may want to change acos(l/2)
into acos(-l/2).