Tao of the MachineProgramming, Python, my projects, card games, books, music, Zoids, bettas, manga, cool stuff, and whatever comes to mind. |
Front page Last 10 archives 2004-02-14 2004-02-21 2004-02-28 2004-03-06 2004-03-13 2004-03-20 2004-03-27 2004-04-03 2004-04-10 2004-06-05 Category archives bettas books CCGs Charm esoterica Firedrop games general ideas internet Kaa linkstuffs Lisp manga music Mygale Nederland nostalgia programming Python SGI switch Wax Zoids :: Search All posts ...by category ...by date ![]() :: About me :: Oasis Digital :: Resume :: GeoURL :: RSS :: Atom ![]() ![]() |
Another KaacolyteWai wai! I just (re?)discovered this weblog, that is powered by Kaa. The latest version in fact. (So it actually works! ;-) Kaa 0.9 available for downloadSee the download section. What’s new since 0.8?
Enjoy. Please send bug reports, comments, etc, to Test, testThis is supposed to be a Textile entry. Let’s see if it works. Textile has three important benefits over regular HTML formatting: In other words, you can now use Textile in Kaa. It’s really easy too: if an entry’s first line consists of a single #, then that entry is considered to be in Textile format, and will be treated accordingly. Kudos to Mark and Dean (visit this last link to see how it works). Expect the official 0.9 release Real Soon Now. Firedrop fixes Kaa problems, part 1In this case, embedded code has become more sane. I still won't resort to pseudo-Python like some other systems do, but you can now write
and it will work. Note that you still can't write things like
because it's inconsistent indentation that cannot be fixed. When in doubt, start on a new line. <0.1 wink>
All this will be in Firedrop, but there's nothing really that stops me from sticking the improved module (and test suite) back into Kaa, I guess. Maybe for 0.9... A quirk in Kaa's embedded PythonKaa currently has a quirk, in that it wants, and assumes, the first line to have an indentation of 0. You can write this:
but you cannot write this:
Why does the first example work and the second doesn't? Because the first line is assumed to have indentation 0. Kaa sees the second example as:
In other words, inconsistent indentation. There are no problems if you just use an indentation of 0 to begin with, like
This needs to be fixed before 0.9.
Spijs op je lijfFor work, I'm currently looking at something like ASP for Python. Python Server Pages, so to speak. One good candidate seems to be Spyce.
Including Kaa, I've seen three programs that use embedded code in HTML (the other two are Vellum and Spyce), and they all use a different syntax. Kaa uses <% %> and <# #>. Vellum uses <% %> as well, but allows the "=" syntax (IIRC) and weaving HTML and Python, using the word "end" as a dedent replacement. Spyce uses [[ ]] and allows "=" and weaving as well, and uses { and }. To illustrate, here's an example from the Spyce site:
For fun and profit, here's how you would write the example above in Kaa:
Hello world!
0 1 2 3 4 5 6 7 8 9 (Note: Of course, I'm only comparing the ways of embedding Python here, not the capabilities of both systems... Spyce is a "Python Server Pages" system, Kaa is a client-based weblogging tool, two entirely different beasts.) Kaa 0.8.7A new development version of Kaa can be downloaded here. (As always with a development version: be careful, backup your weblog before using, etc.)What's new?
Kaa is Zoidware. (If you like it, and want to show your appreciation, you can get me that nice Spiderzoid on Ebay. ;-) Or a Tarantulon... Kaa stuffKaa has reached 0.8.6. This version isn't available for download, because I need to do some more testing... but it is *supposed* to fix the problems with categories. (Currently, if you rename or delete a category, the changes are not propagated to the posts that use that category. In other words, if I delete or rename category 'foo', then posts with that category will happily keep on showing it like nothing changed. This is fixed now, in the new version.)
Just for the record, here's a trick to make something appear on your front page only (and not on archive pages):
Update (4:41 PM): Kaa now generates another RSS file, containing the whole text of a post, including HTML. I wonder what to do with it; according to the RSS Validator, it's not valid. But some news aggregators do read it. Maybe I should upgrade (?) to RSS 2.0? ExceptionsUntil now, Kaa always wrote error messages and exception traceback to the console window. Not everybody can read those, though, so it was time for a change. Kaa 0.8.4 will have two new dialogs, one that displays error messages (could be used for anything really, warnings, even an "About..." message), and one that displays an exception.
sys.excepthook doesn't work with Tkinter. It doesn't catch the exceptions that occur in widget methods (not sure about exceptions that occur anywhere else). After some poking around, I found a way to set Tkinter's "except hook". Not sure how reliable it is, but here goes:
Get the development version 0.8.4 here. No guarantees, make a backup of your database before you install it, etc. Got root?Kaa 0.8.2 (the current version, not available to the public yet) also includes a new setting: "root", which is basically the URL where your weblog can be found once uploaded. For example, in my case it's http://home.earthlink.net/~wurmy/weblog/. This link wasn't necessary before, but is now used for RSS. After all, people will need to know where to find your weblog, and permalinks with an absolute URL rather than a relative one are more useful too. ;-)Should Kaa write an alternate RSS file for *all* posts? I wonder. Feel free to leave comments. ^_^ (Not that I expect anybody to, not unless I link to one of Mark Pilgrim's posts... <0.5 wink>) Yesterday's roundupBesides hacking Kaa, I did some more stuff yesterday.
0.9 coming up soonSome good late-night hacking today. I figured it would be nice if Kaa (finally, some would say) generated an RSS file, so I added that. It may still contain bugs, or not validate, etc; I will take care of that later. Important is that most of the functionality is there, and will be included in Kaa 0.9, which should not be far away now.In the navigation bar on the right, there should be a new entry "RSS" now. Whether the RSS file shows up correctly is a different issue, but it is there. :-) More later. I need some sleep... 1:56 AM. The RSS Kaa generates validates! Yay! :-) Another Kaa userThis is my first open source program that people actually use... <0.3 wink> I really need to fix some bugs and make Kaa more user-friendly. Not to mention, write some more docs...Almost finishedMy article on Kaa is almost done. I need to check it for speling errors, and verify that it's actually informative. I find it not easy to write about my own program; it feels like I'm merely stating a list of facts that are well-known.In the meantime, David LeBlanc has sent me some emails with ideas and bugfixes, which are quite interesting. Some of this will find its way into Kaa 0.9. More on this later. By the way...Does anybody know how I can make the editor window in Kaa stretch *vertically*? I tweaked the Tkinter code a bit here and there, and now it stretches horizontally when you resize the window, but not vertically yet.Picking up steamSeems more people are taking an interest in Kaa. Today an ex-colleague of mine mailed me and said he downloaded it. I also got a request to write an article about it, for PyZine.Knowing this, I should probably leave Kaa as it is, a weblogging tool, and save more ambitious goals for future projects. And yes, there will be a 0.9. Any ideas what I should put in there? Drop me a mail or leave a comment... I forgot the Kaa logo...![]() (courtesy of Christian Tismer) 0.8 is hereAn announcement in the newsgroup will follow soon. Download 0.8 here.For those who have been following the weblog: there isn't really anything new since 0.7.7, but I souped up the documentation a little, etc. See the updated intro. Maybe soon I will be able to manage my whole site with Kaa. :-) Content management made easy?Here's an idea. What if we had:
#1 would not be difficult, either. We already use categories and the visible key in the entry.misc dictionary. Adding a tag, or several, would be trivial. #2 isn't there yet. We would need a multi-column widget, or a table widget, or something. Sorting isn't there yet either, but that isn't so difficult. So what can we do with the above? Easy content management. Create a new "blog" (IOW, a collection of entries), add entries, and "tag" them to associate them with a certain page. Some entries will make up my FAQ. Some may make up my main page. Some are documentation. Putting an order in is trivial by adding "sub-tags", like a number. (For example, if there are 20 entries with the "faq" tag, then we could figure out the order of the FAQ questions by using the "order" key which contains a number.) The tricky part is to get the "tag management" right. If that is easy to do, then building a site will be easy to do. Same for generating the custom pages. There should be some default, like, associate a page name with a tag name, and generate that page in a custom way. For those who want more, there's always pagegen.py. Where to now?Kaa 0.8 is almost ready (I expect to publish it this weekend). It has reached the point where it more or less does what I want. Sure, I can think of oodles of new features, small and large, but that doesn't take away the fact that I am reasonably content with it the way it is. It generates my blog, I have the few editing functions that I need, I can generate a custom page and archives... that's about it.Or is it? What direction should I take? Here are some thoughts.
Q: Should Kaa be aimed at as many people as possible, or should it be more of a "niche" weblog, aimed at (Python) programmers? Q: Should Kaa evolve into a more general content management tool?
Q: Should Kaa grow lots of features, or remain simple? If you have thoughts on this, feel free to leave a comment or send me a mail. Anyway, I added some small thingies, like walking through the input boxes with the Tab key, and the use of a custom port when FTP'ing. (All this inspired by a mail by Alan Runyan.) Expect 0.8 soon, unless life interferes. -- Generated by Firedrop2. |