Take 2? - 16/04/2002 - 03:00 GMT -
[Link]Take 2?
Hey, this might work. I'm going to use an index file with a list of all the entries. It should
make it much easier to manipulate and sort them...
<gloat>
It works! It's tiny and stupidly (nay, neautifully) simple. There's no faffing about with
databases or worrying
about what happens if you roll back over a month or if there are gaps of days/weeks
between entries or anything like that. Every entry has its own file corresponding to its date
e.g. this is in
/diary/2002-04-16, and there is a constantly updated
index of files in the same folder. I'm sitting at my matrix shell
prompt and I type "d", which concatenates the current date (`date -I`) to the end of the index,
touches and chmods a file of that name and then opens up my fuzzy cuddly text-editor of
choice (pico) with same filename. I save and exit. Displaying the latest three entries is
a piece of piss after that; I'll leave you work out how many lines it took. Faster than Blogger,
that's for sure. Archives coming soon, but they should be a piece of piss too.
</gloat>
[
Post new comment]
About
This is LeSinge.org v3.0. It's on its sixth* server since I registered
the domain name in November of 2000 and it has gone through several
drastic facelifts in that time, usually prompted by some cataclysmic
event like someone deleting a load of files they shouldn't, or a server
being shut down. This is the maddest layout yet; I'm trying to fit the
entire weblog (apart from diary archives and the gallery) into a single
loading page using all sorts of PHP-generated DHTML jiggery-pokery. The
idea is to make it more inviting to look around since there's no
loading between "pages". It's still a work in
progress (more a proof of concept than anything), so be patient!
I'm Dave Whyte, an Irish CS graduate, German speaker,
linguist and incredibly talented web developer. I'm originally from
Fermoy but I now live in Newbridge with my
wife Beth and our son. I'm currently working for these fine folks and enjoying it
greatly.
"The Monkey"? Eh?
My nom de guerre comes from an old Eddie Izzard comedy sketch.
Contact me!
- Email - me @ this domain name (I had the catch-all disabled, with
instant results)
- Gmail - dwhyte
- MSN - lamerthanjesuschrist at hotmail.com
- ICQ - 230670372
- AIM - lamerthanjchrist
- Yahoo! - jenesuispasunepoutaine
- Skype - daveandbeth2004
Or: Meebo me!
* I've been around: csd.dot-ie.com, matrix.netsoc.tcd.ie, ns1.ayntk.net, ns4.nestdesign.com, cotopaxi.33eels.com, chimborazo.33eels.com