00:27:23 rbm has quit 00:31:21 * AaronSw reconnects 01:17:51 blueseed has quit 01:31:47 Psychephylax has joined #openacs 01:31:57 well that wasn't very rewarding 01:34:46 john has quit 02:11:05 graszew has joined #openacs 02:24:26 rbm has joined #openacs 02:27:44 donb has joined #openacs 02:28:02 rant rave rant rave rant rave .... 02:28:39 Anyone around? Everyone napping? 02:28:49 hi don! 02:28:53 keep on ranting :-) 02:29:14 Hey, Adam ... boy you used to work for a company that delivered some really *shitty* code. 02:29:20 haha 02:29:32 which module are you looking at this time? 02:29:59 i think ben should set up a poll: which module is the biggest train wreck? 02:30:14 * davb_ is back 02:30:23 It's a good thing Helen graduated from Tufts and moved back here. If I were visiting her in Boston I'd probably go buy and Uzi and vent my feelings on what's left of the company. 02:30:45 haha 02:31:03 it's amazing that for all the arrogance and bluster, the actual code that was generated was so awful. 02:31:41 If I upload an image, say "/home/donb/alex.jpg", into wimpy point no one else can load a file whose path ends in "alex.jpg" into wimpy point. That's the path on one's *local* computer, and *every* user! Grrr ... 02:32:15 (I mean "is true for every user" - i.e. the filename on your computer has to be unique among ALL SITE USER'S UPLOADED FILES!) 02:32:28 Is that a crock of shit or what? 02:32:39 hey don 02:32:50 hi docwolf and dave :) 02:32:51 Hey there ... 02:33:02 oh my, that is insane. 02:33:22 Continuing my rant and rave ... the problem is somewhat systematic system-wide because it's due to a unique contraint on the "name" field of content_items. 02:33:35 * Psychephylax growls at the moon and begins his transformation into a.... 02:33:37 Psychephylax is now known as Spork 02:34:12 Fortunately some (not all and not only the wp idiot) were smart enough to use object ids and leave the name NULL or work around it some other way, I need to start digging into this. Yes, it's insane and unacceptable. 02:34:38 sounds like a major problem and i've only been here a few minutes =) 02:34:53 It *is* a major problem and it will be a tedious PITA to fix. 02:35:04 mmmm...pita bread 02:35:13 * Spork closes his eyes and thinks of a falofel 02:35:16 Of course in the limited case of wimpy-point it doesn't really matter because you can't display the images you upload anyway, again due to aD problems. 02:35:38 at least I can solve my problems =) 02:35:45 well...no...I can't lol 02:35:49 I bug dave and mark 02:36:08 So the problem is that someone made filename a unique key or something? 02:36:40 Someone made the "name" of a content_item a unique key and wimpy point uses the filename portion of the path of the file on your local machine the item's name ... 02:37:31 I think the CMS must use the name as its key into items and manage namespace differently (i.e. by tacking on folder names). But the CR is supposed to be much, much more general than that and we have these nice little integers called "object_id" to find objects with. 02:37:35 can't you (meaning someone) just add an indexing column and create a sequence and create a new table mapping user_id to picture_id 02:38:26 The *bleeping* code doesn't *need* the filename to start with! It could just as easily use the object_id just like any -1 modded Slashdot anonymous coward could've told the author. 02:38:51 lol 02:39:14 Don, I think you need one of these things I've been giving Mark all along 02:39:27 * Spork takes out a freshly made chocolate chip cookie and hands it to Don 02:39:41 Would you like some milk? 02:39:46 graszew has quit 02:39:54 And it will do that before much longer. I've already e-mailed JackP, the guy who ported it, to see if he has time to work on it. He's not a very experienced programmer but a little supervision and he can fix it (if he has time). 02:40:01 I want some beer, probably ... 02:40:28 Hey, Karl Goldstein lives in Berkeley, I could be down there by daylight and give him hell in person. 02:41:10 * Spork gives Don a bottle of Goldshlager 02:41:13 (he didn't write wimpy point but he's responsible for a bunch of other crap, like the templating API that uses its own argument parser instead of the very nice ad_proc and doesn't check for parameters that aren't wanted). 02:41:30 heh 02:41:47 Did you know you can do "template::element -this_is_garbage $garbage" without getting an error from element complaining that it doesn't want that parameter? 02:42:10 One little slip of a finger while touch-typing and you've entered bug city ... 02:42:48 The unbelievable thing is that ad_proc's so nice and was available to his crew ... grrr ... grrr ... grrr .... 02:42:52 no I did not...but I am also not a very competent OACS programmer 02:43:13 Infact....I think I suck at programming period. 02:43:21 aD has a job for you! 02:43:23 Maybe I chose the wrong profession -=) 02:43:39 no, cablevision has a job for me! But I don't know for how much longer! lol 02:44:05 Actually plenty of aD folks are good programmers and plenty of them weren't very happy at a lot of what was going into ACS 4 ... 02:44:27 actually I guess that's "ex-aD folks were" ... 02:44:38 I don't know....The biggest problem I have with aD and ACS is the documentation does not "flow" 02:44:47 I still don't fully grasp how the stuff works 02:45:16 Because I was forced to read sections of the documentation written by the people who did the stuff and assumed I know what they did 02:45:45 Don, you ever pick up a book in a subject you were clueless about and try reading the book? 02:45:56 It could use a good primer, that's for sure. One thing that makes it hard is that there are multiple paradigms mixed up (like the template proc arg handler vs. ad_proc). ACS 4 was supposed to fix this by providing a more rational framework engineered free of the pressure of client customization work. 02:46:11 Yeah ... programming :) 02:46:14 hah 02:46:15 me too! 02:46:47 I kinda want to get laid off right now...so after I graduate I can spend 6 months slacking off learning stuff I think would be of use to me 02:47:10 I figured, hey....I got 2 BS degrees in 3.5 years...I think my .5 of a year is well deserved =) 02:47:44 A half year off is always deserved, which is why I've not worked more than half-time since 1986. 02:48:03 heh 02:48:06 I need a job like that 02:48:43 my job is alright....The hours are good and the pay (at least for me) is decent 02:48:49 So, Adam, you're awfully quiet! 02:48:50 yeah! static-pages uses the filesystem relative path for name. 02:48:57 hey dave 02:49:09 * Spork jabs a Psychephylax at Dave 02:50:02 Hmmm...at least that will be unique within the server ... 02:50:40 heh 02:50:46 They were smart enough to leave the extension on, I assume! 02:50:52 * Spork feels proud of himself...At least I understand this DB talk =) 02:51:26 I impressed my professor today...I wanted to use triggers and stored procedures to do half of my project for databases 02:51:41 He's like..."If you want to excersize that" 02:51:48 * Spork heads over to the Sybase site 02:52:12 Triggers, RI constraints (and "on delete/on update"), stored procedures are all really great things to be using to keep things consistent and in order. 02:52:30 PG has better "on delete/on update" support that Oracle (8.1 at least, haven't checked 9i). 02:52:39 Damn "than Oracle" 02:52:53 lol 02:52:59 Well, we use Sybase at school 02:53:14 Oh, that's cool. A lot of people really like Sybase. 02:53:36 I don't know...I use Oracle syntax on tests =) 02:53:42 He still marks them right...hehe 02:54:12 If you use "varchar2" you should be flunked :) 02:54:22 Why?! 02:54:24 :P 02:54:30 back. sorry for my silence. nice flame ;-) 02:54:44 don: as you're well aware, the berkeley folks were essentially a separate company. 02:55:26 Because "varchar" is standard SQL92 and supported by everyone and most RDBMS's don't have user defined types. So you need to edit any Oracle datamodel using "varchar2" to port it when (thus far) "varchar" works just fine in Oracle ("but it may not someday", they keep saying). 02:55:44 heh 02:56:31 i'd actually love to know what karlg, etc. are working on now 02:56:31 Adam, yes I do know that. And Karl had to do *everything* differently than was done in the ACS. Sometimes his efforts were real improvements, sometimes they were really bad, but always different. The notion of code-sharing with the rest of the company just wasn't something he cared about. 02:56:55 don: right. there was very little cross-talk between cambridge & berkeley. 02:57:03 Finishing up ACS Java, which means commerce, KM, and uh I forget but it's not collaboration. 02:57:13 markd2 has joined #openacs 02:57:32 I am less convinced than ever about the appropriateness of java for the class of problems they are trying to solve. 02:57:35 That's unforgivable. Not only on management's part, Karl's a good engineer and should know better without being told. 02:57:36 Hey it's Oracle Genius mark 02:57:49 Hey Mark I'm ranting and raving. 02:58:00 Yeah 02:58:07 (over the last couple of days i've had a run-in with a few weblogic sites that defy the imagination) 02:58:16 Don went on this cool rampage dissing people hehe 02:58:19 Oh, yeah, like what? 02:58:25 http://www.wml.com 02:58:33 this is a site for doctors to do their continuing education online 02:58:34 Not dissing people - dissing their code. There's a big difference ... 02:58:42 hehe 02:58:44 Close enough 02:58:46 it essentially consists of a "users" module, and a way to stream real video 02:58:54 it's a no-brainer of a site. 02:58:55 Web logic is wayyyyyy too expensive with their licensing 02:59:05 but... implemented in java using weblogic & oracle. 02:59:12 hiya 02:59:18 even the registration crashes. This is a multi-million dollar site. 02:59:35 I sent them an enormous "you suck" letter for wasting my time. 02:59:44 I just went there, Adam. It *talked* to me. I don't like websites that speak before they're spoken too. 02:59:53 one of our projects was using weblogic but switched to persistence 03:00:14 haha. Yeah, they hit you with the annoying real video on the front page. most heinous. 03:00:37 the whole thing is a disaster. They could have implemented it in openacs and saved at least $500k. 03:00:59 again, what slays me is that the site isn't at all complicated, nor is it super high-volume. 03:01:17 (in their wildest fantasies they'd only get 100k users) 03:01:55 and the reason i know they're using weblogic & java is because of the heinous messages it was throwing back at me, the helpless end-user. 03:02:09 I wonder if the "dot-bomb" could've been partially avoided if people had used good tools reasonably priced and licensed rather than spend so much on piece-of-shit proprietary systems that were thrown together hastily? 03:02:30 I mean the ACS was largely thrown together hastily but the licensing was reasonable! 03:03:22 hehe. reasonably priced tools would have helped; stuff like this is just terrifying though.. realize that these nudnicks take out full-page ads in the Journal of the American Medical Association ($$$$$) 03:03:48 lol 03:03:50 they clearly have more money than brains. The idea is good, the implementation is awful. 03:03:58 Huh ... what's the registration fee? Or do they have another revenue model? 03:04:17 after the "free trial" it's $25 a month. 03:04:31 which is actually reasonable, b/c continuing education can be really expensive. 03:05:14 Yes, it is very reasonable. They'll need decent market penetration to make decent revenue at that rate, though. Maybe they feel that it's so low that no doctor who hears about it can justify not registering. 03:06:13 yeah. their value proposition is good -- cheap CME, and lectures by people who are actually respected in the field. 03:06:46 (as an example, if I don't do my education credits with these people, i've got to go to a 4 day seminar, which costs about $2000, when all is said & done) 03:06:48 Another words the people who built the site aren't lecturing :) 03:06:55 haha 03:07:01 Damn in other words, my mind's tired. 03:07:31 actually, i looked at the management staff -- the company was founded by jerry della famina (the advertising exec from NYC..) totally wacky. 03:08:10 Well ... he obviously has a good idea ... 03:09:17 it's just a shame, though. If he'd hired in a small, crack team with folks like yourself 03:09:31 he would have gotten a better result for less money. 03:10:11 Hmmm...I'd prefer the "better result for the same money" myself! 03:10:17 haha 03:10:29 I'm also not convinced that they needed to shell out bucks to Larry Ellison. 03:10:52 if you look at the site, there are almost no financial transactions... or transactions of any type, for that matter. 03:11:33 i wonder if he just brought in some dolts from Accenture who told him "exactly what they needed" 03:12:08 Something like that, I'm sure... 03:13:36 Well ... I'm going to run off and try to get a little more work done ... 03:13:45 See y'all later. 03:13:47 donb has quit 03:19:10 vinod has joined #openacs 03:23:26 arg 03:23:37 I can't do my Oracle statements in Sybase =( 03:23:45 Hey Vinod! 03:23:56 you missed Don, he was venting =) 03:25:15 now that web/db is almost dead, he has no good place to explode. 03:25:42 lol 03:26:08 heh 03:26:33 I figured docwolf would license a tradmarked DonB 'you suck' letter 03:26:41 ow ow ow ow ow 03:26:46 both my legs fell asleep with a cat on them 03:26:50 and now they're waking up 03:26:51 Ahahaha 03:26:59 * Spork pokes them with a psychephylax 03:27:03 ouch! 03:27:31 i have to remember how to program in Java 03:27:40 I want my rest :( 03:27:56 use lots of objects 03:28:04 have fun, I'll be back tomorrow! 03:28:07 heh 03:28:08 ok 03:28:19 I'll be back here tomorrow waiting ;) 03:28:28 * Spork wonders if Vinod is awake 03:28:33 davb_ has quit 03:30:49 what was donb ranting about? 03:31:16 * vinod is barely awake 03:31:17 poor code from aD 03:31:25 Oh about poor coding on Wimpy Point's part 03:31:38 They made something a key that wasn't supposed to be ;) 03:31:39 ahhh... (phew) ... i'm always worried it's gonna be about bad code from me :-) 03:31:45 nah 03:31:47 someone else though heeh 03:32:02 oy 03:32:05 I have so much crap to do 03:34:22 Vinod, are you going to be around tomorrow morning? 03:34:59 i dunno - my life is quite unpredictable ;-) 03:35:03 heh 03:35:13 he is a super-hero, after all 03:35:16 I gotta get that Oracle problem fixed asap or I won't make any progress 03:35:23 lol 03:35:35 Boss gets mad when I make no progress 03:35:43 markd2: no... docwolf is the superhero 03:35:51 that's right 03:35:57 you're the Trusty Side-Kick 03:36:15 Don't you mean Site-kick? 03:36:17 at your service! 03:36:25 heh 03:36:58 Vinod, so you have any ideas what it might be off the top of your head? 03:37:08 Spork: did you run that last query that i asked about before you left this afternoon? 03:37:19 nope ;( let me do it now... 03:37:49 let's hope Dave's box is on now 03:38:23 looks doubtful 03:38:32 Page cannot be displayed =-( 03:39:07 declare v_id integer; begin snmp_incident.new(mac_address => 'junk', problem_id => 1 ); end; 03:39:36 ERROR at line 1: 03:39:36 ORA-06550: line 1, column 29: 03:39:36 PLS-00221: 'NEW' is not a procedure or is undefined 03:39:36 ORA-06550: line 1, column 29: 03:39:36 PL/SQL: Statement ignored 03:39:53 sorry 03:40:10 stick a 'v_id := ' before snmp_incident 03:40:15 ok 03:40:16 but 03:40:22 there's 2 parameters I must pass on as well 03:40:26 for new to work 03:40:33 problem_id and comments 03:41:16 comments is default null (in the file you sent me) 03:41:25 oh 03:41:27 only mac_address and problem_id are needed 03:41:27 heh 03:41:53 aha 03:41:55 ERROR at line 1: 03:41:55 ORA-02291: integrity constraint (MYOPENACS.ACS_OBJECTS_OBJECT_TYPE_FK) violated 03:41:55 - parent key not found 03:41:55 ORA-06512: at "MYOPENACS.ACS_OBJECT", line 68 03:41:55 ORA-06512: at "MYOPENACS.SNMP_INCIDENT", line 39 03:41:56 ORA-06512: at line 1 03:42:01 that's the error alright =( 03:42:50 I am not sure what it's doing 03:42:56 markd2: is there a way to list a package function's code from sqlplus? 03:43:03 pointing at my object and failing or me pointing a diff 03:43:03 yeah 03:43:04 yeah 03:43:05 wait 03:43:08 let me try answering =) 03:43:18 user_source I think 03:43:21 select * from user_source 03:43:22 * markd2 fires up a shell window 03:43:23 heh 03:44:37 donb has joined #openacs 03:45:03 Well for those who are there I wasn't quite right about the CR's sitewide uniqueness constraint on items ... 03:45:20 hi Don 03:45:24 It's a uniqueness constraint for items with the same parent, i.e. in the folder ... 03:45:30 Don 03:45:34 Maybe you can help 03:45:34 Yeah ... 03:45:42 If it's quick ... 03:45:43 Have you ever seen a parent key constraint violation? 03:46:00 Nope ... 03:46:07 ORA-02291: integrity constraint (MYOPENACS.ACS_OBJECTS_OBJECT_TYPE_FK) 03:46:07 violated 03:46:11 sounds kinky 03:46:28 * vinod pulls markd2's head out of the gutter 03:46:33 i am not sure if it's my objects not introducing themselves correctly or if it's an openacs bug 03:47:24 vinod: SQL> select line from user_source where name='PA_PHOTO' order by line; 03:47:31 you'll probably want to do a 'set pagesize 5000' first 03:47:38 thanks markd2 03:47:50 It's telling you you're referencing an object type that doesn't exist. 03:47:57 right 03:48:15 but is it my object that doesn't exist or am I referencing something that doesn't exist 03:48:41 You're trying to create an object of type "foo" where there's no object_type "foo" defined. 03:48:43 because my snmp_incident object does exist 03:49:03 What's the "new" you're executing? 03:49:58 snmp_incident.new(params) 03:50:44 what table can I check to make sure my stuff is in there properly? 03:51:36 Sure, but what are the params, in particular the "object_type" param? 03:51:53 ummm 03:52:48 a problem_id (a number mapping to a problem description) a mac_address and a few parameters that have a default value generated so I haven't worried about those yet since the problem occurs when I pass 2 things in only 03:53:39 It supposedly defaults to "acs_objects", which of course exists. You might be passing in NULL as the constraint is also "not null" ... 03:53:57 what do you mean? 03:54:26 you mean I try to stick a null into a not null column? 03:54:54 Either that or your passing something in the wrong position if you're not using the "parameter_name => value" notation. 03:55:05 hmmm 03:55:12 lemme look at my pl/sql block 03:55:18 Right ... 03:55:30 Well I've got to run again, sorry, haven't eaten yet and it's 8 PM ... 03:55:35 it's ok 03:55:40 I'll cover those bases 03:55:40 seeya don 03:55:44 donb has quit 03:56:48 well, I am using parameter_name => value binds 03:56:52 so that's not the problem 03:57:13 so let's look for null insertions into NN constraints 03:57:38 Vinod, here's a question for you 03:57:50 You still got my create file somewhere? 03:58:44 * Spork pokes Vinod ;) 03:59:31 yep i got it. i'll be back in a sec 03:59:36 ok 03:59:45 I found one spot that's a null 03:59:55 but that should be taken care of acs_objects 04:10:27 back yet? 04:15:24 he's prolly out saving lives 04:15:35 Pshhh 04:15:43 I thought he went to do something important =) 04:17:32 i'm back. i told the nurse to keep the pt alive til i fix spork's problem 04:18:00 found yer problem 04:18:10 "Hold it there! Don't die on me! I've got a quick hack to make and I'll be right back" 04:18:29 lol - i can see the lawyers circling around me :-) 04:19:25 Yeah. Just like their sister species: vulturs 04:19:41 Spork: oracle apparently uses the param defaults that you supply in the PACKAGE definition, not the PACKAGE BODY definition 04:19:50 haha 04:19:58 that makes sense 04:20:37 you have object_type defaulting to 'incident' in the declaration, but 'snmp_incident' in the body 04:21:45 oh 04:21:57 markd2: what do you use for quick debug statements in plsql - is it dbms_output? 04:22:26 yeah 04:22:29 ok 04:22:32 so what I have to do is... 04:22:33 dbms_output.putln (or maybe putline) 04:22:46 put_line 04:22:51 ohhhhhh 04:22:52 set serveroutput on size 10000 04:23:02 i was trying dbms_output.put 04:23:35 and i guess oracle keeps adding to the line until you do a put_line 04:24:01 Vinod, I don't see where I have incident for my object 04:24:40 i have a create or replace package snmp_incidernt 04:24:41 as 04:24:45 function new ( 04:25:05 but I don't see where I'm delcaring object_type to be incident by default 04:25:34 the file you sent me has: object_type in acs_object_types.object_type%TYPE default 'incident', 04:26:47 aha 04:26:51 it was at the bottom 04:26:56 so I have to change that to snmp_incident 04:27:06 yep 04:28:39 heh 04:28:48 * Spork tries doing a modem lookup 04:29:24 * markd2 is up way past his bedtime 04:29:45 wooohooo! 04:29:47 ora8.c:3568:ora_tcl_command: error in `OCIStmtExecute ()': ORA-01400: cannot insert NULL into ("MYOPENACS"."SNMP_INCIDENTS"."CM_RCV_PWR") 04:29:47 ORA-06512: at "MYOPENACS.SNMP_INCIDENT", line 47 04:29:47 ORA-06512: at line 1 04:30:00 * vinod slips caffeine into markd2's cookies 04:30:06 rofl 04:30:15 * markd2 shakes, rattles, and rolls off the chair 04:30:18 You know...this isn't ACS related but I figured I'll tell ya all anyway 04:30:48 I might not like ACS, I might not love Oracle (but I do :)) or what I'm doing with it...but if I didn't have to do this I wouldn't have made friends here =) 04:31:19 awwwwww 04:31:27 * vinod sheds a tear 04:31:29 * markd2 takes the pins out of the Psychephalyx doll 04:31:30 hehehe 04:31:40 Wow, my headache is gone! 04:31:42 * vinod is waiting for spork to ask for money now 04:31:48 heh 04:31:52 :-) 04:31:55 it is the local classical station's beg week 04:31:55 I was expecting you to ask for money instead 04:31:56 lol 04:32:22 That oracle error was driving me nuts and I don't think I would have been able to figure it out on my own 04:32:33 you've just heard 2 minutes of mozart. give us money and we'll play another minute 04:32:33 at least not by the 9th of when my demo is due 04:32:54 Spork: here's how i woulda figured it out (maybe) 04:33:10 * Spork listens 04:33:20 we knew it was crapping out because it didn't find a proper acs_object_type 04:33:33 right 04:33:37 so, first select * from acs_object_type and see if my object_type is there 04:33:58 ok 04:34:01 and if it was 04:34:06 snmp_incident 04:34:06 Wow. I didn't know Amazon had switched to Linux 04:34:09 http://news.cnet.com/news/0-1003-200-7720536.html 04:34:12 Hey Roberto 04:34:20 if so, then see what you are sending to acs_object.new as object_type 04:34:33 i assumed 'snmp_incident' 04:34:43 markd2 has quit 04:34:51 but then i stuck in a debug line before the call and found out that it was 'incident' 04:35:02 ah 04:35:04 and that was the 'aha' moment :-) 04:35:21 :) 04:35:47 now I must figure out why it's trying to insert null into cm_rcv_pwr 04:35:55 i can figure that out...I think 04:36:06 but I think I will leave that for work 04:36:22 I can't do all my work at home..hehe.... 04:36:32 :-) 04:36:41 Vinod, how did you get it to print what it was sending though 04:37:36 i stuck this just before the call to acs_object.new 04:37:41 DBMS_OUTPUT.PUT_LINE('object_type='||object_type); 04:38:29 ah, well, see...I don't know that... 04:38:32 but I will write this down 04:38:50 me neither, that's why i looked it up in my BIG ORACLE BOOK :-) 04:38:55 lol 04:39:11 page 559 04:39:33 mine is in the car :( waiting for it's commute to work tomorrow morning 04:40:24 ahh - you can always check oradoc.photo.net in a pinch 04:40:51 wow 04:40:52 nice 04:40:58 I'll remember that (I hope0 04:46:45 * Spork falls asleep 04:50:00 thanks Vinod (again) 04:50:35 np 04:51:13 Now I need to find out how to change the passwords in sybase and I am all set 04:52:26 can't help you there :-) 04:53:33 heh 04:53:36 I like Oracle 04:53:38 password 04:53:41 Enter new password: 04:54:07 anyway 04:54:08 off to bed 04:54:13 * Spork detaches 04:54:15 see ya tomorrow 04:59:07 andrew has joined #openacs 05:34:00 jerryasher has joined #openacs 05:58:19 hazmat has joined #openacs 06:36:12 hello 06:54:58 hi 07:10:26 hello 07:10:31 whats shakin 07:12:06 studying for test :( 07:17:20 bummer... 07:17:33 whats the test for? 07:20:50 rbm: good luck 07:30:00 hazmat: It's Operations Research 07:30:27 ugh... masters? 07:36:44 funny pic http://www.quad.com.ar/alex/devel.gif 07:38:08 hazmat: I wish. BS CS 07:38:48 heheh 08:09:07 abbaJ has quit 08:52:27 vinod has quit 08:54:24 hazmat has quit 08:56:48 jerryasher has quit 09:33:36 inTheMoon has joined #openacs 10:55:01 graszew has joined #openacs 11:39:58 graszew has quit 11:54:43 inTheMoon is now known as inTheMoon[miam] 12:39:20 inTheMoon[miam] is now known as inTheMoon 13:16:52 Spork has quit 13:48:50 markd2 has joined #openacs 14:06:35 Spork has joined #openacs 14:06:45 arg 14:06:58 Mark, you awake? 14:08:08 somewhat 14:08:15 select from Table 14:08:20 where X like '%F'; 14:08:26 is not a valid query right? 14:08:35 and you can't use LIKE to match column names? 14:13:15 correct 14:13:21 ok 14:13:24 thanks 14:14:06 davb has joined #openacs 14:14:14 hey DAve 14:14:17 Hi 14:16:54 http://www.activewords.com/ 14:16:55 ARGH! 14:17:16 Anyway thats is the Windows analog to Launchpad. You can use words to launch applicatitons etc. 14:17:48 heh 14:17:49 brb 14:17:55 I have to go get cleaned up and go to work 14:17:59 ok 14:18:03 * Spork detaches 14:18:08 be back in about an hour 14:18:12 Does anyone know of an applicaiton like this for Linux? 14:18:19 Of course I can just type in a shell :) 14:52:29 til has joined #openacs 14:59:53 k2pts has joined #openacs 14:59:59 hi everybody 15:00:38 Hello k2pts 15:00:54 hi davb 15:02:36 davb: I am going to take some time to finish 4.3 today. If you had the chance to try it, I would appreciate any feedback. If not, you can always test it after it's done (which hopefully it will be some time tonight) 15:02:49 s/any/your 15:04:30 I'll see what I can do. On oracle? 15:06:14 yes Oracle would be better. thanx 15:09:56 need to go off and do some work. later guys. 15:11:15 ola has joined #openacs 15:11:24 k2pts has left #openacs 15:12:15 hi dudes. 15:13:18 hello ola. I fixed that bug and checked it in. 15:14:48 oops. Oracle still uses blobs for static-pages. I wonder if I should change it to use the filesystem? 15:16:12 yes, I noticed. cool! I also noticed an unported "decode" in display-policy-toggle.tcl ;-) 15:16:41 dave, this is my pet module. 15:16:55 Heh. Well then feel free to work on it :) 15:17:18 Actually I know one other person who wants it extended and improved. I'll have to check my email. 15:18:00 oh there isn;t any xql files for display policy-toggle at all. 15:18:15 ok :-) 15:23:34 docwolf has quit 15:23:50 ola: are you interested in working on adding to static-pages? 15:26:09 oops. it doesn't show an error, but it also doesn't do anything :) 15:26:18 I don't have anything specific to add at the moment, but if something pops up, sure. 15:26:53 Ok. 15:27:00 I fixed it. committing now. 15:28:55 ola: keep the bugs coming! You don't happen to have oracle installed do you? 15:33:50 hi 15:33:55 ok I will. no I don't have oracle... 15:34:01 hi Spork 15:34:32 wb Spork 15:36:02 thanks Dave 15:36:29 muussssstttt....fiiinddddd....ooooutttt...whyyyyy noooo inssseeerttt 15:37:03 i hate having 2 backpacks 15:37:12 I brought up the wrong one upstairs last night 15:37:21 And since I don't do homework...lol...I didn't catch that 15:37:21 get different colors? 15:37:27 they are different colors 15:37:29 black and blue 15:37:45 heh 15:38:21 and to help those fools were sweeping a highway 15:38:35 Why can't they sweep the other side in the mornings 15:38:47 That would make too much sense I guess 15:43:57 davb: I can't see any difference in display between "coments displayed" and "comments summarized". 15:44:28 perhaps this is general-coments land? 15:44:52 s/coments/comments 15:47:27 hmm. I'm logged-in as admin. maybe that's why... 15:53:23 ola: not sure... 15:53:34 i will be in and out for awhile.... 15:54:12 ola: i think that is in sp_serve_html_page...probably my fault... 16:01:20 that's ok dave. 16:04:19 adler has joined #openacs 16:06:03 til has quit 16:28:57 til has joined #openacs 16:47:59 D'oh 16:48:01 I got moved again 16:48:17 moved? 16:48:43 to a diff desk 16:49:22 be back later 17:07:44 inTheMoon has left #openacs 17:16:06 donb has joined #openacs 17:18:53 k2pts has joined #openacs 17:28:14 hi donb, k2pts 17:28:23 hi davb 17:28:44 ola and I are cleaning up the remaining bugs in static pages - some work gets done via IRC :) 17:29:01 :) 17:30:32 k2pts: I probably can't get to the workflow test until tonight or tomorrow morning. 17:30:58 np, I am just starting working on it again. 17:31:11 back 17:31:42 my AOLServer logs are not working anymore 17:31:57 spork someone should keep "taxis" around here :) noone is talking 17:32:06 define "not working" ... 17:32:07 taxis? 17:32:12 nm 17:32:14 I found out why 17:32:19 have another instance bound to 8080 17:32:29 That will do it. 17:33:27 What are the remaining bugs in static pages? 17:34:14 odd 17:34:15 just silly stuff I missed in the www/admin pages. 17:34:17 [31/Oct/2001:12:29:33][6154.9][-conn0-] Notice: bind variable 'cm_rcv_pwr' = '-0.5' 17:34:43 error in `OCIStmtExecute ()': ORA-01400: cannot insert NULL into ("MYOPENACS"."SNMP_INCIDENTS"."CM_RCV_PWR") 17:36:22 abbaJ has joined #openacs 17:36:45 k2pts has left #openacs 17:37:54 aha 17:40:42 excellent 17:41:57 suh-weet!! 17:42:02 * markd2 wants to join in 17:44:29 Indeeeeed! 17:44:50 * Spork runs around chanting "It works! it works! it works! it works!' 17:44:56 woo hoo! woo hoo! 17:46:33 :) 17:46:40 now...I gotta get the stuff out of the database =( 17:47:50 any suggestions? 17:50:58 Where does it have to go once it's out of the database? 17:51:57 * markd2 suggests /dev/null 17:52:19 Well 17:52:30 my boss wanted it work like this 17:52:41 when you look up a history: it shows 3 key values and incident id 17:53:05 but incident id is a link...you click it, and it brings up the rest of the values (there's about 25) 17:54:19 are you typing or is that it? 17:54:24 sorry. can't do that 17:54:27 it's against the rules(tm) 17:54:39 that's it pretty much 17:55:00 So what's the question, exactly? 17:55:07 is it doable? hehe 17:55:22 and how do I specify multiple row output 17:55:49 from the db 17:56:18 just about every package does that 17:56:20 hazmat has joined #openacs 17:56:57 ah 17:57:00 * Spork looks 17:57:04 There are all sorts of examples in the toolkit ... check out bboard/forum.tcl and bboard/forum-view.adp 17:57:07 look at db_1row / db_multirow 17:57:15 alright 17:57:24 and the for templating 17:57:27 Right mark's pointing you to the db api routines, I'm pointing you to a user of those routies. 17:57:31 routines, oops 17:57:51 * markd2 nods 17:58:20 most of the time you have "foo.tcl" and "foo.adp" but the forum-view.adp template file is shared by a couple of .tcl files that build the datasources somewhat differently. 17:59:18 db_multirow and make it really easy to whip up pages like this. 17:59:20 Vinod's package that yu're using as a template probably has goodies you can emulate 17:59:26 adler has quit 17:59:38 * markd2 should really get his 'o' key fixed 17:59:47 Which Vinod package is he using? 18:00:36 I'm not sure 18:00:54 Reserve and Schedule 18:00:55 Probably his 'Crush all hum-mans and invade the earth one" 18:01:00 rofl 18:01:16 Would a "I'm-not-sure" package pass the turing test? 18:02:02 What's this reserve and schedule package? Something Vinod's doing privately? 18:02:08 probably 18:02:14 it was for hotel reservation stuff 18:02:19 I think its a problem-set....? 18:02:28 Oh, right ... 18:02:54 time for lunch... 18:03:02 laters 18:03:03 markd2 is now known as markb 18:03:06 * markb tries to fit in 18:03:12 heh 18:03:17 easy for me to fit in 18:03:21 Spork is now known as nickb_ 18:03:25 arg 18:03:31 close enough though 18:03:34 I've got to run, too ... 18:03:40 * nickb_ shakes fist angrily at nick@144.136.232.197 18:03:40 donb has quit 18:03:44 damm.. 18:03:49 markb is now known as markd2 18:03:49 to late.. 18:03:56 nickb_ is now known as Psychephylax 18:05:33 quick question 18:05:51 Am I gonna have to lock the table when I'm inserting things and so forth? 18:06:04 because it will be a multiuser system so writes can occur concurrently 18:06:50 just general blind inserts, not really depending on what's already there? 18:07:17 ummm 18:07:22 pretty much 18:07:23 there will be updates 18:07:40 no problem - the database will handle that 18:07:49 for the updates, you may need to do some special processing 18:08:01 to lock the row you're updating 18:08:23 Well 18:08:24 select stuff_that_describes_the_row for update; then update it. 18:08:24 that'll prevent another connection from sneaking in and changing it under you 18:08:38 That won't happen 18:08:39 in oracle you rarely have to lock the whole table 18:08:39 and row-locks are super cheap 18:08:49 Because only time someone can update the row is right after they ran the query 18:09:03 afterwards nobody can change it 18:20:31 k2pts has joined #openacs 18:21:05 hello k2pts 18:21:16 hi hazmat 19:27:52 odd 19:28:04 Can't read incident_id no such variable 19:28:47 In a Tcl page? 19:28:58 adp/tcl 19:29:00 I did a query 19:29:07 db_multirow incident_id incidents_select { 19:29:07 select incident_id, cm_rcv_pwr, cm_c_to_n_ratio, cm_trans_pwr from snmp_inc\ 19:29:07 idents 19:29:07 } 19:29:18 and contracted it: 19:29:20 incident_id:multirow 19:29:37 and then tried outputting it: 19:29:39 @incident_id@ 19:29:58 inside of a tag, you have to qualify it 19:30:02 incident_id.incident_id 19:30:04 Its a multirow. You need to put in in tags. 19:30:06 with @@s 19:30:10 yes that was what I was going to say 19:30:26 or incident_id.cm_rcv_pwr 19:30:31 * markd2 suggests looking at a working example 19:30:38 @incident_id.cm_rcv_pwr@ 19:30:44 Yes, very educational. 19:30:46 'cause what you describe is very far from a working example 19:33:15 heh 19:36:20 jerryasher has joined #openacs 19:36:42 Hi jerryasher 19:36:51 greets 19:36:55 ola jerry 19:37:01 hey Jerry 19:37:08 Howdy: 19:37:12 Check out: http://www.theashergroup.com/demos/rss/openacs-forums.1.00.xml 19:37:23 and http://www.theashergroup.com/demos/rss/openacs-forums.0.91.xml 19:37:44 nice 19:37:46 Syndicatable OpenACS forums 19:37:56 Yeah, I want to get Musea to do this for the new site 19:38:28 Cool. 19:38:29 and it would be real nice to see an underlying openacs api for this for many modules (bugs, ticket tracker, ...) 19:38:57 acs-service-contract + the data source api for portals would do it. 19:39:05 question 19:39:09 hazmat: cool. 19:39:18 I think Dave you ran across this before 19:39:23 ns_returnredirect 19:39:31 does the code after it get executed anyway? 19:39:33 I am willing to work on the contracts for the RSS stuff. 19:39:41 Psychephylax, I don't recall... 19:40:05 Because I'm checking to see if it's a history and redirecting to run_history 19:40:12 davb: sounds good, I'll try to publish some code by the end of today or sometime tomorrow. 19:40:13 but it still stores stuff in the database 19:40:19 gotta go, bye folks. 19:40:27 bye 19:40:34 ns_returnredirect - yes code after it gets executed 19:40:41 hazmat has quit 19:40:51 how can I make it not execute and go to a diff page on a condition? 19:40:51 that just sends the redirect HTTP jazz to the browser 19:41:11 do the ns_returnredirect, then 'return' to stop execution of the page 19:41:16 So perhaps you need to put it inside an IF so that the code doesn't get executed unless it is supposed to. 19:41:40 Thanks Mark 19:44:24 jerryasher: that is great! 19:45:01 Thanks, it is currently updated by crawling every 20 minutes. 19:45:04 Mark, does ns_returnredirect pass things in the url as well? 19:45:16 Better in the API, would be updates when content actually changes. 19:45:42 Psychephylax: only what you tell it to. 19:45:49 nope - if you want stuf passed in the url, you'll have to do it yourself 19:46:17 i.e. : ns_returnredirect "/page.tcl?parem1=blah¶m2=foo" etc... 19:46:36 yeah 19:47:16 use export_vars to URLencode the variables if you need to 19:47:35 or ad_export_vars... 19:47:47 oops, nope export_vars is the good one. 19:50:29 yeah I figured that stuph out 19:50:38 i love getting random errors though 19:52:08 set online_pct [format "%.2f" [expr $online_pct/100.0]] 19:52:18 first one to figure out wha's wrong gets an oracle cookie! 19:52:31 s/wha/what 19:52:32 no space after pct maybe 19:52:40 also, if online_pct isn't a number, it'll error out 19:53:47 or if it's empty 19:54:04 that two 19:55:33 very odd 19:56:11 +1 19:56:14 now we're even 19:58:52 moo 19:59:19 móò 20:00:21 ¿ººm 20:00:34 © 20:01:08 cool chracters 20:01:11 heh 20:01:14 characters even 20:01:30 I claim this one to be mine: ¿©©m 20:01:49 :) 20:01:53 how do you type them? 20:01:53 for best upside-down viewing, it should be ¿©©w 20:02:01 lol 20:02:04 on a mac keyboard it's easy 20:02:05 ok, mark is right 20:02:09 dunno about those other OS's 20:02:19 windows you just have to know the asii mapping 20:02:25 0169 is © 20:02:37 ^WINDOW REFNUM 6 20:02:39 * markd2 assigns çôpyríght to ¿©©w to Psyçhèphylåx 20:02:52 Just hold alt, type that in on the left number thing 20:02:56 you both are on macs? 20:02:59 lol 20:03:00 no 20:03:09 the mac way is much saner - it uses dead keys 20:03:17 option-i puts a hat over the next vowel you type 20:03:17 the windows way is not 20:03:22 âêîôû 20:03:40 option-` does a grave accent, option-e for an acute accent 20:03:46 etc 20:03:56 I visited a site. I saw ©© mmm. 20:04:09 option-c for cedille ç, option-a for ågnstrom, etc 20:04:20 you can use dead keys on any keyboard 20:04:26 sad that Mark knows all of the names for them 20:06:09 * markd2 took french, latin, and greek in high school 20:06:13 so I got exposed to a lotta stuff 20:07:19 * rbm had english and spanish. We study latin and greek while studying portuguese, since the language comes from those 2 root.s 20:08:00 cool 20:08:09 I wish more amurricans would study latin and greek 20:08:25 markd2: indeed 20:08:29 yes me too. 20:08:43 I wouldn't have to learn English 20:08:52 heh 20:08:57 I studied the Old Stuff 20:09:24 I can see a bunch of folks wandering around Cyprus speaking in the homeric dialect 20:09:34 the only thing I know from the Old Stuff is "ta paideia paizei" 20:09:50 gazheundheit 20:09:57 which means "the kids are playing" 20:10:27 gazheundheit? 20:10:40 "ta paideia paizei" could be intrpreted as a sneezing noise 20:10:41 arg 20:11:19 excellent 20:15:59 how come it's rounding the things off 20:16:01 damn it 20:17:56 leaving sharp corners could open the language to a lawsuit 20:18:17 so many buzzwords in one single e-mai 20:18:56 "ArsDigita will focus on what it calls ''enterprise collaboration management'' - software that will help large groups use the Web to work together more efficiently" 20:19:15 * markd2 retches 20:19:23 oops, sorry 20:19:26 reflex action 20:19:28 I guess that's a super different concept from the 1998 "web community" 20:20:10 correct 20:20:22 ECM is Web Community, but written in Java 20:20:49 ooohhhhhh! WOW! That's so innovative! 20:20:55 Isn't everything written in Java prefixed with Enterprise? 20:21:37 hehehe 20:22:02 Even the new TV show 20:22:08 it's just in small type so you can't read it on the TV 20:23:18 * rbm goes to a boring class 20:23:24 bbl 20:23:42 Just last week T'Pol asked the replicators for a cup of Java 20:23:50 whoa 20:23:52 and as you would expect out came tarry slime 20:23:54 I haven't seen it since the pilot 20:23:58 any more jello detox scenes? 20:24:09 Here's a good question for you 20:24:15 (i'm not sure they were replicators since those are based on transporter technology 20:24:20 why is Oracle storing integers and not reals 20:24:20 ) 20:24:31 * jerryasher rbm has been following slashdot links again 20:24:54 * jerryasher oops, that's markd2 20:24:58 heh 20:25:22 do a describe on your table, and paste in what your real column says it is 20:25:28 k 20:25:46 CMTS_RCV_PWR NUMBER(20) IN DEFAULT 20:26:00 I'm guessing it's the (20) 20:26:54 * Psychephylax gets out his big oracle book 20:26:55 right. it should be 20,X for stuff with stuff after the decimal 20:27:03 what did you use in your table when you created it? 20:27:45 what do you mean 20:28:10 you had to do a 'create table' at some point in time 20:28:15 what did you use for that column 20:28:36 create table... 20:28:52 cm_rcv_pwr number(20)... 20:28:58 there you go 20:29:06 didn't tell it to store anything after the decimal point 20:29:29 so it's 20.5 20:29:29 ? 20:29:50 I only want like 345.06 but not 345.06000 20:30:46 then number (20,2) (I think) 20:31:12 ok 20:31:12 ola has quit 20:31:54 * markd2 waits for his cookie 20:33:25 * Psychephylax gives Mark a cookie 20:33:28 want some milk? 20:33:47 sure! 20:33:54 thanks! 20:34:16 * Psychephylax pours Mark a nice glass of milk 20:34:52 mmmm.... comfort foods.... 20:36:58 lol 20:46:13 jerryasher has quit 20:47:21 ok 20:47:23 this is beyond me 20:48:58 scoot closer 21:04:09 Wow. a 1Ghz processor for $67!!! 21:06:08 vinod has joined #openacs 21:06:21 * vinod waves 21:06:23 Hi vinod! 21:06:51 hey dave! 21:06:53 Hey Vinod 21:07:01 yo 21:07:01 Dave, where at? 21:07:18 howdy! 21:07:29 newegg.com. Its an Athlon of course. 21:08:02 Of course 21:08:05 socket a? 21:08:30 yes. 21:08:47 davb: did you ever figure out that network weirdness? I noticed that thedesignexperience.org points to deepsky 21:08:55 thats the DURON. The thunderbird is $1 more 21:09:11 vinod: oh...I turned off the virtual hosting...didn't help. 21:09:25 Maybe i'll switch it back so at least the domain is correct... 21:11:07 I suspect a hardware failure anyway... 21:11:59 ahh... bummer. 21:12:18 Yeah. I need to order a new NIC I think. But I probably should replace the cable first. 21:13:24 til has quit 21:23:05 Mark, you want to earn another cookie? 21:23:09 sure! 21:23:11 Ok 21:23:40 If I have cm_rcv_pwr number(30,2) and it encounters a -5.9 21:23:43 what would it store? 21:24:01 -5.90 I think 21:24:09 Well, that ain't it =( 21:24:11 -59 21:24:54 hmmm 21:24:55 wait 21:24:58 maybe it's my fault again 21:24:58 huh? 21:25:00 SQL> create table test (blah number(30,2)); 21:25:01 Table created. 21:25:01 SQL> insert into test values (-5.9); 21:25:02 1 row created. 21:25:02 SQL> select * from test; 21:25:02 BLAH 21:25:04 ---------- 21:25:06 -5.9 21:25:30 never underestimate the correctness of a markd2 21:25:40 heh 21:25:40 ok 21:25:45 heh 21:25:51 must figure out why I fucked up then 21:25:52 I'm incorrect enough to be paranoid 21:25:57 rofl 21:25:59 lol 21:26:04 I'm using that as my quote from now on =) 21:26:35 heh 21:29:31 I'm going home! 21:29:35 davb has quit 21:35:31 buggy 21:37:27 not bad 21:38:29 Tomorrow! 21:38:33 100 :) 21:38:42 woo hoo! 21:38:52 what's the -query thing used for? 21:39:38 -query thing on what? 21:39:59 ad_page_contract 21:40:36 and here's one more questoin 21:40:43 is there a way to do this 21:41:06 I have to write a select statement that yanks everything out 21:41:15 I don't really want to type up 25 diff column names 21:41:44 is there a one quick and easy way of yanking it out that I can still reference 21:41:45 you can select * 21:41:53 the column names will be there just as before 21:42:04 they're acutally pulled from the result set returned from the db, not from the select statement 21:42:08 oh, I can still do incident.blah 21:42:12 yep 21:42:16 cool! 21:44:10 now I'm getting to the fun stuff of OpenACS and Oracle =) 21:44:17 yep 21:44:22 the UI stuff is the fun part 21:44:29 I know 21:44:29 hehe 21:45:03 One thing I don't like about this (of course due to my lack of knowledge) is how do I make my stuff more abstract so it's independent on certain things 21:45:16 like row counts or columns 21:47:03 yeah. 21:47:09 I dunno if the db_* api has goodies for doing that 21:47:15 the aolserver api does 21:47:29 I want to make this more "generic" i guess 21:47:29 you can grovel through the result set and get the column names 21:47:53 write it twice non-generically, then the parts you need to genericize will be obvious 21:48:09 I probably will have to write it more than twice 21:48:14 that's why I want to make it generic 21:57:31 muahaha 22:09:52 k2pts has left #openacs 22:14:44 I want my HTML book 22:24:17 * markd2 wants his MTV 22:33:09 k2pts has joined #openacs 22:34:12 wb 22:36:55 thanx 22:37:00 heh 22:37:12 Typing out tables by hand is a lot more tedious than in Dreamweaver 22:37:36 never used it 22:37:40 me neither 22:38:03 Oh man 22:38:11 You guys are missing out =) 22:38:27 emacs is better 22:38:36 I get frustrated with wysiwyg html tools 22:38:41 same here 22:38:58 which btw is wysinwyg 22:39:31 most of the times 22:39:38 nah 22:39:42 Dreamweaver kicks ass 22:39:47 rofl 22:39:50 It's made by Macromedia 22:40:02 not like FrontPage 22:40:03 i don't use flash either 22:40:09 but how do you guys do all the javascript rollovers and animated gifs that are so important for all websites ;-) 22:40:41 with Java applets 22:40:43 i don't :) I only develop for oacs thus far 22:40:46 lol 22:41:00 don't know java either :) 22:41:14 * Psychephylax gives Mark a cookie 22:41:34 Mark, if I store 603.00 in Oracle 22:41:37 will it toss the .00? 22:41:58 i cringe everytime someone asks me to add more rollovers to a site 22:42:11 lol 22:42:15 i hate them 22:42:21 it'll store the value 603, which is the same representation as 603.00000000.... 22:42:24 They were cute back in 93 22:42:29 right 22:42:41 So I don't have to wonder why it's printing out 603 in the page 22:42:53 what do you get from sqlplus? 22:43:03 or are you wanting 603.00 ? 22:43:43 I get 603 22:43:51 i wouldn't mind a 603.00 22:44:13 I don't want the dummies at level 1 techsupport get thrown off by 603 instead of 603.00 22:44:14 lol 22:44:50 I haven't done that m'self 22:44:54 but format might do it for you 22:45:20 heh 22:45:54 * rbm is back 22:46:40 wb rbm 22:51:08 tks k2pts 22:52:17 i wish there was an easy way to send someone to the page they just came from without telling them to "Press back please" 22:52:18 * markd2 lvs abbrvs 22:52:28 lol 22:52:42 javascript.goBack, or something like that? 22:52:47 kinda 22:52:51 but in OACS =) 22:52:59 javascript.history(-1) 22:53:04 hah 22:53:12 Can I use jscript in an ADP page? 22:53:17 sure 22:53:19 why wouldn't you? 22:53:22 i dunno 22:53:23 to the ADP it's just text 22:53:29 you guys have your crooked set ways of doing stuph 22:53:31 s/wouldn't/couldn't/ 22:53:38 you could put client-side FORTRAN if you wanted to 22:53:44 i'll pass 22:53:56 * markd2 should write a client-side fortran applet in java 22:54:00 ssl.usu.edu? What's that for? 22:54:03 oops 22:54:21 dang! my search for "spaghetti-O fetish" turned up no hits! 22:54:32 uh, wrong window. sorry 22:55:02 alrighty 22:55:10 how about this 22:55:15 markd2: actually, if talli was here, that would be an appropriate query 22:55:27 I need to color the cell of a table a color if the value is out of a specific range 22:55:30 really! 22:55:45 lol 22:55:52 :-) anything's game with him 22:55:52 I guess I should invite him to the Western PA Spaghetti-O Fetish Society 22:56:01 Mark, do you want me to give you spaghetti-O's now? 22:56:16 no - just cookies 22:56:19 ok 22:56:22 didn't mean to let the whole world know 22:56:22 * Psychephylax waves a cookie 22:56:24 darn this IRC! 22:56:26 yeah, don't get him excited 22:56:30 lol 22:56:45 * markd2 looks around suspiciously 22:56:57 So, say I have a value I use @cm_rcv_pwr@ in my adp page (the value is yanked out of Oracle) 22:57:05 this is frightening. 22:57:13 Could I do this set color = "" 22:57:15 a little java program I'm working n. t run, the resident size is 11 megs 22:57:20 and the total process size is 217 megs! 22:57:31 ouch 22:57:31 * markd2 is horrified 22:57:35 if @cm_rcv_pwr@ < val || @cm_rcv_pwr@ > val then 22:57:52 set color = "cookiecolor" 22:57:52 } 22:57:56 something like that? 22:58:44 Psychephylax: try it. does it work? 22:58:48 no idea 22:58:49 lol 22:58:55 i think it should, but i'm not sure of the syntax 22:59:11 oh wait - no 22:59:20 i think your combining adp and tcl 22:59:29 s/your/you're 23:00:04 i am 23:00:12 i want to check some tcl stuph 23:00:14 ack 23:00:24 I need to check to make sure if a value is in a range 23:00:30 if it's good, color green 23:00:39 if it's borderline, color yellow 23:00:43 if it's bad, color red 23:01:22 make a pl/sql proc to make the determination. have it return one of three strings 'green' 'yellow' 'red' 23:01:35 then you can do a blind color=@cookie.color@ 23:01:36 ummm 23:01:44 or yo ucan do it in the adp, using the tag 23:01:47 but that's kind of tedious 23:01:55 specially if you want to reuse the stuff elsewhere 23:02:05 reuse= good 23:02:21 let's see if i can put forth my ORacle powers and spew forth a procedure 23:02:50 * markd2 avoids watching Psychephylax spew 23:03:08 i don't have to make a whole package do I 23:03:19 nope 23:03:23 ok 23:03:30 oh wait 23:03:36 It's in my ORacle book 23:03:38 I read this before 23:03:42 * Psychephylax searches for it 23:05:23 any GIMP artists out there? 23:05:33 I know of some pimps 23:05:36 * markd2 has the artistic talent of a unripe melon 23:05:36 but no gimps 23:06:21 * rbm has the graphic talent of an amoeba 23:07:03 * markd2 is unworthy 23:08:29 I need to go back to playing piano. I felt good playing piano. 23:08:53 Especially after I learned that music has the power to significantly increase cognitive ability 23:08:59 yep 23:09:03 I'm a music junkie 23:09:09 me too 23:09:11 if I don't have a group to play with, I just Don't Feel Right 23:09:33 Mark, this book has a total of 10 pages on how do what I want to do 23:09:42 excellent! 23:09:50 got any good sites for writing an oracle thing to compare stuph 23:10:16 markd2: That's cool. What do you play? 23:10:19 * rbm loves music 23:10:27 trombone and bassoon 23:10:32 nice 23:10:34 and the spousal overunit & I try to sing in a choir 23:10:43 I used to sing in a choir 23:10:53 It's been an amazing help to my pitch 23:11:02 I'm not sure I'm an amazing help to the group :-) 23:11:14 I have 3 things I'd like to learn how to play: violin, guitar and drums. 23:11:35 After I re-learn piano. It's been several years I stopped playingc 23:11:55 I tried to learn viola 23:12:03 (traded programming lessons to a really cute viola player) 23:12:12 but years of holding up a bass trombone had screwed up my left wrist 23:12:16 just too painful to play 23:12:24 I should try the upright bass one of these days 23:13:52 mark, any sources on how do what I want? 23:14:26 nt that I know of 23:14:36 *sigh* 23:14:39 Not good 23:14:47 but off the top of my head something like create or replace function cookie_color (some value) 23:15:08 begin if value = 'snood' return 'green; else if value = 'vinod' return 'puce' else return 'ochre'; end; 23:15:14 then in your select, do something like 23:15:36 select thingie, cookie_color(blargle) from spaghetti_os where fetish='lego'; 23:16:04 so your second column should then become strings of the various colors based on the value blargle 23:18:25 but that checks for = 23:18:29 I want to do < and > 23:19:03 if value > 10 return 'green'; else if value < 5 return 'blue'; 23:19:15 pl cpp; 23:19:17 ack 23:19:18 ok cool 23:19:26 heh 23:20:28 would it be if value > 10 and value < 5 return green 23:20:29 ? 23:21:00 you can do whatever you want 23:21:04 it's just standard programming logic 23:21:09 ok 23:22:04 are ' <- required? 23:22:08 or is that jsut for strings 23:22:11 just strings 23:27:18 Does rollback also go back if you try to create a function? 23:27:28 nope 23:27:34 hmm 23:27:45 any non insert/update/delete will do an implicit commit 23:27:52 oh 23:29:03 create or replace function receive_pwr (rcv_pwr) 23:29:03 begin 23:29:07 end;arg 23:29:18 you'll need a type up there 23:29:25 speaking of choir, tnight is choir night. gotta run 23:29:33 type up where? 23:29:41 (rcv_pwr integer) or something 23:29:45 oh 23:29:54 markd2 has quit 23:31:20 me too! 23:31:23 * Psychephylax goes home 23:37:26 hazmat has joined #openacs 23:44:12 s/a/in a 23:57:12 * AaronSw disconnects 23:57:32 * AaronSw reconnects 23:57:47 * rbm lights AaronSw on fire 23:58:02 <-- pyromaniac today 23:58:07 the fire spreads and the channel goes up in flames 23:58:17 * rbm lights hazmat on fire 23:58:51 * hazmat screams AHH i'm melting, melting... 23:59:41 Aah! 23:59:51 * vinod saves the day by pouring Java(TM) on everyone