Skip to the Main Content

Note:These pages make extensive use of the latest XHTML and CSS Standards. They ought to look great in any standards-compliant modern browser. Unfortunately, they will probably look horrible in older browsers, like Netscape 4.x and IE 4.x. Moreover, many posts use MathML, which is, currently only supported in Mozilla. My best suggestion (and you will thank me when surfing an ever-increasing number of sites on the web which have been crafted to use the new standards) is to upgrade to the latest version of your browser. If that's not possible, consider moving to the Standards-compliant and open-source Mozilla browser.

December 21, 2006

Blogs vs Wikis

There’s an interesting cross-blog conversation about using blogs a research collaboration tool. I thought I’d take a little break from calculating KR groups and make a few comments.

What makes a good collaboration tool? The particular project I’m taking a break from is one that Dan Freed, Greg Moore and I have been slowly plodding along with. We’ve been conversing by conference-call and emailing around TeXed notes. Most of those notes need revising, in light of subsequent conversations … Not at all atypical. Indeed, it more or less describes most of the collaborations I’ve ever had. At the end of the day, I have an email box full of notes and comments and revisions thereof, all jumbled together in a not-very-coherent mess.

What we really need is a Wiki, where we can collect our results, make corrections, raise issues to be dealt with, etc. Blogging software is all very nice, but it really doesn’t lend itself to this “going back and revising” process that characterizes ongoing research. It’s a great tool for communicating with others, but it’s less than ideal for the purpose I’ve described. Heck, blogging systems don’t even have Revision Control.

I’ve been looking into Wikis for a while now. There are lots of different ones out there. But if we start restricting to those which have reasonable facilities for doing Math, the field narrows quickly.

  • MediaWiki uses texvc to edit formulæ. Dave Harvey (whom I met in Minnesota) designed blahtex as a drop-in replacement for texvc. But, MediaWiki isn’t XHTML-safe, so the advantage of blahtex (the ability to output MathML) may be moot.
  • Bob McElrath uses Zwiki. And he maintains LatexWiki, a plugin for ZWiki, which produces PNG equations. Unfortunately, ZWiki is a resource-pig, and for that and other reasons, Bob seems has given up on it.
  • TiddlyWiki, with the jsMath plugin is mind-blowingly cool (once you realize that the whole damned Wiki is running locally … in Javascript … in your browser). There is a server-side implementation, which Bob seems to be maintaining now. With access-control features and version-control, that may graduate TiddlyWiki from “personal notebook” to the “collaboration tool” I’m after. But jsMath (like most client-side tools for rendering math) seems kinda slow. And I wish it supported more of LaTeX.

There are other Wiki possibilities; MoinMoin seems quite good. But everything I’ve mentioned needs work before I’d find it a completely satisfactory solution. Whatever the installation requirements on the server-side, I want entering content to be as easy and LaTeX-like as possible. Ideally, it would use itex2MML server-side, and serve static pages, as much as possible.

Public or Private

A lot of the discussion revolves around whether this online research ought to take place in public or in private. It seems to me rather strange to advocate hard for doing it publicly and then, when you actually go to set it up, do so privately.

Personally, I’m of the opinion that most people really don’t want to know how the sausage is made. Urs Schreiber is marvellously uninhibited when it comes to discussing work-in-progress in his blog. That’s great, if you can do it. One of my New Years resolutions is to try to do more of that kind of “thinking aloud” here on Musings.

Ultimately, it’s not an either/or proposition. There are some things are best kept under wraps; others would benefit from input from others. For instance, even if I had that hypothetical private Wiki set up for this project with Dan and Greg, there would be at least one public page, entitled Examples to Calculate. It would be great to get some feedback on orientifold backgrounds to which to apply our analysis. Right now, for instance, I’d like some examples of Calabi-Yau orientifolds with O7-planes, where the underlying Calabi-Yau has

  • Nontrivial fundamental and/or Brauer group.
  • (H 2 (X) torH 3 (X) tor) remains nontrivial after tensoring with [1 /2 ].
  • If the example is physically-interesting, as a Type-IIB flux vacuum, so much the better.

Suggestions?

Update: Wiki Wishlist

