Re: AES-256 Encryption Best Practices

2018-07-03 Thread Brian Milby via use-livecode
I just put the PHP on my server and it was able to handle the randombytes IV without issue. The demo does not generate a new IV for the returned data which it really should in production. From a security perspective, you assume that an attacker has access to the code. From the encrypted messag

Re: AES-256 Encryption Best Practices

2018-07-03 Thread Brian Milby via use-livecode
I’ll volunteer to add it to my community repo if desired. Thanks, Brian On Jul 3, 2018, 2:17 PM -0400, Tom Glod via use-livecode , wrote: > any chance this could go on github? > ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit th

Re: AES-256 Encryption Best Practices

2018-07-03 Thread Brian Milby via use-livecode
I think the IV vulnerability that I’m talking about is more theoretical than an actual concern. From what I’ve read the attacker needs to be able to control/influence what is being encrypted for knowledge of the next IV to help (so they can use a known plain text to test their key hypothesis).

Re: AES-256 Encryption Best Practices

2018-07-03 Thread Brian Milby via use-livecode
very helpful to a lot of livecode developers. > > > > On Tue, Jul 3, 2018 at 3:07 PM, Brian Milby via use-livecode < > use-livecode@lists.runrev.com> wrote: > > > I think the IV vulnerability that I’m talking about is more theoretical > > than an actual conc

Re: AES-256 Encryption Best Practices

2018-07-03 Thread Brian Milby via use-livecode
The problem is that with a known IV and the code, the next IV can be predicted if using the random function. If the generator was reseeded every time an IV was generated, that would remove the advance prediction issue. I didn't mean that the first IV could be guessed. Exploitation would be diffic

Re: Future support for Serial Coms

2018-07-04 Thread Brian Milby via use-livecode
There is not currently a library available that does what you want. With LCB, you could package your own. There are a couple of packages with code that interfaces with USB deices, but I don't know enough about Android to build them in a way that works with LCB. Here are a couple: https://github.

WebDocMaker / Online Dictionary

2018-07-04 Thread Brian Milby via use-livecode
I've finally updated my online version of the dictionary to the LC 9.0 release. In the process, I've posted the stack to my GitHub repo. https://github.com/bwmilby/lc-misc/tree/master/WebDocMaker The dictionary is available at: https://milby.us/lc/docs/api.html The guides are available at: http

Re: WebDocMaker / Online Dictionary

2018-07-04 Thread Brian Milby via use-livecode
t; > Michel F. Lukawecki > Longueuil, Canada > > > On 2018-Jul-4, at 19:00, Brian Milby via use-livecode > > wrote: > > > > I've finally updated my online version of the dictionary to the LC 9.0 > > release. In the process, I've post

Re: What are possible reasons for memory consumption going up on stack that isn't doing much?

2018-07-07 Thread Brian Milby via use-livecode
Is it possible that multiple overlapping messages are being spawned? You mention that the checks happen every 250ms... are you doing a send in time at the end of the check or at the start? Thanks, Brian On Jul 7, 2018, 7:21 PM -0400, Tom Glod via use-livecode , wrote: > So i've been watching th

Re: What are possible reasons for memory consumption going up on stack that isn't doing much?

2018-07-09 Thread Brian Milby via use-livecode
Pulling the fullclipboarddata could end up doing a bit of work depending on what is on it. You would probably be better off using the rawclipboarddata to avoid LC doing any processing just so you can detect changes. Under normal circumstances, the various flavors of content will reflect the sam

Re: Must have flexible row height for Datagrid Table

2018-07-11 Thread Brian Milby via use-livecode
Wondering if a widget would work for this. The tree widget doesn’t to a great job with extremely large data sets though. Thanks, Brian On Jul 11, 2018, 10:22 PM -0500, Tom Glod via use-livecode , wrote: > Update on this .. I'm coming to realize that dg isn't going to cut it > for my needs in

Re: Must have flexible row height for Datagrid Table

2018-07-11 Thread Brian Milby via use-livecode
And don't forget that the last piece of the AR improvement hasn't landed yet which will also improve DG performance. On Wed, Jul 11, 2018 at 11:14 PM, Richard Gaskin via use-livecode < use-livecode@lists.runrev.com> wrote: > Tom Glod wrote: > > > Update on this .. I'm coming to realize that

Browser Widget on Android

2018-07-15 Thread Brian Milby via use-livecode
I have a question/small favor to ask someone that develops on Android. When you place a browser widget on a stack and deploy to iOS, the content inside the widget is always at native resolution. If you use a resize handler or the GM to position the rect and a FullScreenMode of noScale, everything

Re: Browser Widget on Android

2018-07-15 Thread Brian Milby via use-livecode
> fullescreenMode (in portrait,) remnants of the previous layout were visible > underneath the new layout. > > More instruction would be good, feel free to write me privately. I didn't > examine the scripts. > > > On 7/15/18 10:04 AM, Brian Milby via use-livecode wrote:

Re: Why you should sanitize input data

2018-07-16 Thread Brian Milby via use-livecode
It is all about input validation. Access to a SQL server is reasonable. Access to the shell is something that probably should be avoided. In either case you need to be sure the user/hacker cannot send requests that you do not allow. Thanks, Brian On Jul 16, 2018, 9:51 AM -0500, Bob Sneidar via u

Re: Browser Widget on Android

2018-07-16 Thread Brian Milby via use-livecode
I can't do the testing right now, but I think that your "portrainUI" handler is causing the issue. In there you restrict the orientations to portrait only. If you are doing that to force the device to rotate, you probably need to add another one at the end that unlocks the device so that it can b

Re: iOS and video mirroring

2018-07-17 Thread Brian Milby via use-livecode
It is much more simple... it is up to the app author. If they don’t want you to display on an external screen they disable the ability. I have my internet through the cable company. They have an app that shows live local stations. They don’t allow it to be shown on a big screen unless you subsc

Re: Datagrids and Nested Behaviors

2018-07-20 Thread Brian Milby via use-livecode
Check out “before” and “after” in the dictionary (control structure). They allow what you are wanting. On Jul 20, 2018, 1:44 PM -0500, Bob Sneidar via use-livecode , wrote: > I believe I may have mispoken in this thread. Setting the behavior of an > object does NOT insert the behavior script in

Re: Datagrids and Nested Behaviors

2018-07-20 Thread Brian Milby via use-livecode
I just tried a simple test. I created a stack, added a DG and a button. I used the example at the top of this thread to set the behavior. I then added another DG to the card. Now when I double click on either DG, the new behavior is used. Is that what you are seeing and what you are intending?

Re: Datagrids and Nested Behaviors

2018-07-20 Thread Brian Milby via use-livecode
It is not a bug. You can't save a behavior on a script only stack, they much be added after they loaded. There is a new syntax to make it automatic, but that wouldn't help here. In the IDE, enable "Show IDE stacks in lists", open the Project Browser. Find revdatagridlibrarybehaviorsdatagridbutto

Re: Datagrids and Nested Behaviors

2018-07-20 Thread Brian Milby via use-livecode
@Richard, That is precisely what I saw when I did my test. (And DG3 was in a different stack.) I tried manually replacing the old button with one in the stack and that completely broke the DG. @Bob Another option to get script in front of the library would be to set the script of: button id 1005

Re: adding a Shared (Background) Group after the fact

2018-07-21 Thread Brian Milby via use-livecode
>From the object menu, select place group. It can be done in code if you have too many to do by hand. On Jul 21, 2018, 8:32 AM -0500, Tom Glod via use-livecode , wrote: > Hi Folks, I failed to think my stack through ahead of time and forgot to > add a shared group to my first card before I made th

Re: Help with Bug #19550: Add support for symlinks to standalone builder

2018-07-21 Thread Brian Milby via use-livecode
Doing a little digging on this. I'm pretty sure this impacts iOS in the same was as MacOS. private command __revSBCopyFolder User and group is copied if MacOS, but not Linux private command __revSBCopyFile Probably good that links are handled as files, because they technically are. Prior to lin

Re: Help with Bug #19550: Add support for symlinks to standalone builder

2018-07-21 Thread Brian Milby via use-livecode
e-livecode < use-livecode@lists.runrev.com> wrote: > Brian, > > I can definitely test it out. I wouldn’t worry about symbolic links outside > the folder right now. I don’t believe it affects .frameworks. > > -- > Trevor DeVore > > On Sat, Jul 21, 2018 at 10:24 AM Bria

Re: Help with Bug #19550: Add support for symlinks to standalone builder

2018-07-21 Thread Brian Milby via use-livecode
Found something very interesting and I think it may be a bug (at least an anomaly)... if you rename a symbolic link to a folder, the folder that is pointed to is renamed vice the link consider the following (-> denotes a symbolic link) ~/tmp/ ~/tmp2 -> ./tmp/ rename "~/tmp2" "~/tmp3" results in

Re: Help with Bug #19550: Add support for symlinks to standalone builder

2018-07-22 Thread Brian Milby via use-livecode
PR 6611 created for this issue on develop-9.0 https://github.com/livecode/livecode/pull/6611 The submitted change will preserve symbolic links. Relative links that go outside of the included directory will probably break. Absolute links may not work on other machines. All framework links should

Re: Datagrids and Nested Behaviors

2018-07-23 Thread Brian Milby via use-livecode
So that is something that could be fixed pretty easily. I’m thinking a script local to store the value which will offset the additional work to figure it out the first time. Logic would be to check for some key object and if not found then move up the behavior chain a level and look. Could eith

Re: Data Persistence

2018-07-23 Thread Brian Milby via use-livecode
I built a time tracking app that had the same type of persistence requirement. I used a text file for the data store. Each time any field had a change, the data was saved again. When loading the app it would import the current data. Data was only cleared on request (and I would only allow that a

Re: Datagrids and Nested Behaviors

2018-07-23 Thread Brian Milby via use-livecode
What OS are you using? It will be inside the IDE, but will get copied into your app as well. You will probably need admin rights to edit. I would do it in an external editor too. It probably would be an enhancement request (therefore 9.1), but I would be happy to submit a PR against a BZ report

Re: Datagrids and Nested Behaviors

2018-07-23 Thread Brian Milby via use-livecode
Here is my slight modification to the suggestion: local sResourceStack private function _ResourceStack local theStack, theCharNo if sResourceStack is empty then put the behavior of me into theStack repeat if trueWord -1 of theStack is "revDataGridLibrary" or theStack i

Re: Datagrids and Nested Behaviors

2018-07-24 Thread Brian Milby via use-livecode
ls/Toolset/palettes/revdatagridlibrary/behaviorsdatagridbuttonbehavior.livecodescript" > 573,188,1,_Initialize > > I'll poke around later. > > Bob S > > > > On Jul 23, 2018, at 22:12 , Brian Milby via use-livecode > > wrote: > > > > local sResourceStac

Re: Datagrids and Nested Behaviors

2018-07-24 Thread Brian Milby via use-livecode
old behavior > button, the datagrid now works! You guys are freaking geniuses! > > Bob S > > > > On Jul 24, 2018, at 07:57 , Brian Milby via use-livecode < > use-livecode@lists.runrev.com> wrote: > > > > I’ll put something together tonight. The code in the libr

Re: Datagrids and Nested Behaviors

2018-07-24 Thread Brian Milby via use-livecode
Posted a demo stack showing a DG with a behavior button in front of the DG library behavior. https://github.com/bwmilby/lc-misc/tree/master/NestedDGBehavior There is an image of the stack uploaded as well. The preOpenStack handler will update the script (LC9) which will then be available until LC

Re: Datagrids and Nested Behaviors

2018-07-25 Thread Brian Milby via use-livecode
communities and their spirit of > sharing and mutual support. We seem to be the last bastion. > > Bob S > > > > On Jul 24, 2018, at 16:31 , Brian Milby via use-livecode < > use-livecode@lists.runrev.com> wrote: > > > > PR submitted on Bug 21427. > > http

Re: Data Persistence

2018-07-27 Thread Brian Milby via use-livecode
Use case is a major driver though. If you have no need to hand edit a file, then LSON is an efficient and easy way to store the data. It also has the benefit of being able to easily store binary data if needed. On Fri, Jul 27, 2018 at 5:40 PM, Richard Gaskin via use-livecode < use-livecode@lists

Re: LiveCode Server on CentOS 6?

2018-07-30 Thread Brian Milby via use-livecode
Last migration that I had was pretty seamless. They migrated everything to a new VPS for me to check out before flipping the switch to migrate to the upgrade. May be worth checking out if they do the same sort of thing. Thanks, Brian On Jul 30, 2018, 1:41 AM -0500, Keith Clarke via use-livecode

Re: Data Persistence

2018-07-31 Thread Brian Milby via use-livecode
And don’t forget about the way mobile can dump everything at any time too. So you would end up with mobile disk and memory as the cache for the upstream DB server. On Jul 31, 2018, 11:23 AM -0500, Bob Sneidar via use-livecode , wrote: > That's an interesting strategy. I'm gonna mull over this an

Re: LiveCode Server on CentOS 6?

2018-07-31 Thread Brian Milby via use-livecode
In addition to bug fixes, I found this in the release notes for glibc 2.13: New optimized string functions for x86-64: strnlen (SSE2), strcasecmp (SSE2, SSSE3, SSE4.2), strncasecmp (SSE2, SSSE3, SSE4.2) Implemented by Ulrich Drepper. This is something that is probably beneficial to string fu

Re: Data Persistence

2018-07-31 Thread Brian Milby via use-livecode
Here is one direction... yamlFileToArray https://github.com/trevordevore/levure/blob/master/framework/levure.livecodescript Thanks, Brian On Jul 31, 2018, 3:03 PM -0500, Alex Tweedly via use-livecode , wrote: > On 31/07/2018 20:03, Richard Gaskin via use-livecode wrote: > > For all of JSON's JS-

Re: Newbie Regex confusion

2018-08-01 Thread Brian Milby via use-livecode
Don’t have time to test right now but something along these lines: \b[0-9] ?(yr|yo|year) \b is a word break ? Means 0 or 1 of previous char (space) | is alternate separator Thanks, Brian On Aug 1, 2018, 11:58 AM -0500, Stephen MacLean via use-livecode , wrote: > Hi David, > > While no expert on

Re: New Apple iPad & Chipset

2018-08-02 Thread Brian Milby via use-livecode
I have a new iPad and it works for me from the normal App Store. I have the same model as below and am at 11.4.1. On Aug 2, 2018, 2:56 PM -0500, Randy Hengst via use-livecode , wrote: > Hi All, > > Well, school districts around the United States are starting to get things > going for new school

Re: put URL oddity

2018-08-03 Thread Brian Milby via use-livecode
For me I have to include the protocol. So the “http://“ needs to be there to get any output. Thanks, Brian On Aug 3, 2018, 12:08 PM -0500, Stephen MacLean via use-livecode , wrote: > Hi All, > > I’m experiencing at put URL oddity: > > Entering: put URL "https://www.google.com” into the message b

Re: Browser persistence from card to card

2018-08-03 Thread Brian Milby via use-livecode
I have not tried this, but have you considered a background group for the browser widget? You could hide and unhide it possibly? Thanks, Brian On Aug 3, 2018, 8:45 AM -0500, Tom Glod via use-livecode , wrote: > Hi folks, I don't know the reasoning behind this, but... > > when using the brows

Re: put URL oddity

2018-08-03 Thread Brian Milby via use-livecode
t; > On Fri, Aug 3, 2018 at 1:49 PM, Stephen MacLean via use-livecode < > > > > > use-livecode@lists.runrev.com> wrote: > > > > > > > > > > > Hi Brian, > > > > > > > > > > > > Thanks for the reply, but I’m conf

Re: valueDiff for arrays?

2018-08-03 Thread Brian Milby via use-livecode
"symmetric difference" will get you the first part (unique keys) You could shorten the compare loop by using "intersect" (to get common keys) function getKeys pLeft, pRight local tIntersect, tResult intersect pLeft with pRight into tIntersect repeat for each key tKey in tIntersect

Re: valueDiff for arrays?

2018-08-03 Thread Brian Milby via use-livecode
(As Mark said, if the values are different, which value would you want in the array?) ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runre

Re: valueDiff for arrays?

2018-08-03 Thread Brian Milby via use-livecode
out what to name the beast too... On Fri, Aug 3, 2018 at 6:54 PM, Mark Wieder via use-livecode < use-livecode@lists.runrev.com> wrote: > On 08/03/2018 04:26 PM, Brian Milby via use-livecode wrote: > >> "symmetric difference" will get you the first part (unique keys)

Re: A poor man's app updater

2018-08-03 Thread Brian Milby via use-livecode
/Library is going to have the same permission issue, but /Users/username/Library... would be fine. The down side is that the user can accidentally or intentionally mess with stuff stored there more easily that something built into the app or stored in the Applications/Program Files directories (al

Re: A poor man's app updater

2018-08-03 Thread Brian Milby via use-livecode
Yes, specialFolderPath would be good to use. On a desktop, I'm not sure that I'd want non-user facing data stored in the documents location unless you configure it to be hidden. Windows and Mac both have "support" folders defined. "library" would be the place on iOS. Android doesn't have one th

Re: valueDiff for arrays?

2018-08-03 Thread Brian Milby via use-livecode
Other than the fact that coding is fun :) On Fri, Aug 3, 2018 at 8:15 PM, Mark Wieder via use-livecode < use-livecode@lists.runrev.com> wrote: > On 08/03/2018 05:16 PM, Brian Milby via use-livecode wrote: > > Of course, then we have to figure out what to name the beast too... >

Re: valueDiff for arrays?

2018-08-04 Thread Brian Milby via use-livecode
On Sat, Aug 4, 2018 at 10:57 AM, Mark Waddingham via use-livecode < use-livecode@lists.runrev.com> wrote: > On 2018-08-04 04:00, Brian Milby via use-livecode wrote: > >> Other than the fact that coding is fun :) >> > > Yes - but coding in LCS is much more fun, quicke

Re: valueDiff for arrays?

2018-08-04 Thread Brian Milby via use-livecode
On Sat, Aug 4, 2018 at 11:33 AM, Richard Gaskin via use-livecode < use-livecode@lists.runrev.com> wrote: > This one's not at all hard to write, just floated the idea to see if > others saw it suitable to add to the "convenience" functions already in the > language, such as: > > @Richard, What was

Re: valueDiff for arrays?

2018-08-04 Thread Brian Milby via use-livecode
I guess I'll have to admit I had to do the line-by-line to see it, but once I did I realized what the problem was. Pointers and reference counting is one thing that I still really need to think about when looking at lower level code. That is one thing that really does make LCS nice. LCB too for

Re: valueDiff for arrays?

2018-08-04 Thread Brian Milby via use-livecode
On Sat, Aug 4, 2018 at 1:06 PM, Mark Wieder via use-livecode < use-livecode@lists.runrev.com> wrote: > On 08/04/2018 09:36 AM, Mark Waddingham via use-livecode wrote: > >> On 2018-08-04 18:25, Mark Wieder via use-livecode wrote: >> > > Heh - well your pseudo-code just essentially made my point for

Re: DataGrid image display woes

2018-08-04 Thread Brian Milby via use-livecode
Wow, and Trevor knew right away... pretty impressive! ___ 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-livec

Re: valueDiff for arrays?

2018-08-04 Thread Brian Milby via use-livecode
Plugins should probably be de-scriptified for distribution for this reason. A similar argument could be made for some IDE library code too. I have to wonder if there is any performance impact to the number of stacks the IDE has to deal with now that so much is scriptified. (The list of stacks is

Re: datagrid scrolling question

2018-08-04 Thread Brian Milby via use-livecode
My question is why use the button? Loop through the data in the grid and make the tsnet call manually for each line. If the button is calling a script outside of the DG, then you can use the same call. Then you don’t have to do any of those things to figure out the name of the row group. On Aug

Re: valueDiff for arrays?

2018-08-04 Thread Brian Milby via use-livecode
On Sat, Aug 4, 2018 at 6:14 PM, Mark Wieder via use-livecode < use-livecode@lists.runrev.com> wrote: > On 08/04/2018 11:55 AM, Mark Waddingham via use-livecode wrote: > > Remember that this isn't a unique problem to LiveCode - script only stacks >> (particularly how we've grown to use them) are ak

Re: valueDiff for arrays?

2018-08-04 Thread Brian Milby via use-livecode
Here is code that only uses LCS to accomplish the goal (only returning the keys where they exist in both arrays but the values are different). This is made to be similar to the way the existing functions work (with the option to mutate). command valueDiff @pDestinationA, @pLeftA, pRightA local

Re: valueDiff for arrays?

2018-08-04 Thread Brian Milby via use-livecode
I think Mark's code had a typo (left returned too many keys), but even when corrected it takes half the time as a pure LCS solution. Here's my modification: function bwmValueDiff pLeft, pRight local tResult intersect pLeft with pRight into tResult["1"] repeat for each key tKey in tResult

Re: valueDiff for arrays?

2018-08-04 Thread Brian Milby via use-livecode
I have not been able to locate the earlier conversation on pass by reference vice value. I did a quick test and it took 100,000 loops to be able to get a difference that was obvious. My test was to construct simple functions that took 1 to 3 parameters. 3 functions used all pass by value, 3 func

Re: valueDiff for arrays?

2018-08-05 Thread Brian Milby via use-livecode
Current filter [{lines | items | keys | elements} of] filterSource {with | without | [not] matching} [{wildcard pattern | regex pattern}] filterPattern [into targetContainer] Possible Suggestion filter [{lines | items | keys | elements} of] filterSource {{with | without | [not] matching} [{wi

Re: valueDiff for arrays?

2018-08-05 Thread Brian Milby via use-livecode
Or to include new modifiers: {keeping | discarding | with | without | [not] matching} Which if not using the “into” form the first two make the statement much clearer as to the intent. Thanks, Brian ___ use-livecode mailing list use-livecode@lists.run

Re: valueDiff for arrays?

2018-08-05 Thread Brian Milby via use-livecode
Probably better: filter [{lines | items | keys | elements} of] filterSource {keeping | discarding | with | without | [not] matching} {[{wildcard | regex} pattern] filterPattern | where filterExpression} [into targetContainer] So Monte’s example would be: filter keys of tFoo keeping where tFoo

Re: valueDiff for arrays?

2018-08-05 Thread Brian Milby via use-livecode
I like A. Here is my take on the actual dictionary syntax: filter filterSource by {keeping | discarding} [{lines | items | keys | elements}] {{with | without | [not] matching} {[{wildcard | regex} pattern] filterPattern | where filterExpression} [into targetContainer] Not sure about leaving the

RE: datagrid scrolling question

2018-08-05 Thread Brian Milby via use-livecode
You can get/put data from/into the grid one row at a time without needing to figure out the group name, so you could have it update in real time in your external button. You should be able to use the same behavior script (possibly with a slight modification) everywhere. I’m not at a computer ri

Re: valueDiff for arrays?

2018-08-05 Thread Brian Milby via use-livecode
Intersect is an engine implementation of something that can be done in pure LCS. I wrote a version of the function you needed that only used LCS without the engine optimized functions. My function only iterates over an array once (instead of 3 times) yet takes twice as long. It deletes keys from

Re: valueDiff for arrays?

2018-08-05 Thread Brian Milby via use-livecode
So this syntax: filter filterSource by [keeping | discarding] [[the] {lines | items | keys | elements}] {matching [wildcard | regex] pattern filterPattern | where filterExpression} [into targetContainer] Would allow a shortened version: filter X by matching pattern "regex" into Z Which would expan

Re: valueDiff for arrays?

2018-08-05 Thread Brian Milby via use-livecode
Earlier in this thread it was mentioned that LCS doing a loop once would probably outpace the engine looping 2 times + a LCS loop at some point. I decided to see if I could figure out a point where this might take place. My test was pretty simple. I set a target number of elements for each array.

Re: valueDiff for arrays?

2018-08-05 Thread Brian Milby via use-livecode
I posted a stack with the valueDiff code tests that I was doing if anyone is interrested: https://milby.us/lc/ValueDiff.livecode.zip ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage you

Re: valueDiff for arrays?

2018-08-05 Thread Brian Milby via use-livecode
I can speed it up by 10% just be replacing the "add 1 to" with "put true into". The first if would lose the ">0". A single pass went from 50s to 44s on my iMac. On Sun, Aug 5, 2018 at 9:36 PM, Richard Gaskin via use-livecode < use-livecode@lists.runrev.com> wrote: > Mark Waddingham wrote: > > >

Re: valueDiff for arrays?

2018-08-05 Thread Brian Milby via use-livecode
< use-livecode@lists.runrev.com> wrote: > I’m fairly sure you could speed it up by continuing to add keys to p and > returning that instead of building the list R. > > > On 6 Aug 2018, at 1:24 pm, Brian Milby via use-livecode < > use-livecode@lists.runrev.com> wrote: &

Re: Start using stack - Loading stack libraries

2018-08-06 Thread Brian Milby via use-livecode
On my IDE, mainstacks is currently 204. The stacks are stored in a linked list, so no limit other than memory and performance. Thanks, Brian On Aug 6, 2018, 7:14 AM -0500, Stephen MacLean via use-livecode , wrote: > > > On Aug 6, 2018, at 8:05 AM, Paul Dupuis via use-livecode > > wrote: > > >

Re: valueDiff for arrays?

2018-08-06 Thread Brian Milby via use-livecode
Ah, that is what I was missing (numtobyte)... I knew that 4000 seconds wasn't right :) I was able to shave a bit more off by only calling numtobyte twice (17s to 12s for single pass): function get_primes pN local tMroot, tPrimes, tIsItPrime, tYes, tNo put numtobyte(66) into tYes put numto

Re: valueDiff for arrays?

2018-08-06 Thread Brian Milby via use-livecode
2 should be included, but the original optimized version skipped it. Thanks, Brian On Aug 6, 2018, 6:25 PM -0500, Niggemann, Bernd via use-livecode , wrote: > This also helps a bit. Where is Hermann? > > - > function get_primes pN > local tMroot, tPrimes, tIsItPrime, tYes, tNo

Re: valueDiff for arrays?

2018-08-06 Thread Brian Milby via use-livecode
button "Array (original)" Found 664579 primes in 51.543966 seconds button "Array (bwm)" Found 664579 primes in 49.139622 seconds button "Array (mark)" Found 664579 primes in 43.483821 seconds button "Byte (alex)" Found 664579 primes in 15.016109 seconds button "Byte (bwm)" Found 664579 primes in 11

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

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 Dupuis

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 produ

Re: Array converted to text in IDE...

2018-08-08 Thread Brian Milby via use-livecode
Do you have an example of the problem? The PI uses the tree view widget and should handle arrays. The one possible issue would be if the key had a comma which could cause issues (don’t think the PI has changed to support that but I do know an update to the widget is done - pathDelimiter) Thanks

Re: How to get LiveCode to return 'Today' & 'Now'?

2018-08-09 Thread Brian Milby via use-livecode
the date the time Thanks, Brian On Aug 9, 2018, 8:56 AM -0500, Keith Clarke via use-livecode , wrote: > Hi folks, > Please can anyone share the magic syntax to > > put today into tDate > > put now into the tTime > > I haven’t found a magic keyword to seed the docs or Google. > Thanks > Keith > __

Re: Regaining IDE Efficiency: Property Inspector

2018-08-09 Thread Brian Milby via use-livecode
I’ve done a bit of work in the tree widget, so I can take care of submitting a PR against a bug/enhancement request there. Thanks, Brian On Aug 9, 2018, 9:56 AM -0500, Bob Sneidar via use-livecode , wrote: > I'm using rc1, and the PI issues persist so far as I can see. As I mentioned, > the ele

Re: Regaining IDE Efficiency: Property Inspector

2018-08-09 Thread Brian Milby via use-livecode
- The PI tabs (Basic, Contents, Custom...) are one thing that is almost more efficient now than in 6. Good! But still needs improvement. I say "almost" efficient because the little tab buttons are way too small - about 11x10 px on my screen. That's takes more effort and concentration to click, and

Re: Regaining IDE Efficiency: Property Inspector

2018-08-09 Thread Brian Milby via use-livecode
I've briefly looked at a few issues and have some comments: I should be able to put together something on the Custom Properties portion of the PI. I'm looking at the code and am not sure yet if the change needs to be in the widget, the PI, or both. I think that the widget should have a warning

Tree View / Custom Properties PI

2018-08-09 Thread Brian Milby via use-livecode
Before going too far, I'd like to get some feedback on the best way to address one of the issues that Curry brought up. Currently, when in the Tree View widget (which is used in the Custom Properties PI), if you click on the "+" icon to add a new array key, the value in the existing key is lost if

Re: Tree View / Custom Properties PI

2018-08-10 Thread Brian Milby via use-livecode
Events are sent when the button is clicked, just need to verify everything. It may require a different message, but have not gotten that far. Modifying the widget is easy though. Thanks, Brian On Aug 10, 2018, 10:24 AM -0500, Bob Sneidar via use-livecode , wrote: > And the + button is actually

Re: Regaining IDE Efficiency: Property Inspector

2018-08-10 Thread Brian Milby via use-livecode
Scroll wheel is set to move the whole group, so any individual control is not touched. It does not move any content itself, just the whole “card”. Thanks, Brian On Aug 10, 2018, 11:32 AM -0500, Mark Wieder via use-livecode , wrote: > On 08/09/2018 07:47 PM, Brian Milby via use-livecode wr

Re: Livecode Global

2018-08-10 Thread Brian Milby via use-livecode
I’m biased since I gave a talk, but it was good. We do have 2 more. Thanks, Brian On Aug 10, 2018, 9:59 AM -0500, Tom Glod via use-livecode , wrote: > This might sound like a dumb question, but are the livecode global events > still going on for the remainder of the year? we just had one las

Re: valueDiff for arrays?

2018-08-10 Thread Brian Milby via use-livecode
I do it both ways, the problem is that behavior scripts created for maintaining a stack (version control) are inconvenient in the IDE. I've thought about suggesting a multiple step scriptify for IDE tools. The first step would be to create a card to house all behavior buttons. The first round wo

Re: valueDiff for arrays?

2018-08-10 Thread Brian Milby via use-livecode
Aug 4, 2018 at 12:00 PM Brian Milby via use-livecode < > use-livecode@lists.runrev.com> wrote: > > > Plugins should probably be de-scriptified for distribution for this > > reason. > > > > This would be very bad for Navigator. Navigator shows multiple copies of &g

Re: Navigator v 6 is out

2018-08-10 Thread Brian Milby via use-livecode
Very nice. (I did notice that your collapse code still has an apparent debug msg put with a couple of numbers). I'll take it for a spin and see if I notice anything (but kind of doubt I will). Thanks, Brian On Fri, Aug 10, 2018 at 7:56 PM, Geoff Canyon via use-livecode < use-livecode@lists.runre

Re: Using stackoverflow.com

2018-08-13 Thread Brian Milby via use-livecode
I think GitHub could be a great place to store/share stacks. Here is an example of what is possible: https://github.com/bwmilby/lc-misc/tree/master/NestedDGBehavior That is a binary stack but includes a readme.md that links to a screen shot and all scripts are exported from the stack and are vie

Re: stack rect with decorations?

2018-08-13 Thread Brian Milby via use-livecode
the effective rect Thanks, Brian On Aug 13, 2018, 9:57 PM -0500, Richard Gaskin via use-livecode , wrote: > My dictionary doesn't work and I don't see what I need in the See Also > for the online dicts, so maybe someone here remembers: > > How do I specify that I want to set the rect of a stack w

Re: Navigator v 6 is out

2018-08-14 Thread Brian Milby via use-livecode
Strange... alt key works on my Win10 laptop. On Tue, Aug 14, 2018 at 9:05 PM, Mark Wieder via use-livecode < use-livecode@lists.runrev.com> wrote: > On 08/14/2018 04:37 PM, Geoff Canyon via use-livecode wrote: > >> I've updated to fix several reported issues, and update the Find In >> Scripts >>

Re: stack rect with decorations?

2018-08-14 Thread Brian Milby via use-livecode
6.0 according to the dictionary. Thanks, Brian On Aug 14, 2018, 11:08 PM -0500, Richard Gaskin via use-livecode , wrote: > Thanks. I had thought I'd tried that and it didn't work, but I tried > again at your prompting and indeed it works well, even as far back as v6.7. > > Do you recall when the

Re: copying large string from clipboard is slooooooooooooooooooooooooooooow

2018-08-15 Thread Brian Milby via use-livecode
Several keys cause the engine to perform work on the data before returning it. I would compare with pulling data from the raw clipboard to ensure the engine is not manipulating it first. Thanks, Brian On Aug 15, 2018, 4:25 PM -0500, Richard Gaskin via use-livecode , wrote: > Tom Glod wrote: > >

Re: Data Persistence

2018-08-15 Thread Brian Milby via use-livecode
I don’t think you can count on the shutdown message, so you would export on each change. Arrays can use text for the key, so you could make things easier by using loops and field names. Thanks, Brian On Aug 15, 2018, 4:58 PM -0500, John McKenzie via use-livecode , wrote: > > > Hello again, eve

Re: copying large string from clipboard is slooooooooooooooooooooooooooooow

2018-08-15 Thread Brian Milby via use-livecode
The problem with the fullClipboardData and clipboardData is that when you ask for a text key type that isn't on the system clipboard, then LiveCode will generate it for you. So if you ask for styled text, first it will just give you styled text from the clipboard. If not available, it will try fo

Re: copying large string from clipboard is slooooooooooooooooooooooooooooow

2018-08-16 Thread Brian Milby via use-livecode
Sneidar via use-livecode , wrote: > Oh no kidding! I didn't realize that! I thought the clipboard created ALL the > key types when it imported, but it makes more sense (more efficient) doing it > on the fly. > > Bob S > > > > On Aug 15, 2018, at 19:44 , Brian Mi

Re: filter list_of_files with REGEX xyz?

2018-08-17 Thread Brian Milby via use-livecode
Pattern “*.(jpe?g|png|gif)” Thanks, Brian On Aug 17, 2018, 6:44 AM -0500, Klaus major-k via use-livecode , wrote: > Hi friends, > > I know how to: > ... > filter list_of_files with "*.jpg" > ... > But REGEX stuff is way over my head. :-/ > > Can anyone provide the regex/pattern syntax for filteri

<    1   2   3   4   5   6   7   8   9   10   >