Re: Parsing and Extracting Text from ePub XHTML

2015-07-29 Thread Brahmanathaswami
pursuant to my last long winded email. I've boiled it down to something very simple The company doing our ePubs is mixing 1) unicode HTML dec entities for diacriticals in the IAST roman char range 2) Unicode UTF strings for Tamil and Devanagari script and 3) old fashioned punctuation in the r

Re: Script-controlled export of animation from Livecode?

2015-07-29 Thread Earthednet-wp
Check out http://mergext.com/home/mergav/ However, I haven't used it, it works only for iOS and osx, and I'm not sure if it will capture screens for the video. It seems to be set up for images captured with the camera. But you could ask the author. Good luck, Bill William Prothero http://es.ear

Re: Parsing and Extracting Text from ePub XHTML

2015-07-29 Thread Brahmanathaswami
Aloha, James: great. thanks for this... seems we are each re-inventing the wheel here. Your code is useful though. I see you are still having to deal with the pesky "—" But only in your TOC xml processing routines. What I don't understand (which makes it hard to make good strategic decisio

Re: Field loses its identity as a target

2015-07-29 Thread David Epstein
Sorry, I see my long question appeared twice; my eMail reported it undelivered, so I tried again. Thanks to Richard for his sound advice, and Jacqueline for the promising theory—promising because I have noticed that disabling locked fields with visible, non-3D borders does not make their border

Re: recursionlimit mystery!

2015-07-29 Thread Bruce Pokras
Update: this is bug report 15602. The response from the Livecode folks is that 7.0.x is using 16-bit numbers for the recursionlimit property, so Jacque hit the nail on the head. However, in 6.x.x they were using 32-bit numbers, so my setting a very high recursion limit actually did have an effec

Re: Thousands Separators

2015-07-29 Thread Kay C Lan
On Tue, Jul 28, 2015 at 9:59 PM, Richard Gaskin wrote: > But stepping back to look at the big picture, I find myself wondering: > > Why is that even necessary? > > Why isn't that just a field property, e.g. "the displayFormat"? > > But stepping back further, why would you want it only restricted

Re: Livecode and UTF8

2015-07-29 Thread Peter W A Wood
Simon I did not reply sooner as I’m not such an experienced LiveCoder. Also, I am concentrating on learning LiveCode versions from 7 onwards. Handling Unicode is much, much easier in those versions. In the code you posted here, you appear to have used uniDecode where you needed to use uniEnco

Re: Script-controlled export of animation from Livecode?

2015-07-29 Thread David Epstein
Thanks for the suggestions on this. If I understand them correctly, they seem to require using some tools outside of LiveCode. Can any of those tools be controlled by a LiveCode script? What I want to do is write a script so that a user clicking my button will create some kind of video file f

Re: parameterized query with wildcard

2015-07-29 Thread Bob Sneidar
Turns out it is done in the system settings under keyboard in case anyone else needs to do the same. Bob S On Jul 29, 2015, at 15:06 , Bob Sneidar mailto:bobsnei...@iotecdigital.com>> wrote: I should also mention that my mail program *DOES* substitute plain quotes for smart ones. I am disabl

Re: parameterized query with wildcard

2015-07-29 Thread Bob Sneidar
Okay I see my confusion. I can use a statement like: select * from customers where customername LIKE '%int%’ This works. It seems however that when using parameter substitution it does not. In sqlYoga I can use: put sqlquery_createObject(“customers”) into qCustomerObject put “customer name LIK

Field loses its identity as a target

2015-07-29 Thread David Epstein
I have encountered a bizarre problem that occurs in a somewhat complicated context. I wonder if anyone has experienced anything similar. In short: when I click a locked field on one occasion “the long id of the target” returns the expected result; but when I click on it subsequently “the long

Re: parameterized query with wildcard

2015-07-29 Thread Bob Sneidar
How odd. I am thinking now, that because I am passing these query arguements to sqlYoga it is doing the macro replacement instead of SQL. Now that I think of it, I have never used this in a direct SQL query. I am not even sure how to construct it. Is this a web server convention? I cannot see h

