ProgClub is number one for programmer “good club”, cooler than progsoc and progclub. The results for programmers’ club and good programmers’ club are appalling — we’re nowhere to be seen (and the results for those queries are pretty useless, it’d make more sense if we were listed).
Help, I’m being raped by Googlebot!
Friggin’ Googlebot is crawling all over pcrepo, even though I told it NOT TO DO THAT. My robots.txt file has been updated to disallow svnro for most of the day. Google really should have a facility for web-masters to be able to force a reload of robots.txt in Googlebot. They’re going to hit me thousands of times before this is over. :(
ProgClub news
There’s been news every day for a while now. Not too shabby. Today’s news is that ViewVC (aka: Pcview) has been installed and configured on charity.progclub.org. That means that now pcrepo can be browsed online. Comes complete with support for syntax highlighting and line-numbers (courtesy of the ‘highlight’ package, couldn’t get enscript to work for PHP) and a proper logo with a link back to the wiki. That’s five completed projects now! Go school!
Installing ViewVC
I’ve discovered ViewVC, and am planning to install it on ProgClub’s server for pcrepo. I’m having some trouble.
Communism is like Academia is like Wikipedia
They all sound great in theory, with their lofty ideals, but the closer you get to them the more you realise their proponents and participants are generally small-minded closed-minded exclusive elitist authoritarian wankers of the first order.
MediaWiki/Wikipedia content distribution
Involved in some design discussion on the wikitech mailing list.
Subversion release script
I wrote a script to manage project releases for ProgClub. Basically you pass the project name to the script, and it will create a release tag in tags/release/year/month/day/serial and update tags/latest with the latest release.
#!/bin/bash
if [ "$1" = "" ]; then
echo "Expected project parameter.";
exit 1;
fi
if [ "$2" = "" ]; then
echo "Expected comment parameter.";
exit 2;
fi
pcrepo="https://www.progclub.org/svn/pcrepo";
project="$1";
comment="$2";
echo Releasing $project;
svn info $pcrepo/$project 2> /dev/null > /dev/null
if [ "$?" -ne "0" ]; then
echo $project does not exist.
exit 3;
fi
year="`date --utc +%Y`";
month="`date --utc +%m`";
day="`date --utc +%d`";
serial="0";
serial_formatted="0";
svn_status="0";
while [ "$svn_status" = "0" ]; do
serial="`echo \"$serial + 1\"|bc`";
if [ "$serial" = "100" ]; then
echo "Out of serial numbers. You can't do any more releases today. Take a break!";
exit 4;
fi
less_than_ten="`echo \"$serial < 10\"|bc`";
serial_formatted=$serial;
if [ "$less_than_ten" = "1" ]; then
serial_formatted="0$serial";
fi
url="$pcrepo/$project/tags/release/$year/$month/$day/$serial_formatted";
echo Checking availability of release: $url
svn info $url 2> /dev/null > /dev/null
svn_status="$?";
done
trunk_url="$pcrepo/$project/trunk";
svn copy $trunk_url $url -m "Releasing $project: $year-$month-$day-$serial_formatted. $comment" --parents
latest_url="$pcrepo/$project/tags/latest";
svn delete $latest_url -m "Updating $project/tags/latest...";
svn copy $url $latest_url -m "Updating $project/tags/latest. $comment";
Can do
There are a class of people who enjoy telling people what they *can’t* do. I’m a person who enjoys telling people what they *can* do. That leaves me in the awkward position of needing to tell the *can’t* doers that they *can’t* do that, and I become almost as bad as them. Almost.
Pro-g-Club
Hah!
MediaWiki extensions repository
I found the svn repository for MediaWiki extensions:
http://svn.wikimedia.org/svnroot/mediawiki/trunk/extensions
There are a lot of extensions in there. Not sure if adding it as an external on my own repository was a good idea or not. Let’s see how that goes.
At a glance I found a few interesting extensions. I bumped into them while searching for a NoTitle extension, which I couldn’t find. There was StalkerLog, which logs user logins/logouts; and WhoIsWatching, which displays who is watching particular pages.