This allows me to say things like SIP, RTP, HTTP or TCP!
Category Archives: This Blog
File Attachments
Just setup a new plugin for adding file attachments to posts. This is my first test.
Feedster
Technorati
So I’ve just been examining Technorati, trying to get the gist of it.
Upgraded to WordPress 1.5
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.
Adding Wiki Functionality
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?
Upgrades
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$CATEGORYis the category path amd$FEEDis 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/elephantslike 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.
Converting from Textile 2 to Markdown
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.