[Demexp-dev] Server change / reduced services with end of some mailing lists

2011-06-08 Par sujet David MENTRE
Hello,

I'm sending this message on behalf of Frédéric Lehobey who is a bit
busy right now. ;-)

The demexp team has changed the demexp server to reduce administration
burden. The new server currently offers only a web presence. It should
be accessible at usual http://demexp.org and it can already be
accessed at http://demexp.net. It might have some additional services
in the future.

As a consequence, the mailing lists -en@ and -fr@ won't longer work.
The mailing list demexp-dev@nongnu.org is kept and should work.

I don't know if the contact@ alias will still work.

Best regards,
david

___
Demexp-dev mailing list
Demexp-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/demexp-dev


[Demexp-dev] Re: [Demexp-fr] Organisation d émocratique

2010-03-30 Par sujet David MENTRE
Bonsoir Benoit,

Le 29 mars 2010 23:12, Benoit BRAIDA bbra...@mac.com a écrit :
 Je me permet de vous signaler ce document, qui compte tenu des valeurs 
 portées par le projet DemExp pourrait intéresser certains d'entre vous :

 http://repdem.free.fr/mw1/index.php5?title=Organisation

 Il décrit une organisation permettant à un très grand nombre de personne 
 d'élaborer collaborativement des textes politiques (compris au sens le plus 
 large du terme). Il s'agit d'un réseau coopératif décentralisé de groupes de 
 travail autonomes, s'inspirant du fonctionnement du logiciel libre et de 
 wikipédia.

Effectivement, c'est intéressant. Je suis un peu resté sur ma faim sur
la description des outils informatiques
(http://repdem.free.fr/mw1/index.php5?title=Structuration) mais ça va
probablement s'étoffer.

Concernant le fond, l'organisation
(http://repdem.free.fr/mw1/index.php5?title=Structuration), c'est très
intéressant. J'aime bien l'approche décentralisée et les idées de
synthèse.

Quelques remarques en vrac :
  - j'insisterai tout de suite sur l'aspect public des groupes de
travail. Je mettrais en public par défaut, sauf si le groupe préfère
travailler en vase clos ;

 - l'équipe de pilotage à un rôle central (pun intended), comment vous
allez assurer sa neutralité ? De manière plus générale, vous avez
calculé quel équilibre de pouvoir / contre-pouvoir ?

Sur le fonctionnement,
http://repdem.free.fr/mw1/index.php5?title=Fonctionnement , j'ai pas
grand chose à dire après une première lecture. Je me pose quelques
questions sur l'articulation action / fabrique : quel retour sur la
fabrique ? Comment on évalue l'action ? Sous quel délai ?

Je trouve l'exemple « développement durable passe par la réduction de
la dette » mal choisi et pas très parlant. Mais je suis d'accord avec
les idées justes au dessus. :-)

Merci pour l'info,
Amicalement,
david


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


[Demexp-dev] Re: Demexp, Serveur et Excuses

2010-02-01 Par sujet David MENTRE
Salut Jean-Marc,

Le 29 janvier 2010 20:37, Fauché Jean-Marc jm.fau...@free.fr a écrit :
 Concernant le serveur demexp.org ,je pensait que tu en était l'unique
 administrateur !?
 Qu'en est-il ?

Non, il y a Félix, Frédéric et moi-même.

 Avec qui me mettre en contact ?

cont...@demexp.org

 Qu'entend tu par pas besoin d'être root?...

Pour certains programmes, il faut être administrateur sur la machine
pour pouvoir les installer et les lancer. Ce n'est pas le cas ici (au
moins dans une première phase de test).

 Si tu pouvais éclairer ma lanterne pour la marche à suivre cela me serai
 précieux + + +.

Envoyer un courriel à contact@ et être patient. ;-)

J'espère que je suis clair. N'hésites pas à poser des questions.

 Pour finir je tiens à te présenter mes excuses ,car ce n'était pas à moi de
 rendre public tes intentions de te dégager du projet ,c'est un impair que je
 regrette et je te prie de ne pas m'en tenir rigueur :-[

Aucun soucis, vraiment. J'avais pris la décision depuis longtemps et
ta question a justement été l'occasion d'« officialiser », ce que je
me suis empressé de faire. Ça ne doit pas vraiment être une surprise
pour les autres. :-)

Amicalement,
d.


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


Re: [Demexp-dev] Demexp et GAE

2010-01-29 Par sujet David MENTRE
[ English summary: I'm leaving the demexp project. I'm not in favour
of using GoogleApp for the server as it is a proprietary platform. I
gave a few remarks on Jean-Marc's code. ]

Bonjour à tous,

Le 28 janvier 2010 19:21, Fauché Jean-Marc jm.fau...@free.fr a écrit :
 J'ai envoyé un mail à David dans lequel je lui soumettais l'idée de
 transposer la version web de Demexp sur GoogleAppEngine ,ce qui permettrai
 de se passer de serveur,d'installer des mises à jours ,tester etc...
 Dans sa réponse j'apprends avec regret qu'il envisage se dégager du projet
 et ne plus rien mettre sur son serveur.

C'est maintenant officiel ! ;-)

La raison principal est que je n'ai plus autant de temps qu'avant, le
projet stagne et que je doute même sur les fondements de l'expérience
démocratique. Mais je suivrai le projet de loin.

 Il se dit favorable à l'idée de
 GoogleApp si les membres de la liste de diffusion n'y voient pas
 d'inconvénient .

Pour être plus précis, je pense que si tu veux avancer avec GoogleApp,
c'est toujours mieux que ne rien faire.

Par contre, en tant que partisan du Libre, utiliser une plate-forme
propriétaire comme base, ça me dérange beaucoup. Une solution serait
que les admin de demexp.org te donnent un compte sur ce serveur pour
que tu puisses y mettre ton serveur. Aucun besoin d'être root.

Sinon, en ce qui concerne ton soft proprement dit, je n'ai jamais eu
le temps de regarder en détail. Néanmoins, je donne un avis personnel
qui n'engage que moi :-) :
  - à mon avis, le framework web2py est une erreur. Il est sympa sur
le papier, mais tous les gros développements en Python se font
actuellement avec Django, qui a une grosse communauté, etc. Toujours
suivre le mouvement de masse, croisant quelqu'un qui a développé un
serveur demexp dans un langage ésotérique. ;-)

 - à l'usage, après deux-trois ré-installations des versions
successives de ton soft, j'ai trouvé le framework fragile. Avis
subjectif j'en conviens ;

 - tu devrais commenter et écrire ton code en Anglais pour permettre
des collaborations internationales.

Mais comme c'est ton code, tu fais ce que tu veux au final. :-)

Bon, courriel beaucoup trop long pour quelqu'un qui annonce qu'il part.

Amicalement,
d.


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


[Demexp-dev] Re: Demexp via web2py: Nouvelle version

2009-07-10 Par sujet David MENTRE
Bonjour Jean-Marc,

Fauché Jean-Marc jm.fau...@free.fr writes:

 Voici une nouvelle version qui comporte comme principale modification la
 possibilité de délégation:

Avec deux semaines de retard, j'ai enfin mis cette nouvelle version en
ligne :

 http://bentobako.org:8000/Demexp/default/listes/Tous

 -Bouton pour s'inscrire sur la liste des délégués avec petite
 présentation et possibilité d'inclure un lien vers son site ou blog.
 -Bouton D sous le numéro de question (apparaissant seulement pour les
 délégués) permettant d'accepter d'être délégué pour la question
 concernée ,en rendant alors son vote visible et permettant d'argumenter
 sa position ...

Comment on délègue son vote ?

 Du fait d'importantes modifications sur les tables de la base de donnée
 il est indispensable de tout remplacer ...donc scrouch de base et
 obligation de se réenregistrer.

Ben j'ai pas effacé la base mais ça a l'air de marcher. Si tu vois que
des trucs cloches, tu me le dis et j'effacerai la base.

 David je suis désolé de ne pas encore utiliser mercurial mais j'ai peur
 de mal l'utiliser et je n'ai pas beaucoup de temps pour bien
 maitriser. (web2py est d'ailleurs en train de l'intégrer..)

Pas grave. Pour ceux qui voudraient un jour mettre à jour le dépôt
mercurial à partir du zip de Jean-Marc :

 $ cd /tmp
 $ hg clone ~/demexp/hg/jmf-demexp Demexp
 $ unzip -x jmf-Demexp-2009-06-25.zip
Archive:  jmf-Demexp-2009-06-25.zip
replace Demexp/__init__.py? [y]es, [n]o, [A]ll, [N]one, [r]ename: A

 $ cd Demexp/

 $ hg st   # pour voir ce qui a changé
[ pleins de fichiers en .bak ]

 $ vi .hgignore
--- a/.hgignore Thu May 28 00:00:00 2009 +0200
+++ b/.hgignore Fri Jul 10 18:25:19 2009 +0200
@@ -1,3 +1,4 @@
 syntax: glob
 databases/*
 static/Thumbs.db
+*.bak

 $ hg commit -d 2009-06-25 -u Fauché Jean-Marc jm.fau...@free.fr
 $ hg push


 Le look est encore un peu brut par endroits...
 J'espère que ce travail vous plaira ,... il  en reste encore sans doute
 pas mal pour que cela puisse être fiable et utilisable en masse.

Félix est en vacances, Isa est toute jeune maman et Fred est encore aux
RMLL, donc tu n'auras pas un retour tout de suite.

Amicalement,
d.
-- 
GPG/PGP key: A3AD7A2A David MENTRE dmen...@linux-france.org
 5996 CC46 4612 9CA4 3562  D7AC 6C67 9E96 A3AD 7A2A


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


[Demexp-dev] Re: Demexp: Du disfonctionnement du sélecteur ..

2009-07-10 Par sujet David MENTRE
Re-salut Jean-Marc,

Fauché Jean-Marc jm.fau...@free.fr writes:

 Il faudrait supprimer le tag all de la base dans Models-Database
 administration-db.Tags

C'est fait.

Amicalement,
d.
-- 
GPG/PGP key: A3AD7A2A David MENTRE dmen...@linux-france.org
 5996 CC46 4612 9CA4 3562  D7AC 6C67 9E96 A3AD 7A2A


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


[Demexp-dev] Re: Demexp: Bugs à Gogo?

2009-06-04 Par sujet David MENTRE
Salut Jean-Marc,

Fauché Jean-Marc jm.fau...@free.fr writes:

 Les sélecteurs qui cafouillent et ...Gros bug sur le vote (qui était devenu
 impossible une fois une sélection faite)
 J'ai résolu le problème ,voici une version 28/05/09 qui devrait fonctionner

Désolé pour le retard, ta dernière version est en ligne :
  http://bentobako.org:8000/Demexp/default/listes/all

Amicalement,
d.
-- 
GPG/PGP key: A3AD7A2A David MENTRE dmen...@linux-france.org
 5996 CC46 4612 9CA4 3562  D7AC 6C67 9E96 A3AD 7A2A


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


Re: [Demexp-dev] Demexp: Bugs à Gogo?

2009-05-28 Par sujet David MENTRE
2009/5/28 Félix felif...@gmail.com:
 Si ça peut te rassurer, pour l'instant ça ne va pas lasser trop de monde vu
 que le projet est largement confidentiel. Donc aucun souci à se faire!
 Il vaut mieux qu'on puisse te remonter des bugs tout de suite et donc
 qu'on aie accès régulièrement à la version à jour.

Idem que Félix, pour l'instant on n'a rien donc ça peut pas être pire. :-)

Par contre, ça m'arrangerai carrément si tu utilisais Mercurial. ;-)

Amicalement,
d.


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


[Demexp-dev] Re: Code en français ? Gestionnaire de version ?

2009-05-27 Par sujet David MENTRE
Bonjour,

David MENTRE dmen...@linux-france.org writes:

 Si tu ne sais pas lequel prendre parmi tous ceux qui existent
 (Mercurial, GIT, Subversion, ...), je te conseille Mercurial : écrit
 en Python, fonctionne sous Windows, Linux et MacOS, distribué, très
 rapide et très complet.
   http://www.selenic.com/mercurial/

 C'est Mercurial que j'utilise pour mes propres développement et mon serveur :
  http://www.linux-france.org/cgi-bin/hgwebdir.cgi/demexp/latest-dev

 Les diffs sont par exemple indispensables pour suivre les
 développement, voir ce qui a été changé / ajouté / supprimé (par

Pour illustrer mon propos, j'ai fait un arbre Mercurial des sources que
tu as diffusé, Jean-Marc :
  http://www.linux-france.org/cgi-bin/hgwebdir.cgi/demexp/jmf-demexp

Cela permet de suivre les modifs une par une, par exemple :
 
http://www.linux-france.org/cgi-bin/hgwebdir.cgi/demexp/jmf-demexp?cs=c001b0059982

Évidemment, ce serait encore mieux si tu faisais les commit atomiques un
par un. ;-)

Amicalement,
d.
-- 
GPG/PGP key: A3AD7A2A David MENTRE dmen...@linux-france.org
 5996 CC46 4612 9CA4 3562  D7AC 6C67 9E96 A3AD 7A2A


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


[Demexp-dev] Re: Demexp:Correction de Bug

2009-05-27 Par sujet David MENTRE
Salut Jean-Marc,

Fauché Jean-Marc jm.fau...@free.fr writes:

 Un bug s'est glissé dans les système de sélecteur par tag et auteur
 ...désolé ,voici un correctif.

J'ai enfin mis la dernière version en ligne :
  http://bentobako.org:8000/Demexp

J'ai eu un peu de mal. J'ai fini par réussir en ré-installant la
dernière version de web2py (1.61.4) et en ré-installant l'appli Demexp
de zéro.

Sinon, j'ai constaté que le vote n'était pas proposé s'il y avait une
seule réponse. Je ne sais pas si c'est un bug ou une fonctionnalité, en
tout cas j'aurais bien voté pour la première réponse même s'il n'y en
n'a pas d'autre.

Par ailleurs, si on sélectionne Tag:all Auteur:all sur l'index
principal[1], aucune question n'est affichée.

Amicalement,
d.

Footnotes: 
[1]  http://bentobako.org:8000/Demexp/default/listes/all

-- 
GPG/PGP key: A3AD7A2A David MENTRE dmen...@linux-france.org
 5996 CC46 4612 9CA4 3562  D7AC 6C67 9E96 A3AD 7A2A


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


Re: [Demexp-dev] Re: Demexp:Correction de Bug

2009-05-27 Par sujet David MENTRE
David MENTRE dmen...@linux-france.org writes:

 J'ai eu un peu de mal. J'ai fini par réussir en ré-installant la
 dernière version de web2py (1.61.4) et en ré-installant l'appli Demexp
 de zéro.

Du utilises quelle version de web2py Jean-Marc ? Préviens moi si tu en
change.

Amicalement,
d.
-- 
GPG/PGP key: A3AD7A2A David MENTRE dmen...@linux-france.org
 5996 CC46 4612 9CA4 3562  D7AC 6C67 9E96 A3AD 7A2A


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


[Demexp-dev] Re: Demexp:Correction de Bug

2009-05-26 Par sujet David MENTRE
Bonjour Jean-Marc,

2009/5/21 Fauché Jean-Marc jm.fau...@free.fr:
 Pensez vous qu'un lien du forum vers l'interface sur bentobako:8000/Demexp/
 serait souhaitable (tout en précisant qu'il s'agit d'une version test et
 donc des risques de scroutch de base... qui en découle)?

On peut effectivement mettre ton logiciel et un lien vers lui sur la
page principale de demexp.org. Je suis plutôt pour.

Mais il serait probablement plus raisonnable de faire l'upgrade Etch
- Lenny du serveur avant.

 Nb :j'ai du mal à faire parvenir les fichiers joins à
 demexp-...@nongnu.org...ils me renvoient le message comme quoi il n'a pas
 été reçu car trop long.Comme si  les fichiers étaient inclus dans le texte
 du mail...si quelqu'un sait pourquoi...
 Je reçois un message du genre:

Bizarre. Probablement une erreur de config de notre part. Peux-tu nous
forwarder le message d'erreur complet (avec headers et tout) à
cont...@demexp.org ?

Amicalement,
d.


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


Re: [Demexp-dev] (pas de sujet)

2009-05-26 Par sujet David MENTRE
Bonjour,

2009/5/26 Félix felif...@gmail.com:
 Pour contourner ce problème, le serveur demexp utilise 2 login pour
 chaque personne.
 Un login personnel (sur lequel personne ne peut délégué) et un login
 de délégué (sur lequel
 on peut déléguer et donc le vote est visible). On peut voter
 différemment sur les deux
 login, ce qui permet de préserver le secret du vote personnel, même si
 c'est un peu hypocrite.

À noter que dans la dernière version de mon serveur, j'avais
retravaillé cette délégation :
 - il n'y a qu'un seul login, celui du participant ;
 - avec ce seul login, on peut faire deux votes : le vote en tant que
participant et le vote en tant que délégué (donc on conserve la
possibilité du délégué hypocrite).

Le vote en tant que participant a un poids de 1 s'il ne délègue pas ou
de 0 s'il a délégué son vote sur une question. Celui en tant que
délégué a un poids égal au nombre de personne qui lui délègue son vote
: 0 si personne n'a délégué, 1 si une personne a délégué, etc.

Après, la délégation consiste à donner son poids sur une question à un
délégué, de façon transitive (A délègue à B qui délègue à C) en
vérifiant l'absence de cycles (éviter A qui délègue à B qui délègue à
A).

Il faut également pouvoir supprimer une délégation.

Le code de délégation est dans le fichier suivant (probablement
inutilisable pour toute autre personne que moi) :
  
http://www.linux-france.org/cgi-bin/hgwebdir.cgi/demexp/latest-dev?f=666a5cc3302d;file=srv/posbase.ml.nw
  (ligne 290 et suivantes)

Pour l'identification du délégué, j'ai utilisé un jeton aléatoire :
c'est une courte chaine ASCII générée aléatoirement (par ex. abg56H)
qui identifie de manière unique un participant. Après, le délégué
potentiel peut soit rendre public ce jeton (par exemple sur son site
web), comme ça tout le monde peut lui déléguer des questions, soit
juste le donner de manière confidentielle à un nombre restreint de
personnes, comme ça seules ces personnes peuvent lui déléguer des
questions.

En fait, un même participant peut avoir plusieurs jetons simultanément
(un dizaine max. je crois), pour pouvoir jouer plusieurs rôles. Un
participant peut supprimer un ou plusieurs de ces jetons s'il ne veut
plus être délégué. Les votes sont alors ajustés en conséquence.

La gestion de ces jetons est écrite dans ce fichier :
  
http://www.linux-france.org/cgi-bin/hgwebdir.cgi/demexp/latest-dev?f=9d39d7175466;file=srv/deltok.ml.nw

 Une autre approche pourrait consister à empecher de voir le vote du
 délégué. Ceci nécessite
 de ne déléguer qu'à des personnes de grande confiance. Par ailleurs
 ceci simplifie l'implémentation.

C'est à mon avis à éviter absolument. Un aspect fondamental de la
délégation est justement de pouvoir voir les votes du délégué pour le
contrôler.

Amicalement,
d.

PS : Tout ça me rappelle que je dois toujours écrire les specs de demexp. :-)


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


[Demexp-dev] Re: Demexp correctif et dépouillement Schulze

2009-05-14 Par sujet David MENTRE
Bonsoir Jean-Marc,

J'ai remis à jour mon serveur avec la dernière version de ton code...

Fauché Jean-Marc jm.fau...@free.fr writes:

 Je vais essayer de voir comment faire les mises à jour tout en
 conservant la base de donnée ...car il va falloir vous réenregistrer ,
 revoter ,...bref Base Neuve..(ceci dit ,j'avais voté plusieurs fois pour
 mes test ...et au pif encore...).

...et de la base (scroutch la base !).

Dans web2py il y a une fonction d'export avec le bouton /pack all/ qui
produit un beau .tar.gz prêt à être importé.

Par contre ça exporte aussi la base de donnée
(cf. web2py_manual_cut.pdf[1], p. 41) : « *package* an application for
distribution by clicking on the corresponding button. A downloaded
application is a tar file containing everything, including the
database. Notice that you should never untar this file, it is
automatically unpackaged by web2py when one installs it using admin.  »
(j'ai vérifié. Ça renvoit bien tout)

Donc, si tu ne veux pas écraser la base de donnée, il faut que dans ton
zip tu exclues le répertoire databases/ dans Demexp/.

Ou alors tu utilises le bouton /pack all/, et je me ferai un petit
script pour virer la base avant l'import.

Au passage, web2py vérifie normalement la base avant d'y accéder donc si
tu fais des modifs sur la base de données normalement elle sera
automagiquement mise à jour pour être en phase avec la nouvelle version.

Amicalement,
d.

Footnotes: 
[1]  http://www.web2py.com/examples/static/web2py_manual_cut.pdf

 Au passage, cette extrait du bouquin sur web2py est a moitié
 pourri, pleins d'erreurs ou d'inexactitudes. Ça ne met pas en
 confiance. :-(

-- 
GPG/PGP key: A3AD7A2A David MENTRE dmen...@linux-france.org
 5996 CC46 4612 9CA4 3562  D7AC 6C67 9E96 A3AD 7A2A


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


[Demexp-dev] Re: Utilisation de demexp via web2py

2009-05-11 Par sujet David MENTRE
Bonjour Jean-Marc,

2009/5/10 Fauché Jean-Marc jm.fau...@free.fr:
 Voici un rappel de mon mail du 22/04/2009:

Merci pour les explications, ça me permettra de tester. Je t'assure
que j'ai regardé dans les archives avant de demander mais je n'avais
rien trouvé.

J'ai regardé un peu la doc autour de web2py : le framework a l'air
plutôt bien fichu, du moins sur le papier. Internationalisation, prise
en compte de la sécurité, syntaxe agréable pour les views (aka
templates), syntaxe agréable pour les requêtes à la base, marche avec
plein de bases (dont Postgresql), backtraces dans un bug tracker,
gestion intégrale des objets par une interface web, etc. Après c'est
uniquement la pratique qui permet de dire si c'est vraiment bien ou
pas. L'expérience le dira.

Je me méfie un peu des approches « Modèle dans le langage du Framework
» (que ce soit de RoR, Django ou web2py) car j'ai peur que la base de
donnée générée soit trop liée à un Framework donné (en l'occurrence
web2py) mais bon, vu l'état actuel de demexp, pourquoi ne pas
tenter...

Suite au prochain épisode. ;-)

Amicalement,
d.


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


Re: [Demexp-dev] Demexp avec dépouillement des votes

2009-05-10 Par sujet David MENTRE
Bonjour Jean-Marc,

Fauché Jean-Marc jm.fau...@free.fr writes:

 Bonjour , voici une nouvelle version qui comporte le dépouillement du
 vote accessible via le bouton 'resultat' et une fenêtre popup.

Question bête : comment est-ce qu'on fait pour tester ton code ? Tu n'as
pas mis de doc.

Sinon, le fichier LICENSE est vide : quelle licence comptes-tu utiliser
?

Amicalement,
d.
-- 
GPG/PGP key: A3AD7A2A David MENTRE dmen...@linux-france.org
 5996 CC46 4612 9CA4 3562  D7AC 6C67 9E96 A3AD 7A2A


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


Re: [Demexp-dev] Serveur actif?

2009-03-06 Par sujet David MENTRE
Bonjour Lyu,

2009/3/6 Lyu Abe lyu...@free.fr:
 est-ce que les serveurs
 http://www.linux-france.org/cgi-bin/demexp-xmlrpc-demo
 http://www.linux-france.org/cgi-bin/demexp-xmlrpc-test

 sont actifs?

Il y a clairement quelque chose en rade. Je regarderai ce soir ou au pire ce WE.

Amicalement,
d.


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


Re: [Demexp-dev] Serveur actif?

2009-03-06 Par sujet David MENTRE
Lyu,

On Fri, Mar 6, 2009 at 10:00, Lyu Abe lyu...@free.fr wrote:
 Jean-Marc FAUCHE m'a contacte et est en train de se pencher sur le client
 Web (lui, il connait Python!!)

Je ne connais pas Jean-Marc FAUCHE mais c'est une très bonne nouvelle
que quelqu'un s'intéresse au client web.

Amicalement,
d.


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


Re: [Demexp-dev] Serveur actif?

2009-03-06 Par sujet David MENTRE
Re-salut Lyu,

2009/3/6 David MENTRE dmen...@linux-france.org:
 2009/3/6 Lyu Abe lyu...@free.fr:
 est-ce que les serveurs
 http://www.linux-france.org/cgi-bin/demexp-xmlrpc-demo
 http://www.linux-france.org/cgi-bin/demexp-xmlrpc-test

 sont actifs?

 Il y a clairement quelque chose en rade. Je regarderai ce soir ou au pire ce 
 WE.

Les deux serveurs sont redémarrés. Ne pas hésiter à signaler si ça
tombe en rade, les serveurs ne sont pas automatiquement redémarrés en
cas de reboot du serveur.

Amicalement,
d.


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


Re: [Demexp-dev] login method and cookie

2008-10-13 Par sujet David MENTRE
Hello Lyu,

On Sun, Oct 12, 2008 at 23:06, Lyu Abe [EMAIL PROTECTED] wrote:
 ok, so if I understand right, all the methods I mentioned in my email
 (max_question_id and max_tag_id) should work and return correct values even
 if I'm not logged in. Other functions with 'privilege' will return an error
 code.

Yes.

Yours,
d.


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


Re: [Demexp-dev] login method and cookie

2008-10-12 Par sujet David MENTRE
Hi Lyu,

On Sun, Oct 12, 2008 at 22:09, Lyu Abe [EMAIL PROTECTED] wrote:
 Actually no: I am using a C code (xmlrpc-c) to call the methods on the
 http://www.linux-france.org/cgi-bin/demexp-xmlrpc-test
 server with the root login.

 I commented the 'login' method calls but could still obtain responses from
 other methods ('max_question_id' and 'max_tag_id'). I don't know if this is
 a normal behaviour.

Certain methods are restricted to certain role. E.g. method
set_question_status is restricted to classifier.
You need to look at the code to know the restriction about each method.
 
http://www.linux-france.org/cgi-bin/hgwebdir.cgi/demexp/version-0.8?f=be82d551338e;file=srv/work.ml.nw

For example:
347 let set_question_status (cookie, q_id, new_status) =
348 do_if_classifier cookie

This method is executed only if the caller has classifier rights.

 It's a very simple C code (just call and proceed the result). I just skipped
 the 'login' step, and could still access other methods...

Do you check return codes of the other method calls (after the login)?
It is normal to be able to call them. But they should return an error
if you don't have enough access rights.

Yours,
d.


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


[Demexp-dev] Issues when installing demexp

2008-07-28 Par sujet David MENTRE
Hello Diogene,

On Mon, Jul 28, 2008 at 08:57, Diogene Laerce [EMAIL PROTECTED] wrote:
 And you will find the issues I encountered trying to install demexp.. Im
 a kind of stuck there : I think I miss something with the fop
 installation.

Which issue excatly do you have?

Yours,
d.


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


Re: [Demexp-dev] server ?

2008-07-27 Par sujet David MENTRE
Hello Diogene,

Diogene Laerce [EMAIL PROTECTED] writes:

 1- Is the demo server :
 http://www.linux-france.org/cgi-bin/demexp-xmlrpc-test
 down ?

Yes, it was down.

 2- And if it is : is this definitive?

No, I've relaunched it.

Sincerely yours,
d.
-- 
GPG/PGP key: A3AD7A2A David MENTRE [EMAIL PROTECTED]
 5996 CC46 4612 9CA4 3562  D7AC 6C67 9E96 A3AD 7A2A


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


Re: [Demexp-dev] installation demexp-server

2008-07-25 Par sujet David MENTRE
Hello Diogene,

On Fri, Jul 25, 2008 at 05:26, Diogene Laerce [EMAIL PROTECTED] wrote:
 patch -p1 --dry-run  ocaml-ast-analyze-0.1.1-ocaml-3.09.2.patch

 and this is this message object :

 do you know where I can find this patch ?

In the source of demexp itself, in the doc/ directory:
 
http://www.linux-france.org/cgi-bin/hgwebdir.cgi/demexp/latest-dev?f=d2344ceeb0c1;file=doc/ocaml-ast-analyze-0.1.1-ocaml-3.09.2.patch

 And by the way, I trying this installation on :

 ubuntu 7.10 amd64

 did you ever get any feedback for such configuration ?

No but I would be interested in any feedback. I've just bought an
amd64 system with Ubuntu 8.04 on it. ;-)

Yours,
d.


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


Re: [Demexp-dev] Serveur plante?...

2008-07-09 Par sujet David MENTRE
Hi Lyu,

On Wed, Jul 9, 2008 at 00:54, Lyu Abe [EMAIL PROTECTED] wrote:
 url = http://www.linux-france.org/cgi-bin/demexp-xmlrpc-test;

Ok, this is not the official server but the experimental one. I'll
take a look at it.

That's why it is crucial to be precise in bug reports. ;-)

Yours,
d.


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


Re: [Demexp-dev] Serveur plante?...

2008-07-08 Par sujet David MENTRE
Salut Lyu, / Hello Lyu,

On Mon, Jul 7, 2008 at 08:39, Lyu Abe [EMAIL PROTECTED] wrote:
 Tout est dans le titre :)

Non, le serveur demexp marche correctement à la date de cet email. /
No, the demexp server works as expected at the date of this email.

Amicalement, / Yours,
d.


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


[Demexp-dev] [Sylvain Le Gall] [Caml-list] [ANN] ocaml-gettext v0.3.0

2008-04-30 Par sujet David MENTRE
Hello,

For those interested in packaging demexp, a new version of ocaml-gettext
is out. It works with latest OCaml 3.10 and simplifies its dependencies.
It should make compiling demexp a little easier.


Changes:
v 0.3.0 has been long awaited but is now ready. It fix a lot of bugs
concerning merging PO and POT file (multiline comments, UTF-8...). This
is also the first release that works with camlp4 3.10. 

This new version doesn't need camlidl and ocaml-ast-analyze anymore, in
order to simplify installation. When building, it is also possible to
not use Camomile in favor of a simple gettext C library.


If somebody compiles demexp on a recent setting (OCaml 3.10), I'll
gladly add his/her compilation notes to the source tree.

Yours,
d.

---BeginMessage---
Hello,

General: 
ocaml-gettext is a library that enables string translation in OCaml.
The API is based on GNU gettext. It comes with a tool to extract
the string which needs to be translated from OCaml source file.

This enable OCaml program to output string in the native language of the
user (if you also provide a file containing the translation of the
english string contains in the program to the one in the native language
of the user).

The translation is based on string (this means that you need to provide a
string and not a unique identifier, like in some other catalog system).
This string is in english, and will be returned if the native language
of the user doesn't have translation catalog.

Changes:
v 0.3.0 has been long awaited but is now ready. It fix a lot of bugs
concerning merging PO and POT file (multiline comments, UTF-8...). This
is also the first release that works with camlp4 3.10. 

This new version doesn't need camlidl and ocaml-ast-analyze anymore, in
order to simplify installation. When building, it is also possible to
not use Camomile in favor of a simple gettext C library.

Links:
http://le-gall.net/sylvain+violaine/ocaml-gettext.html
http://le-gall.net/sylvain+violaine/download/ocaml-gettext-0.3.0.tar.gz

Regards
Sylvain Le Gall

ps: i already sent this mail 5 hours ago, since it doesn't reach the
list, i post it again. Sorry for the noise if both message get posted.


signature.asc
Description: Digital signature
___
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs
---End Message---

-- 
GPG/PGP key: A3AD7A2A David MENTRE [EMAIL PROTECTED]
 5996 CC46 4612 9CA4 3562  D7AC 6C67 9E96 A3AD 7A2A
___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


Re: [Demexp-dev] webdemexp

2008-04-28 Par sujet David MENTRE
Hello Diogene,

Diogene Laerce [EMAIL PROTECTED] writes:

 The progress of the web client have been posted on the forum. A live
 version should be on line soon.

Here is the direct link: https://demexp.org/phpbb/viewtopic.php?t=53

No particular comment as this is pretty much work in progress. As Lyu,
I'm waiting to be able to test it in my browser.

Yours,
d.
-- 
GPG/PGP key: A3AD7A2A David MENTRE [EMAIL PROTECTED]
 5996 CC46 4612 9CA4 3562  D7AC 6C67 9E96 A3AD 7A2A


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


Re: [Demexp-dev] [Web Client] Tag Creation Error

2008-03-22 Par sujet David MENTRE
Lyu Abe [EMAIL PROTECTED] writes:

 I cannot create or add tags with the demo/demo test server
 (http://www.linux-france.org/cgi-bin/demexp-xmlrpc-test)

Yes, the tag handling methods are not available. 

You can see it in the code of the XML RPC proxy:
  
http://www.linux-france.org/cgi-bin/hgwebdir.cgi/demexp/xmlrpc-proxy?f=2c37f5f19621;file=demexp-xmlrpc-proxy.py
(see method register_functions())

 Therefore I cannot test it for ne added questions.

Do you really need to add new tags? Tag handling (creation, change,
addition to questions) is supposed to be done by classifiers
(i.e. humans). Are you doing the management part of demexp?

 By the way, according to my code, there seems to have a problem if a
 question does not have a tag... could you confirm? (i.e. a question
 MUST have at least one tag)

Err, don't know. Ah, yes! If the question has no tag, you can't see it
with the GTK client. What kind of issue do you have?

Yours,
d.
-- 
GPG/PGP key: A3AD7A2A David MENTRE [EMAIL PROTECTED]
 5996 CC46 4612 9CA4 3562  D7AC 6C67 9E96 A3AD 7A2A


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


Re: [Demexp-dev] [Web Client] Timestamps... again

2008-03-22 Par sujet David MENTRE
Hello Lyu,

Lyu Abe [EMAIL PROTECTED] writes:

 Could someone explain how to manage timestamps to retrieve the following
 information:
 -new questions

You don't need timestamps for this. Just store somewhere the maximum
question id you have seen until now. When you get the new maximum
question id, compare it to the old one. Question ids increase strictly. 


 -updated questions
   new answers added
   winning answer changed

Store in a hash-table the timestamp for each question id. When you get
new question timestamps, check for each question if the new timestamp is
bigger than the old one stored in your hash-table. If this is true,
something has changed. 

However, you cannot currently know *what* has changed for a given
question, except by storing all the question fields and comparing one by
one the old field value with the new one.

Please not that for the test server, the timestamp of a question might
*not* be updated if the winning answer is changed. This was fixed later
in the development version.

   delegate changed the vote

Currently part of delegation is only implemented in the current dev
version and I can't remember what's happening when something change with
delegates. 

Yours,
d.
-- 
GPG/PGP key: A3AD7A2A David MENTRE [EMAIL PROTECTED]
 5996 CC46 4612 9CA4 3562  D7AC 6C67 9E96 A3AD 7A2A


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


Re: [Demexp-dev] About tags...

2008-03-15 Par sujet David MENTRE
Hello Lyu,

Lyu Abe [EMAIL PROTECTED] writes:

 How are tags for new questions managed? Each time a new question is
 added, should the web client care about creating a corresponding tag
 set?... or is that a task for question moderators?

This is a task for moderators. However, at least one tag is created and
added for each question (tag question_/number/) and one can imgaine
that one automatically adds tags to a new question.

Yours,
d.
-- 
GPG/PGP key: A3AD7A2A David MENTRE [EMAIL PROTECTED]
 5996 CC46 4612 9CA4 3562  D7AC 6C67 9E96 A3AD 7A2A


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


Re: [Demexp-dev] Timestamps (de)compression?

2008-03-11 Par sujet David MENTRE
Hello Lyu,

2008/3/11, Lyu Abe [EMAIL PROTECTED]:
  I try to decode compressed timestamps. I tried to use the decompress
  function from the zlib module in mod python, but it does not seem to
  give satifactory results (undecipherable strings). Any hint?

Yes. Look at get_timestamps_decoded() in the source code of the Python
XML RPC proxy, especially the function __as_int_array() (lines
132-147):

 
http://www.linux-france.org/cgi-bin/hgwebdir.cgi/demexp/xmlrpc-proxy?f=2c37f5f19621;file=demexp-xmlrpc-proxy.py

Yours,
d.


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


Re: [Demexp-dev] Re: Add response: erreur pyhton

2008-03-11 Par sujet David MENTRE
Hello Lyu,

2008/3/11, Lyu Abe [EMAIL PROTECTED]:
  I succeeded in using the marshal module so that I don't get the error
  below anymore. However, I get an Internal server error from the
  request.

If you get an internal server error, then the fault is on the side
of the demexp server. However I need more details to find what is
happening. Can you provide a self-contained Python code that exhibits
the issue?

 Can I add new answers and new questions with the demo account?

I think so. But you should use the test server
(tuxinette.linux-france.org:50065). I've just checked: you can add new
questions with the account demo, password demo.

Yours,
d.


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


Re: [Demexp-dev] Re: Add response: erreur pyhton

2008-03-11 Par sujet David MENTRE
Hello Lyu,

2008/3/11, Lyu Abe [EMAIL PROTECTED]:
 this_question = s.question_info(cookie, index, 1)
 marshalled_qu = marshal.dumps(this_question[0]['q_id'])
 marshalled_resp = marshal.dumps(new_response)
 s.add_response(cookie, marshalled_qu,marshalled_resp,)

Well, I don't really understand why you would need such marshal calls.

If you look at the code of the XML RPC proxy, you see for example this
code to add a new response (line 157):

def add_response(self, cookie, question_id, response_desc, response_link):
ret = self.onc.add_response(cookie, question_id,
response_desc.encode('utf_8'),
response_link.encode('utf_8'))
if ret != DemexpRpc.const.rt_ok:
raise RpcError(ret)
return ret

cookie is the cookie you got from login().

question_id is a Python integer.

response_desc and response_link are two Python strings.

When you use ONC RPC calls, you can use regular Python simple types as
arguments. Where are those marshal calls coming from?

You'll find other examples of Python code to call the demexp server in
the source code of pydemexp (http://thomas.enix.org/pub/pydemexp/), in
files add-question.py and list-question.py.

If you are able to get your new response as a regular Python string,
you should be able to add it to the server pretty easily.

I hope this helps,
Yours,
d.


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


Re: [Demexp-dev] Timestamps

2008-03-04 Par sujet David MENTRE
Hello Diogene,

2008/3/4, Diogene Laerce [EMAIL PROTECTED]:
  The access to the client, so the databse is authorized by the demexp
  server.

Ok. Seems correct at first sight.


  Well according to the joined graphic, I thought about a central demexp
  server connected to the forums. Where each forum can run his own
  database : votes and propostions are still recorded by the demexp server
  but the questions browsing is made locally. So it could decrease the
  number of connections to the demexp server.

Nice.

  Even why not, the vote and propositions can be updated during the
  database update (my client can update and store the database in the
  admin interface). So that each forum would connect only 2 or 3 times a
  day.

Regarding reading, there is no particular issue so you can cache as
much as you like in your forum databases.

However, regarding writing (e.g. vote, new questions or new
responses), I think you should do them as early as possible otherwise
you might have coherency issues (e.g. the new questions conflicts with
the same one registered by somebody else, etc.). Only the demexp
server can guarantee a coherent state. You might cache during writings
but, in my opinion, this is very complicated and you'll have a lot of
tricky issues.

Yours,
d.


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


Re: [Demexp-dev] base64

2008-03-04 Par sujet David MENTRE
Hello Diogene,

2008/3/4, Diogene Laerce [EMAIL PROTECTED]:
 echo base64_decode($timestamps);

 give me back the text translation. And anyway, no translation on this
 picture looks like a timestamp list ??

 Can you show me the light ?

Sure. As it is written in the demexp book on page 33, a set of
timestamps is encoded as a gzipped array of 32 bits integer. So,
roughly, you need to base64_decode then ungzip the $timestamps and
then exploit as a binary array of 32-bits integers.

Frankly, I don't know how to do this in PHP or if it is even possible.

Why don't you use the call get_timestamps_decoded()? It gives you the
same timestamps but as a nice set of three integer arrays already
uncompressed. It would be much easier for you.

Yours,
d.


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


Re: [Demexp-dev] Timestamps

2008-03-02 Par sujet David MENTRE
Hello Diogene,

Diogene Laerce [EMAIL PROTECTED] writes:

 As an added bonus, on the XML-RPC proxy, you have two RPCs available:
  * get_timestamp(), the same as the get_timestamp() ONC-RPC;

  * get_timestamp_decoded(), returns the timestamp as arrays of
 integers (instead of the compressed version of the get_timestamp()
 RPC).

 So I guessed that it exists a get_timestamp() function available for each
 question. But the demo-server answers that such funcion is  not supported.
 See the joined file for debbug.

 Have I guessed wrong ? 

Yes and no.

I was wrong in my description, the correct functions to call are
get_timestamps(cookie) and get_timestamps_decoded(cookie), with an S
at the end of the timestamp word.

However, you cannot get a timestamp for on a single question through
get_timestamps[_decoded](). With those calls, you'll get *all* the
timestamps for participants, questions and tags, in that order (see code
chunks 17a and 19f in demexp book).

If you want the timestamp of a single question (or a small set of
questions), use question_info(). The timestamp of a question is
available in the field question_info[n].q_timestamp (see code chunk 17d
page 17 in demexp book[1]).

Yours,
d.

Footnotes: 
[1]  
http://www.linux-france.org/~dmentre/demexp/latest-src/demexp-book-0.8.2.pdf

-- 
GPG/PGP key: A3AD7A2A David MENTRE [EMAIL PROTECTED]
 5996 CC46 4612 9CA4 3562  D7AC 6C67 9E96 A3AD 7A2A


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


Re: [Demexp-dev] Timestamps

2008-03-02 Par sujet David MENTRE
Hello Diogene,

2008/3/3, Diogene Laerce [EMAIL PROTECTED]:
  And to be oversure .. : : what do you mean by :

  Method get timestamps returns timestamps of all the objects on the
  server. (3.3.2 Timestamps 19f)

  all the objects means ?

As I said in my previous email: participants, questions and tags, in
that order (see fields gt_participant, gt_question and gt_tag in the
returned data structure).

  And, passing by, maybe already ask but : Is there a limitation of times,
  the voter can vote ?

If the vote limit date is over, the voter shouldn't be able to vote
but I'm not really sure it is implemented. ;-)

  Another one :
  I developp the client, working with Postgresql : All questions in a
  database with the clients account managed by the forum server.

  What do you think of the idea (security issues, fake vote
  opportunities..) ?

I can't say much without further technical details. I think you should
use the authentication of the demexp server.

   I was thinking about a demexp label to warrant the forum
  administrator.. ??

Sorry, I don't understand what do you mean.

Yours,
d.


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


Re: [Demexp-dev] Vote function

2008-02-25 Par sujet David MENTRE
Hello,

2008/2/25, Diogene Laerce [EMAIL PROTECTED]:
 [david]
   [1]  I would consider a serious design issue with PHP and this library.

  What do you mean by that ?

I mean that even if the programmer makes a mistake (e.g. forget to
properly encode an xmlrpcval) when calling an API, the API should warn
about the error and fail, and not silently forget about the bad
argument. I don't know if this is a bug in PHP, in the xmlrpc library
or both, but that should not happen.

Yours,
d.


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


Re: [Demexp-dev] Vote function

2008-02-22 Par sujet David MENTRE
Hello Diogene,

2008/2/22, Diogene Laerce [EMAIL PROTECTED]:
  But the debug answers that vote function takes 4 arguments ?? where the
  demexp doc says :

  vote(cookie_t, question_id_t, vote_choice_t) ??

  Any explanation ?

Strange indeed. I've checked: the XML RPC proxy takes only three
arguments for vote().

Are you sure the call is properly encoded? Could you show the error
message and the debug output?

Yours,
d.


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


[Demexp-dev] Re-start of demo server

2008-02-18 Par sujet David MENTRE
Hello,

For web developments, I've restarted the test server. 

It is accessible at tuxinette.linux-france.org:50065 for the ONC-RPC
interface and at http://www.linux-france.org/cgi-bin/demexp-xmlrpc-test
for the XML-RPC interface.

Yours,
d.
-- 
GPG/PGP key: A3AD7A2A David MENTRE [EMAIL PROTECTED]
 5996 CC46 4612 9CA4 3562  D7AC 6C67 9E96 A3AD 7A2A


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


Re: [Demexp-dev] Re: ocamlrpcgen no longer recognises command line options

2008-01-10 Par sujet David MENTRE
Hello,

Some progress has been made.

2008/1/6, David MENTRE [EMAIL PROTECTED]:
 So maybe the strip is done at another level or is the side effect of
 another system-wide change, but this is beyond my knowledge of Ubuntu
 and Debian.

 In any case, I'll add this information to the Ubuntu bug report[1].
[...]
 [1]  https://bugs.launchpad.net/ubuntu/+source/ocamlnet/+bug/180364

It appears that adding .gnu_debuglink ELF section breaks the bytecode binaries.

Martin Pitt is looking for a reliable way to identify ocaml bytecode
programs so as to exclude them from the .gnu_debuglink ELF section
addition process.

He suggests objdump -x binary | grep -qw caml_release_bytecode and
objdump -t binary. Any idea if this is the proper way?

Sincerely yours,
david


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


[Demexp-dev] Re: ocamlrpcgen no longer recognises command line options

2008-01-06 Par sujet David MENTRE
Hello Stefano,

[For context, this is a reply to:
 http://lists.debian.org/debian-ocaml-maint/2008/01/msg00061.html ]

Stefano Zacchiroli [EMAIL PROTECTED] writes:

 Only the version number, not (necessarily) the package itself: Ubuntu
 rebuilds Debian packages in its universe and applies its own patches.
[...]
 In case you want to forward a patch for this specific problem to the
 Ubuntu side, here is the needed line in debian/rules:

   DEB_STRIP_EXCLUDE += usr/bin/ocamlrpcgen

 (together with a similar line for usr/bin/netplex-admin, FWIF).

Thank you for the explanations. I tried to find this Ubuntu's specific
patch but found nothing. :-(

I found no Ubuntu specific patch for ocamlnet or libocamlnet in:
 http://patches.ubuntu.com/o/
nor in:
 http://patches.ubuntu.com/libo/

Looking at http://packages.ubuntu.com/gutsy/libs/libocamlnet-ocaml it
seems that the patch applied to the package is exactly the same as the
Debian one (i.e. yours):
 
http://archive.ubuntu.com/ubuntu/pool/universe/o/ocamlnet/ocamlnet_2.2.7-1.diff.gz

It has the DEB_STRIP_EXCLUDE lines:
 +DEB_STRIP_EXCLUDE += usr/bin/netplex-admin# OCaml custom bytecode 
binaries can't be striped
 +DEB_STRIP_EXCLUDE += usr/bin/ocamlrpcgen


So maybe the strip is done at another level or is the side effect of
another system-wide change, but this is beyond my knowledge of Ubuntu
and Debian.

In any case, I'll add this information to the Ubuntu bug report[1].

Yours,
d.

Footnotes: 
[1]  https://bugs.launchpad.net/ubuntu/+source/ocamlnet/+bug/180364

-- 
GPG/PGP key: A3AD7A2A David MENTRE [EMAIL PROTECTED]
 5996 CC46 4612 9CA4 3562  D7AC 6C67 9E96 A3AD 7A2A


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


Re: [Demexp-dev] Issue to compile demexp on Ubuntu Gutsy

2008-01-04 Par sujet David MENTRE
David MENTRE [EMAIL PROTECTED] writes:

 I've sent a message at
 debian-ocaml-maint at lists.debian.org and I'm waiting for any clue.

http://lists.debian.org/debian-ocaml-maint/2008/01/msg00037.html

d.
-- 
GPG/PGP key: A3AD7A2A David MENTRE [EMAIL PROTECTED]
 5996 CC46 4612 9CA4 3562  D7AC 6C67 9E96 A3AD 7A2A


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


[Demexp-dev] Re: ocamlrpcgen no longer recognises command line options

2008-01-04 Par sujet David MENTRE
Hello Julien,

Thank you for the quick answer.

Julien Cristau [EMAIL PROTECTED] writes:

 Sounds like ocamlrpcgen has been stripped.  Custom ocaml binaries can't
 be stripped, because of http://bugs.debian.org/256900 .  I suggest you
 file a bug on the ubuntu bug tracker.

Your diagnosis seems correct:
$ ocamlrpcgen net/messages.xdr
Fatal error: the file net/messages.xdr is not a bytecode executable file

Apparently, the ocaml runtime in ocamlrpcgen is lacking some bytecode.

I've filled a bug report:
 https://bugs.launchpad.net/ubuntu/+source/ocamlnet/+bug/180364

Any Ubuntu developer on debian-ocaml-maint?

Yours,
d.
-- 
GPG/PGP key: A3AD7A2A David MENTRE [EMAIL PROTECTED]
 5996 CC46 4612 9CA4 3562  D7AC 6C67 9E96 A3AD 7A2A


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


Re: [Demexp-dev] About timestamps

2007-11-16 Par sujet David MENTRE
Hi Lyu,

2007/11/16, Lyu Abe [EMAIL PROTECTED]:
 What does local mean for you? (for me, it means the client computer)

No, for this particular case it means on the web server (which is a
proxy between the web browser and the real demexp server). The web
server is a server for the web browser but a client for the demexp
server. ;-)

  web browser  web server  demexp server

 To summarize my thoughts:
 -To be able to use timestamps, there must be a file on the client
 computer containing the timestamp of all questions, so that they can be
 compared to new timestamps(?)

No, that file (more probably a memory data structure) is on the web server.

 Since I feel I'm a little bit dumb on that question, here is a test case:
 -I am a user logging to Demexp for the first time
 -Two days later, I log again: can you precisely describe what is the
 process of using timestamps in that case? (client and server sides)

Ok, I try :-)

 1. The client web browser connects to the web server;

 2. The web server connects to the demexp server. It gets the new timestamps;

 3. The web server compares those timestamps to the old ones it has
store somewhere (e.g. in memory);

 4. If some timestamps are newer, the web server gets from the demexp
server the corresponding new labels of tags;

 5. After all that steps, the web server makes the HTML page and send
it back to the client web browser.

Now, trying to be clearer :

 * In a first prototype, you can replace steps 2-4 by * Connect to
the demexp server and always get all the tags with their labels;

 * If you really want to use timestamps, you probably won't do steps
2-4 for each new request of a web client but only after a timeout,
e.g. each 10 or 20 minutes.

Is it clearer now?

Yours,
d.


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


Re: [Demexp-dev] About timestamps

2007-11-14 Par sujet David MENTRE
[ Sorry for the duplicate, Lyu, I forgot [EMAIL PROTECTED] ]

Hi Lyu,

2007/11/14, Lyu Abe [EMAIL PROTECTED]:
 What do you mean by store tags? Does it mean storing the tags locally?

Yes. For example, you could store in the tags in a Python data
structure in memory.

However, in a first prototype, this is not mandatory. We could add it
at a later time if needed.

Have a good night, ;-)
Yours,
d.
-- 
GPG/PGP key: A3AD7A2A David MENTRE [EMAIL PROTECTED]
 5996 CC46 4612 9CA4 3562  D7AC 6C67 9E96 A3AD 7A2A


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


Re: [Demexp-dev] mod_python and web framework

2007-11-06 Par sujet David MENTRE
Hello Lyu,

2007/11/6, Lyu Abe [EMAIL PROTECTED]:
 By the way, is that address operational now? (because I cannot connect)
 http://82.229.60.210/lyu-proto/

No. This is my computer at home which I power off most of the time.

 I made some updates for the Client GUI (color scheme mainly)... inspired
 by the Django theme :P

 I'll post that later this week.

I'm eager to see it. :-)

Yours,
d.


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


Re: [Demexp-dev] Retrieving questions

2007-11-06 Par sujet David MENTRE
Hello Diogene,

2007/11/6, Diogene Laerce [EMAIL PROTECTED]:
 // Questions download : Send a message to the server.
 $message = new xmlrpcmsg('question_info', array(new
 xmlrpcval($cookie_dm, int), new xmlrpcval(100, int), new
 xmlrpcval(200, int)));

As I said previously[1], the number of question requested is limited
to 100. Here you are requesting 200 questions, from number 100 to
number 299.


 valuestringrt_request_too_much_ids/string/value

That's why the server rejects your request. The error message means:
you request to many items at once.

Try instead:
 $message = new xmlrpcmsg('question_info', array(new
xmlrpcval($cookie_dm, int),

   new xmlrpcval(100, int),

   new xmlrpcval(100, int)));


Yours,
d.

[1] http://article.gmane.org/gmane.politics.organizations.demexp.devel/1452


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


Re: [Demexp-dev] mod_python and web framework

2007-11-05 Par sujet David MENTRE
Hello,

2007/11/2, David MENTRE [EMAIL PROTECTED]:
 Include the web interface you are developping into existing code and
 infrastructure, like:

  * Django: http://www.djangoproject.com/

  * TurboGears: http://turbogears.org/

After much thought, I don't think that it is that much mandatory.

Use the tools that suite you, Lyu. Having a working web interface
prototype is more important than the language or tools used.

Best wishes,
d.


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


Re: [Demexp-dev] mod_python and web framework

2007-11-02 Par sujet David MENTRE
Hi Lyu,

Lyu Abe [EMAIL PROTECTED] writes:

 Hehe... what do you mean? :D  (framework is a word I bearly understand
 in this context...)

Include the web interface you are developping into existing code and
infrastructure, like:

 * Django: http://www.djangoproject.com/

 * TurboGears: http://turbogears.org/

Thomas as already used Django, maybe he could put some light on
it. Would he think it could be useful to use it?


Yours,
d.
-- 
GPG/PGP key: A3AD7A2A David MENTRE [EMAIL PROTECTED]
 5996 CC46 4612 9CA4 3562  D7AC 6C67 9E96 A3AD 7A2A


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


Re: [Demexp-dev] php file exitence

2007-11-02 Par sujet David MENTRE
Hello Diogène,

Diogene Laerce [EMAIL PROTECTED] writes:

 Im trying to get the xml file ive done with the questions list and
 informations to parse it. But I cant find it : I already give a 777
 permission recursively on all site, my safe mode on phpinfo() is set on
 off but the following code return false :

 $filename = '/chemin/jusqu/a/fichier.txt';

 if (file_exists($filename)) {
 print Le fichier $filename existe;
 } else {
 print Le fichier $filename n'existe pas;

 ---file doesnt exist

 An idea ?

Not really. Giving access rights and disabling safe mode should be
enough to access any file. There is a cache of read information on a
file but the cache is empty until the file is available at least
once[1]. 

Double check the path of the file, that this is the right path, starting
a the root of your file-system. The code you have shown us is not your
real code so I can't help you further.

Sorry,
Yours,
d.

Footnotes: 
[1]  http://www.manuelphp.com/php/function.clearstatcache.php

-- 
GPG/PGP key: A3AD7A2A David MENTRE [EMAIL PROTECTED]
 5996 CC46 4612 9CA4 3562  D7AC 6C67 9E96 A3AD 7A2A


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


Re: [Demexp-dev] Access speed

2007-11-02 Par sujet David MENTRE
Hello Lyu,

Lyu Abe [EMAIL PROTECTED] writes:

 can you tell me how fast is the code running, for example when
 displaying the question list? (because here in japan, the connection is
 very slow to access the Demexp server)

The code is not overly fast but usable.

But this is not really an issue, as for deployement the web interface
and the demexp server will be on the same physical machine.

Of course, we should take care of optimizing performances when possible
at a reasonnable cost.

Yours,
d.
-- 
GPG/PGP key: A3AD7A2A David MENTRE [EMAIL PROTECTED]
 5996 CC46 4612 9CA4 3562  D7AC 6C67 9E96 A3AD 7A2A


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


Re: [Demexp-dev] Question list by Category

2007-11-01 Par sujet David MENTRE
Hi Lyu,

Lyu Abe [EMAIL PROTECTED] writes:

 What would be your suggestion concerning the retrieval of questions
 according to a given tag or set of tags?

Sorry, I don't understand your question. Could you be a bit more
explicit? Is your question related to the GUI?

Yours,
d.
-- 
GPG/PGP key: A3AD7A2A David MENTRE [EMAIL PROTECTED]
 5996 CC46 4612 9CA4 3562  D7AC 6C67 9E96 A3AD 7A2A


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


Re: [Demexp-dev] Web Client Source Available

2007-11-01 Par sujet David MENTRE
David MENTRE [EMAIL PROTECTED] writes:

 I suspect this is due to the fact we can have several Python
 interpreters, each one handling a request.

More information on this here:
  http://www.modpython.org/FAQ/faqw.py?req=all#3.5

Yours,
d.
-- 
GPG/PGP key: A3AD7A2A David MENTRE [EMAIL PROTECTED]
 5996 CC46 4612 9CA4 3562  D7AC 6C67 9E96 A3AD 7A2A


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


Re: [Demexp-dev] Sorting tag/question lists

2007-10-29 Par sujet David MENTRE
Hello Lyu,

2007/10/29, Lyu Abe [EMAIL PROTECTED]:
 I'm currently using this code to sort the question or tags lists...

You want to sort tag list by label name, right?

 tag_labels = []
 for k in range(n_maxtags):
 tag_labels += s.tag_info(cookie,k*100,100)

 tag_labels += s.tag_info(cookie,n_maxtags*100,n_maxtags_rem)

Using .map() and lambda you should be able to have a list tuples (id,
label) in tag_labels. From now, I assume you have something like:

  tag_labels=[(3, 'B'), (1, 'A')]


 z = []
 for k in range(max_tags):
 z += [(k,tag_labels[k]['a_tag_id'])]

 z.sort(lambda x,y:cmp(x[1],y[1]))

 o = []
 for k in range(max_tags):
 o += [ tag_labels[z[k][0]] ]

 tag_labels = o

Why don't you apply your .sort() directly on tag_labels? Something like:

   tag_labels.sort(lambda x,y:cmp(x[1],y[1]))

That gives:
   tag_labels
 [(1, 'A'), (3, 'B')]

I hope it helps,
Yours,
d.


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


Re: [Demexp-dev] Update of Web Client Screenshots

2007-10-24 Par sujet David MENTRE
Hello,

2007/10/24, Félix [EMAIL PROTECTED]:
 Congratulations for the work accomplished till now! I've answered here:
 https://demexp.org/phpbb/viewtopic.php?p=112#112

Félix has done most if not all of the comment I wanted to make. :-)

Yours,
d.


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


Re: [Demexp-dev] Update of Web Client Screenshots

2007-10-24 Par sujet David MENTRE
2007/10/24, David MENTRE [EMAIL PROTECTED]:
 2007/10/24, Félix [EMAIL PROTECTED]:
  Congratulations for the work accomplished till now! I've answered here:
  https://demexp.org/phpbb/viewtopic.php?p=112#112

 Félix has done most if not all of the comment I wanted to make. :-)

Ah yes, one additional comment: you can include the demexp official
logo if you want:
  https://demexp.org/dokuwiki/doku.php?id=fr:documents

Yours,
d.


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


Re: [Demexp-dev] Web Client: voting

2007-10-23 Par sujet David MENTRE
Hi Lyu,

Thank you for your progress report, that seems very promising!!

2007/10/23, Lyu Abe [EMAIL PROTECTED]:
 One possibility, of course, is to use the current Demexp method (a
 two-column list with the possibility to move up/down the responses to
 order them).

This approach is pretty simple, isn't it?

 But I'm trying to think about a somewhat simpler way to do
 this (were there any reflexions about it before).

I don't think we had thought on that part.

Maybe you can consider to have a single list with a kind of bin for
non-chosen answers at the bottom. I'm not sure it would be more
simple.

Please also note that Condorcet voting allows to rank several options
at the same level (choice A: 1; choices B  C: 2; choices D: 3). The
current two lists interface does not allow that.

 I've also had some replies from mod python forum about the way to
 manage the data (number of connexions to the server). I'll look into the
 session feature of mod python.

Ok. But do not invest too much time in this. If your work is
integrated at some point in a general framework, we might need to
change this part.

But if you have some running code, we could put it online pretty quickly. ;-)

Best wishes,
d.


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


Re: [Demexp-dev] Character encoding

2007-10-22 Par sujet David MENTRE
Hello Lyu,

2007/10/22, Lyu Abe [EMAIL PROTECTED]:
 There's one thing I do not understand in character coding of the
 server's reply. When I display, for example, tag sets, I can read this:

 'a_tag_label': u'citoyennet\xe9'

 in which   u'citoyennet\xe9'  corresponds to an unicode encoded text,
 right?

Yes.

 Then I do not understand why we get unicode encoded strings,
 while DEMEXP is supposed to have UTF-8 encoding...

UTF-8 is the byte-oriented encoding form of Unicode.
http://www.unicode.org/faq/utf_bom.html#2

In other words, all strings on the server are stored in the UTF-8 byte
encoding of the Unicode encoding. All exchanges between the server and
the clients are done in UTF-8, a byte convention to represent Unicode
characters.

After that, each platform is free to do any appropriate conversion,
e.g. use 16 or 32 bits character encoding if they will. However, you
should take care to set the default Python encoding to UTF-8 when you
dialogue with the server.

To be honest, right now, the server does not check much this encoding.
It mainly came from the GTK2 interface that produces UTF-8 strings.
:-) But that should be done at one point.

Best wishes,
d.


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


Re: [Demexp-dev] Character encoding

2007-10-22 Par sujet David MENTRE
Hello Thomas,

2007/10/22, Thomas Petazzoni [EMAIL PROTECTED]:
 The string you mention is encoded in ISO-8859-1 (or ISO-8859-15) : the
 special character é is encoded on one byte only, so it's not UTF-8.

I'm not sure of that. If you look at the Unicode table for Latin1
(http://www.unicode.org/charts/PDF/U0080.pdf), the encoding of é is
00E9 (p. 7).

As the string is explicitly marked as Unicode string (u'string') in
Python, I would say that this indeed an Unicode string, with the é
showed in hexadecimal.

Yours,
d.


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


Re: [Demexp-dev] Character encoding

2007-10-22 Par sujet David MENTRE
Hi Thomas,

2007/10/22, Thomas Petazzoni [EMAIL PROTECTED]:
 But even with that, I'm still not sure to understand completely. These
 encodings issues are really tough to grasp.

Yep, I agree. I only hope we don't have an encoding mess in the
official database. I'll need to check that. One more thing to check.

Yours,
d.


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


Re: [Demexp-dev] Re: Demexp-dev Digest, Vol 48, Issue 6 : Python or php ?

2007-10-20 Par sujet David MENTRE
Hello Diogene,

David MENTRE [EMAIL PROTECTED] writes:

 Have you requested to receive demexp-dev as a daily digest? I'll check
 that (or one of the other demexp-dev list admin)

You had indeed requested a daily digest. I've revert back to normal
continuous flow of emails. Let me know if this is an issue for you.

Best wishes,
d.
-- 
GPG/PGP key: A3AD7A2A David MENTRE [EMAIL PROTECTED]
 5996 CC46 4612 9CA4 3562  D7AC 6C67 9E96 A3AD 7A2A


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


Re: [Demexp-dev] Retrieving Tag List

2007-10-20 Par sujet David MENTRE
Hi Lyu,

Lyu Abe [EMAIL PROTECTED] writes:

 I'm trying to do the maximum as long as I'm motivated(!) :D

:-D

Don't forget the old Free Software motto Release Early, Release Often.
You can put your code somewhere with a suitable Free Software license
(demexp is using currently GNU GPLv2), even if your code is not suitable
yet for general use.

Best wishes,
d.
-- 
GPG/PGP key: A3AD7A2A David MENTRE [EMAIL PROTECTED]
 5996 CC46 4612 9CA4 3562  D7AC 6C67 9E96 A3AD 7A2A


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


Re: [Demexp-dev] Re: Demexp-dev Digest, Vol 48, Issue 6 : Python or php ?

2007-10-19 Par sujet David MENTRE
Hello Diogene,

2007/10/19, Diogene Laerce [EMAIL PROTECTED]:
 First Id like to say that I dont receive the mails of the discussion ??
 Just receive the summary at the end, is this normal ?

Have you requested to receive demexp-dev as a daily digest? I'll check
that (or one of the other demexp-dev list admin)

  Do you really want to use PHP? :-)
 
  In any case, if you prefer PHP, it might be better to use Augustin's
  code. We know it works and it does not need an external library, so it
  is going to be easier to deploy. Moreover, I don't find that the PHP
  xml-rpc external module improves code's clarity.

 Does it not need drupal to work ?

Augustin's code is a Drupal module but his demexp server related code
is generic PHP and relies only on standard PHP modules (as far as I
know). But the best thing is probably to look at his code:
http://drupal.org/project/demexp


 No thats ok for me.. I still think that demexp would need more that one
 client. So I will follow in php cos I believe (tell me if Im wrong) that
 it would be easier to find servers with php available than python.

Yes, generally speaking, it is easier to find PHP hosting that Python one.

However, regarding the demexp official server, we can have any
infrastructure (see below).

 Does it mean that you can use python scripts on a normal apache server
 (no pre required installation) ?

If you have a Python interpreter available, yes you can use Python as
a CGI script.

 Another question : Where can I find the options the server hosting
 demexp propose (php, python, mysql...) ?

On the demexp server, we are root on the machine so we can install
pretty anything that is available as Debian Etch package. :-)

Currently we have PHP5 and PostgreSQL (for the phpBB forum). If you
plan to use a database, please use PostgreSQL instead of MySQL. We
would prefer to standardize on PostgreSQL (for stability reasons).

If you have further inquiries, do not hesitate to ask.

Yours,
d.


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


Re: [Demexp-dev] Web Client Interface [status]

2007-10-19 Par sujet David MENTRE
Hello Lyu,

2007/10/19, Lyu Abe [EMAIL PROTECTED]:
 Unfortunately, I'm not fully aware on how text browser work and handle
 web pages.

If you have access to a linux/unix system, you can try links or lynx.

 Is it possible to recognize which web browser is used, and
 then switch to the most convenient page to display?

No, you should not do that. Because this approach is aimed to failure:
you can't know all the variations of web browsers and how they'll
handle your page.

You should stick to standard HTML and CSS and then use the known
tricks to make it work in IE6.

 (for example for blind people, I guess the tables I am using are
 irrelevant, so that another text page layout would be needed)

You'd better use CSS element positioning instead of table.

Generally speaking, we would prefer that the demexp web server stick
to web standards and recommended good practices.

Of course, *you* are coding so you have the last word. ;-)

Yours,
d.


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


Re: [Demexp-dev] Questions

2007-10-18 Par sujet David MENTRE
Hello Lyu,

2007/10/18, Lyu Abe [EMAIL PROTECTED]:
 I had to install mod python
 in order to make it work with it.
[...]
 Also, I tried to retrieve the login and password from the initial
 index.html using import cgi:

 import cgi
 form = cgi.FieldStorage()
 if form.has_key[login] ...

 But it didn't seem to work. Any suggestions?

It can't work because those two mode are incompatible. Either you are
running a CGI script (i.e. a Python script that is launch each time
Apache handles an URL pointing to this script), or either you use
mod_python and your code runs on a Python interpreter /within/ Apache.

In both cases you should able to get form variables and HTTP headers
info. But you need to look at the correct doc. Haven't doing that
myself, I can't help you further.

I suppose you are doing this only to get some HTML generated so you
can work on the CSS and the user interface.

However, if you plan to invest further in Python:
 * It might be wise to use an available framework the already do most
of the work to handle requests, prepare pages, etc. Django seems to be
a well known framework. We have listed some of them here:
https://demexp.org/dokuwiki/doku.php?id=en:web_client_development_framework

 * You can use the Python ONC-RPC interface (Thomas Petazzoni's
pydemexp) to talk to the demexp server. Once again, no hurry but for
the long term it might be better.

Yours,
d.


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


Re: [Demexp-dev] Web Client Interface [status]

2007-10-18 Par sujet David MENTRE
Hello Lyu,

2007/10/18, Lyu Abe [EMAIL PROTECTED]:
 Here's a small report of what I've obtained so far:
 http://img138.imageshack.us/img138/3824/demexpinterfacev001lj2.png

This seems okay for me. The look seems pretty clean. :-)

 I also need to figure out how to retrieve and display correct question
 tags (Categorie).

See chapters 3.3.5 and 3.3.6 starting at page 21 of demexp book.

To get tags and their label, use RPC:
 * max_tag_id()
 * tag_info()

To get the set of tags assigned to a set of questions, use RPC:
 * tag_set_of_question_group()

(get_question_tag() is a similar and simplified RPC but it is now
deprecated because of performance reason. Try to avoid it.)

As usual, ask questions if you have issues. ;-)

 Next, I want to find some ways to access question details (responses,
 votes, and other details if we want to include them).

Most of this should be returned by question_info(), so you have all
the needed information at hand. :-)

Yours,
d.


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


Re: [Demexp-dev] Questions

2007-10-17 Par sujet David MENTRE
Hello Lyu,

Lyu Abe [EMAIL PROTECTED] writes:

 can retieve the max number of questions. My PHP code is quite similar:

 $message-xmlrpcmsg('max_question_id', $cookie);
 $max_Q_ret = $server-send($message);
 print $max_Q_ret-value();

You have made several errors in this code:
 * In $message-xmlrpcmsg('max_question_id', $cookie);, you need to
   create a *new* xmlrpcmsg. So you need to use some code like
   $message = new xmlrpcmsg('max_question_id', ... 

 * For the $cookie, you need to encode it as XML-RPC value, using
   something like:
new xmlrpcval($cookie, int)
   Moreover, you forgot to pack it into an array() call.

   Above three points now give:
$message = new xmlrpcmsg('max_question_id', 
 array(new xmlrpcval($cookie, int)));
$max_Q_ret = $server-send($message);

 * You neew to convert the returned value in a scalar:
   print $max_Q_ret-value()-scalarVal();


This gives the following code:

-begin example-
?php
// One needs http://phpxmlrpc.sourceforge.net/ XML-RPC library to run
// this code.
include 'xmlrpc-2.2/lib/xmlrpc.inc';

// Object to represent the server
$server = new
xmlrpc_client(http://www.linux-france.org/cgi-bin/demexp-xmlrpc-demo;);

// mode debug
$server-setDebug(1);

// Send a message to the server.
$login  =   new xmlrpcval(root, string);
$passwd =   new xmlrpcval(demexp, string);

$message = new xmlrpcmsg(login, array($login, $passwd));

$result = $server-send($message);

// Process the response.
if (!$result)
{
 print pCould not connect to HTTP server./p;
}
elseif ($result-faultCode())
{
 print pXML-RPC Fault # . $result-faultCode() . :  .
 $result-faultString();
}
else
{
$cookie = $result-value()-scalarVal();
print PRE\nThe cookie for this session is '. $cookie . '\n/PRE;

$message = new xmlrpcmsg('max_question_id', 
 array(new xmlrpcval($cookie, int)));
$max_Q_ret = $server-send($message);
print $max_Q_ret-value()-scalarVal();

}
-end example-

Please note this is *very bad* code. No check of error cases, etc. It is
just a quick hack.

This code works and gives the correct number of questions (273).


 I'm stuck!! Help!! ;)

In such a case, please provide the *exact* and *complete* code you are
using (like my example above). Otherwise it is quite complicated for me
to understand what is the issue.


A last note: I find the PHP interface, either the native one (Augustin
code) or the XML-RPC external module (above code), quite cumbersome,
complex to use and error prone. As an example, here is some Python code
doing the same thing:

-begin Python example-
#!/usr/bin/python

from xmlrpclib import *
import sys

login = demo
password = demo
url = http://www.linux-france.org/cgi-bin/demexp-xmlrpc-demo;

print Connect to server '%s' % url
s = ServerProxy(url)

print login()
cookie = s.login(login, password)
print  = %s % cookie


print max_question_id()
max_question_id = s.max_question_id(cookie)
print  = %s % max_question_id

print goodbye()
s.goodbye(cookie)
-end Python example-


Do you really want to use PHP? :-)

In any case, if you prefer PHP, it might be better to use Augustin's
code. We know it works and it does not need an external library, so it
is going to be easier to deploy. Moreover, I don't find that the PHP
xml-rpc external module improves code's clarity.

Best wishes,
d.
-- 
GPG/PGP key: A3AD7A2A David MENTRE [EMAIL PROTECTED]
 5996 CC46 4612 9CA4 3562  D7AC 6C67 9E96 A3AD 7A2A


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


Re: [Demexp-dev] Questions

2007-10-17 Par sujet David MENTRE
David MENTRE [EMAIL PROTECTED] writes:

 You have made several errors in this code:
  * In $message-xmlrpcmsg('max_question_id', $cookie);, you need to
create a *new* xmlrpcmsg. So you need to use some code like

In fact, I seems that the above code was sending the previous $message
doing the login(), that would explain the integer values you got as
returned values.

Yours,
d.
-- 
GPG/PGP key: A3AD7A2A David MENTRE [EMAIL PROTECTED]
 5996 CC46 4612 9CA4 3562  D7AC 6C67 9E96 A3AD 7A2A


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


Re: [Demexp-dev] Questions

2007-10-16 Par sujet David MENTRE
Hello Lyu,

2007/10/16, Lyu Abe [EMAIL PROTECTED]:
 Diogene suggested to me to take a look at Augustin's code under Dupral
 (link or location?).

http://drupal.org/project/demexp

This is in the wiki. ;-)

https://demexp.org/dokuwiki/doku.php?id=en:start#drupal_module_for_demexp


I need more time (and a computer) to answer the other part of your question.

Yours,
d.


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


Re: [Demexp-dev] Questions

2007-10-16 Par sujet David MENTRE
Lyu,

2007/10/16, David MENTRE [EMAIL PROTECTED]:
 http://drupal.org/project/demexp

You can look at function _contact_demexp_server() and other functions
that call it.

However, from what I've read Augustin is using the xmlrpc() standard
call from PHP and not the xmlrpc external module, so the API is
probably quite different.

Yours,
d.


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


Re: [Demexp-dev] Questions

2007-10-16 Par sujet David MENTRE
Hello,

2007/10/16, Lyu Abe [EMAIL PROTECTED]:
 Diogene told me that he'd rather send a bunch of questions about the
 client after he's explored several things. I personnally think that
 asking questions regularly is safer. It avoids going too deep onto a
 wrong paths.

 What do you think?

Well, everybody works his own way but I also do think that you can ask
freely questions as they occur might be more efficient. I probably
won't answer all of them immediately but that will give me some time
to think about them.

Yours,
d.


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


Re: [Demexp-dev] Questions

2007-10-14 Par sujet David MENTRE
Hello Lyu,

Lyu ABE [EMAIL PROTECTED] writes:

 I'd like to know how I can retrieve questions, answers, votes, etc. I
 tried to use the question_info method, but I do not understand the
 server's reply because I only got a int value.

No, the question_info() method returns a quite complex data
structure. Here is part of its XDR (ONC-RPC) description:

struct response_t {
  response_desc_t r_info_desc;
  external_link_t r_info_link;
};

enum question_status_e { tagging_only = 1, public = 2 };

struct question_t {
  _int32 int q_timestamp;
  question_id_t q_id;
  question_desc_t q_desc;
  date_t q_info_limit_date; /* if set to zero, there is no limit date */
  question_status_e q_info_status;
  response_t q_info_responsesMAX_NUMBER_RESPONSES;
  int q_info_num_votes;
  int q_info_elected_responsesMAX_NUMBER_RESPONSES;
};

struct question_info_return_t {
  return_code_t question_info_rc;
  question_t question_infoMAX_NUMBER_IDS;
};


Roughly speaking, you have a basic structure (question_info_return_t)
that contains a return code (question_info_rc) and an array of question
information (question_info). Each entry of the `question_info' array is
a structure (question_t) that contains the question timestamp, its id,
its description, etc.

question_info() is probably not the simplest RPC to start with. Maybe
Diogene might help you on this.

 My question is not What am I doing wrong?, but rather How to properly
 do that?.

Without some code, it is quite difficult to answer such a question.


Yours,
d.
-- 
GPG/PGP key: A3AD7A2A David MENTRE [EMAIL PROTECTED]
 5996 CC46 4612 9CA4 3562  D7AC 6C67 9E96 A3AD 7A2A


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


Re: [Demexp-dev] Cookie..

2007-09-22 Par sujet David MENTRE
Hello Diogene,

Diogene Laerce [EMAIL PROTECTED] writes:

 Sorry but I didnt have much time this week, so here am I :

No worry, everybody works at his own pace.

 In second hand, I saw this in the xmlrpc2.2 for php doc :

 __


 $client-setCookie($name, $value, $path, $domain, $port);

 string$name;
 string$value;
 string$path;
 string$domain;
 int   $port;

 }
 __

 This should be used to set a cookie to send back to the server for
 dialog purpose.

Ok, there is a misunderstanding. The demexp's cookie has nothing in
common with HTTP's cookie. demexp cookie is just a plain integer that
you should reuse for all later calls to the demexp server.

 PS : The server response debug :

 ---GOT---
 HTTP/1.0 200 OK
 Date: Sat, 22 Sep 2007 06:09:32 GMT
 Content-Length: 129
 Content-Type: text/xml
 Server: Apache/1.3.33 (Unix) PHP/4.3.11 mod_perl/1.29

 ?xml version='1.0'?
 methodResponse
 params
 param
 valueint332720051/int/value
  ^this is the demexp cookie


 /param
 /params
 /methodResponse

 ---END---
 HEADER: date: Sat, 22 Sep 2007 06:09:32 GMT
 HEADER: content-length: 129
 HEADER: content-type: text/xml
 HEADER: server: Apache/1.3.33 (Unix) PHP/4.3.11 mod_perl/1.29
 ---PARSED---
 xmlrpcval::__set_state(array(
'me' = 
   array (
 'int' = 332720051,
   ^and you have it in your PHP data structure
   ),
'mytype' = 1,
'_php_class' = NULL,
 ))
 ---END---

So you are close to a success. You only need to find how to extract this
integer from the value you get after the XML-RPC call.

Yours,
d.
-- 
GPG/PGP key: A3AD7A2A David MENTRE [EMAIL PROTECTED]
 5996 CC46 4612 9CA4 3562  D7AC 6C67 9E96 A3AD 7A2A


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


Re: [Demexp-dev] New code for cookie

2007-09-22 Par sujet David MENTRE
Hello Diogene,

Diogene Laerce [EMAIL PROTECTED] writes:

 I think I did some progress but I still not find any demexp cookie on my
 machine ??

In fact, this was only an issue related to the PHP encoding of the
response. :-) Here is the code that works on my machine:

-- start of php code ---
?php
// One needs http://phpxmlrpc.sourceforge.net/ XML-RPC library to run
// this code.
include 'xmlrpc-2.2/lib/xmlrpc.inc';  // -- for my own setting!! Keep yours.

// Object to represent the server
$server = new
xmlrpc_client(http://www.linux-france.org/cgi-bin/demexp-xmlrpc-demo;);

// mode debug
$server-setDebug(1);

// Send a message to the server.
$login  =   new xmlrpcval(root, string);
$passwd =   new xmlrpcval(demexp, string);

$message = new xmlrpcmsg(login, array($login, $passwd));

$result = $server-send($message);

// Process the response.
if (!$result)
{
 print pCould not connect to HTTP server./p;
}
elseif ($result-faultCode())
{
 print pXML-RPC Fault # . $result-faultCode() . :  .
 $result-faultString();
}
else
{
$cookie = $result-value()-scalarVal(); // -- Here is the trick!!
print PRE\nThe cookie for this session is '. $cookie . '\n/PRE;
}
-- end of php code ---

Some explanations:

 * the send() call on `xmlrpcmsg' object returns a `xmlrpcresp'
   object. See http://phpxmlrpc.sourceforge.net/doc-2/ch07s03.html ;

 * the value() method on a `xmlrpcresp' object returns an `xmlrpcval'
   object. See http://phpxmlrpc.sourceforge.net/doc-2/ch07s04.html ;

 * the scalarVal() method returns the scalar value stored in an
   `xmlrpcval' object. See
   http://phpxmlrpc.sourceforge.net/doc-2/ch07.html#xmlrpcval-methods .

Please notice that I *know* that the returned value is a scalar. This is
not always the case and you should use proper `xmlrpcval' methods
(scalarVal(), arrayMem(), arraySize(), structMem(), ...) to parse the
returned value.

