Re: Colouring a circle and its segments

2013-07-25 Thread Francis Nugent Dixon
Hi from Beautiful Brittany, Paul, Thanks for the information. I searched hi and lo for this info, but could't find it. The guys (and girls) on the LiveCode forum know all the answers ….. :) As for Vancouver, I agree, Vancouver Island is one of the most beautiful places I have ever seen. As

Re: Easier Dropbox Access

2013-07-25 Thread Dave Kilroy
Mike, excellent that you sorted out the HTTP POST and sub-folders issue (I tried and gave up on it) - haven't tried it yet but looks good :) Andrew, yes the app reconnects to Dropbox each start-up but doing so with saved tokens and secrets in the background does the trick (I keep various other

Re: Easier Dropbox Access

2013-07-25 Thread Dave Kilroy
Mike just tried your version synching files via Dropbox in my app between iOS, OSX and Windows and it 'just worked' - nice fix! Dave -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Easier-Dropbox-Access-tp4667940p4667971.html Sent from the Revolution - User

Re: Colouring a circle and its segments

2013-07-25 Thread Francis Nugent Dixon
Hi from Beautiful Brittany,.. Thanks Scott, So many possibilites with graphics, that I am only just beginning to discover. -Francis ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage

Re: [OT] New quad-core China tablet (mini-look-alike)

2013-07-25 Thread Roger Eller
Awesome! Thanks for the LC compatibility report. Btw, the price has gone up to $175, which still isn't bad. ~Roger On Thu, Jul 25, 2013 at 7:38 AM, Camm cam...@tesco.net wrote: Roger , Wow , great item for delevopment ,got mine last week runs great with livecode test. Just need to add

keeping track of the open cards for update

2013-07-25 Thread Dr. Hawkins
As my project moves along, it's handling remote updates of data and displaying it live locally (watches for database updates). I'm about to move on to making these live in multiple windows (i.e., the input window, and one or more output windows). This means that the update code needs to quickly

Where to store database ID

2013-07-25 Thread Pascal Lehner
Hi all, I am working on a project with a SQLite DB and I'm wondering if there is an improvement to the following: On preOpenStack I connect to the database and store the connection ID in a custom property on the main stack. In whatever command I write or execute where I use any sql command to

Re: Where to store database ID

2013-07-25 Thread Mike Kerner
I think you are overthinking this. IMHO, globals are far more convenient for the DBID. The DBID does not really expire, especially for SQLite, where you are not connecting to a server. When you close your stack or . The only time the DBID is going to be different is if you open different DB's

relative performance of two dimensional array and in-memory sqlite database

2013-07-25 Thread Dr. Hawkins
Searching through the archives, I found what would have been my next question. The answer being that using :memory: as the filename opens an sqlite database in memory rather than disk. That said, has anyone ever looked into the relative performance of caching data into two-dimensional arrays,

Re: Getting data out of Excel

2013-07-25 Thread Dr. Hawkins
On Wed, Jul 24, 2013 at 5:37 AM, Richard Gaskin ambassa...@fourthworld.com wrote: https://www.libreoffice.org/ Which is my solution. Copy from libreoffice, paste into a table, and I'm done. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 ___

Re: relative performance of two dimensional array and in-memory sqlite database

2013-07-25 Thread Richard Gaskin
Dr. Hawkins wrote: Searching through the archives, I found what would have been my next question. The answer being that using :memory: as the filename opens an sqlite database in memory rather than disk. That said, has anyone ever looked into the relative performance of caching data into

Re: Anyone using coda 2 with livecodeserver and syntax highlighting

2013-07-25 Thread stephen barncard
there are a few modes available at the subethaedit site there are two for Livecode, one for Revolution. The Revolution one sucks, that's mine. click additional modes http://subethaedit.net/modes.html you can also make your own. click create a mode On Thu, Jul 25, 2013 at 7:36 AM,

Re: Where to store database ID

2013-07-25 Thread Pascal Lehner
Hi Mike Thanks for the reply, it seems I can do less :-) I got into the habit of doing it that way when I first experimented with sqlite and DBLib and noticed that I get a new DBID everytime I reopen the stack. So I basically could just set the global to 1 and this works, as long as I just use

Re: Anyone using coda 2 with livecodeserver and syntax highlighting

