Re: LC Server & Server Based Stack?

2017-01-22 Thread Rick Harrison via use-livecode
I really wish the copy to clipboard thing would have worked because it
would have been a very simple solution for a personal application I
wanted to work on for myself.

I will endeavor to learn about sockets etc. even though that is
more of a learning curve here. I would rather have found
something simple, but unfortunately the things one thinks
should be simple usually turn out to be harder than imagined.

Thank you Richard and Mike for pointing out the resources
that I need to conquer!

Rick

> On Jan 22, 2017, at 4:05 PM, Richard Gaskin via use-livecode 
>  wrote:
> 
> Rick Harrison wrote:
> 
>> Ok, so the server and my open LC stack are using
>> different engines or are different “instances”.  If they
>> are on the same computer it seems to me that one
>> might be able to get the two to talk to each other
>> through the computer system’s clipboard in theory.
>> 
>> I haven’t had much luck with getting the contents
>> of a variable into the clipboard on the server side
>> yet.  It keeps throwing weird errors at me.
>> Can you think of an easy way to do that?
> 
> The clipboard is a good mechanism for an end-user to exchange data
> between GUI programs.
> 
> For programs to exchange data between themselves without a GUI, you'll
> want to use sockets.
> 
> This tutorial is the best entry-point for learning sockets I've found yet:
> 
> 
> 
> -- 
> Richard Gaskin
> Fourth World Systems
> Software Design and Development for the Desktop, Mobile, and the Web
> 
> ambassa...@fourthworld.comhttp://www.FourthWorld.com
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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

Re: LC Server & Server Based Stack?

2017-01-22 Thread Rick Harrison via use-livecode
Hi Mike,

Ok, so the server and my open LC stack are using
different engines or are different “instances”.  If they
are on the same computer it seems to me that one
might be able to get the two to talk to each other
through the computer system’s clipboard in theory.

I haven’t had much luck with getting the contents
of a variable into the clipboard on the server side
yet.  It keeps throwing weird errors at me.
Can you think of an easy way to do that?

Thanks,

Rick

> On Jan 21, 2017, at 12:10 PM, Mike Bonner via use-livecode 
>  wrote:
> 
> Yeah, thats what I'm saying.  Think of it this way.  If you make 2
> standalones, run both, and have 1 standalone try to put text into a field
> of the other, it won't work because they are each running their own engine
> instance.  If one engine instance opens several stacks they're able to talk
> because its all through one instance of the engine, and they're all
> interconnected through the engine.
> 
> Lc server is an instance, and the standalone, or ide that has your open
> stack is an instance.  So there is no direct connection between the 2.  It
> would be like opening the same text file twice in 2 separate text editors.
> If you type in 1, the change doesn't appear in the other.  You'd have to
> type in 1, save the changes then reload the text in the other to see the
> changes that were made.
> 
> If using a file to update will work, it should be simple enough.. (and not
> require stacks on the server side.)  Have the server write the necessary
> info, and have an update button on your stack that will grab the new info,
> or have the stack keep checking for changes every so often, and update as
> necessary.
> 
> As far as sockets, chatrev is a pretty awesome example.  If you click
> "resources" in the main toolbar, then select "sample projects" on the lower
> left, there is an "internet chat" that you can poke around with to get a
> handle on things.
> 
> If you decide to go the socket way and the cgi (non lc server) method, i'll
> be little help.  I'm not even sure which versions of the lc engine will
> work for this, but you said you already looked at jacques page, so are on
> the right track.
> 
> I have mentioned it before, but there is the revhttpd stack.. If you don't
> need multithreading, it would make a great starting base.  (and another way
> to explore sockets too)  I love the thing, especially the ability to add
> commands to the stack that are then callable using a get request of the
> form cmd=commandtorun


___
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: LC Server & Server Based Stack?

2017-01-21 Thread Rick Harrison via use-livecode
Hi Mike,

This seems a little crazy to me.  

I can have two stacks open in memory in LiveCode, and I 
can send a message such as “mouseUp” from one stack 
to a button in the other stack. The button in the other stack 
outputs some messages to the message box and puts a 
message in a field on that stack and that all works just fine.
I’m able to view both stacks on the screen at the same time.
(This is as it should be.) 

I send the same message from the server to the button
and the messages which normally go into the message box 
end up in the display of my browser which seems a little strange but Ok
I can accept that.  The other message which was supposed to
go into the field never gets to the field which makes it look
like the button ignored that statement completely although
it executed everything else it was asked to perform.  That
message doesn’t seem to go anywhere as it doesn’t even
end up being displayed in the browser and ends up in the
bit bucket in the sky.  (Again, I can see the open stack
on the screen at the time that I tell my browser to execute
the server code.) Shouldn’t a message be a valid message
no matter where it comes from? (Hence my crazy feeling
about the whole thing.)

So you are telling me that I can send a message to closed
stack to modify it, that I should save it after the change, and
then reopen the stack to view the change - yes?

The file communication idea makes things a little more
complex but is certainly doable.

I’ve never done anything with sockets - are there any good
examples out there you can point me to for this?

Thanks,

Rick



> On Jan 20, 2017, at 10:20 PM, Mike Bonner via use-livecode 
>  wrote:
> 
> You can modify a stack using lc server, and save it, but that won't update
> an already open stack in memory.  And if you don't add code to save the
> stack from lc server, even if you do reload the stack, the change won't be
> there.
> 
> One way to update a field in an open stack would be to have the stack
> running a send in time loop that checks for changes to a file. (text file,
> or whatever)  If the last modified stamp has changed (or if the file
> exists, or however you want to do it)  read and parse the file, to get the
> info and put it wherever it goes then clear or delete the file.  You'd
> still have to think about concurrency issues, but it should work.
> the jacque standalone cgi method (as I mentioned in a different email)
> would be cool because you could hit the webserver, open a socket to your
> open stack to pass data from the server to the running stack.

___
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: LC Server & Server Based Stack?

2017-01-23 Thread Rick Harrison via use-livecode
Hi Bob,

The LC Dictionary shows AppleScript commands are for the desktop only - so 
probably lcServer can’t do it.
If there is anyone on the list who has had success having lcServer send 
AppleScript commands please feel 
free to chime in!

Thanks,

Rick

> On Jan 23, 2017, at 10:38 AM, Bob Sneidar via use-livecode 
>  wrote:
> 
> If you have a Mac, there is IAC Inter-Application Communication). I am not 
> sure if lcServer can issue Applescript commands, but you CAN create a 
> standalone to listen for Applescript commands, and the IDE runnign on a Mac 
> does this natively. 
> 
> Bob S

___
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: LC Server & Server Based Stack?

2017-01-20 Thread Rick Harrison via use-livecode
Hi Mike,

Ok, the put message in the stack showed up in my browser
so that worked fine.  My next line of code I tried was:

put "I hope this worked!" into field "TestFirstNameField1" of card 1 of this 
stack

It didn’t put anything into that field.  I also put the same code into a button
on the stack to test it, and the button works fine with the same code.
Why doesn’t this work?

Thanks,

Rick
___
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: LC Server & Server Based Stack?

2017-01-20 Thread Rick Harrison via use-livecode
Hi Mike,

Sorry I was out for dinner..

> How do you know it didn't work?


I know it didn’t work because I looked at the stack and no changes
had occurred in the stack.  (As in nothing new was put into the field.)
I’m not looking for the change to occur in the browser, that’s not
where I’m expecting to find any change thus far.

Should I not have the stack open that I’m trying to send the
messages to?  Should it be a standalone that gets saved
after every change?

> Mind if I ask what you're looking to accomplish?


I’m just trying to explore various possibilities and directions project-wise.
I don’t have a definite plan at the moment.  I’m just trying to see what
capabilities exist in using the server to communicate with stacks.

Thanks,

Rick

> On Jan 20, 2017, at 7:27 PM, Mike Bonner via use-livecode 
> <use-livecode@lists.runrev.com> wrote:
> 
> How do you know it didn't work?
> Well ok.. first.. On the server you have to make sure that the stack you
> are on is the one you think you're on.
> If you put the name of "this stack" you can see where you are when it
> happens.
> Second, the server first loads the stack.  Then if you "put" something into
> the field of the stack (especially if you are explicit so that you know
> exactly WHAT stack and field you're putting it into,) it most likely does
> it, but you wouldn't be able to see it in the browser, because you aren't
> looking at the stack.  So you'd have to check the stack itself (while the
> lc script is running, if you put something into a field, and then
> immediately  "put the text of field blah blah blah" so that it grabs the
> text and puts it onto the web page, you can see that it is indeed there.
> Since each hit to the web server is a new instance, the next time you hit
> the page, the text would not be in that field, UNLESS you told the lc
> script to save the stack.
> 
> This is how I created the test stack I'm using.  I had the lc script create
> the stack, set the script of the stack, set the filename of the stack, then
> saved the stack.  IF I had also created and populated fields in the stack
> and then saved it, the fields would still be populated and the text could
> then be extracted from them.  (It would get much more complex with multiple
> users of course, due to concurrency poblems)
> 
> Mind if I ask what you're looking to accomplish?
> 
> On Fri, Jan 20, 2017 at 5:00 PM, Rick Harrison via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> Hi Mike,
>> 
>> Ok, the put message in the stack showed up in my browser
>> so that worked fine.  My next line of code I tried was:
>> 
>> put "I hope this worked!" into field "TestFirstNameField1" of card 1 of
>> this stack
>> 
>> It didn’t put anything into that field.  I also put the same code into a
>> button
>> on the stack to test it, and the button works fine with the same code.
>> Why doesn’t this work?
>> 
>> Thanks,
>> 
>> Rick
>> ___
>> 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: LC Server & Server Based Stack?

2017-01-20 Thread Rick Harrison via use-livecode
Hi Mike,

I had tried “put” before I tried “answer”
and it hadn’t worked which was why I
tried “answer”.

Did you test your new code before posting
this to me?

Thanks,

Rick

> On Jan 20, 2017, at 5:57 PM, Mike Bonner via use-livecode 
>  wrote:
> 
>   go stack "teststack.livecode" -- just to show that go works too
>   put "" & the script of stack "teststack" & ""
>   send "executeThis" to stack "teststack"

___
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: LC Server & Server Based Stack?

2017-01-20 Thread Rick Harrison via use-livecode
Hi Mike,

Sorry, I didn’t see this until I had already sent my last message.  LOL

Yes, I see that things work on your end.  I’ll try it again.

Thanks,

Rick

> On Jan 20, 2017, at 5:58 PM, Mike Bonner via use-livecode 
>  wrote:
> 
> http://guidezone.info/stackuse.lc  -- same link to see the updated example.
> 


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

Re: LC Server & Server Based Stack?

2017-01-20 Thread Rick Harrison via use-livecode
Hi Mike,

I was able to get your example to work fine,
so it proves that I’m touching the stack Ok,
but when I try to send a message to a 
handler script in the stack it doesn’t execute
the handler.

Example:

send “executeThis” to stack “teststack”

In the stack script of “teststack” the contents of
“executeThis”:

on executeThis

   answer "This is the script in the teststack”

end executeThis

I looked at the stack..
..and the stack did nothing.

What am I not doing properly here?

Thanks,

Rick


> On Jan 20, 2017, at 2:26 PM, Mike Bonner via use-livecode 
>  wrote:
> 
> What jacque was referring to is a different animal. An executable set up as
> a cgi, that (if I recall correctly has a startup script and that after
> script completion, exits)
> The lc server itself runs in cgi mode (as apposed to as a module I believe)
> and unless you're using the earliest version (you're not) can access and
> use stacks "out of the box."
> 
> A very simple example:
> 
> My lcserver script..
>start using stack "teststack.livecode"
>   put "" & the script of stack "teststack" & ""
>   randomize
> ?>
> 
> Starts using a very very simple stack.
> Shows the script of that stack.
> executes the command "randomize" that is in the stack.
> 
> You can see it work here: http://guidezone.info/stackuse.lc
> 
> You can of course also "go" to a stack.
> 
> 

___
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: LC Server & Server Based Stack?

2017-01-20 Thread Rick Harrison via use-livecode
Hi Jacque & Stephen,

Right now I’m running LC Server version 8.1.2 as it
is supposed to be set up from the mothership’s
perspective.

I’ve been looking at Jacque’s site.  The information there
seems a little old and dated.  Is the information there still
current enough to work?  

It also looks like the server as it comes from the company
is not set up as CGI out of the box, so I’m assuming that
I have to set it up according to Jacque’s website so that
whatever stack I designate with the "start using Stack (pathname)”
will work.

I’m surprised that the official LiveCode website doesn’t have a lot
more documentation and examples with a few example
images.  It looks like Jacque’s website is better although it
too lacks images.

From what I’m reading, what I’m looking to do sounds possible,
yet the example resources seem to need some updating before
it will all work as promised.  Suggestions?

Thank you for your help on this.

Rick

> On Jan 8, 2017, at 5:07 PM, J. Landman Gay via use-livecode 
> <use-livecode@lists.runrev.com> wrote:
> 
> My site is focused on old-style CGI. It's an alternative to LC server 
> scripts, which act more like PHP,. Both are viable methods but slightly 
> different.
> 
> --
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com
> 
> 
> 
> On January 8, 2017 2:49:16 PM Stephen Barncard via use-livecode 
> <use-livecode@lists.runrev.com> wrote:
> 
>> Jacque's site is a great resource for livecode server information.
>> 
>> http://www.hyperactivesw.com/cgitutorial/scripts4.html
>> 
>> there doesn't appear to be many of us, but we who use LC server will
>> probably never have to use PHP very much any more for our web programming.
>> 
>> And the open source version is the only version!
>> 
>> I improperly credited John Craig for RevIgniter, which of course was
>> written by Ralf Bitter. Sorry about that.
>> 
>> --
>> Stephen Barncard - Sebastopol Ca. USA -
>> mixstream.org
>> 
>> On Sun, Jan 8, 2017 at 12:42 PM, Stephen Barncard <step...@barncard.com>
>> wrote:
>> 
>>> some stack use info as used in web app RevIgniter:
>>> 
>>> https://revigniter.com/userGuide/general/using_stacks.html
>>> 
>>> by the way, RevIgniter is a self-contained framework that you might find
>>> useful for all kinds of web development in livecode.
>>> 
>>> It might be a little different than your own programming style, but John
>>> Craig's creation is a living example of the "Model-View-Controller"
>>> concept.
>>> 
>>> --
>>> Stephen Barncard - Sebastopol Ca. USA -
>>> mixstream.org
>>> 
>>> On Sun, Jan 8, 2017 at 12:34 PM, Stephen Barncard <step...@barncard.com>
>>> wrote:
>>> 
>>>> here's some basics from the docs
>>>> 
>>>> http://lessons.livecode.com/m/4070/l/36656-how-do-i-use-stac
>>>> ks-with-livecode-server
>>>> 
>>>> --
>>>> Stephen Barncard - Sebastopol Ca. USA -
>>>> mixstream.org
>>>> 
>>>> On Sun, Jan 8, 2017 at 12:17 PM, Rick Harrison via use-livecode <
>>>> use-livecode@lists.runrev.com> wrote:
>>>> 
>>>>> Hi Stephen,
>>>>> 
>>>>> That sounds promising.. do you know of any good examples?
>>>>> 
>>>>> Thanks,
>>>>> 
>>>>> Rick
>>>>> 
>>>>> > On Jan 8, 2017, at 3:12 PM, Stephen Barncard via use-livecode <
>>>>> use-livecode@lists.runrev.com> wrote:
>>>>> >
>>>>> > stacks are great with LC server. For instance, one can use custom
>>>>> > properties and libraries just by 'start using' that stack.
>>>>> >
>>>>> > I'm not sure about fields but I think they are accessible too.
>>>>> >
>>>>> > And one can test and edit everything 'on the ground' first.
>>>>> 
>>>>> ___
>>>>> 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: save stack as filename failing most of the time

2017-01-05 Thread Rick Harrison via use-livecode
Hi Mike,

Using your code in the button shows in the message box
TestSaveStack

Which is the name of the file.

Searching my entire hard drive doesn’t show 
any file named “TestSaveStack”.

There is no error reported for "the result”.

Rick


> On Jan 5, 2017, at 11:32 AM, Mike Bonner via use-livecode 
> <use-livecode@lists.runrev.com> wrote:
> 
> If you change it to
> on mouseup
> save this stack as "TestSaveStack"
> put it && the result
> put cr & the files after msg
> end mouseup
> does it return an error?
> If not, does it show the file?
> 
> If the default folder is set to an unwritable folder you should receive an
> error. If not, you should see the saved stack in the files.
> the defaultfolder on startup (windows) seems to be
> C:/Users/myUserName/AppData/Local/RunRev/Documentation
> Cache/9_0_0_dp_1_community/IDE
> 
> Not exactly where one would look for it. Also, the "recent files" of the
> file menu doesn't reflect the save.
> 
> On Thu, Jan 5, 2017 at 9:20 AM, Rick Harrison via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> 
>>> On Jan 3, 2017, at 6:38 PM, Bob Sneidar <bobsnei...@iotecdigital.com>
>> wrote:
>>> 
>>> Not sure this helps you but I use Save this stack all the time and I can
>> see the stack in the finder append a tilde (~), create a new stack file
>> then the file with the tilde goes away. My changes are always there
>> afterwards.
>>> 
>>> Bob S
>>> 
>> 
>> Hi again,
>> 
>> 1. Create a new stack
>> 
>> 2. Put a button on it.
>> 
>> 3. Edit the button to insert the following code:
>> 
>> on mouseUp
>> 
>> save this stack as  “TestSaveStack"
>> 
>> end mouseUp
>> 
>> 
>> 4. Test the button
>> 
>> It just doesn’t work at all.  No stack gets saved!
>> 
>> I’m using LC Indy version 8.1.2
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> ___
>> 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: save stack as filename failing most of the time

2017-01-05 Thread Rick Harrison via use-livecode
Hi again,

Ok, so first looked at the settings for the defaultFolder,
and then I set the defaultFolder to where I wanted
everything to be saved.  I chose to use my desktop
to be super easy.  

It turned out that the defaultFolder somehow strangely
got set to a RunRev Application Support folder within
the Library folder, and yes it was a hidden folder, so
that did explain why the search of my hard drive didn’t
reveal the location of the newly created stack.

So upon choosing and setting the default folder to
be the desktop, the stack then saved as promised
to my desktop to my great relief.

Thank you folks for your help and patience on this!
No need for a bug report.

Rick
___
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: save stack as filename failing most of the time

2017-01-05 Thread Rick Harrison via use-livecode

> On Jan 3, 2017, at 6:38 PM, Bob Sneidar  wrote:
> 
> Not sure this helps you but I use Save this stack all the time and I can see 
> the stack in the finder append a tilde (~), create a new stack file then the 
> file with the tilde goes away. My changes are always there afterwards.
> 
> Bob S
> 

Hi again,

1. Create a new stack

2. Put a button on it.

3. Edit the button to insert the following code:

on mouseUp

save this stack as  “TestSaveStack"

end mouseUp


4. Test the button

It just doesn’t work at all.  No stack gets saved!

I’m using LC Indy version 8.1.2










___
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: LC Server & Server Based Stack?

2017-01-08 Thread Rick Harrison via use-livecode
Hi Stephen, Phil, & Jacque,

Thanks for the info!  I’ll get back to you after studying this stuff.

Rick

> On Jan 8, 2017, at 3:42 PM, Stephen Barncard via use-livecode 
> <use-livecode@lists.runrev.com> wrote:
> 
> some stack use info as used in web app RevIgniter:
> 
> https://revigniter.com/userGuide/general/using_stacks.html
> 
> by the way, RevIgniter is a self-contained framework that you might find
> useful for all kinds of web development in livecode.
> 
> It might be a little different than your own programming style, but John
> Craig's creation is a living example of the "Model-View-Controller" concept.
> 
> --
> Stephen Barncard - Sebastopol Ca. USA -
> mixstream.org
> 
> On Sun, Jan 8, 2017 at 12:34 PM, Stephen Barncard <step...@barncard.com>
> wrote:
> 
>> here's some basics from the docs
>> 
>> http://lessons.livecode.com/m/4070/l/36656-how-do-i-use-
>> stacks-with-livecode-server
>> 
>> --
>> Stephen Barncard - Sebastopol Ca. USA -
>> mixstream.org
>> 
>> On Sun, Jan 8, 2017 at 12:17 PM, Rick Harrison via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> 
>>> Hi Stephen,
>>> 
>>> That sounds promising.. do you know of any good examples?
>>> 
>>> Thanks,
>>> 
>>> Rick
>>> 
>>>> On Jan 8, 2017, at 3:12 PM, Stephen Barncard via use-livecode <
>>> use-livecode@lists.runrev.com> wrote:
>>>> 
>>>> stacks are great with LC server. For instance, one can use custom
>>>> properties and libraries just by 'start using' that stack.
>>>> 
>>>> I'm not sure about fields but I think they are accessible too.
>>>> 
>>>> And one can test and edit everything 'on the ground' first.
>>> 
>>> ___
>>> 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: LC Server & Server Based Stack?

2017-01-08 Thread Rick Harrison via use-livecode
Hi Mike,

I’m looking at all options here.  So yes, I’d like to 
be able to do the first option, and would like to
know if the second option is possible, and if there
are any examples out there for it.  Both animals
would be welcome in the barn so long as they
can co-exist with each other.

Thanks,

Rick

> On Jan 8, 2017, at 1:52 PM, Mike Bonner via use-livecode 
>  wrote:
> 
> If you mean a simple interaction, IE lc server loads the stack, gets or
> changes something on the stack, and save the changes to the stack, thats a
> pretty straight forward thing.  If you mean inter-process communication
> between lc server and an actively running stack, thats a different animal
> entirely.

___
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

LC Server & Server Based Stack?

2017-01-08 Thread Rick Harrison via use-livecode
Hi there,

I’m trying to find out if anyone has ever
gotten a LC server to successfully interact
with a LC Stack running on the same server
such that one can read and write information
to fields on such a stack.

If so, could you please point me to some good
examples or other resources for this?

Thanks,

Rick
___
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: LC Server & Server Based Stack?

2017-01-08 Thread Rick Harrison via use-livecode
Hi Stephen,

That sounds promising.. do you know of any good examples?

Thanks,

Rick

> On Jan 8, 2017, at 3:12 PM, Stephen Barncard via use-livecode 
>  wrote:
> 
> stacks are great with LC server. For instance, one can use custom
> properties and libraries just by 'start using' that stack.
> 
> I'm not sure about fields but I think they are accessible too.
> 
> And one can test and edit everything 'on the ground' first.

___
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: Overlaying on video

2017-03-27 Thread Rick Harrison via use-livecode
Hi Ben,

The movie that didn’t work for me was:

640 × 360, AAC, H.264   as a .mov  quicktime movie.

Let me know what you learn and discover!

Thanks,

Rick

> On Mar 27, 2017, at 8:35 AM, Ben Rubinstein via use-livecode 
> <use-livecode@lists.runrev.com> wrote:
> 
> Hi Rick
> 
> Thanks for your reply.
> 
> > I think once a movie starts playing other LC messages don’t
> > have time to be sent. The video just takes over because
> > it’s showing each frame quickly so your eye tells you
> > it’s a movie.
> 
> I don't think that's it. I've had time codes displays running before, 
> achieved in this way, so something that normally works, doesn't. I haven't 
> worked out if this is an issue with 8.1.3 or another side effect of the 
> particular movie. Or just that working late on a small screen, I made some 
> other stupid mistake.
> 
> > One solution I had to use in the past to make a decent
> > animation was to break the movie into each frame and
> > then put each frame onto each card.
> 
> I took a similar approach for now - rather than playing the movie and then 
> catching the currenttime, I used my timer to keep setting the current time, 
> moving it on a frame at a time (in fact for now I wanted to export a 
> timelapse of the movie anyway, so was happy to jump it along half-a-second at 
> a time). But in my ideal world I'd have this working interactively, including 
> allowing the user to scrub the movie to a different time and have the data 
> graphics update as they did.
> 
> > I tried importing a Quicktime movie which had the .mov suffix into LC.
> > I put a graphic on top of the movie and when I went to play the movie
> > the movie put itself on top of the graphic.  So what to I need to do to
> > recreate your solution?
> 
> That's what I don't know yet! Obviously it's not enough that it's a .mov 
> instead of a .mp4; when I exported it, the movie also changed codec, 
> resolution, framerate... (partly because I was in a hurry so I decided to 
> work with a smaller lighter version to make progress). I'll need to try some 
> experiments with changing fewer attributes to find out which is the crucial 
> one.
> 
> What are the characteristics of the movie you tried it with, that didn't work?
> 
> Ben
> 
> 
> On 27/03/2017 01:30, Rick Harrison via use-livecode wrote:
>> 
>> Hi Ben,
>> 
>> To try to answer the second part of your question first.
>> I think once a movie starts playing other LC messages don’t
>> have time to be sent. The video just takes over because
>> it’s showing each frame quickly so your eye tells you
>> it’s a movie.
>> 
>> One solution I had to use in the past to make a decent
>> animation was to break the movie into each frame and
>> then put each frame onto each card.  I had a short
>> movie so it ended up being 254 cards.  It was for iOS
>> so I needed to optimize for a cell phone processor.
>> Then I was able to have a graphic which appeared
>> on every card move on top of the changing cards.
>> So my animated character was able to move around
>> freely on top of a video background.  I was able to
>> adjust the timing of the loops so it looked pretty good.
>> 
>> Regarding the first part of your message:
>> I’m trying to duplicate some of your experience here.
>> 
>>> Eventually I discovered by accident that this only applies to some videos. 
>>> For now, I got the job I needed to do done by rendering the original .mp4 
>>> into a .mov with QuicktimePlayer's default settings; I haven't had time to 
>>> establish what the crucial factors are. Is this known/documented anywhere?
>> 
>> I tried importing a Quicktime movie which had the .mov suffix into LC.
>> I put a graphic on top of the movie and when I went to play the movie
>> the movie put itself on top of the graphic.  So what to I need to do to
>> recreate your solution?
>> 
>> Thanks,
>> 
>> Rick
>> 
>> 
>> 
>> 
>>> On Mar 26, 2017, at 6:54 PM, Ben Rubinstein via use-livecode 
>>> <use-livecode@lists.runrev.com> wrote:
>>> 
>>> I'm trying to overlay some graphics on a video, and hit a couple of 
>>> problems.
>>> 
>>> The first, which drove me somewhat mad until I found an out, was that the 
>>> video was always displayed on top of other LC elements - graphics, fields. 
>>> This is using a player object; I found that the controller would be 
>>> rendered correctly layered among other objects, and indeed would obey 
>>> blending levels; and occasionally in tool mode the video frame would 

Re: Overlaying on video

2017-03-26 Thread Rick Harrison via use-livecode

Hi Ben,

To try to answer the second part of your question first.
I think once a movie starts playing other LC messages don’t
have time to be sent. The video just takes over because
it’s showing each frame quickly so your eye tells you
it’s a movie.

One solution I had to use in the past to make a decent
animation was to break the movie into each frame and
then put each frame onto each card.  I had a short
movie so it ended up being 254 cards.  It was for iOS
so I needed to optimize for a cell phone processor.
Then I was able to have a graphic which appeared
on every card move on top of the changing cards.
So my animated character was able to move around
freely on top of a video background.  I was able to
adjust the timing of the loops so it looked pretty good.

Regarding the first part of your message:
I’m trying to duplicate some of your experience here.

> Eventually I discovered by accident that this only applies to some videos. 
> For now, I got the job I needed to do done by rendering the original .mp4 
> into a .mov with QuicktimePlayer's default settings; I haven't had time to 
> establish what the crucial factors are. Is this known/documented anywhere?

I tried importing a Quicktime movie which had the .mov suffix into LC.
I put a graphic on top of the movie and when I went to play the movie
the movie put itself on top of the graphic.  So what to I need to do to
recreate your solution?

Thanks,

Rick




> On Mar 26, 2017, at 6:54 PM, Ben Rubinstein via use-livecode 
>  wrote:
> 
> I'm trying to overlay some graphics on a video, and hit a couple of problems.
> 
> The first, which drove me somewhat mad until I found an out, was that the 
> video was always displayed on top of other LC elements - graphics, fields. 
> This is using a player object; I found that the controller would be rendered 
> correctly layered among other objects, and indeed would obey blending levels; 
> and occasionally in tool mode the video frame would also; but once I switched 
> back to browse mode and played the video, it invariably displayed on top of 
> everything else, at 100% opacity. Toggling the "buffer" property did not 
> appear to make a difference.
> 
> Eventually I discovered by accident that this only applies to some videos. 
> For now, I got the job I needed to do done by rendering the original .mp4 
> into a .mov with QuicktimePlayer's default settings; I haven't had time to 
> establish what the crucial factors are. Is this known/documented anywhere?
> 
> The second problem - which I also found frustrating because I'm sure I've 
> done something similar before without this arising - was in triggering the 
> updates to my overlay graphics. I thought that I could have a timer sending a 
> regular message to my code which would check the time of the movie, and 
> adjust graphics appropriately. The code worked but I only saw an update 
> twice; when the movie started, and when it stopped. As far as I could tell 
> this wasn't an issue about the screen not updating; but that the message 
> genuinely wasn't sent while the movie was playing. Again, is this a known 
> issue? Or do others think this should work, and I was just doing something 
> wrong?
> 
> TIA,
> 
> Ben
> 
> ___
> 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: Transparent Images in LC

2017-03-30 Thread Rick Harrison via use-livecode
Hi Paul,

I’ve used .png images with transparencies with no problems before.
It almost sounds like the alpha-channel information is getting lost
somehow.

What program are you using to create your images?

Good luck tracking it down!

Rick


> On Mar 30, 2017, at 1:16 PM, Paul Dupuis via use-livecode 
>  wrote:
> 
> NOTE: I am using LC 6.7.11 for an update to a legacy app.
> 
> I was trying to import (as a control) a transparent PNG (i.e. the
> "white" parts allow whatever is underneath to show through) and instead
> of transparancy, I get the slashed background lines transparent PNG are
> often displayed with. Thinking it might be the PNG itself, I have our
> graphics person create a PNG that was transparent and shows up as
> transparent in other app, it still was not importing with the
> transparent parts transparent in LC.
> 
> Ultimately, I took the same image with the "transparent" parts as actual
> white and used the code below to create a transparency mask
> 
> command makeMask pObj
>  -- pObjs is a reference to an Image object
>  local tMaskData -- set to 0 [tranparent] for each byte in imageData
> that is white
>  get the imageData of pObj -- 4 bytes, 0,r,g,b white = 255, black = 0
>  put the number of bytes in it into X
>  repeat with i=1 to X step 4
>if i > X then exit repeat
>put byte (i+1) of it into r
>put byte (i+2) of it into g
>put byte (i+3) of it into b
>put byteToNum(r) into rV
>put byteToNum(g) into gV
>put byteToNum(b) into bV
>if rV=255 and gV=255 and bV=255 then
>  put numToByte(0) after tMaskData
>else
>  put numToByte(1) after tMaskData
>end if
>  end repeat
>  set the maskData of pObj to tMaskData
> end makeMask
> 
> Am I missing something? Is there a way to actually import an image with
> its transparency or is the only way via script control and scripting is
> the only way has anyone make a plugin tool to do this and if you have
> could you contribute the tool to the community edition and commercial
> versions so a tool to import transparent images becomes part of the main
> LiveCode distribution?
> 
> 
> 
> ___
> 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: Transparent Images in LC

2017-04-01 Thread Rick Harrison via use-livecode
Hi Paul,

I just took one of my old transparent .png images that I used 
to use a couple of years ago and imported it as a control into an 
LC 8.1.3 stack.  It worked just fine.

I think I might have created it with “Graphic Converter” for Mac.
If you put one of your images into a “DropBox” account with
a link for me I could take a look at it for you, and see if I can
find anything wrong with it.

Rick


> On Mar 31, 2017, at 9:46 AM, Paul Dupuis via use-livecode 
>  wrote:
> 
> NOTE: I am using LC 6.7.11 for an update to a legacy app.
> 
> I was trying to import (as a control) a transparent PNG (i.e. the
> "white" parts allow whatever is underneath to show through) and instead
> of transparancy, I get the slashed background lines transparent PNG are
> often displayed with. Thinking it might be the PNG itself, I have our
> graphics person create a PNG that was transparent and shows up as
> transparent in other app, it still was not importing with the
> transparent parts transparent in LC.
> 
> Ultimately, I took the same image with the "transparent" parts as actual
> white and used the code below to create a transparency mask
> 
> command makeMask pObj
>  -- pObjs is a reference to an Image object
>  local tMaskData -- set to 0 [tranparent] for each byte in imageData
> that is white
>  get the imageData of pObj -- 4 bytes, 0,r,g,b white = 255, black = 0
>  put the number of bytes in it into X
>  repeat with i=1 to X step 4
>if i > X then exit repeat
>put byte (i+1) of it into r
>put byte (i+2) of it into g
>put byte (i+3) of it into b
>put byteToNum(r) into rV
>put byteToNum(g) into gV
>put byteToNum(b) into bV
>if rV=255 and gV=255 and bV=255 then
>  put numToByte(0) after tMaskData
>else
>  put numToByte(1) after tMaskData
>end if
>  end repeat
>  set the maskData of pObj to tMaskData
> end makeMask
> 
> Am I missing something? Is there a way to actually import an image with
> its transparency or is the only way via script control and scripting is
> the only way has anyone make a plugin tool to do this and if you have
> could you contribute the tool to the community edition and commercial
> versions so a tool to import transparent images becomes part of the main
> LiveCode distribution?
> 
> 
> 
> ___
> 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: Passing Variables in a non-CGI LC Server?

2017-04-10 Thread Rick Harrison via use-livecode
Hi Mike,

Thanks, I’ll check it out!

Rick

> On Apr 10, 2017, at 1:22 PM, Mike Bonner via use-livecode 
>  wrote:
> 
> If you're interested in trying session variables again, I got word back
> that the issue I was having is fixed in 8.1.4 rc1 and it does indeed solve
> it. (hoping on-rev updates soon)  The newer version also solves the error
> you were having (which required using sessionsavepath as a workaround)
> I have a very simple page set up on digitalocea (short term) at
> http://104.236.179.13/test.lc if you want to see it working.
> 
> The script i'm using is:
> 
>  
> start session
> 
> if $_SESSION["counter"] is empty then
>   put 1 into $_SESSION["counter"]
> end if
> 
> 
> put "Session counter=" & $_SESSION["counter"] & ""
> -- same here, puts the current counter
> 
>  add 1 to $_SESSION["counter"]
>  put "Incrementing Session counter:" & $_SESSION["counter"]
> -- increments and displays the future counter
> put " The session id is " & the sessionid
> stop session
> 
> put "" & the version
> put "" & shell("uname -a")
> 
> ?>
> 


___
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: Mysterious customer

2017-04-04 Thread Rick Harrison via use-livecode
Hi Roger,

I think you have hit upon the real problem,
and the correct solution. If he is looking at
 his Mac at a resolution of either 1024 x 640 
or 1280 by 800 then Richmond’s app wouldn’t 
fit at all properly on the screen.

For my everyday use I usually have my screen
set to 1280 by 800 because I don’t like
the small text.  When I work on an app
I always switch to 1920 by 1200.

Good catch!

Rick


That sounds like the answer 
> On Apr 4, 2017, at 8:06 AM, Roger Eller via use-livecode 
>  wrote:
> 
> Is it possible that "Artie" has his display set to a lower resolution to
> compensate for vision impairment?
> 
> ~Roger
> 
> On Tue, Apr 4, 2017 at 6:49 AM, Richmond via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> I pumped out a 32-bit Mac standalone from my Char Ref stack and
>> 
>> released it through MacUpdate as a freebie, and have had a series of
>> e-mails from
>> 
>> someone called "Artie" who says that the standalone (886 pixels high)
>> won't fit on his
>> 
>> Mac Laptop that has a screen res of 2880 x 1880.
>> 
>> This seems odd to say the least.
>> 
>> Richmond.
>> 
> ___
> 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

Passing Variables in a non-CGI LC Server?

2017-04-06 Thread Rick Harrison via use-livecode
I have a few variables I would like to pass
from one .Introduced1.0OSmac, windows, linux, ios, 
androidPlatformsdesktop, server, mobile



___
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: Passing Variables in a non-CGI LC Server?

2017-04-06 Thread Rick Harrison via use-livecode
Hi Mike,

So the answer is - only in a stack.
Perhaps the dictionary should have
a comment stating or clarifying that fact.

Thanks,

Rick


> On Apr 6, 2017, at 4:27 PM, Mike Bonner via use-livecode 
>  wrote:
> 
> Can't answer the rest, but as for the global.. Since you can utilize stacks
> with server, you could declare a global just as you would normally, in any
> scripts that needed it, and it would work just like in lc proper.  It would
> only persist during the run of that particular instance.

___
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: Italic text within fields on Mac OS

2017-04-16 Thread Rick Harrison via use-livecode
Hi Richmond,

It works just fine here.
I’m using LiveCode 8.1.3
in MacOS Sierra.

I was able to do it both manually and programatically.
Here’s the code.

on mouseUp
set the textStyle of field "TextField1" of this card to italic

put "Hi there" into field "TextField1" of this card

end mouseUp

Good luck!

Rick

> On Apr 15, 2017, at 4:08 PM, Richmond Mathewson via use-livecode 
>  wrote:
> 
> Doesn't work.
> 
> Richmond.
> ___
> 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

LC Server - Smart Interactive Fields?

2017-04-22 Thread Rick Harrison via use-livecode
I was wondering if anyone has come up with a way to create
 “Smart Interactive Fields” in LiveCode server without
having to use javascript?

For example:  The user types in a number in the wrong format
into a field and the field is smart enough to interactively tell the
user with a tool-tip or other pop-up instruction that says the
correct format is $999.99 or perhaps automatically corrects 
the problem for them.

Any ideas?

Thanks,

Rick

 
___
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: LC Server - Smart Interactive Fields?

2017-04-22 Thread Rick Harrison via use-livecode
Hi Richard,

I was afraid you’d say that!  LOL

I think I’m stuck with JavaScript then according
to what you’ve explained here, and for what I 
need to do.  A web app just won’t cut it.

Thank you for investing your time into the verbose explanation.
I’m sure other users in addition to myself will find it useful.

Thanks again,

Rick

P.S.  I think LiveCode could make more money if they
invested somewhat more into these other technologies.

> On Apr 22, 2017, at 2:29 PM, Richard Gaskin via use-livecode 
>  wrote:
> 
> Rick Harrison wrote:
> 
> > I was wondering if anyone has come up with a way to create
> >  “Smart Interactive Fields” in LiveCode server without
> > having to use javascript?
> >
> > For example:  The user types in a number in the wrong format
> > into a field and the field is smart enough to interactively tell the
> > user with a tool-tip or other pop-up instruction that says the
> > correct format is $999.99 or perhaps automatically corrects
> > the problem for them.
> >
> > Any ideas?
> 
> Browsers have only one language built in, and of course that's JavaScript.
> 
> Anything that responds to user actions, such as keyboard and mouse events, 
> will require JavaScript.
> 
> Any server CGI, such as LiveCode Server, has a role limited to the server: a 
> request comes in over the wire, it performs some task, and then returns data.
> 
> How that data is requested from within the user's browser, and what the 
> browser does with the data once it comes back from the server, is a task 
> you'd handle in JavaScript.
> 
> 
> Options:
> 
> a) LC's HTML export
> ---
> If you have a license for LC's HTML Export option, or are working on a 
> GPL-governed work where the HTML Export included in the Community Edition 
> would be a good fit, you may consider that.
> 
> With this option, the LC engine is made available to your site as a 
> JavaScript library, which then reads your stack and handles things within 
> it's own canvas somewhat similar to running with a standalone engine, but 
> within a portion of the browser window.
> 
> Be aware, though, that it's still in development, and may or may not yet 
> support the features you need.
> 
> Personally, I'm big on quick-loading pages, and even with compression the 
> entire LC engine is a rather sizable chunk of JavaScript to download, unpack, 
> and initialize before it can render the page.
> 
> There may be ways to eventually bring that down to fit into the 6-second 
> rule, but at the moment it takes longer than that.
> 
> 
> b) JavaScript
> -
> Dive in, the water's fine.
> 
> It's not a bad language at all, and very useful.  For anyone who programs 
> only in LC and is looking to pick up a second language, IMO JvaScript is an 
> ideal choice because it covers the use-case LC covers the least well at the 
> moment, web browsers.
> 
> Extra bonus points that once you learn it you can write scripts for Node.js 
> and other tools that use JavaScript as their foundation.
> 
> This book is fun and easy to work through to get started:
> 
> Head First JavaScript
> http://shop.oreilly.com/product/9780596527747.do
> 
> 
> c) RIA - Rich Internet Application
> --
> A standalone made in LC can deliver nearly every benefit of delivering an app 
> in a browser, exchanging not only data with a server but even stacks as well.
> 
> An RIA lets you deliver an application with an interface dedicated to the 
> workflow your app supports, with many options for integrating with the local 
> OS far more than a browser app could dream of.  And users never need to worry 
> about accidentally obliterating what they're working on if they accidentally 
> hit the Back button.
> 
> I've waxed about RIAs often enough on this list that I won't take up more 
> bandwidth here on the subject except to answer any questions and to offer 
> this observation for now:
> 
> When it comes to delivering an application over the Internet, many folks here 
> say:
> 
> "Customers don't want an app!  It has to be delivered in a browser!"
> 
> Let's set aside for a moment that no one using XCode, Visual Studio, Xamarin, 
> or most other app dev tools ever considers exporting web pages a requirement 
> for those tools at all.
> 
> Let's look instead at the sentiments expressed here regarding mobile apps:
> 
> "Customers don't want a web app!  It must be delivered as a native app!"
> 
> :)
> 
> There are strengths and weaknesses of both OS-native apps and browser apps.
> 
> What's "best" depends on a lot of factors that will differ from app to app 
> and business model to business model.
> 
> On mobile, Facebook offers a limited web app with a feature-rich native app.
> 
> On desktop, Evernote offers a limited web app with a feature-rich native app.
> 
> On mobile PayPal offers a limited native app, with a more feature-rich web 
> app on the desktop.
> 
> There is no single "best", no magic pony of 

Re: align field scrolls

2017-03-06 Thread Rick Harrison via use-livecode
Hi Nicolas,

Does the number of lines increase or decrease between executions?

Have you tried to add or subtract a constant to adjust for the difference?

Rick

> On Mar 5, 2017, at 9:45 PM, Nicolas Cueto via use-livecode 
>  wrote:
> 
>> Provided both fields have the same number of lines...
> 
> 
> ​I should've added that the fields do not contain the same number of
> lines.  They are identical, though, in size and text properties.
> 
> Thanks, Paul.
> 
> --
> Nicolas Cueto
> 
> 
> On 6 March 2017 at 11:26, Paul Hibbert via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> I have a stack that does a similar thing, but with numbers and I just use
>> the following script in the main field;
>> 
>> on scrollBarDrag pScroll
>>   set the vScroll of fld  “lineNumbers" to pScroll
>> 
>> end scrollBarDrag
>> 
>> Provided both fields have the same number of lines and the text properties
>> are identical they should stay aligned correctly.
>> 
>> Or a simpler version would be;
>> set the vScroll of fld 2 to the vScroll of fld 1
>> 
>> Paul
>> 
>> 
>> 
>>> On Mar 5, 2017, at 6:00 PM, Nicolas Cueto via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>>> 
>>> Hi.
>>> 
>>> The part I've got working...
>>> 
>>> Two clickable scrolling fields (fld1, fld2), same height and width.
>> Click a
>>> fld1 line and fld2 SCROLLs and HILITEDLINEs to visually reveal a matching
>>> line. (fld1 is French text, fld2 is an English gloss.)
>>> 
>>> The part I would welcome your help with...
>>> 
>>> If, say, the hilited line on fld1 is kinda halfway down, how do I get the
>>> hilited line on fld2 to also be kinda halfway down?
>>> 
>>> Here's my scrolling-magic script:
>>> 
>>> set the scroll of fld2 to (tMatchingLineNr - 1) * \
>>>   the textHeight of fld2 - the textHeight of fld2
>>> set the hilitedline of fld2 to tMatchingLineNr
>>> 
>>> Of course, this ends up with the hilited line of fld2 being at the top.
>>> How do I get it to scroll just that little bit more so that it aligns
>> with
>>> the hilited line as seen in fld1?
>>> 
>>> 
>>> Thank you.
>>> 
>>> --
>>> 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 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: Passing Variables in a non-CGI LC Server?

2017-04-06 Thread Rick Harrison via use-livecode
Hi Richard,

Ok, let me clarify if I can.  LC Server as it
is installed out of the box without setting
it up as it used to be set up in the old days.

I have three webpages.  The first accepts
the user’s input into various fields and then
passes that information to the next webpage
through the user's web browser.  That works
fine.  Then without writing those parameters
out to a database, I want to pass those
now hidden parameters to the next webpage
for further processing before writing those
values out to the database.  

How are people handling that process?  
Or am I forced into writing everything out 
to the database and then reading it all 
back in just to go from one page to the next 
to the next?

Thanks,

Rick

> On Apr 6, 2017, at 6:52 PM, Richard Gaskin via use-livecode 
>  wrote:
> 
> Rick Harrison wrote:
> 
> > So the answer is - only in a stack.
> > Perhaps the dictionary should have
> > a comment stating or clarifying that fact.
> 
> Mike said:
> 
>   Can't answer the rest, but as for the global.. Since you can utilize
>   stacks with server, you could declare a global just as you would
>   normally, in any scripts that needed it, and it would work just like
>   in lc proper.  It would only persist during the run of that
>   particular instance.
> 
> LiveCode globals are available to all scripts that declare them within the 
> LiveCode process.
> 
> I think maybe the reason Mike's reply was focused on stacks is that it's not 
> clear what you're doing.
> 
> Your original post said:
> 
>  I have a few variables I would like to pass from one   server script to another using a web  browser with an lc
>  server that is not configured to be a cgi server.
> 
> Since LC Server runs as a CGI, and even if you were using a standalone on the 
> server as a daemon it would still be on the server and not in the client 
> browser, I can't figure out what that sentence means.
> 
> -- 
> Richard Gaskin
> Fourth World Systems
> Software Design and Development for the Desktop, Mobile, and the Web
> 
> ambassa...@fourthworld.comhttp://www.FourthWorld.com
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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

Re: Passing Variables in a non-CGI LC Server?

2017-04-07 Thread Rick Harrison via use-livecode
Hi Matthias,

Yes, I want to output some information to the user, and other
information remains hidden - where some data is adjusted,
modified, on the third webpage.

No, I’m not looking to redirect to another webpage, although
I have used that technique in the past on other types of
webservers.

I’d rather not have the parameters put into the URL where
the user can see it if possible for security reasons, but
if that’s the only way I suppose I could encrypt it before
passing it through that way.

Thank you for your input!

Rick


> On Apr 7, 2017, at 2:03 AM, Matthias Rebbe via use-livecode 
>  wrote:
> 
> is the third website just for further processing w/o an output to the user or 
> do you also want to output some information to the user?
> 
> case 1
> You could use the http post or get method to pass the parametesr to the 3rd 
> script/website from the 2nd script and return the result then to  the 2nd 
> script.
> Be aware that your 2nd scrip or better said every lc script, needs to do an 
> output, even if it´s just a blank. Otherwise the server returns an error 500
> 
> case 2
> If i remember right, put header allows you to redirect. So in your 2nd 
> script/website after you´ve done whatever you could use put header to 
> redirect using put header:
> 
> something like this
> put "http://yoursite.com?param1 
> " into tURL
> put  header "Status: 301”
> put header "Location:" && tURL
> put “redirecting…”   — i am not sure if this last line is still needed, but 
> in older versions of lcServer it was.
> 
> 
> 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: Passing Variables in a non-CGI LC Server?

2017-04-07 Thread Rick Harrison via use-livecode
Hi Mike,

Well I’m glad to see I’m not alone here in not
being able to get “start session” to work.
Now we can enjoy being in the soup together!  LOL

Rick

> On Apr 7, 2017, at 1:50 PM, Mike Bonner via use-livecode 
> <use-livecode@lists.runrev.com> wrote:
> 
> Ok. The problem with "start session" is most likely trying to write the
> session file to a place without write permissions.  Make sure you set the
> sessionsavepath to a place you can write to.
> 
> Having said that.. I can't make it work.  I can get past start session, all
> the way to stop session, no trouble, but the session variables aren't
> populated on start session.  (this is with on-rev most recent installed
> version of lc server I assume)
> No errors, just.. doesn't work.  The session file is created, I can grab
> the sessionid etc, but the session array isn't actually loaded.
> 
> I simplified as much as possible to try and figure out WHY it won't work
> now. If anyone have ideas, i'd appreciate a pointer.
> 
> Heres the code...
> 
>  set the sessionSavePath to the defaultfolder -- saving session stuff to the
> same dir as the .lc
> 
> start session
> -- start the session. If you don't do this BEFORE your if check,
> $_SESSION["counter"] will always be empty
> if $_SESSION["counter"] is empty then
>   put 1 into $_SESSION["counter"] -- give initial value if necessary
> end if
> 
> put "Session counter=" & $_SESSION["counter"] & ""
> 
>  add 1 to $_SESSION["counter"]
>  put "Incrementing Session counter:" & $_SESSION["counter"]
> -- increments and displays the future counter
> 
> stop session
> 
> ?>
> 
> 
> On each load, it should increment the current session. So the first hit it
> should say 1, and 2 for the future. Then 2 and 3, 3 and 4 4 and 5...
> As I said the sessionid file is created as expected (with 4 bytes in it)
> but the counter value doesn't appear in the session variables upon start
> using like it should.
> 
> On Fri, Apr 7, 2017 at 10:58 AM, Matthias Rebbe via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> 
>> 
>>> Am 07.04.2017 um 18:21 schrieb Rick Harrison via use-livecode <
>> use-livecode@lists.runrev.com <mailto:use-livecode@lists.runrev.com>>:
>>> 
>>> Hi Matthias,
>>> 
>>> Yes, I want to output some information to the user, and other
>>> information remains hidden - where some data is adjusted,
>>> modified, on the third webpage.
>>> 
>>> No, I’m not looking to redirect to another webpage, although
>>> I have used that technique in the past on other types of
>>> webservers.
>>> 
>> 
>> So then you could post the parameters from 2nd script/webpage  to the 3rd
>> webpage/script (post myData to URL destinationURL) and  then output the
>> result or what ever the 3rd script/webpage returns.
>> 
>> This way you do not need to pass the parameters to the url.
>> 
>>> I’d rather not have the parameters put into the URL where
>>> the user can see it if possible for security reasons, but
>>> if that’s the only way I suppose I could encrypt it before
>>> passing it through that way.
>> 
>>> 
>>> Thank you for your input!
>>> 
>>> Rick
>>> 
>>> 
>>>> On Apr 7, 2017, at 2:03 AM, Matthias Rebbe via use-livecode <
>> use-livecode@lists.runrev.com <mailto:use-livecode@lists.runrev.com>>
>> wrote:
>>>> 
>>>> is the third website just for further processing w/o an output to the
>> user or do you also want to output some information to the user?
>>>> 
>>>> case 1
>>>> You could use the http post or get method to pass the parametesr to the
>> 3rd script/website from the 2nd script and return the result then to  the
>> 2nd script.
>>>> Be aware that your 2nd scrip or better said every lc script, needs to
>> do an output, even if it´s just a blank. Otherwise the server returns an
>> error 500
>>>> 
>>>> case 2
>>>> If i remember right, put header allows you to redirect. So in your 2nd
>> script/website after you´ve done whatever you could use put header to
>> redirect using put header:
>>>> 
>>>> something like this
>>>> put "http://yoursite.com?param1 <
>> http://yoursite.com/?param1> <http://yoursite.com/?param1;
>> param2 <http://yoursite.com/?param1>>" into tUR

Re: Passing Variables in a non-CGI LC Server?

2017-04-07 Thread Rick Harrison via use-livecode
Hi Matthias,

Yes, that was what I was trying to do with no luck getting that working.
I can get it to work from a client-side stack without any issue, but
when I try to move that code into a .lc web script page it won’t work.
So, that’s why I decided I’d better ask what others are doing to pass
information along.

Thanks,

Rick

> On Apr 7, 2017, at 12:58 PM, Matthias Rebbe via use-livecode 
>  wrote:
> 
> So then you could post the parameters from 2nd script/webpage  to the 3rd 
> webpage/script (post myData to URL destinationURL) and  then output the 
> result or what ever the 3rd script/webpage returns.
> 
> This way you do not need to pass the parameters to the url.

___
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: Passing Variables in a non-CGI LC Server?

2017-04-07 Thread Rick Harrison via use-livecode
Hi Mike,

Yes, I’m hitting lc server script pages directly in the browser though
a web server.

