bbPress Topics With Negative Numbers

I was scratching my head as to why my bbPress forum was displaying topics with negative numbers. It seems to coincide every time someone deletes a topic. The number of topics can sometimes falls below zero into negative territory. It just looks odd to have a forum with negative topics.

In any case, the fix is to login as Admin and perform a Recount. Just go to Manage > Recount. I checked on the first 7 boxes. I skipped boxes 8 and 9 that either delete or remove posts with no topics, etc. It only takes a few seconds to perform the recount. Once recounted, the topics would show the correct values.

I never did get a clear explanation as to what is causing the negative numbers to show up. There seems to be a good discussion at the bbPress forum, but it seems the question was never resolved.

3 Terabyte Hard Drives

It won’t be long now before 3 Terabyte hard drives will roam the earth. Seagate is currently developing 3TB drives with transfer speeds of 6GB per second and spinning at 7200 rpm. This is made possible by the development of 640GB and 750GB drive platters, up from the current 500GB. A 2TB hard drive is made up of 4 x 500GB platters. A 3TB hard drive equates to 4 x 750GB platters. Also, you will see in the upcoming months improvements in 2.5 laptop hard drives with the development of the 1TB drives.

V8 Benchmark Suite Version 5

If you’re like me, you probably have several browsers installed in your favorite desktop whether it’s Windows or Linux. In Windows, I have IE, Firefox, Chrome and Safari. In Linux, I have Firefox and Chrome. Ever wonder which browser is faster.

There’s one test you can run. It’s developed by Google. It runs Javascript benchmarks. The V8 Benchmark Suite will test your browser and gives out a score at the end. The higher the score the better.

Do the numbers mean anything? All I know is the higher the number, the better. Here’s the V8 Benchmark page explanation.

This page contains a suite of pure JavaScript benchmarks that we have used to tune V8. The final score is computed as the geometric mean of the individual results to make it independent of the running times of the individual benchmarks and of a reference system (score 100). Scores are not comparable across benchmark suite versions and higher scores means better performance: Bigger is better!

So, I ran the benchmark on my Linux desktop. First, I ran it for the Mozilla Firefox 3.5.9 browser. The benchmark resulted with a score of 308. Next is Chrome 5.0.342.9 beta. The benchmark resulted in a score of 4250. Huge difference. Does it mean Chrome 5.0.342.9 beta runs faster in Javascript benchmarks than Firefox 3.5.9?

You can also try the SunSpider Javascript benchmark.

Kobo eReader from Borders

The eReader market just got crowded. Borders just introduced the Kobo eReader for $150. It’s set to compete with Amazon’s Kindle and Barnes & Noble’s Nook. The Kobo offers users access to over 1 million eBooks via USB or wireless Bluetooth.

Unfortunately, there is no WiFi support. The Kobo comes pre-loaded with over 100 classic books. It’s capable of storing 1000 titles in less than 1GB of flash memory. The Kobo can read a number of eReader formats including PDF, ePUB and Adobe DRM.

Here’s a Kobo eReader review.

One last thing, the battery life is 2 weeks. It’s a cheaper alternative to Amazon’s Kindle.

Create Your Own WordPress Breadcrumbs

Breadcrumbs in web terms are a chain of links that leads the user back to the main index page. This article will teach you how to manually create your own breadcrumbs within WordPress. You will place these codes in your WordPress themes just underneath your header, for example.

Create a Home

Let’s get started. Let’s create a home. Use this HTML and PHP code.

<a href=”<?php bloginfo(‘url’);?>”>Home</a>

Double Angle Quotation Marks

Let’s use a Guillemet or a Double Angle Quotation Mark to separate the links.

The symbol » equals to “&raquo;” in HTML.

Post and Page Titles

Let’s display the titles. The code for both post and page titles are the same.

<a href=”<?php echo get_permalink() ?>”><?php the_title(); ?></a>

All Together Now

<a href=”<?php bloginfo(‘url’);?>”>Home</a> &raquo; <a href=”<?php echo get_permalink() ?>”><?php the_title(); ?></a>

The Result

