00:03:32 hey mark 00:08:43 hiya 00:21:37 * rbm replies to some oacs bboard questions 00:25:39 * markd2 chugs through some email before turning in 00:29:17 nap time. catch folks tomorrow 00:29:20 markd2 has quit 00:43:27 * AaronSw returns 00:43:40 hey aaron 00:44:30 hello 00:44:48 dircproxy rocks! ;) 00:52:12 what's that/ 00:52:44 An IRC proxy/bouncer -- lets me disconnect my machine and logs IRC messages until I come back 00:59:04 thats pretty cool. 01:02:59 Yeah, it makes me less afraid of quitting out of IRC, which is good ;) 01:07:58 heh 01:08:03 screen and bitchx do the same thing :P 01:09:12 and muh if you want a bouncer too ;) 01:09:56 I use screen all the time. 01:10:05 i love screen 01:10:23 I have a BitchX screen and an RC5 screen all the time 01:11:30 rc5? 01:12:28 what exactly does screen do? 01:12:51 larspind has joined #openacs 01:12:57 Hi Lars! 01:13:01 hi lars 01:13:02 wohoo 01:13:02 hi! 01:13:16 talli is over there in the corner ;) 01:14:09 screen is like a detachable virtual terminal 01:14:27 You can put it in the background and log out but it still keeps doing what it's doing 01:14:27 Ah, cool. 01:14:41 RC5 is a distributed computing project 01:14:47 www.distributed.net :) 01:14:56 No OGR? 01:14:56 We try to break encryption and force RSA make better one 01:15:00 OGR too 01:15:06 rbm: what do you think of the ad university course list? Is it a good path for learning CS? Can you think of anything that it doesn't have? (or anyone else who might have an opinion) 01:15:13 what's OGR? 01:15:14 Yeah d.net is pretty cool... but Cosm looks even neater. 01:15:34 OGR is anoter distributed computing project, but a more useful one 01:15:38 ;) 01:15:46 Optimal something coulumb or some weirdness like that 01:16:05 Optimal Golomb Rulers, useful in all sorts of science stuff 01:16:33 ah 01:16:38 see..lol, not interested in that 01:16:43 I just wanna keep my CC safe 01:16:50 :-) 01:17:03 Well, just because RC5 sucks doesn't mean you need to use it. 01:17:04 Then cut it up in little pieces and eat the bill every month :) 01:17:06 davb: haven't looked. 01:17:11 Ah. darn. 01:17:24 Ah, distributed.net. Yes, I used to run it. 01:17:35 I thought you were talking about the encryption algorithm. 01:18:10 Yeah, I used to run d.net too. 01:18:20 You guys should run it some more and join my team :) 01:18:36 http://stats.distributed.net/rc5-64/tmsummary.php3?team=35018375 01:18:36 A: http://stats.distributed.net/rc5-64/tmsummary.php3?team=35018375 from Spork 01:18:49 A:| DSLReports.com RC5 team 01:18:49 titled item A 01:18:52 Nah, I want all the money! mwahaha 01:18:55 A: We do it for cows! 01:18:55 commented item A 01:20:29 docwolf has joined #openacs 01:20:38 Ahh, cool a Mac OS X client is out. 01:20:52 hi folks 01:20:55 hello 01:20:59 Hi docwolf 01:21:00 are you using netzero? 01:21:04 hi 01:25:59 what the hell is lars in here for? 01:26:29 no one listen to lars! he's dangerous. 01:26:49 talli has quit 01:27:11 Heheheh. 01:27:17 larspind better watch out 01:31:03 abbaJ has joined #openacs 01:35:18 hey! 01:36:23 hey lars. Welcome to #openacs. 01:36:49 <-- hadn't noticed lars come in 01:37:06 tell talli i can be here too :) 01:38:15 paylars 01:38:32 oh, wait, not _that_ lars 01:41:10 napster, bad. 01:44:09 any mandrake users out there? 01:45:51 state diagrams suck :P 01:46:32 Spork: :-) 01:46:41 * Spork sporks into action 01:46:42 yes? 01:47:43 sorry rbm got me hooked on debian :) 01:48:17 i've got this grotesque winmodem built into my dell laptop 01:49:52 debian roxq0rs 01:50:18 how does one watch AVIs in linux? does one at all? 01:50:24 or DivX stuff? 01:54:23 DivX I dont' think yet 01:54:27 AVI you can 01:55:03 cool 01:57:57 You sure can watch Divx on Linux 01:58:10 linuxvideo.org or something like that tells all 01:58:11 brb 02:02:52 ah 02:02:56 i'll take a look later 02:12:56 Ack: Jakob is right! 02:12:59 Solid default designs for end users: Most web projects are not good at interaction design. As a result, advanced features easily end up unusable unless the default design is so good that they won't touch it. 02:12:59 Simplicity for web builders: Although it is often overlooked, programmers are people too, and they appreciate increased tool usability. Sure, they can figure out a complex API, but why waste their time? 02:33:47 docwolf has quit 02:58:57 anyone know what's the 'right' way to change the font color in CSS? 03:08:44 font-colo 03:08:48 err font-color 03:11:28 Inline? example please. 03:11:41 I suck at making things pretty 03:11:41 larspind has quit 03:11:47 larspind has joined #openacs 03:12:21 larspind has quit 03:18:15 Use a tag in the of your page to point to a .css document 03:18:21 in the .css document put somehting like 03:18:29 .frooznats { font-color: purple } 03:18:41 and in your document the purple colored things should look like: 03:18:51 this is cool 03:22:00 rzolf has joined #openacs 03:24:56 rzolf has quit 03:27:16 gotcha. 03:27:19 tks aaron 03:27:28 sure 03:27:38 I knew about linking to a css, but my css knowledge is pretty minimal 03:28:06 Ahh, OK, was just going to say the link format was: 03:28:11 glad i could help 03:29:26 bbiab 03:47:13 heh 03:47:20 me sleep =D 03:47:23 * Spork detaches 03:47:41 * Spork returns with shaking a spoon angrily 03:47:46 arg 03:47:52 grammar has gone to hell 05:44:38 ola has joined #openacs 06:40:08 abbaJ has quit 09:19:59 jerryasher has quit 10:29:06 davb has quit 11:28:54 ola has quit 13:03:13 davb has joined #openacs 13:39:26 Zeke has joined #openacs 13:40:36 Anyone know if there's any IRC activity around ACS Java development? 13:54:11 I don't think so. 13:56:04 Zeke has quit 13:56:55 markd2 has joined #openacs 14:09:39 Good morning markd2 14:10:24 greetings 14:21:30 yo 14:22:23 Zeke has joined #openacs 14:22:39 hello 14:22:52 heya 14:24:06 * Spork sporks Mark 14:24:27 I'm looking for a channel where ACS-Java types hangout 14:24:37 this is pretty much tcl-land 14:24:44 and Oracle :) 14:25:20 yah, I figured 14:25:45 I did a tcl acs last year, but I'm trying to do a 4.x site now 14:26:03 you can still do it in tcl 14:26:21 yes, I know :) 14:26:29 but I *like* Java 14:27:13 given the aD license, the OpenACS crew won't be picking up java 14:27:16 although we're still a bunch of nice guys :-) 14:27:22 heh 14:27:24 there's also a #java channel here on openprojects 14:27:26 it's not abouto what YOU like, it's about the tools at hand and what your boss orders you to do -=) 14:27:28 but that's more generic java stuff 14:27:54 <- is the boss, gets to make the choices :) 14:28:01 ah 14:28:02 then it works 14:28:11 yah, I hang out on #java on efnet 14:28:43 Spork: do you think I should go for a CS degree? 14:30:25 depends on what you want to do with your life :-) 14:30:30 * markd2 is not Spork, but plays one on TV 14:31:30 Aha. Well I plan on programming computers and I figured it would be handy to actually know what I was doing. 14:31:32 I think you should match me up with a spoon first then we'll talk :) 14:31:32 Dave, it really does 14:31:32 If you can get a good job without one, wasting time getting one is not as essential as you would think 14:31:34 i guess it depends on the school though 14:31:49 Aha. Well I guess I'll just wing it. 14:31:55 many jobs, though, look askanse if you don't have a degree 14:31:57 it worked so far. 14:32:05 a friend of mine is having trouble finding work in the NoVA area because of it 14:32:12 and he does have some holes in the education 14:32:36 particularly data structures and algorithm analysis 14:32:50 I think that is the stuff I am interested in. 14:32:50 e.g. knowing when O(n^2) is OK, and when you need to look for something better 14:33:10 if you're at a place where you can take it after-hours, or pick and choose classes, that may be the best 14:33:14 I don't think I'll get that hacking on OpenACS 14:33:31 Yeah. That is my plan. Empire State College lets you design a program based on what you want to learn. 14:33:34 so you don't have to take the crap like History of Western Literature for Pretentious Blow-hards 14:33:37 sweet 14:33:43 * Spork shivers at the big Oh notation 14:33:47 make it stop make it stop! 14:33:48 big Oh rules(tm() 14:33:59 in that case just take the cool stuff :-) 14:34:21 heh 14:34:23 where's this school 14:34:26 "I don't have a degree, but I have taken data structures, theory of computation, compiler design, and advanced database implementation and passed with an A average" 14:34:28 Thanks guys. That means I better learn all that math. 14:34:29 i don't mind a re-education 14:34:32 Spork: its everywhere. 14:34:46 Based in albany. Its part of SUNY. 14:34:50 hmm 14:34:56 it's a SUNY day out here too 14:34:56 http://www.esc.edu 14:34:57 A: http://www.esc.edu from davb 14:35:07 A:|Empire State College 14:35:07 titled item A 14:35:16 A: School without walls, or something like that 14:35:17 commented item A 14:36:14 arg 14:36:22 ht+ to the front 14:37:24 well there you go. 14:38:12 cool 14:38:15 I just might do that 14:38:20 How's their tuition? 14:38:53 Same as SUNY. 14:39:33 hmmm 14:39:39 Ok, then how's the education? 14:40:53 That depends I guess. Its self-directed. They help you work towards your goals. You get a mentor who helps you write up a plan and figure out how you will complete it. 14:41:29 They give you credit for learning stuff. You have to work it out with the mentor how they will evaluate what you have learned. 14:41:56 A: For OpenACS hackers who need a degree 14:41:57 commented item A 14:56:16 hmmm 14:56:19 that sounds fun 14:57:06 * davb checks Spork's sarcasm meter... 14:57:26 Zeke has quit 15:00:03 ola has joined #openacs 15:00:12 I'm serious 15:00:14 Hi ola. 15:00:17 hola guys! 15:00:17 Cool. 15:01:10 hey ola 15:01:23 * Spork stabs ola with a psychephylax 15:02:04 hey spork! 15:02:11 :) 15:03:14 spork: you change nickname more often than I change socks! 15:03:30 you're supposed to change socks? 15:03:41 dunno. 15:07:08 :/ 15:07:17 I'm mentally unstable 15:07:24 I need change in my daily life 15:09:02 * markd2 tosses Spork 37 cents 15:09:13 * Spork eats it 15:10:30 ok 15:10:33 I need help 15:10:45 My gas sensor on my car is acting weird 15:10:58 telnet into it and see if it connects 15:11:02 it shows empty when it's full or half when it's full 15:11:08 tried that 15:11:17 Someone firewalled it pretty well 15:12:18 it's going to be ~230$ to fix 15:12:22 should I fix it or not? 15:20:10 I would 15:20:24 but I'm paranoid about running out of gas in the middle of nowhere 15:23:34 me too 15:23:50 It also pisses the hell out of me because i look at that more than i look at the road now 15:24:57 docwolf has joined #openacs 15:25:45 yo 15:26:24 hi 15:26:51 spork: you shouldn't be looking at the road. the road might turn! 15:26:53 greetings 15:27:06 lol 15:27:09 Ola, re-read that 15:49:19 wtf 15:49:24 This makes no sense! 15:50:14 heh 15:50:30 I'm trying to link a library 15:50:36 and it's pointing to the right place 15:50:38 but it still cant 15:50:41 find it 15:50:59 ld: fatal: library -l/opt/local/lib/snmp++: not found 15:50:59 ld: fatal: File processing errors. No output written to nssnmp.so 15:51:14 MODLIBS = -l/opt/local/lib/snmp++ 15:53:01 docwolf has quit 15:56:10 wow. I know have almost $2000 worth of books in my Amazon wish-list. 15:57:15 if you're going to use the full path, you'll need it to match the library file 15:57:20 which is most likely libsnmp++.so 15:57:23 or libsnmp++.a 15:58:01 yeah 15:58:25 but I tried that and still get the same error 15:58:57 but the ld -l tag says it adds the lib prefix and the .so suffix 15:59:21 Search a library libx.so or libx.a, the conven- 15:59:21 tional names for shared object and archive 15:59:22 libraries, respectively. 15:59:36 of course the underlines didn't come through 16:00:00 but your'e giving it the full path 16:00:09 which might short-circuit the auto name generation 16:00:17 vinod has joined #openacs 16:00:20 do -L/opt/local/whatever -lsmtp++ 16:00:26 I did 16:00:38 it's not finding it because it doesn't know to look in /opt/local/lib 16:00:50 oh 16:00:52 hang on 16:01:45 I hate you :P 16:02:56 it works? 16:03:13 Hi vinod! 16:03:40 yes 16:03:42 Hey Vinod 16:04:00 hey everyone! 16:04:35 ok Mark, I got a hard question for you thenk 16:04:36 then 16:04:51 is there a way to find out who you're logged in as 16:04:52 I do set 16:04:55 and see USER=me 16:05:06 but does it change if you su without using the - 16:05:35 I use whoami on linux 16:06:04 not installed on this box 16:06:14 you just cannot win. 16:06:21 tell me about it 16:06:33 you can also use "id" 16:06:51 cool 16:06:54 * davb learns something new 16:07:15 good good... :) 16:07:25 but is there a way to find out how many levels of su you did so far? 16:09:27 I doubt it 16:10:38 doh! 16:13:36 hmm.. 16:14:19 I can't drop my package 16:15:01 errors? 16:20:11 argh! I changed the name of the package from mp3jukebox to mp3-jukebox 16:20:23 and now the parameters won't work. 16:20:35 aha. 16:20:47 Did you update the .info file? 16:20:53 so I can't recreate the old error.. 16:20:57 yes. 16:21:15 aha. 16:23:38 talli has joined #openacs 16:23:48 Hi talli. 16:24:10 hello everybody 16:24:13 not including vinod 16:24:34 ola: did you change the package after it was installed? 16:24:49 * markd2 hellos vinod 16:25:19 thanks markd2 16:25:26 * vinod sticks tongue out at talli 16:25:54 * talli grabs vinods tongue and fillets it with a rusty fish hook 16:26:10 mmmmm ... fillets 16:26:14 ola: I can't see anywhere it references the name except in the .info file 16:27:23 davb: yeah, I changed that and the create/drop scripts. 16:28:22 Unfortunately that is the extent of my knowledge. 16:34:14 ola: are you trying to drop the package from psql? 16:34:25 no problem, Dave. I just have to dig around a bit. 16:37:01 vinod: I *can* drop if I dont insert any mp3s in the db. if I do, there are some "parse error" somewhere.. 16:37:24 dropping behaves the same from psql and package manager. 16:38:58 the problem now is that I can't show you the error because I've introduced another one:-( 16:40:11 :-) errors hidden by errors. I'm good at those. (at least at creating them) 16:40:35 lol 16:41:39 aha. I know what it is! 16:41:45 sounds like a good resume bullet point 16:41:52 hh 16:42:01 hardcode hell 16:45:34 lol 16:45:42 nice legal remark on a website: My lawyer can whup your lawyer. 16:45:56 heh 16:48:17 ok 16:48:26 this is what I get: 16:48:29 Error: POST /acs-admin/apm/package-delete-2.tcl psql:mp3-jukebox-drop.sql:54: ERROR: parser: parse error at or near "mp3__delete" 16:48:29 psql:mp3-jukebox-drop.sql:80: ERROR: acs_objects_object_type_fk referential integrity violation - key in acs_object_types still referenced from acs_objects 16:49:04 doesn't say much, heh. 16:49:25 Aha, 16:49:27 do you have any acs_objects that are of a type created by the mp3 jukebox package? 16:49:42 sounds like you're dropping a type, but there's still objects of that type 16:50:21 markd2: yes, "mp3" and "mp3_playlist" 16:51:33 if I don't have any mp3s or playlists in the db everything drops fine. 16:51:58 so it sounds like you either need to clean up the mp3s or playlists, or leave the acs_type floating around the system 16:54:06 let me show you a cursor that should clean up those things so you can see if its wrong 16:54:11 ok 16:54:14 create function inline_0 () 16:54:15 returns integer as ' 16:54:15 declare 16:54:15 v_play_recrecord; 16:54:15 v_mp3_recrecord; 16:54:15 begin 16:54:17 for v_play_rec in select playlist_id from mp3_playlists 16:54:19 loop 16:54:21 mp3_playlist__delete (v_play_rec.playlist_id); 16:54:23 end loop; 16:54:25 for v_mp3_rec in select mp3_id from mp3_mp3s 16:54:27 loop 16:54:29 mp3__delete (v_mp3_rec.mp3_id); 16:54:31 end loop; 16:54:33 return 0; 16:54:35 end;' language 'plpgsql'; 16:55:03 psql complains right at inline_0()... 16:56:10 I don't know plpgsql, but what's the complaint at inine_O? 16:56:19 ola: looks like you got 2 errors above. 1) mp3__delete didn't work 2) acs_objects are still hanging around so you can't delete the type 16:56:37 exactly 16:56:50 error 2 is probably dependent on error 1, so we need to figure out why there's a parse error at mp3__delete 16:56:53 mp3__delete works in psql.. 16:57:39 markd2: psql:mp3-jukebox-drop.sql:54: ERROR: parser: parse error at or near 16:57:40 "mp3__delete" 16:58:08 line 54 is the call to inline_0() 16:59:02 anything above that could leave a lingering error? 16:59:11 like an unclosed string or a missing ";"? 16:59:15 talli has quit 17:00:53 I dunno, but it executes nicely when there's no playlists and stuff. 17:02:01 is there a way to source a file in aolserver? 17:02:22 like a tcl file that is 17:02:42 ola: could you post the code to mp3__delete (if it's not too long) 17:03:34 vinod: sure, hang on. 17:03:51 Spork: http://aolserver.com/docs/tcl/tcl8.3/TclCmd/source.htm 17:04:01 create function mp3__delete (integer) 17:04:02 returns integer as ' 17:04:02 declare 17:04:02 p_mp3_idalias for $1; 17:04:02 begin 17:04:02 delete from mp3_mp3s 17:04:03 where mp3_id = p_mp3_id; 17:04:05 raise NOTICE ''Deleting mp3...''; 17:04:07 PERFORM acs_object__delete(p_mp3_id); 17:04:09 return 0; 17:04:11 end;' language 'plpgsql'; 17:04:36 http://www.shiosai.squares.net/Photos/EC113-domo5.jpg 17:04:36 B: http://www.shiosai.squares.net/Photos/EC113-domo5.jpg from markd2 17:04:42 B: Rzolf in repose 17:04:42 commented item B 17:05:18 ola: check the error log again for a sec... do you ever get that 'Deleting mp3...' in the log? 17:06:22 vinod: lemme check. 17:07:04 markd2: how does rzolf code without fingers? 17:07:58 surprisingly well 17:08:03 that Kinesis keyboard is truly amazing 17:08:08 haha 17:08:35 ok 17:08:38 I need help :( 17:08:55 I'm rewriting a tcl standalone script to be used in a tcl page 17:09:00 in aolserver with nssnmp :) 17:09:15 vinod: no I don't.. 17:09:40 this time around I got this: 17:09:42 psql:mp3-jukebox-drop.sql:54: ERROR: parser: parse error at or near "mp3_playlist__delete" 17:10:21 now I have both mp3s and playlists in the db. 17:10:42 s/now/now that 17:11:34 ola: weird... and doing 'select mp3_playlist__delete( id );' in psql works (using a valid id)? 17:14:21 openacs4=# select mp3_playlist__delete( 9046 ); 17:14:22 NOTICE: Deleting playlist... 17:14:22 mp3_playlist__delete 17:14:22 ---------------------- 17:14:22 0 17:14:22 Label NOTICE not found. 17:14:22 (1 row) 17:14:39 ola: i think i got it (maybe) 17:14:48 COOL. 17:15:12 ola: change your for loops to 'PERFORM mp3_playlist__delete... 17:15:32 ok. hang on... 17:18:37 So...anyone up for telling me if doing tcl for aolserver is just like regular tcl? 17:18:47 pretty much 17:18:51 ok 17:18:53 some commands you can't really use, like 'cd' 17:18:57 ah 17:19:10 and there may be namespace issues. 17:19:16 I'm not hip on the latest details 17:19:38 I keep hearing that word "namespace" but don't know what it is 17:19:39 vinod: the same..ERROR: parser: parse error at or near "mp3_playlist__delete" 17:21:18 I hope I don't have to "watch" the drop script or something... 17:21:29 it's the final fronteir 17:21:35 i's like java packages 17:27:04 vinod: I'm deleting from acs_permissions,acs_privilege_hierarchy,acs_privilege_hierarchy and acs_privileges just before the call to inline_0(). I hope that doesn't mess things up. 17:28:59 ola: no, that shouldn't matter. i'm just really surprised that the 'PERFORM' thing didn't work. can you post those FOR loops again? 17:33:22 vinod: I'm sorry. that seens to be fixed now... Now I get this: 17:33:23 psql:mp3-jukebox-drop.sql:79: ERROR: acs_objects_object_type_fk referential integrity violation - key in acs_object_types still referenced from acs_objects 17:33:24 psql:mp3-jukebox-drop.sql:80: ERROR: acs_objects_object_type_fk referential integrity violation - key in acs_object_types still referenced from acs_objects 17:34:06 vinod: (the PERFORM helped:-)) 17:34:32 ola: phew! thought i was going crazy for a sec :-) 17:34:44 talli has joined #openacs 17:34:45 heh, thanks! 17:34:55 hi talli. 17:35:18 pat has joined #openacs 17:35:36 ola: so, are there any rows left in mp3_mp3s or mp3_playlists? 17:35:41 another find PERFORMance by Vinod 17:35:46 lemme check. 17:35:59 markd2: hehe 17:36:19 so true. 17:36:19 markd2: when in doubt, just start adding keywords, that's my motto 17:36:28 heh 17:37:13 hmmmmmm 17:37:38 vinod: well, the tables are dropped 17:38:03 I can comment out that 17:38:35 ok 17:38:39 this sux 17:38:56 ola: the main issue is figuring out which rows in acs_objects are still of object type 'mp3...' 17:39:25 vinod: ok. 17:41:24 hmm.. way too many rows of those types in acs_objects... 17:44:12 aha! 17:44:21 lol 17:44:28 i like the sound of that! 17:44:30 the error seens to be because of legacy cruft.. 17:44:35 :-) 17:46:36 ok why wouldn't my module load? 17:46:39 woohoo!! 17:47:02 thanks vinod! great job.. 17:47:39 ok, I figured it out I think 17:48:20 * ola is going to call Vinod, Mr PERFORM from now on 17:48:46 with a name like that, he could have a promising career in "film" 17:48:47 haha 17:49:22 yeah, i'm sure that name must be taken 17:49:40 didn't talli have a career in "film"? 17:50:07 haha 17:52:00 damn it 17:52:09 it's still not expanding my variables 17:53:29 talli wishes he had a career in film, and he is working very hard at developing a portfolio, but he has been incredibly frustrated due to roadblocks set up by his mischevious and mysterious nemesis code named "vinod" 17:53:59 * vinod laughs maniacally 17:54:40 set fd [ns_snmp create 167.206.253.186 -community tsgInterface -timeout 5 -retries 3] 17:54:50 anyone see anything syntatically wrong with that 17:55:06 no 17:55:50 is it your own AOLserver module? 17:56:37 no 17:56:50 I'm trying to verify it's isntalled properly 17:58:07 i don't recognize the command ns_snmp... 17:58:25 it's from nssnmp.so an AOLServer snmp module 17:58:39 yanni has quit 17:59:04 I can't even get this to work: 17:59:10 puts "hello" 18:00:08 ah 18:00:10 it's wrong 18:00:11 lol 18:00:55 use: ns_return 200 text/html instead. 18:01:14 ok 18:01:17 this is what I have: 18:01:22 oh yea, puts is another one you can't use 18:01:24 set hello "hello" 18:01:24 set $hello 18:01:41 Makes sense to me...should print hello to the webpage 18:01:45 uh, no 18:01:50 all set does is return the value 18:01:54 instead it's thinking ... is a variable 18:01:56 so just 'set $hello' is a null op 18:02:11 accumualte your stuff into a string, and do ns_return ... 18:02:14 no. set $hello doesn't return to the connection 18:02:25 right. aolserver doesn't work like that 18:02:27 but but but...in real tcl it's set a var and print a var 18:02:38 not really 18:02:42 in *tclsh* it does 18:02:43 yeah 18:02:47 that's what I Meant 18:02:56 but embedded tcl, there's not really a standard out you can use like that 18:03:21 d'oh 18:03:26 ok 18:03:30 so ns_return prints stuph 18:03:37 how do I get stuph? 18:03:39 it returns a bolus of data to the browser 18:03:55 set stuph "Give MarkD cookies" 18:03:58 spork: aren't you using the templating system? 18:04:00 ns_return 200 text/html $stuph 18:04:03 not yet 18:04:05 pat has quit 18:04:07 aha 18:04:26 making a baby test page for debugging the rewrite of the tcl script into a browser for ns_snmp 18:04:42 * Spork gives Mark a cookie 18:04:50 you can also use ns_log - that'll send text to the your server log 18:05:17 shweet 18:05:27 use "ns_return 200 text/html $stuph" or ReturnHeaders followed by ns_write $sporrrrrrk 18:05:37 make sure you use the blink tag (and quote your inspiration as markd at the top of every page) 18:05:44 haha 18:06:08 thanks Mr. PERFORM 18:06:19 indeed 18:08:14 markd2: no problem. btw what happend to all the java applets and animated gifs and scrolling text on your website? 18:09:15 ok 18:09:20 here's another problem I'm clueless about 18:09:22 heh 18:09:36 I have a file that contains some tcl stuph 18:09:43 I have to somehow source it 18:09:50 use 'source' 18:09:51 btw, it's in a file called nsmib-procs.tcl 18:09:59 source /path/to/nsmib-procs.tcl 18:10:00 Sounds like it's some sort of a procedure? 18:10:03 k 18:10:06 * Spork tries 18:12:05 nope 18:12:10 very odd 18:12:47 what's in nsmib-procs.tcl? 18:13:20 things like this: ns_mib set 1.3.6.1.2.1.1.5 SNMPv2-MIB sysName {OCTET STRING} 18:13:35 they load OID values into the hash table 18:13:58 are the procs, or just free-standing code? 18:14:11 as far as I understand it, free-standing code 18:14:12 er, are they procs 18:14:17 open the file and take a peek 18:14:21 i did 18:14:27 so no procs in there? 18:14:29 it's just ns_set mib....over and over again 18:15:19 it shoulds work - I've sourced files before 18:15:50 ns_mib set OID module label syntax enum(N) ... 18:15:51 create new MIB node with optional enum values for Integer 18:16:11 that's what ns_mib does 18:16:23 how are you verifying that it didn't work? 18:16:46 Request Error 18:16:46 invalid OID get 18:16:46 while executing 18:16:46 "ns_snmp get $fd get 1.3.6.1.2.1.2.2.1.6" 18:16:46 invoked from within 18:16:46 "set sysName [ns_snmp get $fd get 1.3.6.1.2.1.2.2.1.6]" 18:16:46 ("uplevel" body line 6) 18:17:01 invoked from within 18:17:21 hrm 18:17:23 dunno 18:17:27 well 18:17:38 the $fd should be replaced with SnmpX 18:17:42 sounds like a job for THE PERFORMER.. er.. the guy who did ns_snmp 18:17:51 so my guess it's not expanding the variables again 18:18:15 put some ns_logs into that included file and see what it has in there 18:18:15 set sysName [ns_snmp get $fd get 1.3.6.1.2.1.2.2.1.6] 18:25:26 how come it's not expanding $fd to the appropriate session name? 18:26:01 it probably is 18:26:28 tcl does variable expansion inside of square brackets 18:26:51 so unless there's context not included in the code pasted, by the rules of the langauge it has to be 18:27:05 odd 18:27:16 ns_mib set 1.3.6.1.2.1.1.5 SNMPv2-MIB sysName {OCTET STRING} 18:27:16 18:27:16 set fd [ns_snmp create 167.206.253.186 -community tsgInterface -timeout 5 -retries 3] 18:27:16 18:27:16 set sysName [ns_snmp get $fd get sysName] 18:27:17 18:27:19 ns_return 200 text/html $sysName 18:27:21 my whole code 18:27:23 mooo 18:27:25 noo 18:27:27 ack 18:27:28 good 18:27:30 ack!!! 18:27:35 syn!!! 18:27:35 żoom 18:27:42 syn! 18:28:13 what's up? 18:28:20 * rbm is only here for < 1 hr 18:29:31 Spork: just after the 'set fd' call, try doing : ns_log Notice "fd=$fd" 18:29:45 ok 18:29:49 then look in the error log to see what fd is getting set to 18:29:51 markd2 has quit 18:29:56 here's the sample code from the person who wrote the code: 18:29:58 set val [ns_snmp get $fd get 1.3.6.1.2.1.2.2.1.6] 18:32:03 ns_log Notice "fd=$fd" 18:32:13 that isn't right is it...it's not setting anything in the error file 18:33:20 that looks right. once run, there should now be a line in the server-error.log 18:34:09 ok 18:34:11 that does work 18:34:13 fd is fine 18:35:14 ok then 18:38:22 yippie! fd is fine. 18:38:55 vinod has left #openacs 18:43:25 yeah 18:43:30 and I can actually run it now 18:43:33 but it returns nothing 18:54:45 hmmm 18:54:51 yeah 18:54:56 I'm not sure who to believe 18:55:03 the README says there should be a second get 18:55:04 is fd getting set? 18:55:08 yes 18:55:17 snmp16 18:55:19 ..etc 18:55:22 ok good. 18:55:42 here's the thing: 18:55:56 set val [ns_snmp get $fd get 1.3.6.1.2.1.2.2.1.6] 18:56:17 yeah I saw that, seems kinda unecessary. take it out and see if it works. 18:56:21 if I add that into my script: set sysName [ns_snmp get $fd 1.3.6.1.2.1.1.5] it won't get interpreted 18:56:33 what error do you get? 18:56:55 invalid OID get 18:56:55 while executing 18:56:55 "ns_snmp get $fd get 1.3.6.1.2.1.1.5" 18:56:55 invoked from within 18:56:59 sounds like an issue with ns_snmp, not your tcl. 18:57:06 i emailed him 18:57:10 OK. so looks like you need it. 18:57:19 no 18:57:21 you don't 18:57:31 it's saying it doesn't know what OID=get is 18:57:31 Oh, I see. 18:57:46 if I take it out OID=1.2....etc 18:57:48 which is what I want 18:57:54 And that returns nothing. 18:58:00 right 18:58:24 markd2 has joined #openacs 18:58:26 oooh if he was here, I'd spork him real good! 18:58:38 * Spork gives Mark a cookie 18:58:51 cookies! 18:59:31 :) 18:59:50 * Spork looks at the source code 19:07:49 ugh! 19:08:10 no comments? 19:08:43 no, there are 19:08:47 but they're not very good 19:08:56 I mean, they're good if you're a C genius 19:08:58 which i'm not 19:11:22 That tricky part is knowing where it is failing. The AOLserver module could be fine, but the library it is using might be broken, 19:11:47 I think it is broken 19:12:41 i don't remember what -> does in c 19:12:46 something to do with pointer math 19:14:21 fundamentally it takes the address of a location in memory + an offset to that 19:14:32 it's like object.field in java 19:15:12 heh 19:15:24 odd 19:15:32 I think he does want a get in there 19:20:43 bye bye, ruby...Monday. 19:20:47 ola has quit 19:24:09 I know there's an easy way to go to the end of a buffer in emacs 19:24:12 I just can't remember it 19:24:17 M-> 19:25:05 Symbol's function definition is void: find-tag 19:25:33 even emacs hates me 19:29:05 ok 19:29:07 he replied 19:35:44 no tcl mode, and your M-> keybinding is bad. sounds like your emacs setup is dorked 19:36:43 blame my boss for not installing it globally 19:42:38 * markd2 blames the Sporkboss 19:43:25 :P 19:51:40 what does this look like to you TCL wise: 19:51:42 {1.3.6.1.2.1.1.1.0 {OCTET STRING} {Cisco Internetwork Operating System Software IOS (tm) 7200 19:51:42 Software (UBR7200-IK1S-M), Version 12.1(7)EC, EARLY DEPLOYMENT RELEASE SOFTWARE 19:51:42 (fc1) TAC Support: http://www.cisco.com/tac Copyright (c) 1986-2001 by cisco Systems, Inc. Compiled 19:51:42 Tue 12-Jun-}} 19:52:10 looks like nested lists 19:52:37 how do I get the actual info 19:54:41 ? 19:54:57 I don't want the 1.3.6.1...etc 19:54:59 lindex $stuff 0 should give 1.3..1.2.1.1.0. lindex $stuff 1 should give you { OCTET STRING } 19:55:09 and the {OCTET STRING} bit 19:55:24 what about the other one, the actual text? 19:55:27 lindex $stuff 2 gives you Cisco INternetwork ... Tue 12-Jun- 19:55:31 oh ok 19:55:33 * Spork tries 19:58:21 what's wrong with this way: 19:58:24 set sysName [lindex [ns_snmp get $fd 1.3.6.1.2.1.1.1.0] 2] 19:59:20 resuming ns_snmp get returns what you pasted in above, it should work 20:00:02 nope 20:00:07 it goes blank again 20:00:49 2? 20:00:55 2 20:00:57 ok nevermind 20:01:13 this: set sysName [ns_snmp get $fd 1.3.6.1.2.1.1.1.0] 20:01:14 works 20:01:17 then I do this: 20:01:27 and it does not 20:01:41 and yes, I uncomment it 20:03:13 his way: 20:03:13 the curly braces around everything may be confusing it 20:03:18 Each SNMP OID varbind is a Tcl list with 3 items: 20:03:18 1. OID 20:03:18 2. Type 20:03:18 3. Value 20:03:18 So, just use [lindex $var 2] to get value. 20:03:23 leading it to be a list of one item that's a list of a bunch of options 20:03:35 try [lindex [lindex $var 0] 2] 20:03:38 and see if that works 20:03:46 i think it will 20:04:15 =) 20:04:18 You're too smart for this 20:05:00 * Spork gives Mark an oracle shaped cookie 20:05:42 woo hoo! 20:05:47 Cookies, Enterprise Edition 20:06:06 lol 20:35:11 hmmm 20:35:16 if I was here since 10:10 20:35:19 I can leave at.... 20:36:35 bye 20:36:38 davb has quit 20:58:57 arg! 21:09:30 markd2 has quit 21:11:11 [GlobalNotice] Hi all. Services will be back up in a moment, after some splits. Please bear with us. 21:12:09 talli has quit 21:12:09 Spork has quit 21:12:09 rbm has quit 21:12:12 ChanServ has changed the topic to: Welcome to the OpenACS Helpline | http://www.openacs.org/ 21:12:12 This channel is logged: http://www.blogspace.com/openacs/chatlogs/ and blogged: http://www.thedesignexperience.org/openacs/ircblog 21:12:37 Spork has joined #openacs 21:12:37 rbm has joined #openacs 21:12:37 talli has joined #openacs 21:13:59 AaronSw has quit 21:14:42 AaronSw has joined #openacs 21:14:56 * AaronSw returns 21:18:52 moo 21:19:12 holy chit! 21:19:18 my boss volunteered to do something for me 21:19:23 * Spork falls under his desk 21:36:05 hazmat has quit 21:42:29 * rbm borrows $1 from fozz to buy a Coke 21:42:39 wrong window :) 21:42:57 lol 21:44:06 hey rbm, what's the best location to find good PG info? 21:44:11 the best place for docs and so on 21:44:21 postgresql.org/idocs/ and techdocs.postgresql.org 21:44:27 thanks 21:44:36 and don't forget my own brasileiro.net/postgres/ 21:44:48 thanks :) 21:45:03 ok 21:45:07 http://www.brasileiro.net/postgres/ 21:45:07 C: http://www.brasileiro.net/postgres/ from rbm 21:45:23 C:|PostgreSQL Cookbook and other resources. Go add your own recipe! 21:45:24 titled item C 21:45:33 Can someone give me the scoop on how to do something? 21:45:44 no need for details just an overview 21:45:47 depends on what this something is... 21:46:22 well, I kinda left the UI for my package/site alone to pursue the SNMP stuff 21:46:35 The problem I'm foreseeing is with the user hierarchy 21:47:26 like how would I go about making sure a specific manager can only update the info of people who work for him 21:47:41 Hmmm. I know nothing about SNMP 21:47:48 don't worry about SNMP 21:47:50 That I can do 21:48:11 I'm thinking how to prevent Manager A from updating Manager B's employees using SQL/OACS 21:48:23 Permissions system. Is that ACS 4? 21:48:30 yeah ACS 4 21:48:41 but I don't want to define a billion relations for every manager 21:48:45 Permissions system them. 21:48:47 there has to be an easier way 21:48:48 You don't have to. 21:48:59 The way I tried setting it up is like this: 21:49:08 there's a table emp_hierarchy 21:49:26 that has employer | employee as two columns 21:49:34 I was hoping I can use that to check 21:49:42 Sure you can 21:50:38 optimally, I would like to hack the simple-search by keyword to only show entities that are employed by the searcher 21:51:17 why? Wouldn't it be easier to just create a proc to abstract that for you? 21:51:53 ummm...i suppose so 21:51:55 yo, rbm, what's up with interbase and SAPdb? are they OSS yet? 21:52:08 Yes. 21:52:25 are they worth anything yet? how do they compare to PG? 21:52:34 Interbase had birth pains with its open sourceness. I'm not up to speed with SAPdb, but AFAIK, it's OSS already 21:52:47 under what license? 21:53:01 We had a thread comparing Interbase to PG a while ago when we were thinking of porting ACS 4 to Interbase as well. 21:53:13 Don't remember. GPL IIRC 21:53:20 aaah! it's talli 21:53:34 uuuuh! It's aaron 21:53:58 ahhh it's me going home! 21:54:11 aaron, talk some more and i'll tell the truant office about your "unschooling" plans 21:54:26 heheh 21:54:38 bye guys 21:54:40 see ya on Wed 21:55:11 later 21:55:19 SAPdb is GPL. cool 21:55:50 how similar is it to PG, any idea? 21:56:06 no 21:57:06 rbm, why aren't you in #postgresql? 21:57:44 I should be there... 21:58:26 yeah! get the hell out of here! 21:59:50 Wha?? 22:00:48 oh, sorry. i though aaron was talking about vinod. 22:00:55 lol 22:01:46 Hmmm. You can't change the /topic on #postgresql and they left that stupid "greatbridge.org is dead" there 22:01:47 hazmat has joined #openacs 22:02:01 That's gotta be docwolf 22:02:30 Hmm, I don't see that... I just see "Welcome to #PostgreSQL : PostgreSQL Discussion | www.postgresql.org | www.greatbridge.org" 22:04:34 * rbm now has three IRC windows open in a single scree 22:04:38 s/$/n/ 22:05:50 I better get some work done. 22:09:47 AaronSw: Ah, you get me in there, then you leave?!?!? 22:09:57 Yes. 22:10:19 keeewwll! 22:13:38 Open source. Open ideas. Seriously butt-kicking software. 22:14:39 rbm, do you know anything about sybase? 22:14:56 I messed with it 2 years ago for a couple months. But that's it. 22:15:18 One thing I know is that M$ stole it then screwed it up :) 22:15:19 what would it take to port openacs4 to work with sybase? 22:15:30 what? 22:15:41 talli: If it has stored procedures (and I think it does) then it should be doable. 22:15:55 it does have stored procedures 22:16:04 but doable and reasonable are two different things 22:16:20 reasonable usually involves money 22:16:31 how reasonable is it to port OACS to another DB? 22:16:40 MS SQL Server is based on Sybase. M$ was "working together" with Sybase to improve the product both on Unix and NT. Turns out that M$ was only working on the NT port. When it got everything it wanted from Sybase, it borke off and stole it. 22:17:07 talli: Not very unless we finish the 2 initial ports 22:17:14 s/unless/until/ 22:18:46 i know, it would have to wait until then 22:18:56 but musea's revenue might not :) 22:19:03 so we're lookingto get whatever we can 22:19:18 talli: If someone's paying you to do it, go for it. You can ask for lots of moneys! 22:19:25 that's the idea 22:19:40 i've always been open to porting OACS to MS 22:19:50 of course, it might cost 1 million dollars, but we would do it 22:19:53 :) 22:20:00 Nah, probably 2 million. 22:20:02 :-) 22:20:09 You can give the extra million to me. 22:20:13 MS SQL is very non-standards compliant 22:20:17 and a couple of goats to sacrifice, too 22:20:42 aaronsw: i'll give you a syllabus and a texbook, that's what i'll give you 22:21:03 Pfft! 22:21:42 rbm: when will you learn? 22:22:00 talli: what? 22:22:04 MS is always standards compliant - who do you think foces the standards??? 22:22:23 heh. s/forces/dumbs down/ 22:23:54 rbm: have you checked out openacs.museatech.net? 22:24:00 what do you think? 22:24:03 what's the word? 22:24:22 talli: Yes. I like it. There's one thing I don't like though. 22:24:23 and what does your wife think about you spending all your time in this IRC channel? 22:24:31 It looks horrible in < 1024x768 22:24:37 really? 22:24:38 weird. 22:24:45 post that in the feedback forum 22:24:45 And most of the page is in a big huge table 22:26:06 ah, the recent bboards posts does look horrible in 1024x768 22:26:13 that's a bug that needs to be fixed 22:26:52 can you post something in the feedback forum? 22:26:58 talli: yeah, in a but 22:27:02 s/but/bit/ 22:27:34 i would prefer it to be in a butt, but whatever... 22:28:32 heh 22:28:48 you never answered my question though ... 22:29:02 with all the time you spend with software, when do you have time for your wife??? 22:29:03 I didn't? Which question? 22:29:22 talli: Oh, missed that 22:30:21 Heheh. She doesn't see the IRC window often. I have a shotcut on wmaker (Ctrl+right/left arrow) to quickly switch desktops, so when I hear she coming in to the office, I switch desktops to my Emacs desktop full of code 22:30:26 "I'm working honey" 22:30:36 And I ususally am 22:31:21 ha! 22:31:22 She's okay with IRC though. I do find time for her at night. And on weekends 22:31:27 that's evil. 22:31:54 well, i guess being on the IRC channel is better than trading kiddie porn, but not that much better. 22:32:01 She's a wonderful wife. I had to teach her about interrupting me when I'm concentrated in a certain problem though :) 22:33:10 there are quite a few jokes i can make out of that last line - but i will prevent myself from going there. :) 22:33:37 Uh oh. I hope my sometimes-bad English didn't put me in trouble there 22:34:27 no, not at all. but my dirty mind is always interpreting even the most innocent of sentences in the most salacious way possible. 22:36:32 rbm: how would i explain the database indendence in OACS4? 22:36:39 is it really DB independent? 22:36:47 Yes. 22:36:50 XML 22:37:05 That makes OACS buzzword-compliant :) 22:38:20 ha! 22:38:32 i found the post you made yesterday 22:38:37 it's perfect for what i'm looking for. thanks 22:38:56 wait - ben posted it 22:38:59 sorry :) 22:39:28 Yeah, I'm not nearly as good as Ben :) 22:40:50 you're not bad though :) 22:40:55 anyway, gotta run 22:40:58 talk to you guys tomorrow 22:41:02 talli has quit 22:45:29 except its not xml 22:47:22 everything is relative" - 22:47:29 "everything is relative" --Albert Einstein 23:15:15 davb has joined #OpenACS 23:29:14 http://dotlrn.mit.edu/ 23:29:14 D: http://dotlrn.mit.edu/ from rbm 23:29:29 D:| .LRN homepage 23:29:29 titled item D