22 March 2007

Commit early, Commit often.

We're nearly the end of one build phase. And a lot of people are committing their changes into version control. For each person that commits before you, you have to merge their changes into yours first before you can commit yours. Hence, the wisdom in the header.

Yesterday was one excruciating day of merging more than 40 files into my working branch. The auto-merge messed up a few things too that I wasn't aware of, further compounding the problem of "it builds, it just doesn't want to run".

I was glad and in good mood by the end of the day though. Possibly because I nailed the problem at the end.

21 March 2007

Strange happenings.
SVN died pretty bad for me last night. The issue? I wasn't using the latest version 1.4.3 (I was still on 1.4.2). Honestly, I was not expecting software as mission critical as version control to just "die" like that.
I mean, people joke a lot about Microsoft and their "bugs", I guess Open Source just has its own share of bugs as well as anybody.

Surely my car is towed away again.

I parked it on the main street outside my home.
I didn't take it to work this morning.
I'm sure I have to go look for it again tonight, must be towed away to somewhere nasty.

It's raining and there was a bit of hail just now.

I'm really not looking forward to it. :(
Not looking forward to going home either because of this.

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(""));
}