• Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

AltME groups: search

Help · search scripts · search articles · search mailing list

results summary

worldhits
r4wp5907
r3wp58701
total:64608

results window for this page: [start: 19801 end: 19900]

world-name: r3wp

Group: Web ... Everything web development related [web-public]
Robert:
2-Nov-2005
Question: Has anybody written a log-file analyzer tool in Rebol? 
I really must say, that I have looked into a lot of those tools but 
never found a good one. All spit out some information but not the 
one I'm mostly interested in. And I just get reports but can't do 
any trend analyzes etc.
Pekr:
2-Nov-2005
I have to think about it for a while .....
Pekr:
2-Nov-2005
I will have to find a way of how to study it - it is very late here 
and I just looked into archive size - 1.6 MB  archive - oh my ... 
so - if there is no simple way of how to wrap it, I will go my own 
way, as usual, even with limited featureset - I don't need fancy 
javascript/java/whatever graphing - if I go View way, I will have 
to develop AGG based graphing anyway ...
Pekr:
3-Nov-2005
hmm, will have to study a mrtg a bit ... not sure how fast I would 
get to at least few percent functionality .... look at Cacti for 
e.g. http://www.cacti.net
Volker:
19-Nov-2005
;copy exe somewhere, make it executable, write a cgi:
#!/where/is/rebol -cs
rebol[]
print "content-type: text/plain^/^/"
print "Hello cgi"
Volker:
25-Nov-2005
How can i get rid of the border around a link-image? http://polly.rebol.it/test/test/index.html
Pekr:
3-Dec-2005
what tag do you use for templates? Is it comment tag? I can see e.g. 
<!--[snih_tabulka_zacatek]--> and some other <% ......> I would like 
to know (dis)advantages of both. Thanks a lot
Izkata:
4-Dec-2005
I used to know how to do this... but can't remember it anymore - 
how do I perform a POST to a webpage?

Wasn't it something like    read/custom http://www.Whatever.com
 [Post {This=That}]
Izkata:
4-Dec-2005
Hmm.. for <form name="def" id="def" action=planet.cgi?1213&adr method=POST 
autocomplete=off>, the server doesn't seem to like   read/custom 
http://www.territories3069.com/3.x/planet.cgi?1213&adr[POST {ddr=1212}]

It gives a 405 error (Method not allowed)
Izkata:
4-Dec-2005
All the arguments are there (I checked with a reb-proxy, the page 
itself is very ugly)
Izkata:
4-Dec-2005
I tried making a low-level version (with TCP), but the data it wants 
is inside Port/state/inBuffer, when sent in the browser.. and simply 
setting it in the Port doesn't seem to work
Tomc:
4-Dec-2005
I think I make post a string or literal     i.e   [ 'POST
Izkata:
4-Dec-2005
... but it doesn't seem to have worked correctly here.  But it's 
a step in the right direction, at least
Graham:
4-Dec-2005
since it's a dialect it should be [ post ... ]

but if you need to evaluate the contents of the block, it should 
be 

reduce [ 'post post-contents ]
Sunanda:
2-Feb-2006
Good news / bad news

The good news is that MS are beta-ing Internet Explorer 7, so it's 
a good chance to see how well your website may look in that browser 
(like it or not it is liekly to become a dominent browser)
http://www.microsoft.com/windows/ie/ie7/default.mspx


The bad news is  two-fold: they have fixed most of the well-known 
CSS hacks; if you use the hacks your site may not render properly 
in IE7.  Second, it is not easy to install IE7 alongside any existing 
IE version -- it's a reversible upgrade (in theory), so you might 
want to try it on a spare partition/machine.

Windows only at this stage, of course.
Graham:
2-Feb-2006
I"m having lots of crashes in FF .. so I'll likely give it a go.
Pekr:
2-Feb-2006
crashes with FF? :-) I run Mozilla each day, heavily with tons of 
tabs, windows, jumping here or there, never seen a crash for past 
year or two ... I would not expect FF being worse in that regard?
Anton:
2-Feb-2006
Could be latest update, I got a crash today. Shortly afterwards a 
notification of a new bufix release.
Ashley:
2-Feb-2006
Does FF handle ASP pages? Out of the box, or is a plugin required?
Ashley:
2-Feb-2006
My online bank account uses ASP to generate monthly statements, which 
works fine from Opera, IE and Safari - but fails under FF with a 
"Could not open xyz.asp"; so I figured it had a problem with ASP 
pages in general.
Graham:
2-Feb-2006
I use a number of sites which don't work in FF.  Annoying.. but ASP 
.. not seen that one as opposed to a site problem.
Anton:
2-Feb-2006
Are you sure that's not just a transient problem ?
Anton:
2-Feb-2006
It could be detecting the browser (possibly poorly) and generating 
a different page. Maybe compare the page sources.
Anton:
2-Feb-2006
I figured out a fairly fast compare method using my text editor.
Anton:
2-Feb-2006
I know there is (or was recently) a plugin to easily set the spoof.
Anton:
2-Feb-2006
A new webpage pops up at addons.mozilla.org,  search for "spoof"
Sunanda:
2-Feb-2006
I have to occassionally access websites that make heroic efforts 
only to work in IE. Banks mainly.

They sniff the user-agent  ID string....If you try faking that they 
feed you javascript that crashes other browsers.
Somehow, they think insisting on IE is safer.

Means I have to manually set their sites to the most restricted set 
of IE settings possible -- after all, why should I trust a bank that 
thinks that way?
Anton:
2-Feb-2006
Very interesting. I never had a problem with my bank and Firefox.
Sunanda:
2-Feb-2006
You've got a modern bank!
Anton:
2-Feb-2006
:) no no, not a piggy-bank either - an actual, governement-backed 
bank.
Ammon:
2-Feb-2006
Firefox has been crashing multiple times a day for me as well.  Mozilla 
isn't an option as it is just too bloated and slow.  I keep thinking 
of  using Opera but it seems to have issues with a lot of sites. 
 In general it is a little faster than most browsers but it has its 
own collection of problems.  It's amazing to me how problematic the 
web is.
Ammon:
2-Feb-2006
The web standards annoy me.  They are supposed to help make things 
more compatible but this isn't the case.  It is easy to build a webstandard 
complient web site that doesn't look ANYTHING like it should according 
to the standard in ANY browser.
[unknown: 9]:
2-Feb-2006
how, we have been trying to put Opera on Mac, and nothing but problems. 
 After 5 tries, have not even been able to download a full copy. 
 The website hangs, very odd.
Sunanda:
2-Feb-2006
Which is as good a reason as any to be happy that there is more than 
one browser to chose from.
[unknown: 9]:
2-Feb-2006
Oops, sorry that was for a dif group.  I like choice, and I need 
to DL Opera so we can make sure we are compat, but it is really fighting 
us.
Sunanda:
2-Feb-2006
As a backstop, you could try getting some older versions of Opera 
from a browser vault:
http://browsers.evolt.org/?opera/mac

Maybe then an old version of Opera will update itself to the latest 
for you....
Ashley:
2-Feb-2006
guys, you are unbelievable bashers of Mozilla
 I'm not! ;)


I've been testing four different browsers on my Mac (Safari, Opera, 
Firefox and Firefox PPC - http://www.furbism.com/firefoxmac/) and 
while the PPC build is 9.5MB compared to Opera's 5.5MB (which also 
includes M2 mail), it is noticeably faster than the other browsers 
and has not crashed once since I installed it 2 weeks ago. The only 
problem I've encountered is with my !@#$%^& bank's IE-only site (even 
with Opera I have to change spoof modes depending upon which particular 
page of the site I'm at, and Safari works fine except when the site 
tries to open a PDF statement within the browser using an Adobe Reader 
plugin – never mind the fact that Mac handles PDF natively ... !@#$%&).
Geomol:
4-Feb-2006
I mostly use Safari on Mac these days. It works with my bank too. 
:-) When I'm on Windows, I mostly use Opera. I used to use Mozilla, 
and I still use Firefox from time to time, both under Windows and 
Mac. I very very rarely use IE. Safari can be used for 99+% of the 
sites, I visit. Today I had a problem, because I wanted to watch 
the 2 danish Superbowl updates, our reportes sent from the US. And 
a danish tv channel TV2 Sputnik require IE6 under Windows to run, 
and only that. Argh!
Carl:
9-Feb-2006
Yes,  we took them out. REBOL ran a lot faster as a result.  I used 
to be a huge fan of continuations 20 years ago. But, continuations 
do not provide enough benefit for the performance hit on evaluation 
speed and memory usage.  (Stop and think about what is required internally 
to hold in an object for any period of time the entire state of evaluation.) 
 It's more of a programmer play toy than a useful extension.
Joe:
10-Feb-2006
I am not asking for native continuations but a way to emulate them 
in web applications.
Joe:
10-Feb-2006
Geomol, the real advantage of continuations is for handing web forms 
and to ensure the users get a consistent experience. Check the paper 
Jaime points out
Joe:
10-Feb-2006
The problem I trying to solve is strictly for web programming, e.g. 
ensuring there are no inconsistencies in a shopping cart, etc ...
Joe:
10-Feb-2006
The approach I have is that  every session has a cookie and disk 
storage associated to the cookie. When I define a web form, the action 
method gets a continuation id as a cgi parameter, so if at that point 
you clone the browser window, you as a user have to continuation 
ids
Joe:
10-Feb-2006
This  approach is not very scalable, it's just a start waiting for 
better ideas and input
Joe:
10-Feb-2006
When the user posts a form ,  the form cgi stores the continuation 
id and a rebol block with name-value pairs
Joe:
10-Feb-2006
If you post the second form also (something you would do e.g. when 
checking flights in a reservation engine, as Jaime's reference paper 
suggests) a second continuation id and rebol block would be stored 
for the same session
Joe:
10-Feb-2006
So basically the continuations are ensured by using both the cookie 
and associated storage and the continuation id that is added to the 
links as a cgi get parameter
Sunanda:
10-Feb-2006
What you are doing Joe is what we old-timers call pseudoconversational 
processing.

