2012-11-23 GnuCash IRC logs

00:34:07 *** fuzzybunny69y_ has joined #gnucash
00:34:12 *** fuzzybunny69y has quit IRC
00:34:13 *** fuzzybunny69y_ is now known as fuzzybunny69y
01:34:41 *** fc101 has quit IRC
03:31:47 *** Arafangion has joined #gnucash
04:23:09 *** aqua___ has joined #gnucash
04:30:29 *** kpreid has joined #gnucash
05:07:59 *** fuzzybunny69y has quit IRC
05:40:09 *** nafg_ has joined #gnucash
05:40:38 *** aqua___ has quit IRC
05:40:44 *** nafg has quit IRC
06:06:01 *** aqua___ has joined #gnucash
06:19:33 *** fuzzybunny69y has joined #gnucash
06:20:43 *** ErKa has joined #gnucash
06:45:00 *** ErKa has quit IRC
06:52:23 *** ErKa has joined #gnucash
07:03:46 *** Topcat has joined #gnucash
07:12:37 *** ErKa has quit IRC
07:19:30 *** Topcat has quit IRC
07:19:53 *** Topcat has joined #gnucash
07:20:10 *** ErKa has joined #gnucash
07:28:20 *** Topcat has quit IRC
07:34:45 *** ErKa has quit IRC
07:45:09 *** ErKa has joined #gnucash
07:48:57 *** Arafangion has quit IRC
08:09:28 *** ErKa has quit IRC
08:17:40 *** ErKa has joined #gnucash
08:28:50 *** ErKa has quit IRC
08:59:29 *** aqua_ has joined #gnucash
09:06:55 *** aqua___ has quit IRC
09:13:09 *** Madon has joined #gnucash
09:15:29 *** xperia has joined #gnucash
09:20:06 <xperia> hi to all. i am trying to fix this guile line in the gnucash invoice.scm file but fails allways for some stupid reason.
09:20:08 <xperia> can anybody tell me what is the right syntax for this line ?
09:20:10 <xperia> http://pastebin.com/raw.php?i=dAUypVbL
09:20:12 <xperia> I just want to have a Line with the name of the City and the Date at which the Invoice was Created but somehow it just dont want to work!
09:20:22 *** fuzzybunny69y has quit IRC
09:24:55 <Madon> Hello xperia, all :)
09:25:09 <xperia> Hi Madon :-)
09:25:17 *** aqua_ has quit IRC
09:25:18 <Madon> xperia: maybe you forget a end bracket ")"
09:27:49 <xperia> Madon: Thanks for the suggestion. will check it out but dont think it is related to a syntax fault
09:34:16 <Madon> What's new about CuteCash? http://wiki.gnucash.org/wiki/Cutecash Is it still relevant?
09:37:35 <xperia> Madon: yeah you were right about the missing bracket! still somehow the getting and printing the invoice creation date makes problem
09:38:07 <Madon> xperia: do you speak french ?
09:39:06 <xperia> soleument un peut :-)
09:40:34 <Madon> Better than my english
09:54:13 <Madon> I am a young developer and wish to acquire experience. Description (vision) made ​​cuteCash attracts me a lot. The preamble says that we must start from scratch, but then he says that sources using the Qt Toolkit are in the trunk. So my question is Gnucash he already uses Qt?
10:06:33 <warlord> xperia: why are you using "string-expand"?
10:07:14 <warlord> Madon: it was never relevant. it was always just an experiment by one of the devs.
10:07:43 <xperia> i am total newbee related to guile. all i want is to print out a line like "City DD/MM/YEAR"
10:07:52 <warlord> Madon: no, CuteCash does..
10:07:57 <warlord> but cutecash != GnuCash
10:09:00 <warlord> xperia: (string-append "Zurich " (gnc-print-date invoice-date)) should be all you need to obtain the string. Then put that construct wherever you want.
10:09:33 <xperia> warlord: wooowww cool man will try it out.
10:13:55 <warlord> xperia: think about it -- all you want to do is append the city name and the date into a single string, so.. string-append will combine the strings into a single string.
10:16:16 <xperia> well i had that think before but "invoice-date" maked problem and is still making problem.
10:16:18 <xperia> it print allways aout the error message
10:16:20 <xperia> /usr/share/gnucash/guile-modules/gnucash/report/invoice.scm:549:74: While evaluating arguments to gnc-print-date in expression (gnc-print-date invoice-date):
10:16:21 <xperia> /usr/share/gnucash/guile-modules/gnucash/report/invoice.scm:549:74: Unbound variable: invoice-date
10:17:19 <Madon> warlord: Thank you for the reply.
10:17:19 <warlord> xperia: well, the problem there is that... you haven't defined invoice-date. Where are you defining it?
10:17:21 <Madon> Forgive me if my words are incongruous. Where can I find the source code cutecash?
10:17:34 <warlord> Madon: I have no clue. It's not my toy
10:19:16 <xperia> warlord: huh good question. i never have it till yet defined in gnucash. just copy pasted the line from the internet.
10:19:43 <warlord> xperia: this would be why the code isn't working out-of-context. it requires the context of the definition of invoice-date to work.
10:21:39 <xperia> but if i am not wrong this function must allready exist in gnucash. later in the invoice you do obtain the post date of the invoice like that
10:21:41 <xperia> (post-date (gncInvoiceGetDatePosted invoice))
10:21:43 <xperia> i could live also with the post date of the invoice if i could know guile a little better
10:22:10 <warlord> xperia: invoice-date is a variable.. you need to set it.
10:22:19 <warlord> xperia: guile is extremely simple.
10:22:27 <xperia> maybe you can tell me how to print out the post Date with string append
10:23:04 <warlord> xperia: it's the same syntax, just supply the proper date.
10:23:23 <xperia> huh i am experienced coder but must say have never seen such complicated stuff till yet. the problem is that you need to know gnucash and guile to solve a problem
10:23:28 <warlord> Your issue is that you're not providing the date in the procedure.
10:25:17 <warlord> xperia: that's true in any programming environment -- you need to know the language and the context to solve a problem.
10:30:02 *** benoitg has quit IRC
10:32:56 <xperia> warlord: yes if you do some heavy task like modifying the code base but i dont think it is neccessery to understand the full source code of the programm and the context
10:32:58 <xperia> if you want to change a template for the output. Most websites templates can easy be modifyed without to understand the inner working of the scripts and the context
10:33:00 <xperia> but for sure i am missing information. its probably a easy task but as total newbee in guile and gnucash its really hard!
10:33:02 <xperia> the syntax of guile is the worst thing i have seen till yet. a heavy amount of brackets "(" ")"
10:33:03 <xperia> have maked for a few lines in the text editor allready dozens of syntax errors. sure guile is powerfull but i would not recommend it to anyone to use it
10:33:42 <warlord> xperia: any decent programmer can learn guile's syntax in a day.
10:35:51 <xperia> btw. i have now this line here
10:35:52 <xperia> (gnc:html-table-append-row! table (list (string-append "Zurich " (gnc-print-date (post-date (gncInvoiceGetDatePosted invoice))) #\newline "<br><br>") ))
10:35:54 <xperia> and i am getting the error message => /usr/share/gnucash/guile-modules/gnucash/report/invoice.scm:549:90: In expression (post-date (gncInvoiceGetDatePosted invoice)):
10:35:56 <xperia> /usr/share/gnucash/guile-modules/gnucash/report/invoice.scm:549:90: Unbound variable: post-date
10:35:57 <xperia>
10:36:27 <warlord> post-date isnt a procedure
10:37:24 <xperia> so i will remove it then but i doubt that i will work then i guess
10:38:18 <xperia> warlord: will this work good ?
10:38:20 <xperia> (gnc:html-table-append-row! table (list (string-append "Zurich " (gnc-print-date (gncInvoiceGetDatePosted invoice)) #\newline "<br><br>") ))
10:38:52 <warlord> that looks fine, privided 'invoice' is in context
10:39:09 <xperia> warlord: okay will check it out
10:48:12 <xperia> warlord: something still does not work right. could you imagine what the problem could be here
10:48:14 <xperia> /usr/share/gnucash/guile-modules/gnucash/report/invoice.scm:550:90: In procedure gncInvoiceGetDatePosted in expression (gncInvoiceGetDatePosted invoice):
10:48:15 <xperia> /usr/share/gnucash/guile-modules/gnucash/report/invoice.scm:550:90: Wrong type argument in position 1: #<swig-pointer GncOwner * 84b44f0>
10:49:15 <warlord> you're passing an owner instead of an invoice. Where is 'invoice' defined/assigned?
10:50:06 <xperia> a few lines above in this line
10:50:07 <xperia> (define (make-client-table invoice owner)
10:50:16 <Madon> thank you for your help. Have a nice day
10:50:28 <xperia> okay will test something then
10:50:32 *** Madon has quit IRC
10:51:03 <warlord> xperia: that's not assigning the invoice -- that's building he client-table
10:51:21 <warlord> er, *defining* the make-client-table procedure.
10:52:19 <warlord> Provided you didn't change that line, too, then it should be fine. but if you did change that line then you have to adjust the callers, too.
11:05:09 <xperia> warlord: finally it works! huh cant belive that it is solved now
11:05:39 <warlord> :)
11:05:59 <xperia> what strange is that post-date returns as date "01.01.1970"
11:06:29 <xperia> that is the wrong date. the invoice was not created in 1970 for sure
11:06:46 <xperia> or better posted
11:12:49 <linas> 01.01.1970 is just the "unix start of epoch" it corresponds to 0 seconds
11:13:07 <warlord> Have you actually posted the invoice?
11:13:29 <linas> so something returned 0 as the time.
11:13:48 <warlord> right, the invoice post date will be 0 until the invoice is posted.
11:13:54 <warlord> So, xperia, did you actually post the invoice?
11:15:38 <warlord> linas: sometimes I wish we could just start over with C++ or some other improved object-oriented language..
11:16:17 <linas> Hmm No comment :-)
11:16:21 <warlord> lol
11:16:26 <xperia> dont understand what you mean with post. i booked it for sure. is it that not posting of a invoice?
11:16:44 <linas> I work on a different project, in C++ and everyone wants to re-write it in python
11:16:50 <warlord> xperia: Did you click on the "Post" button to
11:17:08 <warlord> create the actual transaction from the Invoice?
11:18:35 <xperia> dont get it. i have written all transaction in the creat invoice window and then hit the booking button.
11:18:37 <xperia> then a window appeared again asking for a date and the accounts where to be booked
11:19:17 <xperia> adjusted the date and clicked again okay. after this i was able to print the invoice
11:20:23 <linas> My impression is that once a project has more than, oh 10KLOC or 20KLOC, newcomers can no longer master it in a day or two, and so they want to re-write it in the their favorite flavor this month
11:22:05 <warlord> xperia: right. An invoice is just MetaData until you post it.
11:22:21 <warlord> linas: yeah, pretty much.
11:22:32 *** TommyT has joined #gnucash
11:23:17 <warlord> Once you post it though, as you noticed, then it works.
11:23:33 <warlord> (because it is no longer just meta-data, but actually applies to your accounts)
11:24:46 <xperia> warlord: well then it need to works. looks like the formatation of the date does not work right then
11:26:32 <xperia> or else invoice is empty maybe in this line here ?
11:26:34 <xperia> (gnc:html-table-append-row! table (list (string-append "Zurich " (gnc-print-date (gncInvoiceGetDatePosted invoice)) "<br>" )))
11:28:27 <warlord> xperia: i dont understand. you said it worked after you posted it..
11:30:31 <warlord> That scheme code appears correct. It would only print 1/1/1970 if invoice is not-posted.
11:30:44 <warlord> So, are you printing an unposted invoice?
11:30:54 <xperia> warlord: linas: best solution for a new gnucash would be to make it work on smart phones as a mobile web application.
11:30:56 <xperia> it exist several very good possibility to do this to run it under android chrome/linux, Iphone iOS windows mobile and so on...
11:30:58 <xperia> its called Mono Linux => http://www.mono-project.com/Main_Page
11:30:59 <xperia> Can it Highly reccomend it
11:31:27 <warlord> Mono is based on C#.. No thanks.
11:31:47 <xperia> i self code in mono linux and would not use anything else for professional work
11:31:49 <warlord> There are plenty of other ways to implement webapps
11:31:59 <linas> yeah, I thought even microsoft was turning against it ..
11:32:49 *** benoitg has joined #gnucash
11:33:05 <xperia> it was just updated btw with heavy amount of new features like improved hyper treading support and such stuff.
11:33:06 <xperia> worth a look for sure
11:35:06 <xperia> warlord: look from my understanding the invoice is posted as you you wanted to know. it is also printed now. the only thing that not work is my one and only line
11:35:08 <xperia> that has as date 1/1/1970 while all the other lines have all her dates right set even the ones that use like my line (gnc-print-date (gncInvoiceGetDatePosted invoice))
11:37:15 <xperia> so the date need to be printed right in my line but it does not for some very strange reason.
11:37:17 <xperia> i think the problem is mybe that invoice is empty in the contex i use it and that is why its printed as date 1/1/1970
11:37:18 <xperia> while a few lines later it is printed right :-(
11:39:28 *** TommyT has quit IRC
11:39:47 <xperia> in other contex it is printed right. i really dont get why invoice need to be such complicated. a simple perl script that parse a text file and replace
11:39:49 <xperia> VariableHolders would works for sure also and would be much more userfriendly and easy to understand.
11:42:21 <warlord> xperia: without the full context of the whole report I cannot answer your question. But I'm afraid I'm heading out in about 30s for the day.
11:42:56 <warlord> The invoice isn't complicated. It's actually quite simple. You'd be best off spending an hour or two studying guile syntax and then you'd understand what's going on.
11:43:15 <linas> s/guile/scheme/
11:43:34 <linas> guile is the name of the C/C++ binding for the scheme programming language
11:44:05 *** Jimraeh1 has quit IRC
11:44:49 <linas> or rather, tha name for the implementation/virtual machine that gnucash uses (there are many other implementatins of scheme)
11:45:48 <warlord> Yeah, guile is a scheme impl. So yeah, spend a few hours studying the scheme syntax. google for "MIT Scheme Reference".
11:46:18 <warlord> most likely the issue is that there is a variable override so that the 'invoice' symbol in your print context isn't the same as the 'invoice' symbol in another context that's working correctly.
11:46:41 <xperia> warlord: okay thanks a lot still for the help. wish you a good day
11:47:16 <linas> if you have the time, reading the MIT programming book will tech you things about programming that you didn't know that you didn't know.
11:47:20 <warlord> And good luck getting it working. You're almost there. Just need to make sure you pass in the correct invoice object.
11:49:48 <warlord> ttfn
11:53:46 <linas> bye tigger
12:02:28 *** arnotixe has joined #gnucash
12:06:42 *** aqua_ has joined #gnucash
12:24:58 *** jmd has joined #gnucash
12:40:22 *** aqua_ has quit IRC
13:19:33 *** gjanssens has joined #gnucash
13:19:34 *** gncbot sets mode: +o gjanssens
13:20:06 <gjanssens> linas: hi, are you available ?
13:20:06 <gncbot> gjanssens: Sent 1 day, 1 hour, and 48 minutes ago: <warlord> one reason the jp pdf isn't being built is because it's commented out in the makefile!
13:20:36 <gjanssens> warlord: it's commented out in the makefile because configure didn't find fop-ttfreader
13:21:11 <gjanssens> If fop-ttfreader and the Japanese fonts are present, the pdf target will be made available at configure time
13:31:53 <gjanssens> @tell linus I'm having some issues with the redirects. On my local test box they work flawlessly, but once committed to svn, it still doens't do anything on the server. Could it be there are still some local changes interfering with the svn update ?
13:31:53 <gncbot> gjanssens: The operation succeeded.
13:52:03 <xperia> warlord: i finally got it to work like i wanted. needed a little time to realise that the define lines in guile are afaik the function lines in c/c++ after this all the guile files maked mostly sense. Thanks a Lot!
13:52:36 *** xperia has quit IRC
14:07:25 *** Topcat has joined #gnucash
14:17:33 *** Topcat has quit IRC
14:17:56 *** Topcat has joined #gnucash
14:22:50 *** jmd has quit IRC
14:22:57 *** TommyT has joined #gnucash
14:24:04 *** Madon has joined #gnucash
14:28:07 *** Madon has quit IRC
14:40:07 *** TommyT has quit IRC
14:55:18 *** Topcat has quit IRC
14:55:41 *** Topcat has joined #gnucash
15:07:34 *** rijack has joined #gnucash
15:07:50 <rijack> what does SWIFT BIC mean?
15:15:53 *** Topcat has quit IRC
15:16:16 *** Topcat has joined #gnucash
15:18:08 <gjanssens> BIC stands for "Bank Identifier Code"
15:18:53 <gjanssens> It's used all over Europe for international payments (IBAN) or for international payments outside of Europe using SWIFT
15:19:08 <gjanssens> I'm not sure what SWIFT stands for exactly
16:04:51 *** rijack has quit IRC
16:14:14 <warlord> gjanssens: I wonder if an older version of fop had that in there (back in 2011) and then an update removed it?
16:40:49 *** Topcat has quit IRC
16:49:59 <gjanssens> warlord: no idea
16:50:59 <gjanssens> I noticed it is available in ubuntu, but I didn't note if this was a recent distro or old
16:51:13 <gjanssens> Anyway, time to go.
16:51:19 *** gjanssens is now known as gjanssens-afk
16:53:32 <warlord> gjanssens-afk: okay, TTYL. FYI, gnucash-nl is set up; I emailed you and otto the password to configure the list metadata.
17:17:18 <linas> here now
17:20:14 <linas> gjanssens-afk: more details please. Perhaps there's a file conflict; I added those files by hand
17:32:54 *** fuzzybunny69y has joined #gnucash
17:37:30 *** fuzzybunny69y has quit IRC
18:33:28 *** benoitg has quit IRC
18:54:53 *** Jimraeh1 has joined #gnucash
20:17:15 *** sorush20 has joined #gnucash
20:32:39 *** benoitg has joined #gnucash
20:34:09 *** fuzzybunny69y has joined #gnucash
20:36:12 *** benoitg has quit IRC
20:40:47 *** benoitg has joined #gnucash
20:47:07 *** sorush20 has quit IRC
20:50:42 *** benoitg has quit IRC
20:54:09 <warlord> linas, gjanssens-afk -- there is no SVN conflict. the website is at the current SVN revision.
22:03:01 *** fuzzybunny69y has quit IRC
22:59:48 *** fuzzybunny69y has joined #gnucash