Tag Archive for "wordpress" tag

Installed LaTeX plugin for WordPress

March 8th, 2009 by Ivan Lakhturov | 0 Category: Miscellaneous | Tags: |

I tried wpmathpub plugin, but it didn't work for me. Now thanks to Craig Rose I have a better plugin for math notation. It uses an external service (usually WordPress server) for turning LaTeX-notation into pics, and thus capable of much more than wpmathpub plugin (that uses the PhpMathPublisher library and implements just a small subset of TeX-formulae).

\tanh x =  \frac{\sinh x}{\cosh x} = \frac {\frac {e^x - e^{-x}} {2}} {\frac {e^x + e^{-x}} {2}} = \frac {e^x - e^{-x}} {e^x + e^{-x}} = \frac{e^{2x} - 1} {e^{2x} + 1} = -i \tan ix


Now with math notation possible to post here I will think up and publish some optimizations for Project Euler problems.

Code colorizer installed

March 3rd, 2009 by Ivan Lakhturov | 0 Category: Miscellaneous | Tags: |

I found the Source Code syntax highlighting plugin for WordPress, which makes use of GeSHi highliter and installed it. Now to get proper colorizing (the default code-tag of WordPress looks pale) for Scheme code I embed it into <pre lang="scheme">...<pre> tags.

Actually, I dont like default colors and already created dups of templates for Scheme R6RS and Nemerle. But will elaborate those later.

There is also JavaScript-based highligher named SHJS, which can simulate different IDEs, i.e. has many templates for each language, but the list of supported languages looks somewhat narrower and doesn't contain Lisp / Scheme. Which is not a problem of course, but anyway, I don't want client-side colorizing.

Hacked the WordPress theme again

March 3rd, 2009 by Ivan Lakhturov | 0 Category: Miscellaneous | Tags: |

Now you can see tags nearby postings. This is simply by adding the clause

<?php the_tags('<strong>Tags:</strong> ', ' | ', ''); ?>

to the <div class="date_author_comments"> in files single.php, index.php, search.php and archive.php of the WhitePress theme (version 1.1.7).

Backing up and upgrading WordPress

March 3rd, 2009 by Ivan Lakhturov | 0 Category: Miscellaneous | Tags: |

Overlooked the manual for backing up. It seems, the easiest way of backing up a WordPress database, listed here is to use the appropriate plugin. Installation didn't bring troubles. Backed up the DB also smoothly, however, had to choose "save to server" option, cause "download to my computer" didn't work (in Opera browser). There are just 10 tables in WordPress engine. Upgraded the engine using the manual without a problem as well.

Hacking WordPress engine a bit

February 21st, 2009 by Ivan Lakhturov | 0 Category: Miscellaneous | Tags: |

Just switched to a new WordPress theme (skin). Despite minimalistic, had to threw out several things from a sidebar.

I didn't like the default behaviour of the engine, when it's printing shortened versions of postings at the home page. Moreover, dereferencing links on that page is an awful feature. So, I've run into the engine and changed the_excerpt() function to the_content() one in files index.php, archive.php and search.php. Now it's ok. The following WordPress help topics were useful: The Loop, Changing Read More tag behaviour, however, I've not read them, just looked through.

Later on I'll backup and upgrade the engine to a new version. It'd nice to find proper colorizer for code-tag, preferably for Scheme and C# (the latest I'll update to handle Nemerle-code). I have also to look how to print tags (not html ones) near a posting. And does the latest engine's version support OpenID?