Church Calendar -*-org-*-
<pre>
| —–+———————————-+—–+———— | |||
| [1] | Event | [2] | Date |
| —–+———————————-+—–+———— | |||
| A | First Sunday of Advent | M | 2013-12-02 |
| A | St. Francis Xavier | F | 12-03 |
| A | St. Nicholas | F | 12-06 |
| A | Immaculate Conception[3] | F | 12-08 |
| C | Christmas[3] | F | 12-25 |
| C | Holy Family | M | 2013-12-30 |
| C | Mary, Mother of God[3] | F | 01-01 |
| C | Epiphany[3] | M | 2012-01-08 |
| C | Baptism of Christ | M | 2012-01-09 |
| O | Conversion of St. Paul | F | 01-25 |
| O | Presentation of Christ | F | 02-02 |
| O | 26 Saints of Japan | F | 02-06 |
| O | Our Lady of Lourdes | F | 02-11 |
| L | Ash Wednesday | M | 2012-02-22 |
| L | St. Patrick | F | 03-17 |
| L | St. Joseph[3] | F | 03-19 |
| L | Anunciation[3] | F | 03-25 |
| E | Easter Sunday[3] | M | 2012-04-08 |
| E | St. Joseph the Worker | F | 05-01 |
| E | Ascension[3] | M | 2012-05-20 |
| E | Pentecost[3] | M | 2012-05-27 |
| O | Visitation | F | 05-31 |
| O | Trinity Sunday[3] | M | 2012-06-03 |
| O | Corpus Christi[3] | M | 2012-06-10 |
| O | Sacred Heart[3] | M | 2012-06-15 |
| O | Birth of St. John the Baptist[3] | F | 06-24 |
| O | SS. Peter & Paul[3] | F | 06-29 |
| O | Transfiguration | F | 08-06 |
| O | Assumption of Mary[3] | F | 08-15 |
| O | Birth of Mary | F | 09-08 |
| O | Veneration of the Cross | F | 09-14 |
| O | Sts. Michael, Gabriel & Raphael | F | 09-29 |
| O | St. Therese of Liseux | F | 10-01 |
| O | Guardian Angels | F | 10-02 |
| O | St. Francis of Assisi | F | 10-04 |
| O | Our Lady of the Rosary | F | 10-07 |
| O | St. Luke | F | 10-18 |
| O | All Saints[3] | F | 11-01 |
| O | All Souls | F | 11-02 |
| O | Christ the King[3] | M | 2012-11-25 |
| —–+———————————-+—–+———— |
[1]: Liturgical season:
A: Advent C: Christmas O: Ordinary time L: Lent T: Easter Triduum E: Easter
[2]: Event type:
F: Fixed feast M: Moveable feast P: Parish event
[3]: Solemnity </pre>
Structure-In-BASIC
A technique for writing structured programs in classic (line-numbered) BASIC.
Structure-In-BASIC (SIB) is intended for beginning programmers who have been introduced to classic BASIC and wish to create more complex programs (programs too long to display on a single screen without paging/scrolling) before learning another language with better support for structured programming, or for advanced programmers who wish to create structured programs in BASIC.
SIB is composed of a set of source code patterns for implementing standard program structures in BASIC. The patterns should be simple to insert into program source, easily recognizable and distinctive, and undamageable by line renumbering. They should also assume no knowledge of other programming languages on the part of the programmer.
* Selection
Conditional
<pre>
01000 REM / BEGIN CONDITIONAL \\\_
01010 IF skip-condition THEN 1030
01020 REM conditional sequence …
01030 REM \
END CONDITIONAL /—————————
</pre>
Alternative
<pre>
01000 REM / BEGIN A
</pre>
* Repetition
FOR-NEXT
(Use standard BASIC syntax.)
Test-Exit-Loop
<pre>
01000 REM / BEGIN TEST-EXIT \\\___
01010 IF exit-test THEN 1040
01020 REM loop sequence …
01030 GOTO 1000
01040 REM \
END TEST-EXIT-LOOP /———————-
</pre>
rc
SDF Quests
* Clean up SDF disk * Backup MOTD DB * Record config. and remove test Drupal installation * Double-check all Dokuwiki articles copied into cave * Uninstall Dokuwiki * Install Drupal in papa.motd.org root * Castle Forth * Do something with VPS15 (ITS? wapsh? HTTPS?)
“L” A-B-C Project
A series of tutorials for programming languages of interest. The tutorial for a given language “L” consists of a sequence of sample programs, each demonstrating the most straight-forward to accomplish some basic operation in that language. The sample programs start with “Hello World” and increase in complexity through terminal and file nput/ output. The sample programs can be used as building blocks to make production programs.
Sample programs should be short and straight-forward. Techniques should be generic and as portable aspossible. Generally avoid platform-dependent techniques in favor of genericity.
(May create ”<language>-on-<platform>” A-B-C where platform-dependent techniques have particularly great advantage, or where generic techniques are particularly disadvantageous.)
* The A-B-Cs
1. Hello: Print literal string on terminal. 2. Print string from variable on terminal. 3. Echo: Accept user input, print on terminal. 4. Input from command line, print on terminal.
* Languages
- C - C-on-VMS - Macro-20 - Common Lisp - MAC Lisp - Scheme - BASIC-10 - HP BASIC - FORTRAN - BLISS
/* cat-1.c - display file lines on terminal * Source: Dave Sinkula. Reading a File Line By Line. * Jan. 12, 2005. DaniWeb. * <http://www.daniweb.com/software-development/c/code/216411> * accessed Jan. 24, 2012. */
#include <stdio.h>
int main ( void ) {
static const char filename[] = "file.txt";
FILE *file = fopen ( filename, "r" );
if ( file != NULL )
{
char line [ 128 ]; /* or other suitable maximum line size */
while ( fgets ( line, sizeof line, file ) != NULL ) /* read a line */
{
fputs ( line, stdout ); /* write the line */
}
fclose ( file );
}
else
{
perror ( filename ); /* why didn't the file open? */
}
return 0;
}