TiddlyWiki to Spaces!

did some quick javascript to send tw articles to spaces via the blogit interface (if it can be called that...)
anyway, it's working and I'm not going to touch it anymore! >:D


Javascript changes below:

// Commands supported by the toolbar macro
config.commands = {
closeTiddler: {},
closeOthers: {},
editTiddler: {},
saveTiddler: {hideReadOnly: true},
cancelTiddler: {},
deleteTiddler: {hideReadOnly: true},
permalink: {},
spaceit: {},
references: {},
jump: {}
};

<snip>

ViewTemplate: "<!--{{{-->\n<div class='toolbar' macro='toolbar closeTiddler closeOthers +editTiddler permalink spaceit references jump'></div>\n<div class='title' macro='view title'></div>\n<div class='subtitle'><span macro='view modifier link'></span>, <span macro='view modified date [[DD MMM YYYY]]'></span> (<span macro='message views.wikified.createdPrompt'></span> <span macro='view created date [[DD MMM YYYY]]'></span>)</div>\n<div class='tagging' macro='tagging'></div>\n<div class='tagged' macro='tags'></div>\n<div class='viewer' macro='view text wikified'></div>\n<div class='tagClear'></div>\n<!--}}}-->",

<snip>

merge(config.commands.spaceit,{
text: "spaceit",
tooltip: "send this tiddler to spaces"});

<snip>

config.commands.spaceit.handler = function(event,src,title)
{
var t = encodeURIComponent(title);
var tiddler = store.getTiddler(title);
var b = tiddler.toSpaceIt();
var w = window.open( b , "spaces" );
w.focus();
return false;
}

<snip>

Tiddler.prototype.toSpaceIt = function()
{
var s = [];
s.push("http://spaces.msn.com/blogit.aspx");
s.push("?");
s.push("Title=" + encodeURIComponent(this.title) + "&");
s.push("Description=" + encodeURIComponent(wikifyStatic(this.text,null,this)));
return(s.join(""));
}

16 March 2007

Bad start to a day sucks a lot.

Every morning I have to make a choice of which bus stop to go to, to catch my bus. Let's ID them as bus stop A and bus stop B.
Bus goes to A, then B... then onward to my destination (which is the train station). From my home, I can't see neither A or B. B is closer.

Now the uncertain variables.
  1. Bus may be late
  2. Bus may be full
  3. While B is closer, there's more people at B, and sometimes the bus becomes full at A, and when it goes to B, it can't pick up any more people (this of course leaves a lot of commuters very upset).
  4. To avoid 3, I often choose to walk further to the earlier stop A, allowing me to skip over the bunch of people at stop B.
  5. If I'm slightly late to stop A and just happens to miss the bus, I would have been able to catch the bus easily if I had head for stop B right from my door. Of course, the bus can not be full, otherwise it won't stop anyway.
  6. Sometimes, a bus is full before it even reach stop A.

anyway... I wonder if this makes a good scenario for a simulation program :\
but probably all I really need to do is to work out a list of bus timetables and decide on the time I leave my door the probability of each scenario and work it out from there.

Hey what's going on!

I am cheating, I post three blogs on the same date but just title them differently.

After being addicted to TiddlyWiki and using it as my notepad exclusively, I've essentially started using it as my blog engine as well.  It works really well.

I considered somehow resurrect my blog, but lacking immediate static IP address sucks a bit.  At the end, I figure I should evaluate both Spaces and Blogspot.
For the time being, I'll use Spaces.  Because I'm an avid MSN Messenger user and Spaces ties in quite well with it.  I do have some issues with automatically updating Spaces from TiddlyWiki - if I can't resolve this soon I might have to reevaluate everything.