New try.zorba.io aka "Merry XMas Hermann" ;-)

63 views
Skip to first unread message

William Candillon

unread,
Dec 25, 2013, 2:54:19 PM12/25/13
to jsoniq
http://try.zorba.io

Let me know if you have issues with it.
The share button will soon suggest links to the direct result
(serialized as xml or json).

William

her...@stamm-wilbrandt.de

unread,
Dec 28, 2013, 4:55:25 AM12/28/13
to jso...@googlegroups.com
Hi William,

the link http://try.zorba.io/queries/xquery works fine and show the Xmas script in new layout.

I can create a "Share" link with that, but the one I get for minimal script below does not work :-(

Also the menus with all the samples is missing from that view.
And  http://try.zorba.io  looks like it was before, and there the "Share" button just hangs ... :-(

Hermann.


declare variable $inp := [ "Merry Christmas,", "and a happy new year!", "(2014)" ];

declare variable $m := " ¡,#$%⅋,)(*+'-˙/0ƖᄅƐㄣϛ9ㄥ86:;>=<¿@∀qƆpƎℲפHIſʞ˥WNOԀQɹS┴∩ΛMX⅄Z]\[^‾,ɐqɔpǝɟƃɥᴉɾʞlɯuodbɹsʇnʌʍxʎz}|{~";

declare variable $M := ( (1 to 31) ,  fn:string-to-codepoints($m) );

[
  for $s in fn:reverse( jn:members( $inp ) )
    return
      fn:codepoints-to-string(
        fn:reverse( for $c in fn:string-to-codepoints($s) return $M[$c] )
      )
]

William Candillon

unread,
Dec 28, 2013, 5:25:53 AM12/28/13
to jsoniq
Hi Hermann,

If I enter http://try.zorba.io/queries/xquery/%2BHQQAkxfBZXXEp9qLL2Kcv4DJGY%3D
in my address bar, I get the exact same query than below your email.
Which browser/system are you using?

Do you get the old try zorba at http://try.zorba.io ? Could it be a
caching problem?

Kind regards,

William
> --
> You received this message because you are subscribed to the Google Groups
> "JSONiq" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jsoniq+un...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

her...@stamm-wilbrandt.de

unread,
Dec 28, 2013, 11:01:02 AM12/28/13
to jso...@googlegroups.com
Hi William,

the link works now on a different machine.
Now "http://try.zorba.io" always starts with the new GUI with Xmas sample.
Editing and executing is fine and "Share" gives a link.
But if I do open that link I get the colored response page stating this:
try {
  http:get("")
} catch http:not-found {
  <p>
    404 NOT FOUND.
    Take me home
  </p>
}

I did try on two computers with different versions of Firefox, can you please test Firefox?
This Firefox is 24.0 (for Ubuntu, on private desktop).
Just opened  http://try.zorba.io/queries/xquery/JXd7CwDVhBHnsnloSh/5GVGIZNo=  on Chrome on same machine, 404 too.


Another question besides the "Share" problem:
Will the menus with the many samples from old "try.zorba.io" come back?
Or are they already available by some "trick"?


Btw, just twittered on a nice "tip" from try.zorba.io:
https://twitter.com/HermannSW/statuses/416958332008542208


Hermann.

William Candillon

unread,
Dec 28, 2013, 11:32:15 AM12/28/13
to jsoniq
Hi Hermann,

I'm testing extensively on Firefox and I just tried the share feature
on firefox 24 on debian.
The best explanation I have at this moment is that you are using an
older version of try.zorba.io (the bug did exist in previous version).
Did you try with no client cache?

The examples will be back eventually.

William

her...@stamm-wilbrandt.de

unread,
Dec 28, 2013, 1:20:44 PM12/28/13
to jso...@googlegroups.com
Hi William,

I edited a sample, executed, then clicked "Share" and now got this response ... :-(
"http://try.zorba.io/queries/xquery/null"

Hermann.

William Candillon

unread,
Dec 29, 2013, 8:20:11 AM12/29/13
to jsoniq
Hi,

Indeed I was able to reproduce the bug you mentioned it should be
fixed now (refresh the page without cache).

Kind regards,

William

her...@stamm-wilbrandt.de

unread,
Dec 29, 2013, 3:45:35 PM12/29/13
to jso...@googlegroups.com

William Candillon

unread,
Dec 30, 2013, 12:58:03 AM12/30/13
to jsoniq
Hi Hermann,

Thank you for bearing with me.
I updated the sandbox with code completion (ctrl+space).
You can see an example here:
https://dl.dropboxusercontent.com/u/1487285/codecomplete.mp4

Kind regards,

William

her...@stamm-wilbrandt.de

unread,
Jan 4, 2014, 12:59:30 PM1/4/14
to jso...@googlegroups.com
Hi William,


> I updated the sandbox with code completion (ctrl+space).
>
cool but "jn:" completion seems to be missing (I am interested in the "++" of XQ++).

If I do start with empty document and press ctrl+space a big list opens.
Clicking on "fn:" in that list copies "fn:" to input area.
Then pressing ctrl+space again results in big list of fn: functions for selection -- that is fine.

Clicking on "jn:" in initial list copies "jn:" to input area.
Then pressing ctrl+space again does not result in a list being opened ...

Hermann.

William Candillon

unread,
Jan 6, 2014, 6:40:56 AM1/6/14
to jsoniq
Hi Hermann,

Thank you so much for taking it for a ride.
It should be fixed.

Please keep the feedback going.

I'm currently working on linking the documentation from the code
completion but it will take a bit of time to be done.

William

her...@stamm-wilbrandt.de

unread,
Jan 6, 2014, 2:41:28 PM1/6/14
to jso...@googlegroups.com
Hi WIlliam,

sorry for keeping complaining.
"jn:" tab+space shows 38 functions now.
But some are shown 3 times.
And especially jn:json-doc() is missing, and trying to use that results in:

[XPST0017"json-doc": function with arity 1 not declared


Hermann.

William Candillon

unread,
Jan 7, 2014, 3:54:48 AM1/7/14
to jsoniq, Federico Cavalieri
Hi Hermann,

Thank so much for the feedback, could you please send an example of a
result showing many times in the completion box?
json-doc() is disabled on try.zorba because we are afraid that people
use without fully understanding its semantic.
When I fetch resources on try.zorba.io I usually use the http client:
http://www.zorba.io/documentation/latest/modules/expath/http

@Federico: is the JSON http client available yet in zorba and/or 28.io?

William

her...@stamm-wilbrandt.de

unread,
Jan 19, 2014, 11:19:07 AM1/19/14
to jso...@googlegroups.com, Federico Cavalieri
Hi William,

clciking "tab+space" after clearing the input area and just having types "jn:" gives a long list.
Now the first ten entries are repeated (1==11, ... 10==20).

Hermann.
Reply all
Reply to author
Forward
0 new messages