Monthly Archives: June 2004

layout changes

Time for another site makeover, this time with {Wordpress} as the main item behind the scenes, which means there’s far more I can do now than with my own (creaky) XML file based blog. As far as I can make it, the design is styled with CSS rather than HTML tricks, and I hope to use this site to learn more about CSS and design in general.

The main reason behind the change was to allow commenting on some of the more popular parts of the site (such as the WinCVS/SSH guide) so mistakes and extra tips can easily be left: there’s no need to register or give your email address if you don’t want to.

If you’re reading this via RSS, you might want to check your subscription URI is one of the three options available on the main page (RSS 0.92, RSS 2.0 or ATOM 0.3) although a redirect will be in place for the foreseeable future (NetNewsWire Lite correctly honours my redirect message, so if your aggregator is well behaved it might already have been done).

Enjoy !

Share

adsl trigger date

Yay ! My exchange will go live on the 15th of December this year, which isn’t bad at all. Finally, the chance to get a proper service with such heady delights as a static IP (gasp!) and maybe, just maybe, direct SMTP and backup MX provided by the ISP ! Hoorah.

That’s ignoring the huge advantage of a 2:1 download:upload ratio instead of the frankly ludicrous 4.6:1 I have now (soon to be 5.8:1 – be still my beating heart).

Share

comment moderation feedback

Comment moderation is handy, but it’s annoying from a non-spammers point of view when it appears that the submission has simply vanished. My solution is to add an extra function to wp-includes/template-function-comments.php and a couple of lines in the wp-comments.php file that show a placeholder for pending comments with the time and date of submission (to help prevent abuse such as links in place of a user name there is nothing shown that was typed by the commenter).

Add the following function to wp-includes/template-function-comments.php:

function comment_approved() {
    global $comment;
    return ($comment->comment_approved);
}

Then change the line that fetches the comments in wp-comments.php to fetch all comments regardless of status:

$comments = $wpdb->get_results("SELECT * FROM $tablecomments WHERE
    comment_post_ID = '$id'
    ORDER BY comment_date");

and finally change the main comment display loop to output a placeholder message:

<?php foreach ($comments as $comment) { ?>
    <li id="comment-<?php comment_ID() ?>">
    <?php if (comment_approved() == 1) { comment_text() ?>
        <p><cite><?php comment_type(); ?> <?php _e("by"); ?>
        <?php comment_author_link() ?> &#8212; <?php comment_date() ?>
        @ <a href="#comment-<?php comment_ID() ?>">
        <?php comment_time() ?></a></cite>
        <?php edit_comment_link(__("Edit This"), ' |'); ?></p>
    <?php } else { ?>
        [Comment pending approval]
        <p><cite><?php comment_type(); ?> &#8212; <?php comment_date() ?>
        @ <a href="#comment-<?php comment_ID() ?>">
        <?php comment_time() ?></a></cite>
    <?php } ?>
    </li>
<?php } // end for each comment ?>
Share

Disney Debuts New Safer, Quieter and More Environmentally Friendly Fireworks Technology

http://biz.yahoo.com/bw/040628/285741_1.html

What a neat idea. I wonder how it works in terms of trigger tech – does a fuse get lit before the air launch ? What about misfires ? Can the trigger be armed only if the firework leaves at the right velocity ?

Might be time for a patent search…

Share

The PHP Layers Menu System

http://phplayersmenu.sourceforge.net/

If you want a menu on your site, then this has more than you could possibly have use for. Unless you’re after a bad design award, of course…

All code is under the LGPL.

Share

iraq redux

Comment from the big one after viewing a trailer for a news documentary on Iraq which opened with the statue of Saddam Hussein being pulled down:

“Some people like that. Some other people don’t”

Possibly the shortest and most unarguably accurate statement on the whole affair so far…

Share

os x 10.4

“My sources have told me that Apple will name Mac OSX 10.4 iOfTheTiger. The box will have a huge picture of BA Baracas with a huge golden X hanging from one of his thick golden chains. Don’t ask me for anymore information as my source could be sued and possibly fired by Apple.”

(Thanks Duncan)

Share
Page 1 of 212