And now, a world without Steve Jobs

2011-10-06 Thread Mark Wieder
Here's the best piece I've seen yet on Steve Jobs' passing: http://www.sfgate.com/cgi-bin/article.cgi?f=/g/a/2011/10/07/notes100711.DTL -- -Mark Wieder mwie...@ahsoftware.net ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit t

Re: Object Naming Conventions

2011-10-06 Thread Mark Wieder
Ken- that was supposed to read: "Of course, each person has the style that works best for them, so use what you like and ditch what you don't..." > Absolutely. -- -Mark Wieder mwie...@ahsoftware.net ___ use-livecode mailing list use-livecode@list

Re: Object Naming Conventions

2011-10-06 Thread Mark Wieder
Ken- Thursday, October 6, 2011, 8:06:18 PM, you wrote: > I tend to use prefixes like this only when they aren't already > abbreviations for an existing object in LC. Absolutely. I also quite often use graphic images as buttons, so I'll go hide graphic "btnSaveMe" and there the "btn" reminds me

Re: Basic question: how to package file clusters for iPad

2011-10-06 Thread Andre Garzia
Mark, You can use the mobile equivalent of RevBrowser and create a stack that opens the pages as if they were local. If you want to look into a technology that was created specifically to serve local HTML/CSS/JS content as a mobile app, go to http://phonegap.com Be aware that your current html s

Re: Basic question: how to package file clusters for iPad

2011-10-06 Thread Sarah Reichelt
> I generate a lot of simple HTML dynamically from LiveCode apps, which I post > to web servers.  Some of the HTML clusters are formatted specifically for > iPad consumption, and they display and function perfectly well in Safari.   > However, stupid question: how can a customer bring that materi

[ANN] stsColorPicker 1.1 DropTool

2011-10-06 Thread Ken Ray
Minor update announcement: stsColorPicker is now at 1.1, which fixes a few bugs, provides an all-important 'stsColorPick' callback and makes the documentation match the way the DropTool works... More info is at: http://droptools.sonsothunder.com/products/sts/sts-cp.irev Thanks! Ken R

Re: Object Naming Conventions

2011-10-06 Thread Ken Ray
On Oct 6, 2011, at 8:03 PM, Mark Wieder wrote: > controlprefix example > --- > buttons : "btn" : "btnSave" > radio buttons : "rdo" : "rdoOption1" > checkboxes: "chk" : "chkShowLineNumbers" > tab buttons : "mnu" : "mnuMainTabForm" > fields: "fl

Re: Datagrid truncateTail

2011-10-06 Thread Pete
Yep, I'm doing that. Got it from the How To guide as you mentioned. I will double check in case I did something wrong. Thanks for checking. Pete Molly's Revenge On Thu, Oct 6, 2011 at 6:58 PM, David Glass wrote: > I must have asked somewhere else, but the qu

Re: Datagrid truncateTail

2011-10-06 Thread David Glass
I must have asked somewhere else, but the question and answer is there in the 'How do I override the default behavior when rendering data' or something along those lines. Basically, you have to store the text in a custom property, then reset it in LayoutControl before calling TruncateTail, rat

Re: Photo album

2011-10-06 Thread Gerry Orkin
Use a browser control to display the photos. Gerry On 07/10/2011, at 12:44 PM, Sergio Schvarstein wrote: > Hi, > > I need to do exactly what the photo album does on the iPhone and incorporate > all 4 gestures on a single image: > Pinch, zoom, drag and swipe. > > I have gone through the mu

Re: Datagrid truncateTail

2011-10-06 Thread David Glass
Yes. I think I even asked in the DG lesson area about it. I'll see if I can find the solution. On 10/06/2011 6:05 PM, Pete wrote: I've been using the truncateTail command of the datagrid library and it has been working ine but just came across a situation where it doesn't seem to work. If I

Photo album

2011-10-06 Thread Sergio Schvarstein
Hi, I need to do exactly what the photo album does on the iPhone and incorporate all 4 gestures on a single image: Pinch, zoom, drag and swipe. I have gone through the multi touch tutorial but the zoom quality is very bad. I need a real zoom, not a pixelated resize. Is there any for doing it w

Re: Object Naming Conventions

2011-10-06 Thread Pete
Thanks Mark, that's what I was looking for. Pete Molly's Revenge On Thu, Oct 6, 2011 at 6:03 PM, Mark Wieder wrote: > Phil- > > Thursday, October 6, 2011, 12:28:38 PM, you wrote: > > > Here is an excellent starting point: > > http://fourthworld.com/embassy/

Jenkins Terry wants to chat

2011-10-06 Thread Jenkins Terry
--- Jenkins Terry wants to stay in better touch using some of Google's coolest new products. If you already have Gmail or Google Talk, visit: http://mail.google.com/mail/b-cc3eab30d2-068196b984-n7zpJ4uB1FhCocEB8z7SE0_eWdM You'll

Re: Brush Tool in iOS

2011-10-06 Thread Scott Rossi
I think because the LFs allow you place single points (dots) on the card that simulate the appearance of paint. Spaces in the point list of a polygon allow you to create discontinuous segments/lines. Without the LFs, you would wind up with a messy close polygon. Regards, Scott Rossi Creative Di

Datagrid truncateTail

2011-10-06 Thread Pete
I've been using the truncateTail command of the datagrid library and it has been working ine but just came across a situation where it doesn't seem to work. If I resize a column to be narrower than the text, it works fine but if I then resize it back so it's wide enough to hold the original conten

Re: Object Naming Conventions

2011-10-06 Thread Mark Wieder
Phil- Thursday, October 6, 2011, 12:28:38 PM, you wrote: > Here is an excellent starting point: > http://fourthworld.com/embassy/articles/scriptstyle.html > Go to the "Naming Conventions" part. In addition to what's in Richard's writeup I tend to use the following conventions. Mostly just

Re: how to compare 2 very large textfiles

2011-10-06 Thread Pete
That's a good thought Bob, LC just has to look for the first line break that way. Pete Molly's Revenge On Thu, Oct 6, 2011 at 4:59 PM, Bob Sneidar wrote: > Not to beat a dead horse, but when converting a large string of text to an > array, it might be somewhat f

Re: how to compare 2 very large textfiles

2011-10-06 Thread Pete
Just when I thought I was safe! I see what you are doing to avoid LC locating lines itself, nice. The search I had in mind was different and used the binary search method and a recursive routine. Unfortunately I didn't save the code but it went roughy like this (the lists still have to be sorted

Re: Brush Tool in iOS

2011-10-06 Thread tbodine
Hope you don't mind a LC newbie coder question. In the code below, why does the graphic need a linefeed (LF constant)? Or does LF have some other meaning? Thanks, Tom Bodine John Craig-4 wrote: > > Here's a simple example using a graphic. Just create a new > stack, add a line graphic called 'd

Re: how to compare 2 very large textfiles

2011-10-06 Thread Bob Sneidar
Not to beat a dead horse, but when converting a large string of text to an array, it might be somewhat faster to delete each line as you put it into the array, and only work with the first line. Very little scan times. Bob On Oct 6, 2011, at 4:45 PM, Pete wrote: > Thanks Alex. I managed to

Re: how to compare 2 very large textfiles

2011-10-06 Thread Alex Tweedly
On 07/10/2011 00:45, Pete wrote: Thanks Alex. I managed to cobble something together to get the test lists. I did try the binary search approach and it was way slower than the array approach as you predicted (Still much faster than the original code Matthias was using though). So I'm happy wi

Re: how to compare 2 very large textfiles

2011-10-06 Thread Pete
Thanks Alex. I managed to cobble something together to get the test lists. I did try the binary search approach and it was way slower than the array approach as you predicted (Still much faster than the original code Matthias was using though). So I'm happy with the array technique now. Someon

Re: how to compare 2 very large textfiles

2011-10-06 Thread Alex Tweedly
On 06/10/2011 22:19, Pete wrote: Thanks for the report back on the speed Alex. I guess its academic if the speed is down to 100msecs but I'm wondering if a binary search technique would be better or worse (assuming the lists were sorted of course). How did you create the two lists for your test