Yes, all of my pages are .lc based.

I looked at the link you suggested for session management.
I put the code exactly as it was to see if the example would
work.  It doesn’t work.  As soon as it gets to "start session”
it gets flagged as an error at that line in the browser.
All I get is the line number in the code for the error.
file “/blah/blah/TestFile2.lc
 row 30, col 1:  (Which is for "start session”)

Ideas, suggestions?

Thanks,

Rick 


> On Apr 7, 2017, at 12:15 AM, Mike Bonner via use-livecode 
>  wrote:
> 
> Ah k.  Still not sure what you mean about how its installed, but if you are
> hitting lc server script pages directly in the browser through a web
> server, that part most likely doesn't matter. (otherwise i'm sure you'll
> correct me)
> 
> It sounds like you need to use session management.   If all your pages are
> .lc based, you can look at this forum topic
> http://forums.livecode.com/viewtopic.php?f=15=10787=50056=session#p50034
> for an example of passing information around using session variables.
> 
> 


___
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: html5 feature list anywhere? sqlite? local file access?

2017-04-07 Thread Rick Harrison via use-livecode
Hi Dr. Hawkins,

I didn’t see that anyone answered your question yet so
I thought I’d take a stab at it.  Others can please feel
free to correct me if my information is too old or whatever.

HTML5 as I understand it in it’s current form is still
considered “experimental” according to the LiveCode
team.  It is not able to interact with things outside of
itself like external databases, files, etc.  The new
Java Native Interface available in LC version 9.0.0 DP 6
and later maybe able to let you communicate via Java
with external databases.  I haven’t played around with
that version yet to see if it works or not.

HTML5 will work for creating self-contained stack apps 
which don’t require any external access to files or databases.
It will allow you to have your users download the stack/app
through the web-browser, and then run the app in the
browser, but the app then resides on the client side
of things and any information you need is internal
only for the stack/app.

For me it made more sense to just have different versions 
of my stack available for download for whatever platforms 
my users need.  I have one for Mac, one for Windows, etc.  
That way my stack app has the full functionality of LC, and 
it can talk to whatever external files or databases I want it 
to access.

I hope that helps!

Rick

> On Apr 6, 2017, at 12:56 PM, Dr. Hawkins via use-livecode 
>  wrote:
> 
> I am trying unsuccessfully to see what the feature list is for html5, and
> what, if anything, has been omitted.
> 
> In particular, is SQLite still built in? (if not, I'd be dead in the water)
> 
> Can things be saved to local files, and read back from them?  (not much
> point in creating a document that can't be saved, and need to get the
> license key and other preferences).
> 
> ANd is the performance adequate for an application-sized project, as
> opposed to app-sized?
> 
> -- 
> Dr. Richard E. Hawkins, Esq.
> (702) 508-8462
> ___
> 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: OT: Hackintosh

2017-08-01 Thread Rick Harrison via use-livecode
Hi Dan,

You have to ask yourself the question, why are you trying to
create a Hackintosh computer?  Is it about the learning experience,
or about trying to save yourself some money, or both?

If you are doing it just to try to save some money, you have to ask
yourself how much money is your time worth?  You are going to have
to put a good deal of time into building the machine yourself. You
might just find that by the time you are all done, that it would have
been cheaper just to buy a Macintosh with all the bells, and whistles
you wanted in the first place.

If you are doing it just for the experience, well then by all means
please feel free to knock yourself out with it all.  You will definitely
learn a lot in the process I’m sure.

Good luck with whatever you decide to do, and please feel free
to share the story with us when you have it all put together.

Cheers,

Rick

> On Aug 1, 2017, at 7:27 PM, Bob Sneidar via use-livecode 
>  wrote:
> 
> I tried once. The problem is getting a graphics card to work correctly if you 
> are thinking about gaming. There are all kinds of hacks to get it to work, 
> but the bottom line is it can be iffy, and the next OS X update might break 
> it. 
> 
> Bob S
> 
> 
>> On Aug 1, 2017, at 12:36 , Dan Friedman via use-livecode 
>>  wrote:
>> 
>> Greetings!
>> 
>> Has anyone built their own Hackintosh computer?
> 
> 
> ___
> 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: Cross-platform app containers

2017-06-30 Thread Rick Harrison via use-livecode
Hi Jerry,

This looks interesting.  I didn’t see anything that discussed
being able to run Mac apps.  It looked like it will let you run
Windows Apps on your Mac.  Where did you see the
reference to Mac Apps?

Thanks,

Rick

> On Jun 30, 2017, at 12:43 PM, Jerry Daniels via use-livecode 
>  wrote:
> 
> Y'all might wanna checkout Droplet Computing. This would let me run my Mac or 
> Windows apps on a ChromeBook easily!
> http://www.dropletcom.com/waitlist?ref=pKOcqQ
> Best, Jerry 512-698-6286
> ___
> 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

User IP Address from LC Server?

2017-04-27 Thread Rick Harrison via use-livecode
After looking at a bunch of entries in the LC Dictionary
I can’t find anything that tells me how I can get the
IP of a User who has logged into my LC Server website.

Does anyone out there know how to do this with LC?

Thanks in advance!

Rick
___
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: User IP Address from LC Server?

2017-04-27 Thread Rick Harrison via use-livecode
Hi Alex and Phil,

Thanks, I’ll check it out.

Rick


> On Apr 27, 2017, at 9:06 PM, Phil Davis via use-livecode 
> <use-livecode@lists.runrev.com> wrote:
> 
> Hi Rick,
> 
> I believe that would be found in $_SERVER["REMOTE_ADDR"] .
> 
> Here is a simple way to see what's in the $_SERVER array:
> 
> 1) Put the following code in a text file - I'll call it "globals.lc":
> 
>  put the keys of $_SERVER into tList
>   sort lines of tList
>   repeat for each line tKey in tList
>if $_SERVER[tKey] is an array
>then put "[" & tKey & "]" & CR after tOutput
>else put tKey && "=" && $_SERVER[tKey] & CR after tOutput
>   end repeat
> 
>   -- do this so the output will look right in browser or from msg box
>   if "LiveCode" is not in $_SERVER["HTTP_USER_AGENT"] then replace CR
>   with "" in tOutput
> 
>   put tOutput
>   ?>
> 
> 2) Upload the file to the folder on your LC server where web pages go.
> 
> 3) Go to its URL - e.g.  go url "http://mywebsite.com/globals.lc;
> 
> 
> That should show you everything in the $_SERVER global.
> 
> You can do something similar to see what's in the various other server 
> globals, all of which begin with "$_" - check the dictionary for more info on 
> those.
> 
> HTH -
> Phil Davis
> 
> 
> 
> On 4/27/17 5:21 PM, Rick Harrison via use-livecode wrote:
>> After looking at a bunch of entries in the LC Dictionary
>> I can’t find anything that tells me how I can get the
>> IP of a User who has logged into my LC Server website.
>> 
>> Does anyone out there know how to do this with LC?
>> 
>> Thanks in advance!
>> 
>> Rick
>> ___
>> 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
> 
> -- 
> Phil Davis
> 
> ___
> 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: Make numberFormat even better

2017-04-25 Thread Rick Harrison via use-livecode
Hi Lagi,

I can’t agree more.  Never break anyone’s code if at all possible.
Create a new numberformat like NumberFormatXL or something
similar.  Leave the old working stuff alone. 

Just my 2 cents for the day!

Rick

> On Apr 25, 2017, at 6:48 AM, Lagi Pittas via use-livecode 
>  wrote:
> 
> Hi
> 
> I don't know why you want to adapt/enhance the number format as that could
> break already working code that uses the nuances of numberformat already.
> 
> Why not add an instruction NumberFormatXL and create the an Excel version
> like Curry says. You won't have to jump through hoops to make sure it
> doesn't break anything, you can fix what's wrong(?) and you can add stuff
> in there without affecting old code, plus and with Curry's experience with
> spreadlib you probably have a lot of the problems to solve sorted.
> 
> Now my usual caveat "Everything is easy for the man who doesn't have to do
> it himself" - but I haven't seen anything that Mark and his team can't do -
> usually the problems stem from trying no to break older stuff.
> 
> I think in this case adding a new command would make it easier all round.
> While you're at it why not put a callback/ or in  wordpress parlance an
> "AddAction"  option so you can add to the formatting on the fly?
> 
> Regards Lagi
> 


___
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: HTML5 limitations?

2017-07-25 Thread Rick Harrison via use-livecode
Why does the client want to move the project over to HTML5?
What advantage does he/she think it is going to provide that
the current setup does not?

Based on the complexity of what you already have going I think
it could be a very serious waste of time and energy.

It’s easier to just have a website where your users download
whatever version they need for their computer.  One for macOS,
one for Windows, and one for Unix.  If you need mobile versions
you can create them too.

Trying to convert everything so it all runs in a client’s web-browser,
and too slowly at that considering all of your animations, I just
don’t see it.  You would be better off knowing you have all of
LC’s engine capabilities in your app than in trusting something
that is still listed as experimental - although soon to become beta.

On the other hand if your client has very very deep pockets, and
isn’t in a rush to get it all done by tomorrow, you could make a
lot of money struggling with trying to get it all working.

Good luck with whatever you do!

Rick

> On Jul 25, 2017, at 2:42 PM, J. Landman Gay via use-livecode 
>  wrote:
> 
> I have a client that wants to move our project to HTML5. I have some doubts 
> about the capabilities, could someone tell me what is currently possible and 
> what is not?
> 
> This is a very large set of stacks, run by a standalone that loads content on 
> demand from a server. It is image-heavy and interacts with a networked 
> database. There is lots of navigation between stacks and many hundreds of 
> cards. At any given time, there can be up to a dozen stacks held in RAM. 
> There is also heavy use of visual effects and animation.
> 
> Thoughts?
> 
> -- 
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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

Re: sysError List?

2017-05-14 Thread Rick Harrison via use-livecode
Hi Ralf,

Are you doing this in an LC Server
by accessing the script through a 
web-browser such as Safari?

As I’m not getting a path - what
path are you getting specifically?
I’m still trying to locate where my
temp files are ending up.  I don’t
know if they are just going to the
bit bucket in the sky or what!

If this is working for you given the
above parameters then it probably
means it isn’t a bug with LC but
a problem with my system or
some quirk with setup of the server.

Thanks in advance.

Rick



> On May 14, 2017, at 7:20 AM, Ralf Bitter via use-livecode 
>  wrote:
> 
> MacOS 10.12.4
> LC server 8.1.4-rc-2
> 
> Your script works as expected here,
> yields the path to the temporary items folder.
> 
> 
> Ralf

___
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: sysError List?

2017-05-12 Thread Rick Harrison via use-livecode
Hi Richard,

LC version 8.1.4-rc-1
macOS El Capitan (10.11.6)

put specialFolderPath("documents”)

yields:
/Library/WebServer/Documents

Your thoughts?

Rick

> On May 12, 2017, at 5:10 PM, Richard Gaskin via use-livecode 
>  wrote:
> 
> Scary.  Looks like the specialFolderPath function is returning empty with the 
> "temporary" constant on your system?
> 
> LC and OS versions?
> 
> Just for diagnostics, what does this do there?:
> 
>  put specialFolderPath("documents")
> 
> -- 
> 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

sysError List?

2017-05-09 Thread Rick Harrison via use-livecode
Hi there,

Does anyone know where I can a sysError list
so I can figure out what the numbers mean?

Thanks,

Rick

___
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: sysError List?

2017-05-09 Thread Rick Harrison via use-livecode
Hi Richard,

I did some experiments and did get one instance
of rename to work properly.  Apparently I had
a permissions problem with writing to the folder/file.

I did the search on google for macOS errors.  The
lists that I found weren’t much help and said at
the very beginning that they weren’t up to date.
It also stated they could in fact be entirely wrong 
due to frequent updates of error codes.

Other issues I’m running into are:

1.  I’m running into some 32,767 array size
 error when trying to upload large images
 to the server.  Images smaller than
 the magic figure upload fine, and larger
 files over that figure throw and error
 message and fail to upload.

2.  Where can I find the LiveCode tmp folder
 where the images are initially uploaded?

 I need the complete file path to that so
 I can move the images where I want them.
 Unless there is a way I can upload directly
 to the file folder I want?

Thanks for your help!

Rick

> On May 9, 2017, at 3:40 PM, Richard Gaskin via use-livecode 
>  wrote:
> 
> The value returned from sysError is the OS error ID, which will vary from OS 
> to OS and is subject to change.
> 
> I usually do a search at Google for something like:
> 
>  Windows OS error 20
> 
> I looked up yours and it seems to be either "invalid path" or "device not 
> found", depending on the OS and version.  They may be related, where perhaps 
> "device" refers to storage device.
> 
> What are the source and dest paths you were using with your rename command?
> 
> -- 
> Richard Gaskin


___
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: sysError List?

2017-05-13 Thread Rick Harrison via use-livecode
Hi Richard,

It returns blank.

So now what?

Rick

> On May 12, 2017, at 10:40 PM, Richard Gaskin via use-livecode 
>  wrote:
> 
>  put specialFolderPath("temporary")

___
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: sysError List?

2017-05-13 Thread Rick Harrison via use-livecode
Hi Richard,

Ok, I’ll try an upgrade to 8.1.4 RC2 to see if that works,
and then get back to you.

Thanks,

Rick

> On May 13, 2017, at 11:15 AM, Richard Gaskin via use-livecode 
>  wrote:
> 
> Rick Harrison wrote:
> 
> >> On May 12, 2017, at 10:40 PM, Richard Gaskin wrote:
> >>
> >>  put specialFolderPath("temporary")
> >
> > Hi Richard,
> >
> > It returns blank.
> >
> > So now what?
> 
> That value is either accurate or inaccurate. Either way, it seems a bug - the 
> question is, where?
> 
> If accurate, it would appear there's something very unusual about your OS 
> config, since temp files are a common necessity in modern OSes.
> 
> If inaccurate, it would appear to be a bug in LC 8.1.4 RC1.
> 
> Have you tried that in 8.1.4 RC2?
> http://downloads.livecode.com/livecode/
> 
> If the problem is repeatable with the latest build you might want to file a 
> bug report on that.
> 
> FWIW, testing both LC 8.1.4 RC2 and 9.0 DP6 I get a valid path to my system's 
> temp folder.
> 
> --
> Richard Gaskin
> Fourth World Systems
> Software Design and Development for the Desktop, Mobile, and the Web
> 
> ambassa...@fourthworld.comhttp://www.FourthWorld.com
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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

Re: sysError List?

2017-05-13 Thread Rick Harrison via use-livecode
Hi Richard,

Ok, so I did the upgrade to version 8.1.4 RC 2 and
after rebooting I found that it made no difference at all.

When you are using lc-server and use
the following script, what do you get?



Thanks,

Rick

> On May 13, 2017, at 11:15 AM, Richard Gaskin via use-livecode 
>  wrote:
> 
> That value is either accurate or inaccurate. Either way, it seems a bug - the 
> question is, where?
> 
> If accurate, it would appear there's something very unusual about your OS 
> config, since temp files are a common necessity in modern OSes.
> 
> If inaccurate, it would appear to be a bug in LC 8.1.4 RC1.
> 
> Have you tried that in 8.1.4 RC2?
> http://downloads.livecode.com/livecode/
> 
> If the problem is repeatable with the latest build you might want to file a 
> bug report on that.
> 
> FWIW, testing both LC 8.1.4 RC2 and 9.0 DP6 I get a valid path to my system's 
> temp folder.
> 
> --
> Richard Gaskin
> Fourth World Systems
> Software Design and Development for the Desktop, Mobile, and the Web
> 
> ambassa...@fourthworld.comhttp://www.FourthWorld.com
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: [OT] on-rev MySQL warnings - does it matter.

2017-05-09 Thread Rick Harrison via use-livecode
Hi Alex,

It never hurts to ask.  It also helps to keep
support motivated to keep up with those
important maintenance tasks.

Just my 2 cents.

Rick

> On May 9, 2017, at 7:00 PM, Alex Tweedly via use-livecode 
>  wrote:
> 
> Hope this isn't too off-topic but I'm pretty ignorant about MySQL ...
> 
> on my account on on-rev (specifically, sage), if I use cPanel and go into 
> phpMyAdmin, I get a warning message :
> 
> Your PHP MySQL library version 5.1.73 differs from your MySQL server version 
> 5.6.35. This may cause unpredictable behavior.
> 
> 
> This sounds scary - but does it really mean there's a problem I should ask 
> support about, or is it just being picky ? :-)
> 
> Thanks
> 
> Alex.

___
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: sysError List?

2017-05-12 Thread Rick Harrison via use-livecode
Hi Richard,

Sorry it has been a couple days before I could
get back to this task.

Ok, so my file uploaded to:  /tmp/livecode_qpSKBPng

I thought that perhaps tmp was a hidden folder
so I looked on my Mac after first unhiding all files.
I’m still not seeing it.  Where is this located?

Then I’m getting an error 20 when I try to 
rename (move) the file to the proper folder
where I want it to go.  I don’t know what
error 20 is.  Does it mean it is a permissions
problem?  The file wasn’t found?  I don’t know.

Let me know if you have any ideas.

Thanks,

Rick



