Re: LCB widget "BioRhythm" v1.0.0

2020-03-03 Thread Jjs via use-livecode
Nah, i overrule you all heh heh. I had such program on my Sony HitBit MSX(not 
programmed by me, was to young for that) and i could plot it on my 4 color Sony 
Plotter with smooth sharp lines. I still have those. Further i really did not 
know what to do  with that biorhythm heh heh just play.

Jerry Jensen via use-livecode  schreef op 3 
maart 2020 23:50:32 CET:
>In the ‘70s I had a cheap plastic handheld calculator made by Casio
>called a Biolater. Put in your birthday, and it would give you the
>first three numbers - days into the cycles. It had a picture of the
>waves stuck on the front so you could see how you were doing. Other
>than that it was a 4-banger. I probably still have it somewhere.
>.Jerry
>
>> On Mar 3, 2020, at 2:09 PM, Ralph DiMola via use-livecode
> wrote:
>> 
>> I did mine on a handheld TRS 80 with a 1 line dot-matrix. It plugged
>it into a dot-matrix 2 inch wide roll fed printer to print out a
>biorhythm. I still have it and funny enough I just powered it up a
>couple of days ago and it still works.
>> 
>> When I brought to work and someone said that in the tty-33 days he
>imagined that one day a computer could fit inside the tty-33 and was
>amazed at the trs-80 handheld.
>> 
>> Ralph DiMola
>> IT Director
>> Evergreen Information Services
>> rdim...@evergreeninfo.net
>> 
>> 
>> -Original Message-
>> From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On
>Behalf Of matthias rebbe via use-livecode
>> Sent: Tuesday, March 03, 2020 4:02 PM
>> To: How to use LiveCode
>> Cc: matthias_livecode_150...@m-r-d.de
>> Subject: Re: LCB widget "BioRhythm" v1.0.0
>> 
>> Oh, this makes me remembering the good old times when i coded a
>simple biorythm program on my Commodore C64 and printed the output  on 
>a thermal printer.
>> 
>> Couldn´t resist to download it, although i think that my real
>biorythm is not the same as the ones that are computed by programs. ;)
>> 
>> Thanks Hermann for another nice widget.
>> 
>> Matthias
>> 
>> 
>> -
>> Matthias Rebbe
>> Life Is Too Short For Boring Code
>> 
>>> Am 03.03.2020 um 21:47 schrieb hh via use-livecode
>:
>>> 
>>> The widget computes BioRhythm-Curves (sinus curves with different 
>>> periods of days).
>>> 
>>> The 7 names and their periods are: physical 23, emotional 28, 
>>> intellectual 33, spiritual 53, awareness 48, aesthetic 43, intuition
>
>>> 38. Moreover you can have a weighted mean of the included of these 7
>
>>> curves.
>>> 
>>> Display the values (in range -100 to 100) as graph or as table.
>>> 
>>> Some may find this widget to be "esoteric". A main reason I made it 
>>> was to show a smooth display of curves (that is not possible in LC 
>>> Script) and to exercise the display of a table.
>>> 
>>> Read more, download the widget and a sample stack from (server loc
>EU) 
>>> https://hyperhh.de/widgets/biorhythm.html
>>> or
>>> (server loc US) https://hh.on-rev.com/widgets/biorhythm.html
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
>___
>use-livecode mailing list
>use-livecode@lists.runrev.com
>Please visit this url to subscribe, unsubscribe and manage your
>subscription preferences:
>http://lists.runrev.com/mailman/listinfo/use-livecode

-- 
Verstuurd vanaf mijn Android apparaat met K-9 Mail.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: LCB widget "BioRhythm" v1.0.0

2020-03-03 Thread Jerry Jensen via use-livecode
In the ‘70s I had a cheap plastic handheld calculator made by Casio called a 
Biolater. Put in your birthday, and it would give you the first three numbers - 
days into the cycles. It had a picture of the waves stuck on the front so you 
could see how you were doing. Other than that it was a 4-banger. I probably 
still have it somewhere.
.Jerry

> On Mar 3, 2020, at 2:09 PM, Ralph DiMola via use-livecode 
>  wrote:
> 
> I did mine on a handheld TRS 80 with a 1 line dot-matrix. It plugged it into 
> a dot-matrix 2 inch wide roll fed printer to print out a biorhythm. I still 
> have it and funny enough I just powered it up a couple of days ago and it 
> still works.
> 
> When I brought to work and someone said that in the tty-33 days he imagined 
> that one day a computer could fit inside the tty-33 and was amazed at the 
> trs-80 handheld.
> 
> Ralph DiMola
> IT Director
> Evergreen Information Services
> rdim...@evergreeninfo.net
> 
> 
> -Original Message-
> From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf 
> Of matthias rebbe via use-livecode
> Sent: Tuesday, March 03, 2020 4:02 PM
> To: How to use LiveCode
> Cc: matthias_livecode_150...@m-r-d.de
> Subject: Re: LCB widget "BioRhythm" v1.0.0
> 
> Oh, this makes me remembering the good old times when i coded a simple 
> biorythm program on my Commodore C64 and printed the output  on  a thermal 
> printer.
> 
> Couldn´t resist to download it, although i think that my real biorythm is not 
> the same as the ones that are computed by programs. ;)
> 
> Thanks Hermann for another nice widget.
> 
> Matthias
> 
> 
> -
> Matthias Rebbe
> Life Is Too Short For Boring Code
> 
>> Am 03.03.2020 um 21:47 schrieb hh via use-livecode 
>> :
>> 
>> The widget computes BioRhythm-Curves (sinus curves with different 
>> periods of days).
>> 
>> The 7 names and their periods are: physical 23, emotional 28, 
>> intellectual 33, spiritual 53, awareness 48, aesthetic 43, intuition 
>> 38. Moreover you can have a weighted mean of the included of these 7 
>> curves.
>> 
>> Display the values (in range -100 to 100) as graph or as table.
>> 
>> Some may find this widget to be "esoteric". A main reason I made it 
>> was to show a smooth display of curves (that is not possible in LC 
>> Script) and to exercise the display of a table.
>> 
>> Read more, download the widget and a sample stack from (server loc EU) 
>> https://hyperhh.de/widgets/biorhythm.html
>> or
>> (server loc US) https://hh.on-rev.com/widgets/biorhythm.html
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


RE: LCB widget "BioRhythm" v1.0.0

2020-03-03 Thread Ralph DiMola via use-livecode
I did mine on a handheld TRS 80 with a 1 line dot-matrix. It plugged it into a 
dot-matrix 2 inch wide roll fed printer to print out a biorhythm. I still have 
it and funny enough I just powered it up a couple of days ago and it still 
works.

When I brought to work and someone said that in the tty-33 days he imagined 
that one day a computer could fit inside the tty-33 and was amazed at the 
trs-80 handheld.

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net


-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of 
matthias rebbe via use-livecode
Sent: Tuesday, March 03, 2020 4:02 PM
To: How to use LiveCode
Cc: matthias_livecode_150...@m-r-d.de
Subject: Re: LCB widget "BioRhythm" v1.0.0

Oh, this makes me remembering the good old times when i coded a simple biorythm 
program on my Commodore C64 and printed the output  on  a thermal printer.

Couldn´t resist to download it, although i think that my real biorythm is not 
the same as the ones that are computed by programs. ;)

Thanks Hermann for another nice widget.

Matthias


-
Matthias Rebbe
Life Is Too Short For Boring Code

> Am 03.03.2020 um 21:47 schrieb hh via use-livecode 
> :
> 
> The widget computes BioRhythm-Curves (sinus curves with different 
> periods of days).
> 
> The 7 names and their periods are: physical 23, emotional 28, 
> intellectual 33, spiritual 53, awareness 48, aesthetic 43, intuition 
> 38. Moreover you can have a weighted mean of the included of these 7 
> curves.
> 
> Display the values (in range -100 to 100) as graph or as table.
> 
> Some may find this widget to be "esoteric". A main reason I made it 
> was to show a smooth display of curves (that is not possible in LC 
> Script) and to exercise the display of a table.
> 
> Read more, download the widget and a sample stack from (server loc EU) 
> https://hyperhh.de/widgets/biorhythm.html
> or
> (server loc US) https://hh.on-rev.com/widgets/biorhythm.html
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: LCB widget "BioRhythm" v1.0.0

2020-03-03 Thread matthias rebbe via use-livecode
Oh, this makes me remembering the good old times when i coded a simple biorythm 
program on my Commodore C64 and printed the output  on  a thermal printer.

Couldn´t resist to download it, although i think that my real biorythm is not 
the same as the ones that are computed by programs. ;)

Thanks Hermann for another nice widget.

Matthias


-
Matthias Rebbe
Life Is Too Short For Boring Code

> Am 03.03.2020 um 21:47 schrieb hh via use-livecode 
> :
> 
> The widget computes BioRhythm-Curves (sinus curves with different
> periods of days).
> 
> The 7 names and their periods are: physical 23, emotional 28,
> intellectual 33, spiritual 53, awareness 48, aesthetic 43,
> intuition 38. Moreover you can have a weighted mean of the
> included of these 7 curves.
> 
> Display the values (in range -100 to 100) as graph or as table.
> 
> Some may find this widget to be "esoteric". A main reason I made
> it was to show a smooth display of curves (that is not possible
> in LC Script) and to exercise the display of a table.
> 
> Read more, download the widget and a sample stack from
> (server loc EU) https://hyperhh.de/widgets/biorhythm.html
> or
> (server loc US) https://hh.on-rev.com/widgets/biorhythm.html
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


LCB widget "BioRhythm" v1.0.0

2020-03-03 Thread hh via use-livecode
The widget computes BioRhythm-Curves (sinus curves with different
periods of days).

The 7 names and their periods are: physical 23, emotional 28,
intellectual 33, spiritual 53, awareness 48, aesthetic 43,
intuition 38. Moreover you can have a weighted mean of the
included of these 7 curves.

Display the values (in range -100 to 100) as graph or as table.

Some may find this widget to be "esoteric". A main reason I made
it was to show a smooth display of curves (that is not possible
in LC Script) and to exercise the display of a table.

Read more, download the widget and a sample stack from
(server loc EU) https://hyperhh.de/widgets/biorhythm.html
or
(server loc US) https://hh.on-rev.com/widgets/biorhythm.html

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: iOS background behavior

2020-03-03 Thread J. Landman Gay via use-livecode

On 3/3/20 10:46 AM, Mark Waddingham via use-livecode wrote:

On 2020-03-03 16:30, J. Landman Gay via use-livecode wrote:

You can test, the app runs fine. You just can't submit to the App
Store with that key in the plist.

I have the same problem. All our users who can't update to iOS 13 will
be stuck back at the login screen after every phone call. Apple is
being very short sighted about this.


Brief google searches seem to suggest that since a-not-yet-determined
version of iOS the lack of the relevant plist key (exits-on-suspend)
means that the app will not exit on suspend... I found a reference to
saying this change happened in iOS11 onwards - but couldn't find an
explicit reference to it.

So, in theory, that means that not having the key will mean your app
should work the same on iOS11+ (again, this isn't anything I've tested
myself, just info gleaned from google).


That's an improvement I guess, though it reverses the problem; there are some apps that do want 
the user to get pushed back to the launch screen every time. But I think that's a much rarer 
situation.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: mobileGetDeviceToken

2020-03-03 Thread Dan Friedman via use-livecode
Mark,

Yes, I realized that the issue is a change in iOS 13 after I posted.   Thank 
you for the news of pending the update.  Do you know when will DP3 be 
available?   I have apps that are failing as we speak.

-Dan


On 3/3/20, 10:32 AM, "Mark Waddingham via use-livecode" 
 wrote:

On 2020-03-03 18:18, Dan Friedman via use-livecode wrote:
> Greeting!   On iOS, prior to LC 9.6, mobileGetDeviceToken() would
> return something like this:
> 
>   <965b251c 6cb1926d e3cb366f dfb16ddd e6b9086a 8a3cac9e 5f857679 
> 376eab7C>
> 
> However, with LC 9.6, I'm getting this:
> 
>   {length=32,bytes=0xd923cbf42faacfae79b44e252fc64fc3...6c57203f87b56e10}
> 
> Anyone know how to extract a valid token from this??

Unfortunately you cannot. The problem occurred because we are now 
building against
the iOS13 SDK... Apple decided to change the return value of an internal 
call used
to turn the binary id into a string :|

A fix for this has already been merged, and will appear in 9.6-DP-3:

   QCC Report: 

Warmest Regards,

Mark.

-- 
Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: mobileGetDeviceToken

2020-03-03 Thread Mark Waddingham via use-livecode

On 2020-03-03 18:18, Dan Friedman via use-livecode wrote:

Greeting!   On iOS, prior to LC 9.6, mobileGetDeviceToken() would
return something like this:

	<965b251c 6cb1926d e3cb366f dfb16ddd e6b9086a 8a3cac9e 5f857679 
376eab7C>


However, with LC 9.6, I'm getting this:

{length=32,bytes=0xd923cbf42faacfae79b44e252fc64fc3...6c57203f87b56e10}

Anyone know how to extract a valid token from this??


Unfortunately you cannot. The problem occurred because we are now 
building against
the iOS13 SDK... Apple decided to change the return value of an internal 
call used

to turn the binary id into a string :|

A fix for this has already been merged, and will appear in 9.6-DP-3:

  QCC Report: 

Warmest Regards,

Mark.

--
Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


mobileGetDeviceToken

2020-03-03 Thread Dan Friedman via use-livecode
Greeting!   On iOS, prior to LC 9.6, mobileGetDeviceToken() would return 
something like this:

<965b251c 6cb1926d e3cb366f dfb16ddd e6b9086a 8a3cac9e 5f857679 
376eab7C>

However, with LC 9.6, I'm getting this:

{length=32,bytes=0xd923cbf42faacfae79b44e252fc64fc3...6c57203f87b56e10}

Anyone know how to extract a valid token from this??

>From what I read here, https://nshipster.com/apns-device-tokens/, LC isn't 
>returning what we need -- the token.


-Dan

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: iOS background behavior

2020-03-03 Thread Mark Waddingham via use-livecode

On 2020-03-03 16:30, J. Landman Gay via use-livecode wrote:

You can test, the app runs fine. You just can't submit to the App
Store with that key in the plist.

I have the same problem. All our users who can't update to iOS 13 will
be stuck back at the login screen after every phone call. Apple is
being very short sighted about this.


Brief google searches seem to suggest that since a-not-yet-determined
version of iOS the lack of the relevant plist key (exits-on-suspend)
means that the app will not exit on suspend... I found a reference to
saying this change happened in iOS11 onwards - but couldn't find an
explicit reference to it.

So, in theory, that means that not having the key will mean your app
should work the same on iOS11+ (again, this isn't anything I've tested
myself, just info gleaned from google).

Warmest Regards,

Mark.

--
Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


RE: iOS background behavior

2020-03-03 Thread J. Landman Gay via use-livecode
You can test, the app runs fine. You just can't submit to the App Store 
with that key in the plist.


I have the same problem. All our users who can't update to iOS 13 will be 
stuck back at the login screen after every phone call. Apple is being very 
short sighted about this.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On March 3, 2020 10:13:00 AM Ralph DiMola via use-livecode 
 wrote:



I guess there's no solution for older devices. I can't test on a device
anymore unless I buy an new device.

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net

-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
Of J. Landman Gay via use-livecode
Sent: Thursday, February 27, 2020 12:46 PM
To: How to use LiveCode
Cc: J. Landman Gay
Subject: Re: iOS background behavior

Thanks for finding that, Matthias. I guess standalone settings should remove
that key now.

That does bring up the problem of what we can do for users of older versions
of iOS to prevent a relaunch of the app.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software |
http://www.hyperactivesw.com On February 27, 2020 2:18:19 AM matthias rebbe
via use-livecode  wrote:


Regarding to this forum post from the 18th of January  here

Apple Transporter returns the following error when that key is
included


