Re: Help needed :)

2020-10-19 Thread panagiotis merakos via use-livecode
Great, thank you very much Matthias :)

I will file an enhancement request to make sure this behavior is documented
in the dictionary entry of the screenrect.

Kind regards,
Panos
--

On Mon, 19 Oct 2020 at 18:45, matthias rebbe via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Hi Panos,
>
> my father in law came back earlier than expected.
> You were correct. The phone display was zoomed.
> I switched it back to "standard" and tested again.
>
> With "standard" the screenrect returns  0,0,414,736
>
> Regards,
> Matthias
>
> -
> Matthias Rebbe
> Life Is Too Short For Boring Code
>
> > Am 19.10.2020 um 17:34 schrieb matthias rebbe via use-livecode <
> use-livecode@lists.runrev.com>:
> >
> >
> > -
> > Matthias Rebbe
> > Life Is Too Short For Boring Code
> >
> >> Am 19.10.2020 um 17:17 schrieb panagiotis merakos via use-livecode <
> use-livecode@lists.runrev.com >:
> >>
> >> Hmm I think I have found something - I had checked for this before -
> but in
> >> the wrong place.
> >>
> >> @Matthias could you check if "Display Zoom" is enabled in your device?
> >>
> >> This is in Settings -> Display and Brightness  and then scroll down and
> in
> >> the "Display Zoom" section, does it say "Standard" or "Zoomed" ?
> >>
> > Believe me or not, that was something i thought also could be the
> culprit. But forgot to test, because i got an important phone call.
> >
> > I will test this later today. I had to give the phone back to the owner,
> but can get it back in the evening.
> >
> > Regards,
> > Matthias
> >
> >
> >> Kind regards,
> >> Panos
> >> --
> >>
> >> On Mon, 19 Oct 2020 at 17:51, panagiotis merakos 
> wrote:
> >>
> >>> Hello Matthias,
> >>>
> >>> Thank you very much for testing. Hmm that's interesting. I forgot to
> >>> mention that the affected iPhones 8+ are running iOS 14.
> >>>
> >>> The simulator we tested was running iOS 13.3. I am wondering if this
> is an
> >>> iOS 14 issue.
> >>>
> >>> We are working on adding support for building with Xcode 12 / iOS 14
> SDK,
> >>> so once this is ready, I'll test on the iOS 14 simulator.
> >>>
> >>> In the meantime, if anyone has an iPhone 6+/7+/8+ running iOS < 14 and
> >>> would like to check what "the screenrect" returns, it would be great :)
> >>>
> >>> Kind regards,
> >>> Panos
> >>> --
> >>>
> >>>
> >>> On Mon, 19 Oct 2020 at 17:24, matthias rebbe via use-livecode <
> >>> use-livecode@lists.runrev.com> wrote:
> >>>
>  Hi Panos,
> 
>  i just borrowed me an iphone 8 Plus.  I can confirm that on the real
>  device the screenrect returns 0,0,375,667
>  Tried with all 3 variations (ipad, ipod&iphone, ipod/iphone/ipad) and
>  with iOS 10,11,12,13.
> 
>  iOS 14.01
>  Modell MQ8L2ZD/A
> 
> 
>  Regards,
> 
> 
>  -
>  Matthias Rebbe
>  Life Is Too Short For Boring Code
> 
> > Am 19.10.2020 um 14:43 schrieb panagiotis merakos via use-livecode <
>  use-livecode@lists.runrev.com>:
> >
> > Heh I wrote that msg in my phone while I was in a hurry, and I now
> see
>  the
> > auto-correct has changed a couple of things :)
> >
> > Corrections:
> >
> > * A LC user ...
> >
> > * ...and it works as expected for us
> >
> > Thank you :)
> >
> > Panos
> > --
> >
> > On Mon, 19 Oct 2020 at 14:58, panagiotis merakos <
>  panos.mera...@livecode.com >
> > wrote:
> >
> >> Hello folks,
> >>
> >> I LC user (or in fact a couple of this user's clients) are
>  experiencing a
> >> strange issue which we cannot reproduce, as we do not have the
> specific
> >> hardware.
> >>
> >> Long story short, "the screenrect" function returns for them
> incorrect
> >> values on an iPhone 8 Plus physical device. We have tested in the
>  iPhone 8
> >> Plus simulator and it world as expected for us.
> >>
> >> More specifically, the screenrect() returns 0,0,375,667 (which is
> the
> >> screenrect of iPhone8) instead of 0,0,414,736 (which is the
> screenrect
>  of
> >> iPhone 8 Plus.
> >>
> >> Do you have such a device and if yes, would it be possible to do a
>  quick
> >> test and report here what you get?
> >>
> >> Thanks a lot :)
> >>
> >> Kind regards,
> >> Panos
> >>
> >> PS: I guess an iPhone 6 Plus or iPhone 7 Plus will do too, as all
>  these 3
> >> devices have the same screen size.
> >> --
> >>
> >>
> >>
> >
> > --
> > Panagiotis Merakos   panos.mera...@livecode.com>>
> > LiveCode Software Developer
> >
> > Everyone Can Create Apps  https://livecode.com/>>
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com 
> > Please visit this url to subscribe, unsubscribe and manage

Re: Help needed :)

2020-10-19 Thread matthias rebbe via use-livecode
Hi Panos,

my father in law came back earlier than expected.
You were correct. The phone display was zoomed.
I switched it back to "standard" and tested again.

With "standard" the screenrect returns  0,0,414,736

Regards,
Matthias

-
Matthias Rebbe
Life Is Too Short For Boring Code

> Am 19.10.2020 um 17:34 schrieb matthias rebbe via use-livecode 
> :
> 
> 
> -
> Matthias Rebbe
> Life Is Too Short For Boring Code
> 
>> Am 19.10.2020 um 17:17 schrieb panagiotis merakos via use-livecode 
>> mailto:use-livecode@lists.runrev.com>>:
>> 
>> Hmm I think I have found something - I had checked for this before - but in
>> the wrong place.
>> 
>> @Matthias could you check if "Display Zoom" is enabled in your device?
>> 
>> This is in Settings -> Display and Brightness  and then scroll down and in
>> the "Display Zoom" section, does it say "Standard" or "Zoomed" ?
>> 
> Believe me or not, that was something i thought also could be the culprit. 
> But forgot to test, because i got an important phone call.
> 
> I will test this later today. I had to give the phone back to the owner, but 
> can get it back in the evening.
> 
> Regards,
> Matthias
> 
> 
>> Kind regards,
>> Panos
>> --
>> 
>> On Mon, 19 Oct 2020 at 17:51, panagiotis merakos  wrote:
>> 
>>> Hello Matthias,
>>> 
>>> Thank you very much for testing. Hmm that's interesting. I forgot to
>>> mention that the affected iPhones 8+ are running iOS 14.
>>> 
>>> The simulator we tested was running iOS 13.3. I am wondering if this is an
>>> iOS 14 issue.
>>> 
>>> We are working on adding support for building with Xcode 12 / iOS 14 SDK,
>>> so once this is ready, I'll test on the iOS 14 simulator.
>>> 
>>> In the meantime, if anyone has an iPhone 6+/7+/8+ running iOS < 14 and
>>> would like to check what "the screenrect" returns, it would be great :)
>>> 
>>> Kind regards,
>>> Panos
>>> --
>>> 
>>> 
>>> On Mon, 19 Oct 2020 at 17:24, matthias rebbe via use-livecode <
>>> use-livecode@lists.runrev.com> wrote:
>>> 
 Hi Panos,
 
 i just borrowed me an iphone 8 Plus.  I can confirm that on the real
 device the screenrect returns 0,0,375,667
 Tried with all 3 variations (ipad, ipod&iphone, ipod/iphone/ipad) and
 with iOS 10,11,12,13.
 
 iOS 14.01
 Modell MQ8L2ZD/A
 
 
 Regards,
 
 
 -
 Matthias Rebbe
 Life Is Too Short For Boring Code
 
> Am 19.10.2020 um 14:43 schrieb panagiotis merakos via use-livecode <
 use-livecode@lists.runrev.com>:
> 
> Heh I wrote that msg in my phone while I was in a hurry, and I now see
 the
> auto-correct has changed a couple of things :)
> 
> Corrections:
> 
> * A LC user ...
> 
> * ...and it works as expected for us
> 
> Thank you :)
> 
> Panos
> --
> 
> On Mon, 19 Oct 2020 at 14:58, panagiotis merakos <
 panos.mera...@livecode.com >
> wrote:
> 
>> Hello folks,
>> 
>> I LC user (or in fact a couple of this user's clients) are
 experiencing a
>> strange issue which we cannot reproduce, as we do not have the specific
>> hardware.
>> 
>> Long story short, "the screenrect" function returns for them incorrect
>> values on an iPhone 8 Plus physical device. We have tested in the
 iPhone 8
>> Plus simulator and it world as expected for us.
>> 
>> More specifically, the screenrect() returns 0,0,375,667 (which is the
>> screenrect of iPhone8) instead of 0,0,414,736 (which is the screenrect
 of
>> iPhone 8 Plus.
>> 
>> Do you have such a device and if yes, would it be possible to do a
 quick
>> test and report here what you get?
>> 
>> Thanks a lot :)
>> 
>> Kind regards,
>> Panos
>> 
>> PS: I guess an iPhone 6 Plus or iPhone 7 Plus will do too, as all
 these 3
>> devices have the same screen size.
>> --
>> 
>> 
>> 
> 
> --
> Panagiotis Merakos >>> panos.mera...@livecode.com>>
> LiveCode Software Developer
> 
> 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 <
 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 manag

Re: Help needed :)

2020-10-19 Thread panagiotis merakos via use-livecode
Thanks Matthias, your help is much appreciated.

Kind regards
Panos

On Mon, Oct 19, 2020, 18:35 matthias rebbe via use-livecode <
use-livecode@lists.runrev.com> wrote:

>
> -
> Matthias Rebbe
> Life Is Too Short For Boring Code
>
> > Am 19.10.2020 um 17:17 schrieb panagiotis merakos via use-livecode <
> use-livecode@lists.runrev.com>:
> >
> > Hmm I think I have found something - I had checked for this before - but
> in
> > the wrong place.
> >
> > @Matthias could you check if "Display Zoom" is enabled in your device?
> >
> > This is in Settings -> Display and Brightness  and then scroll down and
> in
> > the "Display Zoom" section, does it say "Standard" or "Zoomed" ?
> >
> Believe me or not, that was something i thought also could be the culprit.
> But forgot to test, because i got an important phone call.
>
> I will test this later today. I had to give the phone back to the owner,
> but can get it back in the evening.
>
> Regards,
> Matthias
>
>
> > Kind regards,
> > Panos
> > --
> >
> > On Mon, 19 Oct 2020 at 17:51, panagiotis merakos 
> wrote:
> >
> >> Hello Matthias,
> >>
> >> Thank you very much for testing. Hmm that's interesting. I forgot to
> >> mention that the affected iPhones 8+ are running iOS 14.
> >>
> >> The simulator we tested was running iOS 13.3. I am wondering if this is
> an
> >> iOS 14 issue.
> >>
> >> We are working on adding support for building with Xcode 12 / iOS 14
> SDK,
> >> so once this is ready, I'll test on the iOS 14 simulator.
> >>
> >> In the meantime, if anyone has an iPhone 6+/7+/8+ running iOS < 14 and
> >> would like to check what "the screenrect" returns, it would be great :)
> >>
> >> Kind regards,
> >> Panos
> >> --
> >>
> >>
> >> On Mon, 19 Oct 2020 at 17:24, matthias rebbe via use-livecode <
> >> use-livecode@lists.runrev.com> wrote:
> >>
> >>> Hi Panos,
> >>>
> >>> i just borrowed me an iphone 8 Plus.  I can confirm that on the real
> >>> device the screenrect returns 0,0,375,667
> >>> Tried with all 3 variations (ipad, ipod&iphone, ipod/iphone/ipad) and
> >>> with iOS 10,11,12,13.
> >>>
> >>> iOS 14.01
> >>> Modell MQ8L2ZD/A
> >>>
> >>>
> >>> Regards,
> >>>
> >>>
> >>> -
> >>> Matthias Rebbe
> >>> Life Is Too Short For Boring Code
> >>>
>  Am 19.10.2020 um 14:43 schrieb panagiotis merakos via use-livecode <
> >>> use-livecode@lists.runrev.com>:
> 
>  Heh I wrote that msg in my phone while I was in a hurry, and I now see
> >>> the
>  auto-correct has changed a couple of things :)
> 
>  Corrections:
> 
>  * A LC user ...
> 
>  * ...and it works as expected for us
> 
>  Thank you :)
> 
>  Panos
>  --
> 
>  On Mon, 19 Oct 2020 at 14:58, panagiotis merakos <
> >>> panos.mera...@livecode.com >
>  wrote:
> 
> > Hello folks,
> >
> > I LC user (or in fact a couple of this user's clients) are
> >>> experiencing a
> > strange issue which we cannot reproduce, as we do not have the
> specific
> > hardware.
> >
> > Long story short, "the screenrect" function returns for them
> incorrect
> > values on an iPhone 8 Plus physical device. We have tested in the
> >>> iPhone 8
> > Plus simulator and it world as expected for us.
> >
> > More specifically, the screenrect() returns 0,0,375,667 (which is the
> > screenrect of iPhone8) instead of 0,0,414,736 (which is the
> screenrect
> >>> of
> > iPhone 8 Plus.
> >
> > Do you have such a device and if yes, would it be possible to do a
> >>> quick
> > test and report here what you get?
> >
> > Thanks a lot :)
> >
> > Kind regards,
> > Panos
> >
> > PS: I guess an iPhone 6 Plus or iPhone 7 Plus will do too, as all
> >>> these 3
> > devices have the same screen size.
> > --
> >
> >
> >
> 
>  --
>  Panagiotis Merakos  >>> panos.mera...@livecode.com>>
>  LiveCode Software Developer
> 
>  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 <
> >>> 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-livecod

Re: Help needed :)

2020-10-19 Thread matthias rebbe via use-livecode


-
Matthias Rebbe
Life Is Too Short For Boring Code

> Am 19.10.2020 um 17:17 schrieb panagiotis merakos via use-livecode 
> :
> 
> Hmm I think I have found something - I had checked for this before - but in
> the wrong place.
> 
> @Matthias could you check if "Display Zoom" is enabled in your device?
> 
> This is in Settings -> Display and Brightness  and then scroll down and in
> the "Display Zoom" section, does it say "Standard" or "Zoomed" ?
> 
Believe me or not, that was something i thought also could be the culprit. But 
forgot to test, because i got an important phone call.

I will test this later today. I had to give the phone back to the owner, but 
can get it back in the evening.

Regards,
Matthias


> Kind regards,
> Panos
> --
> 
> On Mon, 19 Oct 2020 at 17:51, panagiotis merakos  wrote:
> 
>> Hello Matthias,
>> 
>> Thank you very much for testing. Hmm that's interesting. I forgot to
>> mention that the affected iPhones 8+ are running iOS 14.
>> 
>> The simulator we tested was running iOS 13.3. I am wondering if this is an
>> iOS 14 issue.
>> 
>> We are working on adding support for building with Xcode 12 / iOS 14 SDK,
>> so once this is ready, I'll test on the iOS 14 simulator.
>> 
>> In the meantime, if anyone has an iPhone 6+/7+/8+ running iOS < 14 and
>> would like to check what "the screenrect" returns, it would be great :)
>> 
>> Kind regards,
>> Panos
>> --
>> 
>> 
>> On Mon, 19 Oct 2020 at 17:24, matthias rebbe via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> 
>>> Hi Panos,
>>> 
>>> i just borrowed me an iphone 8 Plus.  I can confirm that on the real
>>> device the screenrect returns 0,0,375,667
>>> Tried with all 3 variations (ipad, ipod&iphone, ipod/iphone/ipad) and
>>> with iOS 10,11,12,13.
>>> 
>>> iOS 14.01
>>> Modell MQ8L2ZD/A
>>> 
>>> 
>>> Regards,
>>> 
>>> 
>>> -
>>> Matthias Rebbe
>>> Life Is Too Short For Boring Code
>>> 
 Am 19.10.2020 um 14:43 schrieb panagiotis merakos via use-livecode <
>>> use-livecode@lists.runrev.com>:
 
 Heh I wrote that msg in my phone while I was in a hurry, and I now see
>>> the
 auto-correct has changed a couple of things :)
 
 Corrections:
 
 * A LC user ...
 
 * ...and it works as expected for us
 
 Thank you :)
 
 Panos
 --
 
 On Mon, 19 Oct 2020 at 14:58, panagiotis merakos <
>>> panos.mera...@livecode.com >
 wrote:
 
> Hello folks,
> 
> I LC user (or in fact a couple of this user's clients) are
>>> experiencing a
> strange issue which we cannot reproduce, as we do not have the specific
> hardware.
> 
> Long story short, "the screenrect" function returns for them incorrect
> values on an iPhone 8 Plus physical device. We have tested in the
>>> iPhone 8
> Plus simulator and it world as expected for us.
> 
> More specifically, the screenrect() returns 0,0,375,667 (which is the
> screenrect of iPhone8) instead of 0,0,414,736 (which is the screenrect
>>> of
> iPhone 8 Plus.
> 
> Do you have such a device and if yes, would it be possible to do a
>>> quick
> test and report here what you get?
> 
> Thanks a lot :)
> 
> Kind regards,
> Panos
> 
> PS: I guess an iPhone 6 Plus or iPhone 7 Plus will do too, as all
>>> these 3
> devices have the same screen size.
> --
> 
> 
> 
 
 --
 Panagiotis Merakos >> panos.mera...@livecode.com>>
 LiveCode Software Developer
 
 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 <
>>> 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: Help needed :)

2020-10-19 Thread panagiotis merakos via use-livecode
Hmm I think I have found something - I had checked for this before - but in
the wrong place.

@Matthias could you check if "Display Zoom" is enabled in your device?

This is in Settings -> Display and Brightness  and then scroll down and in
the "Display Zoom" section, does it say "Standard" or "Zoomed" ?

Kind regards,
Panos
--

On Mon, 19 Oct 2020 at 17:51, panagiotis merakos  wrote:

> Hello Matthias,
>
> Thank you very much for testing. Hmm that's interesting. I forgot to
> mention that the affected iPhones 8+ are running iOS 14.
>
> The simulator we tested was running iOS 13.3. I am wondering if this is an
> iOS 14 issue.
>
> We are working on adding support for building with Xcode 12 / iOS 14 SDK,
> so once this is ready, I'll test on the iOS 14 simulator.
>
> In the meantime, if anyone has an iPhone 6+/7+/8+ running iOS < 14 and
> would like to check what "the screenrect" returns, it would be great :)
>
> Kind regards,
> Panos
> --
>
>
> On Mon, 19 Oct 2020 at 17:24, matthias rebbe via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
>> Hi Panos,
>>
>> i just borrowed me an iphone 8 Plus.  I can confirm that on the real
>> device the screenrect returns 0,0,375,667
>> Tried with all 3 variations (ipad, ipod&iphone, ipod/iphone/ipad) and
>> with iOS 10,11,12,13.
>>
>> iOS 14.01
>> Modell MQ8L2ZD/A
>>
>>
>> Regards,
>>
>>
>> -
>> Matthias Rebbe
>> Life Is Too Short For Boring Code
>>
>> > Am 19.10.2020 um 14:43 schrieb panagiotis merakos via use-livecode <
>> use-livecode@lists.runrev.com>:
>> >
>> > Heh I wrote that msg in my phone while I was in a hurry, and I now see
>> the
>> > auto-correct has changed a couple of things :)
>> >
>> > Corrections:
>> >
>> > * A LC user ...
>> >
>> > * ...and it works as expected for us
>> >
>> > Thank you :)
>> >
>> > Panos
>> > --
>> >
>> > On Mon, 19 Oct 2020 at 14:58, panagiotis merakos <
>> panos.mera...@livecode.com >
>> > wrote:
>> >
>> >> Hello folks,
>> >>
>> >> I LC user (or in fact a couple of this user's clients) are
>> experiencing a
>> >> strange issue which we cannot reproduce, as we do not have the specific
>> >> hardware.
>> >>
>> >> Long story short, "the screenrect" function returns for them incorrect
>> >> values on an iPhone 8 Plus physical device. We have tested in the
>> iPhone 8
>> >> Plus simulator and it world as expected for us.
>> >>
>> >> More specifically, the screenrect() returns 0,0,375,667 (which is the
>> >> screenrect of iPhone8) instead of 0,0,414,736 (which is the screenrect
>> of
>> >> iPhone 8 Plus.
>> >>
>> >> Do you have such a device and if yes, would it be possible to do a
>> quick
>> >> test and report here what you get?
>> >>
>> >> Thanks a lot :)
>> >>
>> >> Kind regards,
>> >> Panos
>> >>
>> >> PS: I guess an iPhone 6 Plus or iPhone 7 Plus will do too, as all
>> these 3
>> >> devices have the same screen size.
>> >> --
>> >>
>> >>
>> >>
>> >
>> > --
>> > Panagiotis Merakos > panos.mera...@livecode.com>>
>> > LiveCode Software Developer
>> >
>> > 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 <
>> 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: Help needed :)

2020-10-19 Thread panagiotis merakos via use-livecode
Hello Matthias,

Thank you very much for testing. Hmm that's interesting. I forgot to
mention that the affected iPhones 8+ are running iOS 14.

The simulator we tested was running iOS 13.3. I am wondering if this is an
iOS 14 issue.

We are working on adding support for building with Xcode 12 / iOS 14 SDK,
so once this is ready, I'll test on the iOS 14 simulator.

In the meantime, if anyone has an iPhone 6+/7+/8+ running iOS < 14 and
would like to check what "the screenrect" returns, it would be great :)

Kind regards,
Panos
--


On Mon, 19 Oct 2020 at 17:24, matthias rebbe via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Hi Panos,
>
> i just borrowed me an iphone 8 Plus.  I can confirm that on the real
> device the screenrect returns 0,0,375,667
> Tried with all 3 variations (ipad, ipod&iphone, ipod/iphone/ipad) and with
> iOS 10,11,12,13.
>
> iOS 14.01
> Modell MQ8L2ZD/A
>
>
> Regards,
>
>
> -
> Matthias Rebbe
> Life Is Too Short For Boring Code
>
> > Am 19.10.2020 um 14:43 schrieb panagiotis merakos via use-livecode <
> use-livecode@lists.runrev.com>:
> >
> > Heh I wrote that msg in my phone while I was in a hurry, and I now see
> the
> > auto-correct has changed a couple of things :)
> >
> > Corrections:
> >
> > * A LC user ...
> >
> > * ...and it works as expected for us
> >
> > Thank you :)
> >
> > Panos
> > --
> >
> > On Mon, 19 Oct 2020 at 14:58, panagiotis merakos <
> panos.mera...@livecode.com >
> > wrote:
> >
> >> Hello folks,
> >>
> >> I LC user (or in fact a couple of this user's clients) are experiencing
> a
> >> strange issue which we cannot reproduce, as we do not have the specific
> >> hardware.
> >>
> >> Long story short, "the screenrect" function returns for them incorrect
> >> values on an iPhone 8 Plus physical device. We have tested in the
> iPhone 8
> >> Plus simulator and it world as expected for us.
> >>
> >> More specifically, the screenrect() returns 0,0,375,667 (which is the
> >> screenrect of iPhone8) instead of 0,0,414,736 (which is the screenrect
> of
> >> iPhone 8 Plus.
> >>
> >> Do you have such a device and if yes, would it be possible to do a quick
> >> test and report here what you get?
> >>
> >> Thanks a lot :)
> >>
> >> Kind regards,
> >> Panos
> >>
> >> PS: I guess an iPhone 6 Plus or iPhone 7 Plus will do too, as all these
> 3
> >> devices have the same screen size.
> >> --
> >>
> >>
> >>
> >
> > --
> > Panagiotis Merakos  panos.mera...@livecode.com>>
> > LiveCode Software Developer
> >
> > 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 <
> 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: Help needed :)

2020-10-19 Thread matthias rebbe via use-livecode
Hi Panos,

i just borrowed me an iphone 8 Plus.  I can confirm that on the real device the 
screenrect returns 0,0,375,667
Tried with all 3 variations (ipad, ipod&iphone, ipod/iphone/ipad) and with iOS 
10,11,12,13.

iOS 14.01
Modell MQ8L2ZD/A


Regards,


-
Matthias Rebbe
Life Is Too Short For Boring Code

> Am 19.10.2020 um 14:43 schrieb panagiotis merakos via use-livecode 
> :
> 
> Heh I wrote that msg in my phone while I was in a hurry, and I now see the
> auto-correct has changed a couple of things :)
> 
> Corrections:
> 
> * A LC user ...
> 
> * ...and it works as expected for us
> 
> Thank you :)
> 
> Panos
> --
> 
> On Mon, 19 Oct 2020 at 14:58, panagiotis merakos  >
> wrote:
> 
>> Hello folks,
>> 
>> I LC user (or in fact a couple of this user's clients) are experiencing a
>> strange issue which we cannot reproduce, as we do not have the specific
>> hardware.
>> 
>> Long story short, "the screenrect" function returns for them incorrect
>> values on an iPhone 8 Plus physical device. We have tested in the iPhone 8
>> Plus simulator and it world as expected for us.
>> 
>> More specifically, the screenrect() returns 0,0,375,667 (which is the
>> screenrect of iPhone8) instead of 0,0,414,736 (which is the screenrect of
>> iPhone 8 Plus.
>> 
>> Do you have such a device and if yes, would it be possible to do a quick
>> test and report here what you get?
>> 
>> Thanks a lot :)
>> 
>> Kind regards,
>> Panos
>> 
>> PS: I guess an iPhone 6 Plus or iPhone 7 Plus will do too, as all these 3
>> devices have the same screen size.
>> --
>> 
>> 
>> 
> 
> -- 
> Panagiotis Merakos  >
> LiveCode Software Developer
> 
> 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: Help needed :)

2020-10-19 Thread panagiotis merakos via use-livecode
Heh I wrote that msg in my phone while I was in a hurry, and I now see the
auto-correct has changed a couple of things :)

Corrections:

* A LC user ...

* ...and it works as expected for us

Thank you :)

Panos
--

On Mon, 19 Oct 2020 at 14:58, panagiotis merakos 
wrote:

> Hello folks,
>
> I LC user (or in fact a couple of this user's clients) are experiencing a
> strange issue which we cannot reproduce, as we do not have the specific
> hardware.
>
> Long story short, "the screenrect" function returns for them incorrect
> values on an iPhone 8 Plus physical device. We have tested in the iPhone 8
> Plus simulator and it world as expected for us.
>
> More specifically, the screenrect() returns 0,0,375,667 (which is the
> screenrect of iPhone8) instead of 0,0,414,736 (which is the screenrect of
> iPhone 8 Plus.
>
> Do you have such a device and if yes, would it be possible to do a quick
> test and report here what you get?
>
> Thanks a lot :)
>
> Kind regards,
> Panos
>
> PS: I guess an iPhone 6 Plus or iPhone 7 Plus will do too, as all these 3
> devices have the same screen size.
> --
>
>
>

-- 
Panagiotis Merakos 
LiveCode Software Developer

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


Help needed :)

2020-10-19 Thread panagiotis merakos via use-livecode
Hello folks,

