Archive of UserLand's first discussion group, started October 5, 1998.

Changes to currentStories.xml

Author:Dave Winer
Posted:7/16/1999; 8:29:15 AM
Topic:Changes to currentStories.xml
Msg #:8530
Prev/Next:8529 / 8531

Please refer to currentStories.xml.

Here are the changes I made this morning:

  1. Added version attribute to storyList. Set to 1.0.
  2. Corrected channelUrl, it was pointing to a non-existent page.
  3. Added userLandChannelId to each story, so there can be a link between the story and the channel that's not based on parsing the URL, which could change.

Re the location of the file, my intention is that all statically allocated files from My.UserLand.Com will go into that directory, and when they move, we'll work out a way to automatically redirect. I'd say the URLs are good for at least six months. We need to offload some of the serving, and that's a nice quiet Linux box that's going to do nothing but store static stuff for our NT machines.

Frontier programming trick

I wrote a single bottleneck routine, finally, that handles all static storage for applications running on UserLand.Com servers. This means that when and if we should move this sub-site, we'll just have to change it in this one place. For Frontier developers, here's the source for the script:

on staticFileWrite (filetext, path) { //returns the URL for the file
	local (basefolder = "L:\\static\\");
	local (baseurl = "");
	local (f = basefolder + string.replaceall (path, "/", "\\"));
	file.sureFilePath (f);
	file.writeWholeFile (f, filetext);
	return (baseurl + path)}

There are responses to this message:

This page was archived on 6/13/2001; 4:51:26 PM.

© Copyright 1998-2001 UserLand Software, Inc.