Re: GLib RFC: Improve checking provided with --enable-mem-check

2001-06-07 Thread Ben Stanley

Thanks for all the replies.

I am now planning to maintain a separation between all the hash table 
data and the user block areas, to increase robustness in the face of 
rogue programs.

I looked at the pluggable interface in glib 1.3.5. It seems that the 
g_malloc/g_free etc functions must be installed by the program at the 
beginning of main, before initialising glib etc. However, I wish to 
support installing the debugging memory manager into a previously 
compiled program. This is already possible by compiling glib 1.2.x with 
--enable-mem-check and installing it into a non-standard location (or 
with a non-standard name), and then using

export LD_PRELOAD=/opt/lib/libglibdebug.so

(LD_PRELOAD is documented on the ld.so man page) to replace all the glib 
functions in a dynamically linked executable as it loads. A similar 
effect may be achieved from inside gdb by using

set environment LD_PRELOAD=/opt/lib/libglibdebug.so

Thus, the debugging memory manager may be used optionally at run-time 
just by setting an environment variable, even with the existing versions 
of glib.

I am planning to supply the replacement memory interface functions 
(g_malloc, g_free, g_realloc etc) in a library called libgmemdebug.so. 
This will support the above usage pattern. If you wish to compile a 
debugging version of your program with the debugging memory manager 
built in, then it would be possible to link against this library before 
linking against libglib.so in order to override the memory allocation 
functions. I see little need for the pluggable memory interface in glib 
1.3...

However, the pluggable memory interface may be supported by exporting my 
debugging memory manager interface as

g_debug_malloc()
g_debug_free()
g_debug_realloc()
etc

and also supplying a utility function to facilitate initialising the 
struct of function pointers to do the right thing wrt the debugging 
memory manager. This would require a separate library containing the 
different names... I am not as keen on this option.

I am also going to have to export some new functions to make available 
the debugging aspects of the memory manager to user programs. It is 
envisaged that this functionality would only be used by debugging 
versions of applications, not release versions. So I will have to supply 
a separate header file.

So it seems now that my design should be separated from glib itself, so 
as to build a separate library which may be optionally linked or 
run-time pre-loaded to obtain debugging functionality, without 
re-compiling glib itself.

Another question: Is it possible to programmatically obtain the current 
stack trace? This feature would be very useful for tracking down leaks. 
Whenever g_malloc is called, the stack trace could be obtained and 
stored with the block information. When leaks are reported, the stack 
trace is printed out for each block. This should allow the source of 
leaks to be pinpointed quickly and accurately. Of course, it would 
vastly increase run-time overhead, and so should be able to be turned on 
and off. I would suggest that a global variable be made available, to be 
turned on through an environment variable, by setting in the debugger, 
or programmatically through the debugging interface.

How do people feel about run-time overhead? Is it worth incorporating 
more checks, at the cost of memory and speed, if it can detect more 
kinds of error? Should I just compile everything in, or make features 
selectable by the above-mentioned mechanism of global variables?

Ben.



___
gnucash-devel mailing list
[EMAIL PROTECTED]
http://www.gnumatic.com/cgi-bin/mailman/listinfo/gnucash-devel



Re: Non-breaking spaces in tables

2001-06-07 Thread Bill Gribble

On Thu, Jun 07, 2001 at 03:00:54PM +1000, Damian Ivereigh wrote:
> The typical workaround to this is to insert a non-breaking space into
> the cell ( )

... which is what Gnucash generally does when it creates the table.
gtkhtml appears to be throwing away a lot of information when it 
exports the HTML.  

We don't need to ask gtkhtml for the HTML.  We have already generated
it and it's cached in the report object.  It seems pretty clear that
there are some problems with the gtkhtml export functionality, so
maybe we should just use the report's cached HTML, which we know has
all the right stuff in it.

I'm not sure what's required to do this; I'll have a look today. 

b.g.
___
gnucash-devel mailing list
[EMAIL PROTECTED]
http://www.gnumatic.com/cgi-bin/mailman/listinfo/gnucash-devel



Re: sample announcement & press release

2001-06-07 Thread Christian Stimming

-BEGIN PGP SIGNED MESSAGE-

