jm.evers

Toutes mes réponses sur les forums

20 sujets de 81 à 100 (sur un total de 147)
  • Auteur
    Messages
  • en réponse à : synchronising wims servers #3264
    jm.evers
    Participant
    Up
    0
    Down
    ::

    well, just for the record…using ‘upload material to the server’ of some modified ‘adm proc files’ , I was able to adapt stuff and get my daily selective backups working…

    joke

    • Cette réponse a été modifiée le il y a 9 années et 4 mois par jm.evers.
    • Cette réponse a été modifiée le il y a 9 années et 4 mois par jm.evers.
    en réponse à : synchronising wims servers #3258
    jm.evers
    Participant
    Up
    0
    Down
    ::

    Adm/raw module has initially been developed to let « another server » get informations from WIMS.

    I always thought a wims-admin -via the browser interface / adm modules- could connect to another server to ‘mirror’ peaces of it -using the adm/raw module- if the correct config-files & passwords were present in ~/log/classes/.connections

    I never (..) could get this to work…so I guessed my config-files were not ok…and I gave up trying ever since.
    Using ssh/cron/shell-scripts/wget was much easier…

    So I just have to wait until the ssh-stuf is fixed.

    thanks for your support!
    joke

    en réponse à : synchronising wims servers #3254
    jm.evers
    Participant
    Up
    0
    Down
    ::

    Hmmm,

    I thought it was the sole purpose of the wims « adm/raw module » to do just that…
    the connection/exchange between 2 wims-servers (and even wims -> moodle etc etc)

    But maybe I’m just plain wrong.
    cheers,
    joke

    • Cette réponse a été modifiée le il y a 9 années et 4 mois par jm.evers. Raison: typo
    en réponse à : synchronising wims servers #3250
    jm.evers
    Participant
    Up
    0
    Down
    ::

    Thanks for your answer, but « ssh » is out of the picture on the leiden mirror…for the time being.

    I’ve always used cron to generate backup of student-accounts to synchronise « leiden –> school-intranet-server » on a daily basis.(these cron scripts can not be changed from the adm/config module; so there is no way to include more data…and I don’t like to do a manual backup of all 77 classes individually…)

    I’m now installing a new internet server, so I need to get all the user data from « Leiden –> new-server » on a daily basis.(for the rest of this school season)
    Needless to say that on my new internet server « ssh » is possible.

    So I’m basically looking for config-scripts that actually could work (if copied to the correct server)

    joke

    • Cette réponse a été modifiée le il y a 9 années et 4 mois par jm.evers. Raison: typo
    en réponse à : synchronising wims servers #3246
    jm.evers
    Participant
    Up
    0
    Down
    ::

    I’ve not been very clear…
    What I want is to make use of the ‘adm/raw’ module to synchronise wims-servers A –> B
    There are -in my view very cryptic- example config files in the subdir ‘log/classes/.connexions’…but I can’t seem to get it working
    (and I’ve never could…)

    I was wondering if anyone could provide me with a set of fool-proof example config files 🙂

    joke

    en réponse à : Position caractère dans chaîne de texte #3144
    jm.evers
    Participant
    Up
    0
    Down
    ::

    Hi,

    the best way is to upgrade your wims…and not just for moneyprint…
    however there is yet another way, using BC (called float_calc in wims)
    (bc will truncate, so you have to add 0.005)

    
    \text{A=123.44444322}
    \text{price = wims(exec float_calc  scale=2; (\A+0.005)/1)}
    \statement{ price = \price}
    

    Joke

    • Cette réponse a été modifiée le il y a 9 années et 8 mois par jm.evers.
    en réponse à : Position caractère dans chaîne de texte #3140
    jm.evers
    Participant
    Up
    0
    Down
    ::

    Hi,
    You could use ‘moneyprint’ for printing a number with n decimals (default is 2 decimals)

    \text{A = 1}
    \text{m = wims(exec moneyprint \A )}
    \m = 1.00
    if you want n decimals use
    \integer{n = 4}
    \text{m = wims(exec moneyprint \A \n )}
    \m = 1.0000

    hope this helps,
    Joke

    en réponse à : Unités de mesure et mathml #3110
    jm.evers
    Participant
    Up
    0
    Down
    ::

    Eric,
    In order to adress your issue/problem, we’ve adapted wims_mathml
    and placed a <span> element with « font-size:1em » around the mathml code.
    Now the HTML and MathML font sizes should be better suited for mixing text and math.

    note 1)
    this is only interesting for browsers with native MathML support (Firefox and other gecko browsers)
    All other browsers make use of MathJax !
    note 2)
    mathml-font-size settings in « préférences personnelles » are disabled: only zooming can be activated

    Could you please recompile wims.cgi with the latest SVN versions of
    ‘src/mathml/wims_mathml.y’ and ‘src/mathml.c’ and report back?

    kind regards
    joke

    en réponse à : Unités de mesure et mathml #3105
    jm.evers
    Participant
    Up
    0
    Down
    ::

    Hi,
    I’m not sure if I understand your problem, but you can always enforce font « simularity » by putting text and mathml in some html « environment » , something like

    \statement{
    <span style="font-size:12px;">
    \(\frac{20}2)dm\(=1)m car \(10)dm\(=1)m
    </span>
    \(\frac{20}2)dm\(=1)m car \(10)dm\(=1)m
    }

    But when adjusting mathl-fontsize larger than -say- 150% (via useropts) things will again look ugly…

    kind regards,
    joke

    • Cette réponse a été modifiée le il y a 9 années et 9 mois par jm.evers.
    • Cette réponse a été modifiée le il y a 9 années et 9 mois par jm.evers. Raison: typo s
    en réponse à : Ajout légende sur schéma électrique impossible? #3081
    jm.evers
    Participant
    Up
    0
    Down
    ::

    Hi,
    I’m no good at OEF, but it is possible to set the electric scheme as background of a div…something like

    
    \text{C=slib(circuits/draw 4/T,15,,iarrow,iarrowR,,iarrow)}
    \text{img=draw(200,200\
    transparent white
    \C
    )
    }
    

    and in the statement, something like,

    
    <div style="background-image: url(\img);width:200px;height:200px;background-repeat:no-repeat;">
    \draw{200,200}{
    transparent white
    text black,100,100,Huge,HELLO
    }
    </div>
    

    But I guess, there are more formal ways of doing this 🙂

    kind regards,
    joke

    • Cette réponse a été modifiée le il y a 9 années et 9 mois par jm.evers.
    jm.evers
    Participant
    Up
    0
    Down
    ::

    Hmmm, I was ignorent about the meaning of « formules semi développées »

    I guess « formules semi développées » could be done easy by LateX…
    just add a package like Martin Hansel’s « mhchem » to your local TeX version and all bonds can be simply created.

    And yes, we should switch to javascript & SVG as replacement for WIMSchem. There are currently a few very fine js-libraries available.
    One important feature -it seems to me- of such system should be the possiblity to import MDL mol files.

    joke

    • Cette réponse a été modifiée le il y a 10 années par jm.evers.
    jm.evers
    Participant
    Up
    0
    Down
    ::

    Hi,

    You could use WIMSchem (or SketchEL) ,If you « just » want to create a 2D molecule or reaction scheme and export it into SVG (or any bitmap format you like)
    Get a copy of WIMSchem or SketchEL
    http://sourceforge.net/projects/sketchel/

    And use the applet as desktop application (no security problems…)

    java -jar WIMSchem.jar

    Joke

    • Cette réponse a été modifiée le il y a 10 années par jm.evers.
    • Cette réponse a été modifiée le il y a 10 années par jm.evers.
    en réponse à : Tag Latex #2972
    jm.evers
    Participant
    Up
    0
    Down
    ::

    Hi,
    A few things:
    the \overrightarrow is set to stretchy, meaning that in a correct mathml implementation of the browser (…) the arrow should cover all non-space-separates chars:
    \overrightarrow ABC D is equal to \overrightarrow{ABC}D
    The \vec is set to stretchy=’false’ which implies only a single char will have a vector (the vector is a special one « &RightVector »…this is not an arrow !)
    The reason this will not workout as expected is caused by the browser, and not the MathMl code generated by wims…

    We could try to mimic the Tex behaviour more closely…but be aware that the differences between current mathml browser-versions is the cause of all « trouble »
    (just try Chrome/MathJax on the same tex-code in « direct exec »)

    kind regards,
    joke

    en réponse à : wims.conf #2895
    jm.evers
    Participant
    Up
    0
    Down
    ::

    sorry for the misunderstanding !
    Basically your ‘wims.conf’ is an apache config.
    So permissions should be 0644 root:root
    You could do a syntax check for all config files e.g. ‘httpd -t’
    But your wims.config is identical to a part of my httpd.conf…

    en réponse à : wims.conf #2893
    jm.evers
    Participant
    Up
    0
    Down
    ::

    Hi,
    permissions of /var/wims/log/wims.conf should be

    -rw——- 1 wims wims 557 Dec 10 22:27 wims.conf

    So
    wims:wims 0600

    kind regards,
    joke

    ps
    what does the error message say?

    en réponse à : latex et embed #2887
    jm.evers
    Participant
    Up
    0
    Down
    ::

    Hi,

    Yes, it’s a very new command for the OEF interface

    from Changelog:
    —-
    2015-03-10: add special method mathmlinput (Julien Lyotard)
    ____

    Although the pseudo latex command « \input » has been available since the introduction of MathML within WIMS (2012-07-02): but only for « native Mathml » Gecko browsers like Firefox.

    Now through the default use of MathJax library it is fairly « crossbrowser ».

    kind regards,
    Joke

    en réponse à : Dragfill #2850
    jm.evers
    Participant
    Up
    0
    Down
    ::

    Hi again,

    I didn’t realise you wanted such simple ‘drag &drop’ molecule « editing ».

    Maybe you should invest a little and create some simple tailormade drag&drop js-script and answer-type…dragging and dropping (svg?) images molecule fragments.
    It shouldn’t be too hard to implement.

    good luck,
    Joke

    en réponse à : Dragfill #2845
    jm.evers
    Participant
    Up
    0
    Down
    ::

    Hi,

    There is a -really- great replacement for the Java Applet SketchEl (WIMSchem)
    See http://scitouch.net/opensource/ketcher

    The -only- problem with it is was, it did (checked 11-2013) not support the addition of template molecules.(at least not in MDLmolfile format )
    Apart from this, it was amazingly fast and full of possibilities !

    Joke

    en réponse à : texte surligné dans une somme #2580
    jm.evers
    Participant
    Up
    0
    Down
    ::

    Hi,
    or , for a somewhat more pronounced ‘bar’, you could use \overline{},
    like
    \(\sum_{i=1}^{k}{n_i(a_i- \overline{a})^2})

    Joke

    en réponse à : Comment faire une fraction avec \embed{} dedans ? #2474
    jm.evers
    Participant
    Up
    0
    Down
    ::

    Hi,
    I think this link is about thesame subject…
    http://wimsedu.info/?topic=latex-et-embed

    kind regards,
    joke

20 sujets de 81 à 100 (sur un total de 147)