Re: CB-876 docs generator / hastings

2013-12-09 Thread Brian LeRoux
> I think a note in the README for docs indicating that the code is being > rewritten (with a bug link and an ETA) would have prevented me from > investing time in it. Probably. But this is Apache and nothing happens at Apache unless it happens on the mailing list. Friendly note saying, "hey guys

Re: CB-876 docs generator / hastings

2013-12-09 Thread Josh Soref
‎Brian wrote: > Would be good to mail the list before blindly implementing. I started on it one night while I was offline, and did some more work this evening.  It isn't an implementation, it's a raw port from Ruby to Node.js.  > Both Michael and I have WIP to do the very same so we're triply d

Re: mocking in cordova.js

2013-12-09 Thread Andrew Grieve
I'd be fine with PhantomJS. I had to not add a unit test to urlutil that I wanted to because jsdom didn't emulate things quite right. On Mon, Dec 9, 2013 at 9:14 PM, Brian LeRoux wrote: > Where would I add a mock for XMLHttpRequest? > > https://github.com/apache/cordova-js/pull/60/files > > (Al

Re: [jira] [Resolved] (INFRA-6422) request linux virtual machine for Apache Cordova project

2013-12-09 Thread Andrew Grieve
I went on #infra and got myself access to this machine. Woo! To get everyone else access, you need to: 1. Make sure you have an SSH key registered on id.apache.org 2. Email Mike (he's putting together a list) 3. Install an OPIE (one-time-password) client http://apache.org/dev/freebsd-jails#opie 4.

Re: CB-876 docs generator / hastings

2013-12-09 Thread Brian LeRoux
Would be good to mail the list before blindly implementing. Both Michael and I have WIP to do the very same so we're triply duplicating effort. =( I'll let Mike chime in on direction. My thing was to understand the space. Yours/his could be good candidates for the next gen. Also: frustration note

Re: Review request for CB-5579

2013-12-09 Thread Leyonh
I have just signed and submitted CLA to secret...@apache.org. @Shazron I have already included the pull request in JIRA ticket CB-5579. Will you get notifications for any updates to JIRA tickets ? It seems to me that there are many JIRA tickets are left opened and unassigned. @Andrew According to

CB-876 docs generator / hastings

2013-12-09 Thread Josh Soref
What¹s the status of https://issues.apache.org/jira/browse/CB-876 ? The current Ruby requirement frustrated me, so I started blindly porting cordova-docs/lib to Node.js: https://github.com/jsoref/cordova-docs/tree/docs_as_node_js It doesn¹t actually work, but I suspect that in another day or so

Re: Review request for CB-5579

2013-12-09 Thread Andrew Grieve
Liyong, some context as to why you'd like to make this change would be nice (what use-case does this address). Doing so will help reviewers get excited about your change. Also - you'll need to sign Apache's Contributor Agreement: http://www.apache.org/licenses/#clas (can be done online). On Mon,

Re: Pull Requests

2013-12-09 Thread Andrew Grieve
Patchwork looks neat, but it would be annoying to have to maintain a service, and I don't trust our github setup to always send us pull request emails. I filed this as a feature request: CB-5625 - Add coho command for listing outstanding pull requests

mocking in cordova.js

2013-12-09 Thread Brian LeRoux
Where would I add a mock for XMLHttpRequest? https://github.com/apache/cordova-js/pull/60/files (Also: would you guys be cool w/ me refactoring cordova.js to use PhantomJS instead of jsdom?)

Re: handleOpenURL on Android

2013-12-09 Thread Andrew Grieve
I agree android devs should know about intents, but the specifics of how to use them within a Cordova shell is a bit more complicated. It's a recurring ask (through people filing JIRA bugs from time to time). I think some docs & maybe even adding the handleOpenUrl() would be beneficial. On Mon,

Re: handleOpenURL on Android

2013-12-09 Thread Joe Bowser
Also, unless there's a REALLY GOOD REASON (i.e. Input device needs instant results), an app should never just call loadUrl and run arbitrary JS. On Mon, Dec 9, 2013 at 4:31 PM, Joe Bowser wrote: > Every Android dev SHOULD know about Intents since they're a core part of the > OS. The app's custom

Re: handleOpenURL on Android

2013-12-09 Thread Joe Bowser
Every Android dev SHOULD know about Intents since they're a core part of the OS. The app's custom URI should already be handled by Cordova. If not, something is wrong with the app. On Dec 9, 2013 4:24 PM, "Shazron" wrote: > https://issues.apache.org/jira/browse/CB-5581 > > Are we documenting t

Re: page visibility api vs pause/resume

2013-12-09 Thread Brian LeRoux
Its true the behavior is different tho I *think* usage is the same. On Tue, Dec 10, 2013 at 10:16 AM, Ian Clelland wrote: > +0 -- I'm generally in favour, and it looks like we could provide a pretty > simple shim if people still wanted onpause/onresume events. > > The concepts aren't entirely sy

handleOpenURL on Android

2013-12-09 Thread Shazron
https://issues.apache.org/jira/browse/CB-5581 Are we documenting this or does every Android dev know about intents (which I doubt)? iOS supports this method and is mentioned in the docs, but I don't think Android does anything with this.

Re: adding 'browser' as a platform for cordova.js

2013-12-09 Thread Brian LeRoux
Quick update. We have a repo for this: https://git-wip-us.apache.org/repos/asf?p=cordova-browser.git On Tue, Dec 10, 2013 at 9:32 AM, Brian LeRoux wrote: > Answers to Jesse inline (and should answer other queries too). > > > >> Interesting. Can you elaborate on use-cases that this would make

Re: page visibility api vs pause/resume

2013-12-09 Thread Ian Clelland
+0 -- I'm generally in favour, and it looks like we could provide a pretty simple shim if people still wanted onpause/onresume events. The concepts aren't entirely synonyms, though, are they? -- the W3C rec is concerned with "is the app actually visible on the screen right now"; pause/resume are m

Re: Windows 8 (not Phone 8) - native plugin support

2013-12-09 Thread Daniel Toplak
Hi Jesse, yes this was a way I tried a few month ago and it works with a Windows Runtime Component written in C++/CX (a simple hello world thing, call async from JS). But you will be very limited in Windows Runtime Components, particular in creating XAML UI components. This is not allowed/avai

page visibility api vs pause/resume

2013-12-09 Thread Brian LeRoux
Our impl of pause/resume events predate the spec of the page visibility api. I feel we should deprecate for the web thing. Discuss!

Re: Executing Javascript from SD Card

2013-12-09 Thread Brian LeRoux
Normally I'd say this is more of a userland error and the phonegap mailing list a better place to report but I am very curious how you are doing this. Can you .zip up a failing example for the list to check out? On Mon, Dec 9, 2013 at 7:44 PM, Charl Thiem wrote: > Hi > > I've been trying to fig

Re: Documentation link on homepage

2013-12-09 Thread Brian LeRoux
Not deliberate. I opened a bug. [1] Thanks for reporting! [1] https://issues.apache.org/jira/browse/CB-5623 On Tue, Dec 10, 2013 at 8:31 AM, Bas Bosman wrote: > Hi, > > I just noticed that the documentation link in the About Apache Cordova > section on cordova.apache.org still points to the 3.

Re: adding 'browser' as a platform for cordova.js

2013-12-09 Thread Brian LeRoux
Answers to Jesse inline (and should answer other queries too). > Interesting. Can you elaborate on use-cases that this would make sense > for? > > In order of selfish priority. - Browser targeted deployment (an original goal of that PhoneGap thing we based our efforts on) - Surfacing platform

Re: Review request for CB-5579

2013-12-09 Thread Shazron
It's best also to file an issue at http://issues.cordova.io and include the patch: https://github.com/leyonh/cordova-plugman/commit/42ee27d1439bb676ea0c60fed46f9dd28e9d9e92.patch That might get more visibility - the team doesn't get emails for pull requests from Github (yet). On Sun, Dec 8, 2013

Re: Review Request 16099: Pass cli args to hooks, fix hooker.spec on windows.

2013-12-09 Thread Mark Koudritsky
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/16099/ --- (Updated Dec. 9, 2013, 10:38 p.m.) Review request for cordova. Changes --

Documentation link on homepage

2013-12-09 Thread Bas Bosman
Hi, I just noticed that the documentation link in the About Apache Cordova section on cordova.apache.org still points to the 3.1.0 documentation, even though 3.2.0 has been out for a while. Is this on purpose or was it missed when the page was updated for 3.2.0? Regards, Bas Bosman

Re: Review Request 16099: Pass cli args to hooks, fix hooker.spec on windows.

2013-12-09 Thread Mark Koudritsky
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/16099/#review30038 --- e2e/hooker.spec.js

Re: Review Request 16099: Pass cli args to hooks, fix hooker.spec on windows.

2013-12-09 Thread Mark Koudritsky
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/16099/ --- (Updated Dec. 9, 2013, 10:19 p.m.) Review request for cordova. Changes --

Re: adding 'browser' as a platform for cordova.js

2013-12-09 Thread Anis KADRI
I like this a lot too. I'd be happy to help out in this effort. On Mon, Dec 9, 2013 at 10:53 AM, Jesse wrote: > Interesting. Can you elaborate on use-cases that this would make sense for? > >>> When I do use this in a browser I get an error looking for >>> cordova_plugins.js ...how do we feel th

Re: Windows 8 (not Phone 8) - native plugin support

2013-12-09 Thread Jesse
Windows 8 apps *will* be able to include plugins authored in other languages, but it is not yet supported. For now, you can create/add a new portable-library project to your solution, and access it from async javascript. More details here: http://msdn.microsoft.com/en-us/library/windows/apps/br230

Re: Windows 8 (not Phone 8) - native plugin support

2013-12-09 Thread Daniel Toplak
Hi, are there any work done on porting the windows 8 platform to XAML C# or C++ implementation? AFAIK if I am correct this is the only way to fully support native XAML C#/C++ plugins on Windows 8 and Windows 8 RT store APPs. Mit freundlichen Grüßen / Best regards *Daniel Toplak* Am 07.07.20

