Re: valueDiff for arrays

2018-08-07 Thread Quentin Long via use-livecode
Suggestion for the language-token for this function: "transplant". transplant [qualification] from [SourceArray] to [TargetArray] [qualification] is a pattern/expression which describes exactly which bits you want to move from SourceArray to TargetArray. If TargetArray doesn't exist, it should

Re: valueDiff for arrays?

2018-08-07 Thread Mark Waddingham via use-livecode
On 2018-08-08 00:20, Bob Sneidar via use-livecode wrote: I do stand corrected however, as I got the dgdata of a grid with 6 records, in the order they were added to the sql database, and then queried for. The keys are NOT in numerical order: 5 6 1 2 3 4 The keys function does the minimal work

Re: Windows: "not responding"

2018-08-07 Thread Paul Dupuis via use-livecode
On 8/7/2018 3:43 PM, Richard Gaskin via use-livecode wrote: > I don't mind opening a new issue for this, just wanted to see if doing > so would create a duplicate of something that's already there. Please open the issue in the quality center. If it is improvable, I would like to see it improved,

Crash log

2018-08-07 Thread Knapp Martin via use-livecode
What is the protocol for sending crash logs to Livecode? Do I just do a bug report or what? Just had a crash while printing in LC Business 9.0.1 Marty ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe,

Re: valueDiff for arrays?

2018-08-07 Thread Dick Kriesel via use-livecode
On Aug 7, 2018, at 5:47 PM, Alex Tweedly via use-livecode wrote: > > Is there an easy way to test whether an array is (currently) a sequence array > ? > > something easier than > put the extents of tArray into tmp > if item 1 of tmp = 1 AND item 2 of tmp = the number of elements in

Re: valueDiff for arrays?

2018-08-07 Thread Mark Wieder via use-livecode
On 08/07/2018 07:57 PM, Dick Kriesel via use-livecode wrote: On Aug 7, 2018, at 5:47 PM, Alex Tweedly via use-livecode wrote: Is there an easy way to test whether an array is (currently) a sequence array ? something easier than put the extents of tArray into tmp if item 1 of tmp =

LCB Performance

2018-08-07 Thread Brian Milby via use-livecode
This is a continuation of some code introduced in the "valueDiff" thread, but wanted to take it in a slightly different direction. We had some great success at getting a process that took over 50 seconds on my machine down to under 10 seconds. It isn't anything that we would actually use in

Re: valueDiff for arrays?

2018-08-07 Thread Mark Waddingham via use-livecode
On 2018-08-07 23:31, Mark Wieder via use-livecode wrote: On 08/07/2018 02:21 PM, Mark Waddingham via use-livecode wrote: However, the engine treats arrays which have all integer (string) keys starting at one and are dense (i.e. the number of elements == max(all keys)) from ones that aren't.

Re: valueDiff for arrays?

2018-08-07 Thread Alex Tweedly via use-livecode
On 07/08/2018 23:45, Mark Waddingham via use-livecode wrote: On 2018-08-07 23:31, Mark Wieder via use-livecode wrote: does that take it out of the 'special' category? Yes - unless the array's first key is 1, and it then has all integer keys up to and including its number of elements  then it

Re: valueDiff for arrays?

2018-08-07 Thread Richard Gaskin via use-livecode
Bob Sneidar wrote: > You can as I understand get the keys of an array, which returns a > string, then sort the string. I am unaware of any function that can > sort an array natively before it is returned. The array itself is a collection of pointers, grouped into buckets according to a hash

RE: Windows: "not responding"

2018-08-07 Thread Ralph DiMola via use-livecode
Same here. Many Windows apps do it. It seems that Windows can't tell the difference between heavy I/O and a true "Not Responding" I have seen this behavior since Win 3.1 and it hasn't changes all the way to Win 10. It especially happens when there is heavy I/O is on a SMB share. I suspect it's

Re: Android, local PDF and the Browser Widget

2018-08-07 Thread Bob Sneidar via use-livecode
Is the browser capable of opening a file on Android? Bob S > On Aug 7, 2018, at 13:25 , Dan Friedman via use-livecode > wrote: > > Can anyone tell me why this fails on Android, when it works on iOS and > desktop: > > put specialFolderPath("documents") & "myTemp.pdf" into fPath > put

Re: Windows: "not responding"

2018-08-07 Thread Richard Gaskin via use-livecode
IIRC, earlier discussions here about this do recognize that it's about a certain finickiness with Windows, but also acknowledged that this seems to happen more frequently in LC apps than others. Personally, I see this very rarely in anything other than LC, and in LC apps quite often.

Re: Windows: "not responding"

2018-08-07 Thread Paul Dupuis via use-livecode
On 8/7/2018 3:26 PM, Ralph DiMola via use-livecode wrote: > Also, I was able to reduce this by calls to WMPaint or in VB to DoEvents > while in a tight loop doing I/O. This brings me back to the never ending > question: When is the equivalent to "DoEvents" in LC? "Wait in time with > messages"

Re: valueDiff for arrays?

2018-08-07 Thread Bob Sneidar via use-livecode
Someone said, probably Mark, that numbered key arrays beginning with 1 will always return their keys sorted numerically. I always wondered why almost every other array seemed to scramble to order of it's keys, but datagrid arrays never did. Bob S > On Aug 7, 2018, at 14:31 , Mark Wieder via

Windows: "not responding"

2018-08-07 Thread Richard Gaskin via use-livecode
We've discussed many times here the anomaly in which an LC process on Windows is running quite fine, but when it's working really hard the OS starts monkeying with the window appearance, adding the string "application is not responding" in the title bar. In all cases I've see thus far, the

Re: Android, local PDF and the Browser Widget

2018-08-07 Thread Klaus major-k via use-livecode
Hi friends, > Am 07.08.2018 um 22:42 schrieb Bob Sneidar via use-livecode > : > Is the browser capable of opening a file on Android? > > Bob S > > >> On Aug 7, 2018, at 13:25 , Dan Friedman via use-livecode >> wrote: >> Can anyone tell me why this fails on Android, when it works on iOS and

Re: valueDiff for arrays?

2018-08-07 Thread Bob Sneidar via use-livecode
I do stand corrected however, as I got the dgdata of a grid with 6 records, in the order they were added to the sql database, and then queried for. The keys are NOT in numerical order: 5 6 1 2 3 4 I have never wrapped my head around why that is! Bob S > On Aug 7, 2018, at 15:12 , Bob

Re: Android and https

2018-08-07 Thread J. Landman Gay via use-livecode
On 8/7/18 2:38 PM, Dan Friedman via use-livecode wrote: If I try to access a https link/page in my Android app, I get empty (the result is empty too). If I do the same call on my iOS app, it’s fine. Is there some type of secure issue with LC 9.0.1 on Android? Or, am I supposed to flip a

Re: Android, local PDF and the Browser Widget

2018-08-07 Thread J. Landman Gay via use-livecode
On 8/7/18 3:25 PM, Dan Friedman via use-livecode wrote: put specialFolderPath("documents") & "myTemp.pdf" This returns on desktop: /Users//DocumentsmyTemp.pdf So I think you're writing to the wrong folder. Apparently iOS allows that, Android doesn't. Add a slash: put

Re: valueDiff for arrays?

2018-08-07 Thread Mark Waddingham via use-livecode
On 2018-08-07 17:15, Mark Wieder via use-livecode wrote: On 08/06/2018 08:18 PM, Mark Waddingham via use-livecode wrote: I'd expect that for two reasons. The first is that all array keys are interred strings (names) so integers need to first be converted to strings and then hashed into a

Re: Android and https

2018-08-07 Thread Dan Friedman via use-livecode
Jacqueline, Yes. Before attempting to display the PDF, I am downloading the PDF from my site to begin with. So, internet functionality is working (although, not https). -Dan On 8/7/18, 1:53 PM, "use-livecode on behalf of J. Landman Gay via use-livecode" wrote: On 8/7/18 2:38 PM, Dan

Re: valueDiff for arrays?

2018-08-07 Thread Richard Gaskin via use-livecode
Bob Sneidar wrote: > Someone said, probably Mark, that numbered key arrays beginning with 1 > will always return their keys sorted numerically. I always wondered > why almost every other array seemed to scramble to order of it's keys, > but datagrid arrays never did. Associative arrays are a

Re: valueDiff for arrays?

2018-08-07 Thread Bob Sneidar via use-livecode
You can as I understand get the keys of an array, which returns a string, then sort the string. I am unaware of any function that can sort an array natively before it is returned. Bob S > On Aug 7, 2018, at 15:02 , Richard Gaskin via use-livecode > wrote: > > Bob Sneidar wrote: > > >

Re: LC Builder and 3rd Part DLLs under Windows

2018-08-07 Thread Matthias Rebbe via use-livecode
Trevor, thank you so much for your example and for verifying that LCB can execute handlers in the dll. “Good luck” is well said, i need more than good luck. ;) Regards, Matthias > Am 07.08.2018 um 19:52 schrieb Trevor DeVore via use-livecode > mailto:use-livecode@lists.runrev.com>>: > >

Re: LC Builder and 3rd Part DLLs under Windows

2018-08-07 Thread Trevor DeVore via use-livecode
Matthias, I downloaded and installed the demo and was able to link to the DLL. 1. Create a folder named `TBarCode`. 2. In that folder create a `code/x86-win32` folder. 3. Copy the `TBarCode11.dll` and `zlib1.dll` (not positive this is required) files from the Program Files(x86) folder (NOT the

Re: Windows: "not responding"

2018-08-07 Thread Paul Dupuis via use-livecode
On 8/7/2018 1:58 PM, Richard Gaskin via use-livecode wrote: > We've discussed many times here the anomaly in which an LC process on > Windows is running quite fine, but when it's working really hard the > OS starts monkeying with the window appearance, adding the string > "application is not

RE: Windows: "not responding"

2018-08-07 Thread Ralph DiMola via use-livecode
Also, I was able to reduce this by calls to WMPaint or in VB to DoEvents while in a tight loop doing I/O. This brings me back to the never ending question: When is the equivalent to "DoEvents" in LC? "Wait in time with messages" does not always do it. Ralph DiMola IT Director Evergreen

Android and https

2018-08-07 Thread Dan Friedman via use-livecode
If I try to access a https link/page in my Android app, I get empty (the result is empty too). If I do the same call on my iOS app, it’s fine. Is there some type of secure issue with LC 9.0.1 on Android? Or, am I supposed to flip a switch somewhere? Thanks in advance! -Dan

Re: Windows: "not responding"

2018-08-07 Thread Richard Gaskin via use-livecode
Paul Dupuis wrote: On 8/7/2018 3:43 PM, Richard Gaskin via use-livecode wrote: I don't mind opening a new issue for this, just wanted to see if doing so would create a duplicate of something that's already there. Please open the issue in the quality center. If it is improvable, I would like

Re: Drag Drop State of Affairs

2018-08-07 Thread Bob Sneidar via use-livecode
No, and the topStack is the same before and after, which is the stack I am drag/dropping onto. Curiously, I cannot think of a time when the first drag/drop operation failed. It seems it's always on some subsequent drag/drop operation to the same object, which is why I suspect some state that

Re: Windows: "not responding"

2018-08-07 Thread Brian Milby via use-livecode
I don’t think this is an issue exclusive to LC. My main Access DB has code that will do the same thing. Sometimes things come back fine because it was just busy (SharePoint issues do cause it to get totally hung sometimes as well though). Thanks, Brian On Aug 7, 2018, 1:07 PM -0500, Paul

Android, local PDF and the Browser Widget

2018-08-07 Thread Dan Friedman via use-livecode
Can anyone tell me why this fails on Android, when it works on iOS and desktop: put specialFolderPath("documents") & "myTemp.pdf" into fPath put someRandomPDFData into url ("binfile:" & fPath) set the url of widget "Browser1" to fPath //I get a white screen I have also tried: set the url of

Re: Drag Drop State of Affairs

2018-08-07 Thread Knapp Martin via use-livecode
Have you found a work around for this Bob? Or filed a bug report? For me the problem exists whether in the IDE or a standalone. Marty > On Aug 3, 2018, at 3:20 PM, Bob Sneidar via use-livecode > wrote: > > No tamalies Jacque. With the stack unresponsive, I type "put the short name > of the

Re: valueDiff for arrays?

2018-08-07 Thread Mark Wieder via use-livecode
On 08/07/2018 02:21 PM, Mark Waddingham via use-livecode wrote: However, the engine treats arrays which have all integer (string) keys starting at one and are dense (i.e. the number of elements == max(all keys)) from ones that aren't. Not sure how to interpret that. If I create repeat with

Re: valueDiff for arrays?

2018-08-07 Thread Dick Kriesel via use-livecode
> On Aug 7, 2018, at 9:29 PM, Jerry Jensen via use-livecode > wrote: > >> On Aug 7, 2018, at 8:35 PM, Mark Wieder via use-livecode >> wrote: >> >> On 08/07/2018 07:57 PM, Dick Kriesel via use-livecode wrote: >>> On Aug 7, 2018, at 5:47 PM, Alex Tweedly via use-livecode >>> wrote:

Re: valueDiff for arrays?

2018-08-07 Thread Jerry Jensen via use-livecode
> On Aug 7, 2018, at 8:35 PM, Mark Wieder via use-livecode > wrote: > > On 08/07/2018 07:57 PM, Dick Kriesel via use-livecode wrote: >> On Aug 7, 2018, at 5:47 PM, Alex Tweedly via use-livecode >> wrote: >>> >>> Is there an easy way to test whether an array is (currently) a sequence >>>

LC Builder and 3rd Part DLLs under Windows

2018-08-07 Thread Matthias Rebbe via use-livecode
Hi, i make use of the Widgets in LC 9 very often and i am really impressed what is possible with LCB. I have no deep knowledge of LCB, but if i understand correctly then LCB is able to call OS APIs, right? If so, is it also possible to call functions of a 3rd party DLL under Windows? I know

Re: [OT] The problem with programming and how to fix it

2018-08-07 Thread Bob Sneidar via use-livecode
Huh. That's about the time I stopped using in it. I kept upgrading Supercard for years telling myself I would get back into it, but never really did. I was fully immersed in Foxpro at that point because my employer used SBT, which was written in Foxpro. Bob S > On Aug 6, 2018, at 11:26 ,

Re: [OT] The problem with programming and how to fix it

2018-08-07 Thread Bob Sneidar via use-livecode
Wait we might be onto something here! Make programming reference materials out of edible paper, like the stuff they wrap japanese candy in. Then as you read each page, you eat it! Bob S > On Aug 6, 2018, at 15:18 , Mark Waddingham via use-livecode > wrote: > > On 2018-08-06 21:49, Richard

Re: LC Builder and 3rd Part DLLs under Windows

2018-08-07 Thread Matthias Rebbe via use-livecode
Tom, there is a extension-course here > Am 07.08.2018 um 17:23 schrieb Tom Glod via use-livecode > : > > Hey Matthias, Just wondering what resources you used to get started in > LCB I have yet to dip my toes in that ..but I think I am ready.

Re: valueDiff for arrays?

2018-08-07 Thread Mark Wieder via use-livecode
On 08/06/2018 08:18 PM, Mark Waddingham via use-livecode wrote: I'd expect that for two reasons. The first is that all array keys are interred strings (names) so integers need to first be converted to strings and then hashed into a name and then hashed to the slot in the arrays hash table.

Re: Getting Started with DataGrid and another datagrid form

2018-08-07 Thread Bob Sneidar via use-livecode
Like I said, someone will have a more elegant way of doing it. :-) Bob S > On Aug 6, 2018, at 10:29 , zryip theSlug via use-livecode > wrote: > > Bob, > > A column template exists for each column of a dg table, so you can use any > control you want inside a datagrid column, including

Re: LC Builder and 3rd Part DLLs under Windows

2018-08-07 Thread Tom Glod via use-livecode
Hey Matthias, Just wondering what resources you used to get started in LCB I have yet to dip my toes in that ..but I think I am ready. On Tue, Aug 7, 2018 at 10:43 AM, Matthias Rebbe via use-livecode < use-livecode@lists.runrev.com> wrote: > Brian, > > thanks also. Yes, please. More

Re: valueDiff for arrays?

2018-08-07 Thread Mark Wieder via use-livecode
On 08/06/2018 08:58 PM, Brian Milby via use-livecode wrote: I've uploaded a stack with each version of the function. The last has some comments added as well. Mark's version is pretty close to the original, but did not return an ordered list (which is an implicit requirement). I added a sort

Re: LC Builder and 3rd Part DLLs under Windows

2018-08-07 Thread Trevor DeVore via use-livecode
Matthias, Yes it is possible. I don't know of any 3rd party DLL examples. Can you point me to a DLL you want to wrap? I may be able to put together the skeleton of an LCB extension for you to get started with. -- Trevor DeVore ScreenSteps www.screensteps.com On Tue, Aug 7, 2018 at 5:33 AM

Re: LC Builder and 3rd Part DLLs under Windows

2018-08-07 Thread Brian Milby via use-livecode
I have also started with libSodium (because it had a compiled dll I could try) if you want another example. I have not posted anything yet since it does not do anything very useful yet (it will initialize and generate a key pair but I have not done any of the parts to use the keys). Thanks,

Re: LC Builder and 3rd Part DLLs under Windows

2018-08-07 Thread Trevor DeVore via use-livecode
Actually, I do have a public example. Take a look at this winSparkle project: https://github.com/trevordevore/lc-winsparkle -- Trevor DeVore ScreenSteps www.screensteps.com On Tue, Aug 7, 2018 at 9:23 AM Trevor DeVore wrote: > Matthias, > > Yes it is possible. I don't know of any 3rd party

Re: LC Builder and 3rd Part DLLs under Windows

2018-08-07 Thread Matthias Rebbe via use-livecode
Brian, thanks also. Yes, please. More examples are welcomed. Regards, Matthias > Am 07.08.2018 um 16:29 schrieb Brian Milby via use-livecode > : > > I have also started with libSodium (because it had a compiled dll I could > try) if you want another example. I have not posted anything yet

Re: LC Builder and 3rd Part DLLs under Windows

2018-08-07 Thread Matthias Rebbe via use-livecode
Hi Trevor, thank you very much for your offer. I am interested in using the Barcode SDK for Windows from TEC-IT. https://www.tec-it.com/en/download/tbarcode/Download.aspx Regards, Matthias > Am 07.08.2018 um 16:23 schrieb Trevor

Re: LC Builder and 3rd Part DLLs under Windows

2018-08-07 Thread Tom Glod via use-livecode
thanks very much somehow that has eluded me. Will start on it tonight. On Tue, Aug 7, 2018 at 11:51 AM, Matthias Rebbe via use-livecode < use-livecode@lists.runrev.com> wrote: > Tom, > there is a extension-course here extension-course/> > > > Am 07.08.2018