I LC user (or in fact a couple of this user's clients) are experiencing a
strange issue which we cannot reproduce, as we do not have the specific
hardware.

Long story short, "the screenrect" function returns for them incorrect
values on an iPhone 8 Plus physical device. We have tested in the iPhone 8
Plus simulator and it world as expected for us.

More specifically, the screenrect() returns 0,0,375,667 (which is the
screenrect of iPhone8) instead of 0,0,414,736 (which is the screenrect of
iPhone 8 Plus.

Do you have such a device and if yes, would it be possible to do a quick
test and report here what you get?

Thanks a lot :)

Kind regards,
Panos

PS: I guess an iPhone 6 Plus or iPhone 7 Plus will do too, as all these 3
devices have the same screen size.
--
___
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: Live code Server revOpenDatabase help needed

2020-07-16 Thread kevin--- via use-livecode
Thanks Ralph,

I checked out this possibility by putting this (and the associated variable
population in a button in livecode:

   put revOpenDatabase("mysql", tDatabaseAddress, tDatabaseName,
tDatabaseUser, tDatabasePassword) into tResult
   
Works fine from livecode so I know there is no issue with the database but
when I place the same line into a single page website and use 64bit livecode
server, it fails on every version from 7 to 9. 
I'm doing my tests using livecode-community-server and was wondering if this
was a limitation of the community version. It certainly wasn't with the old
32bit version because I've tried it on my old server

Interestingly, my old 32 bit v6.x livecode & livecode server were happy with
"MySql" but v9 Livecode only accepts "mysql"

I would test a 32bit server version but it's seemingly impossible to install
working 32bit libraries in Debian 8 or 9

Regards
Kevin

-Original Message-


Message: 9
Date: Wed, 15 Jul 2020 08:36:34 -0400
From: "Ralph DiMola" 
To: "'How to use LiveCode'" 
Subject: RE: Live code Server revOpenDatabase help needed
Message-ID: <000d01d65aa4$96c81640$c45842c0$@net>
Content-Type: text/plain;   charset="us-ascii"

Kevin,

I ran into this when I updated to 64 bit. It was a script only library
stack. I don't know why it worked in v6 but did not work in v9. For me it
was fastJson.livecodescript that caused the problem so I just used the built
json in v9 and all was OK. Why it showed up in a DB open is a mystery?
https://quality.livecode.com/show_bug.cgi?id=22514

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 kevin--- via use-livecode
Sent: Wednesday, July 15, 2020 6:08 AM
To: use-livecode@lists.runrev.com
Cc: ke...@stallibrass.com
Subject: Live code Server revOpenDatabase help needed

Hi,

I've been running a very old (32bit lc server v6 on Ubuntu 16) for years and
the following script works to connect to the SQL database.
My new(er) server (64bit lc server v9 on Debian 8) throws up ~Function:
error in function handler (revOpenDatabase)~ so something has clearly
changed. I've tried removing the socket references, changing the connection
type but the error message remains the same. Has the syntax for
revOpenDatabase changed and I'm reading old documentation again?

Thanks
Kevin

# connect to the database
command dbConnect
put "/var/run/mysqld/mysqld.sock" into _Socket
put revOpenDatabase("MySql", "localhost:3306", _dbName, _dbUser,
_dbPass,, _Socket) into DB
if DB is not a number then put "Error: could not connect to
database!" & BR end dbConnect




___
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




--

Subject: Digest Footer

___
use-livecode mailing list
use-livecode@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-livecode


--

End of use-livecode Digest, Vol 202, Issue 16
*


___
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: Live code Server revOpenDatabase help needed

2020-07-15 Thread Ralph DiMola via use-livecode
Kevin,

I ran into this when I updated to 64 bit. It was a script only library
stack. I don't know why it worked in v6 but did not work in v9. For me it
was fastJson.livecodescript that caused the problem so I just used the built
json in v9 and all was OK. Why it showed up in a DB open is a mystery?
https://quality.livecode.com/show_bug.cgi?id=22514

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 kevin--- via use-livecode
Sent: Wednesday, July 15, 2020 6:08 AM
To: use-livecode@lists.runrev.com
Cc: ke...@stallibrass.com
Subject: Live code Server revOpenDatabase help needed

Hi,

I've been running a very old (32bit lc server v6 on Ubuntu 16) for years and
the following script works to connect to the SQL database.
My new(er) server (64bit lc server v9 on Debian 8) throws up ~Function:
error in function handler (revOpenDatabase)~ so something has clearly
changed. I've tried removing the socket references, changing the connection
type but the error message remains the same. Has the syntax for
revOpenDatabase changed and I'm reading old documentation again?

Thanks
Kevin

# connect to the database
command dbConnect
put "/var/run/mysqld/mysqld.sock" into _Socket
put revOpenDatabase("MySql", "localhost:3306", _dbName, _dbUser,
_dbPass,, _Socket) into DB
if DB is not a number then put "Error: could not connect to
database!" & BR end dbConnect




___
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


Live code Server revOpenDatabase help needed

2020-07-15 Thread kevin--- via use-livecode
Hi,

I've been running a very old (32bit lc server v6 on Ubuntu 16) for years and
the following script works to connect to the SQL database.
My new(er) server (64bit lc server v9 on Debian 8) throws up ~Function:
error in function handler (revOpenDatabase)~ so something has clearly
changed. I've tried removing the socket references, changing the connection
type but the error message remains the same. Has the syntax for
revOpenDatabase changed and I'm reading old documentation again?

Thanks
Kevin

# connect to the database
command dbConnect
put "/var/run/mysqld/mysqld.sock" into _Socket
put revOpenDatabase("MySql", "localhost:3306", _dbName, _dbUser,
_dbPass,, _Socket) into DB
if DB is not a number then put "Error: could not connect to
database!" & BR
end dbConnect




___
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: Web help needed

2020-07-13 Thread Heriberto Torrado via use-livecode

You can use Unison:

https://www.cis.upenn.edu/~bcpierce/unison/

I use it to synchronize several servers between them.
It works like a Charm.


Best

On 7/12/20 2:30 PM, Richard Gaskin via use-livecode wrote:

Bill Prothero wrote:
> Sorry if this is off, but what about just transferring them with ftp?

FTP is good enough for a small number of files.  But for automating 
large numbers of file transfers rsync is hard to beat, a much smarter 
tool making things much more efficient.


By default, rsync will only transfer files that have changed, and even 
then only transfers the portions of a file that's changed.


It can be used to sync folders locally or remotely - I run all my 
backups with it, in addition to using it post files to servers from my 
local master copy.


rsync is preinstalled with macOS, can be added to Windows, and is a 
standard part of most popular Linux distros used on servers.


It's secure using SSH, so if you add your SSH public key to your 
server (useful for a good many things) you not only get good security 
but it makes it easy to automate with LiveCode's shell function.



@Michael Doub: I believe HostM uses Ubuntu, so rsync is preinstalled 
there.  And since you use macOS, your copy is preinstalled on your Mac.


IMNSHO, you'll want to request SSH for any hosting service that 
doesn't offer it by default.  With SSH, not only do you get to use 
standard Unix/Linux utilities like rsync, scp, and others, but sooner 
or later you're likely to need or want to do something on that server 
outside of the limited scope of what FTP is designed for.  With shell 
access you can do anything you need, just as good as having the server 
sitting on your desk, even if it's thousands of miles away.




--
Hola, buenos días:



Un abrazo

Best regards/ Saludos cordiales/ Cordialement

Heriberto Torrado
​Chief Technology Officer (CTO)
​Director de informática
Directeur informatique

*NetDreams S.C.*
http://www.networkdreams.net

 Address / Dirección / Adresse:​

*USA: *538 East 85th Street, #1C Manhattan NY, NY 10028 USA
*Europe / Europa: *Paseo de la Castellana 135 10ª Planta Madrid 28024 
Spain / España


*Tel - Phone - Fax:*

Phone / Tel USA : +1 917 287 5644 / +1 646 596 8787
Phone / Tel Spain :+34 627 556 500 / + 34 91 063 74 48

   Please consider the environment before printing this email / Por 
favor considera tu responsabilidad medioambiental antes de imprimir esta 
página.


Confidentiality: The information contained in this message as well as 
the attached file(s) is confidential/privileged and is only intended for 
the person(s) to whom it is addressed. If the reader of this message is 
not the intended recipient or the employee or agent responsible for 
delivering the message to the intended recipient, or you have received 
this comunication in error, please be aware that any dissemination, 
distribution or duplication is strictly prohibited, and can be illegal, 
and please notify us immediately and return the original message to us 
at the address above. Thank you.


Confidencialidad: La información contenida en este mensaje y/o 
archivo(s) adjunto(s) es confidencial/privilegiada y está destinada a 
ser leída sólo por la(s) persona(s) a la(s) que va dirigida. Si usted 
lee este mensaje y no es el destinatario señalado, el empleado o el 
agente responsable de entregar el mensaje al destinatario, o ha recibido 
esta comunicación por error, le informamos que está totalmente 
prohibida, y puede ser ilegal, cualquier divulgación, distribución o 
reproducción de esta comunicación, y le rogamos que nos lo notifique 
inmediatamente y nos devuelva el mensaje original a la dirección arriba 
mencionada. Gracias.


Viruses: Although we have taken steps to insure that this e-mail and 
attachments are free from any virus, we advise that in keeping with good 
computing practice, the recipient should ensure they are actually virus 
free.


Virus: Aunque hemos tomado las medidas para asegurarnos que este correo 
electrónico y sus ficheros adjuntos están libres de virus, le 
recomendamos que a efectos de mantener buenas prácticas de seguridad, el 
receptor debe asegurarse que este correo y sus ficheros adjuntos están 
libres de virus.


___
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: Web help needed

2020-07-13 Thread Mike Doub via use-livecode
Andre,

Your the closest yet to what I was thinking about.  I did not think it was a 
good idea to have the cue sheets rebuilt on the server.   I was going to 
rebuild them on the desktop and push them to the server thru a special endpoint.

Let me study the links you provided and well see if they will do the trick.

Thank to all for helping!  I’m learning all sorts of stuff!  It great.

  -= Mike
On Jul 13, 2020, 11:45 AM -0400, Andre Garzia via use-livecode 
, wrote:
> Folks,
>
> I think that either you're all misreading the original intent, or I have
> read it wrong.
>
> From what I have read, Mike has a webapp that converts from one file format
> to another and wants to do bulk conversion. Rsync and FTP will not help
> there, what he needs to to be able to call that form multiple times or
> refactor the form to support multiple files.
>
> Mike, get yourself familiar with "file type inputs" from HTML and how they
> can support multiple file selection. In the two links below you'll have a
> reference to the APIs and DOM elements related to that:
>
> * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file
> *
> https://developer.mozilla.org/en-US/docs/Web/API/File/Using_files_from_web_applications
>
> Using that you could rework your form to accept multiple files, even with
> drag and dropping, which I believe will solve your problem.
>
> Still, I don't think that doing the entire archive in a single go is a good
> idea as Apache will hangup the CGI process after a predefined timeout, but
> you could do a subset of it, for example each month in a single pass.
>
> Best
> A
>
>
>
> On Sun, 12 Jul 2020 at 19:32, Richard Gaskin via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> > Bill Prothero wrote:
> > > Sorry if this is off, but what about just transferring them with ftp?
> >
> > FTP is good enough for a small number of files. But for automating
> > large numbers of file transfers rsync is hard to beat, a much smarter
> > tool making things much more efficient.
> >
> > By default, rsync will only transfer files that have changed, and even
> > then only transfers the portions of a file that's changed.
> >
> > It can be used to sync folders locally or remotely - I run all my
> > backups with it, in addition to using it post files to servers from my
> > local master copy.
> >
> > rsync is preinstalled with macOS, can be added to Windows, and is a
> > standard part of most popular Linux distros used on servers.
> >
> > It's secure using SSH, so if you add your SSH public key to your server
> > (useful for a good many things) you not only get good security but it
> > makes it easy to automate with LiveCode's shell function.
> >
> >
> > @Michael Doub: I believe HostM uses Ubuntu, so rsync is preinstalled
> > there. And since you use macOS, your copy is preinstalled on your Mac.
> >
> > IMNSHO, you'll want to request SSH for any hosting service that doesn't
> > offer it by default. With SSH, not only do you get to use standard
> > Unix/Linux utilities like rsync, scp, and others, but sooner or later
> > you're likely to need or want to do something on that server outside of
> > the limited scope of what FTP is designed for. With shell access you
> > can do anything you need, just as good as having the server sitting on
> > your desk, even if it's thousands of miles away.
> >
> > --
> > Richard Gaskin
> > Fourth World Systems
> > Software Design and Development for the Desktop, Mobile, and the Web
> > 
> > ambassa...@fourthworld.com http://www.FourthWorld.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
> >
>
>
> --
> http://www.andregarzia.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


Re: Web help needed

2020-07-13 Thread Andre Garzia via use-livecode
Folks,

I think that either you're all misreading the original intent, or I have
read it wrong.

>From what I have read, Mike has a webapp that converts from one file format
to another and wants to do bulk conversion. Rsync and FTP will not help
there, what he needs to to be able to call that form multiple times or
refactor the form to support multiple files.

Mike, get yourself familiar with "file type inputs" from HTML and how they
can support multiple file selection. In the two links below you'll have a
reference to the APIs and DOM elements related to that:

* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file
*
https://developer.mozilla.org/en-US/docs/Web/API/File/Using_files_from_web_applications

Using that you could rework your form to accept multiple files, even with
drag and dropping, which I believe will solve your problem.

Still, I don't think that doing the entire archive in a single go is a good
idea as Apache will hangup the CGI process after a predefined timeout, but
you could do a subset of it, for example each month in a single pass.

Best
A



On Sun, 12 Jul 2020 at 19:32, Richard Gaskin via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Bill Prothero wrote:
>  > Sorry if this is off, but what about just transferring them with ftp?
>
> FTP is good enough for a small number of files.  But for automating
> large numbers of file transfers rsync is hard to beat, a much smarter
> tool making things much more efficient.
>
> By default, rsync will only transfer files that have changed, and even
> then only transfers the portions of a file that's changed.
>
> It can be used to sync folders locally or remotely - I run all my
> backups with it, in addition to using it post files to servers from my
> local master copy.
>
> rsync is preinstalled with macOS, can be added to Windows, and is a
> standard part of most popular Linux distros used on servers.
>
> It's secure using SSH, so if you add your SSH public key to your server
> (useful for a good many things) you not only get good security but it
> makes it easy to automate with LiveCode's shell function.
>
>
> @Michael Doub: I believe HostM uses Ubuntu, so rsync is preinstalled
> there.  And since you use macOS, your copy is preinstalled on your Mac.
>
> IMNSHO, you'll want to request SSH for any hosting service that doesn't
> offer it by default.  With SSH, not only do you get to use standard
> Unix/Linux utilities like rsync, scp, and others, but sooner or later
> you're likely to need or want to do something on that server outside of
> the limited scope of what FTP is designed for.  With shell access you
> can do anything you need, just as good as having the server sitting on
> your desk, even if it's thousands of miles away.
>
> --
>   Richard Gaskin
>   Fourth World Systems
>   Software Design and Development for the Desktop, Mobile, and the Web
>   
>   ambassa...@fourthworld.comhttp://www.FourthWorld.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
>


-- 
http://www.andregarzia.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: Web help needed

2020-07-12 Thread Richard Gaskin via use-livecode

Bill Prothero wrote:
> Sorry if this is off, but what about just transferring them with ftp?

FTP is good enough for a small number of files.  But for automating 
large numbers of file transfers rsync is hard to beat, a much smarter 
tool making things much more efficient.


By default, rsync will only transfer files that have changed, and even 
then only transfers the portions of a file that's changed.


It can be used to sync folders locally or remotely - I run all my 
backups with it, in addition to using it post files to servers from my 
local master copy.


rsync is preinstalled with macOS, can be added to Windows, and is a 
standard part of most popular Linux distros used on servers.


It's secure using SSH, so if you add your SSH public key to your server 
(useful for a good many things) you not only get good security but it 
makes it easy to automate with LiveCode's shell function.



@Michael Doub: I believe HostM uses Ubuntu, so rsync is preinstalled 
there.  And since you use macOS, your copy is preinstalled on your Mac.


IMNSHO, you'll want to request SSH for any hosting service that doesn't 
offer it by default.  With SSH, not only do you get to use standard 
Unix/Linux utilities like rsync, scp, and others, but sooner or later 
you're likely to need or want to do something on that server outside of 
the limited scope of what FTP is designed for.  With shell access you 
can do anything you need, just as good as having the server sitting on 
your desk, even if it's thousands of miles away.


--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.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: Web help needed

2020-07-12 Thread Mike Doub via use-livecode
HostM does support rsync but you have to request SSH to be enabled.

I was able to get an sftp client to work.  Im not sure if LiveCode supports 
sftp.

-= Mike
On Jul 12, 2020, 1:13 PM -0400, Mike Doub , wrote:
> I just sent a request to HostM to see if they support rsync.  If they do then 
> one option would be to create all of the pdfs and csv on the mac then rsync 
> them to the server.  This leads me down a new set of unknowns... How do you 
> set up rsync? I assume that there is some configuration required on both the 
> mac and server.
> On Jul 12, 2020, 12:56 PM -0400, Mike Doub , wrote:
> > The server is hosted on HostM and they are very good a keeping Livecode 
> > Server current. I am assuming it is a Unix variant of some sort.  My 
> > desktop is a mac.
> >
> > Let me tell you the details of what I am trying to do.   I have written a 
> > tool in livecode that takes a RideWithGPS route and generates a pdf and 
> > .csv files for the cue sheet.  (basic turn by turn instructions for cycling 
> > the route.)  This tools sits on the server side and processes requests via 
> > a form.   Basically 1 route at a time.
> >
> > There are some 950 routes that are in my cycling clubs archive on 
> > RideWithGPS.  I am looking to generate updated pdf and csv files for all of 
> > the routes.  I was thinking about just cycling thru each of the routes, 
> > create the pdf and csv on my mac and just push the files onto the server.   
> > It is the push them onto the server that I don’t know how to do.   I am 
> > looking for some guidance on both the mac and server side.
> >
> > -= Mike
> > On Jul 12, 2020, 12:32 PM -0400, Rick Harrison via use-livecode 
> > , wrote:
> > > Hi Mike,
> > >
> > > I think we are lacking some key information in order to solve your 
> > > problem.
> > >
> > > Is your LC Server on a Mac? If so, what is preventing you from just
> > > dragging and dropping a folder of your files across the network from your
> > > desktop Mac to your LC (Mac?) Server computer?
> > >
> > > Once your files are on the Server where you want them, then you
> > > can play around with having LC Server access them through forms
> > > if you want to do that. You can also put the data into a database
> > > if you need to do that too and then access them with your LC Server.
> > >
> > > Are you hosting your LC Server on a computer you own, or
> > > are you using a hosting service instead?
> > >
> > > Let us know.
> > >
> > > Rick
> > >
> > >
> > >
> > > > On Jul 11, 2020, at 8:24 PM, Mike Doub via use-livecode 
> > > >  wrote:
> > > >
> > > > I am a rookie at web stuff. I have a couple of end point api’s set up 
> > > > to use with simple forms. Got that working with .lc file that starts 
> > > > using a LiveCode stack that does the work.
> > > >
> > > > I need to move hundreds of files from my desktop Mac to my server. I’m 
> > > > looking for advise as to how best to do this. I was thinking about 
> > > > creating an endpoint on my server that my desktop app would use. But, I 
> > > > don’t understand how that might work.
> > > >
> > > > I need some help for some experience web folks. How do I go about 
> > > > moving files? Most of them are text, but I would like to understand how 
> > > > to deal with binary files too (thinking images). All of the examples I 
> > > > see are for a user interface form and that does not make sense for the 
> > > > number of files I need to move.
> > > >
> > > > Thanks in advance.
> > > > -= Mike
> > >
> > > ___
> > > 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: Web help needed

2020-07-12 Thread Mike Doub via use-livecode
I just sent a request to HostM to see if they support rsync.  If they do then 
one option would be to create all of the pdfs and csv on the mac then rsync 
them to the server.  This leads me down a new set of unknowns... How do you set 
up rsync? I assume that there is some configuration required on both the mac 
and server.
On Jul 12, 2020, 12:56 PM -0400, Mike Doub , wrote:
> The server is hosted on HostM and they are very good a keeping Livecode 
> Server current. I am assuming it is a Unix variant of some sort.  My desktop 
> is a mac.
>
> Let me tell you the details of what I am trying to do.   I have written a 
> tool in livecode that takes a RideWithGPS route and generates a pdf and .csv 
> files for the cue sheet.  (basic turn by turn instructions for cycling the 
> route.)  This tools sits on the server side and processes requests via a 
> form.   Basically 1 route at a time.
>
> There are some 950 routes that are in my cycling clubs archive on 
> RideWithGPS.  I am looking to generate updated pdf and csv files for all of 
> the routes.  I was thinking about just cycling thru each of the routes, 
> create the pdf and csv on my mac and just push the files onto the server.   
> It is the push them onto the server that I don’t know how to do.   I am 
> looking for some guidance on both the mac and server side.
>
> -= Mike
> On Jul 12, 2020, 12:32 PM -0400, Rick Harrison via use-livecode 
> , wrote:
> > Hi Mike,
> >
> > I think we are lacking some key information in order to solve your problem.
> >
> > Is your LC Server on a Mac? If so, what is preventing you from just
> > dragging and dropping a folder of your files across the network from your
> > desktop Mac to your LC (Mac?) Server computer?
> >
> > Once your files are on the Server where you want them, then you
> > can play around with having LC Server access them through forms
> > if you want to do that. You can also put the data into a database
> > if you need to do that too and then access them with your LC Server.
> >
> > Are you hosting your LC Server on a computer you own, or
> > are you using a hosting service instead?
> >
> > Let us know.
> >
> > Rick
> >
> >
> >
> > > On Jul 11, 2020, at 8:24 PM, Mike Doub via use-livecode 
> > >  wrote:
> > >
> > > I am a rookie at web stuff. I have a couple of end point api’s set up to 
> > > use with simple forms. Got that working with .lc file that starts using a 
> > > LiveCode stack that does the work.
> > >
> > > I need to move hundreds of files from my desktop Mac to my server. I’m 
> > > looking for advise as to how best to do this. I was thinking about 
> > > creating an endpoint on my server that my desktop app would use. But, I 
> > > don’t understand how that might work.
> > >
> > > I need some help for some experience web folks. How do I go about moving 
> > > files? Most of them are text, but I would like to understand how to deal 
> > > with binary files too (thinking images). All of the examples I see are 
> > > for a user interface form and that does not make sense for the number of 
> > > files I need to move.
> > >
> > > Thanks in advance.
> > > -= Mike
> >
> > ___
> > 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: Web help needed

2020-07-12 Thread Prothero@earthlearning via use-livecode
Sorry if this is off, but what about just transferring them with ftp?
Bill

William Prothero
http://es.earthednet.org

> On Jul 12, 2020, at 9:57 AM, Mike Doub via use-livecode 
>  wrote:
> 
> The server is hosted on HostM and they are very good a keeping Livecode 
> Server current. I am assuming it is a Unix variant of some sort.  My desktop 
> is a mac.
> 
> Let me tell you the details of what I am trying to do.   I have written a 
> tool in livecode that takes a RideWithGPS route and generates a pdf and .csv 
> files for the cue sheet.  (basic turn by turn instructions for cycling the 
> route.)  This tools sits on the server side and processes requests via a 
> form.   Basically 1 route at a time.
> 
> There are some 950 routes that are in my cycling clubs archive on 
> RideWithGPS.  I am looking to generate updated pdf and csv files for all of 
> the routes.  I was thinking about just cycling thru each of the routes, 
> create the pdf and csv on my mac and just push the files onto the server.   
> It is the push them onto the server that I don’t know how to do.   I am 
> looking for some guidance on both the mac and server side.
> 
> -= Mike
>> On Jul 12, 2020, 12:32 PM -0400, Rick Harrison via use-livecode 
>> , wrote:
>> Hi Mike,
>> 
>> I think we are lacking some key information in order to solve your problem.
>> 
>> Is your LC Server on a Mac? If so, what is preventing you from just
>> dragging and dropping a folder of your files across the network from your
>> desktop Mac to your LC (Mac?) Server computer?
>> 
>> Once your files are on the Server where you want them, then you
>> can play around with having LC Server access them through forms
>> if you want to do that. You can also put the data into a database
>> if you need to do that too and then access them with your LC Server.
>> 
>> Are you hosting your LC Server on a computer you own, or
>> are you using a hosting service instead?
>> 
>> Let us know.
>> 
>> Rick
>> 
>> 
>> 
 On Jul 11, 2020, at 8:24 PM, Mike Doub via use-livecode 
  wrote:
>>> 
>>> I am a rookie at web stuff. I have a couple of end point api’s set up to 
>>> use with simple forms. Got that working with .lc file that starts using a 
>>> LiveCode stack that does the work.
>>> 
>>> I need to move hundreds of files from my desktop Mac to my server. I’m 
>>> looking for advise as to how best to do this. I was thinking about creating 
>>> an endpoint on my server that my desktop app would use. But, I don’t 
>>> understand how that might work.
>>> 
>>> I need some help for some experience web folks. How do I go about moving 
>>> files? Most of them are text, but I would like to understand how to deal 
>>> with binary files too (thinking images). All of the examples I see are for 
>>> a user interface form and that does not make sense for the number of files 
>>> I need to move.
>>> 
>>> Thanks in advance.
>>> -= Mike
>> 
>> ___
>> 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: Web help needed

2020-07-12 Thread Mike Doub via use-livecode
The server is hosted on HostM and they are very good a keeping Livecode Server 
current. I am assuming it is a Unix variant of some sort.  My desktop is a mac.

Let me tell you the details of what I am trying to do.   I have written a tool 
in livecode that takes a RideWithGPS route and generates a pdf and .csv files 
for the cue sheet.  (basic turn by turn instructions for cycling the route.)  
This tools sits on the server side and processes requests via a form.   
Basically 1 route at a time.

There are some 950 routes that are in my cycling clubs archive on RideWithGPS.  
I am looking to generate updated pdf and csv files for all of the routes.  I 
was thinking about just cycling thru each of the routes, create the pdf and csv 
on my mac and just push the files onto the server.   It is the push them onto 
the server that I don’t know how to do.   I am looking for some guidance on 
both the mac and server side.

-= Mike
On Jul 12, 2020, 12:32 PM -0400, Rick Harrison via use-livecode 
, wrote:
> Hi Mike,
>
> I think we are lacking some key information in order to solve your problem.
>
> Is your LC Server on a Mac? If so, what is preventing you from just
> dragging and dropping a folder of your files across the network from your
> desktop Mac to your LC (Mac?) Server computer?
>
> Once your files are on the Server where you want them, then you
> can play around with having LC Server access them through forms
> if you want to do that. You can also put the data into a database
> if you need to do that too and then access them with your LC Server.
>
> Are you hosting your LC Server on a computer you own, or
> are you using a hosting service instead?
>
> Let us know.
>
> Rick
>
>
>
> > On Jul 11, 2020, at 8:24 PM, Mike Doub via use-livecode 
> >  wrote:
> >
> > I am a rookie at web stuff. I have a couple of end point api’s set up to 
> > use with simple forms. Got that working with .lc file that starts using a 
> > LiveCode stack that does the work.
> >
> > I need to move hundreds of files from my desktop Mac to my server. I’m 
> > looking for advise as to how best to do this. I was thinking about creating 
> > an endpoint on my server that my desktop app would use. But, I don’t 
> > understand how that might work.
> >
> > I need some help for some experience web folks. How do I go about moving 
> > files? Most of them are text, but I would like to understand how to deal 
> > with binary files too (thinking images). All of the examples I see are for 
> > a user interface form and that does not make sense for the number of files 
> > I need to move.
> >
> > Thanks in advance.
> > -= Mike
>
> ___
> 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: Web help needed

2020-07-12 Thread Mark Wieder via use-livecode

On 7/12/20 9:10 AM, Mike Doub via use-livecode wrote:

Thanks Richard.   I guess I was not clear.   I was looking for the best ways to 
do the file transfer with LiveCode and LiveCode server.


Why?

get shell("rsync ")...


--
 Mark Wieder
 ahsoftw...@gmail.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: Web help needed

2020-07-12 Thread Rick Harrison via use-livecode
Hi Mike,

I think we are lacking some key information in order to solve your problem.

Is your LC Server on a Mac?  If so, what is preventing you from just
dragging and dropping a folder of your files across the network from your
desktop Mac to your LC (Mac?) Server computer?

Once your files are on the Server where you want them, then you
can play around with having LC Server access them through forms
if you want to do that.  You can also put the data into a database
if you need to do that too and then access them with your LC Server.

Are you hosting your LC Server on a computer you own, or
are you using a hosting service instead?

Let us know.

Rick



> On Jul 11, 2020, at 8:24 PM, Mike Doub via use-livecode 
>  wrote:
> 
> I am a rookie at web stuff.  I have a couple of end point api’s set up to use 
> with simple forms.  Got that working with .lc file that starts using a 
> LiveCode stack that does the work.
> 
> I need to move hundreds of files from my desktop Mac to my server.   I’m 
> looking for advise as to how best to do this.  I was thinking about creating 
> an endpoint on my server that my desktop app would use.  But, I don’t 
> understand how that might work.
> 
> I need some help for some experience web folks.  How do I go about moving 
> files?   Most of them are text, but I would like to understand how to deal 
> with binary files too (thinking images).  All of the examples I see are for a 
> user interface form and that does not make sense for the number of files I 
> need to move.
> 
> Thanks in advance.
>   -= Mike

___
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: Web help needed

2020-07-12 Thread Mike Doub via use-livecode
Thanks Richard.   I guess I was not clear.   I was looking for the best ways to 
do the file transfer with LiveCode and LiveCode server.

  -= Mike
On Jul 11, 2020, 10:50 PM -0400, Richard Gaskin via use-livecode 
, wrote:
> Mike Doub wrote:
>
> > I need to move hundreds of files from my desktop Mac to my server.
> > I’m looking for advise as to how best to do this.
>
> rsync
>
> --
> Richard Gaskin
> Fourth World Systems
> Software Design and Development for the Desktop, Mobile, and the Web
> 
> ambassa...@fourthworld.com http://www.FourthWorld.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


Re: Web help needed

2020-07-11 Thread Richard Gaskin via use-livecode

Mike Doub wrote:

> I need to move hundreds of files from my desktop Mac to my server.
> I’m looking for advise as to how best to do this.

rsync

--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.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


Web help needed

2020-07-11 Thread Mike Doub via use-livecode
I am a rookie at web stuff.  I have a couple of end point api’s set up to use 
with simple forms.  Got that working with .lc file that starts using a LiveCode 
stack that does the work.

I need to move hundreds of files from my desktop Mac to my server.   I’m 
looking for advise as to how best to do this.  I was thinking about creating an 
endpoint on my server that my desktop app would use.  But, I don’t understand 
how that might work.

I need some help for some experience web folks.  How do I go about moving 
files?   Most of them are text, but I would like to understand how to deal with 
binary files too (thinking images).  All of the examples I see are for a user 
interface form and that does not make sense for the number of files I need to 
move.

Thanks in advance.
      -= Mike
___
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 build error - help needed

2020-04-14 Thread Sannyasin Brahmanathaswami via use-livecode
I 9.6.1.dp3 and Catalina 10.15.4 and Xcode 11.3.1

It works

Suggest he unstall Xcode and reinstall in and get install the command tool from 
menu (again)

And be sure he is not using a development profile and had the beta test box 
checked in SA setting (that one cost me a lot of time!) you can on have the 
"beta test" check with a App Store. Profile.

BR

On 4/14/20, 9:18 AM, "use-livecode on behalf of panagiotis merakos via 
use-livecode"  wrote:

Have you seen this error - and if yes - how did you manage to fix it?

___
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


iOS build error - help needed

2020-04-14 Thread panagiotis merakos via use-livecode
Hello all,

A new user gets some strange errors trying to build an iOS app with LC 9.6
DP-3 and Xcode 11.3.1 on Catalina.

I know some of you folks have no problems building iOS apps with this setup
- my guess is that something in his Xcode is not setup correctly - although
he has tried everything I could suggest.

Full thread here: https://forums.livecode.com/viewtopic.php?f=49&t=33887

Have you seen this error - and if yes - how did you manage to fix it?

I am on Mojave, and cannot upgrade to Catalina yet.

Thanks for your help!

Kind regards,
Panos
--
___
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: Decoding "quoted-printable" -- Help needed -- Reopened - Solved 2nd

2019-11-14 Thread R.H. via use-livecode
I am very sorry that I am overstressing this list. I keep on answering my
own questions.

The function needs to address bytes. I found this looking at some similar
C# code:

# Code snippet from C#
# Source:
https://stackoverflow.com/questions/32083334/consecutive-control-characters-in-quoted-printable-not-decoding-correctly
---
string sHex = input;
sHex = sHex.Substring(i + 1, 2);
int hex = Convert.ToInt32(sHex, 16);
byte b = Convert.ToByte(hex);
output.Add(b);
i += 3;
---

I oversaw that the value must be a byte value. Anyway, that is all new to
me.
So, the correct and tested converting to and from "quoted-printable" with
encoded UTF8 in LiveCode >7 is:

---
local tChar
local tItem
local tCodedChar
local tCodePoint
local tEncoded
local tDecoded

set the itemdelimiter to "="

// ENCODE EXAMPLE
put "€" into tChar
put textEncode ( tChar , "UTF-8" ) into tCodedChar
repeat for each codePoint tCodePoint in tCodedChar
  put "="& baseConvert ( byteToNum ( tCodePoint ) , 10 , 16 ) after
tEncoded
end repeat
put tEncoded into msg --->  "=E2=82=AC" - the quoted-printable UFT-8
encoding of the Euro symbol "€"

// DECODE EXAMPLE
put "=E2=82=AC" into tEncoded
delete char 1 of tEncoded
repeat for each item tItem in tEncoded
  put numToByte ( BaseConvert ( tItem , 16 , 10 ) ) after tDecoded
end repeat
put textDecode ( tDecoded , "UTF-8" ) into msg --> the Euro symbol "€"
---

Thanks to all.

Given a bit of time, I will post a solution for UTF8 quoted-printable
encoded E-Mail blocks of text in the Forum.

Roland


---

Am Do., 14. Nov. 2019 um 20:41 Uhr schrieb R.H. :
>
> Oh, sorry, I was too quick declaring a solution.
>
> Even though the code of the function works fine, the result also converts
back, but the "quoted-printable" or "UTF-8" code expects that each
codepoint is encoded in Hex with just two ASCII letters representing a
codepoint.
>
> For example, for the Euro symbol "€" we have three codepoints.
> The function below converts to "=E2=201A=AC" while it must be "=E2=82=AC".
> The "=" sign is just a delimiter in quoted-printable.
>
> Now, I do not know what is wrong in my thinking as I am not getting quite
the same results.
> (The result is ok for other symbols such as 'ü'.)
>
> EXAMPLE:
>
> put "€" into tChar
>// First encode to UTF-8:
> put textEncode(tChar,"UTF-8") into tCodedChar
>// Repeat for each codepoint in the UTF-8 char
> repeat for each codePoint tCodePoint in tCodedChar
>// Encode each codepoint to its integer expression and convert to
Hex value:
>   put "="& BaseConvert ( codePointToNum (tCodePoint) , 10 , 16 )
after tEncoded
> end repeat
> put tEncoded into field "Show Codepoints" -- Expected ASCII representing
Hex numbers
> -- Result: "=E2=201A=AC" -- Instead of "=E2=82=AC" , but valid and
working.
>
> The actual "correct" UTF-8 result can be tested here:
http://www.endmemo.com/unicode/unicodeconverter.php
>
> What am I missing?
>
> Thanks a lot
> Roland
___
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: Decoding "quoted-printable" -- Help needed -- Reopened

2019-11-14 Thread R.H. via use-livecode
Oh, sorry, I was too quick declaring a solution.

Even though the code of the function works fine, the result also converts
back, but the "quoted-printable" or "UTF-8" code expects that each
codepoint is encoded in Hex with just two ASCII letters representing a
codepoint.

For example, for the Euro symbol "€" we have three codepoints.
The function below converts to "=E2=201A=AC" while it must be "=E2=82=AC".
The "=" sign is just a delimiter in quoted-printable.

Now, I do not know what is wrong in my thinking as I am not getting quite
the same results.
(The result is ok for other symbols such as 'ü'.)

EXAMPLE:

put "€" into tChar
   // First encode to UTF-8:
put textEncode(tChar,"UTF-8") into tCodedChar
   // Repeat for each codepoint in the UTF-8 char
repeat for each codePoint tCodePoint in tCodedChar
   // Encode each codepoint to its integer expression and convert to
Hex value:
  put "="& BaseConvert ( codePointToNum (tCodePoint) , 10 , 16 ) after
tEncoded
end repeat
put tEncoded into field "Show Codepoints" -- Expected ASCII representing
Hex numbers
-- Result: "=E2=201A=AC" -- Instead of "=E2=82=AC" , but valid and working.

The actual "correct" UTF-8 result can be tested here:
http://www.endmemo.com/unicode/unicodeconverter.php

What am I missing?

Thanks a lot
Roland
___
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


Decoding "quoted-printable" -- Help needed -- Solved

2019-11-14 Thread R.H. via use-livecode
For those interested:

With the help of a privately received message hinting at a solution used
prior to LC7 I was able to construct the required functions for LC 7 and
above.

I must say that I am not really aware of all the many functions LiveCode
presents, I did not even know about baseConvert() before doing a lot of
research. I guess, each of us must go through all the commands and
functions LC provides and study them. It is difficult to find when not
knowing how and what to search for. Also, I had to try to understand what
codepoints are.

Here I am not using the actual quoted-printable format of codepoints in Hex
presentation each with a equal sign "=" as a prefix. That is easy to
retrieve or construct using LiveCode chunk expressions. Instead I am using
comma delimited items.

// The encoding priot to LC7 according to Mark (still works even today)
-- put unidecode(uniencode("e","english"),"UTF8") into x
-- put chartonum(char 1 of x) && chartonum(char 2 of x) into y

// Encoding and decoding UTF-8 for quoted-printable chars (as they may
appear in certain e-mail parts)
set the itemdelimiter to ","
put "€" into tChar -- Using the Euro symbol which is encoded with 3
codepoints (there can be up to 4 for quoted-printable).

// Encode a UTF-8 character to a quoted-printable ASCII encoding
put textEncode( tChar ,"UTF-8") into tCodedChar
repeat for each codePoint tCodePoint in tCodedChar
   put BaseConvert ( codePointToNum (tCodePoint) , 10 , 16 ) &"," after
tEncoded
end repeat
delete last char of tEncoded
put tEncoded &CR into msg -- just for testing

// Decode a quoted-printable ASCII string to UTF-8
put empty into tDecoded
repeat for each item tItem in tEncoded
   put numToCodePoint ( BaseConvert ( tItem , 16, 10 ) ) after tDecoded
end repeat
put textDecode (tDecoded , "UTF-8") after msg -- just for testing

// Result in message box
-- E2,201A,AC -- In actual quoted-printable that would be: "=E2=201A=AC"
and our items must be converted accordingly
-- €

Roland
___
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


Decoding "quoted-printable" -- Help needed

2019-11-12 Thread R.H. via use-livecode
Even with a lot of research and comparing functions in C# and Javascript, I
do understand it yet.

In E-Mail-bodies, the content parts are often either based64-encoded, no
problem with that, but there are also other encodings called
"quoted-printable". This is text that in my case needs to be converted to
UTF-8.

Now, here all characters that are not pure ASCII are marked with a equal
sign "=" (similar to the "%" in an URL encoded string) and the following
two characters define the byte value in Hex notation. There can be one, two
and even three separate byte values for a character encoded in UTF-8.

Example: "F=C3=BCr". This translates to the German Umlaut and would render
to the string "für". The "ü" is not part of the pure ASCII and therefore it
is encoded this way. It is an encoding specific for UTF-8.

Now, as you can see, there is not just one byte represented with "=C3".
There are actually two bytes "=C3=BC": represented in Hex by "C3" and "BC"
each individually converted to decimal notation as 195 and 188. If you
URL-encode the single bytes using "%" instead of "=" such as "%U3" it will
give it's own character whith will be "À". The URL-encoding of "%BC" gives
"Ä". So, this does not help. I have to somenow look at the two bytes
together.

Converting pure ASCI to Hex gives the correct result in other programs:
-- Link: https://www.rapidtables.com/convert/number/ascii-to-hex.html:
-- Enter: "ü"
-- Result: "C3,BC" --- what we are looking for when encoding: Two separate
byte representations.
-- But it only works when the character encoding is UTF-8.

How do I come from "=C3=BC" to codepoint("ü") = 252? What do I need to
calculate?
How do we  decode such "quoted-printable" encoded string to UTF-8?

Thanks in advance...)
Roland
___
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