Re: how to compare 2 very large textfiles

2011-10-06 Thread Pete
Good point Jim. As you say, it should work fine for fully qualified names. If the intent was to find duplicates as well as missing lines, then I would "add 1 to myArray[i]["A"]" instead of putting true in there. Then in the final repeat loop check for "> 1" in each key to list duplicates. Pete M

Re: how to compare 2 very large textfiles

2011-10-06 Thread Jim Ault
On Oct 6, 2011, at 5:50 PM, Matthias Rebbe wrote: put the dgtext of grp "Festplatte 1" into tHDD1 put the dgtext of grp "Festplatte 2" into tHDD2 REPEAT FOR each line i in tHDD1 put true into myArray[i]["A"] END REPEAT REPEAT FOR each line i in tHDD2 put true into myArray[i]["B"] END

Re: how to compare 2 very large textfiles

2011-10-06 Thread Pete
Hi Scott, Basically the array ends up with a 2 level key structure. The first level is keyed by the contents of the line, the second level contains one or two keys, A and B. If the line is present in list A and list B then the subkeys A and B will both contain true. If the line is not present in

Re: Jobs Passed Away

2011-10-06 Thread Pierre Sahores
A 2 mn video as a resume of Steve Jobs innovative creativity in about design, logistics, marketing, ... + its Stanford's conference translated to french... Repose en paix, Monsieur Jobs et merci pour tout ce que tu nous a montré des possibles

Re: how to compare 2 very large textfiles

2011-10-06 Thread Bob Sneidar
It is possible, and indeed likely. When working with large text strings, every access to the string gets evaluated from the beginning to the end. You can see how this would be extremely time consuming. Arrays however are accessed using a kind of index so when you refer to an element such as myAr

Re: how to compare 2 very large textfiles

2011-10-06 Thread Scott Rossi
Pete, I meant to ask, how does your array solution work? Where does the comparison take place? I've long used arrays for storing data but not much beyond that. Thanks & Regards, Scott Rossi Creative Director Tactile Media, UX Design Recently, Pete wrote: > Thanks for the report back on the

Re: how to compare 2 very large textfiles

2011-10-06 Thread Matthias Rebbe
Hi all, let me explain what i am doing. I am working on a tool, which checks if two folders/harddrives are in sync. I create a detailed file list including all subfolders of each folder/drive. This 2 list are then compared. For my tests i created a stack with 2 Datagrids. I read in the comple

Re: Evaluation of complex conditions

2011-10-06 Thread Pete
Yes, that's what I would have expected but just double checking since someone mentioned otherwise - back to "precedence" versus "evaluation" again I think. Pete Molly's Revenge On Thu, Oct 6, 2011 at 2:38 PM, Richard Gaskin wrote: > Pete wrote: > > I wrote a cou

Re: Evaluation of complex conditions

2011-10-06 Thread Bob Sneidar
Right logical expressions are left to right. I may have been confused on the issue. There would be no advantage to doing it any other way so far as I can see. Bob On Oct 6, 2011, at 2:13 PM, Pete wrote: > Thanks Graham. Yes, someone else provided an example of the function you > mentioned t

Re: Evaluation of complex conditions

2011-10-06 Thread Richard Gaskin
Pete wrote: I wrote a couple of functions (condition1 and condition2), each of which puts its identity after a script variable named myResult then returns true. I then wrote the following: put empty into myResult if condition1() is true and condition2() is true then put myResult As expected,

Re: how to compare 2 very large textfiles

2011-10-06 Thread Pete
Thanks for the report back on the speed Alex. I guess its academic if the speed is down to 100msecs but I'm wondering if a binary search technique would be better or worse (assuming the lists were sorted of course). How did you create the two lists for your test? I'd like to try the binary searc

Re: Jobs Passed Away

2011-10-06 Thread Pete
On a completely different level and sphere of life, but Bert Jansch also passed away yesterday. Pete Molly's Revenge On Thu, Oct 6, 2011 at 1:48 PM, Thomas McGrath III wrote: > I for one will miss him and his influence on my computing life. So long > Steve... >

Re: Evaluation of complex conditions

2011-10-06 Thread Pete
Thanks Graham. Yes, someone else provided an example of the function you mentioned to illustrate how things work. But I cannot reproduce the behavior mentioned when conditions are enclosed in parens - the order of evaluation doesn't seem to be affected. I wrote a couple of functions (condition1

Re: Jobs Passed Away

2011-10-06 Thread Bob Sneidar
Steve showed us how to run a company and enjoy himself while doing it. He approached his work with a dedication and passion rare it seems these days. He has certainly inspired me over the years in a field that would bore most people to tears. May he find himself now in that "better place". Bob

Re: Jobs Passed Away

2011-10-06 Thread Thomas McGrath III
I for one will miss him and his influence on my computing life. So long Steve... -- Tom McGrath III http://lazyriver.on-rev.com 3mcgr...@comcast.net On Oct 5, 2011, at 8:07 PM, Petrides, M.D. Marian wrote: > So, so sad, if not entirely unexpected. He'll be missed. :- > > On Oct 5, 2011, a

Basic question: how to package file clusters for iPad

2011-10-06 Thread Mark Powell
Sort of a newbie question and not a LiveCode question per se, but... I generate a lot of simple HTML dynamically from LiveCode apps, which I post to web servers. Some of the HTML clusters are formatted specifically for iPad consumption, and they display and function perfectly well in Safari. H

Re: how to compare 2 very large textfiles

2011-10-06 Thread Alex Tweedly
Much faster. I tried the original script (with typo fixed) on 7000 lines of varying length between 100 and 300 chars - took about 2 minutes to run. The array version (again with typo fixed) took around 100 msec. -- Alex. On 06/10/2011 20:16, Scott Rossi wrote: FWIW, I tried a quick test of

Re: how to compare 2 very large textfiles

2011-10-06 Thread Dick Kriesel
On Oct 5, 2011, at 3:00 PM, Matthias Rebbe wrote: > Hi, > > i need to compare two very large text files with about 5000 - 7000 lines each > with a lines size of up to 256 chars. > > I need to find out if there are lines missing in either file a or file b. > > What is the best way to do this wi

Re: Evaluation of complex conditions

2011-10-06 Thread Graham Samuel
Yes, in any 'and' where the first condition is false, then the second condition is not evaluated; similarly in any 'or', if the first condition is true, the second isn't evaluated. Parentheses alter the order of evaluation as others have said. It's easy to prove this by writing a script where t

Re: how to compare 2 very large textfiles

2011-10-06 Thread Pete
Glad it worked Matthias. Could you give us an idea of the new timing using the arrays? Pete Molly's Revenge On Thu, Oct 6, 2011 at 12:17 PM, Matthias Rebbe < matthias_livecode_150...@m-r-d.de> wrote: > Hi Pete, > > thank you very much. It´s so much faster. > > I

Re: Object Naming Conventions

2011-10-06 Thread Phil Davis
Here is an excellent starting point: http://fourthworld.com/embassy/articles/scriptstyle.html Go to the "Naming Conventions" part. Phil On 10/6/11 12:23 PM, Pete wrote: I vaguely remember a thread on this topic a while back. I'm interested in what naming conventions people have for stack

Object Naming Conventions

2011-10-06 Thread Pete
I vaguely remember a thread on this topic a while back. I'm interested in what naming conventions people have for stacks/cards/controls, if any. This is in connection with a project I'm working on to automate laying out controls on a card. I'm currently using a naming convention of my own but I'

Re: how to compare 2 very large textfiles

2011-10-06 Thread Matthias Rebbe
Hi Michael, thanks. I just had the typo in my e-mail. The script in the stack is correct. I tried now Pete´s solution with an array. This is much faster. Regards, Matthias Am 06.10.2011 um 21:15 schrieb Michael Kann: > Matthias, > > I noticed a typo in the second loop: > > repeat for each

Re: how to compare 2 very large textfiles

