<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet title="XSL formatting" type="text/xsl" href="http://blog.chty.org/feed/rss2/xslt" ?><rss version="2.0"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xmlns:wfw="http://wellformedweb.org/CommentAPI/"
  xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
  <title>Chty blog - howto</title>
  <link>http://blog.chty.org/</link>
  <description>A little somewhere else...</description>
  <language>en</language>
  <pubDate>Thu, 03 Jul 2008 22:53:13 +0200</pubDate>
  <copyright>Creative Commons</copyright>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Dotclear</generator>
  
    
  <item>
    <title>Using Qt4 with Microsoft Visual Studio</title>
    <link>http://blog.chty.org/post/2008/05/23/Using-Qt4-with-Microsoft-Visual-Studio</link>
    <guid isPermaLink="false">urn:md5:448c9bae94b12658ff04832da4d924b8</guid>
    <pubDate>Tue, 27 May 2008 21:37:00 +0200</pubDate>
    <dc:creator>Chty</dc:creator>
        <category>howto</category><category>Qt</category>    
    <description>    &lt;p&gt;Since a few weeks, I really have to show you a nice tool to make Qt programing easier with &lt;a href=&quot;http://msdn.microsoft.com/vstudio/&quot;&gt;Microsoft Visual Studio&lt;/a&gt;.&lt;br /&gt;I've named &lt;a href=&quot;http://wiki.qtcentre.org/index.php?title=Paul%27s_autoBuild:_Qt4_with_Visual_Studio&quot;&gt;autoBuild&lt;/a&gt;, a nice tool which integrated Qt compilation inside &lt;a href=&quot;http://msdn.microsoft.com/vstudio/&quot;&gt;Microsoft Visual Studio&lt;/a&gt;.  It could replace the actual commercial solution sold by &lt;a href=&quot;http://trolltech.com/&quot;&gt;TrollTech&lt;/a&gt; but I don't know the differences between the two solutions, because the one from &lt;a href=&quot;http://trolltech.com/&quot;&gt;TrollTech&lt;/a&gt;  is just available in commercial pack, and I never bought the latter one.&lt;/p&gt;


&lt;p&gt;You will find the howto to install it on the &lt;a href=&quot;http://wiki.qtcentre.org/index.php?title=Paul%27s_autoBuild:_Qt4_with_Visual_Studio&quot;&gt;Qt Center wiki&lt;/a&gt;.&lt;/p&gt;</description>
    
    
    
          <comments>http://blog.chty.org/post/2008/05/23/Using-Qt4-with-Microsoft-Visual-Studio#comment-form</comments>
      <wfw:comment>http://blog.chty.org/post/2008/05/23/Using-Qt4-with-Microsoft-Visual-Studio#comment-form</wfw:comment>
      <wfw:commentRss>http://blog.chty.org/feed/rss2/comments/554</wfw:commentRss>
      </item>
    
  <item>
    <title>Free multiposte indisponible</title>
    <link>http://blog.chty.org/post/2008/03/18/Free-multiposte-indisponible</link>
    <guid isPermaLink="false">urn:md5:e37642a02282908d26efe049b9e6a3fd</guid>
    <pubDate>Tue, 18 Mar 2008 19:36:00 +0100</pubDate>
    <dc:creator>Chty</dc:creator>
        <category>Free</category><category>freebox</category><category>howto</category><category>multiposte</category>    
    <description>    &lt;p&gt;Cela faisait quelques jours que je ne disposais plus du service &lt;a href=&quot;http://adsl.free.fr/tv/multiposte/&quot;&gt;multiposte de Free&lt;/a&gt;&lt;sup&gt;[&lt;a href=&quot;http://blog.chty.org/post/2008/03/18/#pnote-369-1&quot; id=&quot;rev-pnote-369-1&quot;&gt;1&lt;/a&gt;]&lt;/sup&gt;. A tout hasard, j'ai lu que le problème était peut-être dû à un message&lt;sup&gt;[&lt;a href=&quot;http://blog.chty.org/post/2008/03/18/#pnote-369-2&quot; id=&quot;rev-pnote-369-2&quot;&gt;2&lt;/a&gt;]&lt;/sup&gt; s'affichant sur la télévision, bloquant ainsi le multiposte. N'ayant pas de télévision, je ne pouvais le voir, il faut donc &lt;em&gt;valider&lt;/em&gt; ce message à l'aveugle. La méthode est la suivante&lt;sup&gt;[&lt;a href=&quot;http://blog.chty.org/post/2008/03/18/#pnote-369-3&quot; id=&quot;rev-pnote-369-3&quot;&gt;3&lt;/a&gt;]&lt;/sup&gt; :&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;redémarrer la freebox.&lt;/li&gt;