In your case, I would build a small demexp.inc library that implements
PHP functions to do:

 1. login(), goodbye();

 2. max_question_id(), question_info();

 3. other methods on a need by need basis.

With that you should be able to list the question details.


Please note that it is quite important to call a goodbye() for each
login() call, otherwise you keep opened sessions on the
server. Typically you would have a call sequence like:

 login()

 method1()

 method2()

 ...

 methodN()

 goodbye()



I hope I'm clear. Don't hesitate to ask further questions.


Have fun! ;-)
Yours,
d.

PS: An example of use of above code:

---GOT---
HTTP/1.1 200 OK
Date: Sat, 22 Sep 2007 12:44:24 GMT
Server: Apache/1.3.33 (Unix) PHP/4.3.11 mod_perl/1.29
Content-Length: 129
Connection: close
Content-Type: text/xml

?xml version='1.0'?
methodResponse
params
param
valueint759732849/int/value
/param
/params
/methodResponse

---END---

HEADER: date: Sat, 22 Sep 2007 12:44:24 GMT
HEADER: server: Apache/1.3.33 (Unix) PHP/4.3.11 mod_perl/1.29
HEADER: content-length: 129
HEADER: connection: close
HEADER: content-type: text/xml

---PARSED---
xmlrpcval::__set_state(array(
   'me' = 
  array (
'int' = 759732849,
  ),
   'mytype' = 1,
   '_php_class' = NULL,
))
---END---

