AOLserver Chat Logs

2007/03/15

IRC [00:58] *** magic_user joined the chat.
IRC [00:58] <magic_user> I love aolserver!!
IRC [01:07] *** holycow joined the chat.
IRC [01:35] *** Dossy joined the chat.
IRC [01:38] <magic_user> wow all asleep
IRC [01:54] <holycow> .... zzzz ....
IRC [02:06] <magic_user> heh
IRC [02:51] <magic_user> magic_user: [expr find /home/gavin -type s -size 0]
IRC [02:51] <magic_user> (11:47:19 PM) magic_user: why is this wrongo
IRC [02:58] <tekbasse> s/expr/exec/
IRC [03:01] <magic_user> ok got it
IRC [03:01] <holycow> hey tekbasse
IRC [03:01] <magic_user> now I wote a little adp page
IRC [03:01] <magic_user> to do a df on my server
IRC [03:01] <tekbasse> hey holycow
IRC [03:01] <magic_user> but it returns and ugly string
IRC [03:02] <magic_user> all on one line not nice the way df is supposed to look from the command line
IRC [03:02] <magic_user> how do i make ti look nice?
IRC [03:02] <magic_user> it
IRC [03:02] <tekbasse> try wrapping the output in a pre tag
IRC [03:02] <tekbasse> <pre>output </pre>
IRC [03:05] <magic_user> hmm!
IRC [03:05] <magic_user> ok
IRC [03:06] <magic_user> works GREAT!!!
IRC [03:07] <magic_user> web programming rules
IRC [03:07] <tekbasse> =)
IRC [03:08] <magic_user> you know its not quite perfect tho
IRC [03:08] <magic_user> in the adp I put a label Drive usage:
IRC [03:08] <magic_user> so the top line of the output is pushed to the right by that text
IRC [03:09] <magic_user> I think I need to insert a (carrige return?)
IRC [03:10] <tekbasse> yep
IRC [03:11] <magic_user> heh i used another pre around the text and now it has title blank line then text
IRC [03:11] <magic_user> heh
IRC [03:11] <magic_user> not sure I want the blank line
IRC [03:11] <magic_user> hmmmmm
IRC [03:12] <tekbasse> new to html and tcl eh?
IRC [03:12] <magic_user> yepers
IRC [03:12] <magic_user> I liek aolserver
IRC [03:13] <magic_user> like
IRC [03:13] <magic_user> :)
IRC [03:13] <magic_user> and tcl so far
IRC [03:13] <magic_user> :)
IRC [03:13] <tekbasse> there's a really nice online tcl/aolserver intro that you might find helpful.. 1 min
IRC [03:14] <tekbasse> http://philip.greenspun.com/tcl/
IRC [03:15] <magic_user> hah! I have the bookmark in me browser!!
IRC [03:15] <magic_user> but look at this on page 1
IRC [03:16] <magic_user> This is like Lisp, except that procedures invoked at top level need not be surrounded by delimeters. Procedures invoked from within other procedure calls must be surrounded by [] instead of ():
IRC [03:16] <magic_user> set ten_factorial [factorial 10]
IRC [03:16] <magic_user> set checking_account_balance [expr 25 + 34 + 86]
IRC [03:16] <magic_user> puts "If you're so smart, why aren't you rich like Bill Gates?"
IRC [03:16] <magic_user> that factorial bit bombs!
IRC [03:18] <tekbasse> that's because factorial has not been defined as a proc yet
IRC [03:18] <tekbasse> that exampe is to show how similar tcl and lisp are in syntax
IRC [03:26] <magic_user> ok
IRC [03:26] <magic_user> so i shouldnt freak out
IRC [03:26] <magic_user> ok awesome
IRC [03:26] <magic_user> thanks man
IRC [03:27] <tekbasse> sure, np, welcome to aolserver and tcl.. it does make web programming fun ! =)
IRC [03:27] <magic_user> I think I may never need java or perl
IRC [03:28] <tekbasse> bingo! Those are 2 reasons I'm using them =)
IRC [03:28] <magic_user> crap in vi
IRC [03:28] <magic_user> I have something on the line below
IRC [03:28] <magic_user> I want to do something to move ti from below onto the first line
IRC [03:28] <magic_user> hm
IRC [03:29] <magic_user> it
IRC [03:30] <magic_user> used pate in x
IRC [03:30] <magic_user> heh
IRC [03:30] <magic_user> hm
IRC [03:30] <magic_user> ok
IRC [03:30] <magic_user> now instead of that nested pre
IRC [03:30] <magic_user> and I throw a \n in there
IRC [03:30] <magic_user> to push the output of the df to the next line but not have a blank line
IRC [03:30] <tekbasse> yep
IRC [03:31] <magic_user> \r
IRC [03:31] <magic_user> oh crap
IRC [03:31] <magic_user> is it \r
IRC [03:31] <magic_user> do I have to quote that or how do I place it in the html?
IRC [03:32] <tekbasse> use it as an escaped character, like "blah blah blah \nthis is the secondline"
IRC [03:32] <magic_user> <%
IRC [03:32] <magic_user> set df [exec df -h]
IRC [03:32] <magic_user> %>
IRC [03:32] <magic_user> <html><body>
IRC [03:32] <magic_user> <pre>
IRC [03:32] <magic_user> Drive usage: <%= $df %>
IRC [03:32] <magic_user> </pre>
IRC [03:33] <magic_user> </body><html>
IRC [03:33] <magic_user> here is my df.adp file
IRC [03:34] <magic_user> oh is there a html tag like </n> n stuff
IRC [03:34] <magic_user> I can throw in there?
IRC [03:35] <tekbasse> try: Drive usage:\n <%=$df %>
IRC [03:36] <tekbasse> if that doesn't work, put a <br> tag in place of \n, since the context is in html (not tcl)
IRC [03:39] <magic_user> <br> alone ok
IRC [03:41] <holycow> http://programming.reddit.com/info/1a73t/comments
IRC [03:41] <holycow> bets title EVER
IRC [03:41] <holycow> best even
IRC [03:42] <magic_user> the <br> worked
IRC [03:43] <tekbasse> 'k, bbl good luck with it!
IRC [03:43] <tekbasse> it = tcl for web nerds
IRC [03:45] <magic_user> :)
IRC [03:45] <magic_user> :-D
IRC [03:58] *** magic_user parted the chat.
IRC [04:06] *** holycow parted the chat.
IRC [07:30] *** partymola joined the chat.
IRC [09:47] *** dagu1 joined the chat.
IRC [09:49] <dagu1> Has anyone been successful in running nsjava under aolserver45?
IRC [09:50] <partymola> i've not tried
IRC [09:50] <dagu1> have you been successful under any version?
IRC [09:50] <partymola> i've not tried nsjava at all :)=
IRC [09:51] <dagu1> Warning: modload: could not load /usr/local/aolserver/bin/libnsjava.so: /usr/local/aolserver/bin/libnsjava.so: undefined symbol: NsTclDbCmd
IRC [09:51] <dagu1> how 'bout nsjk?
IRC [10:03] <partymola> it seens it has not been linked correctly
IRC [10:03] <partymola> it seems*
IRC [10:04] <partymola> dagu1: if i were you, i'd contact nsjava mantainer and tell him that it's not being built correctly, and give him the line with the undefined symbol error, and explain how you built it
IRC [10:06] <dagu1> ok, thanks.
IRC [13:19] *** lurg joined the chat.
IRC [13:20] <lurg> hi there...
IRC [13:20] <lurg> did some one get to work nsmysql with mysql5?
IRC [13:21] <lurg> I am getting that weird "undefined symbol: mysql_field_count" error in my server logs
IRC [13:21] <lurg> :(
IRC [14:16] *** holycow joined the chat.
IRC [15:15] <lurg> ok...maybe someone could really answer this question then
IRC [15:17] <lurg> how aolserver/nsdb/nsmysql works together?.. meaning, when aolserver starts does it automatically opens db connectoin? or it does this only after the first request Ns_DbPoolGetHandle request? or at what point it opens the connection? is it a persistent connection?
IRC [16:05] *** dagu1 parted the chat.
IRC [16:21] *** holycow parted the chat.
IRC [16:30] *** daguz joined the chat.
IRC [16:35] *** holycow joined the chat.
IRC [16:38] *** daguz parted the chat.
IRC [16:39] *** daguz joined the chat.
IRC [17:21] *** lurg parted the chat.
IRC [19:15] <partymola> daguz: were you able to fix the problem with nsjava?