Re: Stacks and livecode server?

2015-04-20 Thread Peter Bogdanoff
Richard, This is a great explanation! You didn't go on long enough! I would LOVE a good reference book/ebook/application on using LC, LC server, and web services in general. I would easily pay $100 for such a thing if it really got me going in this field. I know LC desktop pretty well but ha

Re: curiosities in object reference

2015-04-20 Thread Peter M. Brigham
On Apr 20, 2015, at 4:08 AM, David Bovill wrote: > You need to force the type of fRef to be a string. > > LiveCode assumes a string that lukes like a long id is a reference to a > control. It's duck-typing. > > This is useful in many circumstances. > > To get round it you don't need "do", but

Re: curiosities in object reference

2015-04-20 Thread Peter M. Brigham
Yes, that's the kind of thing I've done. -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig On Apr 20, 2015, at 1:57 AM, Kay C Lan wrote: > Maybe this will help: > > put the long id of fld "text" into fRef > put word 3 of fRef into fFldID > put word 7 of fRef into fCdID

Re: Large Scripts Run too Slowly

2015-04-20 Thread JB
Hi Richard, I just looked at your code and it is really nice. I always learn so much from your code. Thanks again! John Balgenorth On Apr 20, 2015, at 5:37 PM, JB wrote: > Thanks Richard! > > I am working on a project that will be > doing some file zipping. It isn’t a full > blown zip pro

Re: Stacks and livecode server?

2015-04-20 Thread Richard Gaskin
jbv wrote: >> Richard Gaskin wrote: >> A majority of the projects I'm working on at the moment are >> standalones that download stacks - depending on what your app >> does and the needs of its audience, it can be an excellent >> delivery solution. > > Same here. > But there's a question in my min

Re: Large Scripts Run too Slowly

2015-04-20 Thread JB
Thanks Richard! I am working on a project that will be doing some file zipping. It isn’t a full blown zip program. It will just provide the ability to zip a file in the process. It is impressive and nice to see very old code works on current Macs. I jusst downloaded the code from you links and

Re: Large Scripts Run too Slowly

2015-04-20 Thread Richard Gaskin
J. Landman Gay wrote: > On 4/20/2015 11:07 AM, Richard Gaskin wrote: >> I made a drag-and-drop plugin for LC's gzip: >> > > I've been using this a lot over the years, just because it's easier > than typing the command into the message bo

Re: RANT: LC6.7.4 and AVFoundation player

2015-04-20 Thread Monte Goulding
That sounds like a reportable bug rather than something to put in the release notes. On 21 Apr 2015, at 7:01 am, Paul Dupuis wrote: > In LC6.7.4 however, if you > set the filename of player X to "C:/Users/.../Somemediafile.mov" > and later > put the filename of player X into tSomeFile > tSomeFil

dragDrop with data grid objects

2015-04-20 Thread Bob Sneidar
Any idea if I can use dragDrop with a data grid object? Currently I get the gray cross circle when trying to drag a file to a data grid. I wanted to create an import handler activated by simply drag dropping the file onto the data grid. I can do it with a field, but not with a data grid. Bob S

RE: iOS app crashes under iOS 8.3 sporadically when doing a revopendb

2015-04-20 Thread Ralph DiMola
Matthias, Yes, My app randomly crashes when opening up the database. I open my DB startup. RR confirmed that it crashed when opening the database. The accelerated rendering was another crash. Ralph DiMola IT Director Evergreen Information Services rdim...@evergreeninfo.net -Original Mess

Re: iOS app crashes under iOS 8.3 sporadically when doing a revopendb

2015-04-20 Thread Matthias Rebbe | M-R-D
Ralph, thanks for your reply. But do i see it right, your apps crashed on startup, right? My app starts up w/o problems. Only when connecting to a DB it crashes. But maybe the cause is the same. Thanks again. Regards, Matthias > Am 21.04.2015 um 00:33 schrieb Ralph DiMola : > > I have!! (

Re: ABC of arrays

2015-04-20 Thread Dick Kriesel
> On Apr 20, 2015, at 1:38 PM, Bob Sneidar wrote: > > One other confusing thing is that if you check a variable containing an array > for empty it will return true. Lay that confusion to rest, Bob. Here’s a snip from release notes I found for 6.0.1: From 6.0 DP 3 onwards, expressions such

RE: iOS app crashes under iOS 8.3 sporadically when doing a revopendb

2015-04-20 Thread Ralph DiMola
I have!! (hand waving in the air) This will be fixed in the next release. RR promised the release today or tomorrow(along with Xcode 6.3 support). This is an un-initialized variable bug. That is why it comes and goes. I found the if I side loaded the app via an .ipa from iTunes it did not crash

Re: ABC of arrays

2015-04-20 Thread Richard Gaskin
An array is a collection of name-value pairs. The name can be any string up to 255 characters. The value can be anything, even another array. Is it any deeper than that? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web

Re: ABC of arrays

2015-04-20 Thread Mike Bonner
Yep. myArray[1] Can either have a value such as "cheese" OR it can hold more boxes/parking spaces/whatever. But there is no way to have myArray[1] contain "cheese" AND more boxes. so if your array has myArray[1][2][3] and you put "Cheddar" into myArray[1] everything in myArray[1][2][3] goes away

Re: compress & decompress

2015-04-20 Thread Dr. Hawkins
On Sat, Mar 28, 2015 at 10:10 AM, Peter Haworth wrote: > Right, hut does the URL specify "file:" or "binfile:". > And this was, indeed, the problem. It didn't occur to me that the incoming file wouldn't be an exact binary copy, or that there would be a difference on a text file . .. -- Dr. R

iOS app crashes under iOS 8.3 sporadically when doing a revopendb

2015-04-20 Thread Matthias Rebbe | M-R-D
Under iOS 8.3 one of my apps sporadically crashes when opening an sqlite database. In the majority of cases a 2nd start of the app (sometimes after 5th or 10th start) resolves this problem and it´s possible to open and close the db as often as one likes. But when restarting the app it could ha

Re: HTML5 Export and Javascript

2015-04-20 Thread Bob Sneidar
I for one would *love* to see LC be able to send Javascript commands to applications that accept it, like they do with Applescript. It would make my current project orders of magnitude easier. For instance, Adobe offers an API for creating and modifying PDF files via Java. This allows 3rd party

RANT: LC6.7.4 and AVFoundation player

2015-04-20 Thread Paul Dupuis
I love LiveCode. It is my favorite development language and I have written code in a LOT of different languages over the years. However, it just irked me so damn much that I must VENT. Prior to LC6.7.x and the switch to the AVFoundation API if you: set the filename of player X to "/Users/.../Some

Re: curiosities in object reference

2015-04-20 Thread Michael Doub
The findTextInStyledText function within the MasterLibrary might be helpful in this case. Pass it a string to find and the styledText array and it will return to you the LineIndex, RunIndex and Starting char within the run. The MasterLibrary is here... https://www.dropbox.com/s/3wpwn3hfbmpl

Re: Data Crid - set the dgNumberOfRecords

2015-04-20 Thread Bob Sneidar
The best way to do this is to build an array from the cursor. What I have never understood is why LC does not have a cursor to array function. It’s easy enough to write one in LC, but having the engine do it would be orders of magnitude faster for large cursors. What I do is I use sqlYoga from

Re: ABC of arrays

2015-04-20 Thread Colin Holgate
I think your analogy isn’t right. A parking space in a car park can either hold a single vehicle or another car park, but not both a single vehicle and a car park. Or two vehicles come to that. If it does hold another car park, that would have its own parking spaces, for more vehicles, or car pa

Re: [OT] And You Thought Richmond Kept Old Macs Alive

2015-04-20 Thread Bob Sneidar
Localtalk adapters would typically convert from RJ11 to LocalTalk. I suppose you *could* daisy chain a bunch of straight up local talk connectors but the length would have been severely limited. What Ethertalk did was allow you to transport LocalTalk over twisted pair phone wire. Bob S > On

Re: [OT] And You Thought Richmond Kept Old Macs Alive

2015-04-20 Thread Bob Sneidar
Exactly what I did except it was The Word For Today radio program. those Farallon hubs could be pissy, and you had to terminate every connection as I recall because it was a star configuration. Bob S On Mar 27, 2015, at 15:27 , stephen barncard mailto:stephenrevoluti...@barncard.com>> wrote:

Re: system weekdayNames

2015-04-20 Thread Bob Sneidar
If you check the Language and Region System Panel, you will see that you can change the Region, First day of week, and Calendar. I suspect that LC is going to sue these settings to determine any kind of day/date function. Bob S On Mar 31, 2015, at 18:15 , Peter Haworth mailto:p...@lcsql.com>>

Re: ABC of arrays

2015-04-20 Thread Bob Sneidar
Not sure what this means, but an array (or element of an array) can contain one key that is a value, and another key that contains an array. In this context I do not see how this statement that a box (element of an array) can contain another array or a value but not both. It’s kind of like sayin

Re: ABC of arrays

2015-04-20 Thread Bob Sneidar
If the array is very large, lots of keys, and you are simply putting the keys of the array into the message box (which is literally what this command you have does unless you were short handing it) then you might be running into the limits of a field i.e.. the number of lines. Bob S On Apr 1,

Re: How to Turn a Word Into a Graphic Object?

2015-04-20 Thread Bob Sneidar
Well for one it seems your spacebar is not working… Bob S On Mar 27, 2015, at 22:00 , Brahmanathaswami mailto:bra...@hindu.org>> wrote: put"10,10"intotPoint subtract5fromitem2oftPoint -- subtracts 5 from the second item Am I doing something wrong?... can anyone confirm?

Re: compress & decompress

2015-04-20 Thread Bob Sneidar
Pretty sure I remember that HC did convert NULL to empty string. Not sure about low level file operations though. I don’t think they had a binary read but I may be mistaken. Bob S On Mar 28, 2015, at 10:22 , Richard Gaskin mailto:ambassa...@fourthworld.com>> wrote: Trivia question for Jacque

Re: Stacks and livecode server?

2015-04-20 Thread jbv
> Richard Gaskin wrote: > > A majority of the projects I'm working on at the moment are > standalones that download stacks - depending on what your app does and > the needs of its audience, it can be an excellent delivery solution. > Same here. But there's a question in my mind for quite a while

Re: Large Scripts Run too Slowly

2015-04-20 Thread Dr. Hawkins
On Mon, Apr 20, 2015 at 7:28 AM, Ray wrote: > I've got a stack script of over 15,000 lines. It's recently started > running too slow to work with. Everything is painfully slow from plain > typing to searches to scrolling. Stepping through lines with the debugger > is almost impossible. Execu

Re: another day lost to the ide and crashes

2015-04-20 Thread Dr. Hawkins
On Sun, Apr 19, 2015 at 9:08 AM, J. Landman Gay wrote: > > Does it happen if you open the stack from the LC menu instead of double > clicking the stack in Finder to launch? > Yes. I had to open LC, turn off messages, and then open file to place my checkpoints. > Just to verify, this is a cras

Re: Stacks and livecode server?

2015-04-20 Thread stephen barncard
On Mon, Apr 20, 2015 at 6:03 AM, Mark Schonewille < m.schonewi...@economy-x-talk.com> wrote: > Currently, you can't put a stack on the server and display its GUI in a > browser. That would take a little more work and one would have to do that on one's own. But stacks on the server are amazingly

Re: Large Scripts Run too Slowly

2015-04-20 Thread JB
It would be nice to be able to see the scripts. There are others out there that let you view the script and have drag and drop. A really good feature to have would be the ability to zip a folder of files and folders and a volume of a hard drive. John Balgenorth On Apr 20, 2015, at 10:44 AM, J.

Re: Stacks and livecode server?

2015-04-20 Thread Richard Gaskin
Eric A. Engle wrote: > There was a revolution plug in which allowed stacks to be served (I > believe as "revlets"). I know that has been cancelled, at least for > now. Probably forever. Browser plugins were a popular solution in the '90s, but became untenable by the turn of the century. Beyon

Re: Large Scripts Run too Slowly

2015-04-20 Thread J. Landman Gay
On 4/20/2015 11:07 AM, Richard Gaskin wrote: I made a drag-and-drop plugin for LC's gzip: I've been using this a lot over the years, just because it's easier than typing the command into the message box. But the copy I have isn't drag

Re: Large Scripts Run too Slowly

2015-04-20 Thread Ray
Richard - I only notice the slow-down in the IDE. The code executing normally seems to run fine. It's when I open the script editor that I run into problems. I don't know why my decompress didn't work but your line opened the FlightRecorder stack fine. Thanks! I'll give it a try. On 4/20

Re: Large Scripts Run too Slowly

2015-04-20 Thread Michael Doub
Ray, Take a look at the way the MasterLibrary Works. https://www.dropbox.com/s/3wpwn3hfbmpl7sk/MasterLibrary.livecode?dl=0 It has an infrastructure in place to add functions and handler to stacks. These can easily be turned into substacks.Feel free to copy with pride if it makes sense fo

Re: Large Scripts Run too Slowly

2015-04-20 Thread Richard Gaskin
Ray wrote: > On 4/20/2015 4:40 PM, Richard Gaskin wrote: ... >> But if the change was recent, given how long it takes to write 15 >> KLOC it may also be worth looking into what the more recent code >> is doing. >> >> To spot redundant calls and other bottlenecks, this free tool has >> saved my ba

Re: Large Scripts Run too Slowly

2015-04-20 Thread Ray
Yeah I looked through recent installs and didn't find much. I uninstalled a couple of Java updates but it didn't help. The slowness has been creeping in for a while actually. It's time to take the bull by the horns. By the way, how are you compressing the .gz file, below? I'm unable to ge

Re: curiosities in object reference

2015-04-20 Thread Richard Gaskin
Mike Bonner wrote: > I wish it was easy to work with "the styledtext" but multiple runs > get really convoluted. They contain the actual text though, so if > you're better at navigating arrays than I am, it might be possible > to "put the styledtext of fRef into tStyledA" then make adjustments, >

Re: Large Scripts Run too Slowly

2015-04-20 Thread Richard Gaskin
Ray wrote: I've got a stack script of over 15,000 lines. It's recently started running too slow to work with. Everything is painfully slow from plain typing to searches to scrolling. How long has this been slow? What's changed since it was fast? You can break code up all sorts of ways, lib

Large Scripts Run too Slowly

2015-04-20 Thread Ray
I've got a stack script of over 15,000 lines. It's recently started running too slow to work with. Everything is painfully slow from plain typing to searches to scrolling. Stepping through lines with the debugger is almost impossible. I start using this stack at launch so all other stacks i

Re: Stacks and livecode server?

2015-04-20 Thread Mark Schonewille
Hi Eric, Revlets are very unlikely to come back. RunRev is working on an HTML5 export feature. That is probably what you want. Apart from that, it is easy to write a script to export data from LiveCode to a website. There are several people on this list who use LiveCode as a CMS, including m

Stacks and livecode server?

2015-04-20 Thread Eric A. Engle
There was a revolution plug in which allowed stacks to be served (I believe as "revlets"). I know that has been cancelled, at least for now. Meanwhile, I have installed livecode for cgi, which and it works.  I searched the internet to see if the livecode server can be used to serve stacks somehow

Re: curiosities in object reference

2015-04-20 Thread David Bovill
You need to force the type of fRef to be a string. LiveCode assumes a string that lukes like a long id is a reference to a control. It's duck-typing. This is useful in many circumstances. To get round it you don't need "do", but you need to assemble the reference as a string - and do mess around