The cookie for this session is '759732849'

-- 
GPG/PGP key: A3AD7A2A David MENTRE [EMAIL PROTECTED]
 5996 CC46 4612 9CA4 3562  D7AC 6C67 9E96 A3AD 7A2A


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


[Demexp-dev] Next IRC meeting / Prochaine réuni on IRC / 2007-09-16 12:00

2007-09-13 Par sujet David MENTRE
[ English below ]

Bonjour,

La prochaine réunion IRC du projet de l'expérience démocratique aura
lieu le dimanche 16 septembre 2007 à 12h (horaire de Paris, GMT+2).

Rendez-vous sur irc.freenode.net, canal #demexp.

Amicalement,
d.
 English -
Hello,

Next IRC meeting of the democratic experience is going to take place
on Sunday, 16th of September 2007, 12:00 (Paris timezone, GMT+2).

See you on irc.freenode.net, #demexp channel.

Yours,
d.


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


Re: [Demexp-dev] Proxy again..

2007-09-09 Par sujet David MENTRE
Hello Diogene,

Diogene Laerce [EMAIL PROTECTED] writes:

 So anyway, I still miss those files :

 // DOSSIER rpc

 rpc.pyc base.pyc  sec_auth_gss.pyc  sec_auth_none.pyc  sec_auth_sys.pyc

 after 3 times reinstalled all pydemexp, ply and pyrpc (according to the
 README file).