Re: Script-controlled export of animation from Livecode?

2015-07-29 Thread Earthednet-wp
I think you are wanting to play the animation and end up with a mp4 movie, I think you need one of Monte's externals for this. On the other hand, if you only want to generate the movie in the dev environment, you could play it in livecode and use a screen capture program to capture the video. G

Re: MySql lite DB name

2015-07-29 Thread JB
You would be amazed at how much stuff I forget. Sometimes that works a lot better. John Balgenorth On Jul 29, 2015, at 7:34 AM, Bob Sneidar wrote: > Don’t you remember? ;-) Sorry I couldn’t help myself. > > Bob S > > >> On Jul 28, 2015, at 16:51 , JB wrote: >> >> How do I get the name o

Re: Indy License upgrade

2015-07-29 Thread Heather Laine
Peter - I'm sorry for the delay. I will get to it. Your license will get merged/extended. At present I have a huge mound of email to get through, I am progressing and it will all get done, I just ask for your patience while I work through it. Regards, Heather Heather Laine Customer Services M

Re: Script-controlled export of animation from Livecode?

2015-07-29 Thread David Bovill
Yes you can - not sure it is the best tool, but one way is to script something and export each frame or card as a numbered image, and then use imagemagick or even iMovie I beleive to create a video file or animated gif. On 29 July 2015 at 14:19, wrote: > Is there a way of scripting the export of

Re: Field loses its identity as a target

2015-07-29 Thread J. Landman Gay
On 7/28/2015 3:51 PM, dfepst...@comcast.net wrote: I have encountered a bizarre problem that occurs in a somewhat complicated context. I wonder if anyone has experienced anything similar. In short: when I click a locked field on one occasion “the long id of the target” returns the expected resu

Re: Indy License upgrade

2015-07-29 Thread Peter Gagiano
Hi Peter My apologies. I responded to an email from Shri regarding your Indy subscription. The issue that I had was similar to yours but got sorted within two days. My apologies again and I hope issue get’s sorted out quickly. Best regards Peter Gagiano > On 29 Jul 2015, at 6:20 PM, Peter Hawor

Re: Indy License upgrade

2015-07-29 Thread Peter Gagiano
Hi Sri Heather sorted this out as far as I can remember. She added 2 years to my existing subscription as Follows: LiveCode Indy - Price Lock Subscription ID 14579206 Total $299 Yearly Next Payment Date 29th Jul 2018 My previous subscription would have expired in 2016 Thank you kindly for

Re: Indy License upgrade

2015-07-29 Thread Sri
Peter: Heather must have missed your email. Same situation, I wrote to support and they have combined the licenses and extended the renewal date under the new, "price lock-down" license. You may want to contact them again. Regards, Sri. -- View this message in context: http://runtime-revoluti

Re: parameterized query with wildcard

2015-07-29 Thread PystCat
When I get that value from the user it is scrubbed and then put into the SQL with the merge. > On Jul 29, 2015, at 12:18 PM, Peter Haworth wrote: > > But why bother? You're already putting the value into a variable so all > that's required is use :1 and append the variable name to the revxx

Re: Indy License upgrade

2015-07-29 Thread Peter Haworth
So almost a week gone by and no response from Heather. I guess I got a perpetual license and an extra seat in exchange for my $499. Good deal. On Thu, Jul 23, 2015 at 4:00 PM Peter Haworth wrote: > I've emailed Heather about the issues in this post, just posting them here > for others to watch

Re: parameterized query with wildcard

2015-07-29 Thread Peter Haworth
But why bother? You're already putting the value into a variable so all that's required is use :1 and append the variable name to the revxxx call. On Wed, Jul 29, 2015 at 8:29 AM PystCat wrote: > Not a problem... Scrub the variable before the merge... It's what I do as > well. I have a function

Re: parameterized query with wildcard

