00:00:14 was this the great anti^H^H^H^H social? 00:03:39 I meant here, alot of people are logged in, appartenly still asleep though. 00:04:00 ah 00:04:11 I've gotten one thwapaphylax 00:04:25 and the obligatory connect/disconnect messages from aaronsw 00:04:38 thwap 00:04:45 heh 00:04:59 figured you'd hear your name 00:05:01 and reappear, Kibo style 00:05:19 Actually, i'd been reading #openacs before then 00:05:21 * AaronSw is looking for Disk Copy >= 6.4 00:05:41 hey - have you used netalk on a linux box, and connected to it from os/x? 00:05:53 I'm working on that now, with no joy 00:06:21 Nope, sorry. 00:06:38 * markd2 returns to the nose grinder 00:07:05 * Psychephylax thwaps© davb 00:07:19 chump has quit (Ping timeout: 181 seconds) 00:07:40 aigh 00:07:42 hu 00:07:43 hi 00:08:26 hu hi ho? 00:09:26 Psychephylax: did you go on your trip? 00:15:11 yeah 00:19:24 Roll call! 00:20:01 dinner rolls! 00:20:12 Mmmm@! 00:20:25 I almost got arrested :-< 00:20:32 LOL 00:20:59 it's not funny 00:21:23 I knew that "I *heart* Bin-ladin" T-Shirt would be bad news 00:21:48 lol no 00:21:53 it was a folding knife in my pocket 00:22:53 * markd2 sighs 00:23:04 i brought it with me by total freakish accident 00:23:05 balloons are also forbidden from airplanes 00:23:17 and little cross-stitch needles are banned as well 00:23:32 although if you have a black-belt in Imgonnagetchu, you're welcome to board the plane 00:23:33 it's nuts 00:23:40 lol 00:23:42 Yeah tell me about it 00:27:01 Psychephylax has quit (Ping timeout: 181 seconds) 00:29:57 chump (~chump@alb-66-24-204-217.nycap.rr.com) has joined #openacs 00:32:14 * davb goes to play games, see ya all tomorrow! 00:32:17 davb has quit ("I'm too lame to make a quit message") 00:33:15 Psychephylax (proxy@ool-18baa98f.dyn.optonline.net) has joined #openacs 00:33:27 hi? 00:33:55 'lo 00:34:14 heh 00:34:16 lost service 00:35:00 Anyone here a certified scuba diver? 00:36:01 chump has quit (Ping timeout: 181 seconds) 00:39:11 abbaJ (jabba@adsl-65-65-97-132.dsl.austtx.swbell.net) has joined #openacs 00:41:18 not I 00:54:36 Dang 00:54:40 Have you ever gone? 00:54:45 nope 00:54:53 Bah! 00:54:55 You have to try it 00:55:11 do the masks fit over glasses? 00:55:18 no 00:55:22 I had to take mine off 00:55:25 :) 00:55:29 All I'd be able to see would be the end of my nose 00:55:32 * markd2 is *quite* nearsighted 00:55:33 heh 00:55:37 so am I 00:56:03 I can't read the text on this monitor if I take my glasses off unless it's like font size 20+ 00:56:39 my bad 00:56:45 Unless it's 72 and it's still blurry 00:57:43 Underwater you see better 00:57:51 I need a 200 point size ot see 00:57:58 without glasses 00:57:58 (really!) 00:58:04 -14 diopter correction 00:58:12 and at 200 it's blurry 00:59:05 damn 00:59:26 Well, I was going to say 01:00:23 If you get into scuba diving and don't like contacts, they can make a mask for you that has a corrective glass so you're back to 20/20 or whatever you want 01:00:38 * markd2 ponders the cost 01:00:47 my glasses are like $350 01:00:52 heh 01:01:01 super-duper high density resin 01:01:05 if they were glass, they'd crush my nose 01:01:08 I'm considering that if I get my scuba diving certificate 01:01:25 I have those 01:01:29 they're thin 01:01:53 heh. mine are still thick :-) 01:01:53 They're more expensive than the plain plastic corrective lenses because they're like 1/3 thin 01:02:06 that sucks 01:02:15 the ultimate in the refractive lenses don't come in my perscription 01:02:24 the opto was going on and on about how good it was, then said "oops, sorry. not yet" 01:02:49 you ever considered lasik surgery? 01:03:43 arrgh 01:03:43 no way 01:03:51 why? 01:03:54 nobody comin' *near* my eyes with no damn laser 01:04:01 lol 01:04:15 yeah I'm waiting until it's a lot more common 01:04:41 and to see what the longer-range behavior is 01:04:54 like what happens to folks as the eyes get older with that treatment 01:05:08 near blindness I can handle. total blindness.... no thanks 01:05:56 right 01:06:08 Well, you can still scuba dive 01:06:13 You might need a guide :) 01:06:26 and a big white cane 01:06:30 with flippers 01:06:40 I had to get within 5 inches of things to see them well enough 01:07:01 If you see a dark hunk of stuff don't swim faster :) 01:07:11 hi all 01:07:18 hiya 01:07:34 hi docwolf 01:07:42 Are you a certified scuba diver? 01:07:58 no, i'm not even an uncertified one. 01:08:18 hehe 01:09:25 hmm... looks like human cloning works. 01:09:57 cool 01:10:08 i'm trying to figure out exactly what they did 01:10:23 Mark, since I'm lacking good vision I took pictures underwater when I went scuba diving 01:11:05 cool 01:11:07 any online? 01:11:29 Not the underwater ones 01:11:39 those were on old-skool film 01:11:56 Had to send them to get developed and on a Kodak cd too 01:12:05 29th I should get them back 01:12:15 heh "kodak CD" and "old-skool" in the same thought 01:12:15 i really hope they come out well 01:12:26 hmm? 01:12:47 just amused at Today's Youth :-) 01:12:53 heh 01:12:57 Hey it's all digital 01:12:58 :) 01:13:01 as I sit here wrestling with netatalkd 01:13:35 psyche: you used real film?? gasp. 01:13:45 Well, anyhoo, when they get developed I'll put them up on the web 01:13:59 cool 01:14:09 I found three mystery rolls of film as I cleaned up my desk 01:14:11 we just got them back 01:14:17 alas nothing exciting 01:14:34 nothing blackmail worthy? 01:14:37 well, save for that one of docwolf in a grass skirt holding that liter of Rumblemintz 01:14:56 haha 01:14:58 heh 01:17:06 ugh... looks like afghanistan is getting crazier by the minute. 01:17:34 that whole "prison riot" story is insane. 01:19:02 which one's that? 01:19:10 * markd2 was at a gig this afternoon and missed it 01:19:30 like near 1000 taliban surrendered 01:19:41 and were taken to a fort used as a POW camp 01:19:48 (the fort was like 1 sq. kilometer) 01:19:55 apparently, these dudes weren't searched too well 01:20:02 because many were carrying weapons 01:20:12 so.. once inside the fort, they decided to go postal 01:20:22 ooof 01:20:26 and there was a massive battle. 01:20:30 1 american dead so far. 01:20:35 :-( 01:20:39 my brother-in-law is over there 01:20:44 double :-( 01:20:50 what service? 01:20:53 Maines 01:20:57 he's an NBC specialist 01:21:00 yikes 01:21:21 well, it looks like the american that was killed was CIA (!) 01:21:29 wow 01:21:30 anyway, what was so insane about this battle is 01:21:32 once it started 01:21:38 like all hell broke loose 01:21:42 the entire facility was in anarchy 01:21:53 and apparently the order came down to just eliminate everyone. 01:21:54 so... 01:22:06 _airstrikes_ were called in against the dudes who were rebelling (!) 01:22:13 picture that! 01:22:14 sweet 01:22:20 9 airstrikes total 01:22:29 that must have been some insane shit for our guys inside 01:22:42 directing the airstrikes like 200 yards away from their position 01:22:58 it is like a game of half-life or something 01:23:28 so anyway... i think all the taliban inside the fort were killed. 01:23:31 like 800 or so. 01:23:38 whoa. Japanese naval vessels 01:23:51 but the real problem is that it's going to be difficult for anyone to accept surrendering taliban from now on 01:24:19 I know I'll be double-checking any Taliban that surrender to me 01:24:27 haha 01:28:46 man 01:29:00 It's 9:30 in RD and I'm tired already by NY time 01:36:49 I'm always tired 01:38:15 heh 01:42:21 wtf 01:42:34 I just tried pinging my computer at work 01:42:51 And they did something to the DNS because my ip is no longer lucy.eng.cv.net 01:43:06 but bimbo.eng.cv.net and I don't even know if I still have a desk there 01:49:56 bimbo? 01:51:16 yeah 01:51:31 I guess they were cleaning the DNS entries 02:11:42 anyone awake? 02:12:44 hi 02:13:19 hey 02:13:36 Stupid question but what's a 550 error code for email? 02:14:08 550 is relaying denied (I think) 02:14:26 no 02:14:31 It's mailbox not available 02:14:35 And I figured out why 02:15:31 I set up a .vacation before I left 02:15:38 someone sent me spoofed mail 02:15:52 and the reply was bounced to me with a 550 02:16:56 ah 02:17:19 :/ 02:22:53 talli (~talli@user-uive9fm.dsl.mindspring.com) has joined #openacs 02:26:26 * Psychephylax thwaps© talli 02:27:32 * talli refers Psychephylax to the decades of prior art with regards to the use of "thwap" in cartoons 02:27:54 * talli then quickly and viciously gives Psychephylax a falloosh to his groin. 02:32:03 ouchies 02:32:44 talli has quit ("Peace & Protection 4.00 FINAL BETA") 02:35:35 * Psychephylax goes to bed 02:57:10 AaronSw is now known as DanC2 02:57:50 DanC2 is now known as AaronSw 04:00:36 http://smc.keenspace.com/d/20011125.html 04:00:43 no chump?!? 04:00:46 * markd2 sighs 04:10:09 markd2 has quit ("Bork") 05:21:51 * AaronSw disconnects 09:01:55 rafa (rafa@pe-200.pc.ee.usyd.edu.au) has joined #openacs 09:02:42 rafa has left #openacs 13:37:43 ola (~ola@as3-1-3.mal.s.bonet.se) has joined #openacs 13:39:41 davb (~dave@mail.perb.state.ny.us) has joined #openacs 13:41:06 davb has changed the topic to: OpenACS | Free Web Toolkit | http://openacs.org 13:57:04 hi dave. 13:58:08 hi 13:59:05 you know any good screen shot programs? 14:00:41 no really...I haven't needed one lately. I usually just use Alt-PrtScrn in Windows. 14:01:20 ok 14:05:07 argh 14:05:36 looks like the cat unplugged something again :) 14:07:13 hehe 14:10:19 nope. darn. not sure what it is. the hub and cable modem look ok... 14:11:10 at least according to the wife... I guess I'll have to wait until I get home. 14:23:47 djg (~dirk@212.84.246.68) has joined #openacs 14:41:43 http://www.desktoplinux.com/news/NS2419968593.html 14:41:51 argh! 14:42:02 anyway RedHat offers to enhance MS settlement. 14:42:12 doh 14:42:46 Morning. 14:43:22 http://www.pcmag.com/article/0,2997,s%253D1582%2526a%253D18853,00.asp 14:43:22 more on the same 14:45:13 http://www.pcmag.com/article/0,2997,s%253D1493%2526a%253D18493,00.asp 14:45:17 Free OS/2! 14:46:34 I hate work 14:47:34 sorry to hear that. 14:47:38 Eh 14:47:42 it's just the vacation wearing off 14:49:22 that'll do it 14:49:44 Oh, you missed my scuba diving rants 14:58:07 * AaronSw reconnects 15:05:20 markd2 (~markd2@r-41.195.alltel.net) has joined #openacs 15:05:34 Hi Mark 15:05:44 goot morning! 15:07:14 how is it that I get this error: 15:07:16 can't read "available_problems(problem_id)": no such variable 15:07:26 But I definetly have this: 15:07:43 } -properties { 15:07:43 available_problems:multirow 15:07:43 } 15:07:43 15:07:43 db_multirow available_problems problems_select { 15:07:44 select * from incident_map 15:08:20 since it's select * , I have no idea what your columns are 15:08:38 Didn't someone tell me that * takes them all? 15:08:48 it does 15:08:54 but it doesn't tell the person reading the code what they are 15:09:01 heh 15:09:05 plus it's an opportunity for errors to creep in later 15:09:29 * davb nods 15:09:33 SQL> desc incident_map; 15:09:33 Name Null? Type 15:09:33 ----------------------------------------- -------- ---------------------------- 15:09:33 PROBLEM_ID NOT NULL NUMBER(38) 15:09:33 PROBLEM_DESC VARCHAR2(50) 15:09:33 VISIBLE CHAR(1) 15:09:35 SQL> 15:09:57 ok 15:10:05 are you seeing that error in the adp page, or in the tcl page? 15:10:27 ADP 15:10:32 as far as I understand it 15:10:35 ok 15:11:01 and you've got @available_problems.problem_id@ inside of your tag? 15:11:16 vinod (~vinod@216-164-247-62.s2284.apx1.sbo.ma.dialup.rcn.com) has joined #openacs 15:11:21 hi vinod! 15:11:25 15:11:29 hey dave! 15:11:30 15:11:30 @available_problems.problem_id@ 15:11:30 @available_problems.problem_desc@ 15:11:30 15:11:35 Hey vinod 15:11:38 wb Psychephylax! 15:11:49 Thank you thank you! 15:12:10 Psychephylax has changed the topic to: OpenACS | Free Web Toolkit | http://openacs.org | Scuba Diving is fun! 15:12:18 :) 15:12:38 cool! 15:13:28 Mark, I copied the structure out of my other working page 15:13:50 that shuld work 15:14:02 make sure you don't have an @available_problems.problem_id@ outside of the miultiple tag 15:14:43 aha 15:15:01 Brain not enough coffee 15:15:07 Missing 15:16:11 ah 15:16:20 http://www.students.tut.fi/~tuomov/ion/ - ION another window manager via Sweetcode for markd2 15:16:30 heh 15:16:51 at least that one's not Yet Another Blackbox Clone 15:17:02 did you see the adventures of blogboy? 15:17:07 actually that one is cool. it is geared for all keyboard use. 15:17:13 yes :) 15:17:32 yeah - that reminds me of my blog :-) 15:17:49 current mood: smelly 15:18:09 aha the joys of working at home 15:18:12 nah - you don't change your layout often enough 15:18:32 haha 15:25:25 hmmmm 15:27:50 you want a link that changes based on the state of visible? 15:27:57 Checkbox 15:28:08 if it's visible the box is checked 15:28:17 if it's not visible, the box is unchecked 15:28:47 then you can toggle and hit submit 15:28:53 And it changes the state 15:29:03 ok. 15:29:07 and the thing below is for adding new problems 15:29:54 bear with me, this week is "Remember what ACS is? week" 15:30:33 np 15:30:51 I killed all my brain cells with beer there :) 15:31:14 Ok. so you need to add a checkbox inside the multiple. You need an that sets the checkout one way and an that sets it the other way. 15:31:26 Do you want one submit button for the whole page? 15:32:17 Nah 15:32:19 two will work 15:32:23 can I comment ETP documents? 15:32:31 Hola ola! 15:32:34 * ola is too lazy to check 15:32:39 Tu habla Espaniol muy bien? 15:32:43 Kind of. There is sample code, but I don't know if its official. 15:32:58 Unless its changed lately. 15:33:10 hola Psychephylax. si, si senor 15:34:05 I always mess up Tu = I and Yo = you unless I messed up again 15:34:17 http://openacs.org/sdm/package-repository.tcl?current_entry=FILE%20%2fopenacs%2d4%2fpackages%2fedit%2dthis%2dpage%2ftcl%20etp%2dgc%2etcl&package_id=9 15:34:29 etp-gc.tcl in the tcl directory 15:34:33 Psychephylax: you did:-) 15:34:55 it's tu hablas... 15:34:56 Figures 15:35:06 Heh 15:35:17 Spanish is not my language 15:35:21 did you have a nice trip? 15:35:35 mine neither:-) 15:35:38 Kinda 15:36:39 My car did not start and the hotel is saying the travel agency didn't transfer the funds to them 15:37:05 ack. 15:37:09 Does the adp eq operator compare chars too? 15:37:15 syn. 15:37:52 sure. 15:38:11 or something like that 15:40:22 coolness 15:40:32 heh 15:41:03 ola: let me know how that general comments thing works. I'll need it for my site. 15:41:48 davb: sure thing. I'll probably try it later today. 15:42:38 cool. 15:43:59 how do I bind this checkbox to the specific problem though? 15:44:18 heh. I am looking at computer science books and amazon.com thinks I will like this magazine...:http://www.amazon.com/exec/obidos/ASIN/B00005NIPP/ref=pd_mec_a/002-1649289-0226447 15:44:55 Psychephylax: I was thinking about that...there is a way to pass a multirow variable back to the tcl page...I just am not sure what it is. 15:45:18 oh 15:45:57 "computer science nerds who bought this technical book also need to look at pictures of scantily clad models" 15:46:03 look in the templating docs 16:06:44 til (tils@port-212-202-128-208.reverse.qsc.de) has joined #openacs 16:07:18 hmmm 16:08:02 That check eq 't' does not work right at all 16:10:02 what does it do? 16:10:16 I can't access my server to see my code right now 16:10:19 Depends on what I surround t with 16:10:29 It either checks everything or nothing 16:10:41 weird. 16:10:42 oh 16:10:45 wait 16:10:45 I think I know 16:11:35 Bingo! 16:11:40 I forgot to commit 16:12:16 heh 16:12:30 you've always had problems with commitment 16:12:44 yes yes I did 16:34:46 Where are the templating docs? 16:37:17 vinod has quit (Read error: 104 (Connection reset by peer)) 16:37:34 heh 16:37:44 doc/acs-templating on your server I think 16:38:26 aha 16:38:27 thank you 16:39:05 np 16:50:38 hmm 16:51:26 Is this it? http://167.206.9.143:8080/doc/acs-templating/TclDocs/form.html#template::form::get_combined_values 16:53:25 heh, you have to be admin to look at the docs... hang on, I'll check at aD 16:58:00 I think ad_page_contract will handle it. the template::foo commands are non-standard in ACS. 16:59:17 try something like this: 16:59:37 array 16:59:37 This syntax maps query variables into Tcl arrays. If you specify customfield:array, then query var customfield.foo will translate into the Tcl array entry $customfield(foo). In other words: whatever comes after the dot is used as the key into the array, or, more mathematically: x.y=z => set x(y) z. If you use dot or comma is part of your key (i.e., y above contains comma or dot), then you can easily split on it in your Tcl code. Remember that you can use 16:59:50 in you ad_page_contract as the datasource. 17:00:22 or use a multiple if you can be sure of the order of the data 17:00:40 docwolf has quit () 17:00:52 then you would end up with a list { T F T F ... } 17:01:04 hmmm 17:01:07 * Psychephylax processes 17:06:21 heh, me no understand 17:08:30 I think its like this. to turn your checkboxes into a tcl array name them like this: 17:08:44 name="checkbox.row1" 17:08:44 rbm has quit (Ping timeout: 181 seconds) 17:08:50 name="checkbox.row2" 17:08:53 etc... 17:09:04 ok 17:09:10 this turns into checkbox(row1) checkbox(row2) etc... when you specify 17:09:11 i named them diff 17:09:16 checkbox: array 17:09:20 17:09:31 That works. 17:09:44 i don't get the checkbox: array part 17:10:20 in ad_page_contract specify :array as the type and it will stick all the values into an array. 17:10:48 oh 17:10:58 but you need to name em like thos available_problems.@available_problems.problem_id@ 17:11:16 aha 17:11:24 ok 17:11:29 let me ask you this 17:11:53 i.e. name="available_problems.@available_problems.problem_id@" 17:12:06 I have tcl.page1 which gets all the problem ids and their descriptions and if they are visible or not 17:12:53 adp.page1 displays the id, description and a toggle checkbox 17:13:10 here, i have 2 submit buttons (Update/Add) 17:13:44 If the user hits Update I want to go to tcl.page2 and update the database where the checkboxes have changed 17:14:09 then show adp.page2 to show him what was changed or some confirmation screen 17:14:27 if the user hits add I go to tcl.page3 and add that entry to the database 17:14:55 and go back to adp/tcl.page1 17:15:06 Makes sensei? 17:15:39 yes. 17:15:43 you need two forms. 17:15:50 I have two forms 17:16:15 Ok, you are all set. 17:16:19 heh 17:16:32 The tricky part is getting them to click on the right button. 17:16:49 I'm having the confusion/lack of knowledge on how to make the tcl.page2 process the entries and update the database 17:17:01 I did it like this. 17:17:25 Pass all the checkbox results in the query. You end up with an array or list of values. 17:17:56 compare this to the current state in the database and change it, or just update every row with the value in the query. 17:18:07 ok 17:18:13 that sounds like what I want to do 17:18:37 http://slashdot.org/articles/01/11/26/1543245.shtml - Idiots and web servers don't mix. 17:19:04 Lol 17:19:25 People are complaining that google is finding the stuff on their site for a change... 17:19:42 hahahaha 17:20:28 I shouldn;t store all my passwords in a plain text file under the web server root? 17:21:04 lol 17:22:08 ok 17:22:12 well, here's a problem 17:22:23 it's not passing the off values 17:22:28 add-problem2?1=on&2=on&3=on 17:22:33 should be 17:22:40 add-problem2?1=on&2=on&3=on&4=off 17:22:48 hmmm... 17:23:24 let me see something 17:23:52 Aha 17:23:57 it just passes the on values 17:24:03 so I can set those 17:24:12 I'll do this 17:24:43 1. update blah set visible='f' 17:25:17 2. update blah set visible = 't' where Passed = 'on' 17:29:17 use a case in there, then you only need one step. 17:29:32 or is it decode... whichever is for Oracle 17:30:17 oracle has case also 17:30:56 really? 17:30:59 ok. 17:31:29 yeah but won't I have the problem where someone unchecks the value? 17:31:37 Then it won't show up and it won't be set to off 17:31:50 aha. 17:32:11 It should pass them though.. 17:32:23 yeah, you tell it to the dudes who designed the forms thing 17:32:41 HTML? 17:32:46 yes 17:33:15 I mean I think there is a way to make it work. 17:33:17 aha 17:33:18 I know 17:33:21 yes there is 17:34:55 wait 17:36:18 aha that is the way it works..."specifies the value to be returned to the server if the checkbox is selected when the form is submitted. The default value is ON, but you can specify a different value if you want. When the form is submitted, only the name/value pairs for selected checkboxes are sent to the invoked CGI program. " 17:37:07 right 17:38:42 I wish I could see my server... I already programmed this exact same problem... 17:40:43 shame on you dave :P 17:41:12 i got approved for a MasterCard =) 17:41:15 yay! 17:42:09 yippee for the economy! 17:42:47 markd2 has quit (Ping timeout: 181 seconds) 17:46:04 markd2 (~markd2@r-41.195.alltel.net) has joined #openacs 18:01:33 heh 18:02:38 So Dave, how do I catch this into a list? 18:02:43 or array 18:03:07 actually 18:03:13 hold that thought, it's time for food in my belly 18:19:06 adler (~adler@dsl027-131-050.nyc1.dsl.speakeasy.net) has joined #openacs 18:49:23 * AaronSw disconnects 18:49:53 * AaronSw reconnects 18:55:38 * Psychephylax returns 19:05:26 roll call? 19:05:46 oi 19:05:49 :) 19:06:08 &{} 19:06:38 brb 19:07:16 rbm (rmello@fslc.ser.usu.edu) has joined #openacs 19:07:43 hey rbm 19:09:07 bah 19:12:44 Dave? 19:14:34 hello 19:15:08 Hi 19:15:49 ok 19:16:04 how does it create the list/array for me? 19:16:39 its magic :) ad_page_contract creates it from the query variables 19:16:52 So how do I do this? 19:17:31 I've been poling acs-mail and I've notice there's a capability dump incoming mail from the MTA to the RDBMS, but it seems Oracle specific and therefore infrequently used... 19:18:26 It just seems like it woudl be very interesting to be able to feed information in via email 19:18:35 name=problem_list.@available_problems.problem_id@ 19:18:44 so you're saying my problem_list is a list? 19:19:10 Psychephylax: that looks like the array syntax. To make it a list just use all the same name. 19:19:29 I did 19:19:31 for an array you would have problem_list:array in ad_page_contract 19:19:53 right 19:19:58 doesn't this: name=problem_list.@available_problems.problem_id@ give it a number: 19:20:01 ? 19:20:10 yeah 19:20:15 (I'm just a bot programed to contribute on-topic background noise) 19:20:21 :) 19:21:21 dave, is that a problem? 19:22:51 no, just then they aren't all the same :) so use an array. that is probably better, that way you don't have to rely on the position of the variable in the list. 19:24:21 right 19:24:44 but how do I do "For each element number, update the db where problem_id = number 19:25:01 I have to think about it... 19:25:26 adler: I think all the mail stuff was done inside Oracle before... 19:26:29 aha 19:26:55 Psychephylax: you might have to turn the array into a list 19:27:16 Naaah 19:27:33 array nextelement arrayName searchId 19:27:37 Should work 19:29:11 ok. 19:30:04 or maybe not 19:30:06 talli (~talli@xcdfddb76.ip.ggn.net) has joined #openacs 19:30:26 hi talli 19:31:16 hi talli, wb 19:31:31 arg 19:31:46 davb: I really don't know for sure, but I think oracle just handled the outgoing mail- mta stuff. I talking about incoming mail and wondering why that hasn't been implemented very much 19:31:51 how come i can't do this: ns_log Notice "your problem_list is $list" and it's saying it's an array 19:31:53 hey talli 19:31:59 happy cranksgiving 19:32:12 can I do [array get problem_list] instead of $problem_liost? 19:32:18 yes. 19:32:43 aha 19:33:40 Notice: your problem list is 1 t 3 t 19:33:54 now I need to update the database 19:34:30 right. 19:34:33 davb: like wouldn't it be convenient to be able to respond to the bboard spam via your email client? 19:34:46 adler: yes, very 19:34:57 its in the works I suspect. or on the wish list anyway. 19:35:01 or have a generic way to feed input in via mail 19:35:23 Dave, is my problem_list a list or a string? 19:35:26 It would be nice. 19:35:34 array get creates a list. 19:35:45 ok 19:35:50 the odd ones are the index, even are the value 19:35:50 where is vinod, Mr Mail Stud 19:35:56 now, how do I grab pairs out of that list? 19:36:01 probably out PERFORMing somewhere 19:36:50 heh 19:37:40 hey guys, sorry i was on the phone 19:38:32 talli has quit ("Peace & Protection 4.00 FINAL BETA") 19:39:07 yeah but how do I get the odd ones and the even ones? 19:40:06 there seems to be provisions in acs-mail for some other process to dump mails into one of its tables. and there is an oracle specific script which seems to perform that. But I think we need a deeper api which matches patterns in incoming mails, or does PGP authentication... just thought I'd poll for ideas 19:41:56 adler: sounds like a good candidate for acs-service-contract enabled package 19:43:45 davb: what the best documentation on that so far? 19:45:23 just what is in the acs-service-contract/www/doc 19:45:49 and the sample code in search and openfts-driver 19:46:32 great. that calls for a sandwich 19:48:22 Dave 19:48:46 yes? 19:48:55 how do I get 2 values from the list at a time? 19:48:57 oh yeah. 19:49:01 :) 19:49:02 like this: 19:49:04 * Psychephylax waves 19:49:06 set i 0 19:49:12 foreach item $list { 19:49:21 oh I can just do incr i twice 19:49:27 yeah... 19:49:45 won't there be an array out of bounds error? 19:50:04 talli (~talli@xcdfddb76.ip.ggn.net) has joined #openacs 19:50:31 isn't it a list? 19:50:31 hey guys 19:50:37 yeah it's a list 19:50:49 <--thinking java here 19:50:51 wait... 19:51:20 my method is for when you have two parallel lists. 19:51:26 yoy need a for not a foreach 19:51:34 right 19:58:41 talli has quit () 19:59:01 talli (~talli@xcdfddb76.ip.ggn.net) has joined #openacs 20:01:29 Dave? 20:19:02 w 20:19:56 nblyumbe p2 pool197:S.0 Sun09AM - BitchX 20:20:00 :) 20:20:05 back 20:20:33 wb 20:20:41 ok, i am very close to solving my problem 20:20:51 The array indexing is whacked 20:22:15 Psychephylax: remember its not a real array. the indexes are whatever you say they are... 20:25:30 Well that doesn't work very well does it 20:26:29 I tried it like this: 20:26:31 set p_list [array get problem_list] 20:26:31 set list_length [array size problem_list] 20:26:31 for {set i 0} {$i < $list_length} {incr i 2} { 20:26:31 db_dml update_values "update incident_map set visible = '[lindex $p_list [expr $i+1]]' where problem_id = '[lindex $p_list $\ 20:26:31 i]'" 20:26:33 } 20:27:40 actually that looks ok. 20:29:10 looks can be deceiving 20:29:14 aha 20:29:24 problem_id = ' ' 20:29:35 hmmm? 20:29:36 it thinks it a string? maybe. just guessing 20:29:45 hmmm 20:29:51 Here's another thing 20:29:56 try it without the ''s for problem_id 20:29:58 if I have nothing checked 20:30:24 it craps out saying that I did not supply a value for problem_list 20:30:44 any suggestions on how to get around that>? 20:30:59 isn't it $problem_list? 20:31:04 maybe not, not sure 20:31:37 no no 20:31:44 you are right. 20:31:53 It's doing error checking for me 20:32:01 in the page_contract? 20:32:04 yes 20:32:14 and I want to allow null values 20:32:20 actually 20:32:24 I guess not really 20:34:40 Since you gotta have a problem of some sorts 20:34:40 :) 20:34:40 Aha 20:34:40 It works, if I check one thing at a time 20:34:43 tcl lists start with 0 20:34:57 yes 20:36:35 well 20:36:37 this is whacked 20:36:56 [26/Nov/2001:15:32:20][19810.28][-conn8-] Notice: Your p_list is 4 t 1 t 2 t 3 t 20:36:56 [26/Nov/2001:15:32:20][19810.28][-conn8-] Notice: Your list length is 4 20:37:03 it's about 4 elements off 20:37:30 are you calculating the list length in that loop? 20:37:34 which is incrementing by twos? 20:38:11 no 20:38:13 I have this 20:38:36 set list {1 t 2 f 4 t 3 f} for example 20:38:48 now, I need to update Oracle 20:39:03 so I try i=0 (first element) 20:39:14 and i+1 (second element in pair) 20:39:22 but it's leaving off like half the list 20:40:06 Aha! 20:40:07 Stupid mistake 20:40:08 :) 20:41:26 yup 20:41:27 :) 20:49:21 Anyone know meta tags? 20:52:35 which ones? 20:53:59 Well, 20:54:04 This is what I want to do 20:54:56 go here http://167.206.9.143:8080/snmp/www/add-problem 20:55:44 ok 20:55:58 there? 20:56:02 yes 20:56:11 all boxes are checked right? 20:56:21 yeah 20:56:28 uncheck a few and hit submit 20:56:32 just hit it once 20:56:44 ok 20:57:06 see how it updated the database but it didn't "look" like it did? 20:57:25 no. it looks ok to me. 20:57:27 I wanna make it "cool" and like have a few second delay in there before it updates 20:57:33 really? 20:57:38 yeah 20:57:49 like stick a "Database updated" type thing 20:58:17 How about a message that displays on that page... like pass an updated parameter to it. 20:58:25 add-problem?updated=yes 20:58:38 hmmm 20:58:45 They say "Database Updated" at the top or something. 20:58:59 i see, I see 20:59:01 * Psychephylax thinks 20:59:09 or, have a page that says "database updated, click here to continue" 20:59:19 yeah that's what I tried doing 20:59:27 but it bugged out 20:59:40 watch 20:59:45 click it again and watch what happens 21:00:09 ack 21:00:12 put a link in there also... 21:00:12 I got rid of that meta tag 21:00:13 hold on 21:00:14 heh 21:00:15 does anybody in here know anything about Access? 21:00:20 Yes 21:00:27 unfortunately 21:01:18 Try now 21:01:56 its redirecting to itself... 21:01:59 davb: if i have a group of data and i would like to print the data out as labels on a 3 column page, do you know how i might do this? does my question make sense? 21:02:04 Does it have to be an absolute link or can it be a relative link? 21:02:17 talli: sure. hang on... 21:02:29 Psychephylax: make it absolute to be safe, IE sucks with redirects 21:02:43 talli: access 2000? 21:02:51 davb: yes 21:05:50 talli: go to reports - click on the new button on the toolbar, label wizard. 21:06:59 typical microsoft: Create New Report without using a wizard to select the Label Wizard 21:07:30 It is impossible to use the label wizard by clicking "create report by using wizard" 21:08:09 talli: Access consultant option: pay me $90 and I will click the button for you 21:08:43 talli: or Insert - > Report 21:13:08 ah, label wizard. sounds about right 21:13:39 * Psychephylax gives Mark a cookie 21:15:31 * markd2 wakes up 21:16:28 davb: thanks a bunch, solved my prob 21:16:58 adler has quit ("bitchx is horrible") 21:17:35 np. access has everything, its finding the secret incantation thats the trick part. 21:18:40 Mark, how do I find out if I Made a trigger, and what value it is at now? 21:18:57 s/trigger/sequence 21:19:05 describe user_Sequences; 21:19:10 I did select sequence_name from user_sequences; 21:19:24 to find the "current vlaue", do a select trigger_name.nextval from dual; 21:20:44 Is there a way to advance the sequence? 21:20:57 I already have numbers 1-4 21:21:00 that advances the sequence 21:21:05 I want nextval to return 5 21:21:06 or you can drop the sequence 21:21:19 and recreate it with 'create sequence cookies starting with 500" 21:21:21 or whatever 21:21:30 aha 21:21:44 so if I do a query and it says it's at 4 21:21:47 the next one is 5? 21:21:56 it'll be greater than 4 21:22:00 or is the next one a 4 and the one after it is a 5? 21:22:05 ah 21:22:06 ok 21:22:10 when you do nextval, it bumps th sequence 21:22:19 due to caching, you're not guarnteed it'll increment by 1 21:22:27 usually it will be, but you can't depend n it 21:24:30 ok, exqueeze me for intruding... how do I remove everything after the last slash in a url? 21:25:14 davb? :-) 21:25:52 looking... 21:27:30 try this: [string trimright $fs_root "/"] 21:27:30 21:27:42 remove as in truncating, or remove as in you want the stuff after the last slash? 21:27:59 truncating. 21:28:21 the tcl 'file' commands might do it for you 21:29:06 club-over-the-head approach would be to split the list on /, then join it back without the last element 21:29:27 file dirname 21:29:54 [string trimright $fs_root "/"] 21:29:54 21:29:56 oops 21:30:23 won't that trim everything after http:/ 21:31:07 trimright 21:31:16 if its a URL yes. I thought we were talking a filesystem path. 21:31:16 it'll take off any trailing '/'s 21:31:47 file dirname gives the directory part of a filename 21:32:14 :P ( ok, exqueeze me for intruding... how do I remove everything after the 21:32:14 "Returns a name comprised of all of the path components in name excluding the last element" 21:32:14 last slash in a url? 21:32:22 Psychephylax wins 21:32:29 if anything it would be trimleft / 21:32:34 ack 21:32:40 hang on 21:34:59 ok it's not a filename. [string trimright /foo/bar "/"] becomes /foo/bar. I'd like it to be /foo/... 21:35:13 trimleft removes the first slash. 21:35:30 right 21:35:44 You would have to use regular expressions 21:35:45 no left! 21:35:50 :-) 21:37:03 * davb thinks RE is the way to go 21:37:12 here http://www.scriptics.com/doc/howto/regexp81.html 21:37:30 Scroll down to Noncapturing subpatterns 21:37:33 that should help 21:37:49 * til suggests regexp {^(.*)/} $url match stripped_url 21:38:30 til, I think that would match only the http:/ part once again 21:38:47 * is greedy per default i think 21:38:57 you're right 21:39:41 But that's a problem as well 21:39:43 {^(.*)/?} maybe, then the last slash is optional (like in http://openacs.org ) 21:39:56 what happens if you have http://www.openacs.org/4/markd/likes/cookies 21:40:25 it will get everything up to and including likes/ 21:40:44 that would return "http://www.openacs.org/4/markd/likes" not the slash (guessing) 21:40:58 Ola, what are you trying to cut out? 21:42:58 everything after the last slash. 21:43:22 So if you have http://openacs.org/4/markd/likes/cookies 21:43:25 you want cookies? 21:43:33 I wanna keep the last slash... 21:43:40 so /cookies? 21:44:16 put the slash inside (), like this {^(.*/?)} 21:44:24 no. I want to get rid of cookies - too much calories. 21:44:30 not sure if that works 21:44:39 So what do you want from that url? 21:45:28 no it doesn't - the slash can't be made optional this way 21:45:31 Psychephylax: I want "http://openacs.org/4/markd/likes/" 21:45:37 ok 21:46:48 ^(.*/) 21:46:52 would be my guess 21:47:33 which is what til gave you but it's greedy so it gets up to likes and grabs the / with it 21:48:04 Psychephylax: yeah, but in case of just a hostname "http://openacs.org" that matches "http://" 21:48:25 aha 21:48:34 hmm hang on 21:49:41 I don't have a host name, just /foo/bar/baz... 21:50:26 then this will work ^(.*/) 21:50:41 if he had a hostname he could use bounds to fix it :) 21:51:34 Or lookahead stuff that I don't understand well enough 21:52:56 bye 21:52:59 davb has quit () 22:00:04 yippee! thanks til and Psychephylax and markd2 and davb! IT WORKS. 22:00:39 what's the difference between 4match and $ stripped_url? 22:00:55 s/4match/$match 22:01:02 til has quit (forward.openprojects.net irc.openprojects.net) 22:01:28 talli has quit ("Peace & Protection 4.00 FINAL BETA") 22:04:47 Yippies 22:04:55 heh 22:05:43 i got my shit working too 22:06:03 cool 22:06:42 yup 22:07:45 til (tils@port-212-202-128-208.reverse.qsc.de) has joined #openacs 22:10:18 wooohoooo 22:10:23 I'm totally AOL free now 22:12:22 what are you saying? no AOLserver?? 22:15:43 heh 22:15:47 no, I'm not paying for AOL 22:15:59 i went to their 9.95$ plan a long time ago 22:16:06 and today finally cancelled it 22:22:51 til has quit (Ping timeout: 181 seconds) 22:23:07 bye guys 22:23:11 ola has quit ("changing universes") 22:38:16 * Psychephylax detaches 22:56:44 chump (~chump@alb-66-24-204-217.nycap.rr.com) has joined #openacs 23:28:18 til (tils@port-212-202-128-208.reverse.qsc.de) has joined #openacs 23:49:50 vinod (~vinod@207-172-245-56.s818.apx1.sbo.ma.dialup.rcn.com) has joined #openacs 23:54:21 markdfoo (~Snak@r-41.195.alltel.net) has joined #openacs 23:54:50 markdfoo has quit (Client Quit)