Re: Okay, I think I'm brain damaged -- nope, I figured it out

2013-09-13 Thread Geoff Canyon
Can you post your code? I didn't see that. Here's mine for the two tests I did, and a simple put after looks 50% faster (90mb vs. 60mb): Variable by reference: 6000 on mouseUp put 10 + the long seconds into T repeat repeat 10 append "xx", R end repeat

Re: Okay, I think I'm brain damaged -- nope, I figured it out

2013-09-13 Thread Geoff Canyon
On Thu, Sep 12, 2013 at 6:06 PM, Mark Wieder wrote: > OTOH, this scales linearly and is faster than "before", "after", or > "into": on a half-fast dual-core linux box I get 103 ticks for a > million iterations. Even with the overhead of the handler call, it > looks like this avoids making a copy

Re: Okay, I think I'm brain damaged -- nope, I figured it out

2013-09-13 Thread Mark Wieder
Geoff- Friday, September 13, 2013, 11:01:56 PM, you wrote: > I'm pretty sure put after does not make a copy. It does have to find the > end of the string in order to append to it. I did timings, I'll post the > results in a minute... Nonetheless, the solution I posted using a variable by referen

Re: Okay, I think I'm brain damaged -- nope, I figured it out

2013-09-13 Thread Geoff Canyon
On Thu, Sep 12, 2013 at 3:20 PM, FlexibleLearning.com < ad...@flexiblelearning.com> wrote: > Is 'put "something" BEFORE myVariable' quicker? That way, the engine > doesn't > have to track to the end each time. > Definitely not -- it may not have to find the end, but it has to shove the whole str

Re: Okay, I think I'm brain damaged -- nope, I figured it out

2013-09-13 Thread Geoff Canyon
On Thu, Sep 12, 2013 at 1:26 PM, Mark Wieder wrote: > Does "put after" always make an extra copy? Can you get to myVariable > by reference and avoid the extra copy? > I'm pretty sure put after does not make a copy. It does have to find the end of the string in order to append to it. I did timin

Re: Okay, I think I'm brain damaged -- nope, I figured it out

2013-09-13 Thread Geoff Canyon
On Thu, Sep 12, 2013 at 1:18 PM, Richard Gaskin wrote: > If the final output is going to disk, you may find that opening the output > file for append yields what I believe is the fastest write mode (CouchDB > and some others are append-only). Perhaps buffering some of the output and > appending i

Re: Trying a custom handler for several math fields

2013-09-13 Thread Geoff Canyon
On Fri, Sep 13, 2013 at 9:57 AM, wrote: > Since LC uses strings as its base unit, it does require a bit more > management. Of course, this also offers exquisite control over those > strings. > > > So although Excel, for example, knows that a value of "$50" in a cell is > in actuality a number, LC

Re: copy on a group loses the htmltext of fields

2013-09-13 Thread J. Landman Gay
A field with shared text will not keep its text when it is copied or placed on another card, presumably because each card has its own text. A field without shared text will carry its text with it. "Dr. Hawkins" wrote: >I ran into this before about a year ago . . . > >I pull the html text fro

Re: Yikes! Mobile handles URLs differently than desktop?

2013-09-13 Thread Mike Kerner
Well, I just ran into this today with 6.1.1. Any other characters causing a problem? Everything from 1-32? On Fri, Sep 13, 2013 at 7:04 PM, Gerry Orkin wrote: > I have scripts that handle the URL displayed in a browser control. > > I found that even if the URL contained zero spaces I still ha

copy on a group loses the htmltext of fields

2013-09-13 Thread Dr. Hawkins
I ran into this before about a year ago . . . I pull the html text from a database into thatText, and set the htmlText of fld goo to thatText Then, copy grp gunk to cd 1 of stack anotherStack I get fld goo in the new group on the new card, but it's text is gone. In the past, I solved thi

Re: Trying a custom handler for several math fields

2013-09-13 Thread Dr. Hawkins
On Fri, Sep 13, 2013 at 7:57 AM, wrote: > But just try to sort a column of text in excel by the fourteenth character > of each cell. It's really not that hard once you start doing such things :) I actually have functionality in my spreadsheets for my bankruptcy filings that I haven't been abl

Re: Yikes! Mobile handles URLs differently than desktop?

2013-09-13 Thread Gerry Orkin
I have scripts that handle the URL displayed in a browser control. I found that even if the URL contained zero spaces I still had to change spaces to %20 to get it to work. Fricken weird. I think this has now been fixed in the engine - I recall seeing it on a list of recent fixes? Gerry --

Re: Yikes! Mobile handles URLs differently than desktop?

2013-09-13 Thread Monte Goulding
On 14/09/2013, at 8:16 AM, Mike Kerner wrote: > Hmm. I looked but didn't find it before I sent the message out. I'll look > again... It's quite possible it's one of the many things that was documented in the old release notes and is now undocumented. I'm fairly sure if you look in the 5.5.5

Re: Yikes! Mobile handles URLs differently than desktop?

2013-09-13 Thread Mike Kerner
Hmm. I looked but didn't find it before I sent the message out. I'll look again... On Fri, Sep 13, 2013 at 5:24 PM, Monte Goulding wrote: > > On 14/09/2013, at 7:17 AM, Mike Kerner wrote: > > > On the desktop a url that has a space embedded in it seems to be > evaluated > > "normally", but o

Re: New 6.1.1 Properties

2013-09-13 Thread Monte Goulding
On 14/09/2013, at 8:03 AM, "Ralph DiMola" wrote: > It doesn't sound like it will based on your description, but I just had to > ask.. It might. If you lock updates on the group just after you lock screen and unlock updates just before you unlock screen then it would save the re-computatio

Re: New 6.1.1 Properties

2013-09-13 Thread Monte Goulding
On 14/09/2013, at 7:57 AM, Peter Haworth wrote: > If I could figure out how to submit the documentation, I might be willing > to do it for you. Mark Wieder sent me a link to the docs tool a while back > but so far I've had no success in figuring out how to use it. I just edit the XML manually

RE: New 6.1.1 Properties

2013-09-13 Thread Ralph DiMola
Monte, For mobile.I have a scrolling group full of stuff (Images, text fields doing font sizing ...) that is dynamically built and slides in after the rest of card is displayed. So I lock the screen for effects, build the group and then unlock it and it slides in. Would lockUpdates help the pe

Re: New 6.1.1 Properties

2013-09-13 Thread Peter Haworth
Thanks for the explanation Monte. I vaguely remember something about controlIDs and controlNames but didn't recognise lockUpdates.. If I could figure out how to submit the documentation, I might be willing to do it for you. Mark Wieder sent me a link to the docs tool a while back but so far I've

Re: Yikes! Mobile handles URLs differently than desktop?

2013-09-13 Thread Monte Goulding
On 14/09/2013, at 7:17 AM, Mike Kerner wrote: > On the desktop a url that has a space embedded in it seems to be evaluated > "normally", but on mobile, if you don't encode that space, you're in for an > empty response. > > I report, you decide: Bug or feature? It's documented... probably the

Yikes! Mobile handles URLs differently than desktop?

2013-09-13 Thread Mike Kerner
On the desktop a url that has a space embedded in it seems to be evaluated "normally", but on mobile, if you don't encode that space, you're in for an empty response. I report, you decide: Bug or feature? -- On the first day, God created the heavens and the Earth On the second day, God created

Re: New 6.1.1 Properties

2013-09-13 Thread Monte Goulding
On 14/09/2013, at 3:17 AM, Peter Haworth wrote: > 6.1.1 has three properties returned by the propertynames that are not in > the dictionary nor mentioned in the release notes: > > controlids > controlnames > lockupdates > > Anyone know what these are? Good catch Pete These were contributed b

Re: Trying a custom handler for several math fields

2013-09-13 Thread stephen barncard
On Fri, Sep 13, 2013 at 10:43 AM, J. Landman Gay wrote: > stephen... please stop using Jacqie's time-travel stack and looking at me >> 10+ years ago when I started with this language. > > Heh heh -- Stephen Barncard San Francisco Ca. USA more about sqb

Re: Trying a custom handler for several math fields

2013-09-13 Thread J. Landman Gay
On 9/13/13 8:12 AM, FlexibleLearning.com wrote: stephen... please stop using Jacqie's time-travel stack and looking at me 10+ years ago when I started with this language. It most disconcerting! :) Don't even think about what *I've* seen of you. :) -- Jacqueline Landman Gay | jac.

New 6.1.1 Properties

2013-09-13 Thread Peter Haworth
6.1.1 has three properties returned by the propertynames that are not in the dictionary nor mentioned in the release notes: controlids controlnames lockupdates Anyone know what these are? Pete lcSQL Software ___ use-livecode mail

Re: Trying a custom handler for several math fields

2013-09-13 Thread Graham Samuel
Hi Vaughn Klaus beat me to it. You should understand that the message path looks after the passing of the message from the control on the card to the card itself. I mean any handler that calls 'doMath' in the control will rely on the engine to look for the definition of the handler, and if it i

Re: Trying a custom handler for several math fields

2013-09-13 Thread Peter M. Brigham
OK, I think you need to understand the message path. Messages are initiated by user actions or by your own scripts. The most common user actions are things like mousedown", "mouseup", "mousemove", "enterfield", "closefield", etc., but there are many more of them as well. When the user clicks on

Re: Trying a custom handler for several math fields

2013-09-13 Thread Klaus major-k
Hi Vaughn, Am 13.09.2013 um 17:54 schrieb Vaughn Clement : > Hi All > > Well my first attempt ever to use a custom handler (OK :- ( > Well I thought I understood what to do, but as things go I didn't get the > expected result: > In the card control field, I put this pass call; > > on doMath >

Re: Trying a custom handler for several math fields

2013-09-13 Thread dunbarx
Vaughn. LC is event driven. In order to run your "doMath" handler, a "doMath" message must be generated. Now how to do this? 1- You could send the message directly from some object, or the message box. (send "doMath" to this card) 2- A system message generated by some other action might wor

Re: Trying a custom handler for several math fields

2013-09-13 Thread Vaughn Clement
Hi All Well my first attempt ever to use a custom handler (OK :- ( Well I thought I understood what to do, but as things go I didn't get the expected result: In the card control field, I put this pass call; on doMath pass doMath end doMath in the card script I put this script; on doMath

Re: Trying a custom handler for several math fields

2013-09-13 Thread dunbarx
Vaughn. Got it. Since LC uses strings as its base unit, it does require a bit more management. Of course, this also offers exquisite control over those strings. So although Excel, for example, knows that a value of "$50" in a cell is in actuality a number, LC does not. It is quite literal th

Import Snapshot from Player

2013-09-13 Thread Ray Horsley
I'm having problems doing this with 6.5 (dp 1) although there are no problems with the same script in 6.1.1. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription prefe

Re: LC and iOS 7 icons

2013-09-13 Thread Colin Holgate
If it might save you some time, here are the list of sizes that you need to support, including the Android sizes and the iTunes artwork: 29, 36, 40, 48, 50, 57, 58, 72, 76, 80, 96, 100, 114, 120, 144, 152, 512, 1024 and here are the names that Apple uses for their ones: Icon-Ipad-76.png Icon-Ip

Re: Trying a custom handler for several math fields

2013-09-13 Thread Vaughn Clement
Hi Craig I was blessed to have my best friend Brent to work with. This guy is a wizard at any programming and he has a photographic memory. He did things with HC that were incredible for the era of the 80's. He mastered HC to above the expert level. So it is my pleasure to let him know about LiveC

Re: LC and iOS 7 icons

2013-09-13 Thread Neil Roger
Hi Alain, We are aware of the changes Apple made to iOS icon sizes. There is a bug report on the issue here- http://quality.runrev.com/show_bug.cgi?id=11139 We will shortly be providing a fix for this. Kind Regards, Neil Roger -- RunRev Support Team ~ http://www.runrev.com -- On 13/09/2

LC and iOS 7 icons

2013-09-13 Thread Alain Vezina
Hi All, The last time I upgraded two of my iOS apps, which were not rejected by Apple, I received this message for the iPhone one "Missing recommended icon file - The bundle does not contain an app icon for iPhone / iPod Touch of exactly '120x120' pixels, in .png format." and that for the iPad

My Codebook Pro v12 free

2013-09-13 Thread Vaughn Clement
Hi All I just posted this comment on the help email for all to read. I want to report it so it can be at a help level where everyone can see it. To All OK I have complained about documentation and I should not raise an issue without also offering a solution. I developed a database for the Cloud

Re: Trying a custom handler for several math fields

2013-09-13 Thread Vaughn Clement
To All OK I have complained about documentation and I should not raise an issue without also offering a solution. I developed a database for the Cloud Server that is called My Codebook Pro v12. This app goes beyond a forum or an email help system. I already added the user guide chapters in one rec

Re: Trying a custom handler for several math fields

2013-09-13 Thread dunbarx
Vaughn. YOU WERE A HC USER??!!?? Sorry. Ahem. But then you must remember that you cannot add "$50" to "15". xTalks are typeless, and the parser resolves strings into usable form purely by context. So you can only add strings that resolve to numbers. Would this be immediately understanda

Re: Trying a custom handler for several math fields

2013-09-13 Thread FlexibleLearning.com
stephen... please stop using Jacqie's time-travel stack and looking at me 10+ years ago when I started with this language. It most disconcerting! :) Hugh Senior FLCo stephen barncard wrote: "You WILL struggle. and have to look a lot of things up and ask questions. You will get frustrated. But

Re: RELEASE: LiveCode 6.5.0 DP1 (Benjamin Beaumont)

2013-09-13 Thread Roger Eller
That would be absolutely wonderful if it did. Just like in a Web browser, sometimes you just can't touch an object without temporarily zooming. ~Roger On Sep 13, 2013 2:36 AM, "Michael Kristensen" wrote: > Will the new Resolution Independence give us zoom facilities? > > Mic > > ___

Re: Get Your App Noticed

2013-09-13 Thread Heather Laine
The current, introductory price for this package is $499. For everything. It will go up to list price once it is out of the special offer period. Cheers Heather On 12 Sep 2013, at 21:30, Rick Harrison wrote: > Hi there, > > Does anyone know the real price of this package? > > I noticed there

Re: stack corrupted

2013-09-13 Thread Benjamin Beaumont
Hi Vaughn, I'm sorry your stack was corrupted. This is one of the dangers of the early releases in the development cycle. It would be a great help to us if you could send us the corrupted stack so that we can analyse what caused the issue. The following information would help our engineers: 1) Wh

Re: Trying a custom handler for several math fields

2013-09-13 Thread Geoff Canyon
On Thu, Sep 12, 2013 at 11:51 PM, Vaughn Clement wrote: > The current database I use is FileMaker Advanced and it is so well > documented it is a gem to work with. By the way my expectations was to use > LC as a database substitute with IOS and Android. I have had to reassess my > goals based on