00:02:14 abbaJ has joined #openacs 00:44:18 any of you guys know anything about algorithm efficiency? 00:45:49 somewhat 00:45:56 * markd2 is an O(n^2) algorithm 00:46:03 heh 00:46:11 I think I know the solution 00:46:18 I can't express it in words or code though 00:46:36 The problem is as follows: 00:47:00 We have 2 nested for loops and inside each we do an algebratic computation 00:47:34 The outer loop runs n-k times and the inner loop runs (n-k)(k-1) times 00:47:59 For a total of (n-k)(k-1)+(n-k) arithmetic operations 00:48:26 It helps to make some graphs to identify the O() of the algorithm 00:48:48 the complexity is n^2 00:48:59 2 nested for loops 00:49:09 The questions that are asked: 00:49:18 1. What is the total number of algebratic operations 00:49:23 that's done already 00:50:23 2. How can we make it compute faster 00:50:27 and 00:50:38 3. How many arithmetic operations does the optimized program do 00:50:54 I think the code does this 00:50:59 say you have an array of 50 00:51:13 it will compute an average on the elements 1-10 00:51:27 next iteration it will compute the average on elements 2-11 00:51:29 then 3-12 00:51:31 ...etc 00:51:46 * markd2 catches up 00:52:17 I think the way to optimize this is to keep the center the same and only mess around with the edges taking away from one, and adding to the end 00:53:00 then recomputing the average 00:53:12 what's the program actually do? 00:53:22 this should eliminate the inner loop for recalculating the sum 00:53:33 input a[0..n-1]; 00:53:33 input k; 00:53:34 declare s; 00:53:34 declare ave[0..n-k]; 00:53:34 for i := 0 to n-k do { 00:53:34 s := 0; 00:53:36 for j := i to i+k-1 do 00:53:40 ave[i] := s/k; 00:53:42 } 00:53:44 output ave[0..n-k]; 00:53:55 after the second for loop: 00:54:00 s := s+a[j]; 00:54:08 Nickserv ate my program 00:54:27 davb has joined #openacs 00:54:29 I was able to solve this problem last semester 00:54:32 wb dave 00:54:46 ack 00:54:50 syn! 00:54:57 Hi, whats an easy way to see if my DNS is getting out to the internet? 00:54:58 :-/ 00:55:06 hmm? 00:55:08 try nslookup 00:55:15 oh your DNS? 00:55:24 Yeah. 00:55:35 I want to see if the firwalll or my ISP is blocking it. 00:55:37 ask someone else nicely too look it up :-) 00:55:41 tell a computer to use only the DNS box as it's DNS server and try going to www.google.com 00:55:56 Right. 00:56:05 If you can resolve google.com then it works 00:56:23 Mark, does my solution make sense? 00:56:33 I don't know how to do it in code 00:57:11 I can reduce the complexity to be linear 00:59:06 it's too contrived for my brain to handle right now 00:59:13 ok 00:59:16 * markd2 gets brain tired after 5pm 00:59:37 heh 00:59:41 I get brain tired after 2 01:23:22 weird, I can PING www.deepskydesign.com but my browser never goes there. 01:24:05 never mind, I am dubm. 01:24:11 heh 01:24:47 is DNS port 53? 01:30:49 nm 01:36:55 argh,argharghargharghargharhgarhg 01:37:19 yeah. what he said 01:38:33 My web server works by IP address, but not name. not sure why. 01:39:10 aha, perhaps resolv.conf is screwing it up (i hope) 01:39:45 hmmm didn;t help 01:52:18 marks2 I assume you did not connect to my server? 01:52:26 s/marks2/markd2 01:52:28 :) 01:53:20 I couldn't get t it 01:53:38 there it ges 01:53:43 (at least it contacted) 01:53:52 nothing's come back yet 01:53:56 Yeah. I a, not sure what is up. 01:54:11 If I type www.deepskydesign.com:8080 it works. 01:54:25 I think its a local screwiness on the server. 01:54:42 this the BadNicBox> 01:56:42 well, not anymore. 01:57:20 It was a wacky ISP issue, so I moved it. I think I am just going to move the other DNS box over here and be out of service for 24-48 hours instead of trying to duplicate it. 01:57:35 Although the mail is working great :) 01:57:54 rockin' 01:59:22 I think the main problem is that I have no idea what I am doing. 02:01:01 we learn by doing 02:01:13 that which doesn't kill me makes me weirder^H^H^H^H^H^H stronger 02:02:16 ok, now I am in a bad mood, but happy 02:02:22 www.deepskydesign.com works now 02:02:27 for no reason. 02:02:36 I restarted the master nsvhr AOLserver. 02:02:55 wow. this is the first time I've actually seen deepskydesign before :-) 02:03:04 its nothing special :) 02:03:15 actually it kinda sucks, but I am too lazy to fool around with it. 02:04:02 strangley the other one is still not working. I even restarted the virtual aolserver also. 02:04:06 Well I am halfway there, 02:05:16 ok, who's using port 8000.... 02:05:54 I probably installed something when I did that big apt-get upgrade that is running on 8000 02:22:05 weird. I had some rougue nsd threads that would not die. accoring to netstat the google indexer connected and never closed. weird. 02:23:31 NOW! to battle network solutions! 02:26:04 hi 02:26:18 howdy! 02:26:24 :) 02:26:28 I'm upset 02:26:29 holy shit. 02:26:31 me too! 02:26:38 I should have done so much better on that databases test 02:26:54 dems da breaks 02:26:58 network solutions says my domain name if for SALE when I checked my registar and its registers until next year. 02:27:06 heh 02:27:12 I should check mine too 02:27:40 they are evil (netsol) 02:27:48 heh 02:28:07 ->8000 server1.thedesigne:1306 CLOSE_WAIT 02:28:07 tcp 211 0 server1.thedesigne:8000 server1.thedesigne:1304 CLOSE_WAIT 02:28:07 tcp 444 0 server1.thedesigne:8000 alb-66-24-206-3.ny:1930 CLOSE 02:28:07 tcp 453 0 server1.thedesigne:8000 alb-66-24-206-3.ny:1929 ESTABLISH 02:28:09 oops 02:28:15 ->Cookie Data in IE Can Be Exposed or Altered 02:28:16 Through Script Injection 02:28:33 I hate when that happens... look out for those cookies markd2 02:28:42 what domain? 02:28:46 * markd2 cheks his cookies 02:28:48 deepskydesign.com 02:28:59 where do you see it being on sale? 02:29:18 I did a whois at networksolutions.com they said "this domain is available for registration" 02:29:39 you better check again 02:29:53 now it says ERROR out server sucks...please try again later 02:30:00 You probably suffer from the "fat fingers" syndrome 02:30:07 no i READ it 02:30:14 deepskydesign.com 02:30:15 Back-Order deepskydesign.com NOW! 02:30:26 * Psychephylax thwaps© Dave 02:30:35 Cookie Data in IE Can Be Exposed or Altered 02:30:35 Through Script Injection 02:30:38 arhg!! 02:30:45 If you would like to register this Web Address(domain name), 02:30:45 click Register Now below. 02:30:45 deepskydesign.com 02:31:12 I did a whois at buydomains.com and they said its not available. I have had it for like 2 years. 02:31:45 ok, I'm at the front page 02:31:46 now what 02:33:12 aha. 02:33:22 apparently their WHOIS database is not updated or something. 02:33:53 talli has joined #openacs 02:34:03 hey guys 02:34:07 I think its really a scam. You put in your domain and it always says, OH NO your domain is avaialble. You better give us $75 right away so you don't lose it. Imagine how many MS users they could catch that way. 02:34:09 Hi talli! 02:34:12 hi talli 02:34:47 I just wnated to see what email address they had for my contact name. I have tried like 1000 times to update it. 02:34:48 hazmat has quit 02:35:07 Aha! 02:35:11 they are dumb 02:35:15 and annoying 02:35:35 My personal handle is updated, but my domain info is not. 02:36:46 Beer mixes not well milk with 02:37:35 uh....yeah! 02:39:55 wth 02:39:59 Why won't this run 02:40:11 I injected the script with cookie data 02:40:16 the trrricorders must be brroken 02:40:27 mmm.. cookie data ice cream... 02:40:29 shouldn't that be tttrrriiicorders? 02:40:45 they put crrreeaturres in our boodies 02:41:07 * Psychephylax misses the jokes 02:42:12 Aha 02:42:13 it works 02:43:21 jerryasher has joined #openacs 02:43:35 Hi jerryasher!! 02:43:41 Hey Dave! 02:46:00 * davb files the "Yahoo Store" folder next to the ark... 02:46:37 ah69he seeh tye commerical for AT&T Wireless web with monkies using AOL Instant Messenger? 02:46:45 Hey Jerry 02:47:04 Hi psychesporkie 02:47:53 Sporkiephylax! :) 02:49:48 Did anyone see 24? 02:51:11 no 02:51:33 * markd2 stopped counting sheep at 23 02:53:46 markd2 has quit 02:54:05 oh 02:54:16 Jerry, you might know this since you've done lots of AOLServer stuff 02:54:31 have you ever seen something like this: 02:54:47 I have a query that i know is correct because I get what I want in SQLPlus 02:55:16 And I have a page that works (IF i use the simpler query) 02:55:34 However, the moment I replace the query the ADP page shows nothing (but does not crash) 02:56:09 turn verbose on in your db pool and check the log 02:56:39 verbose is on 02:57:23 Does the query show in the log? 02:58:44 arg 02:59:00 Do you mean arg, or "Aargghhhh!" 02:59:08 the latter one 03:01:15 How the hell 03:02:12 can't read "incident_id(cm_trans_pwr)": no such element in array 03:02:36 aha 03:03:37 Ok 03:03:39 this is scaring me 03:03:47 I was dumbfounded by this error 2 days ago 03:03:51 Now, it works 03:04:31 Who says thinking drunk is bad! 03:04:39 I gotta code with beer more often 03:05:54 Psychephylax: apparently I broke netsol's WHOIS system. 03:06:10 I'd say that's worth your 35$ 03:07:09 heh 03:08:18 argharghargharghargharghargharghargharghargharghargh 03:08:33 I think I must recompile ns_xml 03:09:25 GEM has joined #openacs 03:11:20 I can't build ns_xml for some reason all the header files are missing. 03:12:33 chump has quit 03:12:39 hey! 03:12:55 chump has joined #openacs 03:12:57 yeh? 03:12:59 ? 03:13:08 he's back. 03:14:44 weeeeird 03:15:16 I'm getting 3 rows in an adp page for every one in the database 03:17:17 arhgarhgargh. 03:17:41 OK. make cannot find my include files foo.h etc... 03:17:54 but they are all in /usr/include/... 03:19:59 Aha 03:20:03 it's my query that's messed 03:22:11 does ldconfig fix the path for include files also? 03:22:44 dang, Oracle Brain Mark left 03:24:25 talli has quit 03:24:58 moo 03:25:03 hi rbm 03:25:07 hey davb 03:25:16 any luck with those CDs? 03:25:38 Aha! 03:25:49 it's iterating on one table too much 03:26:07 heh, I am working on them tonight. halfway done :) 03:26:43 davb: Thanks! :) 03:27:12 np. I am sorry that the second half of lecture #5 is not there. My CD is damaged. 03:27:15 :( 03:30:05 davb: Oh. Can we download it again? 03:30:08 hey, i forgot, I can install the new 16x recorder and be done twice as fast! 03:30:18 I can't find out where. They don't have them on aduni.org 03:30:26 aegrumet has joined #openacs 03:30:52 wooohooo 03:30:53 I fixed it 03:31:45 hi aegrumet 03:31:48 Psychephylax YEAH! 03:31:51 yeah! 03:31:52 hehe 03:32:00 db_multirow gets a bunch of rows 03:32:06 how do I get one value? 03:32:16 is it db_1row? 03:32:19 or 1value? 03:32:24 hey davb 03:32:30 db_null works too. 03:32:46 Well, I plan on counting rows 03:32:50 Do you want to just get one at a time, or throw out the rest of the results? 03:33:44 I need to do a select count(*) from snmp_incidents where modem_mac = '...' AND incident_date (within last week) 03:33:49 and store that in a variable 03:34:05 basically, count how many queries there were in the last week 03:34:19 db_string 03:35:04 * Psychephylax tries 03:36:02 damn 03:36:07 I love Bloomberg already 03:36:16 db_string is the one. It returns the value of the first column. 03:36:20 returned 03:36:24 He's taking a 1$ a year salary and he's not moving into Gracy Mansion 03:36:31 Nifty. 03:36:47 yeah 03:36:58 rbm: i emailed the webmaster at aduni.org to find out if they still have them. 03:37:07 davb: Great. 03:37:24 davb: I'm planning on forming a group of study here that will gather to watch those presentations and work through the book. 03:37:46 question 03:37:48 when they say this: 03:37:57 db_string statement_name sql [ args... ] 03:38:01 is it something like this: 03:38:09 db_string blah {sql goes here} 03:38:15 or db_string blah "sql goes here" 03:38:43 either one is OK. 03:38:46 ok 03:40:00 so does anyone have an idea why make can't find my libxml2? 03:40:35 Psychephylax: Either is Ok. I personally like { } better 03:40:36 LD_LIBRARY_PATH might help 03:40:48 hmm 03:40:53 * AaronSw reconnects 03:40:54 thanks 03:40:57 I did this: 03:40:59 db_string runs_this_week {select count(*) from snmp_incidents} 03:41:14 and in -properties I have runs_this_week:onevalue 03:41:19 ln -s /usr/inlcude/libxml2/libxml /usr/include/libxml did the trick :) 03:41:27 then when I tried @runs_this_week@ it bombed out: 03:41:34 can't read "runs_this_week": no such variable 03:41:45 do this: set runs_this_week [db_string blah] 03:41:47 What stupid mistake did I make this time around 03:41:51 ah 03:42:00 you are getting to fancy :) 03:42:22 heh 03:42:24 ok 03:42:28 how about this one 03:42:37 since I'm not good with the date type yet 03:42:52 how do I tell it to only get the dates that are only sysdate - 7 days 03:43:33 date math in postgresql.... 03:43:42 is not the same as in oracle? 03:44:24 dates are integers in Oracle (and PG IIRC). You just subtract them. 03:44:41 I happened to run across an age() function last night 03:45:17 SQL> select sysdate from dual; 03:45:17 SYSDATE 03:45:17 ---------- 03:45:17 2001-11-08 03:45:17 SQL> select sysdate+7 from dual; 03:45:18 SYSDATE+7 03:45:20 ---------- 03:45:22 2001-11-15 03:46:32 Kewl 03:46:52 set runs_this_week [db_string runs_this_week {select count(*) from snmp_incidents where incident_date > sysdate - 7}] 03:47:04 jerryasher has quit 03:51:42 My code is horrible 03:51:51 As a programmer I am disappointed at myself 03:53:36 argargargargargargargargargargargargargargargar 03:54:27 * rbm does CPR on davb (with a tube) 03:54:32 screw it, i'll fix it tomorrow 03:54:34 rbm: thanks! 03:54:42 CLEAR! 03:55:05 heh 03:55:37 well I'll see you all later. 03:58:24 later 03:58:31 davb has quit 04:00:58 How can I tell Emacs to actually insert a TAB when I hit TAB? 04:04:35 umm 04:04:47 if you hit back...and it jumps like 8 "spaces" then it inserted a tab 04:04:58 else it's just spaces that look like tabs 04:05:47 k 04:05:55 I am very lost 04:06:26 I have a total of 72 queries 04:06:55 I check how many have been run within the last week...62 04:07:01 (btw, this is in SQL plus) 04:07:34 Now, I use the same queries in my tcl page 04:07:39 And it's missing rows 04:07:56 ooooh 04:08:07 I think I remember 04:11:54 fixed 04:19:52 Why do you want tab characters? 04:20:11 Because I do. 04:20:55 lol 04:20:56 I got around with M-x indent-relative, but that's poor. 04:21:18 how about C-Q TAB? 04:21:21 Roberto, I think we're just misunderstood 04:21:29 "Why do you want it?" 04:21:38 "Because I just do" 04:21:39 I'm doing Tcl, and I'm opening a " in one line, with the string on the next line, and I want to indent it according to where it's at 04:21:49 Why is that so hard to understand? 04:22:16 hey, ROberto - did I see that davb is making CDs of the ADUni lectures? 04:23:05 C-Q Tab seems to work. But I still think Emacs should not try to think it's smarter than me and just do what I'm telling it to. 04:23:17 GEM: yes. 04:23:17 Label GEM not found. 04:23:20 indent-tabs-mode 04:23:20 well, what mode are you in? 04:23:25 Tcl mode 04:23:27 set it to something non-nil 04:23:36 M-x apropos indent-tabs-mode 04:23:51 Yup, that was what I was getting to - you can tell it to do something less special with a tab character 04:23:55 But then when I ret RET, will is still indend? 04:24:03 dunno 04:24:35 Hmm. I'd love to ge access to those ADUni disks at some point 04:24:45 Another thing I need to find out is how to tell emacs to _just_ use tabs for indenting, instead of tabs+spaces 04:25:50 M-X apropos will tell you lots of handy things 04:26:10 I tried it. It gives me a zillion things. 04:27:26 yup 04:30:49 bah 04:32:12 aegrumet has left #openacs 04:44:11 Roberto, you still here? 04:44:41 yeah 04:44:58 Hey, how do I tell ad_page_contract that I only allow certain values in a passed var? 04:44:59 Is there a way to tell SSH to log out idle terminals? 04:45:10 Psychephylax: Hmmm. I think so. 04:45:20 ummm...I think you have to make a check on the bound variable 05:17:15 djg has joined #openacs 06:31:48 GEM has quit 06:31:49 GEM has joined #openacs 09:31:58 abbaJ has quit 09:39:57 abbaJ has joined #openacs 11:28:12 abbaJ has quit 11:33:10 abbaJ has joined #openacs 12:35:21 markd2 has joined #openacs 13:42:46 markd2 has quit 13:54:29 davb has joined #openacs 14:09:40 talli has joined #openacs 14:09:50 hey guys 14:10:30 Hi talli. 14:48:55 Psychephylax has quit 14:48:55 talli has quit 14:48:55 rbm has quit 14:48:55 AaronSw has quit 14:48:55 shagster has quit 14:48:55 davb has quit 14:49:07 Psychephylax has joined #openacs 14:49:07 talli has joined #openacs 14:49:11 AaronSw has joined #openacs 14:49:11 rbm has joined #openacs 14:49:11 shagster has joined #openacs 14:49:11 davb has joined #openacs 14:49:27 This channel is logged: http://www.blogspace.com/openacs/chatlogs/ and blogged: http://www.thedesignexperience.org/openacs/ircblog 14:53:23 hi 14:53:46 ola has joined #openacs 14:54:13 Hi Psychephylax and ola 14:54:43 hey Dave 14:54:59 i'm afraid to develop my tool now cuz it might mess something up 14:55:21 hey davb and Psychephylax 14:55:29 hey ola and davb 14:55:30 lol 14:55:34 heh 14:55:35 djg has quit 14:55:51 Are you doing the demo today? 14:55:59 yep 14:56:17 but I don't think at 10...my boss(es) are not here 14:56:29 aha. 14:56:37 that is always fun. 14:57:06 heh 15:00:07 * davb attempts to wake up, fails miserably and comtemplates curling up under the desk... 15:02:05 * talli runs and tells davb bosses that he is slacking and the New York State tax dollars should not go to such sloths 15:04:27 bahaahaha 15:13:42 heh 15:13:51 talli doesn't know many state workers... 15:14:59 what? i know them very well. every time i have gone to the DMV, the post office or the subway i have been impressed by the courteousness and responsiveness of our civil servants 15:15:22 Actually those are the robots.... 15:16:32 lol 15:16:46 http://prod.business2.com/articles/mag/0,1640,17377,FF.html 15:16:47 A: http://prod.business2.com/articles/mag/0,1640,17377,FF.html from Psychephylax 15:16:57 A:| Little Old Man Versus the Big Three 15:16:57 those are some fat fucking robots 15:16:57 titled item A 15:17:47 A: Harold McMaster says his latest invention will make the internal combustion engine obsolete. Is Detroit worried? No. Is he nuts? Maybe. But he's already made hundreds of millions of dollars proving his naysayers wrong. 15:17:47 commented item A 15:17:59 You guys should read that 15:18:05 it's fscking cool! 15:26:25 talli has quit 15:39:03 markd2 has joined #openacs 15:39:08 hi mark 15:39:17 greetings 15:40:06 aegrumet has joined #openacs 15:40:30 hey andrew 15:40:34 hola 15:41:54 WOW! Finally a victory against Microsoft in Brazil 15:42:02 In Brazil, Microsoft has this deal of "exclusive representation". So they only allow one company to represent them in an entire region. 15:42:10 what they found out, after 3 years of investigation, was that a) They would not allow other competent resellers to be "representants", b) Microsoft and this representant (TBA Informatics) combined which prices to charge and c) the prices they charged to the federal government were 4 times higher than for other similiar customers in similar regions. 15:43:39 Wow! 15:48:53 * davb submits to yet more toture at the hands of network solutions... 15:56:40 question 15:57:09 does AOLserver have a facility for comparing dates? 15:57:52 itself, I don't think so 15:57:53 oracle does 15:57:53 probably use clock to conver to a number and compare that. 15:58:01 what davb said 15:58:46 hmmmm... 15:58:59 hmm 15:59:04 i have an idea 16:01:31 http://mini.net/tcl/948.html 16:01:32 B: http://mini.net/tcl/948.html from davb 16:01:43 B:|Date and Time Issues from Tcl Wiki 16:01:43 titled item B 16:02:38 Psychephylax that should answer any data/time questions you have. 16:03:05 ok thanks 16:26:13 okj 16:26:19 time to learn thread programming 16:27:09 any suggestions on where to start? 16:27:25 depends on what you mean by that 16:27:43 like ground-up, pthreads API thread programming, or doing stuff with aolserver/tcl and threads? 16:27:59 the latter one 16:28:01 http://www.theregister.co.uk/content/4/22749.html 16:28:01 C: http://www.theregister.co.uk/content/4/22749.html from davb 16:28:08 C:|How Microsoft invented open source, by Billg 16:28:08 titled item C 16:28:37 oh right, there was some quote from the investor's meeting 16:28:44 good links on /. 16:29:07 Also, how can I trim input of whitspace? 16:29:37 string trim 16:30:26 like this: set modem_mac [string trim $modem_mac] 16:30:27 ? 16:30:47 yeah that looks right 16:30:53 say $modem_mac is (space)(space)00:E0:F4:00 16:30:57 I want the space space part gone 16:31:11 try it in tclsh; should work 16:31:42 it works 16:31:44 very cool 16:32:12 * aegrumet dances a victory jig 16:32:16 lol 16:34:26 tclsh is the best place to fool around and figure out how the string commands work. 16:34:33 that or nscp 16:34:47 (when you need aolserver api calls) 16:37:37 what's this doing: 16:37:40 lappend threads [ns_thread begin "nms::poll::group $host"] 16:37:55 the "nms::poll::group $host" part 16:38:13 just a namespace qualification for a function 16:38:32 Do I need that? 16:39:34 not for your own stuff 16:39:59 ok 16:41:18 markd2: do newer versions of aolserver clean up their namespaces when the conn closes? 16:41:33 I seem to remember early versions in the 3 series didn't do that 16:45:06 what's this stuph 16:45:08 set fds [ns_sockopen $host 80 16:45:08 set r [lindex $fds 0] 16:45:09 set w [lindex $fds 1] 16:45:24 i'm looking at the api for ns_threads on the AOLSErver page 16:45:30 Opens a connection of Port 80 of host. 16:45:48 I need to do something else though 16:45:53 I need to open a diff type of session 16:45:55 That is just an example of how to use threads. that code is not thread related itself. 16:46:45 ok 16:46:54 r is the read/input handle, w is the write/output handle 16:47:06 so I need those right? 16:47:16 Yes. I suspect so. 16:48:23 andrew: dunno. I don't think so 16:48:36 * markd2 suggests looking ad the documetnation for ns_sockopen 16:49:36 i don't need any sockets though! 16:50:10 oh... then you don't need any of that :) 16:50:13 then don't worry abut it 16:51:17 heh 17:15:21 weird. 17:15:27 nsxml broke 17:15:55 it worked before I installed the DNS server, not it doesn't. 17:21:44 heh 17:22:49 ok 17:22:55 I did this: 17:22:57 proc lookup {modem_mac} { 17:22:57 #start threads to search for the router 17:22:57 source /users/nickb/ubr 17:22:57 set threads [list] 17:22:57 foreach host $ubr { 17:22:58 lappend threads [ns_thread begin "poll $host"] 17:23:00 } 17:23:02 foreach tid $threads { ns_thread wait $tid } 17:23:04 set ubr "167.206.252.201" 17:23:06 } 17:23:10 ignore the set ubr bit 17:23:23 and my poll function is this: 17:23:31 proc poll {host} { 17:23:31 set poll_router [ns_snmp create $host -timeout 5 -retries 3 -community $cmts_community] 17:23:31 set result [ns_snmp get $poll_router cdxCmCpeType.$modem_dec] 17:23:31 } 17:26:22 but I think that's way wrong 17:31:14 well shit 17:31:27 I think it's doing 287 threads 17:31:39 is that good or bad? 17:31:46 :) 17:31:58 bad 17:32:01 it's taking too long 17:33:55 12:30pm up 43 day(s), 16:39, 3 users, load average: 35.82, 17.26, 7.18 17:35:04 are the 287 hosts? 17:36:29 yeah 17:36:33 it's running 287 threads 17:37:25 You probably need to split it up. 17:37:37 Is this a task the current application you use can perform? 17:39:26 yes 17:39:55 i'm going to talk to my boss 17:39:58 see what he says 17:46:12 * Psychephylax tries with 20 or so 17:48:59 ok 17:49:38 17 threads take ~11 seconds 17:49:52 now, I need to do 278 in ~10 17:49:57 Any suggestions? 17:51:24 til has joined #openacs 17:52:05 do it outside AOLserver? 17:53:52 Well, that WOULD make sense, right? lol 17:55:42 remember that threads take time to start up 17:55:54 once you've warmed up your threads, they should perform well 17:56:57 ok 17:56:59 hang on 18:09:41 I'll be back in an hour or so 18:09:42 lunch time 18:09:59 So I can start then and leave them running? 18:10:04 but how do I communicate with them? 18:10:08 telepathy 18:10:13 ah 18:10:15 That's hard 18:10:25 just think about it. it'll happen. 18:10:35 ok 18:10:40 * Psychephylax thinks he needs to eat 18:10:44 * Psychephylax disappears 18:10:47 *poof* 18:43:55 * AaronSw disconnects 18:44:28 * AaronSw reconnects 19:00:39 loggy has joined #openacs 19:00:40 topic is: Welcome to #openacs, the OpenACS hotline and off-topic conversation channel. Now fortified with docwolf! 19:00:40 Users on #openacs: loggy til aegrumet markd2 ola Psychephylax chump GEM abbaJ davb shagster rbm AaronSw 19:00:40 This channel is logged: http://www.blogspace.com/openacs/chatlogs/ and blogged: http://www.thedesignexperience.org/openacs/ircblog 19:21:14 * Psychephylax returns 19:28:19 whats & in C? 19:28:56 it looks like I will be learning C this weekend to debug this wackiness with nsxml. 19:30:48 it's the address-of operator 19:31:15 ah, thanks. 19:31:26 Now I need to learn what an address-of operator is. :) 19:32:02 I am really annoyed that this stopped working. I am not totally unsure its not DNS related, but it seems unlikely. its supposed to be referencing a file in the filesystem. 19:33:07 you can do stuff like int i; int* addr = &i; *addr = 5; now i is 5 19:33:29 addr has the address in memory of the start of the bytes for the variable i 19:33:54 *addr = 5 says "go to the address stored in addr. write an int's worth of data so that it equals 5" 19:34:00 here endeth the lesson 19:34:17 heh. thanks. I think most of the answeres are in the AOLserver C api. 19:42:49 abbaJ has quit 19:57:35 aegrumet has left #openacs 19:57:41 hazmat has joined #openacs 19:57:54 A: 19:57:54 http://prod.business2.com/articles/mag/0,1640,17377,FF.html 19:57:55 Little Old Man Versus the Big Three 19:57:56 (Psychephylax) Harold McMaster says his latest invention will make the internal combustion engine obsolete. Is Detroit worried? No. Is he nuts? Maybe. But he's already made hundreds of millions of dollars proving his naysayers wrong. 19:58:03 B: 19:58:03 http://mini.net/tcl/948.html 19:58:04 Date and Time Issues from Tcl Wiki 20:00:50 rbm has quit 20:10:31 anyone around? 20:11:14 I'm kinda round 20:12:12 :) 20:13:57 donb has joined #openacs 20:14:10 hi donb 20:14:15 i was looking at the site-nodes definitions and i can't understand what the sort key is for since is never used in the queries? 20:14:19 Hi there, what's happening? 20:14:36 Hmmm not sure. 20:14:37 adler has joined #openacs 20:15:19 It's not used to build the site map directory-style display? 20:16:25 i don't know, let me check i don't see anything in the site-nodes sql/procs. 20:16:32 markd2 has quit 20:20:15 Check out: acs-subsite/www/admin/site-map 20:20:17 ah, it is used by the admin screens for site-map. 20:20:36 Right ... index-postgresql.xql. Just to build the display ... 20:20:49 adler has quit 20:22:46 aha, ns_xml suddenly dislikes 's. its probably some lib or another that I updated yesterday. wheeee... 20:24:29 How's InterMedia treating you, Dave? 20:25:00 Doh 20:25:03 Hi Don 20:25:32 I have been reading the docs to see how it works. It appears that it will be tricky to convert the whole thing over to acs-service-contract unless acs-service-contract supports contracts implemented in pl/sql (it doesn't yet...) 20:26:35 donb: also, are we planning on haveing a migration path from ACS 4.2 to OpenACS 4.x? 20:28:43 davb you can implement contracts in pl/sql you just can't call them from pl/sql via the contract interfaces, the dispatch method for a contract needs to go through tcl which can call the pl/sql contract method 20:29:03 hazmat: Ok. 20:29:26 Could I query the service-contracts directly in pl/sql and cheat? 20:30:09 or would it be better to work on a pl/sql interface for acs-service-contracts? 20:30:44 So far no one has asked for a migration path from ACS 4.2. Most folks who have done custom site work in 4.2 have had to do *heavy* customization due to the incompletness, bugginess, etc. I'm not sure how practical upgrading is for the sites that would care the most - those who've deployed sites for paying clients. 20:31:12 OK. 20:31:16 yes to cheating, i think the latter would be nice as well. 20:31:46 hazmat: ok, I'll look into cheating to make it work, then work backwards to the ultimate goal :) 20:31:54 On the other hand, the OpenACS 4 core will work with existing ACS 4 packages, so migrating to the OpenACS 4 core by using existing packages should be possible. Not as an automated thing, though ... 20:32:31 The only thing would be to spiff up the acs-interface pl/sql to work as acs-service-contract pl/sql 20:32:46 for packages that had custom search interfaces. 20:34:55 (I'm off reading about a cool new MS bug that lets web pages using Active Scripting grab any cookie on the users system, no matter what domain placed it there. That's not a security hole, that's a security crater!) 20:35:37 * davb is glad me switched to Mozilla. 20:35:49 (not a new bug, a newly discovered bug - "why isn't there a patch available?" "because the person who found the bug has acted irresponsibly by disclosing the details before we could write a patch") 20:36:13 Yeah, I'm using Moz too, these days. It finally seems to mostly work. 20:37:33 MS is suggesting users deactivate Active Scripting, which is dandy given the fact that MS has encouraged website implementors using IIS to make use of it) 20:38:35 I like the format c: solution better 21:19:53 davb has quit 21:24:00 aegrumet has joined #openacs 21:31:55 hi aegrumet 21:32:47 docwolf has joined #openacs 21:32:57 hi, everybody! 21:38:30 hi 21:58:11 rbm has joined #openacs 22:11:12 til has quit 22:23:51 hi roberto 22:45:44 ola has quit 22:47:36 ola has joined #openacs 22:50:08 ola has quit 23:28:49 hazmat: hey, sorry, spaced out 23:29:11 hazmat: but now I must go :( 23:30:00 aegrumet has left #openacs 23:50:38 baaah