Re: searching for chars within a string
A simple way would be just to use basic matchText() for each single letter and regex matchText() for repeating letters. P.*P will find double Ps, P.*P.*P will find triple Ps etc. Seems to be relatively fast but if you have very large data sets other alternatives would need to be investigated. in the message box: put ABCDEKLP into X put ABCDEKMMOOPP into Y put 10 into Z put 0 into a put 0 into b put 0 into c put 0 into d put the millisec into tStart repeat Z times if (matchText(X, A) AND matchText(X, E) AND matchText(X, L) AND matchText(X, P.*P)) then add 1 to a else add 1 to b end if if (matchText(Y, A) AND matchText(Y, E) AND matchText(Y, L) AND matchText(Y, P.*P)) then add 1 to c else add 1 to d end if end repeat put the millisec into tEnd put X Passed a times. cr into msg put X Failed b times. cr after msg put Y Passed c times. cr after msg put Y Failed d times. cr after msg put Z repeats took tEnd - tStart ms after msg The above should take less than 1 sec but for a million repeats I got: X Passed 0 times. X Failed 100 times. Y Passed 100 times. Y Failed 0 times. 100 repeats took 1997 ms NOTE: the above only works if the letters you are looking for can appear in ANY order. If you need a specific order then you'd have to regex matchText() for all searches, ie if (matchText(X, A.*E.*L.*P) AND matchText(X,P.*P)) then Yes, the P must appear in both searches to ensure a P has both an L before it and a P after it. HTH On Wed, Sep 24, 2014 at 8:22 AM, la...@significantplanet.org wrote: Hello, I have done a lot research and cannot find any way to do this: I have a string, AELPP and I want to see if all 5 of those letters are in search string If search string is: ABCDEKLP, then NO it isn't because there are two P's in the string I'm searching for. But if search string is: ABCDEKLLLMMOOPP, then YES the string I'm searching for is found in the search string. It is important to my program that I just find the 5 chars anywhere within the search string and they do not have to be sequential in the search string. Thanks for any help, Larry ___ 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-livecode ___ 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-livecode
Re: re: sorting question
On Wed, Sep 24, 2014 at 4:40 PM, Dave Kilroy d...@applicationinsight.com wrote: For others wondering what the cause was, it was likely that the spaces in each item were confusing things It is impossible that the spaces in front of each item could cause the sort NOT to change the list at all, which is what Larry reported. In the message box: put ID, NA, OD, OA, FE into tStore sort items of tStore put tStore into msg The space character is just another character and LC will sort it correctly. Of the list given, only the first item may not have had a space in front of it, so this may have ended up in the wrong place but the rest should have sorted correctly. Whilst removing and replacing spaces is one option to correct this, it may not be suitable in every situation, especially if the existence or lack of a space has significance - i.e. if you have a list of file names and you are specifically looking for those names that have a space as a prefix or a suffix. put ID, NA , OD,OA, FE into tStore sort items of tStore put tStore into msg Will correctly sort the file names placing all those with a prefix space at the beginning and preserving all suffix spaces. If prefix and suffix spaces are irrelevant then you can save yourself the hassle of standardising your data by removing and replacing the spaces by simply specifying that you want to sort by word: put ID, NA , OD,OA, FE into tStore sort items of tStore by word 1 of each put tStore into msg ___ 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-livecode
Re: use-livecode Digest, Vol 132, Issue 56
Bis zum 12.10.2014 bin ich nicht verfügbar. Ich werde meine Emails nicht lesen. In dringenden Fällen erreichen Sie mich über mein Mobiltelefon. I will be out of office until 12.10.2014. I won't read me emails. In urgent matter please call me on my mobile. ___ 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-livecode
Re: Sorting a multidimensional array
On Sep 25, 2014, at 9:24 PM, Peter Bogdanoff bogdan...@me.com wrote: My first foray into arrays Hi, Peter. For this foray, you could use a one-dimensional array, containing the three lines of html text for each plain text key: command sortGroupsOfLines local tText, tLineNumber, tGroup, tKey, tArray, tKeys, tSortedGroups put the text of fld 1 into tText split tText by cr and null repeat for each line tLine in the HTMLtext of fld 1 add 1 to tLineNumber switch tLineNumber wrap 3 case 1 put tText[ tLineNumber ] into tKey put tLine cr into tGroup break case 2 put tLine cr after tGroup break case 3 put tGroup tLine cr into tArray[ tKey ] end switch end repeat put the keys of tArray into tKeys sort tKeys repeat for each line tKey in tKeys put tArray[ tKey ] after tSortedGroups end repeat set the HTMLText of fld 2 to tSortedGroups end sortGroupsOfLines Because this approach has only three references to objects, it's faster. How's that, Peter? -- Dick ___ 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-livecode
Re: Documentation
Mark Smith wrote: I've just upgraded from 5.5.5 to 6.6.3. Surely there have been a few changes between then and now? But reading the Release Notes provides no hint. Is there one document I can read that tracks all of the additions, updates and changes from 5.5.5 to 6.6.3? There's no single document outlining the changes between that specific range of versions, but the release notes for each version will bring you up to speed: http://downloads.livecode.com/livecode/ -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ambassa...@fourthworld.comhttp://www.FourthWorld.com ___ 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-livecode
Re: Documentation
Just a thought: One of pieces of software that we use in our office environment, we can go online and put in the version of the software you are using and the version that you have upgraded to and it will compile a complete feature / bug fix document for you on the fly based upon the version differences. It would be GREAT to have something like this Anybody care to take this on? :) SKIP On Fri, Sep 26, 2014 at 9:23 AM, Richard Gaskin ambassa...@fourthworld.com wrote: Mark Smith wrote: I've just upgraded from 5.5.5 to 6.6.3. Surely there have been a few changes between then and now? But reading the Release Notes provides no hint. Is there one document I can read that tracks all of the additions, updates and changes from 5.5.5 to 6.6.3? There's no single document outlining the changes between that specific range of versions, but the release notes for each version will bring you up to speed: http://downloads.livecode.com/livecode/ -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ambassa...@fourthworld.comhttp://www.FourthWorld.com ___ 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-livecode ___ 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-livecode
Re: ShellShock - what are you doing?
On Sep 25, 2014, at 6:24 PM, Rick Harrison wrote: I also went to the real website for Homeland Security: http://www.dhs.gov/news There is absolutely nothing about any vulnerability in bash in the news there! Yes there is. Do a search on their site for shellshock. Or is there a joke here I'm not getting? -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig ___ 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-livecode
6.6.2 or 6.6.3???
Hi all. I’m wondering if any other Windows users are encountering this: I downloaded and installed the 6.6.3 installer, the commercial version, to test in my Windows 7 environment. But when the app launches it reports that it is 6.6.2! So I get an alert that there is a new version, 6.6.3, so I install that over top. It still reports that it is version 6.6.2!!! So which is it? 6.6.2, or 6.6.3? Is this just a display bug? The About Livecode splash screen is indicating 6.6.2 build 4012. Bob S ___ 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-livecode
getting a section cross-platform without utf
I'm not ready to deal with general utf conversion yet. About the only thing I need is the section symbol, § (on mac). With 5.5, is there a way to type this in that will render as a section symbol on both mac pc -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 ___ 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-livecode
RE: 6.6.2 or 6.6.3???
There was no change in the Windows version from 6.6.2 to 6.6.3. After the Windows build the 6.6.2 was noticed. RR did not want to crunch for 6 hours of CPU to rebuild for a simple cosmetic change. I am getting the update notification also. I guess this is a by-product of the version being reported as 6.6.2. I don't get the update notification on Mac. I just ignored this version on Windows. Ralph DiMola IT Director Evergreen Information Services rdim...@evergreeninfo.net -Original Message- From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of Bob Sneidar Sent: Friday, September 26, 2014 2:01 PM To: How to use LiveCode Subject: 6.6.2 or 6.6.3??? Hi all. I'm wondering if any other Windows users are encountering this: I downloaded and installed the 6.6.3 installer, the commercial version, to test in my Windows 7 environment. But when the app launches it reports that it is 6.6.2! So I get an alert that there is a new version, 6.6.3, so I install that over top. It still reports that it is version 6.6.2!!! So which is it? 6.6.2, or 6.6.3? Is this just a display bug? The About Livecode splash screen is indicating 6.6.2 build 4012. Bob S ___ 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-livecode ___ 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-livecode
Re: getting a section cross-platform without utf
On 26/09/14 21:15, Dr. Hawkins wrote: I'm not ready to deal with general utf conversion yet. About the only thing I need is the section symbol, § (on mac). With 5.5, is there a way to type this in that will render as a section symbol on both mac pc You can do this: Put numToChar(167) Richmond. ___ 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-livecode
iOS app submission error - invalid segment alignment
Has anyone run into this? Suddenly I’m getting this error when trying to upload a build with Application Loader. I’ve tried both AL 2.9.1 and 3.0 (actually, version 3.0 gives me a “redundant binary” error, but I think it’s a bug in AL itself). The strange thing is I created and uploaded a build for a different app just fine a week ago, using the same version of LC (6.6.3). Thoughts? Thanks, Chris -- Chris Sheffield Read Naturally, Inc. www.readnaturally.com ___ 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-livecode
Re: 6.6.2 or 6.6.3???
Hi Bob, I had the exact same experience that you did. I just assumed it was a display bug with LC and ignored it. When I got the alert about 6.6.3, I just chose Skip this version. Maybe you or someone will report it as a bug. Larry - Original Message - From: Bob Sneidar bobsnei...@iotecdigital.com To: How to use LiveCode use-livecode@lists.runrev.com Sent: Friday, September 26, 2014 12:00 PM Subject: 6.6.2 or 6.6.3??? Hi all. I’m wondering if any other Windows users are encountering this: I downloaded and installed the 6.6.3 installer, the commercial version, to test in my Windows 7 environment. But when the app launches it reports that it is 6.6.2! So I get an alert that there is a new version, 6.6.3, so I install that over top. It still reports that it is version 6.6.2!!! So which is it? 6.6.2, or 6.6.3? Is this just a display bug? The About Livecode splash screen is indicating 6.6.2 build 4012. Bob S ___ 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-livecode ___ 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-livecode
Re: 6.6.2 or 6.6.3???
On 26/09/2014 19:24, la...@significantplanet.org wrote: Hi Bob, I had the exact same experience that you did. I just assumed it was a display bug with LC and ignored it. When I got the alert about 6.6.3, I just chose Skip this version. Maybe you or someone will report it as a bug. Larry That's exactly what it is - a minor bug caused by an oversight on my part (I forgot to update the version information file on the Windows build machine). Given the relative urgency of getting 6.6.3 out, it didn't seem worthwhile delaying the release (it would have been all platforms because the standalone engine version is wrong too). If you submit a bug report, it would immediately get set to AWAITING_BUILD; after all, it will be fixed in the next build ;) Regards, Fraser ___ 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-livecode
Re: iOS app submission error - invalid segment alignment
I happen to know a lot about this, but hoped that LiveCode wouldn’t be affected. Apple changed the way that the linker works. If LiveCode is using its own linker, it’s likely to be doing it in an old way that is no longer valid. Using the Apple linker that is at /usr/bin/ln solves the problem for other tools. Don’t know if that will apply to LiveCode. Now, if LiveCode is already using the system linker, then you should be able to fix things by updating to Xcode 6.0.1. ___ 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-livecode
Re: iOS app submission error - invalid segment alignment
Colin, I thought I saw your name on one of the forums where someone else (I believe a Flash Builder user) had reported this same issue. I do have Xcode 6.0.1 installed, and I’ve made sure the command line tools are set to Xcode 6.0.1 in Xcode's Preferences - Locations (not sure if that has anything to do with it or not), but I’m still getting the same error. It looked like on that Adobe forum (is that what it was?) they had a workaround, but I didn’t quite understand it. Did you? If so, could you explain it here? I can’t possibly be the only one affected by this. I will probably email LC support here pretty soon if I can’t figure out anything else. Thanks, Chris On Sep 26, 2014, at 12:54 PM, Colin Holgate co...@verizon.net wrote: I happen to know a lot about this, but hoped that LiveCode wouldn’t be affected. Apple changed the way that the linker works. If LiveCode is using its own linker, it’s likely to be doing it in an old way that is no longer valid. Using the Apple linker that is at /usr/bin/ln solves the problem for other tools. Don’t know if that will apply to LiveCode. Now, if LiveCode is already using the system linker, then you should be able to fix things by updating to Xcode 6.0.1. ___ 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-livecode ___ 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-livecode
Re: iOS app submission error - invalid segment alignment
One interesting thing about the Adobe thread is the number of people who seemed to be submitting apps right now, and were hit with the problem. In Adobe’s case they have their own version of the linker, because they need to be able to publish to iOS from Windows, amongst other reasons. The work around for now is to replace the Adobe ln64 file with the system’s ln file (renamed), then when you compile an iOS app it ends up using Apple’s linker. The solution doesn’t work for Windows, Adobe will have to update their own linker to fix things there. From what you say it could be that LiveCode does use its own linker, or it has an engine that your stack gets bundled with, and that engine was created with an older Xcode. ___ 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-livecode
Regex Help
Hey LC / Regex gurus, I need help creating a regular expression that will filter out all instances where the pattern looks like this: /point-XXX-landed.html Obviously the XX section varies from item to item and is also of different character lengths. Anybody willing to give this a shot? SKIP ___ 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-livecode
Re: iOS app submission error - invalid segment alignment
Here’s something that’s strange though, and maybe I’m just not totally understanding the problem exactly. LiveCode 6.6.3 supports Xcode 5.1.1, and builds against the iOS SDK included with that. Apple is supposedly still accepting apps built against that SDK (at least, that’s what iTunes Connect says). But I’m getting this error even when building my app with LC 6.6.3. So I don’t get why it’s an issue. Something else going on? But it sounds like RunRev are aware of the problem and working on a fix, according to Mike Kerner just a minute ago. On Sep 26, 2014, at 2:01 PM, Colin Holgate co...@verizon.net wrote: One interesting thing about the Adobe thread is the number of people who seemed to be submitting apps right now, and were hit with the problem. In Adobe’s case they have their own version of the linker, because they need to be able to publish to iOS from Windows, amongst other reasons. The work around for now is to replace the Adobe ln64 file with the system’s ln file (renamed), then when you compile an iOS app it ends up using Apple’s linker. The solution doesn’t work for Windows, Adobe will have to update their own linker to fix things there. From what you say it could be that LiveCode does use its own linker, or it has an engine that your stack gets bundled with, and that engine was created with an older Xcode. ___ 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-livecode ___ 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-livecode
Re: Regex Help
Hi, It could be something like this: on mouseUp put */point-*-landed.html into myFilter put fld 1 into myData filter myData without myFilter put myData end mouseUp but if this doesn't work, you'll have to post an actual sample of your data. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book Programming LiveCode for the Real Beginner http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ On 9/26/2014 22:04, Magicgate Software - Skip Kimpel wrote: Hey LC / Regex gurus, I need help creating a regular expression that will filter out all instances where the pattern looks like this: /point-XXX-landed.html Obviously the XX section varies from item to item and is also of different character lengths. Anybody willing to give this a shot? SKIP ___ 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-livecode
Re: searching for chars within a string
Hello Peter, Thanks for sending your functions. I'm still sort of a newbie and I had to get a programming friend give me a quick course in how functions work (especially the local variables.) Anyway, I ran a test using your functions against the offset() function in LC Searching 78 characters (the entire alphabet repeated 3 times) for all possible 7-ltr words (32,856 is the result) we have: your functions: 3045 milliseconds offset(): 1249 milliseconds But I'm going to file away your functions because I may use them later in some other manner - and what I learned today about functions was very helpful. So thanks again. Larry P.S. I'm using LC 6.6.3 on Windows XP with 4gb of ram. - Original Message - From: Peter M. Brigham pmb...@gmail.com To: How to use LiveCode use-livecode@lists.runrev.com Sent: Friday, September 26, 2014 11:53 AM Subject: Re: searching for chars within a string I'm curious, Larry -- how fast is this on your machine compared to the regex solutions? function isInString testStr, targetStr repeat for each char c in testStr add 1 to countArray[c] end repeat put the keys of countArray into letterList repeat for each line L in letterlist put countArray[L] into nbrCharsTest put howMany(c,targetStr,comma) into nbrCharsNeeded if nbrCharsNeeded nbrCharsTest then return false end repeat return true end isInString function howmany tg,container,divChar -- how many tg = target string is in container replace tg with divChar in container set the itemdelimiter to divChar put the number of items of container into h if char -1 of container = divChar then return h -- trailing delimiter is ignored return h-1 end howmany -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig On Sep 26, 2014, at 11:58 AM, la...@significantplanet.org la...@significantplanet.org wrote: Hello Kay, Good stuff. I did some time tests and offset() is about twice as fast as matchText(). Don't know why. Larry - Original Message - From: Kay C Lan lan.kc.macm...@gmail.com To: How to use LiveCode use-livecode@lists.runrev.com Sent: Friday, September 26, 2014 12:54 AM Subject: Re: searching for chars within a string A simple way would be just to use basic matchText() for each single letter and regex matchText() for repeating letters. P.*P will find double Ps, P.*P.*P will find triple Ps etc. Seems to be relatively fast but if you have very large data sets other alternatives would need to be investigated. in the message box: put ABCDEKLP into X put ABCDEKMMOOPP into Y put 10 into Z put 0 into a put 0 into b put 0 into c put 0 into d put the millisec into tStart repeat Z times if (matchText(X, A) AND matchText(X, E) AND matchText(X, L) AND matchText(X, P.*P)) then add 1 to a else add 1 to b end if if (matchText(Y, A) AND matchText(Y, E) AND matchText(Y, L) AND matchText(Y, P.*P)) then add 1 to c else add 1 to d end if end repeat put the millisec into tEnd put X Passed a times. cr into msg put X Failed b times. cr after msg put Y Passed c times. cr after msg put Y Failed d times. cr after msg put Z repeats took tEnd - tStart ms after msg The above should take less than 1 sec but for a million repeats I got: X Passed 0 times. X Failed 100 times. Y Passed 100 times. Y Failed 0 times. 100 repeats took 1997 ms NOTE: the above only works if the letters you are looking for can appear in ANY order. If you need a specific order then you'd have to regex matchText() for all searches, ie if (matchText(X, A.*E.*L.*P) AND matchText(X,P.*P)) then Yes, the P must appear in both searches to ensure a P has both an L before it and a P after it. HTH On Wed, Sep 24, 2014 at 8:22 AM, la...@significantplanet.org wrote: Hello, I have done a lot research and cannot find any way to do this: I have a string, AELPP and I want to see if all 5 of those letters are in search string If search string is: ABCDEKLP, then NO it isn't because there are two P's in the string I'm searching for. But if search string is: ABCDEKLLLMMOOPP, then YES the string I'm searching for is found in the search string. It is important to my program that I just find the 5 chars anywhere within the search string and they do not have to be sequential in the search string. ___ 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-livecode ___ 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-livecode
Re: getting a section cross-platform without utf
On Fri, Sep 26, 2014 at 11:19 AM, Richmond richmondmathew...@gmail.com wrote: Put numToChar(167) I just tried that on a mac. I think what it gave me was a german esset, the double s that looks like a beta . . . -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 ___ 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-livecode
Re: Regex Help
Thanks Mark, Actually look for the regex version as I will be applying that externally before feeding into LC. Here is a sample of the data: /point-item1-landed.html /point-about.html /point-test.html /point-item2-landed.html /point-item300-landed.html The results I want returned are: /point-item1-landed.html /point-item2-landed.html /point-item300-landed.html Thanks for your input! On Fri, Sep 26, 2014 at 4:17 PM, Mark Schonewille m.schonewi...@economy-x-talk.com wrote: Hi, It could be something like this: on mouseUp put */point-*-landed.html into myFilter put fld 1 into myData filter myData without myFilter put myData end mouseUp but if this doesn't work, you'll have to post an actual sample of your data. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book Programming LiveCode for the Real Beginner http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ On 9/26/2014 22:04, Magicgate Software - Skip Kimpel wrote: Hey LC / Regex gurus, I need help creating a regular expression that will filter out all instances where the pattern looks like this: /point-XXX-landed.html Obviously the XX section varies from item to item and is also of different character lengths. Anybody willing to give this a shot? SKIP ___ 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-livecode ___ 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-livecode
Re: iOS app submission error - invalid segment alignment
See the bug report I referred to. This particular problem is with the linker. On Fri, Sep 26, 2014 at 4:09 PM, Chris Sheffield cmsheffi...@icloud.com wrote: Here’s something that’s strange though, and maybe I’m just not totally understanding the problem exactly. LiveCode 6.6.3 supports Xcode 5.1.1, and builds against the iOS SDK included with that. Apple is supposedly still accepting apps built against that SDK (at least, that’s what iTunes Connect says). But I’m getting this error even when building my app with LC 6.6.3. So I don’t get why it’s an issue. Something else going on? But it sounds like RunRev are aware of the problem and working on a fix, according to Mike Kerner just a minute ago. On Sep 26, 2014, at 2:01 PM, Colin Holgate co...@verizon.net wrote: One interesting thing about the Adobe thread is the number of people who seemed to be submitting apps right now, and were hit with the problem. In Adobe’s case they have their own version of the linker, because they need to be able to publish to iOS from Windows, amongst other reasons. The work around for now is to replace the Adobe ln64 file with the system’s ln file (renamed), then when you compile an iOS app it ends up using Apple’s linker. The solution doesn’t work for Windows, Adobe will have to update their own linker to fix things there. From what you say it could be that LiveCode does use its own linker, or it has an engine that your stack gets bundled with, and that engine was created with an older Xcode. ___ 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-livecode ___ 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-livecode -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, This is good. ___ 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-livecode
Re: getting a section cross-platform without utf
On 26/09/14 23:20, Dr. Hawkins wrote: On Fri, Sep 26, 2014 at 11:19 AM, Richmond richmondmathew...@gmail.com wrote: Put numToChar(167) I just tried that on a mac. I think what it gave me was a german esset, the double s that looks like a beta . . . That makes no sense at all as the Unicode char 'siglum' § is U+00A7 Decimal 167 While the 'esset' ß is U+00DF Decimal 223 Richmond. ___ 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-livecode
Re: Regex Help
Hi, Then you can try this: on mouseUp put /point-item[0-9]+-landed.html into myFilter put fld 1 into myData filter myData with regex pattern myFilter put myData end mouseUp This is a LiveCode example, but you can apply the regex /point-item[0-9]+-landed.html in PHP or Perl. I tried this with and without escaping the slash and dashes, but escaping seems unnecesary. If the regex doesn't work in PHP or Perl, maybe you could try \/point\-item[0-9]+\-landed.html but I haven't tested if this would be necessary. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book Programming LiveCode for the Real Beginner http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ On 9/26/2014 22:27, Magicgate Software - Skip Kimpel wrote: The results I want returned are: ___ 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-livecode
Re: Regex Help
The middle item X does not always have a number in it. The common denominator between all the items I WANT to keep start with page- and end with -landed.html On Fri, Sep 26, 2014 at 4:37 PM, Mark Schonewille m.schonewi...@economy-x-talk.com wrote: Hi, Then you can try this: on mouseUp put /point-item[0-9]+-landed.html into myFilter put fld 1 into myData filter myData with regex pattern myFilter put myData end mouseUp This is a LiveCode example, but you can apply the regex /point-item[0-9]+-landed.html in PHP or Perl. I tried this with and without escaping the slash and dashes, but escaping seems unnecesary. If the regex doesn't work in PHP or Perl, maybe you could try \/point\-item[0-9]+\-landed.html but I haven't tested if this would be necessary. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book Programming LiveCode for the Real Beginner http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ On 9/26/2014 22:27, Magicgate Software - Skip Kimpel wrote: The results I want returned are: ___ 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-livecode ___ 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-livecode
Re: Regex Help
Then what exactly does the middle item contain? Numbers and letters? Special symbols? Chinese? -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book Programming LiveCode for the Real Beginner http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ On 9/26/2014 22:49, Magicgate Software - Skip Kimpel wrote: The middle item X does not always have a number in it. The common denominator between all the items I WANT to keep start with page- and end with -landed.html On Fri, Sep 26, 2014 at 4:37 PM, Mark Schonewille m.schonewi...@economy-x-talk.com wrote: Hi, Then you can try this: on mouseUp put /point-item[0-9]+-landed.html into myFilter put fld 1 into myData filter myData with regex pattern myFilter put myData end mouseUp This is a LiveCode example, but you can apply the regex /point-item[0-9]+-landed.html in PHP or Perl. I tried this with and without escaping the slash and dashes, but escaping seems unnecesary. If the regex doesn't work in PHP or Perl, maybe you could try \/point\-item[0-9]+\-landed.html but I haven't tested if this would be necessary. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book Programming LiveCode for the Real Beginner http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ On 9/26/2014 22:27, Magicgate Software - Skip Kimpel wrote: The results I want returned are: ___ 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-livecode ___ 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-livecode ___ 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-livecode
RE: iOS app submission error - invalid segment alignment
I just had an iOS app approved for the store today. I submitted it on 9/16 and was reviewed and approved today. I submitted it with Mountain Lion/LC 6.6.3/Xcode 5.1.1 I have since upgraded to Mavericks. Is this an OSX issue? Have the rules changed since 9/16? Ralph DiMola IT Director Evergreen Information Services rdim...@evergreeninfo.net Phone: 518-636-3998 Ex:11 Cell: 518-796-9332 -Original Message- From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of Chris Sheffield Sent: Friday, September 26, 2014 4:09 PM To: How to use LiveCode Subject: Re: iOS app submission error - invalid segment alignment Here's something that's strange though, and maybe I'm just not totally understanding the problem exactly. LiveCode 6.6.3 supports Xcode 5.1.1, and builds against the iOS SDK included with that. Apple is supposedly still accepting apps built against that SDK (at least, that's what iTunes Connect says). But I'm getting this error even when building my app with LC 6.6.3. So I don't get why it's an issue. Something else going on? But it sounds like RunRev are aware of the problem and working on a fix, according to Mike Kerner just a minute ago. On Sep 26, 2014, at 2:01 PM, Colin Holgate co...@verizon.net wrote: One interesting thing about the Adobe thread is the number of people who seemed to be submitting apps right now, and were hit with the problem. In Adobe's case they have their own version of the linker, because they need to be able to publish to iOS from Windows, amongst other reasons. The work around for now is to replace the Adobe ln64 file with the system's ln file (renamed), then when you compile an iOS app it ends up using Apple's linker. The solution doesn't work for Windows, Adobe will have to update their own linker to fix things there. From what you say it could be that LiveCode does use its own linker, or it has an engine that your stack gets bundled with, and that engine was created with an older Xcode. ___ 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-livecode ___ 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-livecode ___ 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-livecode
Re: Regex Help
Sorry... it contains letters. Sorry for the confusion. I should have been more complete with my explanation and sample data. SKIP On Fri, Sep 26, 2014 at 4:51 PM, Mark Schonewille m.schonewi...@economy-x-talk.com wrote: Then what exactly does the middle item contain? Numbers and letters? Special symbols? Chinese? -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book Programming LiveCode for the Real Beginner http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ On 9/26/2014 22:49, Magicgate Software - Skip Kimpel wrote: The middle item X does not always have a number in it. The common denominator between all the items I WANT to keep start with page- and end with -landed.html On Fri, Sep 26, 2014 at 4:37 PM, Mark Schonewille m.schonewi...@economy-x-talk.com wrote: Hi, Then you can try this: on mouseUp put /point-item[0-9]+-landed.html into myFilter put fld 1 into myData filter myData with regex pattern myFilter put myData end mouseUp This is a LiveCode example, but you can apply the regex /point-item[0-9]+-landed.html in PHP or Perl. I tried this with and without escaping the slash and dashes, but escaping seems unnecesary. If the regex doesn't work in PHP or Perl, maybe you could try \/point\-item[0-9]+\-landed.html but I haven't tested if this would be necessary. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book Programming LiveCode for the Real Beginner http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ On 9/26/2014 22:27, Magicgate Software - Skip Kimpel wrote: The results I want returned are: ___ 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-livecode ___ 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-livecode ___ 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-livecode ___ 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-livecode
Re: Regex Help
Hi Skip, If it contains numbers and letters, it could be /point-item[0-9a-zA-Z]+-landed.html and if it contains anything except whitespace, it could be /point-item[\w]+-landed.html Both options work with the sample data you provided. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book Programming LiveCode for the Real Beginner http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ On 9/26/2014 22:54, Magicgate Software - Skip Kimpel wrote: Sorry... it contains letters. Sorry for the confusion. I should have been more complete with my explanation and sample data. SKIP On Fri, Sep 26, 2014 at 4:51 PM, Mark Schonewille m.schonewi...@economy-x-talk.com wrote: Then what exactly does the middle item contain? Numbers and letters? Special symbols? Chinese? -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book Programming LiveCode for the Real Beginner http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ On 9/26/2014 22:49, Magicgate Software - Skip Kimpel wrote: The middle item X does not always have a number in it. The common denominator between all the items I WANT to keep start with page- and end with -landed.html On Fri, Sep 26, 2014 at 4:37 PM, Mark Schonewille m.schonewi...@economy-x-talk.com wrote: Hi, Then you can try this: on mouseUp put /point-item[0-9]+-landed.html into myFilter put fld 1 into myData filter myData with regex pattern myFilter put myData end mouseUp This is a LiveCode example, but you can apply the regex /point-item[0-9]+-landed.html in PHP or Perl. I tried this with and without escaping the slash and dashes, but escaping seems unnecesary. If the regex doesn't work in PHP or Perl, maybe you could try \/point\-item[0-9]+\-landed.html but I haven't tested if this would be necessary. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book Programming LiveCode for the Real Beginner http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ On 9/26/2014 22:27, Magicgate Software - Skip Kimpel wrote: The results I want returned are: ___ 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-livecode ___ 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-livecode ___ 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-livecode ___ 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-livecode ___ 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-livecode
Re: iOS app submission error - invalid segment alignment
There is something new with the linker. Adobe is having the same issues. On Fri, Sep 26, 2014 at 4:55 PM, Ralph DiMola rdim...@evergreeninfo.net wrote: I just had an iOS app approved for the store today. I submitted it on 9/16 and was reviewed and approved today. I submitted it with Mountain Lion/LC 6.6.3/Xcode 5.1.1 I have since upgraded to Mavericks. Is this an OSX issue? Have the rules changed since 9/16? Ralph DiMola IT Director Evergreen Information Services rdim...@evergreeninfo.net Phone: 518-636-3998 Ex:11 Cell: 518-796-9332 -Original Message- From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of Chris Sheffield Sent: Friday, September 26, 2014 4:09 PM To: How to use LiveCode Subject: Re: iOS app submission error - invalid segment alignment Here's something that's strange though, and maybe I'm just not totally understanding the problem exactly. LiveCode 6.6.3 supports Xcode 5.1.1, and builds against the iOS SDK included with that. Apple is supposedly still accepting apps built against that SDK (at least, that's what iTunes Connect says). But I'm getting this error even when building my app with LC 6.6.3. So I don't get why it's an issue. Something else going on? But it sounds like RunRev are aware of the problem and working on a fix, according to Mike Kerner just a minute ago. On Sep 26, 2014, at 2:01 PM, Colin Holgate co...@verizon.net wrote: One interesting thing about the Adobe thread is the number of people who seemed to be submitting apps right now, and were hit with the problem. In Adobe's case they have their own version of the linker, because they need to be able to publish to iOS from Windows, amongst other reasons. The work around for now is to replace the Adobe ln64 file with the system's ln file (renamed), then when you compile an iOS app it ends up using Apple's linker. The solution doesn't work for Windows, Adobe will have to update their own linker to fix things there. From what you say it could be that LiveCode does use its own linker, or it has an engine that your stack gets bundled with, and that engine was created with an older Xcode. ___ 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-livecode ___ 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-livecode ___ 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-livecode -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, This is good. ___ 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-livecode
Re: iOS app submission error - invalid segment alignment
Ralph, I’m glad to hear your app got approved. We’ve got another one waiting for review right now. I built it and submitted it last Friday, using Mavericks, LC 6.6.3, and Xcode 5.1.1. So I’m hoping it won’t get rejected because of this. Knowing that yours wasn’t gives me hope. :-) It doesn’t appear to be an OS X issue, so you should be fine once RunRev release LC 6.6.4. You can read more about it here http://quality.runrev.com/show_bug.cgi?id=13536 http://quality.runrev.com/show_bug.cgi?id=13536. On Sep 26, 2014, at 2:55 PM, Ralph DiMola rdim...@evergreeninfo.net wrote: I just had an iOS app approved for the store today. I submitted it on 9/16 and was reviewed and approved today. I submitted it with Mountain Lion/LC 6.6.3/Xcode 5.1.1 I have since upgraded to Mavericks. Is this an OSX issue? Have the rules changed since 9/16? Ralph DiMola IT Director Evergreen Information Services rdim...@evergreeninfo.net Phone: 518-636-3998 Ex:11 Cell: 518-796-9332 -Original Message- From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of Chris Sheffield Sent: Friday, September 26, 2014 4:09 PM To: How to use LiveCode Subject: Re: iOS app submission error - invalid segment alignment Here's something that's strange though, and maybe I'm just not totally understanding the problem exactly. LiveCode 6.6.3 supports Xcode 5.1.1, and builds against the iOS SDK included with that. Apple is supposedly still accepting apps built against that SDK (at least, that's what iTunes Connect says). But I'm getting this error even when building my app with LC 6.6.3. So I don't get why it's an issue. Something else going on? But it sounds like RunRev are aware of the problem and working on a fix, according to Mike Kerner just a minute ago. On Sep 26, 2014, at 2:01 PM, Colin Holgate co...@verizon.net wrote: One interesting thing about the Adobe thread is the number of people who seemed to be submitting apps right now, and were hit with the problem. In Adobe's case they have their own version of the linker, because they need to be able to publish to iOS from Windows, amongst other reasons. The work around for now is to replace the Adobe ln64 file with the system's ln file (renamed), then when you compile an iOS app it ends up using Apple's linker. The solution doesn't work for Windows, Adobe will have to update their own linker to fix things there. From what you say it could be that LiveCode does use its own linker, or it has an engine that your stack gets bundled with, and that engine was created with an older Xcode. ___ 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-livecode ___ 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-livecode ___ 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-livecode ___ 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-livecode
Re: iOS app submission error - invalid segment alignment
The requirement of Xcode 5.1.1 was how things were at the start of the week. The new problem has happened since then. My suspicion is that as part of the failed update to iOS 8.0.1 something bad was discovered, and Xcode 6.0.1 was released on the 17th to counter some malicious attack kinda thing. So, I think it’s quite a recent issue. The ld file that is used by Xcode 6.0.1 is only a day old. Ralph was lucky to get through. I know of another developer who submitted their app a few days ago, and it got through the initially checking, but then was rejected during the review stage, because the new requirements had kicked in by then. ___ 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-livecode
Re: ShellShock - what are you doing?
Peter- Friday, September 26, 2014, 8:41:35 AM, you wrote: Or is there a joke here I'm not getting? Yeah, Rick was just trolling. Move along, nothing to see here. Shellshock is a level 10 alert, and there is no 11. -- -Mark Wieder ahsoftw...@gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. ___ 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-livecode
Re: iOS app submission error - invalid segment alignment
never mind, the new patch doesn't fix it, either. On Fri, Sep 26, 2014 at 4:58 PM, Mike Kerner mikeker...@roadrunner.com wrote: There is something new with the linker. Adobe is having the same issues. On Fri, Sep 26, 2014 at 4:55 PM, Ralph DiMola rdim...@evergreeninfo.net wrote: I just had an iOS app approved for the store today. I submitted it on 9/16 and was reviewed and approved today. I submitted it with Mountain Lion/LC 6.6.3/Xcode 5.1.1 I have since upgraded to Mavericks. Is this an OSX issue? Have the rules changed since 9/16? Ralph DiMola IT Director Evergreen Information Services rdim...@evergreeninfo.net Phone: 518-636-3998 Ex:11 Cell: 518-796-9332 -Original Message- From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of Chris Sheffield Sent: Friday, September 26, 2014 4:09 PM To: How to use LiveCode Subject: Re: iOS app submission error - invalid segment alignment Here's something that's strange though, and maybe I'm just not totally understanding the problem exactly. LiveCode 6.6.3 supports Xcode 5.1.1, and builds against the iOS SDK included with that. Apple is supposedly still accepting apps built against that SDK (at least, that's what iTunes Connect says). But I'm getting this error even when building my app with LC 6.6.3. So I don't get why it's an issue. Something else going on? But it sounds like RunRev are aware of the problem and working on a fix, according to Mike Kerner just a minute ago. On Sep 26, 2014, at 2:01 PM, Colin Holgate co...@verizon.net wrote: One interesting thing about the Adobe thread is the number of people who seemed to be submitting apps right now, and were hit with the problem. In Adobe's case they have their own version of the linker, because they need to be able to publish to iOS from Windows, amongst other reasons. The work around for now is to replace the Adobe ln64 file with the system's ln file (renamed), then when you compile an iOS app it ends up using Apple's linker. The solution doesn't work for Windows, Adobe will have to update their own linker to fix things there. From what you say it could be that LiveCode does use its own linker, or it has an engine that your stack gets bundled with, and that engine was created with an older Xcode. ___ 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-livecode ___ 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-livecode ___ 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-livecode -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, This is good. -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, This is good. ___ 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-livecode
Re: getting a section cross-platform without utf
On Sep 26, 2014, at 2:20 PM, Dr. Hawkins doch...@gmail.com wrote: On Fri, Sep 26, 2014 at 11:19 AM, Richmond richmondmathew...@gmail.com wrote: Put numToChar(167) I just tried that on a mac. I think what it gave me was a german esset, the double s that looks like a beta . . . -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 Richard, You can use htmlText. Have you tried: set the htmltext of fld 1 to psect;/p” Works for me here on 5.5.4. Devin Devin Asay Office of Digital Humanities Brigham Young University ___ 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-livecode
Re: iOS app submission error - invalid segment alignment
I read the notes, and Mark quotes me a few times! As I’ve said in a note to that bug, taking the system linker and using it in place of the Xcode linker won’t do you any good, it’s the same linker. If you’re not on Xcode 6.0.1 the linker is too old. If LiveCode can’t build against 6.0.1 it may still be worth trying the linker from 6.0.1 on the Xcode that LiveCode can use. I have that file if you want to give it a try. ___ 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-livecode
Re: ShellShock - what are you doing?
Can anyone explain exactly what this means? What are those special, advanced Unix services? But Apple said in an emailed statement that most of its users aren't affected, as OS X's systems are safe by default and not exposed to remote exploits of Bash -- unless users have actively turned on special, advanced Unix services. Bruce Pokras Blazing Dawn Software www.blazingdawn.com On Sep 25, 2014, at 5:41 PM, Mike Kerner mikeker...@roadrunner.com wrote: Here's the full explanation from RedHat, https://access.redhat.com/articles/1200223 which is pretty extensive, including a section on mitigation steps On Thu, Sep 25, 2014 at 5:16 PM, Mike Kerner mikeker...@roadrunner.com wrote: Hmm. RedHat says their patch is incomplete. I wonder what script that I haven't seen, yet, works. On Thu, Sep 25, 2014 at 5:01 PM, Mike Kerner mikeker...@roadrunner.com wrote: Well, RedHat was patched early this morning, and appears to be ok. On Thu, Sep 25, 2014 at 4:33 PM, Rick Harrison harri...@all-auctions.com wrote: Pulling the computer from the internet until I hear Apple has fixed it! I don’t have time to mess with different shells hoping they work. I’ll check back in a day or so, and do something analog until then. Thanks for the head’s up! Rick ___ 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-livecode -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, This is good. -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, This is good. -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, This is good. ___ 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-livecode ___ 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-livecode
Re: Regex Help
Thank you Mark! On Fri, Sep 26, 2014 at 4:58 PM, Mark Schonewille m.schonewi...@economy-x-talk.com wrote: Hi Skip, If it contains numbers and letters, it could be /point-item[0-9a-zA-Z]+-landed.html and if it contains anything except whitespace, it could be /point-item[\w]+-landed.html Both options work with the sample data you provided. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book Programming LiveCode for the Real Beginner http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ On 9/26/2014 22:54, Magicgate Software - Skip Kimpel wrote: Sorry... it contains letters. Sorry for the confusion. I should have been more complete with my explanation and sample data. SKIP On Fri, Sep 26, 2014 at 4:51 PM, Mark Schonewille m.schonewi...@economy-x-talk.com wrote: Then what exactly does the middle item contain? Numbers and letters? Special symbols? Chinese? -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book Programming LiveCode for the Real Beginner http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ On 9/26/2014 22:49, Magicgate Software - Skip Kimpel wrote: The middle item X does not always have a number in it. The common denominator between all the items I WANT to keep start with page- and end with -landed.html On Fri, Sep 26, 2014 at 4:37 PM, Mark Schonewille m.schonewi...@economy-x-talk.com wrote: Hi, Then you can try this: on mouseUp put /point-item[0-9]+-landed.html into myFilter put fld 1 into myData filter myData with regex pattern myFilter put myData end mouseUp This is a LiveCode example, but you can apply the regex /point-item[0-9]+-landed.html in PHP or Perl. I tried this with and without escaping the slash and dashes, but escaping seems unnecesary. If the regex doesn't work in PHP or Perl, maybe you could try \/point\-item[0-9]+\-landed.html but I haven't tested if this would be necessary. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book Programming LiveCode for the Real Beginner http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ On 9/26/2014 22:27, Magicgate Software - Skip Kimpel wrote: The results I want returned are: ___ 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-livecode ___ 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-livecode ___ 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-livecode ___ 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-livecode ___ 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-livecode ___ 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-livecode
Re: iOS app submission error - invalid segment alignment
Okay, so if we just take the ld file from Xcode 6.0.1 and place it inside the older SDKs, theoretically that should take care of the problem? Will that cause weird incompatibilities? Guess it’s worth a try. :-) On Sep 26, 2014, at 3:27 PM, Colin Holgate co...@verizon.net wrote: I read the notes, and Mark quotes me a few times! As I’ve said in a note to that bug, taking the system linker and using it in place of the Xcode linker won’t do you any good, it’s the same linker. If you’re not on Xcode 6.0.1 the linker is too old. If LiveCode can’t build against 6.0.1 it may still be worth trying the linker from 6.0.1 on the Xcode that LiveCode can use. I have that file if you want to give it a try. ___ 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-livecode ___ 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-livecode
HTTPProyy
Hi all, having read up on, and tried, most posts with suggestions on how to make LiveCode access the web through a proxy, I'm in a cul-de-sac. It works fine (POST-ing a SOAP web service) without going through a proxy. Although I get error timeout when HTTPProxy is set to my clients proxy server IP or DNS. Maybe I did not search the posts thoroughly enough and missed something obvious (the LiveCode posts and community are both the reason I am still in business…) Has anyone managed to go through a proxy? If so how? /Mats ___ 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-livecode
Re: ShellShock - what are you doing?
Bruce- Friday, September 26, 2014, 2:33:12 PM, you wrote: Can anyone explain exactly what this means? What are those special, advanced Unix services? But Apple said in an emailed statement that most of its users aren't affected, as OS X's systems are safe by default and not exposed to remote exploits of Bash -- unless users have actively turned on special, advanced Unix services. http://localhost -- -Mark Wieder ahsoftw...@gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. ___ 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-livecode
Re: iOS app submission error - invalid segment alignment
Nope, didn’t work. :-( Unless I did something wrong... On Sep 26, 2014, at 3:39 PM, Chris Sheffield cmsheffi...@icloud.com wrote: Okay, so if we just take the ld file from Xcode 6.0.1 and place it inside the older SDKs, theoretically that should take care of the problem? Will that cause weird incompatibilities? Guess it’s worth a try. :-) On Sep 26, 2014, at 3:27 PM, Colin Holgate co...@verizon.net wrote: I read the notes, and Mark quotes me a few times! As I’ve said in a note to that bug, taking the system linker and using it in place of the Xcode linker won’t do you any good, it’s the same linker. If you’re not on Xcode 6.0.1 the linker is too old. If LiveCode can’t build against 6.0.1 it may still be worth trying the linker from 6.0.1 on the Xcode that LiveCode can use. I have that file if you want to give it a try. ___ 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-livecode ___ 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-livecode ___ 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-livecode
Keeping a group of controls active while using edit tool
I recall some fields I had years ago that stayed live with the edit tool, much to my dismay. I now have an editing tool panel on couple of my stacks for controls to choose and center the group I'm using or want to use. These are stacks the user will never see, but it would be nice for m own convenience. I thought of storing the tool type on mouseEnter, setting to browse, and restory on mouseLeave, but those don't get sent without the browse toool. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 ___ 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-livecode
Re: getting a section cross-platform without utf
On Fri, Sep 26, 2014 at 2:26 PM, Devin Asay devin_a...@byu.edu wrote: set the htmltext of fld 1 to psect;/p” So I would put It's in sect; 506(a) into the field, and then when in the period loop through the stack in deveopments, set the htlmlText of fld i to the test of fld i ? That could work, with minimal effort on my part. Thanks -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 ___ 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-livecode
Re: iOS app submission error - invalid segment alignment
New patch doesn't fix the picker, and the annoying bug where the app insists that it's a different size than what it is wasn't fixed, either. On Fri, Sep 26, 2014 at 5:48 PM, Chris Sheffield cmsheffi...@icloud.com wrote: Nope, didn’t work. :-( Unless I did something wrong... On Sep 26, 2014, at 3:39 PM, Chris Sheffield cmsheffi...@icloud.com wrote: Okay, so if we just take the ld file from Xcode 6.0.1 and place it inside the older SDKs, theoretically that should take care of the problem? Will that cause weird incompatibilities? Guess it’s worth a try. :-) On Sep 26, 2014, at 3:27 PM, Colin Holgate co...@verizon.net wrote: I read the notes, and Mark quotes me a few times! As I’ve said in a note to that bug, taking the system linker and using it in place of the Xcode linker won’t do you any good, it’s the same linker. If you’re not on Xcode 6.0.1 the linker is too old. If LiveCode can’t build against 6.0.1 it may still be worth trying the linker from 6.0.1 on the Xcode that LiveCode can use. I have that file if you want to give it a try. ___ 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-livecode ___ 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-livecode ___ 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-livecode -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, This is good. ___ 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-livecode
Re: getting a section cross-platform without utf
On Fri, Sep 26, 2014 at 1:32 PM, Richmond richmondmathew...@gmail.com wrote: That makes no sense at all as the Unicode char 'siglum' § is U+00A7 Decimal 167 While the 'esset' ß is U+00DF Decimal 223 I'm a bankruptcy lawyer. I stop expecting things to make sense every day before I start work. :) Anyway, those both appear as they should on osx/firefox/gmail -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 ___ 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-livecode
Re: getting a section cross-platform without utf
It¹s numToChar(164) on a Mac and numToChar(167) on Windows. Terry... On 27/09/2014 6:32 am, Richmond richmondmathew...@gmail.com wrote: On 26/09/14 23:20, Dr. Hawkins wrote: On Fri, Sep 26, 2014 at 11:19 AM, Richmond richmondmathew...@gmail.com wrote: Put numToChar(167) I just tried that on a mac. I think what it gave me was a german esset, the double s that looks like a beta . . . That makes no sense at all as the Unicode char 'siglum' § is U+00A7 Decimal 167 While the 'esset' ß is U+00DF Decimal 223 Richmond. ___ 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-livecode ___ 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-livecode
Re: Sorting a multidimensional array
Thanks very much, Dick and Peter! I'll try these out. On Sep 26, 2014, at 8:55 AM, Peter M. Brigham pmb...@gmail.com wrote: On Sep 26, 2014, at 12:24 AM, Peter Bogdanoff wrote: My first foray into arrays: I want to sort a 2D array by one of the keys. The data consists of several 2-line groups that are in a field. The lines contain styled and linked characters that I want to retain after sorting: peaches pears apples oranges plums grapes I want to sort the data by line 1 of each 2-line group, then display the sorted data as styled text. I build an array: repeat with x = 1 to (the number of lines of field “tField / 3) put line 1 of field “tField into tMultiArray[x][1] put the htmlText of line 1 of field “tField into tMultiArray[x][2] put the htmlText of line 2 of field “tField into tMultiArray[x][3] delete line 1 to 3 of field “tField end repeat How do I sort this array by line 1 of the plain text of each group? Then, how do I extract the data from the array—I need the 2nd 3rd values only (the htmlText) to display again in the field (set the htmlText of line x of field “tField” to…?)? Is this the best method to sort this kind of data? The data comes as search results using Scott McDonald’s RunRev Planet Search tool, so I have to work with what the tool gives me. You could do it without any arrays: on sortIt tFldRef put the htmlText of tFldRef into tData put numtochar(4) into groupDiv put numtochar(5) into itemDiv replace pp with groupDiv in tData replacep with itemDiv in tData replace groupDiv with cr in tData set the itemdel to itemDiv sort lines of tData by item 1 of each replace cr with pp in tData replace itemDiv with p in tData set the htmltext of tFldRef to tData end sortIt Not tested, may need to do more parsing of HTMLtext before sorting…. But you get the idea. -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig ___ 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-livecode ___ 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-livecode
Re: Regex Help
Guys, I have been using these 2 sites lately and they are really a huge help in understanding regex: http://regex101.com/#pcre http://www.regexr.com Give them a try… Mike On Sep 26, 2014, at 5:34 PM, Magicgate Software - Skip Kimpel s...@magicgate.com wrote: Thank you Mark! On Fri, Sep 26, 2014 at 4:58 PM, Mark Schonewille m.schonewi...@economy-x-talk.com wrote: Hi Skip, If it contains numbers and letters, it could be /point-item[0-9a-zA-Z]+-landed.html and if it contains anything except whitespace, it could be /point-item[\w]+-landed.html Both options work with the sample data you provided. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book Programming LiveCode for the Real Beginner http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ On 9/26/2014 22:54, Magicgate Software - Skip Kimpel wrote: Sorry... it contains letters. Sorry for the confusion. I should have been more complete with my explanation and sample data. SKIP On Fri, Sep 26, 2014 at 4:51 PM, Mark Schonewille m.schonewi...@economy-x-talk.com wrote: Then what exactly does the middle item contain? Numbers and letters? Special symbols? Chinese? -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book Programming LiveCode for the Real Beginner http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ On 9/26/2014 22:49, Magicgate Software - Skip Kimpel wrote: The middle item X does not always have a number in it. The common denominator between all the items I WANT to keep start with page- and end with -landed.html On Fri, Sep 26, 2014 at 4:37 PM, Mark Schonewille m.schonewi...@economy-x-talk.com wrote: Hi, Then you can try this: on mouseUp put /point-item[0-9]+-landed.html into myFilter put fld 1 into myData filter myData with regex pattern myFilter put myData end mouseUp This is a LiveCode example, but you can apply the regex /point-item[0-9]+-landed.html in PHP or Perl. I tried this with and without escaping the slash and dashes, but escaping seems unnecesary. If the regex doesn't work in PHP or Perl, maybe you could try \/point\-item[0-9]+\-landed.html but I haven't tested if this would be necessary. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book Programming LiveCode for the Real Beginner http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ On 9/26/2014 22:27, Magicgate Software - Skip Kimpel wrote: The results I want returned are: ___ 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-livecode ___ 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-livecode ___ 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-livecode ___ 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-livecode ___ 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-livecode ___ 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-livecode ___ 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-livecode
Re: iOS app submission error - invalid segment alignment
Here’s the Marmalade forum discussion about the problem: https://answers.madewithmarmalade.com/questions/25466/invalid-segment-alignment-after-uploading-binary-t.html After they posted a fix I asked if the problem was linker related, and it seems it was. ___ 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-livecode
Re: Population puzzle
This is a fun problem. My first, nearly brute force solution simply maintained an array with the keys being the sum of the value lists stored in the array -- so X[5] might contain 2,3. The only optimization inherent in this is that it doesn't worry about duplicate sums along the way. So if there are many duplicate sums, it will work okay. It won't solve this 26-value problem in a reasonable time (or maybe at all -- likely it will crash): function subsetSumBrute L,T repeat for each item N in L repeat for each line K in the keys of R if R[K+N] is empty then put R[K],N into R[K+N] end repeat put N into R[N] if R[T] is not empty then return R[T] end repeat return no solution end subsetSumBrute The obvious optimization is not to worry about sums greater than the target value. That helps, but it's still slow: checking only the first 22 populations (which doesn't return a solution) takes about 14 seconds on my laptop, and the resulting working array hits over 2 million entries. Trying to run it on the full 26 value list crashes after about 30 seconds, and it seems the working array might be trying to reach 30 million entries. Here it is: function subsetSumBetter L,T repeat for each item N in L repeat for each line K in the keys of R if K+N = T and R[K+N] is empty then put R[K],N into R[K+N] end repeat put N into R[N] if R[T] is not empty then return R[T] end repeat return no solution end subsetSumBetter I sorted the numbers in descending order, which improves the larger than the goal optimization, but the optimization that did the trick was to maintain the overall sum of the remaining numbers, and delete any entries in the working array that can no longer reach the total. For the 26 values here it reduced the maximum size reached by the working array to just 217,523 elements, 1/10th the number subsetSumBetter used just for 22 values. Further, where subsetSumBetter takes about 14 seconds to check 22 values, this function solves the 26 value problem in under 1.5 seconds. function subsetSum L,T sort items of L descending numeric put sum(L) into S repeat for each item N in L repeat for each line K in the keys of R if K + S T then delete variable R[K] next repeat end if if K+N = T and R[K+N] is empty then put R[K],N into R[K+N] end repeat put N into R[N] if R[T] is not empty then return R[T] subtract N from S end repeat return no solution end subsetSum Those are all mine, and I like that last one, but it's not as good as this solution, which I created after reading the wikipedia article at https://en.wikipedia.org/wiki/Subset_sum_problem This splits the original list in two by size, largest values in one, smallest in the other. It calculates all the possible sums for each list. It parses through the lists, largest to smallest for the large value list, and smallest to largest for the small value list. It checks each pair to see if it's a solution, and bails on the low list when the sum exceeds the target because the values from the small value are getting larger and no more will work. It also checks each list to see if the target value is in one of them alone. For this problem it builds two arrays of about 8,000 elements each and then pairs them off. It finds the solution in about 0.16 seconds on my computer. function subsetSumBi L,T sort items of L descending numeric put (the number of items of L) div 2 into B put allSubsetSums(item 1 to B of L) into highList put the keys of highList into HLK sort lines of HLK descending numeric put allSubsetSums(item B + 1 to -1 of L) into lowList put the keys of lowList into LLK sort lines of LLK ascending numeric repeat for each line LL in LLK if LL = T then return lowList[LL] end repeat repeat for each line HL in HLK if HL = T then return highList[HL] repeat for each line LL in LLK if HL + LL = T then return highList[HL],lowList[LL] if HL + LL T then exit repeat end repeat end repeat return no solution end subsetSumBi function allSubsetSums L repeat for each item N in L repeat for each line K in the keys of R if R[K+N] is empty then put R[K],N into R[K+N] end repeat put N into R[N] end repeat return R end allSubsetSums ___ 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-livecode
Re: Documentation
Richard Gaskin wrote There's no single document outlining the changes between that specific range of versions, but the release notes for each version will bring you up to speed: lt;http://downloads.livecode.com/livecode/gt; Thanks for the link Richard. Very useful -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Documentation-tp4683797p4683856.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ 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-livecode
Re: Documentation
skiplondon wrote Just a thought: One of pieces of software that we use in our office environment, we can go online and put in the version of the software you are using and the version that you have upgraded to and it will compile a complete feature / bug fix document for you on the fly based upon the version differences. Thanks Skip, great suggestion. I might give it a try (need the practice anyway) Mark -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Documentation-tp4683797p4683857.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ 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-livecode
Re: getting a section cross-platform without utf
On Fri, Sep 26, 2014 at 3:19 PM, Terry Judd terry.j...@unimelb.edu.au wrote: It¹s numToChar(164) on a Mac and numToChar(167) on Windows. Ahh, the infamous window's curly-apostrophe . . . in grad school I had an ISN line (no, not IDSN; 9600 baud ISN). That apostrophe is a ^S with bit 7 high. It would hang my line until I did a hard-reset of the hardware, or got a ^Q. Ultimately, I wrote a script that hiccuped a ^Q every five seconds or so. Anyway, I'm trying to make strings in fields that will work on either platform; legal blurbs tend to use section marks a *lot* -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 ___ 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-livecode
Re: Documentation
One more thing I forgot to ask. Now that I've upgraded from 5.5.5 to 6.3.3 is there any stack format issues that I need to be aware of? All compatible? Thanks Mark -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Documentation-tp4683797p4683859.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ 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-livecode
Re: Keeping a group of controls active while using edit tool
Not sure if it's what you are looking for, but if these tool panels are on separate stacks or substacks you could try: palette stack myToolPanel --For the (sub)stack to become a palette and topLevel stack myToolPanel --to revert back to an editable (sub)stack Paul On Sep 26, 2014, at 2:49 PM, Dr. Hawkins doch...@gmail.com wrote: I recall some fields I had years ago that stayed live with the edit tool, much to my dismay. I now have an editing tool panel on couple of my stacks for controls to choose and center the group I'm using or want to use. These are stacks the user will never see, but it would be nice for m own convenience. I thought of storing the tool type on mouseEnter, setting to browse, and restory on mouseLeave, but those don't get sent without the browse toool. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 ___ 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-livecode ___ 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-livecode
Re: Using Livecode to burn DVDs on demand?
Thanks Thierry, Richard and Simon, Our programs are all in 'raw' Video_TS/Audio_TS folders, so first I had to make .iso images from those. That took the most tinkering with in order to get a DVD that would play in both a computer and DVD deck. For posterity, here is the Terminal command that worked (I'm on OSX). hdiutil makehybrid -joliet -iso -udf -udf-volume-name DVDLABELNAME -o /path/to/newISOname.iso /path/to/folder_that_contain_Video_TS (the -joliet and -iso switches were needed to get the DVD burned from the newly created .iso to play in a deck) Once the .iso is created, from Livecode it was a simple put shell(hdiutil burn /path/to/newISOname.iso) The success (or failure) messages from hdiutil end up in the message box. (And of course you can put the path to the .iso in a variable as well.) Thanks for the help! Tim On 9/25/14, 3:58 PM, Thierry Douez wrote: On Mac, you can check: hdiutil burn image.iso Regards, Thierry Thierry Douez - http://sunny-tdz.com Maker of sunnYperl - sunnYmidi - sunnYmage ___ 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-livecode ___ 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-livecode
Replacing Characters
I want to replace every third character in a text string if it is a certain character. So lets say I have a list of characters there range from A thru F and the list is possibly 10,000 characters long. I want to check every third character in the list and if it is a D then I want to change it to a +. I can probably do it with a repeat and use a variable for a counter that resets every three times and then check the character when the counter gets to three but I was wondering if it could be done faster somehow. John Balgenorth ___ 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-livecode
Re: ShellShock - what are you doing?
Hi Bruce, I believe those special advanced Unix services Apple is referring to involves people who have set up their machines to use Unix SSH to remotely control their machines. This is not set up by default by Apple. You have to know something about using the Terminal and Unix commands to set it up. I think Apple wanted to be somewhat cryptic to not come out and tell the bad guys exactly what to do step by step to take anyone’s computer. So, no big worries for now as long as you aren’t running any serious web-servers with remote access set up in Unix. I still think it is odd that Homeland Security didn’t have a news item clearly marked on their front page about ShellShock.Our tax money really at work there. One shouldn’t have to dig deep for this important information. Apple Inc., didn’t have anything in their “Hot News” either. Apparently they only want to talk about positive experiences, not holes they are trying to patch. Good luck digging for the really important information. I think Google organizes Apple’s website better than Apple does! LOL Ok, that’s my 2 cents for the day. Let’s hope the patching geniuses get the job done soon! Cheers, Rick On Sep 26, 2014, at 5:33 PM, Bruce Pokras bruc...@comcast.net wrote: Can anyone explain exactly what this means? What are those special, advanced Unix services? But Apple said in an emailed statement that most of its users aren't affected, as OS X's systems are safe by default and not exposed to remote exploits of Bash -- unless users have actively turned on special, advanced Unix services. Bruce Pokras Blazing Dawn Software www.blazingdawn.com ___ 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-livecode
Re: Replacing Characters
My experience is that when doing string searching offset() is by far the fastest way. But I don't know everything. Larry - Original Message - From: JB sund...@pacifier.com To: How to use LiveCode use-livecode@lists.runrev.com Sent: Friday, September 26, 2014 10:26 PM Subject: Replacing Characters I want to replace every third character in a text string if it is a certain character. So lets say I have a list of characters there range from A thru F and the list is possibly 10,000 characters long. I want to check every third character in the list and if it is a D then I want to change it to a +. I can probably do it with a repeat and use a variable for a counter that resets every three times and then check the character when the counter gets to three but I was wondering if it could be done faster somehow. John Balgenorth ___ 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-livecode ___ 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-livecode
Re: Replacing Characters
Thank you for the info. I knew someone who knew everything once but with the rapid pace of change in technology it became impossible for him to keep up and everyday he ended up knowing a little bit less. John Balgenorth On Sep 26, 2014, at 9:50 PM, la...@significantplanet.org la...@significantplanet.org wrote: My experience is that when doing string searching offset() is by far the fastest way. But I don't know everything. Larry - Original Message - From: JB sund...@pacifier.com To: How to use LiveCode use-livecode@lists.runrev.com Sent: Friday, September 26, 2014 10:26 PM Subject: Replacing Characters I want to replace every third character in a text string if it is a certain character. So lets say I have a list of characters there range from A thru F and the list is possibly 10,000 characters long. I want to check every third character in the list and if it is a D then I want to change it to a +. I can probably do it with a repeat and use a variable for a counter that resets every three times and then check the character when the counter gets to three but I was wondering if it could be done faster somehow. John Balgenorth ___ 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-livecode ___ 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-livecode ___ 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-livecode
Best way to convert XML to datagrid
Hello everyone, I am trying to help with an old system that returns thousands of lines similar to the text below. The only thing I need to do is convert it to a datagrid.I can prebuild the datagrid with the correct cloumns but what is the best way in extracting the data out of the xml format? I was pretty certain a couple of years ago you could take xml data directly into a datagrid if the datagrid was already built with the correct column headers matching the nodes ; in a single command? I could do repeat loops similar to *put* field xmlResponse into tResponse *put* revCreateXMLTree(tResponse, false, true, false) into tDocID *put* revXMLNodeContents(tDocID, /Envelope/Body/GetCPEBySerialSearchResponse/CPEList/CPE/id) --changing the id to serial and then username ..etc Any suggestions on the best method is appreciated. regards, Sample of xml response is below SOAP-ENV:Envelope xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/; xmlns:SOAP-ENC=http://schemas.xmlsoap.org/soap/encoding/; xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance; xmlns:xsd= http://www.w3.org/2001/XMLSchema; xmlns:gbadmin=urn:gbadmin-api-3-1-0 SOAP-ENV:Body SOAP-ENV:encodingStyle= http://schemas.xmlsoap.org/soap/encoding/; gbadmin:GetCPEBySerialSearchResponse CPEList xsi:type=SOAP-ENC:Array SOAP-ENC:arrayType=gbadmin:CPEStruct[2] CPE id 2/id serial CP1238RA52F/serial username /username password /password ipaddr 192.168.1.254/ipaddr mfr-id 3/mfr-id dm-id 4/dm-id last-comm-tm 2014-09-10T04:28:59Z/last-comm-tm updated-tm 2014-09-10T04:28:59Z/updated-tm created-tm 2014-09-10T01:55:45Z/created-tm /CPE CPE id 3/id serial CP1238RA52G/serial username /username password /password ipaddr /ipaddr mfr-id 3/mfr-id dm-id 4/dm-id last-comm-tm 2014-09-20T11:33:29Z/last-comm-tm updated-tm 2014-09-20T11:33:29Z/updated-tm created-tm 2014-09-20T11:33:29Z/created-tm /CPE /CPEList /gbadmin:GetCPEBySerialSearchResponse /SOAP-ENV:Body /SOAP-ENV:Envelope ___ 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-livecode