Usually, you can kick much of the complexity upstairs if you have 
a TP monitor supervising the show. Sadly, most web apps don;t (a 
webserver doesn't quite count).

People have been doing this sort of thing for decades in languages 
without continuations support; so, though it's a nice-to-have feature, 
it is not a show-stopper.
[unknown: 9]:
10-Feb-2006
Joe you are asking a question that finds its answer in a completely 
different model.  It reminds of the joke "What I meant to say, was, 
Mother, would you please pass the salt,' (look it up).


The answer is to throw away the brochure (page) model of the web, 
and move to web 2.0, where there is a cohesive (continuous) model.


The UI is complete separated from the backend, and the UI is a single 
entity, that is persistent during the session.  Everything else is 
simply a pain.


Most sites are horizontal (shallow) as opposed to vertical (deep). 
 And most are still modeling on the brochure (page) as opposed to 
the space (like a desktop).
Oldes:
13-Feb-2006
I'm administrating some pages where is a lot of text articles published. 
And because 50% of the trafic is done by robots as Google crawler, 
I'm thinking about that I could give the content of the page in Rebol 
format (block). Robot will get the text for indexing and I will lower 
the data amount which is transfered with each robots request, because 
I don't need to generate designs and some webparts, which are not 
important for the robot. What do you think, should I include Rebol 
header?
Sunanda:
13-Feb-2006
That's a form of cloaking. Google does not like cloaking, even "white 
hat" cloaking of the sort you are suggesting:
http://www.google.com/support/bin/answer.py?answer=745


Better to respond to Google's if-modified-since header -- it may 
reduce total bandwith by a great deal:
http://www.google.com/webmasters/guidelines.html


Also consider supplying a Google Sitemap -- and that can have modification 
dates embedded in it too. It may reduce googlebot's visits to older 
pages
http://www.google.com/webmasters/sitemaps/login
Sunanda:
13-Feb-2006
Some of them are just bad -- ban them with a robots.txt


Some (like MSNbot) will respond to the (non-standard) crawl-delay 
in robots.txt: that at least keeps them coming at a reasonable speed.


Some are just evil and you need to ban their IP address by other 
means...Like flood control or .htaccess

REBOLorg has a fairly useful robots.txt
http://www.rebol.org/robots.txt
Sunanda:
13-Feb-2006
Yoy could try that as a first step:

-- Create a robots.txt to ban the *unwelcome* bots who visit you 
regularly .

-- Many bots have a URL for help, and that'll tell you if they honour 
crawl-delay....If so, you can get some of the bots you like to pace 
their visits better.

If that doesn't work: you have to play tough with them.
Oldes:
13-Feb-2006
The bandwidth is not such a problem now:) I was just thinking if 
it could be used somehow to make Rebol more visible.
Sunanda:
13-Feb-2006
Having REBOL formatted output is / can be a good idea: REBOL.org 
will supply its RSS that way if you ask it nicely:

http://www.rebol.org/cgi-bin/cgiwrap/rebol/rss-get-feed.r?format=rebol

But *automatically* supplying a different version to a bot than that 
you would show to a human is called cloaking and the search engines 
don't like it at all.

If they spot what you are doing, they may ban you from their indexes 
completely.
Sunanda:
13-Feb-2006
Yes.

If you clicked the link I gave above, then you saw a page served 
as text/html  [probably should be textplain -- so I've changed it]
If you try format=rss then you get a page served as text/xml


In both cases, the output is not meant for humans: one format is 
for REBOL and one for RSS readers.
Oldes:
13-Feb-2006
(I should not write in such a dark:) now = not  readed = readers 
:)
JaimeVargas:
14-Feb-2006
Kudos to Yahoo!, who today released two pieces of goodness into the 
commons. The first is their UI library, and the second is their Design 
Patterns Library. The UI Library is a collection of DHTML/Ajax/Javascript 
(pick your favourite term) controls and widgets. The Design Patterns 
Library is "intended to provide Web designers prescriptive guidance 
to help solve common design problems on the Web". 

- http://developer.yahoo.net/yui/
- http://developer.yahoo.net/ypatterns/
Anton:
15-Feb-2006
read/custom - can it send more than one cookie at a time ?
Pekr:
4-Apr-2006
Hi ... I have following task to acomplish ..... my friend who is 
doing college in archeology, is working on her thesis. Part of the 
thesis are images of various ancient goods. So we've got photos from 
our digital camera. I will produce small View script, which will 
allow her to enter comments for each image. Now I want to do a template 
(table?), with various layouts, mainly two images per A4 page plus 
comments under each of those images. Can I influence table cell size? 
My past experience was, that the cell got resized according to image. 
Are there also various methods, how to "stretch" the image in cell? 
thanks a lot for pointers ...
Sunanda:
4-Apr-2006
You mean HTML tables?

The cell has a height and width, and the image has a height and width.

You probably need to set both height and width on both the cell and 
the image.
Probably easiest with CSS 
Remember to set the padding and margin to zero.

And remember that IE6 and lower handles this differently to other 
browsers, so it's not easy to get pixel-perfect borders and so on.
Pekr:
4-Apr-2006
uh, the photos - there is much more - some 230 photos ... mostly 
two per page ... you don't want her to do it manually in Word, right? 
:-) That's why the atutomatition - imo a good job for rebol :-)
Pekr:
4-Apr-2006
what a fight for novice like me to get damnes stupid two images with 
two text descriptions under them to print on one A4 ....
Pekr:
4-Apr-2006
last week we finished upgrade of SAP after 5 years .... I saw some 
initial doc done in XML, XSLT etc. .... Firefox was not able to display. 
Imo the thing is, that SAP supports IE only ... what a world ....
Sunanda:
4-Apr-2006
Browsers aren't meant to display things pixel perfect.

They are designed to pour the content into the shape the user wants.

If I have a 180x360 monochrome phone, I should still be able to see 
HTML-mediated content in a reasonable way.

PDF is a way of replcating what a sheet of paper does. It does it 
well, but it is an outdated concept.

Of course, browsers are also full of bugs which doesn't help.
ScottT:
5-Apr-2006
browsers actually do a good job of pixel-perfect, but printers don't 
do pixels.  using real-world css dimensions, like cm or pt etc. will 
translate between device contexts.  Anyway.  I don't envy the task. 
 


Anyway, I have been messing with embedding REBOL in client-side code, 
which is working pretty well: http://eisic.ws/ext/r/Document2.plugin.r.html


I need to figure out how to keep REBOL from bailing out on me, though. 
 generally, if the console pops up, I have to refresh the page.  
For instance,  any print will pop up the console, and I would really 
rather not pop up the console from the page, because closing it destroys 
the REBOL instance.
james_nak:
5-Apr-2006
I thought I've seen a cgi script somewhere.
Oldes:
5-Apr-2006
!!! Cookies-daemon script now allows to post data as a multipart 
!!!
do http://box.lebeda.ws/~hmm/rebol/cookies-daemon_latest.r
;sending single file:

read/custom target-url [multipart [myfile %somefile.txt]]   ;== same 
like <INPUT TYPE=FILE NAME=myfile>
;sending normal fields:

read/custom target-url [multipart [field1 "some value" field2 "another 
value]]
;sending multivalue:

read/custom target-url [multipart ["field[]" "some value" "field[]" 
"another value]]
;sending file with field value:

read/custom target-url [multipart [myfile %somefile.txt field1 "some 
value"]]


Source files (with modified %http-patch.r) are in this archive:  
http://box.lebeda.ws/~hmm/rebol/cookies-daemon_latest.rip

As it's part of the cookies-daemon, it should deal with the cookies 
automatically.


The script is trying to detect content-type of the file which you 
want to upload calling get-content-type function, which is not part 
of the cookies-daemon (at this moment)
Louis:
26-Apr-2006
I am putting up a new web site. It works fine on my own computer, 
but when I send it to the remote server it fails to load one of the 
jpg files. The jpg is one the server. All the other jpg files load 
fine. Any idea what might be wrong?
Maxim:
26-Apr-2006
just as a test, might try replacing src to    src="http://<domain>/<path-to-image>/dayspring.jpg"


(replace <domain>/<path-to-image> by what is needed to reach that 
image)
Chris:
17-May-2006
Thanks :o)  It's merely a revision, mainly fixing paragraph/heading 
margins.
Anton:
21-May-2006
Anyone got a direct apple.com link to download Quicktime 7 Firefox 
plugin on WinXP ?
Anton:
22-May-2006
Yes, I shouldn't have assumed it was needed, but I gave them a Yahoo 
email anyway, so no drama.
DideC:
28-May-2006
Question to HTML / CSS gurus
I have to display Rebol code in an HTML page. I use <PRE> tags.

Problem : whatever I use (Cell, Div, Pre) the wrap only occurs based 
on the window width, not the one I specified in the tag.

So, how to force PRE text to wrap in a specific width ?
Geomol:
28-May-2006
I don't think, you can force a wrap at a certain place. It's in the 
nature of HTML, as it's not wysiwyg.
Geomol:
28-May-2006
From http://www.w3.org/TR/REC-html32

A few user agents support the WIDTH attribute. It provides a hint 
to the user agent of the required width in characters. The user agent 
can use this to select an appropriate font size or to indent the 
content appropriately.

It's not the width of the line.
Sunanda:
28-May-2006
<pre> literally means "as written" -- if there are no line breaks 
in the text, then there will be none on the page.
***

Some lines in <pre> tags can be accidently enormously long, and need 
to be wrapped by hand.

That's one reason REBOL.org offers you a user-setting for the point 
at which you want Mailing list messages to be forcibly wrapped:
http://www.rebol.org/cgi-bin/cgiwrap/rebol/cpt-update-profile.r

(See Appearance and settings / Point at which Mailing List Archive 
messages will start to wrap.)
[unknown: 9]:
28-May-2006
Dideir, yeah we ran into this recently in allowing people to escape 
code inside our Wiki.  We allow Rebol, HTML, etc.

At first it seems counter intuitive. But this is the way of HTML.


Aside from the straight forward concept as Sunanda mentioned, if 
you are willing to process the code a little you can count the characters 
of the longest line, and scale the text to match the final output. 
 A couple of points dropped on a font stil are readable, and many 
sentences still fit.


Another is to encode the whole thing, in other words convert all 
the "<" for example to escape sequences.  Now HTML will wrap everything 
automatically.
DideC:
29-May-2006
I have tried "Overflow: auto" (I just had a look to makedoc anywhere 
result to see how it handles that),
but fall on the I.E. inconsistency.
Allen:
29-May-2006
Another option is to show in a textarea and set the rows & columns
Pekr:
19-Jul-2006
I would like to have something like a face, where you insert image 
top-left corner, but it uses aspect effect, that once it reaches 
particular width or height, it is drawn to the face, but the other 
axis stays as-is, so the aspect radio is kept correct. With above 
definition, it simply scales image to defined width-height, and I 
have to properly cut image in xnview, counting pixel ratios .... 
and that is very boring job :-)
Alek_K:
20-Jul-2006
Pekr: 

1. I don't know if i understand correctly, but if You give only one 
size (f.e. width), image will be scaled with aspect ratio to that 
size. You can set .photo size too of course (so it will not ruin 
Your layout)

2. Text under the image - I can't identify the problem. Can You give 
a link to it?
Gabriele:
22-Jul-2006
Petr: give the text container a fixed width, then set both left and 
right margins to "auto". this should center it.
Allen:
30-Jul-2006
yes. sadly lost a lot stuff when the previous host shut down in the 
same week as my hard-drive died. I had to retrieve what I could via 
the wayback machine, and too few CD backups.
Pekr:
3-Aug-2006
a question - I have Windows app in cp-1250 encoding. Then I generate 
some html, which is server from Linux. When I look in Mozilla at 
the page source (http://www.jablunkovsko.cz), the browser displays 
some czech chars encoded, e.g. &aacute. But when I save the page 
locally on my Windows machine, I get correct czech chars ...
Louis:
19-Sep-2006
Due to a very slow Internet connection, I need to make the FTP module 
of my website builder script more efficient so I don't send files 
unnecessarily. What I have in mind is:


1. Delete all the files in the website directory on my harddrive 
to eliminate all unused files.
2. Build the website to the website directory on my harddrive.

3. Download a list of the file names and creation dates from the 
website (all are in one directory).

4. Read the list of file names and creation dates from the directory 
on my harddrive (all are in the one directory mentioned in 2 above).

5. If a file is on the hard drive but not on the server, send it 
to the server.

6. If a file is on the server but not on the harddrive, delete the 
file on the server.

7. If a file on the harddrive is newer than a file on the server, 
send it to the server.


Has anyone already done this? Am I forgetting anything? Any pointers 
on how to do this?
MikeL:
19-Sep-2006
Sorry about the CRLF ..... you don't want to be checking the timestamps 
on the server with a slow connection. Just hold the last updated 
value locally and if it changes then transfer the file.  Same for 
deleting ... else you spend all of your time checking on the server 
over a slow connection.    You could check the timestamps or hash 
the local value ... then if  the hash value of the source changes, 
transfer the updated version.     There's some code to do some of 
this in build-sie.r  http://www.rebol.org/cgi-bin/cgiwrap/rebol/view-script.r?script=build-site.r
 but it's a rebol-ish task.
Henrik:
19-Sep-2006
if you are on an unreliable or slow connection, you might experience 
timeouts which will in turn cause network errors. I recently worked 
on a similar system and you have to basically wrap all code that 
access the internet in TRY and do a lot of error trapping and possibly 
some retrying to ensure that uploads and downloads of entire filesets 
are done correctly. The code in build-site.r will not do that, so 
you have to restart the upload if it fails.
Louis:
19-Sep-2006
Graham, if a file upload fails somewhere in the middle, will you 
script restart the upload where the failure occurred so that the 
first half of the file does not have to be downloaded again?
Anton:
19-Sep-2006
I found various FTP servers report dates differently. Also the dates 
may not include the timezone, so you would have to assume it is in 
the timezone of the server and get the timezone from the server another 
way. Because there are so many variants of FTP servers you would 
have to do a lot of research to make this reliable, and then you 
wouldn't be 100% sure it would not fall over with some obscure FTP 
server.
Sunanda:
20-Sep-2006
Louis -- a couple of pointers about uploading files to a server using 
a slow FTP connection:

(I do it myself with REBOL.org -- most of the development takes place 
on my machine and is uploaded to RO via a 56K modem, so this is based 
on real experience.)

-- If you are uploading a large live file, that file will be available 
and/or "broken" during the course of the upload. Best to upload with 
a temporary file name, and then rename when uploaded.

-- That won't work with CGI scripts under Apache/UNIX as the rename 
won't leave them with the right file permissions to execute. But 
it will work for all other files, including scripts that are DOne 
by your CGIs.

-- We have a checksums file that the uploader uses.  Before uploading 
a file, it checks the file's upload checksum. That way, we only ever 
upload new or changed files.
Rebolek:
6-Nov-2006
there is cookies manager from Oldes somewhere, have a look around 
AltME for URL (he still ignores rebol.org, such a bad bad bad boy 
;).
Pekr:
6-Nov-2006
well, working with cookies is not all that difficult, is it? My friend 
just asked me - why rebol does not handle sessions, if any other 
language does. I told him to write it himself, but he probably does 
not know how. Isn't session just about getting a cookie, looking 
into your storage space for the cookie identifier (session identifier), 
loading the session data, using them, and storing them once again?
Gabriele:
6-Nov-2006
Yes, session handling is not hard. REBOL does not have it built in 
because it was not designed to be mainly a CGI language; so you need 
to add that yourself.
Gabriele:
7-Nov-2006
the simplest way, which however needs write permissions to the filesystem, 
is to have a unique session id assigned to users; this id could be 
basically a file name (and you need to check for its sanity then); 
then you read from the file at the beginning, and save to it at the 
end.
Pekr:
7-Nov-2006
yes, I know, as for files. My strategy is very simple - use cookies 
(I wonder if there is script being able to handle multiple cookies 
btw), then "start a session" = generate unique ID, store it in \sessions\ 
dir ....
Pekr:
7-Nov-2006
maybe a pair of word name (literal) plus value ... and then some 
little accessor function
Gabriele:
7-Nov-2006
i just let the session variable be whatever the user wants. it could 
be an object!, or a block!, or whatever.
Gabriele:
7-Nov-2006
in some cases you may just need a logic! value, in others a block 
with words and values may be best...
Gabriele:
7-Nov-2006
allowing session handling to directly set variables is a bad design, 
see the plagues that php had for this.
19801 / 6460812345...197198[199] 200201...643644645646647