Tag Archives: PHP - Page 2

Publication Lists with BibTeX

Fancy Example

I have been charged lately with setting up a new homepage for my group at university. An integral part of any scientist’s professional homepage is his list of publications which basically represents his success. Despite its importance and therewith the wish that it better be up to date and look nice, most researchers I have met do not want to spend their time on maintaining lists or any part of any homepage. Therefore, a manually maintained HTML list or anything like that was out of question immediately. Other solutions like pulling from DBLP or embedding publicationslist.org have their own problems.

In the end, I decided on using BibTeX directly since most people in computer science use LaTeX and BibTeX anyway (or really should). I intended to provide a solution that would integrate well with any website, could use naked BibTeX as input and offered flexibility for individual adaptions as well as creating multiple, disjoint lists from one file. Given that I chose to build the website with a wiki, it should also be possible to store both BibTeX and template in the wiki, allowing for dynamic and easy adaptions.

Sadly, I could not find any software that met my needs. Consequently, dutiful computer nerd that I am, I set out to build my own solution. I am really bad at making up names, so I went with bib2tpl. Since Google does return exactly zero results I should not step on any toes. It is written in PHP, of course, and can transform BibTeX to anything you build a template for. I did find a BibTeX parser in PEAR so I was spared that part. The simple template language it uses I built myself in order to have a minimal yet sufficient amount of power in the given scenario. We will see wether or not this was a good decision.

You can find bib2tpl on its own pages. Please try it out and tell me what you think!

Doppelkopf ohne Papier spielen

This post is written in German since it concerns a German web application written by me. It helps managing games of Doppelkopf, a great card game that is as far as I know only known in Germany.

Vor etwa zwei Jahren haben wir in der Fachschaft regelmäßig Doppelkopf in wechselnden Besetzungen gespielt. Ich dachte mir damals, dass man doch etwas Buch über die Ergebnisse führen könnte, etwa um Fragen wie danach, ob Carsten nun wirklich schlechter spielte als andere oder ob alles nur Glückssache ist, auf den Grund zu gehen oder sich einfach nur an der Tabelle zu ergötzen. Zu meinem Erstaunen musste ich feststellen, dass es kein derartiges, webbasiertes Tool gab. Also machte ich mich daran, ein solches zu bauen; ich hatte die folgenden Ziele:

  • Einfache Benutzerverwaltung mit Einladungsfunktion
  • Abbildung der Turnierregeln
  • Eingeschränktes Zulassen von Sonderregeln
  • Interaktive Eingabemaske
  • Liste mit einzelnen Sitzungen
  • Rangliste nach verschiedenen Kriterien sortiert
  • Bestätigung von eingetragenen Ergebnissen durch Mitspieler
  • Einblick in detaillierte Spielergebnisse

Read more »

Zenphoto Gallery 2.0

When I prepared my move to Sweden approximately two months ago I developed a WordPress plugin to present Zenphoto galleries in my blog since the existing solutions did not satisfy me. I have been working on it since then and managed to extend it quite a bit. Version 2.0 went up a few days ago, sporting new features:

  • Pictures can now be chosen in reverse order and randomly
  • New shortcode [zengallery] for showing arbitrary images
  • New shortcode [zenimage] for showing single images
  • All gallery/image settings can now be overloaded by shortcode parameters
  • Shortcode creator with dynamic preview

I also distributed the code over several files in order to create more clarity.

Find the plugin’s sites here or download from the plugin repositories.