I don't understand why those files are missing on your computer. I've
just done a basic installation of those packages, following their
READMEs.

 However, I don't thing this is the root of your /current/ issue. If the
 RPC files where missing, you would get an error message, not a dump of
 the python script source code.

 Well this sounds wise and logical to me.. 

 The scripting test Ive done, Ive done it with a hello world python
 file, do you think that can change from a real script or not ? I dont
 think so but I may miss some point.

A hello world python script would work as long as it behaves like a
CGI script.

But why not use directly the xmlrpc script? Or I might have missed
something.


 If I cant make it work on my computer, is it possible to ask for an
 exemption for the demexp account ? I already ask for one normal account
 but Frederic Lebohey answered me about your rules for anonymous, that I
 understand for sure. 

We can't accept anonymous account on the official server. But there is a
work-around: I have restarted the demo server. You can access it at
machine demo.demexp.org, port 5 (for the demexp client).

The XML-RPC proxy for this server is here:
  http://www.linux-france.org/cgi-bin/demexp-xmlrpc-demo


The root account of this server is:
 login: root
 password: demexp

By login as root, you can create your own account.

Let me know if you have issues.

Yours,
d.
-- 
GPG/PGP key: A3AD7A2A David MENTRE [EMAIL PROTECTED]
 5996 CC46 4612 9CA4 3562  D7AC 6C67 9E96 A3AD 7A2A


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


