Search found 164 matches

by edgore
Wed Aug 07, 2013 12:03 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: The opposite of intersect array?
Replies: 4
Views: 3333

Re: The opposite of intersect array?

Yep - that works, and it's very fast! I had run into so many problems with the other "for each" based methods (they were all very slow) that it would never have occurred to me that deleting keys was a very fast option! Have to remember from now on - try every array based way you can of doing somethi...
by edgore
Wed Aug 07, 2013 1:35 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: The opposite of intersect array?
Replies: 4
Views: 3333

Re: The opposite of intersect array?

Here is an example I have one with one item per line (currently they are all numbers, but that might not always be true in the future. Let's say the list is: 1234567 1234568 1234569 1234560 1234561 I have another list that contains, say: 1234567,value one,123-1234 1234568,value two,345-4567 1234569,...
by edgore
Tue Aug 06, 2013 3:37 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: The opposite of intersect array?
Replies: 4
Views: 3333

The opposite of intersect array?

I am trying to figure out how to get a list of items that are in one list, but not in another list. Since I am dealing with a very long lists going through and checking each line and matching things up is very time consuming, and I am trying to find a faster way. What I really want is something that...
by edgore
Sun Aug 04, 2013 7:10 pm
Forum: CGIs and the Server
Topic: Techniques for Developing for Server
Replies: 8
Views: 10305

Re: Techniques for Developing for Server

When you are developing on the desktop for eventually deploying on the server it's very easy to remember to get rid of the on mouseUp and end mouseUp at the beginning of your desktop development handler and replace them with <!lc and !> that are needed on the server. However, don't forget that if yo...
by edgore
Fri Aug 02, 2013 6:40 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Faster way to remove duplicate lines?
Replies: 28
Views: 20634

Re: Faster way to remove duplicate lines?

Interesting - I wonder if that means that the sensitivity in split/combine is a bug...
by edgore
Fri Aug 02, 2013 6:01 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Faster way to remove duplicate lines?
Replies: 28
Views: 20634

Re: Faster way to remove duplicate lines?

Oh, I had not realized that it did that - neat! I just tried it in the sample stack I uploaded and sure enough changing Gregor to gregor in one line results in it not being deleted as a duplicate. For what I am doing though, that's actually a bug :). So, it looks like we have two good solutions: The...
by edgore
Fri Aug 02, 2013 4:25 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Faster way to remove duplicate lines?
Replies: 28
Views: 20634

Re: Faster way to remove duplicate lines?

@Sri, you are right, it just took me a while to figure out what he is doing. Basically he's adding "1" to an existing array (created earlier in the script), to an element with the key "whatever the line of the list you are processing is". This creates a new key with the value of the line, and adds 1...
by edgore
Fri Aug 02, 2013 3:46 pm
Forum: CGIs and the Server
Topic: Techniques for Developing for Server
Replies: 8
Views: 10305

Re: Techniques for Developing for Server

Having just found out that the environment function can return "server" (it's not in the docs) I will using this going forward in my scripts. By checking the environment I can use conditionals to have different sections of a script execute or not depending on whether it's running desktop or server. ...
by edgore
Fri Aug 02, 2013 3:26 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Faster way to remove duplicate lines?
Replies: 28
Views: 20634

Re: Faster way to remove duplicate lines?

No, just add the user name to the database name, so everybody use it's own db. That's pretty much what I was saying - since I don't have user ids I would randomly generate a 6 digit number to use for the name so there would not be conflicts. I will have to read up on SQLite and experiment some with...
by edgore
Fri Aug 02, 2013 3:22 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Faster way to remove duplicate lines?
Replies: 28
Views: 20634

Re: Faster way to remove duplicate lines?

I looked around and here is the older thread that was mentioned a couple of posts back - it is very similar, but did not get into exploring some of the pitfalls/caveats and other methods that this thread has. Still, nice to have everything referenced in one place. http://forums.runrev.com/viewtopic....
by edgore
Fri Aug 02, 2013 3:17 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Delete a card
Replies: 2
Views: 2586

Re: Delete a card

A standalone can't modify itself in this way (no changes to a standalone get saved)

The way to get around this is to have your standalone be a launcher/splash screen that then launches a another stack. You can do any editing you want to that stack and save it whenever you want.
by edgore
Fri Aug 02, 2013 5:23 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Faster way to remove duplicate lines?
Replies: 28
Views: 20634

Re: Faster way to remove duplicate lines?

Here's an experiment using several of what I think would be very rare characters as the possible split delimiter. Seems to work perfectly, and I would love the see the data that breaks it. There is a stack attached as well that demonstrates it's strange powers. on mouseUp put deleteDuplicateLines(fi...
by edgore
Fri Aug 02, 2013 2:13 am
Forum: Off-Topic
Topic: Why were so many people born today
Replies: 5
Views: 7206

Why were so many people born today

But not yesterday?

Yesterday was like 12 people, but today is a bajillion. I assume it's because spam-bots like to register using the first of a month as their birth date.
by edgore
Fri Aug 02, 2013 12:51 am
Forum: CGIs and the Server
Topic: Techniques for Developing for Server
Replies: 8
Views: 10305

Re: Techniques for Developing for Server

And here is another one, the one that led to me finding the strange behavior documented in the last post (I tried saving LDAPResult to a text file so I could see what was actually in it, without interference from browser formatting). Once I have the LDAPResponse I do some processing to make each ent...
by edgore
Fri Aug 02, 2013 12:28 am
Forum: CGIs and the Server
Topic: Techniques for Developing for Server
Replies: 8
Views: 10305

Re: Techniques for Developing for Server

Okay, here is a situation where I getting strange results from server, but not in desktop. Unfortunately, getting it to happen is complicated, and requires things in addition to livecode to be installed. This actually came about because I was trying to document another error, but this is a good exam...

Go to advanced search