Re: Speed of Building Applications with LiveCode

2013-05-15 Thread Geoff Canyon
If you're building 8 fully featured database applications one after the next, how much are you having to do for app #2, 3, etc.? Editing a row is editing a row -- you should be growing better and better libraries with each iteration? On Wed, May 15, 2013 at 9:07 AM, Andrew Kluthe

Re: Multiple Images on Card

2013-05-21 Thread Geoff Canyon
On Tue, May 21, 2013 at 8:39 AM, Graham Pearson gspear...@gmail.com wrote: when a user hovers over a section of the picture, it would change colors and upon clicking a section of the picture it would display a new card with detailed information of the section of the image selected. I think

Re: scrolling stack I made

2013-05-22 Thread Geoff Canyon
Hi Colin, Nice work! I added timing code to get the framerate. On my macbook pro when nothing is actually moving, it achieves about 40 fps. When the images are moving it drops to about 24 fps. I'd be curious how using the move command might compare. I don't think it would be faster since with

Re: scrolling stack I made

2013-05-22 Thread Geoff Canyon
makes the location be floating point, and so over time the image will reach the next integer value. On May 22, 2013, at 10:28 AM, Geoff Canyon gcan...@gmail.com wrote: I also simplified the movement routine to a single line to update the position of each object, which eliminated the need

Re: Random sort demonstration

2013-05-23 Thread Geoff Canyon
On Thu, May 23, 2013 at 1:08 AM, Dar Scott d...@swcp.com wrote: The problem is equality in the sort. It keeps the same order in comparison of pairs of items. For example, the items sorted in the last case above as though they were 2,2,3. The first item is still first. So... Use large

Re: randomly order a list

2013-05-23 Thread Geoff Canyon
There is, indeed much confusion here. I, of course, am correct ;-) I simplified the problem to a list of two items: 1,2 That way the sort command has exactly two outcomes. It either reverses the list, or it doesn't. The two outcomes should happen roughly 50% of the time. This script

Re: randomly order a list

2013-05-24 Thread Geoff Canyon
Dar -- I hardly think you need my blessing, but I agree with your definition of p(k). I ran some numbers through Wolfram Alpha, and it looks like even for 100 item lists the probability of the first item being sorted to the first spot is about 0.015, or 1.5 times what it should be if sorted by

Re: Best screencast demo ever!

2013-05-28 Thread Geoff Canyon
Nice! It bugs me that in some cases they use forks to present different variations, while in others they just change the text in the box (sometimes more than once). On Mon, May 27, 2013 at 8:49 PM, Bill Vlahos bvla...@mac.com wrote: This doesn't have anything to do with LiveCode or me but it

Re: text sortType

2013-05-28 Thread Geoff Canyon
tested seems to work: sort lines of x numeric by word -1 of item 1 of each sort lines of x by word 1 to -2 of item 1 of each On Tue, May 28, 2013 at 2:26 PM, J. Landman Gay jac...@hyperactivesw.comwrote: On 5/28/13 2:09 PM, Andrew Kluthe wrote: That would handle it for the most

Re: text sortType

2013-05-28 Thread Geoff Canyon
Interesting -- this works in one line: sort lines of x by word 1 to -2 of item 1 of each char -10 to -1 of (00 word -1 of item 1 of each) I'm a little put off by not using the native numeric -- I'd be worried that something I'm not thinking of right now would break it. But

Re: Point in Poly

2013-05-29 Thread Geoff Canyon
On Wed, May 29, 2013 at 9:44 AM, Devin Asay devin_a...@byu.edu wrote: Have you tried the within() function? It works the way you describe for images, but I'm not sure about graphics objects. This works for graphics objects as well, as long as their opaque is true. within(grc 1,the loc of

Re: Point in Poly

2013-05-29 Thread Geoff Canyon
On Wed, May 29, 2013 at 10:44 AM, Dar Scott d...@swcp.com wrote: Consider a horizontal line through the point. Find the points where it crosses the line segments of the sides. (Take care of the special case of a line segment being on your horizontal line.) Count the points to the left of

Pretty impressive demo video

2013-06-04 Thread Geoff Canyon
Would be nice to have views like this in LC http://revealapp.com/ Sent from my iPad ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

Re: Pretty impressive demo video

2013-06-04 Thread Geoff Canyon
On Tue, Jun 4, 2013 at 4:16 AM, René Micout rene.mic...@numericable.comwrote: Le 4 juin 2013 à 10:50, Geoff Canyon gcan...@gmail.com a écrit : Would be nice to have views like this in LC http://revealapp.com/ Not sure I understand -- the link was in the text you quoted: http

Re: randomly order a list

2013-06-04 Thread Geoff Canyon
At the risk of beating the decaying equus -- the previously suggested random() solutions should be fine for all purposes --I found an alternative that: 1. Is faster than sorting by random(9) random(9) 2. Is about as fast as sorting by random(9) 3. Is (I think) less likely

Re: randomly order a list

2013-06-05 Thread Geoff Canyon
, but the swap-over point is fairly low - somewhere around 500 chars per line. -- Alex. On 04/06/2013 18:51, Geoff Canyon wrote: At the risk of beating the decaying equus -- the previously suggested random() solutions should be fine for all purposes --I found an alternative that: 1. Is faster than

Re: randomly order a list

2013-06-07 Thread Geoff Canyon
On Wed, Jun 5, 2013 at 5:14 PM, Alex Tweedly a...@tweedly.net wrote: Your code has a minor bug :-) You get MD5Digest(S[1]) instead of using S[i] Agh!!! ;-) Interestingly, md5 appears to scale roughly linearly on the length of the strings. 100x as long string means about 15x as

Re: randomly order a list

2013-06-07 Thread Geoff Canyon
your arrrgh. Dar On Jun 7, 2013, at 9:18 AM, Geoff Canyon wrote: On Wed, Jun 5, 2013 at 5:14 PM, Alex Tweedly a...@tweedly.net wrote: Your code has a minor bug :-) You get MD5Digest(S[1]) instead of using S[i] Agh!!! ;-) Interestingly, md5 appears to scale

Re: LC Community - Script Limits

2013-06-12 Thread Geoff Canyon
I built standalones with both community and commercial. In my limited experimentation, neither has scriptlimits. On Tue, Jun 11, 2013 at 11:00 AM, Richard Gaskin ambassa...@fourthworld.com wrote: Kay C Lan wrote: To Richard Gaskin, I'm posting in this public domain as there are clearly

Re: LC Community - Script Limits

2013-06-12 Thread Geoff Canyon
09:59 PM, Geoff Canyon wrote: I built standalones with both community and commercial. In my limited experimentation, neither has scriptlimits. Pardon my naivety, but I have a standalone I market that has about 6,000 lines in a vast number of objects; I really don't know what the fuss

Really large groups

2013-06-28 Thread Geoff Canyon
Has anyone created a library to handle groups 32k pixels wide/tall? I'm thinking of something that stores the coordinates of controls relative to a larger space and allows scrolling through that larger space -- maybe by placing/removing them in an actual group so normal scrolling can still be

Re: Really large groups

2013-06-28 Thread Geoff Canyon
, but the recent progress on the twin prime conjecture has me excited and curious. On Fri, Jun 28, 2013 at 1:57 PM, Richard Gaskin ambassa...@fourthworld.comwrote: Geoff Canyon wrote: Has anyone created a library to handle groups 32k pixels wide/tall? I'm thinking of something that stores

Re: Weekend challenge

2013-06-30 Thread Geoff Canyon
Okay, this is a beast, and in no way good or generalized. It doesn't use the previous function, instead just going through line by line and flagging all the issues it sees in one pass. It should: 1. Flag any new ID that doesn't have just two items on the line. 2. Following that line, flag if the

Re: Weekend challenge

2013-07-02 Thread Geoff Canyon
neighbors). The result is: 1,1 1,1 On Mon, Jul 1, 2013 at 12:46 PM, J. Landman Gay jac...@hyperactivesw.com wrote: On 7/1/13 12:53 AM, Geoff Canyon wrote: Okay, this is a beast, and in no way good or generalized. It doesn't use the previous function, instead just going through line by line

List links and open them on mobile?

2013-07-03 Thread Geoff Canyon
Has anyone written code they'd be willing to share for mobile to show a list of links and then open them in a browser object? Similar to what the Facebook app does, in a way. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit

Re: Weekend challenge

2013-07-03 Thread Geoff Canyon
On Wed, Jul 3, 2013 at 11:30 AM, J. Landman Gay jac...@hyperactivesw.comwrote: Right, that's why yours is better. The nature of the data is usually that only a single line would be out of sequence, but of course you can't rely on that. So tell those guys that you don't condone half-assed

Re: Regular expressions

2013-07-04 Thread Geoff Canyon
I like general utility functions like this. I've written this one myself somewhere in the past. When we can tinker with the language this will definitely be in my lexicon. On Thu, Jul 4, 2013 at 10:08 AM, Peter M. Brigham pmb...@gmail.com wrote: function offsets str,container,includeOverlaps

RosettaCode

2013-07-05 Thread Geoff Canyon
http://rosettacode.org/wiki/Category:Revolution Has anyone looked at this site before? There is only one example so far. Many of them aren't too difficult. gc ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to

Re: RosettaCode

2013-07-07 Thread Geoff Canyon
Thanks for contributing! Hopefully I don't come off quite that harsh... In any case, there doesn't seem to be a better way to add a new entry than: 1. Go to the page for 99 bottles. 2. Click the entry for the language before LiveCode alphabetically -- Liberty BASIC in this case. 3. Edit that

Re: RosettaCode

2013-07-08 Thread Geoff Canyon
, correct? In fact, it seems convoluted options can be posted alongside concise options within the same language. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 7/7/13 10:20 PM, Geoff Canyon gcan...@gmail.com wrote: Thanks for contributing! Hopefully I

Re: Vertically aligning text in a field

2014-12-20 Thread Geoff Canyon
Not sure what's up with the offset that seems constant and inherent, but this corrects for it. It does nothing about the apparent offset caused by the difference between the textheight and and textsize of the first line, because if the size varies, the textsize returns mixed. In any case, this

Re: I didn't know this...

2014-12-27 Thread Geoff Canyon
It's too bad this won't work: put bob carol ted alice into S replace c with x in char 1 of each word of S put S -- puts bob xarol ted alice On Sat, Dec 27, 2014 at 5:42 PM, Kay C Lan lan.kc.macm...@gmail.com wrote: Nice :-) This isn't limited to variables but for works for fields

Re: [ANN] Free: Google-style typing filter for LiveCode

2014-12-30 Thread Geoff Canyon
On Tue, Dec 23, 2014 at 7:36 AM, FlexibleLearning.com ad...@flexiblelearning.com wrote: www.FlexibleLearning.com/typingfilter Nice work, Hugh! I remember doing something similar about eighteen years ago and having to write the code to do a thousand lines of the search material at a time,

Re: changing layer within a group by script/ speed of start editing

2015-01-26 Thread Geoff Canyon
set relayergroupedcontrols to true set the layer of whatever control to whatever layer On Sun, Jan 25, 2015 at 7:30 PM, Scott Rossi sc...@tactilemedia.com wrote: Try locking the screen before doing any object relayering. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design

Re: stackfileversion and locking 6.5.2

2015-01-30 Thread Geoff Canyon
So far I've determined that stripping out every line of code from the stack doesn't fix the problem. Deleting every control does. Now I'm going through to figure out which control is poisonous to 6.5.2 On Fri, Jan 30, 2015 at 3:40 AM, Geoff Canyon gcan...@gmail.com wrote: I have a stack

A code style question

2015-01-20 Thread Geoff Canyon
I think these two functions are equivalent. Which would you use? (or would you use a different function altogether?) function baseID newID if newID is empty then if not exists (the baseID of this stack) then set the baseID of this stack to this card end if else if

Re: A code style question

2015-01-20 Thread Geoff Canyon
It would be good to post code that works: function baseID newID if (newID is not empty and not exists(newID)) or \ (newID is empty and not exists(the baseID of this stack)) then \ set the baseID of this stack to this card if newID is not empty then set the baseID of this

Re: A code style question

2015-01-20 Thread Geoff Canyon
okay, I think this is correct for both versions (gah) function baseID newID if newID is empty then if not exists (the baseID of this stack) then set the baseID of this stack to this card end if else if exists(newID) or \ newID is among the items of

Re: A code style question

2015-01-21 Thread Geoff Canyon
I was thinking of doing a switch version, so thanks! On Wed, Jan 21, 2015 at 11:54 AM, Ken Ray k...@sonsothunder.com wrote: local baseID function baseID newID put iff(validID(newID),newID, \ iff(validID(baseID), baseID,this card)) into baseID return baseID end baseID3

Re: Inspector Issue

2015-01-21 Thread Geoff Canyon
Sorry I didn't see this before -- if you're seeing that the problem is now fixed, then maybe -- maybe -- there was something wrong with the stack before. If you still see the problem, if you have a large number of cards/controls, maybe there's some inherent limit in the inspector you're hitting.

Re: A code style question

2015-01-21 Thread Geoff Canyon
to be evaluated, where in an if statement, obviously, only one of them is. On Wed, Jan 21, 2015 at 9:15 AM, Ben Rubinstein benr...@cogapp.com wrote: On 21/01/2015 01:58, J. Landman Gay wrote: On 1/20/2015 7:33 PM, Geoff Canyon wrote: The nested if statements in the first one, and the duplicated

Re: Debugging plugins

2015-01-14 Thread Geoff Canyon
On Wed, Jan 14, 2015 at 11:22 AM, J. Landman Gay jac...@hyperactivesw.com wrote: The simplest thing might be to temporarily rename your plugin without the rev prefix while you're working on it. This gives me the opportunity to use my favorite phrase from an Apple commercial: What, was I in

Re: Debugging plugins

2015-01-14 Thread Geoff Canyon
in the debugger. On Thu, Jan 8, 2015 at 6:51 PM, Mark Talluto use...@canelasoftware.com wrote: On Jan 5, 2015, at 8:16 AM, Geoff Canyon gcan...@gmail.com wrote: I have a vague recollection of there being a way to get breakpoints to work in rev stacks. I thought it was a preference setting, but I

Re: A Got-Ya

2015-01-22 Thread Geoff Canyon
On Wed, Jan 21, 2015 at 6:00 PM, Peter Haworth p...@lcsql.com wrote: doesn't the presence of the and of objectreference indicate that the reference is to a (custom) property not a variable You can store the name of a custom property in a variable, even one with the same name as some other

Re: A code style question

2015-01-22 Thread Geoff Canyon
On Thu, Jan 22, 2015 at 1:42 PM, Ben Rubinstein benr...@cogapp.com wrote: Sorry, I've only just realised as I was about to press send that the point you were making was that if it was built-in, then it also wouldn't need to evaluate both outcomes. Good point - though I'd personally still tend

Re: A Got-Ya

2015-01-20 Thread Geoff Canyon
Two things to consider: 1. It's almost impossible to catch conflicts with custom properties. They don't have to be mentioned by name in a script because: 2. It's a feature that custom property names can be stored/referenced using variables. For example: repeat for each item P in left,top

Re: A code style question

2015-01-20 Thread Geoff Canyon
I figured the first version would be faster, since it only checks each thing once, where the second version tests some booleans twice, but this isn't going to be called repeatedly, so maximum performance isn't an issue. I was more curious about the readability, because I thought I might be the

Re: Acceleration minus acceleration from rotation

2015-02-11 Thread Geoff Canyon
On Wed, Feb 11, 2015 at 11:59 AM, Richmond richmondmathew...@gmail.com wrote: What my iPad CANNOT do, is detect if it is moved across a surface, for the very SIMPLE reason that it doesn't have little wheels or other motion sensors on its underside [ err . . . backside?]. AccelerationChanged

Re: Reverse a list

2015-02-10 Thread Geoff Canyon
February 2015 at 04:10, Kay C Lan lan.kc.macm...@gmail.com wrote: On Tue, Feb 10, 2015 at 11:58 AM, Geoff Canyon gcan...@gmail.com wrote: It seems that what we've lost with unicode/7 is the speed of character references. See Ali Lloyd's earlier response that the LC team have been

Re: Reverse a list

2015-02-18 Thread Geoff Canyon
On Tue, Feb 17, 2015 at 4:33 PM, Alex Tweedly a...@tweedly.net wrote: Though it would be kinda cool to do a quick LC simulation showing visible animation of the variable and index as it goes through the loop. I did something like this:

Re: Reverse a list

2015-02-17 Thread Geoff Canyon
On Tue, Feb 17, 2015 at 11:55 AM, Dr. Hawkins doch...@gmail.com wrote: Won't this be orders of magnitude slower? Yes. Given that you have access to lines, items, and words, if possible it would be better to set the outer loop to work on lines, and then do whatever you like with items within

Re: Reverse a list

2015-02-16 Thread Geoff Canyon
It's important to note that the efficiency is all/mostly in the function call, not in the execution of the function itself. So for really short functions that will be called many times, this is significant. For longer functions, the difference all but vanishes: on mouseUp put 1000 into n --

Re: Deleting cards from within themselves.

2015-02-16 Thread Geoff Canyon
On Mon, Feb 16, 2015 at 2:42 PM, Richmond richmondmathew...@gmail.com wrote: Now, for every new term a templet card is cloned and 2 fields on the cloned card are filled. Bernd's solution is correct if you really want to create/delete cards. It would be better/more scalable to just maintain a

Re: ISO 8601 date to seconds

2015-01-28 Thread Geoff Canyon
On Wed, Jan 28, 2015 at 8:12 PM, Brahmanathaswami bra...@hindu.org wrote: 2000-02-17T22:13:21-05 As anyone written a script to convert this to seconds? If the positioning is fixed (as is implied by the leading 0s) then I think this will work: function S D put format(%s/%s/%s %s,char 6 to

Refactoring

2015-01-29 Thread Geoff Canyon
Small thing, but I just turned this twelve-year-old code: put Double-Click: into tProperty if the optionKey is down then if the commandKey is down then put Option-Command-Double-Click: into tProperty else put Option-Double-Click: into

Re: stackfileversion and locking 6.5.2

2015-01-30 Thread Geoff Canyon
well that didn't take long :-P It turns out that there is one field in the stack -- delete the contents of that field, and the stack opens fine in 6.5.2. I copied the contents of the field and pasted into Pages, then deleted the contents of the field, and the file opened fine in 6.5.2. I then

Re: Overlap detection?

2015-01-31 Thread Geoff Canyon
Not sure what's up with the rotation issues, but potentially you could use a square .png with transparency? The alternative, which would also solve your intersect question, would be to use a group of five square graphics. That way your intersect could either use the built-in function on each of

Re: [ANN] New version of the MasterLibrary is available

2015-02-01 Thread Geoff Canyon
You could handle (some) larger combinatorials (and speed up the code) by modifying like so: function __factorialFloor x,f if x = f then return 1 return x * __factorialFloor(x-1,f) end __factorialFloor function __nCombFloor n, r if (r 0) or (r = n) then \ return

Re: [ANN] New version of the MasterLibrary is available

2015-02-01 Thread Geoff Canyon
, Geoff Canyon gcan...@gmail.com wrote: You could handle (some) larger combinatorials (and speed up the code) by modifying like so: function __factorialFloor x,f if x = f then return 1 return x * __factorialFloor(x-1,f) end __factorialFloor function __nCombFloor n, r if (r 0) or (r

Re: Reverse a list

2015-02-09 Thread Geoff Canyon
It seems that what we've lost with unicode/7 is the speed of character references. In other words, this: On Sun, Feb 8, 2015 at 4:37 PM, Alex Tweedly a...@tweedly.net wrote: SO, instead, we can use put ... into char x to y of ... - since it uses char indexing, it takes constant time (i.e. no

Re: Reverse a list

2015-02-09 Thread Geoff Canyon
A quick check and this works: local sCount function getCount subtract 1 from sCount return sCount end getCount on mouseUp sort lines of fld 1 numeric by getCount() end mouseUp You don't need to have sCount start at the number of lines of the text to be sorted. It can start at 0 and go

Re: Reverse a list

2015-02-09 Thread Geoff Canyon
On Mon, Feb 9, 2015 at 3:46 AM, Kay C Lan lan.kc.macm...@gmail.com wrote: 6.6.5 There are 1880 lines in tstart There are now 9400 lines in tstart revers(ta) took 350 ms qrevers(ta) took 5 ms Output OK krevers(ta) took 328 ms Output OK 7.0.2 rc2 There are 1880 lines in tstart There

Re: Run a handler each time a handler/function within current script is run?

2015-02-12 Thread Geoff Canyon
On Wed, Feb 11, 2015 at 11:55 PM, Lyn Teyla lyn.te...@gmail.com wrote: I'm looking for a proper/non-clumsy way of implementing the following: At first blush I'd do exactly what you're doing: insert a call to the must be called every time handler in every other handler.

Mobile app templates?

2015-03-08 Thread Geoff Canyon
Are there any template apps available? (free or paid) So far what I've seen are construction kits or graphics packages. I'm wondering if anyone has made a splash screen with main app page with nav elements leading to other pages app, or other variant of that? I'm thinking about how, if I want to

Re: Mobile app templates?

2015-03-10 Thread Geoff Canyon
On Mon, Mar 9, 2015 at 4:39 PM, J. Landman Gay jac...@hyperactivesw.com wrote: LC has a mobile template? That's what Geoff was looking for. As far as I know this is some graphics and PSDs, not an LC project. ___ use-livecode mailing list

Re: Mobile app templates?

2015-03-10 Thread Geoff Canyon
On Mon, Mar 9, 2015 at 1:41 PM, J. Landman Gay jac...@hyperactivesw.com wrote: I don't think there's much difference between the desktop method and mobile apps. You just compile the main stack for mobile instead of for desktop. I'm working in 6.7.3, so (as far as I know) there's still some

Re: Mobile app templates?

2015-03-10 Thread Geoff Canyon
On Tue, Mar 10, 2015 at 4:16 PM, Geoff Canyon gcan...@gmail.com wrote: I'm working in 6.7.3, so (as far as I know) there's still some sort of build it at 320x568 and it will automatically scale up, but then you have to provide double-size graphics, etc. thing going on. fullscreenmode

Re: Sorting Columns

2015-03-03 Thread Geoff Canyon
On Tue, Mar 3, 2015 at 8:18 AM, dunb...@aol.com wrote: function goodNumber var repeat for each char tChar in var if var is in 0123456789 then put tChar after temp end repeat return temp end goodNumber It's worth checking, but this might be faster (but less robust): function

Visual effects on iOS?

2015-03-01 Thread Geoff Canyon
I'm using 6.7.3 on the most recent version of Mac/iOS. This code: lock screen hide image currentImage of me show image nextImage of me unlock screen with visual effect scroll left Just swaps the images with no visual effect at all. I've tried in LC and in the simulator. I've tried

Re: Visual effects on iOS?

2015-03-01 Thread Geoff Canyon
On Sun, Mar 1, 2015 at 11:53 PM, Jerry Jensen j...@jhj.com wrote: Use the (optional) 'for visual effect' variant of the lock screen command if you want to subsequently unlock the screen using a visual effect. Interesting, I don't remember that (and didn't think to look at the entry for lock

A nice bit of syntax

2015-02-22 Thread Geoff Canyon
Just came across this in AppleScript: tell application System Events set {procesList, pidList} to the {name, unix id} of (every process whose name contains Myapp_action_download) end tell There are multiple niceties here: in-line list filtration, multiple simultaneous property

Re: A nasty experience with the currentcard

2015-02-21 Thread Geoff Canyon
On Sat, Feb 21, 2015 at 11:06 AM, Richard Gaskin ambassa...@fourthworld.com wrote: has this Dictionary omission been submitted to the bug queue Bug 14651 http://quality.runrev.com/show_bug.cgi?id=14651 Unfortunately, now I can't replicate the bug that led to this discussion in the first

A nasty experience with the currentcard

2015-02-20 Thread Geoff Canyon
It seems currentcard is undocumented. I don't even know where I came up with it. But it works in general: put the long id of the currentcard of the topstack works fine in the message box. It also works in the script of a button -- generally. As it turns out, the above will give an error

Re: A nice bit of syntax

2015-02-22 Thread Geoff Canyon
On Sun, Feb 22, 2015 at 11:47 AM, Mark Schonewille m.schonewi...@economy-x-talk.com wrote: Hi Geoff, While this looks very nifty, it definitely isn't easier to program. LiveCode is much easier (IMHO). We should never be able to do this with LiveCode, simply because this isn't how xTalk

Re: Best way to get started in mobile (mainly iOS) development?

2015-02-26 Thread Geoff Canyon
On Thu, Feb 26, 2015 at 10:42 AM, J. Landman Gay jac...@hyperactivesw.com wrote: Same way you get to Carnegie Hall. What, take the 'A' train? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe

Re: Best way to get started in mobile (mainly iOS) development?

2015-02-26 Thread Geoff Canyon
You can tell I'm not serious if my lips are moving. Up to you to determine whether I move my lips while I type. On Thu, Feb 26, 2015 at 2:12 PM, J. Landman Gay jac...@hyperactivesw.com wrote: On 2/26/2015 12:21 PM, Geoff Canyon wrote: On Thu, Feb 26, 2015 at 10:42 AM, J. Landman Gayjac

Re: A nasty experience with the currentcard

2015-02-21 Thread Geoff Canyon
the customProperties[myData] of current card of stack x into tMyPropsA etc. It works. Phil Davis On 2/20/15 9:36 PM, Geoff Canyon wrote: It seems currentcard is undocumented. I don't even know where I came up with it. But it works in general: put the long id of the currentcard

Re: A nasty experience with the currentcard

2015-02-21 Thread Geoff Canyon
Gaskin ambassa...@fourthworld.com wrote: Geoff Canyon wrote: It seems currentcard is undocumented. I don't even know where I came up with it. But it works in general: put the long id of the currentcard of the topstack works fine in the message box. It also works in the script

Best way to get started in mobile (mainly iOS) development?

2015-02-25 Thread Geoff Canyon
For those who have already made the trek, what's the best resource to get from I can happily build a desktop app to I can happily build a mobile app? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe,

stackfileversion and locking 6.5.2

2015-01-30 Thread Geoff Canyon
I have a stack that I moved to 7.0.2 for a few days without thinking, and I want to move it back. I tried this in the message box: set the stackfileversion to 5.5;lock messages;save stack versionProblem;close stack versionProblem and after that if I open it in 6.5.2 or 6.7, they lock up with

Re: Refactoring

2015-01-30 Thread Geoff Canyon
the code you will ever need. Bob S On Jan 29, 2015, at 09:29 , Geoff Canyon gcan...@gmail.commailto: gcan...@gmail.com wrote: Small thing, but I just turned this twelve-year-old code: put Double-Click: into tProperty if the optionKey is down

Re: An interesting programming challenge

2015-04-11 Thread Geoff Canyon
On Sat, Apr 11, 2015 at 1:43 PM, Colin Holgate colinholg...@gmail.com wrote: I think it’s specifically to do with widgets you might make. Not normal stack scripts. And for now, widget code is actually slower than regular livecode -- it's expected to improve.

Re: fastes way to search an array?

2015-04-23 Thread Geoff Canyon
On Wed, Apr 22, 2015 at 6:22 PM, Peter Haworth p...@lcsql.com wrote: Out of interest, I added a test which used combine and filter. It took around 3 times longer than the other two tests. Yeah, I didn't expect this to be competitive except under specific circumstances -- if the filter

Re: fastes way to search an array?

2015-04-22 Thread Geoff Canyon
One way to do this would be combine the array (or maintain a duplicate copy) and use the filter command to do the search. On Wed, Apr 22, 2015 at 8:44 AM, Rick Harrison harri...@all-auctions.com wrote: Hi Tiemo, What is the average and worst time that it takes to search your 20,000 record

Re: Kickstarter 2013 Revisited

2015-05-11 Thread Geoff Canyon
On Mon, May 11, 2015 at 12:27 AM, Peter W A Wood peterwaw...@gmail.com wrote: Any app using emoticons or emoji or whatever they are called will be using Unicode. emoji, yes, but that seems like a razor-thin use case. I wonder how many apps implement their own image-based solution rather than

Re: Kickstarter 2013 Revisited

2015-05-11 Thread Geoff Canyon
On Sun, May 10, 2015 at 4:09 PM, Mark Schonewille m.schonewi...@economy-x-talk.com wrote: Software should be unicode-compatible nowadays. This is what users and developers expect. So, I would say 100%. I think of myself as a developer. Everything I do these days is in-house, and has

Re: Kickstarter 2013 Revisited

2015-05-11 Thread Geoff Canyon
On Mon, May 11, 2015 at 12:30 AM, Lynn Fredricks lfredri...@proactive-intl.com wrote: iOS is the odd ball in that it represents not only the platform itself, but also the means of delivery (with the exception of the weirdness Apple has implemented for iOS corporate applications). With the

Re: Kickstarter 2013 Revisited

2015-05-10 Thread Geoff Canyon
On Sun, May 10, 2015 at 1:56 PM, Lynn Fredricks lfredri...@proactive-intl.com wrote: Unicode - DONE Im glad Paul pointed this out; its been taking some hits from people who say they don't need it, and that its impacting performance. It is a necessity for the future of LiveCode or any

Re: Kickstarter 2013 Revisited

2015-05-11 Thread Geoff Canyon
...@sweattechnologies.com wrote: On 11 May 2015, at 4:24 pm, Geoff Canyon gcan...@gmail.com wrote: This is why I asked, hoping for a response from someone who shops the Greek app store, or the Japanese app store. Those are the ones who would know the percentage. What percentage are you

Re: Kickstarter 2013 Revisited

2015-05-11 Thread Geoff Canyon
On Mon, May 11, 2015 at 3:29 AM, Mark Waddingham m...@livecode.com wrote: As a case in point, I just opened up revNavigator from the plugins menu - and it works in 7. Indeed, if I have objects with Unicode names, revNavigator still works perfectly, displaying precisely what you would expect.

Re: Kickstarter 2013 Revisited

2015-05-11 Thread Geoff Canyon
Again, maybe I'm unusual, but none of these apply to any of the apps I've ever written. I've done consulting work (oh so long ago) on apps that stored people's names, and likely unicode comes in handy for those, but I haven't asked the authors whether they take advantage of it. I'm not arguing

Re: Kickstarter 2013 Revisited

2015-05-11 Thread Geoff Canyon
the ascii character set? Obviously some (a lot?) but if that were the only use-case for unicode it would be thin indeed. /diggingTheHoleDeeper ;-) On Mon, May 11, 2015 at 8:30 AM, Richmond richmondmathew...@gmail.com wrote: On 05/11/2015 03:40 PM, Geoff Canyon wrote: On Mon, May 11, 2015 at 3

Re: Kickstarter 2013 Revisited

2015-05-11 Thread Geoff Canyon
...@mangomultimedia.com wrote: On Mon, May 11, 2015 at 8:37 AM, Geoff Canyon gcan...@gmail.com wrote: Again, maybe I'm unusual, but none of these apply to any of the apps I've ever written. I've done consulting work (oh so long ago) on apps that stored people's names, and likely unicode comes in handy

Re: Kickstarter 2013 Revisited

2015-05-11 Thread Geoff Canyon
Certainly true. I could see myself writing: повторение для каждый слово aWord в myString On Mon, May 11, 2015 at 10:22 AM, J. Landman Gay jac...@hyperactivesw.com wrote: On May 11, 2015 9:06:07 AM CDT, Geoff Canyon gcan...@gmail.com wrote: But also, I was just saying that since

Five programming problems every Software Engineer should be able to solve in less than 1 hour

2015-05-09 Thread Geoff Canyon
https://blog.svpino.com/2015/05/07/five-programming-problems-every-software-engineer-should-be-able-to-solve-in-less-than-1-hour Interesting blog post, made doubly interesting because when the author posted his solutions to problems 4 and 5, one of his solutions was incorrect. So I guess he won't

Re: Five programming problems every Software Engineer should be able to solve in less than 1 hour

2015-05-09 Thread Geoff Canyon
Problem 5 Write a program that outputs all possibilities to put + or - or nothing between the numbers 1, 2, ..., 9 (in this order) such that the result is always 100. For example: 1 + 2 + 34 – 5 + 67 – 8 + 9 = 100. function sumPermute S,T repeat put offset(,,line 1 of S) into F

Re: Five programming problems every Software Engineer should be able to solve in less than 1 hour

2015-05-09 Thread Geoff Canyon
Problem 4 Write a function that given a list of non negative integers, arranges them such that they form the largest possible number. For example, given [50, 2, 1, 9], the largest formed number is 95021. Again, not enough test cases, and in this case his initial solution failed when tested more

Re: Five programming problems every Software Engineer should be able to solve in less than 1 hour

2015-05-09 Thread Geoff Canyon
Problem 2 Write a function that combines two lists by alternatingly taking elements. For example: given the two lists [a, b, c] and [1, 2, 3], the function should return [a, 1, b, 2, c, 3]. function interleave X,Y split X using comma split Y using comma repeat with i = 1 to max(item 2

Re: Five programming problems every Software Engineer should be able to solve in less than 1 hour

2015-05-09 Thread Geoff Canyon
On Sat, May 9, 2015 at 5:33 PM, Mike Bonner bonnm...@gmail.com wrote: What is the recursion limit? As far as I know it's a memory thing, so there's no set depth. I could be wrong. ___ use-livecode mailing list use-livecode@lists.runrev.com Please

Re: Five programming problems every Software Engineer should be able to solve in less than 1 hour

2015-05-09 Thread Geoff Canyon
Problem 1 Write three functions that compute the sum of the numbers in a given list using a for-loop, a while-loop, and recursion. Note that he doesn't provide any test cases, so for each problem I provided my own in a field, and then called the functions for each line in the test field, putting

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