[Demexp-dev] Réunion sur IRC / IRC meeting / 20 07-09-07 21:00 / irc.freenode.net #demexp

2007-09-06 Par sujet David MENTRE
[ English below ]

Bonjour,

Pour information, aura lieu le vendredi 7 septembre 2007 à 21H00 une
réunion virtuelle sur irc.freenode.net, canal #demexp. Cette réunion à
pour but de faire un bilan des développements actuels et de cerner les
besoins futurs.

Annonce initiale : https://demexp.org/phpbb/viewtopic.php?t=39

Amicalement,
d.


Hello,

For your information, a virtual meeting will take place on Friday 7th
of September 2007 at 21:00 (Paris time, GMT+2) on IRC,
irc.freenode.net channel #demexp. The main goal is to evaluate current
demexp developments and devise future needs.

Initial announcement: https://demexp.org/phpbb/viewtopic.php?t=39

Yours,
d.


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


[Demexp-dev] Re: Réunion sur IRC / IRC meetin g / 2007-09-07 21:00 / irc.freenode.net #de mexp

2007-09-06 Par sujet David MENTRE
Désolé / Sorry,

Le 06/09/07, David MENTRE[EMAIL PROTECTED] a écrit :
 Pour information, aura lieu le vendredi 7 septembre 2007 à 21H00 une
 réunion virtuelle sur irc.freenode.net, canal #demexp.

La réunion aura lieu le samedi 8 septembre à 13h.

 
 Hello,

 For your information, a virtual meeting will take place on Friday 7th
 of September 2007 at 21:00 (Paris time, GMT+2) on IRC,
 irc.freenode.net channel #demexp.

The meeting will take place on Saturday 8th of September, 13:00.


[ Thank you Thomas for the info. ;-) ]


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


[Demexp-dev] Re: [demexp-fr] Re: Réunio n sur IRC / IRC meeting / 2007-09-07 21:00 / irc .freenode.net #demexp

2007-09-06 Par sujet David MENTRE
Hello,

Le 06/09/07, Lyu Abe[EMAIL PROTECTED] a écrit :
 I'm sorry to reply so late, but I just had the confirmation that I will
 not be able to attend the meeting on saturday (I will be absent during
 all the week end).

Oh. :-(

 So feel free to change the schedule as you wish.

Well, I have created to doodle page to find a proper replacement :
  http://www.doodle.ch/participation.html?pollId=sidxyyw5rczibt2b

Could willing participant fill this page?


Yours,
d.


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


Re: [Demexp-dev] Proxy again..

2007-09-02 Par sujet David MENTRE
Hello Diogene,

Diogene Laerce [EMAIL PROTECTED] writes:

 I put it in my cgi-bin, enabled the rights on it and all the files
 depending on (in fact, all the cgi-bin directory..) but when I call it
 by xml-rpc, I just have the all file text in response ??

The symptoms you describe seem to show a configuration error on your web
server. I've you checked that the CGI functionnality is enabled in your
web server configuration file? It might be disabled by default for
security reasons.

Regarding the proxy configuration on tuxinette, the proxy file is at the
root of the CGI directory, with -rwxr-xr-x rights. There are also two
directories rpc/ and DemexpRpc/ that contain the needed RPC machinery:

[EMAIL PROTECTED]:~/vos-cgi$ ls -R rpc
rpc:
__init__.py   rpc.py   rpc.x rpc_const.pyc  rpc_pack.pyc  rpc_type.pyc
__init__.pyc  rpc.pyc  rpc_const.py  rpc_pack.pyrpc_type.py   rpcsec/

rpc/rpcsec:
__init__.py   base.py   gss.x   sec_auth_gss.py   sec_auth_none.py   
sec_auth_sys.py
__init__.pyc  base.pyc  gssapimodule.c  sec_auth_gss.pyc  sec_auth_none.pyc  
sec_auth_sys.pyc
[EMAIL PROTECTED]:~/vos-cgi$ ls -R DemexpRpc/
DemexpRpc:
__init__.py  __init__.pyc  client.py  client.pyc  const.py  const.pyc  pack.py  
pack.pyc  types.py  types.pyc


Hope it helps,
Yours,
d.
-- 
GPG/PGP key: A3AD7A2A David MENTRE [EMAIL PROTECTED]
 5996 CC46 4612 9CA4 3562  D7AC 6C67 9E96 A3AD 7A2A


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


Re: [Demexp-dev] Proxy again..

2007-09-02 Par sujet David MENTRE
Diogene Laerce [EMAIL PROTECTED] writes:

 The symptoms you describe seem to show a configuration error on your web
 server. I've you checked that the CGI functionnality is enabled in your
 web server configuration file? It might be disabled by default for
 security reasons.

 I did a test with another py script, it worked.

Ok. So you can execute CGI scripts.

 Regarding the proxy configuration on tuxinette, the proxy file is at the
 root of the CGI directory, with -rwxr-xr-x rights. There are also two
 directories rpc/ and DemexpRpc/ that contain the needed RPC machinery:

 But regarding to your answer, I dont have the following files :

 // rpc directory :

 rpc.py   rpc.x rpc_const.pyc  rpc_pack.pyc  rpc_type.pyc
 rpc.pyc  rpc_const.py  rpc_pack.pyrpc_type.py   rpcsec/

 I think that it'd may be the reason.. Can you tell me where they come
 from ? Because pydemexp gave me only those :

They comme from the PyRpc package
(http://thomas.enix.org/pub/pyrpc/). See the README of PyDemexp for
details.

However, I don't thing this is the root of your /current/ issue. If the
RPC files where missing, you would get an error message, not a dump of
the python script source code.

Yours,
d.
-- 
GPG/PGP key: A3AD7A2A David MENTRE [EMAIL PROTECTED]
 5996 CC46 4612 9CA4 3562  D7AC 6C67 9E96 A3AD 7A2A


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


Re: [Demexp-dev] Informations for those who want to build an web interface for demexp

2007-08-21 Par sujet David MENTRE
Hi,

2007/8/21, Diogene Laerce [EMAIL PROTECTED]:
 PS : will I ever be forgiven ?.. :)

You're on the right way to heaven, my son. ;-)

Yours,
d.


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


[Demexp-dev] Re: Une question comme

2007-08-20 Par sujet David MENTRE
Hi Félix,

2007/8/19, Félix [EMAIL PROTECTED]:
 A question: would it be possible to make a simple modification to the demexp
 server, so that it sends an email to the classifiers (Fred and myself) when
 a new question arrives?

That should not be very difficult using the sendmail Unix command. I
only need to look at the way to use this command.

  I guess it could be
 done for the moment in a simple way by hard-coding the email adresses in the
 code.

Yes.

 What do you think?

I've added it on the server's feature wish list:
  
https://demexp.org/dokuwiki/doku.php?id=en:future_wishes#server_protocol_wishes

Another solution would be to use Thomas's Python binding to get the
list of questions and check if a new one is arrived. It would need
some Python programming though.

Yours,
d.


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


Re: [Demexp-dev] Questions..

2007-08-01 Par sujet David MENTRE
Bonjour,

[ Note: This is an English speaking mailing list. I reply in French
because its quicker but please try to speak English on demexp-dev,
except if this is an issue for you, of course.

English summary:
 * Why Augustin module is no longer used? Because Augustin and myself
did not agree on the login procedure;

 * Which language will be used for the web interface? OCaml right now,
but if anybody does an interface in another language, we don't mind. ]

Le 31/07/07, Diogene Laerce[EMAIL PROTECTED] a écrit :
 http://demexp.ouvaton.org/

 qui moffre une belle page vide..

 Augustin qui me dit que son client a ete abandonne..
 Pourquoi dailleurs ??

Désaccord entre Augustin et moi (je crois pouvoir même dire nous avec
Fred et Félix) sur la façon dont techniquement son interface web et le
serveur demexp doivent interagir.

La trop longue procédure de login est détaillée ici :
 https://demexp.org/dokuwiki/doku.php?id=en:drupal_and_demexp_account_creation

Quelques messages sur le sujet. Lire les threads en entier pour
comprendre précisemment et vous faire votre propre opinion.
 http://www.mail-archive.com/demexp-dev@nongnu.org/msg00888.html
 http://www.mail-archive.com/demexp-dev@nongnu.org/msg00893.html

Qui plus est, je n'ai jamais réussi à refaire chez moi un serveur
Drupal avec le module d'Augustin qui marche et Augustin n'a jamais
voulu m'aider à trouver d'où venait le problème (il a fait une réponse
du style « donnez moi accès au serveur et je le ferai marcher »). Ce
n'est pas comme ça que je vois la coopération sur un projet libre.
 http://www.mail-archive.com/demexp-dev@nongnu.org/msg00884.html

 http://demexp.org/dokuwiki/doku.php?id=en:web_client_development_framework

 Jaimerais savoir quel langage a ete (ou sera) retenu pour un eventuel
 client web ?

J'ai une nette préférence pour le langage OCaml. J'avais développé une
première interface avec le framework Dialog qui finalement ne me
plaisait pas. J'ai commencé un nouveau prototype avec Ocisgen
(http://ocsigen.org/) qui me semble plus prometteur, mais je n'ai pas
beaucoup avancé et j'ai surtout perdu la motivation (cf. mon blog).

Mais aucun langage n'a été « retenu ». C'est le développeur qui
décide. Pour l'instant, puisque je suis le seul à coder, je choisi
OCaml. Mais quand Augustin a fait son module en PHP, on l'a mis en
place et testé sans aucun soucis (cf. les archives de demexp-dev et
les liens ci-dessus). Si tu veux faire une interface web en PHP ou
Python, je n'y vois aucun inconvénient. À choisir entre les deux, j'ai
quand même une préférence pour le Python (et Thomas à déjà fait une
interface ONC-RPC en Python). ;-)

Amicalement,
d.


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


Re: [Demexp-dev] A question : 2nd edition.. :)

2007-08-01 Par sujet David MENTRE
Hello Diogene,

2007/8/1, Diogene Laerce [EMAIL PROTECTED]:
 Got another question : Id like to know if the demexp software can be easily
 changed to allow only global question (answer yes/no) ?

Easily is quite relative but I don't think such a requirement would be
difficult to do. We already automatically add new answers when a
question is created and it is easy to remove the ability to add new
answers. So yes, this can be done without extended knowledge of the
code.

See function `add_question'  around line 244 in
  
http://www.linux-france.org/cgi-bin/hgwebdir.cgi/demexp/latest-dev?f=666a5cc3302d;file=srv/posbase.ml.nw

The automatic response is added at line 264. You would modify this
call to `add_response' to add the No answer and add a second call to
add the Yes answer.

Regarding the ability to add a new response, you would have to remove
this ability by modifying handler `add_response'  in srv/work.ml.nw.
The handler would always respond  `rt_not_enough_rights' without
trying to add a response. See the corresponding code at line 229 in
  
http://www.linux-france.org/cgi-bin/hgwebdir.cgi/demexp/latest-dev?f=8064410717e0;file=srv/work.ml.nw

Of course, you would have to do similar modification on the client
side, but removing or disabling the code to add a response is always
easier than adding new code. ;-)

