The most merciful thing in the world is the inability of the human mind to correlate all its contents.
H. P. Lovecraft
Let's party

Where november was the month of moving, december was the month of party's. Today I will combine these events in giving a house-warming/new-year party. After that (hopefully) more time will be available for some good old hacking. As a reminder for myself to fix the damned end-year-bug here a shell script which shows my calendar, created with this nice vim script in a year/month/day.cal format.

    dir="$HOME/diary"
    nrofmonths=2

    year=`date +%Y`
    month=`date +%m| sed -e 's/^0//g'`
    day=`date +%e`

    for ((i=$month; i <= (month+nrofmonths-1); i++)); do
	if [[ -d "$dir/$year/$i" ]];  then
	    for ((j=1; j <= 31; j++)); do
		if [ "$i" -ne "$month" ] || [ "$j" -ge "$day" ]; 
      then
            bestand="$dir/$year/$i/$j.cal"
		    if [ -e $bestand ]; then
                size=`/bin/ls -l $bestand | /bin/awk ' print $5 '`
		        if [ $size -gt 0 ]; then
                    echo -n "* `date -d "$i/$j" +%a\ %d\ %b` : "
                    sed -e "1!s/^/	       /g" "$dir/$year/$i/$j.cal" 
                fi
		    fi
		fi
	    done
	fi
    done

Happy 2005 anyone!

Posted by jochem on 2004-12-31, last update on 2004-12-31