ID |
Date |
Icon |
Author |
Author Email |
Category |
OS |
ELOG Version |
Subject |
68305
|
Wed Apr 27 14:15:19 2016 |
| Andreas Luedeke | andreas.luedeke@psi.ch | Request | All | V3.1.1 | Re: How to enforce line breaks in plain text entries? |
> We use ELOG for our accelerator operation logbooks. As part of the shift handover every shift prints out all
> entries made during the shift and files the printouts. If one entry in the shift was plain text without
> appropriate linebreaks (like this one), then this screws up the printout: the whole window is scaled to the
> width of this line and either the printout is cut off at the right side, or the whole content is scaled down to
> very tiny scale, which makes it unreadable.
>
> Is there a way to enforce line breaks in plain text entries?
Obviously there is: this logbook does add line breaks?!?
Maybe it is only a problem with entries made by the "elog" command?
I'll find it out and re-post.
Cheers
Andreas |
68306
|
Wed Apr 27 14:36:42 2016 |
| Andreas Luedeke | andreas.luedeke@psi.ch | Request | All | V3.1.1 | Re: How to enforce line breaks in plain text entries? |
> > We use ELOG for our accelerator operation logbooks. As part of the shift handover every shift prints out all
> > entries made during the shift and files the printouts. If one entry in the shift was plain text without
> > appropriate linebreaks (like this one), then this screws up the printout: the whole window is scaled to the
> > width of this line and either the printout is cut off at the right side, or the whole content is scaled down to
> > very tiny scale, which makes it unreadable.
> >
> > Is there a way to enforce line breaks in plain text entries?
>
> Obviously there is: this logbook does add line breaks?!?
>
> Maybe it is only a problem with entries made by the "elog" command?
> I'll find it out and re-post.
>
> Cheers
> Andreas
Okay, I found two ways to add very long lines:
- if the very long line does not contain a space then this will screw the printout.
- if the line has been added as plain text using the elog command, there will be no line breaks added.
It would be nice if the elog command would have an option to break lines to a maximum line length.
But for the moment I'll just modify the applications that make use of the elog command. |
68307
|
Wed Apr 27 14:39:28 2016 |
| Stefan Ritt | stefan.ritt@psi.ch | Request | All | V3.1.1 | Re: How to enforce line breaks in plain text entries? |
> > We use ELOG for our accelerator operation logbooks. As part of the shift handover every shift prints out all
> > entries made during the shift and files the printouts. If one entry in the shift was plain text without
> > appropriate linebreaks (like this one), then this screws up the printout: the whole window is scaled to the
> > width of this line and either the printout is cut off at the right side, or the whole content is scaled down to
> > very tiny scale, which makes it unreadable.
> >
> > Is there a way to enforce line breaks in plain text entries?
>
> Obviously there is: this logbook does add line breaks?!?
>
> Maybe it is only a problem with entries made by the "elog" command?
> I'll find it out and re-post.
>
> Cheers
> Andreas
Yepp, this is a (missing) feature of the elog command. Can you pre-process your messages outside of it, or do I have to add code to elog to do that?
Stefan |
68319
|
Wed May 18 16:19:07 2016 |
| Devin Bougie | devin.bougie@cornell.edu | Request | Linux | 3.1.1 | support "authentication = webserver, kerberos" |
The elog client binary does not work with webserver authentication. One fix would be to support both webserver and kerberos authentication (authentication = webserver, kerberos), similar to how you currently support
"authentication = kerberos, file".
A more general discussion of the elog client binary with webserver authentication can be found at https://midas.psi.ch/elogs/Forum/68318 .
Many thanks,
Devin |
68344
|
Wed Jun 29 16:07:32 2016 |
| JD | elog@dreessen.it | Request | Linux | Windows | Mac OSX | All | Other | ELOG V3.1.1 | More than 100 attributes |
I am modifying the elogd.cfg automatically with a script. The Script fetches a list of systems from a LDAP database and writes them into an "Options" line in the elog.cfg.
Everything worked fine, until we hit the critical number of 100 attributes. I saw this is also stated in the manual.
Is there any workaround? I downloaded the source code and hat a quit look, but couldn't find the section which is responsible for this behavior.
Is there a reason for this limit?
Thanks
Jonathan |
68345
|
Wed Jun 29 16:58:15 2016 |
| Stefan Ritt | stefan.ritt@psi.ch | Request | Linux | Windows | Mac OSX | All | Other | ELOG V3.1.1 | Re: More than 100 attributes |
The limit is in the variable
#define MAX_N_ATTR 100
in elogd.c. If you increase it and recompile, it could work, but at some time you will get a stack overflow since arrays with that size are dynamically allocated on the stack, and depending on your compiler settings the stack size is only finite.
Stefan
JD wrote: |
I am modifying the elogd.cfg automatically with a script. The Script fetches a list of systems from a LDAP database and writes them into an "Options" line in the elog.cfg.
Everything worked fine, until we hit the critical number of 100 attributes. I saw this is also stated in the manual.
Is there any workaround? I downloaded the source code and hat a quit look, but couldn't find the section which is responsible for this behavior.
Is there a reason for this limit?
Thanks
Jonathan
|
|
68346
|
Thu Jun 30 14:00:43 2016 |
| JD | elog@dreessen.it | Request | Linux | Windows | Mac OSX | All | Other | ELOG V3.1.1 | Re: More than 100 attributes |
Thank you Stefan, I think then I will leave it at the default value. I need a stable Systen
Stefan Ritt wrote: |
The limit is in the variable
#define MAX_N_ATTR 100
in elogd.c. If you increase it and recompile, it could work, but at some time you will get a stack overflow since arrays with that size are dynamically allocated on the stack, and depending on your compiler settings the stack size is only finite.
Stefan
JD wrote: |
I am modifying the elogd.cfg automatically with a script. The Script fetches a list of systems from a LDAP database and writes them into an "Options" line in the elog.cfg.
Everything worked fine, until we hit the critical number of 100 attributes. I saw this is also stated in the manual.
Is there any workaround? I downloaded the source code and hat a quit look, but couldn't find the section which is responsible for this behavior.
Is there a reason for this limit?
Thanks
Jonathan
|
|
|
68368
|
Fri Jul 22 09:58:47 2016 |
| JD | elog@dreessen.it | Request | Windows | 3.1.1 | Re: inserting pictures into a post |
I know this thread is realy old. Anyways I would like to give a +1 on this request. As a workaround I currently wrote a small PHP Image Hosting/Upload Script and embedded a link to it in the Menue.
On that page the user uploads the image and gets a link which he/she can embedd using the button... Easy, but a bit to complicated for some users ;)
Stefan Ritt wrote: |
> does elog have a way of inserting pictures into a post other than including
> them as an attachment? i can put a picture in using html text, but this
> method only works if the picture is stored on the local server. anyone
> placing a post from a remote machine cannot include a picture off of their
> machine.
> any help?
> thanks.
Right now it is not possible to easily include pictures into the message body, but I put it on the wishlist. Of course you can always refer to external pictures if you submit your text as HTML and put the proper tags there like this one:

and you can even scale them like 
but of course this requires to have that image stored somewhere else. I will probably add a feature like
att:name.gif
which will reference a picture from the attachment, and will be converted to the full picture name after submitting that message.
|
|