Help needed / corrupted application stack after quit through splash stack

2018-02-23 Thread R.H. via use-livecode
Using Indy 8.1.9 desktop standalone without encryption (same problem
with earlier versions and community version), Windows 7, 8, 10, different
machines and different users of a large company.

Before filing a bug report or sending a help request, maybe there is a help
here...

This is an urgent question as it is highly critical for the in-house
distribution of this LiveCode application to the sales team of a large
company right now.

I can not really reproduce the problem using my own machine, but it
happened on my machine, on other peoples machines, more or less often.

I developed the app using the splash stack method (small login stack that
is made to be a standalone and actual application stack in a subfolder
called). It works. At least for all users when opening the first time.

Problems appear when opening the app through the splash screen login stack
a second time after quitting. The compiled LiveCode engine of the splash
stack often enough cannot find the application stack any longer because it
is corrupted.

Analyzing the situation, I think, it seems to be a problem quitting the
standalone app resulting in a corrupt application stack (the splash screen
standalone is not affected).

In case of corruption of the application stack, I then find two visible
files in the subfolder with the original filename of the application stack,
one shows a tilde "̃̃˜" at the end of the filename (an indication of
corruption).

Currently, I do not know how to generate a detailed error report for such
standalone. I have a friend who experiences this problem each time, and
each time he wants to use my app, he then takes a fresh copy that is good
only for a 1-time-usage ))).

The quit command is sent from the application stack.

Here are the handlers in the application stack:

on closeStack
saveAndQuit
pass closeStack /* goes to splash stack, engine ... tested with and
without. */
end closeStack

command saveAndQuit
   lock cursor /* Tested with and without locking and showing cursor */
   set the cursor to watch
   save this stack /* auto save, takes a long time, between 10-30 secs */
   wait 100 milliseconds with messages /* does it help? Probably not. */
   unlock cursor /* Testing with or without*/
   lock messages /* Force quit. Tested with and without. */
   quit /* Should quit safely and not corrupt the stack, but stack
sometimes is corrupted */
end saveAndQuit


Any suggestions I highly appreciated.

Thanks to all
Roland
___
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: Socket help needed for API

2017-10-30 Thread Charles Warwick via use-livecode
Hi Richard,

I have an LC external under development that supports websockets that could 
potentially help you.  Feel free to contact me off-list if you would like to 
try it out.

Regards,

Charles

> On 30 Oct 2017, at 9:37 am, Monte Goulding via use-livecode 
>  wrote:
> 
> Hi Richard
> 
> LiveCode does not currently have websocket support. As this has come up 
> recently in a number of areas I had a quick look at the spec 
> (https://tools.ietf.org/html/rfc6455 ). 
> It looks relatively feasible to implement on top of our current socket 
> support in LiveCode script. Possibly as part of libURL or a separate library.
> 
> Cheers
> 
> Monte
> 
>> On 29 Oct 2017, at 10:49 pm, Richard Miller via use-livecode 
>>  wrote:
>> 
>> I have been using LC to access an API through conventional means, but that 
>> site has now changed to a socket protocol. I have tried various methods, but 
>> just can’t get it to work.
>> 
>> I would appreciate it if someone familiar with sockets could take a look and 
>> show me how to do this. I only need to know how to establish a connection 
>> and receive data. I can take it from there.
>> 
>> The information I am looking to receive is what is produced through this now 
>> deprecated API. It is a list of all of the digital tokens being traded at 
>> this site. (Note: you may have to send this link a few times in order to get 
>> a response. The site is often overloaded.)
>> 
>>put https://api.etherdelta.com/returnTicker
>> 
>> I want to receive the same information, but using the new socket-based API 
>> shown here.
>> 
>> https://github.com/etherdelta/etherdelta.github.io/blob/master/docs/API.md
>> https://github.com/etherdelta/etherdelta.github.io/tree/master/bots
>> 
>> Thank you very much for help with this.
>> Richard Miller
>> 
>> ___
>> 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: Socket help needed for API

2017-10-29 Thread Monte Goulding via use-livecode
Hi Richard

LiveCode does not currently have websocket support. As this has come up 
recently in a number of areas I had a quick look at the spec 
(https://tools.ietf.org/html/rfc6455 ). It 
looks relatively feasible to implement on top of our current socket support in 
LiveCode script. Possibly as part of libURL or a separate library.

Cheers

Monte

> On 29 Oct 2017, at 10:49 pm, Richard Miller via use-livecode 
>  wrote:
> 
> I have been using LC to access an API through conventional means, but that 
> site has now changed to a socket protocol. I have tried various methods, but 
> just can’t get it to work.
> 
> I would appreciate it if someone familiar with sockets could take a look and 
> show me how to do this. I only need to know how to establish a connection and 
> receive data. I can take it from there.
> 
> The information I am looking to receive is what is produced through this now 
> deprecated API. It is a list of all of the digital tokens being traded at 
> this site. (Note: you may have to send this link a few times in order to get 
> a response. The site is often overloaded.)
> 
> put https://api.etherdelta.com/returnTicker
> 
> I want to receive the same information, but using the new socket-based API 
> shown here.
> 
> https://github.com/etherdelta/etherdelta.github.io/blob/master/docs/API.md
> https://github.com/etherdelta/etherdelta.github.io/tree/master/bots
> 
> Thank you very much for help with this.
> Richard Miller
> 
> ___
> 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

Socket help needed for API

2017-10-29 Thread Richard Miller via use-livecode
I have been using LC to access an API through conventional means, but 
that site has now changed to a socket protocol. I have tried various 
methods, but just can’t get it to work.


I would appreciate it if someone familiar with sockets could take a look 
and show me how to do this. I only need to know how to establish a 
connection and receive data. I can take it from there.


The information I am looking to receive is what is produced through this 
now deprecated API. It is a list of all of the digital tokens being 
traded at this site. (Note: you may have to send this link a few times 
in order to get a response. The site is often overloaded.)


    put https://api.etherdelta.com/returnTicker

I want to receive the same information, but using the new socket-based 
API shown here.


https://github.com/etherdelta/etherdelta.github.io/blob/master/docs/API.md
https://github.com/etherdelta/etherdelta.github.io/tree/master/bots

Thank you very much for help with this.
Richard Miller

___
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

WebSocket API help needed

2017-10-27 Thread Richard Miller via use-livecode
I have been using LC to access an API through conventional means, but 
that site has now changed access to use a WebSocket protocol. I have 
tried various methods, but just can’t get it to work.


I would appreciate it if someone familiar with sockets could take a look 
and show me how to do this.


The information I am looking to receive is what is produced through this 
now deprecated API. It is a list of all of the digital tokens being 
traded at this site. (Note: you may have to send this link a few times 
in order to get a response. The site is often overloaded.)


    put https://api.etherdelta.com/returnTicker

I want to receive the same information, but using the new WebSocket API 
shown here.


https://github.com/etherdelta/etherdelta.github.io/blob/master/docs/API.md
https://github.com/etherdelta/etherdelta.github.io/tree/master/bots

Thank you very much for help with this.
Richard Miller

___
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: Help needed with a nasty bug

2017-08-04 Thread Mike Kerner via use-livecode
Can we have more info on the configurations of the folks seeing this?
Win version
Machine config
VM - Y/N, brand, version
___
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


Help needed with a nasty bug

2017-08-04 Thread panagiotis merakos via use-livecode
Hi all,

At least 3 users have reported a strange bug on Windows with any version of
LC 8, which unfortunately we are unable to reproduce (and thus unable to
fix, so far).

The fact that it affects only 3 users and this happens in *every* LC 8
version, suggests that the problem is caused by a specific combination of
LC and something else in the affected users PC's configurations.

So the bug is that when LC starts, an error dialog "error while loading
stack: revidelibrary.8.livecodescript" is shown.

The IDE then starts correctly, but the Dictionary is empty. Essentially the
problem is that *something* happens and the dictionary data is not
generated.

We have tried the usual suspects:

1. Deleting Prefs
2. Deleting Documentation Cache
3. Deleting My LiveCode folder
4. Examining the LiveCodeToolsLog.txt

but none of them got us anywhere.

So my questions are:

1. Have you ever seen that?
2. Do you still see that?
3. If you saw that in the past but you don't see it now, do you know/guess
what change in your configurations could have fixed it
4. If you see that on a Windows VM, are you willing to send us the VM (we
are happy to sign an NDA) so as we have a machine where we can reproduce
this bug?

Thanks,
Panos

--

PS: For reference, this is the bug report:

http://quality.livecode.com/show_bug.cgi?id=19729
which is a duplicate of
http://quality.livecode.com/show_bug.cgi?id=17374
___
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: Raspberry Pi help needed soon

2017-05-27 Thread Mark Rauterkus via use-livecode
Yes Richard.

Sing it again and again.

Wow to that news.

LiveCode needs to show up there, with bells on.
___
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


Raspberry Pi help needed soon

2017-05-26 Thread Richard Gaskin via use-livecode

From this morning's news:

  Raspberry Pi is merging with a coding foundation
  Together, Raspberry Pi and CoderDojo hope to reach 185,000 young
  people in more than 100 countries all over the planet.


This is a great move for both orgs and their audiences, but implies a 
risk for LiveCode platform adoption in further consolidation of 
entrenched support for Scratch and Python.


This suggests that the sooner we can get an updated functional build of 
LiveCode for Raspberry Pi, the better for both our beloved platform and 
RPi users everywhere who currently have to struggle with the gap between 
Scratch and Python.


A LC user on the Glitter channel mentioned working on a new build of LC 
v9 for RPi, but requests for more info have not met with a reply.


We have a forum set up for coordinating these efforts but the two people 
there who've expressed an interest in setting up a build system have run 
into snags with compilation, and support from the LC core dev team has 
not yet materialized:

http://forums.livecode.com/viewtopic.php?f=76&t=27912

If any of you know your way around a compiler and may be able to lend a 
hand, it would be very valuable for the LiveCode platform to be able to 
run well on Raspberry Pi as soon as practical.


--
 Richard Gaskin
 LiveCode Community Liaison
 rich...@livecode.org

___
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: Help needed with scaleFactor and scaling

2017-02-18 Thread Colin Holgate via use-livecode
This seems to work (to make button 1 appear to be 100 pixels from the top and 
left, and to appear to be 200 wide and 150 tall):

on fixit
   put random(10)/10 + 1 into it
   set the scalefactor of this stack to it
   set the rect of btn 1 to 100/it,100/it,100/it+100/it,100/it+50/it
end fixit



___
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


Help needed with scaleFactor and scaling

2017-02-18 Thread Dan Friedman via use-livecode
Can anyone figure out the math to resize a control so it appears to be 
unchanged when you set the scaleFactor of a stack?  For example… you have a 
button who’s rect is 100,100,400,400.  On the screen, it looks to be 300px 
wide.  Now, if you set the scaleFactor to 1.5, what rect do you have to set the 
button to get it to “appear” to remain 300px wide?  At first, I thought it 
would simply be each item of the rect/scaleFactor.  But, that doesn’t do it.  I 
feels like you have to get the DPI of the active display and somehow use that 
as part of the equation.  Any ideas?

Thanks in advance,
-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: Ideas for LiveCode workshops - help needed

2016-08-16 Thread Dave Kilroy
Thank you all for your ideas, questions and suggestions

First of all, as regards who will be coming to the workshop - basically I’ll 
take anyone with a pulse (might even take the undead…). 

Therefore I have to cater for a wide range of capabilities. Maybe in the future 
when I have more of an established audience/group here I can do stuff more 
tailored to what they need but as of now I need to cater for as wide an 
audience as possible (hence my email to the usegroup)

That said, from other workshops I’ve done here I think I’ll have two main types 
- those who are completely new to coding and those who are proficient in other 
languages and want to give LiveCode a whirl…

It sounds like between us all LiveCoders we have a long list of training we 
would like to receive ourselves, if I have time I’ll set up a Facebook survey 
thingy to see what the most popular workshop topics might be - and from there 
we could see what ways we would have to addressing that need.

So as to my workshop on September 17th, I think I’m gravitating towards the fun 
‘scribbling-on-photos-of-your-friends’ app idea - I know how to do a basic 
version of scribbling on mobile and if others were to donate more advanced 
graphic-effect snippets (I’m looking at you John) that would be lovely to keep 
my more advanced participants happy

Kind regards

Dave

PS: Come to Plymouth on September 17th for a fun day with LiveCode! 
http://www.meetup.com/The-THINQTANQ-Events-Meetups-and-More-in-Plymouth/events/226749341/
 

PPS: the £10 charge goes to the venue and not to me...


> Ditto what Graham said: 
> 
> We semi-proficient coders hit the wall when we create a scrolling group on 
> desktop and then transfer to our iPhone and it doesn't scroll or set a simple 
> player to a URL for an mp3 on web server and discover that you need a to 
> create a mobile player. What if you have content (a little puzzle game) that 
> really should only be viewed/locked down in landscape?  and this is on card 3 
> of a stack that is otherwise portrait? on desktop it’s a 4-line-of-code 
> simple resize trick. "Wow Livecode is so cool" newbie feels proud they 
> figured that out. Not so on mobile. For the level of workshop you are 
> targeting perhaps (my guess) this would probably be an "advanced track" .. 
> these are the things that someone Javascript person watching over your 
> shoulder says "really, why don't you do this all in HTML 5?"  because it like 
> its  s hard (in livecode) and the html5 world has thousands of answers…" 
> [I'm not buying it yet. I've seen some of these html5 apps with their snake 
> pit of libraries and dependencies and 5 times the lines of code in the end 
> and the endless javascript debugging of what doesn't-quite-work-right yet… 
> until the code becomes so opaque that even the developer himself can hardly 
> read it 6 months later. Give me LC any day… but some things are stil too hard 
> in LC.] 
> 
> And, yes: iOS provisioning, Android developer ID et al: a dark grey mountain 
> of mystery that needs sunlight for the newbie. after a year.. I *think* have 
> iOS pretty much figured… but still putting off building for android locally. 
> Challenge is, non-professionals are no doing this day-in-day-out so we really 
> depend on thorough documentation and examples, that is missing in manby cases 
> or out of date (Livecode lessons are pretty good for some things, but not 
> all) 
> 
> So your work shop can include supplementary material on "where to find what 
> you need to know; disclaimer, everything you need to know may or many not be 
> there." 
> 
> BR 
> 
> 
>> Graham Samuel" <[hidden email] 
>> 
>>  on behalf of [hidden email] 
>> >
>>  wrote: 
>> 
>> so I’d like to see a workshop that creates a trivial app (say a 
>> variation on the clock/stopwatch theme - but it could be anything), 
>> discusses the differences (if any) needed in the code for different 
>> platforms, and which is then actually installed on all the available 
>> platforms, indicating all the pitfalls of deploying on iOS, Android, Mac, 
>> Windows, Linux - what installer software to use, getting stuff 
>> approved/certificated etc. and including a jargon-buster for the deployment 
>> end of things ("what’s device provisioning?" for example). 
>> 
>>> On 4 Aug 2016, at 23:50, Dave Kilroy  wrote:
>>> 
>>> Thank you all for your ideas and suggestions!
>>> 
>>> I’m summarising them as follows:
>>> A drag and drop matching game. 
>>> A to-do list app. 
>>> A simple e-reader app. 
>>> A walking tour app with a map that you can click for additional information 
>>> and photos. 
>>> An app that helps with web research (grab text and images, write notes & 
>>> emails, filter a

Re: Ideas for LiveCode workshops - help needed

2016-08-07 Thread Sannyasin Brahmanathaswami
Ditto what Graham said:

We semi-proficient coders hit the wall when we create a scrolling group on 
desktop and then transfer to our iPhone and it doesn't scroll or set a simple 
player to a URL for an mp3 on web server and discover that you need a to create 
a mobile player. What if you have content (a little puzzle game) that really 
should only be viewed/locked down in landscape?  and this is on card 3 of a 
stack that is otherwise portrait? on desktop it’s a 4-line-of-code simple 
resize trick. "Wow Livecode is so cool" newbie feels proud they figured that 
out. Not so on mobile. For the level of workshop you are targeting perhaps (my 
guess) this would probably be an "advanced track" .. these are the things that 
someone Javascript person watching over your shoulder says "really, why don't 
you do this all in HTML 5?"  because it like its  s hard (in livecode) and 
the html5 world has thousands of answers…" [I'm not buying it yet. I've seen 
some of these html5 apps with their snake pit of libraries and dependencies and 
5 times the lines of code in the end and the endless javascript debugging of 
what doesn't-quite-work-right yet… until the code becomes so opaque that even 
the developer himself can hardly read it 6 months later. Give me LC any day… 
but some things are stil too hard in LC.]

And, yes: iOS provisioning, Android developer ID et al: a dark grey mountain of 
mystery that needs sunlight for the newbie. after a year.. I *think* have iOS 
pretty much figured… but still putting off building for android locally. 
Challenge is, non-professionals are no doing this day-in-day-out so we really 
depend on thorough documentation and examples, that is missing in manby cases 
or out of date (Livecode lessons are pretty good for some things, but not all)

So your work shop can include supplementary material on "where to find what you 
need to know; disclaimer, everything you need to know may or many not be there."

BR


Graham Samuel"  wrote:

so I’d like to see a workshop that creates a trivial app (say a variation 
on the clock/stopwatch theme - but it could be anything), discusses the 
differences (if any) needed in the code for different platforms, and which is 
then actually installed on all the available platforms, indicating all the 
pitfalls of deploying on iOS, Android, Mac, Windows, Linux - what installer 
software to use, getting stuff approved/certificated etc. and including a 
jargon-buster for the deployment end of things ("what’s device provisioning?" 
for example).



___
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: Ideas for LiveCode workshops - help needed

2016-08-05 Thread Graham Samuel
Dave, for me and I would guess a lot of others who aren’t so bad at coding in 
LC, **deployment** on the chosen platforms is the BIG show-stopper; so I’d like 
to see a workshop that creates a trivial app (say a variation on the 
clock/stopwatch theme - but it could be anything), discusses the differences 
(if any) needed in the code for different platforms, and which is then actually 
installed on all the available platforms, indicating all the pitfalls of 
deploying on iOS, Android, Mac, Windows, Linux - what installer software to 
use, getting stuff approved/certificated etc. and including a jargon-buster for 
the deployment end of things ("what’s device provisioning?" for example).

Just my two eurocents, or Brexit pence. (Will the Scots keep GBP if they break 
away?)

Graham

> On 4 Aug 2016, at 23:50, Dave Kilroy  wrote:
> 
> Thank you all for your ideas and suggestions!
> 
> I’m summarising them as follows:
> A drag and drop matching game. 
> A to-do list app. 
> A simple e-reader app. 
> A walking tour app with a map that you can click for additional information 
> and photos. 
> An app that helps with web research (grab text and images, write notes & 
> emails, filter and ordering).
> A client-server user registration system. 
> A bare bones personal cloud type thing with clients for every platform.
> Go through all past conferences and look at the different track subject 
> matter. 
> Try to solicit other to be presenters.   
> Focus on UI/UX - everything must look 2016 rather than 1995
> 
> I’ve also remembered a suggestion I once got from a teacher for a workshop 
> topic "A humorous photo editor (draw moustaches etc on photos of your 
> friends)"
> 
> 
> MESSAGING APP
> 
> @rjd318 this is a link to a thread on the forum from a year ago covering the 
> workshop where we did the messaging app (including an introductory video and 
> download link to get the stack and .lc script) 
> http://forums.livecode.com/viewtopic.php?f=8&t=24465 
> . Since then I ran 
> another version of this workshop in a different environment and I added some 
> more polish to the app - let me know if what I did was of interest and I’ll 
> dig out the newer version for you. 
> 
> Got any more ideas? Keep ‘em coming!
> 
> Kind regards
> 
> Dave
> 
> 
> 
>> On 4 Aug 2016, at 09:54, Dave Kilroy  wrote:
>> 
>> This is a request for ideas for LiveCode workshops
>> 
>> That is, where one of us is organising a day-long workshop on LiveCode and 
>> are looking for a main topic for the day.
>> 
>> I’m not looking for fully-worked up teaching resources (although that would 
>> be nice), but general ideas or topics for the workshop - so that we can say 
>> to people, and publicise “come to this LiveCode workshop where we will build 
>> …” or “at this LiveCode workshop you will learn how to …”. 
>> 
>> In the past I’ve done LiveCode workshops where the main idea has been:
>> - build a mobile messaging app (that connects to a web service and mysql 
>> database)
>> - build desktop widgets (little things like an app that watches a folder, 
>> using the clipboard etc)
>> - learn how to search documents and save notes with LiveCode
>> 
>> I think my ideal would be to get an idea which is:
>> -  a ‘draw’ (afterall I want lots of people to turn up!), something like 
>> “learn now to connect to the Pokemon Go! API”
>> - doesn’t involve me doing too too much preparation work for the workshop
>> - can give a positive experience to participants with differing levels of 
>> ability (perhaps by my preparing some partly completed exercises for those 
>> who need them) 
>> 
>> So, ideas and suggestions please!
>> 
>> Kind regards
>> 
>> Dave
>> 
>> PS: my next workshop is on 17th September and I haven’t decided what to go 
>> in it 
>> http://www.meetup.com/The-THINQTANQ-Events-Meetups-and-More-in-Plymouth/events/226749341/
>>  
>> 
>> PPS: ask potential participants what the workshop topic should be usually 
>> doesn’t help much!
>> 
>> 
>> 
> 
> ___
> 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: Ideas for LiveCode workshops - help needed

2016-08-05 Thread Kay C Lan
Dave,

the first question is what is your aim? Is it to show people how to
program in LC or is it to hilight how LC can help them?

If it is the former, then most of the suggestions given will fit the
bill perfectly; they are just examples of something already done, but
you show them how to do it in LC.

If it is the later, then you need to know your audience and ask them
the question, what is it that you want your computer to do that it
doesn't do for you now. What frustrates you about your computer, or
some program that you know should be smart enough to do it itself but
it just doesn't do it. People say the LC, just like HC before it, is a
strange beast to describe, and whilst that may be true for what LC
'is', it's not the case for what LC does or can do. I'm sure everyone
here, if someone asked "can you do X, Y and/or Z with LC", would be
able to respond with how to build a solution with LC.

If I attended a workshop that showed me how to build a database, to do
list, or e-reader, I wouldn't be engaged because I'd be spending the
whole time wondering why I just didn't use the one already on my
computer - (assuming I'm not there specifically to learn how to do
this in LC language). On the other hand, if the instructions relates
to a real life problem, even if it's not my problem, and I can't find
the answer on the App Store, then I'm engaged and interested in how
the problem is solved.

When you ask people what they'd really like their computer to do,
everyone can think of something and it will usually fall within 3
categories:
1) An app or utility that doesn't exist
2) The automation of a manual process, and closely related
3) The communication between disparate systems

If you are dealing with the younger generation then it will likely
centre around games or social media. Back when my boys were young and
I was still using HC, Warhammers were the big thing. Like Dungeon's
and Dragons, the rules are vast and complex. and every army had it's
own book of rules. Those books were expensive, constantly in use,
being abused and occasionally lost. I was surprised there was no
electronic rule book, so I helped my boys build one, which not only
sped up game play but removed 'accidental' misreading of lines about
whose man was stronger.

For adults it may be hobby or past time related;  I enjoy cycling. My
Garmin GPS bicycle computer records a massive amount of data,
including speed, cadence and elevation. What it doesn't tell me is
what gear I'm in *. But given the gear ratios, and working with speed
and cadence it's possible to figure it out. So I built a utility that
would extract the data, compare it to the gear ratios, and therefore
extrapolate which gear I was in; thereby help performance analysis.

* with the new electronic bike shifters, and latest generation Bike
Computers, this information is now recorded - I was ahead of the times
in recognising the need to know 'which gear' in determining optimum
performance;-)

At work the problem is likely to be 'automated' related. I'm
constantly fed pdf reports which are great for reading but useless for
extracting information and comparing with previous reports. I have a
script which contacts our work server, gets the latest batch of
reports, which I feed to an AppleScript to turn them into text, which
I then parse into data fields that are fed into a DB. My stack
automatically looks for data points which are outliers as well as
points that I personally set as triggers.

As for communicating with disparate systems I recall someone on the
List recently wanting to extract electoral result information off the
net. Each year I'm involved a team of about 60 people who take 4 karts
to a 24hr Human Powered Vehicle competition. The karts are fitted with
transponders and the events timing is done by TSL Timing Solutions
Limited, which mainly does motor vehicle racing. TSL transmits the
data to the web. For years we'd been doing manually timing, so we
could analyse every pedalers performance. Understandably a manual stop
watch is not as accurate as an electronic transponder and mistakes
were common. This is a job for LC; a webpage scraper, parse out each
of our Team karts data, and all our timers have to do is manually
enter the pedalers name at each pit stop. Easy.

I'm sure everyone here can think of dozens of example of little dirty
apps they've built because you 'just can' with LC.

If you are trying to promote LC, not just programming, then I'd
recommend, if it's at all possible beforehand, to glean from your
audience a particular problem to solve, and then show them how LC is
the perfect choice in solving the 'individual's problem'.

What is LC... it's the answer, you just need to determine the problem.

My 2 shekels worth

___
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-liveco

Re: Ideas for LiveCode workshops - help needed

2016-08-04 Thread Dave Kilroy
Thank you all for your ideas and suggestions!

I’m summarising them as follows:
A drag and drop matching game. 
A to-do list app. 
A simple e-reader app. 
A walking tour app with a map that you can click for additional information and 
photos. 
An app that helps with web research (grab text and images, write notes & 
emails, filter and ordering).
A client-server user registration system. 
A bare bones personal cloud type thing with clients for every platform.
Go through all past conferences and look at the different track subject matter. 
Try to solicit other to be presenters.   
Focus on UI/UX - everything must look 2016 rather than 1995

I’ve also remembered a suggestion I once got from a teacher for a workshop 
topic "A humorous photo editor (draw moustaches etc on photos of your friends)"


MESSAGING APP

@rjd318 this is a link to a thread on the forum from a year ago covering the 
workshop where we did the messaging app (including an introductory video and 
download link to get the stack and .lc script) 
http://forums.livecode.com/viewtopic.php?f=8&t=24465 
. Since then I ran 
another version of this workshop in a different environment and I added some 
more polish to the app - let me know if what I did was of interest and I’ll dig 
out the newer version for you. 

Got any more ideas? Keep ‘em coming!

Kind regards

Dave



> On 4 Aug 2016, at 09:54, Dave Kilroy  wrote:
> 
> This is a request for ideas for LiveCode workshops
> 
> That is, where one of us is organising a day-long workshop on LiveCode and 
> are looking for a main topic for the day.
> 
> I’m not looking for fully-worked up teaching resources (although that would 
> be nice), but general ideas or topics for the workshop - so that we can say 
> to people, and publicise “come to this LiveCode workshop where we will build 
> …” or “at this LiveCode workshop you will learn how to …”. 
> 
> In the past I’ve done LiveCode workshops where the main idea has been:
> - build a mobile messaging app (that connects to a web service and mysql 
> database)
> - build desktop widgets (little things like an app that watches a folder, 
> using the clipboard etc)
> - learn how to search documents and save notes with LiveCode
> 
> I think my ideal would be to get an idea which is:
> -  a ‘draw’ (afterall I want lots of people to turn up!), something like 
> “learn now to connect to the Pokemon Go! API”
> - doesn’t involve me doing too too much preparation work for the workshop
> - can give a positive experience to participants with differing levels of 
> ability (perhaps by my preparing some partly completed exercises for those 
> who need them) 
> 
> So, ideas and suggestions please!
> 
> Kind regards
> 
> Dave
> 
> PS: my next workshop is on 17th September and I haven’t decided what to go in 
> it 
> http://www.meetup.com/The-THINQTANQ-Events-Meetups-and-More-in-Plymouth/events/226749341/
>  
> 
> PPS: ask potential participants what the workshop topic should be usually 
> doesn’t help much!
> 
> 
> 

___
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: Ideas for LiveCode workshops - help needed

2016-08-04 Thread Sannyasin Brahmanathaswami
1) consider a way to do these on line… possibly shorter (I'm in Hawaii 
so…..attendance is limited)

2) go thru all past conferences and look at the different track subject matter: 
These were well thought out and could serve as a theme for a number of work 
shops.

3) try to solicit other to be presenters with the understanding that even a 
"newbie" could be a presenter. i.e. the presenter's job is also just to "kick 
off" the workshop… so the newbie presenter picks the subject and say "OK here's 
what I'm trying to do in Livecode today, and given my very little experience 
here are the methods I'm using… what do you think."  

4) Focus on UI/UX  so that you can position Livecode as a tool that can meet 
modern design requirements/expectations i.e. everything that the users actually 
sees and interacts with must look 2016 and not 1995. HOW TO: 
   -- handling type
   -- images on screen
   -- gradients, backgrounds
   -- simple animation (parallax, kenburn movement in the background)
   -- color
   -- buttons, icons

 

On 8/3/16, 10:54 PM, "use-livecode on behalf of Dave Kilroy" 
 wrote:


So, ideas and suggestions please!

___
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: Ideas for LiveCode workshops - help needed

2016-08-04 Thread Matt Maier
hostm.com has a tutorial with a desktop stack and server scripts that
allows you to add users to a database on the server from the desktop using
HTTPS.

It would be neat to have a generic "track stuff" app in Livecode that's got
all the if-then's and libraries and whatnot to be compiled and work on
every platform. That way people could just expand on the "stuff to track"
part because the rest of it already works. Sort of a bare bones personal
cloud type thing with clients for every platform. Getting the platforms to
talk to each other is esoteric.

On Thu, Aug 4, 2016 at 6:04 PM, Richard Gaskin 
wrote:

> How about a client-server user registration system?
>
> Everyone needs one, and in addition to being widely useful it would
> demonstrate making HTTPS calls from LC clients, server-side DB use, and
> other things that play an ever more pervasive role in our increasingly
> cloud-driven world.
>
> --
>  Richard Gaskin
>  Fourth World Systems
>  Software Design and Development for the Desktop, Mobile, and the Web
>  
>  ambassa...@fourthworld.comhttp://www.FourthWorld.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


Re: Ideas for LiveCode workshops - help needed

2016-08-04 Thread Earthednet-wp
An app that interacts with the cloud and/or web services would be of great 
interest to me.
Bill

William Prothero
http://es.earthednet.org

> On Aug 4, 2016, at 8:04 AM, Richard Gaskin  wrote:
> 
> How about a client-server user registration system?
> 
> Everyone needs one, and in addition to being widely useful it would 
> demonstrate making HTTPS calls from LC clients, server-side DB use, and other 
> things that play an ever more pervasive role in our increasingly cloud-driven 
> world.
> 
> -- 
> Richard Gaskin
> Fourth World Systems
> Software Design and Development for the Desktop, Mobile, and the Web
> 
> ambassa...@fourthworld.comhttp://www.FourthWorld.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


Re: Ideas for LiveCode workshops - help needed

2016-08-04 Thread Richard Gaskin

How about a client-server user registration system?

Everyone needs one, and in addition to being widely useful it would 
demonstrate making HTTPS calls from LC clients, server-side DB use, and 
other things that play an ever more pervasive role in our increasingly 
cloud-driven world.


--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.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: Ideas for LiveCode workshops - help needed

2016-08-04 Thread Richard Gaskin

Robert Mann wrote:
> or is filemaker simpler to set and use than livecode?? ah ah!!

I would certainly hope so.

FileMaker is a wonderful tool, but is designed to deliver one category 
of application, a database.


LiveCode is a far more flexible tool designed to deliver thousands of 
categories of applications.


If FileMaker were as flexible as LC, it would have to be as complex.

But thankfully for their happy users they've focused on just one task, 
and they do it well.


--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.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: Ideas for LiveCode workshops - help needed

2016-08-04 Thread Rick Harrison
Hi Dave, 

A simple one might be on how to use the new dictionary interface
to find anything one might be looking for.  ;-)

Hope that helps!

Rick

 
> On Aug 4, 2016, at 4:54 AM, Dave Kilroy  wrote:
> 
> This is a request for ideas for LiveCode workshops
> 
> That is, where one of us is organising a day-long workshop on LiveCode and 
> are looking for a main topic for the day.
> 
> I’m not looking for fully-worked up teaching resources (although that would 
> be nice), but general ideas or topics for the workshop - so that we can say 
> to people, and publicise “come to this LiveCode workshop where we will build 
> …” or “at this LiveCode workshop you will learn how to …”. 
> 
> In the past I’ve done LiveCode workshops where the main idea has been:
> - build a mobile messaging app (that connects to a web service and mysql 
> database)
> - build desktop widgets (little things like an app that watches a folder, 
> using the clipboard etc)
> - learn how to search documents and save notes with LiveCode
> 
> I think my ideal would be to get an idea which is:
> -  a ‘draw’ (afterall I want lots of people to turn up!), something like 
> “learn now to connect to the Pokemon Go! API”
> - doesn’t involve me doing too too much preparation work for the workshop
> - can give a positive experience to participants with differing levels of 
> ability (perhaps by my preparing some partly completed exercises for those 
> who need them) 
> 
> So, ideas and suggestions please!
> 
> Kind regards
> 
> Dave
> 
> PS: my next workshop is on 17th September and I haven’t decided what to go in 
> it 
> http://www.meetup.com/The-THINQTANQ-Events-Meetups-and-More-in-Plymouth/events/226749341/
>  
> 
> PPS: ask potential participants what the workshop topic should be usually 
> doesn’t help much!
> 
> 
> 
> ___
> 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: Ideas for LiveCode workshops - help needed

2016-08-04 Thread dunbarx
Hi.


It sounds like the workshops are intermediate-level and above, for those with 
considerable experience with LC already.  True?


Craig Newman





-Original Message-
From: Dave Kilroy 
To: How to use LiveCode 
Sent: Thu, Aug 4, 2016 4:55 am
Subject: Ideas for LiveCode workshops - help needed

This is a request for ideas for LiveCode workshopsThat is, where one of us is 
organising a day-long workshop on LiveCode and are looking for a main topic for 
the day.I’m not looking for fully-worked up teaching resources (although that 
would be nice), but general ideas or topics for the workshop - so that we can 
say to people, and publicise “come to this LiveCode workshop where we will 
build …” or “at this LiveCode workshop you will learn how to …”. In the past 
I’ve done LiveCode workshops where the main idea has been:- build a mobile 
messaging app (that connects to a web service and mysql database)- build 
desktop widgets (little things like an app that watches a folder, using the 
clipboard etc)- learn how to search documents and save notes with LiveCodeI 
think my ideal would be to get an idea which is:-  a ‘draw’ (afterall I want 
lots of people to turn up!), something like “learn now to connect to the 
Pokemon Go! API”- doesn’t involve me doing too too much preparation work for 
the workshop- can give a positive experience to participants with differing 
levels of ability (perhaps by my preparing some partly completed exercises for 
those who need them) So, ideas and suggestions please!Kind regardsDavePS: my 
next workshop is on 17th September and I haven’t decided what to go in it 
http://www.meetup.com/The-THINQTANQ-Events-Meetups-and-More-in-Plymouth/events/226749341/
 
<http://www.meetup.com/The-THINQTANQ-Events-Meetups-and-More-in-Plymouth/events/226749341/>PPS:
 ask potential participants what the workshop topic should be usually doesn’t 
help much!___use-livecode mailing 
listuse-livecode@lists.runrev.comPlease 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: Ideas for LiveCode workshops - help needed

2016-08-04 Thread Robert Mann
How about something really down to earth? 

>> a simple database, like filemaker, that help dealing with day to day web
>> research :

• grab web pages picture and the link, 
• allow to write notes & emails
• and basic search & ordering functions.

or is filemaker simpler to set and use than livecode?? ah ah!!





--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Ideas-for-LiveCode-workshops-help-needed-tp4707234p4707241.html
Sent from the Revolution - User mailing list archive at Nabble.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: Ideas for LiveCode workshops - help needed

2016-08-04 Thread rjd318
Yikes! My eyes widened when I saw that you did a workshop previously on a 
messaging app utilizing a web service and MySQL since that is what I woke up 
this morning thinking about learning how to do 😊   Do you have the materials or 
stacks available for us to look at?

Sent from my iPhone

> On Aug 4, 2016, at 3:54 AM, Dave Kilroy  wrote:
> 
> This is a request for ideas for LiveCode workshops
> 
> That is, where one of us is organising a day-long workshop on LiveCode and 
> are looking for a main topic for the day.
> 
> I’m not looking for fully-worked up teaching resources (although that would 
> be nice), but general ideas or topics for the workshop - so that we can say 
> to people, and publicise “come to this LiveCode workshop where we will build 
> …” or “at this LiveCode workshop you will learn how to …”. 
> 
> In the past I’ve done LiveCode workshops where the main idea has been:
> - build a mobile messaging app (that connects to a web service and mysql 
> database)
> - build desktop widgets (little things like an app that watches a folder, 
> using the clipboard etc)
> - learn how to search documents and save notes with LiveCode
> 
> I think my ideal would be to get an idea which is:
> -  a ‘draw’ (afterall I want lots of people to turn up!), something like 
> “learn now to connect to the Pokemon Go! API”
> - doesn’t involve me doing too too much preparation work for the workshop
> - can give a positive experience to participants with differing levels of 
> ability (perhaps by my preparing some partly completed exercises for those 
> who need them) 
> 
> So, ideas and suggestions please!
> 
> Kind regards
> 
> Dave
> 
> PS: my next workshop is on 17th September and I haven’t decided what to go in 
> it 
> http://www.meetup.com/The-THINQTANQ-Events-Meetups-and-More-in-Plymouth/events/226749341/
>  
> 
> PPS: ask potential participants what the workshop topic should be usually 
> doesn’t help much!
> 
> 
> 
> ___
> 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: Ideas for LiveCode workshops - help needed

2016-08-04 Thread Devin Asay
If you can remind me of when I did that I can try to find the materials. ;-)

> On Aug 4, 2016, at 5:21 AM, rjd318  wrote:
> 
> Yikes! My eyes widened when I saw that you did a workshop previously on a 
> messaging app utilizing a web service and MySQL since that is what I woke up 
> this morning thinking about learning how to do 😊   Do you have the materials 
> or stacks available for us to look at?
> 
> Sent from my iPhone
> 
>> On Aug 4, 2016, at 3:54 AM, Dave Kilroy  wrote:
>> 
>> This is a request for ideas for LiveCode workshops
>> 
>> That is, where one of us is organising a day-long workshop on LiveCode and 
>> are looking for a main topic for the day.
>> 
>> I’m not looking for fully-worked up teaching resources (although that would 
>> be nice), but general ideas or topics for the workshop - so that we can say 
>> to people, and publicise “come to this LiveCode workshop where we will build 
>> …” or “at this LiveCode workshop you will learn how to …”. 
>> 
>> In the past I’ve done LiveCode workshops where the main idea has been:
>> - build a mobile messaging app (that connects to a web service and mysql 
>> database)
>> - build desktop widgets (little things like an app that watches a folder, 
>> using the clipboard etc)
>> - learn how to search documents and save notes with LiveCode
>> 
>> I think my ideal would be to get an idea which is:
>> -  a ‘draw’ (afterall I want lots of people to turn up!), something like 
>> “learn now to connect to the Pokemon Go! API”
>> - doesn’t involve me doing too too much preparation work for the workshop
>> - can give a positive experience to participants with differing levels of 
>> ability (perhaps by my preparing some partly completed exercises for those 
>> who need them) 
>> 
>> So, ideas and suggestions please!
>> 
>> Kind regards
>> 
>> Dave
>> 
>> PS: my next workshop is on 17th September and I haven’t decided what to go 
>> in it 
>> http://www.meetup.com/The-THINQTANQ-Events-Meetups-and-More-in-Plymouth/events/226749341/
>>  
>> 
>> PPS: ask potential participants what the workshop topic should be usually 
>> doesn’t help much!
>> 
>> 
>> 
>> ___
>> 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

Devin Asay
Learn to code with LiveCode University
https://livecode.com/store/education/

___
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: Ideas for LiveCode workshops - help needed

2016-08-04 Thread Devin Asay

> On Aug 4, 2016, at 2:54 AM, Dave Kilroy  wrote:
> 
> This is a request for ideas for LiveCode workshops
> 
> That is, where one of us is organising a day-long workshop on LiveCode and 
> are looking for a main topic for the day.
> 
> I’m not looking for fully-worked up teaching resources (although that would 
> be nice), but general ideas or topics for the workshop - so that we can say 
> to people, and publicise “come to this LiveCode workshop where we will build 
> …” or “at this LiveCode workshop you will learn how to …”. 
> 
> In the past I’ve done LiveCode workshops where the main idea has been:
> - build a mobile messaging app (that connects to a web service and mysql 
> database)
> - build desktop widgets (little things like an app that watches a folder, 
> using the clipboard etc)
> - learn how to search documents and save notes with LiveCode
> 
> I think my ideal would be to get an idea which is:
> -  a ‘draw’ (afterall I want lots of people to turn up!), something like 
> “learn now to connect to the Pokemon Go! API”
> - doesn’t involve me doing too too much preparation work for the workshop
> - can give a positive experience to participants with differing levels of 
> ability (perhaps by my preparing some partly completed exercises for those 
> who need them) 
> 
> So, ideas and suggestions please!

Dave,

I’ve done this a lot over the years, and you’re right, settling on a compelling 
app to create during the workshop is key. These are some of the ideas I’ve used:

- A drag and drop matching game.

- A to-do list app.

- A simple e-reader app.

- A walking tour app with a map with interactive sites that you can click for 
additional information and photos, etc.

Hope this helps.

Devin

Devin Asay
Learn to code with LiveCode University
https://livecode.com/store/education/

___
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

Ideas for LiveCode workshops - help needed

2016-08-04 Thread Dave Kilroy
This is a request for ideas for LiveCode workshops

That is, where one of us is organising a day-long workshop on LiveCode and are 
looking for a main topic for the day.

I’m not looking for fully-worked up teaching resources (although that would be 
nice), but general ideas or topics for the workshop - so that we can say to 
people, and publicise “come to this LiveCode workshop where we will build …” or 
“at this LiveCode workshop you will learn how to …”. 

In the past I’ve done LiveCode workshops where the main idea has been:
- build a mobile messaging app (that connects to a web service and mysql 
database)
- build desktop widgets (little things like an app that watches a folder, using 
the clipboard etc)
- learn how to search documents and save notes with LiveCode

I think my ideal would be to get an idea which is:
-  a ‘draw’ (afterall I want lots of people to turn up!), something like “learn 
now to connect to the Pokemon Go! API”
- doesn’t involve me doing too too much preparation work for the workshop
- can give a positive experience to participants with differing levels of 
ability (perhaps by my preparing some partly completed exercises for those who 
need them) 

So, ideas and suggestions please!

Kind regards

Dave

PS: my next workshop is on 17th September and I haven’t decided what to go in 
it 
http://www.meetup.com/The-THINQTANQ-Events-Meetups-and-More-in-Plymouth/events/226749341/
 

PPS: ask potential participants what the workshop topic should be usually 
doesn’t help much!



___
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: Sound and video on Windows - help needed urgently

2016-05-13 Thread J. Landman Gay
I have had good luck using a player with dontUseQT set to true as long 
as the audio is created with a codec that Windows supports. I haven't 
had to use video, but since you mention invisible players, I assume 
audio is the target.


We tested m4a on a Windows 10 machine and it worked, but previous 
versions of Windows did not unless the user downloaded the codec. I 
think if you make sure that the correct audio codec is installed on the 
machine, the player should work correctly.


On 5/13/2016 5:03 PM, Tore Nilsen wrote:

I have a group of students up for national exams in computer science
in late May. In Norway, high school students bring their own
computers to the classroom and to their exams. One of my students has
a PC with Windows 10 installed. She reports that she is unable to use
the player object on her computer.

We do not know what tasks they will have to do for their exams until
the day of the exam, but previous exams have always contained one
task where students are asked to incorporate sound or video in their
application. In previous exams this task will have the students
prepare a media file (sound or video) and use it for different
purposes like a background track for a slide-show, a popUp window to
show videos or as a timed soundtrack for an animation.

In situations where the player object may be visible, we can always
use a browser-widget to complete the task. However, in situations
where the end user should not be able to control the player object
directly, or where the player object for other reasons needs to be
invisible, this is not a solution for this particular student.

Does anyone know if setting the dontuseQT to true will help? If not,
are there any other option we can try? Or should we start
transferring all her previous work, alongside LiveCode to one of our
schools older laptops, in order to have her up and running in good
time before her exam?


--
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


Sound and video on Windows - help needed urgently

2016-05-13 Thread Tore Nilsen
I have a group of students up for national exams in computer science in late 
May. In Norway, high school students bring their own computers to the classroom 
and to their exams. One of my students has a PC with Windows 10 installed. She 
reports that she is unable to use the player object on her computer. 

We do not know what tasks they will have to do for their exams until the day of 
the exam, but previous exams have always contained one task where students are 
asked to incorporate sound or video in their application. In previous exams 
this task will have the students prepare a media file (sound or video) and use 
it for different purposes like a background track for a slide-show, a popUp 
window to show videos or as a timed soundtrack for an animation.

In situations where the player object may be visible, we can always use a 
browser-widget to complete the task. However, in situations where the end user 
should not be able to control the player object directly, or where the player 
object for other reasons needs to be invisible, this is not a solution for this 
particular student. 

Does anyone know if setting the dontuseQT to true will help? If not, are there 
any other option we can try? Or should we start transferring all her previous 
work, alongside LiveCode to one of our schools older laptops, in order to have 
her up and running in good time before her exam?

Regards

Tore Nilsen
___
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: Server Help Needed

2016-04-14 Thread Mike Bonner
too bad. Was hoping it would work, but I guess since it can't find certs at
all, if it were me, I'd be talking to the provider to see if it can be
fixed.  It looks like the cert path is pointing to the wrong place, or the
certs are missing entirely.

On Thu, Apr 14, 2016 at 8:29 AM, Michael Doub  wrote:

> Humm ...  no change when using curl -k
>
>
>
> On 4/14/16 10:06 AM, Mike Bonner wrote:
>
>> Looks like the certificate setup at the receiving end (ridewithgps) not
>> sure why it might have changed, but until you get that part tracked down,
>> you might try using the -k curl option (which allows insecure ssl
>> connections with some exceptions.. wrong domain certs will still fail)
>>
>> On Thu, Apr 14, 2016 at 7:44 AM, Michael Doub  wrote:
>>
>> I need some help in understanding what is going on with my hostm server
>>> relating to security.
>>>
>>> I have a script that was working fine for several weeks and now it is no
>>> longer functioning.  Obviously something changed.
>>>
>>> put shell (("curl -s" && baseURL & RouteNbr & "/cue_sheet")) into tSource
>>> if tSource is empty then
>>>   return "Err: Route Data is empty" && (baseURL & RouteNbr &
>>> "/cue_sheet") && the result
>>> end if
>>>
>>> tSource is empty and the following is being returned:
>>>
>>> Err: Route Data is empty
>>> https://ridewithgps.com/routes/12969359/cue_sheet
>>> error error setting certificate verify locations: CAfile:
>>> /etc/ssl/certs/ca-certificates.crt CApath: none
>>>
>>> Can anyone explain the meaning of what is being returned in the result?
>>> Better yet, how can I fix this.
>>>
>>> Thanks,
>>> Mike
>>>
>>>
>>>
>>> ___
>>> 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: Server Help Needed

2016-04-14 Thread Michael Doub

Humm ...  no change when using curl -k


On 4/14/16 10:06 AM, Mike Bonner wrote:

Looks like the certificate setup at the receiving end (ridewithgps) not
sure why it might have changed, but until you get that part tracked down,
you might try using the -k curl option (which allows insecure ssl
connections with some exceptions.. wrong domain certs will still fail)

On Thu, Apr 14, 2016 at 7:44 AM, Michael Doub  wrote:


I need some help in understanding what is going on with my hostm server
relating to security.

I have a script that was working fine for several weeks and now it is no
longer functioning.  Obviously something changed.

put shell (("curl -s" && baseURL & RouteNbr & "/cue_sheet")) into tSource
if tSource is empty then
  return "Err: Route Data is empty" && (baseURL & RouteNbr &
"/cue_sheet") && the result
end if

tSource is empty and the following is being returned:

Err: Route Data is empty https://ridewithgps.com/routes/12969359/cue_sheet
error error setting certificate verify locations: CAfile:
/etc/ssl/certs/ca-certificates.crt CApath: none

Can anyone explain the meaning of what is being returned in the result?
Better yet, how can I fix this.

Thanks,
Mike



___
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: Server Help Needed

2016-04-14 Thread Mike Bonner
Looks like the certificate setup at the receiving end (ridewithgps) not
sure why it might have changed, but until you get that part tracked down,
you might try using the -k curl option (which allows insecure ssl
connections with some exceptions.. wrong domain certs will still fail)

On Thu, Apr 14, 2016 at 7:44 AM, Michael Doub  wrote:

> I need some help in understanding what is going on with my hostm server
> relating to security.
>
> I have a script that was working fine for several weeks and now it is no
> longer functioning.  Obviously something changed.
>
> put shell (("curl -s" && baseURL & RouteNbr & "/cue_sheet")) into tSource
> if tSource is empty then
>  return "Err: Route Data is empty" && (baseURL & RouteNbr &
> "/cue_sheet") && the result
> end if
>
> tSource is empty and the following is being returned:
>
> Err: Route Data is empty https://ridewithgps.com/routes/12969359/cue_sheet
> error error setting certificate verify locations: CAfile:
> /etc/ssl/certs/ca-certificates.crt CApath: none
>
> Can anyone explain the meaning of what is being returned in the result?
> Better yet, how can I fix this.
>
> Thanks,
>Mike
>
>
>
> ___
> 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


Server Help Needed

2016-04-14 Thread Michael Doub
I need some help in understanding what is going on with my hostm server 
relating to security.


I have a script that was working fine for several weeks and now it is no 
longer functioning.  Obviously something changed.


put shell (("curl -s" && baseURL & RouteNbr & "/cue_sheet")) into tSource
if tSource is empty then
 return "Err: Route Data is empty" && (baseURL & RouteNbr & 
"/cue_sheet") && the result

end if

tSource is empty and the following is being returned:

Err: Route Data is empty 
https://ridewithgps.com/routes/12969359/cue_sheet error error setting 
certificate verify locations: CAfile: /etc/ssl/certs/ca-certificates.crt 
CApath: none


Can anyone explain the meaning of what is being returned in the result?  
Better yet, how can I fix this.


Thanks,
   Mike



___
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: Complex statement help needed in LCB

2016-03-01 Thread Stephen MacLean

> On Mar 1, 2016, at 4:30 PM, Peter TB Brett  wrote:
> 
> 
>> I'll give it a go. While I could just wrap the whole thing up and
>> execute it as a script, I’m really trying to do as much as possible
>> in LCB to learn.
> 
> Yes.  I quite like programming in LCB because the compiler helps catch (some) 
> silly mistakes.  However, there are some things that are difficult (or 
> impossible) using only LCB.  Hopefully, that will be dealt with over time!
> 
> Peter
> 

Hi Peter,

Thanks for all the examples, helps a lot!

The complier helps a bit, here’s to hoping that some sort of “remote” debugger 
for it is coming. While i’m getting better at guessing where my errors are, it 
takes forever to narrow it down and then build out again. Definitely way slower 
than coding in LCS.

But I sense once we have access to the underlying OS foundations, it’s going to 
be the place to be to get what I need:)

Thanks again,

Steve



___
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: Complex statement help needed in LCB

2016-03-01 Thread Peter TB Brett

On 01/03/2016 21:14, Stephen MacLean wrote:


Thanks:) Being strongly typed has it’s plusses and minuses. I was
hoping to avoid “parsed as number” by using the “any” type.

It looks like that when you have a variable in LCB with a type of
“any” and perform an action on it, it becomes that type. So perform
“put the number of chars in tCardNum into tLen” and tCardNum becomes
a string type. Do "put 0 into tCheckSum” and tCheckSum becomes a
number.


It's a bit better to think of pegs (values) and holes (slots).  If you 
write:


   variable tStringVar as String

then you're creating a "String-shaped hole".  It'll only let you put a 
"String-shaped peg" into it, i.e. a value of type String.


If you did:

   put 5 into tStringVar

then you get an error -- you're "putting a square peg into a round 
hole", as it were.


The "any" metatype is a bit special, because it only applies to slots. 
There's no such thing as a value of type "any".  Also, note that you 
can't put the "nothing" value into a slot of type "any".


Going to your examples:

   variable tCardNum as any
   variable tLen as any
   put (the number of chars in (tCardNum)) into tLen

I've added some parentheses to show how evaluation proceeds.  First 
"tCardNum" is evaluated, producing a value $1.  Next, "the number of 
chars in $1" is evaluated.  If the value $1 is a String, then it 
produces a value $2 (which happens to be always a Number).  Otherwise, 
it generates an error.  Finally, "put $2 into tLen" is evaluated.  Since 
$2 is a value of type Number, and tLen is a slot of type "any", they're 
compatible, and the assignment works.  The result is that tLen, a slot 
of type any, contains a value of type Number.


Note that nothing about that statement changes the type of tCardNum (or 
the value it contains).


   variable tCheckSum as any
   put 0 into tCheckSum

First "0" is evaluated, producing $1 (a value of type Number).  Next, 
"put $1 into tCheckSum" is evaluated.  Since $1 is a value of type 
Number, and tCheckSum is a slot of type any, the assignment is 
permitted.  The result is the same: tCheckSum, a slot of type any, 
contains a value of type Number (i.e. tCheckSum is 0).



I'll give it a go. While I could just wrap the whole thing up and
execute it as a script, I’m really trying to do as much as possible
in LCB to learn.


Yes.  I quite like programming in LCB because the compiler helps catch 
(some) silly mistakes.  However, there are some things that are 
difficult (or impossible) using only LCB.  Hopefully, that will be dealt 
with over time!


 Peter

--
Dr Peter Brett 
LiveCode Open Source Team

LiveCode 2016 Conference https://livecode.com/edinburgh-2016/

___
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: Complex statement help needed in LCB

2016-03-01 Thread Stephen MacLean

> On Mar 1, 2016, at 3:58 PM, Peter TB Brett  wrote:
> 
> On 01/03/2016 20:44, Stephen MacLean wrote:
>> Hi All,
>> 
>> I’m looking for some help on complex statements in LCB.
>> 
>> I’m trying to take a script statement like this:
>> 
>> if (char x of tCardNum)*2 > 9 then
> 
> Hi Stephen,
> 
> Don't forget that LCB is strongly typed.  That means that a string isn't a 
> number, so you can't multiply it!
> 
> The expression "char x of tCardNum" evaluates to a string that's one 
> character long.  If "tCardNum" has fewer than "x" characters, then it throws 
> an error.
> 
> If the character is expected to be the string representation of a number, 
> then you probably want to explicitly convert it to a number:
> 
>   variable tNum as Number
>   put (char x of tCardNum) parsed as number into tNum
>   if 9 < 2 * tNum then
>  ...
>   end if
> 
>   Peter

Hi Peter,

Thanks:) Being strongly typed has it’s plusses and minuses. I was hoping to 
avoid “parsed as number” by using the “any” type.

It looks like that when you have a variable in LCB with a type of “any” and 
perform an action on it, it becomes that type. So perform “put the number of 
chars in tCardNum into tLen” and tCardNum becomes a string type. Do "put 0 into 
tCheckSum” and tCheckSum becomes a number.

I'll give it a go. While I could just wrap the whole thing up and execute it as 
a script, I’m really trying to do as much as possible in LCB to learn.

Thanks so much!

Best,

Steve MacLean

___
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: Complex statement help needed in LCB

2016-03-01 Thread Peter TB Brett

On 01/03/2016 20:44, Stephen MacLean wrote:

Hi All,

I’m looking for some help on complex statements in LCB.

I’m trying to take a script statement like this:

if (char x of tCardNum)*2 > 9 then


Hi Stephen,

Don't forget that LCB is strongly typed.  That means that a string isn't 
a number, so you can't multiply it!


The expression "char x of tCardNum" evaluates to a string that's one 
character long.  If "tCardNum" has fewer than "x" characters, then it 
throws an error.


If the character is expected to be the string representation of a 
number, then you probably want to explicitly convert it to a number:


   variable tNum as Number
   put (char x of tCardNum) parsed as number into tNum
   if 9 < 2 * tNum then
  ...
   end if

   Peter


--
Dr Peter Brett 
LiveCode Open Source Team

LiveCode 2016 Conference https://livecode.com/edinburgh-2016/

___
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: Complex statement help needed in LCB

2016-03-01 Thread Stephen MacLean
Hi All,

I’m looking for some help on complex statements in LCB.

I’m trying to take a script statement like this:

if (char x of tCardNum)*2 > 9 then


into the equivalent statement in LCB.

While it will compile fine, calling the function that contains the code above 
with give the dreaded error :
execution error at line 2 (extension: error occured with domain) near 
"runtime", char 8

In the LC debugger.

tCardNum is defined as a variable of type “any”

Thanks,

Steve MacLean
___
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: AW: Re: Regex help needed...

2016-02-03 Thread Peter Haworth
Hi Thierry,
I might have missed it but did you publish your Regex2 to the list?
Pete

On Wed, Feb 3, 2016 at 12:07 PM Richard Gaskin 
wrote:

> Thierry Douez write:
>
> >>  Regex has  been around a long time
> >>  and lots of smart computer science types has
> >> spent time coming up with ways to optimize its performance for pattern
> >> matching.
> >
> > That's was true, it's still true and will always be true!
>
> It's true that there are almost always ways to improve performance using
> any method, but there are times when one method may be faster than
> another so it's worth testing out, as you did here:
>
> > and here are some benchmarks
> > done in a late rainy sunday evening:
> >
> >
> > * Regex2 faster than Chunk by: 2.1 times*
>
> Great results - what was the regex you used for that?
>
>
> > For the details:
> >
> > 1) Regex1 is the original regex, Chunk1 is  from Richard, Regex2 is mine.
> > 2) You can noticed the difference in time depending on the value of pPage
> > ( that's a normal behavior with regex)
> > 3) I've done the calculation the same way as Richard did, so you can
> compare
> >
> >
> >
> > **  aPage = 1, Same? true true
> > Regex1: 8943 ms
> > Chunk1: 210 ms
> > Regex2: 99 ms
> > Regex2 faster than orig regex by: 90.3 times
> > Regex2 faster than Chunk by: 2.1 times
> >
> > **  aPage = 2, Same? true true
> > Regex1: 9946 ms
> > Chunk1: 212 ms
> > Regex2: 100 ms
> > Regex2 faster than orig regex by: 99.5 times
> > Regex2 faster than Chunk by: 2.1 times
> >
> > **  aPage = 3, Same? true true
> > Regex1: 4451 ms
> > Chunk1: 210 ms
> > Regex2: 98 ms
> > Regex2 faster than orig regex by: 45.4 times
> > Regex2 faster than Chunk by: 2.1 times
> >
> > **  aPage = 4, Same? true true
> > Regex1: 11465 ms
> > Chunk1: 200 ms
> > Regex2: 98 ms
> > Regex2 faster than orig regex by: 117 times
> > Regex2 faster than Chunk by: 2 times
> >
> > **  aPage = 5, Same? true true
> > Regex1: 11457 ms
> > Chunk1: 201 ms
> > Regex2: 94 ms
> > Regex2 faster than orig regex by: 121.9 times
> > Regex2 faster than Chunk by: 2.1 times
> >
>
> --
>   Richard Gaskin
>   Fourth World Systems
>   Software Design and Development for the Desktop, Mobile, and the Web
>   
>   ambassa...@fourthworld.comhttp://www.FourthWorld.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


Re: AW: Re: Regex help needed...

2016-02-03 Thread Richard Gaskin

Thierry Douez write:


 Regex has  been around a long time
 and lots of smart computer science types has
spent time coming up with ways to optimize its performance for pattern
matching.


That's was true, it's still true and will always be true!


It's true that there are almost always ways to improve performance using 
any method, but there are times when one method may be faster than 
another so it's worth testing out, as you did here:



and here are some benchmarks
done in a late rainy sunday evening:


* Regex2 faster than Chunk by: 2.1 times*


Great results - what was the regex you used for that?



For the details:

1) Regex1 is the original regex, Chunk1 is  from Richard, Regex2 is mine.
2) You can noticed the difference in time depending on the value of pPage
( that's a normal behavior with regex)
3) I've done the calculation the same way as Richard did, so you can compare



**  aPage = 1, Same? true true
Regex1: 8943 ms
Chunk1: 210 ms
Regex2: 99 ms
Regex2 faster than orig regex by: 90.3 times
Regex2 faster than Chunk by: 2.1 times

**  aPage = 2, Same? true true
Regex1: 9946 ms
Chunk1: 212 ms
Regex2: 100 ms
Regex2 faster than orig regex by: 99.5 times
Regex2 faster than Chunk by: 2.1 times

**  aPage = 3, Same? true true
Regex1: 4451 ms
Chunk1: 210 ms
Regex2: 98 ms
Regex2 faster than orig regex by: 45.4 times
Regex2 faster than Chunk by: 2.1 times

**  aPage = 4, Same? true true
Regex1: 11465 ms
Chunk1: 200 ms
Regex2: 98 ms
Regex2 faster than orig regex by: 117 times
Regex2 faster than Chunk by: 2 times

**  aPage = 5, Same? true true
Regex1: 11457 ms
Chunk1: 201 ms
Regex2: 94 ms
Regex2 faster than orig regex by: 121.9 times
Regex2 faster than Chunk by: 2.1 times



--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.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: AW: Re: Regex help needed...

2016-02-03 Thread Ali Lloyd
On Wed, Feb 3, 2016 at 11:53 AM Bernard Devlin  wrote:
> One of the things we had in LC5 which was phenomenally fast, was searching
> through the styledText of a field. That fast way of searching particular
> text structures got lost in the migration to LC8.

Could you expand on this a little? I'm not sure exactly what you mean by
'searching through the styledText of a field'.

Thanks,
Ali
___
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: AW: Re: Regex help needed...

2016-02-03 Thread Thierry Douez
There's huge differences in how regex implementations perform in different
> languages. For example: http://raid6.com.au/~onlyjob/posts/arena/
>


​Last year, I did some experiments:

I had a 100 lines of LiveCode with a bunch of really big Regex.
It took 120 seconds on my Macbook to run.

I tried diffferent ways to write/modify the regex, and it always keep
running
around 120 seconds.


Then, using my sunnYperl external,
I copy/paste all my regex ( not one modification )
and rewrite the LC part in Perl (a bit more work but not that much).

I came down to 9 seconds.

​
Kind regards,

Thierry​



-- 

Thierry Douez - http://sunny-tdz.com
sunnYrex - sunnYtext2speech - sunnYperl - sunnYmidi - sunnYmage
___
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: AW: Re: Regex help needed...

2016-02-03 Thread Peter TB Brett

On 03/02/2016 11:53, Bernard Devlin wrote:

Perl outperforms everything in that test. I've never assumed that LC's
"perl compatiable regex library" is going to perform at the speed which
actual Perl performs. I've always assumed that being "perl compatible" just
meant that all syntactically-correct Perl regexs should run with LC's
implementation, without needing any kind of change in how the regex is
formatted.


To be precise, LiveCode uses the PCRE library, which is generally 
considered to be the *definitive* implementation of Perl Compatible 
Regular Expressions: http://www.pcre.org/.  There isn't a special 
LiveCode-specific implementation of regular expressions involved.


  Peter

--
Dr Peter Brett 
LiveCode Open Source Team

LiveCode on reddit: https://reddit.com/r/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: AW: Re: Regex help needed...

2016-02-03 Thread Bernard Devlin
Hi Mark,

There's huge differences in how regex implementations perform in different
languages. For example: http://raid6.com.au/~onlyjob/posts/arena/

Perl outperforms everything in that test. I've never assumed that LC's
"perl compatiable regex library" is going to perform at the speed which
actual Perl performs. I've always assumed that being "perl compatible" just
meant that all syntactically-correct Perl regexs should run with LC's
implementation, without needing any kind of change in how the regex is
formatted.

There was an academic paper I came across 15 years ago, which showed that
Tcl out-performed Perl. Now it seems Perl outperforms Tcl, suggesting that
one or the other has made changes to their underlying engine which impact
regex performance. Or that the tests I read about 15 years ago were just
testing regex features which resulted in Tcl out-performing Perl, and
vice-versa in the above test.

It would be great if LC's implementation was as fast as Perl's.

Here's a page comparing several implementations of PCRE (with some non-pcre
regex implementations): http://sljit.sourceforge.net/regex_perf.html

One of the things we had in LC5 which was phenomenally fast, was searching
through the styledText of a field. That fast way of searching particular
text structures got lost in the migration to LC8.

Regards
Bernard
___
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: AW: Re: Regex help needed...

2016-02-03 Thread Thierry Douez
​​
>  Regex has  been around a long time
>  and lots of smart computer science types has
> spent time coming up with ways to optimize its performance for pattern
> matching.

That's was true, it's still true and will always be true!


and here are some benchmarks
done in a late rainy sunday evening:


* Regex2 faster than Chunk by: 2.1 times*


For the details:

1) Regex1 is the original regex, Chunk1 is  from Richard, Regex2 is mine.
2) You can noticed the difference in time depending on the value of pPage
( that's a normal behavior with regex)
3) I've done the calculation the same way as Richard did, so you can compare



**  aPage = 1, Same? true true
Regex1: 8943 ms
Chunk1: 210 ms
Regex2: 99 ms
Regex2 faster than orig regex by: 90.3 times
Regex2 faster than Chunk by: 2.1 times

**  aPage = 2, Same? true true
Regex1: 9946 ms
Chunk1: 212 ms
Regex2: 100 ms
Regex2 faster than orig regex by: 99.5 times
Regex2 faster than Chunk by: 2.1 times

**  aPage = 3, Same? true true
Regex1: 4451 ms
Chunk1: 210 ms
Regex2: 98 ms
Regex2 faster than orig regex by: 45.4 times
Regex2 faster than Chunk by: 2.1 times

**  aPage = 4, Same? true true
Regex1: 11465 ms
Chunk1: 200 ms
Regex2: 98 ms
Regex2 faster than orig regex by: 117 times
Regex2 faster than Chunk by: 2 times

**  aPage = 5, Same? true true
Regex1: 11457 ms
Chunk1: 201 ms
Regex2: 94 ms
Regex2 faster than orig regex by: 121.9 times
Regex2 faster than Chunk by: 2.1 times




Kind regards,

Thierry




Thierry Douez - http://sunny-tdz.com
sunnYrex - sunnYtext2speech - sunnYperl - sunnYmidi - sunnYmage
___
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: AW: Re: Regex help needed...

2016-01-30 Thread Richard Gaskin

Paul Dupuis wrote:
> Wow. I would not have expected such a significant difference. Regex
> has been around a long time and lots of smart computer science types
> has spent time coming up with ways to optimize its performance for
> pattern matching. I assumed (falsely) that regex based filters in LC
> would be on par or even superior than a custom function using chunks.
> This leads me to:
>
> 1) wondering if LC's hooks to whatever regex tool they are using under
> the hood is a good as it should be
> AND
> 2) planning on rewriting my code to use chunks.

One of the reasons for my seemingly-obsessive benchmarking is to learn 
about what goes on under the hood, and to try to anticipate it when 
choosing among different algos.


LC does such a good job of shielding us from what goes on under the hood 
that we often forget that the relationship between the number of lines 
we write and the number of machine instructions our scripts invoke may 
differ broadly depending on the statement.


My favorite example is: set the scroll of field 1 to 100 -- seems simple 
enough, but having written scrollbar management routines in C back in 
the pre-Cocoa days I learned that a *tremendous* number of low-level 
routines come into play with that one simple line of script.  LC makes 
it easy to take this stuff for granted, since it does all the heavy lifting.


Same with regex.

The beauty of regex is that it's a very generalized solution.  The 
downside of regex is that it's a very generalized solution. ;)


Generalized options can provide convenience, but often at the cost of 
performance.


Purpose-built solutions are usually much faster than generalized ones, 
and with LC's chunk expressions they're fun to write too. :)


There are times when regex will outperform chunk expressions, though, so 
I would caution against rewriting everything.  Benchmarking is the key, 
and some day I will have done enough to be able to come up with a small 
set of useful rules as to when to use chunks and when to use regex.  But 
at the moment, it's half hunch and half benchmarking to confirm the hunch.


--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.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: AW: Re: Regex help needed...

2016-01-30 Thread Mark Wieder

On 01/30/2016 04:28 PM, Paul Dupuis wrote:


1) wondering if LC's hooks to whatever regex tool they are using under
the hood is a good as it should be


LC's regex library is the same PCRE library everyone else uses. And it's 
the latest released version. Regex's power lies in its ability to match 
complex patterns, which doesn't necessarily translate to speed.



AND
2) planning on rewriting my code to use chunks.


You may find that regex matching works better than LC's chunk matching 
in some situations. For speed though, it's hard to beat the built=in 
chunking functions in LC, as they're already pretty well optimized.


--
 Mark Wieder
 ahsoftw...@gmail.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: AW: Re: Regex help needed...

2016-01-30 Thread Paul Dupuis
Wow. I would not have expected such a significant difference. Regex has
been around a long time and lots of smart computer science types has
spent time coming up with ways to optimize its performance for pattern
matching. I assumed (falsely) that regex based filters in LC would be on
par or even superior than a custom function using chunks. This leads me to:

1) wondering if LC's hooks to whatever regex tool they are using under
the hood is a good as it should be
AND
2) planning on rewriting my code to use chunks.

Thanks for the post.


On 1/30/2016 6:45 PM, Richard Gaskin wrote:
> Regex is wonderfully compact to write relative to equivalent routines
> using chunk expressions, but sometimes paid for in execution time.
>
> When I come across a good regex example like the one you provided, if
> I have a moment I like to test things out to see where regex is faster
> and where it isn't.  It's really great for many things, but carries
> quite a bit of overhead.
>
> Of course for this test to be relevant it assumes that most of the
> specifiers in the regex expression are merely to identify the elements
> you're looking for, and that the data is expected to fit the
> definition you provided.
>
> Given that, it's possible to make the regex a bit simpler (see foo2
> below), but only with a modest boost to performance.  It can probably
> be simplified more, but the chunk-based alternative performed so well
> I didn't bother exploring the regex side any further.
>
> Writing a lengthier handler that uses chunk expressions seems to yield
> the same results you reported, running between 12 and 60 times faster
> (depending on the percentage of lines tested that match the criteria
> being looked for).
>
> For one-offs like validating email addresses regex can be an excellent
> fit, and even some larger tasks depending on the specifics.
>
> But for iterating across lists I've often been delightfully surprised
> by LiveCode's gracefully efficient chunk handling.
>
> Testing your original data replicated to become 250 lines long, and
> looking for page 1 among them, the script below yields:
>
> Regex: 9261 ms
> RegexLite: 7958 ms
> Chunks: 197 ms
> Chunks faster than orig regex by: 47.01 times
> Chunks faster than lite regex by: 40.4 times
> Same result? true
>
>
> on mouseUp
>   put fld 1 into tList
>   put 1 into tPage --< change this for different tests
>   put 1000 into n
>   --
>   -- Test 1: original regex
>   put the millisecs into t
>   repeat n
> put foo1(tPage, tList) into r1
>   end repeat
>   put the millisecs - t into t1
>   --
>   -- Test 2: lighter regex
>   put the millisecs into t
>   repeat n
> put foo2(tPage, tList) into r2
>   end repeat
>   put the millisecs - t into t2
>   --
>   -- Test 3: chunks
>   put the millisecs into t
>   repeat n
> put foo3(tPage, tList) into r3
>   end repeat
>   put the millisecs - t into t3
>   --
>   -- Display results:
>   set the numberformat to "0.##"
>   put "Regex: "&t1 &" ms"&cr \
> &"RegexLite: "&t2 &" ms"&cr \
> &"Chunks: "& t3 &" ms"&cr \
> &"Chunks faster than orig regex by: "&(t1 / t3)&" times" &cr \
> &"Chunks faster than lite regex by: "&(t2 / t3)&" times" &cr \
> &"Same result? "& (r1=r3) &cr&cr& r1 &cr&cr& r3
> end mouseUp
>
>
> function foo1 pPage, tList
>   put
> "(.+\t"&pPage&",\d+,\d+,\d+)|(.+\t\d+,\d+,"&pPage&",\d+)|(.+\t"&pPage&",\d*\.?\d*,\d*\.?\d*,\d*\.?\d*,\d*\.?\d*)"
> into tMatchPattern
>   filter lines of tList with regex pattern tMatchPattern
>   return tList
> end foo1
>
>
> function foo2 pPage, tList
>   put "(.+\t"&pPage&",*)|(.+\t\d+,\d+,"&pPage&",*)|(.+\t"&pPage&",*)"
> into tMatchPattern
>   filter lines of tList with regex pattern tMatchPattern
>   return tList
> end foo2
>
>
>
> function foo3 pPage, tList
>   repeat for each line tLine in tList
> set the itemdel to tab
> put item 3 of tLine into t1
> put pPage &"," into tPageMarker
> if "." is in t1 then
>   if (t1 begins with tPageMarker) then
> put tLine &cr after tNuList
>   end if
> else
>   if ( t1 begins with tPageMarker) OR (item 4 of tLine begins with
> tPageMarker) then
> put tLine &cr after tNuList
>   end if
> end if
>   end repeat
>   delete last char of tNuList
>   return tNuList
> end foo3
>
>
>
>
>
>
>
>
>
>


___
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: AW: Re: Regex help needed...

2016-01-30 Thread Richard Gaskin
Regex is wonderfully compact to write relative to equivalent routines 
using chunk expressions, but sometimes paid for in execution time.


When I come across a good regex example like the one you provided, if I 
have a moment I like to test things out to see where regex is faster and 
where it isn't.  It's really great for many things, but carries quite a 
bit of overhead.


Of course for this test to be relevant it assumes that most of the 
specifiers in the regex expression are merely to identify the elements 
you're looking for, and that the data is expected to fit the definition 
you provided.


Given that, it's possible to make the regex a bit simpler (see foo2 
below), but only with a modest boost to performance.  It can probably be 
simplified more, but the chunk-based alternative performed so well I 
didn't bother exploring the regex side any further.


Writing a lengthier handler that uses chunk expressions seems to yield 
the same results you reported, running between 12 and 60 times faster 
(depending on the percentage of lines tested that match the criteria 
being looked for).


For one-offs like validating email addresses regex can be an excellent 
fit, and even some larger tasks depending on the specifics.


But for iterating across lists I've often been delightfully surprised by 
LiveCode's gracefully efficient chunk handling.


Testing your original data replicated to become 250 lines long, and 
looking for page 1 among them, the script below yields:


Regex: 9261 ms
RegexLite: 7958 ms
Chunks: 197 ms
Chunks faster than orig regex by: 47.01 times
Chunks faster than lite regex by: 40.4 times
Same result? true


on mouseUp
  put fld 1 into tList
  put 1 into tPage --< change this for different tests
  put 1000 into n
  --
  -- Test 1: original regex
  put the millisecs into t
  repeat n
put foo1(tPage, tList) into r1
  end repeat
  put the millisecs - t into t1
  --
  -- Test 2: lighter regex
  put the millisecs into t
  repeat n
put foo2(tPage, tList) into r2
  end repeat
  put the millisecs - t into t2
  --
  -- Test 3: chunks
  put the millisecs into t
  repeat n
put foo3(tPage, tList) into r3
  end repeat
  put the millisecs - t into t3
  --
  -- Display results:
  set the numberformat to "0.##"
  put "Regex: "&t1 &" ms"&cr \
&"RegexLite: "&t2 &" ms"&cr \
&"Chunks: "& t3 &" ms"&cr \
&"Chunks faster than orig regex by: "&(t1 / t3)&" times" &cr \
&"Chunks faster than lite regex by: "&(t2 / t3)&" times" &cr \
&"Same result? "& (r1=r3) &cr&cr& r1 &cr&cr& r3
end mouseUp


function foo1 pPage, tList
  put 
"(.+\t"&pPage&",\d+,\d+,\d+)|(.+\t\d+,\d+,"&pPage&",\d+)|(.+\t"&pPage&",\d*\.?\d*,\d*\.?\d*,\d*\.?\d*,\d*\.?\d*)" 
into tMatchPattern

  filter lines of tList with regex pattern tMatchPattern
  return tList
end foo1


function foo2 pPage, tList
  put "(.+\t"&pPage&",*)|(.+\t\d+,\d+,"&pPage&",*)|(.+\t"&pPage&",*)" 
into tMatchPattern

  filter lines of tList with regex pattern tMatchPattern
  return tList
end foo2



function foo3 pPage, tList
  repeat for each line tLine in tList
set the itemdel to tab
put item 3 of tLine into t1
put pPage &"," into tPageMarker
if "." is in t1 then
  if (t1 begins with tPageMarker) then
put tLine &cr after tNuList
  end if
else
  if ( t1 begins with tPageMarker) OR (item 4 of tLine begins with 
tPageMarker) then

put tLine &cr after tNuList
  end if
end if
  end repeat
  delete last char of tNuList
  return tNuList
end foo3










--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.com


Paul Dupuis wrote:

Never mind. Solved it.

It was the pattern for the 2nd format. Fixed with
"(.+\t"&pPage&",\d+,\d+,\d+)|(.+\t\d+,\d+,"&pPage&",\d+)|(.+\t"&pPage&",\d*\.?\d*,\d*\.?\d*,\d*\.?\d*,\d*\.?\d*)"

On 1/30/2016 3:17 PM, Paul Dupuis wrote:

I need some regex help.

I have a list that is of the form:

i.e.
1Testing1,7471,1,1,747
2Testing752,18001,752,1,1800
3Testing5398,58462,320,2,768
4Testing3,111.951,683.915,302.268,385.751
 3,111.951,683.915,302.268,385.751

 can have a list of number in 1 of 2 formats:
A comma separated list of 4 integers, i.e.
,,,
OR
A comma separated list of 1 integer, followed by 4 decimal numbers, i.e.


I need filter the lines of this list with a REGEX pattern to get lines
WHERE a value pPage matches certain places in , specifically:
where pPage is equal to either  or  in the first
format(i.e. item 1 or item 3)
OR
where pPage is equal to  in the second format(i.e. item 1)

So my code is:
put
"((.+\t"&pPage&",\d+,\d+,\d+)|(.+\t\d+,\d+,"&pPage&",\d+)|(.+\t"&pPage&",?[0-9]*\.?[0-9]+,?[0-9]*\.?[0-9]+,?[0-9]*\.?[0-9]+,?[0-9]*\.?[0-9]+))"
into tMatchPattern
filter lines of tList with regex pattern t

AW: Re: Regex help needed...

2016-01-30 Thread Paul Dupuis
Never mind. Solved it.

It was the pattern for the 2nd format. Fixed with
"(.+\t"&pPage&",\d+,\d+,\d+)|(.+\t\d+,\d+,"&pPage&",\d+)|(.+\t"&pPage&",\d*\.?\d*,\d*\.?\d*,\d*\.?\d*,\d*\.?\d*)"

On 1/30/2016 3:17 PM, Paul Dupuis wrote:
> I need some regex help.
>
> I have a list that is of the form:
> 
> i.e.
> 1Testing1,7471,1,1,747
> 2Testing752,18001,752,1,1800
> 3Testing5398,58462,320,2,768
> 4Testing3,111.951,683.915,302.268,385.751  
>  3,111.951,683.915,302.268,385.751
>
>  can have a list of number in 1 of 2 formats:
> A comma separated list of 4 integers, i.e.
> ,,,
> OR
> A comma separated list of 1 integer, followed by 4 decimal numbers, i.e.
> 
>
> I need filter the lines of this list with a REGEX pattern to get lines
> WHERE a value pPage matches certain places in , specifically:
> where pPage is equal to either  or  in the first
> format(i.e. item 1 or item 3)
> OR
> where pPage is equal to  in the second format(i.e. item 1)
>
> So my code is:
> put
> "((.+\t"&pPage&",\d+,\d+,\d+)|(.+\t\d+,\d+,"&pPage&",\d+)|(.+\t"&pPage&",?[0-9]*\.?[0-9]+,?[0-9]*\.?[0-9]+,?[0-9]*\.?[0-9]+,?[0-9]*\.?[0-9]+))"
> into tMatchPattern
> filter lines of tList with regex pattern tMatchPattern
>  
> If pPage is 1 then I should get:
> 1Testing1,7471,1,1,747
> 2Testing752,18001,752,1,1800
> and I do. If pPage is 2 then I should get:
> 3Testing5398,58462,320,2,768
> and I do. If pPage is 3 then I should get:
> 4Testing3,111.951,683.915,302.268,385.751  
>  3,111.951,683.915,302.268,385.751
> and I do. if pPage is 4 then I should get and empty list, and I do, but
> when pPage is 5, I am expecting an empty list and I get
> 3Testing5398,58462,320,2,768
>
> So something is wrong with my Regex, but I can not figure out what? It
> looks like it is matching against  in the last case
> (pPage=5) but it should not since there are only 2 items in the list
> rather than 4 or 5.
>
> I am using LiveCode 6.7.6
>
>
> ___
> 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


Regex help needed...

2016-01-30 Thread Paul Dupuis
I need some regex help.

I have a list that is of the form:

i.e.
1Testing1,7471,1,1,747
2Testing752,18001,752,1,1800
3Testing5398,58462,320,2,768
4Testing3,111.951,683.915,302.268,385.751  
 3,111.951,683.915,302.268,385.751

 can have a list of number in 1 of 2 formats:
A comma separated list of 4 integers, i.e.
,,,
OR
A comma separated list of 1 integer, followed by 4 decimal numbers, i.e.


I need filter the lines of this list with a REGEX pattern to get lines
WHERE a value pPage matches certain places in , specifically:
where pPage is equal to either  or  in the first
format(i.e. item 1 or item 3)
OR
where pPage is equal to  in the second format(i.e. item 1)

So my code is:
put
"((.+\t"&pPage&",\d+,\d+,\d+)|(.+\t\d+,\d+,"&pPage&",\d+)|(.+\t"&pPage&",?[0-9]*\.?[0-9]+,?[0-9]*\.?[0-9]+,?[0-9]*\.?[0-9]+,?[0-9]*\.?[0-9]+))"
into tMatchPattern
filter lines of tList with regex pattern tMatchPattern
 
If pPage is 1 then I should get:
1Testing1,7471,1,1,747
2Testing752,18001,752,1,1800
and I do. If pPage is 2 then I should get:
3Testing5398,58462,320,2,768
and I do. If pPage is 3 then I should get:
4Testing3,111.951,683.915,302.268,385.751  
 3,111.951,683.915,302.268,385.751
and I do. if pPage is 4 then I should get and empty list, and I do, but
when pPage is 5, I am expecting an empty list and I get
3Testing5398,58462,320,2,768

So something is wrong with my Regex, but I can not figure out what? It
looks like it is matching against  in the last case
(pPage=5) but it should not since there are only 2 items in the list
rather than 4 or 5.

I am using LiveCode 6.7.6


___
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: Setting up for android development on OS X 10.10 - help needed

2016-01-14 Thread Terry Judd
Thanks  very much Panos - I had another quick try last night following your 
suggestions and met with some success. It looks like I’m affected by bug 16688 
as you suggest so no joy with the simulator (I didn’t get around to moving back 
to LC 7.1.0) but changing cables did the trick with getting my Android phone to 
show up on the devices list. My app’s still not functioning correctly but at 
least it’s loading on my device. With any luck I can debug any remaining issues 
(my programming inadequacies) from there.

Best regards,

Terry…

Terry Judd  | Senior Lecturer in Medical Education
Department of Medical 
Education
The University of Melbourne
M: 0435 961 594  |  E: terry.j...@unimelb.edu.au
Publications

On 14/01/2016 9:37 pm, "use-livecode on behalf of panagiotis merakos" 
mailto:use-livecode-boun...@lists.runrev.com>
 on behalf of merak...@gmail.com> wrote:

Hi Terry,

Regarding the crash on startup when deploying to android simulator:
What version of Android is running on the simulator? I have experienced
crashes *only* when deploying to android 2.3.3 simulator. Other android
versions work as expected. If you experience the crash not only in 2.3.3
simulator, but also in *any* android version less or equal to 4.1.3, then
you are probably affected by bug 16688:
http://quality.livecode.com/show_bug.cgi?id=16688 which we cannot
reproduce, but according to the bug report it affects *only* LiveCode 7.1.1
releases (works fine in 7.1.0).

Regarding the problem of not seeing your devices under the
development>test target
menu:
What happens if you type in the OS X terminal : "adb devices" ?

If you see an empty list, then the problem is that your devices are not
recognized. I have experienced this problem a number of times. I would
suggest using a different android cable. If this does not work, type in the
terminal:

"adb kill-server"

and then

"adb start-server"

Hope this helps,
Panos
--

On Thu, Jan 14, 2016 at 1:21 AM, Terry Judd 
mailto:terry.j...@unimelb.edu.au>>
wrote:

OK - so I did manage to find and install a copy of Java 6 (I deleted the
existing newer version of Java and then did a default install) and now the
JDK path bit in the mobile support pane of
the LC preferences window has a value in it but everything else remains
the same. Even the simplest app crashes on the Android simulator.

I¹m also trying to get a real device to show up under the development>test
target menu without success. I have a couple of Samsung phones (S2 and S4
mini) both with usb debugging enabled but neither shows up in the test
target menu when connected. Any ideas?

Terry...

On 14/01/2016 11:45 am, "use-livecode on behalf of Terry Judd²
mailto:use-livecode-boun...@lists.runrev.com>
 on behalf of
terry.j...@unimelb.edu.au> wrote:

>Hi all ­ after a long break from developing for Android I need to get up
>and running again but seem to be getting nowhere. I have all the Android
>sdk stuff installed and updated and installed Java but when I go to
>configure things in LC it accepts the location of the Android SDK root
>folder but the JDK path stays empty. I can build an app ok but even the
>simplest one will immediately crash (on the simulator ­ I¹m still trying
>to get my device to show up on the target list).
>
>A search of the forums suggests that the empty path thing this is a known
>issue( from some months ago) and a post (reply) from Sebastian in late
>November last year suggested that you need to install the now deprecated
>Java 6 to undertake Android development in LC. I¹d try that if I could
>only find somewhere to download Java 6 from!
>
>Does anyone have this stuff working on OS X 10.10 (or later) and care to
>provide some tips on how they got it to work?
>
>Best regards,
>
>TerryŠ
>
>Terry Judd  | Senior Lecturer in Medical Education
>Department of Medical
>Education
>The University of Melbourne
>M: 0435 961 594  |  E:
>terry.j...@unimelb.edu.au
>Publications<
https://scholar.google.com.au/citations?user=XC5s6wwJ&hl=
>en>
>___
>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-

Re: Setting up for android development on OS X 10.10 - help needed

2016-01-14 Thread panagiotis merakos
Hi Terry,

Regarding the crash on startup when deploying to android simulator:
What version of Android is running on the simulator? I have experienced
crashes *only* when deploying to android 2.3.3 simulator. Other android
versions work as expected. If you experience the crash not only in 2.3.3
simulator, but also in *any* android version less or equal to 4.1.3, then
you are probably affected by bug 16688:
http://quality.livecode.com/show_bug.cgi?id=16688 which we cannot
reproduce, but according to the bug report it affects *only* LiveCode 7.1.1
releases (works fine in 7.1.0).

Regarding the problem of not seeing your devices under the
development>test target
menu:
What happens if you type in the OS X terminal : "adb devices" ?

If you see an empty list, then the problem is that your devices are not
recognized. I have experienced this problem a number of times. I would
suggest using a different android cable. If this does not work, type in the
terminal:

"adb kill-server"

and then

"adb start-server"

Hope this helps,
Panos
--

On Thu, Jan 14, 2016 at 1:21 AM, Terry Judd 
wrote:

