Re: "Open in New Navigator" is back

2018-03-08 Thread Geoff Canyon via use-livecode
Do you mean copying from the script editor? Navigator opens the built-in
script editor, it doesn't have its own.

Or are you referring to some other copy/paste?

gc

On Thu, Mar 8, 2018 at 7:24 PM, Clarence Martin via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Sorry, I meant LC 9-11 and 9-10, not 10.x
>
> -Original Message-
> From: use-livecode  On Behalf Of
> Clarence Martin via use-livecode
> Sent: Thursday, March 08, 2018 6:06 PM
> To: 'How to use LiveCode' 
> Cc: chi...@themartinz.com
> Subject: RE: "Open in New Navigator" is back
>
> I am trying Navigator and I think it is great. However, I have some
> questions about the copy/paste functions in the LC Editor. The context copy
> seems to work but in reality is doesn't. I even tried to copy from the
> editor and paste the scripts copied into a text editor - No Go. I am using
> LC 10-11. Is there a way to copy script from 1 editor window to another and
> even in the same editor window.
> What am I missing?
>
> -Original Message-
> From: use-livecode  On Behalf Of
> Geoff Canyon via use-livecode
> Sent: Wednesday, February 28, 2018 8:45 PM
> To: How to use LiveCode 
> Cc: Geoff Canyon 
> Subject: "Open in New Navigator" is back
>
> Thanks to Mark Talluto for pointing out the issues with it.
>
> It does what it says on the tin: right-click on any set of groups, cards,
> or
> stacks, select Open in New Navigator and each one opens in a new copy of
> Navigator.
>
> gc
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


RE: "Open in New Navigator" is back

2018-03-08 Thread Clarence Martin via use-livecode
Sorry, I meant LC 9-11 and 9-10, not 10.x

-Original Message-
From: use-livecode  On Behalf Of
Clarence Martin via use-livecode
Sent: Thursday, March 08, 2018 6:06 PM
To: 'How to use LiveCode' 
Cc: chi...@themartinz.com
Subject: RE: "Open in New Navigator" is back

I am trying Navigator and I think it is great. However, I have some
questions about the copy/paste functions in the LC Editor. The context copy
seems to work but in reality is doesn't. I even tried to copy from the
editor and paste the scripts copied into a text editor - No Go. I am using
LC 10-11. Is there a way to copy script from 1 editor window to another and
even in the same editor window.
What am I missing?

-Original Message-
From: use-livecode  On Behalf Of
Geoff Canyon via use-livecode
Sent: Wednesday, February 28, 2018 8:45 PM
To: How to use LiveCode 
Cc: Geoff Canyon 
Subject: "Open in New Navigator" is back

Thanks to Mark Talluto for pointing out the issues with it.

It does what it says on the tin: right-click on any set of groups, cards, or
stacks, select Open in New Navigator and each one opens in a new copy of
Navigator.

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


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


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


Re: tsNet and Digest Authentication - some problems or better said: missing knowledge

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

That does sound strange.

If you download the following stack:

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

Open that stack at the same time as you have your application stack open in the 
IDE, click the “Start Debug” button, and try your PUT requests.

That will display some debug information that might help us work out what is 
going on.

On a related note, ‘tsNetLibUrlReuseConnection false’ should create a fresh 
connection to the server for the 2nd request, so debug with and without that 
set would be useful.

Regards,

Charles

> On 8 Mar 2018, at 9:28 pm, Matthias Rebbe via use-livecode 
>  wrote:
> 
> Hi,
> 
> i am trying to use the tsNet external to communicate with an Auerswald PABX 
> which requires digest authentication.
> 
> The first connection is always successful  using  PUT URL …..
> The second one isn´t. There is even no value returned.
> When i use tsNetClose and tsNetInit before the 2nd connection then the 2nd 
> connection is successful, because the complete authentication process is 
> initiated from the beginning.
> So this works so far
> —>
> tsnetClose
> tsNetInit
> put URL “http:…..”
> 
> But how can i use the already established connection? 
> tsNetLibUrlReuseConnection FALSE does not help. 
> Is it possible that i have to set the httpheader somehow for the 2nd 
> connection?
> I am not very happy to unload and reload the external every time.
> 
> I also tried to use tsNetGetSync. The first connection is also always 
> successful, the 2nd not.
> 
> So what am i missing?
> 
> Regards,
> 
> Matthias
> 
> 
> 
> Tel +49 5741 31
> ‌https://matthiasrebbe.eu ‌
> 
> 
> 
> Matthias Rebbe
> Tel +49 5741 31
> ‌https://matthiasrebbe.eu ‌
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-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: "Open in New Navigator" is back

2018-03-08 Thread Clarence Martin via use-livecode
I am trying Navigator and I think it is great. However, I have some
questions about the copy/paste functions in the LC Editor. The context copy
seems to work but in reality is doesn't. I even tried to copy from the
editor and paste the scripts copied into a text editor - No Go. I am using
LC 10-11. Is there a way to copy script from 1 editor window to another and
even in the same editor window.
What am I missing?

-Original Message-
From: use-livecode  On Behalf Of
Geoff Canyon via use-livecode
Sent: Wednesday, February 28, 2018 8:45 PM
To: How to use LiveCode 
Cc: Geoff Canyon 
Subject: "Open in New Navigator" is back

Thanks to Mark Talluto for pointing out the issues with it.

It does what it says on the tin: right-click on any set of groups, cards, or
stacks, select Open in New Navigator and each one opens in a new copy of
Navigator.

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


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


RE: Forcing a device update

2018-03-08 Thread Ralph DiMola via use-livecode
J,

The devices refresh automatically on both my Win 10(Android) and OS X
10.12.6 Xcode 9.2 (iOS and Android). I'm using 8.1.9 GM. I tested by
plugging devices in/out/in. 

You could try this in the message box for Android. It's untested. (found it
by scratching in the IDE).

dispatch "androidDevicesChanged" to stack ("revDeployLibraryAndroid")

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 J. Landman Gay via use-livecode
Sent: Tuesday, March 06, 2018 7:04 PM
To: LiveCode Mailing List
Cc: J. Landman Gay
Subject: Forcing a device update

Is there a way to force the IDE to look for attached mobile devices without
restarting LiveCode?

Typically I have half a dozen scripts open and I'm doing multiple test
builds to a cabled phone. I edit some scripts and during that time the phone
goes into low-power mode (not asleep or locked.) When I tap it to show the
launcher again, LC has lost the device and I have to restart LC to make it
scan again.

I can use Terminal to rescan if necessary, but even after it sees the phone,
LC still doesn't.

I need a message box command to make LC "see" the device again. 
Restarting loses all my open script windows and I have to relaunch the stack
and set everything up again.

-- 
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: how to copy a card?

2018-03-08 Thread Nicolas Cueto via use-livecode
Thanks, Jacque.

Also figured out it can be done with the Project Browser.

--
Nicolas Cueto

On 8 March 2018 at 15:38, J. Landman Gay via use-livecode <
use-livecode@lists.runrev.com> wrote:

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


Sparkle anybody?

2018-03-08 Thread Graham Samuel via use-livecode
I don’t think this is OT - I suppose it depends on your point of view.

Sparkle is a framework for providing update logic to Mac Apps (this is my take 
on it anyway). I know Trevor has kind of incorporated into Levure, but the 
commitment to understanding and working with Levure is too heavy for me, I 
think. It’s supposed to be easy to integrate Sparkle into your app (no 
coding!), but it turns out, only if you speak XCode, as the baldest 
explanations of its use assume that the reader is deep into Apple’s way of 
doing things.

So is it curtains for us LC coders - I mean is there no alternative to a 
massive technical self-education effort to use this stuff, where one might at 
the end crash and burn anyway? It would be sad, because it seems so far from 
“everyone can code”. Yes, I can, but I am constantly being thumped by 
deployment issues like this.

Thoughts, anyone?

Graham
___
use-livecode mailing list
use-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-08 Thread Mark Talluto via use-livecode
Hi Peter,

Yes. But, you can protect it with a password. 

1. arrayEncode(yourDataInAVariable)
2. Encrypt the result above
3. Write out the encrypted value to disk

Best regards,

Mark Talluto
livecloud.io 
nursenotes.net 
canelasoftware.com 


> On Mar 8, 2018, at 11:22 AM, Peter Bogdanoff via use-livecode 
>  wrote:
> 
> Mark,
> 
> If the data is written to a file on disk, could someone else arrayDecode the 
> file and gain access to it?
> 
> Peter Bogdanoff
> ArtsInteractive
> 
>> On Mar 8, 2018, at 10:38 AM, Mark Talluto via use-livecode 
>>  wrote:
>> 
>>> On Mar 8, 2018, at 9:03 AM, Lagi Pittas via use-livecode 
>>>  wrote:
>>> 
>>> In the first version of the system I save the arrays which held all
>>> the Clerks orders/totals etc and items into an external stack every
>>> time they added an item.
>> 
>> I too use arrays as a data store. You could save the arrays to disk directly 
>> with arrayEncode(). To save time and not store the entire array to disk, you 
>> could store only the portions that have been updated on every update. This 
>> will keep the data store safe and fast. It will also remove the occasional 
>> issue of stack corruption…since you will not store the data inside of stacks 
>> any longer.
>> 
>> All creates/reads/update/writes would be done to memory. Those calls that 
>> modify data will simply do a follow-up write to disk for that particular 
>> record. To defeat OS inode limitations, you could group your arrays 
>> logically into files. Thus, you would have anywhere from 1 to a 100 sub 
>> arrays grouped together. The loading and storing of arrays is very fast. 
>> Even with databases in the 100s of thousands to low millions of records 
>> counts. 
>> 
>> Performance is amazing. The best part is you are speaking to your database 
>> using LiveCode commands and functions. The only limitation is the amount of 
>> RAM on a given device. Should you outgrow that limitation then you could 
>> move the data to the cloud. Or you could load/unload data accordingly from 
>> disk. This would also be a nice indicator that your business is growing. Of 
>> course, it could just be that you are storing a lot of data. :)
>> 
>> If you need any help or ideas, let me know.
>> 
>> Best regards,
>> 
>> Mark Talluto
>> livecloud.io 
>> nursenotes.net 
>> 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

___
use-livecode mailing list
use-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: Standalone compile problem including more than two stack files to the mainstack

2018-03-08 Thread dunbarx via use-livecode
Jacque usually has a way out.

But I have no problem making a standalone with two added stack files.

Craig Newman



--
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: Issues with storage of data in stack

2018-03-08 Thread Phil Davis via use-livecode

Hi Peter,

If your app could encrypt the arrayEncoded data before writing to disk, 
and then decrypt it when reading it, that would solve the 
unwanted-access problem. The amount of time used by encrypt/decrypt 
processes is negligible, even for large files.


I love arrays. They have become one of my favorite things about LC.

Phil Davis


On 3/8/18 11:22 AM, Peter Bogdanoff via use-livecode wrote:

Mark,

If the data is written to a file on disk, could someone else arrayDecode the 
file and gain access to it?

Peter Bogdanoff
ArtsInteractive


On Mar 8, 2018, at 10:38 AM, Mark Talluto via use-livecode 
 wrote:


On Mar 8, 2018, at 9:03 AM, Lagi Pittas via use-livecode 
 wrote:

In the first version of the system I save the arrays which held all
the Clerks orders/totals etc and items into an external stack every
time they added an item.

I too use arrays as a data store. You could save the arrays to disk directly 
with arrayEncode(). To save time and not store the entire array to disk, you 
could store only the portions that have been updated on every update. This will 
keep the data store safe and fast. It will also remove the occasional issue of 
stack corruption…since you will not store the data inside of stacks any longer.

All creates/reads/update/writes would be done to memory. Those calls that 
modify data will simply do a follow-up write to disk for that particular 
record. To defeat OS inode limitations, you could group your arrays logically 
into files. Thus, you would have anywhere from 1 to a 100 sub arrays grouped 
together. The loading and storing of arrays is very fast. Even with databases 
in the 100s of thousands to low millions of records counts.

Performance is amazing. The best part is you are speaking to your database 
using LiveCode commands and functions. The only limitation is the amount of RAM 
on a given device. Should you outgrow that limitation then you could move the 
data to the cloud. Or you could load/unload data accordingly from disk. This 
would also be a nice indicator that your business is growing. Of course, it 
could just be that you are storing a lot of data. :)

If you need any help or ideas, let me know.

Best regards,

Mark Talluto
livecloud.io 
nursenotes.net 
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


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

Re: Issues with storage of data in stack

2018-03-08 Thread Bob Sneidar via use-livecode
Yes, if they had Livecode. In that case encrypt the arraydecode string using a 
seed that only you know. I use a special seed value that is different for every 
record I add to a database. Very effective and hard to guess. 

Bob S


> On Mar 8, 2018, at 11:22 , Peter Bogdanoff via use-livecode 
>  wrote:
> 
> Mark,
> 
> If the data is written to a file on disk, could someone else arrayDecode the 
> file and gain access to it?
> 
> Peter Bogdanoff


___
use-livecode mailing list
use-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: Standalone compile problem including more than two stack files to the mainstack

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

On 3/7/18 2:49 PM, R.H. via use-livecode wrote:

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


Put everything into the Copy Files pane instead. Anything there will be 
copied to the Resources folder.


--
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: Issues with storage of data in stack

2018-03-08 Thread Peter Bogdanoff via use-livecode
Mark,

If the data is written to a file on disk, could someone else arrayDecode the 
file and gain access to it?

Peter Bogdanoff
ArtsInteractive

> On Mar 8, 2018, at 10:38 AM, Mark Talluto via use-livecode 
>  wrote:
> 
>> On Mar 8, 2018, at 9:03 AM, Lagi Pittas via use-livecode 
>>  wrote:
>> 
>> In the first version of the system I save the arrays which held all
>> the Clerks orders/totals etc and items into an external stack every
>> time they added an item.
> 
> I too use arrays as a data store. You could save the arrays to disk directly 
> with arrayEncode(). To save time and not store the entire array to disk, you 
> could store only the portions that have been updated on every update. This 
> will keep the data store safe and fast. It will also remove the occasional 
> issue of stack corruption…since you will not store the data inside of stacks 
> any longer.
> 
> All creates/reads/update/writes would be done to memory. Those calls that 
> modify data will simply do a follow-up write to disk for that particular 
> record. To defeat OS inode limitations, you could group your arrays logically 
> into files. Thus, you would have anywhere from 1 to a 100 sub arrays grouped 
> together. The loading and storing of arrays is very fast. Even with databases 
> in the 100s of thousands to low millions of records counts. 
> 
> Performance is amazing. The best part is you are speaking to your database 
> using LiveCode commands and functions. The only limitation is the amount of 
> RAM on a given device. Should you outgrow that limitation then you could move 
> the data to the cloud. Or you could load/unload data accordingly from disk. 
> This would also be a nice indicator that your business is growing. Of course, 
> it could just be that you are storing a lot of data. :)
> 
> If you need any help or ideas, let me know.
> 
> Best regards,
> 
> Mark Talluto
> livecloud.io 
> nursenotes.net 
> 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: Issues with storage of data in stack

2018-03-08 Thread Bob Sneidar via use-livecode
You would need to arrayencode() before saving an array to a database as well. 

Bob S


> On Mar 8, 2018, at 10:38 , Mark Talluto via use-livecode 
>  wrote:
> 
> I too use arrays as a data store. You could save the arrays to disk directly 
> with arrayEncode(). 


___
use-livecode mailing list
use-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-08 Thread Mark Talluto via use-livecode
> On Mar 8, 2018, at 9:03 AM, Lagi Pittas via use-livecode 
>  wrote:
> 
> In the first version of the system I save the arrays which held all
> the Clerks orders/totals etc and items into an external stack every
> time they added an item.

I too use arrays as a data store. You could save the arrays to disk directly 
with arrayEncode(). To save time and not store the entire array to disk, you 
could store only the portions that have been updated on every update. This will 
keep the data store safe and fast. It will also remove the occasional issue of 
stack corruption…since you will not store the data inside of stacks any longer.

All creates/reads/update/writes would be done to memory. Those calls that 
modify data will simply do a follow-up write to disk for that particular 
record. To defeat OS inode limitations, you could group your arrays logically 
into files. Thus, you would have anywhere from 1 to a 100 sub arrays grouped 
together. The loading and storing of arrays is very fast. Even with databases 
in the 100s of thousands to low millions of records counts. 

Performance is amazing. The best part is you are speaking to your database 
using LiveCode commands and functions. The only limitation is the amount of RAM 
on a given device. Should you outgrow that limitation then you could move the 
data to the cloud. Or you could load/unload data accordingly from disk. This 
would also be a nice indicator that your business is growing. Of course, it 
could just be that you are storing a lot of data. :)

If you need any help or ideas, let me know.

Best regards,

Mark Talluto
livecloud.io 
nursenotes.net 
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

Re: Issues with storage of data in stack

2018-03-08 Thread J. Landman Gay via use-livecode
I've found that sending binary data over the internet is risky. A zip file 
or base64 encoded file avoids most transit corruption.

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



On March 8, 2018 11:06:16 AM Lagi Pittas via use-livecode 
 wrote:



Hi Mike,

I have 60+ machines running windows7  embedded  running a POS/TILL
system also a few  tablets running windows and android with the same
system - wth abouth 8 lines of code added to work on Android.

 In the first version of the system I save the arrays which held all
the Clerks orders/totals etc and items into an external stack every
time they added an item.

I then saved the whole thing and cleared the  "dirty" flag   on shutdown.

If the"till"  program started and the dirty flag was true then system
would know it was a powercut and load all the "open"  orders and other
status information  etc.

I have users who have not had a problem in over 2 and a half  years
others who have 3 "tills" with no problems and just a few maybe (4 who
have had a corrupt stack maybe 1 to 3 times a years - 2 or three times
is  too many. There is no rhyme or reason because others have had
powercuts (6 in an hour ) with no damage but others can can switch off
without exiting the till properly without a problem and yet I can have
a corrupt stack with everything shut down properly.  So Now I have
removed that stack and  just save the arrays to  "general" config
table called TABS in sqlite in a row with an idkey of '99' other
IDkeys can save other configuration information- NOT ONE PROBLEM since
I have done this - go figure.

I'll make a posting on the forum with the code - not trying to teach
my granny to suck eggs here, but maybe some beginners on the forum
might find it useful - would have done in the beginning.


http://forums.livecode.com/viewtopic.php?f=7=30717

Regards lagi

On 7 March 2018 at 20:30, Mike Kerner via use-livecode
 wrote:

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


___
use-livecode mailing list
use-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-08 Thread Lagi Pittas via use-livecode
Hi Mike,

I have 60+ machines running windows7  embedded  running a POS/TILL
system also a few  tablets running windows and android with the same
system - wth abouth 8 lines of code added to work on Android.

 In the first version of the system I save the arrays which held all
the Clerks orders/totals etc and items into an external stack every
time they added an item.

I then saved the whole thing and cleared the  "dirty" flag   on shutdown.

If the"till"  program started and the dirty flag was true then system
would know it was a powercut and load all the "open"  orders and other
status information  etc.

I have users who have not had a problem in over 2 and a half  years
others who have 3 "tills" with no problems and just a few maybe (4 who
have had a corrupt stack maybe 1 to 3 times a years - 2 or three times
is  too many. There is no rhyme or reason because others have had
powercuts (6 in an hour ) with no damage but others can can switch off
without exiting the till properly without a problem and yet I can have
a corrupt stack with everything shut down properly.  So Now I have
removed that stack and  just save the arrays to  "general" config
table called TABS in sqlite in a row with an idkey of '99' other
IDkeys can save other configuration information- NOT ONE PROBLEM since
I have done this - go figure.

I'll make a posting on the forum with the code - not trying to teach
my granny to suck eggs here, but maybe some beginners on the forum
might find it useful - would have done in the beginning.


http://forums.livecode.com/viewtopic.php?f=7=30717

Regards lagi

On 7 March 2018 at 20:30, Mike Kerner via use-livecode
 wrote:
> 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

___
use-livecode mailing list
use-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-08 Thread dunbarx via use-livecode
Hi.

I store data in both external files and within the stack itself. Never used
a DB.

But no issues of any kind ever.

Craig Newman



--
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: how to copy a card?

2018-03-08 Thread dunbarx via use-livecode
Note that one can also copy a card, navigate to another spot in the same or
another stack, and paste. The advantage is that the copy can be inserted
anywhere in the card suite. This can all be done under script control.

Craig



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

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


Re: how to copy a card?

2018-03-08 Thread Bob Sneidar via use-livecode
Wouldn't it be great to clone TO a reference? Say, clone this card as "NewCard" 
to stack "MyStack2"? 

Bob S


> On Mar 7, 2018, at 22:38 , J. Landman Gay via use-livecode 
>  wrote:
> 
> [This message was identified as a phishing scam. Learn about phishing at 
> http://aka.ms/LearnAboutPhishing]
> 
> Use:
> 
> clone this card
> set the name of it to ""
> 
> --
> 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


tsNet and Digest Authentication - some problems or better said: missing knowledge

2018-03-08 Thread Matthias Rebbe via use-livecode
Hi,

i am trying to use the tsNet external to communicate with an Auerswald PABX 
which requires digest authentication.

The first connection is always successful  using  PUT URL …..
The second one isn´t. There is even no value returned.
When i use tsNetClose and tsNetInit before the 2nd connection then the 2nd 
connection is successful, because the complete authentication process is 
initiated from the beginning.
So this works so far
—>
tsnetClose
tsNetInit
put URL “http:…..”

But how can i use the already established connection? 
tsNetLibUrlReuseConnection FALSE does not help. 
Is it possible that i have to set the httpheader somehow for the 2nd connection?
I am not very happy to unload and reload the external every time.

I also tried to use tsNetGetSync. The first connection is also always 
successful, the 2nd not.

So what am i missing?

Regards,

Matthias



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



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

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

Re: tsNet documentation

2018-03-08 Thread Matthias Rebbe via use-livecode
Hi Charles,

thanks for confirming that digest authentication is supported.

Regards,
Matthias

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

> Am 08.03.2018 um 06:21 schrieb 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 
>>>  
>>> >> >>:
>>> 
>>> 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 
> 


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

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