Fonts in LaTeX

Ever searched for the right font in LaTeX?  Then have a look at The LaTeX Font Catalogue! It lists several fonts with a preview and instructions how to include them into your document.

I really like the TeX Gyre Pagella font which is based on the Palatino font. Even if you need some handwritten or caligraphic fonts for LaTeX, have a look at the Font Catalogue!

Posted in syndicated | Tagged | Leave a comment

LHC in The Daily Show

A bit late, but still a few people haven’t seen the funny report on the LHC and the end of the world in The Daily Show. Go ahead, watch it! Extra points for finding the reference to the Grid!

Posted in syndicated | Tagged | Leave a comment

Changing the keyboard layout for Scientific Linux on a MacBook

I recently installed Scientific Linux in a virtual Machine on my MacBook and ended up with the Standard PC keyboard layout. As the keyboard layout of my MacBook has quite some differences, I tried to figure out how to get all the keys I’m used to.

Here’s what I did (following the advices given here):

  • open the file /etc/sysconfig/keyboard and change it (for a german keyboard) as following

    KEYBOARDTYPE="mac"
    KEYTABLE="mac-de-latin1-nodeadkeys"
  • for other layouts than the german one have a look at /lib/kbd/keymaps/mac/all/ and choose one of the keytables listed there
Posted in syndicated | Tagged , , , , | Leave a comment

Folien zum Vortrag “Physikalische Grundlagen”

Die Folien zum Vortrag “Physikalische Grundlagen” vom 16.04.2009 sind jetzt unter Vorträge zu finden. In Kürze wird eine audiovisuelle Version des Vortrags folgen.

Posted in Allgemeines, syndicated | Leave a comment

Seminar Physik und Musik

Die Fakultät Physik veranstaltet im Sommersemester 2009 ein Seminar zum Thema Physik und Musik. Die Vorträge starten mit einer physikalischen Einführung in die Akustik und den physikalischen Vorgängen beim Hören. Danach werden die einzelnen Instrumentalgattungen besprochen wobei auch die noch relativ junge elektronische Musik behandeld wird. Anschließend folgen Vorträge über Aufnahmetechniken und Raumakustik. Den Abschluss bildet dann ein Vortrag über die Symmetrieen und Gesetze der Musik.

Eine vollständige Liste der Vorträge mit dem Vortragsdatum findet sich auf der Seite Vorträge.

Posted in Allgemeines, syndicated | Leave a comment

Océ 3145 printer driver for Mac OS X

We have an old Océ printer for our office. Unfortunately the official drivers I could find on the website of the producer do not work for Mac OS X 10.5. Luckily I found working drivers at the Hochschule Luzern.

Posted in syndicated | Tagged , , , , | Leave a comment

Minimal program to create histograms from a file with root

We needed to create a histogram from some output of a python program. Therefore I wrote a minimal root program to read in the data from a file and save the histogram as a pdf.

The datafile should contain one entry per row. Save the following source code as e.g. histogram.c and then start root with

root -b -q 'histogram.C("filename")'

Here is the sourcecode:

#include <TCanvas.h>
#include <TH1.h>
#include <iostream.h>
#include <Riostream.h>
#include "Math/PdfFuncMathCore.h"

int main(){
  histogram("test")
}

void histogram(char* fileName) {

  gROOT->Reset();
  TCanvas *c1 = new TCanvas("c1","c1",800,800);
  TH1I *histo = readDataToHist(fileName);
  c1->cd(1);
  histo->Draw();
  c1->Update();
  c1->Print("histogram.pdf","Portrait pdf");
}

TH1I* readDataToHist(char* fileName)
{
  ifstream in;
  in.open(fileName);
  Double_t bin;
  Int_t nlines = 0;

  Int_t x_min = 0;
  Int_t x_max = 10;
  TH1I *histo = new TH1I("h1","Histogram Title", 100,x_min,x_max);

  while(1)
  {
    in >> bin;
    if (!in.good()) break;
    //cout << "bin: " << bin << '\n';
    histo->Fill(bin);
    nlines++;
  }
  in.close();
  return histo;
}
Posted in syndicated | Tagged , , , , | Leave a comment

Starting Mac OS X Applications (as root) from the console

I recently wanted to start Mac OS X Applications from the console. Sometimes it is possible to start an application directly if it’s possible to find the executable in the application folder. But sometimes, espaccially for application installers there is no executable. In this case it is possible to start the application (or installer) by using the open command. e.g. to start TextEdit:

open /Applications/TextEdit.app

The open command does the same as clicking on a file / application. So you could open a pdf document like this:

open document.pdf

Sometimes an installer requires to run as a superuser. Starting the installer with

sudo open /Applications/INSTALLER_APP

unfortunately does not work, because only open will run as a superuser, but not the installer itself. To start the installer as superuser the following might help:

  • pkg installer:
  • sudo ./MyApplication.app/Contents/MacOS/Installer
  • other installers (no linebreak!)
  • sudo /System/Library/Frameworks/Carbon.framework/Versions/A/Support/LaunchCFMApp \
      ./MyApplication.app/Contents/MacOS/application
Posted in syndicated | Tagged , , , , , , , , , , | Leave a comment

Konzert am 27.01. um 20 Uhr

Am 27.01.2009 findet um 20 Uhr im Audimax der TU Dortmund das nächste Konzert des Uniorchesters statt.

Das Programm besteht diesmal aus:

  • Samuel Barber: Adagio for Strings op. 11
  • Aaron Copland: El Salón México
  • Antonín Dvořák: Sinfonie Nr. 8 G-Dur op. 88
  • Ismail Bulut: Suite Semah, 3. & 4. Satz
Posted in syndicated | Tagged | Leave a comment

Pictures of the LHC incident

Yesterday we played board games in the CERN restaurant. Talking about an official event on friday one of the guys said, that he probably won’t be invited to official events for some times, because of a recent dispute with the CERN management. Surely we wanted to know what he did and he told us, that in his blog he pointed to a talk given by CERN Director-General Robert Aymar where one of the topics was the status of the LHC. The interesting thing about the talk was, that it contains pictures from the LHC incident on September 19. In his blog he pointed to the slides of the talk which were publicly accesible, but hidden deep inside the CERN Web.

Shortly after he posted the link to the slides, the access to the slides was restricted. So he contacted the CERN Press Office, why this was done. The official reply from the CERN Press Office was, that they wanted to inform the CERN community first, before publishing the pictures to the general public.

The incident has happend quite a while ago and it’s good to finally see some pictures of it, even if many members of CERN criticize the lack of openness regarding this topic.

Posted in syndicated | Tagged , , , , | Leave a comment