Re: LC Global - my experience

2017-06-19 Thread james--- via use-livecode
I must admit it did turn out better than I was expecting.
The prerecording of the demos/lessons/walk throughs is an excellent idea.
Now if it is only taken to the next step.
1. Have a script.
2. Use the script
3. Use a proper microphone (headset one will do)
4. Edit the thing to remove superfluous activity (like scrolling back and 
forwards, swapping "screens" to find something etc.)
5. LC to buy Heather a proper webcam or whatever so that her view (well, our 
view of her) is at eye level.
6 and finally, use the script that you wrote for your lesson/demo/walk through 
;-)

James



___
use-livecode mailing list
use-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: Preference for Keeping Saved Empty Button Scripts Empty

2017-06-19 Thread Sannyasin Brahmanathaswami via use-livecode
ha… that's a simple hack… I might use 

# 

instead… though these all start showing up in PB as have in a 1 line script.. 
which I guess is server explanatory.

panos wrote me back today say he thinks the default behavior is good for 
newbies. which it probably is.

Theoretically the IDE *could* use some AI on this

a) It must know if the object did not exist before
b) if so, insert the script
c) if not (i.e the object existed before) then don’t insert a script.

am I being too simplistic?

Anyway… back to work… I now have a control with multiple objects. It does have 
it's own on resizecontrol script, all of which refer to "me" and the card rect… 
all the rest of the script are external… that's just "so cool" all these years 
my code was "all over the place" an now, slowing we are able to build a rather 
large framework and still have it be comprehensible… awesome.  We are  bearing 
down now… hope to have V1 in the store by July 1-15

BR
 

On 6/19/17, 9:49 AM, "use-livecode on behalf of J. Landman Gay via 
use-livecode"  wrote:

I sometimes just replace the default entry with a single space and save 
it that way. Then it doesn't ask me again.

I wouldn't mind a preference to turn off the default scripts.

___
use-livecode mailing list
use-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 Global - my experience

2017-06-19 Thread james--- via use-livecode
Roger wrote:
> Although you still have to wait until the very end of the webinarjam (not
> the YouTube link), you can select and copy the chat comments.  Yes, they
> are actual TEXT, not part of the video.

Cool, thanks for that.

___
use-livecode mailing list
use-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: Preference for Keeping Saved Empty Button Scripts Empty

2017-06-19 Thread Mike Kerner via use-livecode
and another case where we should have a little crowd fund setup.

On Mon, Jun 19, 2017 at 4:00 PM, Bob Sneidar via use-livecode <
use-livecode@lists.runrev.com> wrote:

> +1
>
> > On Jun 19, 2017, at 12:49 , J. Landman Gay via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > Right, but every time you open the script and then close it again, it
> keeps asking if you want to save the default. It gets irritating.
> >
> > I sometimes just replace the default entry with a single space and save
> it that way. Then it doesn't ask me again.
> >
> > I wouldn't mind a preference to turn off the default scripts.
> > --
> > 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
>



-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Preference for Keeping Saved Empty Button Scripts Empty

2017-06-19 Thread Bob Sneidar via use-livecode
+1

> On Jun 19, 2017, at 12:49 , J. Landman Gay via use-livecode 
>  wrote:
> 
> Right, but every time you open the script and then close it again, it keeps 
> asking if you want to save the default. It gets irritating.
> 
> I sometimes just replace the default entry with a single space and save it 
> that way. Then it doesn't ask me again.
> 
> I wouldn't mind a preference to turn off the default scripts.
> -- 
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com


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


Re: 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 
>  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' >”
>> 
>> 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

Re: Preference for Keeping Saved Empty Button Scripts Empty

2017-06-19 Thread J. Landman Gay via use-livecode

On 6/19/17 12:58 PM, Paul Hibbert via use-livecode wrote:

On Jun 19, 2017, at 8:19 AM, Sannyasin Brahmanathaswami via
use-livecode  wrote:

so, does it make sense to request a feature enhancement to add a
preference to*not*  insert any handler in buttons/widgets, whose
scripts are empty if inadvertently opened?  there would need to be
a way to differentiate between one newly created vs one that was
previously instantiated, whose script had been emptied and saved



But, if you simply close the control’s script after inspecting it
without ‘saving’ it, then the control has no script, so there’s no
need to try to save an empty script. The control only has an empty
mouseUp handler if you save it that way.


Right, but every time you open the script and then close it again, it 
keeps asking if you want to save the default. It gets irritating.


I sometimes just replace the default entry with a single space and save 
it that way. Then it doesn't ask me again.


I wouldn't mind a preference to turn off the default scripts.
--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com


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

Re: Exploring A Single File Deploy on Windows

2017-06-19 Thread Roger Eller via use-livecode
On Mon, Jun 19, 2017 at 3:31 PM, Dan Friedman via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Greetings…
>
> With LC 8.1 and later, we’re now using tsNet rather than libURL.  That’s
> fine.  However, a Windows standalone that uses tsNet cannot even launch
> unless tsNet.dll is in the same directory as the standalone.exe.  This
> makes deploying a single file on Windows impossible.  Which means you have
> to zip everything up and hope your client double-clicks with correct file,
> or use an installer. Yuck!
>
> Now, we know that we can create a standalone that uses libURL instead of
> tsNet (thank you Matthias, http://lists.runrev.com/
> pipermail/use-livecode/2017-April/236013.html).  But, can you switch
> systems after launch?  If you can, then you could create a standalone that
> uses libURL -- which will launch.  During the app’s startup you could then
> save any DLLs, files or whatever either from custom properties or download
> from the net.  Once all that was done you would then switch to tsNet.  Or,
> even require that the user simply restart the app and it will re-launch and
> use tsNet.
>
> So, when the app launches if it doesn’t find tsNet.dll in the correct
> location, then it continues using libURL and downloads/saves tsNet.  If it
> does find tsNet in the correct location, then it uses tsNet.
>
> What do you think?  Is this possible?
>
>

That is exactly what I would try.

~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

Re: LiveCode Server - Html, Quotes & JS?

2017-06-19 Thread Mark Wieder via use-livecode

On 06/19/2017 11:22 AM, Rick Harrison via use-livecode 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' >”

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?


There's a long-standing bug report about wanting to use single- and 
double- quotes interchangeably. But even that won't completely solve 
your problem here.


I usually resort to a general-purpose function that Ken Ray posted some 
years ago for quoting text when you can't do it explicitly:


function q pText
  return quote & pText & quote
end q

So you'd end up with

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


and that should work even if it's a bit ungainly.
To make it more readable, I usually break that up with constants.
Something like:

constant kURL="http://www.google.com;
constant kOnAction="movepic('button','pic-on.gif')"
constant kOffAction="movepic('button','pic-off.gif')"
local sImageContent

function href pURL, pContent
  return "" & pContent & ""
end href

put "" into sImageContent


put href(q(kURL) && "onmouseover=" & q(kOnAction) &&  "onmouseout=" & 
q(kOffAction), sImageContent)


--
 Mark Wieder
 ahsoftw...@gmail.com

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

Exploring A Single File Deploy on Windows

2017-06-19 Thread Dan Friedman via use-livecode
Greetings…

With LC 8.1 and later, we’re now using tsNet rather than libURL.  That’s fine.  
However, a Windows standalone that uses tsNet cannot even launch unless 
tsNet.dll is in the same directory as the standalone.exe.  This makes deploying 
a single file on Windows impossible.  Which means you have to zip everything up 
and hope your client double-clicks with correct file, or use an installer. Yuck!

Now, we know that we can create a standalone that uses libURL instead of tsNet 
(thank you Matthias, 
http://lists.runrev.com/pipermail/use-livecode/2017-April/236013.html).  But, 
can you switch systems after launch?  If you can, then you could create a 
standalone that uses libURL -- which will launch.  During the app’s startup you 
could then save any DLLs, files or whatever either from custom properties or 
download from the net.  Once all that was done you would then switch to tsNet.  
Or, even require that the user simply restart the app and it will re-launch and 
use tsNet.

So, when the app launches if it doesn’t find tsNet.dll in the correct location, 
then it continues using libURL and downloads/saves tsNet.  If it does find 
tsNet in the correct location, then it uses tsNet.

What do you think?  Is this possible?

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

Re: LiveCode Server - Html, Quotes & JS?

2017-06-19 Thread Mike Bonner via use-livecode
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')">

then open lc again with 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' >”
>
> 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

Re: LC Global - my experience

2017-06-19 Thread Bob Sneidar via use-livecode
I have some spare x-ray glasses I can sell you. Contact me off list. ;-)

Bob S


> On Jun 18, 2017, at 16:56 , prothero--- via use-livecode 
>  wrote:
> 
> I suspect that "jumping to the good parts" is a major feature for some. I 
> keep getting these ads that promise me very valuable, revealing, even 
> shocking information, but I have to listen to 15 minutes of intro crap, then 
> a pitch for a purchase. Needless to say, I don't waste time on it.
> Bill P
> 
> William Prothero
> http://es.earthednet.org


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


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: Preference for Keeping Saved Empty Button Scripts Empty

2017-06-19 Thread Mike Kerner via use-livecode
and a visual indicator that an object has a script might be nice, too.  A
certain tool that some of your colleagues use does that with a filled-in
top-left corner triangle.  You can look in the project browser to see which
objects have scripts assined, but that is certainly not ideal.  You could
also go the Levure route, where you assign scripts via behaviors from
script-only stacks, and you stop using the script editor for anything but
debugging.

On Mon, Jun 19, 2017 at 11:19 AM, Sannyasin Brahmanathaswami via
use-livecode  wrote:

> I wrote support "complaining" that after I clear the
>
> on mouseup
>
> end mouseUp
>
> that is inserted in button scripts by default, apply, close, save. Then
> later if one inadvertently opens the script of that button, the script is
> reinserted. Panos replied this is the default behavior….gave me a hack to
>
> " edit the script of stack "revSEUtilities" at 1097"
>
> and remove the l nes that inserted that automatically. For this to persist
> you have to get hands dirty changing permission in the bundle, save the
> stack etc…then of course on upgrade.. that's gone…  Quite a hack
>
> Now that I'm slowly mastering the separation of code from GUI, I find
> myself more and more leaving buttons empty and then using, farther up the
> hierarchy (in a behavior, or back script)
>
> -
> on mouseup
>put the short name of the target into tMouseEvent
> switch tMouseEvent
>case "whatever
>break
> end switch
> end mouseup
> -
>
> of course if your button ends up with
>
> on mouseup
> end mouseup
>
> and you don't pass… your script appears "dead"   as it never gets the
> target msg.
>
> This same thing is also happening to widget that I remove the scripts from
> completely.  which is even more irritating, since in someone's infinite
> wisdom they assumed  we always want to toggle the hilite of the widget.
> This is so persistent that I have come not to a) set the color of the
> widget b) set the hilite color the same so that if that Toggle command gets
> back in there.. nothing happens, visually, because if you save the stack
> after the highlight is toggle it is "stuck" with the hilite color.  (a
> gotcha for newbies too)
>
> so, does it make sense to request a feature enhancement to add a
> preference to *not* insert any handler in buttons/widgets, whose scripts
> are empty if inadvertently opened?  there would need to be a way to
> differentiate between one newly created vs one that was previously
> instantiated, whose script had been emptied and saved
>
> 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




-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Preference for Keeping Saved Empty Button Scripts Empty

2017-06-19 Thread Paul Hibbert via use-livecode
On Jun 19, 2017, at 8:19 AM, Sannyasin Brahmanathaswami via use-livecode 
 wrote:
> 
> so, does it make sense to request a feature enhancement to add a preference 
> to *not* insert any handler in buttons/widgets, whose scripts are empty if 
> inadvertently opened?  there would need to be a way to differentiate between 
> one newly created vs one that was previously instantiated, whose script had 
> been emptied and saved

But, if you simply close the control’s script after inspecting it without 
‘saving’ it, then the control has no script, so there’s no need to try to save 
an empty script.
The control only has an empty mouseUp handler if you save it that way.

To prove it try this:

Create a button by dragging one off the tool palette or from the Object Menu
in the message box, type; put the script of the last button
> The message box result is empty

Now open the script editor for the button and save the default script
in the message box, type; put the script of the last button
> The control's script will show in the message box result

HTH

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

Re: Server Installation

2017-06-19 Thread Richard Gaskin via use-livecode

Bob Sneidar wrote:
> On Jun 16, 2017, at 17:23 , Richard Gaskin wrote:
>>
>> In many cases you'll find you don't need to change permissions and
>> then change them back; you can temporarily raise your own permissions
>> with sudo to edit files and leave permissions as originally
>> configured.
>
> True, if using terminal, but I was editing the file with the GUI text
> editor. I suppsoe I could have launched the text editor as sudo...

True.  But most servers won't have a GUI installed, so it can be well 
worth the time to get to know Nano.


As with a GUI editor, you can launch Nano with sudo:

   sudo nano somefile.txt

You probably won't want to use Nano to write a book, but for quick 
editing of config files it's pretty good, much easier to learn than vim 
or emacs.


If you're on a system that doesn't have Nano installed, on a 
Debian-based system like yours you can install it with apt-get:


  sudo apt-get update; sudo apt-get install nano

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

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


Re: Server Installation

2017-06-19 Thread panagiotis merakos via use-livecode
Hi Bob,

I keep the latest LC Server version in my Desktop. I also have a LC_SERVER
folder, in which I put the old LC Server as soon as I download a new
version. So, when a new LC Server version is released, I do the following:

1. Download latest LC Server on Desktop
2. Right-click on livecode-server executable and check the "Executable"
permission
3. sudo nano '/etc/apache2/apache2.conf'

4. Change the existing paths to point to the LC Server you downloaded in
step 1


Here are the changes I do to the file: /etc/apache2/apache2.conf:


Options FollowSymLinks Multiviews
MultiviewsMatch Any
AllowOverride None
#   Order allow,deny
#   allow from all
Require all granted
AddHandler lcscript .lc
Action lcscript /livecode-cgi/livecode-server



Options ExecCGI
#   Order allow,deny
#   Allow from all
#   Options Indexes FollowSymLinks
AllowOverride None
Require all granted
#   Options all
#   AllowOverride All
#   Require all granted



ScriptAlias /livecode-cgi/
/home/panos/Desktop/LiveCodeServer-9_0_0_dp_7-Linux-x86_64/

5. sudo apache2ctl restart
6. Type in Firefox: localhost/test.lc
7. In case of an error, the error log is in /var/log/apache2/error.log

Note that the "test.lc" file is located in /var/www/html/, and it contains
the following code:

LiveCode Server Test





Best,
Panos
--

On Mon, Jun 19, 2017 at 5:52 PM, Bob Sneidar via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Ubuntu on a local server running under ESX1 5.1. I have already installed
> Apache and verified it's running. Mike Bonner has offered some useful
> information on how to enable those things. I will give those a try later.
>
> I wonder if there is a book called, "Setting up Apache2 on a Linux server
> as CGI for a Complete Moron". They would sell at least one copy. :-)
>
> Bob S
>
>
> > On Jun 16, 2017, at 17:23 , Richard Gaskin via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > It sounds like you're using a VPS or dedicated machine, rather than a
> shared host, yes?
> >
> > I missed which Linux distro you're using.  Has the Apache install there
> already enabled CGI?
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Server Installation

2017-06-19 Thread Bob Sneidar via use-livecode
Ubuntu on a local server running under ESX1 5.1. I have already installed 
Apache and verified it's running. Mike Bonner has offered some useful 
information on how to enable those things. I will give those a try later. 

I wonder if there is a book called, "Setting up Apache2 on a Linux server as 
CGI for a Complete Moron". They would sell at least one copy. :-)

Bob S


> On Jun 16, 2017, at 17:23 , Richard Gaskin via use-livecode 
>  wrote:
> 
> It sounds like you're using a VPS or dedicated machine, rather than a shared 
> host, yes?
> 
> I missed which Linux distro you're using.  Has the Apache install there 
> already enabled CGI?


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


Re: Server Installation

2017-06-19 Thread Bob Sneidar via use-livecode
True, if using terminal, but I was editing the file with the GUI text editor. I 
suppsoe I could have launched the text editor as sudo... 

Bob S


> On Jun 16, 2017, at 17:23 , Richard Gaskin via use-livecode 
>  wrote:
> 
> In many cases you'll find you don't need to change permissions and then 
> change them back; you can temporarily raise your own permissions with sudo to 
> edit files and leave permissions as originally configured.


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


Preference for Keeping Saved Empty Button Scripts Empty

2017-06-19 Thread Sannyasin Brahmanathaswami via use-livecode
I wrote support "complaining" that after I clear the

on mouseup

end mouseUp

that is inserted in button scripts by default, apply, close, save. Then later 
if one inadvertently opens the script of that button, the script is reinserted. 
Panos replied this is the default behavior….gave me a hack to

" edit the script of stack "revSEUtilities" at 1097"

and remove the l nes that inserted that automatically. For this to persist you 
have to get hands dirty changing permission in the bundle, save the stack 
etc…then of course on upgrade.. that's gone…  Quite a hack

Now that I'm slowly mastering the separation of code from GUI, I find myself 
more and more leaving buttons empty and then using, farther up the hierarchy 
(in a behavior, or back script)

-
on mouseup
   put the short name of the target into tMouseEvent
switch tMouseEvent
   case "whatever
   break
end switch
end mouseup
-

of course if your button ends up with

on mouseup
end mouseup

and you don't pass… your script appears "dead"   as it never gets the target 
msg.

This same thing is also happening to widget that I remove the scripts from 
completely.  which is even more irritating, since in someone's infinite wisdom 
they assumed  we always want to toggle the hilite of the widget. This is so 
persistent that I have come not to a) set the color of the widget b) set the 
hilite color the same so that if that Toggle command gets back in there.. 
nothing happens, visually, because if you save the stack after the highlight is 
toggle it is "stuck" with the hilite color.  (a gotcha for newbies too)

so, does it make sense to request a feature enhancement to add a preference to 
*not* insert any handler in buttons/widgets, whose scripts are empty if 
inadvertently opened?  there would need to be a way to differentiate between 
one newly created vs one that was previously instantiated, whose script had 
been emptied and saved

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: LC Global - my experience

2017-06-19 Thread Roger Eller via use-livecode
Although you still have to wait until the very end of the webinarjam (not
the YouTube link), you can select and copy the chat comments.  Yes, they
are actual TEXT, not part of the video.

~Roger


On Mon, Jun 19, 2017 at 8:32 AM, james--- via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Didn't know about being able to see comments while watching webinars.
> I simply clicked on the YouTube badge to go to the YouTube version and
> download it.
> Scrubbing a local file in VLC is so easy.
> So it would be nice if the text from the webinars could be provided though.
>
> James
>
___
use-livecode mailing list
use-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 Global - my experience

2017-06-19 Thread james--- via use-livecode
Didn't know about being able to see comments while watching webinars.
I simply clicked on the YouTube badge to go to the YouTube version and download 
it.
Scrubbing a local file in VLC is so easy.
So it would be nice if the text from the webinars could be provided though.

James

___
use-livecode mailing list
use-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 Global - my experience

2017-06-19 Thread Lagi Pittas via use-livecode
I don't know if the users who asked for it to be disabled  are just dumb or
webinarjam for disabling the option after numerous requests by some morons
(no I won't give them the benefit of the doubt ).

If it's a replay then if I come to watch it, then I have decided to and if
i decide I want to go to the lavatory or do something else I don't want a
moron  controlling when I can.

Maybe I should ask that replays can have the rewind buttons enabled on
weekdays and not at weekends cos we have more time at weekends.

 Did i say bloody Morons? (oh and btw Moron is being nice - A Moron can be
taught an IDIOT can't).

Lagi

On 18 June 2017 at 15:41, Jim Lambert via use-livecode <
use-livecode@lists.runrev.com> wrote:

> > Alex Tweedly wrote:
> >
> > the replay link gives you a web page showing the video and the scrolling
> > 'chat' alongside it. The video responds *only* to "pause" (and then to
> > "play") - there's no
> >  - rewind (say 30 seconds) if you got distracted
> >  - fast forward / backward
> >  - go directly to a point in time (e.g. if you have to switch devices)
>
>
> That peeved me, too.
> So I wrote to Webinarjam suggesting that the addition of a scrub bar on
> the playback video would be an immense improvement in user experience.
>
> Adam from Webinarjam promptly replied:
>
> > Hi Jim,
> > This feature has been disabled after numerous requests from users who
> wanted to ensure that their attendees got to see the full event. We are
> very sorry for the inconvenience however I would be happy to add your
> request to our list of feature requests.
>
> 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


[ANN] This Week in LiveCode 87

2017-06-19 Thread panagiotis merakos via use-livecode
Hi all,

Read about new developments in LiveCode open source and the open source
community in today's edition of the "This Week in LiveCode" newsletter!

Read issue #87 here: https://goo.gl/gjA9wE

This is a weekly newsletter about LiveCode, focussing on what's been
going on in and around the open source project. New issues will be
released weekly on Mondays. We have a dedicated mailing list that will
deliver each issue directly to you e-mail, so you don't miss any!

If you have anything you'd like mentioned (a project, a discussion
somewhere, an upcoming event) then please get in touch.


-- 
Panagiotis Merakos 
LiveCode Software Developer

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


Re: Uploading a file using FTP

2017-06-19 Thread Matthias Rebbe via use-livecode
Terry,

thanks for the info. I thought it would be a good idea to change the variable 
names to be the same as in the dictionary before uploading the stack. Wasn´t 
that good.

I have corrected the online stack also in case others are interested also.

Regards,
Matthia

Matthias Rebbe
+49 5741 31
‌matthiasrebbe.eu ‌

> Am 19.06.2017 um 03:39 schrieb Terry Vogelaar via use-livecode 
> >:
> 
> Matthias, thank you for your response.
> I do have an Indy licence. There were 2 minor typo’s in line 18 of the script 
> of button “upload” that resulted in sending the wrong data. I changed it from:
> put URL ("binfile"& fld "ftp_file") into pData
> to:
> put URL ("binfile:"& fld "ftp_file") into pDat
> Now the variable name corresponds with the one used in line 36 and it works 
> like a breeze. Thank you
> 
> 
> With kind regards,
> Terry Vogelaar
> 
>> Terry, 
>> are you using a commercial license of  LC 8 / 9, Indy or business?
>> 
>> If so, you could use tsNet external for your ftp uploader. See here 
>> > > for a sample stack which 
>> shows how to use tsNet external for uploading using FTP
>> Unfortunately the number of parameters changed for tsNetUploadSync between 
>> the tsNet releases. So please check the dictionary of your LC version for 
>> that function with the script  of the upload button (line 36).
>> 
>> My stack was successfully tested with LC 8.1.4.
>> 
>> Hope this helps.
>> 
>> Matthias
>> 
>> Matthias Rebbe
>> +49 5741 31
>> ?matthiasrebbe.eu  > >?
>> 
>>> Am 17.06.2017 um 09:20 schrieb Terry Vogelaar via use-livecode 
>>>  
>>> >> >>:
>>> 
>>> I tried to create a FTP uploader in LC, so I followed the instructions on:
>>> http://lessons.livecode.com/m/4071/l/6998-uploading-a-file-using-ftp 
>>>  
>>> >> >
>>> Of course I changed the constants and the FTP domain to the appropriate 
>>> settings and that is the only thing I changed. But I only get Status 
>>> Update: error. No indication on what the error might be. 
>>> 
>>> How should I figure out what went wrong, without sharing my FTP credentials 
>>> with the list?
>>> 
>>> 
>>> 
>>> With kind regards,
>>> Terry Vogelaar
> 
> 
> 
> 
> ___
> use-livecode mailing list
> use-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