Home » Create Your Own WordPress Breadcrumbs

Just place this piece of code in your WordPress theme files: e.g. pages.php and single.php. For the main index.php page, you just need the Home link.

That’s it. Fairly easy.

You can get really elaborate by adding Categories, Months and Dates in your breadcrumb. Nevertheless, this article will get you started in the right direction.

Facebook Glitch Exposes Private Chats

Just when you thought it was safe to back into social media, there could be one as terrible as Facebook. Today, a software bug allowed Facebook users to view their friends private chat sessions. Very nice. How juicy. The same bug also allowed users to see their friends pending friends requests.

Well, this one is not so bad and juicy as reading other people’s chat messages. Nevertheless, it’s a security hole that was open for a limited time before Facebook turned off its instant messaging service. I predict it won’t be the last time. As Facebook grows in users and complexity, there’s great potential for a slip up like today.

If you’re worried about privacy, don’t place anything online that can get you in trouble.

ZDNet Website Redesign

One of my favorite websites for browsing the latest tech news is ZDNet. This morning, I noticed a new website redesign. It’s cleaner, cooler, compact and ad-friendly I might add. I’m digging it. I love the homepage slider feature, although I think it’s too fast. The footer section is much, much bigger.

In terms of color, the blue colors seems to be much darker than the previous design, although I don’t have the old site up for a side-by-side comparison. The website reminds of the kit of the US Mens National Team for this summer’s World Cup in South Africa. The US National unis have also gone dark the last couple of years.

I think the biggest improvement of the website redesign is the comments section. I use to dread reading comments because I had to click on each one of them to read them. That’s no longer the case. It’s structured similar to how most blog comments are displayed these days, in chronological order.

As in any new website redesign, I found a couple of kinks. There are several broken links, but I’m sure they will fix that soon. It will take a while for me to learn the new site. Navigating is a bit awkward at first, but improving the comments structure is by far the best thing that’s happened to this site.

Internet Explorer at 60%

Here’s the latest browser market share according to Net Applications:

  • Microsoft Internet Explorer: 60%
  • Mozilla Firefox: 25%
  • Google Chrome: 6.7%
  • Apple Safari: 4.7%
  • Opera: 2.3%

IE still has sizeable command of market, but it’s shrinking rapidly. It could be worse. Microsoft relishes on the fact that IE is included in every Windows OS product. To get Firefox and Chrome, you really have to get out of your way to download and install it. Safari is also standard in every Mac, but it’s also available in Windows.

Javascript and WordPress Threaded Comments

Sometime after WordPress 2.7 and before WordPress 2.9.2, I lost a key functionality within WordPress. It’s threaded comments.  I blame myself for constantly tinkering around with the theme. I must have deleted a key piece of code somewhere in the theme that prevented threaded comments from working.

For those not familiar with WordPress, the threaded comments functionality allows the “comment form” to jump underneath a specific comment when a “Reply” link is clicked. Clicking “Cancel Reply” restores the “comment form” to its original position. When a comment is submitted, the comment is placed directly underneath that specific comment.

In my case, the threaded comment function still worked, sort of, but not quite the way it was supposed to. I did some digging around. After reading a couple of articles, I finally found what was missing in my WordPress theme. It’s a tiny Javascript command that you place in header.php.

This tiny Javascript makes the comment form jump from one place to another. Make sure this code is in header.php just before the <?php wp_head(); ?> command.

<?php if ( is_singular() ) wp_enqueue_script( ‘comment-reply’ ); ?>

The Perfect Server Based On Ubuntu 10.04

There is no such thing as a perfect server, but this particular one is as close as you can get to being perfect. This tutorial will walk you through how to install the Ubuntu 10.04 LTS Server with all the services available typically that you get from ISPs and hosters.

It contains the installation of Apache web server (SSL-capable), Postfix mail server with SMTP-AUTH and TLS, BIND DNS server, Proftpd FTP server, MySQL server, Courier POP3/IMAP, Quota, Firewall, etc. It also installs the free web hosting control panel called ISPConfig2. Here’s the link to the tutorial.