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

World: r3wp

[Web] Everything web development related

Pekr
13-Jan-2007
[1295x2]
should I create sitemap in my google account for the particular domain?
example - try site:http://www.jablunkovsko.czbowling .... in google 
- only one link will show, whereas I would like the result to include 
(go to menu) "sport a relaxace"/bowling ....
Henrik
13-Jan-2007
[1297]
pekr, link to site is dead
Gabriele
13-Jan-2007
[1298]
petr, why not just including a simple html links somewhere in the 
page? you can even hide it with js, so that a user does not see the 
links, but a spider will.
Pekr
13-Jan-2007
[1299]
yes, that should work ... although I can imagine hiding the links 
... I will try to look at sitemap protocol - seems to be a standard 
...
Sunanda
13-Jan-2007
[1300]
Javascript only links will stop pretty much every spider.....So you 
won't appear in many search engines at all.

You will also be breaking a lot of people's assistive technologies 
(like screen readers for visually disabled people).

Best to have a site that is fully navigable via plain HTML links. 
Then add the clever stuff on top of that.
Google's advice:

http://www.google.com/support/webmasters/bin/answer.py?answer=35769
http://www.google.com/support/webmasters/
***

A high score here usually means you have  a person-friendly and spider 
friendly website:
http://www.cynthiasays.com/
Chris
13-Jan-2007
[1301]
Also, look up 'Progressive Enhancement' or 'Hijax', both describe 
techniques consistent with Sunanda's advice.
Pekr
13-Jan-2007
[1302]
thanks for advices - initially my friend maight use Gabriele's advice 
of storing hidden links into index.html somewhere, so that search 
engine can index the site properly.
Sunanda
13-Jan-2007
[1303]
But bear in mind the *specific* advice on the Google page:
<<Avoid hidden text or hidden links.>>
PeterWood
13-Jan-2007
[1304x3]
Is building and submitting a purpose built crawler page an outdated 
technique?
It must be easy enough to generate one in Rebol
..but it seems to be dissaproved of by Google
Sunanda
14-Jan-2007
[1307]
Search engines like to index things a user can see.

Thye get suspicious of anything that appears to be built just for 
the.....No surprising given how much they have been gamed by SERPS 
spammers.

Having a human-readable site map has the same effect as a crawler 
page *and* taks you a long way towards having a site that is navigable 
by people under any conditions.
***

The google-approved method of doing a crawler page is to use what 
they call a sitemap:
http://www.google.com/support/webmasters/bin/topic.py?topic=8476

Someone could easily modify Carl's site-checker to emit a google 
sitemap:

http://www.rebol.org/cgi-bin/cgiwrap/rebol/view-script.r?script=site-check.r
Oldes
16-Jan-2007
[1308]
How to reset variables sent from a form using POST method without 
redirecting into new page? I mean how to prevent, that using reload 
will resend the values again. I usualy just set location to other 
page after processing, but now I have case when I need to display 
informations without change of the location. I think I've seen somewhere 
that it's possible using http response, but cannot find it:(
Chris
16-Jan-2007
[1309]
I'm not sure of a single http header designed for this purpose.  
There are cache controls, but how long to set them for?  Or etags/if-none-match, 
but would that prevent the browser's resend warning?  Or a token 
value in your form that expires after one submission, though also 
would not prevent the resend warning.  Or sessions?
Oldes
16-Jan-2007
[1310]
never mind, I will do it in the way I do it usually, that means redirect 
to other page after processing of the upload
Volker
16-Jan-2007
[1311]
if there is nothing, you could id  the page and block further  replies 
 with the same id.
