How do developers use HTML ?

31 January 2006

Well, quite bad ! web 2.0 is far away, in fact even html is far away …

There is a very interesting study : Google took a sample of slightly over a billion documents !


Structured Blogging

18 January 2006

I did a little research about Microformats and WordPress that leads to Structured Blogging. But it is not what I expected : they add forms so you can type in, for example the book title, or the author’s name … and they display this information along with your post in a preformated way. Besides, it isn’t exactly Microformats, but microcontent !
What I would like is not a separate form to type metadata, but boutons, like the formatting boutons : Strong, Italic, etc.  for metatdata : Title, Author, Keyword … and they would be nothing special to display, the info are in the class attribute (Microformats style).

The usefull part would come from the search engine, wich could then parse the posts and retrieve the metadata, so you could ask for the list of books authors or a movie, given part of the title and the author.


Tidying up Tags?

17 January 2006

A nice article in D-Lib Magazine : Tidying up Tags? I admit that I didn’t read it, but it is related to the problem that I don’t really “use” tags. As the number of post is increasing, I don’t get much better search capability or organisation with tags.

There is still a lack of intelligent tools to manage tags !

Besides, with microformat, the tags could be embended into the post, avoiding external tools like Ultimate Tag Warrior. If the search engines (Google, Yahoo …) could catch up on microformat, you could said bye bye to all the tag stuff. Precisely, the tag would be just some words of you post marked as microformat (authors, subject, keyword, ISBN, movie title …)


crontab could be better …

12 January 2006

I always had problems with crontab.

Long ago, I used to believed that it was stored somewhere in /etc/ and expected to get it back after a system restore … Well I learned that it lives in /var/spool/cron ! I was young (and it was at home.)

But recently, something more tricky happened : I tried to use file_name`date “+%Y%m%d”`.txt Seems OK? but it isn’t !

cron interpreted % as a special meaning : new line ! You have to escape it \% ! Like this file_name$(date +\%Y\%m\%d).txt !

Would it be difficult to issue a warning in case of % after editing the cron ??


SSL TLS on Fedora Core 4

12 January 2006

Things have changed a bit with Fedora Core 4 : everything related to security (SSL, HTTPS) and certificates is under /etc/pki/. There you will find /etc/pki/tls/openssl.cnf openSSL config file and the very usefull CA.pl script in /etc/pki/tls/misc/CA.

Creating a new certificate for your domain is as easy as CA -newca ; CA -newreq ; CA -sign and you are almost done.

If you look at /etc/httpd/conf.d/ssl.conf, you will see where to put your files according to the new layout.

  • The PEM encoded server certificate (if encrypted you will be prompted for the password) : SSLCertificateFile : /etc/pki/tls/certs/localhost.crt
  • The Server Private Key : SSLCertificateKeyFile : /etc/pki/tls/private/localhost.key

For proFTPd, the configuration isn’t updated, nor even coherent. In /etc/proftpd.conf, they are in /usr/share/ssl/certs/ and in the documentation, in /etc/ftpd/ !

I am not sure if it is “good” to have an executable script in /etc/, if someone can explain or link to the rational behind this, thanks in advance.

I wonder if Linux will reach some FSH somedays ?


Fedora and proxy definition …

10 January 2006

There are really too much places for proxy defintion in Linux !

  • /etc/profile.d/proxy.sh : this will enable a lot of command line tools (yum, curl, …) to find the proxy (note : once uppercase once lower case …) :
    export http_proxy=http://proxy.domain.com:3128/
    export no_proxy=.domain.com
    export HTTP_PROXY=http://proxy.domain.com:3128/
  • yumex (the graphical yum) has his owne preference with proxy definition.
  • RPM : you will have to define macro in /etc/rpm/macro :
    %_httpproxy proxy.domain.com
    %_httpport 3128
  • Gnome “Configuration editor” has a proxy definition too.
  • Firefox
  • subversion : in ~/.subversion/servers

Fedora core 4, PHP4 and postgresql 8

10 January 2006

Fedora core 4 comes with PHP5 wich is a new version of the PHP package. (The point is that PHP4 and PHP5 are the same package. So you can’t simply urpmi or yum php4.)

You may need PHP4 for some reasons : compatibility, performance. (I heard that there might be a compatibility flag in PHP5 ??)

Step 1 :change the repositories for PHP

Exclude PHP from the current (fc4) repository, so it won’t be upgraded. In /etc/yum.repos.d/ : add exclude=*php* *jpgraph* in every .repo file.

Add the Fedora Core 3 updates (and extra for JPgraph) repository with the option includepkgs=*php* jpgraph*.

Step 2 : install the compatibility library

Now, you could install PHP4, but not php_pgsql : you would have a dependency problem with Postgresql libpq.so.3 !

So you need to download a compatibility library :

curl http://developer.postgresql.org/~devrim/compat-postgresql-libs-3-3PGDG.i686.rpm > compat-postgresql-libs-3-3PGDG.i686.rpm
rpm --import http://www.gunduz.org/devrimgunduz.pgp.pub
yum install compat-postgresql-libs-3-3PGDG.i686.rpm
yum install php-pgsql

Note : there is a compat-db in Fedora’s repository, but it is for The Berkeley DB database library.