> On May 9, 2017, at 8:20 PM, Richard Gaskin via use-livecode 
>  wrote:
> 
> Rick Harrison wrote:
> 
> > I did some experiments and did get one instance
> > of rename to work properly.  Apparently I had
> > a permissions problem with writing to the folder/file.
> 
> Yep, most things with file I/O that fails are either paths or permissions.  
> Glad you got that sorted.
> 
> > Other issues I’m running into are:
> >
> > 1.  I’m running into some 32,767 array size
> >  error when trying to upload large images
> >  to the server.  Images smaller than
> >  the magic figure upload fine, and larger
> >  files over that figure throw and error
> >  message and fail to upload.
> 
> "array size"?  Where is that error coming from, the client or the server?
> 
> 
> > 2.  Where can I find the LiveCode tmp folder
> >  where the images are initially uploaded?
> >
> >  I need the complete file path to that so
> >  I can move the images where I want them.
> >  Unless there is a way I can upload directly
> >  to the file folder I want?
> 
> I generally only use standalones on the server, and I handle buffering to 
> disk myself.
> 
> Anyone here know if LC Server does that differently?  If so, where are those 
> temp files?
> 
> -- 
> Richard Gaskin
> Fourth World Systems
> Software Design and Development for the Desktop, Mobile, and the Web
> 
> ambassa...@fourthworld.comhttp://www.FourthWorld.com
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

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

Re: ANN: new team member

2017-05-12 Thread Rick Harrison via use-livecode
Congratulations!

I think you’ll have to wait for several years
before coding education will pay off.

Good luck keeping all of your hair!  LOL

Rick


___
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: sysError List?

2017-05-12 Thread Rick Harrison via use-livecode
Hi Richard,

That yields:

tPath = /livecode_qpSKBPng

Does that help?

Rick

> On May 12, 2017, at 2:54 PM, Richard Gaskin via use-livecode 
>  wrote:
> 
>  put specialFolderPath("temporary") &"/livecode_qpSKBPng" \
> into tPath

___
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


First 1000 characters without loop?

2017-06-22 Thread Rick Harrison via use-livecode
I have a string variable which contains over 2500 characters.
I only want to grab the first 1000 characters of that string.
Rather than looping 1000 times to grab each character
is there a way to just grab the first 1000 efficiently in
one big chunk?

Thanks,

Rick

___
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: First 1000 characters without loop?

2017-06-22 Thread Rick Harrison via use-livecode
Hi Devin & Mark,

Thanks for this solution.

Does that statement create an implied loop?
It’s great for a one liner though!

Rick

> On Jun 22, 2017, at 2:17 PM, Mark Talluto via use-livecode 
> <use-livecode@lists.runrev.com> wrote:
> 
> On Jun 22, 2017, at 11:03 AM, Rick Harrison via use-livecode 
> <use-livecode@lists.runrev.com> wrote:
>> 
>> I have a string variable which contains over 2500 characters.
>> I only want to grab the first 1000 characters of that string.
>> Rather than looping 1000 times to grab each character
>> is there a way to just grab the first 1000 efficiently in
>> one big chunk?
>> 
>> Thanks,
>> 
>> Rick
> 
> Hi Rick,
> 
> put char 1 to 1000 of tOriginalVar into tNewVar
> 
> 
> Best regards,
> 
> Mark Talluto
> livecloud.io <http://livecloud.io/>
> nursenotes.net <http://nursenotes.net/>
> canelasoftware.com <http://www.canelasoftware.com/>
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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

Re: First 1000 characters without loop?

2017-06-23 Thread Rick Harrison via use-livecode
Hi Mark,

Thank you for your verbose answers to questions.
That’s really really deep stuff!

I’m so thankful that the engine takes care of all
of this stuff so that the rest of us don’t have to!

Cheers,

Rick

> On Jun 23, 2017, at 4:17 AM, Mark Waddingham via use-livecode 
>  wrote:
> 
> On 2017-06-22 23:18, Richard Gaskin via use-livecode wrote:
>> With many chunk expressions, I would imagine it does.  With line
>> chunks, for example, the engine needs to walk through the string,
>> comparing each character to CR, counting the found CRs as it goes.
> 
> Yes - essentially that is the case (although technically it looks for LF, not 
> CR as currently - for better or for worse - the engine assumes line means LF 
> as the separator, and normalizes line endings appropriately on a per-platform 
> basis when you 'import' things as text into LiveCode).
> 
>> In this case, though, I believe it doesn't need a loop per se, since
>> AFAIK character are fixed-size entities internally (Mark Waddingham,
>> is that true that UTF-16 gives us two-bytes per char across the
>> board?).
> 
> No this is not quite true - characters are not fixed sized entities from the 
> computer's point of view. In LiveCode 'character' means 'grapheme' - which is 
> roughly what human's consider to be characters in terms of writing and 
> editing.
> 
> Indeed, there are several concepts here:
> 
>  1) character: a character is a sequence of Unicode codepoints
> 
>  2) codepoint: a codepoint is the index into the Unicode code table (which 
> has space for 1 million or so definitions)
> 
>  3) codeunit: a codeunit is an index into the Basic Multilingual Plane (BMP) 
> - the first 65536 Unicode codes. The BMP contains a block of codes called 
> 'surrogates' which aren't actually codes in themselves, but allow two 
> codeunits to be used to express a codepoint for any code defined above 65536.
> 
> Some examples:
> 
> Character 'a':
> 
> This is (as you might expect) always a single codepoint, and, indeed, always 
> a single codeunit (in Unicode 'a' is encoded with the same code as it is in 
> ASCII).
> 
> Character 'a-acute':
> 
> This can be either represented as a single codepoint (and codeunit) 'a-acute' 
> (the same code as a-acute has in the ISO-8859-1 encoding, a strict superset 
> of ASCII).
> 
> Or it can be represented as two codepoints 'a', 'combining-acute'. In both 
> cases, these codepoints are in the BMP, so each codepoint is represented as a 
> single codeunit.
> 
> Character 'smiling face with open mouth emoji':
> 
> This has code 0x1F603 - meaning it falls outside of the BMP (it is > 65535). 
> It is a single codepoint, but requires two codeunits to encode.
> 
> Some comparisons:
> 
> ASCII, ISO8859-1, Latin-1 and MacRoman are all 'single-codepoint' encodings - 
> all characters which those encodings can express are encoded as a single 
> codepoint.
> 
> Unicode is a 'multi-code' encoding - characters may require any number of 
> codepoints to express. For example:
> 
>  - In Indic languages (which have a somewhat different structure than 
> languages like English, French, German etc.), many codepoints are often 
> needed to represent what humans might consider a 'character'.
> 
>  - You can stack any number of defined 'combining accents' onto a base 
> character. You can have a character such as 
> a-acute-underbar-ring-grave-cedilla-umlaut if you want.
> 
>  - Emoji codepoints can be prefixed by 'variation selectors' which allow 
> customization of things like face color.
> 
> Basically, Unicode is a model for encoding writing systems with the aim that 
> (over time) it can be used to represent *any* writing system which exists now 
> or existed in the past. In order to do this in a tractable way (i.e. a way 
> which could be implemented maintainably on modern systems) it uses an 
> abstract model (sequences of codepoints which form characters). Due to this 
> it can sometimes seem a little 'odd' but then it is trying to model things 
> which were not designed to necessarily fit into a computer's viewpoint of the 
> world - writing systems have evolved organically without thought on how a 
> computer might need to process them.
> 
> In terms of LiveCode, then you have access to 'character', 'codepoint' and 
> 'codeunit' chunks. In general:
> 
>   - character access for general strings is never constant time, as 
> characters can require multiple codepoints.
> 
>   - codepoint access for general strings is never constant time, as 
> codepoints can require two codeunits to encode.
> 
>   - codeunits access for general strings is always constant time.
> 
> Internally, the engine will keep things which can be represented in the 
> platform's native encoding as native as much as possible (the native 
> encodings have the property that 1 character = 1 codepoint = 1 codeunit); 
> otherwise it will (currently) store things internally as sequences of 
> codeunits in the UTF-16 encoding. (How this might 

LiveCode Server - Html, Quotes & JS?

2017-06-19 Thread Rick Harrison via use-livecode
I have a nice example button image swap routine
written in JavaScript which I’d like to use in a .lc script.

To use HTML etc. within a .lc script I have to put
the statement in double quotes such as:

put “”

or

put “http://www.google.com' >”

where I have to substitute single quotes for the normal double quotes to make 
it work.

That’s fine until I have a statement that is already using both double and 
single quotes.
The statement still needs to be converted into a .lc script format.  The 
following statement
will get parsed the wrong way if one wants to put it into double quotes.

http://www.google.com; onmouseover="movepic('button','pic-off.gif')" 
onmouseout="movepic('button','pic-on.gif')">

becomes:

put "http://www.google.com; 
onmouseover="movepic('button','pic-off.gif')" 
onmouseout="movepic('button','pic-on.gif')">”

As you can see the above statement will not be parsed correctly.

Suggestions?

On a related note, if a user types in a word such as “can’t” into a field, the 
apostrophe gets interpreted as
a single quote and that messes up the parsing of various .lc script statements 
too.

How do you usually solve these issues?

Thanks,

Rick


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

Re: LiveCode Server - Html, Quotes & JS?

2017-06-19 Thread Rick Harrison via use-livecode
Hi Mike and Mark,

Thank you both for your suggestions!
I will give them a good try and get back to you.

Thanks again,

Rick

> On Jun 19, 2017, at 2:50 PM, Mike Bonner via use-livecode 
> <use-livecode@lists.runrev.com> wrote:
> 
> Theres a couple things I do... For items like an href that are pretty
> predictable, I have a stack file with a template that can be used with
> merge.
> 
> So I'd have [[tUrl]] in a property and merge that
> sucker in. (could use a description in a variable rather than a 2nd tUrl if
> you'd like
> 
> put "http://www.google.com; into tUrl
> put merge(the atag  of stack "whatever") and voila, there it is.
> 
> Alternatively, remember that you can open and close the lc tags at your
> convenience.
> 
> So instead of jumping through hoops, you can close the lc tag ?> then put
> your reference
> http://www.google.com; onmouseover="movepic('button','pic-off.gif')"
> onmouseout="movepic('button','pic-on.gif')"> SRC="pic-off.gif" ALT="Image">
> 
> then open lc again with  
> You should even be able to put tiny chunks of lc interspersed into your
> href by http://www.google.com; ?> right inside the thing.
> 
> On Mon, Jun 19, 2017 at 12:22 PM, Rick Harrison via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> I have a nice example button image swap routine
>> written in JavaScript which I’d like to use in a .lc script.
>> 
>> To use HTML etc. within a .lc script I have to put
>> the statement in double quotes such as:
>> 
>> put “”
>> 
>> or
>> 
>> put “http://www.google.com' <http://www.google.com'/>>”
>> 
>> where I have to substitute single quotes for the normal double quotes to
>> make it work.
>> 
>> That’s fine until I have a statement that is already using both double and
>> single quotes.
>> The statement still needs to be converted into a .lc script format.  The
>> following statement
>> will get parsed the wrong way if one wants to put it into double quotes.
>> 
>> http://www.google.com; onmouseover="movepic('button','pic-off.gif')"
>> onmouseout="movepic('button','pic-on.gif')">> SRC="pic-off.gif" ALT="Image">
>> 
>> becomes:
>> 
>> put "http://www.google.com; 
>> onmouseover="movepic('button','pic-off.gif')"
>> onmouseout="movepic('button','pic-on.gif')">> SRC="pic-off.gif" ALT="Image">”
>> 
>> As you can see the above statement will not be parsed correctly.
>> 
>> Suggestions?
>> 
>> On a related note, if a user types in a word such as “can’t” into a field,
>> the apostrophe gets interpreted as
>> a single quote and that messes up the parsing of various .lc script
>> statements too.
>> 
>> How do you usually solve these issues?
>> 
>> Thanks,
>> 
>> Rick
>> 
>> 
>> ___
>> 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

LC Server - Upload Large Images?

2017-05-23 Thread Rick Harrison via use-livecode
Hi there,

I spent a few days, and performed a bunch of
system upgrades.

I upgraded my server up to macOS Sierra 10.12.5,
the server software up to macOS Server 5.3.1,
and reinstalled LC server version 8.1.4 RC 2.

Now when I use:

put specialFolderPath(“temporary”)

I get the same results as the rest of you do, 
which is good!

I did some experimentation and found
that sysError 2 means that the file or
folder wasn’t found.

sysError 13 means that there was
a permissions problem.

I did a simple test using rename to move and rename a file from
one folder such as default/OriginalFolder/FileToBeMoved.jpg
to a folder called default/DestinationFolder/FileMoved.jpg
which works just fine!

When I try uploading the file to the server it goes into
a folder starting with /tmp/zz0303s… and when I try
to rename and move it, I get a sysError 20.
I don’t know what sysError 20 is.  When I tried to
look it up online all I saw was a vague statement that
it is possibly some kind of I/O error.

I have a routine which will upload small image files
which are less than 32,767kb in size which works
fine, but it won’t work for any larger image files.

I have been all over the internet looking for good
examples of LC which can upload image files
and I haven’t been able to get any of them to work.

Does anyone have a good tested/working example 
of uploading large image files to an LC server
using LC script they could share with me?  
This problem is really holding everything up 
for me and I need to move on.

Thanks,

Rick


___
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

Email Working?

2017-05-23 Thread Rick Harrison via use-livecode
Hi there,

Yesterday, I couldn’t get any messages
from this list at all, and anything I sent
kept bouncing.  Is everything working
Ok for this list today?

Thanks,

Rick
___
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: LC Server - Upload Large Images?

2017-05-25 Thread Rick Harrison via use-livecode
Hi there,

After way too much wasted time - the answers ended up being:

Instead of using rename which throws a sysError 20 to move the file
from the /tmp/ folder to the destination folder use:

put URL ("binfile:" & tFilePath) into URL ("binfile:" & 
VarNewPathAndFileToSaveTo)

Where VarNewPathAndFileToSaveTo is your default path plus any new folder you
would care to add.

That works great!

To display the image use:

put "”

This works for both small and large images.

I hope this helps anyone else out there who finds themselves struggling with 
such issues.

If anyone wants to look into the rename sysError 20 problem please feel free.
My feeling about it is that should have worked, and didn’t for some weird 
reason.

Thank you for you help and support!

Rick





___
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: 64 bit desktop apps

2017-06-08 Thread Rick Harrison via use-livecode
Hi Richmond,

Did you miss the memo about:

Apple Zero-Day Flaw Leaves OS X Systems Vulnerable to Attack

Zero day flaws have always been there in the Mac OS X operating system
from the very beginning.  These have been patched in later versions of
Mac OS X, but earlier versions were never patched.  You are probably
vulnerable to such things on those older computers.

If you aren’t on the internet with any of those computers, and you scan all 
software for viruses before you install it, you might be fine. 

Or do you have some work around that no one knows about?

Cheers,

Rick


> On Jun 8, 2017, at 6:04 AM, Richmond via use-livecode 
>  wrote:
> 
> So, backwards compatibility does not interest you?
> 
> I, for one, run Mac Machines running MacOS 10.4 PPC.
> 
> A lot of these machine are being dumped in poor countries where they can be 
> used
> for good purposes.
> 
> Richmond.
> 

___
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: develop a hybrid app

2017-05-04 Thread Rick Harrison via use-livecode
Hi Matt,

Apple has made it extremely difficult to do anything which
accesses other apps or functions outside of your own app.
Everything is “sandboxed” to make sure that your app doesn’t
interfere with anyone else’s app or other Apple apps.

Apple has made sure that one can’t make a better
iTunes app very easily at all.  Go ahead and try if you
like, you will discover it to be quite difficult.  Apple doesn’t
want anyone competing with them for such things.

So, yes trying to monitor what’s going on with
someone’s activities on the iPhone is pretty
difficult.  Most activity trackers do things like
check the time and send a notification that
one has not gone for a walk recently.  They
might also check the accelerometer to see
if the iPhone has moved recently, but that
app has to be running in the foreground for
that to work.

Tracker apps can use a lot of power too
because they are checking things constantly
and that can affect the daily battery time.

Good luck!

Rick

  

> On May 4, 2017, at 11:24 AM, Matt Maier via use-livecode 
>  wrote:
> 
> Is there a concise list of what Livecode can do on mobile devices?
> 
> Activity tracking - some kind of awerenesses that the user interacted with
> their phone during focus time. Did they turn the screen on, did they spend
> time out if the lilspace app, did they send/receive messages. The idea is
> to trigger a "not really focusing" flag. Stuff like music and photos would
> be fine, 10 minutes on Facebook wouldn't.
> 
> Auto-reply - prewritten messages that go out when you're focusing to
> explain what you're doing and when you'll be done. Like "I'm at yoga. I'll
> check my phone at 5".
> 
> 
> On May 4, 2017 06:37, "pink via use-livecode" 
> wrote:
> 
> Access to phone functions is limited. On the iPhone is it extremely limited.
> 
> Can you be more specific about what you mean by "activity tracking" and
> "auto-reply"?
> 
> Screen dimming and silent mode definitely cannot be triggered by an iPhone
> app, I am not sure about Android but I doubt it can be done in LiveCode
> without some sort of external being built. Your best bet would be to have
> reminders setup to say "please switch on silent mode"
> 
> What else do you want such an app to do?
> 
> 
> 
> -
> ---
> Greg (pink) Miller
> mad, pink and dangerous to code
> --
> View this message in context: http://runtime-revolution.
> 278305.n4.nabble.com/develop-a-hybrid-app-tp4714468p4714472.html
> Sent from the Revolution - User mailing list archive at Nabble.com.
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> ___
> 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: Rename File on Server not working?

2017-05-08 Thread Rick Harrison via use-livecode
Hi Richard,

The result says:

can't rename file (20)

I see that you are using a “move file” in your example.
The dictionary doesn’t show an example for moving a file.

I tried the following example to see what would happen:

move file OldImagePathAndFileName to tFileName
  if the result is not empty then
put the result && "(" & sysError() &")"
 end if

I’m getting:   move: missing ‘to'

This seems rather bizarre to me.

Your thoughts?

Rick




> On May 8, 2017, at 7:29 PM, Richard Gaskin via use-livecode 
>  wrote:
> 
> Rick Harrison wrote:
>> I was trying to use rename file
>> on the Server in a .lc script
>> to rename a file.  It doesn’t
>> seem to work at all.  Can
>> someone please let me know
>> if it works on an LC Server?
> 
> It should.  Try checking the result immediately after, and if not empty call 
> sysError() for the OS error number, e.g.:
> 
>  move file tSrcPath to tDestPath
>  if the result is not empty then
> put the result && "(" & sysError() &")"
>  end if
> 
> -- 
> Richard Gaskin
> Fourth World Systems
> Software Design and Development for the Desktop, Mobile, and the Web
> 
> ambassa...@fourthworld.comhttp://www.FourthWorld.com
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

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

Rename File on Server not working?

2017-05-08 Thread Rick Harrison via use-livecode
Hi there,

I was trying to use rename file
on the Server in a .lc script
to rename a file.  It doesn’t
seem to work at all.  Can
someone please let me know
if it works on an LC Server?

Thanks,

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

Script Editor Autocomplete Optional?

2017-09-13 Thread Rick Harrison via use-livecode
Hi there,

I was wondering, if I find I don’t like the
new Script Editor Autocomplete function
because I find it too distracting, can I turn
it off?  I think the ability to turn it off might
be important to some people.

Thanks,

Rick
___
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: Script Editor Autocomplete Optional?

2017-09-13 Thread Rick Harrison via use-livecode
Hi Panos,

Ok, I have added the enhancement as:

Bug 20386 <http://quality.livecode.com/show_bug.cgi?id=20386>

I think I still need someone to confirm it?
Please have someone do that if required.

Thanks,

Rick


> On Sep 13, 2017, at 3:16 PM, panagiotis merakos via use-livecode 
> <use-livecode@lists.runrev.com> wrote:
> 
> Hi Rick,
> 
> I do not think that currently this is possible, but you could file an
> enhancement request in http://quality.livecode.com so we could add a pref
> in the next release.
> 
> Best,
> Panos
> --
> 
> 
> On Wed, Sep 13, 2017 at 7:34 PM, Rick Harrison via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> Hi there,
>> 
>> I was wondering, if I find I don’t like the
>> new Script Editor Autocomplete function
>> because I find it too distracting, can I turn
>> it off?  I think the ability to turn it off might
>> be important to some people.
>> 
>> Thanks,
>> 
>> Rick
>> ___
>> 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: not really OT: The Coming Software Apocalypse

2017-10-05 Thread Rick Harrison via use-livecode
Hi Roger,

They failed to mention LiveCode though, which was disappointing.
If anyone writes a software package with LiveCode so that we
can duplicate the laser reflector experiment, let me know! ;-)

Thanks for sharing!

Rick

> On Oct 5, 2017, at 6:31 AM, Roger Eller via use-livecode 
>  wrote:
> 
> Sitcom version of the laser reflector experiment (on "The Big Bang
> Theory").  :-)
> 
> https://www.youtube.com/watch?v=tL1OATdBoY8
> 


___
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]macbook model

2017-09-01 Thread Rick Harrison via use-livecode
Hi Mike,

If you don’t need the portability, go with the 27 inch iMac
with the SSD drive for development, you won’t regret it.

Just my 2 cents for the day.

Cheers,

Rick
___
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]macbook model

