ok, it works good enough.
Good enough because our example (both yours and mine) works fine, but if I
put a script like this (from your own script):
var chan = Ape.mkChan('foo');
var ar = ["one", "two", "three"];
chan.setProperty("numbers", ar);
var numbers = chan.getProperty("numbers");
for(indice in numbers){
Ape.log(numbers[indice]);
}
In the ape log apears:
one
two
three
but after that, a lot of code which maybe can be related to the end of the
array.
Thank you!
2011/5/30 Raúl Ordóñez <[email protected]>
> ok, already found how to compile. Will hopefully send a feedback soon!
>
>
> 2011/5/30 Raúl Ordóñez <[email protected]>
>
>> What's "compile from the source"?
>>
>> I tried downloading APE_Server-1.1.0.src.tar.gz and "tar xzvf", then
>> copying the files in my APE_Server three (1.1.0 Linux generic binary
>> download).
>>
>> When I start with ./aped it says "Version 1.1.0" and it works fine until I
>> use MySQLDemo.js or my own MySQL.js script. Then ape server stops telling
>> the same error.
>>
>> I don't know what to do next, I'm probably doing something wrong with that
>> "compiling from the source".
>>
>> Thanks for the fast answer! I really appreciate that.
>>
>> 2011/5/30 Anthony Catel <[email protected]>
>>
>>> Hey,
>>>
>>> The error about "scamble" is pretty interesting. I guess there is
>>> something wrong with libmysqlclient.
>>>
>>> Anyway. Compiling from the source should work. You have to compile the
>>> whole three. Not only "libmod_spidermonkey".
>>>
>>> I tried by myself :
>>>
>>> var chan = Ape.mkChan('foo');
>>> var ar = ["one", "two", "three"];
>>>
>>> chan.setProperty("numbers", ar);
>>>
>>> var numbers = chan.getProperty("numbers");
>>>
>>> Ape.log(numbers[0] + numbers[1] + numbers[2]);
>>>
>>> Result :
>>>
>>> onetwothree
>>>
>>> Are you sure that 1.1.0 is running? Does it state with : Version : 1.1.0
>>> in the running "stdout"?
>>>
>>> Thanks.
>>>
>>> Anthony C
>>>
>>> Le 30/05/2011 03:19, Raúl Ordóñez a écrit :
>>>
>>> Hi again. I installed APE 1.1.0 with JSF 1.1.0, but I'm having this same
>>> problem<http://www.mail-archive.com/[email protected]/msg03484.html>
>>> though
>>> I don't understand or I can't solve it like he did (compiling
>>> libmod_spidermonkey.so with sources).
>>>
>>> I tried installing from Debian/Ubuntu and Linux generic binary
>>> downloads (I'm using Ubuntu 11.04 so I guess both should work fine...) but
>>> they have the same error:
>>>
>>> "/usr/bin/aped: symbol lookup error: /usr/lib/ape/libmod_spidermonkey.so:
>>> undefined symbol: scramble"
>>>
>>> Thanks in advance...
>>>
>>> 2011/5/29 Anthony Catel <[email protected]>
>>>
>>>> Yes.
>>>>
>>>> IIRC, this bug was fixed in 1.1.0
>>>>
>>>> Le 29/05/2011 17:01, Raúl Ordóñez a écrit :
>>>>
>>>> Ape log says "Version: 1.00" so I guess I'm going to install that 1.1.0
>>>> version. Thanks Anthony. I will send feedback.
>>>>
>>>> 2011/5/29 Anthony Catel <[email protected]>
>>>>
>>>>> hi,
>>>>>
>>>>> Are you using APE 1.1.0 ?
>>>>>
>>>>> Le 29/05/2011 04:02, Raul Ordóñez a écrit :
>>>>>
>>>>> Hi,
>>>>>>
>>>>>> I'm trying to save an array into a channel property, like this (server
>>>>>> side script):
>>>>>>
>>>>>> var color=["blue","green","brown"];
>>>>>> channel.setProperty("color",color);
>>>>>>
>>>>>> var test=channel.getProperty("color");
>>>>>> Ape.log(test[0]+test[1]+test[2]);
>>>>>>
>>>>>> And the Ape log shows:
>>>>>>
>>>>>> "brownundefinedundefined"
>>>>>>
>>>>>> it's considering the third element of the array like the first one
>>>>>> (test[0]) and doesn't work properly. What I'm doing wrong?
>>>>>>
>>>>>> If I send the same color array as a raw I receive the array without
>>>>>> problems.
>>>>>>
>>>>>> Thank you so much in advance.
>>>>>>
>>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "APE Project" group.
>>>>> To post to this group, send email to [email protected]
>>>>> To unsubscribe from this group, send email to
>>>>> [email protected]
>>>>> For more options, visit this group at
>>>>> http://groups.google.com/group/ape-project?hl=en
>>>>> ---
>>>>> APE Project (Ajax Push Engine)
>>>>> Official website : http://www.ape-project.org/
>>>>> Git Hub : http://github.com/APE-Project/
>>>>>
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "APE Project" group.
>>>> To post to this group, send email to [email protected]
>>>> To unsubscribe from this group, send email to
>>>> [email protected]
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/ape-project?hl=en
>>>> ---
>>>> APE Project (Ajax Push Engine)
>>>> Official website : http://www.ape-project.org/
>>>> Git Hub : http://github.com/APE-Project/
>>>>
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "APE Project" group.
>>>> To post to this group, send email to [email protected]
>>>> To unsubscribe from this group, send email to
>>>> [email protected]
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/ape-project?hl=en
>>>> ---
>>>> APE Project (Ajax Push Engine)
>>>> Official website : http://www.ape-project.org/
>>>> Git Hub : http://github.com/APE-Project/
>>>>
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "APE Project" group.
>>> To post to this group, send email to [email protected]
>>> To unsubscribe from this group, send email to
>>> [email protected]
>>> For more options, visit this group at
>>> http://groups.google.com/group/ape-project?hl=en
>>> ---
>>> APE Project (Ajax Push Engine)
>>> Official website : http://www.ape-project.org/
>>> Git Hub : http://github.com/APE-Project/
>>>
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "APE Project" group.
>>> To post to this group, send email to [email protected]
>>> To unsubscribe from this group, send email to
>>> [email protected]
>>> For more options, visit this group at
>>> http://groups.google.com/group/ape-project?hl=en
>>> ---
>>> APE Project (Ajax Push Engine)
>>> Official website : http://www.ape-project.org/
>>> Git Hub : http://github.com/APE-Project/
>>>
>>
>>
>
--
You received this message because you are subscribed to the Google
Groups "APE Project" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/ape-project?hl=en
---
APE Project (Ajax Push Engine)
Official website : http://www.ape-project.org/
Git Hub : http://github.com/APE-Project/