Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG, Page 229 of 234  Not logged in ELOG logo
icon5.gif   Compiling elog-2.2.2 in Solaris 8, posted by Willem Koster on Thu Nov 14 12:04:09 2002 
On our:
   SunOS operator 5.8 Generic_108528-13 sun4u sparc SUNW,Ultra-5_10

I get:

% make
gcc -g -O -o elog elog.c 
Undefined                       first referenced
 symbol                             in file
socket                              /var/tmp/ccgK4x1V.o
recv                                /var/tmp/ccgK4x1V.o
gethostbyname                       /var/tmp/ccgK4x1V.o
send                                /var/tmp/ccgK4x1V.o
gethostbyaddr                       /var/tmp/ccgK4x1V.o
connect                             /var/tmp/ccgK4x1V.o
ld: fatal: Symbol referencing errors. No output written to elog
collect2: ld returned 1 exit status
make: *** [elog] Error 1


I have no idea what is going on here
    icon3.gif   Re: Compiling elog-2.2.2 in Solaris 8, posted by Willem Koster on Thu Nov 14 13:00:24 2002 
From: http://elog.sourceforge.net/

Solaris

It was reported by Martin Huber that under Solaris 7 following command must 
be used to compile elog:

gcc -L/usr/lib/ -ldl -lresolv -lm -ldl -lnsl -lsocket elogd.c -o elogd

It was also reported that the keep-alive mechanism is not working under some 
Solaris systems, so you need to start the elogd server with the "-k" flag to 
turn keep-alives off. 



Yep... does the job.
(even with 2.2.2 under Sol 8)
icon5.gif   How To: add charset support via META ?, posted by Max Goncharenko on Wed Nov 6 13:34:49 2002 
Encoding  problem:

How to make ELOG generate HTTP pages with 

<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=XXXX">

tag in header. With charset=XXX selectable via config.
    icon2.gif   Re: How To: add charset support via META ?, posted by Stefan Ritt on Wed Nov 6 14:46:12 2002 
> Encoding  problem:
> 
> How to make ELOG generate HTTP pages with 
> 
> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=XXXX">
> 
> tag in header. With charset=XXX selectable via config.

I added this option, so now you can specify in the [global] section of 
elogd.c something like

charset = windows-1252

To switch to Cyrillic. The modification will be contained in the next version 
of elog (2.2.3), and is now available from the CVS repository at:

http://midas.psi.ch/cgi-bin/cvsweb/elog/elogd.c

- Stefan
icon1.gif   New ELOG entry, posted by Willem Koster on Fri Nov 1 13:39:41 2002 
When I make a new entry I get an email with 

   subject: New ELOG entry

But when I or someone else changes an entry I also get an email with a 

   subject: New ELOG entry

I would prefer to see "Changed" , "Edited", or "Updated". This is beyond my 
programming capabilities so I enter this request.
    icon2.gif   Re: New ELOG entry, posted by Stefan Ritt on Mon Nov 4 15:08:11 2002 
> When I make a new entry I get an email with 
> 
>    subject: New ELOG entry
> 
> But when I or someone else changes an entry I also get an email with a 
> 
>    subject: New ELOG entry
> 
> I would prefer to see "Changed" , "Edited", or "Updated". This is beyond my 
> programming capabilities so I enter this request.

I have implemented this feature in V2.2.2.
icon1.gif   wrapping of text in edit field, posted by Willem Koster on Fri Nov 1 13:33:01 2002 
I noticed a long url got hard-wrapped when I entered a long one, I patched 
the source code. I don't know if this was done intentionally, otherwise you 
might want to change this also.

diff elogd.c elogd.c.org 
4468c4468
<     rsprintf("<textarea rows=20 cols=%d wrap=soft name=Text>", width);
---
>     rsprintf("<textarea rows=20 cols=%d wrap=hard name=Text>", width);

