ServerSettings
- index: _tiddlywiki
Syndicated 2012-03-13 11:46:48 (Updated 2012-03-13 11:48:47) from cdent
ServerSettings
Syndicated 2012-03-13 11:46:48 (Updated 2012-03-13 11:48:47) from cdent
20120313
At some point /_tiddlywiki stopped working, so will need to figure that out before making much more progress on TiddlyWikiNeeds.
Turns out this is the result of the recent changes to fat in TiddlyWeb.
Similar changes also needed (and done) in the TiddlySpaceFollowingPlugin
Syndicated 2012-03-13 11:16:28 (Updated 2012-03-13 18:31:12) from cdent
InlineJavaScriptPlugin
Name | InlineJavascriptPlugin |
Source | http://www.TiddlyTools.com/#InlineJavascriptPlugin |
Documentation | http://www.TiddlyTools.com/#InlineJavascriptPluginInfo |
Version | 1.9.6 |
Author | Eric Shulman |
License | http://www.TiddlyTools.com/#LegalStatements |
CoreVersion | 2.1 |
Type | plugin |
Description | Insert Javascript executable code directly into your tiddler content. |
see InlineJavascriptPluginInfo
2010.12.15 1.9.6 allow (but ignore) type="..." syntax2005.11.08 1.0.0 initial release
please see InlineJavascriptPluginInfo for additional revision details
version.extensions.InlineJavascriptPlugin= {major: 1, minor: 9, revision: 6, date: new Date(2010,12,15)}; config.formatters.push( { name: "inlineJavascript", match: "\\<script", lookahead: "\\<script(?: type=\\\"[^\\\"]*\\\")?(?: src=\\\"([^\\\"]*)\\\")?(?: label=\\\"([^\\\"]*)\\\")?(?: title=\\\"([^\\\"]*)\\\")?(?: key=\\\"([^\\\"]*)\\\")?( show)?\\>((?:.|\\n)*?)\\</script\\>", handler: function(w) { var lookaheadRegExp = new RegExp(this.lookahead,"mg"); lookaheadRegExp.lastIndex = w.matchStart; var lookaheadMatch = lookaheadRegExp.exec(w.source) if(lookaheadMatch && lookaheadMatch.index == w.matchStart) { var src=lookaheadMatch[1]; var label=lookaheadMatch[2]; var tip=lookaheadMatch[3]; var key=lookaheadMatch[4]; var show=lookaheadMatch[5]; var code=lookaheadMatch[6]; if (src) { // external script library var script = document.createElement("script"); script.src = src; document.body.appendChild(script); document.body.removeChild(script); } if (code) { // inline code if (show) // display source in tiddler wikify("{{{\n"+lookaheadMatch[0]+"\n}}}\n",w.output); if (label) { // create 'onclick' command link var link=createTiddlyElement(w.output,"a",null,"tiddlyLinkExisting",wikifyPlainText(label)); var fixup=code.replace(/document.write\s*\(/gi,'place.bufferedHTML+=('); link.code="function _out(place,tiddler){"+fixup+"\n};_out(this,this.tiddler);" link.tiddler=w.tiddler; link.onclick=function(){ this.bufferedHTML=""; try{ var r=eval(this.code); if(this.bufferedHTML.length || (typeof(r)==="string")&&r.length) var s=this.parentNode.insertBefore(document.createElement("span"),this.nextSibling); if(this.bufferedHTML.length) s.innerHTML=this.bufferedHTML; if((typeof(r)==="string")&&r.length) { wikify(r,s,null,this.tiddler); return false; } else return r!==undefined?r:false; } catch(e){alert(e.description||e.toString());return false;} }; link.setAttribute("title",tip||""); var URIcode='javascript:void(eval(decodeURIComponent(%22(function(){try{'; URIcode+=encodeURIComponent(encodeURIComponent(code.replace(/\n/g,' '))); URIcode+='}catch(e){alert(e.description||e.toString())}})()%22)))'; link.setAttribute("href",URIcode); link.style.cursor="pointer"; if (key) link.accessKey=key.substr(0,1); // single character only } else { // run script immediately var fixup=code.replace(/document.write\s*\(/gi,'place.innerHTML+=('); var c="function _out(place,tiddler){"+fixup+"\n};_out(w.output,w.tiddler);"; try { var out=eval(c); } catch(e) { out=e.description?e.description:e.toString(); } if (out && out.length) wikify(out,w.output,w.highlightRegExp,w.tiddler); } } w.nextMatch = lookaheadMatch.index + lookaheadMatch[0].length; } } } )
if (typeof(wikifyPlainText)=="undefined") window.wikifyPlainText=function(text,limit,tiddler) { if(limit > 0) text = text.substr(0,limit); var wikifier = new Wikifier(text,formatter,null,tiddler); return wikifier.wikifyPlain(); }
if (typeof($)=='undefined') { function $(id) { return document.getElementById(id.replace(/^#/,'')); } }
TestForm2
Tiddler Title:Syndicated 2012-03-13 10:42:35 (Updated 2012-03-13 10:47:36) from cdent
20120312
zzzeek : Pycon 2012 : Hand Coded Applications with SQLAlchemy
Here's the slides from my Pycon 2012 talk, "Hand Coded Applications with SQLAlchemy".zzzeek : Pycon 2012 : Hand Coded Applications with SQLAlchemy
20120311
twp.mysql2
to twp.mysql3
transition today, but without complete success. On my main dev machine, I've upgraded to mysql 5.5. I did that to ensure that the new code solves the problems of working with 5.5. However, on 5.5 the old code doesn't work so I can't do a test migration on that machine. I have a few others to choose from.mysql3
branch of the TiddlySpace code should be merged to master.Syndicated 2012-03-11 15:33:46 (Updated 2012-03-14 21:40:57) from cdent
20120309
render
and fat
on JSON tiddler and tiddlers are now mutually independent. This now makes it possible to get JSON that has a render
field but doesn't have a text
field.Syndicated 2012-03-09 17:26:08 (Updated 2012-03-09 18:19:55) from cdent
New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.
Keep up with the latest Advogato features by reading the Advogato status blog.
If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!