I hope I'm clear.

 That kind of restriction, I think is a first step to limit the number of 
 questions
 and a easier way to sort the questions later - less parameters to handle.

 Can you tell me what you think about that ?

I don't have any opinion regarding the usefulness of this proposal.

Yours,
d.


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


Re: [Demexp-dev] libgz-ocaml-dev

2007-07-24 Par sujet David MENTRE

Hi Diogene,

This list is rather an English-speaking list. But of course I can
speek French if you have issues with English.

Le 24/07/07, Diogene Laerce[EMAIL PROTECTED] a écrit :

Voulant compiler demexp-server sous ubuntu, je dois installer
libgz-ocaml-dev, or la version 0.5.7.5 propose me retourne a la demande
dinstallation :

libgz-ocaml-dev:
 Dépend: ocaml-nox-3.08.3  but it is not installable
 Dépend : libgz-ocaml mais ne doit pas être installé

Ma version de ocaml-nox est 3.09.3-7build1..
 Quelquun a une idee?


The liggz-ocaml dev has not been recompiled for OCaml 3.09.3. Either
you wait for the package update or you get the tarball and install it
in /usr/local/.

This error is rather strange as it has been a long time now that OCaml
3.09.3 is in Debian and thus in Ubuntu. You might need to report a bug
to Ubuntu.

BTW, Debian is migrating to OCaml 3.10.0. Here is a page that gives
the current status of the migration:
 http://sockmel.bononia.it/~zack/ocaml-debian-status/debian-ocaml-status.html

Yours,
d.


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


Re: [Demexp-dev] libgz-ocaml-dev

2007-07-24 Par sujet David MENTRE

Hello,

[ You answered only at me. I add demexp-dev@ as Cc:. ]

2007/7/24, Diogene Laerce [EMAIL PROTECTED]:

 The liggz-ocaml dev has not been recompiled for OCaml 3.09.3. Either
 you wait for the package update or you get the tarball and install it
 in /usr/local/.

Get wich tarball ? Because I already tried to install the 0.5.7 one but
it didnt worked.


http://ocamlplot.sourceforge.net/#gz

However I haven't tried it on recent linux distribution. There might
be some issues. You are on your own here.

And you should provide more meaningful information that it didn't
work when requesting for help. ;-)


 This error is rather strange as it has been a long time now that OCaml
 3.09.3 is in Debian and thus in Ubuntu. You might need to report a bug
 to Ubuntu.

Yes maybe : Im under ubuntu studio, it is not stable yet..


Ho, so you should report the error to Ubuntu studio.

Yours,
d.


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


[Demexp-dev] Ocsigen development branch

2007-05-14 Par sujet David MENTRE

Hello,

For those interested in a demexp web interface with Ocsigen:
 http://www.linux-france.org/cgi-bin/hgwebdir.cgi/demexp/work-ocsigen

RSS stream:
 
http://www.linux-france.org/cgi-bin/hgwebdir.cgi/demexp/work-ocsigen?cl=tip;style=rss

Best wishes,
d.


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


Re: [Demexp-dev] Re: Request for ideas on delegation

2007-05-10 Par sujet David MENTRE

Hello Félix,

2007/5/9, Félix [EMAIL PROTECTED]:

We are dealing with the threat of stealing
the delegation: Someone can be pretending to be someone else in order
to attract delegation.


I did not thought about this issue. It would be nice to add such
threat scheme on the wiki on the pages related to delegation, security
or the faq.


-Second strategy: it's up to every participant to avoid delegation
phishing and get the token by a trustful source (read: the person
itself, not his website, or another trustful source)

I assume that you are taking the second approach, and I support that,
in the name of coding simplicity.


In fact, up to now I would favor this second approach, in the name of
simplicity. And because there is currently no user interface to use
delegation so this part needs more coding. ;-)

But nothing would prevent us to implement a delegation checking
scheme. It remains to see how to do that. Providing a yes-no answer to
the question is this token related to This.NAME? would break token
weak anonymity.

Notice that a comment string, entered by the token's owner, is
attached to each token and can be changed at will. We can imagine to
put there an authentication scheme, like offering an infrastructure to
sign the token.



Here we deel with what I call Weak Delegation Anonymity. This means
that you don't want to give your name to everyone because then
everyone can delegate to you temporarily in order to know your vote (I
know, delegate vote is different to personnal vote, but frankly, who
is going to vote differently?). So you only give a token to a person
you trust and you hope that this person is not going to publish the
token and your name together (this is why I call it Weak Delegation
Anonymity). Of course the person can do it but it stil provides some
protection.


Your analysis is subtle and correct. I pondered the fragility of token
anonymity by the ability to create or delete many tokens, with any
comment string. And deleting a token does not break the delegation
scheme: once a delegation is made, it is no longer attached to the
token used to make it but to the internal participant id on the demexp
server.


  Another question: should it be possible to delegate to somebody that
  has never voted on a question (right now, this is impossible)?

That's fine with me.


That could be an issue in case of massive delegation, once we will
link delegation and classification. A point to analyse and solve in
the future.

Many thanks for your comments and analysis,
Best wishes,
d.


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


[Demexp-dev] Re: Request for ideas on delegation

2007-05-01 Par sujet David MENTRE

Hello,

My own answers, after some coding and thoughts about it.

2007/4/27, David MENTRE [EMAIL PROTECTED]:

Internally, I use the participant identifier to identify to whom one
wants to delegate a question. Now the question is: what should be the
external API for this identifier?


I've decided to use a cryptographic token, i.e. a short string, to
identify each participant that wants to be a delegate. When one wants
to be a delegate for other people, he creates such a delegation token
and give it to other people or publish it on his web site. This
delegation token is used by a participant when he want to delegate.



Should all participants publish their participant id? Should we use a
random identifier associated to a participant id and generated only if
a participant wants to be a delegator? In that case, what should be
the lifetime of this identifier?


Up to 1024 tokens can be simultaneously active for a participant. A
participant can create or delete a delegation token at will. They are
valid as long as the participant does not remove them. A comment is
attached to each token (for example the real user name and email
address of the participant).


Another question: should it be possible to delegate to somebody that
has never voted on a question (right now, this is impossible)?


Right now, this is not possible. That could be an issue in case of
massive delegation.

Feel free to comment.

Best wishes,
d.


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


Re: [Demexp-dev] [PATCH] Fix typo in a message

2007-05-01 Par sujet David MENTRE

Hello Thomas,

2007/3/12, David MENTRE [EMAIL PROTECTED]:

2007/3/11, Thomas Petazzoni [EMAIL PROTECTED]:
 # HG changeset patch
 # User Thomas Petazzoni [EMAIL PROTECTED]
 # Date 1173622668 -3600
 # Node ID 7f612de04c378d608d3e5641bff5baaeda73d2ae
 # Parent  1560469c9ee79c48c88c39fcf57eee43582aa07f
 Fix typo in a message

Thank you for the patch. I currently have no ADSL access so I can
integrate your patch.


The patch is now integrated:
 
http://www.linux-france.org/cgi-bin/hgwebdir.cgi/demexp/latest-dev?cs=975dad9f9381

Yours,
d.


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


[Demexp-dev] Request for ideas on web server

2007-04-27 Par sujet David MENTRE

Hello,

I plan to work on the web server in the following weeks/months. I
already have a list of features to implement, basically the same
features as the current hard client (question browsing, vote, tag and
account management, ...).

Do you see particular features you would like to have? Be imaginative! :-)

I also need to think at the way to structure URL we will use for the
web server. From what I plan to use[1], we can be pretty liberal: use
parameters, path like parameters, etc. For example, we could have:
* https://demexp.org:50001/browse/51 or https://demexp.org:50001/browse?q_id=51

* https://demexp.org:50001/vote/42 or https://demexp.org:50001/vote?q_id=42
or https://demexp.org:50001/vote?q_id=42a=1b=4c=6 (to express
that we want to vote [1; 4; 6] on question 42)
   or https://demexp.org:50001/vote?q_id=42choices=1 4 6

* https://demexp.org:50001/list?tag=rennes (list all questions
related to rennes tag)

* https://demexp.org:50001/delegate/42/to/David.MENTRE (delegate
question 42 to me)
  or https://demexp.org:50001/delegate_to/David.MENTRE?q_id=42q_id2=65q_id3=78
(delegate questions 42, 65 and 78 to me)

Any ideas? Would you recommend a web site you like regarding URL design?

Best wishes,
d.

[1] I'm looking at Ocsigen (http://ocsigen.org). For URL, we could
have for example: http://ocsigen.org/tuto/isuffix/11/a/b/c?i=22


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


Re: [Demexp-dev] negative response for OSP proposal [EMAIL PROTECTED]: OCaml Summer Project results]

2007-04-02 Par sujet David MENTRE

Hello François,

2007/3/31, François [EMAIL PROTECTED]:

From: osp [EMAIL PROTECTED]
Subject: OCaml Summer Project results



than we had originally thought, there were still many good proposals
that didn't make the cut.


What a bad monday! :-( Anyway, if you still want to work on the
classification system...

BTW, I met Sébastien Ferré[1] last Friday that told me that they were
planning to make a web interface to LIS, with technologies similar to
Yahoo! or Google ones. So there is definitely some nice things to do
with IRISA researchers.

Best wishes,
d.

[1] http://www.irisa.fr/LIS/ferre/index.en.html


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


Re: [Demexp-dev] [FIX] A classification bug that crashes the client

2007-03-26 Par sujet David MENTRE

Hi Fred,

2007/3/26, Frederic Lehobey [EMAIL PROTECTED]:

Done. 'fa: La Poste' changed for 'fc: La Poste'.


I'm not sure it fixed the issue (and that I found the root cause of
the issue). I'm still unable to launch a new client. :-(

Can somebody else test with a new client?

Best wishes,
d.


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


Re: [Demexp-dev] [FIX] A classification bug that crashes the client

2007-03-26 Par sujet David MENTRE

Hi,

2007/3/26, David MENTRE [EMAIL PROTECTED]:

I'm not sure it fixed the issue (and that I found the root cause of
the issue). I'm still unable to launch a new client. :-(


Ok, in fact the cache is not properly updated (why??) and the client
still triggers the bug. To avoid the issue, delete file
$HOME/.demexp/cache-official.demexp.org-5.

Now if only I could understand why the cache is not properly updated... :-(

Best wishes,
d.


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


[Demexp-dev] Fwd: Reason of refusal for our GSoC application (demexp)?

2007-03-21 Par sujet David MENTRE

Hello,

The response of Google people. Not being reviewed is linked to
little details. :-(

Anyway, for the future, it might be interesting to solve the issue.
I'm myself using Firefox 2.0 and never seen such an error message (but
I already have accepted demexp.org certificate).

Best wishes,
d.

-- Forwarded message --
From: Google Summer of Code Program Admin Team [EMAIL PROTECTED]
Date: 20 mars 2007 22:19
Subject: Re: Reason of refusal for our GSoC application (demexp)?
To: David MENTRE [EMAIL PROTECTED]
Cc: Demexp developers demexp-dev@nongnu.org


Hello David,

I have seen this error messaging using both Firefox 2.0 and Camino 1.0.3.


Frankly, we did not continue our review after seeing this error message.
We were reviewing over 300 applications and did not have time to
investigate the certificate fingerprint.


Cheers,
Leslie Hawthorn
Open Source Program Office
Google Inc.

Original Message Follows:

From: David MENTRE [EMAIL PROTECTED]
Subject: Re: Reason of refusal for our GSoC application (demexp)?
Date: Tue, 20 Mar 2007 08:54:04 +0100

Hello Leslie,

2007/3/19, Google Summer of Code Program Admin Team [EMAIL PROTECTED]:

First of all, thank you for taking the time to apply.  In terms of
feedback on your application, when visiting your ideas page I get the
following error message:

Unable to verify the identity of demexp.org as a trusted site

Are you folks aware of this problem?


No. Which browser were you using when having this error message? We
have a self-signed certificate for the web site but that does not mean
the certificate should be not trusted if you check the fingerprint. It
depends on who you want to trust.

But, despite that, I suppose you could see our web page? Which aspect
of the project was an issue?

Sincerely yours,
david


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


[Demexp-dev] Re: Reason of refusal for our GSoC application (demexp)?

2007-03-21 Par sujet David MENTRE

Hello Leslie,

2007/3/20, Google Summer of Code Program Admin Team [EMAIL PROTECTED]:

I have seen this error messaging using both Firefox 2.0 and Camino 1.0.3.


Thank you for the information.


Frankly, we did not continue our review after seeing this error message.
We were reviewing over 300 applications and did not have time to
investigate the certificate fingerprint.


:-( I think the error message was benign. Anyway, maybe next year.

Yours,
d.


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


Web site certificate (was: Re: [Demexp-dev] Fwd: Reason of refusal for our GSoC application (demexp)?)

2007-03-21 Par sujet David MENTRE

Hi Fred,

2007/3/21, Frederic Lehobey [EMAIL PROTECTED]:

  http://www.coldfusionmuse.com/index.cfm/2005/12/1/ca

Did they say not to be evil? So let us not be evil and maybe use
CAcert (if nothing better...).


Yes, I agree we should follow this path (or an approach similar to
CAcert). I just haven't time to read details about CAcert. There was a
CAcert signing party at last FOSDEM.

Best wishes,
d.


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


  1   2   3   4   >