BTW, why is the editor window 20 rows by 76 columns ?
(20 is fixed in the source code, but 76 is the width-variable that is set 
hard to:

  /* set textarea width */
  width = 76;

Now I don't like both parameters. 20 is too long for my display (1024x768) 
and 76 is too short. Something dynamically would be cool, but a parameter 
somewhere in a config file would also be acceptable. (just a thought, makes 
it easier to upgrade)
    icon2.gif   Re: wrapping of text in edit field, posted by Stefan Ritt on Mon Nov 4 14:55:10 2002 
> I noticed a long url got hard-wrapped when I entered a long one, I patched 
> the source code. I don't know if this was done intentionally, otherwise you 
> might want to change this also.
> 
> diff elogd.c elogd.c.org 
> 4468c4468
> <     rsprintf("<textarea rows=20 cols=%d wrap=soft name=Text>", width);
> ---
> >     rsprintf("<textarea rows=20 cols=%d wrap=hard name=Text>", width);

If the wrap=soft is used, users tend to enter very long lines (without 
hitting return in between). If this line then gets displayed, it can be very 
wide and the user has to horizontally scroll the browser window. What I can 
do is in the display (not the entry) to concatenate URLs which are separated 
only by a CR/LF. But you then have some cases where you have an URL to the 
end of the line, then some other text starting on the next line, which then 
get concatenated falsely (unless you use some clever code which scans 
for ".html" or "xxx/xxx" or something like that.

> Now I don't like both parameters. 20 is too long for my display (1024x768) 
> and 76 is too short. Something dynamically would be cool, but a parameter 
> somewhere in a config file would also be acceptable. (just a thought, makes 
> it easier to upgrade)

You always had the option "Message width = xx" to change the width on the 
text box, and I added in V 2.2.2 the parameter "Message height = xx" where 
you can change the 20 to something else.
icon5.gif   how do you specify user name/passwd for the outbound smpt server, posted by eric wooten on Thu Oct 31 10:42:02 2002 
if you have a site that requires authentication to the smtp server, how do 
you specify this info in elog???

thanks,
eric
    icon2.gif   Re: how do you specify user name/passwd for the outbound smpt server, posted by Stefan Ritt on Mon Nov 4 14:00:24 2002 
> if you have a site that requires authentication to the smtp server, how do 
> you specify this info in elog???
> 
> thanks,
> eric

This is not implemented right now. Unfortunately, I don't hve an smtp server 
here which requires authentication, so I cannot develop this. If anyone has a 
server from which I have *remote* access from here (pc810.psi.ch), I will put 
this additional authentication in.
icon7.gif   Increase attachment file size for elog command line client, posted by Kevin Ellwood on Fri Sep 27 19:17:58 2002 
Hi,

I am having trouble modifying the elog client to allow larger attachment.  I
have elogd configure for attchment sizes of 10Meg and I would like the
option to be able to use the elog client.  Can anyone give me key points as
to how to go about doing this?  I have tried but I must be missing something.

Also, as a suggestion, it might make sense to add a MAX_ATTACHMENT_SIZE def
in a common header file.

Thanks
Kevin
    icon2.gif   Re: Increase attachment file size for elog command line client, posted by Stefan Ritt on Mon Oct 14 10:28:48 2002 
> Hi,
> 
> I am having trouble modifying the elog client to allow larger 
attachment.  I
> have elogd configure for attchment sizes of 10Meg and I would like the
> option to be able to use the elog client.  Can anyone give me key points 
as
> to how to go about doing this?  I have tried but I must be missing 
something.
> 
> Also, as a suggestion, it might make sense to add a MAX_ATTACHMENT_SIZE 
def
> in a common header file.
> 
> Thanks
> Kevin

I modified the elog program such that the attachment buffer is dynamically 
allocated which means that it works with any size. Please find the updated 
version at

http://midas.psi.ch/cgi-bin/cvsweb/~checkout~/elog/elog.c?rev=1.10

Note that for attachments larger than ~2MB, one hase to increase the 
WEB_BUFFER_SIZE in elogd.c.

- Stefan
icon3.gif   New elogd.cfg for this site, posted by Stefan Ritt on Tue Sep 24 17:24:46 2002 
Since the way ELOG works has changed in version 2.2.0 (show message list as 
default view), the configuration file elgod.cfg for this site became 
slightly simpler. The usual "Start page = ?cmd=Search" is not necessary any 
more due to the changed default view. The commands displaying the last x or 
last x days of messages are still working, but depreciated, since the "Show 
last xxx" facility takes care of that. The default menu commands have been 
change which reflect the modified default view. The single elog page now 
has a "back" link instead the find result page.

Here is the updated version:

======= cut here ========

[global]
logbook tabs = 1
SMTP host = mailsend.psi.ch
URL = http://midas.psi.ch/elogdemo/
user = midas
group = midas
Logout to main = 1

[Linux]
Theme = default
Comment = General linux Tips & Tricks
Data dir = /usr/local/elogdemo/logbooks/Linux
Attributes = Author, Type, Icon, Category, Subject
Options Type = Routine, Software Installation, Problem Fixed, 
Configuration, Tips & Tricks, Info, Other
IOptions Icon = icon1.gif, icon3.gif, icon4.gif, icon5.gif, icon6.gif, 
icon7.gif, icon8.gif, icon12.gif, icon13.gif, icon14.gif
Options Category = General, Hardware, Software, Network, Applications, 
Shell, Account, Packages, Daemons, Other
Required Attributes = Author
Subst Author = $author
Summary on default = 1
Summary lines = 0
Email all = stefan.ritt@psi.ch
Email message body = 1

[Database]
Theme = default
Comment = Demo of database-like elog
Data dir = /usr/local/elogdemo/logbooks/database
Attributes = Type, Operating system, Location, Status, Comment
Required Attributes = Type, Operating system, Location, Status
Options Type = PC, Router, Bridge
Options Operating system = Linux, Windows NT, Windows 2000, Windows XP, 
Windows ME, Embedded
Options Location = Building1, Building2, Building3
Options Status = working, defect, in repair
Show text = 0
Display search = #, Type, Location, Status
Summary lines = 0
Number Attachments = 0
Suppress default = 2
Entries per page = 10

[Forum]
; general options
Password file = /usr/local/elogdemo/logbooks/forum/passwd
Admin user = stefan
Self register = 2
Theme = default
Comment = Discussion forum about ELOG
Data dir = /usr/local/elogdemo/logbooks/forum
Display mode = threaded
Guest menu commands = Back, Find, Login, Help
Guest find menu commands = Find, Login, Help
Number Attachments = 1
Message comment = <img src=icons/icon6.gif> Please enter only serious 
messages here, for testing use the <b>Linux</b> Logbook:
Filtered browsing = 0
Entries per page = 8
Reverse sort = 1
Restrict edit = 1

; Attributes
Attributes = Icon, Author, Author Email, Category, Subject
Options Category = Info, Bug report, Bug fix, Question, Request, Comment, 
Other
IOptions Icon = icon1.gif, icon2.gif, icon3.gif, icon4.gif, icon5.gif, 
icon6.gif, icon7.gif, icon8.gif, icon12.gif, icon13.gif, icon14.gif
Required Attributes = Author, Author Email, Subject, Icon
Subst on reply subject = Re: $subject
Thread display = $subject, posted by $author on $Entry date
Thread icon = Icon
Remove on reply = Author, Author Email
Date format = %B %d, %Y
Preset Author = $long_name
Preset Author Email = $user_email
Locked Attributes = Author

; Email notification
Email message body = 1
Display Email recipients = 0
icon4.gif   weird date bug, posted by tony summerfelt on Tue Sep 17 17:23:35 2002 
i have a forum with one message. the forums is displayed with the search mode set to threaded.

the list shows this: 

posted by tony summerfelt on Tuesday, September 17/2002 -- 11:19 AM

but the entry date on the message is:

Sunday, September 01/2002 -- 01:47 AM 

the 'posted by' shows the current date/time everytime i look at the message.
    icon2.gif   Re: weird date bug, posted by Stefan Ritt on Tue Sep 24 17:05:43 2002 
> i have a forum with one message. the forums is displayed with the search 
mode set to threaded.
> 
> the list shows this: 
> 
> posted by tony summerfelt on Tuesday, September 17/2002 -- 11:19 AM
> 
> but the entry date on the message is:
> 
> Sunday, September 01/2002 -- 01:47 AM 
> 
> the 'posted by' shows the current date/time everytime i look at the message.

I vaguely remember there was once a problem with that date. So can you please 
try again with a recent version of ELOG?
       icon2.gif   Re: weird date bug, posted by tony summerfelt on Tue Sep 24 17:24:38 2002 
> I vaguely remember there was once a problem with that date. So can you please 
> try again with a recent version of ELOG?

i just entered a new message and it's doing the same thing...

the version showing at the bottom of the listing is v2.1.2 (even though i updated to 2.1.3)
ELOG V3.1.5-2eba886