2009-09-05 GnuCash IRC logs

00:00:29 *** abhinav has joined #gnucash
00:15:41 *** delaman has quit IRC
02:04:14 *** RobotCow has joined #gnucash
02:17:22 *** warlord has joined #gnucash
02:17:23 *** gncbot sets mode: +o warlord
02:17:40 *** mark1 has quit IRC
02:24:59 *** abhinav has quit IRC
02:33:36 *** abhinav has joined #gnucash
03:28:23 *** warlord is now known as warlord-afk
04:20:29 *** ErKa has joined #gnucash
05:12:13 *** RobotCow has quit IRC
05:22:03 *** cortana has joined #gnucash
06:03:15 <Jimraehl> It doesn't look like last night's (Sept 4/5) Windows build was successful. No new executable and no log.
06:51:23 *** zamba has quit IRC
07:01:14 *** davidw has joined #gnucash
07:01:36 <davidw> hi - any idea why gnucash is truncating descriptions in imports?
07:01:49 <davidw> (version 2.2.6)
07:24:21 <davidw> hrm... it does seem to save the information, it just truncates it for the description
07:24:26 *** davidw has quit IRC
07:39:28 *** ErKa has quit IRC
08:01:41 *** adb has joined #gnucash
08:04:35 *** abhinav has quit IRC
08:23:46 *** abhinav has joined #gnucash
08:45:31 *** rockfx02 has joined #gnucash
08:52:56 *** Jimraehl has left #gnucash
09:01:46 *** adb has quit IRC
09:02:03 *** JimRaehl2 has joined #gnucash
09:05:20 *** JimRaehl2 has left #gnucash
09:08:30 *** JimRaehl2 has joined #gnucash
09:48:52 *** rockfx02 has left #gnucash
10:01:22 *** abhinav has quit IRC
10:02:00 *** abhinav has joined #gnucash
10:26:41 *** abhinav has quit IRC
10:26:57 *** abhinav has joined #gnucash
10:30:11 *** abhinav has quit IRC
11:44:45 *** XiXaQ has joined #gnucash
11:49:46 *** Zoolooc_ has joined #gnucash
12:25:25 *** mark1 has joined #gnucash
12:40:10 *** rockfx02 has joined #gnucash
13:00:00 <rockfx02> hello
13:10:02 <rockfx02> man it's always quiet in here...
13:10:34 *** warlord-afk is now known as warlord
13:10:38 <warlord> almost TOO quiet..
13:10:47 <rockfx02> shh.. you might disturb them
13:10:49 <warlord> Like they're all just ready to pounce as SOON as you ask a question!
13:10:53 <rockfx02> lol
13:11:30 <rockfx02> well, so i submitted a patch to the mailing list and applicable bug in bugzilla
13:11:34 <rockfx02> anything else I need to do?
13:11:39 <rockfx02> http://bugzilla.gnome.org/show_bug.cgi?id=107929
13:12:08 <rockfx02> would be a nice feature to see in the next stable release :D
13:13:04 <warlord> Just be patient.
13:13:13 <warlord> dev cycles are few and scarce.
13:13:22 <warlord> but they'll get to it eventually.
13:13:39 <rockfx02> ok cool
13:14:10 <rockfx02> yeah the only other thing my patch could really use is having a certain part of it put into another, separate function but i was having trouble getting it working since I don't know C very well yet
13:14:55 <rockfx02> so there's two areas with duplicated code, but for all intents and purposes it works
13:16:36 <warlord> how much duplicated code?
13:19:02 <rockfx02> ~56 lines or so
13:19:18 <warlord> oh, that much should be refactored..
13:19:35 <rockfx02> which could easily be put into a function that would return a gnu_numeric variable
13:20:35 <rockfx02> but I was having trouble with it since, as I said, I don't know C very well and when I tried making a function out of it i was getting compiler errors
13:21:11 <rockfx02> so I figured it would be best to wait for someone who knows what they're doing :P
13:22:12 <warlord> what were the errors you got?
13:22:28 <warlord> (could you pastebin the errors?)
13:22:44 <rockfx02> hrm i don't have a copy of them, i could try again though
13:23:01 <warlord> For 56 lines of duplicated code you should definitely build a function.
13:23:18 <rockfx02> I know at first I was getting an error about not having a prototype
13:23:35 <warlord> Make the function static.
13:23:43 <warlord> (if it's only used in one file in two places)
13:23:52 <rockfx02> so I tried creating a prototype in the .h file but then I was getting errors about it expecting one of a number different things ('=', semicolons, etc)
13:23:55 <warlord> then you dont need a prototype
13:24:17 <rockfx02> ah ok so "static gnu-numeric" then the function on the line below
13:24:18 <rockfx02> i will try that
13:24:32 <rockfx02> speaking of, do you have a recommendation for a good C reference guide?
13:25:11 <rockfx02> I started reading through Beej's C programming guide, but it's not a very good reference because it certainly seems to be missing a lot of stuff and afaik the document never was actually completely finished by Beej (according to his/her website)
13:28:14 <warlord> Right, and make sure you do this before the usages of the function.
13:28:39 <warlord> So if you have functions a() and b() that both use function c(), make sure you put c() before a() and b() in the source file.
13:28:47 <rockfx02> right right
13:28:47 <warlord> then if c() is static you don't need a prototype.
13:28:54 <rockfx02> ok
13:29:10 <warlord> unfortunately I dont know a good C reference. Maybe K&R?
13:29:14 <warlord> but that's like 20 years old.
13:29:40 <rockfx02> alright lets see if i get any errors
13:30:33 <warlord> k.
13:30:43 <warlord> i need to take off really soon to head to the airport.
13:30:48 <rockfx02> ok
13:31:26 <rockfx02> i'm just happy my patch is working, so if this doesn't work I can figure out getting the function working properly later :)
13:32:03 <rockfx02> oh also, you can tell me your opinion, i might make a post to the mailling list
13:32:23 <rockfx02> is there any desire to have a running balance for single account registers calculated at runtime?
13:32:43 <rockfx02> the reg run balance funciton i created should be easy to modify for single account registers as well
13:33:00 <rockfx02> split-register-model.c:59: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gnc_split_register_get_rbaln’
13:33:21 <rockfx02> static gnu_numeric gnc_split_register_get_rbaln (VirtualLocation virt_loc, gpointer user_data)
13:33:41 <warlord> Right, and what's the next line after that?
13:33:48 <rockfx02> {
13:33:53 <rockfx02> SRInfo *info = gnc_split_register_get_info (reg);
13:33:59 <warlord> Okay, and what's the line just BEFORE that?
13:34:41 <rockfx02> http://pastebin.com/m7b0bda01
13:35:33 <warlord> And it's complaining about line 38?
13:36:12 <rockfx02> it's complaining about line 59 (my function)
13:36:28 <rockfx02> oh and...
13:36:35 <warlord> What's line 59 in your past?
13:36:40 <warlord> paste
13:36:41 <rockfx02> split-register-model.c:465: error: implicit declaration of function ‘gnc_split_register_get_rbaln’
13:36:41 <rockfx02> split-register-model.c:465: error: incompatible types in assignment
13:36:46 <rockfx02> oh in my paste sorry
13:37:01 <rockfx02> so yeah it's line 38 in the paste
13:37:14 <rockfx02> I was looking in the original source :P
13:38:03 <warlord> Hmm, are gnc_numeric and VirtualLocation defined types?
13:38:11 <rockfx02> oh I might see my issue, let me try something
13:38:17 <warlord> (sorry, i really have to go now)
13:38:22 <rockfx02> i have 'return black' in the function which is wrong
13:38:27 <rockfx02> should be in a different location
13:38:42 <rockfx02> OK, well thanks for the help, I'll give it a go and if I still have issues I know where to find you
13:38:45 <rockfx02> have a good trip
13:38:46 <warlord> Good luck. I'll be back online late tonight, and hopefuly others can help you.
13:38:48 <warlord> Thanks.
13:39:08 *** mark1 has left #gnucash
13:39:22 <warlord> bye
13:39:30 *** warlord has quit IRC
13:44:48 *** ErKa has joined #gnucash
13:53:58 <rockfx02> haha sweet victory
13:58:51 *** mark1 has joined #gnucash
14:46:21 *** ErKa has quit IRC
14:48:08 *** JimRaehl2 has left #gnucash
14:51:18 *** ErKa has joined #gnucash
15:12:08 *** Jimraehl has joined #gnucash
15:26:37 *** rockfx02 has left #gnucash
15:26:53 *** XiXaQ has quit IRC
15:42:10 *** XiXaQ has joined #gnucash
16:16:13 *** XiXaQ has quit IRC
16:35:31 *** XiXaQ has joined #gnucash
16:37:31 *** sjc has joined #gnucash
16:39:11 *** ErKa has quit IRC
16:48:45 *** XiXaQ has quit IRC
17:21:25 *** kling0n has joined #gnucash
17:31:11 *** franck3d has joined #gnucash
17:32:11 <franck3d> looking for help moving a gnucash install from one version of windows to another!
17:38:22 *** XiXaQ has joined #gnucash
18:25:56 *** kling0n has quit IRC
18:34:51 *** goodger has quit IRC
18:35:03 *** Zoolooc_ has quit IRC
18:50:23 *** goodger has joined #gnucash
19:08:20 *** franck3d has quit IRC
19:18:05 *** cortana has quit IRC
20:43:15 *** sjc has quit IRC
22:35:33 *** Jimraehl has left #gnucash
22:51:16 *** JimRaehl2 has joined #gnucash
23:13:52 *** JimRaehl2 has left #gnucash
23:14:12 *** Jimraehl has joined #gnucash
23:35:33 *** goodger has quit IRC
23:37:28 *** goodger has joined #gnucash