2011-10-06 Thread Matthias Rebbe
Hi Pete, thank you very much. It´s so much faster. It seems, i should look closer to arrays. Regards, Matthias Am 06.10.2011 um 01:13 schrieb Pete: > I've used an array to do this type of operation in the past. Haven't tried > this code but it might work better. > > repeat for each line i i

Re: how to compare 2 very large textfiles

2011-10-06 Thread Scott Rossi
FWIW, I tried a quick test of Matthias's script using two fields with 5000 lines of 256 chars each. I tried using "i is not among the lines of" and "i is not in" with identical results. Processing time was 1 min 6 secs in both cases (Mac Intel Core2 Duo). Perhaps the array option posted is faste

Re: how to compare 2 very large textfiles

2011-10-06 Thread Michael Kann
Matthias, I noticed a typo in the second loop: repeat for each line i in tTextB if i is not among the lines of tTextA then put i &retrurn after tMissingInA TYPO RETRURN end repeat This probably isn't the actual script or anyway it wouldn't work even after ten minutes. Perhaps there is a type i

Re: how to compare 2 very large textfiles

2011-10-06 Thread Michael Kann
Matthias, Your script should take a few seconds at most. There must be something else going on to slow you down. If you want to post the script itself and a few lines of data perhaps someone can figure it out. Mike --- On Wed, 10/5/11, Matthias Rebbe wrote: From: Matthias Rebbe Subject: how

Re: CBT using LiveCode - Computer Based Training

2011-10-06 Thread Phil Davis
Hi Alejandro, I am still quite busy adding features and structural changes to a CBT system I wrote in 2003-05. Most recently we are creating a web version of the content delivery part, to free users from having to install software on their computers before taking training. If you have never

Re: Evaluation of complex conditions

2011-10-06 Thread Alex Tweedly
On 06/10/2011 18:14, Ken Ray wrote: There are certain times where parens are necessary (I just wish I could remember specifically where and when). It *is* a good practice to put expressions in parens for readability, especially when it comes to working with objects. Compare: My favourite examp

Re: Evaluation of complex conditions

2011-10-06 Thread Pete
Thanks Ken. Like you, I do tend to put parens around individual conditions in a multi-condition if statement. I guess as long as all the conditions are in parens, it won;t matter if parens change the order of evaluation. Thanks to all for the clarifications. Pete Molly's Revenge

Re: Evaluation of complex conditions

2011-10-06 Thread Ken Ray
On Oct 6, 2011, at 11:40 AM, Pete wrote: > Thanks Alex, makes total sense with the examples you provided. > > The only remaining question in my mind is if the use of parens changes > anything - a post yesterday suggested that putting a condition in parens > causes it to be evaluated ahead of the

Re: Evaluation of complex conditions

2011-10-06 Thread Pete
Thanks Alex, makes total sense with the examples you provided. The only remaining question in my mind is if the use of parens changes anything - a post yesterday suggested that putting a condition in parens causes it to be evaluated ahead of the other conditions but I can't make that happen in you

Re: Death of a prophet

2011-10-06 Thread Richmond Mathewson
On 10/06/2011 04:04 PM, Peter Alcibiades wrote: http://www.oftwominds.com/journal/protagoras12b-07.html Well, rather some marvellous machines rather than mass suicide, any day! -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Death-of-a-prophet-tp3877629p38781

Re: Death of a prophet

2011-10-06 Thread Peter Alcibiades
http://www.oftwominds.com/journal/protagoras12b-07.html -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Death-of-a-prophet-tp3877629p3878116.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ us

Re: Evaluation of complex conditions

2011-10-06 Thread Alex Tweedly
Don't confuse "operator precedence" and "order of evaluation". precedence tells you how the results of individual parts of the calculation are combined. For instance, 1+2*3+4 will give 11 (i.e. multiplication is higher precedence than addition, so the 2 is multiplied by the 3 and then that is

Death of a prophet

2011-10-06 Thread Richmond Mathewson
Steve Jobs was a 'guru', and as such was admired and feared in equal proportions; but far better to be admired and feared than nothing. I hope that his spirit lives on at Apple, and that his soul reincarnates with the same energy and drive elsewhere. May God protect him from all the mediocre vo