November 15th, 2011
robin
From http://www.esm.psu.edu/~ajm138/fortranexamples.html:
C programmers love to gloat that recursion can not be done in Fortran. When they say Fortran, they mean FORTRAN 77, since they absolutely refuse to acknowledge the existence of modern Fortran 90. (Fortran 90 came out over ten years ago. You would think they might know something about it by now!) But this example shows that even in FORTRAN 77 one can quickly and easily write routines that are recursive. So stick that in your complex variables, C programmers, and — oh wait, I forgot there are no complex variables in C. You have to manually define a complex data type. Not to mention having to write math functions like sin( ) and cos( ) to handle such data types.
Hahaaa … love it!
From http://www.esm.psu.edu/~ajm138/fortranexamples.html:
C programmers love to gloat that recursion can not be done in Fortran. When they say Fortran, they mean FORTRAN 77, since they absolutely refuse to acknowledge the existence of modern Fortran 90. (Fortran 90 came out over ten years ago. You would think they might know something about it by now!) But ...
In the current Ubuntu one can only get the open-jre and open-jdk installed via apt(itude). Because of some major issues concerning Swing, I needed to install the sun-jre and sun-jdk. To make this possible you have to edit /etc/apt/sources.list as root (or with sudo
). Uncomment the two following lines close to the end of the file.
deb http://archive.canonical.com/ubuntu lucid partner
deb-src http://archive.canonical.com/ubuntu lucid partner
Save the file and do a
sudo aptitude update
or
sudo apt-get update
After that you can install the packages sun-java6-jre and sun-java6-jdk with an aptitude search (or apt-cache search) ready for installation. For using this runtime environment as systems default you need to do a
sudo update-alternatives --config java
which produces output similar to the following(sorry for the german bash
)
Es gibt 2 Auswahlmöglichkeiten für die Alternative java (welche /usr/bin/java bereitstellen).
Auswahl Pfad Priorität Status
------------------------------------------------------------
* 0 /usr/lib/jvm/java-6-openjdk/jre/bin/java 1061 Auto-Modus
1 /usr/lib/jvm/java-6-openjdk/jre/bin/java 1061 manueller Modus
2 /usr/lib/jvm/java-6-sun/jre/bin/java 63 manueller Modus
Drücken Sie die Eingabetaste, um die aktuelle Wahl[*] beizubehalten,
oder geben Sie die Auswahlnummer ein:
choose the correct number (here: 2), hit Enter…done!
In the current Ubuntu one can only get the open-jre and open-jdk installed via apt(itude). Because of some major issues concerning Swing, I needed to install the sun-jre and sun-jdk. To make this possible you have to edit /etc/apt/sources.list as root (or with sudo ;) ). Uncomment the two following lines close to the ...
Bilder in Latex einbinden ist ein leidliches Thema. Jeder der es schon mal versucht hat, hat sicher schon das ein oder andere graue Haar dabei gelassen. Besonders schlimm finde ich die exakte Positionierung. Gerade bin ich aber auf eine sehr schöne und vor allem, funktionierende Möglichkeit gestoßen, das zu realisieren.
\usepackage{capt-of}
...
\begin{minipage}{\linewidth}
\includegraphics[width=\textwidth]{BILD}
\captionof{figure}[KURZBESCHREIBUNG]{BILDUNTERSCHRIFT}
\end{minipage}
Bilder in Latex einbinden ist ein leidliches Thema. Jeder der es schon mal versucht hat, hat sicher schon das ein oder andere graue Haar dabei gelassen. Besonders schlimm finde ich die exakte Positionierung. Gerade bin ich aber auf eine sehr schöne und vor allem, funktionierende Möglichkeit gestoßen, das zu realisieren.
\usepackage{capt-of}
...
\begin{minipage}{\linewidth}
\includegraphics{BILD}
...
Python mag normalerweise keine Scripte die Umlaute und dergleichen enthalten. Abhilfe schafft da folgender Einzeiler, den man am Anfang des Dokuments einfügt. Hier für UTF-8:
# -*- coding: utf-8 -*-
Ich konnte dabei keinen Unterschied feststellen ob man ihn vor oder nach der Shebang einfügt. Falls es einer genau weiß, bitte posten
Wichtig: Die Zeichenkodierung gilt zwar für das gesamte Dokument, aber alles was vom Interpreter verstanden werden soll, muss ausschließlich ASCII-Zeichen enthalten. Kurz: Variablen- und Funktionsnamen in ASCII, Kommentare und Stringinhalte unterliegen der gewählten Zeichenkodierung.
Weitere Informationen und andere Beispiele für mögliche Kodierungen gibt es HIER
Python mag normalerweise keine Scripte die Umlaute und dergleichen enthalten. Abhilfe schafft da folgender Einzeiler, den man am Anfang des Dokuments einfügt. Hier für UTF-8:
# -*- coding: utf-8 -*-
Ich konnte dabei keinen Unterschied feststellen ob man ihn vor oder nach der Shebang einfügt. Falls es einer genau weiß, bitte posten ;)
Wichtig: Die Zeichenkodierung gilt ...
Recent Comments