Tag Archives: PHP

Snake gets nostalgic with the new Blog Archive

Over the weekend, I finally got around to coding the new blog archive. As one can see, it displays a list of the most popular tags in one table and a calendar broken down into years and months in another. This is, of course, leaps and bounds better than Coranto’s single column list of months, which was getting absurdly long.

This was the first page in a while that required me to start from mostly scratch. Although the style is similar to the rest of the site, the design is different. Before I even touched the code, though, I had to make sure my design would work. One of the key features of the design is something I’ve used before and been quite pleased with: adjustable numbers of columns for different frame widths (i.e. from different resolution monitors). It uses a bit of JavaScript to calculate the optimum number of columns and then reloads the page to pass in the number; then, the page’s script adjusts the tables accordingly. The code consisted of two major tasks: loading the data into an acceptable format and then outputting with HTML formatting. Instead of doing a lot of SQL queries, I decided it was more efficient to just parse post dates and store them in a multidimensional array of years, months, and posts. Finally, outputting merely requires array traversal with some iterative control structures, printing HTML as you go. It loads surprisingly fast for the amount of data it handles.

news258Since then, I’ve been reading back over old posts to fill out the tags–understandably, the popular tags list looks more impressive when there’s something there. One side effect, though, is that it’s making me rather nostalgic. It’s actually quite interesting seeing the number of posts …my life splayed out over time; it puts things in perspective. One may notice the two large voids in posting around summer 2000 and March 03 to May 04. Although there’s not many posts to go by, these were actually the most satisfying times in my life–they were so great, I couldn’t even be bothered with posting (that and Danky broke the news system in 2003).

news256In early 2000, Loogie and I started getting into our first online gaming experience with Team Fortress Classic. We played so much that in May we started our own clan, S&L. We spent many a night honing our skills with clanmates against our arch-nemesis, the CDD clan. And although we kept playing TFC for years, nothing quite lived up to that first summer.

In March of 2003, I started dating Beckie, my first girlfriend. Things were fast and crazy around that time (graduating high school and all) and I scored. There were so many awesome and horrible feelings and situations that it was an orgy of senses and emotions. But it got boring after a while and would never again live up to the first few months.

But what I’m trying to get at here is that our first real experience with some amazing social ventures, like dating or online gaming, may just be the most gratifying times of our lives in retrospect. I’m not even sure if timing or the persons or places (games) involved make that much difference to this fact, just that it is our first time. I also don’t believe that there’s any moral to this story; I just hope that if you took the time to read this, maybe it has attuned your sensitivity to memories of such things.

Perhaps these feelings may make us slaves to the memories of our former selves, always trying to recapture our best times. While this may be true in part for me, it’s also given me a need to sample as many things as possible (within comfortable limits, of course) to find my next great first. (Maybe I won’t even know I’ve had one until I look back.) Though, I’ve always been bitter that my first relationship got in the way of my one true love: computing. I know some of this sounds bad for my current girlfriend, but I want to assure her that she’s my number two. Hmm…no, lemme try again: You’re my favorite person in the world, Kaylen.

Sorry I got all personal on this post. I’ll try not to let it happen again. 😉

Posted in Programming, Website | Tagged | Leave a comment

Progress

Rebuilding the site has been slow so far. It’s partly because I’m new to PHP, but mainly from trying to flesh out the new design. Unbeknown to me before I decided to use PHP is that SSI does not work with PHP files. So no more virtual cgi calls (the PHP virtual() function doesn’t seem to work on this server either). So, I’ve had to transcode a few cgi scripts for logging, random quotes, and image viewing. Thus, those functions are working at this time. The image viewer script is going to take a while to implement, though. I’m probably going to make a quick and dirty VB.Net app to do regex replacements for image viewing urls, among other things.

I’m going to seriously be parsing through pages for months trying to get everything setup correctly and checking for broken links. Which reminds me, I also did a 404 error page that uses PHP. Hoping to help people find content as I add it, the error page forces itself into frames as many of the other pages do. And finally, I decided to do away with the old archived news pages (c. 2000-2001) by sticking the content from them into the new Coranto news database. They’ll be rather easy to spot, as we didn’t use subjects back then and I don’t have the time to summon up any. However, I’m pretty sure that I’ve lost any news pics from other old editors; so, if anyone has any of those, send them my way. By the end of the week, I should have the news completed and begun coding the new content system.

Posted in Website | Tagged | Leave a comment

Restart

As you may have seen on my simple index page recently, six days ago, the RAID array of the server I was on got trashed (post here). There were no backups, and I myself didn’t have complete and current backups for everything that was on this site. So, since I was going to revamp the site over summer vacation anyways, I decided to just start building the site from scratch.

I stuck with a frames design because I like having a stationary navigation that the user can always get to. I think floating DHTML menus look amateur and table designs are trite and inconvenient. I also stuck with frames to minimize content reloading, which is especially useful for flash navigations. But never fear, since I’ve started using PHP extensively in the design, I’ve come up with a way to hopefully make the frames invisible to the user. Using a top secret script, any page on this site that isn’t in the frames will be put back in the frames. It does this even before the page has a chance to load.

Obviously, since I’m starting with a blank slate here, it will take a while for everything to come back online. If you can’t get to something, I haven’t gotten to fixing it yet. Even then, links to specific pages before the crash probably won’t point to the right page. I’ve totally changed the layout of all the content and cut away a lot of the older features. Later on, I hope to put these old features in a sort of viewable statis, though.

Remember, if you need apps like the RoN ScriptMaker, they can be found in the public ftp. I’m still having problems with it, though, so it’s best to download in the evenings.

Posted in Website | Tagged | Leave a comment