Re: Binary Rejected!

2018-08-23 Thread Ludovic THEBAULT via use-livecode

> Le 24 août 2018 à 07:48, Dan Friedman via use-livecode 
>  a écrit :
> 
> Hello,
> 
> My recent iOS app uploaded to Apple was rejected because the dialog asking 
> for access to your location didn’t say why the app wanted to use location 
> services.  Apple said, “We noticed that your app requests the user’s consent 
> to access their location but does not clarify the use of this feature in the 
> permission modal alert.”
> 
> I found the “NSLocationAlwaysAndWhenInUseUsageDescription” key in the app’s 
> info.plist and changed it.  But, when I uploaded the app to Apple, the 
> Application loaded app reported the following error:
> 
> ERROR ITMS-90035: "Invalid Signature. Invalid Info.plist (plist or signature 
> have been modified). The file at path [xxx.app/] is not properly 
> signed. Make sure you have signed your application with a distribution 
> certificate, not an ad hoc certificate or a development certificate. Verify 
> that the code signing settings in Xcode are correct at the target level 
> (which override any values at the project level). Additionally, make sure the 
> bundle you are uploading was built using a Release target in Xcode, not a 
> Simulator target. If you are certain your code signing settings are correct, 
> choose "Clean All" in Xcode, delete the "build" directory in the Finder, and 
> rebuild your release target. For more information, please consult 
> https://developer.apple.com/library/ios/documentation/Security/Conceptual/CodeSigningGuide/Introduction/Introduction.html;
> 
> Obviously, they didn’t like me messing with the info.plist.  So, what the 
> solution?   Is there a way to edit the 
> “NSLocationAlwaysAndWhenInUseUsageDescription” key?   Assuming that’s the 
> correct thing to be editing?
> 
> Any assistance would be VERY appreciated!
> 
> -Dan

Hello,

You need to modify the key before create the standalone :
Panos  tells you how to do it here : 
https://quality.livecode.com/show_bug.cgi?id=19780#c11 


But I hope the next release allows us to do it in the standalone builder.

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

Binary Rejected!

2018-08-23 Thread Dan Friedman via use-livecode
Hello,

My recent iOS app uploaded to Apple was rejected because the dialog asking for 
access to your location didn’t say why the app wanted to use location services. 
 Apple said, “We noticed that your app requests the user’s consent to access 
their location but does not clarify the use of this feature in the permission 
modal alert.”

I found the “NSLocationAlwaysAndWhenInUseUsageDescription” key in the app’s 
info.plist and changed it.  But, when I uploaded the app to Apple, the 
Application loaded app reported the following error:

ERROR ITMS-90035: "Invalid Signature. Invalid Info.plist (plist or signature 
have been modified). The file at path [xxx.app/] is not properly 
signed. Make sure you have signed your application with a distribution 
certificate, not an ad hoc certificate or a development certificate. Verify 
that the code signing settings in Xcode are correct at the target level (which 
override any values at the project level). Additionally, make sure the bundle 
you are uploading was built using a Release target in Xcode, not a Simulator 
target. If you are certain your code signing settings are correct, choose 
"Clean All" in Xcode, delete the "build" directory in the Finder, and rebuild 
your release target. For more information, please consult 
https://developer.apple.com/library/ios/documentation/Security/Conceptual/CodeSigningGuide/Introduction/Introduction.html;

Obviously, they didn’t like me messing with the info.plist.  So, what the 
solution?   Is there a way to edit the 
“NSLocationAlwaysAndWhenInUseUsageDescription” key?   Assuming that’s the 
correct thing to be editing?

Any assistance would be VERY appreciated!

-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: fullscreenmode and rect of a substack on mobile device ?

2018-08-23 Thread Brian Milby via use-livecode
@ Sannyasin Brahmanathaswami

I was finally able to take some time and load the _r9 version of your demo
stack.  When initially loaded, the image did fill the browser window, but
when I pressed the play button it did not take over the entire screen.
When I rotated, it did resize as expected.  I'm not sure if the web code
changed or if I just don't see the issue.  My test was a iPad 6G.  I'm
using 9.0.1rc2 to build my tests.

In your latest response about layout when the stack opens... is that on
Android and iPad?  I do not see that issue on my iPhone/iPad.  Since the
stack is designed at the Plus size, no surprise on my phone.  But it also
resizes properly on load on my iPad.  I had my mobileProfile stack
configured with a button to launch your stack (which should be similar to
how you would be using it).

Here's a preOpenCard that you could try:

on preOpenCard
   local tRect
   if isMobile() then
 mobileSetAllowedOrientations "portrait,portrait upside down,landscape
left,landscape right"
  end if
  put the effective working screenrect into tRect
  resizeStack item 3 of tRect, item 4 of tRect
end preOpenCard

I don't see any difference with that code in place for my devices.

Thanks,
Brian
___
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: fullscreenmode and rect of a substack on mobile device ?

2018-08-23 Thread Brian Milby via use-livecode
@Ludovic / @Jacque

If you are just wanting a background to cover the extra space, why not just
make it oversized and not worry about adjusting it?

The original stack worked fine on my iPad (since it was sized at the same
resolution).  I made it a substack of another one and used a button to "go
stack ipad".  It filled the entire screen.  On my iPhone 8 Plus, the resize
did not work correctly.  Here's a handler that will take care of it on my
phone properly:

on fixBackground
   local tCardW, tScreenW, tScreenH, tNewH
   put the width of this card into tCardW
   put item 3 of the screenrect into tScreenW
   put item 4 of the screenrect into tScreenH
   put tCardW / (tScreenW / tScreenH) into tNewH
   set the height of grc "bkg" to tNewH
   set the loc of grc "bkg" to the loc of this card
end fixBackground

I added the size logging to the `openCard` handler and everything reports
the dimensions of the phone (this stack/this cd/stack "ipad").  Same
numbers before/after the FSM call.  If I did a send "fixbackground" to me
in 0 ms, then it was wrong (based on screenrect).  If I did a send
"fixbackground" to me in 10 ms then it worked fine (I can see the
background jump though).

The above code only works in one direction (W/H ratio is smaller than
iPad).  To cover both variations, you would need to check and possibly do
the opposite (adjust the background width).  I don't know if any
phones/tablets would cause an issue there.  The code wouldn't be difficult
though.

As to the location of the stack... since resize is not sent when in FSM,
the stack is reporting the rect from when it was last saved on the
desktop.  It doesn't really matter though.  My approach doesn't care about
the actual stack rect, only the H/W dimensions.

Thanks,
Brian
___
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: Best way to store videos

2018-08-23 Thread William Prothero via use-livecode
Peter:
I had self-hosted a few small videos, all in mp4 format. I hadn’t checked many 
video players, tho, but when I changed hosting services, for my wordpress site, 
the video appeared offset to the right (same code as prev hosting), in the 
iframe. I couldn’t get it to view correctly, and gave up. However, the Youtube 
and Vimeo versions played fine. Then, googling around led me to a bunch of 
probably obsolete examples of what needs to be done to play videos on a wide 
variety of browsers. So, in my search for a solution that would work for both 
livecode apps and my wordpress site, I tried Youtube and Vimeo. Vimeo has a low 
cost plan of $7/mo, which would fit my needs.

So, I’ll probably go with Vimeo. But, it’s good to know that mp4 will play in 
all browsers.

Best,
Bill


> On Aug 23, 2018, at 3:01 PM, Peter Bogdanoff via use-livecode 
>  wrote:
> 
> Bill: If your video is a common format like MPEG-4, then any browser will 
> play it.
> 
> Stephan: I’m aware of the streaming server versions issue. However, not all 
> video content needs to be optimized—it depends on what it is and in what 
> context it is displayed. But, it is true that Vimeo and YouTube handle format 
> conversion and optimization, which is very nice, and one can embed a browser 
> widget on a LC card to play it. Part of my point was that to create 
> interactivity with the media, it would have to be in a format that a player 
> control can use, which would necessitate appropriate files in media storage 
> somewhere.
> 
> I should have noted in my earlier post that to use callbacks in an LC player 
> in Windows, the media format needs to be WMV.
> 
> Peter
> 
> 
> 
> 
> 
> 
>> On Aug 23, 2018, at 2:05 PM, Stephen Barncard via use-livecode 
>>  wrote:
>> 
>> um... Peter.. streaming video is not just about having the storage space...
>> It's what the servers do to match up the devices calling with the
>> appropriate size and type file. Typically many versions of the same video
>> are created for each upload. The Vimeo and YouTube web apps handle all of
>> that.
>> 
>> Believe me I resisted for years and insisted on hosting my own video
>> content, but when the quality got to be HD for everyone, they dumped Flash®
>> and I figured out how one could turn off the ads, I was sold.
>> 
>> --
>> Stephen Barncard - Sebastopol Ca. USA -
>> mixstream.org
>> 
>> On Thu, Aug 23, 2018 at 1:43 PM, Peter Bogdanoff via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> 
>>> Bill,
>>> 
>>> You could also look at Amazon AWS S3 storage.
>>> 
>>> It’s pretty much free for the first year. Then, depending on usage, could
>>> be only a few dollars a month.
>>> 
>>> https://aws.amazon.com/s3/pricing/
>>> 
>>> Videos could then be played directly in a Livecode player control, as well
>>> as on your website. One of the benefits of the LC player is that you can
>>> program events to happen in response to particular timings set in the
>>> video—callbacks. This is great for pedagogy—synchronized subtitles,
>>> comments, animations as a video (or audio) plays.
>>> 
>>> Peter
>>> 
 On Aug 23, 2018, at 12:47 PM, Stephen Barncard via use-livecode <
>>> use-livecode@lists.runrev.com> wrote:
 
 YouTube is great these days. If you take the time to become a verified
 subscriber all the world will be revealed to you. They have many tools
>>> and
 they re-written the whole thing, and it’s pretty good. It’s also free.
>>> You
 can make playlists and decide what happens at the end, and add links and
 other text.
 
 After you earn your stars and are good for a while they will give you
>>> these
 privileges.
 
 And as far as video streaming, they actually appear to be the best. They
 are so equipped with their mirror servers all over the world.
 
 I used to shun YouTube for several years because of their lower quality
>>> at
 the time but now they’ve come up to do not only great serving but live
 streaming as well.
 
 You can create extra users. And it has a better social features.
 
 Vimeo streaming is still excellent but I like the extended distribution
 that YouTube has.  And I have to pay over $100 a year to be able to
>>> upload
 the quality I want quickly.
 
 On Thu, Aug 23, 2018 at 12:20 Tom Glod via use-livecode <
 use-livecode@lists.runrev.com> wrote:
 
> just fyi..you can disable to recommened videos in the embedd
>>> code..
> you can also detect via java script when the video ends. so you really
>>> have
> more control than you think.  just got to send script to the browser
>>> .
> "do in widget".
> 
> I haven't done anything crazy ...but i know that there is more control
>>> than
> what is obvious at first.
> 
> On Thu, Aug 23, 2018 at 3:12 PM William Prothero via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> Folks:
>> I have numerous videos that I would like to play 

Re: Best way to store videos

2018-08-23 Thread Peter Bogdanoff via use-livecode
Bill: If your video is a common format like MPEG-4, then any browser will play 
it.

Stephan: I’m aware of the streaming server versions issue. However, not all 
video content needs to be optimized—it depends on what it is and in what 
context it is displayed. But, it is true that Vimeo and YouTube handle format 
conversion and optimization, which is very nice, and one can embed a browser 
widget on a LC card to play it. Part of my point was that to create 
interactivity with the media, it would have to be in a format that a player 
control can use, which would necessitate appropriate files in media storage 
somewhere.

I should have noted in my earlier post that to use callbacks in an LC player in 
Windows, the media format needs to be WMV.

Peter






> On Aug 23, 2018, at 2:05 PM, Stephen Barncard via use-livecode 
>  wrote:
> 
> um... Peter.. streaming video is not just about having the storage space...
> It's what the servers do to match up the devices calling with the
> appropriate size and type file. Typically many versions of the same video
> are created for each upload. The Vimeo and YouTube web apps handle all of
> that.
> 
> Believe me I resisted for years and insisted on hosting my own video
> content, but when the quality got to be HD for everyone, they dumped Flash®
> and I figured out how one could turn off the ads, I was sold.
> 
> --
> Stephen Barncard - Sebastopol Ca. USA -
> mixstream.org
> 
> On Thu, Aug 23, 2018 at 1:43 PM, Peter Bogdanoff via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> Bill,
>> 
>> You could also look at Amazon AWS S3 storage.
>> 
>> It’s pretty much free for the first year. Then, depending on usage, could
>> be only a few dollars a month.
>> 
>> https://aws.amazon.com/s3/pricing/
>> 
>> Videos could then be played directly in a Livecode player control, as well
>> as on your website. One of the benefits of the LC player is that you can
>> program events to happen in response to particular timings set in the
>> video—callbacks. This is great for pedagogy—synchronized subtitles,
>> comments, animations as a video (or audio) plays.
>> 
>> Peter
>> 
>>> On Aug 23, 2018, at 12:47 PM, Stephen Barncard via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>>> 
>>> YouTube is great these days. If you take the time to become a verified
>>> subscriber all the world will be revealed to you. They have many tools
>> and
>>> they re-written the whole thing, and it’s pretty good. It’s also free.
>> You
>>> can make playlists and decide what happens at the end, and add links and
>>> other text.
>>> 
>>> After you earn your stars and are good for a while they will give you
>> these
>>> privileges.
>>> 
>>> And as far as video streaming, they actually appear to be the best. They
>>> are so equipped with their mirror servers all over the world.
>>> 
>>> I used to shun YouTube for several years because of their lower quality
>> at
>>> the time but now they’ve come up to do not only great serving but live
>>> streaming as well.
>>> 
>>> You can create extra users. And it has a better social features.
>>> 
>>> Vimeo streaming is still excellent but I like the extended distribution
>>> that YouTube has.  And I have to pay over $100 a year to be able to
>> upload
>>> the quality I want quickly.
>>> 
>>> On Thu, Aug 23, 2018 at 12:20 Tom Glod via use-livecode <
>>> use-livecode@lists.runrev.com> wrote:
>>> 
 just fyi..you can disable to recommened videos in the embedd
>> code..
 you can also detect via java script when the video ends. so you really
>> have
 more control than you think.  just got to send script to the browser
>> .
 "do in widget".
 
 I haven't done anything crazy ...but i know that there is more control
>> than
 what is obvious at first.
 
 On Thu, Aug 23, 2018 at 3:12 PM William Prothero via use-livecode <
 use-livecode@lists.runrev.com> wrote:
 
> Folks:
> I have numerous videos that I would like to play on a wordpress web
>> site,
> and in livecode. I don’t want to host these on my own server for
>> obvious
> reasons of bandwidth, support for different browsers, etc.
> 
> This is not a commercial project, but an educational software project
> where I give it away for free. So, I would rather not pay, but I have
> looked into Vimeo and the lowest rate of $7/mo could work. I’ve tried
> YouTube and it has so many privacy issues. Also,  when the video ends
>> it
> displays unrelated material that would be distracting to students.
> 
> I understand that any free service will probably want to grab users’
>> info
> for marketing. That’s the world we are in.
> 
> Buuut.. do you have a strategy that you could recommend?
> 
> Best,
> Bill
> 
> William A. Prothero
> http://earthlearningsolutions.org
> 
> ___
> use-livecode mailing list
> 

Re: fullscreenmode and rect of a substack on mobile device ?

2018-08-23 Thread J. Landman Gay via use-livecode

On 8/23/18 12:59 AM, Ludovic THEBAULT via use-livecode wrote:



Le 22 août 2018 à 22:24, J. Landman Gay via use-livecode 
 a écrit :

On 8/22/18 3:13 PM, J. Landman Gay via use-livecode wrote:

But the stack should still fill the screen and it doesn't.


This will resize the stack the same way as your "adapt" handler does, so you 
can eliminate that entirely:

on preopenstack
  mobileSetAllowedOrientations("portrait")
  iphoneUseDeviceResolution true,true
  set the fullscreenmode of stack "ipad" to "exactFit"
end preopenstack


Many thanks for finding that this command !
Sadly, it’s only for iOS.

But your previous script must used on android.


The strange thing about your stack is that it doesn't fill the screen on 
an iPad no matter what I try. I turned off FSM entirely, and did this on 
preopenstack:


on preopenstack
  mobileSetAllowedOrientations("portrait")
  set the rect of this stack to the screenrect
end preopenstack

Even that doesn't work. The stack simply won't resize, there are still 
blank areas around all four edges. I next removed the line that sets the 
rect, and allowed LC to resize it by default with the same results.


I decided to try it on Android. PreOpenStack is this:

on preopenstack
  mobileSetAllowedOrientations("portrait")
  set the fullscreenmode of stack "ipad" to "noborder"
end preopenstack

This works perfectly, the entire screen is filled as expected, the "get 
rect" button reports accurate information, and no size adaptation is 
necessary. All objects were placed correctly on screen without distortion.


I then tried it in the iPhone 6 Plus simulator. That worked perfectly 
too. Only the iPad failed. Thinking it might be related to actual size, 
I resized the stack to 640x960 (the screenrect reported on iPad with 
iPhoneUseDeviceResolution true) but that didn't work either.


It would be useful for someone with a real iPad to try a test. If it 
doesn't work there then I think the LC team should look.


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


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

Re: Best way to store videos

2018-08-23 Thread Stephen Barncard via use-livecode
um... Peter.. streaming video is not just about having the storage space...
It's what the servers do to match up the devices calling with the
appropriate size and type file. Typically many versions of the same video
are created for each upload. The Vimeo and YouTube web apps handle all of
that.

Believe me I resisted for years and insisted on hosting my own video
content, but when the quality got to be HD for everyone, they dumped Flash®
and I figured out how one could turn off the ads, I was sold.

--
Stephen Barncard - Sebastopol Ca. USA -
mixstream.org

On Thu, Aug 23, 2018 at 1:43 PM, Peter Bogdanoff via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Bill,
>
> You could also look at Amazon AWS S3 storage.
>
> It’s pretty much free for the first year. Then, depending on usage, could
> be only a few dollars a month.
>
> https://aws.amazon.com/s3/pricing/
>
> Videos could then be played directly in a Livecode player control, as well
> as on your website. One of the benefits of the LC player is that you can
> program events to happen in response to particular timings set in the
> video—callbacks. This is great for pedagogy—synchronized subtitles,
> comments, animations as a video (or audio) plays.
>
> Peter
>
> > On Aug 23, 2018, at 12:47 PM, Stephen Barncard via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > YouTube is great these days. If you take the time to become a verified
> > subscriber all the world will be revealed to you. They have many tools
> and
> > they re-written the whole thing, and it’s pretty good. It’s also free.
> You
> > can make playlists and decide what happens at the end, and add links and
> > other text.
> >
> > After you earn your stars and are good for a while they will give you
> these
> > privileges.
> >
> > And as far as video streaming, they actually appear to be the best. They
> > are so equipped with their mirror servers all over the world.
> >
> > I used to shun YouTube for several years because of their lower quality
> at
> > the time but now they’ve come up to do not only great serving but live
> > streaming as well.
> >
> > You can create extra users. And it has a better social features.
> >
> >  Vimeo streaming is still excellent but I like the extended distribution
> > that YouTube has.  And I have to pay over $100 a year to be able to
> upload
> > the quality I want quickly.
> >
> > On Thu, Aug 23, 2018 at 12:20 Tom Glod via use-livecode <
> > use-livecode@lists.runrev.com> wrote:
> >
> >> just fyi..you can disable to recommened videos in the embedd
> code..
> >> you can also detect via java script when the video ends. so you really
> have
> >> more control than you think.  just got to send script to the browser
> .
> >> "do in widget".
> >>
> >> I haven't done anything crazy ...but i know that there is more control
> than
> >> what is obvious at first.
> >>
> >> On Thu, Aug 23, 2018 at 3:12 PM William Prothero via use-livecode <
> >> use-livecode@lists.runrev.com> wrote:
> >>
> >>> Folks:
> >>> I have numerous videos that I would like to play on a wordpress web
> site,
> >>> and in livecode. I don’t want to host these on my own server for
> obvious
> >>> reasons of bandwidth, support for different browsers, etc.
> >>>
> >>> This is not a commercial project, but an educational software project
> >>> where I give it away for free. So, I would rather not pay, but I have
> >>> looked into Vimeo and the lowest rate of $7/mo could work. I’ve tried
> >>> YouTube and it has so many privacy issues. Also,  when the video ends
> it
> >>> displays unrelated material that would be distracting to students.
> >>>
> >>> I understand that any free service will probably want to grab users’
> info
> >>> for marketing. That’s the world we are in.
> >>>
> >>> Buuut.. do you have a strategy that you could recommend?
> >>>
> >>> Best,
> >>> Bill
> >>>
> >>> William A. Prothero
> >>> http://earthlearningsolutions.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
> >> ___
> >> 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
> >
> > --
> > --
> > Stephen Barncard - Sebastopol Ca. USA -
> > mixstream.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
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this 

Re: Best way to store videos

2018-08-23 Thread William Prothero via use-livecode
Peter, 
That sounds like a good idea. What has worried me, though, is that it can be a 
pain to implement the code that lets the video be played on any of the many 
browser variations. With Youtube or Vimeo, they take care of making the video 
play on any browser. 

That is, unless the technology for making videos cross-platform has improved 
and I’m not aware of it.

Best,
Bill

> On Aug 23, 2018, at 1:43 PM, Peter Bogdanoff via use-livecode 
>  wrote:
> 
> Bill,
> 
> You could also look at Amazon AWS S3 storage.
> 
> It’s pretty much free for the first year. Then, depending on usage, could be 
> only a few dollars a month.
> 
> https://aws.amazon.com/s3/pricing/
> 
> Videos could then be played directly in a Livecode player control, as well as 
> on your website. One of the benefits of the LC player is that you can program 
> events to happen in response to particular timings set in the 
> video—callbacks. This is great for pedagogy—synchronized subtitles, comments, 
> animations as a video (or audio) plays.
> 
> Peter
> 
>> On Aug 23, 2018, at 12:47 PM, Stephen Barncard via use-livecode 
>>  wrote:
>> 
>> YouTube is great these days. If you take the time to become a verified
>> subscriber all the world will be revealed to you. They have many tools and
>> they re-written the whole thing, and it’s pretty good. It’s also free. You
>> can make playlists and decide what happens at the end, and add links and
>> other text.
>> 
>> After you earn your stars and are good for a while they will give you these
>> privileges.
>> 
>> And as far as video streaming, they actually appear to be the best. They
>> are so equipped with their mirror servers all over the world.
>> 
>> I used to shun YouTube for several years because of their lower quality at
>> the time but now they’ve come up to do not only great serving but live
>> streaming as well.
>> 
>> You can create extra users. And it has a better social features.
>> 
>> Vimeo streaming is still excellent but I like the extended distribution
>> that YouTube has.  And I have to pay over $100 a year to be able to upload
>> the quality I want quickly.
>> 
>> On Thu, Aug 23, 2018 at 12:20 Tom Glod via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> 
>>> just fyi..you can disable to recommened videos in the embedd code..
>>> you can also detect via java script when the video ends. so you really have
>>> more control than you think.  just got to send script to the browser .
>>> "do in widget".
>>> 
>>> I haven't done anything crazy ...but i know that there is more control than
>>> what is obvious at first.
>>> 
>>> On Thu, Aug 23, 2018 at 3:12 PM William Prothero via use-livecode <
>>> use-livecode@lists.runrev.com> wrote:
>>> 
 Folks:
 I have numerous videos that I would like to play on a wordpress web site,
 and in livecode. I don’t want to host these on my own server for obvious
 reasons of bandwidth, support for different browsers, etc.
 
 This is not a commercial project, but an educational software project
 where I give it away for free. So, I would rather not pay, but I have
 looked into Vimeo and the lowest rate of $7/mo could work. I’ve tried
 YouTube and it has so many privacy issues. Also,  when the video ends it
 displays unrelated material that would be distracting to students.
 
 I understand that any free service will probably want to grab users’ info
 for marketing. That’s the world we are in.
 
 Buuut.. do you have a strategy that you could recommend?
 
 Best,
 Bill
 
 William A. Prothero
 http://earthlearningsolutions.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
>>> ___
>>> 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
>> 
>> -- 
>> --
>> Stephen Barncard - Sebastopol Ca. USA -
>> mixstream.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
> 
> 
> ___
> 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 

Re: Best way to store videos

2018-08-23 Thread Peter Bogdanoff via use-livecode
Bill,

You could also look at Amazon AWS S3 storage.

It’s pretty much free for the first year. Then, depending on usage, could be 
only a few dollars a month.

https://aws.amazon.com/s3/pricing/

Videos could then be played directly in a Livecode player control, as well as 
on your website. One of the benefits of the LC player is that you can program 
events to happen in response to particular timings set in the video—callbacks. 
This is great for pedagogy—synchronized subtitles, comments, animations as a 
video (or audio) plays.

Peter
 
> On Aug 23, 2018, at 12:47 PM, Stephen Barncard via use-livecode 
>  wrote:
> 
> YouTube is great these days. If you take the time to become a verified
> subscriber all the world will be revealed to you. They have many tools and
> they re-written the whole thing, and it’s pretty good. It’s also free. You
> can make playlists and decide what happens at the end, and add links and
> other text.
> 
> After you earn your stars and are good for a while they will give you these
> privileges.
> 
> And as far as video streaming, they actually appear to be the best. They
> are so equipped with their mirror servers all over the world.
> 
> I used to shun YouTube for several years because of their lower quality at
> the time but now they’ve come up to do not only great serving but live
> streaming as well.
> 
> You can create extra users. And it has a better social features.
> 
>  Vimeo streaming is still excellent but I like the extended distribution
> that YouTube has.  And I have to pay over $100 a year to be able to upload
> the quality I want quickly.
> 
> On Thu, Aug 23, 2018 at 12:20 Tom Glod via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> just fyi..you can disable to recommened videos in the embedd code..
>> you can also detect via java script when the video ends. so you really have
>> more control than you think.  just got to send script to the browser .
>> "do in widget".
>> 
>> I haven't done anything crazy ...but i know that there is more control than
>> what is obvious at first.
>> 
>> On Thu, Aug 23, 2018 at 3:12 PM William Prothero via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> 
>>> Folks:
>>> I have numerous videos that I would like to play on a wordpress web site,
>>> and in livecode. I don’t want to host these on my own server for obvious
>>> reasons of bandwidth, support for different browsers, etc.
>>> 
>>> This is not a commercial project, but an educational software project
>>> where I give it away for free. So, I would rather not pay, but I have
>>> looked into Vimeo and the lowest rate of $7/mo could work. I’ve tried
>>> YouTube and it has so many privacy issues. Also,  when the video ends it
>>> displays unrelated material that would be distracting to students.
>>> 
>>> I understand that any free service will probably want to grab users’ info
>>> for marketing. That’s the world we are in.
>>> 
>>> Buuut.. do you have a strategy that you could recommend?
>>> 
>>> Best,
>>> Bill
>>> 
>>> William A. Prothero
>>> http://earthlearningsolutions.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
>> ___
>> 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
> 
> -- 
> --
> Stephen Barncard - Sebastopol Ca. USA -
> mixstream.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


___
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: Best way to store videos

2018-08-23 Thread Stephen Barncard via use-livecode
 YouTube is great these days. If you take the time to become a verified
subscriber all the world will be revealed to you. They have many tools and
they re-written the whole thing, and it’s pretty good. It’s also free. You
can make playlists and decide what happens at the end, and add links and
other text.

After you earn your stars and are good for a while they will give you these
privileges.

And as far as video streaming, they actually appear to be the best. They
are so equipped with their mirror servers all over the world.

I used to shun YouTube for several years because of their lower quality at
the time but now they’ve come up to do not only great serving but live
streaming as well.

You can create extra users. And it has a better social features.

  Vimeo streaming is still excellent but I like the extended distribution
that YouTube has.  And I have to pay over $100 a year to be able to upload
the quality I want quickly.

On Thu, Aug 23, 2018 at 12:20 Tom Glod via use-livecode <
use-livecode@lists.runrev.com> wrote:

> just fyi..you can disable to recommened videos in the embedd code..
> you can also detect via java script when the video ends. so you really have
> more control than you think.  just got to send script to the browser .
> "do in widget".
>
> I haven't done anything crazy ...but i know that there is more control than
> what is obvious at first.
>
> On Thu, Aug 23, 2018 at 3:12 PM William Prothero via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> > Folks:
> > I have numerous videos that I would like to play on a wordpress web site,
> > and in livecode. I don’t want to host these on my own server for obvious
> > reasons of bandwidth, support for different browsers, etc.
> >
> > This is not a commercial project, but an educational software project
> > where I give it away for free. So, I would rather not pay, but I have
> > looked into Vimeo and the lowest rate of $7/mo could work. I’ve tried
> > YouTube and it has so many privacy issues. Also,  when the video ends it
> > displays unrelated material that would be distracting to students.
> >
> > I understand that any free service will probably want to grab users’ info
> > for marketing. That’s the world we are in.
> >
> > Buuut.. do you have a strategy that you could recommend?
> >
> > Best,
> > Bill
> >
> > William A. Prothero
> > http://earthlearningsolutions.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
> ___
> 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

-- 
--
Stephen Barncard - Sebastopol Ca. USA -
mixstream.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: Best way to store videos

2018-08-23 Thread William Prothero via use-livecode
Thanks, Tom. I did a fair amount of Googling and didn’t find any way to turn 
off recommended videos, but perhaps Google is inhibiting those searches. I did 
find a fair amount on a few options, but they weren’t what I wanted.

FYI, I just started with the embed code that youtube gives after uploading. 
Perhaps further investigation will turn up something.
Best,
Bill


> On Aug 23, 2018, at 12:20 PM, Tom Glod via use-livecode 
>  wrote:
> 
> just fyi..you can disable to recommened videos in the embedd code..
> you can also detect via java script when the video ends. so you really have
> more control than you think.  just got to send script to the browser .
> "do in widget".
> 
> I haven't done anything crazy ...but i know that there is more control than
> what is obvious at first.
> 
> On Thu, Aug 23, 2018 at 3:12 PM William Prothero via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> Folks:
>> I have numerous videos that I would like to play on a wordpress web site,
>> and in livecode. I don’t want to host these on my own server for obvious
>> reasons of bandwidth, support for different browsers, etc.
>> 
>> This is not a commercial project, but an educational software project
>> where I give it away for free. So, I would rather not pay, but I have
>> looked into Vimeo and the lowest rate of $7/mo could work. I’ve tried
>> YouTube and it has so many privacy issues. Also,  when the video ends it
>> displays unrelated material that would be distracting to students.
>> 
>> I understand that any free service will probably want to grab users’ info
>> for marketing. That’s the world we are in.
>> 
>> Buuut.. do you have a strategy that you could recommend?
>> 
>> Best,
>> Bill
>> 
>> William A. Prothero
>> http://earthlearningsolutions.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
> ___
> 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: Best way to store videos

2018-08-23 Thread Tom Glod via use-livecode
just fyi..you can disable to recommened videos in the embedd code..
you can also detect via java script when the video ends. so you really have
more control than you think.  just got to send script to the browser .
"do in widget".

I haven't done anything crazy ...but i know that there is more control than
what is obvious at first.

On Thu, Aug 23, 2018 at 3:12 PM William Prothero via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Folks:
> I have numerous videos that I would like to play on a wordpress web site,
> and in livecode. I don’t want to host these on my own server for obvious
> reasons of bandwidth, support for different browsers, etc.
>
> This is not a commercial project, but an educational software project
> where I give it away for free. So, I would rather not pay, but I have
> looked into Vimeo and the lowest rate of $7/mo could work. I’ve tried
> YouTube and it has so many privacy issues. Also,  when the video ends it
> displays unrelated material that would be distracting to students.
>
> I understand that any free service will probably want to grab users’ info
> for marketing. That’s the world we are in.
>
> Buuut.. do you have a strategy that you could recommend?
>
> Best,
> Bill
>
> William A. Prothero
> http://earthlearningsolutions.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
___
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

Best way to store videos

2018-08-23 Thread William Prothero via use-livecode
Folks:
I have numerous videos that I would like to play on a wordpress web site, and 
in livecode. I don’t want to host these on my own server for obvious reasons of 
bandwidth, support for different browsers, etc. 

This is not a commercial project, but an educational software project where I 
give it away for free. So, I would rather not pay, but I have looked into Vimeo 
and the lowest rate of $7/mo could work. I’ve tried YouTube and it has so many 
privacy issues. Also,  when the video ends it displays unrelated material that 
would be distracting to students.

I understand that any free service will probably want to grab users’ info for 
marketing. That’s the world we are in.

Buuut.. do you have a strategy that you could recommend?

Best,
Bill

William A. Prothero
http://earthlearningsolutions.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: Set the backgroundcolor of all lines a field to null

2018-08-23 Thread Richard Gaskin via use-livecode

There's a lot in that, Brahmanathaswami.
http://lists.runrev.com/pipermail/use-livecode/2018-August/249651.html

2000 lines is not much.  I suspect any time spent is relating to needing 
the redraw the field each time it's touched.  Try locking the screen at 
the top of the handler and see if that helps.


Also, my question about the algo itself was unaddressed.  If you can 
describe what you want it to do I'm sure we can find an efficient solution.


--
 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: Recommend Directory for Installation of Windows Apps

2018-08-23 Thread Charles Szasz via use-livecode
Paul,

Thanks very much!

Sent from my iPad

___
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: Set the backgroundcolor of all lines a field to null

2018-08-23 Thread J. Landman Gay via use-livecode
If you just want to clear the whole field (Richard suggested something 
similar):


   set the backcolor of char 1 to - 1 of fld x to empty

After that you can hilite other lines if needed.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On August 23, 2018 9:32:14 AM Sannyasin Brahmanathaswami via use-livecode 
 wrote:



Aloha Brian and Richard,

@ Brian "put styledText...into tTextA[snip]" looks excellent. It does it 
all on ram!


@ Richard

Again, we all appreciate the time you take to help us "understand the 
architecture"


The list is only 2000 lines, on into a field from a sqlLite list of audio 
file/Title.


That all happens "quickly" on mobile. But we all know that the

repeat with x=1 to (the number lines of fld "audioList")

on a field itself is slow, but on desktop I usual do in RAM first (per 
Brians solution)


But on mobile it produce a 800 second "wait" with the user clicked the 
list, to "unhilite" a previous title/selection


Also with 9.0.1.RC2  I was getting a new message from Android (did not 
happen on earlier versions) Android is attempting fill in the field, and 
when I click I get an unusual message from the OS.


App is not responding
Do you want to

Close the app [OR]
Wait

This is new to 9.0.1 RC 2 for this screen/UX

So I had to admit that my code is admittedly not well optimized. I began 
look around. And saw my old


repeat with x=1 to (the number lines of fld "audioList")

Thinking that was causing the app to "not respond" while it was the setting 
the color of line of everyline.  Aha I thought, "That's is: I am iterate 
through each line in the field itself!"


then I posted my question to the list...

Meanwhile I created a local variable and now store the Current hilitedline. 
No more "going through the whole field"


And *still* I get the msg

App is not responding
Do you want to

Close the app [OR]
Wait

but now I can click "Wait" the dialog disappeared at the change of color 
works as expect and the player started on change of Audio right was. So 
where it  mysterious dialog is coming from?


= For the "architecture" discussion:

Having to generate "setters and getters" of local variable is tedious, and 
sometimes would nice have a global method. I keep thinking my attempt to 
use "chains" of nested behavior in this case (had not done it before) look 
interesting, but sometimes I think one long behavior is better. Like the 
old "one stack script for everything" approach.


As it stands, if you do not want to use global (who does!), for one 
"module" / stack with 3-4 behaviors, that need one value (temporarily) 
there is no way to do it. The code become "tangled" because all 4 behaviors 
need to know about


local sSelectNum

and you start using "setters and getters"  all over the place


command setJournalFlag pFlag

   put pFlag into sJournalFlag

end setJournalFlag

function getJournalFlag

   return sJournalFlag

end getJournalFlag

Then if this is "child" behavior, in parent you have to issue a 
"getJournalFlag()" every time you need that value, and debugging gets 
"crazy" -- better to have in all in one behavior.




Now I'm back on "mysterious" Android dialog, I have no clue/way to debug that?



On 8/22/18 8:15 PM, Richard Gaskin via use-livecode wrote:

Sannyasin Brahmanathaswami wrote:

> I have some big lists in mobile,

How big is "big"? 100 lines?  1,000?  1,000,000?


> I sent the bkgndColor of certain
> lines.
>
> Then I want clear that,
>
> How do we do this "for each line x"
> which does not return the number of the line, but value
>
> command setAudioListColors pLineNum,pColor  # pass "4,"0,0,0"
> #slow!
>   repeat with x=1 to (the number lines of fld "audioList")
>   set the backgroundcolor of line pLineNum of fld "audioList"
to pColor
> end repeat
> repeat for each line x in fld "audioList"
> # need to get a line number and not its value
>   set the backgroundcolor of line pLineNum of fld "audioList" to pColor
> end repeat
> end setAudioListColors


Your command takes a line number and a color, and applies that color to
that one line, yes?  If so, why loop at all?

As written, the code applies the color to the same line over and over
for the number of lines in the field.

Maybe pLineNum could contain a list of line numbers?

If so, iterate through it rather than through the field, since chances
are you're only setting the color of a subset of all lines in the field.
Locking the screen first will speed that up even more.

But faster still will likely be to follow Brian's guidance on
styledText.  With that you probably don't even want to lock the field,
since all the changes are done in a variable outside the field, and the
variable is set back into the field only once at the end.

But once we understand what's needed, the speed difference may not
matter much. Or it might. It depends on how big "big" is.

If you want to clear everything at once:

  set the 

Re: fullscreenmode and rect of a substack on mobile device ?

2018-08-23 Thread Sannyasin Brahmanathaswami via use-livecode
This thread will never finish (hehe)

I am still have trouble getting  the two object in the stack in place when we 
open stack on mobile.

The resize handlers wrok, and soon as we rotate the phone and back and geometry 
is implemented.

But not on open stack..

So I use your script. I was not orienting the stack size against the screenrect 
first.

Still not go:

on preopenstack

if isMobile() then

mobileSetAllowedOrientations "portrait,portrait upside down,landscape 
left,landscape right"

setupStackRect

end if

end preopenstack

--

# Geometry

on orientationChanged

-- setupStackRect

end orientationChanged

on setupStackRect pWidth,pHeight

if pWidth="" and pHeight="" then

put the effective working screenRect into tRect

set the rect of this stack to tRect

set the topLeft of this stack to item 1 to 2 of tRect

else

put the rect of this stack into tRect

put tWidth into item 3 of tRect

put tHeight into item 4 of tRect

set the rect of this stack to tRect

end if

set bottom of group "footer" to item 4 of tRect

set loc group "footer" to ( (item 2 of tRect)/2,(item 4 of tRect)/25 )

subtract 50 from item 4 of tRect

set the rect of widget "body" to tRect

end setupStackRect

on resizeStack pNewWidth, pNewHeight, pOldWidth, pOldHeight

# check it is landscape, turn off the navigation Bar

if pNewWidth > pNewHeight then -- landscape

put 0, 0, pNewWidth, pNewHeight into tBrowserRect

set loc widget "body" to (pNewWidth/2,pNewHeight/2)

hide group "footer"

else

put 0, 0, pNewWidth, pNewHeight - 50 into tBrowserRect

set loc group "footer" to (pNewWidth/2,pNewHeight-25)

show group "footer"

end if

set the rect of widget "body" of me to tBrowserRect

end resizeStack



On 8/23/18 2:21 AM, FlexibleLearning.com via use-livecode wrote:

Coming in late to the thread, but would this not work on all platforms?

on preOpenStack
  setupStackRect
end preOpenStack

on orientationChanged
  --  setupStackRect
end orientationChanged

on setupStackRect pWidth,pHeight
  if pWidth="" and pHeight="" then
put the effective working screenRect into tRect
set the rect of this stack to tRect
set the topLeft of this stack to item 1 to 2 of tRect
  else
put the rect of this stack into tRect
put tWidth into item 3 of tRect
put tHeight into item 4 of tRect
set the rect of this stack to tRect
  end if
end setupStackRect

You would obviously need to handle individual control geometry as needed,
but I found using a (hidden) master group of template graphics to define
regions a straightforward way to implement consistent geometry settings...

Set [the geometry] of [object] to [the geometry] of [graphic]
e.g. set the topleft of fld "About" to the topLeft of grc "template_Body"

___
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: Recommend Directory for Installation of Windows Apps

2018-08-23 Thread Paul Dupuis via use-livecode
Apps themselves should be installed in C:\Program Files (x86)\ if a 32
bit app or C:\Program Files\ if a 64 bit app

C:\Program Data\ is for application data.

On 8/23/2018 1:10 PM, Charles Szasz via use-livecode wrote:
> I am would to know what is the recommended directory for installing Windows 
> apps. I have been using the Program Data folder for a long time. This was the 
> recommended directory when I started making apps.  I am particular concerned 
> about installing apps on Windows 10.  
>
> Thanks for your time!
>
> Sent from my iPad
> ___
> 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


Recommend Directory for Installation of Windows Apps

2018-08-23 Thread Charles Szasz via use-livecode
I am would to know what is the recommended directory for installing Windows 
apps. I have been using the Program Data folder for a long time. This was the 
recommended directory when I started making apps.  I am particular concerned 
about installing apps on Windows 10.  

Thanks for your time!

Sent from my iPad
___
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: revNavigator - Cloning a card - am i doing something wrong?

2018-08-23 Thread Geoff Canyon via use-livecode
On Thu, Aug 23, 2018 at 9:58 AM Matthias Rebbe via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Hi Geoff,
>
> thank you very much. It´s working here now.
>
> Regards,
>
> Matthias
>

Great!
___
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: revNavigator - Cloning a card - am i doing something wrong?

2018-08-23 Thread Matthias Rebbe via use-livecode
Hi Geoff,

thank you very much. It´s working here now.

Regards,

Matthias


> Am 23.08.2018 um 17:43 schrieb Geoff Canyon via use-livecode 
> mailto:use-livecode@lists.runrev.com>>:
> 
> Bah, my mistake. Should be fixed now:
> 
> Get Navigator here
>  >. Or grab it
> from GitHub  >.
> 
> On Wed, Aug 22, 2018 at 11:43 PM Matthias Rebbe via use-livecode <
> use-livecode@lists.runrev.com > wrote:
> 
>> Geoff,
>> 
>> now when clicking on the arrows to collapse the stack, nothing happens,
>> regardless where the stack is placed on the desktop.
>> 
>> But when i open the Message Watcher and click on the arrows, then the
>> script editor opens the script of rev_s_revNavigator.livecodescript
>> 
>> and shows this error
>> 
>> stack "rev_s_revNavigator": execution error at line 1576 (Operators is:
>> error in right operand), char 16
>> 
>> Regards,
>> Matthias
>> 
> ___
> 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

Matthias Rebbe
Tel +49 5741 31
‌https://matthiasrebbe.eu ‌

___
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: revNavigator - Cloning a card - am i doing something wrong?

2018-08-23 Thread Geoff Canyon via use-livecode
Bah, my mistake. Should be fixed now:

Get Navigator here
. Or grab it
from GitHub .

On Wed, Aug 22, 2018 at 11:43 PM Matthias Rebbe via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Geoff,
>
> now when clicking on the arrows to collapse the stack, nothing happens,
> regardless where the stack is placed on the desktop.
>
> But when i open the Message Watcher and click on the arrows, then the
> script editor opens the script of rev_s_revNavigator.livecodescript
>
> and shows this error
>
> stack "rev_s_revNavigator": execution error at line 1576 (Operators is:
> error in right operand), char 16
>
> Regards,
> Matthias
>
___
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: Set the backgroundcolor of all lines a field to null

2018-08-23 Thread Sannyasin Brahmanathaswami via use-livecode
Aloha Brian and Richard,

@ Brian "put styledText...into tTextA[snip]" looks excellent. It does it all on 
ram!

@ Richard

Again, we all appreciate the time you take to help us "understand the 
architecture"

The list is only 2000 lines, on into a field from a sqlLite list of audio 
file/Title.

That all happens "quickly" on mobile. But we all know that the

repeat with x=1 to (the number lines of fld "audioList")

on a field itself is slow, but on desktop I usual do in RAM first (per Brians 
solution)

But on mobile it produce a 800 second "wait" with the user clicked the list, to 
"unhilite" a previous title/selection

Also with 9.0.1.RC2  I was getting a new message from Android (did not happen 
on earlier versions) Android is attempting fill in the field, and when I click 
I get an unusual message from the OS.

App is not responding
Do you want to

Close the app [OR]
Wait

This is new to 9.0.1 RC 2 for this screen/UX

So I had to admit that my code is admittedly not well optimized. I began look 
around. And saw my old

repeat with x=1 to (the number lines of fld "audioList")

Thinking that was causing the app to "not respond" while it was the setting the 
color of line of everyline.  Aha I thought, "That's is: I am iterate through 
each line in the field itself!"

then I posted my question to the list...

Meanwhile I created a local variable and now store the Current hilitedline. No 
more "going through the whole field"

And *still* I get the msg

App is not responding
Do you want to

Close the app [OR]
Wait

but now I can click "Wait" the dialog disappeared at the change of color works 
as expect and the player started on change of Audio right was. So where it  
mysterious dialog is coming from?

= For the "architecture" discussion:

 Having to generate "setters and getters" of local variable is tedious, and 
sometimes would nice have a global method. I keep thinking my attempt to use 
"chains" of nested behavior in this case (had not done it before) look 
interesting, but sometimes I think one long behavior is better. Like the old 
"one stack script for everything" approach.

As it stands, if you do not want to use global (who does!), for one "module" / 
stack with 3-4 behaviors, that need one value (temporarily) there is no way to 
do it. The code become "tangled" because all 4 behaviors need to know about

local sSelectNum

and you start using "setters and getters"  all over the place


command setJournalFlag pFlag

put pFlag into sJournalFlag

end setJournalFlag

function getJournalFlag

return sJournalFlag

end getJournalFlag

Then if this is "child" behavior, in parent you have to issue a 
"getJournalFlag()" every time you need that value, and debugging gets "crazy" 
-- better to have in all in one behavior.



Now I'm back on "mysterious" Android dialog, I have no clue/way to debug that?



On 8/22/18 8:15 PM, Richard Gaskin via use-livecode wrote:

Sannyasin Brahmanathaswami wrote:

 > I have some big lists in mobile,

How big is "big"? 100 lines?  1,000?  1,000,000?


 > I sent the bkgndColor of certain
 > lines.
 >
 > Then I want clear that,
 >
 > How do we do this "for each line x"
 > which does not return the number of the line, but value
 >
 > command setAudioListColors pLineNum,pColor  # pass "4,"0,0,0"
 > #slow!
 >   repeat with x=1 to (the number lines of fld "audioList")
 >   set the backgroundcolor of line pLineNum of fld "audioList"
to pColor
 > end repeat
 > repeat for each line x in fld "audioList"
 > # need to get a line number and not its value
 >   set the backgroundcolor of line pLineNum of fld "audioList" to pColor
 > end repeat
 > end setAudioListColors


Your command takes a line number and a color, and applies that color to
that one line, yes?  If so, why loop at all?

As written, the code applies the color to the same line over and over
for the number of lines in the field.

Maybe pLineNum could contain a list of line numbers?

If so, iterate through it rather than through the field, since chances
are you're only setting the color of a subset of all lines in the field.
Locking the screen first will speed that up even more.

But faster still will likely be to follow Brian's guidance on
styledText.  With that you probably don't even want to lock the field,
since all the changes are done in a variable outside the field, and the
variable is set back into the field only once at the end.

But once we understand what's needed, the speed difference may not
matter much. Or it might. It depends on how big "big" is.

If you want to clear everything at once:

   set the backgroundColor of line 1 to -1 of fld "audioList" to empty

All this is just guessing, though.  I'm not really sure what this
handler should do.


--
  Richard Gaskin
  Fourth World Systems
  Software Design and Development for the Desktop, Mobile, and the Web



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please 

RE: Set the backgroundcolor of all lines a field to null

2018-08-23 Thread Ralph DiMola via use-livecode
What would be very convenient would be an "index" option for the repeat
construct. I have to add this index counter all the time.

Repeat for each line tLine in tLines index tIndex

tIndex would start at 1 and increment by 1 for each iteration.
 

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 dunbarxx via use-livecode
Sent: Thursday, August 23, 2018 9:46 AM
To: use-revolut...@lists.runrev.com
Cc: dunbarxx
Subject: Re: Set the backgroundcolor of all lines a field to null

We are all happy with the speedy "repeat for each..." construction.

But there are times when the good ol' "repeat with..." construction, which
manages a counting index internally, is just the right way to do things. The
line number is at the ready with each iteration.

Craig



--
Sent from:
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html

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


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


Re: Set the backgroundcolor of all lines a field to null

2018-08-23 Thread dunbarxx via use-livecode
We are all happy with the speedy "repeat for each..." construction.

But there are times when the good ol' "repeat with..." construction, which
manages a counting index internally, is just the right way to do things. The
line number is at the ready with each iteration.

Craig



--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html

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


Re: fullscreenmode and rect of a substack on mobile device ?

2018-08-23 Thread FlexibleLearning.com via use-livecode
Coming in late to the thread, but would this not work on all platforms?

on preOpenStack
  setupStackRect
end preOpenStack

on orientationChanged
  --  setupStackRect
end orientationChanged

on setupStackRect pWidth,pHeight
  if pWidth="" and pHeight="" then
put the effective working screenRect into tRect
set the rect of this stack to tRect
set the topLeft of this stack to item 1 to 2 of tRect
  else
put the rect of this stack into tRect
put tWidth into item 3 of tRect
put tHeight into item 4 of tRect
set the rect of this stack to tRect
  end if
end setupStackRect

You would obviously need to handle individual control geometry as needed,
but I found using a (hidden) master group of template graphics to define
regions a straightforward way to implement consistent geometry settings...

Set [the geometry] of [object] to [the geometry] of [graphic]
e.g. set the topleft of fld "About" to the topLeft of grc "template_Body"

Hugh Senior


> Le 22 ao?t 2018 ? 22:24, J. Landman Gay via use-livecode
 a ?crit :
> 
> On 8/22/18 3:13 PM, J. Landman Gay via use-livecode wrote:
>> But the stack should still fill the screen and it doesn't.
> 
> This will resize the stack the same way as your "adapt" handler does, so
you can eliminate that entirely:
> 
> on preopenstack
>  mobileSetAllowedOrientations("portrait")
>  iphoneUseDeviceResolution true,true
>  set the fullscreenmode of stack "ipad" to "exactFit"
> end preopenstack

Many thanks for finding that this command !
Sadly, it?s only for iOS.


___
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: editing & combining sound files?

2018-08-23 Thread Stephen Barncard via use-livecode
if you have a lot of files to convert, I'd go for using Livecode for "glue"
while making calls to SOX.
SOX can convert and move in one operation;

forget doing anything in Livecode with sound - the internals are not
equipped to be easy to manipulate.
I actually made an editor that could draw out an imbedded sound in a stack
and export to AIFF by moving binary blocks around and reconstructing the
headers and jump tables. There are several ambiguities in audio file
standards to make things messy, although the audio blocks of WAV and AIFF
files are almost identical. Look out for little and big endian variations,
etc.

SOX did everything I needed, including conversion to MP3.


sqb

--
Stephen Barncard - Sebastopol Ca. USA -
mixstream.org

On Wed, Aug 22, 2018 at 10:52 PM, Nicolas Cueto via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Well, maybe some day I'll put the time in to study Geoff's and Tom's
> solutions. But, for future reference, below is my easier-for-me solution.
>
> First, use a sound-editor (Goldwave) to convert all AU files to RAW (i.e.,
> snd).
>
> Second, run this LC script to merge those converted files (interleaved with
> silence) into a new .snd file:
>
>  put URL "binfile:C:/the_path/faster/{file ID}.snd" into tNewSnd
>  put URL "binfile:C:/the_path/1_sec_silence.snd" after tNewSnd
>  put URL "binfile:C:/the_path/slow/{file ID}.snd" after tNewSnd
>  put tNewSnd into URL  "binfile:C:/the_path/CD/{file ID}.snd"
>
> Third, use the sound-editor again, this time to convert those new .snd
> files into .mp3.
>
> That's it. But if someone wants to post exact details of how to LC script
> what Geoff suggests, i.e., stripping headers from an .au (or any!) sound
> file type, I'm still all ears.
>
> Cheers.
>
> --
> Nicolas Cueto
>
> On 23 August 2018 at 13:40, Tom Glod via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> > sox is good for this kind of stuff, you can automate the command-lines
> > using livecodebut you can skip some of the bs you would probably
> > encounter with LC and audio "processing".
> >
> > http://sox.sourceforge.net/
> >
> > On Wed, Aug 22, 2018 at 10:30 PM Geoff Canyon via use-livecode <
> > use-livecode@lists.runrev.com> wrote:
> >
> > > I did something very much like this way, way, way long ago (in the
> > MetaCard
> > > days...). I don't remember the sound format, and it was mono, not
> stereo,
> > > but it turned out that the format for the sound file was *really*
> > simple: a
> > > few bytes of easily-managed header, a bunch of binary data that
> > represented
> > > the sound file data, and a few bytes of footer.
> > >
> > > So the steps above would be roughly:
> > >
> > > 1. Read in the binary data from the sound file, strip the
> header/footer.
> > > 2. Figure out what the "silence" value is for that sound format,
> append a
> > > certain number of that value to the data.
> > > 3,4. Read in the binary data from the second file, strip the
> > header/footer
> > > and append to the data.
> > > 5. ??? Not sure how to do this. Instead, might add the appropriate
> > > header/footer and write out the data in the same format as the input
> > files.
> > > 6. Close the access to the original files.
> > >
> > > If MP3 isn't comprehensible, then you could bulk convert the resulting
> > > files from AU to MP3 using any number of tools.
> > >
> > > gc
> > >
> > >
> > > On Wed, Aug 22, 2018 at 5:14 PM Nicolas Cueto via use-livecode <
> > > use-livecode@lists.runrev.com> wrote:
> > >
> > > > Hello List,
> > > >
> > > > I wish to automate a repetitive (and tedious!) process that's now
> being
> > > > done manually using a sound-file editor (Goldwave).
> > > >
> > > > The process is:
> > > >
> > > > 1. Open an AU sound file.
> > > > 2. Append 1 second of silence to that file.
> > > > 3. Open a 2nd AU sound file.
> > > > 4. Copy and append that 2nd file to the 1st file.
> > > > 5. Save as MP3 with a new title that now-modified 1st file.
> > > > 6. Close that 1st file unmodified.
> > > > 7. [Repeat 1-6.]
> > > >
> > > > If this is possible (easily possible!) with LC, what LC commands
> ought
> > I
> > > be
> > > > studying/using?
> > > >
> > > > Many thanks.
> > > >
> > > > --
> > > > Nicolas Cueto
> > > > ___
> > > > 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 

Re: revNavigator - Cloning a card - am i doing something wrong?

2018-08-23 Thread Matthias Rebbe via use-livecode
Geoff,

now when clicking on the arrows to collapse the stack, nothing happens, 
regardless where the stack is placed on the desktop.

But when i open the Message Watcher and click on the arrows, then the script 
editor opens the script of rev_s_revNavigator.livecodescript

and shows this error

stack "rev_s_revNavigator": execution error at line 1576 (Operators is: error 
in right operand), char 16

Regards,
Matthias


> Am 22.08.2018 um 23:16 schrieb Geoff Canyon via use-livecode 
> :
> 
> Okay, I've updated Navigator so that I think it will fix this. You (and
> others with multiple monitors) will be the judge, but now on multiple
> screens, when collapsing Navigator it should collapse to the top of the
> screen it's on. Collapsing all Navigators should have them each collapse on
> the screen they're on, only stacking with each other on that screen.
> 
> Here's hoping anyway...
> 
> Get Navigator here
> . Or grab it
> from GitHub .
> 
> On Wed, Aug 22, 2018 at 11:24 AM Matthias Rebbe via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> put the screenRect
>> 
>> 0,126,2560,1566
>> -2560,0,0,1440
>> 
>> put the working screenrects
>> 
>> 0,149,2560,1566
>> -2560,23,0,1440
>> 
>> 
>> Regards,
>> 
>> Matthias
>> 
>>> Am 22.08.2018 um 20:11 schrieb Geoff Canyon via use-livecode <
>> use-livecode@lists.runrev.com>:
>>> 
>>> On Wed, Aug 22, 2018 at 5:56 AM Matthias Rebbe via use-livecode <
>>> use-livecode@lists.runrev.com> wrote:
>>> 
 Yes, i have a dual-screen setup.
 
>>> 
>>> Can you tell me what
>>> 
>>> put the screenrects
>>> 
>>> results in for you?
>>> 
>>> And
>>> 
>>> put the working screenrects
>>> 
>>> Thanks
>>> 
>>> gc
>>> ___
>>> 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: Set the backgroundcolor of all lines a field to null

2018-08-23 Thread Richard Gaskin via use-livecode

Sannyasin Brahmanathaswami wrote:

> I have some big lists in mobile,

How big is "big"? 100 lines?  1,000?  1,000,000?


> I sent the bkgndColor of certain
> lines.
>
> Then I want clear that,
>
> How do we do this "for each line x"
> which does not return the number of the line, but value
>
> command setAudioListColors pLineNum,pColor  # pass "4,"0,0,0"
> #slow!
>   repeat with x=1 to (the number lines of fld "audioList")
>   set the backgroundcolor of line pLineNum of fld "audioList" 
to pColor

> end repeat
> repeat for each line x in fld "audioList"
> # need to get a line number and not its value
>   set the backgroundcolor of line pLineNum of fld "audioList" to pColor
> end repeat
> end setAudioListColors


Your command takes a line number and a color, and applies that color to 
that one line, yes?  If so, why loop at all?


As written, the code applies the color to the same line over and over 
for the number of lines in the field.


Maybe pLineNum could contain a list of line numbers?

If so, iterate through it rather than through the field, since chances 
are you're only setting the color of a subset of all lines in the field. 
Locking the screen first will speed that up even more.


But faster still will likely be to follow Brian's guidance on 
styledText.  With that you probably don't even want to lock the field, 
since all the changes are done in a variable outside the field, and the 
variable is set back into the field only once at the end.


But once we understand what's needed, the speed difference may not 
matter much. Or it might. It depends on how big "big" is.


If you want to clear everything at once:

  set the backgroundColor of line 1 to -1 of fld "audioList" to empty

All this is just guessing, though.  I'm not really sure what this 
handler should do.


--
 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: fullscreenmode and rect of a substack on mobile device ?

2018-08-23 Thread Ludovic THEBAULT via use-livecode

> Le 22 août 2018 à 22:24, J. Landman Gay via use-livecode 
>  a écrit :
> 
> On 8/22/18 3:13 PM, J. Landman Gay via use-livecode wrote:
>> But the stack should still fill the screen and it doesn't.
> 
> This will resize the stack the same way as your "adapt" handler does, so you 
> can eliminate that entirely:
> 
> on preopenstack
>  mobileSetAllowedOrientations("portrait")
>  iphoneUseDeviceResolution true,true
>  set the fullscreenmode of stack "ipad" to "exactFit"
> end preopenstack

Many thanks for finding that this command !
Sadly, it’s only for iOS.

But your previous script must used on android.

Thanks again.


___
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