2015-07-29 Thread Peter Haworth
If you are specifying a literal value with LIKE, then you need the single quotes or you will get an error. If you are using a parameter variable containing the literal, then no single quotes needed. Including the :1 in quotes makes the query look for a string containing :1, not the contents of th

Re: parameterized query with wildcard

2015-07-29 Thread PystCat
Not a problem... Scrub the variable before the merge... It's what I do as well. I have a function that takes the input and scrubs it... I'm away for another week but if you're interested, when I get back I can post the handler. > On Jul 29, 2015, at 10:35 AM, Mike Kerner wrote: > > The reas

Re: parameterized query with wildcard

2015-07-29 Thread Bob Sneidar
If you copied and pasted it may be that the small quotes are not the right characters. I have used this query successfully myself so I may have mistyped something. Bob S > On Jul 29, 2015, at 06:31 , Mike Kerner wrote: > > Nope. That doesn't work, Bob. That returns nothing. > > On Tue, J

Re: Drawing a Graphice Segment

2015-07-29 Thread Terence Heaford
> On 29 Jul 2015, at 13:06, hh wrote: > > Sorry, you are wrong. My function returns false Apologies, I was incorrect. It does return false. My issue was the pie segments are in a group that was not receiving mouseUp messages. I placed a rectangle graphic to the size of the group behind the o

Re: parameterized query with wildcard

2015-07-29 Thread Mike Kerner
The reason for using parameterized queries instead of either merging or appending is because of SQL injection. On Wed, Jul 29, 2015 at 10:18 AM, PystCat wrote: > Why not just use merge...? > > Put "John" into tVal > Put merge("SELECT * FROM foo WHERE(bar LIKE %[[tVal]])") into pSQL > OR > put me

Re: MySql lite DB name

2015-07-29 Thread Bob Sneidar
Don’t you remember? ;-) Sorry I couldn’t help myself. Bob S > On Jul 28, 2015, at 16:51 , JB wrote: > > How do I get the name of the current > open database in mySql lite? > > John Balgenorth > ___ use-livecode mailing list use-livecode@lists.run

Re: parameterized query with wildcard

2015-07-29 Thread PystCat
Why not just use merge...? Put "John" into tVal Put merge("SELECT * FROM foo WHERE(bar LIKE %[[tVal]])") into pSQL OR put merge("SELECT * FROM foo WHERE(bar LIKE %[[tVal]]%)") into pSQL I do this for all of my queries and it works fine. Paul > On Jul 29, 2015, at 9:45 AM, Mike Kerner wrote:

Re: parameterized query with wildcard

2015-07-29 Thread Mike Kerner
If I was guessing, my hunch would be that including the single-quotes is going to make the db look for strings containing %:1%, instead of using the wildcards and the parameter. On Wed, Jul 29, 2015 at 9:31 AM, Mike Kerner wrote: > Nope. That doesn't work, Bob. That returns nothing. > > On Tue

Re: parameterized query with wildcard

2015-07-29 Thread Mike Kerner
Nope. That doesn't work, Bob. That returns nothing. On Tue, Jul 28, 2015 at 7:23 PM, Bob Sneidar wrote: > Should be LIKE ‘:1’ or for wild cards LIKE ‘%:1%’. > > If you are searching for a value at the beginning, LIKE ‘:1%’ or at the > end, LIKE ‘%:1’ > > If searching for all, column LIKE ‘%:1%

Script-controlled export of animation from Livecode?

2015-07-29 Thread dfepstein
Is there a way of scripting the export of an animation constructed in Livecode to some standard video file format (avi, mp4, etc.)?Alternatively, is there a way of scripting the creation of a standalone Livecode file that contains the animation?   David Epstein ___

Re: Drawing a Graphice Segment

