AOLserver Chat Logs

2007/02/23

IRC [02:22] *** Chunky_Monkey joined the chat.
IRC [02:22] *** Chunky_Monkey parted the chat.
IRC [06:45] *** holycow parted the chat.
IRC [07:10] *** holycow joined the chat.
IRC [09:11] <Dossy> BTW, I just committed "nsjsapi" that I'd been sitting on for ages. :)
IRC [09:11] <Dossy> Not sure if anyone else is up for playing with and/or hacking on it.
IRC [10:08] <Dossy> http://dossy.org/archives/000407.html
IRC [10:08] <Dossy> quick blog entry announcing nsjsapi. :)
IRC [10:57] <daguz> I still cannot install nspostgres-4.0. I am following all the directions that I can (from the xowiki page). Here is the problem: I still get this " ranlib: '/usr/local/aolserver45//lib/libnspostgres.a': No such file"
IRC [10:58] <daguz> With this command "make install POSTGRES=LSB ACS=1 AOLSERVER=/usr/local/aolserver45/"
IRC [10:59] <daguz> Do I even need libsnpostgres.a? None of my other servers seem to have it.
IRC [11:00] <Dossy> not for runtime, no
IRC [11:00] <daguz> And I tried to export my LD_LIBRARY_PATH for postgres . Since it was installed as an rpm, I am not sure if I should use /usr/lib/postgresql or /usr/include/pgsql? But I have tried both.
IRC [11:01] <daguz> well, ok if I don't need it... :)
IRC [11:22] <Dossy> :)
IRC [13:58] *** daguz parted the chat.
IRC [15:45] * jim 's ears detect some nspostgres talk :)
IRC [15:46] <jim> damn, its over
IRC [16:20] <Dossy> too slow. :)
IRC [16:24] <jim> much :)
IRC [16:24] <Dossy> wow, achewood is bizarre.
IRC [16:24] <jim> but I've seen him around #openacs
IRC [16:27] <Dossy> huh? sorry, that last line went to the wrong window.
IRC [18:23] <jim> Dossy: you here for a few mins?
IRC [18:23] <jim> here's what I'm thinking... I want to have a debug mask that comes from a set of names
IRC [18:24] <jim> at top of aolserver config you'd do something like...
IRC [18:25] <jim> set debug [make_debug_mask {showsql db_verbose tcl_errors stack_frames_too}]
IRC [18:25] <jim> and then
IRC [18:25] <Dossy> ee, yikes.
IRC [18:26] <jim> set db_debug [expr $debug && db_mask]
IRC [18:26] <Dossy> Something about that just smells awful.
IRC [18:27] <jim> so... the alternative: set debug $show_me_EVERYTHING_or_dont
IRC [18:27] <Dossy> Exactly what are you trying to accomplish?
IRC [18:27] <jim> to be able to turn debug verbosity on and off in specific areas
IRC [18:28] <jim> so let me ask you this... that verbose flag in the pool definitions
IRC [18:28] <jim> can that be a mask?
IRC [18:29] <jim> I want to be able to shorten the db messages to as little as possible, and I've identified two different areas
IRC [18:30] <jim> (1) I want to be able to turn on and off the thing I just added
IRC [18:30] <jim> and
IRC [18:30] <Dossy> I don't think so--it's on/off boolean, isn't it?
IRC [18:30] <jim> (2) I want to be able to -separately- turn on and off sql display
IRC [18:30] <jim> well it is an "int"
IRC [18:30] <Dossy> Uh, are you sure?
IRC [18:30] <Dossy> How does the int get set. :)
IRC [18:31] <jim> meant as a boolean, wide enough for an int
IRC [18:31] <jim> pretty sure
IRC [18:31] <Dossy> if (!Ns_ConfigGetBool(path, "verbose", &poolPtr->fVerbose)) {
IRC [18:31] <Dossy> poolPtr->fVerbose = 0;
IRC [18:31] <Dossy> }
IRC [18:31] <jim> if that's not the case, can I add a debug mask int to that struct?
IRC [18:32] <jim> so at least we know it's -meant- as a bool
IRC [18:33] <jim> given that... can I add a debug mask to both the pool and handle structs?
IRC [18:33] <Dossy> It's probably a bad idea.
IRC [18:33] <Dossy> Again, I'm trying to understand /what/ you're trying to accomplish.
IRC [18:33] <Dossy> Can you not just switch on the verbose boolean?
IRC [18:33] <jim> I could, yes.
IRC [18:33] <jim> but what does that mean?
IRC [18:34] <Dossy> Hhu?
IRC [18:34] <Dossy> Huh?
IRC [18:34] <Dossy> How can you answer "yes" to a question you don't understand?
IRC [18:35] <jim> if it's on, do I add any extra info other than a simple error message which includes maybe state of the handle, sql used, number of rows gotten so far, number left to get, whether we can get any rows, etc etc
IRC [18:35] <jim> and if it's off, I just say "something happened"?
IRC [18:35] <Dossy> How about just condensing the message.
IRC [18:36] <Dossy> as opposed to being, well, verbose.
IRC [18:36] <Dossy> being terse doesn't mean "be vague" it just means--be terse!
IRC [18:37] <jim> but if that's the case, what would be the use of a verbose response?
IRC [18:37] <jim> if it's no less info, just shorter
IRC [18:37] <Dossy> Think: error code, vs. error description.
IRC [18:38] <Dossy> Terse is the error code (an integer, say). Verbose would be the code and its textual description concatenated together.
IRC [18:38] <Dossy> Do you see the difference?
IRC [18:38] <jim> sure
IRC [18:38] <Dossy> OK.
IRC [18:39] <jim> it's not that I don't understand; I do. but I need to know -intent-
IRC [18:39] <Dossy> Intent: less vs. more noise.
IRC [18:41] <jim> so then let's find out this:
IRC [18:41] <jim> sql only on verbose?
IRC [18:41] <jim> and verbose implies YES show sql?
IRC [18:42] <Dossy> if (!Ns_ConfigGetBool(path, "logsqlerrors", &poolPtr->fVerboseError)) {
IRC [18:42] <Dossy> poolPtr->fVerboseError = 0;
IRC [18:42] <Dossy> }
IRC [18:42] <Dossy> I might only log the SQL when logsqlerrors = true.
IRC [18:42] <Dossy> Maybe.
IRC [18:42] <Dossy> actually, no, just on verbose=true.
IRC [18:43] <jim> howbout: verbose AND logsqlerrors
IRC [18:44] <jim> also, where does logsqlerrors come from in the config file?
IRC [18:44] <Dossy> same place as verbose and the other config parameters.
IRC [18:44] <jim> ok, so it's in the pool definition
IRC [18:44] <jim> yes? :)
IRC [18:45] <Dossy> yes.
IRC [18:46] <jim> ok... it's good I'm talking to you now... will reduce the number of commits
IRC [18:48] <Dossy> heh
IRC [19:00] <jim> can I browse the set of all possible config settings?
IRC [19:00] <jim> and would that show the sections too
IRC [19:02] <Dossy> Sure. It's all in the source.
IRC [19:12] <jim> is it distributed among the entire source? or is it all in one place? either way... is there a system whereby config parameters "created" by way of code to read them
IRC [19:12] <jim> could be read into a document a la JavaDoc?
IRC [19:17] <jim> openacs has a similar arrangement for its api docs... maybe we can arrange something like that for config params
IRC [19:19] <Dossy> Sure. Tom Jackson I think went through the effort of enumerating a lot of the config settings, at one point. Google might know.
IRC [19:19] <Dossy> google for tom jackson aolserver config
IRC [19:19] <Dossy> hmm.
IRC [19:19] <Dossy> google for zmbh.com' aolserver config
IRC [19:19] <Dossy> google for zmbh.com aolserver config
IRC [19:19] <Dossy> wow, is the bot broken? feh
IRC [19:19] <Dossy> google for google
IRC [19:19] <Dossy> yeah. let me fix. pfeh.
IRC [19:24] <Dossy> google for tom jackson aolserver config
IRC [19:25] <Dossy> Hm.
IRC [19:25] <Dossy> That's a start, at least.
IRC [19:27] <jim> looks like zmbh.com domain was hijacked or allowed to expire
IRC [19:35] <Dossy> yeah. i think expired.
IRC [19:35] <Dossy> poor tom.
IRC [19:35] * Dossy shrugs
IRC [19:44] *** MrWGW- joined the chat.
IRC [19:57] <Dossy> who is MrWGW- ?
IRC [19:58] <Dossy> ok, bbl. need to go to Best Borrow before they close.
IRC [20:01] <MrWGW-> good afternoon
IRC [20:01] <MrWGW-> I'm having a devil of a time setting up AOLServer
IRC [21:11] <jim> what do you want to do
IRC [21:11] <jim> there's usually a sample config file to get you started
IRC [21:13] <jim> except I'm having trouble finding it
IRC [21:13] <jim> :)
IRC [21:19] <Dossy> what OS/platform are you on, MrWGW-?
IRC [21:47] <jim> maybe solaris or *bsd (given the channels he's on)
IRC [22:02] <Dossy> yeah.
IRC [22:02] <Dossy> I wonder if he's having a hard time compiling it, vs. configuring it.