ERROR ITMS-90339: "This bundle is invalid. The Info.plist contains an
invalid key 'UIApplicationExitsOnSuspend' in bundle xxx [xxx.app]"
Return status of iTunes Transporter was 1: ERROR ITMS-90339: "This
bundle is invalid. The Info.plist contains an invalid key
'UIApplicationExitsOnSuspend' in bundle xxx [xxx.app]"

was changed in January.

If i remember right then before that iTunes Transporter returned that
message when the key was included

ITMS-90339: Deprecated Info.plist Key - The Info.plist contains a key
'UIApplicationExitsOnSuspend' in bundle xxx [xxx.app] that will soon
be unsupported. Remove the key, rebuild your app and resubmit.

So it seems Apple changed that in January or so.


-
Matthias Rebbe
Life Is Too Short For Boring Code


Am 27.02.2020 um 05:59 schrieb J. Landman Gay via use-livecode
:

I'm not sure, I haven't actually submitted the app yet. I happened to
see a comment somewhere (stackOverflow maybe?) that said his app was
rejected because of that key inclusion. Maybe he really only got a
warning, and just said it was rejected. The error does say the bundle is

invalid.


I'll keep the key and see what happens soon when I do submit. It's
encouraging that yours was accepted recently.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive
Software | http://www.hyperactivesw.com On February 26, 2020 5:48:24
PM Ralph DiMola via use-livecode 
wrote:


Is it a rejection or a warning. I just submitted an app in January
and received a warning and was approved. Are apps now being rejected
if the 'UIApplicationExitsOnSuspend key is included? What about
devices not running iOS 13. I test on an iPad mini running iOS
12.4.5. If this key is eliminated then older devices or devices not
updated to iOS 13 will shut the app down when losing focus even if iOS

13 enables background execution by default.


Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net

-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On
Behalf Of J. Landman Gay via use-livecode
Sent: Wednesday, February 26, 2020 5:55 PM
To: LiveCode Mailing List
Cc: J. Landman Gay
Subject: iOS background behavior

In iOS 13 I thought all apps run in the background automatically.
Mine isn't, you end up on the login screen every time you switch
apps or answer a phone call.

We used to be able to turn on "enable background execution" in
standalone settings but as I understand it, Apple now rejects apps
that use that. How would I get my app to stop shutting down every
time you leave it? Or am I wrong about the background option in

standalone settings?


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode





___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your

RE: iOS background behavior

2020-03-03 Thread Ralph DiMola via use-livecode
I guess there's no solution for older devices. I can't test on a device
anymore unless I buy an new device.

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net

-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
Of J. Landman Gay via use-livecode
Sent: Thursday, February 27, 2020 12:46 PM
To: How to use LiveCode
Cc: J. Landman Gay
Subject: Re: iOS background behavior

Thanks for finding that, Matthias. I guess standalone settings should remove
that key now.

That does bring up the problem of what we can do for users of older versions
of iOS to prevent a relaunch of the app.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software |
http://www.hyperactivesw.com On February 27, 2020 2:18:19 AM matthias rebbe
via use-livecode  wrote:

