Search found 92 matches

by Brittgriscom
Sun Jun 17, 2012 11:42 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Super-Slow Repeat With...
Replies: 2
Views: 646

Re: Super-Slow Repeat With...

Thanks. I think I've solved it. The problem seemed to be with the second repeat loop. If I tried any version of repeat other than 'repeat until,' the second loop took forever. Interestingly, 'repeat with' in the first loop was 1 tick faster than 'repeat for each ' on mouseup #input original array pu...
by Brittgriscom
Fri Jun 15, 2012 7:37 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Super-Slow Repeat With...
Replies: 2
Views: 646

Super-Slow Repeat With...

I am trying to find the number of inversions in a random list of 100,000 numbers using merge sort. My code works fine for a small list of numbers, but takes forever with the large list. It seems to get stuck on this line: repeat with m = 1 to 100000 I've heard that "repeat for each" is faster, but I...
by Brittgriscom
Wed Jun 13, 2012 9:34 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Sorting Numbers
Replies: 1
Views: 365

Sorting Numbers

In the long run, I'm trying to do a merge sort of a long list of numbers. In the short run, I just want do a simple sort of these numbers: 5,4,3,2,1. How do I do that?
by Brittgriscom
Fri Jul 15, 2011 5:24 am
Forum: iOS Deployment
Topic: Submitting for Both iPhone and iPad
Replies: 13
Views: 2314

Re: Submitting for Both iPhone and iPad

Great. Thanks.
by Brittgriscom
Thu Jul 14, 2011 3:46 am
Forum: Extending LiveCode
Topic: Paying Project: Telepresence Robot Code
Replies: 4
Views: 3944

Re: Telepresence Robot Code

I will almost certainly need someone else to write the code for me, and I'm willing to pay for it.

Interested?
by Brittgriscom
Wed Jul 13, 2011 3:15 pm
Forum: Extending LiveCode
Topic: Paying Project: Telepresence Robot Code
Replies: 4
Views: 3944

Re: Telepresence Robot Code

The robot should be coming in the mail soon. I will let you know.
by Brittgriscom
Wed Jul 13, 2011 12:37 am
Forum: Extending LiveCode
Topic: Paying Project: Telepresence Robot Code
Replies: 4
Views: 3944

Paying Project: Telepresence Robot Code

I am trying to make a telepresence robot that would connect a remote user with a tablet on a iRobot Create in such a way that the user could drive the Create around while skyping on the tablet. In general, it would look like this: http://www.youtube.com/watch?v=CzfruONWUa4 The code to program the Cr...
by Brittgriscom
Tue Jul 12, 2011 12:08 am
Forum: iOS Deployment
Topic: Submitting for Both iPhone and iPad
Replies: 13
Views: 2314

Re: Submitting for Both iPhone and iPad

I mean when submitting for the app store. Apple requires icons of different sizes for ipad vs iphone apps, while livecode only gives you a place to input one icon size.
by Brittgriscom
Thu Jul 07, 2011 12:59 am
Forum: iOS Deployment
Topic: Submitting for Both iPhone and iPad
Replies: 13
Views: 2314

Submitting for Both iPhone and iPad

How do you submit for both iPhone and iPad, since LiveCode only asks for one icon size, and iTunes requires different icon sizes for ipad and the iphone?

I could just submit two apps, one for the iphone and one for the ipad, but then they would have different names.
by Brittgriscom
Tue Jul 05, 2011 4:09 am
Forum: Talking LiveCode
Topic: String of Random Numbers
Replies: 2
Views: 613

Re: String of Random Numbers

Awesome. Thank you!
by Brittgriscom
Tue Jul 05, 2011 12:04 am
Forum: Talking LiveCode
Topic: String of Random Numbers
Replies: 2
Views: 613

String of Random Numbers

How do I randomize a list of numbers between 1 and 9 in which each number occurs once?
by Brittgriscom
Wed Jun 29, 2011 9:03 pm
Forum: Talking LiveCode
Topic: Loops
Replies: 14
Views: 2034

Re: Loops

1. Using "repeat for each..." is much faster than using "repeat with i =...", and avoiding "get line <lineNumber>..." within a loop can be very helpful as well, for the reasons described here: http://lists.runrev.com/pipermail/use-livecode/2003-July/019032.html When I try that, I get a syntax error...
by Brittgriscom
Tue Jun 28, 2011 6:08 pm
Forum: Talking LiveCode
Topic: Loops
Replies: 14
Views: 2034

Re: Loops

Thank you very much. I think there may be a more fundamental problem with my code, because if I understand correctly, no board state in the 8-puzzle should be more than 24 moves from its starting position. However, my path-finding algorithm is often searching 26 moves deep. In other words, I think i...
by Brittgriscom
Tue Jun 28, 2011 4:32 pm
Forum: Talking LiveCode
Topic: Loops
Replies: 14
Views: 2034

Re: Loops

If that's the routine that ran slowly, it may be helpful to see the entire handler. The sort command is implemented internally in reasonably efficient C++, so aside from the modest overhead of packaging up the data to hand off to it, it's likely not the source of performance issues. The main culpri...
by Brittgriscom
Tue Jun 28, 2011 3:11 pm
Forum: Talking LiveCode
Topic: Loops
Replies: 14
Views: 2034

Re: Loops

#original sort -- sort lines of pStatesToExplore numeric by item 1 of each An even bigger culprit is this function, which compares every new board state to the hundreds or thousands of board states we have seen before: #tests if we have seen that state before function stateMatch pPath, pPathList   ...

Go to advanced search