ID |
Date |
Icon |
Author |
Author Email |
Category |
OS |
ELOG Version |
Subject |
67675
|
Mon Mar 10 15:18:51 2014 |
| Andreas Luedeke | andreas.luedeke@psi.ch | Question | Linux | 2.9.2-2455 | Re: Author drop-down menu length |
Kay Graf wrote: |
I am handling several ELOGs for medium-sized collaborations (scientific experiments) with a large number of authors (~250) and chose to have single-user access and entries for every author - in the config file, the "Options Author"-List contains ~150 name for now.
However, the Author drop-down menu stops after ~100 names - is that a ELOG-webserver hard limit? I checked there is nothing strange in the author names following (no strange character, etc.).
I tested it on Firefox, Chrome, Safari - it does not seem to be a browser issue.
Any help would be highly appreciated.
|
Hello Kay,
I had to look it up in the source code: yes, you are right, it is hard-coded in elogd.h
⇄
English (auto-detected) » English
elogd.h:#define MAX_N_LIST 100
You can of course change the limit and recompile.
As an alternative, you could have sub-menus with less than 100 entries (disclaimer: the following is untested example):
Attributes = author_range, author, ...
options author_range = A-K{1}, L-Z{2}
{1} options author = Andi, Bob, Camilla, Dennis, ..., Kay
{2} options author = Lily, Max, Norbert, Oscar, ..., Zeta
Cheers
Andreas |
67687
|
Mon May 26 09:55:06 2014 |
| Andreas Luedeke | andreas.luedeke@psi.ch | Question | Linux | 2.8.1-2350 | Re: Passing html code for table using elog command |
Remington Tyler Thornton wrote: |
Hey,
I am testing out automated entries using elog on the command line. The file I pass has html code for a table; the resulting entry shows the html code for the table instead of generating the table. Is there a way to make elog parse the code to show a formatted table?
Thanks in advance.
|
⇄
English (auto-detected) » English
The elog command has the option "-n <n>" to tell elog, what type of text it should expect.
[-n 0|1|2] Encoding: 0:ELcode,1:plain,2:HTML
⇄
English (auto-detected) » English
You'll find it explained in the documentation https://midas.psi.ch/elog/userguide.html#misc
It is necessary for elog to know the type of encoding, otherwise it would not show non-html content correctly. |
67693
|
Sat Aug 2 06:59:22 2014 |
| Andreas Luedeke | andreas.luedeke@psi.ch | Question | Windows | Elog V2.9. | Re: Elog and Certs |
Chuck Brost wrote: |
Elog V2.9.1-2435 if it matters.
It is time again to install the certs for SSL in Elog, and the standard openssl command line does not seem to produce the files that I need in order to get it working on my system.
I copied the file to my trusty linux server and ran the command "openssl pkcs12 -in cert.p12 -clcerts -out cert.pem " as I did last time, last time I got a nice little .crt and .key file.. this time.. no such luck.. I can get by with the guys just hitting the continue and go past the expired cert notice for a bit.. but if I cannot fix it reasonably soon.. well, it won't be pretty for me.. <grin>
Any ideas that anyone can give will be appreciated.. this is a bit outside my usual duties around here..
|
I'm not an expert in this field, but I think openssl is not meant to create a certificate for you, it is meant to create a certificate request form (CSR) and then you buy the certificate with that form from a vendor. Once you have the certificate then you just need to copy it to the right place for ELOG (or Apache) to use it, you don't need openssl for that.
⇄
English (auto-detected) » English
You can have a look at: http://www.rackspace.com/knowledge_center/article/generate-a-csr-with-openssl
Good luck!
PS: This is of course an openssl question: another forum could may be more helpful? |
67695
|
Sat Aug 9 06:40:35 2014 |
| Andreas Luedeke | andreas.luedeke@psi.ch | Question | Linux | 2.7.5-2185 | Re: Preset Text |
mike cianci wrote: |
Sorry for the novice question, but can anyone tell me where the ".txt" document is suppose to reside for the "Preset text" statement to find it? I have a "test.txt" document in the "Template" file but all "Preset text = test.txt" does is print "test.txt" in the comment section.
Thanks, Mike
|
I always chose the safe solution: I provide the full path to the document. For example (under Linux):
Preset text = /usr/local/elog/logbooks/inc/test.txt
⇄
English (auto-detected) » English
⇄
English (auto-detected) » English
|
67698
|
Sun Aug 24 15:06:37 2014 |
| Andreas Luedeke | andreas.luedeke@psi.ch | Question | Windows | 2.7.5 | Re: Preset Text |
Well, I only know that the following config file works fine for me on Linux:
⇄
English (auto-detected) » English
[test]
Attributes = xx
Preset text = /tmp/xx
with the file /tmp/xx containing "test: ignore". When opening a new entry, then the text "test: ignore" is written in the editors text area.
I'm using Version 2.9.2
My suggestion: download the latest Windows Version and try again. |
67705
|
Wed Sep 17 17:45:18 2014 |
| Andreas Luedeke | andreas.luedeke@psi.ch | Info | All | V2.9.2-24 | Re: Sort by date prior to 2002 |
Chris Jennings wrote: |
Chris Jennings wrote: |
I have an attribute formatted as a date (but not labeled as date) and is sorted as second priority. The sort works fine until I enter a date older than Jan 1st 2002. When I do this it is sorted as the latest. Is this a bug or simply not designed to use dates this old?
Thanks in advance,
Chris
|
Sorry, my mistake. The cutoff date is anything before September 9th 2001 does not sort.
|
I think I remember that this has been discussed earlier: it is a little bug in elogd.
You can see where it comes from if you type in the little command 'date -d "9-Sep-2001 3:46:40" +%s'
Converted to "seconds of the epoche" (seconds since 1970-01-01 00:00:00 UTC) the date "9-Sep-2001 3:46:40" has one digit more than "9-Sep-2001 3:46:39".
Since elog makes a string comparison, suddenly 1'000'000'000 is less than 999'999'999; therefore the wrong sorting.
Workaround: you can modify your old entries and add a leading zero to all entries where your specific date field starts with a '9'.
Stefan: you should fix it at least well before 20-Nov-2286 18:46:40, when the same bug strikes again!  |
67712
|
Tue Nov 4 14:51:20 2014 |
| Andreas Luedeke | andreas.luedeke@psi.ch | Question | Linux | 2.9.2 | Re: How to insert new entry between two entries. |
Daniel Roldan wrote: |
I would like to put between two entries a new entry.
My Users forgot to put a entry, and now they would like to put a new entry between olders entries.
For Example: We have 10 entries order by Id:
300
301
302
...
They want to put between the entry 300 and 301 a new entry.
Is possible to do this feature?
Thanks!
|
You are using the entry ID to sort your entries: there is no good way to insert a new entry ID, like 300.5
But you could sort your entries by other means, that allows you to insert entries later between existing entries.
I use for example a "when" attribute of type datetime. Here's an excerpt from the relevant part of my config file:
Attributes = ..., when
Start page = ?rsort=when
Type when = datetime
Preset when = $date
This sorts automatically all your entries according to the "when" attribute. "when" will be preset to the creation date, but you can change it if the entry belongs to the past between two other entries.
If you don't create entries every second, then you'll always find a date to add entries between two old entries.
Be aware that you should only add new Attributes only at the end of the list, otherwise old entries without the attribute may appear mixed up.
Regards
Andreas
⇄
English (auto-detected) » English
|
67758
|
Thu Jan 22 08:35:23 2015 |
| Andreas Luedeke | andreas.luedeke@psi.ch | Question | All | 3.3 | Re: filter with or operation/TIME DURATION CALCULATION |
dev wrote: |
1.I HAVE A ELOG BOOK WITH TWO ATTRIBUTE 'FROM' &'TO'. I WANT TO USE A FILTER WHICH WILL SEARCH FOR A VALUE IN BOTH ATTRIBUTE .KINDLY HELP ME.
2. HOW TO CALCULATE THE TIME DURATION AUTOMATICALLY BASED ON TWO ATTRIBUTES 'START TIME' AND 'STOP TIME' .
|
1a. If you go to the "Find" form, you can add filters on several attribute. The URL of the result page can be bookmarked: this is your filter.
1b. If you define quick filters on FROM and TO, then you can enter filters on both.
2. If you start elogd with the -x option, then you can execute scripts in the "subst" and "subst on edit" commands. Within those shell scripts you can use $START TIME and $STOP TIME to calculate the attributes value. Look for the "Subst" command in the documentation. |
|