Posted in syndicated
|
Tagged random rants
|
Posted in syndicated
|
Tagged random rants
|
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.
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 [...]
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;
}
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 [...]
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:
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
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 [...]
Posted in syndicated
|
Tagged admin, console, install, installer, mac os x, open, random rants, root, shell, sudo, terminal
|
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
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
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.
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 [...]