Affichage des messages blog dont le libellé est Free Software. Afficher tous les messages blog
Affichage des messages blog dont le libellé est Free Software. Afficher tous les messages blog

mercredi 21 mai 2008

phpGW third item from todo list: Or how to try to debug two apps each others ...

Hi all

I'm working on Sync since 3 days. First I had to compile the opensync / libsyncml stuff. I found some interesting help on compilation Opensync (here) and use. You should know that at time of writing, you should stick to the svn version 3307 (found why here) to be able to play a little bit with it.
To use it with phpGW I was obliged to made some patches that I still need to send back to the opensync project. Here's are some of them :
  • in libsyncmlclient :

    Index: src/syncml_http_client.c
    ===================================================================
    --- src/syncml_http_client.c (révision 3307)
    +++ src/syncml_http_client.c (copie de travail)
    @@ -558,6 +558,8 @@
    * automatically detect the datastores.
    */
    SmlDevInf *devinf = smlDevInfAgentGetDevInf(env->agent);
    + if(devinf != NULL)
    + {
    unsigned int stores = smlDevInfNumDataStores(devinf);
    unsigned int i;
    for (i=0; i < ctx =" osync_context_new(error);">
    @@ -570,6 +572,11 @@
    smlDevInfDataStoreGetSourceRef(datastore),
    contentType, version);
    }
    + }
    + else
    + {
    + osync_trace(TRACE_ERROR, "NULL devinf returned !");
    + }

    /* disconnect from the syncml server */
    OSyncContext *ctx = osync_context_new(error);

    this patch avoid a segfault when trying to discover the supported materials by phpGW SyncML Server.


Following the tutorial at blog.dukanovic.com in the latest part could help you with how to made it working for phpGW. If you have question don't hesitate to post them here, I will try to help you.

If you are interested by helping us to made sync working for phpGW, you can read this post for infos ...

Second part : Drums .... YEAH !!! It kinda works :).
So here's the step to reproduce my success (at least I Hope).
  1. msynctool --addgroup phpgw2file
  2. msynctool --addmember phpgw2file syncml-http-client
  3. msynctool --addmember phpgw2file file-sync
  4. msynctool --configure phpgw2file 1 : Replace the given file with this content between the <config> tags (on only this, adapted to you needs)

    <auth>BASIC</auth>
    <username>phpgroupware</username>
    <password>********</password>
    <url>http://localhost:80/~phpgroupware/syncml/syncml.php</url>
    <recvlimit>40000</recvlimit>
    <maxobjsize>4000000</maxobjsize>
    <syncml_version>1.1</syncml_version>
    <database>
    <name>my-notes-collection</name>
    <objtype>data</objtype>
    <objformat>plain</objformat>
    </database>

  5. msynctool --configure phpgw2file 2 : replace the content between <config> tags with

    <directory>
    <path>/tmp/tests/notes</path>
    <objtype>data</objtype>
    </directory>
    (note : the '/tmp/tests/notes' directory should exists)

  6. msynctool --discover phpgw2file 1

  7. msynctool --discover phpgw2file 2

  8. msynctool --sync phpgw2file


And YEAH ! it works ... Well ... mostly. Now you have to fix bugs in the ipc layer to let notes getting all be backs. But you can try to add a new notes, it could work ...

Regards.

Caeies

vendredi 29 février 2008

phpGW first item from todo list bis


Hi all,



As said in my previous post on my first item, I was waiting for a little bit more stability in the head version for building a phpGW Demo image with head ... That's partially done.



Before starting downloading the file, I warn here users :


  • The code included is still in developments phase, so don't expect it to work out of the box ...

  • use the update-phpgroupware.sh script un ~phpgw/ for update before first use !

  • Notices are displayed for developements purposes (btw I forgot to add the excellent ffx plugin firebug) and breaks a lot's of thing. So if you are not a devs, or not curious, don't use this image.




For downloading the file image, it's here. The md5sum of the file is : 129117c678344d045938576b1276cc4a. The file size is around 310 Mo (that's better than the previous one, I don't forgot to do an apt-get clean this time :).



Concerning the login / password, they are the same as the previous post, so please read it :). I wan't able to configure phpgw as far as the stable release. But you should be able (when notices are not displayed for example) to configure it better.
Dave, I know you're reading my posts, so perhaps trying the image and looking at bugs in it could be interesting :). You will probably think that I miss some important part of the configuration, but I hope not so.



