2021-11-01 GnuCash IRC logs

02:01:01 *** Mechtilde has joined #gnucash
02:05:49 *** fell has quit IRC
02:07:08 *** fell has joined #gnucash
02:07:09 *** ChanServ sets mode: +o fell
02:13:09 *** sbluhm has joined #gnucash
02:16:45 *** frakturfreak2 has quit IRC
02:31:12 *** frakturfreak2 has joined #gnucash
03:48:20 *** Hamaryns has joined #gnucash
03:48:20 *** ChanServ sets mode: +v Hamaryns
03:58:39 *** Mechtilde has quit IRC
03:59:36 *** Mechtilde has joined #gnucash
04:07:31 *** Mechtilde has quit IRC
04:08:02 *** Mechtilde has joined #gnucash
05:36:19 *** Hamaryns has quit IRC
05:38:21 *** Hamaryns has joined #gnucash
05:38:21 *** ChanServ sets mode: +v Hamaryns
05:40:14 *** Mechtilde has quit IRC
05:44:02 *** Mechtilde has joined #gnucash
05:54:20 *** gjanssens has joined #gnucash
05:54:20 *** ChanServ sets mode: +o gjanssens
06:09:48 *** User_ has joined #gnucash
07:40:23 *** KipITOne has quit IRC
07:42:49 *** KipITOne has joined #gnucash
07:42:50 *** ChanServ sets mode: +v KipITOne
07:45:41 *** Hamaryns has quit IRC
08:18:06 *** Pegasus_RPG has joined #gnucash
08:26:22 <chris> std::vector ftw
08:35:16 *** Pegasus_RPG has quit IRC
08:52:05 *** Antisoche has quit IRC
08:54:15 *** Antisoche has joined #gnucash
09:09:14 <chris> maybe not
09:15:06 *** raeburn has quit IRC
09:21:04 *** warlord has quit IRC
10:20:20 <chris> glib's GArray = 115ms, cpp's vector = 120ms :-/
10:29:48 *** jervin has joined #gnucash
10:35:33 *** sbluhm has quit IRC
10:49:28 *** bertbob has quit IRC
11:07:11 *** bertbob has joined #gnucash
11:07:11 *** ChanServ sets mode: +v bertbob
11:10:12 *** bertbob has quit IRC
11:11:38 *** Hamaryns has joined #gnucash
11:11:38 *** ChanServ sets mode: +v Hamaryns
11:15:02 *** ArtGravity has joined #gnucash
11:15:02 *** ChanServ sets mode: +v ArtGravity
11:33:47 *** bertbob has joined #gnucash
11:33:47 *** ChanServ sets mode: +v bertbob
11:37:55 *** Mechtilde has quit IRC
11:50:55 *** Mechtilde has joined #gnucash
11:51:44 *** bertbob has quit IRC
12:01:55 *** Mechtilde has quit IRC
12:04:13 *** Mechtilde has joined #gnucash
12:13:57 *** Mechtilde has quit IRC
12:16:34 *** Mechtilde has joined #gnucash
12:20:37 *** sbluhm has joined #gnucash
12:20:56 *** Mechtilde has quit IRC
12:23:28 *** Mechtilde has joined #gnucash
12:24:43 *** Hamaryns has quit IRC
12:33:52 *** guak has joined #gnucash
12:40:17 *** bertbob has joined #gnucash
12:40:17 *** ChanServ sets mode: +v bertbob
12:59:07 *** finster has joined #gnucash
12:59:08 *** ChanServ sets mode: +v finster
13:03:03 <finster> hello. i'm using a pretty recent gnucash (4.8a) on macos 11.6. I'm trying to open a 2 year old gnucash file (sqlite format) from a backup in order to look up some old data. Can I somehow avoid that gnucash applies 2 years worth of scheduled transactions upon opening that file?
13:03:11 <finster> So, basically open it in readonly mode
13:04:08 *** sbluhm has quit IRC
13:04:51 <finster> Setting the file permissions of the database file to 0x0440 might work, but I figure Gnucash has an application-specific way for that
13:05:22 *** raeburn has joined #gnucash
13:49:16 *** sbluhm has joined #gnucash
13:50:25 *** Mechtilde has quit IRC
14:10:14 *** jervin has quit IRC
14:25:08 *** Mechtilde has joined #gnucash
14:41:25 *** Mechtilde has quit IRC
14:44:46 *** ericdm has quit IRC
14:45:07 *** ericdm has joined #gnucash
14:56:18 *** Mechtilde has joined #gnucash
14:56:22 *** kcin has joined #gnucash
14:56:53 <jralls> finster, the only way to get a readonly is for the database to be locked by having it open in another session or crashing GnuCash. File permissions might work but you should try on a copy of the file so that if it doesn't work you'll still have a clean snapshot.
14:57:58 <jralls> chris, no surprise, they work similarly. The speed improvement for either would be over GList.
15:14:25 *** Mechtilde has quit IRC
15:15:30 *** sbluhm has quit IRC
15:33:37 <finster> jralls: ok, thanks for the input. i guess i could also write a fake entry into the gnc lock table so gnucash thinks the book is also in use?
15:36:56 *** Mechtilde has joined #gnucash
15:42:58 <jralls> You could.
15:45:20 <finster> yup, just tested it. works as expected. thanks1
15:46:55 *** NoobAlice has joined #gnucash
15:49:44 *** finster has quit IRC
16:03:25 *** Mechtilde has quit IRC
16:05:31 *** Mechtilde has joined #gnucash
16:16:22 *** frakturfreak2 has quit IRC
16:29:30 *** warlord has joined #gnucash
16:38:18 *** sbluhm has joined #gnucash
17:04:45 *** CharlesIC has joined #gnucash
17:18:25 *** Mechtilde has quit IRC
17:39:44 *** gjanssens has quit IRC
17:40:38 *** User_ has quit IRC
18:38:38 *** storyjesse has joined #gnucash
19:02:14 *** Simon has quit IRC
19:02:19 *** sbluhm has quit IRC
19:03:59 *** Simon has joined #gnucash
19:04:00 *** ChanServ sets mode: +v Simon
19:10:11 *** CharlesIC has quit IRC
19:48:29 *** David has quit IRC
19:48:48 *** David has joined #gnucash
19:50:30 *** guak has quit IRC
20:07:13 *** storyjesse has quit IRC
20:27:24 <chris> would C++ allow such hacks like memcpy (vec1, vec2, sizeof(vec1)) whereby vec2 is a new vector, 1 element larger than vec1?
20:28:31 <Simon> I don't see any reason why not but isn't std::vector implemented as multiple large arrays already?
20:28:52 <Simon> but you can't do that memcpy on the vector object itself, only an internal array
20:30:20 *** David has quit IRC
20:30:51 *** David has joined #gnucash
20:31:13 * chris dunno just starting this cpp thing
20:31:50 <chris> vec1={1,2,3,4}; vector v2.reserve (v1.size() + 1); and I wanna clone v1 onto v2
20:32:44 <chris> after cloning, I'd do vec2.emplace_back (5)
20:56:39 *** ArtGravity has quit IRC
21:03:19 *** KipITOne-GTBS has joined #gnucash
21:03:48 *** KipITOne has quit IRC
21:32:21 *** David has quit IRC
21:32:42 *** David has joined #gnucash
21:46:05 *** Mechtilde has joined #gnucash
21:49:09 *** Mechtilde has quit IRC
22:30:51 *** Mechtilde has joined #gnucash
22:33:54 *** Mechtilde has quit IRC
22:52:37 *** joo has quit IRC
23:07:25 *** joo has joined #gnucash
23:07:25 *** ChanServ sets mode: +v joo
23:09:53 *** Mechtilde has joined #gnucash
23:12:55 *** Mechtilde has quit IRC
23:15:17 *** Mechtilde has joined #gnucash
23:18:18 *** Mechtilde has quit IRC
23:23:19 *** David has quit IRC
23:23:40 *** David has joined #gnucash
23:41:53 *** Mechtilde has joined #gnucash
23:44:54 *** Mechtilde has quit IRC