Guile path for scm files

2015-03-14 Thread David Christopher
I have edited my .profile file by adding this line to the very end.

PATH=$PATH:$HOME/Documents

Now with that in there I can in terminal type echo $PATH and get this
return:

david@david-Aspire-XC-605G ~ $ echo $PATH
/home/david/Documents:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/david/Documents

Supposedly when I chmod to make the hello.scm practice file executable and
run from the terminal command line I should see the Hello World.  As
opposed to on the command line typing guile hello.world.

When I type hello.scm in terminal command line, I get the following error.

---
david@david-Aspire-XC-605G ~ $ hello.scm
;;; Stat of /home/david/?s failed:
;;; ERROR: In procedure stat: No such file or directory:
/home/david/\u2013s
Backtrace:
In ice-9/boot-9.scm:
 157: 8 [catch #t #catch-closure 1f48400 ...]
In unknown file:
   ?: 7 [apply-smob/1 #catch-closure 1f48400]
In ice-9/boot-9.scm:
  63: 6 [call-with-prompt prompt0 ...]
In ice-9/eval.scm:
 432: 5 [eval # #]
In ice-9/boot-9.scm:
2320: 4 [save-module-excursion #procedure 1f7ad00 at
ice-9/boot-9.scm:3961:3 ()]
3968: 3 [#procedure 1f7ad00 at ice-9/boot-9.scm:3961:3 ()]
1645: 2 [%start-stack load-stack ...]
1650: 1 [#procedure 1f780f0 ()]
In unknown file:
   ?: 0 [primitive-load /home/david/\u2013s]

ERROR: In procedure primitive-load:
ERROR: In procedure open-file: No such file or directory:
/home/david/\u2013s
---
Now without that line in .profile, I get file not found

A friend told me I get te \u0213s from having a bad character in the
.profile file in that added line.  Well, I have typed it in by hand several
times, copied an untouched .profile from my back up into the thing and
still get the error.  Also tried creating the .bashrc and the
.pamenvironment file and I get the same error with those two files.

Anyone know why I get this No such file or directory: /home/david/\u2013s
  ??
 It should say /home/david/Documents

I studied the Guile Reference Manual about %load and setting environmental
variables.

In guile load does not look in the path, it seems to only look in current
directory for the file to load.  I did copy and paste the hello.scm in the
2.0 directory where the Manual says scm files should be.  Then I entered
(load-from-path hello.scm) and that works fine.

Thanks for any help and especially looking a a newbee proplem.
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: I need some guidance

2015-02-25 Thread David Christopher
That helps much.

I found a good tutorial for Scheme and am plugging away at it.  It is way
to complicated for me to even think of GNUcash tinkering until I can do
some of my own coding with Scheme.  I learned C to a degree, but moved to
C# because, I did not get pointers.  [let them kick my butt is more to
the point].

On Wed, Feb 25, 2015 at 8:36 AM, Geert Janssens geert.gnuc...@kobaltwit.be
wrote:

  On Tuesday 24 February 2015 09:06:09 David Christopher wrote:

  New to Linux. I just converted my computer to Mint 17.1 from the

  Windows OS. I was learning to code in Visual Studio. I want to work

  on GNUcash reports, for fun and to learn more about the program.

 

  I have been learning to use Guile and Scheme, but here is my mental

  block.

 

 Hi David,



 I can understand your confusion. I have been there as well a couple of
 years back.



  When you write code is Scheme script, are you literally building the

  Options, what I call a form, literally?



 No, this is all heavily abstracted. The report system in gnucash is a mix
 of C code and scheme code. The parts that actually draw the form and even
 define which widget (graphical representation of an option on the form) to
 use are in the C code.



 The scheme code related to options is spread over several areas in gnucash.



 First off there is src/app-utils/options.scm. This scheme file defines the
 data model for most options. Not how it is graphically represented, but
 what data can be stored in which kind of option. For example a text option
 can store a bit of text. A date option can store a date,... All this is in
 options.scm.



 Building on that, the kind of option directly defines how it is
 represented visually to the user. As said these graphical representations
 are written in C, most can be found in

 src/gnome-utils/dialog-options.c.



 Lastly the reports don't define the options, nor the way to present them
 visually to the user. Simplified you could say the options section in the
 reports is more like an ingredient list. It merely tells which options you
 want for the report of what kind of data they represent. This section is
 called the options-generator in most reports.



 The lower level code takes these ingredients and transform them into a
 form with option to show the user whenever this is requested.



 However although you don't define the graphical representation of the
 options, you do have some limited control over their appearance in the form:

 - the form is divided in tabs or sections. You can choose the section name
 in which your option is to be displayed. There are several predefined
 sections (like General) or you can invent your own if needed. This section
 name is passed as the first parameter in each of the gnc:make-xyz-option
 calls.

 - secondly within a section you can manipulate the display order on the
 form. Most reports use a single or double letter string to order the
 options. In the hello-world.scm report you can see these in each of the
 gnc:make-xyz-option calls as the third parameter.



  I have been looking at the

  Hello world .scm file while in a tutorial. I understand I can change

  the text in a label, but how did the label get on the form, where did

  the form come from, and the buttons on the form?

 

 All this is set up in C code based on the option description you pass in
 the report code.



  Is there a small tutorial that shows how to make the form and put

  controls on it? Is that even what is being done?

 



 Unfortunately I'm not aware of such a tutorial.



 Hopefully my explanation helps you understand this somewhat better.



 Regards,



 Geert

___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


I need some guidance

2015-02-24 Thread David Christopher
New to Linux.  I just converted my computer to Mint 17.1 from the Windows
OS.  I was learning to code in Visual Studio.  I want to work on GNUcash
reports, for fun and to learn more about the program.

I have been learning to use Guile and Scheme, but here is my mental block.

When you write code is Scheme script, are you literally building the
Options, what I call a form, literally?  I have been looking at the Hello
world .scm file while in a tutorial.  I understand I can change the text in
a label, but how did the label get on the form, where did the form come
from, and the buttons on the form?

Basically, I need a mental picture of what I am doing.

Is there a small tutorial that shows how to make the form and put controls
on it?  Is that even what is being done?

Thanks
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


I want to learn how to customize reports

2015-02-19 Thread David Christopher
I have been studying the process on this page:
http://wiki.gnucash.org/wiki/Custom_Reports

The first thing I run into is that I have to learn Scheme.  So off to this
page:
http://www.scheme.com/tspl2d/start.html#g1546  where I am told I need
a interactive
Scheme system .

I goggled that and got to this page:
ftp://ftp.cs.utexas.edu/pub/garbage/cs345/schintro-v14/schintro_81.html#SEC87

That page tells me I need RScheme.  I goggled that finally downloaded this.
rs-0.7.3.4-b7.tar.gz

I used 7 Zip to unpack that and now have a folder in my downloads
rs-0.7.3.4-b7.tar and I can use 7 Zip to open that and see the files in
there.

What do I do with those files and folders?  How do I install RScheme.?

Is there someplace I can go to get an exe file to install?

Is that even what I need for a Windows 7 64x system?  If not what do I need
to follow the tutorials on scheme.?

I did download and install this mit-scheme-9.2-i386-win32 but I can not
figure out what to do with it and was not sure it is what I need so I
uninstalled it.

I am off to a rocky start.  Hahaha!

Thanks
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: I want to learn how to customize reports

2015-02-19 Thread David Christopher
I had Cygwin downloaded and installed and the Guile package installed also
and was trying to figure out how to use it when I got the next few messages
that said to use the command prompt and type in those two lines.

I had to modify them to this for them to work
SET GUILE_LOAD_PATH=%ProgramFiles(x86)%\gnucash\share\guile\1.8

%ProgramFiles(x86)%\gnucash\bin\guile.exe

Then I went to the tutorial site and typed in items as directed.

I attach a screen shot of the results.  Looks like it works.

Since there is only one user account on my computer right now, should I
uninstall Cygwin64 from the computer?  I do not need it for anything right
now as far as I can tell.

On Thu, Feb 19, 2015 at 8:05 AM, Geert Janssens geert.gnuc...@kobaltwit.be
wrote:

  On Thursday 19 February 2015 14:03:51 Geert Janssens wrote:

  On Thursday 19 February 2015 16:23:14 Dmitry Pavlov wrote:

   GnuCash uses guile as a scheme impl.

 

  Indeed, gnucash uses guile. So you probably want to work with that

  because each implementation speaks a different dialect.

 

  The downside is that guile is not a windows native package. So when

  you install gnucash it works well from within gnucash, but it's less

  obvious how to use it independently of gnucash.

 

  Here is one way you could do it:

 

  - Open a command prompt (cmd.exe)

  - Type

  SET GUILE_LOAD_PATH=%ProgramFiles%\gnucash\share\guile\1.8

  %ProgramFiles%\gnucash\bin\guile.exe



 Eh sorry, that second command needs quotes:

 %ProgramFiles%\gnucash\bin\guile.exe



 Geert



 

  The first command makes sure guile finds all of its modules, the

  second will start an interactive guile session.

 

   I think you should better try to install cygwin and then install

   guile for it, using it's package management feature.

 

  Be careful with installing gnucash and cygwin under the same user

  account. From past reports it looks like this is a recipe for crashes

  in gnucash.

 

  If you want to go the cygwin route, please install it under a separate

  user account on your pc, and make sure it doesn't install for all

  users.

 

   As an alternative you can run Ubuntu in virtual maching (virtual box

   for example)

 

  That would also be an option.

 

  Good luck,

 

  Geert

 

   2015-02-19 14:52 GMT+03:00 David Christopher chrst...@gmail.com:

I have been studying the process on this page:

http://wiki.gnucash.org/wiki/Custom_Reports

   

The first thing I run into is that I have to learn Scheme. So off

to this page:

http://www.scheme.com/tspl2d/start.html#g1546 where I am told I

need

a interactive

Scheme system .

   

I goggled that and got to this page:

   

ftp://ftp.cs.utexas.edu/pub/garbage/cs345/schintro-v14/schintro_81

.h

tml#SEC87

   

That page tells me I need RScheme. I goggled that finally

downloaded this. rs-0.7.3.4-b7.tar.gz

   

I used 7 Zip to unpack that and now have a folder in my downloads

rs-0.7.3.4-b7.tar and I can use 7 Zip to open that and see the

files in there.

   

What do I do with those files and folders? How do I install

RScheme.?

   

Is there someplace I can go to get an exe file to install?

   

Is that even what I need for a Windows 7 64x system? If not what

do

I need to follow the tutorials on scheme.?

   

I did download and install this mit-scheme-9.2-i386-win32 but I

can

not figure out what to do with it and was not sure it is what I

need so I uninstalled it.

   

I am off to a rocky start. Hahaha!

   

Thanks

___

gnucash-devel mailing list

gnucash-devel@gnucash.org

https://lists.gnucash.org/mailman/listinfo/gnucash-devel

 

  ___

  gnucash-devel mailing list

  gnucash-devel@gnucash.org

  https://lists.gnucash.org/mailman/listinfo/gnucash-devel



___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: [PATCH] Budget report improvements (was Re: Budget reports)

2015-02-17 Thread David Christopher
Dmitry, Thank you so much.  That is exactly what I needed. I can look at
just one month now on a clean screen.  I have not yet used anything except
Default Accounts, but I will start that project after I send this.

Good Work!

On Tue, Feb 17, 2015 at 8:29 AM, Dmitry Pavlov zeldi...@gmail.com wrote:

 If I get you right, you need ability to make a report for budget with
 specification of what periods to show in details, because for budgets with
 large number of periods, it is not convinient to analyze data.

 I think that my enhancements is what you need, please refer to this blog
 post about them:
 http://blog.dnpavlov.com/2014/03/gnucash-budget-report-enhancement.html
 at the end of article you can find instructions of how to install this
 enhanced version to your gnucash installation.

 2015-02-17 12:56 GMT+03:00 David chrst...@gmail.com:

 Well here it is a little over 6 years later and I am using 2.6.5 and your
 contributions to the budget report are working well.  I am a new user of
 gnucash, migrating from Quicken.  At the moment I am searching posts about
 Budget Report and this thread is the first on a long list.

 I am used to being able to set up a budget and then pull a budget report
 for
 a specific period of time, I mostly use the Monthly version, but at tax
 time, I use the annual version go get total actual s for different
 expenses
 and verify Income and withholding's on 1099's.

 The current Budget Report lists all 12 months on a form that has very
 little
 spacing between the months is is very difficult to read.  There is no
 option
 to choose a time period in this report.

 After several weeks of learning the basics, I finally gave up trying to
 make
 budgets that mimic what I am used to.  I just made one Master budget with
 all the accounts included, and if I want to look at income less expense
 for
 a specific Income/Expense set of accounts, I choose them specifically.

 But, I would like a report with Income at the top, next expenses, and then
 transfers from the income to different liability and savings accounts, as
 well as transfers back into the income section.  Let me enplane.  I have
 accounts that I an amount monthly for paying annual charges like property
 taxes and Insurance and emergency expenditures.  So when I zero out my
 Income less expenses, I need to see the transfers to these accounts, and
 when I pay the expenses, have the transfer back into the contributing
 account show that transfer as part of the period income.

 The report would have Columns Budgeted, Actual and Difference and a total
 on
 the bottom that would reflect [Income + Transfers In] - [Expenses +
 Transfers Out].

 Options would require choosing the accounts for the report, and a Period
 picker, at the minimum.

 I have no idea if this could be done with Custom Reports, but I am
 studying
 how to make custom reports.  Any advice?



 --
 View this message in context:
 http://gnucash.1415818.n4.nabble.com/Budget-reports-tp1436849p4676103.html
 Sent from the GnuCash - Dev mailing list archive at Nabble.com.
 ___
 gnucash-devel mailing list
 gnucash-devel@gnucash.org
 https://lists.gnucash.org/mailman/listinfo/gnucash-devel




 --
 С уважением,
 Дмитрий Павлов

___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel