Re: how to copy a card?

2018-03-07 Thread J. Landman Gay via use-livecode

Use:

clone this card
set the name of it to ""

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



On March 8, 2018 12:24:58 AM Nicolas Cueto via use-livecode 
 wrote:



?Need a new card, and want it to be an exact copy (other than the card
title) of an existing card. How yo do this in LC?

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


how to copy a card?

2018-03-07 Thread Nicolas Cueto via use-livecode
​Need a new card, and want it to be an exact copy (other than the card
title) of an existing card. How yo do this in LC?

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

Re: tsNet documentation

2018-03-07 Thread Charles Warwick via use-livecode
Hi Matthias,

Yes, it supports digest authentication.  tsNet will automatically use the most 
secure method the server supports unless you force it to use basic 
authentication.

Regards.

Charles

> On 8 Mar 2018, at 1:11 am, Matthias Rebbe via use-livecode 
>  wrote:
> 
> Charles,
> 
> thank you very much for that. That is really very useful.
> 
> Btw. does tsNet support Digest Access Authentication (DAA) (RFC 2617)?
> 
> Regards,
> Matthias 
> 
> 
> 
>> Am 07.03.2018 um 11:20 schrieb Charles Warwick via use-livecode 
>> mailto:use-livecode@lists.runrev.com>>:
>> 
>> Hi,
>> 
>> Just a quick update to let everyone know that I have uploaded a series of 
>> lessons on tsNet to the LiveCode web site.  You can view them at:
>> 
>> http://lessons.livecode.com/m/4071/c/235433 
>> 
>> 
>> I am continuing to upload more lessons as I have time so please let me know 
>> if there is any particular task that can be done with tsNet that you would 
>> like to see a lesson on.
>> 
>> There is also now an online tsNet command reference guide for those who want 
>> an easily searchable format of all the tsNet commands that are available.  
>> You can find it at:
>> 
>> https://www.techstrategies.com.au/tsnet-command-list/
>> 
>> Regards,
>> 
>> Charles Warwick
>> Tech Strategies
>> ___
>> use-livecode mailing list
>> use-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: Issues with storage of data in stack

2018-03-07 Thread Richard Gaskin via use-livecode

Mike Kerner wrote:

> I have to admit, I haven't stored data in a stack in a long time,
> since the database options are so easy to use.  If you're currently
> storing data in a stack, have you run into any issues on any platform
> with it, especially on mobile, for instance, where the rules can be a
> little weird?

In fields, or custom props?

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


Standalone compile problem including more than two stack files to the mainstack

2018-03-07 Thread R.H. via use-livecode
Window 10, LC 8.1.9, Trying to compile a standalone with more than just one
application file to the main file (mainfile = splash screen stack).

I have a problem and working on this for many hours now. I am using a
splash stack as the "main stack" for compilation and I am including the
application stack using the dialogs in the "Stacks" pane of the "Standalone
Application Settings" window.

When I add this one application stack file all is fine. It compiles.

Now I want to add a library stack using the same "Stacks" pane just adding
this other stack to the same subfolder "resources" which also contains the
app file.

Compilation completely fails when adding this library stack (or any other
stack file I tested). During such compile, only the resources folder is
created and one of the included stacks is placed in there. Then the
compilation process quits without error.

I tried everything I could imagine to find out what is going wrong. Maybe
there is some script error in the application file or the splash stack. But
I have no idea as it all works in the IDE and it works in the limited
setting just using this one app file. An also in debugging mode nothing can
be detected. But somehow LiveCode does not like any additional brother or
sister for my application file.

When I do this with completely independent stack files it works though. I
made some test stacks to find out whether is a general problem. But
there... all is ok.

Maybe someone had similar experiences?

How can we check what is going wrong during compilation?

I am at the end of my wisdom. Sigh.

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


Issues with storage of data in stack

2018-03-07 Thread Mike Kerner via use-livecode
I'm working on a session for next week's LCG.  We are all working on
fun super-advanced pushing-the-envelope things in LC, but I wanted to do
something for the beginners who are watching LCG, and handling data seemed
like an obvious choice.

I have to admit, I haven't stored data in a stack in a long time, since the
database options are so easy to use.  If you're currently storing data in a
stack, have you run into any issues on any platform with it, especially on
mobile, for instance, where the rules can be a little weird?

-- 
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: Slide puzzle question

2018-03-07 Thread Bob Sneidar via use-livecode
I would love to give an out of parity Rubix Cube to one of those Rubix Cube 
savants and see how long it taked to figure out they cannot solve it! ;-P

Bob S


> On Mar 7, 2018, at 08:22 , Ralph DiMola via use-livecode 
>  wrote:
> 
> I don't know about the 9 puzzle but I suspect it's like the 15 puzzle. The
> 15 puzzle and Rubics Cube have parity. If the 15 is out of parity it can
> never be solved. The same for Rubics Cube, if you say switch 2 edge pieces
> or rotate 1 corner piece it's not solvable.
> 
> Ralph DiMola


___
use-livecode mailing list
use-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: Slide puzzle question

2018-03-07 Thread Ralph DiMola via use-livecode
I don't know about the 9 puzzle but I suspect it's like the 15 puzzle. The
15 puzzle and Rubics Cube have parity. If the 15 is out of parity it can
never be solved. The same for Rubics Cube, if you say switch 2 edge pieces
or rotate 1 corner piece it's not solvable.

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 William de Smet via use-livecode
Sent: Wednesday, March 07, 2018 9:41 AM
To: How to use LiveCode
Cc: William de Smet
Subject: Slide puzzle question

Hi there,

I am making a 9 piece slide puzzle.
How many pieces should be in the right place at start to solve the puzzle?



greetings,

William
___
use-livecode mailing list
use-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: Slide puzzle question

2018-03-07 Thread Geoff Canyon via use-livecode
I'm not sure whether there is an answer in terms of pieces in place/out of 
place. I know that there are (I think three) different "position-spaces" where 
each space is unreachable from the others. 

The easy solution is to this problem is to start with the puzzle solved and 
quickly execute thirty or so moves at random, either visibly or with the screen 
locked.

gc

> On Mar 7, 2018, at 6:40 AM, William de Smet via use-livecode 
>  wrote:
> 
> Hi there,
> 
> I am making a 9 piece slide puzzle.
> How many pieces should be in the right place at start to solve the puzzle?
> 
> 
> 
> greetings,
> 
> William
> ___
> use-livecode mailing list
> use-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: tsNet documentation

2018-03-07 Thread Matthias Rebbe via use-livecode
Charles,

thank you very much for that. That is really very useful.

Btw. does tsNet support Digest Access Authentication (DAA) (RFC 2617)?

Regards,
Matthias 



> Am 07.03.2018 um 11:20 schrieb Charles Warwick via use-livecode 
> mailto:use-livecode@lists.runrev.com>>:
> 
> Hi,
> 
> Just a quick update to let everyone know that I have uploaded a series of 
> lessons on tsNet to the LiveCode web site.  You can view them at:
> 
> http://lessons.livecode.com/m/4071/c/235433 
> 
> 
> I am continuing to upload more lessons as I have time so please let me know 
> if there is any particular task that can be done with tsNet that you would 
> like to see a lesson on.
> 
> There is also now an online tsNet command reference guide for those who want 
> an easily searchable format of all the tsNet commands that are available.  
> You can find it at:
> 
> https://www.techstrategies.com.au/tsnet-command-list/
> 
> Regards,
> 
> Charles Warwick
> Tech Strategies
> ___
> use-livecode mailing list
> use-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


Slide puzzle question

2018-03-07 Thread William de Smet via use-livecode
Hi there,

I am making a 9 piece slide puzzle.
How many pieces should be in the right place at start to solve the puzzle?



greetings,

William
___
use-livecode mailing list
use-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: tsNet documentation

2018-03-07 Thread Dave Kilroy via use-livecode
Thank you Charles - these look really useful, they'll help me use your
external better - smashing!

As soon I have spare brain cells I'll view them all...

Kind regards

Dave



-
"The first 90% of the task takes 90% of the time, and the last 10% takes the 
other 90% of the time."
Peter M. Brigham 
--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html

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


Re: Overwriting a file on a server

2018-03-07 Thread Graham Samuel via use-livecode
Hi Bob

Yes, that works - since the file is tiny, just trying to download it and seeing 
what you get works  too (not a good strategy in general, I agree). The problem 
was the overwriting of the file - Richard G and other folks have pointed out 
that it would be extremely dangerous in the whole internet world if that were 
easy! I was in retrospect being extremely naive. What it’s done to me is to 
make me reconsider the way my app works, and I’ve chosen another way of dealing 
with my requirement by using local application storage. This just happens to 
work in my particular case.

Cheers

Graham

> On 7 Mar 2018, at 04:42, Bob Sneidar via use-livecode 
>  wrote:
> 
> if there is a file?
> 
> Bob S
> 
> 
>> On Mar 5, 2018, at 05:04 , Graham Samuel via use-livecode 
>>  wrote:
>> 
>> How can I grow my own, by detecting the existing file and then overwriting 
>> it anyway? 
> 
> 
> ___
> use-livecode mailing list
> use-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

tsNet documentation

2018-03-07 Thread Charles Warwick via use-livecode
Hi,

Just a quick update to let everyone know that I have uploaded a series of 
lessons on tsNet to the LiveCode web site.  You can view them at:

http://lessons.livecode.com/m/4071/c/235433

I am continuing to upload more lessons as I have time so please let me know if 
there is any particular task that can be done with tsNet that you would like to 
see a lesson on.

There is also now an online tsNet command reference guide for those who want an 
easily searchable format of all the tsNet commands that are available.  You can 
find it at:

https://www.techstrategies.com.au/tsnet-command-list/

Regards,

Charles Warwick
Tech Strategies
___
use-livecode mailing list
use-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 and fonts

2018-03-07 Thread jbv via use-livecode
Mike,
Thanks for your help. Yes, I will contact on-rev support and I will
let you know how it goes.
Best.

On Tue, March 6, 2018 5:33 pm, Mike Bonner via use-livecode wrote:
> Well, it looks like fontconfig is installed in on-rev, but neither
> /home//.fonts or /home//.local/share/fonts are being updated
> automatically.  I tried to run fc-cache -f -v /home//.fonts and the
> font is indeed found, but I don't think I have all the required support
> directories, so there is no writable place to actually store the cache
> data. The command fails because of this.  If it were me, I'd contact
> on-rev and see if they could help set things up to actually look at a
> fonts directory in your account and add any fonts there.  All the software
> seems to be installed to do this, I just don't know enough about
> fontconfig to force it from the user side. (It should be possible, but
> again I don't know enough about fontconfig to know what to do yet)
>
> As for start using font file.. Yep, it fails every time with an error
> message that is just a bit lacking.  Getting on-rev/fontconfig set up to
> handle this for you sounds like the way to go.
>
> On Tue, Mar 6, 2018 at 7:41 AM, Mike Bonner  wrote:
>
>
>> Sure, i'll dig up a font file and try.
>>
>>
>> On Tue, Mar 6, 2018 at 7:37 AM, jbv via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>>
>>> "start using font file.." is the first option that I tried, but
>>> unfortunately it returns "can't load font file"... The ttf file is on
>>> the server next to my script, and I have also tried with the full
>>> absolute path for that ttf file. Could you please make a test on your
>>> own on-rev account with any ttf file (different from the default fonts
>>> in fontnames) and let us know of it works ?
>>>
>>> Thanks in advance.
>>>
>>>
>>> On Tue, March 6, 2018 3:03 pm, Mike Bonner via use-livecode wrote:
>>>
 My apologies.. Had a brain fritz, it should be "start using font
 file.." load url would just load whatever url into cache and not
 font it up.

 On Tue, Mar 6, 2018 at 1:07 AM, jbv via use-livecode <
 use-livecode@lists.runrev.com> wrote:

> When using
> load font file "nameofyourfont.ttf" the result contains Handler:
> can't find handler (file)
>
> It looks like "load" is accepted only in the form "load URL"...
>
>
>
> On Mon, March 5, 2018 9:28 pm, Mike Bonner via use-livecode
> wrote:
>
>
>> Hmm. Not sure what to do about loading a fontfile then.  Out of
>>  curiosity, what is the error?
>>
>> On Mon, Mar 5, 2018 at 11:39 AM, jbv via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>>
>>> Hi Mike,
>>> Thanks for your reply.
>>>
>>>
>>>
>>>
>>> Yes, I managed to set the textfont of a btn or fld to one of
>>> the fonts available in the fontnames, but I still can't figure
>>> how to use any
> other
>>> ttf font... load font file "nameofyourfont.ttf" -> returns an
>>> error I
>>> tried load URL "nameofyourfont.ttf", it works, but then the
>>> textfont property isn't updated...
>>>
>>> On Mon, March 5, 2018 3:59 pm, Mike Bonner via use-livecode
>>> wrote:
>>>
>>>
>>>
 With on-rev, I put up this script..





 >>> create button "mybtn"

 repeat for each line tLIne in the fontnames -- will make 1
 png per font

 set the label of btn "mybtn" to tLine set the textfont of
 button "mybtn"
 to tLine set the width of button "mybtn" to the
 formattedwidth of button "mybtn" + 5



 export snapshot from button "mybtn" to file (tLine &
 ".png") as
 PNG



 put the textfont of button "mybtn" && ">>> & quote & ">" & cr
 end repeat ?>


 And it works fine, with the exception of fonts with a - in
 the name. All of them are Hershey fonts, so not sure if its
 the font family that is broken, or the dashes causing the
 issue.

 If you have a ttf font file to use, you can probably put it
 on your server next to your script and: load font file
 "nameofyourfont.ttf"
 and
>>> then
 set the textfont to "nameofyourfont" and it will likely
 work.

 To see my script in action, check here:
 http://guidezone.info/fonttest.lc





 On Sun, Mar 4, 2018 at 8:21 AM, Warren Samples via
 use-livecode < use-livecode@lists.runrev.com> wrote:

> On 03/02/2018 04:14 AM, jbv via use-livecode wrote:
>
>
>
>
>
>> Hello list
>> How can I load ttf font files with LC server, at least
>> version 7.1
>> available on my on-rev account ? Neither "