2013-07-25 Thread Matthias Rebbe
Hi Stephen, thank you very much. That saved my day. Matthias Am 25.07.2013 um 18:06 schrieb stephen barncard stephenrevoluti...@barncard.com: there are a few modes available at the subethaedit site there are two for Livecode, one for Revolution. The Revolution one sucks, that's

Re: Where to store database ID

2013-07-25 Thread Mike Kerner
LC's libraries need the ID so they know what you're asking them for after you've opened the DB. I just use globals. You can use a global with multiple lines, or an array with multiple elements, if you are going to have multiple DB's open. I THINK that the ID's are sequential and unique per

Re: Anyone using coda 2 with livecodeserver and syntax highlighting

2013-07-25 Thread Matthias Rebbe
Hm, i was a little bit to fast. I do not get it to work with coda 2. Are you using syntax highlighting/colorization with Coda 2? I installed the mode file and selected it in for the current file. But no colorization. Matthias Am 25.07.2013 um 18:41 schrieb Matthias Rebbe

Re: relative performance of two dimensional array and in-memory sqlite database

2013-07-25 Thread Mike Kerner
I would pick the method that's the easiest to implement and try it, first. I would rather just access the DB instead of trying to load everything into containers, so I indexed the relevant fields, and have found that even for tens-of-thousands of records, doing a compound LIKE (with wildcards)

Re: Where to store database ID

2013-07-25 Thread Peter Haworth
I definitely wouldn't hard code the DBID! Just go with Mike's suggestion and write some general purpose handlers that actually issue the LC db calls and put them somewhere where they're always callable from anywhere else in your stack (main stack script for example) If you do that, you don;t

Re: relative performance of two dimensional array and in-memory sqlite database

2013-07-25 Thread Dr. Hawkins
On Thu, Jul 25, 2013 at 9:52 AM, Mike Kerner mikeker...@roadrunner.com wrote: I would pick the method that's the easiest to implement and try it, first. I initially did that--then changed to the array, as remote db access turned out to have expensive latency. So I have the remote DB, and also

Re: relative performance of two dimensional array and in-memory sqlite database

2013-07-25 Thread Mike Kerner
Then what you might want to do is either use ODBC or your own method to mirror the remote db locally. Then the rest of your code stays the same and if the remote issue is resolved, you're grinning. On Thu, Jul 25, 2013 at 1:43 PM, Dr. Hawkins doch...@gmail.com wrote: On Thu, Jul 25, 2013 at

Re: Where to store database ID

2013-07-25 Thread Devin Asay
On Jul 25, 2013, at 10:45 AM, Mike Kerner wrote: LC's libraries need the ID so they know what you're asking them for after you've opened the DB. I just use globals. You can use a global with multiple lines, or an array with multiple elements, if you are going to have multiple DB's open. I

Re: [OT] Free Benchmarking Stuff

2013-07-25 Thread Mark Wieder
Richard- Wednesday, July 24, 2013, 5:01:37 PM, you wrote: I thought Mark Weider and Jacque were going to write a framework for that? Yeah. OK. Whatever. I posted my RRTest app and framework on revOnline just now. Have fun. -- -Mark Wieder mwie...@ahsoftware.net

Re: [OT] Free Benchmarking Stuff

2013-07-25 Thread Richard Gaskin
Mark Wieder wrote: Richard- Wednesday, July 24, 2013, 5:01:37 PM, you wrote: I thought Mark Weider and Jacque were going to write a framework for that? Yeah. OK. Whatever. I posted my RRTest app and framework on revOnline just now. Have fun. Dude, you rock! Alejandro: Does Mark's

Re: relative performance of two dimensional array and in-memory sqlite database

2013-07-25 Thread Dr. Hawkins
On Thu, Jul 25, 2013 at 11:43 AM, Mike Kerner mikeker...@roadrunner.com wrote: Then what you might want to do is either use ODBC or your own method to mirror the remote db locally. Then the rest of your code stays the same and if the remote issue is resolved, you're grinning. I'm actually

Re: LC Server Image Weirdness

2013-07-25 Thread Rick Harrison
Hi Paul, It turned out I had an extra /a. Once I got rid of that and used the shell touch command everything started working correctly. Thanks, Rick On Jul 22, 2013, at 10:46 PM, Paul Hibbert paulhibb...@mac.com wrote: Rick, Maybe if you could post (at least the basics of) the code for

