Tagged: Wordpress

WP-Dokuwiki 0.2


This is a major release, with some new features and bug fixes.

New Features:
* Support for multiple wiki tags.
* Enabled Javascript based toggling of ToC, as in Dokuwiki.
* Added answers.com interwiki link.
* Added acronym for SCM.
* Removed the template directory — this cuts down significantly on the size.
* Support for formatting of ‘urlextern’ links.

Get the tarball [[http://floatingsun.net/code/wp-dokuwiki-0.2.tar.bz2|here]].

Further details on installation, usage and older versions can be found on the [[http://floatingsun.net/blog/code/wp-dokuwiki|WP-Dokuwiki page]].

Sociable links


I’ve added social bookmarking links to each of my posts, in the hopes of getting digged some day :-) I’m using a hacked up version of the [[http://www.maxpower.ca/sociable/2006/01/26/|WP Sociable]] plugin.

WP-Dokuwiki


Ladies and gentlemen, I present to you my first WordPress plugin — [[http://floatingsun.net/blog/code/wp-dokuwiki|WP-Dokuwiki]]!!


I have fixed a couple of important bugs (related to the path names) since the announcement. So make sure you are using the latest tarball!

Ever since I moved to this new blog, I have been writing my posts in the excellent [[http://wiki.splitbrain.org/wiki:syntax|Dokuwiki markup]] enabled by the [[https://granny.homelinux.org/CryForHelp/?page_id=199|Dokuwiki markup plugin]] (that plugin is also currently [[http://dev.wp-plugins.org/browser/dokuwiki-markup/|hosted on wp-plugins.org]]). The plugin was working very well for me, so why did I write my own you ask? Well couple of reasons actually:

* A while back, I discovered a severe bug in the plugin — it leaves a hanging unclosed tag in the generated content. Forget about balanced code, this is not even valid HTML! Trying to be a good user, I quickly [[http://dev.wp-plugins.org/ticket/249|reported the bug]], and even submitted a patch to fix it. That was almost 6 months back. The patch has not been applied, and the plugin remains buggy. Of course I was using a fixed version locally.
* In the meantime, a new version of [[http://wiki.splitbrain.org/wiki:dokuwiki|Dokuwiki]] was released. Apart from syntactical goodness and new features, this release had a very important feature — a //vastly// improved architecture. You have to look at the code to see what I mean, but just looking at the [[http://wiki.splitbrain.org/wiki:parser|through documentation on the parser]] will give you some idea of what I mean. Infact, of all the wiki’s I’ve used, Dokuwiki has been by far the most impressive and robust. I really like the neat architecture of the lexer, parser and the hooks for the plugins. It makes writing plugins for building your own syntax really easy (take a look at [[http://wiki.splitbrain.org/wiki%3Aplugins|some of the available plugins]]). I was craving to use this new code for the markup plugin, instead of the earlier code. But dokuwiki-markup was not being maintained/developed, so I could not wait anymore.
* In constructing this plugin, I have tried to make minimal changes to the original dokuwiki code. In fact, I only had to modify **5 lines in ONE file** in the original dokuwiki code. Of course I removed a lot of files from the distribution that I didn’t need to make the plugin — I basically retained the parser and threw away everything else. And then I just wrote a wrapper around it that would invoked the parser and render the formatted text. The nice thing now is that when a new version of Dokuwiki comes out, I have to make minimal changes to make it work with my plugin.
* dokuwiki-markup requires manual configuration for installation — make symlinks to certain directories, copy over CSS rules by hand etc. WP-Dokuwiki on the other hand provides complete automated install — no extra manual configuration required!

I don’t mean to bash on dokuwiki-markup — its a great plugin, one that introduced me to Dokuwiki in the first place, and for that I’m grateful. However, I do believe WP-Dokuwiki is a much better plugin, and since I’m eating my own dog food here (this site runs on WP-Dokuwiki), you can be sure I’ll keep it updated :-)

So give it a shot. Details on the plugin features, syntax support, and installation information can be found on the [[http://floatingsun.net/blog/code/wp-dokuwiki|WP-Dokuwiki]] page.

Projects

Most of my new code can be found on Github.
  • gaestebin: a secure, private pastebin for Google App Engine
  • uBoggle: the best way to play Boggle online! (taken offline because of.. ahem..)
  • ucsd-thesis: A LaTeX class to typeset thesis for the University of California, San Diego

WordPress related

Python

Random

Old/Abandoned Projects

  • Starfish: a Java based password manager.
  • JUnC: a Java compiler written in Java.

New features


This new design has some pretty nice features that I’d like to point out, in case you haven’t noticed them yet:

* **No Google Ads** — lets say I made close to nothing of the few months that I did have the ads going on here. Besides, the quality of the ads was always in question. And less Javascript it always good, right?
* The home page shows just the most recent post by default. There is a lists of previous posts further down. I read at a bunch of places that very long web pages (that you could keep on scrolling forever) are bad at holding attention. Besides, I expect that increasing number of visitors will land on individual posts through RSS feeds. As a good side affect, the home page should load faster.
* [[http://floatingsun.net/blog/archives/|Archives]] — the archives should be very easy to navigate, provide you use a Good ™ browser. You can navigate by date or by tags. Pretty funky, me thinks
* The home page also lists the most recent comments, asides and del.icio.us links
* There is NO sidebar. I was tired of the conventional design, so this is a shot at something new.
* I’m gradually going to fold in all of my static content (at [[http://floatingsun.net]]) into WordPress. The “About” and “Research” sections have already started to come together, so feel free to take a look.

Of course, this is all possible due to the excellent [[http://www.squible.com/squible/|Squible]] theme, WordPress and great plugins, and generous amounts of hacking :-)

Enjoy!