Just for clarity, what I think I’m looking for in a Wiki (list to be updated, as warranted):

  1. Serves static (X)HTML pages.
  2. When the user clicks “edit”, uses AJAX to swap the (X)HTML+MathML content with the wiki+LaTeX text for editing.
  3. Is sufficiently plugable, so that I could wire in itex2MML on the server-side.
  4. Either is good enough to emit well-formed XHTML (sounds unlikely), or could use Sam Ruby’s Javascript to allow MathML in HTML4.
  5. I’m willing to use Apache’s native access control capabilities, so built-in ACL’s are a plus, but not a requirement.
Posted by distler at December 21, 2006 8:52 AM

TrackBack URL for this Entry:   http://golem.ph.utexas.edu/cgi-bin/MT-3.0/dxy-tb.fcgi/1083

24 Comments & 0 Trackbacks

Re: Blogs vs Wikis

Jacques:- Your remark about my advocating hard for one model and then doing another, is a little sad. Are you against the idea of people learning something from their discussions and modifying their ideas? I’m certainly not against it. And I’ll venture that you should not be either. There’s no shame in changing one’s mind, and the reason I raised the idea in the first place (on the first post) was to try to get people’s opinion. That’s why I blog, in fact… to hear others’ opinions on things, to help me learn. I learned that the private aspect that people were concerned about having is *indeed* important when setting something up that involves people who are just learning to find their own voices in the field. They don’t want to do that in public, and I had not appreciated that as much in my original thoughts. So I set up a private system for my students and myself to work on projects within our group. This is in fact different from what the other model was proposed to achieve and so there simply is no contradiction. I still think that the public and (globally participated in by many reserch groups) model that I advocated has a place too. See my recent comment to Moshe in the recent thread of Urs) But that was not what I was trying to set up in the instance I talked about in the more recent post, and privacy was much more paramount in this case, and I focused on that, mindful of things that people -including yourself- had said in the comments of that first post.

There’s nothing wrong with learning from other’s opinions, experience and ideas, Jacques. That’s all I did.

Cheers,

-cvj

Posted by: cvj on December 21, 2006 10:54 AM | Permalink | Reply to this

Public vs Private

I probably misconstrued your comment, then. (If so, I apologize.) I had understood that you had decided to make your research blog private because of the disapprobation you felt you had encountered, in the comments to your original post, for the idea of a public research blog.

It seemed to me that, just because people were telling you that a public research blog wasn’t right for them (or for many of their colleagues) should have little bearing on whether it was right for you (which, at the time, you clearly seemed to indicate it was).

Diffr’nt stroke for diffr’nt folks. Urs, after all, has been running an outrageously successful public research blog for years, now. And nobody has voiced the opinion that he is making a mistake in doing so.

I am, however, entirely sympathetic if you say that a public research blog wasn’t the thing that would meet your needs (and those of your students) at this particular juncture.

I see no contradiction there, as should be clear from what I have written in the body of my post.

Posted by: Jacques Distler on December 21, 2006 11:20 AM | Permalink | PGP Sig | Reply to this

Re: Public vs Private

Hi,

The idea in my original post was primarily about a research blog (or other device.. maybe a wiki is better.. I don’t know) that many research groups around the world could take part in as an ongoing conversation or series of conversations… a sort of wildlife reserve of ideas, if you like. A resource for everybody. The issue of just how public it should be, whether it should be by membership only, etc, etc, is a secondary discussion, in fact. It was part of a discussion I was trying to get going about using the blog format as a research tool, to sit alongside, say, the arXiv. The discussion got hung up on several points that I would have preferred it not to, but that’s life. I did learn a lot about people’s concerns for privacy and also about priority issues - ones that I had not anticipated would be quite so strong concerns. I learned from that. Given the mixed feelings people had about the whole thing, it did not seem to be the right time to go ahead and try to set something up. I backed off on that more lofty goal, but there are other goals to achieve.

This more recent post was about how I implemented something that works for me in the context of having discussions within my group. Very different goals to be achieved there. And no contradiction with the first goal/idea.


So good, we agree.

As just for going ahead and implementing something for the more global idea that does not take into account the wants, needs and strong concerns of the very people I’d like to see participating in it… that would be an odd way to proceed, wouldn’t it?

heers,

-cvj

Posted by: cvj on December 21, 2006 11:48 AM | Permalink | Reply to this

Re: Public vs Private

As just for going ahead and implementing something for the more global idea that does not take into account the wants, needs and strong concerns of the very people I’d like to see participating in it… that would be an odd way to proceed, wouldn’t it?

Actually, no it wouldn’t.

I’m a strong believer in the “Release early, release often.” philosophy. Build something you think people might be interested in, put it online, see what the reaction is, and then adapt to make it better.

That’s the way the arXivs were created and, indeed the Web itself. It’s a very successful model. Works much better than sitting around discussing what the ideal way to do “X” is (whatever “X” is) and speculating about how popular an implementation of “X” would be.

Posted by: Jacques Distler on December 21, 2006 3:05 PM | Permalink | PGP Sig | Reply to this

Re: Public vs Private

Up to a point, you are correct. But not taking into account opinion at all is also not a good way to proceed. A little bit of both approaches. I was also around when the arXiv started. It did not just spring up out of nothing. Opinions were sought.

-cvj

Posted by: cvj on December 21, 2006 3:32 PM | Permalink | Reply to this

Re: Public vs Private

Furthermore, I would say that in the last two days of discussion about this issue that has happened on three blogs, the “sitting around discussing” you refer to has probably saved a huge amount of time and effort, since whoever builds the prototype system will not have to waste time figuring out some of the best and most useful features… A lot of great suggestions are being ironed out with a little discussion first.

Best,

-cvj

Posted by: cvj on December 21, 2006 3:41 PM | Permalink | Reply to this

The arXivs

Opinions were sought.

As an Assistant Professor at Princeton, I must have been out of the loop.

All I remember was some people at Aspen complaining that their email inboxes were over-quota (this was in the days when there was still such a thing as disk quotas) because they were subscribed to Joanne Cohn’s email list. Ginsparg then went home and wrote some shellscripts. I don’t recall him telling anyone beforehand what he had in mind (let alone asking them how they thought it should work).

But, as I said, I may have been out of the loop.

Posted by: Jacques Distler on December 21, 2006 4:22 PM | Permalink | PGP Sig | Reply to this

Re: Blogs vs Wikis

I have made several MediaWiki installs over the past few months, and I’ve recently started playing around with GroupWiki, a MediaWiki fork which seems to allow finer control over who can edit which page. MediaWiki appears to be sturdy software, but as soon as I try to add any but the most trivial features, I stumble into a thicket of PHP which resembles nothing so much as the mutant offspring of MS-DOS batch files.

One thing I have sorely missed while doing math markup in Wikipedia articles has been the ability to use \newcommand. Perhaps I rely upon macros too much, but they can be an awfully nice way to enforce consistency and make the markup human-readable. (Once I had a healthy set of definitions built up, I discovered I could type my notes in LaTeX as fast as my professors could lecture, which was convenient.)

In my experience, wikis have been a good way to generate material when the goal is a specific document: a set of class notes, a journal article, etc. They don’t have very convenient features for handling discussions. To have a semblance of threading on a Wikipedia talk page, for example, you have to indent each paragraph manually with lots of colons (which the parser turns into nested <dd> and <dl> tags, in a manner which breaks if you also include <div> tags, as I discovered yesterday afternoon). Recently, I started hacking on a MediaWiki extension which lets you drop a tag onto a wiki page and conduct a blog-style discussion within the wiki. If the people around the office find it useful, it might turn out to be a good tool.

Posted by: Blake Stacey on December 21, 2006 11:39 AM | Permalink | Reply to this

Re: Blogs vs Wikis

It seems that with MediaWiki you are always forced to fork to get math working fine, and then when it comes to updates, to remix and refork. At least that was my experience one year ago.

Actually, I wonder I can claim the first PhysRevD citation into a wiki: Phys. Rev. D 73, 013009 (2006) cites http://www.physcomments.org/ wiki/index.php?title=Bakery:HdV, one of my un-arxivable recopilations of half-baked ideas. Problem become when the provider upgraded the PHP support forcing me to upgrade the mediawiki to a new version which was incompatible with my math patch. Add the database-oriented way of storing the information, and voila, you inherit a missing link.