Finding matched parentheses

2013-07-25 Thread David Epstein
Has anyone scripted a function that will locate the closing parenthesis (or bracket, etc.) of a pair? Below is my effort. Reports of its limitations or simpler alternatives (regex?) are invited. David Epstein function offsetPair a,b,str,@z -- returns offset(a,str) and loads in z

Re: [OT] Free Benchmarking Stuff

2013-07-25 Thread Mark Wieder
Richard- Thursday, July 25, 2013, 4:03:28 PM, you wrote: Dude, you rock! Alejandro: Does Mark's contribution seem a good start for what you had in mind? Well, it's a start in one direction. The tests are stored in a local SQLite database. Ideally I'd like to see them on a shared server so

Re: Finding matched parentheses

2013-07-25 Thread Mark Wieder
David- Thursday, July 25, 2013, 5:17:20 PM, you wrote: Has anyone scripted a function that will locate the closing parenthesis (or bracket, etc.) of a pair? Below is my effort. Reports of its limitations or simpler alternatives (regex?) are invited. Here's the one I wrote for glx2. I

[OT-ish] Chromecast

2013-07-25 Thread Andrew Kluthe
Hey Ya'll, Managed to get my hands on a Chromecast today. Pretty snazzy for 35 dollars. It also seems they are going to release the iOS sdk and android sdk for it. I wonder if there will be any way of getting an external (or whatever form the future extensions for livecode will take) for it. My

Re: Finding matched parentheses

2013-07-25 Thread Mark Wieder
Pete- Thursday, July 25, 2013, 6:52:15 PM, you wrote: This appears to work: get matchChunk(string,.*\(.*(\)).*,tstart,tEnd) I think this is closer to what you're looking for get matchChunk(pString,(\(.*\)).*,tstart,tEnd) but even that will fail when you have multiple parentheses in strings

Re: 5.5.5 linking problem -- SOLVED

2013-07-25 Thread Mark Smith
This one was solved by installing the latest version of the externals I was using. Simple, elegant, just didn't know where to start with this problem. Thanks for all the help and hints provided here. Mark -- View this message in context:

Re: 5.5.5 linking problem -- SOLVED

2013-07-25 Thread Monte Goulding
On 26/07/2013, at 1:09 PM, Mark Smith wrote: This one was solved by installing the latest version of the externals I was using. Simple, elegant, just didn't know where to start with this problem. Thanks for all the help and hints provided here. Glad you sorted it out Mark ;-) For everyone's

Re: Finding matched parentheses

2013-07-25 Thread Geoff Canyon
regex is notoriously unable to handle recursion. To see endless heated debate, search the web for how to parse HTML using regex. Here is a fairly short function that searches for the outermost matched pairs of characters. For parentheses, that means that every ( must be balanced by a ), in

Re: Finding matched parentheses

2013-07-25 Thread Jerry Jensen
Gesundheit! On Jul 25, 2013, at 9:53 PM, Geoff Canyon gcan...@gmail.com wrote: erksdfkj(klwer(jklsdfljk)lkjsdflj)lsdjkfklsd 9,34 ljksaljk()ljkadsflj 9,18 (()(()((()(()()((())()(((()((( 1,32 33,42 aslkjsadflj(asldkjf(jklsdf)(sjlkdf)(ljksdf))lskjdf 12,44

Re: Finding matched parentheses

2013-07-25 Thread stephen barncard
does look like sneezing On Thu, Jul 25, 2013 at 10:14 PM, Jerry Jensen j...@jhj.com wrote: Gesundheit! On Jul 25, 2013, at 9:53 PM, Geoff Canyon gcan...@gmail.com wrote: erksdfkj(klwer(jklsdfljk)lkjsdflj)lsdjkfklsd 9,34 ljksaljk()ljkadsflj 9,18

Re: Finding matched parentheses

2013-07-25 Thread Mark Wieder
Geoff- Thursday, July 25, 2013, 9:53:47 PM, you wrote: regex is notoriously unable to handle recursion. To see endless heated debate, search the web for how to parse HTML using regex. To be fair, the blame is mostly on HTML, not regex. But there's enough blame to go around. No worries. Here