IRC log of openacs on 2001-11-09

Timestamps are in UTC.

00:02:14 [abbaJ]
abbaJ has joined #openacs
00:44:18 [Psychephylax]
any of you guys know anything about algorithm efficiency?
00:45:49 [markd2]
somewhat
00:45:56 [markd2]
* markd2 is an O(n^2) algorithm
00:46:03 [Psychephylax]
heh
00:46:11 [Psychephylax]
I think I know the solution
00:46:18 [Psychephylax]
I can't express it in words or code though
00:46:36 [Psychephylax]
The problem is as follows:
00:47:00 [Psychephylax]
We have 2 nested for loops and inside each we do an algebratic computation
00:47:34 [Psychephylax]
The outer loop runs n-k times and the inner loop runs (n-k)(k-1) times
00:47:59 [Psychephylax]
For a total of (n-k)(k-1)+(n-k) arithmetic operations
00:48:26 [rbm]
It helps to make some graphs to identify the O() of the algorithm
00:48:48 [Psychephylax]
the complexity is n^2
00:48:59 [Psychephylax]
2 nested for loops
00:49:09 [Psychephylax]
The questions that are asked:
00:49:18 [Psychephylax]
1. What is the total number of algebratic operations
00:49:23 [Psychephylax]
that's done already
00:50:23 [Psychephylax]
2. How can we make it compute faster
00:50:27 [Psychephylax]
and
00:50:38 [Psychephylax]
3. How many arithmetic operations does the optimized program do
00:50:54 [Psychephylax]
I think the code does this
00:50:59 [Psychephylax]
say you have an array of 50
00:51:13 [Psychephylax]
it will compute an average on the elements 1-10
00:51:27 [Psychephylax]
next iteration it will compute the average on elements 2-11
00:51:29 [Psychephylax]
then 3-12
00:51:31 [Psychephylax]
...etc
00:51:46 [markd2]
* markd2 catches up
00:52:17 [Psychephylax]
I think the way to optimize this is to keep the center the same and only mess around with the edges taking away from one, and adding to the end
00:53:00 [Psychephylax]
then recomputing the average
00:53:12 [markd2]
what's the program actually do?
00:53:22 [Psychephylax]
this should eliminate the inner loop for recalculating the sum
00:53:33 [Psychephylax]
input a[0..n-1];
00:53:33 [Psychephylax]
input k;
00:53:34 [Psychephylax]
declare s;
00:53:34 [Psychephylax]
declare ave[0..n-k];
00:53:34 [Psychephylax]
for i := 0 to n-k do {
00:53:34 [Psychephylax]
s := 0;
00:53:36 [Psychephylax]
for j := i to i+k-1 do
00:53:40 [Psychephylax]
ave[i] := s/k;
00:53:42 [Psychephylax]
}
00:53:44 [Psychephylax]
output ave[0..n-k];
00:53:55 [Psychephylax]
after the second for loop:
00:54:00 [Psychephylax]
s := s+a[j];
00:54:08 [Psychephylax]
Nickserv ate my program
00:54:27 [davb]
davb has joined #openacs
00:54:29 [Psychephylax]
I was able to solve this problem last semester
00:54:32 [Psychephylax]
wb dave
00:54:46 [rbm]
ack
00:54:50 [Psychephylax]
syn!
00:54:57 [davb]
Hi, whats an easy way to see if my DNS is getting out to the internet?
00:54:58 [Psychephylax]
:-/
00:55:06 [Psychephylax]
hmm?
00:55:08 [Psychephylax]
try nslookup
00:55:15 [Psychephylax]
oh your DNS?
00:55:24 [davb]
Yeah.
00:55:35 [davb]
I want to see if the firwalll or my ISP is blocking it.
00:55:37 [markd2]
ask someone else nicely too look it up :-)
00:55:41 [Psychephylax]
tell a computer to use only the DNS box as it's DNS server and try going to www.google.com
00:55:56 [davb]
Right.
00:56:05 [Psychephylax]
If you can resolve google.com then it works
00:56:23 [Psychephylax]
Mark, does my solution make sense?
00:56:33 [Psychephylax]
I don't know how to do it in code
00:57:11 [Psychephylax]
I can reduce the complexity to be linear
00:59:06 [markd2]
it's too contrived for my brain to handle right now
00:59:13 [Psychephylax]
ok
00:59:16 [markd2]
* markd2 gets brain tired after 5pm
00:59:37 [Psychephylax]
heh
00:59:41 [Psychephylax]
I get brain tired after 2
01:23:22 [davb]
weird, I can PING www.deepskydesign.com but my browser never goes there.
01:24:05 [davb]
never mind, I am dubm.
01:24:11 [markd2]
heh
01:24:47 [davb]
is DNS port 53?
01:30:49 [davb]
nm
01:36:55 [davb]
argh,argharghargharghargharhgarhg
01:37:19 [markd2]
yeah. what he said
01:38:33 [davb]
My web server works by IP address, but not name. not sure why.
01:39:10 [davb]
aha, perhaps resolv.conf is screwing it up (i hope)
01:39:45 [davb]
hmmm didn;t help
01:52:18 [davb]
marks2 I assume you did not connect to my server?
01:52:26 [davb]
s/marks2/markd2
01:52:28 [davb]
:)
01:53:20 [markd2]
I couldn't get t it
01:53:38 [markd2]
there it ges
01:53:43 [markd2]
(at least it contacted)
01:53:52 [markd2]
nothing's come back yet
01:53:56 [davb]
Yeah. I a, not sure what is up.
01:54:11 [davb]
If I type www.deepskydesign.com:8080 it works.
01:54:25 [davb]
I think its a local screwiness on the server.
01:54:42 [markd2]
this the BadNicBox>
01:56:42 [davb]
well, not anymore.
01:57:20 [davb]
It was a wacky ISP issue, so I moved it. I think I am just going to move the other DNS box over here and be out of service for 24-48 hours instead of trying to duplicate it.
01:57:35 [davb]
Although the mail is working great :)
01:57:54 [markd2]
rockin'
01:59:22 [davb]
I think the main problem is that I have no idea what I am doing.
02:01:01 [markd2]
we learn by doing
02:01:13 [markd2]
that which doesn't kill me makes me weirder^H^H^H^H^H^H stronger
02:02:16 [davb]
ok, now I am in a bad mood, but happy
02:02:22 [davb]
www.deepskydesign.com works now
02:02:27 [davb]
for no reason.
02:02:36 [davb]
I restarted the master nsvhr AOLserver.
02:02:55 [markd2]
wow. this is the first time I've actually seen deepskydesign before :-)
02:03:04 [davb]
its nothing special :)
02:03:15 [davb]
actually it kinda sucks, but I am too lazy to fool around with it.
02:04:02 [davb]
strangley the other one is still not working. I even restarted the virtual aolserver also.
02:04:06 [davb]
Well I am halfway there,
02:05:16 [davb]
ok, who's using port 8000....
02:05:54 [davb]
I probably installed something when I did that big apt-get upgrade that is running on 8000
02:22:05 [davb]
weird. I had some rougue nsd threads that would not die. accoring to netstat the google indexer connected and never closed. weird.
02:23:31 [davb]
NOW! to battle network solutions!
02:26:04 [Psychephylax]
hi
02:26:18 [davb]
howdy!
02:26:24 [Psychephylax]
:)
02:26:28 [Psychephylax]
I'm upset
02:26:29 [davb]
holy shit.
02:26:31 [davb]
me too!
02:26:38 [Psychephylax]
I should have done so much better on that databases test
02:26:54 [markd2]
dems da breaks
02:26:58 [davb]
network solutions says my domain name if for SALE when I checked my registar and its registers until next year.
02:27:06 [Psychephylax]
heh
02:27:12 [Psychephylax]
I should check mine too
02:27:40 [davb]
they are evil (netsol)
02:27:48 [Psychephylax]
heh
02:28:07 [davb]
->8000 server1.thedesigne:1306 CLOSE_WAIT
02:28:07 [davb]
tcp 211 0 server1.thedesigne:8000 server1.thedesigne:1304 CLOSE_WAIT
02:28:07 [davb]
tcp 444 0 server1.thedesigne:8000 alb-66-24-206-3.ny:1930 CLOSE
02:28:07 [davb]
tcp 453 0 server1.thedesigne:8000 alb-66-24-206-3.ny:1929 ESTABLISH
02:28:09 [davb]
oops
02:28:15 [davb]
->Cookie Data in IE Can Be Exposed or Altered
02:28:16 [davb]
Through Script Injection
02:28:33 [davb]
I hate when that happens... look out for those cookies markd2
02:28:42 [Psychephylax]
what domain?
02:28:46 [markd2]
* markd2 cheks his cookies
02:28:48 [davb]
deepskydesign.com
02:28:59 [Psychephylax]
where do you see it being on sale?
02:29:18 [davb]
I did a whois at networksolutions.com they said "this domain is available for registration"
02:29:39 [Psychephylax]
you better check again
02:29:53 [davb]
now it says ERROR out server sucks...please try again later
02:30:00 [Psychephylax]
You probably suffer from the "fat fingers" syndrome
02:30:07 [davb]
no i READ it
02:30:14 [Psychephylax]
deepskydesign.com
02:30:15 [Psychephylax]
Back-Order deepskydesign.com NOW!
02:30:26 [Psychephylax]
* Psychephylax thwaps© Dave
02:30:35 [davb]
Cookie Data in IE Can Be Exposed or Altered
02:30:35 [davb]
Through Script Injection
02:30:38 [davb]
arhg!!
02:30:45 [davb]
If you would like to register this Web Address(domain name),
02:30:45 [davb]
click Register Now below.
02:30:45 [davb]
deepskydesign.com
02:31:12 [davb]
I did a whois at buydomains.com and they said its not available. I have had it for like 2 years.
02:31:45 [Psychephylax]
ok, I'm at the front page
02:31:46 [Psychephylax]
now what
02:33:12 [davb]
aha.
02:33:22 [davb]
apparently their WHOIS database is not updated or something.
02:33:53 [talli]
talli has joined #openacs
02:34:03 [talli]
hey guys
02:34:07 [davb]
I think its really a scam. You put in your domain and it always says, OH NO your domain is avaialble. You better give us $75 right away so you don't lose it. Imagine how many MS users they could catch that way.
02:34:09 [davb]
Hi talli!
02:34:12 [Psychephylax]
hi talli
02:34:47 [davb]
I just wnated to see what email address they had for my contact name. I have tried like 1000 times to update it.
02:34:48 [hazmat]
hazmat has quit
02:35:07 [davb]
Aha!
02:35:11 [davb]
they are dumb
02:35:15 [davb]
and annoying
02:35:35 [davb]
My personal handle is updated, but my domain info is not.
02:36:46 [Psychephylax]
Beer mixes not well milk with
02:37:35 [davb]
uh....yeah!
02:39:55 [Psychephylax]
wth
02:39:59 [Psychephylax]
Why won't this run
02:40:11 [davb]
I injected the script with cookie data
02:40:16 [markd2]
the trrricorders must be brroken
02:40:27 [markd2]
mmm.. cookie data ice cream...
02:40:29 [davb]
shouldn't that be tttrrriiicorders?
02:40:45 [markd2]
they put crrreeaturres in our boodies
02:41:07 [Psychephylax]
* Psychephylax misses the jokes
02:42:12 [Psychephylax]
Aha
02:42:13 [Psychephylax]
it works
02:43:21 [jerryasher]
jerryasher has joined #openacs
02:43:35 [davb]
Hi jerryasher!!
02:43:41 [jerryasher]
Hey Dave!
02:46:00 [davb]
* davb files the "Yahoo Store" folder next to the ark...
02:46:37 [Psychephylax]
ah69he seeh tye commerical for AT&T Wireless web with monkies using AOL Instant Messenger?
02:46:45 [Psychephylax]
Hey Jerry
02:47:04 [jerryasher]
Hi psychesporkie
02:47:53 [Psychephylax]
Sporkiephylax! :)
02:49:48 [jerryasher]
Did anyone see 24?
02:51:11 [Psychephylax]
no
02:51:33 [markd2]
* markd2 stopped counting sheep at 23
02:53:46 [markd2]
markd2 has quit
02:54:05 [Psychephylax]
oh
02:54:16 [Psychephylax]
Jerry, you might know this since you've done lots of AOLServer stuff
02:54:31 [Psychephylax]
have you ever seen something like this:
02:54:47 [Psychephylax]
I have a query that i know is correct because I get what I want in SQLPlus
02:55:16 [Psychephylax]
And I have a page that works (IF i use the simpler query)
02:55:34 [Psychephylax]
However, the moment I replace the query the ADP page shows nothing (but does not crash)
02:56:09 [jerryasher]
turn verbose on in your db pool and check the log
02:56:39 [Psychephylax]
verbose is on
02:57:23 [jerryasher]
Does the query show in the log?
02:58:44 [Psychephylax]
arg
02:59:00 [jerryasher]
Do you mean arg, or "Aargghhhh!"
02:59:08 [Psychephylax]
the latter one
03:01:15 [Psychephylax]
How the hell
03:02:12 [Psychephylax]
can't read "incident_id(cm_trans_pwr)": no such element in array
03:02:36 [Psychephylax]
aha
03:03:37 [Psychephylax]
Ok
03:03:39 [Psychephylax]
this is scaring me
03:03:47 [Psychephylax]
I was dumbfounded by this error 2 days ago
03:03:51 [Psychephylax]
Now, it works
03:04:31 [Psychephylax]
Who says thinking drunk is bad!
03:04:39 [Psychephylax]
I gotta code with beer more often
03:05:54 [davb]
Psychephylax: apparently I broke netsol's WHOIS system.
03:06:10 [Psychephylax]
I'd say that's worth your 35$
03:07:09 [davb]
heh
03:08:18 [davb]
argharghargharghargharghargharghargharghargharghargh
03:08:33 [davb]
I think I must recompile ns_xml
03:09:25 [GEM]
GEM has joined #openacs
03:11:20 [davb]
I can't build ns_xml for some reason all the header files are missing.
03:12:33 [chump]
chump has quit
03:12:39 [davb]
hey!
03:12:55 [chump]
chump has joined #openacs
03:12:57 [jerryasher]
yeh?
03:12:59 [Psychephylax]
?
03:13:08 [davb]
he's back.
03:14:44 [Psychephylax]
weeeeird
03:15:16 [Psychephylax]
I'm getting 3 rows in an adp page for every one in the database
03:17:17 [davb]
arhgarhgargh.
03:17:41 [davb]
OK. make cannot find my include files foo.h etc...
03:17:54 [davb]
but they are all in /usr/include/...
03:19:59 [Psychephylax]
Aha
03:20:03 [Psychephylax]
it's my query that's messed
03:22:11 [davb]
does ldconfig fix the path for include files also?
03:22:44 [Psychephylax]
dang, Oracle Brain Mark left
03:24:25 [talli]
talli has quit
03:24:58 [rbm]
moo
03:25:03 [davb]
hi rbm
03:25:07 [rbm]
hey davb
03:25:16 [rbm]
any luck with those CDs?
03:25:38 [Psychephylax]
Aha!
03:25:49 [Psychephylax]
it's iterating on one table too much
03:26:07 [davb]
heh, I am working on them tonight. halfway done :)
03:26:43 [rbm]
davb: Thanks! :)
03:27:12 [davb]
np. I am sorry that the second half of lecture #5 is not there. My CD is damaged.
03:27:15 [davb]
:(
03:30:05 [rbm]
davb: Oh. Can we download it again?
03:30:08 [davb]
hey, i forgot, I can install the new 16x recorder and be done twice as fast!
03:30:18 [davb]
I can't find out where. They don't have them on aduni.org
03:30:26 [aegrumet]
aegrumet has joined #openacs
03:30:52 [Psychephylax]
wooohooo
03:30:53 [Psychephylax]
I fixed it
03:31:45 [davb]
hi aegrumet
03:31:48 [davb]
Psychephylax YEAH!
03:31:51 [Psychephylax]
yeah!
03:31:52 [Psychephylax]
hehe
03:32:00 [Psychephylax]
db_multirow gets a bunch of rows
03:32:06 [Psychephylax]
how do I get one value?
03:32:16 [Psychephylax]
is it db_1row?
03:32:19 [Psychephylax]
or 1value?
03:32:24 [aegrumet]
hey davb
03:32:30 [jerryasher]
db_null works too.
03:32:46 [Psychephylax]
Well, I plan on counting rows
03:32:50 [davb]
Do you want to just get one at a time, or throw out the rest of the results?
03:33:44 [Psychephylax]
I need to do a select count(*) from snmp_incidents where modem_mac = '...' AND incident_date (within last week)
03:33:49 [Psychephylax]
and store that in a variable
03:34:05 [Psychephylax]
basically, count how many queries there were in the last week
03:34:19 [rbm]
db_string
03:35:04 [Psychephylax]
* Psychephylax tries
03:36:02 [Psychephylax]
damn
03:36:07 [Psychephylax]
I love Bloomberg already
03:36:16 [davb]
db_string is the one. It returns the value of the first column.
03:36:20 [davb]
returned
03:36:24 [Psychephylax]
He's taking a 1$ a year salary and he's not moving into Gracy Mansion
03:36:31 [davb]
Nifty.
03:36:47 [Psychephylax]
yeah
03:36:58 [davb]
rbm: i emailed the webmaster at aduni.org to find out if they still have them.
03:37:07 [rbm]
davb: Great.
03:37:24 [rbm]
davb: I'm planning on forming a group of study here that will gather to watch those presentations and work through the book.
03:37:46 [Psychephylax]
question
03:37:48 [Psychephylax]
when they say this:
03:37:57 [Psychephylax]
db_string statement_name sql [ args... ]
03:38:01 [Psychephylax]
is it something like this:
03:38:09 [Psychephylax]
db_string blah {sql goes here}
03:38:15 [Psychephylax]
or db_string blah "sql goes here"
03:38:43 [davb]
either one is OK.
03:38:46 [Psychephylax]
ok
03:40:00 [davb]
so does anyone have an idea why make can't find my libxml2?
03:40:35 [rbm]
Psychephylax: Either is Ok. I personally like { } better
03:40:36 [aegrumet]
LD_LIBRARY_PATH might help
03:40:48 [Psychephylax]
hmm
03:40:53 [AaronSw]
* AaronSw reconnects
03:40:54 [davb]
thanks
03:40:57 [Psychephylax]
I did this:
03:40:59 [Psychephylax]
db_string runs_this_week {select count(*) from snmp_incidents}
03:41:14 [Psychephylax]
and in -properties I have runs_this_week:onevalue
03:41:19 [davb]
ln -s /usr/inlcude/libxml2/libxml /usr/include/libxml did the trick :)
03:41:27 [Psychephylax]
then when I tried @runs_this_week@ it bombed out:
03:41:34 [Psychephylax]
can't read "runs_this_week": no such variable
03:41:45 [davb]
do this: set runs_this_week [db_string blah]
03:41:47 [Psychephylax]
What stupid mistake did I make this time around
03:41:51 [Psychephylax]
ah
03:42:00 [davb]
you are getting to fancy :)
03:42:22 [Psychephylax]
heh
03:42:24 [Psychephylax]
ok
03:42:28 [Psychephylax]
how about this one
03:42:37 [Psychephylax]
since I'm not good with the date type yet
03:42:52 [Psychephylax]
how do I tell it to only get the dates that are only sysdate - 7 days
03:43:33 [davb]
date math in postgresql....
03:43:42 [Psychephylax]
is not the same as in oracle?
03:44:24 [rbm]
dates are integers in Oracle (and PG IIRC). You just subtract them.
03:44:41 [aegrumet]
I happened to run across an age() function last night
03:45:17 [rbm]
SQL> select sysdate from dual;
03:45:17 [rbm]
SYSDATE
03:45:17 [rbm]
----------
03:45:17 [rbm]
2001-11-08
03:45:17 [rbm]
SQL> select sysdate+7 from dual;
03:45:18 [rbm]
SYSDATE+7
03:45:20 [rbm]
----------
03:45:22 [rbm]
2001-11-15
03:46:32 [Psychephylax]
Kewl
03:46:52 [Psychephylax]
set runs_this_week [db_string runs_this_week {select count(*) from snmp_incidents where incident_date > sysdate - 7}]
03:47:04 [jerryasher]
jerryasher has quit
03:51:42 [Psychephylax]
My code is horrible
03:51:51 [Psychephylax]
As a programmer I am disappointed at myself
03:53:36 [davb]
argargargargargargargargargargargargargargargar
03:54:27 [rbm]
* rbm does CPR on davb (with a tube)
03:54:32 [davb]
screw it, i'll fix it tomorrow
03:54:34 [davb]
rbm: thanks!
03:54:42 [rbm]
CLEAR!
03:55:05 [Psychephylax]
heh
03:55:37 [davb]
well I'll see you all later.
03:58:24 [rbm]
later
03:58:31 [davb]
davb has quit
04:00:58 [rbm]
How can I tell Emacs to actually insert a TAB when I hit TAB?
04:04:35 [Psychephylax]
umm
04:04:47 [Psychephylax]
if you hit back...and it jumps like 8 "spaces" then it inserted a tab
04:04:58 [Psychephylax]
else it's just spaces that look like tabs
04:05:47 [Psychephylax]
k
04:05:55 [Psychephylax]
I am very lost
04:06:26 [Psychephylax]
I have a total of 72 queries
04:06:55 [Psychephylax]
I check how many have been run within the last week...62
04:07:01 [Psychephylax]
(btw, this is in SQL plus)
04:07:34 [Psychephylax]
Now, I use the same queries in my tcl page
04:07:39 [Psychephylax]
And it's missing rows
04:07:56 [Psychephylax]
ooooh
04:08:07 [Psychephylax]
I think I remember
04:11:54 [Psychephylax]
fixed
04:19:52 [GEM]
Why do you want tab characters?
04:20:11 [rbm]
Because I do.
04:20:55 [Psychephylax]
lol
04:20:56 [rbm]
I got around with M-x indent-relative, but that's poor.
04:21:18 [GEM]
how about C-Q TAB?
04:21:21 [Psychephylax]
Roberto, I think we're just misunderstood
04:21:29 [Psychephylax]
"Why do you want it?"
04:21:38 [Psychephylax]
"Because I just do"
04:21:39 [rbm]
I'm doing Tcl, and I'm opening a " in one line, with the string on the next line, and I want to indent it according to where it's at
04:21:49 [Psychephylax]
Why is that so hard to understand?
04:22:16 [GEM]
hey, ROberto - did I see that davb is making CDs of the ADUni lectures?
04:23:05 [rbm]
C-Q Tab seems to work. But I still think Emacs should not try to think it's smarter than me and just do what I'm telling it to.
04:23:17 [rbm]
GEM: yes.
04:23:17 [chump]
Label GEM not found.
04:23:20 [aegrumet]
indent-tabs-mode
04:23:20 [GEM]
well, what mode are you in?
04:23:25 [rbm]
Tcl mode
04:23:27 [aegrumet]
set it to something non-nil
04:23:36 [aegrumet]
M-x apropos indent-tabs-mode
04:23:51 [GEM]
Yup, that was what I was getting to - you can tell it to do something less special with a tab character
04:23:55 [rbm]
But then when I ret RET, will is still indend?
04:24:03 [aegrumet]
dunno
04:24:35 [GEM]
Hmm. I'd love to ge access to those ADUni disks at some point
04:24:45 [rbm]
Another thing I need to find out is how to tell emacs to _just_ use tabs for indenting, instead of tabs+spaces
04:25:50 [GEM]
M-X apropos will tell you lots of handy things
04:26:10 [rbm]
I tried it. It gives me a zillion things.
04:27:26 [GEM]
yup
04:30:49 [Psychephylax]
bah
04:32:12 [aegrumet]
aegrumet has left #openacs
04:44:11 [Psychephylax]
Roberto, you still here?
04:44:41 [rbm]
yeah
04:44:58 [rbm]
Hey, how do I tell ad_page_contract that I only allow certain values in a passed var?
04:44:59 [Psychephylax]
Is there a way to tell SSH to log out idle terminals?
04:45:10 [rbm]
Psychephylax: Hmmm. I think so.
04:45:20 [Psychephylax]
ummm...I think you have to make a check on the bound variable
05:17:15 [djg]
djg has joined #openacs
06:31:48 [GEM]
GEM has quit
06:31:49 [GEM]
GEM has joined #openacs
09:31:58 [abbaJ]
abbaJ has quit
09:39:57 [abbaJ]
abbaJ has joined #openacs
11:28:12 [abbaJ]
abbaJ has quit
11:33:10 [abbaJ]
abbaJ has joined #openacs
12:35:21 [markd2]
markd2 has joined #openacs
13:42:46 [markd2]
markd2 has quit
13:54:29 [davb]
davb has joined #openacs
14:09:40 [talli]
talli has joined #openacs
14:09:50 [talli]
hey guys
14:10:30 [davb]
Hi talli.
14:48:55 [Psychephylax]
Psychephylax has quit
14:48:55 [talli]
talli has quit
14:48:55 [rbm]
rbm has quit
14:48:55 [AaronSw]
AaronSw has quit
14:48:55 [shagster]
shagster has quit
14:48:55 [davb]
davb has quit
14:49:07 [Psychephylax]
Psychephylax has joined #openacs
14:49:07 [talli]
talli has joined #openacs
14:49:11 [AaronSw]
AaronSw has joined #openacs
14:49:11 [rbm]
rbm has joined #openacs
14:49:11 [shagster]
shagster has joined #openacs
14:49:11 [davb]
davb has joined #openacs
14:49:27 [ChanServ]
This channel is logged: http://www.blogspace.com/openacs/chatlogs/ and blogged: http://www.thedesignexperience.org/openacs/ircblog
14:53:23 [Psychephylax]
hi
14:53:46 [ola]
ola has joined #openacs
14:54:13 [davb]
Hi Psychephylax and ola
14:54:43 [Psychephylax]
hey Dave
14:54:59 [Psychephylax]
i'm afraid to develop my tool now cuz it might mess something up
14:55:21 [ola]
hey davb and Psychephylax
14:55:29 [Psychephylax]
hey ola and davb
14:55:30 [Psychephylax]
lol
14:55:34 [ola]
heh
14:55:35 [djg]
djg has quit
14:55:51 [davb]
Are you doing the demo today?
14:55:59 [Psychephylax]
yep
14:56:17 [Psychephylax]
but I don't think at 10...my boss(es) are not here
14:56:29 [davb]
aha.
14:56:37 [davb]
that is always fun.
14:57:06 [Psychephylax]
heh
15:00:07 [davb]
* davb attempts to wake up, fails miserably and comtemplates curling up under the desk...
15:02:05 [talli]
* talli runs and tells davb bosses that he is slacking and the New York State tax dollars should not go to such sloths
15:04:27 [Psychephylax]
bahaahaha
15:13:42 [davb]
heh
15:13:51 [davb]
talli doesn't know many state workers...
15:14:59 [talli]
what? i know them very well. every time i have gone to the DMV, the post office or the subway i have been impressed by the courteousness and responsiveness of our civil servants
15:15:22 [davb]
Actually those are the robots....
15:16:32 [Psychephylax]
lol
15:16:46 [Psychephylax]
http://prod.business2.com/articles/mag/0,1640,17377,FF.html
15:16:47 [chump]
A: http://prod.business2.com/articles/mag/0,1640,17377,FF.html from Psychephylax
15:16:57 [Psychephylax]
A:| Little Old Man Versus the Big Three
15:16:57 [talli]
those are some fat fucking robots
15:16:57 [chump]
titled item A
15:17:47 [Psychephylax]
A: Harold McMaster says his latest invention will make the internal combustion engine obsolete. Is Detroit worried? No. Is he nuts? Maybe. But he's already made hundreds of millions of dollars proving his naysayers wrong.
15:17:47 [chump]
commented item A
15:17:59 [Psychephylax]
You guys should read that
15:18:05 [Psychephylax]
it's fscking cool!
15:26:25 [talli]
talli has quit
15:39:03 [markd2]
markd2 has joined #openacs
15:39:08 [Psychephylax]
hi mark
15:39:17 [markd2]
greetings
15:40:06 [aegrumet]
aegrumet has joined #openacs
15:40:30 [markd2]
hey andrew
15:40:34 [aegrumet]
hola
15:41:54 [rbm]
WOW! Finally a victory against Microsoft in Brazil
15:42:02 [rbm]
In Brazil, Microsoft has this deal of "exclusive representation". So they only allow one company to represent them in an entire region.
15:42:10 [rbm]
what they found out, after 3 years of investigation, was that a) They would not allow other competent resellers to be "representants", b) Microsoft and this representant (TBA Informatics) combined which prices to charge and c) the prices they charged to the federal government were 4 times higher than for other similiar customers in similar regions.
15:43:39 [davb]
Wow!
15:48:53 [davb]
* davb submits to yet more toture at the hands of network solutions...
15:56:40 [Psychephylax]
question
15:57:09 [Psychephylax]
does AOLserver have a facility for comparing dates?
15:57:52 [markd2]
itself, I don't think so
15:57:53 [markd2]
oracle does
15:57:53 [davb]
probably use clock to conver to a number and compare that.
15:58:01 [rbm]
what davb said
15:58:46 [davb]
hmmmm...
15:58:59 [Psychephylax]
hmm
15:59:04 [Psychephylax]
i have an idea
16:01:31 [davb]
http://mini.net/tcl/948.html
16:01:32 [chump]
B: http://mini.net/tcl/948.html from davb
16:01:43 [davb]
B:|Date and Time Issues from Tcl Wiki
16:01:43 [chump]
titled item B
16:02:38 [davb]
Psychephylax that should answer any data/time questions you have.
16:03:05 [Psychephylax]
ok thanks
16:26:13 [Psychephylax]
okj
16:26:19 [Psychephylax]
time to learn thread programming
16:27:09 [Psychephylax]
any suggestions on where to start?
16:27:25 [markd2]
depends on what you mean by that
16:27:43 [markd2]
like ground-up, pthreads API thread programming, or doing stuff with aolserver/tcl and threads?
16:27:59 [Psychephylax]
the latter one
16:28:01 [davb]
http://www.theregister.co.uk/content/4/22749.html
16:28:01 [chump]
C: http://www.theregister.co.uk/content/4/22749.html from davb
16:28:08 [davb]
C:|How Microsoft invented open source, by Billg
16:28:08 [chump]
titled item C
16:28:37 [aegrumet]
oh right, there was some quote from the investor's meeting
16:28:44 [aegrumet]
good links on /.
16:29:07 [Psychephylax]
Also, how can I trim input of whitspace?
16:29:37 [markd2]
string trim
16:30:26 [Psychephylax]
like this: set modem_mac [string trim $modem_mac]
16:30:27 [Psychephylax]
?
16:30:47 [aegrumet]
yeah that looks right
16:30:53 [Psychephylax]
say $modem_mac is (space)(space)00:E0:F4:00
16:30:57 [Psychephylax]
I want the space space part gone
16:31:11 [aegrumet]
try it in tclsh; should work
16:31:42 [Psychephylax]
it works
16:31:44 [Psychephylax]
very cool
16:32:12 [aegrumet]
* aegrumet dances a victory jig
16:32:16 [Psychephylax]
lol
16:34:26 [davb]
tclsh is the best place to fool around and figure out how the string commands work.
16:34:33 [aegrumet]
that or nscp
16:34:47 [aegrumet]
(when you need aolserver api calls)
16:37:37 [Psychephylax]
what's this doing:
16:37:40 [Psychephylax]
lappend threads [ns_thread begin "nms::poll::group $host"]
16:37:55 [Psychephylax]
the "nms::poll::group $host" part
16:38:13 [markd2]
just a namespace qualification for a function
16:38:32 [Psychephylax]
Do I need that?
16:39:34 [markd2]
not for your own stuff
16:39:59 [Psychephylax]
ok
16:41:18 [aegrumet]
markd2: do newer versions of aolserver clean up their namespaces when the conn closes?
16:41:33 [aegrumet]
I seem to remember early versions in the 3 series didn't do that
16:45:06 [Psychephylax]
what's this stuph
16:45:08 [Psychephylax]
set fds [ns_sockopen $host 80
16:45:08 [Psychephylax]
set r [lindex $fds 0]
16:45:09 [Psychephylax]
set w [lindex $fds 1]
16:45:24 [Psychephylax]
i'm looking at the api for ns_threads on the AOLSErver page
16:45:30 [davb]
Opens a connection of Port 80 of host.
16:45:48 [Psychephylax]
I need to do something else though
16:45:53 [Psychephylax]
I need to open a diff type of session
16:45:55 [davb]
That is just an example of how to use threads. that code is not thread related itself.
16:46:45 [Psychephylax]
ok
16:46:54 [davb]
r is the read/input handle, w is the write/output handle
16:47:06 [Psychephylax]
so I need those right?
16:47:16 [davb]
Yes. I suspect so.
16:48:23 [markd2]
andrew: dunno. I don't think so
16:48:36 [markd2]
* markd2 suggests looking ad the documetnation for ns_sockopen
16:49:36 [Psychephylax]
i don't need any sockets though!
16:50:10 [davb]
oh... then you don't need any of that :)
16:50:13 [markd2]
then don't worry abut it
16:51:17 [Psychephylax]
heh
17:15:21 [davb]
weird.
17:15:27 [davb]
nsxml broke
17:15:55 [davb]
it worked before I installed the DNS server, not it doesn't.
17:21:44 [Psychephylax]
heh
17:22:49 [Psychephylax]
ok
17:22:55 [Psychephylax]
I did this:
17:22:57 [Psychephylax]
proc lookup {modem_mac} {
17:22:57 [Psychephylax]
#start threads to search for the router
17:22:57 [Psychephylax]
source /users/nickb/ubr
17:22:57 [Psychephylax]
set threads [list]
17:22:57 [Psychephylax]
foreach host $ubr {
17:22:58 [Psychephylax]
lappend threads [ns_thread begin "poll $host"]
17:23:00 [Psychephylax]
}
17:23:02 [Psychephylax]
foreach tid $threads { ns_thread wait $tid }
17:23:04 [Psychephylax]
set ubr "167.206.252.201"
17:23:06 [Psychephylax]
}
17:23:10 [Psychephylax]
ignore the set ubr bit
17:23:23 [Psychephylax]
and my poll function is this:
17:23:31 [Psychephylax]
proc poll {host} {
17:23:31 [Psychephylax]
set poll_router [ns_snmp create $host -timeout 5 -retries 3 -community $cmts_community]
17:23:31 [Psychephylax]
set result [ns_snmp get $poll_router cdxCmCpeType.$modem_dec]
17:23:31 [Psychephylax]
}
17:26:22 [Psychephylax]
but I think that's way wrong
17:31:14 [Psychephylax]
well shit
17:31:27 [Psychephylax]
I think it's doing 287 threads
17:31:39 [davb]
is that good or bad?
17:31:46 [davb]
:)
17:31:58 [Psychephylax]
bad
17:32:01 [Psychephylax]
it's taking too long
17:33:55 [Psychephylax]
12:30pm up 43 day(s), 16:39, 3 users, load average: 35.82, 17.26, 7.18
17:35:04 [davb]
are the 287 hosts?
17:36:29 [Psychephylax]
yeah
17:36:33 [Psychephylax]
it's running 287 threads
17:37:25 [davb]
You probably need to split it up.
17:37:37 [davb]
Is this a task the current application you use can perform?
17:39:26 [Psychephylax]
yes
17:39:55 [Psychephylax]
i'm going to talk to my boss
17:39:58 [Psychephylax]
see what he says
17:46:12 [Psychephylax]
* Psychephylax tries with 20 or so
17:48:59 [Psychephylax]
ok
17:49:38 [Psychephylax]
17 threads take ~11 seconds
17:49:52 [Psychephylax]
now, I need to do 278 in ~10
17:49:57 [Psychephylax]
Any suggestions?
17:51:24 [til]
til has joined #openacs
17:52:05 [davb]
do it outside AOLserver?
17:53:52 [Psychephylax]
Well, that WOULD make sense, right? lol
17:55:42 [markd2]
remember that threads take time to start up
17:55:54 [markd2]
once you've warmed up your threads, they should perform well
17:56:57 [Psychephylax]
ok
17:56:59 [Psychephylax]
hang on
18:09:41 [Psychephylax]
I'll be back in an hour or so
18:09:42 [Psychephylax]
lunch time
18:09:59 [Psychephylax]
So I can start then and leave them running?
18:10:04 [Psychephylax]
but how do I communicate with them?
18:10:08 [markd2]
telepathy
18:10:13 [Psychephylax]
ah
18:10:15 [Psychephylax]
That's hard
18:10:25 [markd2]
just think about it. it'll happen.
18:10:35 [Psychephylax]
ok
18:10:40 [Psychephylax]
* Psychephylax thinks he needs to eat
18:10:44 [Psychephylax]
* Psychephylax disappears
18:10:47 [markd2]
*poof*
18:43:55 [AaronSw]
* AaronSw disconnects
18:44:28 [AaronSw]
* AaronSw reconnects
19:00:39 [loggy]
loggy has joined #openacs
19:00:40 [benford.openprojects.net]
topic is: Welcome to #openacs, the OpenACS hotline and off-topic conversation channel. Now fortified with docwolf!
19:00:40 [benford.openprojects.net]
Users on #openacs: loggy til aegrumet markd2 ola Psychephylax chump GEM abbaJ davb shagster rbm AaronSw
19:00:40 [ChanServ]
This channel is logged: http://www.blogspace.com/openacs/chatlogs/ and blogged: http://www.thedesignexperience.org/openacs/ircblog
19:21:14 [Psychephylax]
* Psychephylax returns
19:28:19 [davb]
whats & in C?
19:28:56 [davb]
it looks like I will be learning C this weekend to debug this wackiness with nsxml.
19:30:48 [markd2]
it's the address-of operator
19:31:15 [davb]
ah, thanks.
19:31:26 [davb]
Now I need to learn what an address-of operator is. :)
19:32:02 [davb]
I am really annoyed that this stopped working. I am not totally unsure its not DNS related, but it seems unlikely. its supposed to be referencing a file in the filesystem.
19:33:07 [markd2]
you can do stuff like int i; int* addr = &i; *addr = 5; now i is 5
19:33:29 [markd2]
addr has the address in memory of the start of the bytes for the variable i
19:33:54 [markd2]
*addr = 5 says "go to the address stored in addr. write an int's worth of data so that it equals 5"
19:34:00 [markd2]
here endeth the lesson
19:34:17 [davb]
heh. thanks. I think most of the answeres are in the AOLserver C api.
19:42:49 [abbaJ]
abbaJ has quit
19:57:35 [aegrumet]
aegrumet has left #openacs
19:57:41 [hazmat]
hazmat has joined #openacs
19:57:54 [hazmat]
A:
19:57:54 [chump]
http://prod.business2.com/articles/mag/0,1640,17377,FF.html
19:57:55 [chump]
Little Old Man Versus the Big Three
19:57:56 [chump]
(Psychephylax) Harold McMaster says his latest invention will make the internal combustion engine obsolete. Is Detroit worried? No. Is he nuts? Maybe. But he's already made hundreds of millions of dollars proving his naysayers wrong.
19:58:03 [hazmat]
B:
19:58:03 [chump]
http://mini.net/tcl/948.html
19:58:04 [chump]
Date and Time Issues from Tcl Wiki
20:00:50 [rbm]
rbm has quit
20:10:31 [hazmat]
anyone around?
20:11:14 [markd2]
I'm kinda round
20:12:12 [davb]
:)
20:13:57 [donb]
donb has joined #openacs
20:14:10 [davb]
hi donb
20:14:15 [hazmat]
i was looking at the site-nodes definitions and i can't understand what the sort key is for since is never used in the queries?
20:14:19 [donb]
Hi there, what's happening?
20:14:36 [davb]
Hmmm not sure.
20:14:37 [adler]
adler has joined #openacs
20:15:19 [donb]
It's not used to build the site map directory-style display?
20:16:25 [hazmat]
i don't know, let me check i don't see anything in the site-nodes sql/procs.
20:16:32 [markd2]
markd2 has quit
20:20:15 [donb]
Check out: acs-subsite/www/admin/site-map
20:20:17 [hazmat]
ah, it is used by the admin screens for site-map.
20:20:36 [donb]
Right ... index-postgresql.xql. Just to build the display ...
20:20:49 [adler]
adler has quit
20:22:46 [davb]
aha, ns_xml suddenly dislikes 's. its probably some lib or another that I updated yesterday. wheeee...
20:24:29 [donb]
How's InterMedia treating you, Dave?
20:25:00 [Psychephylax]
Doh
20:25:03 [Psychephylax]
Hi Don
20:25:32 [davb]
I have been reading the docs to see how it works. It appears that it will be tricky to convert the whole thing over to acs-service-contract unless acs-service-contract supports contracts implemented in pl/sql (it doesn't yet...)
20:26:35 [davb]
donb: also, are we planning on haveing a migration path from ACS 4.2 to OpenACS 4.x?
20:28:43 [hazmat]
davb you can implement contracts in pl/sql you just can't call them from pl/sql via the contract interfaces, the dispatch method for a contract needs to go through tcl which can call the pl/sql contract method
20:29:03 [davb]
hazmat: Ok.
20:29:26 [davb]
Could I query the service-contracts directly in pl/sql and cheat?
20:30:09 [davb]
or would it be better to work on a pl/sql interface for acs-service-contracts?
20:30:44 [donb]
So far no one has asked for a migration path from ACS 4.2. Most folks who have done custom site work in 4.2 have had to do *heavy* customization due to the incompletness, bugginess, etc. I'm not sure how practical upgrading is for the sites that would care the most - those who've deployed sites for paying clients.
20:31:12 [davb]
OK.
20:31:16 [hazmat]
yes to cheating, i think the latter would be nice as well.
20:31:46 [davb]
hazmat: ok, I'll look into cheating to make it work, then work backwards to the ultimate goal :)
20:31:54 [donb]
On the other hand, the OpenACS 4 core will work with existing ACS 4 packages, so migrating to the OpenACS 4 core by using existing packages should be possible. Not as an automated thing, though ...
20:32:31 [davb]
The only thing would be to spiff up the acs-interface pl/sql to work as acs-service-contract pl/sql
20:32:46 [davb]
for packages that had custom search interfaces.
20:34:55 [donb]
(I'm off reading about a cool new MS bug that lets web pages using Active Scripting grab any cookie on the users system, no matter what domain placed it there. That's not a security hole, that's a security crater!)
20:35:37 [davb]
* davb is glad me switched to Mozilla.
20:35:49 [donb]
(not a new bug, a newly discovered bug - "why isn't there a patch available?" "because the person who found the bug has acted irresponsibly by disclosing the details before we could write a patch")
20:36:13 [donb]
Yeah, I'm using Moz too, these days. It finally seems to mostly work.
20:37:33 [donb]
MS is suggesting users deactivate Active Scripting, which is dandy given the fact that MS has encouraged website implementors using IIS to make use of it)
20:38:35 [davb]
I like the format c: solution better
21:19:53 [davb]
davb has quit
21:24:00 [aegrumet]
aegrumet has joined #openacs
21:31:55 [hazmat]
hi aegrumet
21:32:47 [docwolf]
docwolf has joined #openacs
21:32:57 [docwolf]
hi, everybody!
21:38:30 [hazmat]
hi
21:58:11 [rbm]
rbm has joined #openacs
22:11:12 [til]
til has quit
22:23:51 [docwolf]
hi roberto
22:45:44 [ola]
ola has quit
22:47:36 [ola]
ola has joined #openacs
22:50:08 [ola]
ola has quit
23:28:49 [aegrumet]
hazmat: hey, sorry, spaced out
23:29:11 [aegrumet]
hazmat: but now I must go :(
23:30:00 [aegrumet]
aegrumet has left #openacs
23:50:38 [Psychephylax]
baaah