Search found 2768 matches

by mwieder
Fri Jul 12, 2019 8:39 pm
Forum: Raspberry Pi
Topic: Coming in 9.x
Replies: 19
Views: 1391

Re: Coming in 9.x

It's not well documented but Yamil is a programming language for music
OK - I stand corrected. Do you have a link for this? My searches are coming up empty.
by mwieder
Fri Jul 12, 2019 5:24 pm
Forum: Raspberry Pi
Topic: Coming in 9.x
Replies: 19
Views: 1391

Re: Coming in 9.x

Yamil is a thing.
It is, but not the way you're thinking of it.

Code: Select all

https://www.facebook.com/Yamilofficial/
Yaml is a thing.

Code: Select all

https://en.wikipedia.org/wiki/YAML
by mwieder
Fri Jul 12, 2019 5:19 pm
Forum: Talking LiveCode
Topic: Implementing full regex in LiveCode
Replies: 34
Views: 1886

Re: Implementing full regex in LiveCode

Well, as you so aptly said,
nulla facilisi.
by mwieder
Fri Jul 12, 2019 5:12 pm
Forum: Talking LiveCode
Topic: Implementing full regex in LiveCode
Replies: 34
Views: 1886

Re: Implementing full regex in LiveCode

That opens up other problems: by-word instead of by-item removes the crlfs so you'd have to add extra code to take care of that. There's still the problem of the target text being at the end of a sentence because periods would be removed from the converted text: Lorem ipsum dolor sit 1235ABCD feugai...
by mwieder
Fri Jul 12, 2019 4:29 pm
Forum: Talking LiveCode
Topic: Implementing full regex in LiveCode
Replies: 34
Views: 1886

Re: Implementing full regex in LiveCode

@Kaveh-
what if there was no space before and after the string?
All I have to work with is the text in the sample you posted. I have no idea what your real-world context might be like. The regex might have to be tweaked if you have other restrictions.
by mwieder
Fri Jul 12, 2019 4:25 pm
Forum: Talking LiveCode
Topic: Implementing full regex in LiveCode
Replies: 34
Views: 1886

Re: Implementing full regex in LiveCode

Locking messages wouldn't have any effect here because there aren't any side effects that would invoke any other messages. My guess about the speed increase: The matchtext function is notoriously slow, and is described that way in the dictionary notes. But it does allow you to use regex in the match...
by mwieder
Fri Jul 12, 2019 2:24 am
Forum: Raspberry Pi
Topic: Coming in 9.x
Replies: 19
Views: 1391

Re: Coming in 9.x

idk - I'm not even sure what an "LC Global/Monthly report" is.
by mwieder
Fri Jul 12, 2019 2:23 am
Forum: Talking LiveCode
Topic: Implementing full regex in LiveCode
Replies: 34
Views: 1886

Re: Implementing full regex in LiveCode

OK - this gets it down to about 250 milliseconds on my computer (moved tReplaced to a script variable and lock screen before calling the function, unlock afterwards): function convertBackwards2 pInputString local tNumber, tText local tReturnString put 0 into sReplaced set the itemdelimiter to space ...
by mwieder
Thu Jul 11, 2019 11:29 pm
Forum: Talking LiveCode
Topic: Implementing full regex in LiveCode
Replies: 34
Views: 1886

Re: Implementing full regex in LiveCode

@Kaveh- Here you go: function convertBackwards pInputString local tNumber, tText repeat while matchtext(pInputString, " (\d+)([A-Z]+) ", tNumber, tText) replace (space & tNumber & tText & space) with (space & tText && tNumber & space) in pInputString end repeat return pInputString end convertBackwar...
by mwieder
Thu Jul 11, 2019 11:21 pm
Forum: Raspberry Pi
Topic: Coming in 9.x
Replies: 19
Views: 1391

Re: Coming in 9.x

OK - granted I don't hang around here very much, so I'm just coming across this now, but...
Raspberry Pi deployment?
by mwieder
Wed Jul 10, 2019 8:05 pm
Forum: Feature Requests
Topic: Error Messages
Replies: 23
Views: 1007

Re: Error Messages

Heh. I was (re)watching Stop Making Sense last night and trying to remember the name of the song "Once In A Lifetime" even though it was repeated in the lyrics and then I'd get it and get wrapped up in the movie and forget again... but I digress (no surprise) I don't really care what the wording is,...
by mwieder
Wed Jul 10, 2019 7:46 pm
Forum: Feature Requests
Topic: Error Messages
Replies: 23
Views: 1007

Re: Error Messages

ikr

I was trying to remember some ruby syntax the other day, something that should have just rolled off my fingertips, and actually had to go look it up.
by mwieder
Wed Jul 10, 2019 6:20 pm
Forum: Feature Requests
Topic: Error Messages
Replies: 23
Views: 1007

Re: Error Messages

That's better, although a one-line function is a trivial example for this. The IDE's debugger could indeed pinpoint the error: there's a function for this. dispatch "goLine" && tLineNumber, "position", tPosition # tLineNumber = line number in script # tPosition = startChar,endChar PowerDebug already...
by mwieder
Tue Jul 09, 2019 11:45 pm
Forum: Feature Requests
Topic: Error Messages
Replies: 23
Views: 1007

Re: Error Messages

That is indeed a good example. In the first place, I'm annoyed that xtalk allows the use of keywords as object names, but that's a different rabbit hole. And a different rabbit. I would say that "pow: error in left operand" does not give nearly enough context for the error. And this isn't just a mat...
by mwieder
Tue Jul 09, 2019 6:46 am
Forum: Feature Requests
Topic: Error Messages
Replies: 23
Views: 1007

Re: Error Messages

...well, anecdotally it would happen around Thanksgiving dinner...

Go to advanced search