dancing penguin

br home page logo

[Home] [Chess] [Gallery] [Links] [Linux] [Palm] [Stats] [GPG Key]

Bruno, long time ago

Weblog tree...
Archives...
  • VIA Releases 16K-Line FOSS Framebuffer Driver
  • XP SP3 Crashes Some AMD Machines
  • Recruitment Options For a Small-Scale FOSS Project?
  • Hiding a Rootkit In System Management Mode
  • Changes In Store For PHP V6
  • Who Owns Your Home?
  • The Freewinds Are Carcinogenic
  • Texas Flood
  • Attention Beijing Olympics Visitors
  • Towards the Reformation of a Once Great Site
Wed, 27 Aug 2003 Moving the site to a hosting company

If you can read this entry, it means that you are accessing my new website, which is hosted at hostitcheap.
In fact, the move will be quite painful, as their php setup is difficult to use: For instance, they use PHP-CGI instead of PHP apache module, and some functions, such as virtual() are not available. Of course, I was using virtual() everywhere!

I guess I will have some more surprises during the first days of the move...

[/technical/website] | permanent link | Google this

Thu, 31 Jul 2003 Changes in weblog

After upgrading to blosxom 2.0, I made some changes in this weblog, by:

  • Replacing my old crontab generated tree by blosxom's dynamic plugin.
  • Adding the archive plugin (the calendar list in the right column). I had to patch this one to make it XHTML 1.1 compliant.
  • Adding the paginate plugin, that gives links to next and previous pages, as well as to all available ones.
    This plugin is still buggy: The last entry in the last page is a ghost one, and it does not use the current category to compute the number of pages. This last problem is probably due to the structure of plugins itself.

I also switched my main page from Server Side Includes to a PHP one. In fact my SSI scripts were going really long, and difficult to maintain. With PHP I was able to rewrite the whole in a few lines, while still being able to fully control the page.
Eventually I added a lot of rewrite rules in my apache configuration, to be able to "hide" the most of the weblog structure (the php is hidden, old links are redirected, etc...).

[/technical/website] | permanent link | Google this

Thu, 24 Jul 2003 Some changes on this site

I removed the weather page: As it was written in JSP and used a postgresql database, I will not be able to transfer it to a hosting company (they mainly offer mysql & php).
I also removed the weblog subsection, and moved it as the main page.

[/technical/website] | permanent link | Google this

Tue, 15 Jul 2003 XHTML 1.1 compliant!

This web site (except the statistics page which I won't change) is now XHTML 1.1 Strict compliant.

At the same moment I removed the javascript section (which was pre-downloading the top menu images, and changed their color when the mouse was over). The home page, for instance, is now 30% smaller (only html code), and less than half of the original size if we consider the images download.

[/technical/website] | permanent link | Google this

Wed, 02 Jul 2003 New: Statistics for this web server

I just made public the statistics page for this web server. These statistics are collected since 2000, using the excellent awstats software.

One of the most interesting data is the queries on search engines which links to my site. For instance, this link show these queries for 2003.

[/technical/website] | permanent link | Google this

Sat, 21 Jun 2003 Palm-Linux Portuguese translation

I received an email this morning from Sérgio F. Lima saying that he translated my Palm-Linux page into Portuguese.

Cool! I wonder if I should not switch to a real versioning system: With one translation it will not be very difficult to manage the changes, but as soon as one more comes, we will get trouble.
I am thinking about Sourceforge or a private CVS server (I have already one up and running for my own developments). But I think the private CVS repository is not a good idea, as I will move my site to another provider when I leave Japan, and CVS will probably not be available.

[/technical/website] | permanent link | Google this

Wed, 14 May 2003 Web hosting going down

I was hosting, at home, a few web sites, for friends, colleagues, and family. At least until last month.
I asked them all to find another provider because of my coming departure from Japan in a few months...
Only one is still hosted today (Jeff, do it NOW!). When that one will be removed, I will feel comfortable when the time will come to shut down the server...

I hope the service was not too bad during these years ;-)

[/technical/website] | permanent link | Google this

Tue, 21 Jan 2003 Blosxom 0+6i-b2 setup

No change compared to 0+5i version. It ran Out Of the Box, after I made the same changes.

I added a small script, as I really want some files to keep the same date. This script looks for files (in blog directories) which names look like a date, then it changes the date of these files with the name itself.
It runs every hour, and could be used with other versions of blosxom as well.
Here is the source of this file:

#! /bin/sh

for i in `find ./blog -name '*.txt' -print`
do
    DATE=`expr match $i '.*\([0-9]\{12\}\).txt'`
    if [ -z ${DATE} ]
    then
        DATE=`expr match $i '.*\([0-9]\{8\}\).txt'`
        [ ${DATE} ] && "DATE=${DATE}1200"
    fi
    [ ${DATE} ] && touch -t ${DATE} "$i"
done

This script accepts files like "*DATE.txt", where DATE can be in both YYYYMMDDhhmm.txt or YYYYMMDD.txt formats. In the latter case, a default of 12:00 is used for the time.

[/technical/website] | permanent link | Google this

Mon, 06 Jan 2003 New changes!

Two new big changes, in the path to migrate this site to a fully XHTML/CSS web site: The "Webcam" page will disappear (being replaced by a more useful "GPG" page - already done in all new pages), and the "Palm" page has been rewritten in XHTML.

