Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG, Page 73 of 238  Not logged in ELOG logo
icon5.gif   csv import timestamp, posted by Ferdinand Gassauer on Wed May 13 22:03:37 2015 
I have to import a csv with a date field, which represents the creation date

this date should be used as "date" timestamp which is set automatically, otherwise all entries get the current datetime as timestamp

 
    icon2.gif   Re: csv import timestamp, posted by Andreas Luedeke on Thu May 14 02:19:53 2015 
Hi Ferdinand,

and that is exactly what happens when you import a csv file with a date field:

the creation date ($entry
time) of the imported entries will be used from the "Date" column in the file.

I've just tried it and it works like a charm.
Did you have any problems doing it?

Cheers

Andreas

       icon2.gif   Re: csv import timestamp, posted by Ferdinand Gassauer on Thu May 14 07:01:23 2015 
Thanks

what is the format of the Date field in the csv file ?

My Date is date and not datetime. 
          icon2.gif   Re: csv import timestamp, posted by Andreas Luedeke on Thu May 14 22:16:03 2015 
Hi Ferdinand,

"import" is meant to be used for files that have been exported with "find". Therefore it is not very
flexible with the date format.

Todays date should look like that: "Thu  14 May 2015 22:12:00 +0200".

You have
to convert your file that the date matches this format (BTW: I found this out by using the find - export feature; it may depend on a local configuration.)

Cheers

Andreas

icon5.gif   Elogd synchronisation with remote server, posted by Francois Cloutier on Thu May 14 02:35:15 2015 
I came accross the admin guide and I was reading / searching for a way to sync logbooks across sites...
elogd mention "-m" and "-M" ... not elog but elogd... with that description :
synchronize logbook(s) with remote server
    icon2.gif   Re: Elogd synchronisation with remote server, posted by Andreas Luedeke on Thu May 14 05:13:34 2015 
> I came accross the admin guide and I was reading / searching for a way to sync logbooks across sites...
> elogd mention "-m" and "-M" ... not elog but elogd... with that description :
> synchronize logbook(s) with remote server
icon2.gif   "Leave Page" pop-up when "Submit" entry, posted by Andreas Luedeke on Tue May 12 03:25:45 2015 elogd.png
I have a little problem with elogd 3.1.0. The problem persists up to the latest ELOG version, even in the
development branch (V3.1.0-8196b81):
    icon2.gif   Re: "Leave Page" pop-up when "Submit" entry, posted by Stefan Ritt on Tue May 12 11:27:52 2015 
Thanks for the "boiling-down" of your config file. That helped me to reproduce the error quickly. It only occurs if you have a date/time attribute which
is hidden as a conditional attribute. This is a unusual combination, that's why I haven't seen that bug before. Actually some 
JavaScript code checks the validity of the date attribute, but since it is conditionally not there, the JavaScript code crashes, which triggers the dialog
       icon14.gif   Re: "Leave Page" pop-up when "Submit" entry, posted by Andreas Luedeke on Wed May 13 01:40:21 2015 
> Thanks for the "boiling-down" of your config file. That helped me to reproduce the error quickly. It only occurs if you have a date/time attribute which
is hidden as a conditional attribute. This is a unusual combination, that's why I haven't seen that bug before. Actually some 
> JavaScript code checks the validity of the date attribute, but since it is conditionally not there, the JavaScript code crashes, which triggers the dialog
          icon2.gif   Re: "Leave Page" pop-up when "Submit" entry, posted by Stefan Ritt on Wed May 13 06:58:12 2015 
> Apparently it was less work to fix than to isolate it ;-)

Well, I also spend like an hour on it.
icon5.gif   Remote entries with empty messages possible?, posted by Edmund Hertle on Fri May 8 17:45:24 2015 
Hey,

I want to submit an entry to elog remotley using the "elog" command. For example:

elog -h elog-server-adress -l EO -a Fill=111
    icon2.gif   Re: Remote entries with empty messages possible?, posted by Stefan Ritt on Mon May 11 13:15:54 2015 
The "command does not respond" means that the program starts reading in the main message text from the console. You can type several lines
of text, and finish it off by hitting Ctrl-D (Ctrl-Z under Windows).

I see your point of having empty texts. Indeed the "" on the command line does not work presently, so you have to add a space as a
    icon2.gif   Re: Remote entries with empty messages possible?, posted by Andreas Luedeke on Mon May 11 22:51:44 2015 
Hi Edmund,

Stefan already supplied a fix, but you could as well use a workaround: provide an empty file as text. The following works for Linux:

elog -h elog-server-adress -l EO -a Fill=111 -m /dev/null
icon8.gif   Problem with autosave functionality when combined with no 'edit' button, posted by Thomas Lindner on Tue May 5 07:33:50 2015 
We recently tried upgrading the ND280 elog instance to elog 3.1.0. [1] We seem to have some problems with this 'auto-save' functionality. 
Specifically, it doesn't seem to play nice with the fact that we prefer to disable user's ability to edit old messages.  So we have (up to
now), had the following set of commands specified in elogd.ccfg
    icon2.gif   Re: Problem with autosave functionality when combined with no 'edit' button, posted by Andreas Luedeke on Tue May 5 11:01:36 2015 
Hi Thomas,

just my two cent: as a quick workaround (for now) you could restrict editing messages to a short time range, like 30 minutes. That would cover
most cases of draft messages.

Restrict edit time = 0.5

 

But I agree that
       icon2.gif   Re: Problem with autosave functionality when combined with no 'edit' button, posted by Stefan Ritt on Tue May 5 12:09:53 2015 
Arghhhh! Guess how many people asked me for the autosave feature! I worked really hard on it (including an airplane flight to Japan!), not the next guy
comes "can we disable that feature?". 
          icon14.gif   Re: Problem with autosave functionality when combined with no 'edit' button, posted by Andreas Luedeke on Tue May 5 12:17:24 2015 
Oups, now I feel almost a little bit sorry for asking     But thank you anyway!!! 
    icon2.gif   Re: Problem with autosave functionality when combined with no 'edit' button, posted by Stefan Ritt on Tue May 5 12:05:47 2015 
I changed the code such that editing of draft messages is always possible, even if the "edit" command is not allowed otherwise. Update is in
GIT. Please check if that works at ND280.




Thomas
icon5.gif   Load attribute options from attributes in another logbook, posted by Francois Cloutier on Mon May 4 22:28:37 2015 
Hi again,
Hope I'm not draining to much time from you guys !
    icon2.gif   Re: Load attribute options from attributes in another logbook, posted by Andreas Luedeke on Tue May 5 10:54:54 2015 
> Hi again,
> Hope I'm not draining to much time from you guys !
icon5.gif   Subst Attributes..., posted by Francois Cloutier on Fri May 1 21:19:18 2015 
Good day,

I'm new to Elog and I find it really nice and straight foward...

I still have a few questions that I couldn't address reading the manuals.
    icon2.gif   Re: Subst Attributes..., posted by Andreas Luedeke on Mon May 4 13:23:55 2015 
Hi Francois,

welcome to the community! I'll try to answer your questions inline (Numbering them would have been a good idea ;-):


-
I'm creating a logbook with a lot of attributes. I would like to know if there is a way to name (display) my attribute differently then it's original
name. That way I could program $attrib1; $attrib2, etc, and map a name to display the column accordingly... Is it something possible ? 
       icon2.gif   Re: Subst Attributes..., posted by David Pilgram on Mon May 4 14:10:08 2015 
Hi Francois and Andreas,

On Francois' first question, I wonder if Francois is using attrib1, attrib2... as the actual attribute names in the config file.  If
this is the case, Francois, you can name attributes with suitable names in the configuration file and dictate which ones appear in the List and Threaded
          icon2.gif   Re: Subst Attributes..., posted by David Pilgram on Mon May 4 15:13:08 2015 
I only saw Andreas' edited version of the original enquiry, so I didn't see the orignal config file under discussion - so most of my previous
entry is totally pointless.  Sorry about that.




David
    icon2.gif   Re: Subst Attributes..., posted by Stefan Ritt on Mon May 4 15:44:07 2015 
Indeed there was a bug when you have "Show Text = 0". I fixed that in the current GIT version. I also hide the "Preview" button if
"Show text = 0" since it really makes no sense there. I made a Windows Patch 3.1.0-3 which
 ontains this fix.
       icon6.gif   Re: Subst Attributes..., posted by Francois Cloutier on Mon May 4 16:03:19 2015 
Wow !!! Im impressed :):):) I didn't expect such a fast reply !!!

Thanks alot Stefan, I will try it right away !!
          icon2.gif   Re: Subst Attributes..., posted by Andreas Luedeke on Tue May 5 09:22:23 2015 
> Wow !!! Im impressed :):):) I didn't expect such a fast reply !!!

> Thanks alot Stefan, I will try it right away !!
icon5.gif   elogd lost entry database without restart during file system trouble, posted by Andreas Luedeke on Thu Apr 30 09:54:17 2015 
I'm running ELOG since several years with rather heavy usage.
Last week I've upgrades from 3.0.0 to 3.1.0 and this week I had twice the same problem:
elogd lost the index for old entries and showed empty logbooks, without having restarted.
    icon2.gif   Re: elogd lost entry database without restart during file system trouble, posted by Stefan Ritt on Thu Apr 30 13:01:29 2015 
First, I can only fix problems which are reproducible. Can we do another power outage at PSI again?

But seriously, I guess what happened is that elog sees an empty directory when the AFS server
ELOG V3.1.5-3fb85fa6