aboutsummaryrefslogtreecommitdiff
path: root/content/posts/2001-10-10-the-apex-of-page-updates.html
blob: ec8edf04cb2d060d6022697d8eeabc5ba226d466 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
---
date: "2001-10-10T14:14:00Z"
title: The Apex of Page Updates
---

<p>
A lot has happened since I last updated my page:
<a href="http://www.tynian.net/">Brian (<i>bma</i>)</a> and 
<a href="http://www.aphrael.net/">Karen (<i>aphrael</i>)</a> got
married! Brian's wedding cruise pictures are available
<a href="http://www.tynian.net/pix/cruise-200109/">here</a>.
<a href="http://www.linuxbrit.co.uk/">Tom(<i>giblet</i>)</a>  and 
<a href="http://www.schmoo.org/">Sue</a> (<i>schmoo</i>) were unable to
join Brian and Karen's wedding cruise due to the post-WTC international
flight mayhem, so they spent the week at my place instead.  Tom posted
pictures of the week and the reception
<a href="http://www.linuxbrit.co.uk/pics/2001_09_holiday_virginia/">here</a>.
Also at the reception: Beth (Sue's daughter;she's a great kid and funny
as hell), Kevin (<i>het</i>), Nick (<i>learath</i>), Jimmy and Megan 
(Karen's non-Internet-enabled friends that we hang out with quite a bit),
Megan's sister Jill, the man behind the curtain,
<a href="http://www.kainx.org/">Mr. Mej (<i>mej, KainX</i>)</a>
himself, 
<a href="http://www.richlowe.net/">Richard (<i>richlowe</i>)</a> and
<a href="http://www.cyberquirky.org/">Jon Anne (<i>lilyj</i>)</a> were
at the reception as well, and they're staying with
<a href="http://www.snowman.net/">Stephen (<i>Snow-Man</i>)</a>
and I for a little while as well.  Lots of great
<a href="http://www.gimp.org/">Gimpable</a> pictures of Richard in
Tom's pictures.  Not that I would ever
<a href="http://www.linuxbrit.co.uk/pics/2001_09_holiday_virginia/?browse=13&amp;res=640x480">encourage</a>
<a href="/gallery/richlowe/toy.jpg">someone</a> to
<a href="/gallery/coochie_coo/coochie_coo.jpeg">modify</a> a
<a href="/gallery/richlowe/richsheep.jpg">picture</a> of
<a href="/gallery/richlowe/richlowe_for_president.jpeg">Richard</a>, or
of <a href="/gallery/misc/e_cereal.png">anyone else</a> for that matter.
</p>

<p>
I finally got around to purchasing a CDRW, and I've been burning CDs
like mad.  Somehow  I managed to accumulate a couple DivX movies, so
I burned those along with a CD of mp3s for work, a full backup of my
home directory, and some other random junk.
</p>

<p>
Pablotron is semi-broken at the moment.  Snow-Man upgraded PHP on the
web server, and it seems to have broken some of my spaghetti PHP.  I've
been designing a new backend for another site, and I'll probably update
it to support site themes and port Pablotron to the new backend.  The
new backend is much, much cleaner than the current Pablotron one; it
makes extensive use of stylesheets, object oriented PHP, and standard
configuration files (currently only CSV, but I plan on adding XML
support in soon). Here's an example of the differences:
</p>

<p>
<code>
&lt;?php require("$DOCUMENT_ROOT/ssi/header.php"); ?&gt;<br />
&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;Pablotron : Sample Page&lt;/title&gt;<br />
&lt;/head&gt;<br />
<br />
&lt;?php require("$DOCUMENT_ROOT/ssi/doc/top.php"); ?&gt;<br />
&lt;?php require("$DOCUMENT_ROOT/ssi/top.php"); ?&gt;<br />
&lt;b&gt;Sample Page&lt;/b&gt;<br />
&lt;?php require("$DOCUMENT_ROOT/ssi/mid.php"); ?&gt;<br />
This is a sample page.<br />
This is a &lt;a href="http://www.sample.com/"&gt;sample
url&lt;/a&gt;<br />
&lt;?php require("$DOCUMENT_ROOT/ssi/bot.php"); ?&gt;<br />
<br />
&lt;?php require("$DOCUMENT_ROOT/ssi/doc/bot.php"); ?&gt;<br />
&lt;/html&gt;<br />
</code>
</p>

<p>
Under the new system, that page could be written as follows:
</p>

<p>
<code>
&lt;?php<br />
require("$DOCUMENT_ROOT/inc/header.php");<br />
<br />
$page = new Page();<br />
$page-&gt;start("samplePage", "Sample Page");<br />
<br />
$page-&gt;start_item("Sample Page"); ?&gt;<br />
This is a sample page.<br />
This is a &lt;?php $page->url("sampleUrl", "sample url"); ?&gt;<br />
&lt;?php $page-&gt;end_item();<br />
<br />
$page-&gt;end();<br />
?&gt;<br />
</code>
</p>

<p>
Obviously the latter allows us to do all sorts of crazy things that the
former does not.  Coupled with CSS, It also strengthens the distinction
between Pablotron's content and the layout.
</p>

<p>
Some other random stuff; I whipped up a quick script to convert
<a href="http://finance.yahoo.com/">Yahoo! Finance</a> stock quotes to 
the GKrellM
<a href="http://www.cs.huji.ac.il/~tolik/fmonitor.html">FMonitor</a>
format, so you can view stocks in GKrellM.  You can download it 
<a href="/download/fmstocks-0.1.0.tar.gz">here</a>.  Well, there's a lot
more going on, but I have to get some sleep, so I'll try and update
again tomorrow.
</p>