Chris
16-Jan-2007
[1312]
Volker, that is etags...
Volker
16-Jan-2007
[1313]
i guess i am clueless and beter  stop spamming. what is etags?^^
Henrik
16-Jan-2007
[1314]
compare the post values to the last sent post values?
Chris
16-Jan-2007
[1315]
Etags should work like this: client requests a resource, server returns 
resource and etag header.  Client again requests resource, but this 
time sends if-none-match header with etag value and server can then 
decide whether to process the request or send 304 not changed.  I 
haven't explored this much so don't know how well it's supported 
-- I'm not sure how appropriate the solution is, but would involve 
the least server activity.
Volker
16-Jan-2007
[1316]
ah
Oldes
16-Jan-2007
[1317]
the problem is, that if you are posting large file, it's not too 
good, as all file is first uploaded again and than you can decide, 
if you want it to store for example. I though I sow something, but 
maybe it was just a fata morgana, I thing, that the best is the redirect. 
My problem is, that I'm trying to connect on database, which was 
not designed by me, so there is no crypted id for the data I upload, 
just incremental integer, which I don't want to use, as I would give 
chance to everybody go thru the data just inserting other numbers. 
I have to take a risk, modify the original database adding ne column 
with crypted id and redirect to the uploaded data using this id. 
And hope, that I will find and modifie all places, where is this 
database used:(
Pekr
16-Jan-2007
[1318x2]
reload resends post data? I thought that to resend post data you 
have to press submit button :-)
nevertheless now I understand why I sometimes get double posts with 
some chat boards :-)
Sunanda
16-Jan-2007
[1320]
It depends on which browser you are using -- they have different 
behaviours in this area.
CharlesS
24-Jan-2007
[1321x4]
Hmm, im using http-tools , I login to a page which sends a cookie 
which I then have to send back everytime, however the cookie seems 
to expire after one post :/
anyone user http-tools off of rebol.org ?
REBOL's POST , GET etc really need re-working -- for an IT aware 
language posting to websites id ridicoulously hard
is*
Joe
24-Jan-2007
[1325]
charles, welcome to reality !  In theory rebol supports many protocols 
but in practice the support is incomplete and it has been incomplete 
for a long time. check rebol.org, there are several patches for cookies 
support
Graham
24-Jan-2007
[1326x2]
I wrote http-tools, but haven't used it for years.
you normally need to send the cookie each time ... that's what browsers 
do
CharlesS
24-Jan-2007
[1328]
yes, I am sending it each time, but for some reason it seems to only 
like the first request, after that it expires , or something else 
is going wrong ... Id really like to see a client with transparent 
support for cookies
Tomc
24-Jan-2007
[1329]
are you getting a redirect from the second page ... that is followed 
without the cookie
Graham
24-Jan-2007
[1330x2]
oldes did something on transparent support ..
so did I .. but that was long ago.
Oldes
25-Jan-2007
[1332]
Yes, I did, and if you scroll a little bit up, you can find the link 
easilly - it's in big yellow block of text:) And I agree, that it 
would be good to have cookies support directly in Rebol, as my cookies-daemon 
is relly hard hack I cannot be sure that it would not rewrite some 
future http protocol updates
Pekr
13-Feb-2007
[1333x5]
Has anyone tried to solve at least some basic anti-spam form protection? 
I mean - those numbers/letters you have to rewrite to your form field, 
in order to be processed? Will it work with rebface at least, if 
my Linux server has no X-Win installed?
I want to do some small post-card system for my friend. He can't 
program much and adapted small php solution, but that solution is 
so basic, that it even does not randomize postcard number in presented 
link ... so you can cange your url and get access to someone's else 
message. That is imo unacceptable.
What I really like is www.view-card.com system. It is able to embedd 
images directly into email's body (not an attachement), but I found 
out, that most freemails has html email displaying turned off by 
default ....
had anyone done an email address validation according to rfc 2822? 
Well, I mean email adress part? Our to-email "whatever-stupidity-you-write-here423423423-rebol-considers-being-an-meail@{{}}}]//" 
is kind of funny :-)
I thought datatypes should be usefull, and there is exactly precise 
description of what is, and what is not email, so how Rebol can simplify 
it so much?
Sunanda
13-Feb-2007
[1338]
Not quite an email address validator, but the REBOL.org uses an email 
address spotter [contributed by Andrew Martin] to find and obsfucate 
email addresses in ML messages, etc.

You could use the same basic parse patterns to identify / validate 
email addresses. 

I haven't checked RFC 822 in detail, so it is likely that Andrew's 
code is more liberal than the actual spec, but it could be a starter.
Would you like a copy of the function?
Pekr
13-Feb-2007
[1339x2]
yes, of course ... you can send it to my mail address, or point me 
to some link ...
thanks a lot :-)
Graham
13-Feb-2007
[1341x4]
I wrote an email validator .. which works by doing an smtp challenge.
http://www.rebol.org/cgi-bin/cgiwrap/rebol/view-script.r?script=email-check.r
it's probably a reason why my spam has increased on gmail :(
Note to Sunada ...  licence (english) and license (american) spellings 
appear on the same page :)