00:07:14 loggy has joined #openacs 00:07:14 Users on #openacs: loggy davb markd2 rbm strainmaker abbaJ shagster AaronSw GEM Psychephylax chump 00:07:14 This channel is logged: http://www.blogspace.com/openacs/chatlogs/ and blogged: http://www.thedesignexperience.org/openacs/ircblog 00:12:53 hmmm 00:13:07 Anyone know what a majority function with an even number of inputs looks like? 00:13:44 huh? 00:13:54 uh huh! 00:13:56 hehe 00:14:01 A majority function 00:14:14 what's a majority function? 00:14:17 Do you know what the truth table for one with an even number of inputs would look like 00:14:30 if you have 3 inputs 00:14:42 and there's 2 True then you don't care what the 3rd one is 00:18:00 I'd imagine that a maj func with even # of inputs could be ambiguous 00:19:08 That's what I'm thining 00:22:36 what about this 00:22:52 since 2 and 2...there's not a majority then it's false 00:23:29 100% is a majoity 00:23:40 51% is a majority 00:23:44 50% is not a majority 00:23:59 when you say "2 and 2" 00:24:07 is that "two arguments, a 2 and a 2"? 00:24:07 50% and 50% 00:24:15 you have this: 00:24:16 ah 00:24:18 T T T T 00:24:20 T T T F 00:24:24 T T F T 00:24:25 ... 00:24:32 yea, TTFF is ambiguous 00:24:37 obviously those cases are all T 00:24:44 but I think returning false is wrong 00:24:51 right, T F T F, F F T T, T T F F are ambiguous 00:25:02 But it's not a majority 00:25:22 so, you're returning False, thereby implying that false is in the majority 00:25:37 hmmm 00:25:51 can you use three-valued logic? 00:26:00 no 00:26:01 truse/false/null :-) 00:26:12 :) 00:29:07 or if you're in java/C++ land, true/false/exception 00:32:04 heh 00:39:18 gah 00:52:37 well chi 00:52:38 t 00:52:44 f 00:53:24 bah 00:53:32 It is not in the book or on google 00:54:31 How am i supposed to do the prelab if this is not even on google 00:57:52 what class? 00:59:58 Some bullchit engineering class that has no relevance to my coding abilities 01:07:07 well 01:07:11 I emailed the professor 01:18:50 hopefully this isn't due in the morning 01:31:05 no it's due tomorrow at 7pm 01:31:20 and my boss won't reply to my e-mail 01:31:33 maybe his hair needs sharpening 01:32:56 maybe he's just trying to ignore it so I can come in to work tomorrow sick 01:33:01 I hope I get him sick back 01:33:12 germ warfare :-) 01:33:46 on a tiny scale 01:33:47 yes 01:33:51 one e-mail down 01:33:53 one to go 01:34:02 TTFF would go to 0 01:34:42 now I can od the prelab 01:34:46 at least part of it 01:35:57 I wonder if my RF key will still work to get into the building 01:36:21 my mom had the benefit of putting it through the laundry 01:36:47 probably 01:36:55 i hope so 01:36:56 lol 01:37:15 I've had all sorts of keys and badgers and whatnot in my career, and they stood up to incredible amounts of abuse 01:37:24 badgers? 01:37:25 rofl 01:37:34 Mark had badgers in his pockets! 01:37:48 So THAT's where my cookies go 01:40:22 heh 01:40:28 I'm armed and badgerous 01:42:17 rofl 01:42:39 I can't wait to see Undeclared 01:42:49 from commercials it looks just like college 01:44:40 the tv here isn't hooked up anything 01:44:42 WHat's Undeclared? 01:46:15 It's supposed to be a "real" look at college 01:46:57 You know 01:47:20 they don't actually have to add too many jokes to what college life really is like 01:47:23 it's already funny 01:47:29 yeah 01:47:44 off to get some sleep before tomorrow's toil-fest 01:48:07 heh 01:48:10 markd2 has quit 01:57:32 davb has quit 07:57:50 djg has joined #openacs 10:36:33 PascalS has joined #openacs 10:45:10 ola has joined #openacs 12:05:10 yay 12:05:13 I'm staying home 12:05:49 eh? 12:07:45 i got sick 12:07:52 and my boss finally replied 12:08:16 U in the US? 12:09:02 yes 12:09:21 * Psychephylax goes back to bed 12:09:33 Ah, that explains it then :) When I get sick I just call to say I'm sick and that's it, basically. 12:10:18 * PascalS wishes Psycho to get well soon. 13:02:44 AaronSw has quit 13:02:59 AaronSw has joined #openacs 13:03:22 davb has joined #openacs 13:03:26 Hi 13:03:36 hi 13:12:54 hi 13:53:59 What is the best way to compare two documents, say XML files using AOLserver? 13:54:22 text or content? 13:54:30 I mean tag content? 13:55:01 XML files can be logically the same, but have different whitespace, ordering, etc. 13:55:05 The whole thing I guess. I want to see if a file has changed. I don't necessarily care what the difference is. 13:55:07 Aha. 13:55:16 exec diff? 13:55:21 Well I wouldn't care if the whitespace has changed. 13:55:22 Ok. 13:55:33 thanks 13:55:44 or 'if { ![string equal $s1 $s2] } {...} 13:56:18 use diff on files in the filesystem, string equal on tcl strings. 13:57:17 cool. I am working of hooking up to weblogs.com new update interface. You have to notify them via XMLRPC that your site has been updated. 13:57:35 And I want to include the chump which is just XML files. No database. 13:58:34 Or I could hack it into the chump itself. Now thats a cool idea. 13:59:08 chump thet the thing that goes 'Chump url grabbed!' on this channel? 14:00:10 yes. 14:00:24 Its a bot written in python. I got the idea from #rdfig 14:00:46 I figure its good OpenACS advertising. 14:00:57 * PascalS is checking out weblogs.com 14:05:51 markd2 has joined #openacs 14:06:51 wait... I just rememberd. I want to compare a file with itself. That is the tricky part. 14:07:01 oh. 14:07:04 that's simple 14:07:20 use md5sum to store the previous versions md5 hash 14:07:32 Aha. Thanks! 14:07:57 is there something like pgp for tcl? 14:08:08 say I want to encrypt credit card numbers with a public key when going into the db 14:08:20 then use my private key to decrypt them before fulfillment 14:08:28 spawning gpg is prolly the simplest way. 14:08:53 read from it's stdout for the result... 14:09:07 gpglib isn't ready yet, I believe. 14:09:39 ok 14:09:41 thanks 14:09:52 but don't keep the privatekey online on the server :) 14:10:02 heh 14:10:24 we're going to be doing manual fulfillment, and the plan is to slurp the encrypted keys locally and then turn them into real numbers here 14:10:32 the thought of storing raw credit card #'s makes me nervous 14:10:35 okay, sounds good. 14:11:24 you could also attach a line printer :) 14:11:40 heh 14:11:46 the colo place might object to the noise 14:11:54 a mom-and-pop. the pet turtles there might complain 14:12:14 14:13:02 I thought there was an MD5 module for aolserver around somewhere 14:13:12 probably 14:13:27 it's a really simple algorithm. 14:14:10 Infact, use the SHA module. 14:14:19 Aha. Cool. 14:14:20 I have that. 14:14:31 Like MD5 but the hash values are bigger 14:14:42 Probably not a problem for me. 14:14:55 They're not that big. 14:19:36 anyone have rbm's script to make an aolserver 3.3 install for OpenACS 4? 15:01:49 PascalS has quit 15:28:11 * Psychephylax climbs out of bed to peek 15:28:20 I feel worse than death 15:28:26 i hate my boss 15:28:49 * markd2 hads Psyche some dayquill 15:29:13 hmmmg 15:29:15 good idea 15:29:22 i'll go pick that up when I go get a money order 15:34:47 my boss let me stay home 15:34:56 Now I have to focus on being sick on Wed so I get him back 15:36:19 breathe into a lot of plastic bags 15:39:45 Eh? 15:40:58 keep the germs 15:41:03 I don't want to keep them 15:41:05 bring them in of wednesday even if you're feeling better 15:41:11 you never know when they'll get mad at you and lash out 15:41:21 by that time you'll be immune 15:41:28 ... unless they mutate ... 15:41:33 They always mutate 15:41:36 then you can hit your boss with mutagerms! 15:41:51 hmm 15:42:00 I wonder if they will ever release SNL on DVD 15:46:21 That would be cool. 15:48:16 actually it seems as they did 15:48:31 at least parts of it...mostly titled "SNL: Best of ____" 15:48:40 like Mike Meyers and stuff 15:51:33 http://www.amazon.com/exec/obidos/tg/stores/detail/-/dvd/B00004ZEU5/tech-info/104-4433847-7857567 15:51:33 A: http://www.amazon.com/exec/obidos/tg/stores/detail/-/dvd/B00004ZEU5/tech-info/104-4433847-7857567 from Psychephylax 15:51:47 A:| Monty Python DVD Collection - a must get! 15:51:48 titled item A 15:52:12 A: Comedy, comedy and more comedy... 15:52:12 commented item A 15:52:18 Ministry of Silly walks! 15:56:32 oh no. I might have to get a dvd player now. 15:56:37 complete set of The Prisoner. http://www.amazon.com/exec/obidos/ASIN/B00005NKCQ/qid=1001951824/sr=2-2/ref=sr_2_7_2/107-5916530-0810938 15:56:47 heh 15:56:57 I got a DVD player for the 1st season of the simpsons 15:58:32 I was waiting for B5 to come out on dvd 15:58:43 i think it's going to or it might have 15:59:06 it's not out yet 15:59:13 the "in the beginning" move might be out in december 16:00:05 heh 16:00:10 * Psychephylax is not a big B5 fan 16:00:21 bummer 16:01:03 nothing beats Star Trek classic 16:01:24 true 16:01:36 damn it 16:01:37 but it was cool seeing a coherent story unfold over 5 years 16:01:45 I want my name to time stamp too ;( 16:01:54 heh 16:02:01 Star Trek ruled though 16:02:11 1 hour stories are much easier to follow than a 5 year one 16:02:13 * markd2 hands psyche a roll of time stamps 16:02:20 oh boy! 16:04:39 what to do...what to do... 16:07:20 D'oh! 16:07:27 SNL tickets are only sold in August 16:07:52 i hope they have a 28th season 16:08:11 i wanna go 16:08:46 * Psychephylax crawls in his bed again...I'll be back later 16:16:58 markd2 is now known as seen 16:17:03 seen is now known as markd2 16:29:13 shagster has quit 16:29:54 shagster has joined #openacs 16:34:25 markd2 has quit 16:47:22 why would an update on one row in a tiny little table take say, forever, on postgresql? 17:21:51 something wrong? 17:24:07 * rbm nods 17:28:08 hi 17:30:41 this is my query: update cr_keywords set heading='News', description='The New News Description' 17:30:48 where keyword_id = '2457'; 17:31:12 When I try that postgresql just hangs. I tried in psql and AOLserver. 17:31:41 have you checked your processes and available RAM to see if PG has room to di its job? 17:32:05 Nope. I'll check. 17:33:14 plenty of RAM 17:35:08 define "plenty" 17:35:34 You might want to do some tunning in your PG startup options 17:35:37 I am using 83m 100 free 17:36:02 Probably. 17:36:21 WAIT! Why are you putting "keyword_id='2457'"? PG is probably doing a cast for every single row. You should do "keyword_id=2457" (no quotes) 17:36:38 "83m 100 free" makes no sense to me 17:37:10 sorry. I have 192MB of RAM in this machine. 83MB is used. 100MB or so is free. So I am using less than half. 17:37:23 Aha. That is the bind variable substituion doing that. 17:37:30 (not is psql I just copied the query) 17:39:10 I took out the quotes, but it didn't seem to help. There are only 5 rows in the table anyway. 17:45:01 I think this is it: 17:45:01 create trigger cr_keywords_update_tr after update on cr_keywords 17:45:01 for each row execute procedure cr_keywords_update_tr (); 17:45:09 * rbm goes out for a bit 17:45:17 davb has quit 17:47:56 davb has joined #openacs 17:52:34 Here is the offending trigger: 17:52:35 create function cr_keywords_update_tr () returns opaque as ' 17:52:35 begin 17:52:35 if old.parent_id <> new.parent_id then 17:52:35 update acs_objects set context_id = new.parent_id 17:52:35 where object_id = new.keyword_id; 17:52:37 end if; 17:52:39 return new; 17:52:41 end;' language 'plpgsql'; 18:02:30 markd2 has joined #openacs 18:06:37 I removed the trigger and it still is stuck. 18:06:56 maybe it's just REALLY slow. 18:07:43 what's up? 18:08:11 I am trying to update one row in a 5 row table and postgresql is just sitting there. It never returns. 18:08:38 It had a trigger after update so I got rid of it, but that didn't help. 18:12:41 any other session have a lock on that row? 18:12:46 (not sure about how PG does locking) 18:14:50 I can't imagine. Noone else is using the server. 18:15:03 I wonder if there is a way to check... 18:15:26 I rebotted the server just in case. 18:17:03 in oracle-land there's all sorts of data dictionary tables to see who has what locked and why 18:17:08 PG probably has something similar 18:18:30 talli has joined #openacs 18:18:35 hey guys 18:19:00 yo 18:19:58 hi 18:23:27 yoyo 18:25:03 Here is my query plan 18:25:04 openacs-4=> EXPLAIN update cr_keywords set description='Description' where keyword_id=2457; 18:25:04 NOTICE: QUERY PLAN: 18:25:04 Seq Scan on cr_keywords (cost=0.00..0.00 rows=1 width=39) 18:25:04 Label NOTICE not found. 18:25:11 Sounds pretty easy to me. 18:28:02 OK. I have an idea. 18:29:24 A PLSQL block is a transaction. The CR_KEYWORDS API has a seperate call for set_description and set_heading. If I call both of them inside a PLPGSQL block it will never complete.... thats my theory anyway. But it doesn't explain why it doesn't work when I do it all in one update. 18:31:35 weird. Its just that one ROW that is causing the problem. 18:32:52 Ok. Here is the REAL problem. I have keyword_id and parent_id. If the keyword_id of a keyword is in the parent_id column of another keyword, the update hangs. Otherwise it works. 18:34:13 gotta go. 18:34:20 davb has quit 19:57:07 davb has joined #OpenACS 20:41:07 djg has quit 21:32:27 ola has quit 21:37:55 talli has quit 21:40:28 markd2 has quit 23:13:54 GEM has quit