The Half Bakery is an experimental repository for tcl code which isn't quite polished enough for tcllib, is too big to publish in a wiki page, but still deserves some airing. As the name implies, and common sense should dictate, code from the Half Bakery may not be entirely reliable. You should inspect it before relying upon it. It can be accessed here: [http://wiki.tcl.tk/_repo/] One can create directories for packages, upload files to directories, download individual files and whole directories as tar archives. There is a limit of 1Mb per uploaded file - subject to revision. Please keep the package directories continent - so one directory contains one package. Also, please don't upload crud, and please don't delete stuff without reason. Currently modification is not protected by authorisation, but this is subject to revision. [AMG]: What happens if a bored prankster clicks all the delete buttons? Will everything be irretrievably destroyed? [DKF]: Yes. That's why you shouldn't be putting anything there that is fully baked. [CMcC]: Don't believe the buttons! The stuff's not immediately deleted, just renamed and rendered invisible. Then I, wearily, re-rename it, and give the bored prankster something to get excited about. [AMG]: Heh, '''`rename $file ""`''' . ;^) ---- [Lars H], 2008-08-28: Would it be possible to get a link for viewing files in the browser? Right now my browser just downloads any .tcl file I click on (probably because the server is helpful and specifies the file contents as Tcl source code — Safari seems to have a hard-wired set of [mime] types that shouldn't be viewed on screen, but rather just downloaded, and application/x-tcl seems to be one of them). [CMcC] Yes, but there's a conceptual problem I have yet to solve. Perhaps you can suggest solutions. The problem is that any kind of object can be uploaded, and 'view' means just some things (such as application/x-tcl) as text/plain and others (say, image/jpeg) as they are and some things not at all. I can't think of a perfect solution to this, and that annoys me. I've gone for the simplest thing that isn't provably always wrong, and defaulted to text/plain for viewing. [Lars H]: Works fine, AFAICT. Another question: Must the directory names be equal to the wiki page names linked to for documentation? [CMcC] Yes. The ''documentation'' link is just a synthetic link back to the wiki. As the repository is just a file system, there's no other place to store the link, so we just use the directory name. I think it's nice to have a 1:1 mapping for half-bakery names and wiki pages anyway. [AMG] If the name doesn't directly link to a page, the search engine kicks in. Example: http://wiki.tcl.tk/virtualmouse/ indirectly links to [VirtualMouse Cross Platform Mouse Handling]. I have no complaint. ---- '''JR''', 2009-01-27: The half-bakery seems to be much under-utilized, with most code snippets remaining in individual pages. Should we expect it to stick around? Also, what's the preferred way to use a page name containing spaces as the doc link? [CMcC] As far as I'm concerned it's going to stick around. Don't know how to use a page name containing spaces. Essentially the repo directory name is the page name in wiki. Does that help? ---- [CGM] 2009-2-17: I just get a 404 error when I try to use the link above (same result at home and at work, through different ISPs). [AMG]: Ditto. "File '/' doesn't exist." [CMcC] Argh. Good thing I was idly browsing the wiki and came across this bug report. Thank you. Problem fixed, thanks again for spotting it. ---- [pdt] 2012-07-12: I've tried to upload a small image file to http://wiki.tcl.tk/_repo/wiki_images/, by pressing the Browse button at the bottom of the page and selecting my file to add. The file doesn't get added, and underneath the button I get 'x filename' where filename is the file I tried to add. I also tried to add an image to http://wiki.tcl.tk/_repo/images/ but got the same behavior. Is the half bakery working ok, or am I doing something wrong? ---- !!!!!! %| [Category Repository] | [Category Development] |% !!!!!!