HowTo: Install Windows Vista in 2 Minutes

Do you have a new com­puter that doesn’t run Win­dows Vista? Do you need step-by-step instruc­tions on how to install it? Then watch this great YouTube video for instructions.

Then go down­load and install a proper OS, like Ubuntu.

Dashboard Akismet Hack 0.0.3

Dashboard Hack 0.0.3

Akismet is a pop­u­lar com­ment, track­back, ping­back spam blocker. Orig­i­nally it was devel­oped for the Word­Press blog­ging plat­form; it has since been extended to work on a vari­ety of blog­ging and forums sys­tems. How­ever the only part of it I really care about is the Word­Press plu­gin as it is one of the ways I pro­tect this site from spam­mers. Akismet works great1 but there is one thing the devel­op­ers of Akismet have never seen fit to do which dri­ves me bonkers. Which is to say the only place the Akismet plu­gin shows you how many com­ments it has in the spam mod­er­a­tion queue is on the spam mod­er­a­tion queue page. And yet they put some stats for Akismet right there on the Word­Press dash­board. In ages long past, I cob­bled together a small hack to dis­play those mod­er­a­tion num­bers, when I upgraded my site to a more cur­rent ver­sion of Word­Press my hack broke.

This morn­ing I finally fixed it. Peo­ple more clever than myself could make this into a full fledged plu­gin, but this lit­tle hack is good enough for me. To do this:

  1. Down­load a copy of the Akismet plu­gin for WordPress
  2. Decom­press the zip file
  3. Open the akismet.php file in your favorite text edi­tor2
  4. In akismet.php, search for “func­tion akismet_stats()”. It should be around line 510.
  5. In the akismet_stats func­tion, under the line read­ing echo '<h3>'.__('Spam').'</h3>'; add the fol­low­ing code:
    $spam_count = akismet_spam_count();
    $link = 'edit-comments.php';
    if ($spam_count) :
    print "<strong><a href="$link?page=akismet-admin" title="Click here to see the moderation queue">Spam in moderation ($spam_count)</a></strong>\n";
    endif;
  6. Save your changes.
  7. Uploaded your edited copy of akismet.php to http://yourblog.com/wp-content/plugins/akismet/ and then fol­low the nor­mal instruc­tions for installing/activating the Akismet plugin.

With this small hack in place, when Akismet traps some com­ment spam in its mod­er­a­tion queue the Word­Press dash­board will dis­play a link under the Spam in the Lat­est Activ­ity box. The link will say “Spam in mod­er­a­tion (x)” where x is the num­ber of items in the spam mod­er­a­tion queue. Since Word­Press likes to occa­sion­ally man­gle the dis­play of code in posts, I’ve cre­ated a text file with my changes to the akismet_stats func­tion. You down­load that file here.

Update 2007-04-22: As to be expected, it didn’t take the spam­mers long to gen­er­ate some sam­ple data for me to cre­ate a screen­shot of my hack.  Enjoy!

1 Par­tic­u­larly with the Bad Behav­ior anti-spam plu­gin added to it.
2 E.g. Kate

Adverts by Text Link Ads

Fre­quent vis­i­tors to this site1 will prob­a­bly notice some­thing a bit new over in my side­bar. Today I added a new “Spon­sors” sec­tion to the site. This spon­sors sec­tion is will be serv­ing up text link adverts from Text Link Ads2.

For a long time I have resisted plac­ing any form of adver­tis­ing on this site. I just didn’t want to deal with the has­sle of it and I wanted to keep CoffeeBear.net “pure”. How­ever I real­ize now that is some­thing of a very silly notion and decided to give Text Link Ads a chance to make this site pay for itself.

Does this mean I’ve sold out? Well I am try­ing to make a small amount of money from this site now; how­ever CoffeeBear.net will not become some advert laden mon­stros­ity with hun­dreds of annoy­ing, flash­ing ban­ners. Just two lit­tle links in the side­bar. So you’re free to think what you like, but I’m not think­ing this counts as sell­ing out.

1 Read­ers of my RSS feed will also even­tu­ally be see­ing some text link ads as well. How long it takes depends on how quickly Text Link Ads sells the advert slots.
2 All links to Text Link Ads in this post are in fact affil­i­ate links and if you use them to go to their site to sign up, then I am sup­posed to get 25 smackeroos. :)

Ultimate Star Wars Personality Test

Han Solo: You are Han Solo! You can be a bit cocky and reck­less at times, but at the end of the day you’re just plain old coura­geous! If any­body ever asks you if you like doing the “Han Solo” just punch him in the face. They were mak­ing a mas­tur­ba­tion joke and that crap’s just old.

From the Ulti­mate Star Wars Per­son­al­ity Test by Liq­uid Generation

Windows Heck

On Easter Sun­day, my wife and I went to her sister’s for lunch1. While we were there, the rel­a­tives sprang a cou­ple of bro­ken com­put­ers on me ask­ing me to fix them2. Since we were get­ting really good grub3, I fig­ured I could at least take a look. Of course, nei­ther per­son with a bro­ken machine had any use­ful CDs with them, though one did run home to see if she had any there (nope). I ended up tak­ing both machines home and work­ing on them in my spare time. Today, I finally fixed one of them and I fixed it by fol­low­ing the instruc­tions I found in this arti­cle: Win­dows XP Crashed? Here’s Help. That worked really well in help­ing me fix the XP lap­top dumped on me, but the other machine is an older WinME desk­top. I’m still work­ing on that one, but for­tu­nately there’s no rush on the WinME box. Still I’m thrilled that I’ve got one of them fixed and can relax a bit4.

1 We had an extremely yummy lamb roast.
2 For the record, I’m a data­base guy these days not a sup­port tech. *sigh*
3 And free, never for­get free! *grin*
4 Yes, I’m still read­ing those wretched fun Wheel of Time books.