On Thursday 07 June 2001 01:39, Dave Peticolas wrote:
> Here are drafts of an announcement (for the webpage & mailing lists
> mainly) and a press release (for sending to whatever news org you
> like).

Sounds good. I am perfectly happy with the press release. Thanks to Dave 
for his improvements. For the mailing list announcements I still have a 
few suggestions... well, my proposal is attached. I think we are 
converging :-))

Christian
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.4 (GNU/Linux)

iQCVAwUBOx+dSWXAi+BfhivFAQHPdAP9GKJdGGKUNX1YZCAiLCiBNoV/QNc3rJWc
R6nEhS+8I2Bx6X0MM8Hicn0gMk/Yo6n0+K9w7NhTZMe09JpzPqNQbSF3lWuqFP1Q
SGlW9JKIeqwdmBa1T24MsO+Tzn04A70KLd7zNH+GVXpCoL5q/bOufJc3IxQEwBKU
MpnCRhCsmss=
=8hCu
-END PGP SIGNATURE-


DRAFT

The GnuCash Development Team  proudly
announces the release of GnuCash 1.6.0, the GNU personal finance
manager.

GnuCash features a full account hierarchy manager, a checkbook-like
register GUI to enter transactions, and a full set of reports to
visualize the state of your finances. The new release comes with a
configurable main window, a much improved checking and general ledger
entry window, and over ten completely new graphical reports including
pie charts and bar charts using the GNU plot program Guppi
.

Thanks go to all the translators, testers, bug reporters, and artists
who made this release possible.

The new release of GnuCash contains many new features including:

  + Printable, persistent reports (reports are saved between sessions)

  + XML file format (old binary files are converted automatically)

  + Account hierarchy creation druid, account hierarchy export

  + Much improved QIF importing

  + Financial calculator

  + Better support for multiple currencies, special support for the Euro

  + Online stock quotes integrated with the GUI

  + Expression evaluation (you can type in 40.45 + 31.23)

  + PostgreSQL back-end (beta, disabled by default)

The source packages for GnuCash are available for free under the GNU
General Public Licence (GPL) at ftp://ftp.gnucash.org/pub/... GnuCash
1.6.0 requires the Gnome 1.4 platform, Guppi, slib, and g-wrap. The
detailed requirements can be found at
.



startup Warning/error ?!?

2001-06-07 Thread Christian Stimming

-BEGIN PGP SIGNED MESSAGE-

Since about a week ago I get the following warning during (CVS) GnuCash 
startup:

> gnucash
ERROR: no such module (gnucash process)
gnucash: [W] "failure loading 
""/usr/local/share/gnucash/scm/price-quotes.scm"
ERROR: no such module (gnucash process)
gnucash: [W] "failure loading 
""/usr/local/share/gnucash/scm/price-quotes.scm"

This is a development version [...]

Does anybody else get this warning recently? Does somebody have a rough 
guess on which package I would need to reinstall? Thanks.

Christian
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.4 (GNU/Linux)

iQCVAwUBOx+eF2XAi+BfhivFAQE5vAP/SqxMeLK56962ucHjbsI3j7PC2GeMHk9K
HLwKq+D6VgxFxZtrlZZ1M7EDs7xZiIDjCE0HMRZpd/JMDrJxFQWZ0mltBbCLGTZ2
y+mP8bUePYYuT27CVw+dWPsTatiga67+HXd7GFUiuRBvNSL2kuf85CH2hHezmeZH
vvEWO1ITn+A=
=ICEB
-END PGP SIGNATURE-
___
gnucash-devel mailing list
[EMAIL PROTECTED]
http://www.gnumatic.com/cgi-bin/mailman/listinfo/gnucash-devel



account creation druid templates

2001-06-07 Thread Christian Stimming

-BEGIN PGP SIGNED MESSAGE-

I would like to create a localized version of the account templates for 
the inital druid. How do I do that? Did I forget to RTFM, and if yes, 
where? If not, can somebody suggest how the process of translating this 
might work best? Thanks.

Christian
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.4 (GNU/Linux)