Posted by: A. Rivero on December 21, 2006 1:20 PM | Permalink | Reply to this

Re: Blogs vs Wikis

…That’s why I maintain my own server. If it’s broken, you can be sure it’s my fault. ;)

Posted by: Bob McElrath on December 23, 2006 9:32 PM | Permalink | Reply to this

Re: Blogs vs Wikis

It might be worth pointing on the String Vacuum Wiki. I’m not sure what its status is, but it’s definitely an attempt to do this sort of thing.

Posted by: Aaron Bergman on December 21, 2006 11:54 AM | Permalink | Reply to this

Re: Blogs vs Wikis

UniWakka does support Latex-like Math.

Posted by: Zack on December 21, 2006 12:10 PM | Permalink | PGP Sig | Reply to this

Re: Blogs vs Wikis

It might also be worth pointing out the “Physics Tools for the LHC” Wiki, which if I remember correctly was created by Matthew Schwartz. This followed discussions at various workshops at which there was broad agreement that such a Wiki would be useful, but it has seen little use so far. The hope, as I understand it, was that a knowledge base of how to use and interface various Monte Carlo tools could be accumulated in one place. I expect such a site would have to develop a critical mass of existing content before many people start to use it.

In a small MC software project with just a few participants, we have recently found PBWiki to be a useful (because free and easy) way to set up a collaborative online space. I wouldn’t want to use it for anything requiring TeXed equations, though.

Posted by: Matt Reece on December 21, 2006 1:12 PM | Permalink | Reply to this

TW + jsM

physicswiki

is a working example of TiddlyWiki used with jsMath, with many modifications.

“This is my Wiki. There are many like it, but this one is mine…”

Posted by: garrett on December 21, 2006 3:03 PM | Permalink | Reply to this

Re: TW + jsM

I apparently can’t enter a hyperlink properly.

physicswiki

Posted by: garrett on December 21, 2006 3:08 PM | Permalink | Reply to this

Re: Blogs vs Wikis

I’m flattered you think TiddlyWiki+jsMath is “mind-blowingly cool”, though honestly my plugin is tiny, Jeremy Ruston is to credit for TiddlyWiki, and Davide Cervone for jsMath. I have a rather extensive (private) site now with my notes on it, and tons of plugins. With the plugins you can add a calendar, to-do list, FAQ, math, alternate wiki rendering, XHTML, arXiv references, RSS Feed, XML Reader (in fact I read the arXiv in my TiddlyWiki), trackbacks; blog-like plugins like CommentPlugin and RecentPlugin together make a decent blog-like site. Personally I thought the CommentPlugin turned every tiddlywiki into a bathroom wall, or “sandbox” in wiki lingo, and it was just a mess. (I generally hate all forum-like sites because I hate reloading the page 800 times to have a conversation)

Obviously I’ve been thinking about these issues for a few years, so I’ll share some. (Hey, maybe I should start a blog too…) While you’ve been figuring out how to get TeX on your blog, I’ve been doing the same for wikis. Though, I’ve probably been less visible to the physics community than you. ;)

I started my original ZWiki Notes page for exactly the reasons you cite, and a few others. The original site had an email interface, so that email discussions among myself and collaborators, which typically contain some tex, would be rendered. This worked fine in principle unless you made a mistake in your tex, and then you had to go on the web and fix it, or the page containing the email would break. I did later adapt itex to run in ZWiki too. Though I stopped using ZWiki, I still cringe a bit every time I write tex in an email (or some ascii-art math), and I still want a tool like this. FYI, my LatexWiki plugin for ZWiki has continued in the Axiom Project (a symbolic algebra software that all physicists should take a serious look at!)

This really hits at the heart of the problem though. A Wiki is designed to be simple. Its text markup rules are supposed to be so simple that you’ll never screw them up. And, it’s supposed to be tolerant of your mistakes, and render the page in some sensible way anyway. Obviously, this limits the complexity of wiki input. TeX math is simply, not simple. Not everyone has adhered to this (perhaps for the better), and everything from tables to math to music notation have been added to wikis. Wikipedia certainly supports the largest set of weird kinds of input that are neither simple nor error-tolerant. But if you’re going for complex input, why bother with a wiki in the first place? Why not write it directly in TeX/XHTML/RTF? A strong argument can be made however for adding tex math to a wiki, as it is common practice to include simple equations in simple (email) conversations.

HTML, TeX, and various other document types are based around a write/compile/check cycle. Once any input format gets too complex, you’ve just got to check everything you write. (Including, this blog entry, grr…) In such circumstances, you want to keep the write/compile/check cycle as short as possible.

So, TeX on a blog or wiki is halfway between the wiki idea and a full blown tex document. You need a write/compile/check cycle but you want it to be fast. The TiddlyWiki+jsMath accomplishes most of this, but I lost the original idea of collaborating in email. Maybe I should get over my love affair with mutt+vim and move to the web era for communication/collaboration…or maybe someone will be adventurous enough to add some kind of email gateway to ZiddlyWiki.

It’s clear that TiddlyWiki represents a fundamentally different way of thinking about documents. Jeremy Ruston and Gregg Wolfe recently visited northern CA and I had some very interesting conversations with them on this topic. There is, for instance, a book on web campaigning available. You can zip up your tiddlywiki after taking some notes, and email it to someone (thus keeping it private). People generally keep one on a USB stick. Many people take notes in class using it. People embed gmail using an <iframe> and check their email inside a tiddlywiki.

Regarding your comments about itex, one should keep a few things in mind. LaTeX is a macro system. Most modern markups and computer languages are described by a GLR grammar (because it is very predictable). itex uses a grammar (flex/bison). It is generally not possible to translate a macro expansion system into a grammar. The fundamental reason is that the latex macro expansion is Turing complete. You can, in general, use it to perform computations. Most other “simple” languages such as HTML, fortran, or C are not Turing complete – though C++ is Turing complete via its template system and the C Preprocessor is a macro expansion system and is Turing complete. Therefore, itex can never emulate all of latex. You may have programmed in more macros that don’t require Turing completeness than are present in jsMath, but itex will never be capable of truly parsing latex. (try feeding it the revtex file, for example)

jsMath (used by my TiddlyWiki plugin) is a literal and faithful translation of the TeX parsing rules as laid out in the TeXbook into javascript. (quite a feat, if you ask me!) Thus, in my mind, it is the best it could possibly be, without actually being Turing complete. (though it might actually be – I’m not sure) I think it would be better to simply define your favorite macros such as AMS Symbols. So, arguing that we need more of latex in tex converter X (i.e. itex, tex4ht, jsMath, etc) is arguing to turn X into a turing complete macro language. Here lies madness. Instead, I think it would be better to define some subset of commonly used TeX in a way that can be recognized by a parser. (In particular, the subset corresponding to MathML is an obvious choice). This is exactly what itex is. Don’t confuse your favorite set of macros with TeX itself. Everyone has different favorites.

I do agree with you on jsMath’s speed. The fundamental reason is that it must “measure” the size of glyphs by making a hidden <div>, drawing them, and then asking for the size of the <div> using javscript. Not exactly efficient. I have started a LaTeX MathML plugin that converts tex directly to MathML, based on ASCIIMathML. (This isn’t quite finished or fully working, feel free to grab it and try it though – if you enhance it, please shoot me an email) As soon as this is working I’m going to dump jsMath because I do believe the future is MathML. MathML rendering is still rather horrid in appearance though. It’s just not as pretty or finely-tuned as TeX. But, the more of us use it, the more we’ll complain about and fix these kinds of things in browsers.

Happy Holidays to all!

Posted by: Bob McElrath on December 23, 2006 8:50 PM | Permalink | Reply to this

Re: Blogs vs Wikis

“Most other “simple” languages such as HTML, fortran, or C are not Turing complete – though C++ is Turing complete via its template system and the C Preprocessor is a macro expansion system and is Turing complete.”

I realize I’m ignorant here, but this statement sounds odd. Isn’t C Turing complete? I thought the amusing thing about the C++ template system is that templates alone are Turing complete – they can be made to do calculations at compile time.

My understanding had been that you don’t need much at all for Turing completeness. In fact, I thought I recalled some discussion of how features were specifically not added to some markup language out of a puzzling desire to not have a Turing-complete language, though I’ve forgotten the details.

