Default feed not disabled with Suffusion

I switched to a new WordPress theme, Suffusion! Hooray! However, the %#&/?! default feed link is added to HTML even if disable it in Suffusion settings. Not hooray.

Digging into Suffusion code, I found suffusion_include_default_feed() from functions/actions.php, but it seems that it correctly does not output anything when I disable the default feed. Furthermore, the alternate feed URL actually does output my FeedBurner feed URL. So it seems Suffusion is not generating these links by itself.

Grepping around the WordPress source code (a look through the dozens of templating PHP files really makes me want to code a barebones blog myself) I finally located the culprit: feed_links() method in wp-includes/general-template.php. Why is this called? Where should it not be called?

It seems at least wp-includes/default-filters.php is adding this feed_links action to wp_head. I commented it out, and what do you know, the nerve-wrecking automatic feed URLs are gone!

Just thought to share it if someone else is having the same problem. It looks like Suffusion should have the following somewhere if default feeds are disabled:

remove_action( 'wp_head', 'feed_links', 2 );

It seems Suffusion is adding a ton of actions and filters in its functions.php, namely in function suffusion_setup_custom_actions_and_filters(). So here’s a patch which gets rid of that default feed URL if you have chosen to disable it in Suffusion setup:

function suffusion_setup_custom_actions_and_filters() {
    // Theme supports automatic feed links, which makes WordPress output default 
    // RSS feed links via feed_links action. Disable this if the user has explicitly
    // chosen in Suffusion setup to disable those very feeds.
    global $suf_custom_default_rss_enabled;
    
    if ($suf_custom_default_rss_enabled != 'enabled') {
        remove_action( 'wp_head', 'feed_links', 2 );
    }
    
    ///// ACTIONS

Dissecting the Excalibur Game Time Chess Clock

A go-playing friend of mine had a broken “Excalibur” chess clock that we here in Europe use extensively in go tournaments. The LCD was shattered and I don’t think they ship replacement parts:

Because the clock is not of much use without a display, I got to rip it apart to see what it contains. This particular clock is used quite a lot, so I thought I’d share the images. Note that you can click on pictures to view larger version of the image.
Continue reading Dissecting the Excalibur Game Time Chess Clock

jGoBoard 2.0 and website launched

Although I haven’t been blogging anything recently, just thought to let any readers know, that I’ve created a new library for rendering a photorealistic go board (“goban”) using HTML, CSS and JavaScript. It’s a rather nice piece of software, and published under Creative Commons 3.0 attribution non-commercial license, so it’s free to use in any non-commercial projects.

See the jGoBoard website for more information!

www.Friendscribe.com launched

I’ve just finished a “public beta” version of Friendscribe.com, which is a web-based chat for keeping in touch with your friends. The idea is that chat messages are stored in a database, so you don’t need to have your browser always open to see what’s going on – just log back in later and see if someone has said anything while you were gone.

Try it yourself at http://www.friendscribe.com.

By the way, the site is powered by CodeIgniter – a PHP development framework you definitely should try out if you’re into PHP web development!

Linux SATA problem with Abit IP35-E

Just a brief revelation to share with any readers (perhaps they stumble here through Google, or by some horrible accident :).

I’ve had an Abit IP35-E motherboard in my HTPC setup for six months now, and while a great overclocking board, stable and packed with nice features (yeah, right, this is the budget version), I haven’t been able to coerce my Debian Lenny installation copied from previous IDE hard drive, or any Linux Live-CD to properly recognize my 500GB Samsung SATA hard drive.

Because booting to Linux rebooted with USB keyboard on, and IRQ options sometimes seemed to work their magic and temporarily get me to login prompt, I figured there was some IRQ conflict at work. I searched for the fix just half a year ago with no luck, but after 5 months of complete Linux abstince (spelled that wrong, I did), I stumbled upon this:

http://www.fatwallet.com/forums/hot-deals/812946/ (search for “Linux”)

Turns out all I needed was to swap SATA cable from SATA1 port to SATA5. Voila, now everything works great, no IRQ conflicts there (only SATA1-SATA4 ports conflict with USB controller).

Hope this helps someone!

Nokia acquires Trolltech!

Just a short note on this Slashdot newsbit that almost got me falling off my chair: Nokia is acquiring Trolltech, the makers of QT graphics library behind the popular Linux window manager (/platform) KDE.

I mean, if I had been asked a month ago the top three companies making money with open source software, I would’ve replied RedHat, MySQL and Trolltech. And since MySQL has already been acquired, I really wonder what is next.

Also, it is interesting that Nokia decided to acquire Trolltech, even though their Maemo platform is based on GTK and Gnome, not QT and KDE. Well, let’s just hope they don’t stop providing a GPL version of QT in the future.

Anyone want to bet who is the next open source shop being acquired by some big players? My bet is RedHat being acquired by Google or Microsoft, because, well, that would just be surprising, wouldn’t it?

Darkest material yet created using nanotubes

Just a short interesting headline that got my attention on Slashdot:

Nanotubes Form The Darkest Material Yet Created

Picture of this 99.9% light-absorbing monster material can be found from news.com.au coverage. Now as many slashdotters pointed out, this opens up obvious possibilities for solar panels, but once these really get cheap, I’d propose a couple of additional ones:

  • Limiting the light scatter in open areas where adequate lightning (e.g. for safety) and darkness are simultaneously preferred. Theaters, nighttime transportation (ever tried to sleep in a well-lit train?) spring up to mind
  • Ninja clothing. Of course the problem is, that once you actually become darker than the night, you may be more easily spotted.
  • Striking interior decoration. Doors that look like black holes? Check. Really black borders for your home theater projector canvas? Check. Sofa that just doesn’t seem to be there? Check!

And of course there is my absolute favourite: MacBook Night Air, as shown below.

MacBook Night Air

Like Nigel Tufnel says in the movie This Is Spinal Tap: It’s like, how much more black could this be? And the answer is none. None more black.

Theme being updated, sorry for inconvenience

I was struck by the brilliant idea of designing and implementing my own design for this page. Because the page has been up for like two days and I have around one point three faithful readers, I decided to scrap the needless testing platform and go straight to production.

So bear with me for some hours while I stylize the posts and sidebar on line. For the random viewer, it may even be an interesting interactive event. Or then not. Anyways, sorry if your eyes hurt when reading!

Paramount ditching HD-DVD and switching to Blu-ray?

Financial Times seems is suggesting that the recent “HD-DVD only” agreement made by Paramount (for which they got paid a huge amount of cash) may containt a clause that allows Paramount to rethink in case Warner Bros switches to Blu-ray (which just recently happened). If Paramount actually follows Warner, it would likely mark the end of the high definition format war.

In other news, I won’t be switching yet, as stand-alone Blu-ray players cost about $900 (600€) here where I live. And while PC drives for my media PC in both HD-DVD and Blu-ray have decreased sharply and can be had for around $200, I think charging $100 for playback software (with forums full of compatibility and playback problems) is absolute robbery.

Having said that, expect to hear first-hand account on these issues the second I can have both the drive and software for less than $200. :)

NSI Registers Every Domain Checked

Domain registered! I originally thought to go for “Coding, Scene, and Life”, but the decided codeandlife.com would just be less irritating to type. And speaking of domains, it seems I was lucky I wasn’t trying different domains using the whois tool on NetworkSolutions web page, as it seems they are “reserving” all searched domains with them (knowledge gained through the always-infallible Slashdot).

It seems official domain registrars can reserve a domain for free for five days, which can be released after that and the domain comes back available. NSI does just this for all .com domains searched through their website, effectively screwing you for five days if you decide to register the domain name somewhere else, after you find that it is available.

NSI of course tells (alleged response to it here) that this is done to “protect the customers”, but to actually protect them they should be honest about it, and ensure that the person registering the domain is the same who originally searched it. But this would of course hurt their business, as if the first person to search for a domain doesn’t buy it, they lose any other potential buyers stopping by within the next few days.

But NSI is right in a sense, as now the domain needs to be registered with them within the next five days, protecting their customer base, if not the individual customer. If you can get away with that, it is good for the business.