dinsdag 29 november 2016

Latex-page

I have had a lot of problems creating this page:
\documentclass[A4paper]{article}

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{fancyhdr}

\pagestyle{fancy}
\fancyhf{}
\rhead{Share\LaTeX}
\lhead{Guides and tutorials}
\rfoot{Page \thepage}
\newcommand{\french}[1]{\textbf{#1}}

\begin{document}


\section{Voilà}

                                               
Essential French Expression

   Meaning       (where to begin?)
   Literally     there is
   Register      normal, informal
   Pronunciation   [vwah lah]
             IPA   [vwa la]

   Usage notes: Voilà is the quintessential French word – commonly used in
   French, easy to say, and exotic sounding (and therefore used in English
   to give a bit of je ne sais quoi to whatever you’re saying).

   Voilà has any number of meanings, it’s definitely one of those words
   that you pick up a feeling for when spending time with native speakers.
   In the meantime, here are lots of examples to help you understand the
   different uses.

\paragraph{1. Presentation}

   The original meaning of voilà is "there is, there are," as when
   pointing out one or more distant objects to another person. The nearby
   equivalent is voici (here is, here are), but in spoken French, voilà
   tends to be used in both cases, except when a distinction needs to be
   made.
   Voilà notre école.
   Here’s) our school.
   \french{Voici mon sandwich} et voilà le sien.   Here’s my sandwich and there’s his.
\end{document}

woensdag 23 november 2016

How to combine two sets of data.

How to combine two sets of data?

There are two lists:
A (a1, a2, a3, a4, a5 etc.)
B (b1, b2, b3, b4, b5 etc.)

In this case, it was text that was to be combined, so I made use of Excel:
C1 = a1&b1
Then drag the corner of the rectangle down and I got the combination that I wanted.

Supposedly, it can be done differently:
>>> a = ['a1', 'a2', 'a3', 'a4', 'a5']<br>
>>> b = ['b1', 'b2', 'b3', 'b4', 'b5']<br>
>>> [elem for pair in zip(a, b) for elem in pair]<br>
['a1', 'b1', 'a2', 'b2', 'a3', 'b3', 'a4', 'b4', 'a5', 'b5']<br>

maandag 21 november 2016

AWS

I made an Ubuntu server on AWS.

If you want to log in with the command line, you have to use the following command:

ssh -i xxx.pem ubuntu@ec2-xxx.amazonaws.com

To download something from the server to the local machine:
scp -i xxx.pem ubuntu@ec2-xxx.amazonaws.com:~/documenten/drunkensailor.txt .

The point at the end of the sentence stands for the folder used on the local machine.

It is also possible to use the program Filezilla to log in to the server. It is all very easy.



Enlarging Libreoffice window completely with command

 You can open the LibreOffice window completely by pressing the CTRL+Shift+J keys together.