But, I know essentially nothing about computer science, so perhaps I should seek enlightenment. Wikipedia appears to back up my preconceptions….

Posted by: Computer Science Ignoramus on December 23, 2006 11:07 PM | Permalink | Reply to this

One Tiddly to Rule them all

I’m flattered you think TiddlyWiki+jsMath is “mind-blowingly cool”, though… [long list of plugins which do all kinds of amazing things]… People embed gmail using an and check their email inside a tiddlywiki.

Clearly, TiddlyWiki is just one step away from World Domination. All you need is a plugin to implement Emacs and the takeover will be complete!

More seriously, TiddlyWiki seems like the perfect personal document system.

It’s clear that TiddlyWiki represents a fundamentally different way of thinking about documents. … You can zip up your tiddlywiki after taking some notes, and email it to someone (thus keeping it private). People generally keep one on a USB stick.

Yes, one can zip up a bunch of Tiddlers and mail them to a friend, but what I am trying to get away from is the business of emailing documents (and revisions thereof) back and forth. What I want is a collective workspace.

Maybe one can achieve that by storing a TiddlyWiki on a WebDAV share. I haven’t really thought this through very well. One still needs locking (and, hopefully, some crude versioning), otherwise you run into trouble with two people editing the same file at the same time.

jsMath (used by my TiddlyWiki plugin) is a literal and faithful translation of the TeX parsing rules as laid out in the TeXbook into javascript. (quite a feat, if you ask me!)

Davide Cervone, whom I also met in Minneapolis , has mad skilz. You should have seen the WYSIWYG math editor, based on jsMath, that he demo’d there (“a couple of days work,” he said). In many ways, I like jsMath much better than itex2MML. But, everyone agrees, it’s slow. MathML is the way of the future.

Of course, I also like the idea of moving away from XML’s Draconian error-handling.

As soon as this is working I’m going to dump jsMath because I do believe the future is MathML. MathML rendering is still rather horrid in appearance though. It’s just not as pretty or finely-tuned as TeX. But, the more of us use it, the more we’ll complain about and fix these kinds of things in browsers.

I’ve been doing my share of bug-reporting, as of late. I urge you to do the same.

Posted by: Jacques Distler on December 23, 2006 11:59 PM | Permalink | PGP Sig | Reply to this

Re: One Tiddly to Rule them all

If you want collective editing, there are two options currently, ZiddlyWiki (which I need to get around to releasing a new version of…) and ccTiddly. We have had several discussions about about unifying some of this, and using WebDAV. In princple all you need for a server is WebDAV, and to a large extent, ZiddlyWiki already does it. In that, your tiddlers are all in separate files. Zope is WebDAV capable. In principle all one needs is WebDAV reads/write and an empty directory for tiddlers, and you have a server-side. Many of us want this, but no one has had the time to implement it yet. Search the TiddlyWiki or TiddlyWikiDev google groups for more discussion on this. If you want to help out, the ZW code is in Subversion

Currently ZiddlyWiki does locking using it’s own method, but WebDAV does have its own locks and ZiddlyWiki respects them (so it avoids conflicts if someone is editing with WebDAV and someone else edits inside their TiddlyWiki). Versioning is done with the Zope revision system however, and would need to be rewritten to work on WebDAV. I want this on WebDAV because Zope is a pain in the ass to set up. If I hadn’t already been running Zope, I doubt I would have jumped into ZiddlyWiki. (However note that there are free zope servers out there)

Anyway, you want a server-side for collaboritive editing. I haven’t tried it for collaborating yet, but maybe I will. (My collaborator Ben Lillie discovered TiddlyWiki+jsMath because of your blog and was very excited about it) Note that you can keep things private to your collaborators by enforcing logins and adding the private tag to tiddlers, thereby achieving some mixture of public and private content. But, how would you maintain the flow of a conversation? TiddlyWiki is very much like the original hypertext. It’s a dizzying array of interconnected nodes. Perhaps I’ll look again at CommentPlugin+RecentPlugin to see if this will work.

Finally, I’ve had a couple conversations with Davide about putting a MathML output module into jsMath. He’s quite receptive, and it should be quite fast. Now we just need to find someone with the time to write it.

