02:08:13 loggy has joined #openacs 02:08:13 topic is: Welcome to the OpenACS Helpline | http://www.openacs.org/ 02:08:13 Users on #openacs: loggy rzolf davb ola shagster AaronSw rbm Psychephylax chump 02:08:13 This channel is logged: http://www.blogspace.com/openacs/chatlogs/ and blogged: http://www.thedesignexperience.org/openacs/ircblog 02:09:10 abbaJ has joined #openacs 02:09:47 rzolf has quit 05:40:45 rbm has quit 05:40:46 rbm has joined #openacs 06:33:55 davb has quit 06:54:36 rzolf has joined #openacs 07:13:41 rzolf has quit 08:45:16 jerryasher has joined #openacs 08:45:35 Hey ola, are you around? 08:51:11 yes, hi. 08:51:32 Was that you ten minutes ago poking around my blog module? 08:51:41 I'm looking at your blog. nice! 08:52:07 Yeah, I was just finishing debugging it, and you came through. 08:52:58 The plan for tomorrow is to build some templates for it and then to package it up. 08:53:16 cool. 08:53:26 Did you hear Tony Blair's speech today? 08:53:44 no. what did he say? 08:54:09 I've never really heard him speak before. Just the usual views in the U.S. that he 08:54:13 was pretty good friends with Bill. 08:54:27 But today he gave one of the best speeches I've ever heard 08:54:50 Good not just for its content (on the WTC attacks), but just a 08:55:06 wonderfully spoken speech. 08:55:20 I've been trying to find a link to a video of it but cannot. 08:55:46 you mean that lovely Oxford english...?:-) 08:56:01 Yes, that was certainly part of it, but not all of it. 08:56:21 GWB for instance speaks neither like a Texan, nor like a Yalie. 08:56:43 I always think GWB speaks like, a, uh, minister. 08:57:18 But the content and tenor of Blairs speech was right on the mark. 08:58:31 well, somethings going to happen soon, I just hope they don't overreact. 08:59:03 That was sort of what Blair was saying.... 08:59:26 I found a about two minutes of it over on MSNBC using Windows Media Player, but 08:59:49 the ten minutes or so I heard was great. A very good mix of 09:00:17 suggesting what should and should not be done, and why.... 09:00:26 (uh, as far as I was concerned.) 09:00:35 Anyway, certainly much much better than "wanted dead or alive" 09:02:33 Well, I gotta go and get up in 4 hours to take my girls to school, so I'll say goodnight. 09:02:46 And thanks for taking a look at the blogs. 09:02:50 bye. 09:02:59 I guess I'll hear it on the news today. I like the things I have herad lately from GWB, and US officials. try to make as many friends throughout the world as possible before action. 09:03:04 bye. 09:03:19 jerryasher has quit 10:55:42 ola has quit 10:56:33 ola has joined #openacs 11:37:19 rbm has quit 11:37:31 rbm has joined #openacs 11:37:47 shagster has quit 11:39:58 shagster has joined #openacs 12:35:43 davb has joined #OpenACS 12:39:42 good morning, davb. 13:16:24 markd2 has joined #openacs 13:18:15 Good morning/afternoon,etc 13:21:55 * markd2 waves 13:39:45 argh! 13:39:56 * markd2 unwaves 13:40:02 heh 13:40:19 The modifications I made to the CR have to be redone. No big deal. 13:42:25 heh 13:42:35 * markd2 is getting scolded by some wrens 13:42:47 there's two birds out here that are giving me and the cat the what-for 13:42:56 You are working outside? 13:43:12 * davb needs 802.11b and a new laptop with a working keyboard 13:43:35 yeah. We've got a nice little screene-enclosed porch 13:44:24 Neat. 13:44:35 * davb adds screened-porch to the list... 13:44:55 gah 13:45:01 I don't want to go to work 13:45:16 yes you do. 13:45:47 work is good 13:45:54 just think "infect the boss.. infect the boss" 13:46:00 Not with a slave driver who gets me sick for a boss :( 13:46:04 hmmm 13:46:07 Good idea mark 13:46:20 * Psychephylax searches for his bags of germinating germs 13:46:23 * markd2 suggests anthrax-leprosy-mu 13:46:29 hmmmmmm 13:46:50 * Psychephylax gives up his search for germinating germs and invests his efforts into obtaining anthrax 13:47:24 I think CD now has their albums 13:47:55 har har har 13:47:58 No cookie for you! 13:48:05 no cookie for me :-( 13:48:09 * Psychephylax is the cookie nazi 13:48:21 That seinfeld episode was on last night 13:49:04 ping dslreports.com 13:49:06 arg 13:49:26 25.987 ms 13:49:38 interesting 13:50:01 their site is down though 13:50:03 I broke it 13:50:39 * ola needs a new laptop (and wonders if dell's any good) 13:50:52 inspiron 400 in particular.. 13:50:58 inspiron 4000 in particular.. 13:51:33 yah 13:51:36 Dell makes good laptops 13:51:47 most enterprises use dell 13:51:48 they do? 13:51:52 cool 13:51:53 yah 13:52:11 I know of at least 2 corporations and 1 university :) 13:52:26 Symbol, Cablevision and my school all use Dell laptops and/or workstations 13:52:35 I know a couple folks with them - they're generally liked 13:52:41 save for one guy that has a lemon 13:52:41 yeah 13:53:17 i want a laptop but I'm poor 13:53:22 It would be nice to run Linux without problems 13:54:07 one of my classmates I think had a dell (possibly an ibm) and he ran Suse on it 13:54:10 any local Linux Users Groups around you? 13:54:28 they're generally a good source about what machines run which distributions well 13:54:36 heh 13:54:48 * markd2 is a big LUG fan 13:54:56 LUG? 13:54:59 a LUG-nut, as you might say 13:55:01 Linux Users Group 13:55:02 markd2: probably, i'll check. 13:55:03 Ah 13:55:07 choo! 13:55:10 moo? 13:55:20 how now brown cow 13:55:29 Mooooooooo!!! 13:55:39 Damn it 13:55:42 mü 13:55:45 I want my timestamps 13:56:07 I sent a roll of them to you in the past! didn't you get them then? 13:56:25 lemme guess, you used them all up next week 13:56:43 uh huh 13:57:56 :( 13:57:56 it time stamps your messages but not mine 14:00:58 Get a titanium! 14:04:08 TiBooks rule(tm) 14:04:25 hmmm? 14:04:34 or an IBM 14:04:58 of course, neither one of them is cheap 14:04:59 that would be awesome but sounds kind of expensive. 14:05:05 heh 14:05:34 * davb needs to run CAT5 to the porch... 14:06:17 off to work 14:06:24 happy infecting 14:29:00 * ola trips over CAT5 almost every time he's heading for the living room:-( 14:29:09 Apartment? 14:29:15 yes. 14:31:08 you live in a house? 14:31:27 Yeah. We bought it in June. All the network is in one room so far. 14:31:43 that's right - you've got the sprawling estate somewhere 14:31:50 haha! 14:32:00 davb's dude ranch 14:32:20 Not quite. Our neighbor has the rest of our backyard. Of course, someone else's house is in his. Interesting setup. 14:32:24 * ola looks up sprawling 14:32:42 OK Who wants to port the NEWS package? 14:32:46 :) 14:33:05 * davb thinks about doing it to avoid working on static-pages 14:33:34 ola: sprawling estate - large house on a big piece of land 14:33:50 shouldn't we use ETP instead of news? 14:34:11 markd2: ok. thanks! 14:34:13 mmm.. Eat This Page.... 14:34:43 I just read Luke's message on that subject. He said the news package is good because visitors can suggest items. ETP doesn't have that kind of function. 14:35:43 I hadn't thought of that. 14:36:09 Maybe like he said someone eventually will build a generic user-generated content module. 14:41:55 well 14:41:58 I have arrived at work 14:42:01 * davb discovers he needs two more internet connected machines for the kids... 14:42:17 If I need to back up my development files 14:42:25 do you guys recommend making a package out of it 14:42:40 it being my package files in /packages/snmp 14:42:47 or just moving the files to a different place 14:45:14 mmm...time for some coffee and a few of those chocolate balls I made yesterday... 14:45:29 heh 14:48:12 Do one of each. 14:49:29 one coffee and one chocolate ball.. ok. that will do. 14:49:33 heh 14:50:30 * davb thinks there should be a fine for sending unsubscribe messages to a list. 14:51:10 Thing is, in mutt I can see all the list instructions in the header. Outlook could offer those as hyperlinks in the message. 14:52:42 that would imply that MS would want to support existing internet conventions 15:01:17 heh 15:10:40 if you pass an empty string as the regexp to the tcl regexp command will it match everything? 15:12:05 * davb checks the docs 15:24:40 hmmm 15:24:50 db_string is an SQL bridge 15:25:04 but it says it returns the first column of the reult of the SQL query 15:25:07 what if it's an insert? 15:25:18 query != insert 15:25:26 so it should complain at you 15:26:10 ok 15:26:16 so how do I do inserts and updates? 15:26:22 db_dml 15:27:01 db_dml me_want_cookie "insert into blah (id, date, hoover) values (cookiesequence.nextval, sysdate, :some_bind_variable)" 15:27:04 or something like that 15:30:36 what's DML stand for 15:32:26 ok, I got a question: http://openacs.org/bboard/q-and-a-fetch-msg.tcl?msg_id=0002r2&topic_id=12&topic=OpenACS%204%2e0%20Design 15:32:39 data modeling langauge 15:32:40 look down right above Deletes the test user and group 15:32:43 e.g. insert and update 15:32:45 ah 15:33:13 He creates a new relation_id and creates a new relation 15:33:21 Can I use db_dml for that? 15:36:06 you can use db_exec_plsql for doing plsql procedure calls 15:36:11 there's a whole page on the db_* calls 15:36:25 go to /doc, 'kernel documentaton', then 'database api' 15:36:26 where at 15:36:30 k 15:40:18 interesting 15:41:44 so if i have $variable 15:41:55 I can use it in the db_dml like this :variable 15:41:58 very cool! 15:41:58 yep 15:45:14 I have a databases midterm tomorrow 15:45:35 So I wanna thank you for passing on some of the l33t Or4cl3 knowledge on me 15:49:09 sure thing 15:59:13 * Psychephylax gives Mark a cookie 16:00:14 I gotta figure out how to break this pl/sql procedure into a smaller piece 16:00:35 I don't need the first 2 blocks for creating a new group and user I just need to take 2 existing ones and create a relation between them 16:01:27 aha 16:09:19 it does not appear to have a db_exec_plsql 16:09:29 maybe it's db_execplsql 16:10:15 no 16:10:18 you have it right 16:10:29 but you have to explicitly search for it 16:10:47 so my call would be: 16:10:54 (bear with me while i type it out) 16:11:40 db_exec_plsql add_to_group "declare 16:11:47 v_rel_id : integer 16:11:50 begin 16:12:07 v_rel_id := membership_rel : new ( 16:12:21 object_id_one => $group_id, 16:12:31 object_id_two => $person_id 16:12:33 ); 16:12:35 end; 16:12:44 something like that, yeah 16:12:49 " 16:12:56 don't know if you need the ';' at the end of the end 16:13:04 ok 16:13:08 well, I'm gonna try tat 16:13:13 let's hope I don't break many things 16:14:49 it is going to expand the $group_id and $person_id right? 16:14:53 or do I have to bind them? 16:15:29 since you have it in double-quotes, the variables will get expanded 16:15:44 Psychephylax: it will expand them, but it is safer to use bind variables. 16:15:46 ok 16:15:52 k 16:15:57 i'll try to bind them 16:16:13 so it would be single quotes if i"m binding? 16:16:19 doesn't matter 16:16:28 you can use binds with double quotes or curly braces 16:16:56 ok 16:17:13 Does whitespace get ignored? 16:17:20 yep 16:17:24 ok good 16:17:25 unless it's in a ' string' 16:17:30 cuz I like making my things look purty 16:18:45 so if I'm binding object_id_one => $blah becomes object_id_one => :blah 16:18:58 and on the end I add a bind paramenter? 16:19:06 yep 16:19:18 if it's just variables, you don't need any special parameters 16:19:27 it'll pick up the value of $blah from the calling environment 16:19:52 oh so I can do just :blah and it will search for a $blah 16:20:15 yep 16:20:49 Wow, that McMaster University I talked about yesterday has absolutely no information about their academdic progeams on their web site. 16:21:07 heh 16:21:08 What's McMonster University? 16:21:09 McMaster 16:21:10 er, McMaster 16:21:26 * markd2 thanks Thigh McMaster 16:21:28 sounds more like McMonster to me if they have no info o the webpage 16:21:37 mmmm 16:21:39 McDonalds 16:23:19 doh 16:24:05 invalid positional variable `:', valid values start with 1 16:24:06 while executing 16:24:08 "ns_ora dml nsdb0 { 16:24:40 stupid ; 16:24:56 hmmm 16:25:25 doh ; wsn't it 16:26:34 This is my code: 16:26:36 db_exec_plsql add_to_group " 16:26:36 16:26:36 declare 16:26:36 v_rel_id : integer; 16:26:37 begin 16:26:39 v_rel_id := membership_rel.new( 16:26:41 object_id_one => :group_id, 16:26:43 object_id_two => :user_id 16:26:45 ) 16:26:47 end; 16:26:49 /" 16:26:56 it craps out on the object_id_two => :user_id from my understanding of the error message 16:27:26 you don't need the "/" either 16:27:31 oh 16:27:33 that's a sqlplusism 16:27:41 "execute the sql that's in the buffer" 16:27:47 it's in the sql files though 16:28:30 right - since the sql files are consumed by.... 16:28:32 sqlplus! 16:28:42 oh 16:28:50 * Psychephylax is a n00b!!! 16:28:54 heh 16:29:05 is this right? v_rel_id : integer 16:29:23 no 16:29:23 lol 16:29:25 <--dummy 16:29:53 Psychephylax => dummy; 16:29:57 :) 16:30:46 Or like mr pascal would do it 16:30:53 Psychephylax := dummy; 16:31:17 muahaha 16:31:20 oracle errors 16:31:20 ! 16:31:24 aha, see I am not an oracle expert. 16:31:49 it's saying something about an end 16:32:09 Encountered the symbol "END" when expecting one of the following: 16:32:30 The symbol ";" was substituted for "END" to continue. 16:32:37 you probably need a semicolon after the membership_rel.new function 16:33:07 jeez you're a genius! 16:33:12 * Psychephylax gives Mark a cookie 16:33:43 YES!!!!! 16:33:46 It works! 16:33:48 Eureka! 16:35:14 woo hoo!! 16:36:10 indeedy! 16:37:06 now I can add lusers 16:53:08 one coffee and one chocolate ball.. ok. that will do. 16:53:17 sorry 16:53:37 what a tease 16:53:43 hehh 16:54:55 wow, poor site design on the javascript menu: http://www.abit.com.tw/ 16:55:04 Hah 16:55:07 chocolate balls 16:55:13 I want rumballs instead 16:55:15 much tastier 16:56:00 God I'm dumb 16:56:07 I can't even remember what the letter before W is 16:56:26 T sounds about right 16:57:20 U 16:57:28 oh 16:57:29 heh 16:57:36 Oracle problems 16:57:59 V 16:58:11 ok:-) 16:58:17 forgivable :-) 16:58:31 thanks. 16:58:47 wow I was way off 16:58:57 so " allow for variable expansion 16:59:00 but ' do not? 17:01:31 I know " does. I don't use ' ' quotes in tcl 17:01:36 so I can't ocmment 17:01:39 or comment either 17:01:53 ok then how would I do a query 17:02:02 Because Oracle is complaining when I do a = Manager 17:02:07 it wants a = 'Manager' 17:03:42 I think I can do '$blah' 17:03:45 * Psychephylax tests his theory out 17:05:03 doh 17:05:18 it expands in the console properly but doesn't in the script 17:05:34 the single quotes in oracle are in a different world than the quotes in tcl 17:05:50 so yeah, in that case '$blah' does expand the variable 17:05:57 if you don't want variable expansion, use curly braces 17:06:09 i do want variable expansion 17:06:31 I want the query to be dependent on $user_type which stores either Manager or Supervisor 17:06:35 in that case single quotes inside of your double-quoted string 17:06:40 I did 17:06:48 sounds like you're golden 17:06:49 "db_string group_id "select group_id from groups where group_name = '$user_type'"" 17:07:25 presuming the real command doesn't have double-quotes aound it, that should be ok 17:07:32 e.g. db_string instead of "db_string 17:07:41 I don't have " around db_string 17:07:44 Or just use :user_type and the bind variable will quote it for you. 17:07:44 I have [ ] 17:07:45 ok 17:07:55 oh good idea dave 17:07:57 the paste into IRC had "db_string 17:08:23 yeah 17:08:27 that was from the error message 17:08:37 Dave, it didn't work for the same reason :( 17:08:55 this is the command I'm using: 17:08:58 set group_id [db_string group_id "select group_id from groups where group_name = :user_type"] 17:09:11 really? Weird. Did it log the actual query string after it was expaneded? 17:09:17 I have tried '$user_type' instead of :user_type and plain old $user_type 17:09:20 and it bombs 17:09:41 I think it is a different error. '$user_type' or :user_type should be OK. 17:09:53 this is the error with the string above: 17:09:55 "db_string group_id "select group_id from groups where group_name = :user_type"" 17:10:07 Selection did not return a value, and no default was provided 17:10:07 while executing 17:10:29 What is the contents of $user_type 17:10:37 no it's not :) 17:10:42 oh 17:10:43 doh 17:10:46 * Psychephylax misreads 17:10:54 user_type is either Manager or Supervisor 17:11:24 No I mean what is it when you run that query. Put in a ns_log notice "$user_type" to see what is really is or turn VERBOSE on in the db pools. 17:11:30 if I leave everything off and try $user_type the query gets expanded to the right thing but oracle expects ' ' around the keyword to look for 17:12:39 I guess I could try doing this set user_type '$user_type' 17:13:09 that will just return '$user_type' to the database. 17:13:28 why 17:13:46 isn't it going to expand it to this: set user_type 'Manager' 17:13:54 and then the user_type should contain 'Manager' 17:14:01 instead of Manager? 17:14:47 Oh maybe. Anyway you are confusing me. 17:15:10 brb 17:15:11 lunch 17:15:13 You really should set verbose on in your aolserver config file. It will log the text of every query. 17:15:41 Then you will know exactly what the database is running, instead of just what it is before the driver converts the variables. 17:25:20 * ola wonders how difficult it would be to port "news"... 17:28:17 I guess the answer is; "about as easy/difficult as the other packages" 17:28:17 ola: doesn't look too bad. Only a couple of queries in /tcl and 17:28:17 not too many www pages. 17:28:30 what about CR integration? 17:29:26 back 17:29:36 that was quick! 17:29:50 yeah I wanna leave early 17:30:04 so I'm not taking my usual lunch break * 2 17:30:17 How do I turn the verbose thing on 17:31:05 i have this: ns_param Verbose On 17:31:07 Actually looks good. It uses extended attributes for the items. 17:31:26 it uses built in functions. 17:32:03 The only tricky part would be the search function. 17:32:36 odd 17:32:37 I would do it if I wasn't already way behind on static-pages plus my other projects... 17:32:39 even 17:32:41 I don't even have logs for today 17:33:26 Maybe I'm not launching the server properly 17:33:32 I use /bin/nsd -ft oacs4.tcl 17:33:53 davb: maybe the search part could be left out, and instead use Neophytos's/Dan's search. 17:33:56 Aha -f doesn't log. 17:34:00 ola: right 17:34:12 it goes to the foreground. Logs to the console. 17:34:23 Do nsd -it and tail -f the log. 17:34:32 (I learned that this week) 17:35:00 hehe 17:37:26 which log file 17:37:32 it still does not make one for today 17:37:54 servername-error.log unless you called it something else. 17:38:19 yes 17:38:31 but I don't have one for 10-03- 17:38:31 strange. 17:38:55 you got that right 17:38:57 I just have one big huge error log file. It doesn't roll. 17:39:19 yeah. error logs have to be rolled externally 17:39:25 HUP 2 3 4... 17:41:13 i'm so lost 17:41:46 Land of the Lost In Space 17:42:00 yeah 17:42:05 You guys are getting me side tracked 17:42:08 I know the problem 17:42:12 I just don't know how to fix it 17:45:07 why doesn't it expand properly? 17:47:01 In the log it should show the actual query sent to the database. You are just seeing the Tcl call. Look back farther in the log and it should say Querying ' whatever the query is' 17:47:08 On OpenACS anyway. 17:56:54 argh! The internet is too interesting. I am always finding new books to read. I think if I started now on the list I have I might just finish before I am dead, as long as I don't add any new books to the list. 17:57:15 I need one of those Matrix things to plug into my brain :) 18:02:17 ok 18:02:29 I just got a totally irrelevant lecture on code indentation 18:02:41 I think I can indent my code the way I want to 18:03:05 good luck when you enter a job that has an existing style guide 18:03:10 Only if you never share it with anyone else. Although I admit I have absolutely no style standards myself. 18:03:32 hey 18:03:35 my style is easy to read 18:03:43 I indent and structure the code and actually comment 18:04:00 I think if you actually comment the code, you should be able to indent any way you like. 18:04:15 exactly 18:04:41 and as if it is my fault that I don't have root to install the tcl major mode for xemacs 18:22:13 i can't even find it on the xemacs ftp 18:36:10 Anyone still awake? 18:38:57 weird. isn't it installed automatically? emacs has tcl mode installed by default. 18:39:47 that's what I thought 18:39:50 I gave up on that 18:39:57 right. 18:40:06 I'd rather have working code 18:40:20 If it was hard to write, it should be hard to understand damn it! 18:40:28 heh 18:40:53 BLURB: If code is hard to write, it should be hard to understand! 18:40:54 A: If code is hard to write, it should be hard to understand! from Psychephylax 18:41:14 back to my $user_type problem 18:41:32 ok 18:41:35 if I have this: 18:41:45 set group_id [db_string group_id "select group_id from groups where group_name = $user_type"] 18:41:56 $user_type gets expanded into Manager 18:42:13 but: Oracle complains about the query of where user_type = Manager 18:42:15 if you're using variable expansion, you need single quotes 18:42:24 what he said 18:42:26 user_type = Manager, oracle looks for a column named MANAGER 18:42:36 Where do these single quotes go 18:43:10 around $user_type like this 18:43:25 select group_id from groups where group_name= '$user_type' 18:43:34 ok 18:43:38 but when I try that it bombs out 18:44:09 msg me with the log output of the entire operate 18:44:14 s/operate/operation 18:44:18 umm 18:44:23 ok lemme try 18:58:22 Psychephylax has quit 18:58:22 argh! I can't decide if I should volunteer to port "news", so instead I've started porting "mp3jukebox" in secrecy... 18:59:38 Psychephylax has joined #openacs 19:00:11 ooops 19:00:18 Hit the wrong key sequence 19:00:21 ooopsie. 19:00:27 heh 19:00:32 * Psychephylax is not a very good BitchX 19:00:35 heh 19:00:36 luser 19:00:49 Trying to close a query and it didn't close 19:00:59 I though someone was working on MP3jukebox 19:01:00 so I tried /exit query davb and ummm...yeah 19:01:21 now you know! 19:03:14 hmmmmmm 19:03:20 davb: ok. I haven't checked with Don. You know how it is... I just wanna see if it's very hard or not.. 19:03:30 markd2 has quit 19:03:55 davb: it says "none" in the status sheet 19:04:42 hmmm 19:04:46 ok 19:05:10 if I log in and then go to re-log in as a different user, I'm taken to /pvt/home which is part of the sub-site package 19:05:20 How do unmount that and make them go to the regular site 19:05:38 i was thinking of symlinking over to the regular site but that seems wrong and inefficient 19:05:59 * Psychephylax wanders off to read the Request Processor docs 19:12:44 ola: aha 19:13:40 * davb looked at the CR and CMS first before anything else. So all the packages seem easy :) 19:17:18 :-) 19:18:06 heh 19:18:16 This stuff makes sense if you work on it 19:18:36 Of course this isn't what I want to do but oh well 19:18:38 they pay me 19:19:26 what DO you want to do, then? 19:19:57 I wanna be a detective 19:20:09 Jump over rooftops after bad guys with my gun drawn 19:20:13 You are a code detective. 19:20:17 While the theme from cops is playing in the background 19:20:32 :) 19:20:39 hey, one can dream! 19:21:29 Hey, is there a carpentry IRC channel? I need some advice on fixing my shed. 19:21:44 psyche: aha. like Beastie Boys in "Sabotage" 19:21:58 ? 19:22:00 yeah! 19:22:06 cool! 19:22:13 That song kicks major ass 19:22:17 oh boy 19:22:21 you got me all excited now 19:22:26 now I need to listen to the song 19:22:41 * Psychephylax fetches it from his super secret webpage which has 2000 mp3s 19:23:14 damn fast 19:23:29 100K/sec 19:23:43 psyche: that one, or 100% 19:23:56 100K/sec 19:24:06 test it for yourself if you really want 19:24:38 i'll give you the url 19:24:55 no. that song, or 100% by Sonic Youth! 19:25:02 oh 19:25:03 hehehe 19:25:10 I never heard that one 19:25:39 download it now! 19:25:54 ok but where from? 19:26:12 napster??? 19:26:17 don't have it here 19:26:21 if you have it 19:26:25 e-mail it to me :) 19:28:30 ok 19:28:42 Now i need to figure out user removal 19:29:30 if i mutate a use email address i'm not messing up the database because it's all linked by his user_id right? 19:30:26 right! 19:30:43 excellent! 19:31:20 brilliant! 19:31:21 After i figure that out 19:31:32 I just have to figure out how to keep a user hierarchy 19:31:56 what do you mean? 19:32:06 well, I need to keep track of who works for whom 19:32:16 like say you have Mr Bob (uid 100) 19:32:24 He has 2 workers who work for him 19:32:31 ok 19:32:34 Mr Dave and Mr Mark 19:32:41 uid 101 and uid 102 19:32:49 i need to keep track of that somehow 19:32:55 I think it's going to be a table 19:33:03 where one side is who works for whom 19:33:13 like 19:33:19 100 | 101 19:33:22 100 | 102 19:33:37 now if Mark has 2 other guys it would be in the table like this: 19:33:41 102 | 104 19:33:45 102 | 105 19:33:48 101 | 103 19:33:59 or something like that 19:35:37 aha. have you seen this: http://www.arsdigita.com/books/sql/trees.html 19:37:12 Psychephylax has quit 19:38:11 Psychephylax has joined #openacs 19:38:23 I hug trees...!!!! 19:38:38 wb, psyche! 19:39:51 thanks 19:39:54 I got a ping time out 19:40:20 my medicine is wearing off 19:40:30 What wouldn't I give for my bottle of Dayquil 19:41:01 Dayquil? 19:41:22 yes 19:41:48 what is Dayquil? 19:42:13 I' curious. 19:42:47 Cold remedy. Supposed to not make you sleepy. 19:43:48 Ever heard of yeah opposite of Nyquil 19:43:56 Nyquil is for night and Dayquil is for day 19:44:09 good stuff i tells ya 19:44:29 ok. whatever you say. 19:44:41 I say it's good 19:44:49 Nyquil gets you sleepy though 19:44:51 the other one doesn't 19:45:05 Clears your head pretty well 19:47:48 mmmkay 19:50:39 nvl becomes coalesce, right? 19:51:05 wha? 19:53:36 nvl(v.total,0) as total ---> coalesce(v.total,0) as total - Oracle to PG. 19:55:41 * Psychephylax watches that fly over his head 19:57:48 aha 19:57:54 * Psychephylax finds a bug 19:58:28 ola: yep 20:00:54 thanks. 20:01:16 np 20:03:26 if {[ad_permission_p $package_id manager] || [ad_permission_p $package_id admin] && [$user_type == 'Manager'] || [$user_type == 'Supervisor']} { 20:03:36 oooh! an outer join... 20:04:00 this will only execute the block if user is a manager or admin and they are trying to add a Supervisor or Manager..correct? 20:04:12 * Psychephylax lacks confidence in his skills 20:05:33 sounds right. Try it. 20:06:38 i think i'm missing parenthesis 20:07:08 yeah. after the and, around the or. 20:07:37 over the river and trhough the woods... 20:08:22 lol 20:09:00 gotta love TCL 20:09:00 I vote for this: 20:09:03 if {([ad_permission_p $package_id manager] || [ad_permission_p 20:09:03 $package_id admin]) && ([$user_type == 'Manager'] || [$user_type 20:09:04 == 'Supervisor'])} { 20:09:09 Now I gotta figure out what kind of parenthesis 20:09:28 i second that 20:09:56 much easier to look at it like this: (A or B) and (C or D) 20:11:19 question: 20:11:28 answer: yes or 42 20:11:32 where is everyone? 20:11:37 hmmmm 20:11:46 Well, neither of those fit quiet well 20:11:47 Physically? 20:11:51 Define by everyone 20:12:11 the acs community. 20:12:14 talli has joined #openacs 20:12:19 see 20:12:20 whoa! 20:12:22 you call them and they come 20:12:24 heeeelllloooo 20:12:28 Hey talli 20:12:32 helloooo! 20:12:41 http://www.cnn.com/2001/US/10/03/bus.crash/ 20:12:41 B: http://www.cnn.com/2001/US/10/03/bus.crash/ from Psychephylax 20:12:42 Hi talli 20:12:44 was i summonned? 20:13:04 B:| Greyhound service resumes after fatal bus crash 20:13:04 titled item B 20:13:45 talli: look at the last line of the chatlog! 20:13:51 B: Greyhound Lines resumed bus service at 1 p.m. EDT Wednesday after one of its buses crashed in Tennessee when the driver's throat was slit. Authorities said six people were killed in the crash. 20:13:51 commented item B 20:15:03 and Hijacked Indian airliner lands in New Delhi, CNN confirms. Details soon. 20:19:02 any of you guys into distributed computing? 20:20:34 Like distributed.net or seti@home or something like that? 20:22:27 yeah 20:24:37 not really. I don't like to run that stuff on my development machine and it's the only one I've got. 20:25:05 markd2 has joined #openacs 20:25:19 oh 20:25:23 wb Mark 20:26:06 tnx 20:26:09 arg 20:26:13 felt the urge to go outside and read an oracle book 20:26:15 trying to dumb things down for people is hard 20:26:44 certainly. that's why I avoid polysyllabatic rhetoric in my commonstance discourse 20:27:16 lol 20:29:28 I'd like to show you guys two views so you can tell me if I ported it right: 20:29:52 ok, oracle: 20:29:55 create or replace view mp3_mp3_playlist_map_view as 20:29:55 select m.mp3_id, 20:29:55 m.playlist_id, 20:29:55 m.sort_key, 20:29:55 nvl(v.total,0) as total 20:29:55 from mp3_mp3_playlist_map m, 20:29:58 (select mp3_id, 20:29:59 playlist_id, 20:30:01 sum(vote) as total 20:30:03 from mp3_votes 20:30:05 group by mp3_id, playlist_id) v 20:30:07 where m.mp3_id = v.mp3_id (+) 20:30:09 and m.playlist_id = v.playlist_id (+); 20:30:11 tada! 20:30:17 * Psychephylax falls off his chair 20:30:32 and now PG: 20:30:34 create view mp3_mp3_playlist_map_view as 20:30:34 select m.mp3_id, 20:30:34 m.playlist_id, 20:30:34 m.sort_key, 20:30:35 coalesce(v.total,0) As total 20:30:37 from mp3_mp3_playlist_map m, 20:30:39 left join (select mp3_id, 20:30:41 playlist_id, 20:30:43 sum(vote) as total 20:30:45 from mp3_votes 20:30:47 group by mp3_id, playlist_id) v 20:30:50 on (m.mp3_id = v.mp3_id) 20:30:51 and on (m.playlist_id = v.playlist_id); 20:30:53 voila... 20:31:38 how does that outer join look? 20:32:04 beyond my abilities 20:32:06 lol 20:33:03 Looks ok. I am not a join expert. 20:33:28 my dad is a joint expert...well, at least he was back in Russia 20:33:55 The main thing is that you HAVE to use an alias for the table name in an outer join if you join it to itself( which you are not doing anyway) 20:33:56 can you ask him? 20:34:21 Psychephylax: I assume the extra T is not a mistake... 20:34:37 it's not 20:34:45 hehehe, he was an orthpaedic surgeon 20:34:50 fixed all sorts of joints 20:34:52 Cool. 20:35:10 ok 20:35:24 Is it possible to have variables that were not specifically contracted? 20:36:29 Sure. The contract is for incoming and outgoing variables. Any that stay in the page are OK. 20:36:53 Also you can just leave them out, but you would have to check for them explictly in the code. The contract is just a helpful tool. 20:37:17 heh 20:37:26 not helpful when you're trying to determine where a variable came from :) 20:37:54 ns_set print [ns_getform] is a handy way to see what's in your formadata 20:38:14 well, I traced it down to ad_registration_finite_state_machine_admin_links 20:38:30 Which returns administration links to change users state 20:38:35 but 20:38:42 It returns more than I want to display 20:39:21 i s'pose I can hack the tcl file it's in 20:44:07 i came to a conclusion 20:44:15 If my boss had given me exact specs for what he wants 20:44:18 I would be much happier 20:44:58 * markd2 welcomes psychephylax to the real world 20:45:11 you'll never get exact specs 20:45:21 except for classroom exercises 20:45:23 and even for those.... 20:45:24 heh 20:45:28 well, I have NO spec docs 20:45:34 basically what I want to do I do 20:47:29 then if he doesn't like it I get to redo it all 20:47:33 stupid if you ask me 20:55:46 ugh 20:56:25 you guys familiar with the finite state machine in OACS? 20:56:38 the user_state one 20:56:43 if there's more than one 21:02:30 talli has quit 21:09:10 gah 21:09:13 it doesn't edit 21:13:15 Ok, why the hell isn't it calling the proper function 21:13:17 ooooh 21:13:22 The server has to be restarted 21:14:29 w00t! 21:15:12 Eureka! 21:18:41 m000t 21:18:49 lol 21:18:52 moot to you too 21:20:36 hey Psyche 21:21:12 Hello Roberto 21:21:19 Anyone know when Beta is coming out? 21:22:05 I forgot when. 21:22:10 markd2 has quit 21:22:43 I've been so screwed up by the INS, and it has taken so much time of me that I've been off of things a bit. 21:22:46 that's not very helpful ;) 21:22:59 s/INS/Post-WW2 Gestapo/ 21:23:05 lol 21:23:38 * rbm cries 21:23:44 rbm: hi, do you know if someone is porting mp3jukebox? 21:24:20 ola: No, but if you want to that, I'd love it :-) 21:24:30 And remove that dependency on Perl please 21:24:41 I looked at it. It seems like a piece of cake to port. 21:24:52 I wanna port it! hehehe 21:24:59 You guys always helping me 21:25:02 I wanna help you 21:25:08 what pearl dependency? 21:25:36 the one that brings in the money for the pearls? 21:25:36 perl 21:25:44 :-/ 21:26:26 It uses a little Perl script with a Perl module to extract the ID3 tags from the files and insert them into the database. 21:26:44 aha. 21:27:18 I was exaggerating :) 21:27:23 err. wrong window,. 21:28:11 what do you guys is more efficient/appropriate 21:28:25 I'm hacking a bunch of files that are already written for me 21:28:34 like from acs-subsite and whatnot 21:28:46 is it better to copy them to my package or edit them in theirs? 21:29:09 s/guys/guys think 21:29:24 Is that for a new package? 21:29:34 I guess I'm not understanding what you're trying to do 21:29:47 Well 21:29:51 I'm writing a package 21:30:01 which requires it's own user interface 21:30:23 And things like adding a user, removing a user are kinda written already 21:30:38 so i've edited a bunch of files 21:30:47 for example 21:31:00 the user removal 21:31:23 uses admin-procs.tcl from the kernel (i think) 21:31:50 But I need a modified one, because we don't want to show things like ban a user to the people...so is it better to move these types of things to my package or edit them in place? 21:34:27 oh no! this function has 26 parameters. I think I need to overload. 21:40:00 Psychephylax: Is "admin-procs.tcl" a page or library? 21:40:07 If it's a page, copy and modify. 21:40:17 But how? 21:40:20 argh! 21:40:28 nevermind 21:51:51 library afaict 21:53:16 gah 21:53:26 if only my boss didn't modify the UI every time he takes a look at it 21:54:19 let's seeeee 21:54:22 I was here at 10:30 21:54:27 andi t's 5:50 21:54:45 that's....ummmm 6 hours and 20 minutes? 21:55:32 I'm going home 21:55:32 :) 21:55:41 I can't count that far so it must be long and time to go home 21:55:42 hehehehehe 21:56:09 If it's library, you should be able to use it as is. But if it has UI, you might be better just copying to your package 21:57:14 i be back later 22:00:06 bye 22:11:18 ola has quit 22:33:40 davb has quit 22:57:14 davb has joined #OpenACS