Accents in latex
What have I to write in the header? It is easy:
%Use the latin1 encoding
\usepackage[latin1]{inputenc}
%accents
\usepackage[cyr]{aeguill}
%yes, I am french
\usepackage[francais]{babel}
Hello, I am Jacques Fontignie. I am a PHD student at the University of Geneva. This blog is a quite a memo. Here are some of the problems I got and some of the solutions I found. I have work on the malariacontrol.net project. You can go here to see how to configure a boinc server and you can go here to participate to the project.
%Use the latin1 encoding
\usepackage[latin1]{inputenc}
%accents
\usepackage[cyr]{aeguill}
%yes, I am french
\usepackage[francais]{babel}
public static void sort(byte toSort[], int offset, int length) {
//If we have less than this number of elements, we do the
//default sort else we use the countingsort algorithm
if (length < 45) {
Arrays.sort(toSort, offset, length);
return;
}
//It can go faster if we keep in memory an other array,
// but the class has to be synchronized.
//We initialize a new array
int temp [] = new int[256];
Arrays.fill(temp, 0);
//Count the number of elements
for (int i = offset; i < offset + length; i++) {
temp[toSort[i] + 128]++;
}
byte value = -128;
int ind = 0;
//Insert the bytes in the good order
for (int i = offset; i < offset + length;) {
while (temp[ind] == 0) {
ind++;
value++;
}
for (int j = 0; j < temp[ind]; j++) {
toSort[i++] = value;
}
value++;
ind++;
}
}
sudo apt-get install gstreamer0.8-mad
sudo apt-get <package>
#!/bin/sh
IPTABLES=/sbin/iptables
case "$1" in
start)
echo -n "Starting IPTABLES... "
# Clear old rules
$IPTABLES -X
$IPTABLES -F
$IPTABLES -Z
$IPTABLES -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
$IPTABLES -A INPUT -p tcp --dport ssh -j ACCEPT
$IPTABLES -A INPUT -p tcp --dport 80 -j ACCEPT
$IPTABLES -A INPUT -p tcp --dport 443 -j ACCEPT
$IPTABLES -A INPUT -j DROP
echo "done."
;;
stop)
echo -n "Stopping IPTABLES... "
$IPTABLES -X
$IPTABLES -F
$IPTABLES -Z
echo "done."
;;
restart)
echo -n "Restarting IPTABLES... "
$0 stop > /dev/null
sleep 1
$0 start > /dev/null
echo "done."
;;
*)
echo "Usage: $0 {start|stop|restart}"
;;
esac
sudo update-rc.d iptables start 99 1 .
Adding system startup for /etc/init.d/iptables ...
/etc/rc1.d/S99iptables -> ../init.d/iptables
sudo apt-get install gcc build-essential
sudo apt-get install webalizer
HostnameLookups Off
HostnameLookups On
LogFile /var/log/apache2/access.log.1
LogFile /var/log/apache2/access.log
sudo webalizer
sudo crontab -e
0 * * * * webalizer
ar cru libxerces-c.a `find . -name "*.o"`
cvs import newdir vendor version
where @mydir@ is the name you want to access from the internet and @path@ is the path to your the directory containing sources.LoadModule php4_module extramodules/libphp4.so
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps
ServerName "localhost"
alias /@mydir@/ "@path@"
<directory>
Order deny,allow
Allow from all
</directory>
/etc/init.d/apache2 restart