00:19:47 http://www.sundaytimes.co.za/2001/12/09/news/cape/nct02.asp 00:19:48 H: http://www.sundaytimes.co.za/2001/12/09/news/cape/nct02.asp from markd2 00:19:56 H:|Shoplifting techniques in South Africa 00:19:56 titled item H 00:24:44 markd2 has quit (Ping timeout: 181 seconds) 01:31:40 davb (dave@alb-24-58-160-135.nycap.rr.com) has joined #openacs 01:44:52 ironic, I can access the other windows machine great from Linux with Samba, but from windows, no go. 02:21:35 davb has quit (Read error: 104 (Connection reset by peer)) 02:40:02 davb (dave@alb-24-58-160-135.nycap.rr.com) has joined #openacs 02:50:02 davb has quit () 03:59:10 hazmat (~ender@adsl-66-123-57-58.dsl.lsan03.pacbell.net) has joined #openacs 05:00:56 hmm 05:11:38 docwolf (~docwolf@adsl-63-196-15.mia.bellsouth.net) has joined #openacs 05:40:27 docwolf has quit (Ping timeout: 181 seconds) 08:54:33 beattiek (~beattiek@bmhd25b1y14ha.bc.hsia.telus.net) has joined #openacs 08:54:43 beattiek has quit (Client Quit) 08:55:20 beattiek (~beattiek@bmhd25b1y14ha.bc.hsia.telus.net) has joined #openacs 08:55:34 beattiek has quit (Read error: 104 (Connection reset by peer)) 08:55:46 beattiek (~beattiek@bmhd25b1y14ha.bc.hsia.telus.net) has joined #openacs 08:56:26 hey Meta, all. 08:57:35 nm that, X-chat bug. 10:35:12 beattiek has quit (Ping timeout: 181 seconds) 12:32:29 ola (~ola@as3-1-3.mal.s.bonet.se) has joined #openacs 13:39:13 beattiek (~beattiek@bmhd25b1y14ha.bc.hsia.telus.net) has joined #openacs 13:39:30 beattiek has quit (Remote closed the connection) 13:55:44 davb (~dave@208.136.23.203) has joined #openacs 13:56:10 hi davb! 13:56:22 Hello 14:03:22 ola: did you see an email from the bboards about Oracle and AOlserver not shutting down? (if you subscribe to the bboards) 14:03:57 don't think so. when was this? 14:04:09 last night. I deleted it and I can't find the thread. 14:04:39 :) 14:05:17 lemme check... 14:05:19 darn. It might have been the testing or other bboard. 14:05:20 oh well.. 14:12:34 perhaps this one: http://openacs.org/bboard/q-and-a-fetch-msg.tcl?msg_id=0003RT&topic_id=OpenACS&topic= 14:12:41 ? 14:13:35 hmm... that was today...:-P 14:15:17 thanks 14:15:19 ok. 14:15:23 for you :) 14:15:44 It was on my email when I got up this moring... :) 14:15:55 thanks! 14:16:19 davb: I installed qmail just now and wonder if I did the right thing when I chose "Maildir"? 14:16:23 np :-) 14:16:28 yes! 14:16:34 Maildir is the best. 14:16:57 cool. what client do you recommend? 14:17:03 mutt? 14:17:07 I use mutt as an IMAP client. 14:17:14 It works good for POP3 also. 14:17:31 Either that or the Mozilla client is not bad if you want and X windows client. 14:17:32 great, thanks 14:17:37 np. 14:17:39 ok 14:18:32 http://linuxbrit.co.uk/mutt/ 14:18:32 A: http://linuxbrit.co.uk/mutt/ from davb 14:18:44 A:|Excellent example muttrc file. 14:18:44 titled item A 14:21:32 what about multiple domains? I have polyxena.net and infogettable.net. Should I put the domains in rcthosts and locals or use virtual domains? 14:23:44 I use virtual domains. 14:24:03 It depends. Do all the mail accounts have user accounts on the machine? If not use virtual domains. 14:24:16 I use vpopmail with courier-imap to do pop3 and imap. 14:24:28 vpopmail is all you need to do pop3. 14:24:59 Or check out the links at www.qmail.org there are alot. 14:27:32 ok. I guess I'll try vpopmail (my brother has an account but I think he'll want to use pop3) 14:29:11 http://www.inter7.com/vpopmail/ 14:29:11 B: http://www.inter7.com/vpopmail/ from davb 14:29:21 B:|Vpopmail virtual domain support for qmail 14:29:21 titled item B 14:38:33 djg (~dirk@212.84.246.68) has joined #openacs 14:38:50 djg has quit (Client Quit) 15:04:16 http://www.web-graphics.com/ 15:04:17 C: http://www.web-graphics.com/ from davb 15:04:51 C:|Web-Graphics.com - Information and Resources for hypertext interface designers 15:04:52 titled item C 15:10:53 miguel_25 (~miguel25@cancerbero.unileon.es) has joined #openacs 15:10:59 hi all!! 15:11:25 Welcome miguel_25 15:11:27 hey miguel_25! 15:12:30 how are you doing? 15:12:35 i am doing the problem sets 15:13:20 i am working now on the problem set 1 15:13:27 and i am having problems with one fuction 15:13:51 what's the problem? 15:14:24 the system cannot use a fuction called db_foreach 15:14:37 if you want i can give you the server.log 15:14:41 are you on 3.2.5? 15:14:56 yes 15:15:09 is there any problem with that version? 15:15:39 no. but it doesn't have that command by default.:-) 15:16:13 your Psets apper to be fot 4.X 15:16:29 ok 15:16:36 so how i can sort it out? 15:16:44 s/apper to be fot/appear to be for 15:17:44 I think you can add the new db API to 3.X. lemme check... 15:17:50 ok 15:26:41 http://michael.cleverly.com/aolserver/nstcl/ 15:26:42 D: http://michael.cleverly.com/aolserver/nstcl/ from ola 15:26:56 ola has quit ("changing universes") 15:27:02 ola (~ola@as3-1-3.mal.s.bonet.se) has joined #openacs 15:28:42 D:|nstcl: AOLserver / OpenNSD-style API routines for tclsh 15:28:42 titled item D 15:29:35 http://www.carnageblender.com/public/10-database-procs.tcl.txt 15:29:36 E: http://www.carnageblender.com/public/10-database-procs.tcl.txt from davb 15:29:55 E:|OpenACS 4 database API for OpenACS 3 15:29:55 titled item E 15:30:17 Make sure to use the pgdriver 2.1 15:30:31 so which web site should i check? 15:30:38 also see this thread: http://openacs.org/bboard/q-and-a-fetch-msg.tcl?msg_id=00019E&topic_id=11&topic=OpenACS 15:31:05 ok many thanks 15:31:14 The first one implements the AOLserver database commands in tcl so you can write a tcl program in the same manner as an aolserver tcl page. 15:31:29 the second one is the backport of the OpenACS 4 database API for OpenACS 3. 15:31:40 ok 15:31:54 so i guess that for working on the exercise of the problem set 1 15:32:08 i will need to port the api to openacs 3 right? 15:32:54 by the way, i am using the pgdriver 2.1 15:33:00 and PgreSQL 7.1.3 15:33:34 If you use the ported API you should be able to use the database API that is in the psets, but I don't know if the psets use the user/group api in OpenACS 4 or not. 15:34:26 as far as i have read it seams that there are only a few modules group enables 15:34:31 enabled sorry 15:34:49 at least for the first problem set i think porting would be fine 15:35:01 i dont know for the others :) 15:35:04 many thanks for the links 15:38:16 good luck. I never did the psets. I just downloaded the code and started fooling around with it :) 15:38:55 what tutorials, books or whatever did u use for fooling around with it :) ? 15:39:12 i have to do them because my boss ask me to do them, but i am not very happy about it 15:39:35 by the way ola tell me what it is the link you gave for. 15:44:00 miguel: I was confusing the AOLserver API with the ACS API... (the link that Dave gave you should work, though) 15:44:00 davb: this link: http://www.carnageblender.com/public/10-database-procs.tcl.txt 15:44:14 i just copy those proc definitions and it will work right? 15:44:55 so yours is not relevant? 15:45:31 not really in this case... 15:46:08 ok thanks anyway 15:46:13 ;) 15:46:23 heh - sorry 15:46:52 davb which tutorials, manuals, books did u use to get into the OpenACS tool? 15:48:23 ive downloaded a tcl/tk draft book which looks fine 16:04:43 by the way the only problem sets that i could find are for ACS version 3 or 4 right? there is no problem sets for openacs? 16:14:00 yes. but read that thread i pointed to. vinod found one that wasn't ported. 16:14:24 Yes. there are not OpenACS specific psets. 16:14:40 I read SQL for Web Nerds and Tcl for Web Nerds and "the book" 16:14:53 http://www.arsdigita.com/books/sql 16:14:53 F: http://www.arsdigita.com/books/sql from davb 16:14:58 F:|SQL for Web Nerds 16:14:58 titled item F 16:15:10 http://www.arsdigita.com/books/tcl 16:15:10 G: http://www.arsdigita.com/books/tcl from davb 16:15:15 G:|Tcl for Web Nerds 16:15:16 titled item G 16:15:32 also the aolserver documentation is good and has the Tcl reference along with the AOLserver Tcl/ADP apis. 16:15:54 http://aolserver.com/docs/ 16:15:55 H: http://aolserver.com/docs/ from davb 16:16:02 H:|AOLserver documentation 16:16:02 titled item H 16:16:04 ok ive got all of them 16:16:27 i just downloaded a pdf draft of a book a guy suggested in the forums 16:16:31 Reading them through didn't really help, but when I have a tcl question or SQL question I reread them. 16:16:35 http://www.beedub.com/book/ 16:16:35 I: http://www.beedub.com/book/ from miguel_25 16:17:04 That is also supposed to be good. There are a few postgresql books around online also and the postgresql documentation. 16:17:41 you mean the monjiam book? 16:17:53 also the pdfs in the source distribution are good 16:17:57 That one, but there are a couple of other ones also. 16:18:05 do you know anything else about PG¿? 16:18:12 give any link pleas 16:18:38 talli (~talli@xcdfddb76.ip.ggn.net) has joined #openacs 16:18:42 http://www.postgresql.info/ 16:18:42 J: http://www.postgresql.info/ from davb 16:18:48 J:|Practical Postgresql 16:18:49 titled item J 16:18:58 J: good introduction to postgresql 16:18:58 commented item J 16:19:01 hi talli 16:19:04 hey guys 16:19:49 does anyone know the URL for the technotes or techdocs or whatever postgresql resource page? 16:21:02 do you know if there is a pdf version of the practical postgresql ? 16:22:30 you guys should also check out Essential PostgreSQL 16:22:31 http://www.amazon.com/exec/obidos/ASIN/0735711216/qid=1008174230/sr=8-1/ref=sr_8_3_1/104-2148058-6921566 16:22:32 K: http://www.amazon.com/exec/obidos/ASIN/0735711216/qid=1008174230/sr=8-1/ref=sr_8_3_1/104-2148058-6921566 from talli 16:22:46 K: New PG book, kind of PG in a Nutshell thing 16:22:47 commented item K 16:23:07 thanks talli 16:23:13 no prob 16:25:48 do you know any link of a free book (pdf or html) apart of the one davb has just given of practical postgresql and the Monjiam´s book 16:25:49 ? 16:26:15 no, those are the two that i know of 16:26:30 the momjn book is very much for beginners 16:27:00 and i haven't heard a lot of good stuff abotu the other 16:28:12 the link you gave us, there is a html version or pdf? (i am a student so i rather prefer to take free books ;) ) 16:29:16 mmm... i don't think so. check out the publishers site, or the homepage of the author 16:29:30 the truth is, though, that you should be able to get all of the info you need in three places 16:29:33 four places, sorry 16:29:35 google is your firend 16:29:40 friend 16:29:48 first, on the PG mailing list and the archives 16:30:02 second, on the PG website, adn the other pages davb gave you 16:30:17 third, on the OACS website, where everyone helps and DonB is a god 16:30:29 and fourth, in this IRC channel, where markd is the reigning god 16:31:03 ok i checked in the two first places 16:31:10 i havent asked to DonB 16:31:20 neither to markd. where is he? 16:31:34 don't email donb directly, just post something to the OACS bboards and people will help 16:31:39 markd comes by once in a while 16:31:53 so far i just found monjiam´s book, the pdfs of the source distribution 16:31:57 and Psychephylax should help you too, since he got by all summer in this room asking for help 16:32:01 isn't that right, Psychephylax 16:32:13 He is in finals mode... 16:32:21 he he he 16:32:39 ah... 16:32:47 and the docs of the PG web site 16:33:00 in the PG mailing lists nobody has given me any link 16:33:29 and by the way i am looking around from the web link davb has just given me to see if i can find something 16:33:48 postgresql.orgs database is down 16:33:52 very ironic 16:34:12 whoa 16:34:29 try also 16:34:33 he he he 16:34:37 http://techdocs.postgresql.org 16:34:37 L: http://techdocs.postgresql.org from davb 16:34:42 if it ever comes back up. 16:34:55 davb, did you give him roberto's page? 16:35:21 roberto mello is also very helpful. he's a serious PG hacker 16:35:23 http://www.brasileiro.net/postgres/ 16:35:23 M: http://www.brasileiro.net/postgres/ from talli 16:35:34 miguel_25: roberto's PG page of info 16:35:36 roberto´s mello¿ 16:35:49 is he brazilian? 16:35:55 yeah 16:35:57 brazilian 16:36:07 cool 16:36:20 so maybe you guys can try and speak spanish to portugese and vice versa :) 16:36:45 i guess portuguese and brazilians are much better at spanish that we are at portuguese 16:36:55 i dont know why but they are good at languages 16:37:36 does he connect to this channel? 16:38:50 yes, but i think that he is in the midst of finals as well because he's disappeared for a while 16:39:07 but he'll be back. he's one of the OACS gatekeepers 16:39:09 ok 16:39:10 he he he 16:39:13 we are all in troubles 16:39:55 yeah. but roberto is a bit insane because he used to be in medical school and quit so that he could be an undergraduate computer science student 16:40:09 so he is a smarty pants, but an insane smarty pants 16:40:55 he he he 16:41:02 lol 16:41:48 well i think we all in CS are a bit insane dont u think so? sometimes i thinking about quit and moving to a more calm thing maybe gardening? :) 16:42:24 i studied EE, but i kind of cheated because i made my own major and skipped all the really hard classes, like fields 16:42:55 but to be honest, after i graduated, i'm glad i studied engineering and kind of bummed i didn't take those hard classes. 16:43:11 you learn a lot, and you learn how to learn as well 16:43:44 that being said, none of my peers had any clue about how to write a sentence, and i don't come anywhere near using any of my EE degree 16:43:57 i haven't solved a differential equation since my last final 16:44:36 talli: do you know if pat installed openacs from CVS? 16:44:51 or anyone else? I can't get the OpenACS 4 checkout to install. 16:46:53 what do u mean none of yours peers know how to write a sentence? i think you are right the best thing about an engineering background is you learn of how to learn 16:47:22 none of my peers at school were capable of expressing themselves very well. the lab reports they would write were pathetic 16:47:41 it's critically important that people be able to express themselves in writing. 16:48:06 thankfully, a rich alum of my school donated 20 million dollars to the schol JUST to set up a program to teach engineers to write 16:48:47 when you graduate and you have a job, you'll see how important it is that your boss be able to write specs well, that the software you use is documented well, that you can submit reports that others can understand, etc. 16:49:37 thats the worst part of engineering, people think that to a literate person is something to be ashamed of 16:50:04 what do you work for? 16:50:37 musea technologies, an OACS company 16:50:45 * Psychephylax seeks his killer sleeping robot after talli 16:51:01 :-D 16:51:36 I agree with talli's statement about being able to write and convey your ideas clearly 16:51:57 Right now I'm working on a school project that has incomplete specs...it's very frustrating 16:52:05 psychephylax do u know any interesting link about PG? 16:52:10 nope 16:52:15 I like Oracle :) 16:52:25 he he he 16:52:25 ok 16:52:26 yeah right, you like oracle 16:52:37 And Sybase is weak...I can't even name constraints!!! 16:52:58 Psyche all summer: "markd2, how do i ask oracle to come out and play?" 16:53:07 hehehehe 16:53:13 You mean fall :) 16:54:13 oh, right. sorry 16:54:16 I can't believe it..my boss gave me a week off to finish school (finals and all) 16:54:50 you are about to graduate? 16:55:40 in 4 days 16:55:52 Assuming I pass all my classes 16:55:53 :-/ 16:56:09 good luck then 16:56:58 Thanks 16:58:40 so talli you to 16:58:40 ld me to ask in OACS forums about books of PG¿ 16:58:52 talli is a genius :) 17:03:50 talli you work with PG ? 17:06:16 isn't Oracle varchar2 up to 4000 bytes not 255 like Sybase? 17:06:53 yes 17:07:10 Just another reason why I love Oracle and hate Sybase :-D 17:07:24 * Psychephylax gives dave cold squid 17:07:50 anyone have a laptop here? 17:09:15 talli has quit () 17:18:39 I have an old IBM 17:20:41 I'm looking for a laptop :) 17:26:13 IBMs are very nice, but a little more expensive. 17:26:19 yeah I know 17:26:37 I'm looking for one under 1500 17:28:19 talli (~talli@xcdfddb76.ip.ggn.net) has joined #openacs 17:28:46 davb has quit (Ping timeout: 181 seconds) 17:32:51 davb (~dave@208.136.23.203) has joined #openacs 17:38:32 wb 17:39:15 i am just wondering the OACS 4 is perfectly working or it is a beta version? 17:41:38 miguel_25: OACS4 works nicely, but it will only go into beta next week 17:41:47 it should be released by the first of the year 17:42:07 that means there won't be horrible amounts of bugs and what is there works for what it is worth 17:42:31 however, there are some major pieces of the system that either need to be removed, optimized or completley rewritten 17:42:47 by the way ACS which is the current and lately version? 17:43:04 most of that is legacy code from aD 17:43:29 OACS4 will be more or less equivalent to ACS4.2. actually, no it won't 17:43:44 OACS4 will be the next "official" release of ACS4.2 17:43:49 only it will be much much better 17:44:30 markd2 (~Snak@r-41.98.alltel.net) has joined #openacs 17:45:41 what about ACS, will be left over? 17:51:53 * Psychephylax hands mark a cookie 17:52:03 cookies!!! 17:52:21 * Psychephylax gives Mark some milk to go with his tasty cookies 17:52:28 thankyou thankyou 17:52:34 no problem :) 17:52:57 Any ideas how to validate input in java? I only want them to enter numbers, not strings 17:53:26 does anyone has experienced a strange behaviour of .tcl pages under Netscape 6.2? 17:53:33 use the Integer.parsestring (or whatever it is) 17:53:36 and catch the exception 17:53:45 if no exception it's good, if you get an exception, complain 17:54:57 I was considering checking what keys the user enters 17:55:06 that's a world of hurt 17:55:15 nah, there's an event for it 17:55:35 just integers? 17:55:35 or decimal numbers too? 17:56:19 just integers 17:56:59 I just check if e.VK_0 || e.VK_1 || e.VK_2...etc then ok else "txtStatus.setText(blah); 17:57:17 no negative numbers? 17:58:24 you can't have a negative number for a book copy 17:58:29 that would be funny 17:58:29 lol 17:58:45 yeah, I'd like to borrow that -3 copy of your Java in a Nutshel please 17:58:48 then you should be OK 17:58:48 heh 18:04:12 :) 18:04:15 Sybase sucks 18:04:18 it doesn't let you name constraints 18:04:22 How horrible! 18:04:29 oh the horror 18:13:49 * talli is away (Auto-away on idle) after 30min idle [msglog:on] 18:45:16 ola has quit (Ping timeout: 181 seconds) 19:40:52 ola (~ola@as3-1-3.mal.s.bonet.se) has joined #openacs 19:51:03 welcome back ola 19:54:09 thanks! 19:54:11 does anyone know what is the nvl function for? 19:54:27 i am checking the sql for web nerds and i cant find that function 19:54:41 check this: 19:55:04 http://openacs.org/new-file-storage/download/guidelines.html?version_id=172 19:55:04 N: http://openacs.org/new-file-storage/download/guidelines.html?version_id=172 from davb 19:55:15 the corresponding function in PG is coalesce 19:55:27 many thanks davb 19:55:33 nvl is a "null value" function 19:55:42 ok 19:55:45 thanks 19:55:55 nvl (column, 'cookies') will return 'cookies' for the rows if column is null 19:57:04 ahhh ok now i got the sense 19:57:13 first time i see this kind of function 20:01:08 many thanks for the link 20:02:57 np 20:03:39 Yeah! Its not just me. The CVS is broken. 20:06:04 by the way someone told me before that I needed pgdriver 2.1. Ive just got pgdriver-2.0.1 is that the current one? 20:09:26 miguel_25: yes it is. 20:09:34 ok thanks 20:09:49 ok. 20:09:54 My mistake. 20:13:12 markd2 has quit ("Bork") 20:13:59 markd2 (~Snak@r-41.98.alltel.net) has joined #openacs 20:16:30 no problem davb 20:16:41 i am checking the guide for porting oracle code to PG 20:17:09 and they say that there is an issue with CLOBS. Is that fixed with the new releases in PG right? 20:18:14 what guide is that? roberto's guide? 20:18:21 * talli returns 20:19:40 no 20:19:44 this link 20:19:45 http://openacs.org/doc/openacs/html/oracle-to-pg-porting.html 20:19:46 O: http://openacs.org/doc/openacs/html/oracle-to-pg-porting.html from miguel_25 20:23:26 where is roberto´s 20:23:27 Ç? 20:30:18 miguel_25: roberto's porting guide is at his website www.brasileiro.net/ 20:30:32 but it shoudl be the same one you are using 20:31:23 ok 20:32:12 i am porting all the useful html docs that i found to pdf so i rather prefer to have the most updated docs 20:39:08 hahaha 20:39:22 I just came back from my first day of trying out the local gym 20:39:34 the treadmill there told me I will die soon 20:40:02 watch out mate 20:40:06 ;) 20:42:56 heh 20:43:47 * Psychephylax waves a tasty cookie for Mark 20:44:39 * markd2 wakes up 20:45:37 stupid question but it is possible to increment everything in a column by one using a trigger (without using stored procedures though) right? 20:45:52 I guess 20:45:56 or you could use an update statement 20:46:04 well 20:46:09 would this work? 20:47:13 select cookie from cookie_jar (update cookie_jar set cookie = cookie + 1) 20:47:33 you can't have an update as a subquery - what would it return? 20:47:47 just the update cookie_jar set cookie = cookie + 1; 20:47:55 ok 20:47:58 let me try this 20:50:14 bye guys 20:50:23 ok cool 20:50:24 it works 20:50:25 bye miguel_25 20:50:26 woot! 20:50:30 get one free 20:50:36 miguel_25 has quit () 20:50:40 lol 20:52:13 I am in "very poor" shape as the treadmill told me 20:52:34 Psychephylax, are you going to ask markd2 for help with that, too? 20:52:39 heh 20:52:40 no 20:52:50 markd2, can you help him with that? 20:52:59 He already has 20:53:02 he eats all my cookies 20:53:07 maybe send him some 360s to blow up 20:53:13 better yet, 260s 20:55:46 :( 20:56:34 ola has quit ("changing universes") 20:58:40 Psychephylax: you will get better very quickly as long as you exercise at least 1/2 hour 3 times a week. 20:59:18 heh 20:59:19 That's what I figured 20:59:29 see if he can inflate one of the 646's in one lungfull 20:59:31 But I need a buddy to work out with me :) 20:59:37 I can occasionally inflate 160s 20:59:41 What's a 646? 20:59:43 but most of the time I just hurt myself 20:59:47 it's a big balloon 20:59:52 oh 20:59:52 6" diameter, ~46" long 21:01:29 Mark, can you do comparisons in a trigger? 21:01:38 like if something is not null then do this else don't 21:01:46 aigh 21:01:49 sure 21:01:55 ok 21:02:50 ok 21:02:56 so I have this statement: update Withdrawn set Reminder = Reminder + 1 21:03:07 I need to make it update only the things that don't have NULL 21:03:40 uh... null + 1 == null 21:03:43 so you don't need to do any work 21:03:47 Cool 21:03:47 ! 21:03:50 :-D 21:03:56 I guess you slept through that part of the lecture 21:04:03 Zzzzzzzz ooo :-) 21:04:04 Maybe 21:04:08 k:-O 21:04:10 although that sounds vaguely familiar 21:04:12 oh my god! there's an axe in my head 21:04:31 rofl 21:05:17 ok 21:05:41 another trigger (sorry I never used triggers so I don't knwo what they are capable of) 21:05:45 question 21:06:12 What happens if the column is empty and I try to increment the values in it 21:06:13 basically it's just a piece of arbitrary code that runs either before or after an insert/update or delete 21:06:17 will that crap out or just nothing will happen 21:06:25 if empty == null, then null + 1 = null 21:07:04 no I mean if you have a table but the table contains no data 21:07:18 it'll just then do the work on zero rows 21:07:20 so you'll be ok 21:07:24 cool 21:07:33 ok 21:07:36 so I did the easy part 21:07:57 this part of this trigger has to go through a table and do something to all the books that match the criteria 21:08:40 I'm thinking it would be a subquery into an update 21:09:32 * markd2 looks confused 21:09:43 I'm thinking of triggers in the oracle sense 21:09:50 in that they happen on inserts/updates/deletes 21:09:56 right 21:10:01 if you have some code that's being executed regularly (like a job), you can do anything you want to in there 21:10:03 This is what I have (trying to do) 21:10:23 We have a Rollover table that has an Uptime row 21:10:27 it stores an int... 21:10:41 When the user hits Next Day in the interface....the number is incremented by one 21:10:56 I am writing a trigger on that update that does this: 21:11:10 Updates books that are out to be "Out for x+1 days" 21:11:23 Updates the days since last reminder by incrementing it by one 21:11:27 ok 21:11:54 Then a book that has been on hold for 3 days reverts back to on-shelf status 21:12:42 And if Out for 3 days then I need to set Reminder to be 0 21:13:19 update books set status = on-shelf if status = on-hold and days_on_hold = 3; 21:13:24 s/if/where/ 21:13:30 ok 21:13:57 How about this 21:14:00 update books set reminder = 0 where status=out and days_out = 3; 21:14:01 update Withdrawn set Reminder = 0 where Reminder < 3 21:14:10 Ack 21:14:40 i'll show you my full trigger when I finish 21:14:44 sounds kinky 21:14:55 yeah. :) 21:19:48 ok 21:19:54 This is the hard one for me 21:20:20 I need to update a different table from what the trigger is on 21:20:39 what's hard about that? 21:20:44 not sure yet 21:20:46 update table2 set cookies='more' where user='markd' 21:22:18 ok 21:22:22 this is what I have: 21:22:36 a HoldQueue table with ISBN, DaysOnHold 21:23:14 * talli is away (Auto-away on idle) after 30min idle [msglog:on] 21:23:37 wait...I think I might have a slight problem here 21:24:18 not me..my friend :) 21:27:54 ok 21:28:24 this is the problem my friend conjured up 21:28:45 We have a HoldQueue table 21:29:02 Basically when people want to hold a book for 2 days that's where it gets stored 21:30:16 The rule is that after 3 days the person who put the book on hold gets removed and the book goes back to on-shelf status 21:30:34 However, I asked him what happens if there are 2 people who want the book on Hold 21:30:48 and the second one puts it on hold 2 days after 21:31:32 then it should be on hold still 21:31:40 until there are 0 people who want the book on hold 21:32:09 you have one record for each book/patron hold in the holdqueue? 21:33:09 the holdqueue has the ISBN of the book, the id of the person who has it on hold, days on hold, position (I'm guessing in the queue) and lastcalled (to remind them about something) 21:34:55 How about putting the date it was put on hold in there. 21:35:04 http://web.0sil8.com/episodes/megway/home.html 21:35:04 P: http://web.0sil8.com/episodes/megway/home.html from markd2 21:35:11 Then you can order them and just compare the onhold date to the current date to decide if it comes off or not. 21:35:22 hmmm 21:35:25 * Psychephylax thinks 21:35:27 P:|MTH - Megway Transporting Human 21:35:27 titled item P 21:35:36 P:Revolutionizes transportation 21:35:37 commented item P 21:35:52 ohmigod some people have too much time! 21:36:04 Mark 21:36:12 can you combine two things into one statement? 21:36:16 I need a delete and update 21:36:27 where the update uses one of the variables from delete 21:36:33 why would you combine them in one statement? 21:36:39 hmmm 21:36:50 please elaborate 21:37:39 well, I need to delete from HoldQueue where DaysOnHold > 3 AND then I need to update the Copy table and set the status of the ISBN that was just freed to be on shelf and do it only if there are no more people who want this book on hold 21:37:58 you'll need two statements 21:37:59 but just do them serially 21:38:12 But how will the update know what the ISBN of the freed book was? 21:38:21 oh 21:38:33 yeah 21:38:36 ..oh :p 21:38:53 update table set blah = whetever where isbn = (select isbn from ook where your_delete_predicate); 21:38:59 delete from ook where your_delete_predicate 21:39:09 elaborate 21:39:28 not much more I can elaborate 21:39:40 lemme know what word you don't understand :-) 21:39:49 delete_predicate 21:40:02 that's your where clause that you decide what to delete 21:40:11 delete from HoldQueue where DaysOnHold > 3 21:40:13 update Copy set Status = on-shelf where Status = on-hold AND (select count(*) where ISBN = ISBNfromDelete) 21:40:13 where cookies = ketchep and topping = spam 21:40:44 this ain't C. your AND statement is syntax error 21:40:54 why 21:40:57 it just is 21:41:06 SQL ain't C 21:41:06 Explain this isn't C stuff 21:41:16 "1" isn't "true" in sql 21:41:18 so you can't do "AND 1" 21:41:29 you can do "and exists (select 1 from blah where isbn = whatever)" 21:41:49 oh 21:41:55 I forgot to add a comparison statement 21:42:15 should have = 0 on the end 21:42:27 ok 21:42:29 then that should work 21:42:41 but I don't know how to get the ISBN!!!! 21:42:42 :-( 21:42:58 select isbn from books where your_delete_predicate 21:43:05 there's this magical thing called 'transactions' 21:43:14 you can do multiple statements and do work 21:43:15 Hmm 21:43:24 you don't have to cram it all into one statement 21:43:30 sybase has some procedural extensions. use them 21:43:40 This isn't worth my time though :) 21:43:49 I'd rather use Oracle in the first place 21:44:31 There has to be a way to combine the two statements 21:45:01 not an update and a delete 21:45:09 just give up on that tack 21:45:12 you'll waste a lot of time 21:45:24 hmmm 21:45:58 can you do this work in java-land? 21:46:04 good luck 21:46:06 i could 21:46:08 davb has quit () 21:46:09 do it there. 21:46:11 much much much easier 21:46:22 use a query to get your isbn, walk through it using loops and whatnot 21:46:24 I was hoping to impress the professor 21:46:31 by using a trigger 21:46:34 you'll just impress him by misunderstanding basic SQL 21:46:43 heh 21:46:50 sounds like he's a dork anyway 21:46:56 he is 21:47:18 oh well 21:47:23 I'll jsut do the removal of a book now 22:00:08 bbiab 22:08:25 til (tils@port-212-202-128-205.reverse.qsc.de) has joined #openacs 22:08:35 hiya 22:08:51 hi there 22:10:32 hmm 22:27:14 Mark? 22:27:18 * Psychephylax waves a cookie 22:28:24 hmmmm? 22:28:33 * markd2 blames canada 22:28:43 does Oracle have "Referencing" in Triggers? 22:28:54 don't know 22:28:55 what does that mean? 22:29:17 REFERENCING clause The REFERENCING OLD and REFERENCING 22:29:17 NEW clauses allow you to refer to the deleted and inserted rows. For the 22:29:17 purposes of this clause, an UPDATE is treated as a delete followed by an 22:29:31 yes 22:29:38 you can use the (I think) :new and :old metathingies 22:29:52 :new.thingie = :old.something * 2; 22:30:31 But this doesn't help my problem does it? 22:30:41 nope 22:30:48 what about Create Variable? 22:30:57 I'm not going to talk about it anymore 22:31:01 lol 22:31:06 alright alright :( 22:31:10 I think it's a waste of time, so I'm not going to waste my time 22:31:15 * Psychephylax wrestles the cookie away from Mark 22:31:18 besides, I have an oracle test tomorrow =:-O 22:31:28 til has quit (Ping timeout: 182 seconds) 22:31:30 Good luck 22:31:35 I'll need it 22:31:43 scoring 70 and 80 percents on my practice tests 22:31:51 I usually do 5-10% better on the real test than the practice ones 22:31:54 so I'm hoping that holds 22:33:19 :/ 22:33:54 k||-O 22:33:56 oh my god! 22:34:01 Geordi has an axe in his head! 22:34:14 rofl 22:35:38 markd2: how high do you have to score in order to pass an oracle DBA test? 22:36:21 something insanely low 22:36:25 2% or something 22:36:28 (or maybe 60%) 22:36:47 so unless I *totally* choke, I should at least pass 22:36:59 but it Just Won't Be Right if I don't do really well :-) 22:39:15 i understand. what grade do you need to get in order for your parents to let you go to cheer leading practice and talk to Bobby, school QB and heartthrob, on the phone? 22:39:18 * talli returns 22:39:31 heh 22:40:47 k:-O? 22:40:53 "Oh My God! There's an Axe in Jay Leno's Head!" 22:41:06 talli, how do you like Peace and Protection? 22:46:12 lol...*finally reads what talli said above* 22:46:36 sounds like Talli had quite an... interesting... high school life 22:49:04 lol 22:50:27 Mark, can I delete from multiple tables? like this: 22:50:41 delete from Copy, Author, Book where isbn=1111 22:50:48 nope 22:50:50 Assuming I delete in the proper order 22:50:55 Are you sure? 22:50:56 there's this magical thing called a "transaction" .... 22:51:05 heh 22:51:26 what about drop table blah, blord, goobers 22:51:29 Can I do that? 22:51:41 db dependent, but I don't think so 22:51:57 in oracle you can't 22:52:28 that should be a rare enough situation, so I doubt that's high on the implementaiton pipeline 22:52:51 hehe 22:52:53 Ok 22:54:20 have you guys ever had any experience with Rbase? 22:54:48 talli how do you like Peace and Protection? 22:55:09 peace and protection is pretty nice, but i'm using something else on this computer. 22:55:14 just wanted to try something out 22:55:16 ah 22:55:22 but it's nice 22:55:30 :( 22:55:31 ack 22:55:33 i used a linux client that was better than both 22:55:34 figured you'd like it 22:55:54 i definitely like it more than this once. whose name i forget 22:55:54 Peace and Protection? 22:55:58 sounds pastoral 22:56:18 its an application built by Dubyah's Homeland Security Office 22:56:47 they also recently released an aerosal spray called Evil-Doers Away! 22:56:52 i heard it works real nice 22:58:03 hmmm 22:58:12 status = NOT (on-hold)? 22:58:46 is that another one of those extremely instructive DB error messages? 23:00:28 or no 23:00:43 i am trying to figure out how to get the count of things that are NOT on hold 23:00:51 status <> 'on-hold' 23:00:57 oh 23:01:04 this is a database class you're taking? 23:01:10 sounds like they didn't cover basic sql 23:01:38 you know...they did not 23:01:42 at least not very well 23:01:55 He glanced over it waaaaay back in the beginning of the semester 23:02:09 and then jumped into the "theory" as how they store indicies and stuff 23:02:17 heh 23:02:25 those are implementation details 23:02:33 theory is the set algebra stuff 23:02:35 yeah, what's more useful? 23:02:56 all of it! muahahahahaha 23:03:01 uh huh 23:03:04 * Psychephylax thwaps miguel_25 23:03:06 ack 23:03:09 * Psychephylax thwaps markd2 23:03:33 those are uncopyrighted thwaps! 23:04:19 oh my 23:04:21 lol 23:28:46 * talli is away (Auto-away on idle) after 30min idle [msglog:on] 23:36:55 markd2 has quit ("la la la la")