iQCVAwUBOx+ejWXAi+BfhivFAQHamwQAssZ2Kz39889sXxXgkmgTYLrFEkbCEc34
q7HH3qU5fScycrj5Gwwbl0LmT3A9B1QslX4hORW/3aRy+P87H2vWy/GtJGBR1R4X
JsspyJrDStvBI4HYPl+uTPFLnuYQp+MbtRum0UjP3L37juJBdP5R0Dwp0hPBfLSa
xEH/sQ4n9DM=
=t0ar
-END PGP SIGNATURE-
___
gnucash-devel mailing list
[EMAIL PROTECTED]
http://www.gnumatic.com/cgi-bin/mailman/listinfo/gnucash-devel



Re: gnucash 1.5.98 qif import

2001-06-07 Thread GLeeJ.

"GLeeJ." wrote:

> when gnucash loads it starts at around 68 % cpu then goes to 98.3 finally
> resting at 1.3..just fyi in case it helps
>
> lee
> -=
>
> ___
> gnucash-devel mailing list
> [EMAIL PROTECTED]
> http://www.gnumatic.com/cgi-bin/mailman/listinfo/gnucash-devel

sorry.gnucash 1.5.98 on RH7.1/gnome1.4 ( all current ) which admittedly
is acting up albeit netscape takes about 30 some % upon "finished" loading
not while loading.no other apps seem to have this effect at ths time.

fyi-


lee
-===

___
gnucash-devel mailing list
[EMAIL PROTECTED]
http://www.gnumatic.com/cgi-bin/mailman/listinfo/gnucash-devel



Re: gnucash 1.5.98 qif import

2001-06-07 Thread GLeeJ.

when gnucash loads it starts at around 68 % cpu then goes to 98.3 finally
resting at 1.3..just fyi in case it helps

lee
-=

___
gnucash-devel mailing list
[EMAIL PROTECTED]
http://www.gnumatic.com/cgi-bin/mailman/listinfo/gnucash-devel



[VW Fan ] Re-saving multi-currency databases to backend fails

2001-06-07 Thread Linas Vepstas

The bug below was just fixed in the latest cvs.

BTW, the sql backend is more-or-less ready for 
wider if not widespread use.  The single-user mode
has no known (serious) bugs.  There some cleanup
that is needed (e.g. a gui dialog for username/password
is not integrated; the way that errors are reported is 
ugly and could be improved, etc.)  But I beleive
its ready to rock-n-roll.

The multi-user mode is also almost ready.
There are a few glitches involving the display of account
balances that will scare people, but I beleive that in
all other respects, it should work ok.  Once I get the 
balances fixed, the remaining known bugs are 'minor'.
Its not been well tested (ok, its almost not been tested 
at all ... that's where you come in...)

--linas

- Forwarded message from Dave Peticolas <[EMAIL PROTECTED]> -

From: VW Fan <[EMAIL PROTECTED]>

Then, I tried to make a copy of this database, by
doing a "save as" and giving it a new
postgres://localhost/db URL. 

It bombs with (info on the xterm):

Info: pgendStoreOneTransactionOn...(): sending query
INSERT INTO gncTransaction (num, description,
currency, last_modified, date_entered, date_posted,
version, transGUID) VALUES ('1', 'Bank to Customer 2',
'', 'NOW', '2001-06-06 18:09:52.00 -0400',
'2001-06-05 23:00:00.00 -0400', 3,
'9dd82d29e89b378462b8c6b3c940adc7');
Info: pgendStoreOneTransactionOn...(): clearing result
0
Error: pgendStoreOneTransactionOn...(): finish query
failed:
ERROR:  ExecAppend: rejected due to CHECK
constraint gnctransaction_currency
___
gnucash-devel mailing list
[EMAIL PROTECTED]
http://www.gnumatic.com/cgi-bin/mailman/listinfo/gnucash-devel



Re: startup Warning/error ?!?

2001-06-07 Thread Dave Peticolas

On 07 Jun 2001 17:30:31 +0200, Christian Stimming wrote:
> -BEGIN PGP SIGNED MESSAGE-
> 
> Since about a week ago I get the following warning during (CVS) GnuCash 
> startup:
> 
> > gnucash
> ERROR: no such module (gnucash process)
> gnucash: [W] "failure loading 
> ""/usr/local/share/gnucash/scm/price-quotes.scm"
> ERROR: no such module (gnucash process)
> gnucash: [W] "failure loading 
> ""/usr/local/share/gnucash/scm/price-quotes.scm"
> 
> This is a development version [...]
> 
> Does anybody else get this warning recently? Does somebody have a rough 
> guess on which package I would need to reinstall? Thanks.

This should be fixed now.

dave


___
gnucash-devel mailing list
[EMAIL PROTECTED]
http://www.gnumatic.com/cgi-bin/mailman/listinfo/gnucash-devel



Re: startup Warning/error ?!?

2001-06-07 Thread Dave Peticolas

On 07 Jun 2001 17:30:31 +0200, Christian Stimming wrote:
> -BEGIN PGP SIGNED MESSAGE-
> 
> Since about a week ago I get the following warning during (CVS) GnuCash 
> startup:
> 
> > gnucash
> ERROR: no such module (gnucash process)
> gnucash: [W] "failure loading 
> ""/usr/local/share/gnucash/scm/price-quotes.scm"
> ERROR: no such module (gnucash process)
> gnucash: [W] "failure loading 
> ""/usr/local/share/gnucash/scm/price-quotes.scm"
> 
> This is a development version [...]
> 
> Does anybody else get this warning recently? Does somebody have a rough 
> guess on which package I would need to reinstall? Thanks.

What version of guile are you using?

dave


___
gnucash-devel mailing list
[EMAIL PROTECTED]
http://www.gnumatic.com/cgi-bin/mailman/listinfo/gnucash-devel



Re: account creation druid templates

2001-06-07 Thread Dave Peticolas

On 07 Jun 2001 17:32:29 +0200, Christian Stimming wrote:
> -BEGIN PGP SIGNED MESSAGE-
> 
> I would like to create a localized version of the account templates for 
> the inital druid. How do I do that? Did I forget to RTFM, and if yes, 
> where? If not, can somebody suggest how the process of translating this 
> might work best? Thanks.

Translate all the files under accounts/C/acctchrt* with the exception
of acctchrt_full. You can change the structure of the account trees
and add new ones, delete existing ones as appropriate for the locale.

dave


___
gnucash-devel mailing list
[EMAIL PROTECTED]
http://www.gnumatic.com/cgi-bin/mailman/listinfo/gnucash-devel



sample announcement & press release

2001-06-07 Thread Dave Peticolas

Ok, here are two new drafts, with Christian's modifications
and a few more changes.

dave



DRAFT

The GnuCash Development Team  proudly
announces the release of GnuCash 1.6.0, the GNU personal finance
manager.

GnuCash features an account hierarchy creation tool, a checkbook-like
register GUI to enter transactions, and a full set of reports to
visualize the state of your finances. The new release comes with a
configurable main window, a much improved checking and general ledger
entry window, and over ten completely new graphical reports including
pie charts and bar charts using the GNU plot program Guppi
.

Thanks go to all the translators, testers, bug reporters, and artists
who made this release possible.

The new release of GnuCash contains many new features including:

  + Printable, persistent reports (reports are saved between sessions)

  + XML file format (old binary files are converted automatically)

  + Account hierarchy creation druid, account hierarchy export

  + Much improved QIF importing

  + Financial calculator

  + Better support for multiple currencies, special support for the Euro

  + Online stock quotes integrated with the GUI

  + Expression evaluation (you can type in 40.45 + 31.23)

  + PostgreSQL back-end (beta, disabled by default)

The source packages for GnuCash are available for free under the GNU
General Public License (GPL) at ftp://ftp.gnucash.org/pub/... GnuCash
1.6.0 requires the Gnome 1.4 platform, Guppi, guile, slib, and g-wrap.
Detailed requirements are at .


DRAFT

June 11, 2001 (The INTERNET) The GnuCash Development Team
 proudly announces the release of GnuCash 1.6,
the GNU personal finance manager. GnuCash features a full account
hierarchy manager, a checkbook-like register GUI to enter
transactions, and a full set of reports to visualize the state of your
finances. The new release comes with a configurable main window, a
much improved checking and general ledger entry window, and over ten
completely new graphical reports including pie charts and bar charts
using the GNU plot program Guppi .

Version 1.6 is the first stable GnuCash release to use the new XML
file format; old binary files are converted automatically. The new
XML format opens the door to further feature extensions and growing
support of small business type applications. The user interface
is designed to be simple and easy to use, but it is backed with
double-entry accounting principles to ensure balanced books.

For new users, the newly introduced account hierarchy creation druid
helps to get started, and the latest introductory documentation is
more exhaustive than ever. Existing financial data from e.g. Quicken
or MS Money can easily be imported by the much improved QIF importer.

Additional new features include printable reports, a financial
calculator, better support for multiple currencies and the Euro.

GnuCash is available for free under the GNU General Public License
(GPL) from the GnuCash server  and its
mirrors. Thanks go to all the translators, testers, and bug reporters
who made this release possible.


Downloading and Compiling GnuCash

The source packages for GnuCash are available for free download at
ftp://ftp.gnucash.org/pub/... GnuCash 1.6 requires the Gnome 1.4
platform, Guppi, guile, slib, and g-wrap. The detailed requirements
can be found at .


Contact

Send email to the mailing list <[EMAIL PROTECTED]>.
For subscription information, see .

 ###



Re: Non-breaking spaces in tables

2001-06-07 Thread Damian Ivereigh

On 07 Jun 2001 07:37:16 -0500, Bill Gribble wrote:
> On Thu, Jun 07, 2001 at 03:00:54PM +1000, Damian Ivereigh wrote:
> > The typical workaround to this is to insert a non-breaking space into
> > the cell ( )
> 
> ... which is what Gnucash generally does when it creates the table.
> gtkhtml appears to be throwing away a lot of information when it 
> exports the HTML.  
> 
> We don't need to ask gtkhtml for the HTML.  We have already generated
> it and it's cached in the report object.  It seems pretty clear that
> there are some problems with the gtkhtml export functionality, so
> maybe we should just use the report's cached HTML, which we know has
> all the right stuff in it.
> 
> I'm not sure what's required to do this; I'll have a look today. 

This would certainly seem sensible until gtkhtml stabilizes (reaches
1.0). Thanks for looking into it.

One of these days I will understand how the reports are produced.

Damian
 
--
Damian Ivereigh
CEPS Team Lead
http://wwwin-print.cisco.com
Desk: +61 2 8446 6344
Mob: +61 418 217 582

___
gnucash-devel mailing list
[EMAIL PROTECTED]
http://www.gnumatic.com/cgi-bin/mailman/listinfo/gnucash-devel



Re: 1.5.97 first impression

2001-06-07 Thread Rob Browning

"Jeffrey W. Baker" <[EMAIL PROTECTED]> writes:

> > With respect to the perceived difficulty of writing custom reports,
> > well, all I can say is that I, and my fellow developere, like working
> > with scheme, and intend to keep doing so.  That said, if somebody were
> > to contribute and maintain another language binding, that would be all
> > well and good, but I personally don't feel any need at this point.
> 
> Yeah well I'll push that onto the queue, as it were :)

Also note that there's much work afoot on the guile side these days.
There a good chance that some kind of compilation will be available in
the next 6 months, and I believe that someone is actually going to be
working in earnest on one of guile's oldest goals, that of supporting
other syntaxes directly.  I'm not sure what the first candidate will
be, but there's been at least a little talk of python.

> 1.3.4, which came with my distribution.  I'm not advised on the life cycle
> of Guile development.  Is it prudent to upgrade?  Guppi congratulates me
> on NOT having an ancient Guile when I run its configure script :)

Guile 1.4 is substantially better, and I'd recommend it -- it's
especially notable for faster loading which is one of the things
that's probably biting you.  Guile's actually pretty easy to
build/install, and I'd be happy to help if you need it.  Just ask
here, directly, or on guile-user.

Also we should be getting guile 1.6 out in the next few months, maybe
much sooner, and it should be an even bigger improvement across the
board (including some wonderful doc work from various people who
deserve many thanks).

> Okay I'll have a look at it with strace.  Maybe it is stalling on
> something really stupid like name resolution.

There was apparently also some issue with guppi -- I think maybe it
was reading from /dev/random, and so it won't finish until the entropy
pool has been full enough to generate all the random numbers it
needs.  If things speed up when you move the mouse furiously, then
you'll know that's it :>

-- 
Rob Browning <[EMAIL PROTECTED]> PGP=E80E0D04F521A094 532B97F5D64E3930
___
gnucash-devel mailing list
[EMAIL PROTECTED]
http://www.gnumatic.com/cgi-bin/mailman/listinfo/gnucash-devel