August 2004

Here's a pretty cool thing about CSS. You can use position: fixed; to add headers and footers (or whatever you want) to every printed page. At first it didn't make sense to me why it behaves like that, but with some reading and pondering, it made perfect sense. You see, fixed fixes the element to the viewport. In the screen medium, the viewport is what you see on your screen. It's where everything the user should read (or listen to) and/or interact with is. So when you use position: fixed; (optionally in conjunction with top, right, bottom and left) on an element, that element will stick to the viewport, at optionally specified offsets. Now, the print medium, unlike the screen medium, provides several viewports, one for each page. And so the element will stick to each viewport, at optionally specified offsets. Pretty neat, huh?

Another cool thing about CSS is display: run-in;. I haven't seen it used in practice yet, but I've seen people who have faked the effect. Its behavior is quite simple: If a block level element immediately follows the run-in element, the run-in element becomes the first inline element of that block. It's quite useful when you want, say, headings to run into the following paragraph; simply set display: run-in; on the heading(s).

"Good morning, and welcome to the Black Mesa Transit System. This automated train is provided for the security and convenience of the Black Mesa Research Facility personnel. The time is 8:47AM. Current top-site temperature is 93 degrees, with an estimated height of 105. The Black Mesa compound is maintained at a pleasant 68 degrees at all times.

This train is inbound from Level 3 dormitories to Sector C Test Labs and Control Facilities. If your intended destination is a high security area beyond Sector C, you will need to return to the Central Transit Hub in area 9 and board a high-security train. If you have not yet submitted your identity to the Retinal Clearance system, you must report to Black Mesa Personell for processing before you will be permitted into the high-security branch of the transit system.

Due to the high toxicity of material routinely handled in the Black Mesa compound, no smoking, eating, or drinking are permitted within the Black Mesa transit system.

Please keep your limbs inside the train at all times. Do not attempt to open the doors until the train has come to a complete halt at the station platform. In the event of an emergency, passengers are to remain seated and await further instruction. If it is necessary to exit the train, disabled personnel should be evacuated first. Please, stay away from electrified rails and proceed to an emergency station until assistance arrives.

A reminder that the Black Mesa Hazard Course decathlon will commence this evening at 1900 hours in the Level 3 facility. The semi-finals for high-security personnel will be announced in a separate secure access transmission. Remember, more lives than your own may depend on your fitness.

Do you have a friend or relative who would make a valuable addition to the Black Mesa team? Immediate openings are available in the areas of materials handling and low-clearance security. Please contact Black Mesa personnel for further information. If you have an associate with a background in the areas of theoretical physics, bio technology or other high-tech disciplines, please contact our civilian recruitment division. The Black Mesa Research Facility is an equal opportunity employer.

A reminder to all Black Mesa personnel: Regular radiation and biohazard screenings are a requirement of continued employment in the Black Mesa Research Facility. Missing a scheduled urinalysis or radiation checkup is grounds for immediate termination. If you feel you have been exposed to radioactive or other hazardous materials in the course of your duties, contact your radiation safety officer immediately. Work safe. Work smart. Your future depends on it.

Now arriving at Sector C Test Labs and Control Facilities.

Please stand back from the automated door and wait for the security officer to verify your identity. Before exiting the train, be sure to check your area for personal belongings. Thank you, and have a very safe and productive day."

But seriously.

Big changes. All pages that used to use SSI now use PHP (which includes pretty much all of my pages). The main reason for the conversion was the ability to add a consistent style sheet changer, but seeing as PHP is infinitely more powerful than SSI, I can now (of course) add more powerful features to the site, more easily. Link rot is no problem thanks to the magic that is mod_rewrite. All requests for .html or .shtml are automatically rewritten to their .php equivalents.

As briefly mentioned, my site now features a style sheet changer. It's located at the top, and enables you to change the style of my site in three easy clicks. Only one thing is required on the client side; cookies must be enabled. Fortunately, this is almost always the case. One major advantage of a style sheet changer like this is that the change is consistent over several pages and that IE also gets the ability to change the style, just like Opera, Mozilla and several other browsers already do natively.

I feel that I spend maybe too much time on the technical side of my site leaving the important bit, content, neglected. I promise that this trend will not last.

My deepest fears have become reality. For the IT course I'm taking in school, we'll be using Frontpage. Oh, the horror!

"Psykopaten havner i fengsel i kanskje 4-5 år, soner halvparten, slipper ut igjen og dreper enda en person. Har vi det så bra i landet at vi må sørge for å passe godt på psykopatene våre og la dem drepe fritt så vi får krydder i form av angst og redsel til livene våre? Det vi skulle gjort var å sende alle de uhelbredelige psykopatene til en øde øy og la dem drepe og rane hverandre til det ikke var noen igjen. Jeg er overbevist om at alle gjennomsnitts oppegående mennesker hadde hatt godt av å slippe å frykte døden i en trist bakgate i Oslo. Tenk positivt! Tenk smart! Tenk på fremtiden din! Flytt til nordpolen."

Source: www.lokaltog.net/andre-ting/masse-rart

If you didn't understand that, you need to learn Norwegian, then come back. Then, follow this link to Kim's site and read his shit. He's like Maddox, only Norwegian and better at webdesign.

On request from Trevor Morris, here's a translation of the quoted passage above:

"Psychopaths go to prison for maybe 4-5 years, spend about half of that time there, get released, and kill yet another person. Are we really so comfortable in this country that we have to take good care of our psychopaths and let them kill freely so that our lives are spiced up in the form of anxiety and fear? What we should do is send all the uncurable psychopaths to a deserted island and let them kill and rob each other until none were left. I'm convinced that avarage, enlightened people would be pleased to be able to not fear death in a sad alley in Oslo. Think positively! Think of your future! Move to the North Pole."

I'm playing around with a PHP script made by Richard Lainchbury that generates a file listing for the directory it's in. I've made slight adjustments to it (making it valid, making it output readable code and removing general ugliness (such as &nbsp;s)) and will continue to tweak it, and hopefully, one day, learn how and why it works. In any event, this script is superior to Apache's indexing, which uses HTML 3.2 and <pre> when it should be using HTML 4.01 and <table>, which is what Richard's script does.

Progress on my HTML tutorial has stagnated because of the myriad of (mostly non-web related) stuff currently happening. I will try to get started on it Soon Enough.

Made another CSS alacrity; dialog01.

There are 9 posts for August 2004.