core.tex 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395
  1. \documentclass[aspectratio=169]{beamer}
  2. % get rid of clickable beamer buttons
  3. \beamertemplatenavigationsymbolsempty
  4. % parse most utf-8 correctly
  5. \usepackage[utf8]{inputenc}
  6. \usepackage[ngerman]{babel}
  7. % better graphics
  8. \usepackage{graphicx}
  9. \title{
  10. Eine Email-Client-App entwickeln\\
  11. \vspace{.1cm}
  12. \normalsize snailmail
  13. }
  14. \author{Noah Vogt \& Simon Hammer}
  15. \date{5. Februar 2022}
  16. \institute{Gymnasium Kirschgarten}
  17. \usetheme{Copenhagen}
  18. \usepackage{varwidth}
  19. \usepackage{graphicx,calc}
  20. \newlength\myheight
  21. \newlength\mydepth
  22. \settototalheight\myheight{Xygp}
  23. \settodepth\mydepth{Xygp}
  24. \setlength\fboxsep{0pt}
  25. \newcommand*\inlinegraphics[1]{
  26. \settototalheight\myheight{Xygp}
  27. \settodepth\mydepth{Xygp}
  28. \raisebox{-\mydepth}{\includegraphics[height=\myheight]{#1}}%
  29. }
  30. % for code snippits
  31. \usepackage{listings}
  32. \usepackage{color}
  33. \definecolor{dkgreen}{rgb}{0,0.6,0}
  34. \definecolor{gray}{rgb}{0.5,0.5,0.5}
  35. \definecolor{mauve}{rgb}{0.58,0,0.82}
  36. \definecolor{background}{rgb}{0.36,0.36,0.36}
  37. \lstset{
  38. numbersep=3pt,
  39. keywordstyle=\color{blue},
  40. commentstyle=\color{dkgreen},
  41. stringstyle=\color{mauve},
  42. breaklines=true,
  43. numbers=left,
  44. numberstyle=\scriptsize\color{black},
  45. frame=none,
  46. basicstyle = \small\ttfamily,
  47. breaklines=true
  48. breakatwhitespace=false,
  49. columns=flexible,
  50. xleftmargin=0.5cm,framesep=8pt,framerule=0pt,
  51. aboveskip=3mm,
  52. belowskip=3mm,
  53. }
  54. % Package to use videos
  55. %\usepackage{movie15}
  56. %\usepackage{media9}
  57. \usepackage{multimedia}
  58. %for table
  59. \usepackage{array}
  60. \newcolumntype{C}[1]{>{\centering\arraybackslash}m{#1}}
  61. %% Putting the background image in the frames
  62. \usebackgroundtemplate{%
  63. %\vbox to \paperheight{\hfil\hbox to \paperwidth{\hfil\includegraphics[width=1\paperwidth]{../../logo/version2grey.pdf}\hfil}\vfil}
  64. \hspace{5.2cm}\includegraphics[width=0.8\paperwidth]{../logo/version2grey.pdf}
  65. }
  66. \begin{document}
  67. \begin{frame}[plain]
  68. \maketitle
  69. \end{frame}
  70. \begin{frame}[plain]{Inhaltsverzeichniss}
  71. \tableofcontents
  72. \end{frame}
  73. \section{Vorwort}
  74. \subsection{Motivation}
  75. \begin{frame}[plain]{Motivation}
  76. \begin{varwidth}{.5\textwidth}
  77. \begin{figure}
  78. \centering
  79. \includegraphics[width=.9\textwidth]{media/macbook.jpg}
  80. \end{figure}
  81. \end{varwidth}
  82. \hfill
  83. \begin{varwidth}{.5\textwidth}
  84. \begin{itemize}\pause
  85. \item allgemeines Interesse\pause
  86. \item fehlender Edubs-Mail-Client\pause
  87. %\item fehlender Edubs-Mail-Client\inlinegraphics{media/baslerstab-1.jpg}\pause
  88. \item persönliche Bedürfnisse
  89. \end{itemize}
  90. \end{varwidth}
  91. \end{frame}
  92. \subsection{Ziele}
  93. \begin{frame}[plain]{Ziele}
  94. \begin{varwidth}{.5\textwidth}
  95. \begin{figure}
  96. \centering
  97. \includegraphics[width=.8\textwidth]{../logo/version3d.png}
  98. \end{figure}
  99. \end{varwidth}
  100. \hfill
  101. \begin{varwidth}{.5\textwidth}
  102. \begin{itemize}\pause
  103. \item Basisfunktionen \inlinegraphics{media/mail.png} \pause
  104. \item Account Manager\inlinegraphics{media/business.png}\pause
  105. \item Mobil und Modern\inlinegraphics{media/mobile.png}\pause
  106. \item Einstellungen\inlinegraphics{media/settings.png}\pause
  107. \item Schnell, Frei und Simpel\inlinegraphics{media/run.png}
  108. \end{itemize}
  109. \end{varwidth}
  110. \end{frame}
  111. \begin{frame}[plain]{Inspiration Design}
  112. \begin{varwidth}{.3\textwidth}\pause
  113. \begin{figure}
  114. \centering
  115. \includegraphics[width=.8\textwidth]{media/gmail-screenshot.png}\\
  116. \vspace{.5cm}
  117. \includegraphics[width=.25\textwidth]{media/gmail-logo.png}
  118. \end{figure}
  119. \end{varwidth}
  120. \hfill
  121. \begin{varwidth}{.3\textwidth}\pause
  122. \begin{figure}
  123. \centering
  124. \includegraphics[width=.8\textwidth]{media/k9-screenshot.png}\\
  125. \vspace{.5cm}
  126. \includegraphics[width=.25\textwidth]{media/k9-logo.png}
  127. \end{figure}
  128. \end{varwidth}
  129. \hfill
  130. \begin{varwidth}{.3\textwidth}\pause
  131. \begin{figure}
  132. \centering
  133. \includegraphics[width=.8\textwidth]{media/fairmail-screenshot.png}\\
  134. \vspace{.5cm}
  135. \includegraphics[width=.25\textwidth]{media/fairmail-logo.png}
  136. \end{figure}
  137. \end{varwidth}
  138. \end{frame}
  139. % TODO: consider using external player
  140. \section{Haupteil}
  141. \subsection{App mit Film}
  142. \begin{frame}[plain]{Demo}
  143. \center
  144. %\movie[externalviewer]{\includegraphics[width=.8\textwidth]{media/bug.png}}{media/appNoSound.mp4}
  145. %\includemovie[externalviewer, autoplay]{20pt}{20pt}{media/appNoSound.mp4}
  146. % \includemedia[
  147. % width=0.6\linewidth,height=0.45\linewidth,
  148. % activate=pageopen,
  149. % addresource=media/appNoSound.mp4,
  150. % flashvars={
  151. % source=media/appNoSound.mp4
  152. % &autoPlay=true
  153. % &scaleMode=letterbox
  154. %
  155. % }
  156. %]{}{SlideShow.swf}\pgfuseimage{../logo/version2.png
  157. \movie[externalviewer, autostart]{\includegraphics[height=0.8\textheight]{../logo/version3b.png}}{media/appNoSound.mp4}
  158. \end{frame}
  159. \subsection{App Inhalte}
  160. \begin{frame}[plain]{Was alles drin ist}
  161. \centering
  162. \begin{figure}[h]
  163. \includegraphics[height=.9\textheight]{media/errorMessage.png}
  164. \hspace{2.5cm}
  165. \pause
  166. \includegraphics[height=.9\textheight]{media/moreSettings.jpg}
  167. \end{figure}
  168. \end{frame}
  169. \subsection{App-Struktur}
  170. \begin{frame}[plain]{Allgemeine App-Struktur}
  171. \begin{varwidth}{.3\textwidth}
  172. \pause
  173. \begin{figure}
  174. \centering
  175. \includegraphics[height=.8\textheight]{../maturText/media/AppStructureFull.png}
  176. \end{figure}
  177. \end{varwidth}
  178. \hfill
  179. \begin{varwidth}{.5\textwidth}
  180. \begin{itemize}\pause
  181. \item User Interface \pause
  182. \item Server Connection \pause
  183. \item Database \pause
  184. \end{itemize}
  185. \end{varwidth}
  186. \end{frame}
  187. \begin{frame}[plain]{Database}
  188. \begin{block}{Allgemein}
  189. \textbf{Datenbank:} eine organisierte Ansammlung von strukturierter Information oder Daten
  190. \end{block}
  191. \begin{block}{in Der App}
  192. %:TODO finish this simon
  193. \pause
  194. \begin{tabular}{ |C{1.4Cm} |C{0.9Cm} |C{0.5Cm} |C{0.65Cm} |C{0.95Cm} |C{0.85Cm} |C{1.05Cm} |C{1.55Cm} |C{1.05Cm} |C{0.8Cm}|}
  195. %\begin{tabular}{ c c c c c c c c c c}
  196. \hline
  197. \multicolumn{10}{|c|}{Database Table} \\
  198. \hline
  199. \small{ObejctKey} &To & cc & bcc & from & date & subject & \small{textContent} & folder & seen \\
  200. \hline
  201. \pause
  202. 01 & \small{Sam} & null & null & \small{Anna} & \small{1.3.13} & Schule & Hallo Herr & Draft & true \\
  203. \hline
  204. \end{tabular}
  205. \end{block}
  206. \end{frame}
  207. \begin{frame}[plain]{Email Connection}
  208. %\centering
  209. %\includegraphics[width=.8\textwidth]{../maturText/media/connection-diagram.png}
  210. \includegraphics<1>[height=.8\textheight]{media/empty.png}
  211. \pause
  212. \includegraphics<2>[height=.8\textheight]{media/mail-diagram-01.png}
  213. \pause
  214. \includegraphics<3>[height=.8\textheight]{media/mail-diagram-02.png}
  215. \pause
  216. \includegraphics<4>[height=.8\textheight]{media/mail-diagram-03.png}
  217. \pause
  218. \includegraphics<5>[height=.8\textheight]{media/mail-diagram-04.png}
  219. \pause
  220. \includegraphics<6>[height=.8\textheight]{media/mail-diagram-05.png}
  221. \pause
  222. \includegraphics<7>[height=.8\textheight]{media/mail-diagram-06.png}
  223. \pause
  224. \includegraphics<8>[height=.8\textheight]{media/mail-diagram-07.png}
  225. \pause
  226. \includegraphics<9>[height=.8\textheight]{media/mail-diagram-08.png}
  227. \end{frame}
  228. % TODO: not use lstlisting?
  229. \defverbatim[colored]\makeset{
  230. \lstset{language=python}
  231. \begin{lstlisting}
  232. def sendStarttls(host, sendingMail, receivingMail, password, message="",
  233. subject="", port=587, cc=[], bcc=[]):
  234. context = ssl.create_default_context()
  235. if type(cc) is not str:
  236. cc = ",".join(cc)
  237. if type(bcc) is not str:
  238. bcc = ",".join(bcc)
  239. utf8Message = ("Subject: " + subject + "\nCC: " + cc + "\nBCC: " + bcc +
  240. "\n\n" + message)
  241. decoded = utf8Message.encode('cp1252').decode('utf-8')
  242. with smtplib.SMTP(host, port) as serverConnection:
  243. serverConnection.starttls(context=context)
  244. serverConnection.login(sendingMail, password)
  245. serverConnection.sendmail(sendingMail, receivingMail, decoded)
  246. \end{lstlisting}
  247. }
  248. \begin{frame}[plain]{Senden einer Email}
  249. %\makeset
  250. %\lstset{language=Python}
  251. %\lstinputlisting[language=Python]{code/sentMail.py}
  252. \begin{figure}[h]
  253. \includegraphics[width=.8\textwidth]{media/codeFragment.png}
  254. \end{figure}
  255. \end{frame}
  256. \subsection{Librarys}
  257. \begin{frame}[plain]{Material Design}
  258. \begin{varwidth}{.5\textwidth}
  259. \begin{figure}
  260. \centering
  261. \includegraphics[width=\textwidth]{media/material-design-in-action.jpg}
  262. \end{figure}
  263. \end{varwidth}
  264. \hfill
  265. \begin{varwidth}{.4\textwidth}
  266. \includegraphics[width=\textwidth]{media/material-android.png}
  267. \begin{itemize}\pause
  268. \item GUI-Framework\pause
  269. \item beliebt\pause
  270. \item in Google Apps
  271. \end{itemize}
  272. \end{varwidth}
  273. \end{frame}
  274. % TODO: insert bugs
  275. \begin{frame}[plain]{Bugs}
  276. \begin{figure}[h]
  277. \includegraphics[width=.8\textwidth]{media/bug.png}
  278. \end{figure}
  279. \end{frame}
  280. \section{Resultate}
  281. \begin{frame}[plain]{Resultate}
  282. \begin{itemize}\pause
  283. \item User Interface\pause
  284. \item chaquopy\pause
  285. \item Funktionalität\pause
  286. \item abschliessend
  287. \end{itemize}
  288. \end{frame}
  289. \section{Gelerntes}
  290. \begin{frame}[plain]{Was wir gelernt haben}
  291. \begin{varwidth}{.5\textwidth}
  292. \begin{figure}
  293. \centering
  294. \includegraphics[width=.95\textwidth]{media/monetary-success.jpeg}
  295. \end{figure}
  296. \end{varwidth}
  297. \hfill
  298. \begin{varwidth}{.5\textwidth}
  299. \begin{itemize}\pause
  300. \item Java\inlinegraphics{media/java-only-logo.png}\pause
  301. \item Android Apps\inlinegraphics{media/android-robot.png}\pause
  302. \item Android Studio\inlinegraphics{media/android-studio-logo.png}\pause
  303. \item Database \& SQL\inlinegraphics{media/database.png}\pause
  304. \item Gradle\inlinegraphics{media/gradle.png}\pause
  305. \item Zusammenarbeit\inlinegraphics{media/handschlag.jpeg}
  306. \end{itemize}
  307. \end{varwidth}
  308. \end{frame}
  309. \section{Persönliche Meinung}
  310. \begin{frame}[plain]{Persönliche Meinung: Simon}
  311. \begin{varwidth}{.4\textwidth}
  312. \begin{figure}
  313. \centering
  314. \includegraphics[width=.95\textwidth]{media/git-logo.png}
  315. \end{figure}
  316. \end{varwidth}
  317. \hfill
  318. \begin{varwidth}{.5\textwidth}
  319. \begin{itemize}\pause
  320. \item VCS $\rightarrow$ Git $\rightarrow$ GitHub\pause
  321. \item Treffen \& Absprachen \& VoIP\pause
  322. \item texdiary
  323. \end{itemize}
  324. \end{varwidth}
  325. \end{frame}
  326. \begin{frame}[plain]{persönliche Meinung: Noah}
  327. \begin{varwidth}{.4\textwidth}
  328. \begin{figure}
  329. \centering
  330. \includegraphics[width=.95\textwidth]{media/gradle-logo.png}
  331. \end{figure}
  332. \end{varwidth}
  333. \hfill
  334. \begin{varwidth}{.5\textwidth}
  335. \begin{itemize}\pause
  336. \item fehlende Erfahrung\pause
  337. \item Java Libraries\pause
  338. \item persönlicher \& beruflicher Vorteil
  339. \end{itemize}
  340. \end{varwidth}
  341. \end{frame}
  342. \begin{frame}[plain]{Zukunft: Wie geht es weiter?}
  343. \begin{figure}
  344. \centering
  345. \includegraphics[height=.7\textheight]{media/github-repo.jpg}
  346. \end{figure}
  347. \begin{itemize}
  348. \centering
  349. \item https://github.com/noahvogt/snailmail
  350. \item https://git.noahvogt.com/me/snailmail
  351. \end{itemize}
  352. \end{frame}
  353. \end{document}