<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-25274881</id><updated>2011-12-13T19:55:02.837-08:00</updated><title type='text'>Bugs and Solutions</title><subtitle type='html'>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 &lt;a href="http://j4cques.blogspot.com"&gt;here&lt;/a&gt; to see how to configure a boinc server and you can go &lt;a href="http://www.malariacontrol.net"&gt;here&lt;/a&gt; to participate to the project.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://fontignie.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25274881/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://fontignie.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Jacques Fontignie</name><uri>http://www.blogger.com/profile/14699557921279231682</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>20</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-25274881.post-115210251547764903</id><published>2006-07-05T05:25:00.000-07:00</published><updated>2006-07-05T05:28:35.493-07:00</updated><title type='text'>Install apache2 and php on Dapper</title><content type='html'>To install and configure properly php for apache on dapper, you have to install the software:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;sudo apt-get install apache2 libapache2-php5&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;The problem is that the php plugin is not enabled. To enable it, you have to run the command&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;sudo a2enmod php5&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;And restart the server:&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;sudo /etc/init.d/apache restart&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25274881-115210251547764903?l=fontignie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fontignie.blogspot.com/feeds/115210251547764903/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=25274881&amp;postID=115210251547764903' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25274881/posts/default/115210251547764903'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25274881/posts/default/115210251547764903'/><link rel='alternate' type='text/html' href='http://fontignie.blogspot.com/2006/07/install-apache2-and-php-on-dapper.html' title='Install apache2 and php on Dapper'/><author><name>Jacques Fontignie</name><uri>http://www.blogger.com/profile/14699557921279231682</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-25274881.post-114923703142860879</id><published>2006-06-02T01:27:00.000-07:00</published><updated>2006-06-02T01:35:56.116-07:00</updated><title type='text'>Using an assembler code with ham in Linux</title><content type='html'>I have done a small code in ARM assembler for the game boy. &lt;br /&gt;The program has to contain at minimum these lines:&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;    .globl _start&lt;br /&gt;_start:&lt;br /&gt;    &lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;And here are the steps to use it properly.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;br /&gt;&lt;li&gt;Compile the source code:&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;arm-thumb-elf-as prog.s -o prog.o -gdwarf2&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;The option: &lt;tt&gt;-gdwarf2&lt;/tt&gt; is used to inform that we want a debug version&lt;br /&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Link the file: &lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;arm-thumb-elf-ld prog.o -o prog.elf&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;br /&gt;Run the debugger:&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;arm-thumb-elf-insight prog.elf&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;br /&gt;Now, you have to open an other console, and type the command:&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;vba -Gtcp&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;It is used to inform that the emulator will hear on port 55555 the code sent by insight.&lt;br /&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;br /&gt;You just have now to set the target settings with target: &lt;tt&gt;Remote/TCP&lt;/tt&gt;, Hostname is blank and Port is 55555.&lt;br /&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Now you just have to connect to target, download and run...&lt;/li&gt;&lt;br /&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25274881-114923703142860879?l=fontignie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fontignie.blogspot.com/feeds/114923703142860879/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=25274881&amp;postID=114923703142860879' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25274881/posts/default/114923703142860879'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25274881/posts/default/114923703142860879'/><link rel='alternate' type='text/html' href='http://fontignie.blogspot.com/2006/06/using-assembler-code-with-ham-in-linux.html' title='Using an assembler code with ham in Linux'/><author><name>Jacques Fontignie</name><uri>http://www.blogger.com/profile/14699557921279231682</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-25274881.post-114923671922312998</id><published>2006-06-02T01:22:00.000-07:00</published><updated>2006-06-02T01:25:27.563-07:00</updated><title type='text'>libpng.so.2 on dapper</title><content type='html'>When I tried to use vba. I got the error:&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;***: error while loading shared libraries: libpng.so.2: &lt;br /&gt;cannot open shared object file: No such file or directory&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;To avoid this error:&lt;br /&gt;&lt;ol&gt;&lt;br /&gt;&lt;li&gt;Install libpn&lt;b&gt;3&lt;/b&gt;&lt;/3&gt;:&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;sudo apt-get install libpng3&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;And rename it to libpng2:&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;sudo ln -s /usr/lib/libpng.so.3 /usr/lib/libpng.so.2&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;/li&gt;&lt;br /&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25274881-114923671922312998?l=fontignie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fontignie.blogspot.com/feeds/114923671922312998/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=25274881&amp;postID=114923671922312998' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25274881/posts/default/114923671922312998'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25274881/posts/default/114923671922312998'/><link rel='alternate' type='text/html' href='http://fontignie.blogspot.com/2006/06/libpngso2-on-dapper.html' title='libpng.so.2 on dapper'/><author><name>Jacques Fontignie</name><uri>http://www.blogger.com/profile/14699557921279231682</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-25274881.post-114923037022448221</id><published>2006-06-01T23:37:00.000-07:00</published><updated>2006-06-01T23:40:21.933-07:00</updated><title type='text'>Mp3 not working in Dapper</title><content type='html'>Proprietary codecs are by default not installed in Lunix. Event if you installed them in Breezy, it will not work in Dapper, they seem to be deleted. To install it, simply run the command:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;sudo apt-get install  gstreamer0.10-ffmpeg gstreamer0.10-gl &lt;br /&gt;gstreamer0.10-plugins-base gstreamer0.10-plugins-good &lt;br /&gt;gstreamer0.10-plugins-ugly&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;It should work after...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25274881-114923037022448221?l=fontignie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fontignie.blogspot.com/feeds/114923037022448221/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=25274881&amp;postID=114923037022448221' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25274881/posts/default/114923037022448221'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25274881/posts/default/114923037022448221'/><link rel='alternate' type='text/html' href='http://fontignie.blogspot.com/2006/06/mp3-not-working-in-dapper.html' title='Mp3 not working in Dapper'/><author><name>Jacques Fontignie</name><uri>http://www.blogger.com/profile/14699557921279231682</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-25274881.post-114916369999455903</id><published>2006-06-01T05:07:00.000-07:00</published><updated>2006-06-01T05:08:20.003-07:00</updated><title type='text'>Migrate from Breezy Badger to Dapper Drake</title><content type='html'>To upgrade your system. Simply run:&lt;br /&gt;&lt;br /&gt;&lt;Blockquote&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;gksudo "update-manager -d"&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;And follow the instructions.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25274881-114916369999455903?l=fontignie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fontignie.blogspot.com/feeds/114916369999455903/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=25274881&amp;postID=114916369999455903' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25274881/posts/default/114916369999455903'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25274881/posts/default/114916369999455903'/><link rel='alternate' type='text/html' href='http://fontignie.blogspot.com/2006/06/migrate-from-breezy-badger-to-dapper.html' title='Migrate from Breezy Badger to Dapper Drake'/><author><name>Jacques Fontignie</name><uri>http://www.blogger.com/profile/14699557921279231682</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-25274881.post-114767469251397253</id><published>2006-05-14T23:29:00.000-07:00</published><updated>2006-05-14T23:31:32.520-07:00</updated><title type='text'>tcl84.dll not available in cygwin</title><content type='html'>If you want to use insight or some graphical program in cygwin, it is possible to get an error that says that tcl84.dll is unavailable. To install it, you have to go in the setup and install the package: tcltk.&lt;br /&gt;&lt;br /&gt;To install it, simply press the button on the left (skip by default), until you get the release you want.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25274881-114767469251397253?l=fontignie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fontignie.blogspot.com/feeds/114767469251397253/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=25274881&amp;postID=114767469251397253' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25274881/posts/default/114767469251397253'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25274881/posts/default/114767469251397253'/><link rel='alternate' type='text/html' href='http://fontignie.blogspot.com/2006/05/tcl84dll-not-available-in-cygwin.html' title='tcl84.dll not available in cygwin'/><author><name>Jacques Fontignie</name><uri>http://www.blogger.com/profile/14699557921279231682</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-25274881.post-114404681343671033</id><published>2006-04-02T23:46:00.001-07:00</published><updated>2006-04-02T23:46:53.436-07:00</updated><title type='text'>Accents in latex</title><content type='html'>I use kile to compile my latex code but I was not able to get accents on the dvi. Why, because I did not use the good packages.&lt;br /&gt;&lt;br /&gt;What have I to write in the header? It is easy:&lt;br /&gt;&lt;blockquote&gt;&lt;pre&gt;&lt;br /&gt;%Use the latin1 encoding&lt;br /&gt;\usepackage[latin1]{inputenc}&lt;br /&gt;%accents&lt;br /&gt;\usepackage[cyr]{aeguill}&lt;br /&gt;%yes, I am french&lt;br /&gt;\usepackage[francais]{babel}&lt;br /&gt;&lt;/pre&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25274881-114404681343671033?l=fontignie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fontignie.blogspot.com/feeds/114404681343671033/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=25274881&amp;postID=114404681343671033' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25274881/posts/default/114404681343671033'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25274881/posts/default/114404681343671033'/><link rel='alternate' type='text/html' href='http://fontignie.blogspot.com/2006/04/accents-in-latex.html' title='Accents in latex'/><author><name>Jacques Fontignie</name><uri>http://www.blogger.com/profile/14699557921279231682</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-25274881.post-114404677444018759</id><published>2006-04-02T23:46:00.000-07:00</published><updated>2006-04-02T23:46:14.440-07:00</updated><title type='text'>Sort a byte array in Java</title><content type='html'>The default algorithm used to sort a byte array is Arrays.sort(byte [] array). The algorithm used is a quicksort (complexity about =(nlog(n))). It is good for objects, but we have seen it is far better to use a countingsort algorithm.&lt;br /&gt;&lt;br /&gt;Here is the code used:&lt;br /&gt;&lt;blockquote&gt;&lt;pre&gt;&lt;br /&gt;    public static void sort(byte toSort[], int offset, int length) {&lt;br /&gt;&lt;br /&gt;        //If we have less than this number of elements, we do the&lt;br /&gt;        //default sort else we use the countingsort algorithm&lt;br /&gt;        if (length &lt; 45) {&lt;br /&gt;            Arrays.sort(toSort, offset, length);&lt;br /&gt;            return;&lt;br /&gt;        }&lt;br /&gt;        //It can go faster if we keep in memory an other array, &lt;br /&gt;        // but the class has to be synchronized.&lt;br /&gt;        //We initialize a new array&lt;br /&gt;        int temp [] = new int[256];&lt;br /&gt;        Arrays.fill(temp, 0);&lt;br /&gt;&lt;br /&gt;        //Count the number of elements&lt;br /&gt;        for (int i = offset; i &lt; offset + length; i++) {&lt;br /&gt;            temp[toSort[i] + 128]++;&lt;br /&gt;        }&lt;br /&gt;        byte value = -128;&lt;br /&gt;        int ind = 0;&lt;br /&gt;        //Insert the bytes in the good order&lt;br /&gt;        for (int i = offset; i &lt; offset + length;) {&lt;br /&gt;            while (temp[ind] == 0) {&lt;br /&gt;                ind++;&lt;br /&gt;                value++;&lt;br /&gt;            }&lt;br /&gt;            for (int j = 0; j &lt; temp[ind]; j++) {&lt;br /&gt;                toSort[i++] = value;&lt;br /&gt;            }&lt;br /&gt;            value++;&lt;br /&gt;            ind++;&lt;br /&gt;&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;&lt;/pre&gt;&lt;/blockquote&gt;&lt;br /&gt;If there is less than 45 elements we have found that creating new arrays takes to much time and that the countingsort algorithm is not good enough.&lt;br /&gt;&lt;br /&gt;The factor (sun sort)/countingsort has been calculated for some size of arrays. With 80 elements, the couting sort is about 50% faster. At 1280 elements, the couting sort algorithm is 4 times faster.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25274881-114404677444018759?l=fontignie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fontignie.blogspot.com/feeds/114404677444018759/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=25274881&amp;postID=114404677444018759' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25274881/posts/default/114404677444018759'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25274881/posts/default/114404677444018759'/><link rel='alternate' type='text/html' href='http://fontignie.blogspot.com/2006/04/sort-byte-array-in-java.html' title='Sort a byte array in Java'/><author><name>Jacques Fontignie</name><uri>http://www.blogger.com/profile/14699557921279231682</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-25274881.post-114404674871573353</id><published>2006-04-02T23:45:00.001-07:00</published><updated>2006-04-02T23:45:48.716-07:00</updated><title type='text'>Sound with totem</title><content type='html'>By default, you cannot hear mp3 in totem. That is annoying because you will not have sound on most of the videos.&lt;br /&gt;&lt;br /&gt;To get the sound in totem, you have to install gstreamer0.8-mad. It is in universe.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;pre&gt;&lt;br /&gt;sudo apt-get install gstreamer0.8-mad&lt;br /&gt;&lt;/pre&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Yopu should have the sound now.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25274881-114404674871573353?l=fontignie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fontignie.blogspot.com/feeds/114404674871573353/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=25274881&amp;postID=114404674871573353' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25274881/posts/default/114404674871573353'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25274881/posts/default/114404674871573353'/><link rel='alternate' type='text/html' href='http://fontignie.blogspot.com/2006/04/sound-with-totem.html' title='Sound with totem'/><author><name>Jacques Fontignie</name><uri>http://www.blogger.com/profile/14699557921279231682</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-25274881.post-114404671210320628</id><published>2006-04-02T23:45:00.000-07:00</published><updated>2006-04-02T23:45:12.103-07:00</updated><title type='text'>Ubuntu package not available</title><content type='html'>On a lot of forums, you can see:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;pre&gt;&lt;br /&gt;sudo apt-get &amp;lt;package&amp;gt;&lt;br /&gt;&lt;/package&gt;&lt;/pre&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;But sometimes this package is not available. What to do?&lt;br /&gt;&lt;br /&gt;It is certainly that you did not add all the repositories available. Ubuntu comes with a preconfigured system that allows only to download ubuntu selected packages.&lt;br /&gt;&lt;br /&gt;If your package is not present, you will have to add the repository...&lt;br /&gt;&lt;br /&gt;The file containing repositories is /etc/apt/sources.list&lt;br /&gt;&lt;br /&gt;By default, most of the repositories are commented (# symbol). Uncomment Universe (lines terminated by universe...) repositories and you should be able to download the package (most of the time).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25274881-114404671210320628?l=fontignie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fontignie.blogspot.com/feeds/114404671210320628/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=25274881&amp;postID=114404671210320628' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25274881/posts/default/114404671210320628'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25274881/posts/default/114404671210320628'/><link rel='alternate' type='text/html' href='http://fontignie.blogspot.com/2006/04/ubuntu-package-not-available.html' title='Ubuntu package not available'/><author><name>Jacques Fontignie</name><uri>http://www.blogger.com/profile/14699557921279231682</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-25274881.post-114404667640386952</id><published>2006-04-02T23:44:00.000-07:00</published><updated>2006-04-02T23:44:36.403-07:00</updated><title type='text'>Install iptables as a service</title><content type='html'>To add iptables as a service, you have to:&lt;br /&gt;&lt;ol&gt;&lt;br /&gt;&lt;li&gt;Generate a iptable script in /etc/init.d/iptables&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Configure it as a service&lt;/li&gt;&lt;br /&gt;&lt;/ol&gt;&lt;br /&gt;&lt;br /&gt;&lt;h2&gt; Iptable script &lt;/h2&gt;&lt;br /&gt;&lt;br /&gt;Here is an example. This script only allows ssh, http, and https, and established connexions. It rejects everything else.&lt;br /&gt;&lt;blockquote&gt;&lt;pre&gt;&lt;br /&gt;#!/bin/sh&lt;br /&gt;IPTABLES=/sbin/iptables&lt;br /&gt;&lt;br /&gt;case "$1" in &lt;br /&gt;start)&lt;br /&gt; echo -n "Starting IPTABLES... "&lt;br /&gt;&lt;br /&gt; # Clear old rules&lt;br /&gt; $IPTABLES -X&lt;br /&gt; $IPTABLES -F&lt;br /&gt; $IPTABLES -Z&lt;br /&gt; &lt;br /&gt; $IPTABLES -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT&lt;br /&gt; $IPTABLES -A INPUT -p tcp --dport ssh -j ACCEPT&lt;br /&gt; $IPTABLES -A INPUT -p tcp --dport 80 -j ACCEPT&lt;br /&gt; $IPTABLES -A INPUT -p tcp --dport 443 -j ACCEPT&lt;br /&gt; $IPTABLES -A INPUT -j DROP&lt;br /&gt;&lt;br /&gt; echo "done."&lt;br /&gt; ;;&lt;br /&gt;stop)&lt;br /&gt; echo -n "Stopping IPTABLES... "&lt;br /&gt; $IPTABLES -X&lt;br /&gt; $IPTABLES -F&lt;br /&gt; $IPTABLES -Z&lt;br /&gt;&lt;br /&gt; echo "done."&lt;br /&gt; ;;&lt;br /&gt; &lt;br /&gt;restart)&lt;br /&gt; echo -n "Restarting IPTABLES... "&lt;br /&gt; $0 stop &gt; /dev/null&lt;br /&gt; sleep 1&lt;br /&gt; $0 start &gt; /dev/null&lt;br /&gt;&lt;br /&gt; echo "done."&lt;br /&gt; ;;&lt;br /&gt;&lt;br /&gt;*)&lt;br /&gt; echo "Usage: $0 {start|stop|restart}"&lt;br /&gt; ;;&lt;br /&gt;esac&lt;br /&gt;&lt;/pre&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;h2&gt;Configuring the service &lt;/h2&gt;&lt;br /&gt;I think we can put iptables in each init level. But I have decided to start this service after network service, it is the level 1. To do that, simply write.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;pre&gt;&lt;br /&gt; sudo update-rc.d iptables start 99 1 .&lt;br /&gt;&lt;/pre&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Okay, how does it work:&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;iptables is the name of the script &lt;/li&gt;&lt;br /&gt;&lt;li&gt;start : We want to start the service &lt;/li&gt;&lt;br /&gt;&lt;li&gt;99: is the id of the service, each service is started from the init level, and for each level the order depends on the id. We just run iptables as the last service.&lt;/li&gt;&lt;br /&gt;&lt;li&gt; 1: is the init level &lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;You should get the message:&lt;br /&gt;&lt;blockquote&gt;&lt;pre&gt;&lt;br /&gt;Adding system startup for /etc/init.d/iptables ...&lt;br /&gt;   /etc/rc1.d/S99iptables -&gt; ../init.d/iptables&lt;br /&gt;&lt;/pre&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25274881-114404667640386952?l=fontignie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fontignie.blogspot.com/feeds/114404667640386952/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=25274881&amp;postID=114404667640386952' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25274881/posts/default/114404667640386952'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25274881/posts/default/114404667640386952'/><link rel='alternate' type='text/html' href='http://fontignie.blogspot.com/2006/04/install-iptables-as-service.html' title='Install iptables as a service'/><author><name>Jacques Fontignie</name><uri>http://www.blogger.com/profile/14699557921279231682</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-25274881.post-114404663795399382</id><published>2006-04-02T23:43:00.000-07:00</published><updated>2006-04-02T23:43:57.953-07:00</updated><title type='text'>Install gcc on Ubuntu</title><content type='html'>If you only install gcc, you will get an error saying that standard libraries are lacking.&lt;br /&gt;&lt;br /&gt;You have to install an other package: build-essential.&lt;br /&gt;&lt;br /&gt;To install gcc:&lt;br /&gt;&lt;blockquote&gt;&lt;pre&gt;&lt;br /&gt;sudo apt-get install gcc build-essential&lt;br /&gt;&lt;/pre&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25274881-114404663795399382?l=fontignie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fontignie.blogspot.com/feeds/114404663795399382/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=25274881&amp;postID=114404663795399382' title='44 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25274881/posts/default/114404663795399382'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25274881/posts/default/114404663795399382'/><link rel='alternate' type='text/html' href='http://fontignie.blogspot.com/2006/04/install-gcc-on-ubuntu.html' title='Install gcc on Ubuntu'/><author><name>Jacques Fontignie</name><uri>http://www.blogger.com/profile/14699557921279231682</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>44</thr:total></entry><entry><id>tag:blogger.com,1999:blog-25274881.post-114404660132328552</id><published>2006-04-02T23:42:00.001-07:00</published><updated>2006-04-02T23:43:21.326-07:00</updated><title type='text'>Install and configure webalizer on Ubuntu</title><content type='html'>&lt;ol&gt;   &lt;li&gt;install webalizer&lt;br /&gt;&lt;blockquote&gt;&lt;pre&gt;&lt;br /&gt;sudo apt-get install webalizer&lt;br /&gt;&lt;/pre&gt;&lt;/blockquote&gt;&lt;br /&gt;If webalizer is not found, you have to add sources in /etc/apt/sources.list: can comment the universe sources.&lt;br /&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Enable the apache2 hostname resolution: go into /etc/apache2/apache2.conf: Change&lt;br /&gt;&lt;blockquote&gt;&lt;pre&gt;&lt;br /&gt;HostnameLookups Off&lt;br /&gt;&lt;/pre&gt;&lt;/blockquote&gt;&lt;br /&gt;into&lt;br /&gt;&lt;blockquote&gt;&lt;pre&gt;&lt;br /&gt;HostnameLookups On&lt;br /&gt;&lt;/pre&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;By default webalizer is not well configured: it does not check in the good log. In /etc/webalizer.conf: Change&lt;br /&gt;&lt;blockquote&gt;&lt;pre&gt;&lt;br /&gt;LogFile         /var/log/apache2/access.log.1&lt;br /&gt;&lt;/pre&gt;&lt;/blockquote&gt;&lt;br /&gt;to&lt;br /&gt;&lt;blockquote&gt;&lt;pre&gt;&lt;br /&gt;LogFile         /var/log/apache2/access.log&lt;br /&gt;&lt;/pre&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Test webalizer:&lt;br /&gt;&lt;blockquote&gt;&lt;pre&gt;&lt;br /&gt;sudo webalizer&lt;br /&gt;&lt;/pre&gt;&lt;/blockquote&gt;&lt;br /&gt;If you get a warning like warning: Truncating ...&lt;br /&gt;It is because you did not put the hostnameLookup. If afterward, you get this message, it can be because you are attacked by a virus...&lt;br /&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Run webalizer as a cronjob. This has to be run as root: Edit the root cronjobs by running the command:&lt;br /&gt;&lt;blockquote&gt;&lt;pre&gt;&lt;br /&gt;sudo crontab -e&lt;br /&gt;&lt;/pre&gt;&lt;/blockquote&gt;&lt;br /&gt;and add the line:&lt;br /&gt;&lt;blockquote&gt;&lt;pre&gt;&lt;br /&gt;0 * * * * webalizer&lt;br /&gt;&lt;/pre&gt;&lt;/blockquote&gt;&lt;br /&gt;With that line, every hour webalizer is run&lt;br /&gt;&lt;/li&gt;&lt;br /&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25274881-114404660132328552?l=fontignie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fontignie.blogspot.com/feeds/114404660132328552/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=25274881&amp;postID=114404660132328552' title='13 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25274881/posts/default/114404660132328552'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25274881/posts/default/114404660132328552'/><link rel='alternate' type='text/html' href='http://fontignie.blogspot.com/2006/04/install-and-configure-webalizer-on.html' title='Install and configure webalizer on Ubuntu'/><author><name>Jacques Fontignie</name><uri>http://www.blogger.com/profile/14699557921279231682</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>13</thr:total></entry><entry><id>tag:blogger.com,1999:blog-25274881.post-114404656618610015</id><published>2006-04-02T23:42:00.000-07:00</published><updated>2006-04-02T23:42:46.186-07:00</updated><title type='text'>Use the static xerces library on linux</title><content type='html'>&lt;ol&gt;   &lt;li&gt;Download the source code&lt;/li&gt;   &lt;li&gt;Compile and install it following the instructions.&lt;/li&gt;   &lt;li&gt;Go into $xerces/objs&lt;/li&gt;   &lt;li&gt;Make an archive:&lt;br /&gt;&lt;blockquote&gt;&lt;pre&gt;&lt;br /&gt;ar cru libxerces-c.a `find . -name "*.o"`&lt;br /&gt;&lt;/pre&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;li&gt;Congratulations, you have now a static xerces library&lt;/li&gt;&lt;br /&gt;  &lt;/li&gt; &lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25274881-114404656618610015?l=fontignie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fontignie.blogspot.com/feeds/114404656618610015/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=25274881&amp;postID=114404656618610015' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25274881/posts/default/114404656618610015'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25274881/posts/default/114404656618610015'/><link rel='alternate' type='text/html' href='http://fontignie.blogspot.com/2006/04/use-static-xerces-library-on-linux.html' title='Use the static xerces library on linux'/><author><name>Jacques Fontignie</name><uri>http://www.blogger.com/profile/14699557921279231682</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-25274881.post-114404651821186560</id><published>2006-04-02T23:41:00.001-07:00</published><updated>2006-04-02T23:41:58.213-07:00</updated><title type='text'>Create a new module with CVS</title><content type='html'>If you want to create a new module, let's say newdir:&lt;br /&gt;&lt;ol&gt;   &lt;li&gt;go into the directory newdir.&lt;/li&gt;   &lt;li&gt;Run the command:&lt;br /&gt;&lt;blockquote&gt;&lt;pre&gt;cvs import newdir vendor version &lt;/pre&gt;&lt;/blockquote&gt;&lt;br /&gt;vendor and version are not important, you can write what you want.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Write a comment.&lt;/li&gt;   &lt;li&gt;Now you have a new module, you just have to checkout, to be sure that the file is ok.&lt;/li&gt;  &lt;/ol&gt;I did not write -d ... because in my environment variables: CVSROOT and CVS_RSH are defined.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25274881-114404651821186560?l=fontignie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fontignie.blogspot.com/feeds/114404651821186560/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=25274881&amp;postID=114404651821186560' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25274881/posts/default/114404651821186560'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25274881/posts/default/114404651821186560'/><link rel='alternate' type='text/html' href='http://fontignie.blogspot.com/2006/04/create-new-module-with-cvs.html' title='Create a new module with CVS'/><author><name>Jacques Fontignie</name><uri>http://www.blogger.com/profile/14699557921279231682</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-25274881.post-114404647875947878</id><published>2006-04-02T23:41:00.000-07:00</published><updated>2006-04-02T23:41:18.760-07:00</updated><title type='text'>Using C++ and fortran using visual studio and visual fortran</title><content type='html'>To avoid declaring always __stdcall for each external C procedure, the default Calling convention has to be set in Properties/Fortran/External Procedures&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25274881-114404647875947878?l=fontignie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fontignie.blogspot.com/feeds/114404647875947878/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=25274881&amp;postID=114404647875947878' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25274881/posts/default/114404647875947878'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25274881/posts/default/114404647875947878'/><link rel='alternate' type='text/html' href='http://fontignie.blogspot.com/2006/04/using-c-and-fortran-using-visual.html' title='Using C++ and fortran using visual studio and visual fortran'/><author><name>Jacques Fontignie</name><uri>http://www.blogger.com/profile/14699557921279231682</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-25274881.post-114404643740052647</id><published>2006-04-02T23:40:00.000-07:00</published><updated>2006-04-02T23:40:37.400-07:00</updated><title type='text'>PHP4 with Apache2 on Gentoo</title><content type='html'>&lt;ol&gt;   &lt;li&gt;edit /etc/make.conf and add "apache2" in your use flags&lt;/li&gt;   &lt;li&gt;emerge mod_php apache2&lt;/li&gt;   &lt;li&gt;Edit the file /etc/apache2/conf/apache2.conf and add these lines&lt;br /&gt;&lt;blockquote&gt;       &lt;pre&gt;LoadModule php4_module extramodules/libphp4.so&lt;br /&gt;AddType application/x-httpd-php .php .phtml&lt;br /&gt;AddType application/x-httpd-php-source .phps&lt;br /&gt;ServerName "localhost"&lt;br /&gt;alias /@mydir@/ "@path@"&lt;br /&gt;&amp;lt;directory&amp;gt;&lt;br /&gt;    Order deny,allow&lt;br /&gt;    Allow from all&lt;br /&gt;&amp;lt;/directory&amp;gt;&lt;br /&gt;&lt;/pre&gt; &lt;/blockquote&gt; where @mydir@ is the name you want to access from the internet and @path@ is the path to your the directory containing sources.&lt;/li&gt;&lt;li&gt;restart apache&lt;br /&gt;&lt;blockquote&gt;&lt;pre&gt; /etc/init.d/apache2 restart &lt;/pre&gt;&lt;/blockquote&gt;&lt;/li&gt;&lt;li&gt;You should be able to access your page at: http://localhost/@mydir@/...&lt;br /&gt;&lt;/li&gt;   &lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25274881-114404643740052647?l=fontignie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fontignie.blogspot.com/feeds/114404643740052647/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=25274881&amp;postID=114404643740052647' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25274881/posts/default/114404643740052647'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25274881/posts/default/114404643740052647'/><link rel='alternate' type='text/html' href='http://fontignie.blogspot.com/2006/04/php4-with-apache2-on-gentoo.html' title='PHP4 with Apache2 on Gentoo'/><author><name>Jacques Fontignie</name><uri>http://www.blogger.com/profile/14699557921279231682</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-25274881.post-114404640052624753</id><published>2006-04-02T23:39:00.000-07:00</published><updated>2006-04-02T23:40:00.526-07:00</updated><title type='text'>Xerces static library</title><content type='html'>To use the xerces C++ parser with a static library, we suppose you already have used xerces with dynamic library and that the project is correctly configured:&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;   &lt;li&gt;download the source code at:  http://xml.apache.org/xerces-c/download.cgi&lt;/li&gt;   &lt;li&gt;Open the $xerces_src\Projects\Win32\VC7\xerces-all\xerces-all.sln&lt;/li&gt;   &lt;li&gt;Right-click on the XercesLib&lt;/li&gt;   &lt;li&gt;Change configuration Type: Static library (.lib)&lt;/li&gt;   &lt;li&gt;Compile Xerceslib&lt;br /&gt;  &lt;/li&gt; &lt;/ol&gt; Open your project:&lt;br /&gt;&lt;ol&gt;   &lt;li&gt;Put the library in the "resource files" directory.&lt;/li&gt; &lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25274881-114404640052624753?l=fontignie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fontignie.blogspot.com/feeds/114404640052624753/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=25274881&amp;postID=114404640052624753' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25274881/posts/default/114404640052624753'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25274881/posts/default/114404640052624753'/><link rel='alternate' type='text/html' href='http://fontignie.blogspot.com/2006/04/xerces-static-library.html' title='Xerces static library'/><author><name>Jacques Fontignie</name><uri>http://www.blogger.com/profile/14699557921279231682</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-25274881.post-114404635895292567</id><published>2006-04-02T23:38:00.001-07:00</published><updated>2006-04-02T23:39:18.953-07:00</updated><title type='text'>GSL</title><content type='html'>&lt;div style="text-align: center;"&gt; &lt;div style="text-align: left;"&gt;We had to use the GSL (Gnuwin32) library but we had some problems: an access violation when trying to call the&lt;br /&gt;&lt;/div&gt; &lt;span style="font-weight: bold;"&gt;sl_multimin_fminimizer_alloc&lt;/span&gt; &lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;function. The exact error was:&lt;br /&gt;&lt;/div&gt; &lt;/div&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;(LIBGSL.DLL): 0xC0000005: Access Violation&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;To avoid this error, the macro GSL_DLL has to be declared.&lt;br /&gt;&lt;/div&gt; &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25274881-114404635895292567?l=fontignie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fontignie.blogspot.com/feeds/114404635895292567/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=25274881&amp;postID=114404635895292567' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25274881/posts/default/114404635895292567'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25274881/posts/default/114404635895292567'/><link rel='alternate' type='text/html' href='http://fontignie.blogspot.com/2006/04/gsl.html' title='GSL'/><author><name>Jacques Fontignie</name><uri>http://www.blogger.com/profile/14699557921279231682</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-25274881.post-114404630507570298</id><published>2006-04-02T23:38:00.000-07:00</published><updated>2006-04-02T23:38:47.376-07:00</updated><title type='text'>Xerces dynamic library</title><content type='html'>To use xerces C++ with visual studio 6:&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;   &lt;li&gt;Download the xerces zip file at: http://xml.apache.org/xerces-c/download.cgi and unzip it.&lt;br /&gt;&lt;/li&gt;   &lt;li&gt;Go in Project-&gt;Settings-&gt;C/C++.&lt;br /&gt;&lt;/li&gt;   &lt;li&gt;Insert into the "additional include directories", the path to the xerces include directory.&lt;/li&gt;   &lt;li&gt;right-click on resource files and select: add files to folder... Select the needed librarires in the xerces lib directory.&lt;/li&gt;   &lt;li&gt;In the execution directory (or in system32), you have to put the xerces dlls.&lt;br /&gt;&lt;/li&gt; &lt;/ol&gt; Now it should work properly&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25274881-114404630507570298?l=fontignie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fontignie.blogspot.com/feeds/114404630507570298/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=25274881&amp;postID=114404630507570298' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25274881/posts/default/114404630507570298'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25274881/posts/default/114404630507570298'/><link rel='alternate' type='text/html' href='http://fontignie.blogspot.com/2006/04/xerces-dynamic-library.html' title='Xerces dynamic library'/><author><name>Jacques Fontignie</name><uri>http://www.blogger.com/profile/14699557921279231682</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