&lt;li&gt;lancer la réception de la TV sur la &lt;a href=&quot;http://adsl.free.fr&quot;&gt;freebox&lt;/a&gt; à l'aide du bouton rouge en haut à droite de la télécommande&lt;sup&gt;[&lt;a href=&quot;http://blog.chty.org/post/2008/03/18/#pnote-369-4&quot; id=&quot;rev-pnote-369-4&quot;&gt;4&lt;/a&gt;]&lt;/sup&gt;.&lt;/li&gt;
&lt;li&gt;attendre 20 secondes et appuyer sur la touche &lt;strong&gt;OK&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;attendre 05 secondes et appuyer sur la touche &lt;strong&gt;OK&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;attendre 05 secondes puis appuyer deux fois sur la touche &lt;strong&gt;P-&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;attendre 05 secondes et appuyer sur la touche &lt;strong&gt;OK&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;attendre 10 secondes et éteindre la télévision sur la freebox à l'aide du bouton rouge en haut à droite de la télécommande.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;em&gt;'Hope it helps&lt;/em&gt; comme on dit.&lt;/p&gt;
&lt;div class=&quot;footnotes&quot;&gt;&lt;h4&gt;Notes&lt;/h4&gt;
&lt;p&gt;[&lt;a href=&quot;http://blog.chty.org/post/2008/03/18/#rev-pnote-369-1&quot; id=&quot;pnote-369-1&quot;&gt;1&lt;/a&gt;] Cela se traduisait par la sortie d'un grand nombre d'erreur par &lt;a href=&quot;http://www.videolan.org/vlc/&quot;&gt;VLC&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;[&lt;a href=&quot;http://blog.chty.org/post/2008/03/18/#rev-pnote-369-2&quot; id=&quot;pnote-369-2&quot;&gt;2&lt;/a&gt;] lequel ? Je ne sais pas :-)&lt;/p&gt;
&lt;p&gt;[&lt;a href=&quot;http://blog.chty.org/post/2008/03/18/#rev-pnote-369-3&quot; id=&quot;pnote-369-3&quot;&gt;3&lt;/a&gt;] ma méthode s'applique sur une &lt;a href=&quot;http://adsl.free.fr&quot;&gt;freebox v4&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;[&lt;a href=&quot;http://blog.chty.org/post/2008/03/18/#rev-pnote-369-4&quot; id=&quot;pnote-369-4&quot;&gt;4&lt;/a&gt;] pour les &lt;a href=&quot;http://adsl.free.fr&quot;&gt;freebox v4&lt;/a&gt; tout au moins&lt;/p&gt;&lt;/div&gt;
</description>
    
    
    
      </item>
    
  <item>
    <title>A blog-post long guide to the compilation of Qt 4.x with Microsoft Visual Studio</title>
    <link>http://blog.chty.org/post/2007/12/29/A-blog-post-long-guide-to-the-compilation-of-Qt-4x-with-Microsoft-Visual-Studio</link>
    <guid isPermaLink="false">urn:md5:d72be0e2db842f13c44f8585bb8aba37</guid>
    <pubDate>Mon, 21 Jan 2008 19:46:00 +0100</pubDate>
    <dc:creator>Chty</dc:creator>
        <category>howto</category><category>Qt</category>    
    <description>    &lt;p&gt;Put your Qt sources in a directory containing no spaces in its path. This is merely a temporary directory; you might move compiler files afterwards.&lt;/p&gt;


&lt;p&gt;Configure the environment by running the following command in a command line:&lt;/p&gt;


&lt;p&gt;&lt;code&gt;$&amp;gt;&quot;C:[Your Visual Studio install path]\Common7\Tools\vsvars32.bat&quot;&lt;/code&gt;&lt;br /&gt;(C:\Program Files\Microsoft Visual Studio 9.0 for me)&lt;/p&gt;


&lt;p&gt;Or run Start Menu &amp;gt; All Programs &amp;gt; Microsoft Visual C++ 9.0 Express edition (or Microsoft VisualStudio 2005, or Microsoft Visual Studio 2008) &amp;gt; Visual Studio Tools &amp;gt; Visual Studio 2008 Command Prompt.&lt;/p&gt;


&lt;p&gt;&lt;code&gt;$&amp;gt;cd [your Qt directory]&lt;br /&gt;$&amp;gt;configure&lt;br /&gt;$&amp;gt;nmake&lt;br /&gt;$&amp;gt;nmake confclean&lt;/code&gt;&lt;/p&gt;


&lt;p&gt;That's all for Qt compilation. Hope you enjoyed!&lt;/p&gt;</description>
    
    
    
      </item>
    
  <item>
    <title>Apache2 + mod_fastcgi + suexec on debian etch</title>
    <link>http://blog.chty.org/post/2007/10/28/Apache2-mod_fastcgi-suexec-on-debian-etch</link>
    <guid isPermaLink="false">urn:md5:451a38a518ef53081658f9bd988cf77e</guid>
    <pubDate>Mon, 29 Oct 2007 14:49:00 +0100</pubDate>
    <dc:creator>Chty</dc:creator>
        <category>Apache2</category><category>debian</category><category>fastcgi</category><category>howto</category><category>php</category><category>suexec</category>    
    <description>&lt;p&gt;I know it's difficult to find good documentation to configure &lt;a href=&quot;http://blog.chty.org/tag/Apache2&quot;&gt;apache2&lt;/a&gt; with &lt;a hreflang=&quot;en&quot; href=&quot;http://fastcgi.com&quot;&gt;mod_fastcgi&lt;/a&gt; and &lt;a hreflang=&quot;en&quot; href=&quot;http://httpd.apache.org&quot;&gt;suexec&lt;/a&gt; to make php websites works. This
configuration works well with Debian Etch (4.0).&lt;br /&gt;Here an example of configuration.&lt;/p&gt;    The following suppose that your web data are in /var/www/ (there are good reason for this as we'll see later).&lt;br /&gt;/var/www/toto/: the web account of toto&lt;br /&gt;/var/www/toto/web/: the web dir of the toto's account&lt;br /&gt;/var/www/toto/conf/php.ini: you own php.ini file&lt;br /&gt;/var/www/toto/cgi-bin/php.fcgi: the fcgi file which allow to run &lt;a hreflang=&quot;en&quot; href=&quot;http://php.net/&quot;&gt;php5-cgi&lt;/a&gt; with a specific php.ini file for each virtual host&lt;br /&gt;&lt;br /&gt;First of all don't forget that mod_fastcgi and mod_fcgid are different. Difference between &lt;a title=&quot;mod_fastcgi&quot; href=&quot;http://fastcgi.com/&quot;&gt;mod_fastcgi&lt;/a&gt; and &lt;a title=&quot;mod_fcgid&quot; href=&quot;http://fastcgi.coremail.cn/&quot;&gt;mod_fcgid&lt;/a&gt; is mostly at license level, since some might consider mod_fastcgi not to be totally free.&lt;br /&gt;&lt;br /&gt;Enable fastcgi and suexec:&lt;br /&gt;&lt;code&gt;#a2enmod fastcgi&lt;br /&gt;#a2enmod suexec&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Suexec has no configuration file, because every parameter is hardcoded. Therefore, if you need to configure suexec, do it at apache2 compile time.&lt;br /&gt;Let's see how...&lt;br /&gt;&lt;br /&gt;&lt;code&gt;#/usr/lib/apache2/suexec -V &lt;br /&gt;&amp;nbsp;-D AP_DOC_ROOT=&quot;/var/www&quot;&lt;br /&gt;&amp;nbsp;-D AP_GID_MIN=100&lt;br /&gt;&amp;nbsp;-D AP_HTTPD_USER=&quot;www-data&quot;&lt;br /&gt;&amp;nbsp;-D AP_LOG_EXEC=&quot;/var/log/apache2/suexec.log&quot;&lt;br /&gt;&amp;nbsp;-D AP_SAFE_PATH=&quot;/usr/local/bin:/usr/bin:/bin&quot;&lt;br /&gt;&amp;nbsp;-D AP_UID_MIN=100&lt;br /&gt;&amp;nbsp;-D AP_USERDIR_SUFFIX=&quot;public_html&quot;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;AP_DOC_ROOT is set to &quot;/var/www&quot;, which is the reason you would want to put your files in /var/www/. You cannot just ignore this fact; if this directory is inconsistently set, it just won't work. If you want to change this directory, you must recompile apache2 with your own configuration.&lt;br /&gt;&lt;br /&gt;/var/www/toto/cgi-bin/php.fcgi:&lt;br /&gt;&lt;code&gt;#!/bin/sh&lt;br /&gt;PHPRC=&quot;/var/www/toto/conf/&quot;&lt;br /&gt;export PHPRC&lt;br /&gt;PHP_FCGI_CHILDREN=4&lt;br /&gt;export PHP_FCGI_CHILDREN&lt;br /&gt;PHP_FCGI_MAX_REQUESTS=200&lt;br /&gt;export PHP_FCGI_MAX_REQUESTS&lt;br /&gt;exec /usr/bin/php5-cgi&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;fastcgi.conf: (in /etc/apache2/mods-available/ for Debian)&lt;br /&gt;
&lt;code&gt;&amp;lt;IfModule mod_fastcgi.c&amp;gt;&lt;br /&gt;&amp;nbsp;AddHandler fastcgi-script .fcgi&lt;br /&gt;&amp;nbsp;FastCgiWrapper /usr/lib/apache2/suexec&lt;br /&gt;&amp;nbsp;FastCgiIpcDir /var/lib/apache2/fastcgi&lt;br /&gt;&amp;nbsp;FastCgiConfig -singleThreshold 1 -autoUpdate -idle-timeout 240 -pass-header HTTP_AUTHORIZATION&lt;br /&gt;&amp;lt;/IfModule&amp;gt;&lt;br /&gt;&lt;br /&gt;
&lt;/code&gt;
See &lt;a hreflang=&quot;en&quot; href=&quot;http://www.fastcgi.com/&quot;&gt;http://www.fastcgi.com/&lt;/a&gt; if you want to know about all the options possible in fastcgi.conf.&lt;br /&gt;&lt;br /&gt;Let's configure (in /etc/apache2/sites-available/  for debian etch) a virtual host for toto:&lt;code&gt;&lt;br /&gt;
&amp;lt;VirtualHost xxx.xxx.xxx.xxx:80&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ServerAdmin webmaster@toto.org&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ServerName toto.org&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DocumentRoot /var/www/toto/web/&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; SuexecUserGroup UserName GroupName&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Directory /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Options FollowSymLinks&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AllowOverride None&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Directory&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Directory /var/www/toto/web/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Options -Indexes FollowSymLinks -MultiViews&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AllowOverride all&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Order allow,deny&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Allow from all&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Directory&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ScriptAlias /cgi-bin/ /var/www/toto/cgi-bin/&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Directory &quot;/var/www/toto/cgi-bin/&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AllowOverride None&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Options ExecCGI -MultiViews +SymLinksIfOwnerMatch&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Order allow,deny&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Allow from all&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Directory&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; AddHandler php-fastcgi .php&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AddType application/x-httpd-php .php&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DirectoryIndex index.html index.php&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Action php-fastcgi /cgi-bin/php.fcgi&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ServerSignature On&lt;br /&gt;&amp;lt;/VirtualHost&amp;gt;&lt;br /&gt;
&lt;/code&gt;&lt;span class=&quot;q&quot; id=&quot;q_115e6f9f561c4168_16&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style=&quot;direction: ltr;&quot;&gt;This virtual host can be enabled in /etc/apache2/sites-enabled/ by creating a symbolic link.&lt;br /&gt;Make sure to set appropriate rights for /var/www/toto/ you set in the virtual host (SuexecUserGroup), since &lt;a href=&quot;http://blog.chty.org/tag/php&quot;&gt;php5-cgi&lt;/a&gt; will be executed with these rights.&lt;/div&gt;&lt;br /&gt;restart apache2 :&lt;br /&gt;&lt;code&gt;#/etc/init.d/apache2 restart&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;A maximum of four php5-cgi will be launched when the first visitor will visit the website. They would be killed after a timeout of 240 seconds of inactivity, as set in fastcgi.conf.&lt;br /&gt;It should work.&lt;br /&gt;Please tell me know if you are aware of issue that may arise with such a configuration.&lt;br /&gt;</description>
    
    
    
      </item>
    
</channel>
</rss>