> Regarding to this forum post from the 18th of January  here 
>  nvalid-key-uiapplicationexitsonsuspend/>
> Apple Transporter returns the following error when that key is 
> included
>
>
> ERROR ITMS-90339: "This bundle is invalid. The Info.plist contains an 
> invalid key 'UIApplicationExitsOnSuspend' in bundle xxx [xxx.app]"
> Return status of iTunes Transporter was 1: ERROR ITMS-90339: "This 
> bundle is invalid. The Info.plist contains an invalid key 
> 'UIApplicationExitsOnSuspend' in bundle xxx [xxx.app]"
>
> was changed in January.
>
> If i remember right then before that iTunes Transporter returned that 
> message when the key was included
>
> ITMS-90339: Deprecated Info.plist Key - The Info.plist contains a key 
> 'UIApplicationExitsOnSuspend' in bundle xxx [xxx.app] that will soon 
> be unsupported. Remove the key, rebuild your app and resubmit.
>
> So it seems Apple changed that in January or so.
>
>
> -
> Matthias Rebbe
> Life Is Too Short For Boring Code
>
>> Am 27.02.2020 um 05:59 schrieb J. Landman Gay via use-livecode
>> :
>>
>> I'm not sure, I haven't actually submitted the app yet. I happened to 
>> see a comment somewhere (stackOverflow maybe?) that said his app was 
>> rejected because of that key inclusion. Maybe he really only got a 
>> warning, and just said it was rejected. The error does say the bundle is
invalid.
>>
>> I'll keep the key and see what happens soon when I do submit. It's 
>> encouraging that yours was accepted recently.
>>
>> --
>> Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive 
>> Software | http://www.hyperactivesw.com On February 26, 2020 5:48:24 
>> PM Ralph DiMola via use-livecode  
>> wrote:
>>
>>> Is it a rejection or a warning. I just submitted an app in January 
>>> and received a warning and was approved. Are apps now being rejected 
>>> if the 'UIApplicationExitsOnSuspend key is included? What about 
>>> devices not running iOS 13. I test on an iPad mini running iOS 
>>> 12.4.5. If this key is eliminated then older devices or devices not 
>>> updated to iOS 13 will shut the app down when losing focus even if iOS
13 enables background execution by default.
>>>
>>> Ralph DiMola
>>> IT Director
>>> Evergreen Information Services
>>> rdim...@evergreeninfo.net
>>>
>>> -Original Message-
>>> From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On 
>>> Behalf Of J. Landman Gay via use-livecode
>>> Sent: Wednesday, February 26, 2020 5:55 PM
>>> To: LiveCode Mailing List
>>> Cc: J. Landman Gay
>>> Subject: iOS background behavior
>>>
>>> In iOS 13 I thought all apps run in the background automatically. 
>>> Mine isn't, you end up on the login screen every time you switch 
>>> apps or answer a phone call.
>>>
>>> We used to be able to turn on "enable background execution" in 
>>> standalone settings but as I understand it, Apple now rejects apps 
>>> that use that. How would I get my app to stop shutting down every 
>>> time you leave it? Or am I wrong about the background option in
standalone settings?
>>>
>>> --
>>> Jacqueline Landman Gay | jac...@hyperactivesw.com
>>> HyperActive Software   | http://www.hyperactivesw.com
>>>
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription
>>> preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>>
>>>
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
>>
>>
>>
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your 
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>
> ___
> 

Re: directory tree -> array

2020-03-03 Thread Richard Gaskin via use-livecode
Support has restored the thread - you can find it in the "Talking 
LiveCode" section of the forums:

https://forums.livecode.com/viewtopic.php?f=135=33565

--
 Richard Gaskin
 Fourth World Systems


Dick Kriesel wrote:

On Jan 22, 2020, at 10:17 AM, Richard Gaskin via use-livecode  wrote:

I stumbled across a code challenge for y'all, one that seems seductively simple 
but I don't think it is:

What is the simplest way to build an array that reflects the files and folders 
within a given folder?

There's a discussion about this here:

https://forums.livecode.com/viewtopic.php?f=7=33565


On Jan 22, 2020, at 10:26 AM, Richard Gaskin via use-livecode  wrote:




We have many handlers that deliver directory trees as lists, but arrays are a different 
beast.  Because the depth is both unknowable and varied, I can't think of a way to do 
this without resorting to "do".




Since that thread vanished last week, and hasn’t returned, I'm offering help 
here instead.

The list of full paths contains enough information to build an array 
representation of the directory tree.


/**

Summary: Given a list of full paths, and given the partial path they share, 
build an array representing the directory structure

pPaths: a return-delimited list of full paths

pPath: the path that was used to generate the list of full paths

Returns (array): A array with a branch node for each folder and a leaf node for 
each file

Description: Eliminate pPath from every line of pPaths. Then insert each line 
into an array.

email subject "directory tree -> array"

forum topic "f=7=33565"

*/


function arrayFromPaths pPaths, pPath -- a list of full paths, and the path 
that was used to generate the list

local tPaths, tFile, tArray

set the itemDelimiter to "/"


put char 2 to -1 of replaceText( cr & pPaths, cr & pPath & slash, cr ) into 
tPaths -- eliminate pPath from every full path

repeat for each line tPath in tPaths -- insert each file name into the array

put the last item of tPath into tFile

delete the last item of tPath

if tPath is empty then -- the file is in folder pPath

put "true" into tArray[ tFile ]

else -- the file is in a folder in folder pPath

split tPath by slash

put "true" into tArray[ tPath ][ tFile ]

end if

end repeat


return tArray

end arrayFromPaths


on mouseUp

local tPaths = "a/b/c,a/b/d/e,a/b/d/f" -- folder a/b contains file c and folder 
d, which contains files e and f

local tPath = "a/b" -- the shared partial path

replace comma with cr in tPaths


get arrayFromPaths( tPaths, tPath )


breakpoint

end mouseUp




If the topic reappears soon, I’ll repost there because reading code is easier 
there.

By, the way, thanks to RG for the bug report on my earlier posting in the 
now-vanished thread.

— Dick




___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Powerpoint to LiveCode

2020-03-03 Thread Bob Sneidar via use-livecode
Maybe it's just me, but I read through the XML library and I couldn't come up 
with a method for parsing an XML file produced by one of our copier vendors. 
Granted, the XML was really complex. But just the process of drilling down into 
the XML seemed so onerous, I gave up. I suppose too that understanding the 
structure of the specific XML is important, and the structure of the file I was 
parsing is almost hopelessly complex. 

I looked at the XML lesson, but it is really basic. If anyone has an XML parser 
that can convert to text or even better an array, in a format that can be 
easily converted back to the exact same XML that produced it, that would go a 
long way to getting me up to speed on it. 

I suppose if I understood the constraints of XML I could do better. 

Bob S


> On Mar 2, 2020, at 18:52 , Richard Gaskin via use-livecode 
>  wrote:
> 
> Bob Sneidar wrote:
> 
> > The XML parser is going to be the pig.
> 
> Would it?  I've found the revXML external to be pretty nice.
> 
> I was able to use it with the revZip external to transform Word/odoc into an 
> LC styledText array in an afternoon (at least the basics I needed at the 
> time).
> 
> -- 
> Richard Gaskin
> Fourth World Systems
> Software Design and Development for the Desktop, Mobile, and the Web


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Powerpoint to LiveCode

2020-03-03 Thread Paul Dupuis via use-livecode

On 3/2/2020 4:04 PM, Paul Dupuis via use-livecode wrote:
Out of curiosity, has anyone created a library that will import  - the 
parts of a Powerpoint presentation that can be recreated in Livecode 
-  into a LiveCode stack?


Of course .pptx files are actuall just ZIP archives with assorted XML 
files inside, while there is a path to importing .pptx files, it is 
not simple. Use revZIP to open the .pptx file, use revXML (or your 
howm grown xml parser) to extract the XML for each slide (each a 
separate file in the archive) and rectreate those slide elements 
support in LiveCode.


So, I know HOW to do it.

I am asking if any one has already built such a library (or even 
started it)?


I should preemptively add that I am not looking for the slides to be 
imported as images. The whole purpose of parsing the pptx file's XML is 
to convert the presentation into LiveCode elements (imported objects 
like 'image' for any art work, 'graphic' for all line drawing, and 
'field' for any text, so that the LC object are then manipulable in LC.


The work is not in revZip - I've worked with it a lot. And, as Richard 
said, the work is not with revXML - I've used that a lot too and it work 
very nicely for parsing XML quickly.


The work is entirely in mapping those Microsoft XML for Powerpoint 
elements that can be mapped to corresponding  LC elements and mapping 
all the properties (colors, sizes, etc.) and coding those mapping.


A lot of Microsoft stuff can be thrown away. I don't need it as a 
presentation, just the information in the file. So transitions, effects, 
presentation timings, etc, can all be ignored.


I hate reinventing the wheel. Which is why I was asking if anyone out 
there may have done such a library or even started such a library. I 
would rather build on something existing. It you have such a library and 
do not want to give it away, I'd like to discuss possible licensing. If 
you have such a library but it is only partially complete, I'd like to 
discuss a collaboration.


However, if nothing has been started or no library exists, I'll just do 
it in-house, if we go ahead and do a library at all..


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode