Return-Path: X-Original-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6CFF59E52 for ; Mon, 21 May 2012 22:12:52 +0000 (UTC) Received: (qmail 26240 invoked by uid 500); 21 May 2012 22:12:52 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 26209 invoked by uid 500); 21 May 2012 22:12:52 -0000 Mailing-List: contact callback-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-dev@incubator.apache.org Received: (qmail 26198 invoked by uid 99); 21 May 2012 22:12:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 May 2012 22:12:52 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of dave.c.johnson@gmail.com designates 209.85.215.47 as permitted sender) Received: from [209.85.215.47] (HELO mail-lpp01m010-f47.google.com) (209.85.215.47) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 May 2012 22:12:47 +0000 Received: by lags15 with SMTP id s15so3959808lag.6 for ; Mon, 21 May 2012 15:12:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=EM8rH29XX2g1AOFX09h5yUIubgkUDUrB67uKe6E3Umo=; b=AbPLlvgLaIaVNy160IAsciv95f5CUTduui/2IuTY9Kg9yRliFp/ZyCvZocN+TWR4mv ZzFE4wYB6c4JVlzwreVx3SD6DgXII+OsIz+b12EQ0yrxcbQBq4lxi3vtL4tF7PS4/DkO 8hJxr762gVlWi7llUd30bvSnMpeD3yqI0iz1NIVMkdORRJGhQ+bx6CRewcs/oO+CDCaA h7uQW2kyQvmy0UbT0d4EtZc3Z6MQqb4pnGVTIBi3QCeU1v9wYVZtIg4jcYnMUg9MYIg1 NW1IYSDo5Dc7fTI6iJrZgtJ8ZJKP9MVhIY/2oPpNaPvOIvGLzCbduluB8E0WmTeFGU+H xP2g== Received: by 10.152.114.106 with SMTP id jf10mr21067419lab.16.1337638346282; Mon, 21 May 2012 15:12:26 -0700 (PDT) MIME-Version: 1.0 Received: by 10.112.41.98 with HTTP; Mon, 21 May 2012 15:12:06 -0700 (PDT) In-Reply-To: References: From: Dave Johnson Date: Tue, 22 May 2012 08:12:06 +1000 Message-ID: Subject: Re: remote platform To: callback-dev@incubator.apache.org Cc: Julien Bouquillon Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Hi Julien, I agree this sort of thing is needed - I also made a POC doing the exact same thing with sockets so that I can write and debug a phonegap app in chrome using desktop developer tools but getting the actual device data so that I don't need to stub any data nor interact with a simulator UI to control various stubbed data. I got stuck with some issues around taking pictures and how the paths on the device map to paths in the desktop browser, but it's not insurmountable. I think it makes the most sense to have it work with ripple. For some APIs like accelerometer it makes sense to get the data from the device (it's easier to shake the device than simulate shake accelerometer data) but things like geolocation make sense to be able to use the actual geo data from the phone as well as stub data like a route or something that you can't do easily with the actual device. -dave On Sat, May 19, 2012 at 3:25 AM, Bryan Bishop wrote: > On Fri, May 18, 2012 at 11:49 AM, Julien Bouquillon > wrote: >> I have to look at dnode as Bryan pointed out. I may learn a lot from this >> project and it looks to fit quite well : remote exec, calls serialization... > > I encountered dnode when I was doing some work with phantomjs > (headless webkit for scraping and ui testing). Unfortunately, > PhantomJS doesn't have many ways to get data in/out of its process, > because there are no compiled bindings yet. > > So, as a consequence, one way to get information out is through > javascript on an open WebPage object. In particular, dnode is how the > phantomjs-node people use this. See here: > > https://github.com/sgentle/phantomjs-node#no-really-how-does-it-work > > Both javascript debugging environments are equally painful :-). I > haven't been able to get the phantomjs remote debugging bridge to work > yet (I'm pretty sure it does, though), and weinre doesn't. > > - Bryan > http://heybryan.org/ > 1 512 203 0507