diff --git a/kiss/beamer/demo.tex b/kiss/beamer/demo.tex new file mode 100644 index 0000000000000000000000000000000000000000..84b899335af0a16215b2d3dc5597bede1d043888 --- /dev/null +++ b/kiss/beamer/demo.tex @@ -0,0 +1,71 @@ +\documentclass{beamer} %Dieses Dokument wird ein Beamer-Foliensatz. +%Kommentar + +\usepackage[utf8]{inputenc} %usepackage bindet Pakete ein, z.B. für bestimmte Sonderzeichen, Sprachen, ... inputend spezifiziert das Encoding, das wir z.B. für Umlaute brauchen +\usetheme{Berkeley} %Theme: Gestaltung der Folien, z.B. Navigationsleisten +\usecolortheme{crane} %Farbschema +%Themes aussuchen z.B. über http://www.hartwork.org/beamer-theme-matrix/ + +\begin{document} %hier fangen die eigentlichen Folien an + +\title{Tolle Vögel} +\author{Gustav Geier} + +\maketitle %erstelle eine Titelfolie + +\AtBeginSection{%zeige diese Folie zu Beginn jedes Abschnitts an +\begin{frame}{Inhalt} %Folie mit dem Titel Inhalt + \tableofcontents[currentsection] %Inhaltsverzeichnis, bei dem der aktuelle Abschnitt hervorgehoben ist +\end{frame} +} + +\section{Geier}%Beginne neuen Abschnitt + +\begin{frame}{Der Geier} + \begin{comment} + Ganz viel + Kommentar + Ja, LaTeX kann mehrzeilige Kommentare. Wenn man vorher Hühner geopfert hat. Warum ging das auf der KISS???? + \end{comment} + \begin{itemize} %Stichpunkte + \item{Geier fressen Aas} + \item{Geier sind tolle Fachschaftsmaskottchen} + \item{Geier sind Vögel, darum geht es heir ja auch} + \end{itemize} + \begin{block}{Das ist eine Box} + Das ist Text in einer Box + \end{block} + \begin{Beispiel} %Beispielbox mit Farbcode. Es gibt auch Satz, Beweis, Lemma und weitere vordefinierte Boxen (siehe Doku für mehr) + Beispieltext + \end{Beispiel} +\end{frame} + +\begin{frame}{Mathe} + $e^{i\pi}$ + %Text in $ $ ist eine inline math-Umgebung, also mathematische Zeichen innerhalb einer Textzeile. Für Formeln in eigener Zeile: \[ \]. + %"^" definiert immer Exponenten, obere Indizes etc., "_" untere Indizes. + %Griechische Buchstaben werden immer nach dem Schema \pi, \phi, \Pi... erzeugt, manche sehen mit \var schöner aus, z.B. \varphi + $\sum\limits_{i=1}^{3} i$ %Summenzeichen. \limits sorgt dafür, dass die Limits über und unter dem Summenzeichen stehen, nicht daneben. +\end{frame} + +\begin{frame}{Animationen} +Irgendein Text über Vögel +\pause %alles ab hier wird erst auf der nächsten Folie angezeigt +Text, den noch nicht jeder sehen soll +\end{frame} + +\begin{frame}{Animationen} +\only<2>{Text, den noch nicht jeder sehen soll} %Diesen Text nur auf der zweiten Version dieser Folie anzeigen +\only<1->{Irgendein Text über Vögel} %Diesen Text von der ersten bis zur letzten Version dieser Folie anzeigen +%Alternativen: \uncover, \visible, \invisible mit verschiedenen Eigenschaften (siehe Doku), oder \item<1>{Text} (für verschiedene Befehle möglich, siehe Doku) +%andere Angaben für Zahlen (overlay specification): <1,3,20> (auf Folie 1, 3 und 20), <1-3> (auf Folie 1 bis 3) +\end{frame} + +\section{Tuxe} + +\begin{frame}{Tuxe} + \hspace{-1cm} Tuxe sind toll, können aber nicht fliegen + %mit \vspace und \hspace kann man vertikal, bzw. horizontal, Freiraum einfügen - oder mit negativen Werten wegnehmen. Nur für Notfälle, da aber unentbehrlich +\end{frame} + +\end{document} diff --git a/kiss/emacs/Makefile b/kiss/emacs/Makefile new file mode 100644 index 0000000000000000000000000000000000000000..8edce6ff5fcc814cdae5d4458e476be749fc12bb --- /dev/null +++ b/kiss/emacs/Makefile @@ -0,0 +1,2 @@ +factorial: factorial.c + gcc -g -o factorial factorial.c diff --git a/kiss/emacs/factorial.c b/kiss/emacs/factorial.c new file mode 100644 index 0000000000000000000000000000000000000000..ee81bcb618c3da8e8b804082e711cda587421c74 --- /dev/null +++ b/kiss/emacs/factorial.c @@ -0,0 +1,13 @@ +# include <stdio.h> + +int main() +{ + int i, num, j; + printf ("Enter the number: "); + scanf ("%d", &num ); + + for (i=1; i<num; i++) + j=j*i; + + printf("The factorial of %d is %d\n",num,j); +} diff --git a/kiss/emacs/presentation-gui.el b/kiss/emacs/presentation-gui.el new file mode 100644 index 0000000000000000000000000000000000000000..165ed4b1ef5e8e879924e69a4294a563804ce2dc --- /dev/null +++ b/kiss/emacs/presentation-gui.el @@ -0,0 +1,9 @@ +;; Lesson One: Always disable tool- menu- and scrollbars. Here, +;; they're turned on for presentation purposes. +(dolist (mode '(menu-bar-mode tool-bar-mode)) (when (fboundp mode) (funcall mode 1))) + +;; So people can actually see what I'm doing. +(add-hook 'minibuffer-setup-hook 'my-minibuffer-setup) +(defun my-minibuffer-setup () + (set (make-local-variable 'face-remapping-alist) + '((default :height 1.7)))) diff --git a/kiss/freedom/freedomslides.org b/kiss/freedom/freedomslides.org new file mode 100644 index 0000000000000000000000000000000000000000..6511be5825c0f06116acbadf2b6631fd4fd53960 --- /dev/null +++ b/kiss/freedom/freedomslides.org @@ -0,0 +1,132 @@ +#+TITLE: Free Software, Free Society +#+AUTHOR: Milan Santosi +#+EMAIL: milan.santosi@gmail.com +#+DATE: 2012-04-12 Thu +#+DESCRIPTION: +#+KEYWORDS: +#+LANGUAGE: en +#+OPTIONS: H:3 num:t toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t +#+OPTIONS: TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:not-in-toc +#+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0 path:http://orgmode.org/org-info.js +#+EXPORT_SELECT_TAGS: export +#+EXPORT_EXCLUDE_TAGS: noexport +#+LINK_UP: +#+LINK_HOME: + +#+startup: oddeven +#+startup: beamer +#+LaTeX_CLASS: beamer +#+LaTeX_CLASS_OPTIONS: [bigger] +#+latex_header: \mode<beamer>{\usetheme{Copenhagen}} +#+BEAMER_FRAME_LEVEL: 2 + +#+COLUMNS: %20ITEM %13BEAMER_env(Env) %6BEAMER_envargs(Args) %4BEAMER_col(Col) %7BEAMER_extra(Extra) + + +* Introduction +** Overview +- Understanding software +- What are the four freedoms of free software? +- What's the difference between Open Source and Free Software? + +* What is Software? +** Considerations about Software +- Source Code is a work of authorship, similar but not identical to + works of literature, a cooking recipe, or a musical piece. + - Side Note: Legally, works of authorship fall under Copyright. +- Some form of Instruction set to make a machine do something. +- Condensed knowledge, or information (hence IT). + +** Considerations about Knowledge +- Information has unique, properties, it is not a real commodity and + it cannot easily be contained. +- From an economic point of view, knowledge is a positive externality. + - Software, like all knowledge, should be accessible in a democratic + and nondiscriminatory way. + +** Intellectual "Property"? +- Umbrella term for copyright, patent, trademark and other + categories law. Those have virtually nothing in common. +- Commonly misused to actually mean anything. +- Implies claim to ownership, in particular of ideas. + +* Free Software Economics +** Market implications +- In a free market economy monopolies are usually seen as dangerous + and have to be avoided. + - Monopolies on public goods are really, really bad. +- Software still generates economic value; however, most is generated + by use, not sale of software. +- Software patents are in effect monopolies on ideas. + +* The Four Freedoms +** Freedom 0 +- You are free to run the program, for any purpose. + - Not as obvious as it might seem. +** Freedom 1 +- You are free to study how the program works, and change it so it + does your computing as you wish. Access to the source code is a + precondition for this. + - The user controls the software, not the other way around. +** Freedom 2 +- You are free to redistribute copies so you can help your neighbor. + - Few people realize how important sharing is, in particular sharing + of public goods. Contrary to common propaganda, ideas, techniques, stories, + melodies, images etc. are NOT hurt by sharing. On the contrary, + sharing keeps them alive. +** Freedom 3 +- You are free to distribute copies of your modified versions to + others. By doing this you can give the whole community a + chance to benefit from your changes. Access to the source code is a + precondition for this. + +* Examples of Licensing +** F/OSS Licensing +Openness of source is less decisive when one or more of the four +freedoms are formally or effectively taken away. +The term "Open Source" is usually used synonymous to Free Software, in +the past the term was coined to avoid misunderstandings. +*** GPL +- Copyleft, restrictive, enforces all four freedoms. +*** BSD +- Non-copyleft, permissive, not all rights have to be conserved. + +* Conclusion +** On Flash +Flash is not actually secret but adobe keeps making new versions which +are different, faster than anyone can keep up and make free software +to play those files, so it has almost the same effect as being secret. + +** On non-free formats +It's bad to distribute recordings in mp3 or any other proprietary +format. Although there is free software to handle those formats, +distributors legally can not include support for such formats because +they are patented in many countries. Modern distributions of GNU/Linux +facilitate use of these formats by letting the user decide, thereby +avoiding legal issues. Whether or not this is a good thing is a +question of moral. On the one hand, many of these formats have become +pseudo-standards and for most users, the short term usability aspect +prevails. On the other hand, it's a very bad idea if we were hoping to +get rid of proprietary formats eventually. + + +** Wrap-Up +- If you want to support freedom, don't distribute recordings in + non-free formats. Please use formats such as .ogg, .webm, or .png. + +- In an epoch when governments work for the mega corporations instead + of reporting to their citizens, every technological change can be + taken advantage of to reduce our freedom. + +** Further reading +- Richard Stallman: The GNU Manifesto +- Ben Klemens: Math you can't use +- Eric S. Raymond: The Cathedral and the Bazaar +- Stephan N. Kinsella: Against Intellectual Property +*** Websites +- http://stopsoftwarepatents.com +- http://defectivebydesign.org +- http://patentabsurdity.com +- http://fsf.org + + diff --git a/kiss/freedom/freedomslides.pdf b/kiss/freedom/freedomslides.pdf new file mode 100644 index 0000000000000000000000000000000000000000..7eafaefd05fe9ba94cad8ee54b571cc217449cfa Binary files /dev/null and b/kiss/freedom/freedomslides.pdf differ diff --git a/kiss/freedom/freedomslides.tex b/kiss/freedom/freedomslides.tex new file mode 100644 index 0000000000000000000000000000000000000000..1c4a4436e3effb71cd955d3ce3301f4c855be654 --- /dev/null +++ b/kiss/freedom/freedomslides.tex @@ -0,0 +1,252 @@ +% Created 2012-04-13 Fri 15:20 +\documentclass[bigger]{beamer} +\usepackage[utf8]{inputenc} +\usepackage[T1]{fontenc} +\usepackage{fixltx2e} +\usepackage{graphicx} +\usepackage{longtable} +\usepackage{float} +\usepackage{wrapfig} +\usepackage{soul} +\usepackage{textcomp} +\usepackage{marvosym} +\usepackage{wasysym} +\usepackage{latexsym} +\usepackage{amssymb} +\usepackage{hyperref} +\tolerance=1000 +\mode<beamer>{\usetheme{Copenhagen}} +\providecommand{\alert}[1]{\textbf{#1}} + +\title{Free Software, Free Society} +\author{Milan Santosi} +\date{2012-04-12 Thu} +\hypersetup{ + pdfkeywords={}, + pdfsubject={}, + pdfcreator={Emacs Org-mode version 7.8.08}} + +\begin{document} + +\maketitle + +\begin{frame} +\frametitle{Outline} +\setcounter{tocdepth}{3} +\tableofcontents +\end{frame} + + + + +\section{Introduction} +\label{sec-1} +\begin{frame} +\frametitle{Overview} +\label{sec-1-1} + +\begin{itemize} +\item Understanding software +\item What are the four freedoms of free software? +\item What's the difference between Open Source and Free Software? +\end{itemize} +\end{frame} +\section{What is Software?} +\label{sec-2} +\begin{frame} +\frametitle{Considerations about Software} +\label{sec-2-1} + +\begin{itemize} +\item Source Code is a work of authorship, similar but not identical to + works of literature, a cooking recipe, or a musical piece. +\begin{itemize} +\item Side Note: Legally, works of authorship fall under Copyright. +\end{itemize} +\item Some form of Instruction set to make a machine do something. +\item Condensed knowledge, or information (hence IT). +\end{itemize} +\end{frame} +\begin{frame} +\frametitle{Considerations about Knowledge} +\label{sec-2-2} + +\begin{itemize} +\item Information has unique, properties, it is not a real commodity and + it cannot easily be contained. +\item From an economic point of view, knowledge is a positive externality. +\begin{itemize} +\item Software, like all knowledge, should be accessible in a democratic + and nondiscriminatory way. +\end{itemize} +\end{itemize} +\end{frame} +\begin{frame} +\frametitle{Intellectual ``Property''?} +\label{sec-2-3} + +\begin{itemize} +\item Umbrella term for copyright, patent, trademark and other + categories law. Those have virtually nothing in common. +\item Commonly misused to actually mean anything. +\item Implies claim to ownership, in particular of ideas. +\end{itemize} +\end{frame} +\section{Free Software Economics} +\label{sec-3} +\begin{frame} +\frametitle{Market implications} +\label{sec-3-1} + +\begin{itemize} +\item In a free market economy monopolies are usually seen as dangerous + and have to be avoided. +\begin{itemize} +\item Monopolies on public goods are really, really bad. +\end{itemize} +\item Software still generates economic value; however, most is generated + by use, not sale of software. +\item Software patents are in effect monopolies on ideas. +\end{itemize} + +\end{frame} +\section{The Four Freedoms} +\label{sec-4} +\begin{frame} +\frametitle{Freedom 0} +\label{sec-4-1} + +\begin{itemize} +\item You are free to run the program, for any purpose. +\begin{itemize} +\item Not as obvious as it might seem. +\end{itemize} +\end{itemize} +\end{frame} +\begin{frame} +\frametitle{Freedom 1} +\label{sec-4-2} + +\begin{itemize} +\item You are free to study how the program works, and change it so it + does your computing as you wish. Access to the source code is a + precondition for this. +\begin{itemize} +\item The user controls the software, not the other way around. +\end{itemize} +\end{itemize} +\end{frame} +\begin{frame} +\frametitle{Freedom 2} +\label{sec-4-3} + +\begin{itemize} +\item You are free to redistribute copies so you can help your neighbor. +\begin{itemize} +\item Few people realize how important sharing is, in particular sharing + of public goods. Contrary to common propaganda, ideas, techniques, stories, + melodies, images etc. are NOT hurt by sharing. On the contrary, + sharing keeps them alive. +\end{itemize} +\end{itemize} +\end{frame} +\begin{frame} +\frametitle{Freedom 3} +\label{sec-4-4} + +\begin{itemize} +\item You are free to distribute copies of your modified versions to + others. By doing this you can give the whole community a + chance to benefit from your changes. Access to the source code is a + precondition for this. +\end{itemize} +\end{frame} +\section{Examples of Licensing} +\label{sec-5} +\begin{frame} +\frametitle{F/OSS Licensing} +\label{sec-5-1} + +Openness of source is less decisive when one or more of the four +freedoms are formally or effectively taken away. +The term ``Open Source'' is usually used synonymous to Free Software, in +the past the term was coined to avoid misunderstandings. +\begin{itemize} + +\item GPL +\label{sec-5-1-1}% +\begin{itemize} +\item Copyleft, restrictive, enforces all four freedoms. +\end{itemize} + +\item BSD +\label{sec-5-1-2}% +\begin{itemize} +\item Non-copyleft, permissive, not all rights have to be conserved. +\end{itemize} + +\end{itemize} % ends low level +\end{frame} +\section{Conclusion} +\label{sec-6} +\begin{frame} +\frametitle{On Flash} +\label{sec-6-1} + +Flash is not actually secret but adobe keeps making new versions which +are different, faster than anyone can keep up and make free software +to play those files, so it has almost the same effect as being secret. +\end{frame} +\begin{frame} +\frametitle{On non-free formats} +\label{sec-6-2} + +It's bad to distribute recordings in mp3 or any other proprietary +format. Although there is free software to handle those formats, +distributors legally can not include support for such formats because +they are patented in many countries. Modern distributions of GNU/Linux +facilitate use of these formats by letting the user decide, thereby +avoiding legal issues. Whether or not this is a good thing is a +question of moral. On the one hand, many of these formats have become +pseudo-standards and for most users, the short term usability aspect +prevails. On the other hand, it's a very bad idea if we were hoping to +get rid of proprietary formats eventually. +\end{frame} +\begin{frame} +\frametitle{Wrap-Up} +\label{sec-6-3} + +\begin{itemize} +\item If you want to support freedom, don't distribute recordings in + non-free formats. Please use formats such as .ogg, .webm, or .png. +\item In an epoch when governments work for the mega corporations instead + of reporting to their citizens, every technological change can be + taken advantage of to reduce our freedom. +\end{itemize} +\end{frame} +\begin{frame} +\frametitle{Further reading} +\label{sec-6-4} + +\begin{itemize} +\item Richard Stallman: The GNU Manifesto +\item Ben Klemens: Math you can't use +\item Eric S. Raymond: The Cathedral and the Bazaar +\item Stephan N. Kinsella: Against Intellectual Property +\end{itemize} +\begin{itemize} + +\item Websites +\label{sec-6-4-1}% +\begin{itemize} +\item \href{http://stopsoftwarepatents.com}{http://stopsoftwarepatents.com} +\item \href{http://defectivebydesign.org}{http://defectivebydesign.org} +\item \href{http://patentabsurdity.com}{http://patentabsurdity.com} +\item \href{http://fsf.org}{http://fsf.org} +\end{itemize} + + +\end{itemize} % ends low level +\end{frame} + +\end{document} \ No newline at end of file diff --git a/kiss/gaming/Spielen_unter_Linux.pdf b/kiss/gaming/Spielen_unter_Linux.pdf new file mode 100644 index 0000000000000000000000000000000000000000..e9a9c3aea208c412ff5bc737f33c1f0ed2e11ce3 Binary files /dev/null and b/kiss/gaming/Spielen_unter_Linux.pdf differ diff --git a/kiss/gaming/Spielen_unter_Linux.tex b/kiss/gaming/Spielen_unter_Linux.tex new file mode 100644 index 0000000000000000000000000000000000000000..53d8effb683c85f771eeb1c55c01017de8857175 --- /dev/null +++ b/kiss/gaming/Spielen_unter_Linux.tex @@ -0,0 +1,172 @@ +\documentclass{beamer} +\usepackage[ngerman]{babel} +\usepackage[utf8x]{inputenc} +\usepackage{amsmath,amsfonts,amssymb,hyperref} +\usetheme{Boadilla} +\usecolortheme{whale} +%/\setbeamercovered{transparent} +\beamertemplatenavigationsymbolsempty +\setbeamertemplate{footline}[frame number] + +\title{Spielen unter Linux} +\subtitle{Daddeln mit dem Pinguin} +\author{Daniel Schulte} +\AtBeginSection[] +{ +\begin{frame} +\tableofcontents[currentsection] +\end{frame} +} + +\begin{document} + +\frame{\titlepage} +\frame{ + \frametitle{Inhalt} + \tableofcontents +} + +\section{Woher die Spiele nehmen?} +\begin{frame}[<+->]{Open-Source-Spiele}{Kostenloser, freier Spaß} +\begin{itemize} + \item Aus den Paketquellen + \item Von den Projektwebseiten +\end{itemize} +\begin{exampleblock}{Hinweis} + Einige Spiele haben eigene Repositories, so dass man Updates automatisch erhalten kann. +\end{exampleblock} +\end{frame} + +\begin{frame}[<+->]{Open-Source-Spiele}{Kostenloser, freier Spaß} +Einige Open-Source-Spiele: +\begin{itemize} +\item FreeCiv - Ein Civilization Clone +\item SuperTux - Ein Jump and Rum Spiel +\item TuxRacer - Ein Rennspiel +\item Cube2: Sauerbraten - Ein Egoshooter +\item Scorched 3D - Ein 3D Actionspiel +\item Nexuiz - Ein Egoshooter +\item Warmux - Ein Worms-artiges Spiel +\item World of Padman - Ein Egoshooter +\item Stepmania - Ein Spiel ähnlich zu ``Dance Dance Revolution" +\item Frozen Bubble - Ein Puzzlespiel +\end{itemize} +\end{frame} + +\begin{frame}[<+->]{Demos}{Kostenloses zum Anfixen} +\begin{itemize} + \item Von der Seite des Publishers + \item Hier auf der Veranstaltung (ich habe einen USB-Stick und dessen Inhalt auf diesem Rechner) +\end{itemize} +\end{frame} + +\begin{frame}[<+->]{Von Distributoren} +\begin{itemize} + \item Spezielle Linux-Gaming-Seiten + \begin{itemize} + \item Desura \url{http://desura.com} (Das ist wie Steam, nur auch unter Linux verfügbar) + \item Indievania \url{http://indievania.com} + \item Gameolith \url{http://gameolith.com} + \end{itemize} + \item Humble Bundle + \begin{itemize} + \item Unregelmäßig und zeitlich begrenzt erscheinend. + \item Kollektion aus meist 4 oder mehr Spielen + \item Man kann den Preis selbst aussuchen + \item Die Spiele stehen dabei meistens (mir ist nur eine Ausnahme bekannt) für Linux, Windows und Mac zur Verfügung. + \end{itemize} +\end{itemize} +\end{frame} + +\begin{frame}[<+->]{Emulatoren, DOS-Box, ScummVM} +\begin{itemize} + \item Mittels (Konsolen-) Emulatoren kann man auch alte oder nicht PC Spiele unter Linux spielen, z.B. ZSNES, mednafen, MAME + \item Mit DOS-Box kann man Spiele für DOS spielen + \item ScummVM ist eine Möglichkeit alte Adventures zu Spiele. Einige namhafte Beispiele sind ``Zak McKraken'' oder ``Day of the Tentacle" +\end{itemize} +\end{frame} + +\begin{frame}[<+->]{Browsergames} +\begin{itemize} + \item BrowserQuest\\Ein HTML5 Fantasy-MMO von Mozilla (\url{http://browserquest.mozilla.org}) + \item Diverse ``Aufbauspiele", z.B. Travian, OGame, Die Stämme, Siedler Online, etc\dots + \item Jede Menge Flash Spiele\dots +\end{itemize} +\end{frame} + +\section{Windowsspiele mit Wine zocken} + +\begin{frame}[<+->]{Was ist Wine?}{Wine is not an emulator} +\begin{itemize} + \item Wine ist eine Möglichkeit viele Windows Spiele unter Linux zu spielen + \item Wine übersetzt API-Aufrufe in eine für Linux verständliche bzw. ausführbare Form, also z.B. DirectX Befehle in OpenGl Befehle + \item Der Name Wine ist ein rekursives Akronym und bedeutet ``Wine is not an emulator". +\end{itemize} +\end{frame} + +\begin{frame}[<+->][fragile]{Spielen mit Wine}{Wie geht das?} +\begin{itemize} + \item Ersteinmal das Spiel installieren: \verb+wine /pfad/zum/installer/setup.exe+ + \item Danach das Spiel starten + \begin{itemize} + \item Starten der Desktopverknüpfung (sofern vorhanden) + \item Starten per Terminal/Konsole: \verb+wine ~/.wine/drive_c/pfad/zum/spiel.exe+ + \end{itemize} +\end{itemize} +\begin{alertblock}{Wenn etwas schief geht} +\begin{itemize} + \item \url{http://winehq.org} + \item \url{http://wiki.winehq.org/FAQ} +\end{itemize} +\end{alertblock} +\end{frame} + +\section{Allgemeine Seiten zum Thema: Spielen unter Linux} + +\begin{frame}[<+->]{Allgemeine Seiten zum Thema: Spielen unter Linux} +\begin{itemize} + \item \url{http://www.linux-gamers.net} + \item \url{http://linuxgaming.de} + \item \url{http://www.holarse-linuxgaming.de} + \item \url{http://happypenguin.org} + \item \url{http://www.penguspy.com} +\end{itemize} +\end{frame} + +\section{Demo der Demo} + +\begin{frame}[<+->]{Demo}{SpaceChem} +SpaceChem +\begin{itemize} + \item Entwickler: Zachtronics Industries + \item Genre: Puzzle / Strategie + \item Preis: \$10 + \item Homepage: \url{http://www.spacechemthegame.com} + \item Bezugsquelle: Homepage, Steam (Windows) +\end{itemize} +\end{frame} + +\begin{frame}{Demo}{SpaceChem} +\begin{block}{Demo} + SpaceChem +\end{block} +\end{frame} + +\begin{frame}[<+->][fragile]{Demo}{World of Goo} +World of Goo +\begin{itemize} + \item Entwickler: 2D Boy + \item Genre: Action / Puzzle + \item Preis: 20\$ + \item Homepage: \url{http://http://2dboy.com/games.php} + \item Bezugsquelle: Homepage +\end{itemize} +\end{frame} + +\begin{frame}{Demo}{World of Goo} +\begin{block}{Demo} +World of Goo +\end{block} +\end{frame} + +\end{document} diff --git a/kiss/net-datacopy/Net-Datacopy.pdf b/kiss/net-datacopy/Net-Datacopy.pdf new file mode 100644 index 0000000000000000000000000000000000000000..9e6cc975673183d602e94a4234e98956f4e29cc0 Binary files /dev/null and b/kiss/net-datacopy/Net-Datacopy.pdf differ diff --git a/kiss/net-datacopy/Net-Datacopy.tex b/kiss/net-datacopy/Net-Datacopy.tex new file mode 100644 index 0000000000000000000000000000000000000000..4960db7aaf3cb861c416820c83d624bc2fb3fdb3 --- /dev/null +++ b/kiss/net-datacopy/Net-Datacopy.tex @@ -0,0 +1,289 @@ +\documentclass[10pt]{beamer} +\usepackage[OT1]{fontenc} +\usepackage[utf8]{inputenc} +%\usepackage[ngerman]{babel} +%\usepackage[english]{babel} +\usepackage{graphicx} +\usepackage{chemarrow} +\usepackage{amsmath} + +\newcommand{\image}[3]{\begin{figure}[H]\centering \includegraphics[width={#2}]{#1}\label{#3} \end{figure}} %Einbringen von Bildern +\newcommand{\picframe}[2]{\begin{frame}\centering \includegraphics[width=\textwidth]{#1}\\\begin{center}#2\end{center} \end{frame}} +%\usepackage[numbers,square]{natbib} +\def\newblock{\hskip .11em plus.33em minus.07em}%verhinder \newblock fehler mit bib +\usetheme{Hannover} %theme - select from http://www.hartwork.org/beamer-theme-matrix/ +\usecolortheme{dove} %farbe +\usepackage{lmodern} %schriftart +%\usepackage{mathtools} +\usepackage{pst-pdf} + +\usepackage{multicol} +%\usepackage{rotating} + +\usepackage{wasysym} +%\smiley +%\frownie + +\setbeamertemplate{blocks}[rounded][shadow=false] + +\defbeamertemplate*{footline}{infolines theme}{% +\hspace*{2ex}\raisebox{1.5ex}[-1.5ex]{% +\tiny\insertframenumber{}/\inserttotalframenumber}% +}% zahl in footline + + +\setbeamertemplate{bibliography item}[text] + + + +\setbeamertemplate{title page}{ + \centering + \begin{block}{ + \centering + \textbf{\large{\inserttitle}} + } + \insertsubtitle + \end{block} + \vspace{2ex} + %\begin{figure}[H]\centering \includegraphics[width=0.9\textwidth]{images/bridges.jpg}\end{figure} + \insertauthor\\[1ex] + \insertdate\\[1ex] +} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\begin{document} +\title[Datentransport im Netzwerk]{Datentransport im Netzwerk} +\subtitle{} +\author[]{Martin Süfke} +\date{12.04.2012} + + + +\begin{frame} +\titlepage +\end{frame} +%\textsl{•} + +\section{Fragestellung} +\begin{frame}{Warum Netzwerk ?} + +{\LARGE Fragestellung} + +\begin{itemize}[<+->] +\item 20 MB Daten +\item auf 10 PCs verteilen +\item 16x in 8 Stunden (Experiment) +\end{itemize} + + +\uncover<+->{ +{\LARGE Lösungen} + +\begin{itemize}[<+->] +\item USB-Stick +\item Email +\item Instant-Messager +\item Filehoster (RWTH Giga-Move) +\item Samba ``Windows-Netzwerk`" +\item \textbf{ssh, scp} +\item rsync, svn, git +\end{itemize} +} % /uncover + +\end{frame} + +\section{Netzwerk} +\begin{frame}{IP-Netzwerke} + +IP-Addressen: \textbf{IPv4} + + +Addressvergabe: \textbf{DHCP} -- automatisch + + +Private Addressen -- ``per Hand`" + +\begin{itemize} +\item 192.168.0.0 - 192.168.255.255 +\item 172.16.0.0 - 172.31.255.255 +\item 10.0.0.0 - 10.255.255.255 +\end{itemize} + +\textbf{Achtung:}Addresskonflikte! +\end{frame} + + + + +\begin{frame}{Addressvergabe} + +Theorie im \textbf{IPv4} +\begin{itemize}[<+->] +\item Netzwerkblock: 192.168.x.y \textbf{/24} +\item Netzwerkmaske: $2^{(32-24)} = 2^8 = 256$ Addressen im Netzwerk +\item Reserviert: 192.168.x\textbf{.0} , 192.168.x\textbf{.255} +\item Tool: \textbf{ipcalc} +\end{itemize} + +Beispiel: +\begin{itemize}[<+->] +\item Netzwerk: 192.168\textbf{.43}.y +\item Rechner: 192.168.\textbf{43}.1 -- 192.168.\textbf{43}.254 +\end{itemize} + +Pro Rechner eine Address wählen: +\begin{itemize}[<+->] +\item 192.168.43\textbf{.1} +\item 192.168.43\textbf{.2} +\end{itemize} + +Addresse einstellen im ``NetworkManager`" +\end{frame} + + +\begin{frame}{SSH} +\begin{itemize}[<+->] +\item Server $\longleftrightarrow$ Client +\item Client ist idR. installiert: \textbf{ssh}, \textbf{scp} +\item Server installieren: \textbf{sudo apt-get install openssh-server} $\rightarrow$ startet automatisch +\end{itemize} +\end{frame} + + + + +\begin{frame}{TCP-Ports} + +Bekannte Ports stehen in \textit{/etc/services} +\begin{itemize}[<+->] +\item http: tcp port 80 +\item https: tcp port 443 +\item Samba: tcp port 137,138,139,445 +\item Email: tcp 25, 110 ; 465, 995 993 ; \dots +\item \textbf{ssh}: tcp port 22 +\end{itemize} + +\end{frame} + +\begin{frame}{Firewall} + +Standard: + +\qquad Blockt \textbf{eingehende} Verbindungen auf \textbf{allen} Ports. + +Ubuntu: +\begin{itemize}[<+->] +\item \textbf{ufw} an der Konsole +\item \textbf{gufw} grafisch +\end{itemize} +\end{frame} + +\begin{frame}{Firewall freigeben} +\begin{itemize}[<+->] +\item \textbf{sudo -i} \qquad -- root werden. +\item \textbf{ufw status} \qquad -- Firewall an? +\item \textbf{ufw app list} \qquad -- Registrierte anwendungen anzeigen +\item ``apps`" kommen aus \textit{/etc/ufw/applications.d/\dots} +\item \textbf{ufw allow from 192.168.43.0/24 to any app OpenSSH} +\end{itemize} +\end{frame} + + +\begin{frame}{User anlegen} +\begin{itemize}[<+->] +\item \textbf{sudo -i} \qquad -- root werden. +\item \textbf{useradd -c "User fuer upload-Zwecke" -G users -m upload} \qquad -- User für upload zufügen +\item \textbf{passwd upload} \qquad -- Passwort vergeben +\item \textbf{usermod -L upload} \qquad -- später: User sperren +\item \textbf{usermod -U upload} \qquad -- später: User entsperren +\end{itemize} +\end{frame} + +\begin{frame}{SSH benutzen} +Ziel: Einloggen von 192.168.43\textbf{.1} bei 192.168.43\textbf{.2} +\vspace{1cm} + +\uncover<+->{ +Am Rechner 192.168.43\textbf{.1} +\begin{itemize}[<+->] +\item \textbf{ssh upload@192.168.43.2} +\item Passwort eingeben. +\item Jetzt arbeitet man an der Konsole von 192.168.43\textbf{.2} ! +\end{itemize} +} +\end{frame} + + + +\begin{frame}{Daten kopieren mit SCP} +Ziel: Kopieren der Datei \textit{/home/upload/Test.txt} von 192.168.43\textbf{.2} nach 192.168.43\textbf{.1} +\vspace{1cm} + +\uncover<+->{ +Am Rechner 192.168.43\textbf{.1} +\begin{itemize}[<+->] +\item \textbf{scp upload@192.168.43.2:/home/upload/Test.txt .} +\item Passwort eingeben. +\item Datei wird kopiert. +\end{itemize} +} +\end{frame} + + +\begin{frame}{SSH-Keys} +\uncover<+->{ +Sichere Authentifikation + +Keine Passwörter mehr tippen + +``Userverwaltung`" +} + +\vspace{1cm} +\uncover<+->{ +Am Rechner 192.168.43\textbf{.1} +\begin{itemize}[<+->] +\item \textbf{ssh-keygen -t rsa} \qquad -- Erzeugt ein private/public Key-Paar +\item \textbf{ssh-copy-id upload@192.168.43.2} +\item Passwort eingeben +\item Public-Datei des Key-Paares wird kopiert. +\item Ergebnis: 192.168.43\textbf{.2} \textit{/home/upload/.ssh/authorized\_keys} enthält den Public Key von 192.168.43\textbf{.1} +\end{itemize} +} + +\end{frame} + +\begin{frame}{SSH/SCP mit Keys} +Ziel: Kopieren der Datei \textit{/home/upload/Test.txt} von 192.168.43\textbf{.2} nach 192.168.43\textbf{.1} +\vspace{1cm} + +\uncover<+->{ +Am Rechner 192.168.43\textbf{.1} +\begin{itemize}[<+->] +\item \textbf{scp upload@192.168.43.2:/home/upload/Test.txt .} +\item Passwort-Eingabe unnötig ! +\item Datei wird kopiert. +\end{itemize} +} +\end{frame} + +\begin{frame}{ALUG} +\begin{LARGE} +www.alug.de +\end{LARGE} + +\begin{itemize}[<+->] +\item Jeden Mittwoch von ca. 20:00 bis Open End, ca. 02:00 +\item ``Naturwissenschaftlicher Debattierklub mit Schwerpunkt Computer`" +\item Linux, Solaris, Unix, MacOS, Windows: alle Willkommen + +\item Kein Verein, keine Mitgliedschaft. +\item Dabei ist, wer da ist. ;-) +\item \textbf{Ort} Vielharmonie, Pontstr. 101-105 +\item \textbf{Chat} IRCnet \#alug +\item \textbf{Mailingliste} siehe www.alug.de +\item \qquad \qquad -- \textbf{Danke} -- +\end{itemize} + +\end{frame} + +\end{document} \ No newline at end of file diff --git a/kiss/sage/cantor.png b/kiss/sage/cantor.png new file mode 100644 index 0000000000000000000000000000000000000000..5f44c7f15b365cbedfdb238fd8a9aacbabb5e798 Binary files /dev/null and b/kiss/sage/cantor.png differ diff --git a/kiss/sage/sage.pdf b/kiss/sage/sage.pdf new file mode 100644 index 0000000000000000000000000000000000000000..60eba8915fb36c676cc8d70d3f1d895b5b4f4209 Binary files /dev/null and b/kiss/sage/sage.pdf differ diff --git a/kiss/sage/sage.tex b/kiss/sage/sage.tex new file mode 100644 index 0000000000000000000000000000000000000000..385944a1307e571f52c33628ef75c79b9e7117d2 --- /dev/null +++ b/kiss/sage/sage.tex @@ -0,0 +1,288 @@ +\documentclass{beamer} + +\usepackage[ngerman]{babel} + +\usepackage{savesym} + +\usepackage{kpfonts} %varprod + +\savesymbol{approx} +\savesymbol{colonapprox} +\savesymbol{colonsim} + +\usepackage{colonequals} %colonequals ≔ +\usepackage{ulsy} %blitza + +\newcommand{\ccode}[1]{\texttt{\lstinline[basicstyle=]!#1!}} + +\usepackage{iftex} +\ifPDFTeX + \usepackage[utf8]{inputenc} + \usepackage[T1]{fontenc} + \usepackage{uniinput} + \usepackage{lmodern} + \usepackage{amsmath} + \usepackage{amssymb} +\else + \ifLuaTeX + \usepackage{luatextra} + \usepackage{amsmath} + \usepackage{amssymb} + \usepackage{lmodern} + \usepackage{uniinput-lualatex} + \usepackage{fontspec} + \fi +\fi + +\usepackage{amsthm} + +\usepackage{sagetex} + +\beamertemplatenavigationsymbolsempty +\usetheme{Anadyr} +\newcommand{\hideinstitute}{} +\renewcommand{\footerauthorwidth}{0.25} +\renewcommand{\footertitlewidth}{0.5} +\renewcommand{\footerdatewidth}{0.25} +\newcommand{\blackframe}{{\setbeamercolor{normal text}{bg=black!100} \frame[plain]{}}} + +\usepackage{hyperref} + +\usepackage{float} + +\usepackage{tikz} +\usetikzlibrary{shapes,arrows} + +\newcommand{\symdiff}{\ensuremath{\ominus}} % some math symbols +\newcommand{\dsum}{\ensuremath{\bigoplus}} +\newcommand{\ps}[1]{\ensuremath{\mathcal P\left(#1\right)}} + +\savesymbol{corollary} +\savesymbol{lemma} +\savesymbol{theorem} +\newcounter{satz} +\newcounter{definition} +\newtheorem{lemma}[satz]{Lemma} +\newtheorem{corollary}[satz]{Korollar} +\newtheorem{theorem}[satz]{Satz} +\theoremstyle{definition} +\newtheorem{defi}[definition]{Definition} + +\title{Kurzeinführung Sage} +\author{Jonathan Schmidt-Dominé} +\institute{RWTH Aachen} + +\setcounter{tocdepth}{1} % short tocs are usually better in presentations + +\begin{document} + +\frame{ + \titlepage +} + +\frame[allowframebreaks]{ + \tableofcontents +} + +\section{Allgemeines} +\subsection{Was ist Sage?} +\begin{frame} + \begin{itemize} + \item<+-> Computeralgebrasystem, Computeralgebra im weitesten Sinne + \item<+-> Verwendung üblicher Programmiersprache: Python + \item<+-> Frei (und kostenlos) + \item<+-> Integriert Features verschiedenster anderer freier Software: Maxima, R, Singular, GAP, … + \end{itemize} +\end{frame} + +\subsection{Frontends} +\begin{frame} + \begin{block}{Web-Frontend} + \begin{itemize} + \item Arbeitet als lokaler HTTP-Server\pause + \item Über Browser zu bedienen, mit MathJax + \end{itemize} + \end{block} + \pause + \begin{block}{Cantor} + \begin{center} + \includegraphics[scale=0.3]{./cantor.png} + % cantor.png: 855x672 pixel, 96dpi, 22.62x17.78 cm, bb= + \end{center} + \end{block} +\end{frame} + +\section{Grundlagen} +\subsection{Umgang mit Variablen und Ausdrücken} +\begin{frame}[fragile] + \begin{itemize} + \item<+-> Alle Ausdrücke sind ganz normale Python-Objekte + \item<+-> Symbolischer Ausdrück erzeugt durch \ccode{var} (wenn nicht standardmäßig vorhanden) + \begin{sageblock} + var('x,y') + \end{sageblock} + \item<+-> Rechnen liefert symbolische Ausdrücke + \begin{sageblock} + product = x*y + \end{sageblock} + \item<+-> Einsetzen möglich: + \begin{sageblock} + product(y=1) + \end{sageblock} + ergibt + \[ + \sage{(x*y)(y=1)} + \] + \item<+-> Hilfe + \begin{verbatim} + plot? + \end{verbatim} + \end{itemize} +\end{frame} + +\subsection{Gleichungen lösen} +\begin{frame}[fragile] + \begin{itemize} + \item<+-> Gleichung lösen mittels \ccode{solve}: + \begin{sagesilent}var('n')\end{sagesilent} + \begin{sageblock} + s=solve(sin(n*x)==1, x) + \end{sageblock} + \[ + \sage{s[0]} + \] + \item<+-> Gleichungssystem: + \begin{sageblock} + s=solve([x + 2*y == 1, x - y == 0], (x, y)) + \end{sageblock} + \[ + \sage{s[0]} + \] + \end{itemize} +\end{frame} + +\subsection{Plots} +\begin{frame}[fragile] + \begin{block}{Kreishälfte} + \begin{sageblock} + r=2 + p=plot(sqrt(r^2 - x^2), (x, -r, r)) + \end{sageblock} + \begin{center} + \sageplot[scale=.4]{p} + \end{center} + \end{block} +\end{frame} + + + +\section{Analysis} +\subsection{Differentiation} +\begin{frame}[fragile] +\begin{itemize} + \item<+-> Erste Ableitung + \begin{sageblock} + d=diff(x^3, x) + \end{sageblock} + \[ + \sage{d} + \] + \item<+-> Zweite Ableitung + \begin{sageblock} + d=diff(x^3, x, x) # oder diff(x^3, x, 2)s + \end{sageblock} + \[ + \sage{d} + \] + \item<+-> Mehrere Richtungen + \begin{sagesilent} + var('z') + \end{sagesilent} + \begin{sageblock} + f(x,y) = [x*y*z, x*y^2*z] + d = diff(f) + \end{sageblock} + \[ + \sage{d} + \] + \end{itemize} +\end{frame} + + +\subsection{Grenzwerte} +\begin{frame}[fragile] + \begin{itemize} + \item<+-> Geometrische Reihe + \begin{sagesilent} + var('n,b') + \end{sagesilent} + \begin{sageblock} + assume(b>1) + l = sum(1/b^n, n, 1, infinity) + \end{sageblock} + \[ + l = \sage{l} + \] + \item<+-> Asymptote + \begin{sageblock} + l = limit(log(exp(x) + exp(-x)) / x, x=infinity) + \end{sageblock} + \[ + l=\sage{l} + \] + \end{itemize} +\end{frame} + +\subsection{Gewöhnliche Differentialgleichung} + +\begin{frame}[fragile] +\begin{block}{Harmonischer Oszillator} +\begin{sagesilent} + f = function('f', x) + omega = var('omega') +\end{sagesilent} + +\begin{sageblock} + assume(omega != 0) + s=desolve(diff(diff(f, x), x) == -omega^2*f, f, ivar=x) +\end{sageblock} +\[ + \sage{s} +\] +\begin{center} + \sageplot[scale=0.3]{plot(s(omega=1, k1=1, k2=0), (x, 0, 2*pi))} +\end{center} +\end{block} +\end{frame} + +\section{Abstraktes} +\subsection{Zahlbereiche etc.} +\begin{frame}[fragile] + \begin{itemize} + \item<+-> Ganze Zahlen \ccode{ZZ} + \item<+-> Rationale Zahlen \ccode{QQ} + \item<+-> Gleitkommazahlen mit gewisser Anzahl an Stellen \ccode{RealField(n)} oder einfach \ccode{RR} + \begin{sageblock} + RF = RealField + s = RF(2)(2.2) + RF(2)(2.5) + \end{sageblock} + \[ + s = \sage{s} + \] + \item<+-> Komplexe Gleitkommazahlen \ccode{ComplexField(n)} oder einfach \ccode{CC} + \item<+-> Polynome \ccode{QQ['x']} + \item<+-> Restklassenringe \ccode{ZZ.quotient(n*ZZ)} + \begin{sageblock} + ZZ5 = ZZ.quotient(5*ZZ) + s = ZZ5(3) + ZZ5(4) + \end{sageblock} + \[ + s = \sage{s} + \] + + + \end{itemize} + +\end{frame} + +\end{document}