Happy hacking !

Btw, if you found bugs (and yes there's still a lot's of them) take a look at the bug tracker there :
phpGW' Savannah Bug Tracker

Caeies

mercredi 13 février 2008

phpGW first item from todo list


Hi all,



That's it !



You will find here md5sum is 6361f49b0b007975e5f02f72e43b355f a qcow image for running phpgroupware in a kvm/qemu environnement. This will help you to demonstrate phpgroupware evrywhere. Here are some infos :


  • The image is around 456Mo (Ouch)

  • root password is phpgroupware-head

  • the user : phpgw the password phpgroupware

  • Once logged in xdm, with the user, an iceweasel is launch pointing to the login page

  • user there is still phpgw and the password is either fghjkl or phpgroupware (don't remember which)

  • I configured as much as possible the phpgroupware to let you see the base applications (email/addressbook/notes/infolog/headlines(pointing on planet phpGroupWare)/etc ...)

  • To enable other applications, login as admin password : phpgroupware, then go in the admin section, then in the user group section, then default and add acl there.




This is a start base for work. There's a lot's more to do, but it's pretty runnable with the following command :
qemu -m 512 phpgw-16.qcow



If you need more infos, just leave a comment here, I will answer ASAP. Feel free to modify the image to feet your needs, and let us know where to get it !



Regards
Caeies


PS: For French Users (most of the intended audience ?) the keyboard is qwerty, I let you google on how modify this at boot time :)

phpGW Todo List


Hi all,



It's the second day I take for working with the phpGroupWare project ... Cool, thanks to my company for letting me work for it !



The first day was taken for Solution Linux 2008 where I was representing the phpgroupware-france association with maat (Pascal Vilarem) and jak (Alain Khoury). We meet a lot's of interesting people there, asking mostly what's the difference between you and eGW, or "what ? you are still alive ?" Yes we are, and working hard on the next release (the famous 0.9.18, with sync in it !)



Anyway, at the conference, I promise some little thing, that I'm sure people are still waiting, so here's the todo :



  1. Building a virtual image with phpgroupware running in it

  2. Working on ldap integration, (one of my objective is to help integrating a "simple" ldap with full interaction btw ldap and phpgw)

  3. working on sync to help johang



Trust me, that's a lot's of work :). So better than write here, I'll go to work !



Caeies

mercredi 18 juillet 2007

Chose promise, chose due ... un article en français sur phpGroupWare

Bonjour à tous,

J'avais promis de publier l'article qui est paru dans le magazine phpsolutions. En effet, en accord avec la rédaction, celui-ci est sous licence GFDL, sans section invariante. Merci à la relectrice pour l'élimination des fautes les plus visibles. Il est enfin en ligne ici. Si vous souhaitez une version pdf, n'hésitez pas à la demander !

For English readers, a French article is available on phpgroupware under GFDL here. Feel free to translate it :).

Caeies.

[Update 12/09/2007 : Une nouvelle "version", un peu plus lisible est en cours de préparation]

mercredi 23 mai 2007

SOAP Again ... name space problem [Fixed]

Hi all,

I just commited a fix for the namespace claches ... Yes php 5.x use native soap classes and a soapclient classes was already in use by phpgroupware ...

So I move the file class.soapclient.inc.php to class.phpgw_soapclient.inc.php, change some CreateObject calls, and it should work now !

Symptoms of the problem : when instanciating the classes, the script was diying silently, without any warning ... too bad :(.

Now the release for the .16-012 is close to be done (I hope so :).

Regards,

Caeies

dimanche 25 mars 2007

Tux & Fux, welcome on board !

Bonsoir à tous !

Juste pour vous signaler que je suis en train de participer très modestement à l'élaboration de scripts pour le duo Tux & Fux. Kesako ? Un couple dans la plus grande tradition de GNU/Linux et du "bricolage électronique". Bref un gadget pour lequel les limites n'existent pas :). L'engin fonctionne bien, possède une télécommande, peu servir d'interface audio (très pratique pour écouter ma radio préférée dans ma chambre), et surtout peu interagir avec le monde environnent. Des photos seront mises en ligne prochainement.

Pour s'en procurer, allez donc faire une petit tour sur le site de kysoh.com. Je décline toute responsabilité quand au temps passé à coder ce gadget :).

