<?php
include "/home/vhosts/crusher.dk/common.inc.php";

page_header("Crusher-Land / News");
page_open();

function news_item($date,$author,$title,$contents) {
   print "<div class=\"news-item\">\n".
         "\t<div class=\"news-head\">$title</div>\n".
         "\t<div class=\"news-info\">Posted by <span class=\"news-poster\">$author</span> at <span class=\"news-date\">$date</span></div>\n".
         "\t<div class=\"news-text\">\n$contents\n\t</div>\n".
         "</div>\n\n";
}
?>

<div class="news">

<?php
news_item("2004-12-13",
          "FlushedSector",
          "RAR-3.41",
          "Installed RAR-3.41 in /opt/rar, so RAR command line tool is now available on the server.");
news_item("2004-12-02",
          "FlushedSector",
          "Apache2 now serving this site",
          "After a lot of fiddling around, I finally managed to port CrusherLand to Apache2. It took some time figuring out that the new libapache2-mod-php did not load the mysql.so library. When that was ensured, I went to fixing the PHP4 behaviour of making all GET/POST vars available as globals in the script. Finally, I had to fix the wrong default value of no-overrides with .htaccess, which is Debians default (should have been first thing taken care of as it is a security hazard!).");
news_item("2004-11-11",
          "FlushedSector",
          "Unplanned downtime",
          "Somebody had the courtesy of disconnecting marvin from the power. I did not have time to fix the routing completely friday evening, and it came back to bite me! marvin did not boot up with the correct routing tables and the LAN was thus unable to access the internet (and marvin to receive connections). Hopefully, this has been fixed so it wont happen again.");
news_item("2004-11-05",
          "FlushedSector",
          "Fixed a minor routing issue",
          "We have an ADSL connection here, and we kept getting <code>kernel: Neighbour table overflow</code> messages from the kernel, suggesting an ARP cache overflow in the kernel. I then added a default route towards the gateway for our ISP (TDC), and got rid of all the unnescessary ARP packets flowing. Turns out they always responded with an ARP packet for their gateway no matter what the destination was."); 
news_item("2004-10-31",
          "FlushedSector",
          "Marvin is router",
          "Alright, thats it - I have had it with TDCs lack of competence. I have now configured marvin to be our router towards the internet, so I may, myself, control what services we want to provide. After a couple of doh!s it now works seamlessly and allows the VPN to pass correctly.");
news_item("2004-10-23",
          "FlushedSector",
          "domain mapped to SSH",
          "Due to TDC lack of competence in configuring their routers, I had to move SSH to port 53 (domain).");
news_item("2004-09-10",
          "FlushedSector",
          "Power failure",
          "Damned - dad kicked the HFI while moving the lawn.");
news_item("2004-08-20",
          "FlushedSector",
          "New server",
          "Brainless has been replaced with Marvin, a Via Epia based server with only one disk for homedirs. We managed a peek of 100days on brainless and then took it down to remove a block of RAM. Brainless is now for sale, if anybody wants it...");
news_item("2004-06-16",
          "FlushedSector",
          "*noise*",
          "Most likely I'll have to sleep in the same room as brainless, so it's probably going down with an uptime of 61 days.");
news_item("2004-05-03",
          "FlushedSector",
          "RPC",
          "For some unknown reason, RPC went down on the server, so NFS went unavailble - same did famd. After restarting portmap and the other daemons, everything is okay again.");
news_item("2004-04-25",
          "FlushedSector",
          "Amavis and ClamAV",
          "Got sick and tired of all the vira I get in the mail, so I installed amavisd and ClamAV to filter mail - it has already caught 4");
news_item("2004-04-15",
          "FlushedSector",
          "Success",
          "I managed to force a rewrite of the superblocks using <code>mkraid</code> without destroying the data on the disk - the data seem to be preserved without errors - pphhhewww!!!");
news_item("2004-04-14",
          "FlushedSector",
          "Add failed",
          "Most of the reconfiguration succeded, but writing superblocks failed - I'm going to bed before i f... something major up!");
news_item("2004-04-12",
          "FlushedSector",
          "New disk",
          "A new 120GB disk has arrived and is expected to be added to the RAID array wedensday. The array will be offline during reconfiguring (26 hours) and the system will be down during the install of the drive (2 hours).");
news_item("2004-02-02",
          "FlushedSector",
          "Reboot",
          "A reboot has been scheduled at 07:00 tomorrow (to upgrade the kernel to the latest 2.4.");
news_item("2004-02-02",
          "FlushedSector",
          "Flakey",
          "The server is currently a bit flakey due to some experiments to switch to the 2.6 kernel - this has so far been unsuccessful. Expect some reboots and downtime in the days to come...");
news_item("2004-01-07",
          "FlushedSector",
          "Postponed link change",
          "TDC decided to change the estimated conversion of the line to 20040115, so the schedule has been postponed.");
news_item("2003-12-25",
          "FlushedSector",
          "Changed link to the Internet",
          "We finally got the requested information from TDC - they will perform a downgrade of our link to the internet at 20040108, after which our IP will change. This means that we need to update our DNS records, which will usually take about 24h to propagate through the net - thus, expect crusher.dk not to work from 20040108-20040110. The change will only affect our downstream speed.");
news_item("2003-12-25",
          "FlushedSector",
          "Noise ?",
          "Somebody had to sleep in the same room as the server, so it was shut down from 20031225T0002 through 20031225T1158. It will also be shut down tonight between 0010 and 1300.");
/*
news_item("2003-12-08",
          "FlushedSector",
          "New 2.4 kernel",
          "Felt like upgrading the kernel to the lastest version I could patch with the XFS patch.");
news_item("2003-11-13",
          "FlushedSector",
          "Blackout",
          "Obviously, the reliability of the power grid here in north Seeland is quite low - today we had a 1 hour power out!");
news_item("2003-10-06",
          "FlushedSector",
          "HTTPS up-and-running",
          "I finally figured out how to configure Apache to allow HTTPS connections and to generate my own certificate (issued by SnakeOil Ltd. - sounds trustworthy - NOT!).");
news_item("2003-09-26",
          "FlushedSector",
          "Blackout explained",
          "It has turned out that a nuclear power plant in Sweden had technical difficulties and disconnected from the net. This was handled OK, except, 5 min. later a transformer short-circuited and caused an additional disturbance. Another swedish nuclear power plant disconnected from the net and the net was now loosing voltage. The connection between the two countries were not programmed to disconnect under a voltage drop and thus remained active causing all seeland power plants to shut down.");

news_item("2003-09-23",
          "FlushedSector",
          "Major blackout",
          "A major black-out affecting souther Sweden and Seeland (part of Denmark) caused the system to be down for some 6 hours from 12:37 to 19:16.");

news_item("2003-09-14",
          "FlushedSector",
          "MySQL",
          "I overlooked the fact that MySQL had corrupted a transaction log file when the system crashed. This caused MySQL to refuse to start up. This has been fixed and the DB is now up and running. I hope to investigate the contents of this log file."
         );
news_item("2003-09-13",
          "FlushedSector",
          "Crash!!!",
          "For some yet undetermined reason, brainless crashed due to a power failure 6 hours ago."
         );
*/
?>
</div>

<?php
page_close("2004-11-02");
?>
