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}
dinsdag 29 november 2016
woensdag 23 november 2016
How to combine two sets of data.
How to combine two sets of data?
>>> 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>
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.
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.
vrijdag 22 januari 2016
Counting the number of characters in a string
# Counting the total number of the letter "a" in a string.
x = ("What shall we do with the drunken sailor?")
i = "a"
print (x.count(i, 0, 40))
Result:
3
x = ("What shall we do with the drunken sailor?")
i = "a"
print (x.count(i, 0, 40))
Result:
3
Print a line in reversal
# print the text in reversal.
import sys
x = ("What shall we do with the drunken sailor?")
y = (len(x)-1)
print (y)
while y > 0:
y = y - 1
sys.stdout.write(x[y])
print("\n")
Result:
40
rolias neknurd eht htiw od ew llahs tahW
import sys
x = ("What shall we do with the drunken sailor?")
y = (len(x)-1)
print (y)
while y > 0:
y = y - 1
sys.stdout.write(x[y])
print("\n")
Result:
40
rolias neknurd eht htiw od ew llahs tahW
Perl script: What shall we do with the drunken sailor?
#!/usr/bin/perl
use strict;
use warnings;
my $x = "What shall we do with the drunken sailor?\n";
my $y = "Early in the morning.\n\n";
print "$x" x 3;
print "$y";
my $z = "Heave ho, and up she rises\n";
print $z x 3;
print $y;
Result:
What shall we do with the drunken sailor.
What shall we do with the drunken sailor.
What shall we do with the drunken sailor.
Early in the morning.
Heave ho, and up she rises.
Heave ho, and up she rises.
Heave ho, and up she rises.
Early in the morning.
use strict;
use warnings;
my $x = "What shall we do with the drunken sailor?\n";
my $y = "Early in the morning.\n\n";
print "$x" x 3;
print "$y";
my $z = "Heave ho, and up she rises\n";
print $z x 3;
print $y;
Result:
What shall we do with the drunken sailor.
What shall we do with the drunken sailor.
What shall we do with the drunken sailor.
Early in the morning.
Heave ho, and up she rises.
Heave ho, and up she rises.
Heave ho, and up she rises.
Early in the morning.
Abonneren op:
Posts (Atom)
Enlarging Libreoffice window completely with command
You can open the LibreOffice window completely by pressing the CTRL+Shift+J keys together.
-
Als je een goede pdf wilt maken van een Volkskrant artikel, moet je als volgt te werken gaan. Open de Volkskrant pagina, waar je een pdf van...
-
You can open the LibreOffice window completely by pressing the CTRL+Shift+J keys together.
-
https://wiki.documentfoundation.org/Faq/Calc/113 Create a new LibreOffice Calc document. Click on a cell in the table (A1 for example) Go t...