Posted by: Bob McElrath on December 24, 2006 10:31 AM | Permalink | Reply to this

Access Control

Currently ZiddlyWiki does locking using it’s own method, but WebDAV does have its own locks and ZiddlyWiki respects them (so it avoids conflicts if someone is editing with WebDAV and someone else edits inside their TiddlyWiki)

I really should look into ZiddlyWiki (not that I really have any desire to set up Zope, just for this purpose). But I find this confusing.

How does ZiddlyWiki know whether someone is editing a Tiddler (since that editing happens locally on the user’s machine)?

Note that you can keep things private to your collaborators by enforcing logins and adding the private tag to tiddlers…

Is that some access-control enforced by ZiddlyWiki? I don’t see how a “private” tag can (on the client side) prevent me from viewing-source on a Tiddler.

Anyway, as I explain in my followup entry, I think Instiki does the whole access-control thing wrong (or, at least, in too simple-minded a fashion for my tastes).

Posted by: Jacques Distler on December 24, 2006 6:40 PM | Permalink | PGP Sig | Reply to this

Re: Access Control

How does ZiddlyWiki know whether someone is editing a Tiddler (since that editing happens locally on the user’s machine)?

Because when you edit a tiddler, it does locking on the server to prevent conflicts. It’s not a WebDAV lock, but it respects those. In case you’re using Zope’s External Editor – which just uses WebDAV and feeds it to your favorite editor.

Is that some access-control enforced by ZiddlyWiki? I don’t see how a “private” tag can (on the client side) prevent me from viewing-source on a Tiddler.

Tiddlers tagged with private or onlyAdmin are not delivered to anonymous clients when they visit your page. Essentially, ZiddlyWiki assembles the TiddlyWiki when you request it, and can excludes some tiddlers if the access permissions are not sufficient. You can’t view-source on tiddlers you don’t have. ;) Also, if you log in, it will now download anything to which you didn’t previously have access. (no page reload!)

The Zope security capabilities are massive, massive overkill for the needs of ZiddlyWiki. So if the ZiddlyWiki permissions are not enough for you, it is not to hard to add more (just a couple lines of python, really)

Posted by: Bob McElrath on December 25, 2006 1:01 AM | Permalink | Reply to this

Re: Access Control

Because when you edit a tiddler, it does locking on the server to prevent conflicts.

That does not appear to be a feature of standard TiddlyWiki Tiddlers. Clicking on the “edit” button changes the template with which the Tiddler is displayed, but does not induce any new communications with the server.

  • Do ZiddlyWiki Tiddlers have some modified Javascript code which sends and HTTP request back to the server when you click the “edit” button?
  • What happens when you host such a modified Tiddler on a non-ZiddlyWiki host, or move a standard Tiddler to ZiddlyWiki?
Posted by: Jacques Distler on December 25, 2006 10:08 AM | Permalink | PGP Sig | Reply to this

Re: Access Control

Remember the standard TiddlyWiki does no AJAX and makes no HTTP requests. It is solely a client-side application.

Do ZiddlyWiki Tiddlers have some modified Javascript code which sends an HTTP request back to the server when you click the “edit” button?

Yes. The ZiddlyWikiPlugin (note: unreleased code) hijacks the load/save callbacks (among others) to do this using AJAX.

What happens when you host such a modified Tiddler on a non-ZiddlyWiki host, or move a standard Tiddler to ZiddlyWiki?

The operations you are describing are essentially cut-and-paste copies of the original content. Therefore, no synchronization can be maintained with the original source.

I had some very interesting discussions with Jeremy Ruston about tiddler fingerprints – being able to keep track of the “geneaology” of a piece of content, if you will. But at present this is just idle discussion and doesn’t exist.

Posted by: Bob McElrath on December 28, 2006 1:20 PM | Permalink | Reply to this

Re: Blogs vs Wikis

Why that “VS” ?
It looks like that forum VS blog, or forum VS wiki (dirty wiki with comments no more pure wiki! wanna comments? install forum !).

There is no need to separate, rather there is need to converge.

Say, Trac - wiki + issue tracker.
Say, NPJ: wiki + blog +issue tracker plugin

Posted by: Arioch on December 31, 2006 6:31 AM | Permalink | Reply to this

Post a New Comment