Re: searching for chars within a string

2014-09-26 Thread Kay C Lan
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

Re: re: sorting question

2014-09-26 Thread Kay C Lan
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,

Re: use-livecode Digest, Vol 132, Issue 56

2014-09-26 Thread bernd . gottwald
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.

Re: Sorting a multidimensional array

2014-09-26 Thread Dick Kriesel
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,

Re: Documentation

2014-09-26 Thread Richard Gaskin
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

Re: Documentation

2014-09-26 Thread Magicgate Software - Skip Kimpel
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

Re: ShellShock - what are you doing?

2014-09-26 Thread Peter M. Brigham
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

Re: Sorting a multidimensional array

2014-09-26 Thread Peter M. Brigham
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

Re: searching for chars within a string

2014-09-26 Thread larry
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

Re: searching for chars within a string

2014-09-26 Thread Peter M. Brigham
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

6.6.2 or 6.6.3???

2014-09-26 Thread Bob Sneidar
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

getting a section cross-platform without utf

2014-09-26 Thread Dr. Hawkins
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

RE: 6.6.2 or 6.6.3???

2014-09-26 Thread Ralph DiMola
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

Re: getting a section cross-platform without utf

2014-09-26 Thread Richmond
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)

iOS app submission error - invalid segment alignment

2014-09-26 Thread Chris Sheffield
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

Re: 6.6.2 or 6.6.3???

2014-09-26 Thread larry
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

Re: 6.6.2 or 6.6.3???

2014-09-26 Thread Fraser Gordon
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

Re: iOS app submission error - invalid segment alignment

2014-09-26 Thread Colin Holgate
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

Re: iOS app submission error - invalid segment alignment

2014-09-26 Thread Chris Sheffield
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

Re: iOS app submission error - invalid segment alignment

2014-09-26 Thread Colin Holgate
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

Regex Help

2014-09-26 Thread Magicgate Software - Skip Kimpel
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

Re: iOS app submission error - invalid segment alignment

2014-09-26 Thread Mike Kerner
bug 13536 by the way, round 2 of The Patch is being tested, as we speak. On Fri, Sep 26, 2014 at 3:51 PM, Chris Sheffield cmsheffi...@icloud.com wrote: 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

Re: iOS app submission error - invalid segment alignment

2014-09-26 Thread Chris Sheffield
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

Re: Regex Help

2014-09-26 Thread Mark Schonewille
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

Re: searching for chars within a string

2014-09-26 Thread larry
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

Re: getting a section cross-platform without utf

2014-09-26 Thread Dr. Hawkins
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

Re: Regex Help

2014-09-26 Thread Magicgate Software - Skip Kimpel
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:

Re: iOS app submission error - invalid segment alignment

2014-09-26 Thread Mike Kerner
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

Re: getting a section cross-platform without utf

2014-09-26 Thread Richmond
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

Re: Regex Help

2014-09-26 Thread Mark Schonewille
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

Re: Regex Help

2014-09-26 Thread Magicgate Software - Skip Kimpel
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

Re: Regex Help

2014-09-26 Thread Mark Schonewille
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

RE: iOS app submission error - invalid segment alignment

2014-09-26 Thread Ralph DiMola
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

Re: Regex Help

2014-09-26 Thread Magicgate Software - Skip Kimpel
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?

Re: Regex Help

2014-09-26 Thread Mark Schonewille
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

Re: iOS app submission error - invalid segment alignment

2014-09-26 Thread Mike Kerner
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

Re: iOS app submission error - invalid segment alignment

2014-09-26 Thread Chris Sheffield
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

Re: iOS app submission error - invalid segment alignment

2014-09-26 Thread Colin Holgate
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

Re: ShellShock - what are you doing?

2014-09-26 Thread Mark Wieder
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

Re: iOS app submission error - invalid segment alignment

2014-09-26 Thread Mike Kerner
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

Re: getting a section cross-platform without utf

2014-09-26 Thread Devin Asay
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 . . .

Re: iOS app submission error - invalid segment alignment

2014-09-26 Thread Colin Holgate
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

Re: ShellShock - what are you doing?

2014-09-26 Thread Bruce Pokras
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

Re: Regex Help

2014-09-26 Thread Magicgate Software - Skip Kimpel
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

Re: iOS app submission error - invalid segment alignment

2014-09-26 Thread Chris Sheffield
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

HTTPProyy

2014-09-26 Thread Mats Åström
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

Re: ShellShock - what are you doing?

2014-09-26 Thread Mark Wieder
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

Re: iOS app submission error - invalid segment alignment

2014-09-26 Thread Chris Sheffield
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

Keeping a group of controls active while using edit tool

2014-09-26 Thread Dr. Hawkins
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

Re: getting a section cross-platform without utf

2014-09-26 Thread Dr. Hawkins
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

Re: iOS app submission error - invalid segment alignment

2014-09-26 Thread Mike Kerner
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,

Re: getting a section cross-platform without utf

2014-09-26 Thread Dr. Hawkins
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

Re: getting a section cross-platform without utf

2014-09-26 Thread Terry Judd
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

Re: Sorting a multidimensional array

2014-09-26 Thread Peter Bogdanoff
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

Re: Regex Help

2014-09-26 Thread Michael Doub
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,

Re: iOS app submission error - invalid segment alignment

2014-09-26 Thread Colin Holgate
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.

Re: Population puzzle

2014-09-26 Thread Geoff Canyon
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

Re: Documentation

2014-09-26 Thread Mark Smith
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

Re: Documentation

2014-09-26 Thread Mark Smith
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

Re: getting a section cross-platform without utf

2014-09-26 Thread Dr. Hawkins
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.

Re: Documentation

2014-09-26 Thread Mark Smith
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

Re: Keeping a group of controls active while using edit tool

2014-09-26 Thread Paul Hibbert
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

Re: Using Livecode to burn DVDs on demand?

2014-09-26 Thread Tim Selander
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

Replacing Characters

2014-09-26 Thread JB
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

Re: ShellShock - what are you doing?

2014-09-26 Thread Rick Harrison
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

Re: Replacing Characters

2014-09-26 Thread larry
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:

Re: Replacing Characters

2014-09-26 Thread JB
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

Best way to convert XML to datagrid

2014-09-26 Thread Glen Bojsza
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