### Archive

Archive for July, 2011

## Fix veetle audio delay

July 23rd, 2011 1 comment

When you try to output a sound stream from Veetle 0.9.17 through PulseAudio, you will most likely run into an annoying audio delay. Most of the fixes that can be found usually suggest changing the Veetle settings to use OSS for sound output.
However, there is a beta version of the latest Veetle plugin that enables you to continue using PulseAudio and get rid of the audio delay:

Please note that this version is still marked experimental. It seems to work fine on Fedora 15 though.

Resources:
http://www.lziegler.com/wordpress/?p=108

Categories: Uncategorized Tags:

## Escaping WordPress shortcodes

With WordPress 2.5 came the WordPress shortcodes, a simple set of functions to create macros to be used in WordPress posts. Quite a few plugins were developed subsequently to enable escaping of those shortcodes. This is necessary because the shortcode parser, as it tries to interprete everything between square brackets, makes it impossible to include a non-interpreted shortcode such as [gallery] into continuous text.

However, those plugins are actually obsolete. The issue has been fixed with the release of WordPress 2.8. Now there is an official syntax that allows you to escape shortcodes in your posts without the need for any additional pluging.
Simply double the square brackets to allow any shortcode in your post escape the parsing:

    [[shortcode]]


will be displayed as [shortcode] in your post.

Optional parameters to the shortcode are of course still possible, i.e.

    [[gallery link="file" columns="2"]]


will be displayed as [gallery link="file" columns="2"]

Categories: Uncategorized Tags:

## Typesetting formuals with MathJax

Most hosting providers don’t have LaTeX packages installed on their servers and installing LaTeX yourself is usually only possible on rootservers, which are quite a bit more expensive (and therefore much less common) than regular hosting plans.

However, there is a great project called MathJax, that enables you to display formulas directly inside your wordpress posts without the need to install any LaTeX packages on your server. While you can install the javascript that is used to typeset your formula from either LaTeX or MathML code locally, the easiest way to use MathJax is probably to their content delivery network. For even more convenience, there is even a wordpress plugin that makes typesetting formulas easy as pie.

First, enable the CDN option in MathJax-Latex Plugin Options:

Enable "Use MathJax CDN Server" and save the changes

You can now use regular LaTeX code within your post:

$S = \frac{1}{(1 - P) + \frac{P}{N}}\leq\frac{1}{1-P}$


will be typesettet as

For a more detailed explanation, have a look at the plugin’s description.

Of course, there are quite a few other CDNs, that will typeset your LaTeX formulas. But usually, they just render an image that can be embedded in your post or use flash.
The main advantage of MathJax is that you get your formula as scalable instance that will fit nicely even if you resize your text. You can also access a formula’s source and copy and paste it into your math application (like Mathematica). Have you tried right-clicking the formula above?

Categories: Uncategorized Tags: