Re: Colour Manipulation

2017-03-18 Thread Jonathan Lynch via use-livecode
It would be amazing if the LC folks created an ImageMagick wrapper so that we 
could use it as an external or widget!

Sent from my iPhone

> On Mar 18, 2017, at 11:30 PM, Mike Bonner via use-livecode 
>  wrote:
> 
> You could write a small app just to do the processing (or use a web server
> with an lc script to process) break it into chunks, and spawn
> processes/server requests to offload the work maybe. Though imagemagick
> would be a pretty awesome solution if it can be made to do what you need.
> 
> On Sat, Mar 18, 2017 at 4:02 PM, Jonathan Lynch via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> You could put the entire ImageMagick set of files into custom properties,
>> then, when your app first opens, look to see if ImageMagick is present. If
>> not, then have your app save the ImageMagick files in the same folder as
>> your app.
>> 
>> I have done that sort of thing before -  big files, but works fine.
>> 
>> If you can find a Javascipt library that does what you need, your mission
>> would be easy :)
>> 
>> Sent from my iPhone
>> 
>>> On Mar 18, 2017, at 5:03 PM, jonathandly...@gmail.com wrote:
>>> 
>>> With 10 million pixels, comparing 3 different base colors (RGB), and
>> checking both upper and lower bounds, that comes to 60 million comparisons.
>> That is an awful lot for a scripted environment.
>>> 
>>> You would need to make an external (and, frankly, the LC instructions on
>> making desktop externals do not work for modern versions of LC and Visual
>> Studio).
>>> 
>>> For a project, I was able to successfully use ImageMagick as a command
>> line image processor. It took a few seconds, but much better than what LC
>> took.
>>> 
>>> ImageMagick is pretty flexible and might give you what you need. I was
>> using it for green screen image extractions.
>>> 
>>> Sent from my iPhone
>>> 
 On Mar 18, 2017, at 2:20 PM, Peter Reid via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
 
 I've got an app that allows the user to display an image using a
>> variable number of colours (2-24 colours).  In addition, the user can
>> specify upper and lower thresholds so that all pixels below a specified
>> value are displayed using a colour such as black and all pixels with values
>> above a specified value are displayed using a colour such as red.  Pixels
>> with values between the thresholds are displayed using the specified colour
>> range of 2-24 colours. The images can consist of up to 8-10 million pixels,
>> they are rectangular and can be in a landscape or portrait orientation.
 
 Whilst I have this working the code that manages the changing of the
>> number and use of colours in an image is rather slow.  This is despite me
>> using the "repeat for each" loop structure and lock the screen wherever
>> possible to get the maximum speed!
 
 Does anyone have any clever algorithms, code, add-ons, etc. that can do
>> this kind of thing in a flash?!
 
 Thanks
 
 Peter
 --
 Peter Reid
 Loughborough, UK
 
 
 ___
 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: Colour Manipulation

2017-03-18 Thread Mike Bonner via use-livecode
You could write a small app just to do the processing (or use a web server
with an lc script to process) break it into chunks, and spawn
processes/server requests to offload the work maybe. Though imagemagick
would be a pretty awesome solution if it can be made to do what you need.

On Sat, Mar 18, 2017 at 4:02 PM, Jonathan Lynch via use-livecode <
use-livecode@lists.runrev.com> wrote:

> You could put the entire ImageMagick set of files into custom properties,
> then, when your app first opens, look to see if ImageMagick is present. If
> not, then have your app save the ImageMagick files in the same folder as
> your app.
>
> I have done that sort of thing before -  big files, but works fine.
>
> If you can find a Javascipt library that does what you need, your mission
> would be easy :)
>
> Sent from my iPhone
>
> > On Mar 18, 2017, at 5:03 PM, jonathandly...@gmail.com wrote:
> >
> > With 10 million pixels, comparing 3 different base colors (RGB), and
> checking both upper and lower bounds, that comes to 60 million comparisons.
> That is an awful lot for a scripted environment.
> >
> > You would need to make an external (and, frankly, the LC instructions on
> making desktop externals do not work for modern versions of LC and Visual
> Studio).
> >
> > For a project, I was able to successfully use ImageMagick as a command
> line image processor. It took a few seconds, but much better than what LC
> took.
> >
> > ImageMagick is pretty flexible and might give you what you need. I was
> using it for green screen image extractions.
> >
> > Sent from my iPhone
> >
> >> On Mar 18, 2017, at 2:20 PM, Peter Reid via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >>
> >> I've got an app that allows the user to display an image using a
> variable number of colours (2-24 colours).  In addition, the user can
> specify upper and lower thresholds so that all pixels below a specified
> value are displayed using a colour such as black and all pixels with values
> above a specified value are displayed using a colour such as red.  Pixels
> with values between the thresholds are displayed using the specified colour
> range of 2-24 colours. The images can consist of up to 8-10 million pixels,
> they are rectangular and can be in a landscape or portrait orientation.
> >>
> >> Whilst I have this working the code that manages the changing of the
> number and use of colours in an image is rather slow.  This is despite me
> using the "repeat for each" loop structure and lock the screen wherever
> possible to get the maximum speed!
> >>
> >> Does anyone have any clever algorithms, code, add-ons, etc. that can do
> this kind of thing in a flash?!
> >>
> >> Thanks
> >>
> >> Peter
> >> --
> >> Peter Reid
> >> Loughborough, UK
> >>
> >>
> >> ___
> >> 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: Colour Manipulation

2017-03-18 Thread Jonathan Lynch via use-livecode
You could put the entire ImageMagick set of files into custom properties, then, 
when your app first opens, look to see if ImageMagick is present. If not, then 
have your app save the ImageMagick files in the same folder as your app.

I have done that sort of thing before -  big files, but works fine.

If you can find a Javascipt library that does what you need, your mission would 
be easy :)

Sent from my iPhone

> On Mar 18, 2017, at 5:03 PM, jonathandly...@gmail.com wrote:
> 
> With 10 million pixels, comparing 3 different base colors (RGB), and checking 
> both upper and lower bounds, that comes to 60 million comparisons. That is an 
> awful lot for a scripted environment.
> 
> You would need to make an external (and, frankly, the LC instructions on 
> making desktop externals do not work for modern versions of LC and Visual 
> Studio).
> 
> For a project, I was able to successfully use ImageMagick as a command line 
> image processor. It took a few seconds, but much better than what LC took.
> 
> ImageMagick is pretty flexible and might give you what you need. I was using 
> it for green screen image extractions.
> 
> Sent from my iPhone
> 
>> On Mar 18, 2017, at 2:20 PM, Peter Reid via use-livecode 
>>  wrote:
>> 
>> I've got an app that allows the user to display an image using a variable 
>> number of colours (2-24 colours).  In addition, the user can specify upper 
>> and lower thresholds so that all pixels below a specified value are 
>> displayed using a colour such as black and all pixels with values above a 
>> specified value are displayed using a colour such as red.  Pixels with 
>> values between the thresholds are displayed using the specified colour range 
>> of 2-24 colours. The images can consist of up to 8-10 million pixels, they 
>> are rectangular and can be in a landscape or portrait orientation.
>> 
>> Whilst I have this working the code that manages the changing of the number 
>> and use of colours in an image is rather slow.  This is despite me using the 
>> "repeat for each" loop structure and lock the screen wherever possible to 
>> get the maximum speed!
>> 
>> Does anyone have any clever algorithms, code, add-ons, etc. that can do this 
>> kind of thing in a flash?!
>> 
>> Thanks
>> 
>> Peter
>> --
>> Peter Reid
>> Loughborough, UK
>> 
>> 
>> ___
>> 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


Linux 32bit?

2017-03-18 Thread Alejandro Tejada via use-livecode
Hi Mark,

on Sat 18, March 2017, Mark Wieder wrote:
> That website makes FOSS look bad.
> RR/LC's web presence keeps getting
> dumbed down.

Probably, this requirement only wants to
create a link between new LiveCode users
and the current LiveCode community and
company.

Mark, How many new LiveCode users
stop using this platform after a single glance
or after a really short time of use?

My educated guess is that many, many new
users do not take enough time to try this platform
in all it's complexity and extension. Many new
user are just looking for a ready made solution
for their application needs.

In my experience, some users do not want to learn
something completely new and unfamiliar. They just
want a program with an interface similar to Microsoft Office
with added functionalities like scripting and compiling...

Maybe, just maybe, LiveCode should offer something
like a free short course on a topic of specific interest for
the new user in exchange for this email direction.

Al
___
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: Colour Manipulation

2017-03-18 Thread Jonathan Lynch via use-livecode
With 10 million pixels, comparing 3 different base colors (RGB), and checking 
both upper and lower bounds, that comes to 60 million comparisons. That is an 
awful lot for a scripted environment.

You would need to make an external (and, frankly, the LC instructions on making 
desktop externals do not work for modern versions of LC and Visual Studio).

For a project, I was able to successfully use ImageMagick as a command line 
image processor. It took a few seconds, but much better than what LC took.

ImageMagick is pretty flexible and might give you what you need. I was using it 
for green screen image extractions.

Sent from my iPhone

> On Mar 18, 2017, at 2:20 PM, Peter Reid via use-livecode 
>  wrote:
> 
> I've got an app that allows the user to display an image using a variable 
> number of colours (2-24 colours).  In addition, the user can specify upper 
> and lower thresholds so that all pixels below a specified value are displayed 
> using a colour such as black and all pixels with values above a specified 
> value are displayed using a colour such as red.  Pixels with values between 
> the thresholds are displayed using the specified colour range of 2-24 
> colours. The images can consist of up to 8-10 million pixels, they are 
> rectangular and can be in a landscape or portrait orientation.
> 
> Whilst I have this working the code that manages the changing of the number 
> and use of colours in an image is rather slow.  This is despite me using the 
> "repeat for each" loop structure and lock the screen wherever possible to get 
> the maximum speed!
> 
> Does anyone have any clever algorithms, code, add-ons, etc. that can do this 
> kind of thing in a flash?!
> 
> Thanks
> 
> Peter
> --
> Peter Reid
> Loughborough, UK
> 
> 
> ___
> 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: Linux 32bit?

2017-03-18 Thread Phil Thane via use-livecode
OK now I have the right download, just started the beginners' guide. I've been 
using and 
writing about Linux and FOSS[1] generally for about 15 years but my programming 
experience stopped at BBC Basic in about 1990-something.

Thanks for your help.

--
Phil Thane

www.pthane.co.uk
p...@pthane.co.uk
01767 449759
07582 750607
Twitter @pthane
On Saturday, 18 March 2017 13:13:47 GMT Mark Wieder via use-livecode wrote:
> On 03/18/2017 12:39 PM, Phil Thane via use-livecode wrote:
> > OK, I'm back. When I follow the links I end up here:
> > 
> > https://livecode.org/download-after-sign-up/
> 
> Ah.
> Yeah.
> That website makes FOSS look bad.
> RR/LC's web presence keeps getting dumbed down.




[1] http://pthane.co.uk/
___
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: Linux 32bit?

2017-03-18 Thread Mark Wieder via use-livecode

On 03/18/2017 12:39 PM, Phil Thane via use-livecode wrote:

OK, I'm back. When I follow the links I end up here:

https://livecode.org/download-after-sign-up/


Ah.
Yeah.
That website makes FOSS look bad.
RR/LC's web presence keeps getting dumbed down.

--
 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: Linux 32bit?

2017-03-18 Thread Phil Thane via use-livecode
Thanks, it's downloading now...

--
Phil Thane

www.pthane.co.uk
p...@pthane.co.uk
01767 449759
07582 750607
Twitter @pthane
On Saturday, 18 March 2017 13:45:19 GMT Mike Bonner via use-livecode wrote:
> Go here: http://downloads.livecode.com/livecode/
> Another reason the site should provide a direct link rather than obfuscate.
> 
> On Sat, Mar 18, 2017 at 1:39 PM, Phil Thane via use-livecode <
> 
> use-livecode@lists.runrev.com> wrote:
> > OK, I'm back. When I follow the links I end up here:
> > 
> > https://livecode.org/download-after-sign-up/
> > 
> > There is only one button 'Download LiveCode Community'. I assume it then
> > probes my hardware and comes up with the wrong result because the download
> > is:
> > 
> > 'LiveCodeCommunityInstaller-8_1_3-Linux.x64'
> > 
> > --
> > Phil Thane
> > 
> > www.pthane.co.uk
> > p...@pthane.co.uk
> > 01767 449759
> > 07582 750607
> > Twitter @pthane
> > 
> > On Friday, 17 March 2017 13:31:11 GMT Mark Wieder via use-livecode wrote:
> > > On 03/17/2017 01:24 PM, Phil Thane via use-livecode wrote:
> > > > Hi,
> > > > 
> > > > Just downloaded the open source version for Linux, but it comes as x64
> > > > only. For some reason I've never figured my old PC doesn't like 64bit
> > > > distros, the graphics driver just doesn't work and after much messing
> > > > I
> > > > decided it was easier to stick with a 32 bit distro. Any advice, short
> > 
> > of
> > 
> > > > upgrading my hardware?
> > > 
> > > I see both 64- and 32-bit versions on the download page. Are you saying
> > > that the 32-bit link actually downloads a 64-bit binary?
> > > 
> > > ...but yes, upgrading the old hardware would be good.
> > 
> > ___
> > 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


App Standalone Splash Screens/Icon Deployment

2017-03-18 Thread Sannyasin Brahmanathaswami via use-livecode
I am wondering how other teams working collaboratively using Git  handle their

a) Splash screens
b) App Icon
c) Main Stack Binary



Scenario: you have Devs A, B, C, D

working on the same app. Very modular with lots of text only scripts. But the 
main stack used to build the standalone, call it MyApp.livecode  is a binary 
stack that keep changing everytime on of the team test builds… it contains 
stack files and a behavior that is a text only stack. otherwise almost no code. 
but, though it never *really* changes, Git sees it as modified.

add to this the additional issue that if we provide all the iOS splash screens 
and the Android app icon in the repository… we can put them in a folder 
adjacent to the app, but not actually include them in the package (since the 
standalone builder will do that automatically.)  But… how can you set the paths 
to the splash screens to a relative path.. with the goal in mind: that the 
binary stack never really changes. I don't know how exactly GIT "measures" the 
modification. if the app doesn't really change, even though it has to be saved 
each time you build a standalone.

So bottom line questions are two.

1) Is there some way to avoid having the main stack "change" even though it is 
being save… our solution now is to stash it in GIT and everyone pulls that same 
stack from our "nightly" branch which is the SOA for that binary (if a 
substantive change is made to the MyApp.livecode, you have to push it to 
nightly… otherwise you never push… but only build your tests and then stash 
MyApp.livecode)  is there a better practice?

2) if you pick the splash screens in standalone builder, I can't actually see 
the path, but we assume that they are absolute paths to the files in the local 
user's HD… as soon as the MyApp.livecode moves from dev A (who selected all the 
splash screens and icons for the app in the SA Builder) is there a way to set 
these to a path relative to the MyApp.livecode binary?

BR
___
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: Linux 32bit?

2017-03-18 Thread Mike Bonner via use-livecode
Go here: http://downloads.livecode.com/livecode/
Another reason the site should provide a direct link rather than obfuscate.

On Sat, Mar 18, 2017 at 1:39 PM, Phil Thane via use-livecode <
use-livecode@lists.runrev.com> wrote:

> OK, I'm back. When I follow the links I end up here:
>
> https://livecode.org/download-after-sign-up/
>
> There is only one button 'Download LiveCode Community'. I assume it then
> probes my hardware and comes up with the wrong result because the download
> is:
>
> 'LiveCodeCommunityInstaller-8_1_3-Linux.x64'
>
> --
> Phil Thane
>
> www.pthane.co.uk
> p...@pthane.co.uk
> 01767 449759
> 07582 750607
> Twitter @pthane
> On Friday, 17 March 2017 13:31:11 GMT Mark Wieder via use-livecode wrote:
> > On 03/17/2017 01:24 PM, Phil Thane via use-livecode wrote:
> > > Hi,
> > >
> > > Just downloaded the open source version for Linux, but it comes as x64
> > > only. For some reason I've never figured my old PC doesn't like 64bit
> > > distros, the graphics driver just doesn't work and after much messing I
> > > decided it was easier to stick with a 32 bit distro. Any advice, short
> of
> > > upgrading my hardware?
> >
> > I see both 64- and 32-bit versions on the download page. Are you saying
> > that the 32-bit link actually downloads a 64-bit binary?
> >
> > ...but yes, upgrading the old hardware would be good.
>
>
>
> ___
> 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: Linux 32bit?

2017-03-18 Thread Phil Thane via use-livecode
OK, I'm back. When I follow the links I end up here:

https://livecode.org/download-after-sign-up/

There is only one button 'Download LiveCode Community'. I assume it then 
probes my hardware and comes up with the wrong result because the download is:

'LiveCodeCommunityInstaller-8_1_3-Linux.x64'

--
Phil Thane

www.pthane.co.uk
p...@pthane.co.uk
01767 449759
07582 750607
Twitter @pthane
On Friday, 17 March 2017 13:31:11 GMT Mark Wieder via use-livecode wrote:
> On 03/17/2017 01:24 PM, Phil Thane via use-livecode wrote:
> > Hi,
> > 
> > Just downloaded the open source version for Linux, but it comes as x64
> > only. For some reason I've never figured my old PC doesn't like 64bit
> > distros, the graphics driver just doesn't work and after much messing I
> > decided it was easier to stick with a 32 bit distro. Any advice, short of
> > upgrading my hardware?
> 
> I see both 64- and 32-bit versions on the download page. Are you saying
> that the 32-bit link actually downloads a 64-bit binary?
> 
> ...but yes, upgrading the old hardware would be good.



___
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


Colour Manipulation

2017-03-18 Thread Peter Reid via use-livecode
I've got an app that allows the user to display an image using a variable 
number of colours (2-24 colours).  In addition, the user can specify upper and 
lower thresholds so that all pixels below a specified value are displayed using 
a colour such as black and all pixels with values above a specified value are 
displayed using a colour such as red.  Pixels with values between the 
thresholds are displayed using the specified colour range of 2-24 colours. The 
images can consist of up to 8-10 million pixels, they are rectangular and can 
be in a landscape or portrait orientation.

Whilst I have this working the code that manages the changing of the number and 
use of colours in an image is rather slow.  This is despite me using the 
"repeat for each" loop structure and lock the screen wherever possible to get 
the maximum speed!

Does anyone have any clever algorithms, code, add-ons, etc. that can do this 
kind of thing in a flash?!

Thanks

Peter
--
Peter Reid
Loughborough, UK


___
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: Dropbox Public Folder

2017-03-18 Thread Dan Brown via use-livecode
Minio is a good solution for self hosted  AWS S3 type storage
https://www.minio.io

On 18 Mar 2017 5:15 pm, "Mike Kerner via use-livecode" <
use-livecode@lists.runrev.com> wrote:

> In theory, at least, for ios, you can compile only for specific devices.
> AirLaunch is more convenient than Apple's private distribution tools.
> ___
> 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: Dropbox Public Folder

2017-03-18 Thread Mike Kerner via use-livecode
In theory, at least, for ios, you can compile only for specific devices.
AirLaunch is more convenient than Apple's private distribution tools.
___
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: Dropbox Public Folder

2017-03-18 Thread Richard Gaskin via use-livecode

Mike Kerner wrote:

> Now that the Public folder has been changed, what is everyone doing
> to deal with it?  The main effect that I see is that it is more
> complicated to deal with distributing mobile apps for internal use
> and external testing.  I started messing with how to get it to work
> again with AirLaunch, but I haven't enough time to figure it out.

A truly public folder may not be ideal for distributing an app for 
testing.  Anything in a public folder may be discoverable/accessible by 
robots, so it is in effect a public resource.


If intended for the general public that's fine of course, but if 
intended for a specific set of testers some means of limiting access may 
be useful.



The bigger question here is the one IT staff throughout the industry are 
asking themselves:  What are the tradeoffs between public and private 
clouds?


There is no magic pony, no single "best" for all use cases.

The convenience of having other people manage infrastructure can be 
nice, but it comes at the cost of not being in control of either outages 
(e.g. Amazon this week) or policy changes (e.g. the Dropbox change that 
prompted this thread).


I've already waxed too much about the benefits of Nextcloud as a 
solution for organizations to handle their workgroup needs, so I won't 
belabor the point here and just provide a link to that post:



But since everyone here is a developer, we have plenty of options.  We 
can use fully-managed IaaS, or self-managed VPS/dedicated servers, or 
for modest needs even simple shared hosting, or some mix of all of them.


For distributing an app for testing, one option that'll work easily 
enough on even a shared hosting account is to just upload it to a given 
folder and send out the URL.


If you need password protection for a folder, HTTP Basic Auth is fine 
for modest needs if you have SSL in place (and with Let's Encrypt being 
free it's easy to get HTTPS everywhere now).


Uploads can be automated with LC, so you could make a plugin that posts 
your app for testing with one click.


Those using tsNet can use SFTP to upload, and everyone can use a shell 
call to scp or rsync once you've put your shared SSH keys in place (a 
good thing to do for many reasons beyond the convenience of being able 
to automate server tasks in LC).


Pubic cloud apps like Dropbox are great for the public.  But as 
developers. we have plenty of options.


And as developers using LiveCode, we have plenty of options for making 
convenient GUIs to help manage our cloud tasks.


--
 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: (off) dropbox down

2017-03-18 Thread Mike Kerner via use-livecode
We got blasted sometime between midnight and 1 EDT.  The rest of the US got
hosed between 6 and 7 AM.  They weren't up until 10:15 EDT.  Anyway, that's
the first time we've seen an outage that was long enough for us to notice
since we started using DB with LC.

Roger, I'm going to start a different thread on the new public folder.

On Fri, Mar 17, 2017 at 1:51 PM, Roger Eller via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Or maybe THIS had some complications they were working through.  I received
> an email from Dropbox that said:
>
> "This is a reminder that your Public folder links will become inactive
> on *March
> 15*. On that date, your Public folder will become a standard Dropbox
> folder, and your files will remain safe in your account. If you want to
> share those files again, you’ll need to use shared links instead."
>
> ~Roger
>
>
> On Fri, Mar 17, 2017 at 1:42 PM, Matthias Rebbe via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> > Maybe this all had to do with this in some way?
> >
> > https://www.ripe.net/support/service-announcements/reverse-
> > dns-issue-for-some-delegations-in-the-ripe-ncc-service-region <
> > https://www.ripe.net/support/service-announcements/reverse-
> > dns-issue-for-some-delegations-in-the-ripe-ncc-service-region>
> >
> >
> >
> >
> > > Am 17.03.2017 um 15:24 schrieb Richard Gaskin via use-livecode <
> > use-livecode@lists.runrev.com >:
> > >
> > > Mike Kerner wrote:
> > >
> > > > For everyone who does anything with dropbox, it's been down since at
> > > > least 2AM EDT.
> >
> ___
> 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
>



-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
___
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: SFTP with .PPK file

2017-03-18 Thread Charles Warwick via use-livecode

Hi Bob,

tsNet calculates the public key from the private key, so you only need 
to pass the private key to the tsNet functions.


Cheers,

Charles


On 18/03/2017 4:00 AM, Bob Sneidar via use-livecode wrote:

Looks like it DOES need the public key after all. I thought that was the way 
SSH worked. I was surprised when you said TSNet doesn't need the public key.

Bob S



On Mar 17, 2017, at 06:36 , Stephen MacLean via use-livecode 
 wrote:

SSH public key authentication failed: Unable to extract public key from private 
key file: Unable to open private key file


___
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: SFTP with .PPK file

2017-03-18 Thread Charles Warwick via use-livecode

Hi Steve,

Ahh... it's been a while since I wrote the SSH component of tsNet and 
I've been unfortunately relying on the documentation I wrote when 
checking your code!


tSettings["ssh_private_key"] must provide the "path" to the private key, 
not the contents of the private key (another documentation issue for me 
to fix!).


So your code should actually look like

on mouseUp
  local tHeaders, tResult, tSettings
  put “" into tSettings["username"]
  put "D:\private.ppk" into tSettings["ssh_private_key"]
  tsNetInit
  put tsNetGet("1", "sftp://secure..us/;, tHeaders, 
"transferComplete", tSettings) into tResult

end mouseUp

Hopefully that will get it working for you!

Cheers,

Charles

On 17/03/2017 11:36 PM, Stephen MacLean via use-livecode wrote:

Hi Charles,

Again, thank you for all your help!!

I made the change below, and indeed didn’t get the error any more. However, I 
still wasn’t getting anything returned.

I ran your debug stack along side it and got this:

Hostname in DNS cache was stale, zapped
   Trying xx.xx.xx.xx...
TCP_NODELAY set
Connected to secure.xx.us (xx.xx.xx.xx) port 22 (#3)
SSH MD5 fingerprint: 
SSH authentication methods available: publickey
Using SSH private key file '-BEGIN RSA PRIVATE KEY——

-END RSA PRIVATE KEY-
'
SSH public key authentication failed: Unable to extract public key from private 
key file: Unable to open private key file

Not sure about were to go from here… I redid the export of the .ppk in PuttyGen 
and still get the same thing. There is no password protecting the key.

Any further help would be greatly appreciated.

Best Regards,

Steve MacLean


On Mar 17, 2017, at 5:04 AM, Charles Warwick via use-livecode 
 wrote:

Hi Steve,

My apologies... there is a mistake in the documentation for tsNet which I only 
just noticed.

The array element for the SSH private key should be tSettings["ssh_private_key"], not 
tSettings["ssh_priv_key"].

So if you change the following line:

put tPrivKey into tSettings["ssh_priv_key"]

to:

put tPrivKey into tSettings["ssh_private_key"]

you should be right to go!

(I will get this fixed in the documentation for the next version)

Best Regards,

Charles


On 17/03/2017 6:31 PM, Charles Warwick via use-livecode wrote:

Hi Steve,

The tsNet command only requires the SSH private key, so that is ok.

I will test again here to make sure there is nothing else going on in LC 9.0 
DP6

Just to check though, I assume your private key does not require a passphrase?

Another thing to try is to download the following simple stack:

https://downloads.techstrategies.com.au/tsnet/debug_liburl.livecode

Run that stack at the same time as your own, and click "Start Debug" before you 
try make the SSH connection.

It should provide some additional debug information that may shed more light on 
what is actually happening.

Regards,

Charles


On 16/03/2017 10:24 PM, Stephen MacLean via use-livecode wrote:

Hi Charles,

One other thing… in looking at the .ppk file, it contains both “public lines”  and 
"private lines”. All I see in the ssh key file is private.

Not sure that make any difference, but thought I’d mention it.

Best,

Steve


On Mar 16, 2017, at 7:53 AM, Stephen MacLean via use-livecode 
 wrote:

Hi Charles,

Thank you so much for reply!

I converted the key file as you described, however, I’m still getting the error 
67 (authentication error) when running the script.

Any further help would be greatly appreciated.

Best,

Steve MacLean


On Mar 16, 2017, at 3:08 AM, Charles Warwick via use-livecode 
 wrote:

Hi Steve,

It looks like you are using a SSH private key in PuTTY format (.ppk).  tsNet 
requires it to be in OpenSSH format.

That is easy to fix though, you can convert the .ppk with PuttyGen.

To do this, open PuttyGen and load the .ppk file.  Then select "Conversions" -> 
"Export OpenSSH key".

Apart from that, just make sure that your call to tsNetGet includes the full 
path of the file you want to download.

Hope that helps,

Cheers,

Charles


On 16/03/2017 6:01 AM, Stephen MacLean via use-livecode wrote:

Well, still no luck in getting it to work, but getting closer…

I found a sample file linked to on livecode.com . 
Modifying it to use the key file, I have:

on mouseUp
   local tHeaders, tResult, tSettings
   put “" into tSettings["username"]
   put URL "binfile:D:\private.ppk" into tPrivKey
   put tPrivKey into tSettings["ssh_priv_key"]
   tsNetInit
   put tsNetGet("1", "sftp://secure..us/;, tHeaders, 
"transferComplete", tSettings) into tResult
end mouseUp

However, it returns:

tsneterr: (67) Authentication failure

Again, I can access the sftp site with no problems using the WinSCP ftp client 
and the key file.

Any suggestions??

Thanks,

Steve MacLean


On Mar 15, 2017, at 9:38 AM, Stephen MacLean via