> OK - so I did manage to find and install a copy of Java 6 (I deleted the
> existing newer version of Java and then did a default install) and now the
> JDK path bit in the mobile support pane of
> the LC preferences window has a value in it but everything else remains
> the same. Even the simplest app crashes on the Android simulator.
>
> I¹m also trying to get a real device to show up under the development>test
> target menu without success. I have a couple of Samsung phones (S2 and S4
> mini) both with usb debugging enabled but neither shows up in the test
> target menu when connected. Any ideas?
>
> Terry...
>
> On 14/01/2016 11:45 am, "use-livecode on behalf of Terry Judd²
>  terry.j...@unimelb.edu.au> wrote:
>
> >Hi all ­ after a long break from developing for Android I need to get up
> >and running again but seem to be getting nowhere. I have all the Android
> >sdk stuff installed and updated and installed Java but when I go to
> >configure things in LC it accepts the location of the Android SDK root
> >folder but the JDK path stays empty. I can build an app ok but even the
> >simplest one will immediately crash (on the simulator ­ I¹m still trying
> >to get my device to show up on the target list).
> >
> >A search of the forums suggests that the empty path thing this is a known
> >issue( from some months ago) and a post (reply) from Sebastian in late
> >November last year suggested that you need to install the now deprecated
> >Java 6 to undertake Android development in LC. I¹d try that if I could
> >only find somewhere to download Java 6 from!
> >
> >Does anyone have this stuff working on OS X 10.10 (or later) and care to
> >provide some tips on how they got it to work?
> >
> >Best regards,
> >
> >TerryŠ
> >
> >Terry Judd  | Senior Lecturer in Medical Education
> >Department of Medical
> >Education
> >The University of Melbourne
> >M: 0435 961 594  |  E:
> >terry.j...@unimelb.edu.au
> >Publications<
> https://scholar.google.com.au/citations?user=XC5s6wwJ&hl=
> >en>
> >___
> >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: Setting up for android development on OS X 10.10 - help needed

2016-01-13 Thread Terry Judd
OK - so I did manage to find and install a copy of Java 6 (I deleted the
existing newer version of Java and then did a default install) and now the
JDK path bit in the mobile support pane of
the LC preferences window has a value in it but everything else remains
the same. Even the simplest app crashes on the Android simulator.

I¹m also trying to get a real device to show up under the development>test
target menu without success. I have a couple of Samsung phones (S2 and S4
mini) both with usb debugging enabled but neither shows up in the test
target menu when connected. Any ideas?

Terry...

On 14/01/2016 11:45 am, "use-livecode on behalf of Terry Judd²
 wrote:

>Hi all ­ after a long break from developing for Android I need to get up
>and running again but seem to be getting nowhere. I have all the Android
>sdk stuff installed and updated and installed Java but when I go to
>configure things in LC it accepts the location of the Android SDK root
>folder but the JDK path stays empty. I can build an app ok but even the
>simplest one will immediately crash (on the simulator ­ I¹m still trying
>to get my device to show up on the target list).
>
>A search of the forums suggests that the empty path thing this is a known
>issue( from some months ago) and a post (reply) from Sebastian in late
>November last year suggested that you need to install the now deprecated
>Java 6 to undertake Android development in LC. I¹d try that if I could
>only find somewhere to download Java 6 from!
>
>Does anyone have this stuff working on OS X 10.10 (or later) and care to
>provide some tips on how they got it to work?
>
>Best regards,
>
>TerryŠ
>
>Terry Judd  | Senior Lecturer in Medical Education
>Department of Medical
>Education
>The University of Melbourne
>M: 0435 961 594  |  E:
>terry.j...@unimelb.edu.au
>Publicationsen>
>___
>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


Setting up for android development on OS X 10.10 - help needed

2016-01-13 Thread Terry Judd
Hi all – after a long break from developing for Android I need to get up and 
running again but seem to be getting nowhere. I have all the Android sdk stuff 
installed and updated and installed Java but when I go to configure things in 
LC it accepts the location of the Android SDK root folder but the JDK path 
stays empty. I can build an app ok but even the simplest one will immediately 
crash (on the simulator – I’m still trying to get my device to show up on the 
target list).

A search of the forums suggests that the empty path thing this is a known 
issue( from some months ago) and a post (reply) from Sebastian in late November 
last year suggested that you need to install the now deprecated Java 6 to 
undertake Android development in LC. I’d try that if I could only find 
somewhere to download Java 6 from!

Does anyone have this stuff working on OS X 10.10 (or later) and care to 
provide some tips on how they got it to work?

Best regards,

Terry…

Terry Judd  | Senior Lecturer in Medical Education
Department of Medical 
Education
The University of Melbourne
M: 0435 961 594  |  E: terry.j...@unimelb.edu.au
Publications
___
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: LiveCode Server on DreamHost - Help Needed

2015-10-18 Thread stephen barncard
Hi Graham One can only use the .htaccess method for each domain at
this point. Andre' (a major trooper) helped me get set up on Dreamhost a
few years ago. We first tried the 'modify Apache' method that's supposed to
work on 'non-shared' servers. It doesn't work on Dreamhost's 'Virtual
Personal Servers' either.

I'm not sure what FTP client you are using but I highly recommend Panic's
TRANSMIT software, especially if you're not so handy with using Terminal to
do things.All FTP accounts on Dreamhost are SFTP by default and that
enables a few commands like zip and unzip to be executed from Transmit.

Make sure you get the Linux server.

.htaccess files so named will disappear from normal listings so make sure
your FTP client has 'show invisible files' checked.


Next take a look at my diagram of the files placement. You will definitely
have to set the permissions on all files and folders as noted, they won't
expand 'out of the box' perfectly.

http://media.barncard.com/downloads/LIVECODE_SERVER_SETUP.pdf

There are two .htaccess files, one at the top of the domain, and one inside
the folder cgi-bin

the root .htaccess  I use currently is:

AddHandler livecode-script .lc .irev .iRev
DirectoryIndex index.irev index.lc index.html index.php dir.irev video.irev
audio.irev gallery.irev download.irev
Action livecode-script /cgi-bin/livecode-server/livecode-community-server


The directoryindexes  above, second line, show what kind of file will
execute by default in a directory and the action is the executable that
runs when any of the Addhandler parameters describe.   Change
community-server to plain livecode-server in example above, and you don't
need all the DirectoryIndexes.

the .htaccess inside cgi-bin I use is:

Options ExecCGI
SetHandler cgi-script


here's my test script in action:

http://media.barncard.com/livecode-server-test_Color.irev

and zipped source code:
http://media.barncard.com/livecode-server-test_Color.zip

you'll see livecode executed in simple ways.
you have to keep refreshing your browser each time you change something,
and turn off caching in da browser.

have fun. Hope this helps.

it's a bit of a journey ... take your time... and worth it.


I LOVE LIVECODE SERVER btw

sqb





--
Stephen Barncard - Sebastopol Ca. USA - Deeds Not Words

On Sun, Oct 18, 2015 at 8:08 AM, Graham Samuel  wrote:

> Following some recommendations (yes, there were others, but I had to make
> a decision), I find myself setting up a web site on DreamHost which will
> use the commercial version of LiveCode 7 Server. The problem is that I am a
> total newbie to the whole thing and I find even the simplest things either
> very obscurely explained or hard to do, or both.
>
> I have set up the actual domain on DreamHost, and in due course I will be
> able to give a URL to people who want to view the site. I have uploaded a
> web site which I already designed using a simple web design tool, Sandvox,
> and that works nicely as far as it goes (currently mirrored). After that,
> I’m in a hopeless muddle.
>
> My next move is to alter this rather simple set of pages so that it
> interacts with scripts executed by LC7 Server. I know how to find and
> download the appropriate LC engine (although I don’t know if I need the 32
> bit or the 64 bit version) and I have the script, but that’s it - I think
> this stuff should all go into a cgi-bin directory (tho there is a bit of
> DreamHost which queries even that) and I don’t even know how to create a
> new directory (although I do know how to upload stuff to an existing
> directory using FTP). I also have a very nasty suspicion that I should be
> doing something with a .htaccess file, but I have no idea what. In short I
> am floundering around - several uncomplimentary metaphors come to mind -
> and although I suppose that in the end I could get things right, I could
> really use some help from someone who has done it before.
>
> I know that there are several people on this list who used DreamHost,
> hence my appeal: if anyone has implemented such a thing on Dreamhost and is
> willing to write me some kind of step-by-step guide, I’d be infinitely
> grateful. As far as I am concerned it could be on- or off-list.
>
> TIA
>
> Graham
> ___
> 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

LiveCode Server on DreamHost - Help Needed

2015-10-18 Thread Graham Samuel
Following some recommendations (yes, there were others, but I had to make a 
decision), I find myself setting up a web site on DreamHost which will use the 
commercial version of LiveCode 7 Server. The problem is that I am a total 
newbie to the whole thing and I find even the simplest things either very 
obscurely explained or hard to do, or both. 

I have set up the actual domain on DreamHost, and in due course I will be able 
to give a URL to people who want to view the site. I have uploaded a web site 
which I already designed using a simple web design tool, Sandvox, and that 
works nicely as far as it goes (currently mirrored). After that, I’m in a 
hopeless muddle.

My next move is to alter this rather simple set of pages so that it interacts 
with scripts executed by LC7 Server. I know how to find and download the 
appropriate LC engine (although I don’t know if I need the 32 bit or the 64 bit 
version) and I have the script, but that’s it - I think this stuff should all 
go into a cgi-bin directory (tho there is a bit of DreamHost which queries even 
that) and I don’t even know how to create a new directory (although I do know 
how to upload stuff to an existing directory using FTP). I also have a very 
nasty suspicion that I should be doing something with a .htaccess file, but I 
have no idea what. In short I am floundering around - several uncomplimentary 
metaphors come to mind - and although I suppose that in the end I could get 
things right, I could really use some help from someone who has done it before.

I know that there are several people on this list who used DreamHost, hence my 
appeal: if anyone has implemented such a thing on Dreamhost and is willing to 
write me some kind of step-by-step guide, I’d be infinitely grateful. As far as 
I am concerned it could be on- or off-list.

TIA

Graham
___
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

Programming Help Needed

2015-10-14 Thread Peter Bogdanoff
Hi all,

I have need of some programming help to optimize some script.

I have some text search results that are filtered and and mongered to display 
correctly for my application. My existing script uses text in a field as the 
source and final display for the search results. The results are also sorted by 
use of an array.

What I have now works more-or-less in LC 6, but is very slow (like 20-30 
seconds for 1,000 results) to display the modified search results in LC 7. The 
array portion of the script sorts the results and, in LC 7, is taking about 5 
seconds to do just that task. In LC6 this same process took about a total of 
4-5 seconds.

I realize that what I have done myself could be optimized to be much better and 
faster by someone better than I at this, and there seems to be a slowdown in 
LC7’s operation to be overcome.

I think that for an experienced programmer this is a 1-3 hour job. I will pay 
an hourly fee to someone who will do this as well as sign a non-desclosure.

Please contact me off-list at bogdan...@me.com 

Thanks,

Peter Bogdanoff
UCLA
___
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: Help needed with ConvertXMLToArray

2015-03-18 Thread Richard Gaskin

Graham Samuel wrote:

> If you do a numeric sort by these numbers, 1000 will come before 9.

If a numeric sort produces that outcome either the data isn't purely 
numeric or you've found a bug.



> Without this, an XML file with child nodes in a certain order will
> end up in a different order when converted to an array - and an order
> that isn't that easy to modify at this point.

LiveCode's arrays are associative arrays, in which elements have no 
inherent order relative to one another.


Keys are associated with values by a hash that determines the memory 
location of the value, and like most hashes the result maintains no 
metadata which describes either insertion order or order relative to 
other key values.


We can access array elements with a sense of order by first obtaining 
the keys and sorting those in whatever way is needed for the task at 
hand (numeric, alphanumeric, dateTime, etc.; provided of course the sort 
command works as questioned above).


--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.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


Help needed with ConvertXMLToArray

2015-03-18 Thread Graham Samuel
Hi

The very useful function ‘ConvertXMLToArray’ was written by Trevor deVore and 
included in Mike Doub’s MasterLibrary. So if you don't know this function or 
aren't willing to look at it, please skip this question and sorry for the waste 
of bandwidth.

My problem is that I’m using it, but I can’t understand it. I’m getting 
elements of an array with numeric labels attached to them, looking like

 myNode[1003]

The relevant bit of the documentation of this function is this:

> Node names will retain the sequence information (i.e. node[1], node[2], etc.).
> This information is necessary to determine order that keys should be
> processed in.   for example:
>  set the itemDelimiter to "["
>  put the keys of theArray into theKeys
>  sort theKeys numeric by the last item of each

There's a problem with this, in that the number in square brackets in my 
example is just a decimal number of variable length, so that for example [9] 
will occur in the sequence and so will [1000]. If you do a numeric sort by 
these numbers, 1000 will come before 9. So the format ought to be [0009] for a 
data set with a maximum of  nodes. Without this, an XML file with child 
nodes in a certain order will end up in a different order when converted to an 
array - and an order that isn't that easy to modify at this point.

Quite frankly I have no idea how to cause this function to produce the data in 
the correct sort order, because I still find both XML and arrays very tricky 
topics. I see that it's something to do with child nodes, but how do these 
nodes get their numbers and how can they be formatted in a different way?

If anyone can see the solution easily and has the time to look at the function 
in the MasterLibrary, I'd be grateful. Meanwhile, it's back to chunk 
expressions.

Graham



___
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: SlideView - Help Needed for 2 Major Issues

2013-09-23 Thread Ender Nafi Elekcioglu
Paul, you're a life-saver :)
I wouldn't figure this out by myself, not even in zillion debugging hours.
Although, I'm still trying to understand why this is an issue.
I'll list all the mouse* and focus* messages to see what's going on behind the 
curtains.
Maybe the second problem is also related to this.



~ Ender Nafi
~… together, we're smarter …~


On September 24, 2013 at 8:08:05 AM, Paul Hibbert (paulhibb...@mac.com) wrote:

Ender,  

By using the message watcher I noticed a mouseLeave message being sent when 
swiping on the block.png image, so adding…  

on mouseLeave  
if sSlideGrab is not empty then mouseUp  
end mouseLeave  

…to the script of group "thePanel" seems to help some issues.  

Paul
___
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: SlideView - Help Needed for 2 Major Issues

2013-09-23 Thread Paul Hibbert
Ender,

By using the message watcher I noticed a mouseLeave message being sent when 
swiping on the block.png image, so adding…

on mouseLeave
   if sSlideGrab is not empty then mouseUp
end mouseLeave

…to the script of group "thePanel" seems to help some issues.

Paul


On 2013-09-23, at 7:48 PM, Ender Nafi Elekcioglu wrote:

> Hi folks,
> 
> I've prepared a simple stack to utilize a common behaviour in mobile apps.
> 
> It's a SlideView project, seen in many mainstream apps; swiping from the edge 
> reveals a pane beneath.
> iOS 7 brought another use for it, though, swiping from left to go back 
> previous page.
> Thus, its importance got just bigger.
> 
> There are two major issues and I couldn't solve them.
> I asked LiveCode support, unfortunately they're too busy to dive in my code.
> 
> I have one urgent and a couple of non-urgent projects awaiting this feature.
> So, I'd be glad if any of you might help.
> 
> I tried to explain the bugs below but a video is worth thousand words ;-)
> Here is a short screencast: http://www.youtube.com/watch?v=lNASXMjzFLo
> And here is the stack: http://tinyurl.com/pkuus9a
> Screenshots: 
> http://forums.runrev.com/viewtopic.php?f=49&t=16981&sid=c9d742c8027879e891d6956ccdd96f79
> 
> Bug 1:
> If the user starts swipe by touching the background picture or button, it 
> works.
> But if the user starts swipe by touching a front control,
> then it sticks to finger and requires a secondary click to work.
> 
> 
> Bug 2:
> The controls of bottom panels interfere the swipe gesture and blocks it.
> 
> Try swiping at different vertical start positions, you'll see the weird 
> behaviours.
> Sometimes, it doesn't reveal;
> sometimes, it reveals and automatically goes to another page;
> sometimes, it reveals and hides automatically a couple of times;
> sometimes, it just sticks to finger and requires another click to let it go.
> 
> I put an if-clause to prevent it; but it seems not working:
> on mouseDown
>if the short name of the target is not in 
> "thePageNav,theSettings,thePageNav1,thePageNav2,thePageNav3" then
> 
> It's line 106 in the script of group "thePanel".
> 
> 
> Bug 3:
> If front controls are grouped {a sub-group in group "thePageContent"}, slide 
> behaviour doesn't work at all.
> It just doesn't response.
> But I couldn't replicate this issue in the screencast.
> 
> 
> Any help or insight much appreciated.
> Thank you.
> 
> 
> ~ Ender Nafi
> ~… together, we're smarter …~
> ___
> 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


SlideView - Help Needed for 2 Major Issues

2013-09-23 Thread Ender Nafi Elekcioglu
Hi folks,

I've prepared a simple stack to utilize a common behaviour in mobile apps.

It's a SlideView project, seen in many mainstream apps; swiping from the edge 
reveals a pane beneath.
iOS 7 brought another use for it, though, swiping from left to go back previous 
page.
Thus, its importance got just bigger.

There are two major issues and I couldn't solve them.
I asked LiveCode support, unfortunately they're too busy to dive in my code.

I have one urgent and a couple of non-urgent projects awaiting this feature.
So, I'd be glad if any of you might help.

I tried to explain the bugs below but a video is worth thousand words ;-)
Here is a short screencast: http://www.youtube.com/watch?v=lNASXMjzFLo
And here is the stack: http://tinyurl.com/pkuus9a
Screenshots: 
http://forums.runrev.com/viewtopic.php?f=49&t=16981&sid=c9d742c8027879e891d6956ccdd96f79

Bug 1:
If the user starts swipe by touching the background picture or button, it works.
But if the user starts swipe by touching a front control,
then it sticks to finger and requires a secondary click to work.


Bug 2:
The controls of bottom panels interfere the swipe gesture and blocks it.

Try swiping at different vertical start positions, you'll see the weird 
behaviours.
Sometimes, it doesn't reveal;
sometimes, it reveals and automatically goes to another page;
sometimes, it reveals and hides automatically a couple of times;
sometimes, it just sticks to finger and requires another click to let it go.

I put an if-clause to prevent it; but it seems not working:
on mouseDown
   if the short name of the target is not in 
"thePageNav,theSettings,thePageNav1,thePageNav2,thePageNav3" then

It's line 106 in the script of group "thePanel".


Bug 3:
If front controls are grouped {a sub-group in group "thePageContent"}, slide 
behaviour doesn't work at all.
It just doesn't response.
But I couldn't replicate this issue in the screencast.


Any help or insight much appreciated.
Thank you.


~ Ender Nafi
~… together, we're smarter …~
___
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: OT : help needed for a Apache 301 redirect using regex

2013-09-14 Thread Richard Gaskin
I had hoped to address that point, but perhaps I'd just misunderstood 
what's needed.


What I was proposing was for requests to be handled in the CGI 
dynamically, so the older format would be translated to the new on 
on-the-fly as requests come in.  If there's no ".php?" in the request 
then the URL would be used as-is, effectively supporting both formats.



A separate potential issue is the duplicate content penalty Google may 
impose if it discovers that the same page can be accessed by two 
different URLs.  But if you add a canonical tag with the new-form URL to 
the head you should be fine; with LC server even that could be added 
on-the-fly as needed.


An extra benefit to a canonical tag (for G at least; I have no idea if 
Bing or Yahoo are as thorough) is that over time G will update its index 
using only the new URL, so eventually you'll be able to remove the 
handling for the old-format URLs from your CGI script without losing any 
SEO value.


Notes from G on canonical:


--
 Richard Gaskin
 Fourth World
 LiveCode training and consulting: http://www.fourthworld.com
 Webzine for LiveCode developers: http://www.LiveCodeJournal.com
 Follow me on Twitter:  http://twitter.com/FourthWorldSys

jbv wrote:

yes of course, but that's not the point : there are thousands of links
that have
already been visited by googlebots and on the site upgrade that is about to
be put online, all these links will be changed from
  mydomain.com/foo.php?someName_someCode
to
  mydomain.com/?foo_someName_someCode
and we need to configure .htaccess with a permanent 301 redirect so that
all links already visited by bots don"t get lost...



What's handling those URLs on the backend?  LC Server, PHP, or something
else?

If LC I would imagine you could alter the string following the domain to
simply replace ".php?" with "_", no?


___
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: OT : help needed for a Apache 301 redirect using regex

2013-09-14 Thread jbv
yes of course, but that's not the point : there are thousands of links
that have
already been visited by googlebots and on the site upgrade that is about to
be put online, all these links will be changed from
  mydomain.com/foo.php?someName_someCode
to
  mydomain.com/?foo_someName_someCode
and we need to configure .htaccess with a permanent 301 redirect so that
all links already visited by bots don"t get lost...


>
> What's handling those URLs on the backend?  LC Server, PHP, or something
> else?
>
> If LC I would imagine you could alter the string following the domain to
> simply replace ".php?" with "_", no?
>


___
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: OT : help needed for a Apache 301 redirect using regex

2013-09-14 Thread Richard Gaskin

jbv wrote:


I have several urls of this kind :
http://www.mydomain.com/foo.php?someName_someCode

that I need to permanently redirect to something like :
http://www.mydomain.com/?foo_someName_someCode

There are actually thousands of urls in which someName_someCode
is different, and I have troubles writing the regex for a 301 RewriteRule.


What's handling those URLs on the backend?  LC Server, PHP, or something 
else?


If LC I would imagine you could alter the string following the domain to 
simply replace ".php?" with "_", no?


--
 Richard Gaskin
 Fourth World
 LiveCode training and consulting: http://www.fourthworld.com
 Webzine for LiveCode developers: http://www.LiveCodeJournal.com
 Follow me on Twitter:  http://twitter.com/FourthWorldSys

___
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: OT : help needed for a Apache 301 redirect using regex

2013-09-14 Thread jbv
I am making progress on this :


when I use
RewriteRule ^foo.php(.*)$ http://www.mydomain.com/?foo_$1 [R=301]
http://www.mydomain.com/foo.phpName is redirected to
http://www.mydomain.com/?foo_Name
BUT
http://www.mydomain.com/foo.php?Name is redirected to
http://www.mydomain.com/?foo_

apparently the ? in the 1st url is hard to handle...

Any hint ?

jbv


> Hello,
> If there are any experts in 301 redirect using regex, please answer
> off-list.
>
> I have several urls of this kind :
> http://www.mydomain.com/foo.php?someName_someCode
>
> that I need to permanently redirect to something like :
> http://www.mydomain.com/?foo_someName_someCode
>
> There are actually thousands of urls in which someName_someCode
> is different, and I have troubles writing the regex for a 301 RewriteRule.
> So any help would be much apreciated.
>
> Thanks in advance.
> jbv
>
>
> ___
> 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


OT : help needed for a Apache 301 redirect using regex

2013-09-14 Thread jbv
Hello,
If there are any experts in 301 redirect using regex, please answer off-list.

I have several urls of this kind :
http://www.mydomain.com/foo.php?someName_someCode

that I need to permanently redirect to something like :
http://www.mydomain.com/?foo_someName_someCode

There are actually thousands of urls in which someName_someCode
is different, and I have troubles writing the regex for a 301 RewriteRule.
So any help would be much apreciated.

Thanks in advance.
jbv


___
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


  1   2   >