r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[Web] Everything web development related

Graham
25-Feb-2005
[462x2]
I suspect you will have to look up the ip address in an ip map and 
guess from there
that web site reports the time in GMT
Anton
25-Feb-2005
[464]
by what method ?
Graham
25-Feb-2005
[465]
opening it
Anton
25-Feb-2005
[466x4]
Ah, you are right:
>> port/locals/headers/date
== "Fri, 25 Feb 2005 05:45:11 GMT"
thanks. I wonder how standard this behaviour is... let's see...
looking good so far, must do more tests..
The reason I wanted to know was because I'd like exists-thru? to 
be able to calculate the age of a remote document, so it can compare 
with the locally cached version.
Graham
25-Feb-2005
[470x2]
isn't there an http statement for that?
head ?
Tomc
25-Feb-2005
[472]
http://www.rebol.org/library/scripts-download/http-head.r
Graham
25-Feb-2005
[473]
ahh.. the author jumps in :)
Anton
25-Feb-2005
[474]
Very good. It's short too.
Graham
25-Feb-2005
[475x2]
how does 'info? work .. a similar way?
'http-head should probably parse out the port for the web server 
and if  it is not there, only then default to 80
Tomc
25-Feb-2005
[477x2]
yes it should
I'll update it
Graham
25-Feb-2005
[479]
oh well, an exercise for the gentle reader
Tomc
25-Feb-2005
[480]
precious few of those around
Graham
25-Feb-2005
[481]
readers??
Tomc
25-Feb-2005
[482]
gentle readers anyway
Graham
25-Feb-2005
[483]
we're a pretty tame lot here ... good job Terry is around to wake 
us up now and then
Tomc
25-Feb-2005
[484]
updated
Terry
25-Feb-2005
[485x2]
OUTLINE OF SCAPEGOATING PSYCHO-DYNAMICS

In scapegoating, feelings of guilt, aggression, blame and suffering 
are transferred away from a person or group so as to fulfill an unconscious 
drive to resolve or avoid such bad feelings. This is done by the 
displacement of responsibility and blame to another who serves as 
a target for blame both for the scapegoater and his supporters. The 
scapegoating process can be understood as an example of the Drama 
Triangle concept [Karpman, 1968].
http://www.scapegoat.demon.co.uk/
Wake up ;)
BrianW
25-Feb-2005
[487]
I really like the bit in the middle where they discuss the merits 
and flaws of JavaScript versus CSS for site interactivity.
Graham
25-Feb-2005
[488]
Yeah, Terry is responsible to the delays at RT
Terry
25-Feb-2005
[489x2]
The Story of Andrés Escobar
http://en.wikipedia.org/wiki/Andr%E9s_Escobar
(or Did Bill Buckner Lose the 1986 World Series)
Robert
25-Feb-2005
[491]
What's the best web log analyzer to use? I have tried: wusage (well, 
it works but I'm not that happy with hit), webalizer (quite OK), 
analog (quite OK). But I haven't found the silver bullet yet.
Geomol
25-Feb-2005
[492x2]
(I hope this is the right group to post this in.)

I have a problem, when reading a file on another computer thru a 
shared drive. I'm sitting on a Windows client, and the file is on 
a UNIX server. First time I read the file, it's ok. Then if the file 
is updated on the UNIX server, I still get the old version on the 
client.

I've tried the read-thru/update command, but it doesn't solve the 
problem. Maybe read-thru/update doesn't work with shared drives? 
My code looks like this:

read-thru/update %/u/adv71-20/data/invoice.txt

Any ideas?

(It's possible to distribute a sync from the server to the client, 
and then I'll get the new version of the file. But I'll like to be 
able to get the new version from the client.)
It seems, my problem is only with Win98. Even a normal read works 
on Win2000 and WinXP.
And then you tell me: DON'T use Win98, right? ;-)
DideC
25-Feb-2005
[494]
yes ;-)
yeksoon
25-Feb-2005
[495]
Robert, we use AWStats.
http://awstats.sourceforge.net/


what are the things that you are looking for that does not exists 
in the pkgs you have mentioned.
Robert
25-Feb-2005
[496]
I want a report to give me a good overview about the year, current 
month etc. AWStats looks good in this. I like the visits and sample 
trials reports of wusage. Shows how people browse your site.