TODO:
  1. Change the new links (Webcam vs GPG everywhere). Easy. Done on Jan 7.
  2. Rewrite the "Weather" page in XHTML. Easy. Done on Jan 11th. But it was not easy at all! I was not able to include a jsp in middle of a SSI file, so I run a hourly job to prepare an html file instead (with an ugly wget getting the data from the jsp). Any better idea on this?
  3. Do something about the "Forum" page. I will probably remove it (I don't like their licence sytem - after all, even if it was small help, I crontributed to this software!). Done on Jan 11. Just by removing links, and redirecting the forum page to the main page.
  4. Rewrite the "Linux" page. This will be longer: I have 2 ways here. I could just make it XHTML compliant, or make it more accurate. I will probably choose the first solution. Done on Jan 12th.
  5. Rewrite the "Gallery" page. Again, I will probably change the engine. Not easy, and I prefered to "patch" the old system to be compliant with XHTML standard. There are problems with images overriding he right column - I'm not going to solve them soon! Done on Feb 9th.

[/technical/website] | permanent link | Google this

Sun, 05 Jan 2003 Weblog & other pages. Where to stop?

As I just rewrote my "Links" page in xhtml, I wondered if I should include it in the weblog or not.

More generally, my question is: Where should a Weblog stop? Should technical data (such as Blosxom installation) be there?
As I don't have an answer yet, I will leave the Links page as it is, as well as the Forum one (but I think that one will disappear as soon as Blosxom can handle postings :-)

[/technical/website] | permanent link | Google this

Sat, 04 Jan 2003 Blosxom 0+5i setup

I am using Blosxom (version 0+5i). As I needed a special setup (more than one weblog per page, SSI includes for header/footer, etc...), I could not use Blosxom as a "page generator", but only as an "article manager" inside an outside page.

I made the following to make it work:

  • First, in my html index file (server parsed), I included the following:
       <!-- I call blosxom.cgi with the parameters.
            If none, the default "/blog/diary" is used -->
       <!--#set var="BLOSXOM_CATEGORY" value="/blog/diary" -->
       <!--#if expr="$DOCUMENT_PATH_INFO" -->
         <!-- #set  var="BLOSXOM_CATEGORY" value="${DOCUMENT_PATH_INFO}" -->
       <!--#endif -->
       <!--#set var="PROGRAM" value="/cgi/blosxom.cgi${BLOSXOM_CATEGORY}" -->
       <!--#set var="RSS_PROGRAM" value="${PROGRAM}/?flav=rss" -->
    
    Then I use the PROGRAM and RSS_PROGRAM variables as following:
       [...]
       <a href="<!-- #echo var="RSS_PROGRAM" -->">
          <img src="/images/xml.gif" alt="Syndicate this site!" />
       </a>
       [...]
       <!--#include virtual="$PROGRAM" -->
       [...]
    
    The target is to generate the correct Blosxom path, and to have a default "/blog/diary" one if none is specified.
  • I also needed to create a .htaccess file in the directory where the index.html resides, to force an http redirection to the index.html if only the directory is specified in the URL. This is necessary, as only URL like http://www.raoult.com/diary/index.html/path/to/weblog will work (and not http://www.raoult.com/diary//path/to/weblog).
       DirectoryIndex redirect.html index.html index.shtml
       Redirect /diary/redirect.html http://www.raoult.com/diary/index.html
    
  • Then, I added the following line in blosxom.cgi, to handle possible "//" (slash slash) between the $url & $path macros:
       $url =~ s/^included:/http:/; # Fix for Server Side Includes (SSI)
       my @pi = split m{/}, path_info();
       shift @pi;
    
       ########## br, to skip initial // (SSI pb)
       $pi[0] eq '' and shift @pi;
    
       my $pi_bl = '';
       while ($pi[0] =~ /^[a-zA-Z]\w*$/) { $pi_bl .= '/' . shift @pi; }
    
  • As I don't want to use the <span> tag as a date separator, I commented out the corresponding lines:
       # $content_type eq 'text/html' && $curdate ne "$dw, $da $mo $yr" && 
       # print span({-class=>'blosxomDate'}, $curdate = "$dw, $da $mo $yr"); 
    
  • Finally, I run a hourly cronjob to generate the weblog index file:
       #/bin/sh
       # find the directory tree and build a list...
       #
       find blog -type d -print | awk '
       BEGIN {
            URL = "http://www.raoult.com/diary/index.html/"
            print "<div class=\"list\">";
            print "<div class=\"listtitle\">";
            print "Weblog tree...";
            print "</div>";
            print "<ul>";
       }
       {
            printf("<li><a href=\"%s%s\">%s</a></li>\n", URL, $0, $0);
       }
       END {
            print "</ul>";
            print "</div>";
       }' > tree.dat
    
    This file is included in the index.html file as:
       <!--#include virtual="/blosxom/tree.dat" -->
    

That's all folks!!

[/technical/website] | permanent link | Google this

Thu, 02 Jan 2003 New Home Page!!

I lost my first place on Google (for a member of French Parliament), and being between this one (Eric Raoult) and a French Senator (Paul Raoult, #3 on Google) makes me somehow uncomfortable ;-)

But I worked a little, and I have got a new home page!
The changes are:

* XHTML 1.0 instead of HTML 4.01
* No more frames!! (using frames is Bad [tm]).
* Only CSS for presentation. Using HTML tables is Very Bad [tm]
* blosxom is the engine for this page (and for RSS syndication)
* blagg is the RSS aggregator (the right column with news)

What I need to do now is to make the change for all the site (this should not be very difficult).

[/technical/website] | permanent link | Google this

Tue, 31 Dec 2002 First on Google!!

I was noticed today by a colleague that Google gives my site as no 1 when searching raoult. Cool!

[/technical/website] | permanent link | Google this