En effet, même si l'API python est forte intéressante, elle n'en reste pas moins pas complètement satisfaisante ... par exemple, dans la gestion des threads, (qui d'après quelques lectures sur le net, n'est pas le point fort de python dans sa version 2.4) ce qui provoque un plantage de XChat lorsque l'on tente d'utiliser ces deux outils :). Ben oui, avoir un tux qui vous bip lorsque l'on vous parle sur iRC, c'est tout de même bien pratique :) (et je ne parle pas de la possibilité de lui faire lire les canaux irc :).

Il existe encore peu d'application "compatible" avec Tux, mais c'est tout nouveau, le développement est ouvert (on peut quasiment tout récupérer (des schémas au firmware, en passant par l'api et le démon) sauf le synthétiseur vocal, quid de Festival ?) et on attend la réaction de la communauté pour offrir une palette riche et variée d'applications.

Je tacherais de mettre dans cette rubrique les idées qui me passeront par la tête, ainsi que des exemples de scripts que je pourrais faire.

Avant que j'oublie : La communaute de tux.

SOAP Bug fix is in CVS !

Hola !

For those who are waiting the SOAP bug correction in the official CVS, branch 0_9_16, it's in !

If you have remark, please post them on the savannah bug tracker. Thanks for your patience.

Regards.

dimanche 18 mars 2007

Enki, openEsub et les sous marins

Il se trouve que je participe à un jeu sur internet assez régulièrement (disponible ici).
Celui-ci est bien sûr un Logiciel Libre sous GPL et prend relativement peu de temps, pour peu que vous ne soyez pas en finale de la coupe :).

Le principe ? Un jeu de sous marin tour par tour, avec passage des ordres et système d'aide à la décision. Le but, couler les soums de ses adversaires dans la joie et la bonne humeur. Les débuts sont souvent laborieux, mais très vite (comprendre après 2 ou 3 mois de jeux, il n'y a que 2 compilations par semaine, alors qu'une partie peu durer 30 tours) cela tourne à des développement stratégique très important. Le summum étant les parties de la coupe qui est organisé tout les ans. Une partie de demi-finale est visible sur le site de l'une des guildes du jeu : Coupe 2006, Demi finale Caeies / Letonio.

Bien entendu, un tel jeu nécessite un "SAD" comprendre système d'aide à la décision. C'est dans ce domaine que j'interviens le plus souvent (bien que très rarement maintenant). J'ai contribué à relancer le SAD python plus ou moins "officiel" du jeu, le bien nommé Enki. Je continue à corriger quelques bugs dedans (surtout dans mon code :) et parfois j'ajoute quelques fonctions cachées pour le plus grand bonheur des utilisateurs :). Merci à tous les contributeurs (Paparazzia, Iome, Nojhan, TheFab, Nebux, ... pour les codeurs Ghostfred, Charly, Delf, ... pour les beta tests, Aeric, Fhamtaom, ... pour les idées pompées sur les autres SAD) d'Enki, sans qui il ne serait pas ce qu'il est devenu ... une aide précieuse pour chacun des ordres d'une grande partie des joueurs !

Maintenant que j'ai terminé cette finale, il va falloir que je remette ça, contre mon adversaire de la Finale, le Grand Ghostfred ... Vive le tirage au sort et la chance.

Courage Ghostfred, plus que 20 tours :).

Planet phpGroupWare

Hop,

Juste pour vous signaler que je suis dorénavant référencé sur l'aggrégateur Planet phpGroupWare. Normalement les entrées qui seront taggées phpGroupWare y seront directement référencées. Si vous vous demandez ce qu'est phpGroupWare, allez donc y faire un tour !

--- English version (more or less :)

Hi,

Just to let you know that I'm referenced by phpGroupWare Planet. phpGroupWare tagged entries should be directly referenced on it. If you're asking yourself "what the hell is that ?", then take a quick tour there

Caeies

Here we are !

Voila, c'est fait !

Sur la suggestion de Dave Hall, le Coordinator de l'API de phpgroupware ( phpGroupWare ), je viens de créer ce blog. Reste à l'alimenter sans pour autant tuer le peu de temps qu'il me restait pour coder sur phpGroupWare. Enfin bon, cela devrait être une expérience amusante !

Cordialement.

--- English Version : (more or less :)

That's it !

On suggestion of Dave Hall, API coordinator of phpgroupware ( phpGroupWare ), I just created this blog. Now, I need to fill it with a descent content, without killing the time I must past on coding :). I hope to enjoy this experience !

Regards.