Clicks-to-result must be as low as possible. Simple to install, configure 
and use.
Tomc
25-Feb-2005
[497]
I also use AWStats  has been fine for my purposes
Anton
26-Feb-2005
[498x3]
Geomol, READ-THRU is mainly for urls. READ-THRU file   operates almost 
just like  READ file. Anyway, I recommend just use READ, if you want 
the latest contents.  If it is true what you say, then it looks like 
there is some caching by Win98 or the driver for the shared drive. 
(So, outside rebol's control). However, perhaps you could force a 
sync by "touching" the file you are interested in reading first. 
By "touching" I mean use set-modes to change one of the file-modes, 
eg:
>> print mold get-modes %a 'file-modes

[creation-date access-date modification-date owner-write archived 
hidden system]
>> set-modes %afile [archived: true]
>> set-modes %afile [archived: false]
>> get-modes %afile 'archived
== false
So the idea is just look at the ARCHIVED mode, toggle it, then set 
it back to how it was. Hopefully that will wake the outside caching 
mechanism up and you can get your fresh data.
Geomol
26-Feb-2005
[501]
Good suggestions, Anton! Yes, I'm pretty sure, it's outside REBOL's 
control, as I sometimes see strenge behaviour (for example regarding 
file locking) in other programs. The intra-network, I'm doing those 
things in, is a combined Win98-Win2000-WinXP network with a few UNIX 
servers present. The way, we share drives, is the standard Windows 
way using the SMB protocol (using Samba on the UNIX servers). I've 
for a long time suggested, that they do it the UNIX way and install 
NFS clients on the PCs in stead. I tried to install some ProNFS client 
yesterday, but couldn't get it to work (probably because of some 
lame Windows authentification, maybe also encrypted passwords).


It could be interesting to see, if the cache problem dissappear when 
using NFS.
JaimeVargas
26-Feb-2005
[502]
Is read-thru a new mezz?
DideC
26-Feb-2005
[503]
no, an old one.
JaimeVargas
26-Feb-2005
[504]
Humm is it available only in view, it is not part of rebol core 2.5.48 
for osx
Anton
26-Feb-2005
[505]
Look like it is only available in View. Do you need the source ?
JaimeVargas
26-Feb-2005
[506]
Please
Anton
26-Feb-2005
[507x2]
read-thru: func [

    {Read a net file from thru the disk cache. Returns binary, else none 
    on error.}
    url [url! file!]

    /progress callback {Call func [total bytes] during transfer.  Return 
    true.}
    /update "Force update from source site"
    /expand "Auto-decompress after transfer."

    /check {Update only if version, checksum/secure, or date/size do 
    not match.} info

    /to "Specify a file target, not cache." local-file [file! none!]
    /local file data purl loc-path
][
    vbug ['read-thru url info]
    if none? file: path-thru url [return none]
    if local-file [file: local-file]
    if all [not update exists-thru?/check file info] [
        if error? try [data: read/binary file] [return none]
        return data
    ]
    if file? url [
        if error? try [data: read/binary url] [return none]
        return data
    ]
    loc-path: first split-path file
    if data: read-net/progress url :callback [
        if not exists? loc-path [make-dir/deep loc-path]
        if all [expand find/match data "rebpress"] [

            if error? try [data: decompress skip data 8] [return none]
        ]
        write/binary file data
        if all [check block? info info/2] [

            error? try [set-modes file [modification-date: info/2]]
        ]
    ]
    vbug ['read-thru-ok? found? data]
    data
]
Oh! It uses exists-thru? and read-net !!  I will post the sources 
for these dependencies to you privately.
DideC
3-Mar-2005
[509]
Q for javascript/CSS guru.


How to change the font weigth of an <input type="text"> field with 
Javascript ?


I have a function called on OnChange() event that check the value 
and I want to display the field in Bold if value > 0, or normal if 
value = 0
Chris
3-Mar-2005
[510]
Should be something like -- object.style.fontWeight = "bold";
Louis
3-Mar-2005
[511]
I downloaded a page from a web site, but it will not display.  Could 
this have something to do with frames? What must I do to get this 
file to display?