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

World: r3wp

[Web] Everything web development related

Gregg
14-Apr-2008
[1452x3]
Will, I'll updated my JSON copy script here with your changes, but 
Romano hasn't been around in a long time, AFAIK, so someone (I guess 
maybe you or me) should get joint ownership of the script on REBOL.org 
to update it.
Do you have a test case for the change?
Should > be in the list of escaped chars? It doesn't look like it 
from the spec. I'll have to check my notes to see if that was added 
for a specific reason.
Reichart
14-Apr-2008
[1455]
We are not fighting...fighting would mean I don't agree with you...
Will
14-Apr-2008
[1456x2]
example is in the patch above, flikr api returns:
{"name":"Taiwan Panorama \/ \u53f0\u7063\u5bec\u8996\u91ce"}
without the patch it won't work once it encounter "\/" do you really 
need a link?
Gregg
14-Apr-2008
[1458]
Ha! I thought it said "Panorama V", not "Panorama \/". :-\
Will
14-Apr-2008
[1459x2]
here you go:

probe JSON-to-rebol head clear back tail copy find/tail read http://api.flickr.com/services/rest/?format=json&api_key=45d5d4b7dff9bc653c8eb3e73271c10c&method=flickr.photos.getInfo&photo_id=2279042485
"jsonFlickrApi("
return error without the patch
Gregg
14-Apr-2008
[1461x2]
Yeah, I see the solidus in the spec, though I wonder how it was overlooked 
before. It looks like they've also done away with comments in the 
spec. Is that so?
That is, JSON no longer supports comments.
Will
14-Apr-2008
[1463]
would be nice if you can take control and update on rebol.org to 
prevent others headaces 8)
Gregg
14-Apr-2008
[1464]
I'll get it updated shortly.
Will
14-Apr-2008
[1465]
Thank you!
Gregg
14-Apr-2008
[1466]
I'm checking with Douglas Crockford about what the real rules are. 
None of the examples have the solidus escaped, even though that's 
what the grammar says to do. Once I have answers from him, I'll post 
an update.
Anton
15-Apr-2008
[1467]
I've noticed some websites like Amazon don't seem to have a log out 
/ sign out button any more. What's happening ? How are they doing 
the logout ?
Pekr
15-Apr-2008
[1468]
maybe it is just hidden, using cookies? If you have cookie, you are 
auto-logged-on, and the session will end when you close your browser 
session?
Gabriele
15-Apr-2008
[1469]
reichart, "fighting" is not the right word... i'd say, it's just 
me continuously whining about thing not being this way :)
Gregg
15-Apr-2008
[1470]
Will, Here is the answer from Douglas Crockford:


It is optional. It is allowed for the case where JSON is embedded 
in HTML 
SCRIPT, where 
</" is not allowed, but "<\/" is.

There are no comments in JSON."


So, on the parsing side, we should look for it, but on the generation 
side, \/ is really ugly if we generate it everywhere. If we don't 
generate it, you're stuck if you need it, so we probably need a refinement. 
Either that, or just accept the ugliness.


I'm not sure if I want to remove comment support either. Just a gut 
feeling they may come back.
Reichart
15-Apr-2008
[1471]
Gab, : )
Will
15-Apr-2008
[1472]
Gregg, thanks for digging this deeply, I would suggest just adding 
it, no refinements, at the end it is a transport not meant to be 
human readable (unicode escapes aren't more readable ;) so no need 
to think if refinement is needed case by case.
Gregg
15-Apr-2008
[1473]
It just makes paths look so horrible. :-) 

Does anyone else here care?
Tomc
16-Apr-2008
[1474]
I perfer  my rebol not look like regex
Pekr
17-Apr-2008
[1475]
Web apps are becoming sophisticated. We are about to introduce WCMS 
in our company, probably basing it upon SharePoint Server. But I 
can see that also many open-source systems exist, as Joomla, Drupal, 
Xoop, WordPress, etc., and here's how you can customise your google 
site - http://www.google.com/ig- you simply choose portlets and 
you can shift thema around ....
Reichart
17-Apr-2008
[1476]
LOL...yeah...
Gregg
20-Apr-2008
[1477x2]
Sorry for the delay in getting the JSON script updated Will. There 
were some other changes in the spec that I decided to clean up, so 
it passes all their tests, except one. Test #18 checks the depth 
limit on arrays. I guess they can't be deeper than 19 levels. Our 
REBOL version doesn't enforce that.
It's up on REBOL.org, and I sent it to Doug Crockford as well.
Will
22-Apr-2008
[1479]
Thank you Gregg 8)
Gregg
22-Apr-2008
[1480]
I got a note from Doug that he's confident comments won't be coming 
back, so I'm going to do another update for that.
Geomol
29-Apr-2008
[1481]
Info from danish news on tv:
Women use 29 hours on the internet per week.
Men use 27 hours on the internet per week.

People older than 61 years use more time on the internet than people 
between 20 and 60 years old.
btiffin
29-Apr-2008
[1482]
Re age differences; Typing speed?  More detail oriented than the 
flash me this tlash me that generation?  Umm, retired with more free 
time?  But an interesting stat.    I wonder if they thought about 
adding a developer category ... 29 hours a day.  Reichart alone would 
probably skew the statistics.  :)
[unknown: 5]
29-Apr-2008
[1483x2]
Is evolution a religion http://www.icr.org/article/455/
sorry wrong group
BrianH
29-Apr-2008
[1485]
Answer: No. Now you don't have tgo bring it up in the other group.
Robert
2-May-2008
[1486]
What do I need to read from a given URL (assume web-page) to find 
out when the page was modified? Is there a way?
Henrik
2-May-2008
[1487]
Geomol, I wonder if it has something to do with the skill with using 
the computer, how fast something can be looked up, et.c
Dockimbel
2-May-2008
[1488x2]
>> page: open http://rebol.com
>> page/locals/headers/Last-Modified
== "Wed, 30/Apr/2008/01:08:00/+GMT"
>> load skip page/locals/headers/Last-Modified 5
== 30-Apr-2008/1:08
Robert
2-May-2008
[1490]
Doc, thanks. Never heard about this...
Dockimbel
2-May-2008
[1491x2]
There's a mezz wrapper for that :
>> modified? http://rebol.com
connecting to: rebol.com
== 30-Apr-2008/1:08
Robert
2-May-2008
[1493x2]
Cool! I could have assumed this...
Does anybody know how I can access the currently displayed URL in 
a web-browser from an external application? I just want to get back 
the URL of the "current" shown web-page in an active window.
Henrik
2-May-2008
[1495]
That might be hard as it would depend on the browser.
Robert
2-May-2008
[1496]
Yes, I know. So any help/idea will help.
Henrik
2-May-2008
[1497]
is it Windows only?
Robert
2-May-2008
[1498]
At the moment yes.
Gregg
2-May-2008
[1499]
You might have to do some window spying to see what classes things 
are, then enum top windows to find the browser, then enum its child 
windows and do getwindowtext.
Robert
2-May-2008
[1500]
Hmm... sounds like a lot of work but OK I will see how I come along.
[unknown: 5]
2-May-2008
[1501]
Would be nice to do something like this flash app with REBOL http://www.livefaceonweb.com/