2017-09-01 Thread Rick Harrison via use-livecode
If you get a new MacBook Pro with Thunderbolt-3 (USB-C) ports
there are a couple of nice docks which will split out most of the
standard old ports. Both Belkin and Plugable make them

https://www.amazon.com/Plugable-Thunderbolt-Compatible-Supports-DisplayPort/dp/B06ZYR66QB
 


https://www.amazon.com/Thunderbolt-Docking-Station-Delivery-Charging/dp/B073JDZGKK/ref=sr_1_8
 


I hope that helps someone.

Rick

> On Sep 1, 2017, at 2:11 PM, Bob Sneidar via use-livecode 
>  wrote:
> 
> I've always said, everyone loves standards... their OWN standards. :-)
> 
> But seriously, if this is FINALLY the last port anyone will ever create or 
> need, well then okay. But I must say, the only people who benefit from this 
> sort of thing are the device manufacturers and peripheral vendors. The end 
> user, very little if any. It ALWAYS ends up costing me more money than just 
> the purchase price of my computer whenever I upgrade. 
> 
> Bob S
> 

___
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]macbook model

2017-09-01 Thread Rick Harrison via use-livecode
Hi Mike,

The StarTech one is $329.99

The Plugable one is $189.00

So buy the cheaper one, and save $140.99

It almost looks like StarTech bought the Plugable one,
put it’s own paintwork on it, and is reselling it at a much
higher price to make it look like a better quality product.  LOL

Rick

> On Sep 1, 2017, at 4:20 PM, Mike Kerner via use-livecode 
> <use-livecode@lists.runrev.com> wrote:
> 
> it looks like the same dock, just two different brands
> 
> On Fri, Sep 1, 2017 at 3:48 PM, Rick Harrison via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> If you get a new MacBook Pro with Thunderbolt-3 (USB-C) ports
>> there are a couple of nice docks which will split out most of the
>> standard old ports. Both Belkin and Plugable make them
>> 
>> https://www.amazon.com/Plugable-Thunderbolt-Compatible-Supports-
>> DisplayPort/dp/B06ZYR66QB <https://www.amazon.com/Plugable-Thunderbolt-
>> Compatible-Supports-DisplayPort/dp/B06ZYR66QB>
>> 
>> https://www.amazon.com/Thunderbolt-Docking-Station-Delivery-Charging/dp/
>> B073JDZGKK/ref=sr_1_8 <https://www.amazon.com/Thunderbolt-Docking-Station-
>> Delivery-Charging/dp/B073JDZGKK/ref=sr_1_8>
>> 
>> I hope that helps someone.
>> 
>> Rick
>> 
>>> On Sep 1, 2017, at 2:11 PM, Bob Sneidar via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>>> 
>>> I've always said, everyone loves standards... their OWN standards. :-)
>>> 
>>> But seriously, if this is FINALLY the last port anyone will ever create
>> or need, well then okay. But I must say, the only people who benefit from
>> this sort of thing are the device manufacturers and peripheral vendors. The
>> end user, very little if any. It ALWAYS ends up costing me more money than
>> just the purchase price of my computer whenever I upgrade.
>>> 
>>> Bob S
>>> 
>> 
>> ___
>> 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


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

Re: [OT] Alternative to Inkscape

2017-10-04 Thread Rick Harrison via use-livecode
Hi Al,

Did you try GIMP?

https://www.gimp.org

Will it do what you want it to do with SVG files?

Hope it helps!

Rick



> On Oct 4, 2017, at 4:30 PM, Alejandro Tejada via use-livecode 
>  wrote:
> 
> Include SVG-Edit and current versions of these editors:
> https://www.sitepoint.com/6-free-web-based-svg-editors-compared/
> 
> I just keep wondering why nobody have forked Inkscape
> and included the most requested feature: a plain simple
> palette that translate page coordinates from bottomleft
> to the topleft of the page.
> 
> For more than 10 years, designers have been asking
> Inkscape developers that they should move the page
> origin from bottomleft to topleft (as svg specification
> requires). In fact, someone posted a palette that
> translate the page origin coordinates from bottomleft
> to topleft (without changing or breaking any other
> internal code) but this was quickly shutdown by
> project maintainers.
> 
> Probably this explains the glacial adoption pace
> of Inkscape among designers and why SVG 2.0
> specification have been stalled for years and face
> the risk of not being approved with all features
> requested (many of them already in use)
> 
> http://libregraphicsworld.org/blog/entry/is-svg-2-really-on-life-support
> 
> Here is the main reason:
> "there is not enough svg content using those svg features"
> 
> While Macromedia and Adobe support pushed Flash content
> presence to an incredible 29% (currently 6% among websites)
> 
> https://www.fastcompany.com/3049920/the-agonizingly-slow-decline-of-adobe-flash-player
> 
> https://w3techs.com/technologies/details/cp-flash/all/all
> 
> SVG is only now that is reaching 4.5%
> https://w3techs.com/technologies/details/im-svg/all/all
> 
> That is what I call "The Reluctant Acceptance of SVG"
> 
> Maybe in the near future,
> 1) Inkscape developers could fulfill with more frequency
> the most common and reasonable requests of their
> own users.
> 2) SVG new features are used more frequently and
> enough content is posted online using those features.
> 3) Better designed tools appear than allows to use these
> new features without having to use so many workarounds
> and acrobatics...
> (for example:
> https://stackoverflow.com/questions/14684846/flattening-svg-matrix-transforms-in-inkscape
> )
> 
> 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


___
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: not really OT: The Coming Software Apocalypse

2017-10-04 Thread Rick Harrison via use-livecode
Hi Lagi,

The Apollo Astronauts left “Laser Reflectors” on the moon so that
we could very accurately measure the distance between the Earth
and the Moon.

If you get the right equipment you too can do this experiment.
The reflectors are still there on the moon right where they left them.

https://en.wikipedia.org/wiki/Lunar_Laser_Ranging_experiment#/media/File:ALSEP_AS14-67-9386.jpg
 


Enjoy,

Rick

P.S. Maybe Astronauts in the far future will be able to write programs on the 
fly with future LiveCode!



> On Oct 3, 2017, at 5:21 PM, Lagi Pittas via use-livecode 
>  wrote:
> 
> Hi,
> 
> I am well up on the argument of secrecy and that article -  falls down in
> the first few paragraphs with the vaccines - you probably haven't heard of
> the whistleblowers - Gus Grissom comes to mind
> 
> http://info.cmsri.org/the-driven-researcher-blog/link-between-vaccines-and-african-american-boys-hidden-by-cdc-says-whistleblower
> http://avoiceforchoice.org/cdcwhistleblower/
> 
> But ignorance here cost lives the Moon Hoax doesn't.
> 
> I'll give you the short reason why it was faked then give you a few links
> you have probably not seen and a few questions - i've seen all the
> "evidence"  most of it is, we've seen the moon rock, or we saw the pictures
> on TV and that's it even Mythbusters used the simplest strawman argument.
> 
> 
> Here are the Astronauts in the post "landing"  press conference
> 
> They are so elated looking at each other to see if tghey are puttijng a
> foot wrong - wait for
> 
> https://www.youtube.com/watch?v=-RcKLAo62Ro
> 
> This is a classic 52 seconds
> https://www.youtube.com/watch?v=xyjppxh2-C0
> 
> Armstrong is asked if he ever saw stars from the surface of the moon...
> Collins answers" I dont remember seeing any". Collins was never on the
> surface of the moonhe was allegedly "orbiting" the moon, it was not his
> question to answer.
> 
> It was basically done because America lost face with SputnK - the Cold war
> was going on - I don't doubt Kennedy believed they could do it when he made
> that speech.
> 
> They could'nt so a "FEW" top people got together - remember this is for
> your country - all the astronauts were military men. You farm it out to
> many companies - so everythingh is on a need to know. You give $40 billion
> dollars - we can't do it but we can fake it for $2 billion thank you very
> much.
> 
> Most of the workers at NASAgenuinely believed it - I sure did and I wasn't
> involved in helping out.
> 
> Now here is the BEST 9 minute video which shows you NASA people *admitting*
> they don't know how they did it in 1969.
> https://www.youtube.com/watch?v=DpPMoIv1lxI=22s
> 
> 
> I have more questions and other anomalies not in here but that's for
> another day.
> 
> 
> This video from 3:22 onwards shows that they have also faked certain
> Shuttle exercises. Here the shuttle is "in space" with a man's face in view
> for about 5 seconds is priceless - Gerry Anderson would be proud
> https://www.youtube.com/watch?v=h9i8tMzxIn0=1=254s=FL0uijsHtSIJz8eE6CrUECIw
> 
> Don't get me wrong they have sent shuttles up in Space (but never higher
> than 400 Miles) , but some of the stuff they say they did with it are
> models - tell me I'm wrong but watch the video first
> 
> 
> If you want my take on the secrecy issue I might expand - "A man convinced
> against his will is of the same opinion still".
> 
> Regards Lagi
> 
> 
> p.s
> 
> If nothing else just listen to the 13 seconds here at 5:43
> 
> https://www.youtube.com/watch?v=DpPMoIv1lxI=22s
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> On 3 October 2017 at 21:17, Bob Sneidar via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> Nice article, but his example of the Snowden revelations actually proves
>> my point.
>> 
>> Bob S
>> 
>> 
>>> On Oct 3, 2017, at 12:20 , Richard Gaskin via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>>> 
>>> Bob Sneidar wrote:
>>> 
 Well then the REAL miracle to the moon launch is how Nasa either
 deceived the thousands of people who worked on the project, and keeps
 them deceived to this day, or else were able to keep all those
 thousands of people from talking or writing a book.
>>> 
>>> Arithmetically unlikely:
>>> 
>>> https://phys.org/news/2016-01-equation-large-scale-
>> conspiracies-quickly-reveal.html
>>> 
>>> --
>>> Richard Gaskin
>>> Fourth World Systems
>>> Software Design and Development for the Desktop, Mobile, and the Web
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to 

Re: Was I hallucinating? Totally OT, perhaps relevant

2017-11-14 Thread Rick Harrison via use-livecode
Hi Colin,

It’s nice to know they have set up a nice way of handling things.

Two questions come to mind though:

1. Can hackers get around the method they are using?

2. Should we really believe that they are doing what they 
   say they are doing, or are they really listening all the 
   time, and feeding us a line to calm our fears?

Just my 2 cents here.  ;-)

Rick

> On Nov 14, 2017, at 10:55 AM, Colin Holgate via use-livecode 
>  wrote:
> 
> I was at Google for meetings last week, some of which was with the Google 
> Home and also Assistant teams. They have the same need as Siri, and I imagine 
> that they solve the problem in the same way. For Google, they are always 
> listening for “ok google”, and Apple are listening for “hey Siri”. It’s only 
> a two second buffer though, that is constantly overwriting itself. If you 
> could steal someone’s device and freeze all electrons in it so you could 
> scrape for sound data, you probably would only get the sound of you picking 
> the person’s pocket.
> 
> If the trigger words are detected, the next bit of sound is uploaded to be 
> analyzed. That happens for all devices within hearing, and online all of the 
> recordings are considered at the same time. The reply is usually sent to the 
> device that was closest to the user at the time. The recording is kept in 
> your history, so you can go back and listen to it to figure out why it might 
> have been misinterpreted. This is the page you can go to listen to yourself:
> 
> https://myactivity.google.com/myactivity?product=29 
> 
> 

___
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: Website scraping - How can I load a 'partial' page?

2017-12-13 Thread Rick Harrison via use-livecode
Hi Roger,

I don’t know who’s webpage is that you are
scraping, but if it is a third party’s webpage
make sure that you are not violating their
terms of agreement or infringing on their
copyright.  You might want to ask for their
permission to do so, to make sure you are
safe and legal.

If it is your own webpage, then feel perfectly
at ease scraping away.

Cheers,

Rick

> On Dec 13, 2017, at 8:39 AM, Roger Eller via use-livecode 
>  wrote:
> 
> I have a webpage that I grab with LiveCode, then parse out what I need.
> The data I keep is within the first 1/4th of the page.
> 
> Rather than loading the entire page into a variable or a browser object,
> how can I load just the portion that I need and then stop the transmission
> instead of wasting the time and bandwidth to load the entire page?
> 
> ~Roger
> ___
> 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: Rant on my favourite topics : LC server with a side-dish of on-rev :-)

2017-11-20 Thread Rick Harrison via use-livecode
Hi Ralph,

It looks to me that they did it this way
because there isn’t any automatic
way to check for a valid license
the same way as the paid version
of LiveCode works. As you say, the
commercial version of LC server 
lacks the GUI which would make
that auto-validation step possible.

A list of the differences between
the community version and the
commercial version would be
useful so users can see what if
anything they are missing by not
having the paid version of LC.
(It might be an incentive for those
who do not yet have a paid version.)

I have to download my new commercial
version and install it.

Thanks,

Rick

> On Nov 20, 2017, at 10:34 AM, Ralph DiMola via use-livecode 
> <use-livecode@lists.runrev.com> wrote:
> 
> There is no license registration for LC server because there is no GUI. You 
> only have the rights to use the commercial server if you have paid version of 
> LC. This way only account holders with the proper license can download the 
> commercial server.
> 
> 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 Rick Harrison via use-livecode
> Sent: Monday, November 20, 2017 10:28 AM
> To: How to use LiveCode
> Cc: Rick Harrison
> Subject: Re: Rant on my favourite topics : LC server with a side-dish of 
> on-rev :-)
> 
> Hi Matthias,
> 
> I have been downloading everything from the downloads page for so long that I 
> hardly ever visit my Livecode account page.  Apparently now there is a 
> separate tab just for server which has a password attached.  Why this appears 
> to be the exception to the rule of getting everything from the downloads page 
> is anyone’s guess.
> 
> Is there any difference between the
> community version and the commercial
> version of server other than the license?
> Where would I find a list of those
> differences if it exists somewhere?
> 
> Thank you for getting back to me!
> 
> Rick
> 
>> On Nov 19, 2017, at 5:05 PM, Matthias Rebbe via use-livecode 
>> <use-livecode@lists.runrev.com> wrote:
>> 
>> Rick,
>> 
>> if you have an Indy or Business license of Livecode , then you should find 
>> the commercial license of LcServer in your Livcode account.
>> 
>> 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
> 
> 
> ___
> 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: Rant on my favourite topics : LC server with a side-dish of on-rev :-)

2017-11-20 Thread Rick Harrison via use-livecode
Hi Ralph & Matthias,

I am well aware of the GPL limitations of
the community version with respect to the
license.  

I never use password protected stacks.
I do see how that could be useful
though.  The encryption functionality is
important too. The tsNet external is also
nice for sending emails although I haven’t
needed that functionality yet.

If there are other differences it would be
nice to know where that list or document
resides, and it should be in plain sight
somewhere.

Thank you for the clarifications!

Rick


> On Nov 20, 2017, at 11:53 AM, Matthias Rebbe via use-livecode 
>  wrote:
> 
> Rick,
> 
> the commercial version of LcServer supports encryption, the use of password 
> protected stacks and you can use the tsNet external with it, but you have to 
> install these externals manually, because the build process currently doesn´t 
> include them into to builds.
> Another difference is you do not require your code be distributed under GPL.
> But with community version of LcServer you have to do so "in case your server 
> code is an integral part of making your LC based software work".
> See LiveCode open source questions at 
> https://livecode.com/resources/support/ask-a-question/ 
>  
>  >
> 
> Maybe there are also other differences, but the above are the ones i know.
> 
> 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: Rant on my favourite topics : LC server with a side-dish of on-rev :-)

2017-11-19 Thread Rick Harrison via use-livecode
Hi Matthias,

I thought there was only the Community Version
of LiveCode Server available.  Where would I
be able to get the Commercial Version, because
if there is one, I am indeed entitled to use it!

Thanks,

Rick


> On Nov 19, 2017, at 1:08 PM, Matthias Rebbe via use-livecode 
>  wrote:
> 
> Just in case someone is interested.
> HostM has installed the community edition of LcServer. But  for customers who 
> can proof their purchase/subscription of the commercial version, HostM will 
> install a commercial version for the whole account. Commercial version is 
> neede if you want to use password protected stacks with LcServer.

___
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: Rant on my favourite topics : LC server with a side-dish of on-rev :-)

2017-11-20 Thread Rick Harrison via use-livecode
Hi Matthias,

I have been downloading everything from the
downloads page for so long that I hardly ever
visit my Livecode account page.  Apparently
now there is a separate tab just for server
which has a password attached.  Why this
appears to be the exception to the rule of
getting everything from the downloads page
is anyone’s guess.

Is there any difference between the
community version and the commercial
version of server other than the license?
Where would I find a list of those
differences if it exists somewhere?

Thank you for getting back to me!

Rick

> On Nov 19, 2017, at 5:05 PM, Matthias Rebbe via use-livecode 
>  wrote:
> 
> Rick,
> 
> if you have an Indy or Business license of Livecode , then you should find 
> the commercial license of LcServer in your Livcode account.
> 
> 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: sync LC applications

2017-11-16 Thread Rick Harrison via use-livecode
Hi Paolo and Jim,

I always turn off all notifications on all of my devices.
I hate notifications because they consume my device
batteries with their constant polling.

The image should only be changed in the application
when the user uses that application.  Only check for
image updates at the website when they try to use
the application.

Good luck,

Rick

> On Nov 16, 2017, at 3:13 PM, Jim Lambert via use-livecode 
>  wrote:
> 
> 
> 
>> Paolo wrote:
> 
>> what?s the best way to sync several  LC applications installed on many 
>> different devices?
>> For example, consider having 100 smartphones connected to internet running 
>> the same LC application, how can I send a signal/command so that an image 
>> shows up  at the same time in every smatphone?
>> AFAIK a solution is to set up a text file in a web server and let the app 
>> installed in each device to check (every second)  if any change occour , but 
>> this solution is not efficient.
>> Any idea?
> 
> Perhaps sockets or pushing app notifications.
> 
> Jim Lambert
> 
> ___
> 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: The coming of SVG

2017-11-03 Thread Rick Harrison via use-livecode
I like “vectorImage” too!

“Picture" has been used for images for a long time,
and we don’t want to add more confusion for users.

Just my 2 cents..

Rick

> On Nov 3, 2017, at 2:23 PM, J. Landman Gay via use-livecode 
>  wrote:
> 
> Or maybe "vectorImage".

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

Re: [OT] Been there, done that

2017-11-06 Thread Rick Harrison via use-livecode
Ha ah ha ha ha ha!  (I guess typing LOL would have been easier.) 

Thanks for the laugh!

Rick

> On Nov 7, 2017, at 12:22 AM, J. Landman Gay via use-livecode 
>  wrote:
> 
> To everyone who has ever done tech support:
> 
> https://imgs.xkcd.com/comics/thermostat.png
> 


___
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: using LC as an emulator

2017-11-07 Thread Rick Harrison via use-livecode
I used to work on HP-3000s in HP BASIC, COBOL, and FORTRAN.
What a pain in the you know what!

Rick


> On Nov 7, 2017, at 2:48 PM, Jerry Jensen via use-livecode 
>  wrote:
> 
> I too have spent way too much of my life in HP BASIC. IIRC, it is tokenized 
> before storing (around here called byte codes). One approach might be to 
> figure a way to get at the HPB tokens and emulate each of them in LC. Also 
> IIRC HPB uses a pretty simple symbol table for variables and such. 
> 
> Do you know about HTBasic which emulated HPBasic under DOS (I think)? The 
> company was Trans-Era. I have no idea if they are still around.
> 
> .Jerry
> 
>> On Nov 7, 2017, at 8:42 AM, Mike Kerner via use-livecode 
>>  wrote:
>> 
>> No, the ERP is written in HP BASIC, so I would want to emulate the
>> language, given the breadth and number of programs.  I was thinking about
>> writing wrappers for the various commands and functions of the language,
>> but it won't be easy, no matter what I do.
> 
> 
> ___
> 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: using LC as an emulator

2017-11-07 Thread Rick Harrison via use-livecode
Hi Mike,

It sounds like a lot of work however you do it.
Is creating an emulator really going to be easier
than doing a whole system migration to LiveCode
or some other language?

Good luck with whatever you do!

Rick

> On Nov 7, 2017, at 1:57 PM, Mike Kerner via use-livecode 
>  wrote:
> 
> I'll email you offline.
> 
> On Tue, Nov 7, 2017 at 1:36 PM, Mark Waddingham via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> On 2017-11-07 17:42, Mike Kerner via use-livecode wrote:
>> 
>>> No, the ERP is written in HP BASIC, so I would want to emulate the
>>> language, given the breadth and number of programs.  I was thinking about
>>> writing wrappers for the various commands and functions of the language,
>>> but it won't be easy, no matter what I do.
>>> 
>> 
>> In this case 'ease' is probably related to the breadth of the language and
>> how complex individual commands/functions are - if you have a good
>> architecture for the emulator, most of the work will be in recreating that
>> functionality, rather than the parsing/execution mechanism.
>> 
>> There are also binary resources that I would have to have recreated such as
>>> forms and dialogs, and I would have to take the db schemas and convert
>>> them
>>> to a modern database, which seems like the least work of this entire silly
>>> idea.
>>> 
>> 
>> From what you've said it doesn't sound like a silly idea at all.
>> 
>> Would it be less work to rewrite it?  I doubt it.  Would it be less effort
>>> to cough up for an off-the-self ERP package?  Possibly, but the one piece
>>> that is extremely valuable is the payroll piece, because it is so
>>> expensive
>>> to hire a service or to pay for someone else's payroll software.  For
>>> example, look at the time and attendance piece.  I was able to write a
>>> timeclock app that runs on a tablet for a tiny fraction of what it would
>>> cost to replace the existing timeclocks.  Timekeeping software is also
>>> crazy expensive, and payroll is akin to highway robbery.
>>> 
>> 
>> If it is a system you've been maintaining for 30 years, then I suspect you
>> are correct - it won't be less work to rewrite as you'll spend a lot of
>> time making things work as they did before... After all, I suspect that
>> after 30 years working on it even you can't remember where all the bodies
>> are buried!
>> 
>> (I certainly find zombies popping up now and again to bite me in the
>> LiveCode engine from things I've done in the past!)
>> 
>> Would it be easier to try to build an emulator in Xojo?  I've thought about
>>> it, but before I add yet another development tool to the mix, here, I
>>> thought I'd chase this idea, first.
>>> 
>> 
>> Well I can certainly say that LiveCode is perfectly capable, and indeed
>> very good for writing compilers/interpreters because of the way its arrays
>> work (copy-on-write in particular), and the ability to pass references to
>> array elements to functions. (I've writing a few such things in the last 12
>> months - the SVG compiler being the most recent example).
>> 
>> I'd generally recommend using a LiveCode array to represent the source
>> structure (after parsing - which will be a tree), and then write a
>> recursive evaluator for it, threading through the node which is being
>> executed and a mutable context array which contains all the current
>> execution state:
>> 
>>  on langExecute @xContext, pNode
>>- dispatch to do what you need to do for node, using state from
>> xContext
>>  end langExecute
>> 
>> If you can figure out how to map the source language to (essentially) a
>> sequence of command invocations, then you can write the each piece of
>> functionality provided by the language (i.e. the bits other than variable
>> manipulations and control transfer) as a single handler which takes the
>> xContext parameter.
>> 
>> Okay, so all the above is a bit vague - but it is just to give an idea of
>> how I've found the best way to structure such things in LiveCode.
>> 
>> Warmest Regards,
>> 
>> P.S. Do you have the online links for the reference manuals? I'm
>> intrigued...
>> 
>> 
>> --
>> Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
>> LiveCode: Everyone can create apps
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
> 
> 
> 
> -- 
> 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:
> 

Re: LC Server style survey: co-mingle code w/HTML?

2017-12-08 Thread Rick Harrison via use-livecode
Hi Richard,

I think you may have stated your question for us in the wrong way.

Instead of asking us is we co-mingle our code with HTML you
should have asked us if we had any interest in doing things
differently by using LC Script from the desktop to work with
web pages.

I think we have found ourselves forced into mingling our code
with the newer LC Server. That doesn’t mean that we prefer it,
or that we wouldn’t be interested in looking at some tools which
use a different method with your older CGI method.

If you want to share your tools with us I am sure the community
would like to take a look at them.

Cheers,

Rick


> I appreciate the interest, but it doesn't seem using these tools would be
> possible for most folks.
> 
> Being able to run client and server code in the IDE would require using
> methods that are compatible with LC Script on the desktop.  Since we have
> no way of parsing/executing LC Server code in the desktop, and too many
> people rely on the code-embedded-in-HTML way, my tools are of no use to
> them.
> 
> For the first dozen years of this engine, CGIs used the same engine as
> everything else.  Since LC Server premiered, most devs now have a workflow
> that is incompatible with the desktop engine.
> 
> I've been using standalones for CGIs for many years, and while I know a
> few others who do this, there aren't many.
> 
> I recently came across a project which uses LC Server but only to launch
> script libraries, so effectively it's 99% compatible with LC Script, using
> only a couple lines of LC Server to launch the libraries.  This got me
> wondering how many others do things like that, as opposed to relying on
> features specific to LC Server throughout their app which have no means of
> executing in the IDE.
> 
> At this point, it seems most people are using LC Server in ways that are
> not compatible with the desktop engine.  I have nothing that can help with
> that.
> 
> --
> Richard Gaskin
> Fourth World Systems
> Software Design and Development for the Desktop, Mobile, and the Web

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

Re: LC Server style survey: co-mingle code w/HTML?

2017-12-05 Thread Rick Harrison via use-livecode
Hi Richard,

I regularly mix both .lc scripts and HTML.

I liked the original LC Web-Plugin with the exception
of the very scary download message that was forced
upon us all without any option to tone it down a bit.
Once the mothership decided to abandon it, it was
doomed.  It was still great for in-house work though
even in that state for a time.

Then I was disappointed when the LC server came out
that I couldn’t use Desktop LC code in the server the
same way that I used to be able to do with the
LC Web-Plugin.

I find now that I can mix both .lc scripts and HTML
in the same web format file.  It can be a pain sometimes
changing from double quotes to single quotes. 
Sometimes I have to build up my database calls
with more statements, and concatenations than
I’d like to, but at least it all works now.

CMS are interesting, but I usually find that whatever
it is that I want to do, the proper add-on I’m looking
for just doesn’t exist as I tend to want to do things that
aren’t normal everyday kinds of applications that
everyone else wants to do.  Every job I do tends to
ends up being a custom one.

I thought all the hype about Wordpress and LC
working together sounded interesting.  Then
On-Rev wrote us that note saying that we were
the ones that would be held responsible for
ensuring that Wordpress was always up to 
date on our accounts or we could lose our
accounts.  (I thought maintaining up to date
versions was supposed to be the job of
On-Rev as good care takers.)  Oh well, I was
glad I had decided not to go that route so it
wasn’t a problem for me at all.

I just love the way new things are announced
as the latest and greatest, and then a few
months or a couple years later abandoned.

The change over time of everything in the 
computer world is way too fast, and as a 
result unstable.  That is why we don’t have
true artificial intelligence yet.  Every time when
it looks like some breakthrough might occur,
someone decides it’s time that everyone go
through a forced update that screws up all
one's carefully crafted code.  They break it!

Have you noticed now many companies are
saying they have developed an AI that does
task XYZ.  What they have really done is
write a program that is better than the
previous version of what they made.  That
is not AI.  I suppose perhaps they are calling
it that to either get more funding, marketing
attention, or both.

If artificial intelligence ever did evolve it would
have the same problem.  Update……Update..
Update..Update.Upda.Up.U.ding.ding..g..
Godlike thinking power achieved..ding update..
No time to spend doing anything except..update ding!

Oh sorry, I guess you didn’t ask for a rant. Update ding! ;-)

Cheers,

Rick


> On Dec 5, 2017, at 1:18 PM, Richard Gaskin via use-livecode 
>  wrote:
> 
> I have some tools I developed for server apps, which allow me to develop and 
> test both client and server within the same local LC IDE instance. As you can 
> imagine, this has improved development efficiency by orders of magnitude.
> 
> It's much a much more xTalk-like way of working, and once you use it having 
> to be tied to a server for every little test feels like building a ship in a 
> bottle with tweezers while wearing a blindfold.
> 
> When I started making these tools I was using standalones exclusively for 
> server work, partly because it reflects my habits gained from using LC as a 
> CGI for many years before LC Server existed, and partly because I have no 
> need to co-mingle code in HTML like PHP does, except a few cases where the 
> merge function works quite nicely.
> 
> Thinking about this more recently, it seems these tools need not be limited 
> to server deployments using standalones, and may be modified to provide the 
> same server emulation for deployments that will use LC Server.
> 
> However, because the desktop version of LC has no means of executing LC 
> Server scripts (due to the HTML wrapped around any code), the ability to 
> enjoy such a fluid workflow is limited to those server apps where the .lc 
> scripts contain only directives to load standard LC Script libraries.
> 
> That limitation fits my own work, including current work for one client. But 
> does it fit yours?
> 
> How many of you using LC Server rely on its PHP-like model that encourages 
> mixing HTML with LC code?
> 
> Or maybe the better question might be:
> 
> How many of you have server systems that already separate HTML from server 
> code like most non-PHP solutions do, or could affordably transition to that 
> model if it could simplify your development workflow significantly?
> 
> Side question for the dev team if they see this:
> 
> Would it be reasonable/affordable to add some means of enhancing desktop LC 
> so that it can at least parse and attempt to execute LC scripts embedded in 
> HTML?  I can emulate environment variables and the like, but the 
> incompatibility between LC and .lc has been a real development bottleneck.
> 
> -- 

Re: LC Server style survey: co-mingle code w/HTML?

2017-12-06 Thread Rick Harrison via use-livecode
Hi Matthias,

When support tells one that he/she is now responsible
for keeping Wordpress up to date or face the loss of
one’s account, they should at least point out what you
have shared with us.

> And you if install Wordpress through Softacoulus (which is included in 
> On-Rev), you can enable auto upgrade in Softacoulus in  the config area for 
> your WP installation.
> 
> So regardless how you have installed Wordpress, you can enable auto upgrade.

No one who has not yet installed Wordpress would know
about the automatic upgrade capability.  It is also highly
unlikely that any user would be willing to log into his/her
account every hour of every day just to make sure that
Wordpress is up to date so they don’t lose their account.

What version of LC is currently installed on On-Rev?
It was pretty old the last time I checked.  Perhaps an
option to easily upgrade to the newest version of LC
on On-Rev should be offered?

A lot of people paid a bunch of money for On-Rev,
and then when support at Run-Rev discovered it
was more work than they bargained for, they
outsourced it to other companies.  The first time
it was outsourced, the result wasn’t good.  Things
are better than they were, but there is still room
for improvement.  Whenever a company accepts 
people’s money, that company has an obligation to 
provide better than average service if they want
to stay in business.

If it were up to me to run On-Rev, I would make 
sure that it was always up to date, or offered
easy ways to keep everything up to date.  You’d
never hear me threaten anyone to take away their
account if they didn’t keep some piece of software
up to date.  If that software poses a security risk,
as a good steward, I would take care of that issue
for my clients so they wouldn’t be at risk.

Just my 2 cents for the day.

Thank you for your helpful information about
Wordpress etc.

Cheers,

Rick





> On Dec 6, 2017, at 6:33 AM, Matthias Rebbe via use-livecode 
> <use-livecode@lists.runrev.com> wrote:
> 
> 
>> Am 06.12.2017 um 07:14 schrieb Rick Harrison via use-livecode 
>> <use-livecode@lists.runrev.com <mailto:use-livecode@lists.runrev.com>>:
>> Then On-Rev wrote us that note saying that we were
>> the ones that would be held responsible for
>> ensuring that Wordpress was always up to 
>> date on our accounts or we could lose our
>> accounts.  (I thought maintaining up to date
>> versions was supposed to be the job of
>> On-Rev as good care takers.)  
> 
> If you install Wordpress manually from a Zip file then you are responsible 
> for keeping that version up to date. Either by manually updates or by 
> automatic updates.
> You can enable that in wp-config.php
> 
> And you if install Wordpress through Softacoulus (which is included in 
> On-Rev), you can enable auto upgrade in Softacoulus in  the config area for 
> your WP installation.
> 
> So regardless how you have installed Wordpress, you can enable auto upgrade.
> 
> Why should On-Rev support do this for you?
> 
> 
> Matthias Rebbe
> Tel +49 5741 31
> ‌https://matthiasrebbe.eu <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


___
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: LC Server style survey: co-mingle code w/HTML?

2017-12-06 Thread Rick Harrison via use-livecode
Hi Richard,

> You use Wordpress. 

After exploring Wordpress a couple of years ago I decided not use Wordpress.
I do not use Wordpress.

> I use Drupal.  Someone else uses Joomla.  Then there's the vast range of 
> other things people can add to their account.


Yes, many people use different tools as we all do.

> Web hosting is a very difficult business, which is why we've seen so much 
> consolidation over the years.


No one said Web hosting was an easy business,
but it needs to be become better.  No company should
threaten it’s users to do XYZ upgrade or suffer the
loss of their accounts.  If it is that important, then the
company should make the upgrade process very
simple or automatic, or not offer that particular piece
of software if it is so vulnerable that it threatens the
security of the entire system.

I objected to the fact that Run-Rev hyped Wordpress to
it’s On-Rev users, and after encouraging them to 
snap it up, then later slapped them. If you
don’t monitor Wordpress closely to be sure it is
always up to date, then you lose your account!
(That’s just not a good way to conduct business,
and I’m glad that I personally didn’t fall into that trap.)

When On-Rev was first introduced, the impression given
about the service to users was that it was indeed going to 
be a highly managed service.  That has not turned out to
be the case clearly as you and Simon have pointed out.
(I think a bunch of people may have been disappointed to learn
the truth of that matter as it has played out over the years.)

The result for me as a user of On-Rev is that I only use it
for small websites that I don’t have a large investment of
money, time or energy in.  It has proven to be an
undependable platform for me. Now I run all of my
own important servers, which are dependable. 
I upgrade them, and keep them secure at all times.

Thanks for the lively discussion!

Cheers,

Rick








> On Dec 6, 2017, at 2:32 PM, Richard Gaskin via use-livecode 
>  wrote:
> 
> You use Wordpress.  I use Drupal.  Someone else uses Joomla.  Then there's 
> the vast range of other things people can add to their account.
> 
> Where does a hosting company draw the line with what they can afford to 
> directly support by managing what goes on inside of 200 accounts per machine?
> 
> Or do they take the safest option and disallow everything other than a small 
> subset of packages they directly manage?
> 
> Web hosting is a very difficult business, which is why we've seen so much 
> consolidation over the years.
> 
> The most successful companies (the ones that survived the shakeout of the 
> last decade and are still around to grow) tend to work as Simon described: 
> unmanaged services require a responsibility from the user, managed services 
> take care of those things but at a much higher price.

___
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: Anything LiveCode Can Learn From GO

2018-06-10 Thread Rick Harrison via use-livecode
Hi Sannyasin,

I found a quick small snippet of some “Hello World” GO code and have listed it 
below.

I much prefer LiveCode syntax over this stuff any day.
Stick with LiveCode, it’s just better!

Just my 2 cents for the day.

Cheers,

Rick 

Add a test to the stringutil package by creating the 
file$GOPATH/src/github.com/user/stringutil/reverse_test.go containing the 
following Go code.

package stringutil

import "testing"

func TestReverse(t *testing.T) {
cases := []struct {
in, want string
}{
{"Hello, world", "dlrow ,olleH"},
{"Hello, 世界", "界世 ,olleH"},
{"", ""},
}
for _, c := range cases {
got := Reverse(c.in)
if got != c.want {
t.Errorf("Reverse(%q) == %q, want %q", c.in, got, 
c.want)
}
}
}
Then run the test with go test:

$ go test github.com/user/stringutil
ok  github.com/user/stringutil 0.165s


> On Jun 9, 2018, at 10:55 PM, Sannyasin Brahmanathaswami via use-livecode 
>  wrote:
> 
> https://medium.com/exploring-code/why-should-you-learn-go-f607681fad65
> 
> 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: Must have flexible row height for Datagrid Table

2018-06-19 Thread Rick Harrison via use-livecode
Hi Tom,

I haven’t done much of anything with the datagrid, but I am
wondering what happens if one of the cells in your row
has an image in it? Will the row resize to be able to show
the minimum height of the image?  If so, that might be
a work around for you.

Good luck,

Rick

> On Jun 18, 2018, at 8:39 PM, Tom Glod via use-livecode 
>  wrote:
> 
> Hi everyone
> 
> I'm willing to go into the weeds and work with the library code.. but I
> really need flexible row heights for a table datagrid.  Has anyone tried
> making that modification before?  Any last words of wisdom before I embark
> on this journey? Trevor? Mark?
> 
> Thanks,
> 
> Tom
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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

OT: Microsoft wants to buy Github!

2018-06-02 Thread Rick Harrison via use-livecode
Hi there,

I thought you might all want to keep your eyes on this one.

https://fossbytes.com/microsoft-github-aquisition-report/ 


Is it time we start pulling software from Github to let them
know we are not in favor of this acquisition?

How will this effect LiveCode?

What do you think? 

Just my 2 cents for the day.

Cheers,

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


Re: OT: Microsoft wants to buy Github!

2018-06-02 Thread Rick Harrison via use-livecode
Hi Richard,

I like the look of GitLab!  It’s very nice and
I think it could be a great replacement.

Thank you for that suggestion!

Rick

> On Jun 2, 2018, at 8:09 PM, Richard Gaskin via use-livecode 
>  wrote:
> 
> Some of my friends in the open source world are suggesting GitLab:
> https://about.gitlab.com/ 
> 
> This move is only partially motivated by the Microsoft bid, and mostly 
> because GitLab itself is open source while GitHub is not, something that's 
> important to FOSS advocates.

___
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: Tessellated hexagonal grid?

2018-06-25 Thread Rick Harrison via use-livecode
Hi David,

The old “Traveller” space game used to use hexes a lot.
Now that computers are so powerful you can do almost
anything.

Here’s an example using hexes.  Try zooming in and out.
Play around with the eye candy settings etc. It’s quite
impressive!

https://travellermap.com/?options=25591=45.2578125 


Cheers,

Rick

> On Jun 25, 2018, at 5:46 AM, David V Glasgow via use-livecode 
>  wrote:
> 
> Quite a few old school (and a few newer) games use a tessellated hexagonal 
> grid.  Remember Railway Rivals, anyone?
> 
> I just started to play around with the idea of a grid using Livecode 
> polygons.  Specifically, a map that can grow organically by sprouting  hexes 
> at the edges.  I was surprised and disappointed to see how tricky it looks to 
> be to do 'on the fly’ i.e. creating and then aligning hexes.
> 
> 
> Has anyone else played around with this?  Any advice?  It seems to me that 
> the line of least resistance is to have a huge grid of ready tessellated 
> invisible hexes which can be shown as required.
> 
> 
> Best Wishes,
> David Glasgow
> 
> 
> ___
> 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: Tessellated hexagonal grid?

2018-06-27 Thread Rick Harrison via use-livecode
Great resource and read.

Thanks!

Rick

> On Jun 27, 2018, at 5:30 AM, hh via use-livecode 
>  wrote:
> 
> Here a rather complete guide to the "theory" with a link
> to implementation guides for several programming languages,
> especially, close to LC, JavaScript.
> 
> https://www.redblobgames.com/grids/hexagons/
> 
> 
> 
> ___
> 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: Grabbing a widget

2018-06-27 Thread Rick Harrison via use-livecode
It sounds more like "Fly Paper”!   You did grab onto it after all.

> On Jun 27, 2018, at 4:34 PM, Klaus major-k via use-livecode 
>  wrote:
> 
>> I think you should make it into a game and call it a feature.
> 
> If I'd make a game from it I'd rather call it "Sticky Wicky" or something! :-D
> 
> 
> Best
> 
> Klaus
> --
> Klaus Major

___
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: Voice Comparison in LiveCode?

2017-12-27 Thread Rick Harrison via use-livecode
Hi Peter,

What you are trying to do is extremely complex.

Each person’s voice print is unique to that person.
The waveform of one person pronouncing a
spoken phrase correctly could be quite different
from how someone else’s waveform looks when
spoken correctly, due to overtone harmonics,
voice pitch, the speed at which the user is
speaking etc.  

Think about dictation software, and about how 
it can still be like having a stupid secretary
which misses 5% or more of the words spoken.

It is a voice recognition problem which requires
a lot of “fuzzy logic” to get it right.  Companies
have spent millions of dollars, and tens of
thousands of hours developing these tools.

You need to find a codebase for this that
has already been developed, and that hopefully
is either open-source, (good luck with that one),
or you will have to license it from some company
for a steep price.  It will most probably also be 
a large program, will require a lot of CPU
resources, and memory to run on a device.

Good luck, and let us know if you find a good
solution!

Rick


> On Dec 27, 2017, at 7:16 AM, Peter Reid via use-livecode 
>  wrote:
> 
> i'm developing an app for cheap Android tablets (e.g. Amazon Fire 7in) that 
> allows a user to practice speaking a set of words.  The app plays a sample of 
> a word and the user then tries to say the same word.  So far the app can play 
> sample words and capture the user's attempts for the same words.  The sample 
> words and user attempts are uncompressed WAV files.
> 
> I'm trying to find the code to do the comparison of 2 WAV files.  Ideally, 
> the code will be in the following formats (best first):
> 
> 1. LiveCode
> 2. Pseudocode
> 3. Other code (Python, Java, C++ etc.)
> 4. Academic papers
> 
> I'm considering 2 general methods:
> 
> a. Compare 2 voice clips directly
> b. Convert 2 voice clips to text (using voice-to-text) and then compare the 
> words in text format
> 
> Note that Ali Lloyd from the LiveCode team has developed various things to 
> help.  However I've hit problems as follows:
> 
> a. Ali has wrapped a standard Android sound library that compares 2 WAV files 
> and gives a percentage match. However the comparison is either far too 
> forgiving or far too strict, i.e. highly unreliable.
> 
> b. Ali has wrapped a standard Android voice-to-text library which works well 
> with the devices he's tried it on.  However, the Amazon tablets do not 
> support this Android library!
> 
> Given the two developments from Ali both relied on preformed blackbox code 
> (Android Java libraries), i may have to implement a comparison algorithm from 
> scratch. A solution that's completely in LiveCode would have several benefits:
> 
> i. it may work!
> ii. it may work cross-platform
> iii. it may be understandable!
> 
> General reading around this subject produces recommendations such as using 
> FFTs (Fast Fourier Transforms), MFCCs (Mel Frequency Cepstral Coefficient), 
> etc. but I can't find anything that gives an end-to-end method, from sound in 
> to comparative score out!
> 
> Any help with this would be gratefully received!
> 
> 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: LC Server - MySQL - update about 2000 rows/records of a table

2017-12-29 Thread Rick Harrison via use-livecode
Hi Matthias,

Are there going to be users on your system at the time of the update?
Are you locking the record or records before your update, and then
unlocking them?

You should do a test with the repeat loop to see how long the process takes.
If it is depriving your users of the database for too long you may want to
think of a way which will impact their use the least.  Perhaps picking a
time of day when your system is getting the least amount of traffic
would be best.

Hope this helps.

Rick

> On Dec 29, 2017, at 3:53 PM, Matthias Rebbe via use-livecode 
>  wrote:
> 
> Hi,
> 
> i need to update regularly about 2000 rows/records of a MySQL table with 
> Livecode Server.
> 
> What is better?
> Executing the 2000 update commands in one take using revexecuteSQL
> or should i execute one update command after each other within a repeat loop?
> 
> What do you think?
> 
> 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


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


Re: Livecode.com server down

2018-02-14 Thread Rick Harrison via use-livecode
Hi Sean,

I have gone back to using the manual method
of activating LC for that very reason.

You may want to do this in the near future.

LC server downtime should never impact
user productivity.

Just my 2 cents for the day.

Cheers,

Rick



> On Feb 13, 2018, at 11:02 PM, Sean Cole (Pi) via use-livecode 
>  wrote:
> 
> Hi all,
> 
> Just tried activating the latest version of LC but the server is apparently
> down. Needed to urgently create an iOS standalone for XCode 9.2 but stopped
> in my tracks. The downloads page and the whole livecode.com 
>  site is not
> responding. Sigh. Now need to explain this to my client.
> 
> Sean Cole
> *Pi Digital Productions Ltd*

___
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: "Aphasia"

2017-12-28 Thread Rick Harrison via use-livecode
Hi Peter,

Sorry to hear about your friend’s grandmother’s aphasia problem.

While you are taking on a noble endeavor here with your app,
I would suggest doing a trial run with your software first without
the waveform comparison with your friend’s grandmother.

Instead of having the computer do the comparison, have a human
like you, sit in the room, and as you listen to what she says, type in
a score with your iPad or some other device, give it a - bing 80% etc.
Send that information to the other device that she is looking at so
it all appears as though the computer was doing all of the processing.
(Mimic that everything works as you would want it to perform.)

See how she does with your test with her.  Give her a few trial
runs and see if she improves at all or not.  (Score each trial.)

If it works well, and you see a great improvement, then perhaps
you might be onto something.  Perhaps in your second test you
can do it more remotely so that your presence is not detected
in the room.  (The presence of some person in the room paying
attention to her may have been the motivator for the improvement,
and you need to be able to rule it out.)

Basically you are trying to have your app take the place of
a speech therapist.  If she doesn’t improve with the app
functioning as you envision it, then you will have saved
yourself a lot of time and aggravation.  You will have also
learned something in the process which might help you 
in the future with such apps.

Good luck!

Rick


> On Dec 27, 2017, at 7:26 PM, Peter Reid via use-livecode 
>  wrote:
> 
> Hi Marc, Paul, Phil, Rick and Richmond
> 
> Thanks for your various thoughts.
> 
> To put a bit more flesh on this, here's what I'm developing and why...
> 
> In the first instance I'm doing this development for a friend who's 
> grandmother suffers from aphasia (saying completely the wrong word).  The 
> idea is that her family can put together sets of words where each word is 
> spoken by the app whilst displaying a relevant picture and optionally a short 
> video clip illustrating the correct mouth shape when saying the word.  The 
> app displays the word in a very large font with a picture, then the app says 
> the word (with the option to see a mouth shape video clip).  The user 
> responds by trying to say the same word and (the thing I can't do yet!) the 
> app gives the user a percentage score that represents how closely the user 
> matched the sample word. If the user's score is above a variable threshold, 
> the user sees a smiley face, otherwise a sad face!
> 
> I tried contacting Mark Smith as suggested by Paul but his email address 
> m...@maseurope.net no longer works.
> 
> So far I have everything working apart from the comparison of 2 WAV files, in 
> particular the following is working:
> 
> - the app checks for the presence of a micro SD card as the source of a 
> collection of word packs
> - a word pack consists of a collection of words in sound (WAV) and picture 
> (JPG) form, optionally with supporting video clips (MP4)
> - the app lets the user select a word pack at start up and loads the pack 
> into RW file space
> - the user taps a large arrow icon to go forwards/backwards through the 
> chosen list of words
> - for each word, the word is displayed in a large font at the top of the 
> landscape screen, with its associated picture occupying the lower half of the 
> screen
> - as the word is displayed, it is spoken
> - the user can tap a microphone icon and record their attempt at the word
> - currently I simulate the comparison of the 2 WAV files
> - the app gives a percentage score and displays a smiley or sad face 
> accordingly
> 
> To be honest, my main aim is to help a friend.  At this stage I'm not looking 
> beyond this, so licensing, etc. is not on the horizon at the moment.
> 
> Thanks again
> 
> 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: Aphasia

2017-12-28 Thread Rick Harrison via use-livecode
Hi Peter,

Have you already looked at all of the iOS Speech Therapy
apps in the Apple App Store to see if any of them do what 
you are trying to accomplish?  There are bunch of them out 
there!

Hope it helps!

Rick

___
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: Uninstaller question

2018-01-02 Thread Rick Harrison via use-livecode
Hi Graham,

Most applications on the Mac do not have uninstaller as
they are usually very easy to uninstall by deleting the
application.  Most users are smart enough to know they
have to delete any aliases in the dock.  They usually know
that the prefs file for the application should be deleted
as well if they run into problems.

Many times a good support webpage with clear instructions
on how to completely delete the app and how to install
the new version correctly is all that is needed.  You can
also remind users how to use the “Find” File menu option
in the Finder to look for your rogue versions if you feel
it is necessary. 

You can always tag your files with some information which
will always be unique to your program.  If you use the
“Find” File menu option, and then click on options you
will find a whole list of potential meta-data fields you
could exploit to create your unique program profile.

Never recommend Mac Keeper or Mac Cleaner as they
are considered to be Malware/Spyware/Annoyance-ware
and are difficult for some users to eradicate.

Good luck!

Rick






> On Jan 2, 2018, at 6:00 AM, Graham Samuel via use-livecode 
>  wrote:
> 
> I’m developing a very simple uninstaller for a Mac app. I have an installer, 
> thanks to DropDMG. 
> 
> The uninstallation process isn’t difficult - it’s just a matter of deleting 
> all the involved files (some are slightly tricky to find, like dock aliases, 
> but I guess there’s a way around that). But there’s one issue that I’m unsure 
> about: what to do if the user has not obeyed the installer's instructions to 
> place the app in the Applications folder, or has maybe got a beta copy that 
> wasn’t installed using the installer, or has made a ‘spare’ copy somewhere on 
> their hard disk which I don’t know about. I can’t see any way to detect these 
> ‘rogue’ copies - can anyone else think of one? I know there are some big 
> hitters in this area like CleanMyMac that claim to be able to find everything 
> to do with an installed app, but I am not that ambitious - I just don’t want 
> to miss anything obvious.
> 
> Any help would be appreciated.
> 
> Graham
> 
> PS When I crack this, I’ll have to do the same thing for a PC version of the 
> app. But first things first.
> ___
> 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

  1   2   3   4   5   >