Re: PDO vs mysqli Web Service Return Values

2017-04-06 Thread Deepak MS
Since you are anyway looping to typecast the values in php, can you just
fetch objects using PDO(without loop), loop them in flex and type cast
instead? If that will be of help.

Or try using httpservice instead of webservice to call the php. That may
typecast it for you. I'm not sure on it, but worth a try.

On 7 Apr 2017 8:48 am, "bilbosax"  wrote:

So I tried constructing an array of objects the way that it seems that
mysqli
does from the result set, and it still does not work.  Flex is still seeing
it returned as a primitive object.  *I am at a total loss guys*.  Here is
what I did in php:

$result = $stmt->fetchAll(PDO::FETCH_OBJ);

$rows = array();

foreach ($result as $res) {
$row = new stdClass();
$row->uniqueID=$res->uniqueID;
$row->latitude=$res->latitude;
$row->longitude=$res->longitude;
$rows[]=$row;
}

return $rows;



--
View this message in context: http://apache-flex-users.
246.n4.nabble.com/PDO-vs-mysqli-Web-Service-Return-
Values-tp14970p14981.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: PDO vs mysqli Web Service Return Values

2017-04-06 Thread bilbosax
So I tried constructing an array of objects the way that it seems that mysqli
does from the result set, and it still does not work.  Flex is still seeing
it returned as a primitive object.  *I am at a total loss guys*.  Here is
what I did in php:

$result = $stmt->fetchAll(PDO::FETCH_OBJ);

$rows = array();

foreach ($result as $res) {
$row = new stdClass();
$row->uniqueID=$res->uniqueID;
$row->latitude=$res->latitude;
$row->longitude=$res->longitude;
$rows[]=$row;
}

return $rows;



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/PDO-vs-mysqli-Web-Service-Return-Values-tp14970p14981.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: PDO vs mysqli Web Service Return Values

2017-04-06 Thread bilbosax
I am using PHP version 5.6.19.  So I took a long look at the documentation
and the msqli examples that Flex generates and noticed that it would
initialize the $row variable to a stdclass.  So, in PDO, I changed the
PDO::Fetch_Assoc parameter to PDO::Fetch_Obj.  When I do a var_dump, this is
what mysqli traces out:

array(25) {
  [0]=>
  object(stdClass)#3 (3) {
["uniqueID"]=>
int(12335513)
["latitude"]=>
float(39.6586675)
["longitude"]=>
float(-86.0648281)
  }
  [1]=>
  object(stdClass)#4 (3) {
["uniqueID"]=>
int(12368285)
["latitude"]=>
float(39.6176244)
["longitude"]=>
float(-86.8947852)
  }
  
when I do a var dump in PDO, this is what it looks like:

array(25) {
  [0]=>
  object(stdClass)#3 (3) {
["uniqueID"]=>
int(12335513)
["latitude"]=>
float(39.6586675)
["longitude"]=>
float(-86.0648281)
  }
  [1]=>
  object(stdClass)#4 (3) {
["uniqueID"]=>
int(12368285)
["latitude"]=>
float(39.6176244)
["longitude"]=>
float(-86.8947852)
  }

They look exactly the same to me, but when I set up my services with mysqli,
I am able to set the return type for all the variables in the array, and in
PDO, Flex only sees an object returned.  I want it to come back as an
arraycollection.  Any ideas?



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/PDO-vs-mysqli-Web-Service-Return-Values-tp14970p14980.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Anyone using IntelliJ for Flex Dev?

2017-04-06 Thread Erik J. Thomas
Hey all:

Long time Flex developer (started with Flex Builder 2) currently working on a 
mobile app for iOS and Android.

Finally took the plunge to switch from FlashBuilder 4.7 to IntelliJ with Flex 
plug in as my IDE.

Was just wondering if anyone on this list is using IntelliJ for Flex mobile 
development? It works great for the most part, especially web apps, but there 
are some issues configuring it with custom application descriptors and 
packaging for IOS/Android using AIR that appear to require some time figuring 
custom ADT options to get assets deployed to IPA root.

I'd be willing to engage a consultant for a few hours to help get us get these 
issues worked out. 

Unfortunately, IntelliJ user community is so small, my posts to that forum go 
unanswered. Thought I'd reach out for paid help.

Let me know if you're interested.

Thanks.

Erik

Erik Thomas
Chief Architect



http://linqto.com 

This email may contain confidential and privileged material for the sole use of 
the intended recipient. Any review or distribution by others is strictly 
prohibited. If you are not the intended recipient, please contact the sender 
and delete all copies.



Re: Adobe AIR write file I/O Error 2038

2017-04-06 Thread Nemi
Check permissions. Check file, disk limit sizes. Check num of simultaneous
opened FileStreams. In code, try to wait for FileStream write/read to end,
then close stream. Try to trace and log more things about the issue, to
pinpoint error cause.



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Adobe-AIR-write-file-I-O-Error-2038-tp14949p14978.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: Re: SWF Debugging in Visual Studio Code

2017-04-06 Thread Josh Tynjala
I cannot say for sure when ANE support will be implemented. When I start
working on the next version of the extension, I'll keep in mind that people
in the community are waiting on it.

- Josh

On Wed, Apr 5, 2017 at 7:34 PM, Silvije Mudri 
wrote:

> ‎Ok. Thank you.
> Approx. how soon can we expect the plugin update with this feature
> included?
>
> Silvije
>
>   Originalna poruka
> Šalje: Josh Tynjala
> Poslano: srijeda, 5. travnja 2017. 21:47
> Prima: users@flex.apache.org
> Odgovor za: users@flex.apache.org
> Predmet: Re: Odgovor: SWF Debugging in Visual Studio Code
>
> The VSCode extension does not currently support the -extdir option when
> running AIR apps in ADL.
>
> There is a feature request to add support for ANEs in a future version:
>
> https://github.com/BowlerHatLLC/vscode-nextgenas/issues/60
>
> - Josh
>
> On Wed, Apr 5, 2017 at 12:39 PM, Silvije Mudri 
> wrote:
>
> > Hi!
> > ‎
> > I've tried to debug a flex mobile application with profile
> > extendedMobileDevice, but got this error:
> >
> > "The content cannot be loaded because there was a problem loading an
> > extension: Error: Requested extension com.freshplanet.AirNetworkInfo
> could
> > not be found."
> >
> > Can someone tell me where can I specify -extdir parameter (required by
> > adl) in launch.json?
> >
> > Silvije
> > ‎
> > ‎
> > Originalna poruka
> > Šalje: piotrz
> > Poslano: utorak, 21. ožujka 2017. 23:02
> > Prima: users@flex.apache.org
> > Odgovor za: users@flex.apache.org
> > Predmet: Re: SWF Debugging in Visual Studio Code
> >
> > Hi Olaf,
> >
> > Once I modify some file I am able jump to the other files which are part
> of
> > my project. Unfortunately it wasn't help for the framework components - I
> > still cannot jump to any of them.
> >
> > Piotr
> >
> >
> >
> > -
> > Apache Flex PMC
> > piotrzarzyck...@gmail.com
> > --
> > View this message in context: http://apache-flex-users.
> > 246.n4.nabble.com/SWF-Debugging-in-Visual-Studio-
> > Code-tp14853p14913.html
> > Sent from the Apache Flex Users mailing list archive at Nabble.com.
> >
>


Re: Crippling Lag - Windows 10 IE11 - FlashPlayer / IBM ILOG Elixir

2017-04-06 Thread Alex Harui
Hi Darren,

"Other" includes "Other (activities such as garbage collection, event
processing, and so on)"

I have seen the invalidation loop appear to be machine-specific when it is
actually size-specific.  Someone had an extra toolbar in their browser
which shrank the available size of the stage more than other machines and
that reduced size caused the loop.

If you have a debugger on it, I would just wait until the app is supposed
to be idle, then set a breakpoint on debugTickler in Application.as.  Then
single step and it should step you into all AS that is running.  I've had
that show me things that are unexpected.

Also compare memory allocation on working vs slow.  Maybe memory gets more
fragmented on the slow computer so more time is spent in GC.

HTH,
-Alex

On 4/6/17, 2:24 AM, "DarrenEvans" 
wrote:

>An interesting read and I have encountered this type of problem before.
>However, in all the cases I have experienced this it always behaves the
>same, it's never been machine specific.
>
>The problem only occurs on some machines, connecting to exactly the same
>appserver, serving up exactly the same SWF file, using exactly the same
>FlashPlayer.
>
>I think the IBM ILOG Elixir component is a red herring of sorts, it just
>happens to really show that it's lagging when interacting with bits using
>it.
>
>I've now got a developer environment up and running on a machine
>exhibiting
>the problem, so it's now easier to experiment around with it.
>
>Hooking up Scout with a proper telemetry enabled version of the product
>and
>experimenting with a part of the product on a screen which doesn't use the
>ILOG component I still get a constant 2-3% CPU time reported in internet
>explorer (a working machine reports 0%). Scout reports that 97% of the
>time
>is going into the Orange "Other" section in the rather unhelpful "Runtime
>Overhead" function. What does that mean?
>
>
>Hi Darren,
>
>I know your app isn't hung, but some of the principles described in [1]
>might apply.
>
>It is theoretically possible that an application gets into a situation
>where it is constantly trying to validate itself and thus the CPU never
>goes idle but the UI is operational.  If I were in your shoes I would not
>worry about drag/drop and just see what AS is running when the app is
>"idle" but CPU is still running.
>
>HTH,
>-Alex
>
>[1] 
>https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fflexclose
>t.wordpress.com%2F2016%2F10%2F20%2Fflex-app-hung%2F=02%7C01%7C%7Cdeb6
>d8508b37474f880008d47ccff9a9%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C
>636270680089849107=rXa95X1CGfVPiuEaFnesVgx3rK0xlhiYR6TufqpsK1A%3D
>served=0
>
>
>
>
>--
>View this message in context:
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-fle
>x-users.246.n4.nabble.com%2FCrippling-Lag-Windows-10-IE11-FlashPlayer-
>IBM-ILOG-Elixir-tp14958p14973.html=02%7C01%7C%7Cdeb6d8508b37474f88000
>8d47ccff9a9%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C63627068008984910
>7=nuOD%2FYIxtb21RnnFZZEuH7aryBKZtgDUT0GJ5VpydVI%3D=0
>Sent from the Apache Flex Users mailing list archive at Nabble.com.



Re: Crippling Lag - Windows 10 IE11 - FlashPlayer / IBM ILOG Elixir

2017-04-06 Thread Tom Chiverton

Graphics drivers ? Maybe acceleration is disabled ?


On 06/04/17 10:24, DarrenEvans wrote:

is going into the Orange "Other" section in the rather unhelpful "Runtime
Overhead" function. What does that mean?




Re: Crippling Lag - Windows 10 IE11 - FlashPlayer / IBM ILOG Elixir

2017-04-06 Thread DarrenEvans
An interesting read and I have encountered this type of problem before.
However, in all the cases I have experienced this it always behaves the
same, it's never been machine specific.

The problem only occurs on some machines, connecting to exactly the same
appserver, serving up exactly the same SWF file, using exactly the same
FlashPlayer.

I think the IBM ILOG Elixir component is a red herring of sorts, it just
happens to really show that it's lagging when interacting with bits using
it.

I've now got a developer environment up and running on a machine exhibiting
the problem, so it's now easier to experiment around with it.

Hooking up Scout with a proper telemetry enabled version of the product and
experimenting with a part of the product on a screen which doesn't use the
ILOG component I still get a constant 2-3% CPU time reported in internet
explorer (a working machine reports 0%). Scout reports that 97% of the time
is going into the Orange "Other" section in the rather unhelpful "Runtime
Overhead" function. What does that mean?


Hi Darren,

I know your app isn't hung, but some of the principles described in [1]
might apply.

It is theoretically possible that an application gets into a situation
where it is constantly trying to validate itself and thus the CPU never
goes idle but the UI is operational.  If I were in your shoes I would not
worry about drag/drop and just see what AS is running when the app is
"idle" but CPU is still running.

HTH,
-Alex

[1] https://flexcloset.wordpress.com/2016/10/20/flex-app-hung/




--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Crippling-Lag-Windows-10-IE11-FlashPlayer-IBM-ILOG-Elixir-tp14958p14973.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: PDO vs mysqli Web Service Return Values

2017-04-06 Thread Tom Chiverton

This is PHP version ... ?

My thought is that fetchAll() is returning a recordset/cursor, not an 
array, and there is magic going on when it's "trace"'d out.


So you'll need to convert it to a real array of objects. I dunno if PDO 
has a method for that or if you'll need to build it yourself with a loop.


Tom


On 06/04/17 05:47, bilbosax wrote:

I am unable to find a clean way to set my return values from the webservice
in Flex.  It is just returning an object.  So in PDO, I am doing this:

$result = $stmt->fetchAll(PDO::FETCH_ASSOC); 
return $result;




Re: FLEX MOBILE APP - How to integrate SSO using SAML with Flex Mobile application?

2017-04-06 Thread Prabhu Moorthy
Am looking for SAML not OAuth



-
Thanks & Regards,
M.Prabhu
--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/FLEX-MOBILE-APP-How-to-integrate-SSO-using-SAML-with-Flex-Mobile-application-tp14965p14971.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.