Tuesday, October 31, 2006

Vanity, chapter 1

...empty pride inspired by an overweening conceit of one's personal attainments or decorations; [1913 Webster]

I'm a sucker for pretty desktops and window managers. This weakness has yet to make me succumb to the lure of a full Gnome (or KDE) desktop, however. (Although I did play with the hack kludge known as XGL/compiz for a month or so.) I alternate between Enlightenment and FVWM, however, I do use a fair number of GTK apps. Eventually, I hope to create some gtk apps, (or wxWidgets, or etc... it all boils down to gtk showing up on screen though). Up 'till now I've suffered through with the dreadfull defaults -- in my opinion, of course -- but that just changed with gtk-theme-switch2.

gtk-theme-switch2

It is awesome :) theme loading, previewing, setting, etc.. all without a hint of the gnome infrastructure to screw your keyboard layout, fonts, or power management.

Monday, October 30, 2006

In agreement at last..

Finally, windows did something I agree with:

If only it had caught itself during the OS install instead of just a measly user-space app...

Maybe this has been fixed in Vista... (...could that be the reason it's still not out? I suppose I shouldn't get my hopes up.)

Saturday, October 07, 2006

At the Top of the Stack...

As is the case with many geek-endeavors, the things I'm currently working on have nothing to do with the goal I set out to achieve. At the moment I'm trying to find a way to convert xhtml into muse markup.

Why? Because your average Java programmer Just Doesn't Get It when it comes to building a UI with Swing. Obviously.

Frustration with Swing UIs led to the idea that I should throw together a tutorial on building a GUI with swing while paying attention to separation of concerns re: layout, manipulation, threading and data. Blogging seemed like a prime medium to present such a tutorial, since each post could be tagged with a meaningful tag (eg: swing_tutorial) and I could post in sections.

This, of course, necessitates a blog (which I have, obviously) but which does emphatically not have any input mechanisms worth using for an extended period of time. The wordpress on-line editors are, in a word, pathetic. They may work great if you just want to stream your consciousness out to the world where it can pollute everyone's Google results with poor spelling and meaningless chatter, but the editors available simply can't handle source code.

It is possible to feed the blog pure html, which is (unfortunately) a step up from the rich editor, but which also isn't going to cut it, because it could be so much better.

Seriously, look at Mediawiki, or twiki, or any of the millions of wiki engines out there. They ALL support better input mechanisms than wordpress. So why am I using wordpress at all? Because for everything else -- user support, rss feeds, tags, data-base backed storage, plugins etc... it works great (as far as I know, come back in a week when I've resolved the editor issue to hear what else sucks. That should be enough time for me to find it.).

Solutions


I hope to get around this pain-in-the-ass that is the wordpress editor by using emacs to post content via worpress's xml-rpc support. Therefore I need to find / enable or create support in emacs for the following things:
  • wiki-like markup, with support for code tags that can be interpreted by the geshi plugin on wordpress.

  • a translator that converts wiki-like markup to xhtml, and back

  • xml-rpc support, and the ability to retrieve and submit blog posts.

  • Multiple Major Mode support for the wiki-like text mode, so that the aforementioned code tags use the correct font-lock mode

  • A preview capability, so the blog posts can be converted, fed to a w3-el buffer and viewed, then edited again prior to posting and publishing.

  • Most of these are possible in some fashion or another, but currently I'm stuck on the "translator for xhtml to wiki-like markup". Stay tuned for improvements, and news as I pop things off the stack.

    Someday maybe I'll get around to talking about java.

    Friday, October 06, 2006

    Blogging with emacs + mt.el

    I've wanted to use emacs as a blogging tool for a long time, but I've
    always run into issues. Today I ran across a blog post that describes
    an approach that works:



    http://ektich.wordpress.com/2006/01/30/how-to-blog-from-emacs/



    In addition to the instructions there, I had to pull down:



  • elib (with apt)

  • xml.el (from: http://www.astro.princeton.edu/~rhl/skyserver/xml.el)


  • Ping me with questions -- more details soon to come as I play with
    mt.el, and possibly weblogger.el (which looks nicer, on first
    impressions.)