IRC log of openacs on 2001-11-26

Timestamps are in UTC.

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