2015-07-29 Thread Mike Bonner
Someone else pointed out that if you set up the name of the objects that are allowed to hilite so that they're named similarly, you can filter out anything you don't want to hilite In the example I saw that someone did, they had added something like this.. if not (the short name of grc i contains

Re: Field loses its identity as a target

2015-07-29 Thread Richard Gaskin
I find that any number of clicks on a locked field consistently recognizes the field as the target, but unfortunately the rest of the description provided is too complex for me to be able to understand how to reproduce what you're seeing. Do you have a simple example stack in which you can dem

Re: Drawing a Graphice Segment

2015-07-29 Thread hh
> On 29 Jul 2015, at 13:22, Terence Heaford wrote: >> On 29 Jul 2015, at 10:32, hh wrote: >> There is one "uncertainty by default", the border, that is drawn with half >> of the lineSize outside the object. LC is also sloppy with the rect of >> objects with large lineSizes. > > Yes, this see

Re: LiveCode community server on Docker

2015-07-29 Thread Charles Warwick
For local testing (on a mac), I use boot2docker… I also have some servers in Amazon AWS that run docker for cloud based stuff. I’m happy to help out if you want to use it for some testing. Send me an e-mail directly and we can discuss. > On 29 Jul 2015, at 9:07 pm, David Bovill wrote: > >

Field loses its identity as a target

2015-07-29 Thread dfepstein
I have encountered a bizarre problem that occurs in a somewhat complicated context.  I wonder if anyone has experienced anything similar. In short:  when I click a locked field on one occasion “the long id of the target” returns the expected result; but when I click on it subsequently “the long

Re: Drawing a Graphice Segment

2015-07-29 Thread Terence Heaford
> On 29 Jul 2015, at 10:32, hh wrote: > > There is one "uncertainty by default", the border, that is drawn with half of > the lineSize outside the object. LC is also sloppy with the rect of objects > with large lineSizes. Yes, this seems to be the sticking point with all methods, the functio

Re: LiveCode community server on Docker

2015-07-29 Thread David Bovill
That helps a lot. I'll let you know how it progresses :) By the way - where are you hosting the docker with? I wouldn't mind giving your docker a spin :) On 29 July 2015 at 12:01, Charles Warwick wrote: > Hi David, > > Setting up a Docker image is fairly simple. I am guessing you are wanting >

Re: LiveCode community server on Docker

2015-07-29 Thread Charles Warwick
Hi David, Setting up a Docker image is fairly simple. I am guessing you are wanting to run a LiveCode Linux standalone in a Docker container that listens on a particular port? In that case, it would be a matter of configuring a Dockerfile that uses a base Docker image for whatever distro you

Re: LiveCode community server on Docker

2015-07-29 Thread David Bovill
Wonderful. I'd love to know the steps it took. I've nearly got an alpha of the Livecode Daemon working, and I want to test that as a Docker. On 29 July 2015 at 08:17, Charles Warwick wrote: > Hi All, > > In case anyone is interested, I have uploaded a Docker image with Apache + > LiveCode Commun

Re: Drawing a Graphice Segment

2015-07-29 Thread hh
The function below determines for any point (x,y) whether it is within an oval graphic or not. You may add your own criteria like colour or fill/transparency or visibility ... There is one "uncertainty by default", the border, that is drawn with half of the lineSize outside the object. LC is al

Re: Multiple Stacks on Mobile

2015-07-29 Thread Ray
Eric - that might work, but only if the part of the screen which transitions with the visual effect does not overlap the part which remains stationary (the rect). In my case they do overlap so the snapshot idea, I believe, is the best. Thanks On 7/28/15 8:04 PM, Eric Corbett wrote: Would it

Re: Drawing a Graphice Segment

2015-07-29 Thread Terence Heaford
Yes as I am new to LC I was not aware of this although “the solution” does not work correctly. It does not limit itself to the filled area of a segment. If there are other graphics on the page that align with a segment but are beyond the arc of the segment it still displays as selected because

LiveCode community server on Docker

2015-07-29 Thread Charles Warwick
Hi All, In case anyone is interested, I have uploaded a Docker image with Apache + LiveCode Community Server installed to the Docker Hub registry . https://registry.hub.docker.com/u/techstrategies/livecode/ To use, simply run the fol