Re: "coho last-week" command

2013-12-09 Thread Jesse
Seriously, let's focus ... stop trying to define everyone's workflow. If you want to use it, then as Andrew says, use it, ... @purplecabbage risingj.com On Mon, Dec 9, 2013 at 12:01 PM, Shazron wrote: > That is nice. If I can make a suggestion -- if the bot thing is a go -- > email comm...@cor

Re: "coho last-week" command

2013-12-09 Thread Shazron
That is nice. If I can make a suggestion -- if the bot thing is a go -- email comm...@cordova.apache.org instead of dev@cordova.apache.org On Mon, Dec 9, 2013 at 11:24 AM, Andrew Grieve wrote: > In case anyone finds it useful, I've just pushed a new coho command that is > a glorified "git log".

Re: "coho last-week" command

2013-12-09 Thread Michal Mocny
Thats way cool! Lets set up a bot to email the list on a set weekly schedule? Beats reading every email to cordova-commits. On Mon, Dec 9, 2013 at 2:24 PM, Andrew Grieve wrote: > In case anyone finds it useful, I've just pushed a new coho command that is > a glorified "git log". It's meant to

"coho last-week" command

2013-12-09 Thread Andrew Grieve
In case anyone finds it useful, I've just pushed a new coho command that is a glorified "git log". It's meant to help you figure out what you did last week: ./cordova-coho/coho last-week --me Example output: ios 2013-12-05 CB-5276 Add ability to load start page from a place othe

Re: Review Request 16099: Pass cli args to hooks, fix hooker.spec on windows.

2013-12-09 Thread Michal Mocny
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/16099/#review30029 --- e2e/hooker.spec.js

Re: adding 'browser' as a platform for cordova.js

2013-12-09 Thread Christian Grobmeier
Hey Brian, On 9 Dec 2013, at 7:24, Brian LeRoux wrote: More for discussion than review. I like this upcoming feature a lot. Maybe I do something wrong, but it seems people should work in the /www folder and run i.e. "cordova build ios" to test. My problem always was the build took to long. S

Re: adding 'browser' as a platform for cordova.js

2013-12-09 Thread Jesse
Interesting. Can you elaborate on use-cases that this would make sense for? >> When I do use this in a browser I get an error looking for >> cordova_plugins.js ...how do we feel this should be handled? > I think this file is created the first time you install a plugin. It is acceptable that cor

Re: adding 'browser' as a platform for cordova.js

2013-12-09 Thread Andrew Grieve
Browser as a platform => Like a lot! On Mon, Dec 9, 2013 at 1:24 AM, Brian LeRoux wrote: > More for discussion than review. > > https://github.com/apache/cordova-js/pull/57/files > > Clocks in at a disturbing 44kb so we clearly have room for optimization on > the baseline of our platform. (Not

RE: Windows Phone binary bridge

2013-12-09 Thread Sergey Grebnov (Akvelon)
I see.. I've added similar logic to windows phone exec bridge https://github.com/apache/cordova-js/pull/59 Tested on File Api, below is updated version after patching wp bridge https://github.com/apache/cordova-plugin-file/pull/18 PS. As showed at [1] manual array manipulation is not the fastes

Re: Windows Phone binary bridge

2013-12-09 Thread Ian Clelland
Yes, we used to use that; I had to switch it to use a base64-encoding method; Using Array.prototype.apply() literally pushes every element of the array individually onto the stack as a separate argument. The exact limit depends on the device, but eventually they all fail with a "Stack exploded"-sor

RE: Windows Phone binary bridge

2013-12-09 Thread Sergey Grebnov (Akvelon)
This was temporary added for File api (WP8 only) https://github.com/sgrebnov/cordova-plugin-file/commit/3b39ec350bf5987dcf4676b3e0597d87bbac199e Michal, right now I see there is base64 string used . Thx! Sergey -Original Message- From: mmo...@google.com [mailto:mmo...@google.com] On Behal

Re: Windows Phone binary bridge

2013-12-09 Thread Michal Mocny
Where do you see an implementation using Array.apply(null, new Uint8Array(...)) ? We used to have this bug in ios/android binary bridge but that was patched many releases ago (unless there is a stray one somewhere that still needs fixing). On Mon, Dec 9, 2013 at 10:15 AM, Sergey Grebnov (Akvelon

RE: Windows Phone binary bridge

2013-12-09 Thread Sergey Grebnov (Akvelon)
Working on this...I just found out that current implementation via Array.apply(null, new Uint8Array(...)) doesn't work for big buffers (bigger than 150Kb) and could raise Maximum call stack size exceeded error. So I'm looking on better/right way to do typed arrays conversion... will keep you up

Executing Javascript from SD Card

2013-12-09 Thread Charl Thiem
Hi I've been trying to figure this out, but all info I find on the internet relate to reading/writing files from the SD Card. What I require is to *execute* javascript saved on the SD card. Our app downloads the content of the application from a remote server, and saves it onto the SD Card, this c