The Progress Bar

Posted in Computers, Humor, Windows on October 12th, 2012 by jonolan

Estimation of progress is sometimes difficult, especially when our metrics are unclear or not well reported.

They could say "the connection is probably lost," but it's more fun to do naive time-averaging to give you hope that if you wait around for 1,163 hours, it will finally finish.
Virtual Reality – Same As The Old Reality

Bill Gates has been preaching and teaching that lesson for generation or more now. :lol:

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon] [Twitter]

Suicide Blonde

Posted in Chemistry, Humor on November 5th, 2011 by jonolan

That'd half to be one hell of a high molar solution of H202!
Now That’s A Suicide Blonde!

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon] [Twitter]

NextGEN Excerpts

Posted in PHP, Wordpress on November 1st, 2011 by jonolan

Wordpress W/ Wrench - Tech and Tool Tips for WordPress.org sitesWordPress is a great blogging platform and overall CMS. Part of its utility comes from its in-built capability to display excerpts from posts and pages, which makes displaying search results and archives much more elegant.

This is, however, not without its flaws. One the most common problem with excerpts is WordPress that WordPress shortcodes don’t work in excerpts.

When one of the most commonly utilized plugins for WordPress is Alex Rabe’s NextGEN Gallery plugin, which heavily relies upon shortcodes, this is a problem.

Fortunately, WordPress’ Shortcode API has within it the capability of easily and quickly fixing this issue.

Below is the default PHP statement to display a post’s excerpt in WordPress:

< ? php the_excerpt(); ?>

The problem with the_excerpt() function is that it echoes the excerpt directly to the screen without interpretation. This causes the shortcode itself to display in the excerpt rather than the code it was calling.

In order to have NextGen Gallery entries appear in the post excerpts, simply replace that line wherever it occurs in your blog’s theme files with the following:

< ? php echo do_shortcode(get_the_excerpt()); ?>

The do_shortcode() function actually runs the shortcodes and returns their results as a string. Hence, it will allow your NextGEN Galleries – and anything other shortcodes – to display properly within post excerpts.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon] [Twitter]