Archive

Archive for the ‘This Blog’ Category

Acronym Plugin

October 16th, 2005 Comments off

This allows me to say things like SIP, RTP, HTTP or TCP!

Categories: This Blog Tags:

File Attachments

October 16th, 2005 Comments off

Just setup a new plugin for adding file attachments to posts. This is my first test.

Categories: This Blog Tags:

Feedster

April 1st, 2005 No comments
Categories: This Blog Tags:

Technorati

March 30th, 2005 No comments

So I’ve just been examining Technorati, trying to get the gist of it.

Categories: This Blog Tags:

Upgraded to WordPress 1.5

February 18th, 2005 No comments

Great work guys, the best blog application just got better!

Since WordPress 1.5 was released yesterday, I upgraded this morning. As you can see, I’m using the default, Kubrick-based, theme; with just my photo added. I’d like to change the blue to a green, but my understanding of layers in The Gimp isn’t up to it yet.

Categories: This Blog Tags:

Adding Wiki Functionality

August 29th, 2004 1 comment

As I mentioned here, I am attempting to add CamelCase Wiki functionality to this blog.

For example, I could have a AsteriskiChat page!

Update: I see that posts created as Wiki pages are still treated as normal by the front page. It would be nice if they could be ignored, no?

Categories: This Blog Tags:

Upgrades

August 29th, 2004 Comments off

I went on a binge hack session on this blog!

  • Converted from Textile 2 to Markdown and setup GeSHi
  • Discovered per-category feeds and added myself to java.blogs

    To use this, simply ask fo /archives/category/$CATEGORY/$FEED, where $CATEGORY is the category path amd $FEED is the type of feed you want: rss2, atom, etc. For example /archives/category/software/j2ee/rss2.

  • Setup search URLs

    This is cool! Want to monitor what garbage I have to say about “elephants”? Easy as pie! Simply point to /search/elephants like so, it even works with feeds: /search/elephants/atom. (Don’t send me bug reports about the previous search link sending you back to this post!)

  • Setup a custom 404 handler here

I want to setup a Wiki style linking system as well, from here and I guess I should learn to write plugins eventually.

A.

Categories: This Blog Tags:

Converting from Textile 2 to Markdown

August 28th, 2004 Comments off

I just ran a hack to convert all of my markup to Markdown from Textile 2 in order to improve my text and be compatible with GeSHi.

[php] < ?php $query = sprintf(“SELECT ID,post_content FROM %s”, POST_TABLE);

$db = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD); mysql_select_db(DB_NAME, $db);

$rows = mysql_query($query, $db); while($row = mysql_fetch_row($rows)) { $post = $row[1]; $post = preg_replace(‘/^bq./m’, ‘>’, $post); $post = preg_replace(‘/^#/m’, ’1.’, $post); $post = preg_replace(‘/ ([s[{(]|[[:punct:]])? # $pre ” # start (‘.$textile_c.’) # $atts ([^"]+) # $text s? (?:(([^)]+))(?=”))? # $title “: (S+b) # $url (/)? # $slash ([^w/;]*) # $post (?=s|$) /Ux’,’ $3‘, $post); $output[] = array(0 => $row[0], 1 => $post); }

foreach($output as $row) { $update = sprintf(“UPDATE %s SET post_content = ‘%s’ WHERE ID = %u”, POST_TABLE, mysql_real_escape_string($row[1]), $row[0]); $result = mysql_query($update, $db); } } ?> [/php]

(And if anyone knows why the above code is not monospaced, please yell!)

If anything is amiss, please let me know. I doubt I will be fixing all the issues with punctuation after links…

Thanks,

A.

Categories: This Blog Tags: