Search found 140 matches

by danielrr
Mon Apr 30, 2018 5:27 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: escaping chars for the replaceText function
Replies: 2
Views: 2106

escaping chars for the replaceText function

I want to strip all the characters "()/\=" from any string passed to the replaceText function, but if I pass the list of the offending characters escaping the regex reserved chars using "\", the string remains unchanged:

Code: Select all

put replaceText("KAI\", "\\\/\(\)=", "")
KAI\
What I'm doing wrong?
by danielrr
Sun Apr 08, 2018 2:08 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Find Greek characters using regex
Replies: 4
Views: 9740

Re: Find Greek characters using regex

oh, that's great!. Almost all my questions answered in just one post! thanks bwmilby :D
by danielrr
Sat Apr 07, 2018 4:06 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Find Greek characters using regex
Replies: 4
Views: 9740

Re: Find Greek characters using regex

I'll put it another way: Greek letter lambda (λ) is Unicode 955, hex U+03BB and in languages like python "\u03bb". how do you represent Unicode characters like lambda in regex expressions using livecode? and how do you set the range of characters to look for when searching for Unicode characters?
by danielrr
Sat Apr 07, 2018 12:51 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Switching from sqlite to mySQL
Replies: 3
Views: 3015

Re: Switching from sqlite to mySQL

I believe this is the article your looking for https://support.rackspace.com/how-to/in ... on-ubuntu/
Is it? Can't find a section on how to port a DB from SQLite to MySQL.
by danielrr
Sat Apr 07, 2018 12:39 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Find Greek characters using regex
Replies: 4
Views: 9740

Find Greek characters using regex

HI all! I have a few questions concerning using regex to find strings in Ancient Greek, but I think I will be able to solve most of them if I knew the way to find any string containing just Ancient Greek text in livecode. (something like [Α-Ωα-ω] will omit any accented character). In plain English, ...
by danielrr
Tue Jan 02, 2018 10:07 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: changing the keyboard layout?
Replies: 2
Views: 2564

changing the keyboard layout?

Is there a way to change between the installed keyboard layouts using livecode? (this is useful when you want the user to write in different languages in different fields)

Daniel
by danielrr
Sun Oct 08, 2017 4:32 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Python from LiveCode
Replies: 6
Views: 5421

Re: Python from LiveCode

hi danielrr - I just put "python" into the forum's search field and got 318 results... happy reading! well, please don't think I am so inconsiderate as to dare to post to the forum without making a simple search like the one you mention… :lol: I did it and found a similar amount of results, no one ...
by danielrr
Sun Oct 08, 2017 9:06 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Python from LiveCode
Replies: 6
Views: 5421

Python from LiveCode

Hi all,

Is anybody experimenting with Livecode as the interface to control Python scripts or programs who'd be willing to share some experiences of demo stacks with the group?

best,

Daniel
by danielrr
Wed Apr 26, 2017 8:01 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Fastest way to know the contents of the latest line of a doc
Replies: 9
Views: 5404

Re: Fastest way to know the contents of the latest line of a

Mr. Coollion's method seems pretty straightforward. But just curious; what kind of document are you thinking of? The text portion of the Encyclopedia Britannica is only 100MB or so (my estimate). That is not even close to the memory limits of the usual computers these days. Craig Newman Craig, I th...
by danielrr
Wed Apr 26, 2017 7:55 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Fastest way to know the contents of the latest line of a doc
Replies: 9
Views: 5404

Re: Fastest way to know the contents of the latest line of a

Code: Select all

get the last line of URL ("file:" & tDocumentPathAndName) 
Woah! Thanks. That's even better that I had expected.
The only problem with this kind of Wunder answers is that they make me wonder how much I'm still missing. By the way, how does *that* works?

best,

Daniel
by danielrr
Wed Apr 26, 2017 2:40 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Fastest way to know the contents of the latest line of a doc
Replies: 9
Views: 5404

Re: Fastest way to know the contents of the latest line of a

I mentioned "long" document to point to the case where the contents of the file are too long to be copied in memory. Of course you can just read the whole file and return the last line or the nth line. But in cases when such procedure is not advisable due to memory limitations, what's the fastest wa...
by danielrr
Wed Apr 26, 2017 2:22 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Fastest way to know the contents of the latest line of a doc
Replies: 9
Views: 5404

Fastest way to know the contents of the latest line of a doc

Hi all,

The subject of the message says almost all: What's the fastest way in LiveCode to know the contents of the latest line of a very long text document? And not just the last line, but the nth line?

best,

Daniel
by danielrr
Mon Nov 07, 2016 12:16 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Intersecting polygons
Replies: 6
Views: 4727

Re: Intersecting polygons

Thanks again [-hh] (can't imagine how to spell that) for the Sutherland–Hodgman tip! And for those living the last year under a rock like my own, the RB Pi stacks reference is a pointer to http://forums.livecode.com/viewtopic.php?f=76&t=19248
by danielrr
Sun Nov 06, 2016 9:35 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Intersecting polygons
Replies: 6
Views: 4727

Re: Intersecting polygons

Sure. Probably I explained myself poorly. I am sending a screenshoot of my project. You'll see three graphs encompassing different points. Together they include all the points in the map (i's a semantic map, by the way). Graphs are drawn as per your algorythm. As you can see, the blue polygon inters...
by danielrr
Sun Nov 06, 2016 1:12 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Intersecting polygons
Replies: 6
Views: 4727

Intersecting polygons

I am still enjoying [-hh's] answer to my previous post about creating a polygon around a set of points (aka creating a convex hull of a set of points, a matter I'm still reading about). Now the question arises, and by posting it I'm probably only exhibiting my ignorance, (a) How do I know what's the...

Go to advanced search