From ebeugelaar at gmail.com Thu Jan 1 05:22:31 2015 From: ebeugelaar at gmail.com (Erik Beugelaar) Date: Thu, 01 Jan 2015 11:22:31 +0100 Subject: Late to the party Message-ID: <6um4klx3uf012o4xu06xyole.1420107751918@email.android.com> LOL! Interesting the info about the Linux connection. All the best wishes and health in 2015 for all developers and the RunRev team to make the Next Generation of LiveCose see the light this year! Erik Richmond wrote: >On 31/12/14 22:37, J. Landman Gay wrote: >> On 12/31/2014 1:23 PM, Richmond wrote: >>> >>> What I need to know is where in those 2 volumes I should place my >>> Livecode standalone so that it shows up on the iPad desktop. >> >> It's all hidden and iOS doesn't offer a file system. The only way to >> get an app onto your device normally is to install it the usual way >> via over-the-air or through iTunes. >> >> I don't know how jailbreaking the device will affect it, but in an >> unrooted device you must have a developer account and the appropriate >> certificates and distribution profiles set up. Otherwise the app won't >> install. >> >> If there is a different way with a jailbroken tablet then you'll need >> to do some research, as Apple doesn't allow that. > >"Apple doesn't allow that"; Ooo, I'm scared . . . > >I jail-broke the thing because I really don't like being told what to do >with something I own: > >1. A friend of mine keeps hens in a car: that's OK. Mind you it can be a >bit disconcerting if one brakes suddenly >and one gets a squawking chicken butting one in the back of the head. >The second time I borrowed one of his cars >I took the second from the left (he has 8 old cars in a row), knowing >the hens stayed in the first. I saw some lovely >day-lilies growing in the sheuch, stopped the car, and felt something >licking my neck - I'd picked the car with the goat! > >2. I use a copy of a book given out at airports by a well-known cult as >a way to prop open the toilet door so the cats >can get in and out to do their business: that's positively a lot better >than what the cult intends it for. > >3. The iPad was gifted to me by my son (who was gifted it by Sheikh >Abdullah al-Thani); so I really don't know who agreed to >some funny EULA that won't stick anyway. >-------------------------------------------------------------- > >"It's all hidden and iOS doesn't offer a file system." Really? Try >hooking an iPad up to a Linux box. Extremely informative. > >When I connect the iPod to my Ubuntu Studio I can see a set of nested >directories via the Thunar file-browser that is >the standard XFCE thing: > >One path: /Documents on Richmond's iPad/ contains folders with the same >names as apps I have installed (i.e. NOT the standard ones that >come pre-installed when one installs iOS), each of thos folders contains >one folder called ZZZ.app (where 'ZZZ' is the name of the app) and >a series of other folders: 'Documents', 'Library', 'tmp' and two >documents: 'iTunesArtwork' and 'iTunesMetadata.plist'. > >So, PRESUMABLY, I have to author an iOS standalone on Macintosh and then >put the resulting app package in a folder with the same name in >the Documents folder via Linux. > >Certainly that is what I shall try to do. > >I shall also have some 'fun' examining the contents of the plist files >of other apps . . . > >By-ther-way: the file system mounts on Linux running XFCE regardless of >whether it has been jail-broken or not. > >------------------------------------------------------ > >Before anyone wants to get all hoity-toity and pompous about my >jail-breaking an old iPad (and the amount of people on this Use-List >and the Forums who do get all hoity-toity about that sort of thing never >ceases to amaze me, especially as the imposition of those >sort of rules by companies that manufacture operating systems and/or >computer hardware is legally shaky at the best of times, >and anybody with a half-decent brain can work out that legality and >morality do not have a one-to-one correspondence), I assure you >I have NOT jail-broken my iPad out of some of attempt to start >manufacturing Livecode standalones and handing them out from my website >with instructions to end-users on how to subvert Apple's draconian >control to install the things. > >I have fooled around with the iPad emulator and, frankly, find it >extremely difficult to work with: an iPad coming my way was jolly lucky; so >I jail-broke the thing for 2 reasons, the first is listed above, and the >second is so I can try out an iPad standalone PROPERLY by running >my alpha, beta and (probably) gamma, delta and epsilon versions on the >thing before I go and make a fool of myself by issuing an >iPad App that mucks everybody's iPad up. >-------------------------------------------------------- > >I should, perhaps, point out that if anybody else wants a "walk on the >wild side" and to jail-break their iPad, I tried it twice: the first time >I "hosed" the thing completely and had to restore the whole thing via >iTunes. > >The second time I used a different method and, so far, things seem alright. > >Anybody who wants the exact details should contact me off-list as this >has "sweet F.A." to do with Livecode. > >------------------------------------------------------ >"in an unrooted device you must have a developer account and the >appropriate certificates and distribution profiles set up. Otherwise the >app won't install. " > >One of the jolly things about 'Cydia' (the app-thing that gets installed >on one's iPad if one jail-breaks it by one of the >standard, ready-made ways), is that there is a user-guide that tells you >how to obtain administrator access using >Mobile Terminal' and everybody's favourite "su root". > >Richmond. > > >_______________________________________________ >use-livecode mailing list >use-livecode at lists.runrev.com >Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Thu Jan 1 07:25:54 2015 From: richmondmathewson at gmail.com (Richmond) Date: Thu, 01 Jan 2015 14:25:54 +0200 Subject: Late to the party In-Reply-To: <54A45E7D.8040102@hyperactivesw.com> References: <54A42140.3060000@gmail.com> <54A43310.2090505@gmail.com> <54A44D4B.5080603@gmail.com> <54A45E7D.8040102@hyperactivesw.com> Message-ID: <54A53CD2.5010906@gmail.com> I just did a casual browse on the internet and found these: https://developer.apple.com/library/ios/documentation/FileManagement/Conceptual/FileSystemProgrammingGuide/FileSystemOverview/FileSystemOverview.html https://developer.apple.com/library/ios/documentation/FileManagement/Conceptual/FileSystemProgrammingGuide/FileSystemProgrammingGuide.pdf http://developer.xamarin.com/guides/ios/application_fundamentals/working_with_the_file_system/ All good stuff when it comes to the file system of iOS. Richmond. From richmondmathewson at gmail.com Thu Jan 1 07:38:04 2015 From: richmondmathewson at gmail.com (Richmond) Date: Thu, 01 Jan 2015 14:38:04 +0200 Subject: Late to the party In-Reply-To: <54A45E7D.8040102@hyperactivesw.com> References: <54A42140.3060000@gmail.com> <54A43310.2090505@gmail.com> <54A44D4B.5080603@gmail.com> <54A45E7D.8040102@hyperactivesw.com> Message-ID: <54A53FAC.1000400@gmail.com> http://www.macworld.com/article/2148362/how-inter-app-communication-on-ios-could-benefit-users.html Richmond. From richmondmathewson at gmail.com Thu Jan 1 10:43:52 2015 From: richmondmathewson at gmail.com (Richmond) Date: Thu, 01 Jan 2015 17:43:52 +0200 Subject: Access an iPad file system from Ubuntu Message-ID: <54A56B38.2030203@gmail.com> 1. Install /iFuse/ from Ubuntu Software Center 2. Open a Terminal and run sudo apt-get install libimobiledevice-utils 3. In the same Terminal, run idevicepair unpair && idevicepair pair Richmond. From richmondmathewson at gmail.com Thu Jan 1 11:05:33 2015 From: richmondmathewson at gmail.com (Richmond) Date: Thu, 01 Jan 2015 18:05:33 +0200 Subject: Access an iPad file system from Ubuntu In-Reply-To: <54A56B38.2030203@gmail.com> References: <54A56B38.2030203@gmail.com> Message-ID: <54A5704D.2000306@gmail.com> On 01/01/15 17:43, Richmond wrote: > > 1. Install /iFuse/ from Ubuntu Software Center > 2. Open a Terminal and run sudo apt-get install libimobiledevice-utils > 3. In the same Terminal, run idevicepair unpair && idevicepair pair > > Richmond. > As my iPad is jail-broken, all I had to do was issue a terminal command: ifuse /home/richmond/Desktop/Pad --root to get the root file system mounted in the file 'Pad' on my desktop (not, admittedly, that it is telling me much when I look at it). Richmond. From bonnmike at gmail.com Thu Jan 1 11:16:54 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Thu, 1 Jan 2015 09:16:54 -0700 Subject: Access an iPad file system from Ubuntu In-Reply-To: <54A5704D.2000306@gmail.com> References: <54A56B38.2030203@gmail.com> <54A5704D.2000306@gmail.com> Message-ID: look in /private/..... Should be able to place apps in there somewhere, but i'm not sure if there is a registry of some type you'd have to modify too. On Thu, Jan 1, 2015 at 9:05 AM, Richmond wrote: > On 01/01/15 17:43, Richmond wrote: > >> >> 1. Install /iFuse/ from Ubuntu Software Center >> 2. Open a Terminal and run sudo apt-get install libimobiledevice-utils >> 3. In the same Terminal, run idevicepair unpair && idevicepair pair >> >> Richmond. >> >> > As my iPad is jail-broken, all I had to do was issue a terminal command: > > ifuse /home/richmond/Desktop/Pad --root > > to get the root file system mounted in the file 'Pad' on my desktop > > (not, admittedly, that it is telling me much when I look at it). > > Richmond. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dunbarx at aol.com Thu Jan 1 11:41:01 2015 From: dunbarx at aol.com (dunbarx at aol.com) Date: Thu, 1 Jan 2015 11:41:01 -0500 Subject: Membership disabled In-Reply-To: <54A4604B.6020709@hyperactivesw.com> References: <8D1F3469D7C1B7D-248C-2BE8E@webmail-m238.sysops.aol.com> <54A4604B.6020709@hyperactivesw.com> Message-ID: <8D1F3F8DCD137F4-D58-49C0C@webmail-vm147.sysops.aol.com> It seems that the notice/re-enlistment occurs at relatively regular intervals. Does this mean that the number of mails sent between each episode is the same, as if I am allowed, say, thirty or so before I tax the servers patience? Craig -----Original Message----- From: J. Landman Gay To: How to use LiveCode Sent: Wed, Dec 31, 2014 3:45 pm Subject: Re: Membership disabled On 12/31/2014 1:25 PM, dunbarx at aol.com wrote: > Jacque thought it might have to do with AOL, but you are not on that service. I still think it has to do with AOL, but the recipient doesn't need to be on that service (my mailserver isn't.) It's that the sender is writing from AOL and the recipient's server is rejecting those messages because AOL has set some properties that the receiving server doesn't like. Yahoo did the same thing apparently. I do know that some of your messages never arrive here, but others do, so in my case it's spotty and not often enough for me to get the bounce notice. My email client does put some of your messages into my spam folder. AOL and Yahoo have a history of spammer abuse, and it's likely that's why they set up certain parameters and why the receiving servers are rejecting so many of the those emails. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From pete at lcsql.com Thu Jan 1 12:13:41 2015 From: pete at lcsql.com (Peter Haworth) Date: Thu, 1 Jan 2015 09:13:41 -0800 Subject: Membership disabled In-Reply-To: <8D1F3F8DCD137F4-D58-49C0C@webmail-vm147.sysops.aol.com> References: <8D1F3469D7C1B7D-248C-2BE8E@webmail-m238.sysops.aol.com> <54A4604B.6020709@hyperactivesw.com> <8D1F3F8DCD137F4-D58-49C0C@webmail-vm147.sysops.aol.com> Message-ID: Hi Craig, Success! I got this post of yours. As mentioned, I changed my email address for the list to go directly to my gMail address instead of to my lcSQL address and then picked up by gMail using POP. So either the host for my lcSQL address is being over zealous in it's email checking or something about the process of of gMail picking up the mail via POP was causing the problem. Your email was still flagged as spam but because the gMail filter I set up to move list emails to a specific folder is set to still move emails that it thinks are spam, it still ended up in my LC folder instead of spam. In answer to your question, I don;t know for sure but I suspect there is a fixed limit on the number of emails that are bounced and the disabling happens when that limit is reached. I'm sure the limit is a total number not just bounces of your emails. 2015 is off to a good start! Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Thu, Jan 1, 2015 at 8:41 AM, wrote: > It seems that the notice/re-enlistment occurs at relatively regular > intervals. Does this mean that the number of mails sent between each > episode is the same, as if I am allowed, say, thirty or so before I tax the > servers patience? > > > Craig > > > > -----Original Message----- > From: J. Landman Gay > To: How to use LiveCode > Sent: Wed, Dec 31, 2014 3:45 pm > Subject: Re: Membership disabled > > > On 12/31/2014 1:25 PM, dunbarx at aol.com wrote: > > Jacque thought it might have to do with AOL, but you are not on that > service. > > I still think it has to do with AOL, but the recipient doesn't need to > be on that service (my mailserver isn't.) It's that the sender is > writing from AOL and the recipient's server is rejecting those messages > because AOL has set some properties that the receiving server doesn't like. > > Yahoo did the same thing apparently. I do know that some of your > messages never arrive here, but others do, so in my case it's spotty and > not often enough for me to get the bounce notice. My email client does > put some of your messages into my spam folder. > > AOL and Yahoo have a history of spammer abuse, and it's likely that's > why they set up certain parameters and why the receiving servers are > rejecting so many of the those emails. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pete at lcsql.com Thu Jan 1 12:17:28 2015 From: pete at lcsql.com (Peter Haworth) Date: Thu, 1 Jan 2015 09:17:28 -0800 Subject: Membership disabled In-Reply-To: References: <8D1F3469D7C1B7D-248C-2BE8E@webmail-m238.sysops.aol.com> <54A4604B.6020709@hyperactivesw.com> Message-ID: Hi Peter, If you have a filter to recognize emails to the list, there's an option to "Never send it to spam". Checking that ensures that the emails won't go into your spam folder. GMail still puts a little message at the top saying that it would have gone to spam if not for the filter. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Wed, Dec 31, 2014 at 3:19 PM, Peter W A Wood wrote: > All of Craig?s messages to this list get directed to my Gmail spam folder > and has been for a long time. A handful of other list messages also end up > there. There were a couple from another AOL user today. > > Regards > Peter > > http://LiveCode1001/blogspot.com > > > > On 1 Jan 2015, at 05:44, Peter Haworth wrote: > > > > So here's a perfect example. I never got Craig's email which is quoted > in > > Jacque's reply. This only happens with emails sent from either an AOL > > address or a Yahoo address to the How To list so it's definitely a > > Yahoo/AOL related problem. > > > > I don't pretend to know the ins and outs of this but I'm told it's the > > result of an email checking protocol named DMARC. > > > > I am going to try changing the address my list mails are sent to to my > > gMail address instead of my lcSQL address and see if that makes any > > difference. > > > > > > > > Pete > > lcSQL Software > > Home of lcStackBrowser and > > SQLiteAdmin > > > > On Wed, Dec 31, 2014 at 12:44 PM, J. Landman Gay < > jacque at hyperactivesw.com> > > wrote: > > > >> On 12/31/2014 1:25 PM, dunbarx at aol.com wrote: > >> > >>> Jacque thought it might have to do with AOL, but you are not on that > >>> service. > >>> > >> > >> I still think it has to do with AOL, but the recipient doesn't need to > be > >> on that service (my mailserver isn't.) It's that the sender is writing > from > >> AOL and the recipient's server is rejecting those messages because AOL > has > >> set some properties that the receiving server doesn't like. > >> > >> Yahoo did the same thing apparently. I do know that some of your > messages > >> never arrive here, but others do, so in my case it's spotty and not > often > >> enough for me to get the bounce notice. My email client does put some of > >> your messages into my spam folder. > >> > >> AOL and Yahoo have a history of spammer abuse, and it's likely that's > why > >> they set up certain parameters and why the receiving servers are > rejecting > >> so many of the those emails. > >> > >> -- > >> Jacqueline Landman Gay | jacque at hyperactivesw.com > >> HyperActive Software | http://www.hyperactivesw.com > >> > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dochawk at gmail.com Thu Jan 1 12:26:19 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Thu, 1 Jan 2015 09:26:19 -0800 Subject: script scope variables inexplicably becoming unset In-Reply-To: References: <54A437B5.5040706@hyperactivesw.com> Message-ID: On Wed, Dec 31, 2014 at 10:12 AM, Dr. Hawkins wrote: > But what I'm losing *is* a variable! The selection manipulations have > been completely removed in favor of a handler that does things on > textChanged. The problem is that opening a stack is resetting a local > variable. > I have also tried putting the script-local variable into a handler local variable, and the script-local still gets reset on the palette command. My work-around is to put the script-local into a handler variable, open the palette, and put it back--but it is unacceptable to need to do this in a commercial project! I have come to the conclusion that either a) using the palette command is somehow causing a recompile of the script, wiping out the script-local variables, or b) the description of the permanence of script-local variables in the dictionary is wrong. There is also, of course, c) some other psychotic behavior somewhere is maliciously removing variables. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From dochawk at gmail.com Thu Jan 1 16:44:36 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Thu, 1 Jan 2015 13:44:36 -0800 Subject: script scope variables inexplicably becoming unset In-Reply-To: References: <54A437B5.5040706@hyperactivesw.com> Message-ID: Bugs for both issues filed as *Bug 14323* - Palette stack does not open unless in debugger *Bug 14324* - Local variable destroyed in attempt to open palette This is repeatable in 5.5 and 7.0.1 (and I think 6.7, but I've lost several hours over this already). On Thu, Jan 1, 2015 at 9:26 AM, Dr. Hawkins wrote: > > On Wed, Dec 31, 2014 at 10:12 AM, Dr. Hawkins wrote: > >> But what I'm losing *is* a variable! The selection manipulations have >> been completely removed in favor of a handler that does things on >> textChanged. The problem is that opening a stack is resetting a local >> variable. >> > > I have also tried putting the script-local variable into a handler local > variable, and the script-local still gets reset on the palette command. > > My work-around is to put the script-local into a handler variable, open > the palette, and put it back--but it is unacceptable to need to do this in > a commercial project! > > I have come to the conclusion that either > a) using the palette command is somehow causing a recompile of the script, > wiping out the script-local variables, or > b) the description of the permanence of script-local variables in the > dictionary is wrong. > > There is also, of course, > c) some other psychotic behavior somewhere is maliciously removing > variables. > > > -- > Dr. Richard E. Hawkins, Esq. > (702) 508-8462 > -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From peterwawood at gmail.com Thu Jan 1 18:01:33 2015 From: peterwawood at gmail.com (Peter W A Wood) Date: Fri, 2 Jan 2015 07:01:33 +0800 Subject: Membership disabled In-Reply-To: References: <8D1F3469D7C1B7D-248C-2BE8E@webmail-m238.sysops.aol.com> <54A4604B.6020709@hyperactivesw.com> Message-ID: <7131CF5D-3EFB-4A31-A8FA-ED1759FB86F9@gmail.com> Thanks Peter. I?ll give that a try. Peter > On 2 Jan 2015, at 01:17, Peter Haworth wrote: > > Hi Peter, > If you have a filter to recognize emails to the list, there's an option to > "Never send it to spam". Checking that ensures that the emails won't go > into your spam folder. GMail still puts a little message at the top saying > that it would have gone to spam if not for the filter. > > > Pete > lcSQL Software > > Home of lcStackBrowser > and > SQLiteAdmin > > > On Wed, Dec 31, 2014 at 3:19 PM, Peter W A Wood > > wrote: > >> All of Craig?s messages to this list get directed to my Gmail spam folder >> and has been for a long time. A handful of other list messages also end up >> there. There were a couple from another AOL user today. >> >> Regards >> Peter >> >> http://LiveCode1001/blogspot.com > >> >> >>> On 1 Jan 2015, at 05:44, Peter Haworth wrote: >>> >>> So here's a perfect example. I never got Craig's email which is quoted >> in >>> Jacque's reply. This only happens with emails sent from either an AOL >>> address or a Yahoo address to the How To list so it's definitely a >>> Yahoo/AOL related problem. >>> >>> I don't pretend to know the ins and outs of this but I'm told it's the >>> result of an email checking protocol named DMARC. >>> >>> I am going to try changing the address my list mails are sent to to my >>> gMail address instead of my lcSQL address and see if that makes any >>> difference. >>> >>> >>> >>> Pete >>> lcSQL Software >>> Home of lcStackBrowser and >>> SQLiteAdmin >>> >>> On Wed, Dec 31, 2014 at 12:44 PM, J. Landman Gay < >> jacque at hyperactivesw.com> >>> wrote: >>> >>>> On 12/31/2014 1:25 PM, dunbarx at aol.com wrote: >>>> >>>>> Jacque thought it might have to do with AOL, but you are not on that >>>>> service. >>>>> >>>> >>>> I still think it has to do with AOL, but the recipient doesn't need to >> be >>>> on that service (my mailserver isn't.) It's that the sender is writing >> from >>>> AOL and the recipient's server is rejecting those messages because AOL >> has >>>> set some properties that the receiving server doesn't like. >>>> >>>> Yahoo did the same thing apparently. I do know that some of your >> messages >>>> never arrive here, but others do, so in my case it's spotty and not >> often >>>> enough for me to get the bounce notice. My email client does put some of >>>> your messages into my spam folder. >>>> >>>> AOL and Yahoo have a history of spammer abuse, and it's likely that's >> why >>>> they set up certain parameters and why the receiving servers are >> rejecting >>>> so many of the those emails. >>>> >>>> -- >>>> Jacqueline Landman Gay | jacque at hyperactivesw.com >>>> HyperActive Software | http://www.hyperactivesw.com >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dochawk at gmail.com Thu Jan 1 18:50:33 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Thu, 1 Jan 2015 15:50:33 -0800 Subject: allowed regex in filter? Message-ID: I am trying to do a filter to the effect of ^..\S+ --that is, anything for the first two characters, followed by at least one whitespace. Is \S not accepted in livecode? -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From bonnmike at gmail.com Thu Jan 1 19:59:35 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Thu, 1 Jan 2015 17:59:35 -0700 Subject: allowed regex in filter? In-Reply-To: References: Message-ID: It works just as well (as far as I can see) to type the space+ (or even space*) or \s+. Isn't the \S (capital) a negate match? So it will match anything but a whitespace char? and lower case /s is match whitespace? Just checked with the regex builder, and that is how its behaving. so use \s+ rather than \S+ to match whitespace. On Thu, Jan 1, 2015 at 4:50 PM, Dr. Hawkins wrote: > I am trying to do a filter to the effect of > > ^..\S+ > > --that is, anything for the first two characters, followed by at least one > whitespace. > > Is \S not accepted in livecode? > -- > Dr. Richard E. Hawkins, Esq. > (702) 508-8462 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dochawk at gmail.com Thu Jan 1 20:59:52 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Thu, 1 Jan 2015 17:59:52 -0800 Subject: allowed regex in filter? In-Reply-To: References: Message-ID: On Thu, Jan 1, 2015 at 4:59 PM, Mike Bonner wrote: > It works just as well (as far as I can see) to type the space+ (or even > space*) or \s+. Isn't the \S (capital) a negate match? So it will match > anything but a whitespace char? and lower case /s is match whitespace? > yes > > Just checked with the regex builder, and that is how its behaving. so use > \s+ rather than \S+ to match whitespace. > But I'm after non-whitespace :) The source pattern could be either a single character or space, followed by a space, followed by keyword I'm matching, another space, and one or more words, or just the keyword, followed by a spce, followed by one or more words. something like c mykey some sentence or another or mykey some sentence or another myKey needs to be at least three characters. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From bonnmike at gmail.com Thu Jan 1 22:39:04 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Thu, 1 Jan 2015 20:39:04 -0700 Subject: allowed regex in filter? In-Reply-To: References: Message-ID: Ah k. The first message said "followed by at least one whitespace, hence my confusion. In the regex builder its working for me. 7.0.0 sortastable. ^..\S+ pulls c mykey for the first example. and mykey for the second. adding a second space after the c nullifies the match as it should. If you haven't messed with the regex builder, its very handy. (development menu, plugins) What version are you on? Oh, and actually just realized I haven't been trying it with filter. BRB, gonna try. With sample made up data, this is working for me (again, 7.0.0 stable) filter lines of tField with regex pattern "^..\S+" On Thu, Jan 1, 2015 at 6:59 PM, Dr. Hawkins wrote: > On Thu, Jan 1, 2015 at 4:59 PM, Mike Bonner wrote: > > > It works just as well (as far as I can see) to type the space+ (or even > > space*) or \s+. Isn't the \S (capital) a negate match? So it will > match > > anything but a whitespace char? and lower case /s is match whitespace? > > > > yes > > > > > Just checked with the regex builder, and that is how its behaving. so use > > \s+ rather than \S+ to match whitespace. > > > > But I'm after non-whitespace :) > > The source pattern could be either a single character or space, followed by > a space, followed by keyword I'm matching, another space, and one or more > words, or just the keyword, followed by a spce, followed by one or more > words. > > something like > > c mykey some sentence or another > > or > > mykey some sentence or another > > myKey needs to be at least three characters. > > > -- > Dr. Richard E. Hawkins, Esq. > (702) 508-8462 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From peterwawood at gmail.com Fri Jan 2 03:31:38 2015 From: peterwawood at gmail.com (Peter W A Wood) Date: Fri, 2 Jan 2015 16:31:38 +0800 Subject: Code 2014 - Apologies Message-ID: <878734A2-AD0C-4A45-8264-2E85C3998B7F@gmail.com> I am very embarrassed that I have asked people on this list to tweet for LiveCode to #Code2014. It seems as though somebody has arranged to have a vote for LiveCode to be re-tweeted by people who retweet promotions for all and sundry. If you, like me, had voted in good faith for LiveCode please accept my apologies. Regards Peter http://LiveCode1001.blogspot.com From Camm29 at tesco.net Fri Jan 2 08:47:11 2015 From: Camm29 at tesco.net (Camm) Date: Fri, 2 Jan 2015 13:47:11 -0000 Subject: Hangs and graphics issue after 6.6.1 Message-ID: <000001d02692$9bceb3c0$d36c1b40$@tesco.net> Hi , The last standalone I built was using 6.6.0 , that was very stable for my application (Windows 7). Tested also on 6.6.1 Build (4005) and still ok But now I have found that from 6.6.2 to 7 random hangs and poor rendering of graphics (Tactile Media Gauges) on Full screen Mode. Read from driver xxx until empty is a problem and will hang on occasion. Is it best to stick with 6.6.1 ? Regards Camm -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Camm Sent: 30 December 2014 16:59 To: use-livecode at lists.runrev.com Subject: Problem with read from driver until empty in 7.01 Hi , I use "read from driver xxx until empty" To empty read buffer when using serial comms. In 6.7 this works fine but in 7.01 causes random hangs if used. Regards Camm _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ----- No virus found in this message. Checked by AVG - www.avg.com Version: 2014.0.4794 / Virus Database: 4253/8839 - Release Date: 12/30/14 ----- No virus found in this message. Checked by AVG - www.avg.com Version: 2014.0.4794 / Virus Database: 4253/8839 - Release Date: 12/30/14 ----- No virus found in this message. Checked by AVG - www.avg.com Version: 2014.0.4794 / Virus Database: 4253/8839 - Release Date: 12/30/14 ----- No virus found in this message. Checked by AVG - www.avg.com Version: 2014.0.4794 / Virus Database: 4253/8839 - Release Date: 12/30/14 From paul at livecode.org Fri Jan 2 11:15:52 2015 From: paul at livecode.org (Paul Hibbert) Date: Fri, 2 Jan 2015 08:15:52 -0800 Subject: Hangs and graphics issue after 6.6.1 In-Reply-To: <000001d02692$9bceb3c0$d36c1b40$@tesco.net> References: <000001d02692$9bceb3c0$d36c1b40$@tesco.net> Message-ID: <029C1049-1BC4-47D9-AA95-D79DFCAC5B5D@livecode.org> Hi Camm, This would be very useful to report at http://quality.runrev.com If you have a stack or multiple stacks with a recipe that can demonstrate the problem and you can upload them with the report I'm sure RR will be onto it very quickly. If you only have a stack(s) that you don't wish to share publicly, you can set the report then email the stack(s) to quality at runrev.com they will fully respect your privacy. If you have any problems posting the report, then get in touch with support at runrev.com and they will help you. I'm sure this will be your best route to resolving this problem, and it may help others in the future too and will make LiveCode stronger in the process. Regards, Paul > On Jan 2, 2015, at 5:47 AM, Camm wrote: > > Hi , > > The last standalone I built was using 6.6.0 , that was very stable for my > application (Windows 7). > Tested also on 6.6.1 Build (4005) and still ok > > But now I have found that from 6.6.2 to 7 random hangs and poor rendering of > graphics (Tactile Media Gauges) on Full screen Mode. > Read from driver xxx until empty is a problem and will hang on occasion. > > Is it best to stick with 6.6.1 ? > > Regards > Camm > > -----Original Message----- > From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf > Of Camm > Sent: 30 December 2014 16:59 > To: use-livecode at lists.runrev.com > Subject: Problem with read from driver until empty in 7.01 > > Hi , > > > > I use "read from driver xxx until empty" > > > > To empty read buffer when using serial comms. > > > > In 6.7 this works fine but in 7.01 causes random hangs if used. > > > > > > Regards > > Camm > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > ----- > No virus found in this message. > Checked by AVG - www.avg.com > Version: 2014.0.4794 / Virus Database: 4253/8839 - Release Date: 12/30/14 > > ----- > No virus found in this message. > Checked by AVG - www.avg.com > Version: 2014.0.4794 / Virus Database: 4253/8839 - Release Date: 12/30/14 > ----- > No virus found in this message. > Checked by AVG - www.avg.com > Version: 2014.0.4794 / Virus Database: 4253/8839 - Release Date: 12/30/14 > ----- > No virus found in this message. > Checked by AVG - www.avg.com > Version: 2014.0.4794 / Virus Database: 4253/8839 - Release Date: 12/30/14 > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Fri Jan 2 11:59:01 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 2 Jan 2015 16:59:01 +0000 Subject: Late to the party In-Reply-To: <54A42140.3060000@gmail.com> References: <54A42140.3060000@gmail.com> Message-ID: <7471B3B5-02A7-452F-8C12-66B0D956C6DC@iotecdigital.com> Not sure you can. Even jailbroken i-devices need a third party to install apps. Bob S > On Dec 31, 2014, at 08:16 , Richmond wrote: > > No, not the New Year party! > > My younger son flew to Doha about 3 years ago to some daft sports conference > financed by the sheikhs out there as part of their attempts to buy respectability. > > Anyway, at one point one of the al-Thani "lot" gave my son an iPad 1 (my younger > son is a bit "like that" - people keep giving him things). > > Now at the University of Pennsylvania, my son has found that between his MacBook > and is iPhone he no longer needs his iPad: so it ends up with Bottom-Feeder No.1 in > our family: Me. > > --------------------------- > > Having Jail-broken it and generally mucked around with it . . . > > I wonder how to get an iOS standalone onto the machine "down a cable" > as I should like to try out one or two of my programs that way before I contemplate > anything expensive . . . . > > I would be grateful for any advice. > > Richmond. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Fri Jan 2 12:02:47 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 2 Jan 2015 17:02:47 +0000 Subject: Delete this card command not working in LIvecode 5.5.3 In-Reply-To: <8D1F3615A7FE97C-BE0-A539D@webmail-va141.sysops.aol.com> References: <8D1F3615A7FE97C-BE0-A539D@webmail-va141.sysops.aol.com> Message-ID: <069FE654-31D9-4A0A-917E-EFC5FEC652EB@iotecdigital.com> It probably works with a group because a group can persist even if there are not cards that the group is attached to. Therefore the object containing the handler that is deleting the card is not itself getting deleted because it belongs to a group that still exists after the card is deleted. The issue is not the card getting deleted, it is the object whose script contains the handler that has the delete card command. Bob S On Dec 31, 2014, at 14:36 , stgoldberg at aol.com wrote: Peculiarly, if a put a button on a card with the script "delete this card" it won't work, but will work if I make the button a group. "Delete this card" also works from the message box. It doesn't work when called upon from a stack script, including my efforts at timing. I just found a way around this though by using "delete NEXT card" instead of "delete THIS card" in the stack script. Maybe the change in behavior has to do the newer Mac operating system (10.7.5 and 10.9.5)? From bobsneidar at iotecdigital.com Fri Jan 2 12:05:15 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 2 Jan 2015 17:05:15 +0000 Subject: Access an iPad file system from Ubuntu In-Reply-To: <54A5704D.2000306@gmail.com> References: <54A56B38.2030203@gmail.com> <54A5704D.2000306@gmail.com> Message-ID: Interesting. I wasn?t aware that even with root access there was a way to get apps past their sandboxing. Bob S > On Jan 1, 2015, at 08:05 , Richmond wrote: > > On 01/01/15 17:43, Richmond wrote: >> >> 1. Install /iFuse/ from Ubuntu Software Center >> 2. Open a Terminal and run sudo apt-get install libimobiledevice-utils >> 3. In the same Terminal, run idevicepair unpair && idevicepair pair >> >> Richmond. >> > > As my iPad is jail-broken, all I had to do was issue a terminal command: > > ifuse /home/richmond/Desktop/Pad --root > > to get the root file system mounted in the file 'Pad' on my desktop > > (not, admittedly, that it is telling me much when I look at it). > > Richmond. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Fri Jan 2 12:07:45 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 2 Jan 2015 17:07:45 +0000 Subject: Membership disabled In-Reply-To: <8D1F3F8DCD137F4-D58-49C0C@webmail-vm147.sysops.aol.com> References: <8D1F3469D7C1B7D-248C-2BE8E@webmail-m238.sysops.aol.com> <54A4604B.6020709@hyperactivesw.com> <8D1F3F8DCD137F4-D58-49C0C@webmail-vm147.sysops.aol.com> Message-ID: Hi Craig. I do not think the list server is the problem. I?d need to see the detailed text of the bounce message before I could give you a decent idea of why it is bouncing. It should all be there in the body of the bounce, but it?s a bit cryptic. Bob S On Jan 1, 2015, at 08:41 , dunbarx at aol.com wrote: It seems that the notice/re-enlistment occurs at relatively regular intervals. Does this mean that the number of mails sent between each episode is the same, as if I am allowed, say, thirty or so before I tax the servers patience? Craig From bobsneidar at iotecdigital.com Fri Jan 2 12:14:57 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 2 Jan 2015 17:14:57 +0000 Subject: [OT] Startup apps under Yosemite In-Reply-To: <42EE7BD8-AFE0-40FF-A3BA-6CF15DF5BE20@siphonophore.com> References: <42EE7BD8-AFE0-40FF-A3BA-6CF15DF5BE20@siphonophore.com> Message-ID: <9D90479C-9380-4AF4-98BA-3E947BF9907C@iotecdigital.com> You can try hiding all the other processes set to launch at login except your kiosk app, and making sure that loads last. I cannot find on Yosemite where the *actual* finder app is. Otherwise I would suggest adding the finder before your Kiosk app and selecting the hide checkbox for the Finder. The other thing you can probably do if you do not need the finder is to have a terminal command file launched with the command killall Finder. However I am not sure how to keep the OS from relaunching it. Bob S > On Dec 29, 2014, at 16:41 , Jeff Reynolds wrote: > > I have an older kiosk livecode application that is now being installed on a new mac mini with yosemite (old imac running it finally died after 8 years in a visitor center!). There is one odd thing now with setting startup applications with the user account on Yosemite as after all of the start up applications are loaded (in this case just the exhibit app) finder is brought to the front. I've tested this with a number of apps and finder always comes up on top at the end of startup. Anyone know of a work around so that after startup the app does not need to be clicked on to bring it to the front? > > thanks > > jeff > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Fri Jan 2 12:29:11 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 2 Jan 2015 17:29:11 +0000 Subject: [OT] Startup apps under Yosemite In-Reply-To: <42EE7BD8-AFE0-40FF-A3BA-6CF15DF5BE20@siphonophore.com> References: <42EE7BD8-AFE0-40FF-A3BA-6CF15DF5BE20@siphonophore.com> Message-ID: <16CD1FA6-EBA7-4651-9759-55E81CCD5747@iotecdigital.com> Okay try this: put "tell application Finder" & cr into theCommand put "set visible of process Finder to false" & cr after theCommand put "end tell" after theCommand replace "Finder" with quote & "Finder" & quote in theCommand do theCommand as appleScript Put this as the last thing that runs after your kiosk app launches. Bob S > On Dec 29, 2014, at 16:41 , Jeff Reynolds wrote: > > I have an older kiosk livecode application that is now being installed on a new mac mini with yosemite (old imac running it finally died after 8 years in a visitor center!). There is one odd thing now with setting startup applications with the user account on Yosemite as after all of the start up applications are loaded (in this case just the exhibit app) finder is brought to the front. I've tested this with a number of apps and finder always comes up on top at the end of startup. Anyone know of a work around so that after startup the app does not need to be clicked on to bring it to the front? > > thanks > > jeff > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dochawk at gmail.com Fri Jan 2 15:01:26 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Fri, 2 Jan 2015 12:01:26 -0800 Subject: script scope variables inexplicably becoming unset In-Reply-To: <9334C0C8-212C-4414-A98D-D6AB99E8C00F@tactilemedia.com> References: <54A437B5.5040706@hyperactivesw.com> <71A48513-A567-4B40-A0C2-5BD3587DD114@tactilemedia.com> <9334C0C8-212C-4414-A98D-D6AB99E8C00F@tactilemedia.com> Message-ID: On Wed, Dec 31, 2014 at 2:01 PM, Scott Rossi wrote: > Another useful process is to create a simple set of test stacks and copy > over your relevant handlers. If you can recreate the problem there, you > may have found an odd bug, but if not, the problem likely lies elsewhere in > the code of your original stacks. I've stripped the stacks to almost nothing, and still have the behavior, reproducibly. There is almost no code left. Either there is code around that the debugger won't show yet still executes, the stack is corrupted in an exotic way, or there is a bug: both bugs bite without any of my code being executed. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From scott at tactilemedia.com Fri Jan 2 15:14:04 2015 From: scott at tactilemedia.com (Scott Rossi) Date: Fri, 2 Jan 2015 12:14:04 -0800 Subject: script scope variables inexplicably becoming unset In-Reply-To: References: <54A437B5.5040706@hyperactivesw.com> <71A48513-A567-4B40-A0C2-5BD3587DD114@tactilemedia.com> <9334C0C8-212C-4414-A98D-D6AB99E8C00F@tactilemedia.com> Message-ID: That?s good, but you really should create a new set of stacks, copy over your code or rewrite it in the new stack, and see if you can reproduce the same results. Here, when I palette a stack from a name derived from a script local variable, the variable stays intact. I?m not using your exact setup/variable names, but if I understand what you?re doing, the basic premise works fine. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On Jan 2, 2015, at 12:01 PM, Dr. Hawkins wrote: > On Wed, Dec 31, 2014 at 2:01 PM, Scott Rossi wrote: > >> Another useful process is to create a simple set of test stacks and copy >> over your relevant handlers. If you can recreate the problem there, you >> may have found an odd bug, but if not, the problem likely lies elsewhere in >> the code of your original stacks. > > > I've stripped the stacks to almost nothing, and still have the behavior, > reproducibly. There is almost no code left. > > Either there is code around that the debugger won't show yet still > executes, the stack is corrupted in an exotic way, or there is a bug: > both bugs bite without any of my code being executed. > > > -- > Dr. Richard E. Hawkins, Esq. > (702) 508-8462 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dochawk at gmail.com Fri Jan 2 17:26:53 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Fri, 2 Jan 2015 14:26:53 -0800 Subject: script scope variables inexplicably becoming unset In-Reply-To: References: <54A437B5.5040706@hyperactivesw.com> <71A48513-A567-4B40-A0C2-5BD3587DD114@tactilemedia.com> <9334C0C8-212C-4414-A98D-D6AB99E8C00F@tactilemedia.com> Message-ID: On Fri, Jan 2, 2015 at 12:14 PM, Scott Rossi wrote: > That?s good, but you really should create a new set of stacks, copy over > your code or rewrite it in the new stack, and see if you can reproduce the > same results. > It took over an hour to strip these stacks down! :) I have lost days to this bug. I just can't give it any more time. And if it's some kind of stack corruption, now livecode has a captured specimen > > Here, when I palette a stack from a name derived from a script local > variable, the variable stays intact. I?m not using your exact > setup/variable names, but if I understand what you?re doing, the basic > premise works fine. > The exact code works on two other fields sharing the behavior on the same card . . . but this failure really needs to be nailed down by livecode. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From ambassador at fourthworld.com Fri Jan 2 19:49:20 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 02 Jan 2015 16:49:20 -0800 Subject: script scope variables inexplicably becoming unset Message-ID: Dr. Hawkins wrote: > I've stripped the stacks to almost nothing, and still have the > behavior, reproducibly. There is almost no code left. The example stack uploaded there is nearly 1 MB. I often try to reproduce bugs reported to the RQCC to help them along, but with this one I couldn't figure out how to do so. When I open the stack a script editor appears, but apparently not because of a breakpoint. The recipe given was difficult for me to follow; I couldn't figure out how to make any palette appear at all. So having given up on the recipe I was at least curious about how many objects there might be in this megabyte stack to estimate the level of effort I might need to try to reproduce this issue. I opened the Project Browser to get a look, and something noteworthy immediately stood out: Group "pp_calcids" of card "entry" of substack "dna" is flagged by the Project Browser with a bright yellow warning triangle as having a behavior object assigned to it that doesn't exist. This would seem to fit the description of the problem in which some behavior-driven things are working while one doesn't. Please let us know if simply reassigning that behavior resolves the issue. As for the local vars clearing with the palette command, is there any code in play which initializes those vars on one of the open messages (openStack, preOpenStack, etc.)? -- Richard Gaskin Fourth World Systems LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com Follow me on Twitter: http://twitter.com/FourthWorldSys From bobsneidar at iotecdigital.com Fri Jan 2 19:55:49 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Sat, 3 Jan 2015 00:55:49 +0000 Subject: Binary to Decimal Conversion Message-ID: <4D5588AF-5DF9-4570-BEB9-27BA9BF936CA@iotecdigital.com> Hi all. I thought for sure there was some formula one liner to convert a binary value to a decimal, but poking around on the internet, all I can find is an iteration method which adds the base power of each bit. Fir example, (1 * 2^0) + (1 * 2^1) = 3. Is this the only way or is there an actual mathematical formula I can use to convert a binary number into another base? Bob S From bonnmike at gmail.com Fri Jan 2 20:23:16 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Fri, 2 Jan 2015 18:23:16 -0700 Subject: Binary to Decimal Conversion In-Reply-To: <4D5588AF-5DF9-4570-BEB9-27BA9BF936CA@iotecdigital.com> References: <4D5588AF-5DF9-4570-BEB9-27BA9BF936CA@iotecdigital.com> Message-ID: I assume you're wanting to do it by hand rather than using the baseconvert function? baseconvert(00101001,2,10).. On Fri, Jan 2, 2015 at 5:55 PM, Bob Sneidar wrote: > Hi all. > > I thought for sure there was some formula one liner to convert a binary > value to a decimal, but poking around on the internet, all I can find is an > iteration method which adds the base power of each bit. Fir example, (1 * > 2^0) + (1 * 2^1) = 3. Is this the only way or is there an actual > mathematical formula I can use to convert a binary number into another base? > > Bob S > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bonnmike at gmail.com Fri Jan 2 20:35:09 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Fri, 2 Jan 2015 18:35:09 -0700 Subject: Binary to Decimal Conversion In-Reply-To: References: <4D5588AF-5DF9-4570-BEB9-27BA9BF936CA@iotecdigital.com> Message-ID: If you want to do it manually, then yeah, thats the way. (positional notation) If converting a binary number with a partial value, you have to work with 1/2 positions too. Theres also the doubling method (which I just came across). http://www.wikihow.com/Convert-from-Binary-to-Decimal Both methods listed on that site. On Fri, Jan 2, 2015 at 6:23 PM, Mike Bonner wrote: > I assume you're wanting to do it by hand rather than using the baseconvert > function? > > baseconvert(00101001,2,10).. > > On Fri, Jan 2, 2015 at 5:55 PM, Bob Sneidar > wrote: > >> Hi all. >> >> I thought for sure there was some formula one liner to convert a binary >> value to a decimal, but poking around on the internet, all I can find is an >> iteration method which adds the base power of each bit. Fir example, (1 * >> 2^0) + (1 * 2^1) = 3. Is this the only way or is there an actual >> mathematical formula I can use to convert a binary number into another base? >> >> Bob S >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > From pete at lcsql.com Fri Jan 2 20:46:58 2015 From: pete at lcsql.com (Peter Haworth) Date: Fri, 2 Jan 2015 17:46:58 -0800 Subject: script scope variables inexplicably becoming unset In-Reply-To: References: Message-ID: Richard, I confirm that there is a missing behavior but it's on grp "grp_calcids" There's also another one on field "Edit" of group "mcp_menu" on the same card. I suspect as a result of Dr Hawkins stripping down the stack Dr Hawkins, I just finished taking a look at this stack and found some possible reasons for what's happening. If you keep keying in letters after the d, the palette stack does appear and stays as you continue to key in so it's an intermittent problem not absolute. First the issue of the palette command clearing a local variable. At line 56+ of field src_fltrpopup, I found: palette savChStk if word 2 of savChStk is not among the words of the openStacks then ck "it's not open!" & cr & "chStk is: " & chStk The If statement is checking savChStk against the openStacks but your ck text references chStk, a completely different variable. I changed the chStk to savChStk in the ck command and the display now shows that it contains the correct value of "stack ctrlChoices" so your palette command is not destroying the contents of a variable. If you meant to check chStk, see later in this email. Next problem - why is the stack not showing up in the openStacks? I added a put to the message box in the preOpenStack handler of the ctrlChoices stack including the milliseconds and I can see that the stack is opened every time the src_fltrpopup field is altered in any way, so your palette command is working just fine. Something must be closing it immediately it opens in certain circumstances. There's a handler named hideChcStk in the src_fltrKeyField of your mcp stack so I added another put to the message box in there and see it closing the stack when the ctrlChoices does not appear, but not every time. It also puts empty into variable chStk which might also explain the first issue. I also see that button is a behavior for the abbrev field where you key in "ard" etc. There's also a mouseLeave handler in the stack script of ctrlChoices which closes the stack in some circumstances. Don't have time to check further but the stack is being opened when it should but being closed immediately in some circumstances. What those circumstances are, I'll leave you to figure out. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Fri, Jan 2, 2015 at 4:49 PM, Richard Gaskin wrote: > Dr. Hawkins wrote: > > I've stripped the stacks to almost nothing, and still have the >> behavior, reproducibly. There is almost no code left. >> > > The example stack uploaded there is nearly 1 MB. > > I often try to reproduce bugs reported to the RQCC to help them along, but > with this one I couldn't figure out how to do so. When I open the stack a > script editor appears, but apparently not because of a breakpoint. The > recipe given was difficult for me to follow; I couldn't figure out how to > make any palette appear at all. > > So having given up on the recipe I was at least curious about how many > objects there might be in this megabyte stack to estimate the level of > effort I might need to try to reproduce this issue. > > I opened the Project Browser to get a look, and something noteworthy > immediately stood out: > > Group "pp_calcids" of card "entry" of substack "dna" is flagged by the > Project Browser with a bright yellow warning triangle as having a behavior > object assigned to it that doesn't exist. > > This would seem to fit the description of the problem in which some > behavior-driven things are working while one doesn't. > > Please let us know if simply reassigning that behavior resolves the issue. > > As for the local vars clearing with the palette command, is there any code > in play which initializes those vars on one of the open messages > (openStack, preOpenStack, etc.)? > > -- > Richard Gaskin > Fourth World Systems > LiveCode training and consulting: http://www.fourthworld.com > Webzine for LiveCode developers: http://www.LiveCodeJournal.com > Follow me on Twitter: http://twitter.com/FourthWorldSys > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dochawk at gmail.com Fri Jan 2 21:18:25 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Fri, 2 Jan 2015 18:18:25 -0800 Subject: script scope variables inexplicably becoming unset In-Reply-To: References: Message-ID: On Fri, Jan 2, 2015 at 5:46 PM, Peter Haworth wrote: > > I confirm that there is a missing behavior but it's on grp "grp_calcids" > There's also another one on field "Edit" of group "mcp_menu" on the same > card. I suspect as a result of Dr Hawkins stripping down the stack > > Yes. I missed stripping the calcPop group (grp_calcids) because it was invisible. There are actually several buttons in that funny-colored group on mcp. (and the handlers are far longer) I left the menus in "just in case"--I haven't touched them in over a year . . . I'm baffled by the size of this stack alter all that stripping . . . > > Dr Hawkins, > I just finished taking a look at this stack and found some possible reasons > for what's happening. > > thank you! > If you keep keying in letters after the d, the palette stack does appear > and stays as you continue to key in so it's an intermittent problem not > absolute. > it gets the palette message on every textChanged, as it is supposed to go away if the mouse leaves both it and the related field. Someone could tab in (no need to pop up) and then start making changes. As I read the dictionary, the palette command does nothing if the stack is already open as a palette. > > First the issue of the palette command clearing a local variable. > > At line 56+ of field src_fltrpopup, I found: > > palette savChStk > > if word 2 of savChStk is not among the words of the openStacks then > ck "it's not open!" & cr & "chStk is: " & chStk > > The If statement is checking savChStk against the openStacks but your ck > text references chStk, a completely different variable. chStk is the "real" variable. I added savChStk to stash it in when it started getting whacked. The code *should* just have chStk. Using savChStk was one of the attempts to protect it, but chStk still got whacked. So did single and double parenthesis to try to force a copy to be passed. > I changed the > chStk to savChStk in the ck command and the display now shows that it > contains the correct value of "stack ctrlChoices" so your palette command > is not destroying the contents of a variable. If you meant to check chStk, > see later in this email. > I did mean to check chStk; when this is solved, savChStk is gone entirely. > > Next problem - why is the stack not showing up in the openStacks? > > I added a put to the message box in the preOpenStack handler of the > ctrlChoices stack including the milliseconds and I can see that the stack > is opened every time the src_fltrpopup field is altered in any way, so your > palette command is working just fine. Something must be closing it > immediately it opens in certain circumstances. > Wow. It didn't even occur to me as a way to check. perhaps putting the same into a closeStack handler with a hard breakpoint will let me see the context. Hmm, or my ck that also logs could log the executionContexts. > There's a handler named hideChcStk in the src_fltrKeyField of your mcp > stack so I added another put to the message box in there and see it closing > the stack when the ctrlChoices does not appear, but not every time. It also > puts empty into variable chStk which might also explain the first issue. > What is *supposed* to happen is that when either the host field or the stack gets a mouseLeave, it checks to see if the mouse is within the other. If not, ctrlChoices gets closed. > > I also see that button is a behavior for the abbrev field where you key in > "ard" etc. > Yes. In normal operation, those buttons in mcp wouldn't be visible. (For that matter, once I write the menus, mcp itself probably won't be visible. Normally just the upper left corner sows. > > There's also a mouseLeave handler in the stack script of ctrlChoices which > closes the stack in some circumstances. > > Don't have time to check further but the stack is being opened when it > should but being closed immediately in some circumstances. What those > circumstances are, I'll leave you to figure out. Thank you very much. I had thought I had seen an occasional flicker, but didn't believe my eyes. I think I now know what I need to to catch it. However, this still leaves the problem that it is not single-stepping into handlers where this behavior happens . . . -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From dochawk at gmail.com Fri Jan 2 21:23:24 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Fri, 2 Jan 2015 18:23:24 -0800 Subject: script scope variables inexplicably becoming unset In-Reply-To: References: Message-ID: On Fri, Jan 2, 2015 at 4:49 PM, Richard Gaskin wrote: > The example stack uploaded there is nearly 1 MB. > I couldn't get it any smaller :) > > I often try to reproduce bugs reported to the RQCC to help them along, but > with this one I couldn't figure out how to do so. When I open the stack a > script editor appears, but apparently not because of a breakpoint. The > recipe given was difficult for me to follow; I couldn't figure out how to > make any palette appear at all. > During a period where livecode was crashing every couple of minutes, I added code to open those when in the IDE :) > So having given up on the recipe I was at least curious about how many > objects there might be in this megabyte stack to estimate the level of > effort I might need to try to reproduce this issue. > > I opened the Project Browser to get a look, and something noteworthy > immediately stood out: > > Group "pp_calcids" of card "entry" of substack "dna" is flagged by the > Project Browser with a bright yellow warning triangle as having a behavior > object assigned to it that doesn't exist. > I try the project browser every few months, find no reason to switch over, and go back. It takes more clicks to do the same things as the application browser . . . this is the first reason I've seen to switch. I missed deleting that group as it was invisible. It isn't related to the issue. As for the local vars clearing with the palette command, is there any code > in play which initializes those vars on one of the open messages > (openStack, preOpenStack, etc.)? openField, actually. I forgot to this in the response to Peter, but I suspect that this may have to do with the mouseLeave he noted, and the order in which mouseEnter and mouseLeave get called (I got caught in the past by the mouseEnter going to the new object before the mouseLeave of the prior . . . thanks. Hopefully these let me lick this early tomorrow morming . . . -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From pete at lcsql.com Fri Jan 2 21:41:09 2015 From: pete at lcsql.com (Peter Haworth) Date: Fri, 2 Jan 2015 18:41:09 -0800 Subject: replaceText problem Message-ID: I'm adding a check for breakpoint commands to my build procedures. Basically check through the command of every script and issue the following command: replaceText(pScript,"(^\s*breakpoint$"," ") It looks for some number of space at the start of a line, followed by the word breakpoint, then the end of the line I've tried the regex in a regex test program I have which also allows replacement and it works fine. However the first time it is executed in my script, I get a runtime error (Object: property is not an integer) near "-8" I've tried replacing the space-within-quotes in the replacement string with empty, even left the replacement string out completely but same error. Also tried a matchText command with the same regex and it works fine. Grateful for any ideas on what might be causing this. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From ambassador at fourthworld.com Fri Jan 2 22:00:45 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 02 Jan 2015 19:00:45 -0800 Subject: Project Browser vs App Browser (was "script scope variables inexplicably becoming unset") Message-ID: Dr. Hawkins wrote: > I try the project browser every few months, find no > reason to switch over, and go back. It takes more > clicks to do the same things as the application > browser . . . I almost never use the App Browser, but given the overlap between it and the Project Browser and how much time they're putting in on the latter, I suspect (though I've heard nothing official) that the Project Browser is designed as a replacement for the older App Browser, and the App Browser may be deprecated at some point. Can you recall offhand what sorts of tasks take you more steps in the Project Browser? Maybe we can get them to streamline such operations so we can have one great tool without needing to split resources with maintaining the older one. -- Richard Gaskin Fourth World Systems LiveCode training and consulting: http://www.fourthworld.com From jacque at hyperactivesw.com Fri Jan 2 22:41:02 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 02 Jan 2015 21:41:02 -0600 Subject: replaceText problem In-Reply-To: References: Message-ID: <54A764CE.8000108@hyperactivesw.com> On 1/2/2015 8:41 PM, Peter Haworth wrote: > I'm adding a check for breakpoint commands to my build procedures. > Basically check through the command of every script and issue the following > command: Is this for your own use, or for a utility? The capability is already built into the debugger -- just choose "Clear all breakpoints" from the Debug menu. It removes all breakpoints from all scripts in all open stacks. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Sat Jan 3 01:31:12 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 03 Jan 2015 00:31:12 -0600 Subject: Project Browser vs App Browser (was "script scope variables inexplicably becoming unset") In-Reply-To: References: Message-ID: <54A78CB0.3070900@hyperactivesw.com> On 1/2/2015 9:00 PM, Richard Gaskin wrote: > > Can you recall offhand what sorts of tasks take you more steps in the > Project Browser? I feel like a curmudgeon after writing what follows, but...I don't use the project browser because it's too slow and cumbersome for my project. It may be useful for small stacks with only a few controls, but if you have several open stacks with lots of cards, and lots of groups and controls on each card, finding anything is almost impossible. It's much easier in the app browser to just select a card from a list and immediately see what it contains. I often need to jump between cards in different stacks, and in the App Browser I can expand the card lists for the stacks and click back and forth between them to instantly see their controls and relative layering. If there are a lot of controls on a card, a single card's content runs off the bottom of the project browser, which means you lose the relative relationships of the objects as their containers scroll off the top. When the browser window is only showing a portion of the controls, there is no easy way to see what card those controls are on or even what stack they belong to. You have to scroll up quite a long way to find out what you're looking at. This is the reason I keep the Finder in column view too. You can see the breadcrumbs and you know where you are. The app browser provides the same thing and is, for what I do, a much clearer layout and much faster to work with. Another blocker for me is that the project browser does not list the card number, only the card name. That's not useful for unnamed cards, or cards whose names you don't remember. But I can see the card number in the title bar (and in my stacks it's also displayed on the card.) In the app browser it's easy to find the card by its number; in the project browser you can't. And if your stacks contain same-named cards, then it's too easy to choose the wrong one in the project browser even if you do know the name. The same problem occurs with layer numbers. If I need to change the layers on one card to match a card elsewhere, there's no numerical reference unless you double-click every control to see its property inspector. I'm working on stacks with 30-50 cards each, with anywhere from 40 to 1000 controls per card, nested in multiple groups. Since each stack was created from a master template, there are several identically-named groups and controls across all cards and stacks. I usually have about a dozen stacks open at a time, sometimes more. You just can't navigate through all that in the project browser, and if you do get where you want to be, you can't tell later what you're looking at because the card and stack references have scrolled off. I could navigate to the card in the stack, click something, and the browser would update -- but if you're working on one card and just need to reference the contents of another, it's one of those cases that takes more clicks to accomplish. I often click over to a different card in the app browser to remember what I named a field, and I don't need to physically switch cards in the stack to do that. Here's another thing: the app browser works with messages turned off. The project browser doesn't. I frequently work with messages off to avoid script consequences I don't want. Finally, I can sort the app browser in all kinds of ways -- put all the images together, all the fields, all invisibles, sort alphabetically, so it's easy to find things. The project browser is in a fixed order. The filter feature is a step in the right direction, but the card or stack references can still scroll off the top, and there's quite a noticeable delay when filtering a thousand objects for "type:field". I don't see a way to display more than one type of object, to alphabetize the controls on a card, or to limit the results to a particular card. The app browser does all that, and clicking a header is easy, fast, and I always know where I am. I may be able to make the switch for simpler projects, but for this one I need to stay with the app browser. I hate to say that because I know how much work went into the project browser, and it's a beautiful thing, but I think we need to keep both tools around to accomodate different work flows. If I had to use the project browser on this project, my development time would quadruple. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From smk at anvic.net Sat Jan 3 04:07:46 2015 From: smk at anvic.net (Simon Knight) Date: Sat, 3 Jan 2015 09:07:46 +0000 Subject: Editing datagrid cells In-Reply-To: References: Message-ID: <40F697DF-28C8-4668-AD23-89A180A7FAD2@anvic.net> Hi Pete, Unfortunately I don?t have any answers but I have a similar problem. I am trying to detect a return in a specific field on a datagrid form and so far I can either detect the return but not the name of the field (I just get the name of the field editor) or I can get the name of the field with no detection of the key press (because the keypress has gone to the field editor). Lest hope one of the experts answers our questions?. Simon Knight smk at anvic.net Telephone : 05603 643965 Mobile : 07963 077071 > On 21 Dec 2014, at 21:22, Peter Haworth wrote: > > Got a number of questions for the datagrid experts out there, all related > to the editing of datagrid cells. > > How can I implement a contextual menu when the user right clicks on a cell > that is being edited? I tried using a mouseDown handler in a custom column > handler but it doesn't seem to fire when the edit field is clicked. > > Tab and escape are ways of getting out of edit mode. If escape/tab have not > been pressed to register the edit, the underlying datagrid data won;t have > been updated so how can I get hold of the contents of the edit field for a > cell if the user has not pressed escape or tab? > > Probably the root of the above questions but how can I get hold of the id > of the field created by the datagrid to edit a cell? > > The datagrid library isn't happy if I send an EditCelll message to a cell > that has been customized to contain, for example, an option menu. By "not > happy", I mean that any instructions in the handler after dispatching the > EditCell message are skipped. I guess I should file a QCC report for that > but in the meantime, how can I find the first column in the selected line > that has not been customized to contain something other than straight text? > > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From Camm29 at tesco.net Sat Jan 3 07:47:07 2015 From: Camm29 at tesco.net (Camm) Date: Sat, 3 Jan 2015 12:47:07 -0000 Subject: Hangs and graphics issue after 6.6.1 In-Reply-To: <029C1049-1BC4-47D9-AA95-D79DFCAC5B5D@livecode.org> References: <000001d02692$9bceb3c0$d36c1b40$@tesco.net> <029C1049-1BC4-47D9-AA95-D79DFCAC5B5D@livecode.org> Message-ID: <000001d02753$62066720$26133560$@tesco.net> Thanks , I will compile something to put to RR. Is it possible the empty used in the FullScreenMode is conflicting with the read from driver until empty ?? Regards Camm -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Paul Hibbert Sent: 02 January 2015 16:16 To: How to use LiveCode Subject: Re: Hangs and graphics issue after 6.6.1 Hi Camm, This would be very useful to report at http://quality.runrev.com If you have a stack or multiple stacks with a recipe that can demonstrate the problem and you can upload them with the report I'm sure RR will be onto it very quickly. If you only have a stack(s) that you don't wish to share publicly, you can set the report then email the stack(s) to quality at runrev.com they will fully respect your privacy. If you have any problems posting the report, then get in touch with support at runrev.com and they will help you. I'm sure this will be your best route to resolving this problem, and it may help others in the future too and will make LiveCode stronger in the process. Regards, Paul > On Jan 2, 2015, at 5:47 AM, Camm wrote: > > Hi , > > The last standalone I built was using 6.6.0 , that was very stable for > my application (Windows 7). > Tested also on 6.6.1 Build (4005) and still ok > > But now I have found that from 6.6.2 to 7 random hangs and poor > rendering of graphics (Tactile Media Gauges) on Full screen Mode. > Read from driver xxx until empty is a problem and will hang on occasion. > > Is it best to stick with 6.6.1 ? > > Regards > Camm > > -----Original Message----- > From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On > Behalf Of Camm > Sent: 30 December 2014 16:59 > To: use-livecode at lists.runrev.com > Subject: Problem with read from driver until empty in 7.01 > > Hi , > > > > I use "read from driver xxx until empty" > > > > To empty read buffer when using serial comms. > > > > In 6.7 this works fine but in 7.01 causes random hangs if used. > > > > > > Regards > > Camm > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > ----- > No virus found in this message. > Checked by AVG - www.avg.com > Version: 2014.0.4794 / Virus Database: 4253/8839 - Release Date: > 12/30/14 > > ----- > No virus found in this message. > Checked by AVG - www.avg.com > Version: 2014.0.4794 / Virus Database: 4253/8839 - Release Date: > 12/30/14 > ----- > No virus found in this message. > Checked by AVG - www.avg.com > Version: 2014.0.4794 / Virus Database: 4253/8839 - Release Date: > 12/30/14 > ----- > No virus found in this message. > Checked by AVG - www.avg.com > Version: 2014.0.4794 / Virus Database: 4253/8839 - Release Date: > 12/30/14 > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ----- No virus found in this message. Checked by AVG - www.avg.com Version: 2014.0.4794 / Virus Database: 4253/8855 - Release Date: 01/02/15 ----- No virus found in this message. Checked by AVG - www.avg.com Version: 2014.0.4794 / Virus Database: 4253/8855 - Release Date: 01/02/15 ----- No virus found in this message. Checked by AVG - www.avg.com Version: 2014.0.4794 / Virus Database: 4253/8855 - Release Date: 01/02/15 ----- No virus found in this message. Checked by AVG - www.avg.com Version: 2014.0.4794 / Virus Database: 4253/8855 - Release Date: 01/02/15 From dochawk at gmail.com Sat Jan 3 10:33:48 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Sat, 3 Jan 2015 07:33:48 -0800 Subject: Project Browser vs App Browser (was "script scope variables inexplicably becoming unset") In-Reply-To: References: Message-ID: On Fri, Jan 2, 2015 at 7:00 PM, Richard Gaskin wrote: > Can you recall offhand what sorts of tasks take you more steps in the > Project Browser? > What Jacque wrote. All I have to add to that is the extra click just to open the list of substacks. And then, as she mentions, the extra scrolling to get to controls. I still see it as a solution in search of a problem. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From dochawk at gmail.com Sat Jan 3 10:35:46 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Sat, 3 Jan 2015 07:35:46 -0800 Subject: replaceText problem In-Reply-To: <54A764CE.8000108@hyperactivesw.com> References: <54A764CE.8000108@hyperactivesw.com> Message-ID: On Fri, Jan 2, 2015 at 7:41 PM, J. Landman Gay wrote: > Is this for your own use, or for a utility? The capability is already > built into the debugger -- just choose "Clear all breakpoints" from the > Debug menu. It removes all breakpoints from all scripts in all open stacks. He's searching for the coded breakpoints, I think, not the evil red dots. (the ones that usually stop, rather than the ones that whimsically stop). -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From index at kenjikojima.com Sat Jan 3 10:48:11 2015 From: index at kenjikojima.com (Kenji Kojima) Date: Sat, 3 Jan 2015 10:48:11 -0500 Subject: Standalone on Raspberry Pi Message-ID: <99AEAD43-AFC8-4987-A48F-A0DA05FFCC8F@kenjikojima.com> Hi, Did anybody make a standalone on Raspberry Pi? I made some test standalone of very simple stacks. I changed the permissions of them. But they did not run on Raspberry Pi. I tried to run the standalone on Ubuntu. They worked. What was the problem. Thanks, -- Kenji Kojima / ???? http://www.kenjikojima.com/ From mwieder at ahsoftware.net Sat Jan 3 11:50:03 2015 From: mwieder at ahsoftware.net (Mark Wieder) Date: Sat, 3 Jan 2015 08:50:03 -0800 Subject: Project Browser vs App Browser (was "script scope variables inexplicably becoming unset") In-Reply-To: <54A78CB0.3070900@hyperactivesw.com> References: <54A78CB0.3070900@hyperactivesw.com> Message-ID: <51429859159.20150103085003@ahsoftware.net> Richard- Friday, January 2, 2015, 10:31:12 PM, Jacque wrote: > I feel like a curmudgeon after writing what follows, but...I don't use > the project browser because it's too slow and cumbersome for my project. What Jacque said. That and all the rest. I'd use Pete's lcStackBrowser if it worked with the community build, but the tried and true App Browser does what I need it to do. -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From paul at livecode.org Sat Jan 3 11:49:57 2015 From: paul at livecode.org (Paul Hibbert) Date: Sat, 3 Jan 2015 08:49:57 -0800 Subject: Project Browser vs App Browser (was "script scope variables inexplicably becoming unset") In-Reply-To: References: Message-ID: <37222805-C7E5-4C08-83FB-2856742B885D@livecode.org> I'm with Jacque & Doc on this too. I rarely use the Project Browser because I have had problems with the IDE slowing down way too much, also using the Message Watcher with the Project Browser open is a nightmare. The Application Browser usually updates when you modify a control, but the Project Browser doesn't and there's no Refresh button. The contextual Refresh doesn't seem to help. I like the Alignment tools and especially the Behaviour badges in the PB and would love to see something like that in the AB, but that's about the only thing I have found it useful for, sorry RR! If some of the more useful features of the PB could be made available in the AB that would be awesome. Paul > On Jan 3, 2015, at 7:33 AM, Dr. Hawkins wrote: > > On Fri, Jan 2, 2015 at 7:00 PM, Richard Gaskin > wrote: > >> Can you recall offhand what sorts of tasks take you more steps in the >> Project Browser? >> > > What Jacque wrote. > > All I have to add to that is the extra click just to open the list of > substacks. And then, as she mentions, the extra scrolling to get to > controls. > > I still see it as a solution in search of a problem. > > > -- > Dr. Richard E. Hawkins, Esq. > (702) 508-8462 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pete at lcsql.com Sat Jan 3 12:35:37 2015 From: pete at lcsql.com (Peter Haworth) Date: Sat, 3 Jan 2015 09:35:37 -0800 Subject: replaceText problem In-Reply-To: <54A764CE.8000108@hyperactivesw.com> References: <54A764CE.8000108@hyperactivesw.com> Message-ID: Hi Jacque, It's part of a script I use to get a product ready for release. I'm already calling revDebuggerClearAllBreakpoints (which I think is what is called when you select the Clear All Breakpoints menu option) but I think that only clears red dot breakpoints not breakpoint commands. Looking into this further as there's a note in the dictionary that says not all regex characters are supported and dictionary examples that include any type of regex are conspicuous by their absence. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Fri, Jan 2, 2015 at 7:41 PM, J. Landman Gay wrote: > On 1/2/2015 8:41 PM, Peter Haworth wrote: > >> I'm adding a check for breakpoint commands to my build procedures. >> Basically check through the command of every script and issue the >> following >> command: >> > > Is this for your own use, or for a utility? The capability is already > built into the debugger -- just choose "Clear all breakpoints" from the > Debug menu. It removes all breakpoints from all scripts in all open stacks. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pete at lcsql.com Sat Jan 3 12:45:20 2015 From: pete at lcsql.com (Peter Haworth) Date: Sat, 3 Jan 2015 09:45:20 -0800 Subject: Project Browser vs App Browser (was "script scope variables inexplicably becoming unset") In-Reply-To: <51429859159.20150103085003@ahsoftware.net> References: <54A78CB0.3070900@hyperactivesw.com> <51429859159.20150103085003@ahsoftware.net> Message-ID: I'm getting more inclined to make lcStackBrowser dual-licensed. I'll still charge for it but there won't be a demo, just a 30-day money back guarantee. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Sat, Jan 3, 2015 at 8:50 AM, Mark Wieder wrote: > Richard- > > Friday, January 2, 2015, 10:31:12 PM, Jacque wrote: > > > I feel like a curmudgeon after writing what follows, but...I don't use > > the project browser because it's too slow and cumbersome for my project. > > What Jacque said. That and all the rest. > I'd use Pete's lcStackBrowser if it worked with the community build, > but the tried and true App Browser does what I need it to do. > > -- > -Mark Wieder > ahsoftware at gmail.com > > This communication may be unlawfully collected and stored by the National > Security Agency (NSA) in secret. The parties to this email do not > consent to the retrieving or storing of this communication and any > related metadata, as well as printing, copying, re-transmitting, > disseminating, or otherwise using it. If you believe you have received > this communication in error, please delete it immediately. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jacque at hyperactivesw.com Sat Jan 3 13:32:43 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 03 Jan 2015 12:32:43 -0600 Subject: Project Browser vs App Browser (was "script scope variables inexplicably becoming unset") In-Reply-To: <37222805-C7E5-4C08-83FB-2856742B885D@livecode.org> References: <37222805-C7E5-4C08-83FB-2856742B885D@livecode.org> Message-ID: <54A835CB.2010709@hyperactivesw.com> On 1/3/2015 10:49 AM, Paul Hibbert wrote: > I like the Alignment tools and especially the Behaviour badges in the > PB and would love to see something like that in the AB, but that's > about the only thing I have found it useful for, sorry RR! My client, who does much of the layout on our stacks, uses the project browser only when she needs to relayer controls. She says it's easier to drag them around than to renumber them in the property inspector. If she's not relayering things, she goes back to the app browser for the reasons I mentioned. I wouldn't mind seeing drag-layering in the app browser. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Sat Jan 3 13:36:45 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 03 Jan 2015 12:36:45 -0600 Subject: replaceText problem In-Reply-To: References: <54A764CE.8000108@hyperactivesw.com> Message-ID: <54A836BD.4060506@hyperactivesw.com> On 1/3/2015 11:35 AM, Peter Haworth wrote: > It's part of a script I use to get a product ready for release. I'm > already calling revDebuggerClearAllBreakpoints (which I think is what is > called when you select the Clear All Breakpoints menu option) but I think > that only clears red dot breakpoints not breakpoint commands. > > Looking into this further as there's a note in the dictionary that says not > all regex characters are supported and dictionary examples that include any > type of regex are conspicuous by their absence. I see now. Do you have to use regex? Breakpoint commands are always on a line by themselves. What about "filter...without"? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From pete at lcsql.com Sat Jan 3 13:53:02 2015 From: pete at lcsql.com (Peter Haworth) Date: Sat, 3 Jan 2015 10:53:02 -0800 Subject: replaceText problem In-Reply-To: <54A836BD.4060506@hyperactivesw.com> References: <54A764CE.8000108@hyperactivesw.com> <54A836BD.4060506@hyperactivesw.com> Message-ID: I may have to go that route since I just can't get replaceText to work. I didn't know breakpoint was always on a line by itself - so you can't have another command on the same line separated by a comma? Kinda moot anyway since I'd never do that and this will only ever be working on my scripts. Sounds like filter with the same regex would work and just set the script to the filtered version, thanks fot the idea.. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Sat, Jan 3, 2015 at 10:36 AM, J. Landman Gay wrote: > On 1/3/2015 11:35 AM, Peter Haworth wrote: > >> It's part of a script I use to get a product ready for release. I'm >> already calling revDebuggerClearAllBreakpoints (which I think is what is >> called when you select the Clear All Breakpoints menu option) but I think >> that only clears red dot breakpoints not breakpoint commands. >> >> Looking into this further as there's a note in the dictionary that says >> not >> all regex characters are supported and dictionary examples that include >> any >> type of regex are conspicuous by their absence. >> > > I see now. Do you have to use regex? Breakpoint commands are always on a > line by themselves. What about "filter...without"? > > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pmbrig at gmail.com Sat Jan 3 14:06:56 2015 From: pmbrig at gmail.com (Peter M. Brigham) Date: Sat, 3 Jan 2015 14:06:56 -0500 Subject: replaceText problem In-Reply-To: <54A836BD.4060506@hyperactivesw.com> References: <54A764CE.8000108@hyperactivesw.com> <54A836BD.4060506@hyperactivesw.com> Message-ID: <0AB6C359-D3A2-41B9-972E-B8062B60F1D8@gmail.com> On Jan 3, 2015, at 1:36 PM, J. Landman Gay wrote: > On 1/3/2015 11:35 AM, Peter Haworth wrote: >> It's part of a script I use to get a product ready for release. I'm >> already calling revDebuggerClearAllBreakpoints (which I think is what is >> called when you select the Clear All Breakpoints menu option) but I think >> that only clears red dot breakpoints not breakpoint commands. >> >> Looking into this further as there's a note in the dictionary that says not >> all regex characters are supported and dictionary examples that include any >> type of regex are conspicuous by their absence. > > I see now. Do you have to use regex? Breakpoint commands are always on a line by themselves. What about "filter...without"? Well, you actually can do this: if the shiftkey is down then breakpoint Whether you should is another matter. -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig From jacque at hyperactivesw.com Sat Jan 3 14:12:23 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 03 Jan 2015 13:12:23 -0600 Subject: replaceText problem In-Reply-To: References: <54A764CE.8000108@hyperactivesw.com> <54A836BD.4060506@hyperactivesw.com> Message-ID: <54A83F17.4040309@hyperactivesw.com> On 1/3/2015 12:53 PM, Peter Haworth wrote: > I didn't know breakpoint was always on a line by itself - so you can't have > another command on the same line separated by a comma? Kinda moot anyway > since I'd never do that and this will only ever be working on my scripts. Well, there could be a comment after it. And some rare individuals use the semicolon trick to combine lines unexpectedly. But this should work for any line that starts with "breakpoint": filter tScript without "breakpoint*" -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From pete at lcsql.com Sat Jan 3 14:12:17 2015 From: pete at lcsql.com (Peter Haworth) Date: Sat, 3 Jan 2015 11:12:17 -0800 Subject: Project Browser vs App Browser (was "script scope variables inexplicably becoming unset") In-Reply-To: <54A835CB.2010709@hyperactivesw.com> References: <37222805-C7E5-4C08-83FB-2856742B885D@livecode.org> <54A835CB.2010709@hyperactivesw.com> Message-ID: lcStackBrowser has many of the functions mentioned in this thread. Drag/drop relayering (and moving and copying), alignment tools without the need to open an Inspector palette and single click access to behavior scripts (including chained behaviors). It also has a bunch of navigation features that help with large projects - fully collapse a stack, separate tabs for each mainstack, temporarily hide a stack in the display, keyboard shortcuts to move to the prev/next object of the same type or to an object's owner, search based on any property of any object (and execute a script against the results). And lots of other goodies too including property display and editing within the same window, organizing properties into groups that make sense to you not the IDE, built-in controls palette including the ability to drag drop multiple controls of any type in one operation (For example multiple lines of label/field controls, or multiple radio buttons in a group). Jacque's mention of the OSX Finder columnar layout is interesting. I might have to take a look at that as an alternate display type for lcStackbrowser Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Sat, Jan 3, 2015 at 10:32 AM, J. Landman Gay wrote: > On 1/3/2015 10:49 AM, Paul Hibbert wrote: > >> I like the Alignment tools and especially the Behaviour badges in the >> PB and would love to see something like that in the AB, but that's >> about the only thing I have found it useful for, sorry RR! >> > > My client, who does much of the layout on our stacks, uses the project > browser only when she needs to relayer controls. She says it's easier to > drag them around than to renumber them in the property inspector. If she's > not relayering things, she goes back to the app browser for the reasons I > mentioned. > > I wouldn't mind seeing drag-layering in the app browser. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jacque at hyperactivesw.com Sat Jan 3 14:14:07 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 03 Jan 2015 13:14:07 -0600 Subject: replaceText problem In-Reply-To: <0AB6C359-D3A2-41B9-972E-B8062B60F1D8@gmail.com> References: <54A764CE.8000108@hyperactivesw.com> <54A836BD.4060506@hyperactivesw.com> <0AB6C359-D3A2-41B9-972E-B8062B60F1D8@gmail.com> Message-ID: <54A83F7F.9010407@hyperactivesw.com> On 1/3/2015 1:06 PM, Peter M. Brigham wrote: > Well, you actually can do this: > if the shiftkey is down then breakpoint > > Whether you should is another matter. Oh right. So instead of my other suggestion: filter tScript without "*breakpoint*" It will destroy any lines that incorporate semicolons to add a second command statement to the same line though. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From pete at lcsql.com Sat Jan 3 14:16:24 2015 From: pete at lcsql.com (Peter Haworth) Date: Sat, 3 Jan 2015 11:16:24 -0800 Subject: replaceText problem In-Reply-To: <54A83F17.4040309@hyperactivesw.com> References: <54A764CE.8000108@hyperactivesw.com> <54A836BD.4060506@hyperactivesw.com> <54A83F17.4040309@hyperactivesw.com> Message-ID: That would work fine for me since I don't recall ever having anything else on a line that has a breakpoint. I actually hardly ever use that command anyway, only in the circumstances where a red dot breakpoint doesn't trigger which, as others have mentioned, does happen sometimes. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Sat, Jan 3, 2015 at 11:12 AM, J. Landman Gay wrote: > On 1/3/2015 12:53 PM, Peter Haworth wrote: > >> I didn't know breakpoint was always on a line by itself - so you can't >> have >> another command on the same line separated by a comma? Kinda moot anyway >> since I'd never do that and this will only ever be working on my scripts. >> > > Well, there could be a comment after it. And some rare individuals use the > semicolon trick to combine lines unexpectedly. But this should work for any > line that starts with "breakpoint": > > filter tScript without "breakpoint*" > > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dochawk at gmail.com Sat Jan 3 14:38:28 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Sat, 3 Jan 2015 11:38:28 -0800 Subject: script scope variables inexplicably becoming unset In-Reply-To: References: Message-ID: On Fri, Jan 2, 2015 at 6:23 PM, Dr. Hawkins wrote: > Hopefully these let me lick this early tomorrow morning . . . And I found it. It's the debugger, and its long-known deficiencies. Two things were happening: 1) when opening the palette stack, a closeField was sent to the field whose handler was opening it. 2) The debugger ignored the closefField while single-stepping. It didn't even not step into it; it didn't call it at all. So score one more for livecode behaving differently in and out of the debugger. Thanks to everyone. That part is running again . . . -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From dochawk at gmail.com Sat Jan 3 14:45:03 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Sat, 3 Jan 2015 11:45:03 -0800 Subject: setting a "locked field" to get mouseUp Message-ID: I've found references to "locked fields" getting mouseUp, but not a definition. I would assume locktext, possibly in conjunction with traversal on, but am not getting anywhere. I'm successfully setting the selectedLine from mouseMove, but would like to be able to click on it. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From dochawk at gmail.com Sat Jan 3 14:50:59 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Sat, 3 Jan 2015 11:50:59 -0800 Subject: replaceText problem In-Reply-To: References: <54A764CE.8000108@hyperactivesw.com> <54A836BD.4060506@hyperactivesw.com> Message-ID: On Sat, Jan 3, 2015 at 10:53 AM, Peter Haworth wrote: > Sounds like filter with the same regex would work and just set the script > to the filtered version, thanks fot the idea.. > Is there any whitespace that could occur before breakpoint other than space? that would let the simpler expression "^\ *breakpoint.*" or "^[\ \t]*breakpoint.*" (to allow tab) instead of hoping \s works . . . -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From richmondmathewson at gmail.com Sat Jan 3 14:59:41 2015 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 03 Jan 2015 21:59:41 +0200 Subject: setting a "locked field" to get mouseUp In-Reply-To: References: Message-ID: <54A84A2D.1070300@gmail.com> On 03/01/15 21:45, Dr. Hawkins wrote: > I've found references to "locked fields" getting mouseUp, but not a > definition. I would assume locktext, possibly in conjunction with traversal > on, but am not getting anywhere. > > I'm successfully setting the selectedLine from mouseMove, but would like to > be able to click on it. > Check out "clickline" in the dictionary. Richmond. From richmondmathewson at gmail.com Sat Jan 3 15:14:52 2015 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 03 Jan 2015 22:14:52 +0200 Subject: setting a "locked field" to get mouseUp In-Reply-To: References: Message-ID: <54A84DBC.8090609@gmail.com> On 03/01/15 21:45, Dr. Hawkins wrote: > I've found references to "locked fields" getting mouseUp, but not a > definition. I would assume locktext, possibly in conjunction with traversal > on, but am not getting anywhere. > > I'm successfully setting the selectedLine from mouseMove, but would like to > be able to click on it. > I just set up a stack containing a scrolling list field "SLF" and 2 other fields: "KLICKT" and "LNVAL" The field "SLF" contains this script: on mouseDown put the clickLine into fld "KLICKT" put the value of the clickLine into fld "LNVAL" end mouseDown According to the prefs palette for fld "SLF" the text is locked. ----------------------------------------------------------------------- Then I set up 2 buttons; "Lock Fields" and "unLock Fields" containing these scripts respectively; on mouseUp set the lockLocation of fld "SLF" to true set the lockLocation of fld "KLICKT" to true set the lockLocation of fld "LNVAL" to true end mouseUp on mouseUp set the lockLocation of fld "SLF" to false set the lockLocation of fld "KLICKT" to false set the lockLocation of fld "LNVAL" to false end mouseUp The script in fld "SLF" did what is was meant to do regardless of whether the fields were locked or not. -------------------------------------------------------------------- My stack is here: https://www.dropbox.com/sh/ja47l87gg87sn0q/AAAIj99kEQVOb8ev3jz8C5ORa?dl=0 File "locked.livecode.zip" Richmond. From pete at lcsql.com Sat Jan 3 15:23:29 2015 From: pete at lcsql.com (Peter Haworth) Date: Sat, 3 Jan 2015 12:23:29 -0800 Subject: replaceText problem In-Reply-To: <54A83F7F.9010407@hyperactivesw.com> References: <54A764CE.8000108@hyperactivesw.com> <54A836BD.4060506@hyperactivesw.com> <0AB6C359-D3A2-41B9-972E-B8062B60F1D8@gmail.com> <54A83F7F.9010407@hyperactivesw.com> Message-ID: I finally got replaceText working although still not sure why it returned a runtime error. I had to include "(?m)" at the start of the regex in order to to make it work in multiline mode. The "^" at the start of my regex means "start of line" but unless you are in multiline mode, line breaks aren't recognized by regex. Doc Hawkins: As others have pointed out, you could have an if statement with breakpoint on the same line or another statement before it separated by a semicolon. However, this code will only ever examine my own scripts so I can make sure that breakpoints only ever appear on a line on their own. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Sat, Jan 3, 2015 at 11:14 AM, J. Landman Gay wrote: > On 1/3/2015 1:06 PM, Peter M. Brigham wrote: > >> Well, you actually can do this: >> if the shiftkey is down then breakpoint >> >> Whether you should is another matter. >> > > Oh right. So instead of my other suggestion: > > filter tScript without "*breakpoint*" > > It will destroy any lines that incorporate semicolons to add a second > command statement to the same line though. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pmbrig at gmail.com Sat Jan 3 16:22:42 2015 From: pmbrig at gmail.com (Peter M. Brigham) Date: Sat, 3 Jan 2015 16:22:42 -0500 Subject: setting a "locked field" to get mouseUp In-Reply-To: <54A84DBC.8090609@gmail.com> References: <54A84DBC.8090609@gmail.com> Message-ID: On Jan 3, 2015, at 3:14 PM, Richmond wrote: > On 03/01/15 21:45, Dr. Hawkins wrote: >> I've found references to "locked fields" getting mouseUp, but not a >> definition. I would assume locktext, possibly in conjunction with traversal >> on, but am not getting anywhere. >> >> I'm successfully setting the selectedLine from mouseMove, but would like to >> be able to click on it. >> > > I just set up a stack containing a scrolling list field "SLF" > and 2 other fields: "KLICKT" and "LNVAL" > > The field "SLF" contains this script: > > on mouseDown > put the clickLine into fld "KLICKT" > put the value of the clickLine into fld "LNVAL" > end mouseDown > > According to the prefs palette for fld "SLF" the text is locked. > > ----------------------------------------------------------------------- > > Then I set up 2 buttons; "Lock Fields" and "unLock Fields" containing these scripts respectively; > > on mouseUp > set the lockLocation of fld "SLF" to true > set the lockLocation of fld "KLICKT" to true > set the lockLocation of fld "LNVAL" to true > end mouseUp > > on mouseUp > set the lockLocation of fld "SLF" to false > set the lockLocation of fld "KLICKT" to false > set the lockLocation of fld "LNVAL" to false > end mouseUp > > The script in fld "SLF" did what is was meant to do regardless of whether the fields > were locked or not. A field will receive mouseup messages if its locktext = true, or if the commandkey is down or the controlkey is down or it's a right-click. Other properties (traversalon, autohilite, lockLoc) don't affect the field's ability to trigger a mouseup message. -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig From dochawk at gmail.com Sat Jan 3 16:44:49 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Sat, 3 Jan 2015 13:44:49 -0800 Subject: replaceText problem In-Reply-To: References: <54A764CE.8000108@hyperactivesw.com> <54A836BD.4060506@hyperactivesw.com> <0AB6C359-D3A2-41B9-972E-B8062B60F1D8@gmail.com> <54A83F7F.9010407@hyperactivesw.com> Message-ID: On Sat, Jan 3, 2015 at 12:23 PM, Peter Haworth wrote: > I had to include "(?m)" at the start of the regex in order to to make it > work in multiline mode. > > The "^" at the start of my regex means "start of line" but unless you are > in multiline mode, line breaks aren't recognized by regex. > But how can your example have a linebreak? excessive comment after the breakpoint I haven't had to deal with multi-line regex in several years, but recall it being like a trip to the dentist. > Doc Hawkins: As others have pointed out, you could have an if statement > with breakpoint on the same line or another statement before it separated > by a semicolon. However, this code will only ever examine my own scripts so > I can make sure that breakpoints only ever appear on a line on their own. > That's what I was thinking in your case. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From pmbrig at gmail.com Sat Jan 3 17:01:26 2015 From: pmbrig at gmail.com (Peter M. Brigham) Date: Sat, 3 Jan 2015 17:01:26 -0500 Subject: replaceText problem In-Reply-To: References: <54A764CE.8000108@hyperactivesw.com> <54A836BD.4060506@hyperactivesw.com> <0AB6C359-D3A2-41B9-972E-B8062B60F1D8@gmail.com> <54A83F7F.9010407@hyperactivesw.com> Message-ID: On Jan 3, 2015, at 4:44 PM, Dr. Hawkins wrote: > I haven't had to deal with multi-line regex in several years, but recall it > being like a trip to the dentist. For me, even plain regex is like a trip to the dentist. With no novocaine. I understand that it's powerful, but I have rarely come across something I couldn't do in livecode less painfully. -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig From prothero at earthednet.org Sat Jan 3 18:39:15 2015 From: prothero at earthednet.org (Earthednet-wp) Date: Sat, 3 Jan 2015 15:39:15 -0800 Subject: Whiteboard animations Message-ID: <095C0B3D-7D77-4572-8017-E542FDE3D3A9@earthednet.org> Just wondering if anyone has created whiteboard "videoscribe" style animations in livecode. Seems like a natural for LC, and not too bad, once somebody has figured out how to translate SVG files into LC lines and colors. Or, has anybody worked with SVG file formats? Tnx, Bill William Prothero http://es.earthednet.org From peterwawood at gmail.com Sat Jan 3 18:46:36 2015 From: peterwawood at gmail.com (Peter W A Wood) Date: Sun, 4 Jan 2015 07:46:36 +0800 Subject: Standalone on Raspberry Pi In-Reply-To: <99AEAD43-AFC8-4987-A48F-A0DA05FFCC8F@kenjikojima.com> References: <99AEAD43-AFC8-4987-A48F-A0DA05FFCC8F@kenjikojima.com> Message-ID: Hi Kenji As I understand the Linux option in the Standalone Settings creates a standalone for an Intel-based computer. At the moment, there isn?t an option to create a standalone for an ARM-based computer. There is a ?community? supported version of LiveCode that runs on Raspberry Pi but that is the IDE. I haven?t tried it myself so I don?t know if you can build a Raspberry Pi standalone with it. Regards Peter http://LiveCode1001.blogspot.com > On 3 Jan 2015, at 23:48, Kenji Kojima wrote: > > Hi, > > Did anybody make a standalone on Raspberry Pi? > I made some test standalone of very simple stacks. > I changed the permissions of them. But they did not run on Raspberry Pi. > I tried to run the standalone on Ubuntu. They worked. > What was the problem. > > Thanks, > -- > Kenji Kojima / ???? > http://www.kenjikojima.com/ > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From mwieder at ahsoftware.net Sat Jan 3 18:52:20 2015 From: mwieder at ahsoftware.net (Mark Wieder) Date: Sat, 3 Jan 2015 15:52:20 -0800 Subject: replaceText problem In-Reply-To: <54A83F7F.9010407@hyperactivesw.com> References: <54A764CE.8000108@hyperactivesw.com> <54A836BD.4060506@hyperactivesw.com> <0AB6C359-D3A2-41B9-972E-B8062B60F1D8@gmail.com> <54A83F7F.9010407@hyperactivesw.com> Message-ID: <671455195905.20150103155220@ahsoftware.net> Jacque- Breakpoints don't have to be on a line by themselves. Haven't for several years now. For a while I toyed with having both breakpoints and tracepoints (log the context without stopping) by passing a parameter to breakpoints. > filter tScript without "*breakpoint*" But that incantation should get them all. Unless someone has that word in a comment. -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From mwieder at ahsoftware.net Sat Jan 3 18:55:43 2015 From: mwieder at ahsoftware.net (Mark Wieder) Date: Sat, 3 Jan 2015 15:55:43 -0800 Subject: Project Browser vs App Browser (was "script scope variables inexplicably becoming unset") In-Reply-To: References: <54A78CB0.3070900@hyperactivesw.com> <51429859159.20150103085003@ahsoftware.net> Message-ID: <1341455398863.20150103155543@ahsoftware.net> Pete- Saturday, January 3, 2015, 9:45:20 AM, you wrote: > I'm getting more inclined to make lcStackBrowser dual-licensed. I'll still > charge for it but there won't be a demo, just a 30-day money back guarantee. That would be awesome. It's much better than the AB or the PB. It's kind of like the best parts of both, and then still better than that. -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From bdrunrev at gmail.com Sat Jan 3 18:59:13 2015 From: bdrunrev at gmail.com (Bernard Devlin) Date: Sat, 3 Jan 2015 23:59:13 +0000 Subject: Whiteboard animations In-Reply-To: <095C0B3D-7D77-4572-8017-E542FDE3D3A9@earthednet.org> References: <095C0B3D-7D77-4572-8017-E542FDE3D3A9@earthednet.org> Message-ID: Hi Bill, I know next to nothing about SVG, but if you search the list archive for "SVG", you'll find that Alejandro Tejada has been working with this format for years. Regards, Bernard On Sat, Jan 3, 2015 at 11:39 PM, Earthednet-wp wrote: > Just wondering if anyone has created whiteboard "videoscribe" style > animations in livecode. Seems like a natural for LC, and not too bad, once > somebody has figured out how to translate SVG files into LC lines and > colors. > > Or, has anybody worked with SVG file formats? > Tnx, > Bill > > William Prothero > From bodine at bodinetraininggames.com Sat Jan 3 19:32:57 2015 From: bodine at bodinetraininggames.com (tbodine) Date: Sat, 3 Jan 2015 16:32:57 -0800 (PST) Subject: Whiteboard animations In-Reply-To: References: <095C0B3D-7D77-4572-8017-E542FDE3D3A9@earthednet.org> Message-ID: <1420331577224-4687298.post@n4.nabble.com> Hi Bill. There's no native import support for SVG right now. I know the graphics engine was overhauled using the Skia library, which should add a lot of capabilities like SVG, but I don't see any access to SVG import from the IDE. The LC roadmap only says: "Vector Shape Object -- Use widget framework to write this control" So if SVG is part of the Vector Shape capability, then we're waiting for widgets (LC 8). Here's some discussion of this on Stack Overflow: http://stackoverflow.com/questions/16521267/livecode-how-to-use-svg-images-on-cards Tom Bodine -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Whiteboard-animations-tp4687293p4687298.html Sent from the Revolution - User mailing list archive at Nabble.com. From pete at lcsql.com Sat Jan 3 20:53:09 2015 From: pete at lcsql.com (Peter Haworth) Date: Sat, 3 Jan 2015 17:53:09 -0800 Subject: [ANN] Version 2.1.6 of lcStackBrowser Released Message-ID: I'm pleased to announce the release of version 2.1.6 of lcStackBrowser, a replacement for the Livecode IDE Application and Project Browser. This release is free to existing users. A 30 day, fully featured trial version is available at http://www.lcsql.com/lcstackbrowser.html This release includes the enhancements detailed below. The complete release notes are available at http://www.fwd-to.com?0mt SIMPLE CONTROLS PALETTE The simple controls palette contains only one of each type of Livecode object, thus taking up less screen space. When you drag/drop or double click a control in this palette, you'll be prompted for its style. This palette is provided in addition to full controls palette already available in lcStackBrowser. CUSTOM PROPERTIES WITH BINARY CONTENT lcStackBrowser will attempt to identify the type of data contained in custom properties with binary content and display them with the appropriate native application as defined on the users system. Currently, PDF, MSOffice, Disk Image, GIF, JPEG, PNG, TIF, MP3, MP4, WAV, AIF, and MIDI content is recognized and you will be prompted for the application to use for other binary data types. TOOLSTRIP A new toolstrip is available containing buttons for the commonly used functions in the IDE Toolbar which are not implemented elsewhere in lcStackBrowser These include toggling the selectGroupedControls setting, grouping controls/ungrouping groups, displaying the dictionary, and displaying the message box. The toolstrip occupies the same screen location as the current search controls and a button is provided to switch between it and the search controls. With this new feature, you may wish to remove the IDE Toolbar to free up screen space by deselecting Toolbar Text and Toolbar Icons in the IDE View menu. PLUGINS MANAGER The Plugins Manager provides a way for you to organize your plugins into logical groups using a new "Plugins" tab in the Preferences dialog. The toolstrip includes a Plugins popup with the following options: Your most frequently used plugins. Your plugin groups with subitems for each plugin in a group. An "Others" group with subitems for plugins not included in any user specified plugin groups. An option to refresh the plugins list, removing the need to quit/restart Livecode when a new plugin is installed. Options to configure when a plugin is loaded and its stack style. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From pete at lcsql.com Sat Jan 3 21:04:41 2015 From: pete at lcsql.com (Peter Haworth) Date: Sat, 3 Jan 2015 18:04:41 -0800 Subject: Project Browser vs App Browser (was "script scope variables inexplicably becoming unset") In-Reply-To: <1341455398863.20150103155543@ahsoftware.net> References: <54A78CB0.3070900@hyperactivesw.com> <51429859159.20150103085003@ahsoftware.net> <1341455398863.20150103155543@ahsoftware.net> Message-ID: On Sat, Jan 3, 2015 at 3:55 PM, Mark Wieder wrote: > That would be awesome. It's much better than the AB or the PB. > It's kind of like the best parts of both, and then still better than > that. > To be honest, the only things holding me back are finding a good simple dual license and embarrassment at revealing my less than stellar coding over the years :-) Nothing I can do about the latter but any help in finding a dual license template would be most welcome. Plus, how can I ensure people agree to the license terms since they can easily disable whatever code I put in there to display it? Or maybe that's too paranoid? Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From index at kenjikojima.com Sat Jan 3 21:32:09 2015 From: index at kenjikojima.com (Kenji Kojima) Date: Sat, 3 Jan 2015 21:32:09 -0500 Subject: Standalone on Raspberry Pi In-Reply-To: References: <99AEAD43-AFC8-4987-A48F-A0DA05FFCC8F@kenjikojima.com> Message-ID: Peter, Thank you. -- Kenji Kojima / ???? http://kenjikojima.com/livecode/RPi/ > On Jan 3, 2015, at 6:46 PM, Peter W A Wood wrote: > > Hi Kenji > > As I understand the Linux option in the Standalone Settings creates a standalone for an Intel-based computer. At the moment, there isn?t an option to create a standalone for an ARM-based computer. > > There is a ?community? supported version of LiveCode that runs on Raspberry Pi but that is the IDE. I haven?t tried it myself so I don?t know if you can build a Raspberry Pi standalone with it. > > Regards > > Peter > http://LiveCode1001.blogspot.com > > > >> On 3 Jan 2015, at 23:48, Kenji Kojima wrote: >> >> Hi, >> >> Did anybody make a standalone on Raspberry Pi? >> I made some test standalone of very simple stacks. >> I changed the permissions of them. But they did not run on Raspberry Pi. >> I tried to run the standalone on Ubuntu. They worked. >> What was the problem. >> >> Thanks, >> -- >> Kenji Kojima / ???? >> http://www.kenjikojima.com/ >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bvlahos at mac.com Sat Jan 3 21:42:47 2015 From: bvlahos at mac.com (Bill Vlahos) Date: Sat, 03 Jan 2015 18:42:47 -0800 Subject: How to I receive AppleScript? Message-ID: <9A0D8415-75AF-4A1A-BE9A-06583D6F6C7E@mac.com> I want to have my LiveCode application receive an AppleScript command with parameters from another application and then have my program execute the command. I can send an AppleScript to another program with LiveCode but I don?t see any examples of how to receive them. Bill Vlahos From bonnmike at gmail.com Sat Jan 3 22:30:29 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Sat, 3 Jan 2015 20:30:29 -0700 Subject: How to I receive AppleScript? In-Reply-To: <9A0D8415-75AF-4A1A-BE9A-06583D6F6C7E@mac.com> References: <9A0D8415-75AF-4A1A-BE9A-06583D6F6C7E@mac.com> Message-ID: I haven't done it, but I think what you're looking for is appleevent. Theres a little code in the dictionary for that entry that might help. On Sat, Jan 3, 2015 at 7:42 PM, Bill Vlahos wrote: > I want to have my LiveCode application receive an AppleScript command with > parameters from another application and then have my program execute the > command. > > I can send an AppleScript to another program with LiveCode but I don?t see > any examples of how to receive them. > > Bill Vlahos > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From revdev at pdslabs.net Sat Jan 3 22:33:25 2015 From: revdev at pdslabs.net (Phil Davis) Date: Sat, 03 Jan 2015 19:33:25 -0800 Subject: How to I receive AppleScript? In-Reply-To: <9A0D8415-75AF-4A1A-BE9A-06583D6F6C7E@mac.com> References: <9A0D8415-75AF-4A1A-BE9A-06583D6F6C7E@mac.com> Message-ID: <54A8B485.8070009@pdslabs.net> Hi Bill, I have no idea if it works on later Mac OS versions, but there are these in the Dictionary: sending: 'send to program' command receiving: 'appleEvent' message 'request appleEvent' command Happy New Year - Phil Davis On 1/3/15 6:42 PM, Bill Vlahos wrote: > I want to have my LiveCode application receive an AppleScript command with parameters from another application and then have my program execute the command. > > I can send an AppleScript to another program with LiveCode but I don?t see any examples of how to receive them. > > Bill Vlahos > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- Phil Davis From brahma at hindu.org Sat Jan 3 23:06:48 2015 From: brahma at hindu.org (Brahmanathaswami) Date: Sat, 03 Jan 2015 18:06:48 -1000 Subject: Moving a Group Smoothly Message-ID: <54A8BC58.1090705@hindu.org> This has probably been asked and answered 100 times. Because of the iOS limitation on opening substacks (no second windows allowed) I have set up a whole piece of the UI that I would normally put onto a substack... into a group... A "close" button and GUI clean up routine in the preopenstack handler pushes the group below the visible area to 291,1204 I just want the group to "slide up" smoothly and very quickly. But this script, in the 7.01 IDE performs very badly: on mouseUp lock messages move group "SettingsDialog" from 291,1204 to 291,351 without waiting end mouseUp The group moves up slowly and "stutters" as it moves. For modern UI/UX we really need elegant motion graphics behavior across the whole platform. Can this be improved? Is perfectly smooth motion even possible now in LiveCode? I realize it was never so great years ago, but I've been doing so much server side LC work in the past few years and hardly touched the presentation layer of app development until recently...and all my in house production tools apps are very plain/functional designs with zero eye candy. I thought motion would have much improved by now. What am I doing wrong? (Mac OS X Yosemite) Brahmanathaswami From lan.kc.macmail at gmail.com Sat Jan 3 23:13:48 2015 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Sun, 4 Jan 2015 12:13:48 +0800 Subject: replaceText problem In-Reply-To: References: Message-ID: On Sat, Jan 3, 2015 at 10:41 AM, Peter Haworth wrote: > > replaceText(pScript,"(^\s*breakpoint$"," ") > > Hi Peter, If this is exactly how your script is written then I see two problems: 1) you need to actually put the result into something so: put replaceText(pScript,"(?im)^\s+breakpoint$","--BREAKPOINT") into tUpdatedScript (it's one of my pet peeves with the Docs; the examples given are typically unworkable as a straight Copy and Paste into a script - but that's another rant] replaceText - a function, does not work like replace - a command 2) you have an opening ( prior to your ^. I think you meant to have (?m) or even better (?im) so it's case insensitive and works multi-line but in your troubleshooting maybe the ( got left behind. I do what you do but instead of replacing the 'breakpoint' with nothing I merely comment it out and make it STANDOUT - as shown in the code above. Usually my hard breakpoints have ended up in their location because of some long hard troubleshooting so I don't wish to loose them. if I ever need to return to a handler for more troubleshooting, if there is the odd -- BREAKPOINT in there then the first thing I do is uncomment them and step through and see what the variables are telling me. HTH From brahma at hindu.org Sat Jan 3 23:36:27 2015 From: brahma at hindu.org (Brahmanathaswami) Date: Sat, 03 Jan 2015 18:36:27 -1000 Subject: Moving a Group Smoothly Message-ID: <54A8C34B.9030509@hindu.org> BTW setting the acceleratedRendering of the stack to true and the layerMode of the group to dynamic only means the motion is a tad faster, but it still "stutters" as it moves -- Swasti Astu, Be Well! Brahmanathaswami Kauai's Hindu Monastery www.HimalayanAcademy.com From lan.kc.macmail at gmail.com Sat Jan 3 23:45:39 2015 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Sun, 4 Jan 2015 12:45:39 +0800 Subject: Moving a Group Smoothly In-Reply-To: <54A8BC58.1090705@hindu.org> References: <54A8BC58.1090705@hindu.org> Message-ID: I've recently used move and after some troubleshooting am quite happy with the result. I'm on Mavericks - I have not moved to Yosemite due the many complaints on how slow it is - maybe a factor, maybe not. some suggestions. Why haven't you specified a time? or did you preset the moveSpeed property ? What does it look like if you use: on mouseUp move group "SettingsDialog" relative 0,-853 in 2 ticks without messages end mouseUp On Sun, Jan 4, 2015 at 12:06 PM, Brahmanathaswami wrote: > This has probably been asked and answered 100 times. > > Because of the iOS limitation on opening substacks (no second windows > allowed) > > I have set up a whole piece of the UI that I would normally put onto a > substack... into a group... > > A "close" button and GUI clean up routine in the preopenstack handler > pushes the group below the visible area to 291,1204 > > I just want the group to "slide up" smoothly and very quickly. But this > script, in the 7.01 IDE performs very badly: > > on mouseUp > lock messages > move group "SettingsDialog" from 291,1204 to 291,351 without waiting > end mouseUp > > The group moves up slowly and "stutters" as it moves. For modern UI/UX we > really need elegant motion graphics behavior across the whole platform. > > Can this be improved? Is perfectly smooth motion even possible now in > LiveCode? I realize it was never so great years ago, but I've been doing so > much server side LC work in the past few years and hardly touched the > presentation layer of app development until recently...and all my in house > production tools apps are very plain/functional designs with zero eye > candy. I thought motion would have much improved by now. What am I doing > wrong? > > (Mac OS X Yosemite) > > > Brahmanathaswami > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From lan.kc.macmail at gmail.com Sun Jan 4 00:08:51 2015 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Sun, 4 Jan 2015 13:08:51 +0800 Subject: Project Browser vs App Browser (was "script scope variables inexplicably becoming unset") In-Reply-To: <54A78CB0.3070900@hyperactivesw.com> References: <54A78CB0.3070900@hyperactivesw.com> Message-ID: On Sat, Jan 3, 2015 at 2:31 PM, J. Landman Gay wrote: > because the card and stack references have scrolled off. > > Another +1 for what Jacque wrote. Completely OT but I've decided I like the term 'scrolled off' and will be using it from now on. wife - "where are the kids?" me - "Oh they've scrolled off again!" --meaning to depart with out reference to where they are going less crass than the more colloquial alternatives and saves any question as to where they have gone because 'scrolled off' implicitly indicates no reference to location is available ;-) From irog at mac.com Sun Jan 4 00:12:14 2015 From: irog at mac.com (Roger Guay) Date: Sat, 03 Jan 2015 22:12:14 -0700 Subject: Moving a Group Smoothly In-Reply-To: <54A8BC58.1090705@hindu.org> References: <54A8BC58.1090705@hindu.org> Message-ID: I?m finding that version 7 is quite slow for this kind of thing. Try version 6.6.5 or 6.7. They are much faster. I?m also using Yosemite. Roger > On Jan 3, 2015, at 9:06 PM, Brahmanathaswami wrote: > > This has probably been asked and answered 100 times. > > Because of the iOS limitation on opening substacks (no second windows allowed) > > I have set up a whole piece of the UI that I would normally put onto a substack... into a group... > > A "close" button and GUI clean up routine in the preopenstack handler pushes the group below the visible area to 291,1204 > > I just want the group to "slide up" smoothly and very quickly. But this script, in the 7.01 IDE performs very badly: > > on mouseUp > lock messages > move group "SettingsDialog" from 291,1204 to 291,351 without waiting > end mouseUp > > The group moves up slowly and "stutters" as it moves. For modern UI/UX we really need elegant motion graphics behavior across the whole platform. > > Can this be improved? Is perfectly smooth motion even possible now in LiveCode? I realize it was never so great years ago, but I've been doing so much server side LC work in the past few years and hardly touched the presentation layer of app development until recently...and all my in house production tools apps are very plain/functional designs with zero eye candy. I thought motion would have much improved by now. What am I doing wrong? > > (Mac OS X Yosemite) > > > Brahmanathaswami > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at livecode.org Sun Jan 4 00:15:14 2015 From: paul at livecode.org (Paul Hibbert) Date: Sat, 3 Jan 2015 21:15:14 -0800 Subject: Hangs and graphics issue after 6.6.1 In-Reply-To: <000001d02753$62066720$26133560$@tesco.net> References: <000001d02692$9bceb3c0$d36c1b40$@tesco.net> <029C1049-1BC4-47D9-AA95-D79DFCAC5B5D@livecode.org> <000001d02753$62066720$26133560$@tesco.net> Message-ID: > > On Jan 3, 2015, at 4:47 AM, Camm wrote: > > I will compile something to put to RR. That will be useful, thank you. > Is it possible the empty used in the FullScreenMode is conflicting with the > read from driver until empty ?? I really don't think so, but there are a few different options you could try? read from driver "xyz" until EOF or read from driver "xyz" until end or just read from driver "xyz" Although I doubt there will be any difference. One point, I've just noticed in your original post that you quoted your script as? "read from driver xxx until empty" ?You don't show any quotes around the driver name xxx, if this is the case the engine may be treating the driver name as a variable and just seeing it as an empty value. I think others have noted that this is one area where the later versions of LiveCode are less forgiving than earlier versions, so if this is the case adding quotes around the driver name may help. Paul From pete at lcsql.com Sun Jan 4 00:44:26 2015 From: pete at lcsql.com (Peter Haworth) Date: Sat, 3 Jan 2015 21:44:26 -0800 Subject: Moving a Group Smoothly In-Reply-To: <54A8BC58.1090705@hindu.org> References: <54A8BC58.1090705@hindu.org> Message-ID: Instead of moving the group, try show/ hide "with visual effect". More info in the dictionary. On Jan 3, 2015 8:07 PM, "Brahmanathaswami" wrote: > This has probably been asked and answered 100 times. > > Because of the iOS limitation on opening substacks (no second windows > allowed) > > I have set up a whole piece of the UI that I would normally put onto a > substack... into a group... > > A "close" button and GUI clean up routine in the preopenstack handler > pushes the group below the visible area to 291,1204 > > I just want the group to "slide up" smoothly and very quickly. But this > script, in the 7.01 IDE performs very badly: > > on mouseUp > lock messages > move group "SettingsDialog" from 291,1204 to 291,351 without waiting > end mouseUp > > The group moves up slowly and "stutters" as it moves. For modern UI/UX we > really need elegant motion graphics behavior across the whole platform. > > Can this be improved? Is perfectly smooth motion even possible now in > LiveCode? I realize it was never so great years ago, but I've been doing so > much server side LC work in the past few years and hardly touched the > presentation layer of app development until recently...and all my in house > production tools apps are very plain/functional designs with zero eye > candy. I thought motion would have much improved by now. What am I doing > wrong? > > (Mac OS X Yosemite) > > > Brahmanathaswami > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jacque at hyperactivesw.com Sun Jan 4 00:53:38 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 03 Jan 2015 23:53:38 -0600 Subject: replaceText problem In-Reply-To: <671455195905.20150103155220@ahsoftware.net> References: <54A764CE.8000108@hyperactivesw.com> <54A836BD.4060506@hyperactivesw.com> <0AB6C359-D3A2-41B9-972E-B8062B60F1D8@gmail.com> <54A83F7F.9010407@hyperactivesw.com> <671455195905.20150103155220@ahsoftware.net> Message-ID: <54A8D562.5000702@hyperactivesw.com> On 1/3/2015 5:52 PM, Mark Wieder wrote: > Breakpoints don't have to be on a line by themselves. Haven't for > several years now. For a while I toyed with having both breakpoints > and tracepoints (log the context without stopping) by passing a > parameter to breakpoints. Interesting, how does that work? I remembered after I posted that I've used "if something then breakpoint", but is there more? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Sun Jan 4 01:12:21 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 04 Jan 2015 00:12:21 -0600 Subject: How to I receive AppleScript? In-Reply-To: <9A0D8415-75AF-4A1A-BE9A-06583D6F6C7E@mac.com> References: <9A0D8415-75AF-4A1A-BE9A-06583D6F6C7E@mac.com> Message-ID: <54A8D9C5.2070701@hyperactivesw.com> On 1/3/2015 8:42 PM, Bill Vlahos wrote: > I can send an AppleScript to another program with LiveCode but I > don?t see any examples of how to receive them. There's an example in the docs under the "appleEvent" entry: on appleEvent theClass,theID if theClass is "misc" and theID is "dosc" then request appleEvent data -- get the content of the AppleEvent do URL ("file:" & it) end if pass appleEvent end appleEvent Put it in the stack script, or somewhere else that is always in the message path. You need to know the class and ID that you want to catch. If you don't already, you could get it this way: on appleEvent theClass,theID answer theClass && theID end appleEvent Then have the other app send an appleEvent to your stack and see what it answers. Once you know the class and ID, you can adjust the handler to work with the ones you want to catch. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Sun Jan 4 01:13:10 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 04 Jan 2015 00:13:10 -0600 Subject: Project Browser vs App Browser (was "script scope variables inexplicably becoming unset") In-Reply-To: References: <54A78CB0.3070900@hyperactivesw.com> Message-ID: <54A8D9F6.8050402@hyperactivesw.com> On 1/3/2015 11:08 PM, Kay C Lan wrote: > wife - "where are the kids?" > me - "Oh they've scrolled off again!" --meaning to depart with out > reference to where they are going Okay, I laughed. :) -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bvlahos at mac.com Sun Jan 4 01:40:51 2015 From: bvlahos at mac.com (Bill Vlahos) Date: Sat, 03 Jan 2015 22:40:51 -0800 Subject: Project Browser vs App Browser (was "script scope variables inexplicably becoming unset") In-Reply-To: References: <54A78CB0.3070900@hyperactivesw.com> <51429859159.20150103085003@ahsoftware.net> <1341455398863.20150103155543@ahsoftware.net> Message-ID: I faced this same dilemma with lcTaskList. I had many great people on this list encourage me to not sweat my coding insecurities. It is what it is and if it works no one cares. You are correct in that there is no way to protect your code if it is unlocked. You either release a feature reduced version as the trial where the ?missing? code is removed (not just commented - removed) You make it shareware/honor system You eliminate the trial version entirely and sell the unprotected version. People buy it or not based on screen shots, demonstrations videos, and/or reputation With lcTaskList I chose #3: eliminate the trial version completely and only sell a version that is unprotected so it works on all versions of LiveCode. Bill Vlahos _________________ InfoWallet (http://www.infowallet.com) is about keeping your important life information with you, accessible, and secure. lcTaskList: (http://www.infowallet.com/lctasklist/index.htm) RunRev lcTaskList Forum: (http://forums.runrev.com/viewforum.php?f=61) > On Jan 3, 2015, at 6:04 PM, Peter Haworth wrote: > > On Sat, Jan 3, 2015 at 3:55 PM, Mark Wieder wrote: > >> That would be awesome. It's much better than the AB or the PB. >> It's kind of like the best parts of both, and then still better than >> that. >> > > To be honest, the only things holding me back are finding a good simple > dual license and embarrassment at revealing my less than stellar coding > over the years :-) > > Nothing I can do about the latter but any help in finding a dual license > template would be most welcome. Plus, how can I ensure people agree to the > license terms since they can easily disable whatever code I put in there to > display it? Or maybe that's too paranoid? > > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From kevin at stallibrass.com Sun Jan 4 02:17:43 2015 From: kevin at stallibrass.com (Stallibrass) Date: Sun, 4 Jan 2015 07:17:43 +0000 Subject: Standalone on Raspberry Pi Message-ID: <48A02468-FE8A-424A-AFA1-F7D502F849D8@stallibrass.com> I also had difficulties building for the Raspberry Pi which I've got round by installing livecode onto the Raspberry and rebuilding the app on that. It works for me using 6.5 but 6.5.1 refuses to open a stack created on a Mac. Just used it to create an auto push notification server as I just can't get that running on Livecode Server! Regards Kevin Stallibrass Sent from my iPad From richmondmathewson at gmail.com Sun Jan 4 03:57:49 2015 From: richmondmathewson at gmail.com (Richmond) Date: Sun, 04 Jan 2015 10:57:49 +0200 Subject: setting a "locked field" to get mouseUp In-Reply-To: References: <54A84DBC.8090609@gmail.com> Message-ID: <54A9008D.1010905@gmail.com> On 03/01/15 23:22, Peter M. Brigham wrote: > On Jan 3, 2015, at 3:14 PM, Richmond wrote: > >> On 03/01/15 21:45, Dr. Hawkins wrote: >>> I've found references to "locked fields" getting mouseUp, but not a >>> definition. I would assume locktext, possibly in conjunction with traversal >>> on, but am not getting anywhere. >>> >>> I'm successfully setting the selectedLine from mouseMove, but would like to >>> be able to click on it. >>> >> I just set up a stack containing a scrolling list field "SLF" >> and 2 other fields: "KLICKT" and "LNVAL" >> >> The field "SLF" contains this script: >> >> on mouseDown >> put the clickLine into fld "KLICKT" >> put the value of the clickLine into fld "LNVAL" >> end mouseDown >> >> According to the prefs palette for fld "SLF" the text is locked. >> >> ----------------------------------------------------------------------- >> >> Then I set up 2 buttons; "Lock Fields" and "unLock Fields" containing these scripts respectively; >> >> on mouseUp >> set the lockLocation of fld "SLF" to true >> set the lockLocation of fld "KLICKT" to true >> set the lockLocation of fld "LNVAL" to true >> end mouseUp >> >> on mouseUp >> set the lockLocation of fld "SLF" to false >> set the lockLocation of fld "KLICKT" to false >> set the lockLocation of fld "LNVAL" to false >> end mouseUp >> >> The script in fld "SLF" did what is was meant to do regardless of whether the fields >> were locked or not. > A field will receive mouseup messages if its locktext = true, or if the commandkey is down or the controlkey is down or it's a right-click. Other properties (traversalon, autohilite, lockLoc) don't affect the field's ability to trigger a mouseup message. > > -- Peter > > New version here: https://www.dropbox.com/sh/ja47l87gg87sn0q/AAAIj99kEQVOb8ev3jz8C5ORa?dl=0 As per suggestion by Klaus. 2 buttons: "LockText" and "unLockText"; they don't seem to make ANY difference whatsoever to the 'clickability' of the textLines. Richmond. From richmondmathewson at gmail.com Sun Jan 4 04:02:09 2015 From: richmondmathewson at gmail.com (Richmond) Date: Sun, 04 Jan 2015 11:02:09 +0200 Subject: Whiteboard animations In-Reply-To: <1420331577224-4687298.post@n4.nabble.com> References: <095C0B3D-7D77-4572-8017-E542FDE3D3A9@earthednet.org> <1420331577224-4687298.post@n4.nabble.com> Message-ID: <54A90191.8070208@gmail.com> On 04/01/15 02:32, tbodine wrote: > Hi Bill. > > There's no native import support for SVG right now. I know the graphics > engine was overhauled using the Skia library, which should add a lot of > capabilities like SVG, but I don't see any access to SVG import from the > IDE. > > The LC roadmap only says: "Vector Shape Object -- Use widget framework to > write this control" Aah . . . the roadmap . . . :) The roadmap has been out of sight (out of mind?) recently . . . I could make several more b*tchy remarks in that direction. > > So if SVG is part of the Vector Shape capability, then we're waiting for > widgets (LC 8). > > Here's some discussion of this on Stack Overflow: > http://stackoverflow.com/questions/16521267/livecode-how-to-use-svg-images-on-cards > > Tom Bodine > > Calling Richard Gaskin . . . It would be "rather nice" if RunRev could issue a list of all the things they have achieved on the Kickstarter roadmap, so that we who contributed could feel "all warm and cuddly" that we invested in something that is coming to fruition and that RunRev are putting their money where their mouth is. Richmond. From shawnlivecode at gmail.com Sun Jan 4 08:09:27 2015 From: shawnlivecode at gmail.com (Shawn Blc) Date: Sun, 4 Jan 2015 07:09:27 -0600 Subject: Whiteboard animations In-Reply-To: <54A90191.8070208@gmail.com> References: <095C0B3D-7D77-4572-8017-E542FDE3D3A9@earthednet.org> <1420331577224-4687298.post@n4.nabble.com> <54A90191.8070208@gmail.com> Message-ID: It'd be nice if the RunRev team would post a weekly blog upload on what exactly is taking place behind the scenes and perhaps every month give us a little taste of features that will be in the upcoming LC8 release. On Sun, Jan 4, 2015 at 3:02 AM, Richmond wrote: > On 04/01/15 02:32, tbodine wrote: > >> Hi Bill. >> >> There's no native import support for SVG right now. I know the graphics >> engine was overhauled using the Skia library, which should add a lot of >> capabilities like SVG, but I don't see any access to SVG import from the >> IDE. >> >> The LC roadmap only says: "Vector Shape Object -- Use widget framework to >> write this control" >> > > Aah . . . the roadmap . . . :) > > The roadmap has been out of sight (out of mind?) recently . . . > > I could make several more b*tchy remarks in that direction. > > >> So if SVG is part of the Vector Shape capability, then we're waiting for >> widgets (LC 8). >> >> Here's some discussion of this on Stack Overflow: >> http://stackoverflow.com/questions/16521267/livecode- >> how-to-use-svg-images-on-cards >> >> Tom Bodine >> >> >> > Calling Richard Gaskin . . . > > It would be "rather nice" if RunRev could issue a list of all the things > they have > achieved on the Kickstarter roadmap, so that we who contributed could feel > "all warm and cuddly" that we invested in something that is coming to > fruition > and that RunRev are putting their money where their mouth is. > > Richmond. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dochawk at gmail.com Sun Jan 4 10:59:23 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Sun, 4 Jan 2015 07:59:23 -0800 Subject: Project Browser vs App Browser (was "script scope variables inexplicably becoming unset") In-Reply-To: References: <54A78CB0.3070900@hyperactivesw.com> <51429859159.20150103085003@ahsoftware.net> <1341455398863.20150103155543@ahsoftware.net> Message-ID: On Sat, Jan 3, 2015 at 6:04 PM, Peter Haworth wrote: > Nothing I can do about the latter but any help in finding a dual license > template would be most welcome. Plus, how can I ensure people agree to the > license terms since they can easily disable whatever code I put in there to > display it? Or maybe that's too paranoid? > I'm not sure it's something for which dual licensing makes sense. Your product basically "does something." and then it is done. People pay for getting that something done. LiveCode, as an example, sticks around with the finished product--by using a viral license on the community version, the license attaches to the finished code, which itself must remain under that license. Livecode hopes to keep its commercial market, and get more overall exposure, leading to more commercial market. It also hopes to get back changes/fixes/improvements that can also go into the commercial code. But the economic key is that the community version cannot substitute for the commercial. With a tool or utility that does not necessarily become part of the end program, I don't see the benefit to you. For that matter, what would you be offering in the commercial version other than support and hanging around to write more useful things? Your SQL tools, though, *would* make it into the commercial product. As such, a commercial license would be needed to legally ship. Anyway, there are two broad classes of license: public and viral. Public licenses pretty much let people do whatever with the code, including closing it back up, as long as the copyright is acknowledged. Viral licenses, such as the GPL, attach themselves to any changes in the code, keeping the changes open-sourced (at least if the changes are passed on to any third party). Public licenses (MIT/BSD/X etc.) make no sense if you're trying to sell the product. They make sense when you need the *existence* of the product--Apple & Darwin, IBM & Apache, and so forth. It cost less for IBM to fund/contribute to a webserver than to keep its own. Similarly for its support of Linux. But IBM's product isn't "webserver software" but "served pages". The price it can charge doesn't change based upon the underlying server, and it wouldn't be harmed by Sun repackaging Apache as "Navajo" and selling it at a price. Dual licenses are useful when you are going to sell an enhanced version (StarOffice/OpenOffice) and can get market share/traction/code back. The other big example is Netscape/Mozilla. Both illustrate what can go wrong: folks getting fed up with the founders and wandering off with the virally licensed version--and making changes that *don't* make it back into the commercial product. LiveCode itself doesn't face this risk, as a salable standalone cannot be made from the community version. I can't think of a successful dual-license offhand, but there probably are some. Viral licenses are useful when you need or want the thing to exist, and don't want someone else to be able to make a better version without sharing it back to you. Some can be used with other licenses, and only try to control changes to their own code, while others try to glom on to and absorbe other code into their licenses (the GPL's "all your code are belong to us"). Hmm, that was more than I meant to write. If you do a web search for "hawkins economics open source software" you'll probably find a pre-publication version of my paper. I can't hand it out anymore due to the copyright assignment, but it was the seminal paper on the actual economics of open source software. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From irog at mac.com Sun Jan 4 11:00:07 2015 From: irog at mac.com (Roger Guay) Date: Sun, 04 Jan 2015 09:00:07 -0700 Subject: Moving a Group Smoothly In-Reply-To: References: <54A8BC58.1090705@hindu.org> Message-ID: I registered a bug report about a month ago about this method (lock/unlock with visual dissolve) causing random screen flashing in Yosemite. At the time, I did not get much confirmation from others. I?m still very much wrestling with this problem which appeared suddenly when I upgraded to Yosemite and with all recent versions of LiveCode. Roger > On Jan 3, 2015, at 10:44 PM, Peter Haworth wrote: > > Instead of moving the group, try show/ hide "with visual effect". More info > in the dictionary. > On Jan 3, 2015 8:07 PM, "Brahmanathaswami" wrote: > >> This has probably been asked and answered 100 times. >> >> Because of the iOS limitation on opening substacks (no second windows >> allowed) >> >> I have set up a whole piece of the UI that I would normally put onto a >> substack... into a group... >> >> A "close" button and GUI clean up routine in the preopenstack handler >> pushes the group below the visible area to 291,1204 >> >> I just want the group to "slide up" smoothly and very quickly. But this >> script, in the 7.01 IDE performs very badly: >> >> on mouseUp >> lock messages >> move group "SettingsDialog" from 291,1204 to 291,351 without waiting >> end mouseUp >> >> The group moves up slowly and "stutters" as it moves. For modern UI/UX we >> really need elegant motion graphics behavior across the whole platform. >> >> Can this be improved? Is perfectly smooth motion even possible now in >> LiveCode? I realize it was never so great years ago, but I've been doing so >> much server side LC work in the past few years and hardly touched the >> presentation layer of app development until recently...and all my in house >> production tools apps are very plain/functional designs with zero eye >> candy. I thought motion would have much improved by now. What am I doing >> wrong? >> >> (Mac OS X Yosemite) >> >> >> Brahmanathaswami >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dochawk at gmail.com Sun Jan 4 11:00:56 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Sun, 4 Jan 2015 08:00:56 -0800 Subject: replaceText problem In-Reply-To: References: <54A764CE.8000108@hyperactivesw.com> <54A836BD.4060506@hyperactivesw.com> <0AB6C359-D3A2-41B9-972E-B8062B60F1D8@gmail.com> <54A83F7F.9010407@hyperactivesw.com> Message-ID: On Sat, Jan 3, 2015 at 2:01 PM, Peter M. Brigham wrote: > For me, even plain regex is like a trip to the dentist. With no novocaine. > I understand that it's powerful, but I have rarely come across something I > couldn't do in livecode less painfully. > Plain regex is wonderful! :) Quite seriously, I rarely get through a week at my law office without using it . . . -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From pete at lcsql.com Sun Jan 4 11:50:28 2015 From: pete at lcsql.com (Peter Haworth) Date: Sun, 4 Jan 2015 08:50:28 -0800 Subject: Project Browser vs App Browser (was "script scope variables inexplicably becoming unset") In-Reply-To: References: <54A78CB0.3070900@hyperactivesw.com> <51429859159.20150103085003@ahsoftware.net> <1341455398863.20150103155543@ahsoftware.net> Message-ID: Thanks for the input Bill. I think it would be hard for me to sell lcStackBrowser on the basis of video/screenshots, although I do have some old videos of the product in use. It has so many features and functionality that the video would be too long or I'd have to come up with fairly large number of short videos. I think perhaps the free, feature reduced version might be the way to go but deciding which ones to leave out would be the challenge there. I'll figure something out. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Sat, Jan 3, 2015 at 10:40 PM, Bill Vlahos wrote: > I faced this same dilemma with lcTaskList. > > I had many great people on this list encourage me to not sweat my coding > insecurities. It is what it is and if it works no one cares. > You are correct in that there is no way to protect your code if it is > unlocked. > You either release a feature reduced version as the trial where the > ?missing? code is removed (not just commented - removed) > You make it shareware/honor system > You eliminate the trial version entirely and sell the unprotected version. > People buy it or not based on screen shots, demonstrations videos, and/or > reputation > With lcTaskList I chose #3: eliminate the trial version completely and > only sell a version that is unprotected so it works on all versions of > LiveCode. > > Bill Vlahos > _________________ > InfoWallet (http://www.infowallet.com) is about keeping your important > life information with you, accessible, and secure. > lcTaskList: (http://www.infowallet.com/lctasklist/index.htm) > RunRev lcTaskList Forum: (http://forums.runrev.com/viewforum.php?f=61) > > > On Jan 3, 2015, at 6:04 PM, Peter Haworth wrote: > > > > On Sat, Jan 3, 2015 at 3:55 PM, Mark Wieder > wrote: > > > >> That would be awesome. It's much better than the AB or the PB. > >> It's kind of like the best parts of both, and then still better than > >> that. > >> > > > > To be honest, the only things holding me back are finding a good simple > > dual license and embarrassment at revealing my less than stellar coding > > over the years :-) > > > > Nothing I can do about the latter but any help in finding a dual license > > template would be most welcome. Plus, how can I ensure people agree to > the > > license terms since they can easily disable whatever code I put in there > to > > display it? Or maybe that's too paranoid? > > > > Pete > > lcSQL Software > > Home of lcStackBrowser and > > SQLiteAdmin > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pete at lcsql.com Sun Jan 4 11:58:06 2015 From: pete at lcsql.com (Peter Haworth) Date: Sun, 4 Jan 2015 08:58:06 -0800 Subject: Project Browser vs App Browser (was "script scope variables inexplicably becoming unset") In-Reply-To: References: <54A78CB0.3070900@hyperactivesw.com> <51429859159.20150103085003@ahsoftware.net> <1341455398863.20150103155543@ahsoftware.net> Message-ID: Thanks for this explanation, just demonstrates how little I know about licensing in the open source world! I get what you're saying about lcStackbrowser - it doesn't persist beyond the development stage and none of its code is added to whatever executable is created using it. But I still need some sort of protection against someone simply copying code out of it and inserting it into their own products, that's where it gets hazy for me. If my license is "open source", does that mean they would have to release their product as "open source" since it includes my open source code? It's this type of thing that has prevented me form going open source up to now. It's a couple of minutes work for me to remove the password protection from the code but much more time required to figure out a good license and how to deal with not having a free demo any more. But I am getting more and more requests from Community Edition users to make it available to them so I think I need to bite the bullet. OK Google - "How do I sell an open source product" Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Sun, Jan 4, 2015 at 7:59 AM, Dr. Hawkins wrote: > On Sat, Jan 3, 2015 at 6:04 PM, Peter Haworth wrote: > > > Nothing I can do about the latter but any help in finding a dual license > > template would be most welcome. Plus, how can I ensure people agree to > the > > license terms since they can easily disable whatever code I put in there > to > > display it? Or maybe that's too paranoid? > > > > I'm not sure it's something for which dual licensing makes sense. > > Your product basically "does something." and then it is done. People pay > for getting that something done. > > LiveCode, as an example, sticks around with the finished product--by using > a viral license on the community version, the license attaches to the > finished code, which itself must remain under that license. > > Livecode hopes to keep its commercial market, and get more overall > exposure, leading to more commercial market. It also hopes to get back > changes/fixes/improvements that can also go into the commercial code. > > But the economic key is that the community version cannot substitute for > the commercial. > > With a tool or utility that does not necessarily become part of the end > program, I don't see the benefit to you. For that matter, what would you > be offering in the commercial version other than support and hanging around > to write more useful things? > > Your SQL tools, though, *would* make it into the commercial product. As > such, a commercial license would be needed to legally ship. > > > Anyway, there are two broad classes of license: public and viral. Public > licenses pretty much let people do whatever with the code, including > closing it back up, as long as the copyright is acknowledged. Viral > licenses, such as the GPL, attach themselves to any changes in the code, > keeping the changes open-sourced (at least if the changes are passed on to > any third party). > > Public licenses (MIT/BSD/X etc.) make no sense if you're trying to sell the > product. They make sense when you need the *existence* of the > product--Apple & Darwin, IBM & Apache, and so forth. It cost less for IBM > to fund/contribute to a webserver than to keep its own. Similarly for its > support of Linux. But IBM's product isn't "webserver software" but "served > pages". The price it can charge doesn't change based upon the underlying > server, and it wouldn't be harmed by Sun repackaging Apache as "Navajo" and > selling it at a price. > > Dual licenses are useful when you are going to sell an enhanced version > (StarOffice/OpenOffice) and can get market share/traction/code back. The > other big example is Netscape/Mozilla. Both illustrate what can go wrong: > folks getting fed up with the founders and wandering off with the virally > licensed version--and making changes that *don't* make it back into the > commercial product. LiveCode itself doesn't face this risk, as a salable > standalone cannot be made from the community version. I can't think of a > successful dual-license offhand, but there probably are some. > > Viral licenses are useful when you need or want the thing to exist, and > don't want someone else to be able to make a better version without sharing > it back to you. Some can be used with other licenses, and only try to > control changes to their own code, while others try to glom on to and > absorbe other code into their licenses (the GPL's "all your code are belong > to us"). > > Hmm, that was more than I meant to write. If you do a web search for > "hawkins economics open source software" you'll probably find a > pre-publication version of my paper. I can't hand it out anymore due to > the copyright assignment, but it was the seminal paper on the actual > economics of open source software. > > -- > Dr. Richard E. Hawkins, Esq. > (702) 508-8462 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bdrunrev at gmail.com Sun Jan 4 12:11:43 2015 From: bdrunrev at gmail.com (Bernard Devlin) Date: Sun, 4 Jan 2015 17:11:43 +0000 Subject: Project Browser vs App Browser (was "script scope variables inexplicably becoming unset") In-Reply-To: References: <54A78CB0.3070900@hyperactivesw.com> <51429859159.20150103085003@ahsoftware.net> <1341455398863.20150103155543@ahsoftware.net> Message-ID: Hi Peter, I've never looked at your product (but following this discussion, I think I must). I'm confused though by this statement: Can't the Community Edition users just use the paid version of your tool? Isn't the only difference with LC "editions" that the CE cannot create password-protected stacks? Surely they can run stacks which are password-protected. Bernard On Sun, Jan 4, 2015 at 4:58 PM, Peter Haworth wrote: > I am getting more and more requests from Community Edition users to > make it available to them so I think I need to bite the bullet. > From bdrunrev at gmail.com Sun Jan 4 12:12:44 2015 From: bdrunrev at gmail.com (Bernard Devlin) Date: Sun, 4 Jan 2015 17:12:44 +0000 Subject: Project Browser vs App Browser (was "script scope variables inexplicably becoming unset") In-Reply-To: References: <54A78CB0.3070900@hyperactivesw.com> <51429859159.20150103085003@ahsoftware.net> <1341455398863.20150103155543@ahsoftware.net> Message-ID: by "confused though by this statement: " I mean "confused by the statement below quoted by me". On Sun, Jan 4, 2015 at 5:11 PM, Bernard Devlin wrote: > Hi Peter, > > I've never looked at your product (but following this discussion, I think > I must). > > I'm confused though by this statement: Can't the Community Edition users > just use the paid version of your tool? Isn't the only difference with LC > "editions" that the CE cannot create password-protected stacks? Surely > they can run stacks which are password-protected. > > Bernard > > On Sun, Jan 4, 2015 at 4:58 PM, Peter Haworth wrote: > >> I am getting more and more requests from Community Edition users to >> make it available to them so I think I need to bite the bullet. >> > From pete at lcsql.com Sun Jan 4 12:18:21 2015 From: pete at lcsql.com (Peter Haworth) Date: Sun, 4 Jan 2015 09:18:21 -0800 Subject: Project Browser vs App Browser (was "script scope variables inexplicably becoming unset") In-Reply-To: References: <54A78CB0.3070900@hyperactivesw.com> <51429859159.20150103085003@ahsoftware.net> <1341455398863.20150103155543@ahsoftware.net> Message-ID: Hi Bernard, Community Edition can't load password protected stacks because that would break the rules of open source, so the password encryption/decryption routines are not compiled into the Community Edition. I believe that is the only functional difference between the Community Edition and the Commercial Edition. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Sun, Jan 4, 2015 at 9:11 AM, Bernard Devlin wrote: > Hi Peter, > > I've never looked at your product (but following this discussion, I think I > must). > > I'm confused though by this statement: Can't the Community Edition users > just use the paid version of your tool? Isn't the only difference with LC > "editions" that the CE cannot create password-protected stacks? Surely > they can run stacks which are password-protected. > > Bernard > > On Sun, Jan 4, 2015 at 4:58 PM, Peter Haworth wrote: > > > I am getting more and more requests from Community Edition users to > > make it available to them so I think I need to bite the bullet. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From richmondmathewson at gmail.com Sun Jan 4 12:45:26 2015 From: richmondmathewson at gmail.com (Richmond) Date: Sun, 04 Jan 2015 19:45:26 +0200 Subject: clickWord? Message-ID: <54A97C36.40008@gmail.com> Humpf . . . There I with a locked scrolling list field and I want to click on the word "glaikit" in line 3, and if I use 'clickText' I get the whole sentence "He's a muckle glaikit gowk", and if I use 'clickChunk' I get this 'char 24 to 49 of field 1' which is no good either. Now, if Livecode had 'clickWord' I would be able to get "glaikit" 'just like that'. ---------------------------------------------------------------------------------------------------------- I am well aware of this: http://www.sonsothunder.com/devres/livecode/tips/mous003.htm which does provide some sort of a work-around, but does have this rider: " if there is any trailing punctuation, this is returned as well" mind you, there are some of us who are getting a peerie bit tired of endless work-arounds. Richmond. From richmondmathewson at gmail.com Sun Jan 4 12:56:28 2015 From: richmondmathewson at gmail.com (Richmond) Date: Sun, 04 Jan 2015 19:56:28 +0200 Subject: [OT] Old book Message-ID: <54A97ECC.2040102@gmail.com> Possibly interesting: http://files.eric.ed.gov/fulltext/ED387951.pdf "Hypermedia in the Classroom" Richmond. From paul at researchware.com Sun Jan 4 13:02:45 2015 From: paul at researchware.com (Paul Dupuis) Date: Sun, 04 Jan 2015 13:02:45 -0500 Subject: clickWord? In-Reply-To: <54A97C36.40008@gmail.com> References: <54A97C36.40008@gmail.com> Message-ID: <54A98045.9080501@researchware.com> On 1/4/2015 12:45 PM, Richmond wrote: > Humpf . . . > > There I with a locked scrolling list field and I want to click on the > word "glaikit" in line > 3, and if I use 'clickText' I get the whole sentence "He's a muckle > glaikit gowk", > and if I use 'clickChunk' I get this 'char 24 to 49 of field 1' which > is no good either. > > Now, if Livecode had 'clickWord' I would be able to get "glaikit" > 'just like that'. > ---------------------------------------------------------------------------------------------------------- > What version of LiveCode are you using. The behavior you are describing does not match the dictionary entries nor the observed behavior of the either the clickText of clickChunk function in LC 6.6.5 for example. They return only the clicked word in my test stack. You must have the text "He's a muckle glaikit gowk" set as a link (i.e. a text group)? From dunbarx at aol.com Sun Jan 4 13:03:18 2015 From: dunbarx at aol.com (dunbarx at aol.com) Date: Sun, 4 Jan 2015 13:03:18 -0500 Subject: clickWord? In-Reply-To: <54A97C36.40008@gmail.com> References: <54A97C36.40008@gmail.com> Message-ID: <8D1F65FDADDE3EE-71C8-A9570@webmail-vm004.sysops.aol.com> Richmond. Would the workaround be something like: on mouseup put the number of words of char 1 to word 4 of the clickchunk of me into fld 2 end mouseup Craig -----Original Message----- From: Richmond To: use >> How to use LiveCode Sent: Sun, Jan 4, 2015 12:46 pm Subject: clickWord? Humpf . . . There I with a locked scrolling list field and I want to click on the word "glaikit" in line 3, and if I use 'clickText' I get the whole sentence "He's a muckle glaikit gowk", and if I use 'clickChunk' I get this 'char 24 to 49 of field 1' which is no good either. Now, if Livecode had 'clickWord' I would be able to get "glaikit" 'just like that'. ---------------------------------------------------------------------------------------------------------- I am well aware of this: http://www.sonsothunder.com/devres/livecode/tips/mous003.htm which does provide some sort of a work-around, but does have this rider: " if there is any trailing punctuation, this is returned as well" mind you, there are some of us who are getting a peerie bit tired of endless work-arounds. Richmond. _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From bonnmike at gmail.com Sun Jan 4 13:03:41 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Sun, 4 Jan 2015 11:03:41 -0700 Subject: clickWord? In-Reply-To: <54A97C36.40008@gmail.com> References: <54A97C36.40008@gmail.com> Message-ID: if listbehavior is toggled off, the clicktext returns the word clicked for me, sans punctuation. Of course, this means there is no hilite, so you'd have to "workaround" that problem and use the clickchunk to hilite it if needed. On Sun, Jan 4, 2015 at 10:45 AM, Richmond wrote: > Humpf . . . > > There I with a locked scrolling list field and I want to click on the word > "glaikit" in line > 3, and if I use 'clickText' I get the whole sentence "He's a muckle > glaikit gowk", > and if I use 'clickChunk' I get this 'char 24 to 49 of field 1' which is > no good either. > > Now, if Livecode had 'clickWord' I would be able to get "glaikit" 'just > like that'. > ------------------------------------------------------------ > ---------------------------------------------- > I am well aware of this: > > http://www.sonsothunder.com/devres/livecode/tips/mous003.htm > > which does provide some sort of a work-around, but does have this rider: > > " if there is any trailing punctuation, this is returned as well" > > mind you, there are some of us who are getting a peerie bit tired of > endless work-arounds. > > Richmond. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From richmondmathewson at gmail.com Sun Jan 4 13:12:44 2015 From: richmondmathewson at gmail.com (Richmond) Date: Sun, 04 Jan 2015 20:12:44 +0200 Subject: clickWord? In-Reply-To: References: <54A97C36.40008@gmail.com> Message-ID: <54A9829C.2060706@gmail.com> On 04/01/15 20:03, Mike Bonner wrote: > if listbehavior is toggled off, the clicktext returns the word clicked for > me, sans punctuation. Of course, this means there is no hilite, so you'd > have to "workaround" that problem and use the clickchunk to hilite it if > needed. Indeed it does :) Thank you so much for pointing that out. Richmond. > On Sun, Jan 4, 2015 at 10:45 AM, Richmond > wrote: > >> Humpf . . . >> >> There I with a locked scrolling list field and I want to click on the word >> "glaikit" in line >> 3, and if I use 'clickText' I get the whole sentence "He's a muckle >> glaikit gowk", >> and if I use 'clickChunk' I get this 'char 24 to 49 of field 1' which is >> no good either. >> >> Now, if Livecode had 'clickWord' I would be able to get "glaikit" 'just >> like that'. >> ------------------------------------------------------------ >> ---------------------------------------------- >> I am well aware of this: >> >> http://www.sonsothunder.com/devres/livecode/tips/mous003.htm >> >> which does provide some sort of a work-around, but does have this rider: >> >> " if there is any trailing punctuation, this is returned as well" >> >> mind you, there are some of us who are getting a peerie bit tired of >> endless work-arounds. >> >> Richmond. >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Sun Jan 4 14:22:42 2015 From: richmondmathewson at gmail.com (Richmond) Date: Sun, 04 Jan 2015 21:22:42 +0200 Subject: clickWord? In-Reply-To: <8D1F65FDADDE3EE-71C8-A9570@webmail-vm004.sysops.aol.com> References: <54A97C36.40008@gmail.com> <8D1F65FDADDE3EE-71C8-A9570@webmail-vm004.sysops.aol.com> Message-ID: <54A99302.1010600@gmail.com> On 04/01/15 20:03, dunbarx at aol.com wrote: > Richmond. > > > Would the workaround be something like: > > > > on mouseup > put the number of words of char 1 to word 4 of the clickchunk of me into fld 2 > end mouseup > > > Craig > > > It turns out that if one clicks "listBehaviour" (or, possibly "listBehavior" LOL) so that it is off words that are clicked on do work. Richmond. From dixonja at hotmail.co.uk Sun Jan 4 14:34:06 2015 From: dixonja at hotmail.co.uk (John Dixon) Date: Sun, 4 Jan 2015 19:34:06 +0000 Subject: clickWord? In-Reply-To: <54A99302.1010600@gmail.com> References: <54A97C36.40008@gmail.com>, <8D1F65FDADDE3EE-71C8-A9570@webmail-vm004.sysops.aol.com>, <54A99302.1010600@gmail.com> Message-ID: The 'mouseText' will get the word under the mouse pointer... well, if 'listbehavior' is turned off..:-) > Date: Sun, 4 Jan 2015 21:22:42 +0200 > From: richmondmathewson at gmail.com > To: use-livecode at lists.runrev.com > Subject: Re: clickWord? > > On 04/01/15 20:03, dunbarx at aol.com wrote: > > Richmond. > > > > > > Would the workaround be something like: > > > > > > > > on mouseup > > put the number of words of char 1 to word 4 of the clickchunk of me into fld 2 > > end mouseup > > > > > > Craig > > > > > > > It turns out that if one clicks "listBehaviour" (or, possibly > "listBehavior" LOL) so that it > is off words that are clicked on do work. > > Richmond. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Sun Jan 4 14:36:59 2015 From: richmondmathewson at gmail.com (Richmond) Date: Sun, 04 Jan 2015 21:36:59 +0200 Subject: clickWord? In-Reply-To: References: <54A97C36.40008@gmail.com>, <8D1F65FDADDE3EE-71C8-A9570@webmail-vm004.sysops.aol.com>, <54A99302.1010600@gmail.com> Message-ID: <54A9965B.3000800@gmail.com> On 04/01/15 21:34, John Dixon wrote: > The 'mouseText' will get the word under the mouse pointer... well, if 'listbehavior' is turned off..:-) Thanks: well that looks as if 'mouseText' and 'clickLine' are functional equivalents. Richmond. > >> Date: Sun, 4 Jan 2015 21:22:42 +0200 >> From: richmondmathewson at gmail.com >> To: use-livecode at lists.runrev.com >> Subject: Re: clickWord? >> >> On 04/01/15 20:03, dunbarx at aol.com wrote: >>> Richmond. >>> >>> >>> Would the workaround be something like: >>> >>> >>> >>> on mouseup >>> put the number of words of char 1 to word 4 of the clickchunk of me into fld 2 >>> end mouseup >>> >>> >>> Craig >>> >>> >>> >> It turns out that if one clicks "listBehaviour" (or, possibly >> "listBehavior" LOL) so that it >> is off words that are clicked on do work. >> >> Richmond. >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pete at lcsql.com Sun Jan 4 15:25:13 2015 From: pete at lcsql.com (Peter Haworth) Date: Sun, 4 Jan 2015 12:25:13 -0800 Subject: replaceText problem In-Reply-To: References: Message-ID: Hi Kay, To be honest, I've been through so many iterations of this that I don't remember for sure if the command I cited in my post was exactly what I had in the script at the time. I'd be almost certain that I had a "put" in there since I knew it was a function, but it's very possible that the extraneous "(" was there and the runtime error was because it was an invalid regex. I had included ?(im) at one point (it's back in there now) so I probably didn't quite get rid of the parens. Back on the need for a put or a get with a function, it's interesting to note that you don't have to do that in the message box. Executing - replaceText("abc","c","z") - in the message box puts "abz" into the message box result area. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Sat, Jan 3, 2015 at 8:13 PM, Kay C Lan wrote: > On Sat, Jan 3, 2015 at 10:41 AM, Peter Haworth wrote: > > > > > replaceText(pScript,"(^\s*breakpoint$"," ") > > > > Hi Peter, > > If this is exactly how your script is written then I see two problems: > > 1) you need to actually put the result into something so: > > put replaceText(pScript,"(?im)^\s+breakpoint$","--BREAKPOINT") into > tUpdatedScript > > (it's one of my pet peeves with the Docs; the examples given are typically > unworkable as a straight Copy and Paste into a script - but that's another > rant] > > replaceText - a function, does not work like replace - a command > > 2) you have an opening ( prior to your ^. I think you meant to have (?m) or > even better (?im) so it's case insensitive and works multi-line but in your > troubleshooting maybe the ( got left behind. > > I do what you do but instead of replacing the 'breakpoint' with nothing I > merely comment it out and make it STANDOUT - as shown in the code above. > Usually my hard breakpoints have ended up in their location because of some > long hard troubleshooting so I don't wish to loose them. if I ever need to > return to a handler for more troubleshooting, if there is the odd -- > BREAKPOINT in there then the first thing I do is uncomment them and step > through and see what the variables are telling me. > > HTH > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pmbrig at gmail.com Sun Jan 4 15:35:40 2015 From: pmbrig at gmail.com (Peter M. Brigham) Date: Sun, 4 Jan 2015 15:35:40 -0500 Subject: clickWord? In-Reply-To: <54A9965B.3000800@gmail.com> References: <54A97C36.40008@gmail.com>, <8D1F65FDADDE3EE-71C8-A9570@webmail-vm004.sysops.aol.com>, <54A99302.1010600@gmail.com> <54A9965B.3000800@gmail.com> Message-ID: On Jan 4, 2015, at 2:36 PM, Richmond wrote: > On 04/01/15 21:34, John Dixon wrote: >> The 'mouseText' will get the word under the mouse pointer... well, if 'listbehavior' is turned off..:-) > > Thanks: well that looks as if 'mouseText' and 'clickLine' are functional equivalents. If listBehavior [or listBehaviour, if you insist :-)] = true then mouseText and the clickText both give the text of the line, and with listBehavior = false, the mouseText gives the *word* under the cursor, and the clicktext will give the same. (ListBehavior is designed to streamline picking a line from a list, so the field messages return whole lines.) But no matter what listBehavior is set to, mousetext = clicktext, the difference being whether a click is necessary to trigger it. However, the clickLine (and the mouseLine) gives something like "line 5 of fld 2". You could do value(the clickLine) to get the text of the line, sometimes useful if listBehavior = false. Similarly for the mouseChunk and the clickChunk --> "char 56 to 61 of fld 2". -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig From dochawk at gmail.com Sun Jan 4 17:11:02 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Sun, 4 Jan 2015 14:11:02 -0800 Subject: group id exists but yet not . . . Message-ID: put exists(group id 1004 of group id 1111 of card id 1016 of stack "nv") && exists(group id 1004 of stack "nv") yields true false Huh? Isn't the id and stack unique and sufficient? -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From pmbrig at gmail.com Sun Jan 4 17:36:56 2015 From: pmbrig at gmail.com (Peter M. Brigham) Date: Sun, 4 Jan 2015 17:36:56 -0500 Subject: group id exists but yet not . . . In-Reply-To: References: Message-ID: <10173A8A-4488-4169-85D8-DCD31A55BE05@gmail.com> On Jan 4, 2015, at 5:11 PM, Dr. Hawkins wrote: > put exists(group id 1004 of group id 1111 of card id 1016 of stack "nv") && > exists(group id 1004 of stack "nv") > > yields > > true false > > Huh? > > Isn't the id and stack unique and sufficient? Doing the equivalent on a control in one of my stacks yields "true true". The id and stack should be sufficient. Not sure what's going on. My setup: 2008 MacBook, OSX 10.7.4 (Lion), Rev Studio 5.5.1, build 1487 (still using an old version). -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig From pmbrig at gmail.com Sun Jan 4 17:41:08 2015 From: pmbrig at gmail.com (Peter M. Brigham) Date: Sun, 4 Jan 2015 17:41:08 -0500 Subject: group id exists but yet not . . . In-Reply-To: References: Message-ID: <7E508649-C575-4A6E-AAF6-095ED2E52A63@gmail.com> On Jan 4, 2015, at 5:11 PM, Dr. Hawkins wrote: > put exists(group id 1004 of group id 1111 of card id 1016 of stack "nv") && > exists(group id 1004 of stack "nv") > > yields > > true false > > Huh? > > Isn't the id and stack unique and sufficient? Just occurred to me, if the group is not placed on the card the handler is called from, this might be the problem. What happens if you substitute "background" for "group"? eg put exists(background id 1004 of background id 1111 of card id 1016 of stack "nv") && exists(background id 1004 of stack "nv") The background token will give what you want no matter what, but if the group is not placed on the current card, "group xxx" will not. -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig From scott at tactilemedia.com Sun Jan 4 17:43:43 2015 From: scott at tactilemedia.com (Scott Rossi) Date: Sun, 04 Jan 2015 14:43:43 -0800 Subject: group id exists but yet not . . . In-Reply-To: References: Message-ID: Is the group on the current (visible) card? If not, then exists will be false. Otherwise, the id is enough when the group is present on the current card. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 1/4/15, 2:11 PM, "Dr. Hawkins" wrote: >put exists(group id 1004 of group id 1111 of card id 1016 of stack "nv") >&& >exists(group id 1004 of stack "nv") > >yields > > true false > >Huh? > >Isn't the id and stack unique and sufficient? >-- >Dr. Richard E. Hawkins, Esq. >(702) 508-8462 >_______________________________________________ >use-livecode mailing list >use-livecode at lists.runrev.com >Please visit this url to subscribe, unsubscribe and manage your >subscription preferences: >http://lists.runrev.com/mailman/listinfo/use-livecode From scott at tactilemedia.com Sun Jan 4 17:54:42 2015 From: scott at tactilemedia.com (Scott Rossi) Date: Sun, 04 Jan 2015 14:54:42 -0800 Subject: group id exists but yet not . . . In-Reply-To: References: Message-ID: OK, I?m mistaken, exists should find the group even when not on the current card. When the group reference is combined with the stack reference, it works. It also works as the following, which makes sense. put exists(grp id 1006 of this stack) Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 1/4/15, 2:43 PM, "Scott Rossi" wrote: >Is the group on the current (visible) card? > >If not, then exists will be false. Otherwise, the id is enough when the >group is present on the current card. > >Regards, > >Scott Rossi >Creative Director >Tactile Media, UX/UI Design > > > > >On 1/4/15, 2:11 PM, "Dr. Hawkins" wrote: > >>put exists(group id 1004 of group id 1111 of card id 1016 of stack "nv") >>&& >>exists(group id 1004 of stack "nv") >> >>yields >> >> true false >> >>Huh? >> >>Isn't the id and stack unique and sufficient? >>-- >>Dr. Richard E. Hawkins, Esq. >>(702) 508-8462 >>_______________________________________________ >>use-livecode mailing list >>use-livecode at lists.runrev.com >>Please visit this url to subscribe, unsubscribe and manage your >>subscription preferences: >>http://lists.runrev.com/mailman/listinfo/use-livecode > > > >_______________________________________________ >use-livecode mailing list >use-livecode at lists.runrev.com >Please visit this url to subscribe, unsubscribe and manage your >subscription preferences: >http://lists.runrev.com/mailman/listinfo/use-livecode From pete at lcsql.com Sun Jan 4 18:19:25 2015 From: pete at lcsql.com (Peter Haworth) Date: Sun, 4 Jan 2015 15:19:25 -0800 Subject: put URL error Message-ID: As part of checking for updates in my products, I go get a file that has the latest version of the product and compares it to the installed version, pretty common logic. The sequence of commands is: put URL (the cVersionFile of me) into tVersionInfo if the result is not empty then return the result else < check the version etc> end if cVersionFile contains "http:www.lcsql.com/ Home of lcStackBrowser and SQLiteAdmin From klaus at major-k.de Sun Jan 4 18:26:53 2015 From: klaus at major-k.de (Klaus major-k) Date: Mon, 5 Jan 2015 00:26:53 +0100 Subject: put URL error In-Reply-To: References: Message-ID: <7F996BF4-3643-4B85-A865-8BD78AF759AA@major-k.de> Hi Peter, > Am 05.01.2015 um 00:19 schrieb Peter Haworth : > > As part of checking for updates in my products, I go get a file that has > the latest version of the product and compares it to the installed version, > pretty common logic. > > The sequence of commands is: > > put URL (the cVersionFile of me) into tVersionInfo > if the result is not empty then > return the result > else > < check the version etc> > end if > > cVersionFile contains "http:www.lcsql.com/ This works fine on my Mac but has been failing on my Windows 8 machine with > the result containing "invalid host name". > > I put the same URL into my browser on the Windows 8 machine and saw the > contents of the file displayed in the browser. > > Is this some strange Livecode problem or a Windows 8 config issue? I don't > have access to another Windows box to check the latter. > > Pete Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From alex at tweedly.net Sun Jan 4 18:28:25 2015 From: alex at tweedly.net (Alex Tweedly) Date: Sun, 04 Jan 2015 23:28:25 +0000 Subject: put URL error In-Reply-To: References: Message-ID: <54A9CC99.9050504@tweedly.net> I think it should be "http://www.lcsql.com/..." i.e. note the // after the http: No idea why that would matter, or why it would matter on Win and not on Mac, or ... but give it a try :-) -- Alex On 04/01/2015 23:19, Peter Haworth wrote: > As part of checking for updates in my products, I go get a file that has > the latest version of the product and compares it to the installed version, > pretty common logic. > > The sequence of commands is: > > put URL (the cVersionFile of me) into tVersionInfo > if the result is not empty then > return the result > else > < check the version etc> > end if > > cVersionFile contains "http:www.lcsql.com/ > This works fine on my Mac but has been failing on my Windows 8 machine with > the result containing "invalid host name". > > I put the same URL into my browser on the Windows 8 machine and saw the > contents of the file displayed in the browser. > > Is this some strange Livecode problem or a Windows 8 config issue? I don't > have access to another Windows box to check the latter. > > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dochawk at gmail.com Sun Jan 4 18:38:39 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Sun, 4 Jan 2015 15:38:39 -0800 Subject: group id exists but yet not . . . In-Reply-To: <7E508649-C575-4A6E-AAF6-095ED2E52A63@gmail.com> References: <7E508649-C575-4A6E-AAF6-095ED2E52A63@gmail.com> Message-ID: On Sun, Jan 4, 2015 at 2:41 PM, Peter M. Brigham wrote: > Just occurred to me, if the group is not placed on the card the handler is > called from, this might be the problem. > Same card? I'm not even calling from the same stack :) I have a routine to assemble properties, phrases, and the like when the version changes. This script normally runs during openStack if needed, and also from the messagebox at times I've been accessing off-card/stack groups like this for quite a while without a problem (including this one) > What happens if you substitute "background" for "group"? eg > put exists(background id 1004 of background id 1111 of card id 1016 of > stack "nv") && > exists(background id 1004 of stack "nv") > the former gives "Script compile error: Error description: Chunk: bad chunk order (must be small to large)" While the latter yields true The background token will give what you want no matter what, but if the > group is not placed on the current card, "group xxx" will not. > I've always been able to access them before. I'm just working with intrinsic and custom properties, for the group and its controls -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From irog at mac.com Sun Jan 4 19:04:42 2015 From: irog at mac.com (Roger Guay) Date: Sun, 04 Jan 2015 17:04:42 -0700 Subject: Moving a Group Smoothly In-Reply-To: <54A8BC58.1090705@hindu.org> References: <54A8BC58.1090705@hindu.org> Message-ID: One other thing: Try "move group "SettingsDialog" to 291,351 in 50 milliseconds?. You don?t need the from and you do need the duration time Cheers, Roger > On Jan 3, 2015, at 9:06 PM, Brahmanathaswami wrote: > > This has probably been asked and answered 100 times. > > Because of the iOS limitation on opening substacks (no second windows allowed) > > I have set up a whole piece of the UI that I would normally put onto a substack... into a group... > > A "close" button and GUI clean up routine in the preopenstack handler pushes the group below the visible area to 291,1204 > > I just want the group to "slide up" smoothly and very quickly. But this script, in the 7.01 IDE performs very badly: > > on mouseUp > lock messages > move group "SettingsDialog" from 291,1204 to 291,351 without waiting > end mouseUp > > The group moves up slowly and "stutters" as it moves. For modern UI/UX we really need elegant motion graphics behavior across the whole platform. > > Can this be improved? Is perfectly smooth motion even possible now in LiveCode? I realize it was never so great years ago, but I've been doing so much server side LC work in the past few years and hardly touched the presentation layer of app development until recently...and all my in house production tools apps are very plain/functional designs with zero eye candy. I thought motion would have much improved by now. What am I doing wrong? > > (Mac OS X Yosemite) > > > Brahmanathaswami > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From lan.kc.macmail at gmail.com Sun Jan 4 19:10:11 2015 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Mon, 5 Jan 2015 08:10:11 +0800 Subject: Project Browser vs App Browser (was "script scope variables inexplicably becoming unset") In-Reply-To: References: <54A78CB0.3070900@hyperactivesw.com> <51429859159.20150103085003@ahsoftware.net> <1341455398863.20150103155543@ahsoftware.net> Message-ID: On Mon, Jan 5, 2015 at 1:18 AM, Peter Haworth wrote: > > Community Edition can't load password protected stacks because that would > break the rules of open source, That is not my understanding of the situation. There is no reason why an OSS liscensed app can't interact with Closed Source Software. There is nothing preventing Linux users from using CSS: https://en.wikipedia.org/wiki/List_of_proprietary_software_for_Linux My understanding is the real reason is a technical Catch-22 hurdle that Runrev can't cross. To include the code that would open your Password Protected Stack means that the 'password protection code' needs to be in the LC Community Edition, which means it then has to be Open for anyone to look at due to the OSS License, which means anyone can figure out how the Commercial Edition secures stacks. No one would buy LC Commercial once they realise anyone with a Community Edition can open their product and steal all their code. So to keep the Commercial Edition secure, the password protection code can not be included in the Community Edition which means that whilst the Community Edition can use any other CSS extensions/software, it embarrassingly can't use extensions written in it's own LiveCode Commercial Edition. So nothing to do with the OSS license directly but everything to do with keeping LC Commercial a viable and secure money maker. From jacque at hyperactivesw.com Sun Jan 4 19:14:26 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 04 Jan 2015 18:14:26 -0600 Subject: group id exists but yet not . . . In-Reply-To: References: <7E508649-C575-4A6E-AAF6-095ED2E52A63@gmail.com> Message-ID: <54A9D762.8050104@hyperactivesw.com> On 1/4/2015 5:38 PM, Dr. Hawkins wrote: > The background token will give what you want no matter what, but if the >> >group is not placed on the current card, "group xxx" will not. >> > > I've always been able to access them before. It's been that way since I can remember. If the group is placed on the current card, you can refer to it as "group", otherwise you need to use "background". This applies even to closed stacks, so maybe when it worked for you before, the current card of the stack happened to have the group on it. This is an invalid reference: put exists(background id 1004 of background id 1111 of card id 1016 of stack "nv") Since every group has a unique ID, you don't need to specify the enclosing group, only the specific background: put exists(bg id 1004) -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From pete at lcsql.com Sun Jan 4 19:52:05 2015 From: pete at lcsql.com (Peter Haworth) Date: Sun, 4 Jan 2015 16:52:05 -0800 Subject: put URL error In-Reply-To: <7F996BF4-3643-4B85-A865-8BD78AF759AA@major-k.de> References: <7F996BF4-3643-4B85-A865-8BD78AF759AA@major-k.de> Message-ID: It's a typo sorry, the // is there. On Jan 4, 2015 3:27 PM, "Klaus major-k" wrote: > Hi Peter, > > > Am 05.01.2015 um 00:19 schrieb Peter Haworth : > > > > As part of checking for updates in my products, I go get a file that has > > the latest version of the product and compares it to the installed > version, > > pretty common logic. > > > > The sequence of commands is: > > > > put URL (the cVersionFile of me) into tVersionInfo > > if the result is not empty then > > return the result > > else > > < check the version etc> > > end if > > > > cVersionFile contains "http:www.lcsql.com/ > if this is not a typo, then the Mac is obviously smart enough to ignore the > two missing SLASHES and Windows isn't :-) > > > http://www.lcsql.com/ > If that is just a typo, then I have no clue 8-) > > > This works fine on my Mac but has been failing on my Windows 8 machine > with > > the result containing "invalid host name". > > > > I put the same URL into my browser on the Windows 8 machine and saw the > > contents of the file displayed in the browser. > > > > Is this some strange Livecode problem or a Windows 8 config issue? I > don't > > have access to another Windows box to check the latter. > > > > Pete > > Best > > Klaus > > -- > Klaus Major > http://www.major-k.de > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From lan.kc.macmail at gmail.com Sun Jan 4 20:03:03 2015 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Mon, 5 Jan 2015 09:03:03 +0800 Subject: replaceText problem In-Reply-To: References: Message-ID: On Mon, Jan 5, 2015 at 4:25 AM, Peter Haworth wrote: > > Back on the need for a put or a get with a function, it's interesting to > note that you don't have to do that in the message box. Executing - > replaceText("abc","c","z") - in the message box puts "abz" into the message > box result area. > Hi Peter, Ah, the rest of my rant! I'm am certain that this must be the two most frustrating, confusing and time consuming mistakes that newbies make with LC. I'm constantly Cutting and Pasting code from websites, pdf manuals, this List, and other people's stacks. Only in LC is it possible to Cut a code example from the Dictionary, Paste it into a script and get an error. Then Paste it into the Message Box and have it work perfectly. Paste it back into a script and it doesn't work. Whilst I now appreciate the convenience of not having to type the 'put' or 'into ...' when testing code in the MB, if I ran the world, ALL Dictionary examples would have to be syntax correct, thereby allowing direct Cut and Paste into any script, AND there would be a Preference check box "Require 'put' and 'into ...' in Message Box" which upon initial installation of LC would be defaulted as Ticked so that newbies would get a consistent result between code in their scripts and in the MB. OR, automatically corrected the syntax in the MB to reflect the need of 'put' and 'into ...' I readily admit my coding toolbox is extremely small, but LC is the only one whose official Docs present me with code examples that works in one location but doesn't in another. I don't find it interesting, I find it confusing. I dare suggest that the whole time spent on this thread may have been saved if the replaceText example in the Dictionary worked as a straight Copy and Paste and your own troubleshooting significantly less if the MB behaved consistently and identically to code from your script. From dochawk at gmail.com Sun Jan 4 20:20:00 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Sun, 4 Jan 2015 17:20:00 -0800 Subject: group id exists but yet not . . . In-Reply-To: <54A9D762.8050104@hyperactivesw.com> References: <7E508649-C575-4A6E-AAF6-095ED2E52A63@gmail.com> <54A9D762.8050104@hyperactivesw.com> Message-ID: On Sun, Jan 4, 2015 at 4:14 PM, J. Landman Gay wrote: > It's been that way since I can remember. If the group is placed on the > current card, you can refer to it as "group", otherwise you need to use > "background". This applies even to closed stacks, so maybe when it worked > for you before, the current card of the stack happened to have the group on > it. > That can't possibly be it: I stumbled across this in a routine that loops through half a dozen substacks, every card of each, and every control, referencing every one. When run, it is typically only the main stack that is open. And shouldn't that apply just as much to group a of group b of card c of stack d which worked, as group a of stack d which didn't work. > This is an invalid reference: > > put exists(background id 1004 of background id 1111 of card id 1016 of > stack "nv") > > Since every group has a unique ID, you don't need to specify the enclosing > group, only the specific background: > > put exists(bg id 1004) > What's confusing me here is not whether or not it *should* work (which is its own set of issues), but that there is a difference between these two. They were: put exists(group id 1004 of group id 1111 of card id 1016 of stack "nv") && exists(group id 1004 of stack "nv") both refer to a group on the same card, but one works, and not the other. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From jacque at hyperactivesw.com Sun Jan 4 20:19:51 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 04 Jan 2015 19:19:51 -0600 Subject: Project Browser vs App Browser (was "script scope variables inexplicably becoming unset") In-Reply-To: References: <54A78CB0.3070900@hyperactivesw.com> <51429859159.20150103085003@ahsoftware.net> <1341455398863.20150103155543@ahsoftware.net> Message-ID: <5C818252-003D-4A25-9199-CDC20303D1C5@hyperactivesw.com> Just to be clear, it was the developers who (rightfully) requested that the password code be removed. We couldn't sell secure products or create them for our clients if the world knew how to bypass code protection. On January 4, 2015 6:10:11 PM CST, Kay C Lan wrote: > >So nothing to do with the OSS license directly but everything to do >with >keeping LC Commercial a viable and secure money maker. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From dochawk at gmail.com Sun Jan 4 20:21:36 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Sun, 4 Jan 2015 17:21:36 -0800 Subject: Project Browser vs App Browser (was "script scope variables inexplicably becoming unset") In-Reply-To: References: <54A78CB0.3070900@hyperactivesw.com> <51429859159.20150103085003@ahsoftware.net> <1341455398863.20150103155543@ahsoftware.net> Message-ID: On Sun, Jan 4, 2015 at 8:58 AM, Peter Haworth wrote: > > But I still need some sort of protection against someone simply copying > code out of it and inserting it into their own products, that's where it > gets hazy for me. If my license is "open source", does that mean they > would have to release their product as "open source" since it includes my > open source code? > If you used a viral license, yes. (well, once the code is exposed, they can also just violate copyright law and steal it . . .) That still begs the question of what the benefit to *you* of open sourcing it is. It's this type of thing that has prevented me form going open source up to > now. It's a couple of minutes work for me to remove the password > protection from the code but much more time required to figure out a good > license and how to deal with not having a free demo any more. > Nothing would stop you from having the free closed source version, full or stripped. You are the copyright owner. The license doesn't bind you; it binds those you license it to. > But I am getting more and more requests from Community Edition users to > make it available to them so I think I need to bite the bullet. > But again, to what end? Unless LiveCode creates an exception allowing development tools to be opened with password protected stacks (which they could, but it wouldn't make sense for *them* to create ways for folks like you to get paid for add-ons to software that they don't get paid to sell . . .) > OK Google - "How do I sell an open source product" > Once. Seriously. Once you've sold it, any open source license lets that person redistribute freely. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From lan.kc.macmail at gmail.com Sun Jan 4 20:30:12 2015 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Mon, 5 Jan 2015 09:30:12 +0800 Subject: put URL error In-Reply-To: References: Message-ID: On Mon, Jan 5, 2015 at 7:19 AM, Peter Haworth wrote: > > I put the same URL into my browser on the Windows 8 machine and saw the > contents of the file displayed in the browser. > > What happens if instead of using your Web Browser you use an LC Browser instance; i.e. can you display the page in LC, what about if you use the new LC CEF browser? Is it really just the URL function or is it more. From pete at lcsql.com Sun Jan 4 20:46:41 2015 From: pete at lcsql.com (Peter Haworth) Date: Sun, 4 Jan 2015 17:46:41 -0800 Subject: Project Browser vs App Browser (was "script scope variables inexplicably becoming unset") In-Reply-To: References: <54A78CB0.3070900@hyperactivesw.com> <51429859159.20150103085003@ahsoftware.net> <1341455398863.20150103155543@ahsoftware.net> Message-ID: On Sun, Jan 4, 2015 at 5:21 PM, Dr. Hawkins wrote: > Once you've sold it, any open source license lets that person redistribute > freely. > And that's the crux of the matter. No password protection = no hidden license key checking so I need a license that specifically prevents a user from giving/selling the product to anyone else. Perhaps an open source license is not what I'm looking for - maybe it's just a standard EULA with all the usual caveats including the restriction of not giving/selling it to anyone else. I'd still have to rely on users' honesty of course but it's really not that different from relying on a user with a password protected version giving the software AND their license key to someone else. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From pete at lcsql.com Sun Jan 4 20:53:17 2015 From: pete at lcsql.com (Peter Haworth) Date: Sun, 4 Jan 2015 17:53:17 -0800 Subject: put URL error In-Reply-To: References: Message-ID: I've never used LC browsers but I'll give it a try. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Sun, Jan 4, 2015 at 5:30 PM, Kay C Lan wrote: > On Mon, Jan 5, 2015 at 7:19 AM, Peter Haworth wrote: > > > > > I put the same URL into my browser on the Windows 8 machine and saw the > > contents of the file displayed in the browser. > > > > What happens if instead of using your Web Browser you use an LC Browser > instance; i.e. can you display the page in LC, what about if you use the > new LC CEF browser? Is it really just the URL function or is it more. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From irog at mac.com Sun Jan 4 21:11:55 2015 From: irog at mac.com (Roger Guay) Date: Sun, 04 Jan 2015 19:11:55 -0700 Subject: [ANN] colorPiquer Message-ID: colorPiquer is a utility stack I developed to collect and manage the color palettes of all my projects in one place. I?ve got it to the point where I?m finding it to be quite useful, and thought a few of you might also. It is free to use as you wish. https://www.dropbox.com/s/dqj943e8roe58yx/ColorPiquer.zip?dl=0 Thanks to Richmond and his GIMP for providing the crayons, and Howard Bornstein for ColorName stuff. I hope you find colorPiquer useful. It will help me feel better about all the gifts I?ve received from this list over the years. Cheers, Roger From mwieder at ahsoftware.net Mon Jan 5 00:52:23 2015 From: mwieder at ahsoftware.net (Mark Wieder) Date: Sun, 4 Jan 2015 21:52:23 -0800 Subject: Project Browser vs App Browser (was "script scope variables inexplicably becoming unset") In-Reply-To: References: <54A78CB0.3070900@hyperactivesw.com> <51429859159.20150103085003@ahsoftware.net> <1341455398863.20150103155543@ahsoftware.net> Message-ID: <451391360113.20150104215223@ahsoftware.net> Richard- Sunday, January 4, 2015, 5:21:36 PM, you wrote: > Once you've sold it, any open source license lets that person redistribute > freely. While I should know better than to argue legal matters with a lawyer... You're wrong about that. The situation you're describing here and in your paper (I *did* skim it... note that it's a dozen years old now and things haven't kept still) is more akin to a viral license, and is the main objection raised to using something like one of the GPL variants. What I do for open-source licensing for PowerDebug and PowerTools is distribute an unlocked stack. People still have to purchase the stack from my website and download it from there using their registration code, but they are free to examine the code, modify it, learn from it (ha!), amuse themselves, without restriction. They also don't get updates without downloading them from the website, again using their registration code. The right to distribute it themselves in any form, modified or no, is explicitly denied by the license. This is open source software but not free software (in either sense of the term). It's similar in one sense to music or video distribution - when you buy media it's not locked up so that you can't get to it... you get the right to listen or view yourself, but you don't get the right to distribute it to others, in spite of the fact that it's technically possible to do so. Creative Commons offers something similar in various forms of their licensing agreements. You can choose what restrictions, if any, you want to place on the documents you distribute. -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From fraser.gordon at livecode.com Mon Jan 5 02:56:36 2015 From: fraser.gordon at livecode.com (Fraser Gordon) Date: Mon, 05 Jan 2015 07:56:36 +0000 Subject: Standalone on Raspberry Pi In-Reply-To: References: <99AEAD43-AFC8-4987-A48F-A0DA05FFCC8F@kenjikojima.com> Message-ID: <54AA43B4.8010101@livecode.com> On 03/01/2015 23:46, Peter W A Wood wrote: > Hi Kenji > > As I understand the Linux option in the Standalone Settings creates a standalone for an Intel-based computer. At the moment, there isn?t an option to create a standalone for an ARM-based computer. What version and edition are you using? "Linux ARMv6" should appear as an option on the Linux pane of the 7.0 Community editions (alongside x86 and x86-64). > There is a ?community? supported version of LiveCode that runs on Raspberry Pi but that is the IDE. I haven?t tried it myself so I don?t know if you can build a Raspberry Pi standalone with it. > The RaspberryPi IDE supports building standalones for OSX, Windows and all editions of Linux (i.e everything but the mobile platforms). One thing to note is that there is no Linux equivalent of OSX "fat binaries" - the executables produced are processor-specific and you need to distribute separate files for each processor architecture you support. Regards, Fraser From admin at FlexibleLearning.com Mon Jan 5 03:44:25 2015 From: admin at FlexibleLearning.com (FlexibleLearning.com) Date: Mon, 5 Jan 2015 08:44:25 -0000 Subject: Project Browser vs App Browser (was "script scope variables inexplicably becoming unset") Message-ID: <00b601d028c3$d0306270$70912750$@FlexibleLearning.com> Like Bill, I faced the same issue with ControlManager. I also decided to release it as Community Compatible so it works on all versions of LiveCode and included a video... www.FlexibleLearning.com/controlmanager www.youtube.com/watch?v=QtrhtSXCsfk I think most folks are only interested in whether it actually works, whether it suits their workflow, and whether it does what they need. Hugh Senior FLCo > On Sat, Jan 3, 2015 at 10:40 PM, Bill Vlahos wrote: > > > I faced this same dilemma with lcTaskList. > > > > I had many great people on this list encourage me to not sweat my coding > > insecurities. It is what it is and if it works no one cares. > > You are correct in that there is no way to protect your code if it is > > unlocked. > > You either release a feature reduced version as the trial where the > > ?missing? code is removed (not just commented - removed) > > You make it shareware/honor system > > You eliminate the trial version entirely and sell the unprotected version. > > People buy it or not based on screen shots, demonstrations videos, and/or > > reputation > > With lcTaskList I chose #3: eliminate the trial version completely and > > only sell a version that is unprotected so it works on all versions of > > LiveCode. > > > > Bill Vlahos From peterwawood at gmail.com Mon Jan 5 04:08:00 2015 From: peterwawood at gmail.com (Peter W A Wood) Date: Mon, 5 Jan 2015 17:08:00 +0800 Subject: Standalone on Raspberry Pi In-Reply-To: <54AA43B4.8010101@livecode.com> References: <99AEAD43-AFC8-4987-A48F-A0DA05FFCC8F@kenjikojima.com> <54AA43B4.8010101@livecode.com> Message-ID: Hi Fraser On Monday, 5 January 2015, Fraser Gordon wrote: > On 03/01/2015 23:46, Peter W A Wood wrote: > > Hi Kenji > > > > As I understand the Linux option in the Standalone Settings creates a > standalone for an Intel-based computer. At the moment, there isn?t an > option to create a standalone for an ARM-based computer. > > What version and edition are you using? "Linux ARMv6" should appear as > an option on the Linux pane of the 7.0 Community editions (alongside x86 > and x86-64). I currently only have LiveCode 7.0.1 Commercial and LiveCode Server 7.0.1 Community edition installed on my machine. Having a current license it previously seemed a little pointless to install both the Commercial and Community Editions. > > > The RaspberryPi IDE supports building standalones for OSX, Windows and > all editions of Linux (i.e everything but the mobile platforms). > > One thing to note is that there is no Linux equivalent of OSX "fat > binaries" - the executables produced are processor-specific and you need > to distribute separate files for each processor architecture you support. > Thanks for the extra information. Regards Peter From smk at anvic.net Mon Jan 5 04:47:12 2015 From: smk at anvic.net (Simon Knight) Date: Mon, 5 Jan 2015 09:47:12 +0000 Subject: Editing datagrid cells In-Reply-To: <40F697DF-28C8-4668-AD23-89A180A7FAD2@anvic.net> References: <40F697DF-28C8-4668-AD23-89A180A7FAD2@anvic.net> Message-ID: <680DDAC7-3E73-4A9C-A742-6EF0BCED75CF@anvic.net> I added a custom prop to store the name of the field being edited following a suggestion made on the Livecode forum. I added this line to the EditValue handler in the Row Behavior script : set the cFieldName of grp "DgNotes" to pKey -- store this for use in the custom field editor. Code in the custom field editor reads the value when it processes the key presses. Simon Knight smk at anvic.net Telephone : 05603 643965 Mobile : 07963 077071 > On 3 Jan 2015, at 09:07, Simon Knight wrote: > > Hi Pete, > > Unfortunately I don?t have any answers but I have a similar problem. I am trying to detect a return in a specific field on a datagrid form and so far I can either detect the return but not the name of the field (I just get the name of the field editor) or I can get the name of the field with no detection of the key press (because the keypress has gone to the field editor). > > Lest hope one of the experts answers our questions?. > > > Simon Knight > smk at anvic.net > Telephone : 05603 643965 > Mobile : 07963 077071 > > > >> On 21 Dec 2014, at 21:22, Peter Haworth wrote: >> >> Got a number of questions for the datagrid experts out there, all related >> to the editing of datagrid cells. >> >> How can I implement a contextual menu when the user right clicks on a cell >> that is being edited? I tried using a mouseDown handler in a custom column >> handler but it doesn't seem to fire when the edit field is clicked. >> >> Tab and escape are ways of getting out of edit mode. If escape/tab have not >> been pressed to register the edit, the underlying datagrid data won;t have >> been updated so how can I get hold of the contents of the edit field for a >> cell if the user has not pressed escape or tab? >> >> Probably the root of the above questions but how can I get hold of the id >> of the field created by the datagrid to edit a cell? >> >> The datagrid library isn't happy if I send an EditCelll message to a cell >> that has been customized to contain, for example, an option menu. By "not >> happy", I mean that any instructions in the handler after dispatching the >> EditCell message are skipped. I guess I should file a QCC report for that >> but in the meantime, how can I find the first column in the selected line >> that has not been customized to contain something other than straight text? >> >> Pete >> lcSQL Software >> Home of lcStackBrowser and >> SQLiteAdmin >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From fraser.gordon at livecode.com Mon Jan 5 05:12:43 2015 From: fraser.gordon at livecode.com (Fraser Gordon) Date: Mon, 5 Jan 2015 10:12:43 +0000 Subject: 7.0.1 Windows Community Installer Message-ID: <8850896E-9710-42B3-934D-D2EAB74D457D@livecode.com> The 7.0.1 Community installer for Windows has now been re-uploaded. Looks like something went wrong during the original upload process. Regards, Fraser From livfoss at mac.com Mon Jan 5 07:53:42 2015 From: livfoss at mac.com (Graham Samuel) Date: Mon, 05 Jan 2015 13:53:42 +0100 Subject: Is there a way to replace a built-in function? Message-ID: <65C2C80C-4384-458C-9D7D-D78B6061BDE1@mac.com> On the face of it, it?s impossible to replace a built-in function in LC. For example, take the function ln(x) - that?s natural logarithm. I?d like to redefine ln(x), but I can?t because the compiler won?t let me use a reserved word in a function definition. I wonder if anyone can suggest a trick to allow a redefinition like this. If not, then roll on Widgets. Graham PS In case you want to know why I want to redefine this function, it?s for the following reason. Generally, mathematicians say that ln(0) is undefined, whereas the limit as x approaches zero is minus infinity. This is a bit subtle, and LiveCode takes no real notice of this, so that in LC, ln(0) yields ?-inf?. Despite a contrary definition in the LC dictionary, this text is then regarded as a number, which can cause confusion, at least to me. So my new ln(x) would yield undefined for ln(0) and would use a symbol for minus infinity which LC would not then recognise as a number. From dave at applicationinsight.com Mon Jan 5 08:13:17 2015 From: dave at applicationinsight.com (Dave Kilroy) Date: Mon, 5 Jan 2015 05:13:17 -0800 (PST) Subject: put URL error In-Reply-To: References: Message-ID: <1420463597056-4687368.post@n4.nabble.com> Hi Pete What permissions do you have on that file and containing folder? Can your app on win8 do a 'put' with other files/locations? What happens if you run your app on win8 'as administrator'? Could your win8 AV be interfering? The final straw to grasp I can think of for now is to do an Answer of the URL just prior to using it... Dave ----- "Some are born coders, some achieve coding, and some have coding thrust upon them." - William Shakespeare & Hugh Senior -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/put-URL-error-tp4687345p4687368.html Sent from the Revolution - User mailing list archive at Nabble.com. From bdrunrev at gmail.com Mon Jan 5 09:22:54 2015 From: bdrunrev at gmail.com (Bernard Devlin) Date: Mon, 5 Jan 2015 14:22:54 +0000 Subject: LC 7.0.1 RC4/Windows 7 - Dictionary disappears Message-ID: Sometimes the dictionary will not appear, even though it's listed as open in the IDE. According to the openStacks() it is open, and querying the visible of it returns "true". I can see it listed in the Windows of the IDE. I can bring it up in the Application Browser and inspect its properties. But nothing I do will bring it to the fore. It's not minimized. Going to it, or toplevelling it effects no change. If I use the MB to close the stack, then try to re-open it from the IDE's menus, I am back to it not appearing again. Anyone else seeing this? Anyone got a recipe to make it happen? Regards Bernard From bvg at mac.com Mon Jan 5 09:31:45 2015 From: bvg at mac.com (Bjoernke von Gierke) Date: Mon, 05 Jan 2015 15:31:45 +0100 Subject: LC 7.0.1 RC4/Windows 7 - Dictionary disappears In-Reply-To: References: Message-ID: Never seen that. But usually when that happens to IDE stuff, the stack was set to a weird location, like -1292934,2234234 probably by the geometry manager. And then the IDE goes on to save the position in the preference stack. If this is the problem here, then try to set the location to a sensible spot via message box, then move it with the mouse to reset the preferences. > On 5 Jan 2015, at 15:22, Bernard Devlin wrote: > > Sometimes the dictionary will not appear, even though it's listed as open > in the IDE. > Anyone else seeing this? Anyone got a recipe to make it happen? -- Chat with other LC people: http://bjoernke.com/chatrev Use a better dictionary in the IDE: http://www.bjoernke.com/bvgdocu Try chartsEngine: https://livecode.com/store/marketplace/charts-engine-1-2-1 From dunbarx at aol.com Mon Jan 5 09:41:34 2015 From: dunbarx at aol.com (dunbarx at aol.com) Date: Mon, 5 Jan 2015 09:41:34 -0500 Subject: Is there a way to replace a built-in function? In-Reply-To: <65C2C80C-4384-458C-9D7D-D78B6061BDE1@mac.com> References: <65C2C80C-4384-458C-9D7D-D78B6061BDE1@mac.com> Message-ID: <8D1F70CD63641E9-248C-3D0DB@webmail-m238.sysops.aol.com> Graham I thought the ability of HC to allow this was a plus. The best example was the "round" function, which, with a ".5" in the decimal portion of an argument, alternately rounded the integer portion up or down depending on whether that integer was odd or even. Most people, like me, intercepted that function, and always rounded a ".5" up, like I was taught. Anyway, when you ask for a "trick", why not just create "myLn". After all, you are the author. Craig -----Original Message----- From: Graham Samuel To: How to use LiveCode Sent: Mon, Jan 5, 2015 7:55 am Subject: Is there a way to replace a built-in function? On the face of it, it?s impossible to replace a built-in function in LC. For example, take the function ln(x) - that?s natural logarithm. I?d like to redefine ln(x), but I can?t because the compiler won?t let me use a reserved word in a function definition. I wonder if anyone can suggest a trick to allow a redefinition like this. If not, then roll on Widgets. Graham PS In case you want to know why I want to redefine this function, it?s for the following reason. Generally, mathematicians say that ln(0) is undefined, whereas the limit as x approaches zero is minus infinity. This is a bit subtle, and LiveCode takes no real notice of this, so that in LC, ln(0) yields ?-inf?. Despite a contrary definition in the LC dictionary, this text is then regarded as a number, which can cause confusion, at least to me. So my new ln(x) would yield undefined for ln(0) and would use a symbol for minus infinity which LC would not then recognise as a number. _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From bdrunrev at gmail.com Mon Jan 5 10:05:20 2015 From: bdrunrev at gmail.com (Bernard Devlin) Date: Mon, 5 Jan 2015 15:05:20 +0000 Subject: LC 7.0.1 RC4/Windows 7 - Dictionary disappears In-Reply-To: References: Message-ID: Brilliant. Thanks Bjoernke! Now that you tell me, I do remember seeing that happen years ago (probably with the dictionary then too). I do love it when you gurus answer a question, as I'm 99% sure the answer is going to be right before anyone even attempts to try the solution. I'll bet it's the GM too. I've never used the GM myself, so if that's what's to blame, it's surely something the IDE is doing to the dictionary. You were right: the loc was set off into the -32Ks. That a restart did not fix the problem should have pointed me in the right direction. Regards, Bernard On Mon, Jan 5, 2015 at 2:31 PM, Bjoernke von Gierke wrote: > Never seen that. But usually when that happens to IDE stuff, the stack was > set to a weird location, like -1292934,2234234 probably by the geometry > manager. And then the IDE goes on to save the position in the preference > stack. If this is the problem here, then try to set the location to a > sensible spot via message box, then move it with the mouse to reset the > preferences. > From gcanyon at gmail.com Mon Jan 5 11:16:44 2015 From: gcanyon at gmail.com (Geoff Canyon) Date: Mon, 5 Jan 2015 10:16:44 -0600 Subject: Debugging plugins Message-ID: I have a vague recollection of there being a way to get breakpoints to work in "rev" stacks. I thought it was a preference setting, but I don't see it. Anyone know what the setting/property is for that? From mwieder at ahsoftware.net Mon Jan 5 11:22:03 2015 From: mwieder at ahsoftware.net (Mark Wieder) Date: Mon, 5 Jan 2015 08:22:03 -0800 Subject: Debugging plugins In-Reply-To: References: Message-ID: <1851600978980.20150105082203@ahsoftware.net> Geoff- Monday, January 5, 2015, 8:16:44 AM, you wrote: > I have a vague recollection of there being a way to get breakpoints to work > in "rev" stacks. I thought it was a preference setting, but I don't see it. > Anyone know what the setting/property is for that? global gRevDevelopment;put true into gRevDevelopment Plugin stacks are considered system or IDE stacks, so debugging is disabled normally to avoid endless loops. Setting development mode will allow breakpoints to work throughout the system. -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From livfoss at mac.com Mon Jan 5 11:38:48 2015 From: livfoss at mac.com (Graham Samuel) Date: Mon, 05 Jan 2015 17:38:48 +0100 Subject: Is there a way to replace a built-in function? In-Reply-To: <8D1F70CD63641E9-248C-3D0DB@webmail-m238.sysops.aol.com> References: <65C2C80C-4384-458C-9D7D-D78B6061BDE1@mac.com> <8D1F70CD63641E9-248C-3D0DB@webmail-m238.sysops.aol.com> Message-ID: <6C46198A-0506-4629-BD11-5E00B4EB3C4C@mac.com> Hi Craig - thanks for the reply. Yes, that?s what I?m having to do - but since my app allows the user to write formulae directly, I need to cheat so the user writes ln(x) and I intervene and redirect this to my adjusted version of the function, myLn. Luckily at the heart of the my app is a parser which can host this intervention, so it?s almost OK - as long as the user doesn?t take the option to look at the parser output. Still, it would have been nice to be able to redefine it: of course, if I did that I would either have to recode the fundamentals of the original function or somehow access it despite having replaced it from the point of view of the outside world. Graham > On 5 Jan 2015, at 15:41, dunbarx at aol.com wrote: > > Graham > > > I thought the ability of HC to allow this was a plus. The best example was the "round" function, which, with a ".5" in the decimal portion of an argument, alternately rounded the integer portion up or down depending on whether that integer was odd or even. > > > Most people, like me, intercepted that function, and always rounded a ".5" up, like I was taught. > > > Anyway, when you ask for a "trick", why not just create "myLn". After all, you are the author. > > > Craig > > > > -----Original Message----- > From: Graham Samuel > To: How to use LiveCode > Sent: Mon, Jan 5, 2015 7:55 am > Subject: Is there a way to replace a built-in function? > > > On the face of it, it?s impossible to replace a built-in function in LC. For > example, take the function ln(x) - that?s natural logarithm. I?d like to > redefine ln(x), but I can?t because the compiler won?t let me use a reserved > word in a function definition. > > I wonder if anyone can suggest a trick to allow a redefinition like this. If > not, then roll on Widgets. > > Graham > > PS In case you want to know why I want to redefine this function, it?s for the > following reason. Generally, mathematicians say that ln(0) is undefined, > whereas the limit as x approaches zero is minus infinity. This is a bit subtle, > and LiveCode takes no real notice of this, so that in LC, ln(0) yields ?-inf?. > Despite a contrary definition in the LC dictionary, this text is then regarded > as a number, which can cause confusion, at least to me. So my new ln(x) would > yield undefined for ln(0) and would use a symbol for minus infinity which LC > would not then recognise as a number. > _______________________________________________ From bvg at mac.com Mon Jan 5 12:08:09 2015 From: bvg at mac.com (Bjoernke von Gierke) Date: Mon, 05 Jan 2015 18:08:09 +0100 Subject: Debugging plugins In-Reply-To: References: Message-ID: <2B5999F3-0122-43E8-94AF-C21B3FF8FB73@mac.com> I think your question is a bit vague? Here's two possible answers: 1. There's a way to insert your own breakpoints without using the script editor GUI. there's a 'breakpoint command', I suggest to look it up in the dictionary. 2. If you disabled debugging mode in the script editor, then you can't set breakpoints by clicking on the grey column on the left of the script editor text field (by default that's also where line numbers appear). It can be enabled again via the "Development" menu of the script editor (approximately in the middle of the menu: "Script Debug Mode"). Note that rev stacks are now called livecode stacks, but it's a purely PR difference, technically there is nothing differentiating those two, even good old MC still works. > On 5 Jan 2015, at 17:16, Geoff Canyon wrote: > > I have a vague recollection of there being a way to get breakpoints to work > in "rev" stacks. I thought it was a preference setting, but I don't see it. > Anyone know what the setting/property is for that? -- Chat with other LC people: http://bjoernke.com/chatrev Use a better dictionary in the IDE: http://www.bjoernke.com/bvgdocu Try chartsEngine: https://livecode.com/store/marketplace/charts-engine-1-2-1 From dunbarx at aol.com Mon Jan 5 12:25:14 2015 From: dunbarx at aol.com (dunbarx at aol.com) Date: Mon, 5 Jan 2015 12:25:14 -0500 Subject: Is there a way to replace a built-in function? In-Reply-To: <6C46198A-0506-4629-BD11-5E00B4EB3C4C@mac.com> References: <65C2C80C-4384-458C-9D7D-D78B6061BDE1@mac.com> <8D1F70CD63641E9-248C-3D0DB@webmail-m238.sysops.aol.com> <6C46198A-0506-4629-BD11-5E00B4EB3C4C@mac.com> Message-ID: <8D1F723B36EE6D9-248C-3E608@webmail-m238.sysops.aol.com> Graham. Ah, I see. The user can actually write the function. Your interception gadget is very interesting. Sort of like a spell-check, but does not change the visible text, it just "corrects" it internally. I never needed to to that. Cool. Craig -----Original Message----- From: Graham Samuel To: How to use LiveCode Sent: Mon, Jan 5, 2015 11:39 am Subject: Re: Is there a way to replace a built-in function? Hi Craig - thanks for the reply. Yes, that?s what I?m having to do - but since my app allows the user to write formulae directly, I need to cheat so the user writes ln(x) and I intervene and redirect this to my adjusted version of the function, myLn. Luckily at the heart of the my app is a parser which can host this intervention, so it?s almost OK - as long as the user doesn?t take the option to look at the parser output. Still, it would have been nice to be able to redefine it: of course, if I did that I would either have to recode the fundamentals of the original function or somehow access it despite having replaced it from the point of view of the outside world. Graham > On 5 Jan 2015, at 15:41, dunbarx at aol.com wrote: > > Graham > > > I thought the ability of HC to allow this was a plus. The best example was the "round" function, which, with a ".5" in the decimal portion of an argument, alternately rounded the integer portion up or down depending on whether that integer was odd or even. > > > Most people, like me, intercepted that function, and always rounded a ".5" up, like I was taught. > > > Anyway, when you ask for a "trick", why not just create "myLn". After all, you are the author. > > > Craig > > > > -----Original Message----- > From: Graham Samuel > To: How to use LiveCode > Sent: Mon, Jan 5, 2015 7:55 am > Subject: Is there a way to replace a built-in function? > > > On the face of it, it?s impossible to replace a built-in function in LC. For > example, take the function ln(x) - that?s natural logarithm. I?d like to > redefine ln(x), but I can?t because the compiler won?t let me use a reserved > word in a function definition. > > I wonder if anyone can suggest a trick to allow a redefinition like this. If > not, then roll on Widgets. > > Graham > > PS In case you want to know why I want to redefine this function, it?s for the > following reason. Generally, mathematicians say that ln(0) is undefined, > whereas the limit as x approaches zero is minus infinity. This is a bit subtle, > and LiveCode takes no real notice of this, so that in LC, ln(0) yields ?-inf?. > Despite a contrary definition in the LC dictionary, this text is then regarded > as a number, which can cause confusion, at least to me. So my new ln(x) would > yield undefined for ln(0) and would use a symbol for minus infinity which LC > would not then recognise as a number. > _______________________________________________ _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From pete at lcsql.com Mon Jan 5 12:36:54 2015 From: pete at lcsql.com (Peter Haworth) Date: Mon, 5 Jan 2015 09:36:54 -0800 Subject: put URL error In-Reply-To: <1420463597056-4687368.post@n4.nabble.com> References: <1420463597056-4687368.post@n4.nabble.com> Message-ID: Thanks Dave. I'm running the app as administrator and I did "answer" the URL right before it's used and it looks fine. I'll check the permissions but I think a problem there would have caused the same error on OSX. Good idea to try another url, probably two actually, one on the same host and one on another. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Mon, Jan 5, 2015 at 5:13 AM, Dave Kilroy wrote: > Hi Pete > > What permissions do you have on that file and containing folder? Can your > app on win8 do a 'put' with other files/locations? What happens if you run > your app on win8 'as administrator'? Could your win8 AV be interfering? The > final straw to grasp I can think of for now is to do an Answer of the URL > just prior to using it... > > Dave > > > > ----- > "Some are born coders, some achieve coding, and some have coding thrust > upon them." - William Shakespeare & Hugh Senior > > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/put-URL-error-tp4687345p4687368.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pete at lcsql.com Mon Jan 5 13:18:44 2015 From: pete at lcsql.com (Peter Haworth) Date: Mon, 5 Jan 2015 10:18:44 -0800 Subject: Editing datagrid cells In-Reply-To: <680DDAC7-3E73-4A9C-A742-6EF0BCED75CF@anvic.net> References: <40F697DF-28C8-4668-AD23-89A180A7FAD2@anvic.net> <680DDAC7-3E73-4A9C-A742-6EF0BCED75CF@anvic.net> Message-ID: Thanks Simon. I found a slightly different solution to my original problems which might be of use to you. To recap, they were: how to popup a contextual menu in the field editor and how to recognize that the user has changed the data in the field editor but not escaped/tabbed out of it. The latter is necessary because the field doesn't lose focus on OSX when you click a button, so no closeField happens. For the former, I replaced the default field editor behavior with a custom one (details are in the Datagrid Manual). I then changed the mousedown handler to check for button 3 and display my popup menu. I think your situation was how to check for return in the field editor and this behavior has handlers for returnInField, enterInField and all the other common handlers for fields. For the second one, the datagrid sends a preOpenFieldEditor message with a single parameter being the long id of the field editor. I wrote a handler for that message and stored the field editor id in a custom property of the datagrid, much as you did in the EditValue handler. When the user clicks the button I provide to "apply" the changes, I check if the field editor exists and if so, send a setDataOfLine to the datagrid with the field editor contents. Maybe that might be of some use to you. Pete Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Mon, Jan 5, 2015 at 1:47 AM, Simon Knight wrote: > I added a custom prop to store the name of the field being edited > following a suggestion made on the Livecode forum. I added this line to > the EditValue handler in the Row Behavior script : set the cFieldName of > grp "DgNotes" to pKey -- store this for use in the custom field editor. > Code in the custom field editor reads the value when it processes the key > presses. > > Simon Knight > smk at anvic.net > Telephone : 05603 643965 > Mobile : 07963 077071 > > > > > On 3 Jan 2015, at 09:07, Simon Knight wrote: > > > > Hi Pete, > > > > Unfortunately I don?t have any answers but I have a similar problem. I > am trying to detect a return in a specific field on a datagrid form and so > far I can either detect the return but not the name of the field (I just > get the name of the field editor) or I can get the name of the field with > no detection of the key press (because the keypress has gone to the field > editor). > > > > Lest hope one of the experts answers our questions?. > > > > > > Simon Knight > > smk at anvic.net > > Telephone : 05603 643965 > > Mobile : 07963 077071 > > > > > > > >> On 21 Dec 2014, at 21:22, Peter Haworth wrote: > >> > >> Got a number of questions for the datagrid experts out there, all > related > >> to the editing of datagrid cells. > >> > >> How can I implement a contextual menu when the user right clicks on a > cell > >> that is being edited? I tried using a mouseDown handler in a custom > column > >> handler but it doesn't seem to fire when the edit field is clicked. > >> > >> Tab and escape are ways of getting out of edit mode. If escape/tab have > not > >> been pressed to register the edit, the underlying datagrid data won;t > have > >> been updated so how can I get hold of the contents of the edit field > for a > >> cell if the user has not pressed escape or tab? > >> > >> Probably the root of the above questions but how can I get hold of the > id > >> of the field created by the datagrid to edit a cell? > >> > >> The datagrid library isn't happy if I send an EditCelll message to a > cell > >> that has been customized to contain, for example, an option menu. By > "not > >> happy", I mean that any instructions in the handler after dispatching > the > >> EditCell message are skipped. I guess I should file a QCC report for > that > >> but in the meantime, how can I find the first column in the selected > line > >> that has not been customized to contain something other than straight > text? > >> > >> Pete > >> lcSQL Software > >> Home of lcStackBrowser and > >> SQLiteAdmin > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pete at lcsql.com Mon Jan 5 13:23:45 2015 From: pete at lcsql.com (Peter Haworth) Date: Mon, 5 Jan 2015 10:23:45 -0800 Subject: Project Browser vs App Browser (was "script scope variables inexplicably becoming unset") In-Reply-To: <451391360113.20150104215223@ahsoftware.net> References: <54A78CB0.3070900@hyperactivesw.com> <51429859159.20150103085003@ahsoftware.net> <1341455398863.20150103155543@ahsoftware.net> <451391360113.20150104215223@ahsoftware.net> Message-ID: Thanks for that clear explanation Mark. Your method sounds like exactly what I'm looking for. As far as the license, should I start by checking out the Creative Commons license? Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Sun, Jan 4, 2015 at 9:52 PM, Mark Wieder wrote: > Richard- > > Sunday, January 4, 2015, 5:21:36 PM, you wrote: > > > Once you've sold it, any open source license lets that person > redistribute > > freely. > > While I should know better than to argue legal matters with a lawyer... > You're wrong about that. > > The situation you're describing here and in your paper (I *did* skim > it... note that it's a dozen years old now and things haven't kept > still) is more akin to a viral license, and is the main objection > raised to using something like one of the GPL variants. > > What I do for open-source licensing for PowerDebug and PowerTools is > distribute an unlocked stack. People still have to purchase the stack > from my website and download it from there using their registration > code, but they are free to examine the code, modify it, learn from it > (ha!), amuse themselves, without restriction. They also don't get > updates without downloading them from the website, again using their > registration code. The right to distribute it themselves in any form, > modified or no, is explicitly denied by the license. > > This is open source software but not free software (in either sense of > the term). > > It's similar in one sense to music or video distribution - when you > buy media it's not locked up so that you can't get to it... you get > the right to listen or view yourself, but you don't get the right to > distribute it to others, in spite of the fact that it's technically > possible to do so. > > Creative Commons offers something similar in various forms of their > licensing agreements. You can choose what restrictions, if any, you > want to place on the documents you distribute. > > -- > -Mark Wieder > ahsoftware at gmail.com > > This communication may be unlawfully collected and stored by the National > Security Agency (NSA) in secret. The parties to this email do not > consent to the retrieving or storing of this communication and any > related metadata, as well as printing, copying, re-transmitting, > disseminating, or otherwise using it. If you believe you have received > this communication in error, please delete it immediately. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pete at lcsql.com Mon Jan 5 13:29:53 2015 From: pete at lcsql.com (Peter Haworth) Date: Mon, 5 Jan 2015 10:29:53 -0800 Subject: Project Browser vs App Browser (was "script scope variables inexplicably becoming unset") In-Reply-To: <00b601d028c3$d0306270$70912750$@FlexibleLearning.com> References: <00b601d028c3$d0306270$70912750$@FlexibleLearning.com> Message-ID: On Mon, Jan 5, 2015 at 12:44 AM, FlexibleLearning.com < admin at flexiblelearning.com> wrote: > I think most folks are only interested in whether it actually works, > whether > it suits their workflow, and whether it does what they need. > I agree with that. My own personal approach to that is that I wouldn't buy a product without trying a demo or at least having a money back policy of some sort. that it's hard to figure that out without a hands on demo. You could say that the video is a demo, it's just hard to get all the features of a product across in a relatively short video. But maybe that's enough. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From brahma at hindu.org Mon Jan 5 14:19:24 2015 From: brahma at hindu.org (Brahmanathaswami) Date: Mon, 05 Jan 2015 09:19:24 -1000 Subject: Moving a Group Smoothly In-Reply-To: References: <54A8BC58.1090705@hindu.org> Message-ID: <54AAE3BC.7020109@hindu.org> This works, but if you use any slow option Given that, e.g. settingDialog group is offset from this location by, say a "long" distance of 500 pixels. if you move to the new location over one second.. it still "stutters" across the screen. move group "SettingsDialog" to 291,351 in 1 seconds I'll test AnimationEngine and see if someone else has already solved this.. Swasti Astu, Be Well! Brahmanathaswami Kauai's Hindu Monastery www.HimalayanAcademy.com Roger Guay wrote: > One other thing: > > Try "move group "SettingsDialog" to 291,351 in 50 milliseconds?. You don?t need the from and you do need the duration time > > Cheers, > > Roger > > >> On Jan 3, 2015, at 9:06 PM, Brahmanathaswami wrote: >> >> This has probably been asked and answered 100 times. >> >> Because of the iOS limitation on opening substacks (no second windows allowed) >> >> I have set up a whole piece of the UI that I would normally put onto a substack... into a group... >> >> A "close" button and GUI clean up routine in the preopenstack handler pushes the group below the visible area to 291,1204 >> >> I just want the group to "slide up" smoothly and very quickly. But this script, in the 7.01 IDE performs very badly: >> >> on mouseUp >> lock messages >> move group "SettingsDialog" from 291,1204 to 291,351 without waiting >> end mouseUp >> >> The group moves up slowly and "stutters" as it moves. For modern UI/UX we really need elegant motion graphics behavior across the whole platform. >> >> Can this be improved? Is perfectly smooth motion even possible now in LiveCode? I realize it was never so great years ago, but I've been doing so much server side LC work in the past few years and hardly touched the presentation layer of app development until recently...and all my in house production tools apps are very plain/functional designs with zero eye candy. I thought motion would have much improved by now. What am I doing wrong? >> >> (Mac OS X Yosemite) >> >> >> Brahmanathaswami >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Mon Jan 5 14:25:00 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 05 Jan 2015 13:25:00 -0600 Subject: group id exists but yet not . . . In-Reply-To: References: <7E508649-C575-4A6E-AAF6-095ED2E52A63@gmail.com> <54A9D762.8050104@hyperactivesw.com> Message-ID: <54AAE50C.9000604@hyperactivesw.com> On 1/4/2015 7:20 PM, Dr. Hawkins wrote: > What's confusing me here is not whether or not it*should* work (which is > its own set of issues), but that there is a difference between these two. > They were: > > put exists(group id 1004 of group id 1111 of card id 1016 of stack "nv") && > exists(group id 1004 of stack "nv") > > both refer to a group on the same card, but one works, and not the other. Again, an ID is a specific reference which doesn't need to be nested inside another one. It's never occured to me to use IDs with an "object of object" syntax so I never ran into the problem, but apparently the parser doesn't like it. All you need is: exists(bg id xxx). IDs can't refer to more than one object and (apparently) references to them won't nest. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From mikedoub at gmail.com Mon Jan 5 14:52:11 2015 From: mikedoub at gmail.com (Michael Doub) Date: Mon, 05 Jan 2015 14:52:11 -0500 Subject: [ANN] New Version of the MasterLibrary is available Message-ID: <54AAEB6B.5060904@gmail.com> I just made available the latest version of the MasterLibrary. I added a reference to a standalone library that can be used to generate test data. Below you can see what has been added in the last few releases. Enjoy... https://www.dropbox.com/s/3wpwn3hfbmpl7sk/MasterLibrary.livecode?dl=0 -= Mike Release 20 * Changed the splashscreen logic to not be dependent on monitoring allowinterrupts. Much simpler to just wrap a try statement around the offending routine and loop until it is in memory. * Just for fun, I added a link to a library stack that I created that generates test data, for names, street addresses, states, provinces, zip and postal codes, phone numbers. There are also two fun routines that generate Villain Names and business titles. So just call me Doctor Shadow, Global Paradigm Orchestrator or how about The Atomic Freak, Internal Data Liason. Fun fun.... Release 19 * Changed the splashscreen logic to look at the value of allowInterrupts to monitor when the IDE has finished its initialization to make sure revloadedstacks is in memory. * Added busy indicators in areas where there was a long processing time. Release 18 * Changed __Init_Pi_gpio to __Pi_gpio_init to have consistent naming with the other Pi_gpio routines * Added __CenterTextVertically * Added Splash Screen and corrections to address the timing issue associated with needing to wait for IDE to finish loading before doing stack initialization that uses the revloadedstacks function. Also changed some references to more precisely address some objects. From pete at lcsql.com Mon Jan 5 15:28:51 2015 From: pete at lcsql.com (Peter Haworth) Date: Mon, 5 Jan 2015 12:28:51 -0800 Subject: Licensing Message-ID: I'm still highly confused about how to license lcStackBrowser in a way that allows it to be run in the Community Edition. >From the programing perspective, it's a couple of minutes work to remove the password protection. There will still be a charge for a license. The major issue I have if I understand the GPL license and the Creative Commons license correctly is that they both allow a licensed user to "convey" the code to anyone they choose free of charge and that's not acceptable to me. I guess that makes it not "open source" but the objective here is to make it available to Community Edition users, I don't really care if it meets the criteria to be called "open source". The basics for me are as follows. You can run the stack, modify or add to it in any way you choose for your own personal use. If you have modified or added to the code and you run into a problem, I will not support it unless the problem also occurs in the unmodified version of the stack. You may not give or sell the license to anyone else irrespective of whether you have modified the code. I accept that there is no practical way for me to enforce this but it at least needs to be stated in the license agreement. I may allow you to transfer the license if you request permission to do so. Is there in fact an existing license template that meets the above criteria? Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From irog at mac.com Mon Jan 5 17:03:47 2015 From: irog at mac.com (Roger Guay) Date: Mon, 05 Jan 2015 15:03:47 -0700 Subject: Moving a Group Smoothly In-Reply-To: <54AAE3BC.7020109@hindu.org> References: <54A8BC58.1090705@hindu.org> <54AAE3BC.7020109@hindu.org> Message-ID: <04EC7C08-348F-4394-8D77-DFED14792709@mac.com> True enough on the longer distances! Have you tried any version 6 of LC? If so, does it do better? Cheers, Roger > On Jan 5, 2015, at 12:19 PM, Brahmanathaswami wrote: > > Given that, e.g. settingDialog group is offset from this location by, say a "long" distance of 500 pixels. > > if you move to the new location over one second.. it still "stutters" across the screen. > > move group "SettingsDialog" to 291,351 in 1 seconds From charles at buchwald.ca Mon Jan 5 17:09:01 2015 From: charles at buchwald.ca (Charles E Buchwald) Date: Mon, 5 Jan 2015 16:09:01 -0600 Subject: Licensing In-Reply-To: References: Message-ID: I'd be very curious about this myself. I have some newer versions of some of tools which I have given away in the past, and I would like to release some kind of paid versions.... - Charles > On 05 Jan 2015, at 2:28 PM, Peter Haworth wrote: > > I'm still highly confused about how to license lcStackBrowser in a way that > allows it to be run in the Community Edition. > > From the programing perspective, it's a couple of minutes work to remove > the password protection. There will still be a charge for a license. > > The major issue I have if I understand the GPL license and the Creative > Commons license correctly is that they both allow a licensed user to > "convey" the code to anyone they choose free of charge and that's not > acceptable to me. I guess that makes it not "open source" but the > objective here is to make it available to Community Edition users, I don't > really care if it meets the criteria to be called "open source". > > The basics for me are as follows. > > You can run the stack, modify or add to it in any way you choose for your > own personal use. > > If you have modified or added to the code and you run into a problem, I > will not support it unless the problem also occurs in the unmodified > version of the stack. > > You may not give or sell the license to anyone else irrespective of whether > you have modified the code. I accept that there is no practical way for me > to enforce this but it at least needs to be stated in the license agreement. > > I may allow you to transfer the license if you request permission to do so. > > Is there in fact an existing license template that meets the above criteria? > > > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- Charles E. Buchwald CEO/Director General, Museografica Digital ? http://digital.museografica.com LC Developer Tools: http://buchwald.ca ? Email Notice: http://wp.me/P3aT4d-33 From coiin at verizon.net Mon Jan 5 17:50:57 2015 From: coiin at verizon.net (Colin Holgate) Date: Mon, 05 Jan 2015 17:50:57 -0500 Subject: Moving a Group Smoothly In-Reply-To: <04EC7C08-348F-4394-8D77-DFED14792709@mac.com> References: <54A8BC58.1090705@hindu.org> <54AAE3BC.7020109@hindu.org> <04EC7C08-348F-4394-8D77-DFED14792709@mac.com> Message-ID: <42A84AF5-A662-429D-9089-15507A52B017@verizon.net> I did a test, and at first the movement seemed smooth, more so in v7.0.1 than in v6.6.4. Then I tried making the group more complicated, and things were less smooth. So then I made a ridiculously complex group, and tried this test: on mouseUp if the shiftkey is down then move group 1 to 100,100 in 1 second exit mouseUp end if lock screen put the loc of group 1 into gloc import snapshot from group 1 hide group 1 set the loc of image 1 to gloc unlock screen move image 1 to 100,100 in 1 second send toggle to me in 1 second end mouseUp on toggle lock screen set the loc of group 1 to 100,100 show group 1 delete image 1 unlock screen end toggle You?ll see that if your group is complicate it may stutter along, but making it be a snapshot gives you a much smoother movement. In the above test you?ll need to manually move the group to the starting point you want to try. From bill at bluewatermaritime.com Mon Jan 5 17:53:10 2015 From: bill at bluewatermaritime.com (william humphrey) Date: Mon, 5 Jan 2015 18:53:10 -0400 Subject: building cross-platform Windows and Mac Message-ID: I noticed that ? which is a checkmark on Mac-OS is | a pipe symbol on Windows. Is there a font I can choose on my design that will work the same on Windows and Mac? I hope I don't have to put a bunch of "check which platform and do this or that". I assumed the font characters were the same and I'm kind of surprised. Thanks From paul at researchware.com Mon Jan 5 17:59:08 2015 From: paul at researchware.com (Paul Dupuis) Date: Mon, 05 Jan 2015 17:59:08 -0500 Subject: building cross-platform Windows and Mac In-Reply-To: References: Message-ID: <54AB173C.3020801@researchware.com> On 1/5/2015 5:53 PM, william humphrey wrote: > I noticed that ? which is a checkmark on Mac-OS is | a pipe symbol on Windows. > > Is there a font I can choose on my design that will work the same on > Windows and Mac? > > I hope I don't have to put a bunch of "check which platform and do > this or that". I assumed the font characters were the same and I'm > kind of surprised. > Characters in characters codes below 128 are the same between platforms. OSX and Windows use the ASCII character codes from 128-255 differently regardless of Font. So, unless you are using LiveCode 7, if you are using any character above ASCII 127, you do have to check what platform you are on. See the isoToMac and macToIso functions in the LiveCode Dictionary as well. And yes, it sucks. Paul Dupuis Researchware From vclement at gmail.com Mon Jan 5 18:01:37 2015 From: vclement at gmail.com (Vaughn Clement) Date: Mon, 5 Jan 2015 16:01:37 -0700 Subject: Licensing In-Reply-To: References: Message-ID: Hi Pete Did you ever get the solution for the Beta from LiveCode? I am still waiting to hear back from you when it is solved? Thank you Vaughn Clement On Target Solutions LLC (Support) On Target Solutions LLC Website: http://www.ontargetsolutions.biz Email: ontargetsolutions at yahoo.com Skype: vaughn.clement FaceTime: vclement at gmail.com Ph. 928-254-9062 On Mon, Jan 5, 2015 at 1:28 PM, Peter Haworth wrote: > I'm still highly confused about how to license lcStackBrowser in a way that > allows it to be run in the Community Edition. > > From the programing perspective, it's a couple of minutes work to remove > the password protection. There will still be a charge for a license. > > The major issue I have if I understand the GPL license and the Creative > Commons license correctly is that they both allow a licensed user to > "convey" the code to anyone they choose free of charge and that's not > acceptable to me. I guess that makes it not "open source" but the > objective here is to make it available to Community Edition users, I don't > really care if it meets the criteria to be called "open source". > > The basics for me are as follows. > > You can run the stack, modify or add to it in any way you choose for your > own personal use. > > If you have modified or added to the code and you run into a problem, I > will not support it unless the problem also occurs in the unmodified > version of the stack. > > You may not give or sell the license to anyone else irrespective of whether > you have modified the code. I accept that there is no practical way for me > to enforce this but it at least needs to be stated in the license > agreement. > > I may allow you to transfer the license if you request permission to do so. > > Is there in fact an existing license template that meets the above > criteria? > > > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bernd.niggemann at uni-wh.de Mon Jan 5 18:15:35 2015 From: bernd.niggemann at uni-wh.de (BNig) Date: Mon, 5 Jan 2015 15:15:35 -0800 (PST) Subject: Moving a Group Smoothly In-Reply-To: <54AAE3BC.7020109@hindu.org> References: <54A8BC58.1090705@hindu.org> <54AAE3BC.7020109@hindu.org> Message-ID: <1420499735245-4687392.post@n4.nabble.com> You could try to set the syncRate to e.g. 8 and see if that helps enough. Often it smoothes movements sufficiently. Default is 20, contrary to the dictionary a lower syncRate speeds up screen redraws whereas a higher syncRate slows down the screen redraws and increases "stutter" You might want to reset the syncrate to 20 after the move to keep the processor load low. Kind regard Bernd -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Moving-a-Group-Smoothly-tp4687305p4687392.html Sent from the Revolution - User mailing list archive at Nabble.com. From devin_asay at byu.edu Mon Jan 5 18:52:12 2015 From: devin_asay at byu.edu (Devin Asay) Date: Mon, 5 Jan 2015 23:52:12 +0000 Subject: building cross-platform Windows and Mac In-Reply-To: References: Message-ID: <537CF70A-CC45-49DF-A08D-B82ADC7525C6@byu.edu> On Jan 5, 2015, at 3:53 PM, william humphrey wrote: > I noticed that ? which is a checkmark on Mac-OS is | a pipe symbol on Windows. > > Is there a font I can choose on my design that will work the same on > Windows and Mac? > > I hope I don't have to put a bunch of "check which platform and do > this or that". I assumed the font characters were the same and I'm > kind of surprised. The Unicode character for checkmark is U+2713 (decimal 10,003), so if you?re using LC 7 just be sure to use that code point in your field. However, even in pre-v.7 you can set the character as an html unicode entity: set the htmltext of fld 1 to "✓? HTH Devin Devin Asay Office of Digital Humanities Brigham Young University From bonnmike at gmail.com Mon Jan 5 18:55:00 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Mon, 5 Jan 2015 16:55:00 -0700 Subject: Moving a Group Smoothly In-Reply-To: <1420499735245-4687392.post@n4.nabble.com> References: <54A8BC58.1090705@hindu.org> <54AAE3BC.7020109@hindu.org> <1420499735245-4687392.post@n4.nabble.com> Message-ID: Don't know if it will help, but have you set the layermode of the group to dynamic, and set the acceleratedrendering of the stack to true prior to the move? Also, since I assume you don't want the user to do anything else while the move is going on, you might try a tight loop, and slide the group around yourself. like a repeat with a 20ms wait, lock screen at the loop top, unlock at the bottom. (and layermode dynamic and acceleratedrendering to true) As Colin mentioned too, moving a snapshot should be MUCH smoother than moving the group itself. If you go the snapshot route, wouldn't hurt to set its layermode also. On Mon, Jan 5, 2015 at 4:15 PM, BNig wrote: > You could try to set the syncRate to e.g. 8 and see if that helps enough. > Often it smoothes movements sufficiently. > > Default is 20, contrary to the dictionary a lower syncRate speeds up screen > redraws whereas a higher syncRate slows down the screen redraws and > increases "stutter" > You might want to reset the syncrate to 20 after the move to keep the > processor load low. > > Kind regard > Bernd > > > > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/Moving-a-Group-Smoothly-tp4687305p4687392.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From eric at canelasoftware.com Mon Jan 5 19:02:46 2015 From: eric at canelasoftware.com (Eric Corbett) Date: Mon, 5 Jan 2015 16:02:46 -0800 Subject: iconGravity Message-ID: Cool new button property I discovered finally (new to me anyway). Any way to set the iconGravity to left, the textAlign to left and have the label start next to the icon without having to add spaces in front of the label? Thanks, - Eric From prothero at earthednet.org Mon Jan 5 19:09:11 2015 From: prothero at earthednet.org (William Prothero) Date: Mon, 5 Jan 2015 16:09:11 -0800 Subject: [ANN] New Version of the MasterLibrary is available In-Reply-To: <54AAEB6B.5060904@gmail.com> References: <54AAEB6B.5060904@gmail.com> Message-ID: <4EC6BF50-C001-4850-B69B-63FC5142349A@earthednet.org> Michael: This looks very interesting and it should be useful when casting around for code when the lc function names and properties don?t seem obvious. Thanks! Bill > On Jan 5, 2015, at 11:52 AM, Michael Doub wrote: > > I just made available the latest version of the MasterLibrary. I added a reference to a standalone library that can be used to generate test data. Below you can see what has been added in the last few releases. Enjoy... > > https://www.dropbox.com/s/3wpwn3hfbmpl7sk/MasterLibrary.livecode?dl=0 > > -= Mike > > From skip at magicgate.com Mon Jan 5 20:16:12 2015 From: skip at magicgate.com (Magicgate Software - Skip Kimpel) Date: Mon, 5 Jan 2015 20:16:12 -0500 Subject: [ANN] New Version of the MasterLibrary is available In-Reply-To: <54AAEB6B.5060904@gmail.com> References: <54AAEB6B.5060904@gmail.com> Message-ID: Question: When I try to "insert script" after choosing the target stack I always get "Do you really want to set the Library Scripts of stack Untitled 1 to empty" After I choose Yes, the dialog box goes away nothing appears to have happened. Obviously my test stack is "Untitled 1" but I am assuming something else is supposed to occur. SKIP On Mon, Jan 5, 2015 at 2:52 PM, Michael Doub wrote: > I just made available the latest version of the MasterLibrary. I added a > reference to a standalone library that can be used to generate test data. > Below you can see what has been added in the last few releases. Enjoy... > > https://www.dropbox.com/s/3wpwn3hfbmpl7sk/MasterLibrary.livecode?dl=0 > > -= Mike > > > > Release 20 > * Changed the splashscreen logic to not be dependent on monitoring > allowinterrupts. Much simpler to > just wrap a try statement around the offending routine and loop until > it is in memory. > * Just for fun, I added a link to a library stack that I created that > generates test data, for names, > street addresses, states, provinces, zip and postal codes, phone > numbers. There are also two fun > routines that generate Villain Names and business titles. So just > call me Doctor Shadow, Global > Paradigm Orchestrator or how about The Atomic Freak, Internal Data > Liason. Fun fun.... > > Release 19 > * Changed the splashscreen logic to look at the value of > allowInterrupts to monitor when the IDE has > finished its initialization to make sure revloadedstacks is in memory. > * Added busy indicators in areas where there was a long processing time. > > Release 18 > * Changed __Init_Pi_gpio to __Pi_gpio_init to have consistent naming > with the other Pi_gpio routines > * Added __CenterTextVertically > * Added Splash Screen and corrections to address the timing issue > associated with needing to wait for > IDE to finish loading before doing stack initialization that uses the > revloadedstacks function. Also > changed some references to more precisely address some objects. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From skip at magicgate.com Mon Jan 5 20:19:22 2015 From: skip at magicgate.com (Magicgate Software - Skip Kimpel) Date: Mon, 5 Jan 2015 20:19:22 -0500 Subject: [ANN] New Version of the MasterLibrary is available In-Reply-To: References: <54AAEB6B.5060904@gmail.com> Message-ID: Never mind. I didn't realize you had to "check" the box next to the function you wanted to insert. I thought by clicking on it and loading it into the examples / notes screen was good enough. So in short, I was able to make it work. Sorry for the confusion! SKIP On Mon, Jan 5, 2015 at 8:16 PM, Magicgate Software - Skip Kimpel < skip at magicgate.com> wrote: > Question: When I try to "insert script" after choosing the target stack I > always get "Do you really want to set the Library Scripts of stack Untitled > 1 to empty" After I choose Yes, the dialog box goes away nothing appears > to have happened. Obviously my test stack is "Untitled 1" but I am > assuming something else is supposed to occur. > > SKIP > > On Mon, Jan 5, 2015 at 2:52 PM, Michael Doub wrote: > >> I just made available the latest version of the MasterLibrary. I added >> a reference to a standalone library that can be used to generate test >> data. Below you can see what has been added in the last few releases. >> Enjoy... >> >> https://www.dropbox.com/s/3wpwn3hfbmpl7sk/MasterLibrary.livecode?dl=0 >> >> -= Mike >> >> >> >> Release 20 >> * Changed the splashscreen logic to not be dependent on monitoring >> allowinterrupts. Much simpler to >> just wrap a try statement around the offending routine and loop until >> it is in memory. >> * Just for fun, I added a link to a library stack that I created that >> generates test data, for names, >> street addresses, states, provinces, zip and postal codes, phone >> numbers. There are also two fun >> routines that generate Villain Names and business titles. So just >> call me Doctor Shadow, Global >> Paradigm Orchestrator or how about The Atomic Freak, Internal Data >> Liason. Fun fun.... >> >> Release 19 >> * Changed the splashscreen logic to look at the value of >> allowInterrupts to monitor when the IDE has >> finished its initialization to make sure revloadedstacks is in memory. >> * Added busy indicators in areas where there was a long processing time. >> >> Release 18 >> * Changed __Init_Pi_gpio to __Pi_gpio_init to have consistent naming >> with the other Pi_gpio routines >> * Added __CenterTextVertically >> * Added Splash Screen and corrections to address the timing issue >> associated with needing to wait for >> IDE to finish loading before doing stack initialization that uses the >> revloadedstacks function. Also >> changed some references to more precisely address some objects. >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > From andrew at ctech.me Mon Jan 5 20:23:34 2015 From: andrew at ctech.me (Andrew Kluthe) Date: Mon, 5 Jan 2015 19:23:34 -0600 Subject: Licensing In-Reply-To: References: Message-ID: No, I think it would have to use the same license as livecode in this situation as all applications made with community edition are required to comply as well. Unless, runrev makes an exception and allows you to run non-gpl plugins in their gpl ide (stacks made by commercial version but used in the community version?). Seems like a lot of people solve this by making the commercial version have more current feature sets or better support than the community editions. https://www.zetetic.net/sqlcipher/open-source/ On Mon, Jan 5, 2015 at 2:28 PM, Peter Haworth wrote: > I'm still highly confused about how to license lcStackBrowser in a way that > allows it to be run in the Community Edition. > > From the programing perspective, it's a couple of minutes work to remove > the password protection. There will still be a charge for a license. > > The major issue I have if I understand the GPL license and the Creative > Commons license correctly is that they both allow a licensed user to > "convey" the code to anyone they choose free of charge and that's not > acceptable to me. I guess that makes it not "open source" but the > objective here is to make it available to Community Edition users, I don't > really care if it meets the criteria to be called "open source". > > The basics for me are as follows. > > You can run the stack, modify or add to it in any way you choose for your > own personal use. > > If you have modified or added to the code and you run into a problem, I > will not support it unless the problem also occurs in the unmodified > version of the stack. > > You may not give or sell the license to anyone else irrespective of whether > you have modified the code. I accept that there is no practical way for me > to enforce this but it at least needs to be stated in the license > agreement. > > I may allow you to transfer the license if you request permission to do so. > > Is there in fact an existing license template that meets the above > criteria? > > > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Regards, Andrew Kluthe andrew at ctech.me From ethanlish at gmail.com Mon Jan 5 20:47:12 2015 From: ethanlish at gmail.com (Ethan Lish) Date: Mon, 05 Jan 2015 17:47:12 -0800 (PST) Subject: Code repository Message-ID: <1420508832043.84c4507e@Nodemailer> What LiveCode and LiveCode related code repositories are publicly open ? I see these on GitHub: https://github.com/runrevmichael/livecode.git https://github.com/runrevali/livecode.git https://github.com/runrevfraser/livecode.git https://github.com/runrevsebastien/livecode.git https://github.com/runrevpanos/livecode.git https://github.com/runrevmark/livecode.git Thanks Ethan ? Ethan at Lish.net240.876.1389 From mwieder at ahsoftware.net Mon Jan 5 21:36:50 2015 From: mwieder at ahsoftware.net (Mark Wieder) Date: Mon, 5 Jan 2015 18:36:50 -0800 Subject: Project Browser vs App Browser (was "script scope variables inexplicably becoming unset") In-Reply-To: References: <54A78CB0.3070900@hyperactivesw.com> <51429859159.20150103085003@ahsoftware.net> <1341455398863.20150103155543@ahsoftware.net> <451391360113.20150104215223@ahsoftware.net> Message-ID: <1871637865963.20150105183650@ahsoftware.net> Pete- Monday, January 5, 2015, 10:23:45 AM, you wrote: > Thanks for that clear explanation Mark. Your method sounds like exactly > what I'm looking for. As far as the license, should I start by checking > out the Creative Commons license? For some reason unclear to me (IANAL) Creative Commons doesn't recommend using their licensing for software. Nonetheless, I think it's a good starting point for thinking about these things. -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From bvlahos at mac.com Mon Jan 5 22:48:08 2015 From: bvlahos at mac.com (Bill Vlahos) Date: Mon, 05 Jan 2015 19:48:08 -0800 Subject: Licensing In-Reply-To: References: Message-ID: <432028B9-1286-4D76-BEA2-A36124F75D92@mac.com> In this case the software in question (like my lcTaskList) is a tool for use in the IDE not a library or object that would be included in a product made with LiveCode. There is no way to tell if this software is written in the Community Edition vs. the Commercial Edition. If the program was password protected you would know it could only be created and used in the Commercial Edition. The differentiator in this case is the lack of password protection which allows the plugins to work in either edition. I have a copyright notice in lcTaskList so the work is protected against copyright violation even though the source code is visible in the same way as books are visible yet copyrighted. It is not free nor can it be sold or distributed to other people. Making different versions of the software makes sense in some circumstances but that is more commonly done with making a demo or trial version that has limitations. In the case of lcTaskList there is only one version which works and costs the same for both versions. Buying it is just like buying any other software. As Peter pointed out there just isn?t any way to make a trial version of software that works in the Community Edition unless the trial version is different than the release version. Since this type of a trial version is feature limited the user doesn?t really know all the things the program can do. One way to help customers is to offer a money back guarantee (lcTaskList does through the LiveCode Store). Bill Vlahos _________________ InfoWallet (http://www.infowallet.com) is about keeping your important life information with you, accessible, and secure. lcTaskList: (http://www.infowallet.com/lctasklist/index.htm) RunRev lcTaskList Forum: (http://forums.runrev.com/viewforum.php?f=61) > On Jan 5, 2015, at 5:23 PM, Andrew Kluthe wrote: > > No, I think it would have to use the same license as livecode in this > situation as all applications made with community edition are required to > comply as well. Unless, runrev makes an exception and allows you to run > non-gpl plugins in their gpl ide (stacks made by commercial version but > used in the community version?). > > Seems like a lot of people solve this by making the commercial version have > more current feature sets or better support than the community editions. From mwieder at ahsoftware.net Tue Jan 6 01:28:46 2015 From: mwieder at ahsoftware.net (Mark Wieder) Date: Mon, 5 Jan 2015 22:28:46 -0800 Subject: Code repository In-Reply-To: <1420508832043.84c4507e@Nodemailer> References: <1420508832043.84c4507e@Nodemailer> Message-ID: <161479941529.20150105222846@ahsoftware.net> Ethan- Monday, January 5, 2015, 5:47:12 PM, you wrote: > What LiveCode and LiveCode related code repositories are publicly open ? > I see these on GitHub: > https://github.com/runrevmichael/livecode.git > https://github.com/runrevali/livecode.git > https://github.com/runrevfraser/livecode.git > https://github.com/runrevsebastien/livecode.git > https://github.com/runrevpanos/livecode.git > https://github.com/runrevmark/livecode.git > Thanks Github's runrev repository page also links to all the various forks of the main repository. -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From jacque at hyperactivesw.com Tue Jan 6 01:31:38 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 06 Jan 2015 00:31:38 -0600 Subject: Moving a Group Smoothly In-Reply-To: References: <54A8BC58.1090705@hindu.org> <54AAE3BC.7020109@hindu.org> <1420499735245-4687392.post@n4.nabble.com> Message-ID: <54AB814A.8060801@hyperactivesw.com> On 1/5/2015 5:55 PM, Mike Bonner wrote: > Don't know if it will help, but have you set the layermode of the group to > dynamic, and set the acceleratedrendering of the stack to true prior to the > move? That's what I was going to suggest too. It's necessary. Also, only the group should be dynamic; every object within the group must be static. Setting the controls inside the group to anything but static will actually cause a slowdown. Also, acceleratedRendering is not saved with the stack, it has to be set in the script before any movement occurs. I usually do it on preOpenStack or somewhere else early on. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From ludovic.thebault at laposte.net Tue Jan 6 02:42:02 2015 From: ludovic.thebault at laposte.net (Ludovic THEBAULT) Date: Tue, 6 Jan 2015 08:42:02 +0100 Subject: Textcolor on mobile Message-ID: Hello Strange problem here : I?ve two scrolling list fields on two differents cards, with the same settings, especially the colors. On the iOS simulator, when i select a line, the hilitecolor is fine, but for one field the text color become white whatever the setting i choose for the textcolor (and for the second field, it?s ok), even if i put this code in the mouseup handler of the field, the color stay white ! on mouseup set the foregroundcolor of me to black end mouseup If someone has an idea... Thanks in advance (and happy new year !) Ludovic From dave at applicationinsight.com Tue Jan 6 06:58:22 2015 From: dave at applicationinsight.com (Dave Kilroy) Date: Tue, 6 Jan 2015 03:58:22 -0800 (PST) Subject: Moving a Group Smoothly In-Reply-To: <54AB814A.8060801@hyperactivesw.com> References: <54A8BC58.1090705@hindu.org> <54AAE3BC.7020109@hindu.org> <1420499735245-4687392.post@n4.nabble.com> <54AB814A.8060801@hyperactivesw.com> Message-ID: <1420545502986-4687406.post@n4.nabble.com> +1 on Colin's snapshot method ----- "Some are born coders, some achieve coding, and some have coding thrust upon them." - William Shakespeare & Hugh Senior -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Moving-a-Group-Smoothly-tp4687305p4687406.html Sent from the Revolution - User mailing list archive at Nabble.com. From bobsneidar at iotecdigital.com Tue Jan 6 11:20:04 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 6 Jan 2015 16:20:04 +0000 Subject: Binary to Decimal Conversion In-Reply-To: References: <4D5588AF-5DF9-4570-BEB9-27BA9BF936CA@iotecdigital.com> Message-ID: <353982BA-14EA-406E-9FF0-3F6A1B4E86E1@iotecdigital.com> Whaaa??? Oh happy day! That is what I needed! Thanks! Bob S > On Jan 2, 2015, at 17:23 , Mike Bonner wrote: > > I assume you're wanting to do it by hand rather than using the baseconvert > function? > > baseconvert(00101001,2,10).. > > On Fri, Jan 2, 2015 at 5:55 PM, Bob Sneidar > wrote: > >> Hi all. >> >> I thought for sure there was some formula one liner to convert a binary >> value to a decimal, but poking around on the internet, all I can find is an >> iteration method which adds the base power of each bit. Fir example, (1 * >> 2^0) + (1 * 2^1) = 3. Is this the only way or is there an actual >> mathematical formula I can use to convert a binary number into another base? >> >> Bob S >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Tue Jan 6 11:41:28 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 6 Jan 2015 16:41:28 +0000 Subject: put URL error In-Reply-To: <54A9CC99.9050504@tweedly.net> References: <54A9CC99.9050504@tweedly.net> Message-ID: Probably not an OS issue, but rather a browser issue. Some browsers are better are doing what you really meant to say than others. Bob S On Jan 4, 2015, at 15:28 , Alex Tweedly > wrote: I think it should be "http://www.lcsql.com/..." i.e. note the // after the http: No idea why that would matter, or why it would matter on Win and not on Mac, or ... but give it a try :-) -- Alex From bobsneidar at iotecdigital.com Tue Jan 6 11:44:39 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 6 Jan 2015 16:44:39 +0000 Subject: replaceText problem In-Reply-To: References: <54A764CE.8000108@hyperactivesw.com> Message-ID: I read up on this, thinking that LC was implementing some substandard regex functionality. Turns out this is the state of affairs in the regex world. Bob S On Jan 3, 2015, at 09:35 , Peter Haworth > wrote: Looking into this further as there's a note in the dictionary that says not all regex characters are supported and dictionary examples that include any type of regex are conspicuous by their absence. Pete From bobsneidar at iotecdigital.com Tue Jan 6 11:46:07 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 6 Jan 2015 16:46:07 +0000 Subject: replaceText problem In-Reply-To: <54A836BD.4060506@hyperactivesw.com> References: <54A764CE.8000108@hyperactivesw.com> <54A836BD.4060506@hyperactivesw.com> Message-ID: <7301F5E6-33F4-4516-9E9C-60E1764D0C60@iotecdigital.com> Actually it is possible to say: if myVar is true then breakpoint But your filter without idea is a good one. Bob S On Jan 3, 2015, at 10:36 , J. Landman Gay > wrote: I see now. Do you have to use regex? Breakpoint commands are always on a line by themselves. What about "filter...without"? -- Jacqueline Landman Gay From bobsneidar at iotecdigital.com Tue Jan 6 11:47:24 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 6 Jan 2015 16:47:24 +0000 Subject: replaceText problem In-Reply-To: <54A83F17.4040309@hyperactivesw.com> References: <54A764CE.8000108@hyperactivesw.com> <54A836BD.4060506@hyperactivesw.com> <54A83F17.4040309@hyperactivesw.com> Message-ID: There is a semicolon ?trick??? Bob S On Jan 3, 2015, at 11:12 , J. Landman Gay > wrote: Well, there could be a comment after it. And some rare individuals use the semicolon trick to combine lines unexpectedly. But this should work for any line that starts with "breakpoint": filter tScript without "breakpoint*" -- Jacqueline Landman Gay From bobsneidar at iotecdigital.com Tue Jan 6 11:50:59 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 6 Jan 2015 16:50:59 +0000 Subject: replaceText problem In-Reply-To: References: <54A764CE.8000108@hyperactivesw.com> <54A836BD.4060506@hyperactivesw.com> <0AB6C359-D3A2-41B9-972E-B8062B60F1D8@gmail.com> <54A83F7F.9010407@hyperactivesw.com> Message-ID: <3C05B4C0-1157-44EF-92F9-AD6924F80728@iotecdigital.com> Lawyers using regex. ;-) Bob S On Jan 4, 2015, at 08:00 , Dr. Hawkins > wrote: Plain regex is wonderful! :) Quite seriously, I rarely get through a week at my law office without using it . . . -- Dr. Richard E. Hawkins, Esq. From bodine at bodinetraininggames.com Tue Jan 6 12:51:13 2015 From: bodine at bodinetraininggames.com (tbodine) Date: Tue, 6 Jan 2015 09:51:13 -0800 (PST) Subject: [ANN] colorPiquer In-Reply-To: References: Message-ID: <1420566673611-4687413.post@n4.nabble.com> Thanks Roger! -- Tom Bodine -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/ANN-colorPiquer-tp4687360p4687413.html Sent from the Revolution - User mailing list archive at Nabble.com. From scott at tactilemedia.com Tue Jan 6 13:07:25 2015 From: scott at tactilemedia.com (Scott Rossi) Date: Tue, 6 Jan 2015 10:07:25 -0800 Subject: Textcolor on mobile In-Reply-To: References: Message-ID: <3E327724-FDB6-4D55-A216-E0C40BE170EE@tactilemedia.com> You might have some text-level color applied to individual characters or lines in the field. In the message box, try: set the textColor of char 1 to -1 of fld ?xyz? to empty This way you should be able to set the color of the field itself, instead of colorizing the text within the field. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On Jan 5, 2015, at 11:42 PM, Ludovic THEBAULT wrote: > Hello > > Strange problem here : > > I?ve two scrolling list fields on two differents cards, with the same settings, especially the colors. On the iOS simulator, when i select a line, the hilitecolor is fine, but for one field the text color become white whatever the setting i choose for the textcolor (and for the second field, it?s ok), even if i put this code in the mouseup handler of the field, the color stay white ! > > on mouseup > set the foregroundcolor of me to black > end mouseup > > If someone has an idea... > Thanks in advance (and happy new year !) > > Ludovic > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dunbarx at aol.com Tue Jan 6 13:13:30 2015 From: dunbarx at aol.com (dunbarx at aol.com) Date: Tue, 6 Jan 2015 13:13:30 -0500 Subject: replaceText problem In-Reply-To: <7301F5E6-33F4-4516-9E9C-60E1764D0C60@iotecdigital.com> References: <54A764CE.8000108@hyperactivesw.com> <54A836BD.4060506@hyperactivesw.com> <7301F5E6-33F4-4516-9E9C-60E1764D0C60@iotecdigital.com> Message-ID: <8D1F7F39C621077-D58-96966@webmail-vm089.sysops.aol.com> Bob. "Actually it is possible to say: if myVar is true then breakpoint" Correct, though I have always thought that sort of thing: on mouseUp repeat with y = 1 to 10 put random(5) into temp if temp = 3 then breakpoint end repeat end mouseUp is better served with a watchpoint. Craig -----Original Message----- From: Bob Sneidar To: How to use LiveCode Sent: Tue, Jan 6, 2015 12:07 pm Subject: Re: replaceText problem Actually it is possible to say: if myVar is true then breakpoint But your filter without idea is a good one. Bob S On Jan 3, 2015, at 10:36 , J. Landman Gay > wrote: I see now. Do you have to use regex? Breakpoint commands are always on a line by themselves. What about "filter...without"? -- Jacqueline Landman Gay _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From pete at lcsql.com Tue Jan 6 13:27:17 2015 From: pete at lcsql.com (Peter Haworth) Date: Tue, 6 Jan 2015 10:27:17 -0800 Subject: replaceText problem In-Reply-To: <7301F5E6-33F4-4516-9E9C-60E1764D0C60@iotecdigital.com> References: <54A764CE.8000108@hyperactivesw.com> <54A836BD.4060506@hyperactivesw.com> <7301F5E6-33F4-4516-9E9C-60E1764D0C60@iotecdigital.com> Message-ID: On Tue, Jan 6, 2015 at 8:46 AM, Bob Sneidar wrote: > filter without idea I feel like this sometimes. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From irog at mac.com Tue Jan 6 13:35:14 2015 From: irog at mac.com (Roger Guay) Date: Tue, 06 Jan 2015 11:35:14 -0700 Subject: [ANN] colorPiquer In-Reply-To: <1420566673611-4687413.post@n4.nabble.com> References: <1420566673611-4687413.post@n4.nabble.com> Message-ID: <1FD99C46-605E-4B0B-9987-5F8DEAD7BFC3@mac.com> You?re welcome, Tom BTW, I just noticed that colorPiquer does not work well in version 7. I?ll try to fix ASAP. Thanks, Roger > On Jan 6, 2015, at 10:51 AM, tbodine wrote: > > Thanks Roger! > -- Tom Bodine > > > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/ANN-colorPiquer-tp4687360p4687413.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Tue Jan 6 13:41:13 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 06 Jan 2015 12:41:13 -0600 Subject: replaceText problem In-Reply-To: References: <54A764CE.8000108@hyperactivesw.com> <54A836BD.4060506@hyperactivesw.com> <54A83F17.4040309@hyperactivesw.com> Message-ID: <54AC2C49.6090108@hyperactivesw.com> On 1/6/2015 10:47 AM, Bob Sneidar wrote: > There is a semicolon ?trick??? Yes, you can separate statement lines in scripts with a semicolon instead of a return character. It's most useful in the one-line message box but can be inconsistent there, where it usually works but sometimes doesn't. I know of one person who uses it in scripts. I find that difficult to read and debug. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From pete at lcsql.com Tue Jan 6 13:52:53 2015 From: pete at lcsql.com (Peter Haworth) Date: Tue, 6 Jan 2015 10:52:53 -0800 Subject: Licensing In-Reply-To: <432028B9-1286-4D76-BEA2-A36124F75D92@mac.com> References: <432028B9-1286-4D76-BEA2-A36124F75D92@mac.com> Message-ID: Hi Bill, Thanks for the input. I think I'm homing in on how to do this. My web site will have 3-4 videos on the main features of the product and also the User Guide. User buys the product and gets either a download link and maybe a license key as Mark suggested. I have a license agreement in my SQLiteAdmin program that with a few minor alterations will work for lcStackBrowser. I already have an installer stack and will make that into a standalone which has the license agreement built into it. When the installer runs for the first time, it will display the license agreement and note that by installing they are accepting its terms. I'll also put the license agreement into the main stack script although anyone would be able to remove it. And just for kicks, I'll put it into a file on my web site and provide a way to display it from the product. Yes, I know this is somewhat paranoid but it makes me feel comfortable enough that I think I'm ready to make things available for the Community Edition. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Mon, Jan 5, 2015 at 7:48 PM, Bill Vlahos wrote: > In this case the software in question (like my lcTaskList) is a tool for > use in the IDE not a library or object that would be included in a product > made with LiveCode. > > There is no way to tell if this software is written in the Community > Edition vs. the Commercial Edition. If the program was password protected > you would know it could only be created and used in the Commercial Edition. > The differentiator in this case is the lack of password protection which > allows the plugins to work in either edition. > > I have a copyright notice in lcTaskList so the work is protected against > copyright violation even though the source code is visible in the same way > as books are visible yet copyrighted. It is not free nor can it be sold or > distributed to other people. > > Making different versions of the software makes sense in some > circumstances but that is more commonly done with making a demo or trial > version that has limitations. In the case of lcTaskList there is only one > version which works and costs the same for both versions. Buying it is just > like buying any other software. As Peter pointed out there just isn?t any > way to make a trial version of software that works in the Community Edition > unless the trial version is different than the release version. Since this > type of a trial version is feature limited the user doesn?t really know all > the things the program can do. > > One way to help customers is to offer a money back guarantee (lcTaskList > does through the LiveCode Store). > > Bill Vlahos > _________________ > InfoWallet (http://www.infowallet.com) is about keeping your important > life information with you, accessible, and secure. > lcTaskList: (http://www.infowallet.com/lctasklist/index.htm) > RunRev lcTaskList Forum: (http://forums.runrev.com/viewforum.php?f=61) > > > On Jan 5, 2015, at 5:23 PM, Andrew Kluthe wrote: > > > > No, I think it would have to use the same license as livecode in this > > situation as all applications made with community edition are required to > > comply as well. Unless, runrev makes an exception and allows you to run > > non-gpl plugins in their gpl ide (stacks made by commercial version but > > used in the community version?). > > > > Seems like a lot of people solve this by making the commercial version > have > > more current feature sets or better support than the community editions. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bill at bluewatermaritime.com Tue Jan 6 15:13:08 2015 From: bill at bluewatermaritime.com (william humphrey) Date: Tue, 6 Jan 2015 16:13:08 -0400 Subject: building cross-platform Windows and Mac In-Reply-To: <537CF70A-CC45-49DF-A08D-B82ADC7525C6@byu.edu> References: <537CF70A-CC45-49DF-A08D-B82ADC7525C6@byu.edu> Message-ID: Thanks for all the help. I was hoping LC 7 would do all the work for me. On Mon, Jan 5, 2015 at 7:52 PM, Devin Asay wrote: > > On Jan 5, 2015, at 3:53 PM, william humphrey wrote: > >> I noticed that ? which is a checkmark on Mac-OS is | a pipe symbol on Windows. >> >> Is there a font I can choose on my design that will work the same on >> Windows and Mac? >> >> I hope I don't have to put a bunch of "check which platform and do >> this or that". I assumed the font characters were the same and I'm >> kind of surprised. > > The Unicode character for checkmark is U+2713 (decimal 10,003), so if you?re using LC 7 just be sure to use that code point in your field. However, even in pre-v.7 you can set the character as an html unicode entity: > > set the htmltext of fld 1 to "✓? > > HTH > > Devin > > Devin Asay > Office of Digital Humanities > Brigham Young University > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- http://www.bluewatermaritime.com From hello at simonsmith.co Tue Jan 6 16:09:47 2015 From: hello at simonsmith.co (Simon Smith) Date: Tue, 6 Jan 2015 23:09:47 +0200 Subject: Licensing In-Reply-To: References: <432028B9-1286-4D76-BEA2-A36124F75D92@mac.com> Message-ID: Hi While I don't have have much experience with the LiveCode GPL, I have spent some time looking at how the GPL is used with systems, so not certain with how this would translate On Tue, Jan 6, 2015 at 8:52 PM, Peter Haworth wrote: > Hi Bill, > Thanks for the input. > > I think I'm homing in on how to do this. > > My web site will have 3-4 videos on the main features of the product and > also the User Guide. > > User buys the product and gets either a download link and maybe a license > key as Mark suggested. > > I have a license agreement in my SQLiteAdmin program that with a few minor > alterations will work for lcStackBrowser. > > I already have an installer stack and will make that into a standalone > which has the license agreement built into it. When the installer runs for > the first time, it will display the license agreement and note that by > installing they are accepting its terms. > > I'll also put the license agreement into the main stack script although > anyone would be able to remove it. And just for kicks, I'll put it into a > file on my web site and provide a way to display it from the product. > > Yes, I know this is somewhat paranoid but it makes me feel comfortable > enough that I think I'm ready to make things available for the Community > Edition. > > > > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin > > On Mon, Jan 5, 2015 at 7:48 PM, Bill Vlahos wrote: > > > In this case the software in question (like my lcTaskList) is a tool for > > use in the IDE not a library or object that would be included in a > product > > made with LiveCode. > > > > There is no way to tell if this software is written in the Community > > Edition vs. the Commercial Edition. If the program was password protected > > you would know it could only be created and used in the Commercial > Edition. > > The differentiator in this case is the lack of password protection which > > allows the plugins to work in either edition. > > > > I have a copyright notice in lcTaskList so the work is protected against > > copyright violation even though the source code is visible in the same > way > > as books are visible yet copyrighted. It is not free nor can it be sold > or > > distributed to other people. > > > > Making different versions of the software makes sense in some > > circumstances but that is more commonly done with making a demo or trial > > version that has limitations. In the case of lcTaskList there is only one > > version which works and costs the same for both versions. Buying it is > just > > like buying any other software. As Peter pointed out there just isn?t any > > way to make a trial version of software that works in the Community > Edition > > unless the trial version is different than the release version. Since > this > > type of a trial version is feature limited the user doesn?t really know > all > > the things the program can do. > > > > One way to help customers is to offer a money back guarantee (lcTaskList > > does through the LiveCode Store). > > > > Bill Vlahos > > _________________ > > InfoWallet (http://www.infowallet.com) is about keeping your important > > life information with you, accessible, and secure. > > lcTaskList: (http://www.infowallet.com/lctasklist/index.htm) > > RunRev lcTaskList Forum: (http://forums.runrev.com/viewforum.php?f=61) > > > > > On Jan 5, 2015, at 5:23 PM, Andrew Kluthe wrote: > > > > > > No, I think it would have to use the same license as livecode in this > > > situation as all applications made with community edition are required > to > > > comply as well. Unless, runrev makes an exception and allows you to run > > > non-gpl plugins in their gpl ide (stacks made by commercial version but > > > used in the community version?). > > > > > > Seems like a lot of people solve this by making the commercial version > > have > > > more current feature sets or better support than the community > editions. > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- *Simon Smith* *seo, online marketing, web development* w. http://www.simonsmith.co m. +27 83 306 7862 From prothero at earthednet.org Tue Jan 6 16:43:15 2015 From: prothero at earthednet.org (William Prothero) Date: Tue, 6 Jan 2015 13:43:15 -0800 Subject: Flash in LC Browser window, in Windows? Message-ID: Folks: I play a youTube video in a browser window, which works fine on my Mac OSX10.10.1. However, when I try to play the same video in Windows 7 (64 bit), I get a black window that says: Adobe Flash Player or an HTML5 supported browser is required for video playback. Get the latest Flash Player Learn more about upgrading to an HTML5 browser I have downloaded the latest flash player. Hmmm?l I am running a 64bit version of Windows 7. I wonder if that could be it. I?ll try the 32 bit version. That?s it! Hmm?. So, I guess LC is not yet ready for 64bit? Bill William A. Prothero http://es.earthednet.org/ From bvlahos at mac.com Tue Jan 6 17:03:26 2015 From: bvlahos at mac.com (Bill Vlahos) Date: Tue, 06 Jan 2015 14:03:26 -0800 Subject: Licensing In-Reply-To: References: <432028B9-1286-4D76-BEA2-A36124F75D92@mac.com> Message-ID: Pete, I?m glad you are getting comfortable with this. I know it has been a struggle. Bill > On Jan 6, 2015, at 10:52 AM, Peter Haworth wrote: > > Hi Bill, > Thanks for the input. > > I think I'm homing in on how to do this. > > My web site will have 3-4 videos on the main features of the product and > also the User Guide. > > User buys the product and gets either a download link and maybe a license > key as Mark suggested. > > I have a license agreement in my SQLiteAdmin program that with a few minor > alterations will work for lcStackBrowser. > > I already have an installer stack and will make that into a standalone > which has the license agreement built into it. When the installer runs for > the first time, it will display the license agreement and note that by > installing they are accepting its terms. > > I'll also put the license agreement into the main stack script although > anyone would be able to remove it. And just for kicks, I'll put it into a > file on my web site and provide a way to display it from the product. > > Yes, I know this is somewhat paranoid but it makes me feel comfortable > enough that I think I'm ready to make things available for the Community > Edition. > > > > Pete From hello at simonsmith.co Tue Jan 6 17:09:46 2015 From: hello at simonsmith.co (Simon Smith) Date: Wed, 7 Jan 2015 00:09:46 +0200 Subject: Licensing In-Reply-To: References: <432028B9-1286-4D76-BEA2-A36124F75D92@mac.com> Message-ID: oops, gmail acting up :( Hi I like Bill's advise While I don't have have much experience with the LiveCode GPL, I have spent some time looking at how the GPL is used with other software,(especially WordPress), so not certain with how this would translate to LiveCode. WP Developers that follow the GPL do on the whole seem to be very successfull. Those that don't follow the GPL can also be equally successfull, many on the other hand don't survive the public backlash. There is also a growing trend in only doing licencing / support / updates on an annual basis and moving away from lifetime support. Going GPL / Opensource etc is definitly a leap of faith. I think one of the most important thing's to offer though is great service / support to go with the software. Put the support and even documentation behind a secure login, and it can go a long way to making a copy / "unlicenced" version unattractive. It also makes the logistics of handling support much easier. Simon On Tue, Jan 6, 2015 at 11:09 PM, Simon Smith wrote: > Hi > > While I don't have have much experience with the LiveCode GPL, I have > spent some time looking at how the GPL is used with systems, so not certain > with how this would translate > > On Tue, Jan 6, 2015 at 8:52 PM, Peter Haworth wrote: > >> Hi Bill, >> Thanks for the input. >> >> I think I'm homing in on how to do this. >> >> My web site will have 3-4 videos on the main features of the product and >> also the User Guide. >> >> User buys the product and gets either a download link and maybe a license >> key as Mark suggested. >> >> I have a license agreement in my SQLiteAdmin program that with a few minor >> alterations will work for lcStackBrowser. >> >> I already have an installer stack and will make that into a standalone >> which has the license agreement built into it. When the installer runs >> for >> the first time, it will display the license agreement and note that by >> installing they are accepting its terms. >> >> I'll also put the license agreement into the main stack script although >> anyone would be able to remove it. And just for kicks, I'll put it into a >> file on my web site and provide a way to display it from the product. >> >> Yes, I know this is somewhat paranoid but it makes me feel comfortable >> enough that I think I'm ready to make things available for the Community >> Edition. >> >> >> >> Pete >> lcSQL Software >> Home of lcStackBrowser and >> SQLiteAdmin >> >> On Mon, Jan 5, 2015 at 7:48 PM, Bill Vlahos wrote: >> >> > In this case the software in question (like my lcTaskList) is a tool for >> > use in the IDE not a library or object that would be included in a >> product >> > made with LiveCode. >> > >> > There is no way to tell if this software is written in the Community >> > Edition vs. the Commercial Edition. If the program was password >> protected >> > you would know it could only be created and used in the Commercial >> Edition. >> > The differentiator in this case is the lack of password protection which >> > allows the plugins to work in either edition. >> > >> > I have a copyright notice in lcTaskList so the work is protected against >> > copyright violation even though the source code is visible in the same >> way >> > as books are visible yet copyrighted. It is not free nor can it be sold >> or >> > distributed to other people. >> > >> > Making different versions of the software makes sense in some >> > circumstances but that is more commonly done with making a demo or trial >> > version that has limitations. In the case of lcTaskList there is only >> one >> > version which works and costs the same for both versions. Buying it is >> just >> > like buying any other software. As Peter pointed out there just isn?t >> any >> > way to make a trial version of software that works in the Community >> Edition >> > unless the trial version is different than the release version. Since >> this >> > type of a trial version is feature limited the user doesn?t really know >> all >> > the things the program can do. >> > >> > One way to help customers is to offer a money back guarantee (lcTaskList >> > does through the LiveCode Store). >> > >> > Bill Vlahos >> > _________________ >> > InfoWallet (http://www.infowallet.com) is about keeping your important >> > life information with you, accessible, and secure. >> > lcTaskList: (http://www.infowallet.com/lctasklist/index.htm) >> > RunRev lcTaskList Forum: (http://forums.runrev.com/viewforum.php?f=61) >> > >> > > On Jan 5, 2015, at 5:23 PM, Andrew Kluthe wrote: >> > > >> > > No, I think it would have to use the same license as livecode in this >> > > situation as all applications made with community edition are >> required to >> > > comply as well. Unless, runrev makes an exception and allows you to >> run >> > > non-gpl plugins in their gpl ide (stacks made by commercial version >> but >> > > used in the community version?). >> > > >> > > Seems like a lot of people solve this by making the commercial version >> > have >> > > more current feature sets or better support than the community >> editions. >> > >> > _______________________________________________ >> > use-livecode mailing list >> > use-livecode at lists.runrev.com >> > Please visit this url to subscribe, unsubscribe and manage your >> > subscription preferences: >> > http://lists.runrev.com/mailman/listinfo/use-livecode >> > >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > > -- > > *Simon Smith* > *seo, online marketing, web development* > > w. http://www.simonsmith.co > m. +27 83 306 7862 > -- *Simon Smith* *seo, online marketing, web development* w. http://www.simonsmith.co m. +27 83 306 7862 From ambassador at fourthworld.com Tue Jan 6 18:23:24 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 06 Jan 2015 15:23:24 -0800 Subject: Licensing In-Reply-To: References: Message-ID: <54AC6E6C.3000201@fourthworld.com> Simon Smith wrote: > While I don't have have much experience with the LiveCode GPL, I > have spent some time looking at how the GPL is used with other > software,(especially WordPress), so not certain with how this would > translate to LiveCode. > > WP Developers that follow the GPL do on the whole seem to be very > successfull. Those that don't follow the GPL can also be equally > successfull, many on the other hand don't survive the public backlash. Wordpress is very explicit about their intentions with their license: Part of this license outlines requirements for derivative works, such as plugins or themes. Derivatives of WordPress code inherit the GPL license. Drupal, which has the same GPL license as WordPress, has an excellent page on licensing as it applies to themes and modules (their word for plugins). They also note that add-ons that share processing and memory space but do not copy code are a "gray area", and I wrote about this at length here a while back: Since I'm not a lawyer, and even if I were my opinion couldn't be relevant unless I were also the judge presiding over this (and AFAIK the definition of "derivative work" has never been tested in court, so no such judge yet exists), I've taken a more simple-minded view: I see two approaches to using other people's stuff, which we could call "antagonistic" and "supportive". An antagonistic approach seeks to use the work in whatever way one can personally justify for one's own advantage, even if that use clearly contradicts the intentions of the creator of the work. Such an approach may prevail in court, or not, leaving oneself vulnerable to risk of being found in violation of copyright. And in the meantime, while it may provide some small advantage to use others' work this way, it antagonizes those providing the very resources that makes one's own work possible, turning would-be partners into enemies. A supportive approach sees works made available to us under GPL as a generous gift, and if we choose to use such a work we support those who make our work possible by honoring their intentions. Given the many ways code can be executed by other code, it may not be practical to attempt to enumerate them all to attempt to reach a satisfying definition of "derivative work", but if we honor the intentions of those whose work we use we're unlikely to motivate them to take us to court. On the contrary, we help popularize their platform and work together as partners. RunRev's view of "derivative works" seems consistent with that of Wordpress, Drupal, Joomla, and others, so for myself, when I distribute things for users of LiveCode Community Edition to use, I do so under GPL or GPL-compatible license. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From pete at lcsql.com Tue Jan 6 19:05:55 2015 From: pete at lcsql.com (Peter Haworth) Date: Tue, 6 Jan 2015 16:05:55 -0800 Subject: Licensing In-Reply-To: <54AC6E6C.3000201@fourthworld.com> References: <54AC6E6C.3000201@fourthworld.com> Message-ID: On Tue, Jan 6, 2015 at 3:23 PM, Richard Gaskin wrote: > RunRev's view of "derivative works" seems consistent with that of > Wordpress, Drupal, Joomla, and others, so for myself, when I distribute > things for users of LiveCode Community Edition to use, I do so under GPL or > GPL-compatible license. Thanks Richard for the clarification. Just to clarify and make sure I'm not about to break an licensing rules, my proposed license for lcStackBrowser is not GPL compatible since it will specifically prohibit a licensed user from giving its code to anyone else or using its code in any of their products without my consent, except in the form of a license transfer approved by me. They can of course change, add to, or delete the code for their own personal use. However, the stack will be running in Livecode Community Edition which is GPL licensed so hopefully an lcStackbrowser user would not be in breach of Livecode's Community Edition license. Always remembering that lcStackBrowser is strictly a development utility and has no part to play in the execution of a stack or a standalone. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From scott at tactilemedia.com Tue Jan 6 19:12:02 2015 From: scott at tactilemedia.com (Scott Rossi) Date: Tue, 6 Jan 2015 16:12:02 -0800 Subject: Sticky Popup Menu? Message-ID: <7AF3AA8E-2E36-4C2B-B11C-36F52F92B07B@tactilemedia.com> Anyone know if it?s possible to make the menu that?s created using "popup stack ?? sticky? So it doesn?t automatically disappear when releasing the mouse? Thanks for any suggestions, Scott Rossi Creative Director Tactile Media, UX/UI Design From ambassador at fourthworld.com Tue Jan 6 20:17:36 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 06 Jan 2015 17:17:36 -0800 Subject: Sticky Popup Menu? In-Reply-To: <7AF3AA8E-2E36-4C2B-B11C-36F52F92B07B@tactilemedia.com> References: <7AF3AA8E-2E36-4C2B-B11C-36F52F92B07B@tactilemedia.com> Message-ID: <54AC8930.7060202@fourthworld.com> Scott Rossi wrote: > Anyone know if it?s possible to make the menu that?s created using > "popup stack ?? sticky? So it doesn?t automatically disappear when > releasing the mouse? I've had good luck with borderless palette windows, not using the popup command at all but simply opening them. I trap escapeKey to dismiss them, and close them on suspendStack so clicking anywhere outside of them dismisses them like a menu does. I use these as flyout panes in the new Devolution 3 in development, and they've been surprisingly satisfying as an alternative to popup stacks. The old popup command was designed back in the days when all menus were implemented as stacks, so they always dismiss as soon as anything is clicked on. But with these flyout panes I can have any type of controls I want, and the pane stays up until I either use escape key or click anywhere outside of it. If needed of course you could have a close button as well to cover your bases. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From ambassador at fourthworld.com Tue Jan 6 20:58:49 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 06 Jan 2015 17:58:49 -0800 Subject: Licensing In-Reply-To: References: Message-ID: <54AC92D9.207@fourthworld.com> Peter Haworth wrote: > Just to clarify and make sure I'm not about to break an licensing > rules, my proposed license for lcStackBrowser is not GPL compatible > since it will specifically prohibit a licensed user from giving its > code to anyone else or using its code in any of their products > without my consent, except in the form of a license transfer approved > by me. They can of course change, add to, or delete the code for > their own personal use. > > However, the stack will be running in Livecode Community Edition > which is GPL licensed so hopefully an lcStackbrowser user would not > be in breach of Livecode's Community Edition license. Always > remembering that lcStackBrowser is strictly a development utility > and has no part to play in the execution of a stack or a standalone. Any plugins made with the Commercial Edition and used within the Commercial Edition IDE can have any license you like so long as it doesn't conflict with the terms of the Commercial Edition EULA, which is pretty liberal. I can't speak for Kevin so hopefully he'll chime in here with any clarifications that may be needed, but my understanding of RunRev's position on the Community Edition is consistent with the GPL interpretation used by Drupal, Wordpress, Joomla, and others, in which all code running in the same engine is governed by the license for that engine. Because LC is dual-license our situation is less clear than with GPL-only systems like Wordpress, so being neither a lawyer nor Kevin I would venture only these assumptions and rely on Kevin to clarify: If a plugin is made with the Commercial Edition, it can be run within the Community Edition under GPL or any GPL-compatible license - the FSF has a list of GPL-compatible licenses here: If a plugin is created with the Community Edition, it must use the same license the Community Edition uses, GPL v3. This interpretation seems consistent with the LC FAQ: Can I use closed source libraries, components or embed LiveCode in a closed source application? You cannot redistribute software that includes closed source libraries with the open source version of LiveCode. Anything that is part of your application must be made available under the same GPL license. That said, the wording there is a bit unclear (did they mean to write "...in an open source application"?), and it addresses a standalone rather than the IDE itself. Still, I tend toward a conservative approach for my own work, so anything I distribute for use in the Commercial Edition IDE as at least GPL-compatible if not GPL v3 specifically. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From lan.kc.macmail at gmail.com Tue Jan 6 21:05:10 2015 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Wed, 7 Jan 2015 10:05:10 +0800 Subject: replaceText problem In-Reply-To: References: <54A764CE.8000108@hyperactivesw.com> Message-ID: On Wed, Jan 7, 2015 at 12:44 AM, Bob Sneidar wrote: > I read up on this, thinking that LC was implementing some substandard > regex functionality. Turns out this is the state of affairs in the regex > world. > > I don't know where Pete was reading that certain regex characters are not supported, and whilst I agree the Dictionary is very scarce with regex examples in the entry for matchText it states that LC uses the PCRE implementation of regex. Yes there are different flavours of regex which is why I like this online regex tester: https://regex101.com/#pcre It allows you to select the flavour of regex you want to use; too many of the other online regex testers are JavaScript based or Python. This site has a load of example (if you click on the Community tab at the top) so in many cases you don't even have to write any regex as someone has already written it for you. It's also nice that if you do write the regex yourself (or click on one of the examples) the Explanation box at top right automatically fills with an explanation of what it's doing - which may or may not match what you're trying to achieve ;-) But best of all, unlike writing regex in LC which gives you no feedback at all about your syntax, by using the online test you are given immediate feedback, i.e. if you enter the regex Pete listed in his original post the online tester immediately highlights the opening bracket in red - and in the Explanation box it tells you that it's missing it's closing bracket. Easy. If it works on this website it will work in LC. From pete at lcsql.com Tue Jan 6 21:31:35 2015 From: pete at lcsql.com (Peter Haworth) Date: Tue, 6 Jan 2015 18:31:35 -0800 Subject: replaceText problem In-Reply-To: References: <54A764CE.8000108@hyperactivesw.com> Message-ID: On Tue, Jan 6, 2015 at 6:05 PM, Kay C Lan wrote: > I don't know where Pete was reading that certain regex characters are not > supported > It's in a dictionary note. However the note is not very clear. What it means is that if you are using matchtext with a character that is a regex special character of some sort like "$" or "+" and you want it to be matched, you have to preceed it with a backslash. But that's just normal regex syntax so not sure why the note is there at all. Good web site Kay, I've always used a local program on my Mac in the past but that works better. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From lan.kc.macmail at gmail.com Tue Jan 6 21:47:31 2015 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Wed, 7 Jan 2015 10:47:31 +0800 Subject: replaceText problem In-Reply-To: References: <54A764CE.8000108@hyperactivesw.com> Message-ID: On Wed, Jan 7, 2015 at 10:31 AM, Peter Haworth wrote: > Good web site Kay, I've always used a local program on my Mac in the past > but that works better. > yeah, I use a local app - RegExhibit http://roger-jolly.nl/software/ for basic regex but for anything more complex I go to the site, mainly because I'm just a plagarist at heart and so I can usually find something close to what I'm needing to do in one of the many examples, so a simple Copy and Paste has me 99% the way there with just a few minor tweeks to solve my exact problem. From pete at lcsql.com Tue Jan 6 21:50:57 2015 From: pete at lcsql.com (Peter Haworth) Date: Tue, 6 Jan 2015 18:50:57 -0800 Subject: replaceText problem In-Reply-To: References: <54A764CE.8000108@hyperactivesw.com> Message-ID: On Tue, Jan 6, 2015 at 6:47 PM, Kay C Lan wrote: > yeah, I use a local app - RegExhibit That's the one I use too. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From pete at lcsql.com Tue Jan 6 22:02:22 2015 From: pete at lcsql.com (Peter Haworth) Date: Tue, 6 Jan 2015 19:02:22 -0800 Subject: Licensing In-Reply-To: <54AC92D9.207@fourthworld.com> References: <54AC92D9.207@fourthworld.com> Message-ID: On Tue, Jan 6, 2015 at 5:58 PM, Richard Gaskin wrote: > If a plugin is created with the Community Edition, it must use the same > license the Community Edition uses, GPL v3. OK, well if that's true, it puts a stop to my plan. I don't mind opening up the source code but I'm not prepared to allow it to be given to anyone a user chooses free of charge. I understand that practically I can't stop that happening but I want to at least expressly forbid it in the license agreement. Hopefully Kevin will chime in to clarify this, specifically in terms of a plugin like lcStackbrowser that plays no part in the execution of a stack or a standalone built from a stack. In the past I've played around with the idea of making lcStackBrowser a standalone with a small plugin that enables it to communicate back and forth to the IDE over a socket, with that plugin being open source. But that's an awful lot of work. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From dochawk at gmail.com Tue Jan 6 22:02:54 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Tue, 6 Jan 2015 19:02:54 -0800 Subject: Project Browser vs App Browser (was "script scope variables inexplicably becoming unset") In-Reply-To: <451391360113.20150104215223@ahsoftware.net> References: <54A78CB0.3070900@hyperactivesw.com> <51429859159.20150103085003@ahsoftware.net> <1341455398863.20150103155543@ahsoftware.net> <451391360113.20150104215223@ahsoftware.net> Message-ID: On Sun, Jan 4, 2015 at 9:52 PM, Mark Wieder wrote: > Richard- > > Sunday, January 4, 2015, 5:21:36 PM, you wrote: > > > Once you've sold it, any open source license lets that person > redistribute > > freely. > > While I should know better than to argue legal matters with a lawyer... > You're wrong about that. > I'd actually agree with the way you're using "open source", although others would disagree and try to tun it into their version of "free software" It is entirely possible to have an open source license that doesn't meet the "free software" definitions. > What I do for open-source licensing for PowerDebug and PowerTools is > distribute an unlocked stack. People still have to purchase the stack > from my website and download it from there using their registration > code, but they are free to examine the code, modify it, learn from it > (ha!), amuse themselves, without restriction. They also don't get > updates without downloading them from the website, again using their > registration code. The right to distribute it themselves in any form, > modified or no, is explicitly denied by the license. > > This is open source software but not free software (in either sense of > the term). > I'd agree. Basically, the code can be licensed without any right to redistribute. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From pete at lcsql.com Tue Jan 6 22:06:02 2015 From: pete at lcsql.com (Peter Haworth) Date: Tue, 6 Jan 2015 19:06:02 -0800 Subject: Project Browser vs App Browser (was "script scope variables inexplicably becoming unset") In-Reply-To: References: <54A78CB0.3070900@hyperactivesw.com> <51429859159.20150103085003@ahsoftware.net> <1341455398863.20150103155543@ahsoftware.net> <451391360113.20150104215223@ahsoftware.net> Message-ID: On Tue, Jan 6, 2015 at 7:02 PM, Dr. Hawkins wrote: > Basically, the code can be licensed without any right to redistribute. That's what I want to do! Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From bonnmike at gmail.com Tue Jan 6 22:13:23 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Tue, 6 Jan 2015 20:13:23 -0700 Subject: replaceText problem In-Reply-To: References: <54A764CE.8000108@hyperactivesw.com> Message-ID: The regex builder thats part of LC is pretty good for immediate feedback too, and has the benefit that it can place (hopefull working) code into the clipboard for pasting into script, after choosing matchtext or matchchunk. (still helpful for figuring out the regex for filter, though no autogenerated code) All you have to do after pasting is specify the container of text to check. It is limited i'm sure, but is still pretty darn helpful. On Tue, Jan 6, 2015 at 7:05 PM, Kay C Lan wrote: > On Wed, Jan 7, 2015 at 12:44 AM, Bob Sneidar > wrote: > > > I read up on this, thinking that LC was implementing some substandard > > regex functionality. Turns out this is the state of affairs in the regex > > world. > > > > I don't know where Pete was reading that certain regex characters are not > supported, and whilst I agree the Dictionary is very scarce with regex > examples in the entry for matchText it states that LC uses the PCRE > implementation of regex. Yes there are different flavours of regex which is > why I like this online regex tester: > > https://regex101.com/#pcre > > It allows you to select the flavour of regex you want to use; too many of > the other online regex testers are JavaScript based or Python. > > This site has a load of example (if you click on the Community tab at the > top) so in many cases you don't even have to write any regex as someone has > already written it for you. It's also nice that if you do write the regex > yourself (or click on one of the examples) the Explanation box at top right > automatically fills with an explanation of what it's doing - which may or > may not match what you're trying to achieve ;-) > > But best of all, unlike writing regex in LC which gives you no feedback at > all about your syntax, by using the online test you are given immediate > feedback, i.e. if you enter the regex Pete listed in his original post the > online tester immediately highlights the opening bracket in red - and in > the Explanation box it tells you that it's missing it's closing bracket. > Easy. > > If it works on this website it will work in LC. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bonnmike at gmail.com Tue Jan 6 22:16:13 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Tue, 6 Jan 2015 20:16:13 -0700 Subject: replaceText problem In-Reply-To: References: <54A764CE.8000108@hyperactivesw.com> Message-ID: My mistake. Works with filter too. :) On Tue, Jan 6, 2015 at 8:13 PM, Mike Bonner wrote: > The regex builder thats part of LC is pretty good for immediate feedback > too, and has the benefit that it can place (hopefull working) code into the > clipboard for pasting into script, after choosing matchtext or matchchunk. > (still helpful for figuring out the regex for filter, though no > autogenerated code) All you have to do after pasting is specify the > container of text to check. It is limited i'm sure, but is still pretty > darn helpful. > > On Tue, Jan 6, 2015 at 7:05 PM, Kay C Lan > wrote: > >> On Wed, Jan 7, 2015 at 12:44 AM, Bob Sneidar > > >> wrote: >> >> > I read up on this, thinking that LC was implementing some substandard >> > regex functionality. Turns out this is the state of affairs in the regex >> > world. >> > >> > I don't know where Pete was reading that certain regex characters are >> not >> supported, and whilst I agree the Dictionary is very scarce with regex >> examples in the entry for matchText it states that LC uses the PCRE >> implementation of regex. Yes there are different flavours of regex which >> is >> why I like this online regex tester: >> >> https://regex101.com/#pcre >> >> It allows you to select the flavour of regex you want to use; too many of >> the other online regex testers are JavaScript based or Python. >> >> This site has a load of example (if you click on the Community tab at the >> top) so in many cases you don't even have to write any regex as someone >> has >> already written it for you. It's also nice that if you do write the regex >> yourself (or click on one of the examples) the Explanation box at top >> right >> automatically fills with an explanation of what it's doing - which may or >> may not match what you're trying to achieve ;-) >> >> But best of all, unlike writing regex in LC which gives you no feedback at >> all about your syntax, by using the online test you are given immediate >> feedback, i.e. if you enter the regex Pete listed in his original post the >> online tester immediately highlights the opening bracket in red - and in >> the Explanation box it tells you that it's missing it's closing bracket. >> Easy. >> >> If it works on this website it will work in LC. >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > From prothero at earthednet.org Tue Jan 6 22:17:42 2015 From: prothero at earthednet.org (William Prothero) Date: Tue, 6 Jan 2015 19:17:42 -0800 Subject: Youtube video in LC browser window? Message-ID: Folks: I?m testing a LC app I developed on a Macintosh, on a PC, Windows 7, 32 bit, LC7.0.1, release version. I?m having a problem with the browser window. I put my help files online and one of them includes a youTube video in Flash format. The video plays at half size. I don?t know if this is a bug, but I have a Mac with a retina display (running Parallels 9), and an external monitor that?s not a retina display. All of the regular Livecode cards display fine, but the youTube video is about half size. The text is at the expected size. I just use the embed code provided by youTube. It is:

The width turns out to be more like 195, about half the width expected. The browser open script is: on openBrowser put the windowID of this stack into tWinID put revBrowserOpen(tWinID,"http://earthednet.org/ptExplorer/Cover.html") into sBrowserID revBrowserSet sBrowserID,"showborder","true" revBrowserSet sBrowserID, "rect",rect of grc "browserRect" end openBrowser The linked page has a link to the youTube video. Is this a bug in Livecode? Seems the browser should work the same way as on the Mac. Or, is it some problem with Flash videos and some adjustment can be made? Also, when I open this page in Explorer, everything is at half size. In Firefox, it?s the expected size. Since Explorer is not based on WebKit, I?m not surprised at the variation, and it?s not a problem because my app doesn?t interact with Explorer anyway. By the way, this video will not display at all in a 64bit version of Windows 7. And I?m using Parallels 9 on my Mac to run Windows. Regards, Bill William A. Prothero http://es.earthednet.org/ From bonnmike at gmail.com Tue Jan 6 22:17:59 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Tue, 6 Jan 2015 20:17:59 -0700 Subject: replaceText problem In-Reply-To: References: <54A764CE.8000108@hyperactivesw.com> Message-ID: Ah k. My mistake again, works with the simplified old filter, not the current full regex filter. On Tue, Jan 6, 2015 at 8:16 PM, Mike Bonner wrote: > My mistake. Works with filter too. :) > > On Tue, Jan 6, 2015 at 8:13 PM, Mike Bonner wrote: > >> The regex builder thats part of LC is pretty good for immediate feedback >> too, and has the benefit that it can place (hopefull working) code into the >> clipboard for pasting into script, after choosing matchtext or matchchunk. >> (still helpful for figuring out the regex for filter, though no >> autogenerated code) All you have to do after pasting is specify the >> container of text to check. It is limited i'm sure, but is still pretty >> darn helpful. >> >> On Tue, Jan 6, 2015 at 7:05 PM, Kay C Lan >> wrote: >> >>> On Wed, Jan 7, 2015 at 12:44 AM, Bob Sneidar < >>> bobsneidar at iotecdigital.com> >>> wrote: >>> >>> > I read up on this, thinking that LC was implementing some substandard >>> > regex functionality. Turns out this is the state of affairs in the >>> regex >>> > world. >>> > >>> > I don't know where Pete was reading that certain regex characters are >>> not >>> supported, and whilst I agree the Dictionary is very scarce with regex >>> examples in the entry for matchText it states that LC uses the PCRE >>> implementation of regex. Yes there are different flavours of regex which >>> is >>> why I like this online regex tester: >>> >>> https://regex101.com/#pcre >>> >>> It allows you to select the flavour of regex you want to use; too many of >>> the other online regex testers are JavaScript based or Python. >>> >>> This site has a load of example (if you click on the Community tab at the >>> top) so in many cases you don't even have to write any regex as someone >>> has >>> already written it for you. It's also nice that if you do write the regex >>> yourself (or click on one of the examples) the Explanation box at top >>> right >>> automatically fills with an explanation of what it's doing - which may or >>> may not match what you're trying to achieve ;-) >>> >>> But best of all, unlike writing regex in LC which gives you no feedback >>> at >>> all about your syntax, by using the online test you are given immediate >>> feedback, i.e. if you enter the regex Pete listed in his original post >>> the >>> online tester immediately highlights the opening bracket in red - and in >>> the Explanation box it tells you that it's missing it's closing bracket. >>> Easy. >>> >>> If it works on this website it will work in LC. >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> >> > From dochawk at gmail.com Tue Jan 6 22:28:08 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Tue, 6 Jan 2015 19:28:08 -0800 Subject: Licensing In-Reply-To: References: Message-ID: On Mon, Jan 5, 2015 at 12:28 PM, Peter Haworth wrote: > You can run the stack, modify or add to it in any way you choose for your > own personal use. > > If you have modified or added to the code and you run into a problem, I > will not support it unless the problem also occurs in the unmodified > version of the stack. > > You may not give or sell the license to anyone else irrespective of whether > you have modified the code. I accept that there is no practical way for me > to enforce this but it at least needs to be stated in the license > agreement. > Actually, this language would probably do what you're trying to do. If you've created your code with the commercial edition, you can use any license you desire. It is not "derived from" the community version for purposes of its license. With the code unlocked, and licensed from you, your customer can use it, and no violation is using. Your program can *contribute* to the code being produced by the community edition, and the CE license viraly attaches to the result. Still no problem. There is only an issue if your code uses/includes language from the CE (and then it is a problem before they even write code), or if a combination made with the CE and yours produces code and attempts to apply anything from your license. No problem; your license allows anything it writes for the user to be released under the CE license--it would only be a problem if you attempted to impose your license on the output The question remains, though, as to how many $30 tools you can sell to people that won't pay $100 for the LC software itself . . . and whether this even puts a dent into the lost revenue from those that illegally distribute your code . . . -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From mwieder at ahsoftware.net Tue Jan 6 22:29:31 2015 From: mwieder at ahsoftware.net (Mark Wieder) Date: Tue, 6 Jan 2015 19:29:31 -0800 Subject: Licensing In-Reply-To: References: <54AC92D9.207@fourthworld.com> Message-ID: <7196084.20150106192931@ahsoftware.net> Pete- Tuesday, January 6, 2015, 7:02:22 PM, you wrote: > On Tue, Jan 6, 2015 at 5:58 PM, Richard Gaskin > wrote: >> If a plugin is created with the Community Edition, it must use the same >> license the Community Edition uses, GPL v3. > OK, well if that's true, it puts a stop to my plan. I wouldn't worry about that. What Richard's saying would apply if your end-users were bundling your plugin with the stacks they distribute. Since your plugin operates wholly within the IDE in the developer's ecosystem there's no conflict. -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From pete at lcsql.com Tue Jan 6 22:34:57 2015 From: pete at lcsql.com (Peter Haworth) Date: Tue, 6 Jan 2015 19:34:57 -0800 Subject: replaceText problem In-Reply-To: References: <54A764CE.8000108@hyperactivesw.com> Message-ID: Hi Mike, That's one of RunRev's plugins, right? Sounds like a ripe candidate to be updated by some kind person :-) Interestingly I was prowling around the code for the Script Editor Find function a couple of days ago, the one you get when you click the more button, and came across a button that invokes regexbuilder but either the button is off screen or hidden because I can't see it anywhere even if I expand the Find options and select wildcard. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Tue, Jan 6, 2015 at 7:17 PM, Mike Bonner wrote: > Ah k. My mistake again, works with the simplified old filter, not the > current full regex filter. > > On Tue, Jan 6, 2015 at 8:16 PM, Mike Bonner wrote: > > > My mistake. Works with filter too. :) > > > > On Tue, Jan 6, 2015 at 8:13 PM, Mike Bonner wrote: > > > >> The regex builder thats part of LC is pretty good for immediate feedback > >> too, and has the benefit that it can place (hopefull working) code into > the > >> clipboard for pasting into script, after choosing matchtext or > matchchunk. > >> (still helpful for figuring out the regex for filter, though no > >> autogenerated code) All you have to do after pasting is specify the > >> container of text to check. It is limited i'm sure, but is still pretty > >> darn helpful. > >> > >> On Tue, Jan 6, 2015 at 7:05 PM, Kay C Lan > >> wrote: > >> > >>> On Wed, Jan 7, 2015 at 12:44 AM, Bob Sneidar < > >>> bobsneidar at iotecdigital.com> > >>> wrote: > >>> > >>> > I read up on this, thinking that LC was implementing some substandard > >>> > regex functionality. Turns out this is the state of affairs in the > >>> regex > >>> > world. > >>> > > >>> > I don't know where Pete was reading that certain regex characters are > >>> not > >>> supported, and whilst I agree the Dictionary is very scarce with regex > >>> examples in the entry for matchText it states that LC uses the PCRE > >>> implementation of regex. Yes there are different flavours of regex > which > >>> is > >>> why I like this online regex tester: > >>> > >>> https://regex101.com/#pcre > >>> > >>> It allows you to select the flavour of regex you want to use; too many > of > >>> the other online regex testers are JavaScript based or Python. > >>> > >>> This site has a load of example (if you click on the Community tab at > the > >>> top) so in many cases you don't even have to write any regex as someone > >>> has > >>> already written it for you. It's also nice that if you do write the > regex > >>> yourself (or click on one of the examples) the Explanation box at top > >>> right > >>> automatically fills with an explanation of what it's doing - which may > or > >>> may not match what you're trying to achieve ;-) > >>> > >>> But best of all, unlike writing regex in LC which gives you no feedback > >>> at > >>> all about your syntax, by using the online test you are given immediate > >>> feedback, i.e. if you enter the regex Pete listed in his original post > >>> the > >>> online tester immediately highlights the opening bracket in red - and > in > >>> the Explanation box it tells you that it's missing it's closing > bracket. > >>> Easy. > >>> > >>> If it works on this website it will work in LC. > >>> _______________________________________________ > >>> use-livecode mailing list > >>> use-livecode at lists.runrev.com > >>> Please visit this url to subscribe, unsubscribe and manage your > >>> subscription preferences: > >>> http://lists.runrev.com/mailman/listinfo/use-livecode > >>> > >> > >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pete at lcsql.com Tue Jan 6 22:37:25 2015 From: pete at lcsql.com (Peter Haworth) Date: Tue, 6 Jan 2015 19:37:25 -0800 Subject: Licensing In-Reply-To: <7196084.20150106192931@ahsoftware.net> References: <54AC92D9.207@fourthworld.com> <7196084.20150106192931@ahsoftware.net> Message-ID: OK, thanks Mark, this is so confusing. Maybe the best approach is to just do it and adopt the "better to ask for forgiveness than permission" axiom" Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Tue, Jan 6, 2015 at 7:29 PM, Mark Wieder wrote: > Pete- > > Tuesday, January 6, 2015, 7:02:22 PM, you wrote: > > > On Tue, Jan 6, 2015 at 5:58 PM, Richard Gaskin < > ambassador at fourthworld.com> > > wrote: > > >> If a plugin is created with the Community Edition, it must use the same > >> license the Community Edition uses, GPL v3. > > > > OK, well if that's true, it puts a stop to my plan. > > I wouldn't worry about that. What Richard's saying would apply if your > end-users were bundling your plugin with the stacks they distribute. > Since your plugin operates wholly within the IDE in the developer's > ecosystem there's no conflict. > > -- > -Mark Wieder > ahsoftware at gmail.com > > This communication may be unlawfully collected and stored by the National > Security Agency (NSA) in secret. The parties to this email do not > consent to the retrieving or storing of this communication and any > related metadata, as well as printing, copying, re-transmitting, > disseminating, or otherwise using it. If you believe you have received > this communication in error, please delete it immediately. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bonnmike at gmail.com Tue Jan 6 22:39:56 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Tue, 6 Jan 2015 20:39:56 -0700 Subject: replaceText problem In-Reply-To: References: <54A764CE.8000108@hyperactivesw.com> Message-ID: Yeah, the regexbuilder is one of the plugins. Didn't know you could start the builder from find, will have to poke around. It would be very cool if someone (he says whistling nonchalantly and looking at the floor) updated the regex builder. On Tue, Jan 6, 2015 at 8:34 PM, Peter Haworth wrote: > Hi Mike, > That's one of RunRev's plugins, right? Sounds like a ripe candidate to be > updated by some kind person :-) > > Interestingly I was prowling around the code for the Script Editor Find > function a couple of days ago, the one you get when you click the more > button, and came across a button that invokes regexbuilder but either the > button is off screen or hidden because I can't see it anywhere even if I > expand the Find options and select wildcard. > > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin > > On Tue, Jan 6, 2015 at 7:17 PM, Mike Bonner wrote: > > > Ah k. My mistake again, works with the simplified old filter, not the > > current full regex filter. > > > > On Tue, Jan 6, 2015 at 8:16 PM, Mike Bonner wrote: > > > > > My mistake. Works with filter too. :) > > > > > > On Tue, Jan 6, 2015 at 8:13 PM, Mike Bonner > wrote: > > > > > >> The regex builder thats part of LC is pretty good for immediate > feedback > > >> too, and has the benefit that it can place (hopefull working) code > into > > the > > >> clipboard for pasting into script, after choosing matchtext or > > matchchunk. > > >> (still helpful for figuring out the regex for filter, though no > > >> autogenerated code) All you have to do after pasting is specify the > > >> container of text to check. It is limited i'm sure, but is still > pretty > > >> darn helpful. > > >> > > >> On Tue, Jan 6, 2015 at 7:05 PM, Kay C Lan > > >> wrote: > > >> > > >>> On Wed, Jan 7, 2015 at 12:44 AM, Bob Sneidar < > > >>> bobsneidar at iotecdigital.com> > > >>> wrote: > > >>> > > >>> > I read up on this, thinking that LC was implementing some > substandard > > >>> > regex functionality. Turns out this is the state of affairs in the > > >>> regex > > >>> > world. > > >>> > > > >>> > I don't know where Pete was reading that certain regex characters > are > > >>> not > > >>> supported, and whilst I agree the Dictionary is very scarce with > regex > > >>> examples in the entry for matchText it states that LC uses the PCRE > > >>> implementation of regex. Yes there are different flavours of regex > > which > > >>> is > > >>> why I like this online regex tester: > > >>> > > >>> https://regex101.com/#pcre > > >>> > > >>> It allows you to select the flavour of regex you want to use; too > many > > of > > >>> the other online regex testers are JavaScript based or Python. > > >>> > > >>> This site has a load of example (if you click on the Community tab at > > the > > >>> top) so in many cases you don't even have to write any regex as > someone > > >>> has > > >>> already written it for you. It's also nice that if you do write the > > regex > > >>> yourself (or click on one of the examples) the Explanation box at top > > >>> right > > >>> automatically fills with an explanation of what it's doing - which > may > > or > > >>> may not match what you're trying to achieve ;-) > > >>> > > >>> But best of all, unlike writing regex in LC which gives you no > feedback > > >>> at > > >>> all about your syntax, by using the online test you are given > immediate > > >>> feedback, i.e. if you enter the regex Pete listed in his original > post > > >>> the > > >>> online tester immediately highlights the opening bracket in red - and > > in > > >>> the Explanation box it tells you that it's missing it's closing > > bracket. > > >>> Easy. > > >>> > > >>> If it works on this website it will work in LC. > > >>> _______________________________________________ > > >>> use-livecode mailing list > > >>> use-livecode at lists.runrev.com > > >>> Please visit this url to subscribe, unsubscribe and manage your > > >>> subscription preferences: > > >>> http://lists.runrev.com/mailman/listinfo/use-livecode > > >>> > > >> > > >> > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From lan.kc.macmail at gmail.com Tue Jan 6 22:46:50 2015 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Wed, 7 Jan 2015 11:46:50 +0800 Subject: Is there a way to replace a built-in function? In-Reply-To: <6C46198A-0506-4629-BD11-5E00B4EB3C4C@mac.com> References: <65C2C80C-4384-458C-9D7D-D78B6061BDE1@mac.com> <8D1F70CD63641E9-248C-3D0DB@webmail-m238.sysops.aol.com> <6C46198A-0506-4629-BD11-5E00B4EB3C4C@mac.com> Message-ID: If there only a few exceptions why not use a switch statement, that way your parser output will be correct for 99.9% of situations and it will only be for the 0.1% cases AND if the User studies the parser output that they will notice something strange - and even then you can cover that. Something like: on closeField put me into enteredFormula switch case (enteredFormula contains "ln(0)") replace "ln(0)" with "undefined" in enteredFormula put "some statement" into parserOutput --spit out an explanation of change/situation --do whatever you need to do with the modified enteredFormula break case (enteredFormula contains --any other exceptions) break default --this portion of the script runs 99.9% of the time --do whatever you need to with the enteredFormula end switch end closeField On Tue, Jan 6, 2015 at 12:38 AM, Graham Samuel wrote: > Hi Craig - thanks for the reply. > > Yes, that?s what I?m having to do - but since my app allows the user to > write formulae directly, I need to cheat so the user writes > > ln(x) > > and I intervene and redirect this to my adjusted version of the function, > myLn. Luckily at the heart of the my app is a parser which can host this > intervention, so it?s almost OK - as long as the user doesn?t take the > option to look at the parser output. Still, it would have been nice to be > able to redefine it: of course, if I did that I would either have to recode > the fundamentals of the original function or somehow access it despite > having replaced it from the point of view of the outside world. > > Graham > > > On 5 Jan 2015, at 15:41, dunbarx at aol.com wrote: > > > > Graham > > > > > > I thought the ability of HC to allow this was a plus. The best example > was the "round" function, which, with a ".5" in the decimal portion of an > argument, alternately rounded the integer portion up or down depending on > whether that integer was odd or even. > > > > > > Most people, like me, intercepted that function, and always rounded a > ".5" up, like I was taught. > > > > > > Anyway, when you ask for a "trick", why not just create "myLn". After > all, you are the author. > > > > > > Craig > > > > > > > > -----Original Message----- > > From: Graham Samuel > > To: How to use LiveCode > > Sent: Mon, Jan 5, 2015 7:55 am > > Subject: Is there a way to replace a built-in function? > > > > > > On the face of it, it?s impossible to replace a built-in function in LC. > For > > example, take the function ln(x) - that?s natural logarithm. I?d like to > > redefine ln(x), but I can?t because the compiler won?t let me use a > reserved > > word in a function definition. > > > > I wonder if anyone can suggest a trick to allow a redefinition like > this. If > > not, then roll on Widgets. > > > > Graham > > > > PS In case you want to know why I want to redefine this function, it?s > for the > > following reason. Generally, mathematicians say that ln(0) is undefined, > > whereas the limit as x approaches zero is minus infinity. This is a bit > subtle, > > and LiveCode takes no real notice of this, so that in LC, ln(0) yields > ?-inf?. > > Despite a contrary definition in the LC dictionary, this text is then > regarded > > as a number, which can cause confusion, at least to me. So my new ln(x) > would > > yield undefined for ln(0) and would use a symbol for minus infinity > which LC > > would not then recognise as a number. > > _______________________________________________ > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From scott at tactilemedia.com Tue Jan 6 23:00:12 2015 From: scott at tactilemedia.com (Scott Rossi) Date: Tue, 6 Jan 2015 20:00:12 -0800 Subject: Sticky Popup Menu? In-Reply-To: <54AC8930.7060202@fourthworld.com> References: <7AF3AA8E-2E36-4C2B-B11C-36F52F92B07B@tactilemedia.com> <54AC8930.7060202@fourthworld.com> Message-ID: <5EE3251A-1440-4053-9D85-D0C36051C30E@tactilemedia.com> Thanks for this suggestion. This was surprisingly easy to get working, using a global variable to track when a selection is made. The one drawback is, when launched, the palette menu changes window focus from the main stack, which functionally not a big deal, but visually changes the appearance of the titlebar of the main stack. By any chance is there some decoration setting or similar that would prevent the appearance of the main stack from changing? I tried enabling the systemWindow of the menu stack but the result was the same ? focus changes from the main stack. If there?s some way to maintain the ?active? appearance of the main stack while the palette menu is active, this would be a very workable solution. Thanks & Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On Jan 6, 2015, at 5:17 PM, Richard Gaskin wrote: > Scott Rossi wrote: > > Anyone know if it?s possible to make the menu that?s created using > > "popup stack ?? sticky? So it doesn?t automatically disappear when > > releasing the mouse? > > I've had good luck with borderless palette windows, not using the popup command at all but simply opening them. I trap escapeKey to dismiss them, and close them on suspendStack so clicking anywhere outside of them dismisses them like a menu does. > > I use these as flyout panes in the new Devolution 3 in development, and they've been surprisingly satisfying as an alternative to popup stacks. > > The old popup command was designed back in the days when all menus were implemented as stacks, so they always dismiss as soon as anything is clicked on. > > But with these flyout panes I can have any type of controls I want, and the pane stays up until I either use escape key or click anywhere outside of it. If needed of course you could have a close button as well to cover your bases. > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com From mwieder at ahsoftware.net Tue Jan 6 22:58:21 2015 From: mwieder at ahsoftware.net (Mark Wieder) Date: Tue, 6 Jan 2015 19:58:21 -0800 Subject: replaceText problem In-Reply-To: <54A8D562.5000702@hyperactivesw.com> References: <54A764CE.8000108@hyperactivesw.com> <54A836BD.4060506@hyperactivesw.com> <0AB6C359-D3A2-41B9-972E-B8062B60F1D8@gmail.com> <54A83F7F.9010407@hyperactivesw.com> <671455195905.20150103155220@ahsoftware.net> <54A8D562.5000702@hyperactivesw.com> Message-ID: <536006286.20150106195821@ahsoftware.net> Jacque- Saturday, January 3, 2015, 9:53:38 PM, you wrote: > On 1/3/2015 5:52 PM, Mark Wieder wrote: >> Breakpoints don't have to be on a line by themselves. Haven't for >> several years now. For a while I toyed with having both breakpoints >> and tracepoints (log the context without stopping) by passing a >> parameter to breakpoints. > Interesting, how does that work? I remembered after I posted that I've > used "if something then breakpoint", but is there more? Well, it doesn't actually do anything, but it no longer results in a compile or runtime error if you say things like breakpoint justLogThisAndContinue Then in your traceBreak function you can parse it and do what you like. -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From lan.kc.macmail at gmail.com Tue Jan 6 23:21:51 2015 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Wed, 7 Jan 2015 12:21:51 +0800 Subject: Licensing In-Reply-To: <7196084.20150106192931@ahsoftware.net> References: <54AC92D9.207@fourthworld.com> <7196084.20150106192931@ahsoftware.net> Message-ID: On Wed, Jan 7, 2015 at 11:29 AM, Mark Wieder wrote: > I wouldn't worry about that. What Richard's saying would apply if your > end-users were bundling your plugin with the stacks they distribute. > Since your plugin operates wholly within the IDE in the developer's > ecosystem there's no conflict. > Whilst I agree with 'your' interpretation of Peter's situation, that is not what Richard wrote. He said: all code running in the same engine is governed by the license for that engine. If a plugin is made with the Commercial Edition, it can be run within the Community Edition under GPL or any GPL-compatible license. For an ideology that is suppose to remove restrictions on software it's surprising how confusing, restrictive and detrimental it can be. From jacque at hyperactivesw.com Tue Jan 6 23:36:43 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 06 Jan 2015 22:36:43 -0600 Subject: replaceText problem In-Reply-To: <536006286.20150106195821@ahsoftware.net> References: <54A764CE.8000108@hyperactivesw.com> <54A836BD.4060506@hyperactivesw.com> <0AB6C359-D3A2-41B9-972E-B8062B60F1D8@gmail.com> <54A83F7F.9010407@hyperactivesw.com> <671455195905.20150103155220@ahsoftware.net> <54A8D562.5000702@hyperactivesw.com> <536006286.20150106195821@ahsoftware.net> Message-ID: <54ACB7DB.1060906@hyperactivesw.com> On 1/6/2015 9:58 PM, Mark Wieder wrote: > Then in your traceBreak function you can parse it and do what you > like. No, no. In YOUR tracebreak function. I don't mess around in there, it's too scary. You're the brave daredevil. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From ambassador at fourthworld.com Wed Jan 7 00:26:30 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 06 Jan 2015 21:26:30 -0800 Subject: Licensing In-Reply-To: References: Message-ID: <54ACC386.4030702@fourthworld.com> Kay C Lan wrote: > Whilst I agree with 'your' interpretation of Peter's situation, that is not > what Richard wrote. He said: > > all code running in the same engine is governed by the license for that > engine. > > If a plugin is made with the Commercial Edition, it can be run within the > Community Edition under GPL or any GPL-compatible license. Yep, that's what I wrote, though I should note again that I'm neither a lawyer nor Kevin - that's just what I see in major GPL-governed systems like Wordpress, Drupal, and Joomla. The lack of a specific definition for "derivative work" has been a very contentious issue in the Joomla world and elsewhere - I covered this in detail last year: I've already linked to the Wordpress page on this - here's the Drupal one: 7: If I write a module or theme, do I have to license it under the GPL? Yes. Drupal modules and themes are a derivative work of Drupal. If you distribute them, you must do so under the terms of the GPL version 2 or later. I'm not Drupal's legal counsel, I'm just sitting on the sidelines enjoying the popcorn, noting only my own personal opinion and how I apply it to my own decisions. > For an ideology that is suppose to remove restrictions on software it's > surprising how confusing, restrictive and detrimental it can be. It is indeed confusing because the ways code can co-mingle in memory are not only vast but ever-changing, eluding a simple definition. But whether it's "detrimental" is a matter of taste. The spirit of the GPL is very clearly about sharing, and doing so in way that ensures that those who choose your work and distribute things made with it also honor the sharing spirit you've expressed by choosing the GPL. There is no requirement to use any particular software, and for those of us who choose to use LiveCode our choices are made even broader by its dual license - we can pick the one that best fits our intentions and goals for the application at hand. Like the old saying goes, there's no disputing taste. Folks who like the GPL tend to choose it, folks who prefer something else choose something else. I use a wide range of licenses for my own work, depending on the goals for a given project. -- Richard Gaskin Fourth World Systems Software Design and Development for Desktop, Mobile, and Web ____________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From ambassador at fourthworld.com Wed Jan 7 00:36:43 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 06 Jan 2015 21:36:43 -0800 Subject: Licensing In-Reply-To: References: Message-ID: <54ACC5EB.8000603@fourthworld.com> Peter Haworth wrote: > Maybe the best approach is to just do it and adopt the "better > to ask for forgiveness than permission" axiom" I'm switching siglines here because this seems like a job for the resident Community Manager. :) Plugins play a key role in LiveCode, a role that will amplify many times over when v8 is released. There are benefits to the community to have dual-licensed libraries and widgets, but IDE plugins are a special case worth considering. It seems safe to say that it's in everyone's interest to have clarity on the use of non-GPL components within the GPL-governed LiveCode Community Edition, so I'll make getting clarification on this a priority in my next meeting with the team. -- Richard Gaskin LiveCode Community Manager richard at livecode.org From ambassador at fourthworld.com Wed Jan 7 01:16:56 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 06 Jan 2015 22:16:56 -0800 Subject: Licensing In-Reply-To: References: Message-ID: <54ACCF58.102@fourthworld.com> Peter Haworth wrote: > I don't mind opening up the source code but I'm not prepared > to allow it to be given to anyone a user chooses free of charge. > I understand that practically I can't stop that happening but I > want to at least expressly forbid it in the license agreement. One of the many interesting things the GPL has given us is an opportunity to consider redefinitions of value. A proprietary license with a fee requirement certainly has some monetary value, but how much? After all, as you noted, those inclined to share it with their friends will do so anyway, they'll just be either secretive about it or worse not use it at all if they can't afford the fee. Schools are one of many scenarios I consider with projects where the GPL is an option. Few schools have enough money, and many spend what little they have in suboptimal ways, leaving little for even great software of the sort you make. So they just do without. But we might ask: what is currency? Is it worth more to have a small amount of cash or a large amount of gratitude (e.g., good press, donations, and even potential contracting opportunities)? I don't have an answer; I don't think there is a single answer for all projects. I just think it's interesting to ponder, esp. in the domain of developer tools since developers are the only group of people who can make full use of open source's most useful feature: the source. -- Richard Gaskin Fourth World Systems Software Design and Development for Desktop, Mobile, and Web ____________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From gcanyon at gmail.com Wed Jan 7 03:46:15 2015 From: gcanyon at gmail.com (Geoff Canyon) Date: Wed, 7 Jan 2015 02:46:15 -0600 Subject: Should be simple: rename a stack that contains behavior buttons? Message-ID: I have a stack that contains buttons that are set as the behavior for other controls in the stack. If I try to change the name of the stack using the message box, bad things happen. If I write code to: 1. rename the stack 2. modify the behavior properties to the new name bad things also happen. Is there something I'm not thinking of? thx gc From neil at livecode.com Wed Jan 7 03:57:14 2015 From: neil at livecode.com (Neil Roger) Date: Wed, 07 Jan 2015 08:57:14 +0000 Subject: Youtube video in LC browser window? In-Reply-To: References: Message-ID: <54ACF4EA.2080500@livecode.com> Hi Bill, Looks like you are using our old browser implementation. Try using the new revBrowserOpenCEF function as this no longer requires Internet Explorer on Win and Safari on Mac. e.g. on openBrowser put the windowID of this stack into tWinID put revBrowserOpenCEF(tWinID,"http://earthednet.org/ptExplorer/Cover.html") into sBrowserID revBrowserSet sBrowserID,"showborder","true" revBrowserSet sBrowserID, "rect",rect of grc "browserRect" end openBrowser Kind Regards, Neil Roger -- LiveCode Support Team ~ http://www.livecode.com -- On 07/01/2015 03:17, William Prothero wrote: > Folks: > I?m testing a LC app I developed on a Macintosh, on a PC, Windows 7, 32 bit, LC7.0.1, release version. I?m having a problem with the browser window. I put my help files online and one of them includes a youTube video in Flash format. The video plays at half size. I don?t know if this is a bug, but I have a Mac with a retina display (running Parallels 9), and an external monitor that?s not a retina display. All of the regular Livecode cards display fine, but the youTube video is about half size. The text is at the expected size. I just use the embed code provided by youTube. It is: > >
>
> > The width turns out to be more like 195, about half the width expected. > > The browser open script is: > > on openBrowser > put the windowID of this stack into tWinID > put revBrowserOpen(tWinID,"http://earthednet.org/ptExplorer/Cover.html") into sBrowserID > revBrowserSet sBrowserID,"showborder","true" > revBrowserSet sBrowserID, "rect",rect of grc "browserRect" > end openBrowser > > The linked page has a link to the youTube video. > > Is this a bug in Livecode? Seems the browser should work the same way as on the Mac. Or, is it some problem with Flash videos and some adjustment can be made? > > Also, when I open this page in Explorer, everything is at half size. In Firefox, it?s the expected size. Since Explorer is not based on WebKit, I?m not surprised at the variation, and it?s not a problem because my app doesn?t interact with Explorer anyway. > > By the way, this video will not display at all in a 64bit version of Windows 7. And I?m using Parallels 9 on my Mac to run Windows. > > Regards, > Bill > > > > William A. Prothero > http://es.earthednet.org/ > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From scott at tactilemedia.com Wed Jan 7 04:01:17 2015 From: scott at tactilemedia.com (Scott Rossi) Date: Wed, 7 Jan 2015 01:01:17 -0800 Subject: Should be simple: rename a stack that contains behavior buttons? In-Reply-To: References: Message-ID: <12084E15-3A55-4575-8739-6F97DDA736A5@tactilemedia.com> You don?t really say what the ?bad things? are. If you can't rename the stack and then loop through all the controls that have behaviors and update them, loop through the controls FIRST, set their behaviors to empty, rename the stack, then restore the appropriate behavior references. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On Jan 7, 2015, at 12:46 AM, Geoff Canyon wrote: > I have a stack that contains buttons that are set as the behavior for other > controls in the stack. If I try to change the name of the stack using the > message box, bad things happen. If I write code to: > > 1. rename the stack > 2. modify the behavior properties to the new name > > bad things also happen. > > Is there something I'm not thinking of? > > thx > > gc > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From lan.kc.macmail at gmail.com Wed Jan 7 04:13:06 2015 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Wed, 7 Jan 2015 17:13:06 +0800 Subject: Licensing In-Reply-To: <54ACC386.4030702@fourthworld.com> References: <54ACC386.4030702@fourthworld.com> Message-ID: On Wed, Jan 7, 2015 at 1:26 PM, Richard Gaskin wrote: It is indeed confusing... > > But whether it's "detrimental" is a matter of taste. If Peter finally decides NOT to make his lcStackBrowser available to LC Community Edition Users due to confusion and concern as to whether the GPL applies then that would be a loss to the Community Users and a few less sales for Peter. And as you point out yourself, a healthy libraries, plug-ins and widgets environment is good not just for users but for Runrev aswell. So if the Community Edition GPL dissuades Commercial users from making stuff for Community users, then that's not taste, that's detrimental. Yes, clarification would be nice. From livfoss at mac.com Wed Jan 7 07:04:30 2015 From: livfoss at mac.com (Graham Samuel) Date: Wed, 07 Jan 2015 13:04:30 +0100 Subject: Commercial Licensing Message-ID: <14C15E00-DCFD-4098-9FE9-0A0FE734A179@mac.com> Hi all - this may be naive, but I don?t recall a recent discussion on this list and I don?t know where to turn. The recent discussion on licensing centering round the GPL and the different editions of LC is interesting, but I rather want to extend it to get some advice about simple commercial licensing. All the software I?ve ever written for sale to date has been published by a separate publisher: I have retained the copyright and received royalties, so I have not worried overmuch about the terms and conditions which the ultimate users have to sign up to. That and the fact that my publishers are very very old friends, so there is a very high level of trust between us, means that my own contractual position has never worried me. Now however I?m looking at a different situation, which is publishing something on my own account. The ?something? is potentially a number of programs (OK, apps if you must) made with LC Commercial versions, for which I expect to be paid. I also have a situation where I am the developer, not the copyright owner, and where the copyright owner has the same sort of ambition to sell his product in the open market. We are both clueless about what kind of license agreement to include in our products. We could both be using the same contract (since I?m trying to advise him) except that I?m based in the UK (or at any rate the European Union) and he?s based in the US. In both cases, what is needed is as simple a contract as possible which provides a very limited warranty, bans unreasonable copying and denies all forms of consequential liability. It seems to me that there must be pro-forma contracts out there, applicable to sole traders (this is UK term, not sure what it would be in the US), but I don?t know how to find them. Furthermore I notice that several active contributors to this list sell the products through a company, and not as individuals. In the UK, AFAIK, there is no particular reason not to simply sell as an individual, always provided one can limit one?s liability through a contract. In the US, it may be different. Is anyone out there willing to discuss this and maybe discuss the steps they went through, the decisions they made, and how they got the wording of their license terms? TIA for any further info Graham From kevin at livecode.com Wed Jan 7 07:43:20 2015 From: kevin at livecode.com (Kevin Miller) Date: Wed, 07 Jan 2015 12:43:20 +0000 Subject: Licensing In-Reply-To: <54AC92D9.207@fourthworld.com> References: Message-ID: The key here is that GPL applies and becomes viral when you *distribute* something. In the case of lcStackBrowser it is: - Created in Commercial by person A - Given a license that is *NOT* GPL by person A - Distributed (given or sold) under that non-GPL license to person B - That license prohibits any redistribution by person B That specific sequence of steps is ok. Person A is a license holder who assigns a non-GPL license to their work. Person B can use the software within the Community IDE. The Community IDE?s license only becomes viral when person B wants to distribute their own work. Because (in this case) nothing of person A?s stack is included in the work of person B that's ok. You could not create something that included any objects or code from person A?s stack and allow person B to redistribute it from Community. That would cause the GPL to kick in. So a plugin like lcStackBrowser is ok because that does not occur (at least I assume it does not, I haven?t actually checked). A library or widget created by the same mechanism that is included in person B?s stack would not be OK. It would have to be GPL because it (or part of it) is included during redistribution by person B. I hope this clarifies things! Kind regards, Kevin Kevin Miller ~ kevin at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps On 07/01/2015 01:58, "Richard Gaskin" wrote: >Peter Haworth wrote: > > Just to clarify and make sure I'm not about to break an licensing > > rules, my proposed license for lcStackBrowser is not GPL compatible > > since it will specifically prohibit a licensed user from giving its > > code to anyone else or using its code in any of their products > > without my consent, except in the form of a license transfer approved > > by me. They can of course change, add to, or delete the code for > > their own personal use. > > > > However, the stack will be running in Livecode Community Edition > > which is GPL licensed so hopefully an lcStackbrowser user would not > > be in breach of Livecode's Community Edition license. Always > > remembering that lcStackBrowser is strictly a development utility > > and has no part to play in the execution of a stack or a standalone. > >Any plugins made with the Commercial Edition and used within the >Commercial Edition IDE can have any license you like so long as it >doesn't conflict with the terms of the Commercial Edition EULA, which is >pretty liberal. > >I can't speak for Kevin so hopefully he'll chime in here with any >clarifications that may be needed, but my understanding of RunRev's >position on the Community Edition is consistent with the GPL >interpretation used by Drupal, Wordpress, Joomla, and others, in which >all code running in the same engine is governed by the license for that >engine. > >Because LC is dual-license our situation is less clear than with >GPL-only systems like Wordpress, so being neither a lawyer nor Kevin I >would venture only these assumptions and rely on Kevin to clarify: > >If a plugin is made with the Commercial Edition, it can be run within >the Community Edition under GPL or any GPL-compatible license - the FSF >has a list of GPL-compatible licenses here: > > >If a plugin is created with the Community Edition, it must use the same >license the Community Edition uses, GPL v3. > >This interpretation seems consistent with the LC FAQ: > > Can I use closed source libraries, components or embed LiveCode > in a closed source application? > > You cannot redistribute software that includes closed source > libraries with the open source version of LiveCode. Anything > that is part of your application must be made available under > the same GPL license. > > >That said, the wording there is a bit unclear (did they mean to write >"...in an open source application"?), and it addresses a standalone >rather than the IDE itself. > >Still, I tend toward a conservative approach for my own work, so >anything I distribute for use in the Commercial Edition IDE as at least >GPL-compatible if not GPL v3 specifically. > >-- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > >_______________________________________________ >use-livecode mailing list >use-livecode at lists.runrev.com >Please visit this url to subscribe, unsubscribe and manage your >subscription preferences: >http://lists.runrev.com/mailman/listinfo/use-livecode From gcanyon at gmail.com Wed Jan 7 09:41:39 2015 From: gcanyon at gmail.com (Geoff Canyon) Date: Wed, 7 Jan 2015 08:41:39 -0600 Subject: Should be simple: rename a stack that contains behavior buttons? In-Reply-To: <12084E15-3A55-4575-8739-6F97DDA736A5@tactilemedia.com> References: <12084E15-3A55-4575-8739-6F97DDA736A5@tactilemedia.com> Message-ID: On Wed, Jan 7, 2015 at 3:01 AM, Scott Rossi wrote: > You don?t really say what the ?bad things? are. Sorry, I was being lazy -- I was trying to rename Navigator using Navigator itself to do the work. Of course, as a plugin, there were no debugging messages being given, so all I knew was that it was falling into a hole and getting stuck. I rewrote the thing as a button script in a stack (below) and it worked. on mouseUp put the controlIDs of cd "display" of stack "revNavigator" into cIDList repeat for each line cID in cIDList put the long id of control id cID of cd "display" of stack "revNavigator" into tID if the behavior of tID is empty then next repeat put word 3 of the behavior of tID into tB set the behavior of tID to the long id of btn id tB of stack "revnavigator" end repeat end mouseUp From dochawk at gmail.com Wed Jan 7 10:25:08 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Wed, 7 Jan 2015 07:25:08 -0800 Subject: Licensing In-Reply-To: References: <54AC92D9.207@fourthworld.com> Message-ID: On Wed, Jan 7, 2015 at 4:43 AM, Kevin Miller wrote: > You could not create something that included any objects or code from > person A?s stack and allow person B to redistribute it from Community. > That would cause the GPL to kick in. > Actually, A could permit the inclusion by B--but A's license would no longer apply. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From dochawk at gmail.com Wed Jan 7 10:27:23 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Wed, 7 Jan 2015 07:27:23 -0800 Subject: Project Browser vs App Browser (was "script scope variables inexplicably becoming unset") In-Reply-To: References: <54A78CB0.3070900@hyperactivesw.com> <51429859159.20150103085003@ahsoftware.net> <1341455398863.20150103155543@ahsoftware.net> <451391360113.20150104215223@ahsoftware.net> Message-ID: On Tue, Jan 6, 2015 at 7:06 PM, Peter Haworth wrote: > On Tue, Jan 6, 2015 at 7:02 PM, Dr. Hawkins wrote: > > > Basically, the code can be licensed without any right to redistribute. > > > That's what I want to do! I think using the language I quoted in an earlier post (or was it the other thread) will do what you want. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From ambassador at fourthworld.com Wed Jan 7 10:34:12 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 07 Jan 2015 07:34:12 -0800 Subject: Licensing In-Reply-To: References: Message-ID: <54AD51F4.90403@fourthworld.com> Kay C Lan wrote: > On Wed, Jan 7, 2015 at 1:26 PM, Richard Gaskin wrote: > >> It is indeed confusing... >> >> But whether it's "detrimental" is a matter of taste. > > If Peter finally decides NOT to make his lcStackBrowser available > to LC Community Edition Users due to confusion and concern as to > whether the GPL applies then that would be a loss to the Community > Users and a few less sales for Peter. That would be the case if the only version of LiveCode were the GPL-governed Community Edition. Peter has a license for the Commercial Edition, as do most of the pro developers likely to spend money on tools. The Commercial Edition still exists, and as such nothing has changed there. Now we have an addition to the mix, the newer Community Edition. If any aspect of distributing to that new audience causes concern about that specific deployment, it doesn't change what can be done with the Commercial Edition we've been enjoying for decades. My own personal opinion is that when using other people's code it's useful to err on the side of a conservative interpretation until the copyright holder says otherwise. And here that's what happened: I'd cc'd Kevin with some of this thread and this morning he explicitly stated here that he sees no copyright infringement with regard to IDE tools made with the Commercial Edition distributed to users of the Community Edition: As with so many things in life, it rarely hurts to ask. At worst you'll know the boundaries of what can and cannot be done, and at best you may get exactly what you want. As the copyright holder Kevin's opinion is the most relevant, defining for us what can be done with his company's intellectual property. It's worth noting, though, that his intentions are more liberal than that of the respective counsels for the Wordpress, Joomla, and Drupal projects, in which their argument is that merely making calls to their APIs and sharing execution memory space is enough to satisfy the definition of "derivative work". Personally I prefer Kevin's view, and in my reading it's more sensible than that of Drupal/Wordpress/Joomla. But since I'm not the copyright holder for LiveCode or Drupal/Joomla/Wordpress my personal preference is irrelevant; I've been unable to persuade anyone in the Wordpress project to adopt my personal preferences. :) Given the many and ever-growing ways code can co-mingle during execution, we may never see a concise legally binding definition of "derivative work". So for myself, I like to check with the copyright holder. > And as you point out yourself, a healthy libraries, plug-ins and > widgets environment is good not just for users but for Runrev > as well. I wrote that in support of Simon's observation that many of the add-ons for Wordpress are indeed financially viable for their developers, even though that project explicitly considers all of them to be "derivative works" which inherit the rights and responsibilities of the GPL. As a distribution license, the GPL expresses no opinion about price. GPL-governed works can be sold, and the requirement is that when the sale is made the source is made available to the recipient of the executable code. In practical terms this often means reduced sales, since of course the recipient of a GPL-governed work has the explicit freedom to redistribute the work. But as Simon noted, this is not necessarily a death knell for sales when a tool is sufficiently useful and the community it serves is sufficiently supportive. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From prothero at earthednet.org Wed Jan 7 10:51:21 2015 From: prothero at earthednet.org (Earthednet-wp) Date: Wed, 7 Jan 2015 07:51:21 -0800 Subject: Youtube video in LC browser window? In-Reply-To: <54ACF4EA.2080500@livecode.com> References: <54ACF4EA.2080500@livecode.com> Message-ID: Neil, Thanks! It would be nice if the online tutorials were updated to reflect this. Best, Bill William Prothero http://es.earthednet.org > On Jan 7, 2015, at 12:57 AM, Neil Roger wrote: > > Hi Bill, > > Looks like you are using our old browser implementation. Try using the new revBrowserOpenCEF function as this no longer requires Internet Explorer on Win and Safari on Mac. > > e.g. > > on openBrowser > put the windowID of this stack into tWinID > put revBrowserOpenCEF(tWinID,"http://earthednet.org/ptExplorer/Cover.html") into sBrowserID > revBrowserSet sBrowserID,"showborder","true" > revBrowserSet sBrowserID, "rect",rect of grc "browserRect" > end openBrowser > > Kind Regards, > > Neil Roger > -- > LiveCode Support Team ~ http://www.livecode.com > -- > > >> On 07/01/2015 03:17, William Prothero wrote: >> Folks: >> I?m testing a LC app I developed on a Macintosh, on a PC, Windows 7, 32 bit, LC7.0.1, release version. I?m having a problem with the browser window. I put my help files online and one of them includes a youTube video in Flash format. The video plays at half size. I don?t know if this is a bug, but I have a Mac with a retina display (running Parallels 9), and an external monitor that?s not a retina display. All of the regular Livecode cards display fine, but the youTube video is about half size. The text is at the expected size. I just use the embed code provided by youTube. It is: >> >>
>>
>> >> The width turns out to be more like 195, about half the width expected. >> >> The browser open script is: >> >> on openBrowser >> put the windowID of this stack into tWinID >> put revBrowserOpen(tWinID,"http://earthednet.org/ptExplorer/Cover.html") into sBrowserID >> revBrowserSet sBrowserID,"showborder","true" >> revBrowserSet sBrowserID, "rect",rect of grc "browserRect" >> end openBrowser >> >> The linked page has a link to the youTube video. >> >> Is this a bug in Livecode? Seems the browser should work the same way as on the Mac. Or, is it some problem with Flash videos and some adjustment can be made? >> >> Also, when I open this page in Explorer, everything is at half size. In Firefox, it?s the expected size. Since Explorer is not based on WebKit, I?m not surprised at the variation, and it?s not a problem because my app doesn?t interact with Explorer anyway. >> >> By the way, this video will not display at all in a 64bit version of Windows 7. And I?m using Parallels 9 on my Mac to run Windows. >> >> Regards, >> Bill >> >> >> >> William A. Prothero >> http://es.earthednet.org/ >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ray at linkit.com Wed Jan 7 11:09:27 2015 From: ray at linkit.com (Ray) Date: Wed, 07 Jan 2015 13:09:27 -0300 Subject: 7.0.1 Loops Sounds on a Mac (whether you want to or not) In-Reply-To: <11D6732B-1665-4F8A-9FD4-F1A7A11D7FDD@earthednet.org> References: <54912789.70109@economy-x-talk.com> <54912D3A.1010203@economy-x-talk.com> <2664FDC7-23BC-405E-8617-E5EFEF1A1AC6@iotecdigital.com> <1418834388185-4686886.post@n4.nabble.com> <91CCE39C-BDFA-4EA0-B959-18F9A6EAED93@earthednet.org> <5491B795.5010200@LinkIt.Com> <11D6732B-1665-4F8A-9FD4-F1A7A11D7FDD@earthednet.org> Message-ID: <54AD5A37.7090602@LinkIt.Com> My Mac is running 10.7.1. The script is just two lines: on mouseUp wait until the sound is done play [wavFilePath] end mouseUp This works for the first click but a second click and the sound loops. This only shows up on a Mac. The documentation regarding looping is kind of confusing. It says it specifies whether a movie "or sound" loops, but looping is a property of a player, something not usually used when simply playing sound file. Ideas? From klaus at major-k.de Wed Jan 7 11:17:20 2015 From: klaus at major-k.de (Klaus major-k) Date: Wed, 7 Jan 2015 17:17:20 +0100 Subject: 7.0.1 Loops Sounds on a Mac (whether you want to or not) In-Reply-To: <54AD5A37.7090602@LinkIt.Com> References: <54912789.70109@economy-x-talk.com> <54912D3A.1010203@economy-x-talk.com> <2664FDC7-23BC-405E-8617-E5EFEF1A1AC6@iotecdigital.com> <1418834388185-4686886.post@n4.nabble.com> <91CCE39C-BDFA-4EA0-B959-18F9A6EAED93@earthednet.org> <5491B795.5010200@LinkIt.Com> <11D6732B-1665-4F8A-9FD4-F1A7A11D7FDD@earthednet.org> <54AD5A37.7090602@LinkIt.Com> Message-ID: <22BD519E-297D-4BD4-A62E-6D0324DBF3C0@major-k.de> Hi Ray, > Am 07.01.2015 um 17:09 schrieb Ray : > > My Mac is running 10.7.1. The script is just two lines: > on mouseUp > wait until the sound is done > play [wavFilePath] > end mouseUp > > This works for the first click but a second click and the sound loops. This only shows up on a Mac. sorry, I did not work with LC 7.x yet. > The documentation regarding looping is kind of confusing. It says it specifies whether a movie "or sound" loops, but looping is a property of a player, something not usually used when simply playing sound file. Check the dictionary entry for PLAY! You can add the keyword looping: ... play ac "whatever.wav" looping ... > Ideas? Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From devin_asay at byu.edu Wed Jan 7 11:21:16 2015 From: devin_asay at byu.edu (Devin Asay) Date: Wed, 7 Jan 2015 16:21:16 +0000 Subject: 7.0.1 Loops Sounds on a Mac (whether you want to or not) In-Reply-To: <54AD5A37.7090602@LinkIt.Com> References: <54912789.70109@economy-x-talk.com> <54912D3A.1010203@economy-x-talk.com> <2664FDC7-23BC-405E-8617-E5EFEF1A1AC6@iotecdigital.com> <1418834388185-4686886.post@n4.nabble.com> <91CCE39C-BDFA-4EA0-B959-18F9A6EAED93@earthednet.org> <5491B795.5010200@LinkIt.Com> <11D6732B-1665-4F8A-9FD4-F1A7A11D7FDD@earthednet.org> <54AD5A37.7090602@LinkIt.Com> Message-ID: <60C72A67-6AFE-406F-B06B-93CDD70C437D@byu.edu> On Jan 7, 2015, at 9:09 AM, Ray wrote: > My Mac is running 10.7.1. The script is just two lines: > > on mouseUp > wait until the sound is done > play [wavFilePath] > end mouseUp > > This works for the first click but a second click and the sound loops. This only shows up on a Mac. > > The documentation regarding looping is kind of confusing. It says it specifies whether a movie "or sound" loops, but looping is a property of a player, something not usually used when simply playing sound file. > > Ideas? Ray, this is a known bug that has been addressed for the next release of 6.7.x and 7.0.x. http://quality.runrev.com/show_bug.cgi?id=14269 Regarding your handler, typically it doesn?t make sense to use ?wait until the sound is done? until after you issue the ?play? command. In the order you?ve written it, the first time the script runs there is no sound playing so ?the sound? function returns ?done? immediately and goes on to the next line. If you then invoke the mouseUp handler again BEFORE the sound is finished playing ?the sound? will return the name of the audio clip being played. The referenced bug then takes over and begins playing the sound in an infinite loop. There is a form of the ?play? command that allows you to loop independently of a player object: play [path to audio file] looping HTH Devin Devin Asay Office of Digital Humanities Brigham Young University From ray at linkit.com Wed Jan 7 12:28:57 2015 From: ray at linkit.com (Ray) Date: Wed, 07 Jan 2015 14:28:57 -0300 Subject: 7.0.1 Loops Sounds on a Mac (whether you want to or not) In-Reply-To: <22BD519E-297D-4BD4-A62E-6D0324DBF3C0@major-k.de> References: <54912789.70109@economy-x-talk.com> <54912D3A.1010203@economy-x-talk.com> <2664FDC7-23BC-405E-8617-E5EFEF1A1AC6@iotecdigital.com> <1418834388185-4686886.post@n4.nabble.com> <91CCE39C-BDFA-4EA0-B959-18F9A6EAED93@earthednet.org> <5491B795.5010200@LinkIt.Com> <11D6732B-1665-4F8A-9FD4-F1A7A11D7FDD@earthednet.org> <54AD5A37.7090602@LinkIt.Com> <22BD519E-297D-4BD4-A62E-6D0324DBF3C0@major-k.de> Message-ID: <54AD6CD9.30100@LinkIt.Com> Klaus, Devin, Thanks for your responses. I've added my observations to the bug report and asked for a time estimate as to when this will be addressed. And thanks for the 'looping' insight. I guess what we really need here is an additional 'nonlooping' or 'without looping' option :) On 1/7/2015 1:17 PM, Klaus major-k wrote: > Hi Ray, > >> Am 07.01.2015 um 17:09 schrieb Ray : >> >> My Mac is running 10.7.1. The script is just two lines: >> on mouseUp >> wait until the sound is done >> play [wavFilePath] >> end mouseUp >> >> This works for the first click but a second click and the sound loops. This only shows up on a Mac. > sorry, I did not work with LC 7.x yet. > >> The documentation regarding looping is kind of confusing. It says it specifies whether a movie "or sound" loops, but looping is a property of a player, something not usually used when simply playing sound file. > Check the dictionary entry for PLAY! > You can add the keyword looping: > ... > play ac "whatever.wav" looping > ... > >> Ideas? > Best > > Klaus > > -- > Klaus Major > http://www.major-k.de > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pete at lcsql.com Wed Jan 7 12:30:20 2015 From: pete at lcsql.com (Peter Haworth) Date: Wed, 7 Jan 2015 09:30:20 -0800 Subject: Licensing In-Reply-To: <54AD51F4.90403@fourthworld.com> References: <54AD51F4.90403@fourthworld.com> Message-ID: Thanks to everyone for the explanations. Especially Kevin since he's the one with the final say! I'm now back to feeling relatively comfortable with moving forward on this. I do find it somewhat ironic that back in my working life, the company I worked for charged a substantial amount of money to provide the source code for any of our products and now I'm faced with doing it at no charge. In fact, I remember discussions on the list before the Community Edition days about the need for tools developers to provide an option to purchase the source code so the tools users felt comfortable in being able to support the products they developed with them. Times change. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Wed, Jan 7, 2015 at 7:34 AM, Richard Gaskin wrote: > Kay C Lan wrote: > > > On Wed, Jan 7, 2015 at 1:26 PM, Richard Gaskin wrote: > > > >> It is indeed confusing... > >> > >> But whether it's "detrimental" is a matter of taste. > > > > If Peter finally decides NOT to make his lcStackBrowser available > > to LC Community Edition Users due to confusion and concern as to > > whether the GPL applies then that would be a loss to the Community > > Users and a few less sales for Peter. > > That would be the case if the only version of LiveCode were the > GPL-governed Community Edition. > > Peter has a license for the Commercial Edition, as do most of the pro > developers likely to spend money on tools. > > The Commercial Edition still exists, and as such nothing has changed there. > > Now we have an addition to the mix, the newer Community Edition. If any > aspect of distributing to that new audience causes concern about that > specific deployment, it doesn't change what can be done with the Commercial > Edition we've been enjoying for decades. > > > My own personal opinion is that when using other people's code it's useful > to err on the side of a conservative interpretation until the copyright > holder says otherwise. > > And here that's what happened: I'd cc'd Kevin with some of this thread and > this morning he explicitly stated here that he sees no copyright > infringement with regard to IDE tools made with the Commercial Edition > distributed to users of the Community Edition: > > > As with so many things in life, it rarely hurts to ask. At worst you'll > know the boundaries of what can and cannot be done, and at best you may get > exactly what you want. > > > As the copyright holder Kevin's opinion is the most relevant, defining for > us what can be done with his company's intellectual property. > > It's worth noting, though, that his intentions are more liberal than that > of the respective counsels for the Wordpress, Joomla, and Drupal projects, > in which their argument is that merely making calls to their APIs and > sharing execution memory space is enough to satisfy the definition of > "derivative work". > > Personally I prefer Kevin's view, and in my reading it's more sensible > than that of Drupal/Wordpress/Joomla. But since I'm not the copyright > holder for LiveCode or Drupal/Joomla/Wordpress my personal preference is > irrelevant; I've been unable to persuade anyone in the Wordpress project to > adopt my personal preferences. :) > > Given the many and ever-growing ways code can co-mingle during execution, > we may never see a concise legally binding definition of "derivative > work". So for myself, I like to check with the copyright holder. > > > > And as you point out yourself, a healthy libraries, plug-ins and > > widgets environment is good not just for users but for Runrev > > as well. > > I wrote that in support of Simon's observation that many of the add-ons > for Wordpress are indeed financially viable for their developers, even > though that project explicitly considers all of them to be "derivative > works" which inherit the rights and responsibilities of the GPL. > > As a distribution license, the GPL expresses no opinion about price. > GPL-governed works can be sold, and the requirement is that when the sale > is made the source is made available to the recipient of the executable > code. > > In practical terms this often means reduced sales, since of course the > recipient of a GPL-governed work has the explicit freedom to redistribute > the work. > > But as Simon noted, this is not necessarily a death knell for sales when a > tool is sufficiently useful and the community it serves is sufficiently > supportive. > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From kevin at livecode.com Wed Jan 7 12:43:04 2015 From: kevin at livecode.com (Kevin Miller) Date: Wed, 07 Jan 2015 17:43:04 +0000 Subject: Licensing In-Reply-To: <54AD51F4.90403@fourthworld.com> References: <54AD51F4.90403@fourthworld.com> Message-ID: It is worth pointing out that the step here, not possible in these other tools, involved assigning that plugin a different license using the Commercial edition of the software. If you are purely in the Community ecosystem and want to release a plugin, widget or library, that does have to be GPL (http://www.gnu.org/licenses/gpl-faq.html#GPLAndPlugins) Kind regards, Kevin Kevin Miller ~ kevin at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps On 07/01/2015 15:34, "Richard Gaskin" wrote: >As the copyright holder Kevin's opinion is the most relevant, defining >for us what can be done with his company's intellectual property. > >It's worth noting, though, that his intentions are more liberal than >that of the respective counsels for the Wordpress, Joomla, and Drupal >projects, in which their argument is that merely making calls to their >APIs and sharing execution memory space is enough to satisfy the >definition of "derivative work". > >Personally I prefer Kevin's view, and in my reading it's more sensible >than that of Drupal/Wordpress/Joomla. But since I'm not the copyright >holder for LiveCode or Drupal/Joomla/Wordpress my personal preference is >irrelevant; I've been unable to persuade anyone in the Wordpress project >to adopt my personal preferences. :) > From andre at andregarzia.com Wed Jan 7 13:31:37 2015 From: andre at andregarzia.com (Andre Garzia) Date: Wed, 7 Jan 2015 16:31:37 -0200 Subject: [BUG] setting the httpheaders on iOS using LC 6.7 doesn't work Message-ID: Hey Friends, Can someone confirm that setting the httpheaders before a post work on iOS and Android using LC 6.7 My Facebook Library is experiencing hiccups and by investigating with Charles Proxy I am seeing that the request is not going with the content type I am setting. This used to work before. I want to see if it is a LC bug. If it is I will need to script the http request by hand... Cheers andre -- http://www.andregarzia.com -- All We Do Is Code. http://fon.nu -- minimalist url shortening service. From ambassador at fourthworld.com Wed Jan 7 13:43:20 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 07 Jan 2015 10:43:20 -0800 Subject: Licensing In-Reply-To: References: Message-ID: <54AD7E48.7060907@fourthworld.com> Peter Haworth wrote: > I do find it somewhat ironic that back in my working life, the > company I worked for charged a substantial amount of money to > provide the source code for any of our products and now I'm faced > with doing it at no charge. Only when choosing the GPL option. As Kevin reminds us, LiveCode is different from Drupal, Wordpress, and some other FOSS projects in that LC is dual-licensed where those are only available under GPL. I you have a project where the goals involve sharing and community contributions, the GPL can be a good choice. And if the goals for a project require proprietary terms, with LiveCode we have an option for that as well. > In fact, I remember discussions on the list before the Community > Edition days about the need for tools developers to provide an option > to purchase the source code so the tools users felt comfortable in > being able to support the products they developed with them. Many still do. Curry Kenworthy, for example, offers a proprietary license for his wonderful WordLib library, along with an option to obtain a limited license for the source at an additional cost. His work is excellent, and his pricing quite reasonable for companies that may need to modify the source for their app. > Times change. Oh they do indeed. If we look at the TIOBE Top 100 Programming Languages, most of them are open source. And among the relative few that have been proprietary, the biggest are now moving to open source this year: Microsoft will be open sourcing their dev tools. Open source benefits everyone, but most end-users only recognize the cost aspect. For developers, access to the source is where the greatest value is derived, allowing open source works to grow and adapt to a wider range of use cases than the original developer could do on her own. The Linux Foundation is a good example of the symbiotic relationship between open source and proprietary works: With servers and routers and phones and tablets and even a few PCs here and there, most people use Linux every day and they aren't even aware of it. And chances are none of that would have been possible if the source had been closed. By opening it up, and doing so under a license that ensures downstream sharing, Linux is now scalable and adaptable to nearly every type of computing device on the planet. Who pays for all that? Take a look at the Members list: Many of those companies earn their money with proprietary software, but they rely on open source to provide the tools and infrastructure that supports their proprietary development. One of the many interesting things the GPL has given us is an opportunity to consider redefinitions of value. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From pete at lcsql.com Wed Jan 7 13:42:12 2015 From: pete at lcsql.com (Peter Haworth) Date: Wed, 7 Jan 2015 10:42:12 -0800 Subject: Sticky Popup Menu? In-Reply-To: <5EE3251A-1440-4053-9D85-D0C36051C30E@tactilemedia.com> References: <7AF3AA8E-2E36-4C2B-B11C-36F52F92B07B@tactilemedia.com> <54AC8930.7060202@fourthworld.com> <5EE3251A-1440-4053-9D85-D0C36051C30E@tactilemedia.com> Message-ID: Hi Scott, Another approach to this might be to have an invisible scrolling list field which you make visible at the appropriate time. You could set it to allow multiline selections or perhaps insert a checkmark or something to indicate the selected lines using the htmlText or the imageSource property of the line. I guess you'd also need a button to close it so perhaps it would be an invisible group rather than just the field. Or just close it when the user clicks anywhere outside it. Bit more limiting in appearance options but might work depending on your needs. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Tue, Jan 6, 2015 at 8:00 PM, Scott Rossi wrote: > Thanks for this suggestion. This was surprisingly easy to get working, > using a global variable to track when a selection is made. The one > drawback is, when launched, the palette menu changes window focus from the > main stack, which functionally not a big deal, but visually changes the > appearance of the titlebar of the main stack. > > By any chance is there some decoration setting or similar that would > prevent the appearance of the main stack from changing? I tried enabling > the systemWindow of the menu stack but the result was the same ? focus > changes from the main stack. > > If there?s some way to maintain the ?active? appearance of the main stack > while the palette menu is active, this would be a very workable solution. > > Thanks & Regards, > > Scott Rossi > Creative Director > Tactile Media, UX/UI Design > > On Jan 6, 2015, at 5:17 PM, Richard Gaskin > wrote: > > > Scott Rossi wrote: > > > Anyone know if it?s possible to make the menu that?s created using > > > "popup stack ?? sticky? So it doesn?t automatically disappear when > > > releasing the mouse? > > > > I've had good luck with borderless palette windows, not using the popup > command at all but simply opening them. I trap escapeKey to dismiss them, > and close them on suspendStack so clicking anywhere outside of them > dismisses them like a menu does. > > > > I use these as flyout panes in the new Devolution 3 in development, and > they've been surprisingly satisfying as an alternative to popup stacks. > > > > The old popup command was designed back in the days when all menus were > implemented as stacks, so they always dismiss as soon as anything is > clicked on. > > > > But with these flyout panes I can have any type of controls I want, and > the pane stays up until I either use escape key or click anywhere outside > of it. If needed of course you could have a close button as well to cover > your bases. > > > > -- > > Richard Gaskin > > Fourth World Systems > > Software Design and Development for the Desktop, Mobile, and the Web > > ____________________________________________________________________ > > Ambassador at FourthWorld.com http://www.FourthWorld.com > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ambassador at fourthworld.com Wed Jan 7 14:05:34 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 07 Jan 2015 11:05:34 -0800 Subject: Sticky Popup Menu? In-Reply-To: <5EE3251A-1440-4053-9D85-D0C36051C30E@tactilemedia.com> References: <5EE3251A-1440-4053-9D85-D0C36051C30E@tactilemedia.com> Message-ID: <54AD837E.4020707@fourthworld.com> Scott Rossi wrote: > On Jan 6, 2015, at 5:17 PM, Richard Gaskin wrote: > >> I've had good luck with borderless palette windows, not using the >> popup command at all but simply opening them. I trap escapeKey >> to dismiss them, and close them on suspendStack so clicking >> anywhere outside of them dismisses them like a menu does. > > Thanks for this suggestion. This was surprisingly easy to get > working, using a global variable to track when a selection is made. > The one drawback is, when launched, the palette menu changes window > focus from the main stack, which functionally not a big deal, but > visually changes the appearance of the titlebar of the main stack. In my case this issue was obviated by virtue of the stack that opens these flyout panels being a customized borderless palette: I needed that for other reasons (not the least of which is Cocoa's insistence on including all window buttons even when they're disabled, making the title area unnecessarily small and pushed off-center), but I was was happy to discover that it also works nicely with the flyouts since the OS doesn't alter the appearance of the custom drag region. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From scott at tactilemedia.com Wed Jan 7 14:05:59 2015 From: scott at tactilemedia.com (Scott Rossi) Date: Wed, 7 Jan 2015 11:05:59 -0800 Subject: Sticky Popup Menu? In-Reply-To: References: <7AF3AA8E-2E36-4C2B-B11C-36F52F92B07B@tactilemedia.com> <54AC8930.7060202@fourthworld.com> <5EE3251A-1440-4053-9D85-D0C36051C30E@tactilemedia.com> Message-ID: Right, having a card-based control would definitely solve the focus problem. In my case, I?m already using a list field in the popup substack, so the control is already done. And I could get some nice translucency effects with a card-based control. It?s unfortunate because the stack solution is pretty clean, and really all that needs to happen is that ?stickiness? needs to be added to the popup command behavior. Feature request in RRQC. . . Thanks for the suggestion. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On Jan 7, 2015, at 10:42 AM, Peter Haworth wrote: > Hi Scott, > Another approach to this might be to have an invisible scrolling list field > which you make visible at the appropriate time. > > You could set it to allow multiline selections or perhaps insert a > checkmark or something to indicate the selected lines using the htmlText or > the imageSource property of the line. > > I guess you'd also need a button to close it so perhaps it would be an > invisible group rather than just the field. Or just close it when the user > clicks anywhere outside it. > > Bit more limiting in appearance options but might work depending on your > needs. > > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin > > On Tue, Jan 6, 2015 at 8:00 PM, Scott Rossi wrote: > >> Thanks for this suggestion. This was surprisingly easy to get working, >> using a global variable to track when a selection is made. The one >> drawback is, when launched, the palette menu changes window focus from the >> main stack, which functionally not a big deal, but visually changes the >> appearance of the titlebar of the main stack. >> >> By any chance is there some decoration setting or similar that would >> prevent the appearance of the main stack from changing? I tried enabling >> the systemWindow of the menu stack but the result was the same ? focus >> changes from the main stack. >> >> If there?s some way to maintain the ?active? appearance of the main stack >> while the palette menu is active, this would be a very workable solution. >> >> Thanks & Regards, >> >> Scott Rossi >> Creative Director >> Tactile Media, UX/UI Design >> >> On Jan 6, 2015, at 5:17 PM, Richard Gaskin >> wrote: >> >>> Scott Rossi wrote: >>>> Anyone know if it?s possible to make the menu that?s created using >>>> "popup stack ?? sticky? So it doesn?t automatically disappear when >>>> releasing the mouse? >>> >>> I've had good luck with borderless palette windows, not using the popup >> command at all but simply opening them. I trap escapeKey to dismiss them, >> and close them on suspendStack so clicking anywhere outside of them >> dismisses them like a menu does. >>> >>> I use these as flyout panes in the new Devolution 3 in development, and >> they've been surprisingly satisfying as an alternative to popup stacks. >>> >>> The old popup command was designed back in the days when all menus were >> implemented as stacks, so they always dismiss as soon as anything is >> clicked on. >>> >>> But with these flyout panes I can have any type of controls I want, and >> the pane stays up until I either use escape key or click anywhere outside >> of it. If needed of course you could have a close button as well to cover >> your bases. >>> >>> -- >>> Richard Gaskin >>> Fourth World Systems >>> Software Design and Development for the Desktop, Mobile, and the Web >>> ____________________________________________________________________ >>> Ambassador at FourthWorld.com http://www.FourthWorld.com >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ray at linkit.com Wed Jan 7 14:32:59 2015 From: ray at linkit.com (Ray) Date: Wed, 07 Jan 2015 16:32:59 -0300 Subject: Can't Trap for Mouse Handlers in a Player In-Reply-To: <60C72A67-6AFE-406F-B06B-93CDD70C437D@byu.edu> References: <54912789.70109@economy-x-talk.com> <54912D3A.1010203@economy-x-talk.com> <2664FDC7-23BC-405E-8617-E5EFEF1A1AC6@iotecdigital.com> <1418834388185-4686886.post@n4.nabble.com> <91CCE39C-BDFA-4EA0-B959-18F9A6EAED93@earthednet.org> <5491B795.5010200@LinkIt.Com> <11D6732B-1665-4F8A-9FD4-F1A7A11D7FDD@earthednet.org> <54AD5A37.7090602@LinkIt.Com> <60C72A67-6AFE-406F-B06B-93CDD70C437D@byu.edu> Message-ID: <54AD89EB.5000100@LinkIt.Com> This is another Mac only problem. On Windows I can trap for a right click in a mouseDown handler anywhere on a video Player window. This allows my users to easily relocate the player by dragging any part of the window. On the Mac neither a right click nor a control click can 'get through' since something in the system interrupts and pops up a contextual menu of choices. The exception to this is if my users carefully click right on the control bar along the bottom of the window. But this is awkward and if the controller is not visible then they're stuck. Any way around this? From bobsneidar at iotecdigital.com Wed Jan 7 15:38:57 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 7 Jan 2015 20:38:57 +0000 Subject: building cross-platform Windows and Mac In-Reply-To: <54AB173C.3020801@researchware.com> References: <54AB173C.3020801@researchware.com> Message-ID: The way I got around this is I made a PNG of the character I wanted, imported it, named it and then set the imageSource of the first character of the line to my png like so: set the imageSource of char 1 of line theHilitedLine of me to ?bullet.png" Now I have a bulleting system that will work on all platforms (that recognize PNG anyway). This method has the added advantage of allowing you to use *ANYTHING* as a bullet or checkmark or whatever. Bob S > On Jan 5, 2015, at 14:59 , Paul Dupuis wrote: > > On 1/5/2015 5:53 PM, william humphrey wrote: >> I noticed that ? which is a checkmark on Mac-OS is | a pipe symbol on Windows. >> >> Is there a font I can choose on my design that will work the same on >> Windows and Mac? >> >> I hope I don't have to put a bunch of "check which platform and do >> this or that". I assumed the font characters were the same and I'm >> kind of surprised. >> > Characters in characters codes below 128 are the same between platforms. > OSX and Windows use the ASCII character codes from 128-255 differently > regardless of Font. So, unless you are using LiveCode 7, if you are > using any character above ASCII 127, you do have to check what platform > you are on. See the isoToMac and macToIso functions in the LiveCode > Dictionary as well. > > And yes, it sucks. > > Paul Dupuis > Researchware > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Wed Jan 7 15:43:21 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 7 Jan 2015 20:43:21 +0000 Subject: iconGravity In-Reply-To: References: Message-ID: <76E0DDBC-6679-4BBE-B874-06C5DD10EFA9@iotecdigital.com> That IS interesting. Bob S On Jan 5, 2015, at 16:02 , Eric Corbett > wrote: Cool new button property I discovered finally (new to me anyway). Any way to set the iconGravity to left, the textAlign to left and have the label start next to the icon without having to add spaces in front of the label? Thanks, - Eric From prothero at earthednet.org Wed Jan 7 15:49:09 2015 From: prothero at earthednet.org (William Prothero) Date: Wed, 7 Jan 2015 12:49:09 -0800 Subject: Playing Flash Video crashes revbrowserCEF Message-ID: Folks: I?m trying to play a YouTube move in the rev browser. I use revBrowserOpenCEF. The code is: on openBrowser put the windowID of this stack into tWinID put revBrowserOpenCEF(tWinID,"http://earthednet.org/ptExplorer/Cover.html") into sBrowserID revBrowserSet sBrowserID,"showborder","true" revBrowserSet sBrowserID, "rect",rect of grc "browserRect" end openBrowser on closeBrowser put revBrowserInstances() into tInstances if tInstances is not empty then revBrowserClose sBrowserID end if end closeBrowser This crashes LiveCode 7.0.1, as well as 7.0.1 (Rc2) when I try to play a Flash movie. This is on Mac OS10.10.1. The movie plays, but livecode won?t quit and seems to lock up or crash. Before I submit a bug report, I wonder if anybody else has seen this, or if I am doing something wrong. Note: using the older browser: ?not the CEF one? Mac doesn?t crash, but the movie is not displayed at the correct size in Windows, and won?t display at all in Windows 7 64 bit. Regards, Bill William A. Prothero http://es.earthednet.org/ From bobsneidar at iotecdigital.com Wed Jan 7 15:50:43 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 7 Jan 2015 20:50:43 +0000 Subject: building cross-platform Windows and Mac In-Reply-To: <537CF70A-CC45-49DF-A08D-B82ADC7525C6@byu.edu> References: <537CF70A-CC45-49DF-A08D-B82ADC7525C6@byu.edu> Message-ID: <3CDA08D1-33AC-47DF-9C79-11B8923157B6@iotecdigital.com> Oh sweet! I tried HTML text at first but didn?t use your notation. It looked horrible. Bob S On Jan 5, 2015, at 15:52 , Devin Asay > wrote: set the htmltext of fld 1 to "✓? HTH Devin From bobsneidar at iotecdigital.com Wed Jan 7 15:52:13 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 7 Jan 2015 20:52:13 +0000 Subject: building cross-platform Windows and Mac In-Reply-To: References: <537CF70A-CC45-49DF-A08D-B82ADC7525C6@byu.edu> Message-ID: <1647AA47-82AE-45AA-8A74-B5C86C8BDD76@iotecdigital.com> Me too! In fact, if I can get the LC dev team to write my next hugely successful application that sells millions on the world market using but a single line of code, then I will concede that LC has finally matured. ;-) Bob S On Jan 6, 2015, at 12:13 , william humphrey > wrote: Thanks for all the help. I was hoping LC 7 would do all the work for me. From bobsneidar at iotecdigital.com Wed Jan 7 15:54:17 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 7 Jan 2015 20:54:17 +0000 Subject: replaceText problem In-Reply-To: <54AC2C49.6090108@hyperactivesw.com> References: <54A764CE.8000108@hyperactivesw.com> <54A836BD.4060506@hyperactivesw.com> <54A83F17.4040309@hyperactivesw.com> <54AC2C49.6090108@hyperactivesw.com> Message-ID: Oh right, I knew about that. Bob S > On Jan 6, 2015, at 10:41 , J. Landman Gay wrote: > > On 1/6/2015 10:47 AM, Bob Sneidar wrote: >> There is a semicolon ?trick??? > > Yes, you can separate statement lines in scripts with a semicolon instead of a return character. It's most useful in the one-line message box but can be inconsistent there, where it usually works but sometimes doesn't. > > I know of one person who uses it in scripts. I find that difficult to read and debug. > > -- > Jacqueline Landman Gay From devin_asay at byu.edu Wed Jan 7 15:55:26 2015 From: devin_asay at byu.edu (Devin Asay) Date: Wed, 7 Jan 2015 20:55:26 +0000 Subject: iconGravity In-Reply-To: <76E0DDBC-6679-4BBE-B874-06C5DD10EFA9@iotecdigital.com> References: <76E0DDBC-6679-4BBE-B874-06C5DD10EFA9@iotecdigital.com> Message-ID: <9363D1F2-CF04-493A-9EE6-F77A76B3D297@byu.edu> On Jan 7, 2015, at 1:43 PM, Bob Sneidar wrote: > That IS interesting. > > Bob S > > > On Jan 5, 2015, at 16:02 , Eric Corbett > wrote: > > Cool new button property I discovered finally (new to me anyway). > > Any way to set the iconGravity to left, the textAlign to left and have the label start next to the icon without having to add spaces in front of the label? > > Thanks, > > - Eric How did I miss this?! I read all the release notes. This finally allows us to position button label text on top of icon images! It?s like a late Christmas present! (Well, technically it was early, but I didn?t unwrap it until now.) :) Devin Devin Asay Learn to code with LiveCode University http://university.livecode.com From bobsneidar at iotecdigital.com Wed Jan 7 15:58:48 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 7 Jan 2015 20:58:48 +0000 Subject: replaceText problem In-Reply-To: <54ACB7DB.1060906@hyperactivesw.com> References: <54A764CE.8000108@hyperactivesw.com> <54A836BD.4060506@hyperactivesw.com> <0AB6C359-D3A2-41B9-972E-B8062B60F1D8@gmail.com> <54A83F7F.9010407@hyperactivesw.com> <671455195905.20150103155220@ahsoftware.net> <54A8D562.5000702@hyperactivesw.com> <536006286.20150106195821@ahsoftware.net> <54ACB7DB.1060906@hyperactivesw.com> Message-ID: <61154222-CB29-4AA6-9618-50B41F577DF6@iotecdigital.com> The Jacqueline Landman Gay of the future uses them extensively in her Time Travel Stack. If you don?t figure it out soon you will never find your socks. Bob S On Jan 6, 2015, at 20:36 , J. Landman Gay > wrote: On 1/6/2015 9:58 PM, Mark Wieder wrote: Then in your traceBreak function you can parse it and do what you like. No, no. In YOUR tracebreak function. I don't mess around in there, it's too scary. You're the brave daredevil. -- Jacqueline Landman Gay From bobsneidar at iotecdigital.com Wed Jan 7 16:02:23 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 7 Jan 2015 21:02:23 +0000 Subject: Project Browser vs App Browser (was "script scope variables inexplicably becoming unset") In-Reply-To: <54A835CB.2010709@hyperactivesw.com> References: <37222805-C7E5-4C08-83FB-2856742B885D@livecode.org> <54A835CB.2010709@hyperactivesw.com> Message-ID: <82EEEBB3-215B-4AD3-AB8F-AB484BD8F3E6@iotecdigital.com> Really?? I?ve been using command-[ and ] to move controls up and down one at a time whilst watching where they end up in the App Browser. If I could drag and drop them that would make form gen much easier. Bob S On Jan 3, 2015, at 10:32 , J. Landman Gay > wrote: My client, who does much of the layout on our stacks, uses the project browser only when she needs to relayer controls. She says it's easier to drag them around than to renumber them in the property inspector. If she's not relayering things, she goes back to the app browser for the reasons I mentioned. I wouldn't mind seeing drag-layering in the app browser. -- Jacqueline Landman Gay From ethanlish at gmail.com Wed Jan 7 16:32:26 2015 From: ethanlish at gmail.com (Ethan Lish) Date: Wed, 07 Jan 2015 13:32:26 -0800 (PST) Subject: #code2014 Message-ID: <1420666346093.f35c56e@Nodemailer> Twitter quote "@LiveCode: Can we get into the top 20 of #code2014? On Twitter type: #code2014 Livecode. Let's do it! http://t.co/JS9lohUrsd " ? Ethan at Lish.net240.876.1389 From jacque at hyperactivesw.com Wed Jan 7 16:58:21 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 07 Jan 2015 15:58:21 -0600 Subject: iconGravity In-Reply-To: <9363D1F2-CF04-493A-9EE6-F77A76B3D297@byu.edu> References: <76E0DDBC-6679-4BBE-B874-06C5DD10EFA9@iotecdigital.com> <9363D1F2-CF04-493A-9EE6-F77A76B3D297@byu.edu> Message-ID: <54ADABFD.7090409@hyperactivesw.com> On 1/7/2015 2:55 PM, Devin Asay wrote: > This finally allows us to position button label text on top of icon images! Yes, but you have to wonder about the mindset of the engineer who decided this was "gravity" instead of "position". I'm afraid if I use this property all my icons will suddenly become very serious. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Wed Jan 7 17:00:04 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 07 Jan 2015 16:00:04 -0600 Subject: replaceText problem In-Reply-To: <61154222-CB29-4AA6-9618-50B41F577DF6@iotecdigital.com> References: <54A764CE.8000108@hyperactivesw.com> <54A836BD.4060506@hyperactivesw.com> <0AB6C359-D3A2-41B9-972E-B8062B60F1D8@gmail.com> <54A83F7F.9010407@hyperactivesw.com> <671455195905.20150103155220@ahsoftware.net> <54A8D562.5000702@hyperactivesw.com> <536006286.20150106195821@ahsoftware.net> <54ACB7DB.1060906@hyperactivesw.com> <61154222-CB29-4AA6-9618-50B41F577DF6@iotecdigital.com> Message-ID: <54ADAC64.40009@hyperactivesw.com> But the last time I tried it, I found *your* socks. On 1/7/2015 2:58 PM, Bob Sneidar wrote: > The Jacqueline Landman Gay of the future uses them extensively in her > Time Travel Stack. If you don?t figure it out soon you will never > find your socks. > > Bob S > > > On Jan 6, 2015, at 20:36 , J. Landman Gay > > wrote: > > On 1/6/2015 9:58 PM, Mark Wieder wrote: Then in your traceBreak > function you can parse it and do what you like. > > No, no. In YOUR tracebreak function. I don't mess around in there, > it's too scary. You're the brave daredevil. > > -- Jacqueline Landman Gay > > _______________________________________________ use-livecode mailing > list use-livecode at lists.runrev.com Please visit this url to > subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Wed Jan 7 17:03:57 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 07 Jan 2015 16:03:57 -0600 Subject: Project Browser vs App Browser (was "script scope variables inexplicably becoming unset") In-Reply-To: <82EEEBB3-215B-4AD3-AB8F-AB484BD8F3E6@iotecdigital.com> References: <37222805-C7E5-4C08-83FB-2856742B885D@livecode.org> <54A835CB.2010709@hyperactivesw.com> <82EEEBB3-215B-4AD3-AB8F-AB484BD8F3E6@iotecdigital.com> Message-ID: <54ADAD4D.5070803@hyperactivesw.com> On 1/7/2015 3:02 PM, Bob Sneidar wrote: > I?ve been using command-[ and ] to move controls up and down one at a > time whilst watching where they end up in the App Browser. Well I'll be damned. I had no idea you could do that. I don't think I've ever seen a reference to that feature. Thanks! -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From prothero at earthednet.org Wed Jan 7 17:51:26 2015 From: prothero at earthednet.org (William Prothero) Date: Wed, 7 Jan 2015 14:51:26 -0800 Subject: Snapshot working poorly in Windows, crappy results Message-ID: Folks: As I go on my journey of getting my OS X app in livecode working on Windows, I am coming across some really crappy behavior. I?m using livecode 7.0.1. The latest on is: snapshot give terrible results. Here is a link to before and after images. The top one is the snapshot and the lower one is the source image. http://es.earthednet.org/windowsSnapTest wait for 0.1 seconds with messages export snapshot from rect snapRect to image "mapSnap" wait for 0.1 seconds with messages This works fine on Mac OSX10.10.1. And I?m running Windows in Parallels 9. Note: I?m not an expert Windows user, so it?s possible something is set wrong in the configuration, but it seems to me that the resulting image should look identical to the one captured. Regards and thanks in advance for any help. Bill William A. Prothero http://es.earthednet.org/ From devin_asay at byu.edu Wed Jan 7 18:05:18 2015 From: devin_asay at byu.edu (Devin Asay) Date: Wed, 7 Jan 2015 23:05:18 +0000 Subject: iconGravity In-Reply-To: <54ADABFD.7090409@hyperactivesw.com> References: <76E0DDBC-6679-4BBE-B874-06C5DD10EFA9@iotecdigital.com> <9363D1F2-CF04-493A-9EE6-F77A76B3D297@byu.edu> <54ADABFD.7090409@hyperactivesw.com> Message-ID: <7F7F8FD6-A46D-4DDB-96A2-4FD1580BDCDC@byu.edu> On Jan 7, 2015, at 2:58 PM, J. Landman Gay wrote: > On 1/7/2015 2:55 PM, Devin Asay wrote: >> This finally allows us to position button label text on top of icon images! > > Yes, but you have to wonder about the mindset of the engineer who decided this was "gravity" instead of "position". I'm afraid if I use this property all my icons will suddenly become very serious. Wow, that?s heavy. D Devin Asay Office of Digital Humanities Brigham Young University From eric at canelasoftware.com Wed Jan 7 18:18:45 2015 From: eric at canelasoftware.com (Eric Corbett) Date: Wed, 7 Jan 2015 15:18:45 -0800 Subject: mobile input field Message-ID: Howdy, Any was to restrict input to numbers only without using the numbers keyboard or replacing non numeric numbers after the fact for a mobile input control? Thanks, - Eric From pete at lcsql.com Wed Jan 7 18:45:05 2015 From: pete at lcsql.com (Peter Haworth) Date: Wed, 7 Jan 2015 15:45:05 -0800 Subject: Snapshot working poorly in Windows, crappy results In-Reply-To: References: Message-ID: On Wed, Jan 7, 2015 at 2:51 PM, William Prothero wrote: > export snapshot from rect snapRect to image "mapSnap" Hi Bill, I'm no Windows expert either but you might try adding "as xxx" to the end of your export command to specify an image type. The dictionary says the default is PBM, PGM, or PPM and I've never used any of those formats so other options may work better. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From harrison at all-auctions.com Wed Jan 7 18:53:28 2015 From: harrison at all-auctions.com (Rick Harrison) Date: Wed, 7 Jan 2015 18:53:28 -0500 Subject: mobile input field In-Reply-To: References: Message-ID: <0057DD1B-82FF-4E73-B689-B6611FFDE65B@all-auctions.com> Hi Eric, Users may type anything they want into a field, and it is up to the programmer to make sure that the type of data is accepted (or valid) if possible. Use a text field for the input, and then process the text to see if it is valid numeric data. If so, you are good, if not, you have to tell them they didn?t enter numeric data and to try again. The only other way I can think of is you would have to make up some other kind of control similar to a date picker where only numeric values can be scrolled to and selected by clicking on them, kind of like making your own keypad control. So the answer to your question is most probably no. Cheers and good luck! Rick > On Jan 7, 2015, at 6:18 PM, Eric Corbett wrote: > > Howdy, > > Any was to restrict input to numbers only without using the numbers keyboard or replacing non numeric numbers after the fact for a mobile input control? > > Thanks, > > - Eric > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From coiin at verizon.net Wed Jan 7 18:54:11 2015 From: coiin at verizon.net (Colin Holgate) Date: Wed, 07 Jan 2015 18:54:11 -0500 Subject: Snapshot working poorly in Windows, crappy results In-Reply-To: References: Message-ID: <90D4A201-B10A-4595-8889-547CF41DB9C2@verizon.net> Try setting the screengamma value, say to 2.2. From jacque at hyperactivesw.com Wed Jan 7 18:55:12 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 07 Jan 2015 17:55:12 -0600 Subject: Project Browser vs App Browser (was "script scope variables inexplicably becoming unset") In-Reply-To: <54ADAD4D.5070803@hyperactivesw.com> References: <37222805-C7E5-4C08-83FB-2856742B885D@livecode.org> <54A835CB.2010709@hyperactivesw.com> <82EEEBB3-215B-4AD3-AB8F-AB484BD8F3E6@iotecdigital.com> <54ADAD4D.5070803@hyperactivesw.com> Message-ID: <54ADC760.3090703@hyperactivesw.com> On 1/7/2015 4:03 PM, J. Landman Gay wrote: > On 1/7/2015 3:02 PM, Bob Sneidar wrote: >> I?ve been using command-[ and ] to move controls up and down one at a >> time whilst watching where they end up in the App Browser. > > Well I'll be damned. I had no idea you could do that. I don't think I've > ever seen a reference to that feature. > > Thanks! > Until I looked in the Object menu. Well duh. We don't need no stinkin' menus. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From eric at canelasoftware.com Wed Jan 7 19:07:16 2015 From: eric at canelasoftware.com (Eric Corbett) Date: Wed, 7 Jan 2015 16:07:16 -0800 Subject: mobile input field In-Reply-To: <0057DD1B-82FF-4E73-B689-B6611FFDE65B@all-auctions.com> References: <0057DD1B-82FF-4E73-B689-B6611FFDE65B@all-auctions.com> Message-ID: <06C9B6A4-F516-453C-B484-F619123C2D05@canelasoftware.com> Thanks Rick, What I ended up trying is this: on inputTextChanged, I get the mobile field value, strip out any non numeric characters, and the set the text of the field to the new value. This unexpectedly works without first seeing the character in the field. - E On Jan 7, 2015, at 3:53 PM, Rick Harrison wrote: > Hi Eric, > > Users may type anything they want into a field, and it is up to > the programmer to make sure that the type of data is accepted > (or valid) if possible. Use a text field for the input, and > then process the text to see if it is valid numeric data. If so, you > are good, if not, you have to tell them they didn?t enter numeric > data and to try again. > > The only other way I can think of is you would have to make up > some other kind of control similar to a date picker where only > numeric values can be scrolled to and selected by clicking on them, > kind of like making your own keypad control. > > So the answer to your question is most probably no. > > Cheers and good luck! > > Rick > > >> On Jan 7, 2015, at 6:18 PM, Eric Corbett wrote: >> >> Howdy, >> >> Any was to restrict input to numbers only without using the numbers keyboard or replacing non numeric numbers after the fact for a mobile input control? >> >> Thanks, >> >> - Eric >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From prothero at earthednet.org Wed Jan 7 19:13:27 2015 From: prothero at earthednet.org (William Prothero) Date: Wed, 7 Jan 2015 16:13:27 -0800 Subject: Playing Flash Video crashes revbrowserCEF In-Reply-To: References: Message-ID: <9351BF34-B3FD-481E-9E24-54A2C226C6CB@earthednet.org> Folks: Looks like, for now, my only option is to store the movie as an mp4 and put it on some server that supports that format. I didn?t want to serve all of that video on my server, but I may have to. Regards, Bill > On Jan 7, 2015, at 12:49 PM, William Prothero wrote: > > Folks: > I?m trying to play a YouTube move in the rev browser. I use revBrowserOpenCEF. The code is: > > on openBrowser > put the windowID of this stack into tWinID > put revBrowserOpenCEF(tWinID,"http://earthednet.org/ptExplorer/Cover.html") into sBrowserID > revBrowserSet sBrowserID,"showborder","true" > revBrowserSet sBrowserID, "rect",rect of grc "browserRect" > end openBrowser > > on closeBrowser > put revBrowserInstances() into tInstances > if tInstances is not empty then > revBrowserClose sBrowserID > end if > end closeBrowser > > This crashes LiveCode 7.0.1, as well as 7.0.1 (Rc2) when I try to play a Flash movie. This is on Mac OS10.10.1. The movie plays, but livecode won?t quit and seems to lock up or crash. > > Before I submit a bug report, I wonder if anybody else has seen this, or if I am doing something wrong. > > Note: using the older browser: ?not the CEF one? Mac doesn?t crash, but the movie is not displayed at the correct size in Windows, and won?t display at all in Windows 7 64 bit. > > Regards, > Bill > > William A. Prothero > http://es.earthednet.org/ > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From lan.kc.macmail at gmail.com Wed Jan 7 19:15:24 2015 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Thu, 8 Jan 2015 08:15:24 +0800 Subject: iconGravity In-Reply-To: <7F7F8FD6-A46D-4DDB-96A2-4FD1580BDCDC@byu.edu> References: <76E0DDBC-6679-4BBE-B874-06C5DD10EFA9@iotecdigital.com> <9363D1F2-CF04-493A-9EE6-F77A76B3D297@byu.edu> <54ADABFD.7090409@hyperactivesw.com> <7F7F8FD6-A46D-4DDB-96A2-4FD1580BDCDC@byu.edu> Message-ID: I can't seem to find this in the Object Inspector, is it only available via script? If so, maybe a QCC entry to have it added to the Object Inspector otherwise this is sure to remain a hidden gem. On Thu, Jan 8, 2015 at 7:05 AM, Devin Asay wrote: > > On Jan 7, 2015, at 2:58 PM, J. Landman Gay > wrote: > > > On 1/7/2015 2:55 PM, Devin Asay wrote: > >> This finally allows us to position button label text on top of icon > images! > > > > Yes, but you have to wonder about the mindset of the engineer who > decided this was "gravity" instead of "position". I'm afraid if I use this > property all my icons will suddenly become very serious. > > Wow, that?s heavy. > > D > > Devin Asay > Office of Digital Humanities > Brigham Young University > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From prothero at earthednet.org Wed Jan 7 20:33:14 2015 From: prothero at earthednet.org (William Prothero) Date: Wed, 7 Jan 2015 17:33:14 -0800 Subject: Snapshot working poorly in Windows, crappy results In-Reply-To: <90D4A201-B10A-4595-8889-547CF41DB9C2@verizon.net> References: <90D4A201-B10A-4595-8889-547CF41DB9C2@verizon.net> Message-ID: <0775D97E-A6D0-4691-B559-9438CE2F0ABA@earthednet.org> Colin; On second thought, I think this is a bug, or at least an incomplete implementation of the snapshot command. The snapshot should look like the image that it?s capturing, when displayed on the same monitor and system. After all, the screen gamma would affect the displayed and captured images the same. It?s odd that it looks the same in the 64bit version of Windows 7, but not in the 32bit version, and it?s probably something where the display settings are different. Unless I get some other feedback on this, I?ll report it as a bug. Regards, Bill > On Jan 7, 2015, at 3:54 PM, Colin Holgate wrote: > > Try setting the screengamma value, say to 2.2. > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From prothero at earthednet.org Wed Jan 7 20:34:39 2015 From: prothero at earthednet.org (William Prothero) Date: Wed, 7 Jan 2015 17:34:39 -0800 Subject: Snapshot working poorly in Windows, crappy results In-Reply-To: <90D4A201-B10A-4595-8889-547CF41DB9C2@verizon.net> References: <90D4A201-B10A-4595-8889-547CF41DB9C2@verizon.net> Message-ID: <55224924-6449-446F-957F-5D9139FEF1E8@earthednet.org> Colin; On second thought, I think this is a bug, or at least an incomplete implementation of the snapshot command. The snapshot should look like the image that it?s capturing, when displayed on the same monitor and system. After all, the screen gamma would affect the displayed and captured images the same. It?s odd that it looks the same in the 64bit version of Windows 7, but not in the 32bit version, and it?s probably something where the display settings are different. Unless I get some other feedback on this, I?ll report it as a bug. Regards, Bill > On Jan 7, 2015, at 3:54 PM, Colin Holgate wrote: > > Try setting the screengamma value, say to 2.2. > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From prothero at earthednet.org Wed Jan 7 20:37:38 2015 From: prothero at earthednet.org (William Prothero) Date: Wed, 7 Jan 2015 17:37:38 -0800 Subject: Snapshot working poorly in Windows, crappy results In-Reply-To: References: Message-ID: Peter: I tried that and it made no difference. Since I?m not exporting it to a file, but to another image, I wouldn?t expect it to. Best, Bill > On Jan 7, 2015, at 3:45 PM, Peter Haworth wrote: > > On Wed, Jan 7, 2015 at 2:51 PM, William Prothero > wrote: > >> export snapshot from rect snapRect to image "mapSnap" > > > Hi Bill, > I'm no Windows expert either but you might try adding "as xxx" to the end > of your export command to specify an image type. The dictionary says the > default is PBM, PGM, or PPM and I've never used any of those formats so > other options may work better. > > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pete at lcsql.com Wed Jan 7 20:39:27 2015 From: pete at lcsql.com (Peter Haworth) Date: Wed, 7 Jan 2015 17:39:27 -0800 Subject: Geometry Manager Message-ID: I'm working on someone else's stack that uses GM. Is there some way to disable it so I can resize the stack without all the controls on it resizing? Other than removing all the GM settings for all the controls. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From coiin at verizon.net Wed Jan 7 20:40:15 2015 From: coiin at verizon.net (Colin Holgate) Date: Wed, 07 Jan 2015 20:40:15 -0500 Subject: Snapshot working poorly in Windows, crappy results In-Reply-To: <0775D97E-A6D0-4691-B559-9438CE2F0ABA@earthednet.org> References: <90D4A201-B10A-4595-8889-547CF41DB9C2@verizon.net> <0775D97E-A6D0-4691-B559-9438CE2F0ABA@earthednet.org> Message-ID: What was your first thought, I didn?t see a previous reply to me. Not sure why it?s correct in 64 bit systems, but my thinking is that screengamma controls how PNGs are shown, and a snapshot isn?t a PNG, it?s just the raw data. Messing with the screengamma value might have made the PNG version look like the final snapshot, which would have been interesting information to know. > On Jan 7, 2015, at 8:33 PM, William Prothero wrote: > > Colin; > >On second thought, I think this is a bug, or at least an incomplete implementation of the snapshot command. From coiin at verizon.net Wed Jan 7 20:43:57 2015 From: coiin at verizon.net (Colin Holgate) Date: Wed, 07 Jan 2015 20:43:57 -0500 Subject: Snapshot working poorly in Windows, crappy results In-Reply-To: References: Message-ID: <80ACFE29-12B7-4675-86E1-CB5759B702D7@verizon.net> There?s this tip in the screen gamma help, which could affect things: To force LiveCode to re-decompress a PNG image without leaving the card, put the image into itself: set the screenGamma to 2.2 put image ?Test PNG? into image ?Test PNG? > On Jan 7, 2015, at 8:37 PM, William Prothero wrote: > > Peter: > I tried that and it made no difference. Since I?m not exporting it to a file, but to another image, I wouldn?t expect it to. From paul at livecode.org Wed Jan 7 20:50:55 2015 From: paul at livecode.org (Paul Hibbert) Date: Wed, 7 Jan 2015 17:50:55 -0800 Subject: Geometry Manager In-Reply-To: References: Message-ID: <217E16D3-80B2-4C02-8031-B6A72C3D1008@livecode.org> Pete, You can turn off messages, or temporarily add an empty resizeStack handler to the top of the stack script. on resizeStack -- do nothing! end resizeStack Paul > On Jan 7, 2015, at 5:39 PM, Peter Haworth wrote: > > I'm working on someone else's stack that uses GM. Is there some way to > disable it so I can resize the stack without all the controls on it > resizing? Other than removing all the GM settings for all the controls. > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pete at lcsql.com Wed Jan 7 21:55:01 2015 From: pete at lcsql.com (Peter Haworth) Date: Wed, 7 Jan 2015 18:55:01 -0800 Subject: Geometry Manager In-Reply-To: <217E16D3-80B2-4C02-8031-B6A72C3D1008@livecode.org> References: <217E16D3-80B2-4C02-8031-B6A72C3D1008@livecode.org> Message-ID: Ah yes, should have thought of that. Was looking for an on/off checkbox in the GM. Thanks Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Wed, Jan 7, 2015 at 5:50 PM, Paul Hibbert wrote: > Pete, > > You can turn off messages, or temporarily add an empty resizeStack handler > to the top of the stack script. > > on resizeStack > -- do nothing! > end resizeStack > > Paul > > > On Jan 7, 2015, at 5:39 PM, Peter Haworth wrote: > > > > I'm working on someone else's stack that uses GM. Is there some way to > > disable it so I can resize the stack without all the controls on it > > resizing? Other than removing all the GM settings for all the controls. > > Pete > > lcSQL Software > > Home of lcStackBrowser and > > SQLiteAdmin > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From prothero at earthednet.org Wed Jan 7 22:09:03 2015 From: prothero at earthednet.org (William Prothero) Date: Wed, 7 Jan 2015 19:09:03 -0800 Subject: Snapshot working poorly in Windows, crappy results In-Reply-To: <80ACFE29-12B7-4675-86E1-CB5759B702D7@verizon.net> References: <80ACFE29-12B7-4675-86E1-CB5759B702D7@verizon.net> Message-ID: <7FA8B767-3937-4C44-AE9E-AE03465625D2@earthednet.org> Colin: I tried doing that and it didn?t change anything. Oddly, the image seems to be slightly blurred too. Black boundaries on boxes (in my test app) get larger. Bill > On Jan 7, 2015, at 5:43 PM, Colin Holgate wrote: > > There?s this tip in the screen gamma help, which could affect things: > > To force LiveCode to re-decompress a PNG image without leaving the card, put the image into itself: > > set the screenGamma to 2.2 > put image ?Test PNG? into image ?Test PNG? > > >> On Jan 7, 2015, at 8:37 PM, William Prothero wrote: >> >> Peter: >> I tried that and it made no difference. Since I?m not exporting it to a file, but to another image, I wouldn?t expect it to. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From mwieder at ahsoftware.net Wed Jan 7 22:42:05 2015 From: mwieder at ahsoftware.net (Mark Wieder) Date: Wed, 7 Jan 2015 19:42:05 -0800 Subject: replaceText problem In-Reply-To: <61154222-CB29-4AA6-9618-50B41F577DF6@iotecdigital.com> References: <54A764CE.8000108@hyperactivesw.com> <54A836BD.4060506@hyperactivesw.com> <0AB6C359-D3A2-41B9-972E-B8062B60F1D8@gmail.com> <54A83F7F.9010407@hyperactivesw.com> <671455195905.20150103155220@ahsoftware.net> <54A8D562.5000702@hyperactivesw.com> <536006286.20150106195821@ahsoftware.net> <54ACB7DB.1060906@hyperactivesw.com> <61154222-CB29-4AA6-9618-50B41F577DF6@iotecdigital.com> Message-ID: <36956999.20150107194205@ahsoftware.net> Bob- Wednesday, January 7, 2015, 12:58:48 PM, you wrote: > The Jacqueline Landman Gay of the future uses them extensively in > her Time Travel Stack. If you don?t figure it out soon you will > never find your socks. I have enough trouble finding them as it is. -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From mwieder at ahsoftware.net Wed Jan 7 22:43:27 2015 From: mwieder at ahsoftware.net (Mark Wieder) Date: Wed, 7 Jan 2015 19:43:27 -0800 Subject: replaceText problem In-Reply-To: <54ACB7DB.1060906@hyperactivesw.com> References: <54A764CE.8000108@hyperactivesw.com> <54A836BD.4060506@hyperactivesw.com> <0AB6C359-D3A2-41B9-972E-B8062B60F1D8@gmail.com> <54A83F7F.9010407@hyperactivesw.com> <671455195905.20150103155220@ahsoftware.net> <54A8D562.5000702@hyperactivesw.com> <536006286.20150106195821@ahsoftware.net> <54ACB7DB.1060906@hyperactivesw.com> Message-ID: <1541026946.20150107194327@ahsoftware.net> Jacque- Tuesday, January 6, 2015, 8:36:43 PM, you wrote: > On 1/6/2015 9:58 PM, Mark Wieder wrote: >> Then in your traceBreak function you can parse it and do what you >> like. > No, no. In YOUR tracebreak function. I don't mess around in there, it's > too scary. You're the brave daredevil. Well, whatever. The point is that you can now put in a parameter and it has no side effects. -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From mwieder at ahsoftware.net Wed Jan 7 22:53:11 2015 From: mwieder at ahsoftware.net (Mark Wieder) Date: Wed, 7 Jan 2015 19:53:11 -0800 Subject: Licensing In-Reply-To: References: <54AD51F4.90403@fourthworld.com> Message-ID: <1763283698.20150107195311@ahsoftware.net> Pete- Wednesday, January 7, 2015, 9:30:20 AM, you wrote: > In fact, I remember discussions on the list before the Community Edition > days about the need for tools developers to provide an option to purchase > the source code so the tools users felt comfortable in being able to > support the products they developed with them. Times change. Part of my commitment to the Community Edition support was to remove the small yet clever hack that protected my plugins yet still revealed all the relevant code. With that removed the entire code is open, the only drawback for me is the inability to provide a trial version. -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From mwieder at ahsoftware.net Wed Jan 7 23:17:34 2015 From: mwieder at ahsoftware.net (Mark Wieder) Date: Wed, 7 Jan 2015 20:17:34 -0800 Subject: Licensing In-Reply-To: References: <54AD51F4.90403@fourthworld.com> Message-ID: <72110309.20150107201734@ahsoftware.net> Kevin- Wednesday, January 7, 2015, 9:43:04 AM, you wrote: > It is worth pointing out that the step here, not possible in these other > tools, involved assigning that plugin a different license using the > Commercial edition of the software. If you are purely in the Community > ecosystem and want to release a plugin, widget or library, that does have > to be GPL (http://www.gnu.org/licenses/gpl-faq.html#GPLAndPlugins) It took me a couple of iterations through your previous email before I got that point. That's an interesting distinction, and one that didn't occur to me. However, I'm not sure the linked article section is really relevant. While it's true that LC doesn't fork or exec plugin stacks, I don't think the next clause about dynamically linking applies either. That's more applicable to binary executables that link to binary external libraries. I would hesitate to say that this section applies to scripting languages. -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From gcanyon at gmail.com Thu Jan 8 02:10:56 2015 From: gcanyon at gmail.com (Geoff Canyon) Date: Thu, 8 Jan 2015 01:10:56 -0600 Subject: replaceText problem In-Reply-To: <54AC2C49.6090108@hyperactivesw.com> References: <54A764CE.8000108@hyperactivesw.com> <54A836BD.4060506@hyperactivesw.com> <54A83F17.4040309@hyperactivesw.com> <54AC2C49.6090108@hyperactivesw.com> Message-ID: On Tue, Jan 6, 2015 at 12:41 PM, J. Landman Gay wrote: > I know of one person who uses it in scripts. I find that difficult to read > and debug. > Unless you're already thinking of me, you know two. I will *very* occasionally do something like: put 10 into X; put 20 into Y From admin at FlexibleLearning.com Thu Jan 8 06:30:23 2015 From: admin at FlexibleLearning.com (FlexibleLearning.com) Date: Thu, 8 Jan 2015 11:30:23 -0000 Subject: [ATT] Derek Henderson, South Africa Message-ID: <002201d02b36$7ef2bcd0$7cd83670$@FlexibleLearning.com> Derek, I have tried twice to reply to your email. Each one has bounced back with "Recipient address rejected: User unknown in local recipient table". I am assuming you want to use flcDatePicker without the supplied flcDatePicker Utility stack... You can "start using stack flcDatePicker" if the stackfile is visible to the engine. You may need to set the defaultFolder first. This has nothing to do with flcDatePicker... it is how the Livecode engine works. One way is to place the flcDatePicker file in the same folder as your own work, like this: Put the defaultFolder into tDefDir Set the itemDel to "/" Set the defaultFolder to item 1 to -2 of the effective filename of this stack Start using stack "flcDatePicker" Set the defaultFolder to tDefDir I hope this helps. Hugh Senior FLCo www.FlexibleLearning.com/datepicker From ebeugelaar at gmail.com Thu Jan 8 09:32:17 2015 From: ebeugelaar at gmail.com (Erik Beugelaar) Date: Thu, 08 Jan 2015 15:32:17 +0100 Subject: Code repository In-Reply-To: <1420508832043.84c4507e@Nodemailer> References: <1420508832043.84c4507e@Nodemailer> Message-ID: https://github.com/RunRev/LiveCode is the master. On 06/01/15 02:47, "Ethan Lish" wrote: >What LiveCode and LiveCode related code repositories are publicly open ? > >I see these on GitHub: >https://github.com/runrevmichael/livecode.git >https://github.com/runrevali/livecode.git >https://github.com/runrevfraser/livecode.git >https://github.com/runrevsebastien/livecode.git >https://github.com/runrevpanos/livecode.git >https://github.com/runrevmark/livecode.git >Thanks > >Ethan > >? >Ethan at Lish.net240.876.1389 >_______________________________________________ >use-livecode mailing list >use-livecode at lists.runrev.com >Please visit this url to subscribe, unsubscribe and manage your >subscription preferences: >http://lists.runrev.com/mailman/listinfo/use-livecode From mark at sorcery-ltd.co.uk Thu Jan 8 10:46:14 2015 From: mark at sorcery-ltd.co.uk (Mark Wilcox) Date: Thu, 08 Jan 2015 07:46:14 -0800 Subject: Commercial Licensing In-Reply-To: <14C15E00-DCFD-4098-9FE9-0A0FE734A179@mac.com> References: <14C15E00-DCFD-4098-9FE9-0A0FE734A179@mac.com> Message-ID: <1420731974.2553595.211271805.6F28C032@webmail.messagingengine.com> You might want to look at the standard license terms Apple applies to apps on the App Stores: https://www.apple.com/legal/internet-services/itunes/appstore/dev/stdeula/ It covers most of what you're asking except it offers no warranty at all, rather than a limited one. It also covers some things you might not have thought of, while being relatively short as licenses go. > In the UK, AFAIK, there is no particular reason not to simply sell as > an individual, always provided one can limit one?s liability through a > contract. You can always disclaim liability in the license agreement but that doesn't guarantee a court won't decide you're liable anyway. Depending on the nature of the software you're selling and the risk of potential liability you perceive you might want to either use a limited company or get some product liability insurance. For most software I wouldn't be bothered though. Mark -- Mark Wilcox mark at sorcery-ltd.co.uk On Wed, Jan 7, 2015, at 04:04 AM, Graham Samuel wrote: > Hi all - this may be naive, but I don?t recall a recent discussion on > this list and I don?t know where to turn. > > The recent discussion on licensing centering round the GPL and the > different editions of LC is interesting, but I rather want to extend > it to get some advice about simple commercial licensing. > > All the software I?ve ever written for sale to date has been published > by a separate publisher: I have retained the copyright and received > royalties, so I have not worried overmuch about the terms and > conditions which the ultimate users have to sign up to. That and the > fact that my publishers are very very old friends, so there is a very > high level of trust between us, means that my own contractual position > has never worried me. > > Now however I?m looking at a different situation, which is publishing > something on my own account. The ?something? is potentially a number > of programs (OK, apps if you must) made with LC Commercial versions, > for which I expect to be paid. I also have a situation where I am the > developer, not the copyright owner, and where the copyright owner has > the same sort of ambition to sell his product in the open market. We > are both clueless about what kind of license agreement to include in > our products. We could both be using the same contract (since I?m > trying to advise him) except that I?m based in the UK (or at any rate > the European Union) and he?s based in the US. In both cases, what is > needed is as simple a contract as possible which provides a very > limited warranty, bans unreasonable copying and denies all forms of > consequential liability. > > It seems to me that there must be pro-forma contracts out there, > applicable to sole traders (this is UK term, not sure what it would be > in the US), but I don?t know how to find them. Furthermore I notice > that several active contributors to this list sell the products > through a company, and not as individuals. In the UK, AFAIK, there is > no particular reason not to simply sell as an individual, always > provided one can limit one?s liability through a contract. In the US, > it may be different. > > Is anyone out there willing to discuss this and maybe discuss the > steps they went through, the decisions they made, and how they got the > wording of their license terms? > > TIA for any further info > > Graham > _______________________________________________ > use-livecode mailing list use-livecode at lists.runrev.com Please visit > this url to subscribe, unsubscribe and manage your subscription > preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From bonnmike at gmail.com Thu Jan 8 11:07:00 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Thu, 8 Jan 2015 09:07:00 -0700 Subject: Code repository In-Reply-To: References: <1420508832043.84c4507e@Nodemailer> Message-ID: I don't suppose there is a step by step anywhere that walks a person through the steps to build a full livecode community distribution? Starting at the very very beginning, how to download the source, what prerequisites need to be installed.. I'd be trying to do so on Linux or similar (if I can get it going on linux, I'd also like to try and get it built for openindiana) On Thu, Jan 8, 2015 at 7:32 AM, Erik Beugelaar wrote: > https://github.com/RunRev/LiveCode is the master. > > > > On 06/01/15 02:47, "Ethan Lish" wrote: > > >What LiveCode and LiveCode related code repositories are publicly open ? > > > >I see these on GitHub: > >https://github.com/runrevmichael/livecode.git > >https://github.com/runrevali/livecode.git > >https://github.com/runrevfraser/livecode.git > >https://github.com/runrevsebastien/livecode.git > >https://github.com/runrevpanos/livecode.git > >https://github.com/runrevmark/livecode.git > >Thanks > > > >Ethan > > > >? > >Ethan at Lish.net240.876.1389 > >_______________________________________________ > >use-livecode mailing list > >use-livecode at lists.runrev.com > >Please visit this url to subscribe, unsubscribe and manage your > >subscription preferences: > >http://lists.runrev.com/mailman/listinfo/use-livecode > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dochawk at gmail.com Thu Jan 8 11:41:13 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Thu, 8 Jan 2015 08:41:13 -0800 Subject: Crash-a-lot just became critical Message-ID: I've been living through the frequent random crashes, believing they are an IDE issue. Apparently, they are not. I just built a standalone, and it went down in the same way in a matter of seconds. If I am unable to get all of the 7-isms I've used out of the code in the next hour or so and rebuild with 5, this may cost me a thousand dollar a year paying customer. There really, REALLY needs a way to run livecode in a debugger to catch these crashes, and it is simply unacceptable that a supposedly commercial product has unexplained frequent crashes. It is also unacceptable to expect me to turn over source code with over $100k of development time to be able to try to track down these crashes. I realize that not all of us are seeing this from 6.7 and 7.0.1, but this is simply unacceptable. And this far along, there should not even *BE* an issue of livecode "quitting unexpectedly" rather than creating some kind of log. To call me angry and unhappy at the moment would be an understatement, and I don't give a damn if this hurts an engineer's feelings! -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From dochawk at gmail.com Thu Jan 8 11:48:52 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Thu, 8 Jan 2015 08:48:52 -0800 Subject: Crash-a-lot just became critical In-Reply-To: References: Message-ID: FIled as bug 14350 -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From bobsneidar at iotecdigital.com Thu Jan 8 11:51:29 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 8 Jan 2015 16:51:29 +0000 Subject: Project Browser vs App Browser (was "script scope variables inexplicably becoming unset") In-Reply-To: <54ADAD4D.5070803@hyperactivesw.com> References: <37222805-C7E5-4C08-83FB-2856742B885D@livecode.org> <54A835CB.2010709@hyperactivesw.com> <82EEEBB3-215B-4AD3-AB8F-AB484BD8F3E6@iotecdigital.com> <54ADAD4D.5070803@hyperactivesw.com> Message-ID: <684C8DFA-4078-4012-84CA-514BA3C8ECA2@iotecdigital.com> OHH EM GEE! I knew something that Jacque didn?t? Well that was fun, although short lived. ;-) Bob S > On Jan 7, 2015, at 14:03 , J. Landman Gay wrote: > > On 1/7/2015 3:02 PM, Bob Sneidar wrote: >> I?ve been using command-[ and ] to move controls up and down one at a >> time whilst watching where they end up in the App Browser. > > Well I'll be damned. I had no idea you could do that. I don't think I've ever seen a reference to that feature. > > Thanks! > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Thu Jan 8 11:54:10 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 8 Jan 2015 16:54:10 +0000 Subject: iconGravity In-Reply-To: References: <76E0DDBC-6679-4BBE-B874-06C5DD10EFA9@iotecdigital.com> <9363D1F2-CF04-493A-9EE6-F77A76B3D297@byu.edu> <54ADABFD.7090409@hyperactivesw.com> <7F7F8FD6-A46D-4DDB-96A2-4FD1580BDCDC@byu.edu> Message-ID: There are a TON of properties you don?t see in the Object Inspector. Bob S > On Jan 7, 2015, at 16:15 , Kay C Lan wrote: > > I can't seem to find this in the Object Inspector, is it only available via > script? If so, maybe a QCC entry to have it added to the Object Inspector > otherwise this is sure to remain a hidden gem. > > On Thu, Jan 8, 2015 at 7:05 AM, Devin Asay wrote: From ambassador at fourthworld.com Thu Jan 8 12:51:35 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 08 Jan 2015 09:51:35 -0800 Subject: iconGravity In-Reply-To: References: Message-ID: <54AEC3A7.7090507@fourthworld.com> Bob Sneidar wrote: > There are a TON of properties you don?t see in the Object Inspector. My prop sheet plugin uses "the properties", so iconGravity and most others are included there: -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From pete at lcsql.com Thu Jan 8 13:14:46 2015 From: pete at lcsql.com (Peter Haworth) Date: Thu, 8 Jan 2015 10:14:46 -0800 Subject: iconGravity In-Reply-To: <54AEC3A7.7090507@fourthworld.com> References: <54AEC3A7.7090507@fourthworld.com> Message-ID: As you probably know, the properties now returns a subset of the actual properties of an object since a few releases back. I believe it is just the properties that are required to recreate the object. I've taken to using a combination of the properties and a list I get from the sqlite database created by Bjornke's BvG Docu plugin to get a complete list. That also spits out a list of properties that aren't in the dictionary which I dutifully pass on to RunRev via the QCC Don't recall the reference offhand but I posted a QCC enhancement request for a way to get all the properties again, perhaps by using "the effective properties". Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Thu, Jan 8, 2015 at 9:51 AM, Richard Gaskin wrote: > Bob Sneidar wrote: > > > There are a TON of properties you don?t see in the Object Inspector. > > My prop sheet plugin uses "the properties", so iconGravity and most others > are included there: > > > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jacque at hyperactivesw.com Thu Jan 8 13:21:03 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 08 Jan 2015 12:21:03 -0600 Subject: Crash-a-lot just became critical In-Reply-To: References: Message-ID: <54AECA8F.30002@hyperactivesw.com> On 1/8/2015 10:41 AM, Dr. Hawkins wrote: > It is also unacceptable to expect me to turn over source code with over > $100k of development time to be able to try to track down these crashes. I understand. But they can't fix it unless they can reproduce it. So you can either trust them or live with it until/unless someone else has the same issue and submits an example. The team is very keen to fix these issues, and crashes take top priority, but you've sort of tied their hands. I can verify first-hand that your work will remain confidential, and all files will be deleted after they fix the problem. They are also willing to sign any type of NDA you require. I think your only other alternative is to download the source code from github, set up the development environment, and do the trace yourself. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bobsneidar at iotecdigital.com Thu Jan 8 13:35:48 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 8 Jan 2015 18:35:48 +0000 Subject: iconGravity In-Reply-To: References: <54AEC3A7.7090507@fourthworld.com> Message-ID: <8E5276B9-0687-46FB-80BA-C36CD884312C@iotecdigital.com> I think the command should be "all the damned properties? Bob S On Jan 8, 2015, at 10:14 , Peter Haworth > wrote: Don't recall the reference offhand but I posted a QCC enhancement request for a way to get all the properties again, perhaps by using "the effective properties". Pete From bobsneidar at iotecdigital.com Thu Jan 8 14:00:55 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 8 Jan 2015 19:00:55 +0000 Subject: replaceText problem In-Reply-To: <54ADAC64.40009@hyperactivesw.com> References: <54A764CE.8000108@hyperactivesw.com> <54A836BD.4060506@hyperactivesw.com> <0AB6C359-D3A2-41B9-972E-B8062B60F1D8@gmail.com> <54A83F7F.9010407@hyperactivesw.com> <671455195905.20150103155220@ahsoftware.net> <54A8D562.5000702@hyperactivesw.com> <536006286.20150106195821@ahsoftware.net> <54ACB7DB.1060906@hyperactivesw.com> <61154222-CB29-4AA6-9618-50B41F577DF6@iotecdigital.com> <54ADAC64.40009@hyperactivesw.com> Message-ID: oookaay? so I?m beginning to see why I have a sock with embroidered flowers on it? Bob S On Jan 7, 2015, at 14:00 , J. Landman Gay > wrote: But the last time I tried it, I found *your* socks. On 1/7/2015 2:58 PM, Bob Sneidar wrote: The Jacqueline Landman Gay of the future uses them extensively in her Time Travel Stack. If you don?t figure it out soon you will never find your socks. Bob S From bobsneidar at iotecdigital.com Thu Jan 8 14:02:52 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 8 Jan 2015 19:02:52 +0000 Subject: [ATT] Derek Henderson, South Africa In-Reply-To: <002201d02b36$7ef2bcd0$7cd83670$@FlexibleLearning.com> References: <002201d02b36$7ef2bcd0$7cd83670$@FlexibleLearning.com> Message-ID: <7C1248BF-EA79-4006-87AC-37938D3484CD@iotecdigital.com> I always put any stacks I use in the Stack Files section of the Stack Properties. That way I can put them anywhere I want in the file system. Bob S On Jan 8, 2015, at 03:30 , FlexibleLearning.com > wrote: You can "start using stack flcDatePicker" if the stackfile is visible to the engine. You may need to set the defaultFolder first. This has nothing to do with flcDatePicker... it is how the Livecode engine works. From bobsneidar at iotecdigital.com Thu Jan 8 14:05:32 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 8 Jan 2015 19:05:32 +0000 Subject: Crash-a-lot just became critical In-Reply-To: References: Message-ID: <9F875F28-BD01-4B4E-89D7-82E2C905F590@iotecdigital.com> You should tell all this to the Engineers, not to the list. No one here caused this or can do anything about it. Bob S On Jan 8, 2015, at 08:41 , Dr. Hawkins > wrote: I've been living through the frequent random crashes, believing they are an IDE issue. Apparently, they are not. I just built a standalone, and it went down in the same way in a matter of seconds. If I am unable to get all of the 7-isms I've used out of the code in the next hour or so and rebuild with 5, this may cost me a thousand dollar a year paying customer. There really, REALLY needs a way to run livecode in a debugger to catch these crashes, and it is simply unacceptable that a supposedly commercial product has unexplained frequent crashes. It is also unacceptable to expect me to turn over source code with over $100k of development time to be able to try to track down these crashes. I realize that not all of us are seeing this from 6.7 and 7.0.1, but this is simply unacceptable. And this far along, there should not even *BE* an issue of livecode "quitting unexpectedly" rather than creating some kind of log. To call me angry and unhappy at the moment would be an understatement, and I don't give a damn if this hurts an engineer's feelings! -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From livfoss at mac.com Thu Jan 8 14:30:31 2015 From: livfoss at mac.com (Graham Samuel) Date: Thu, 08 Jan 2015 20:30:31 +0100 Subject: Commercial Licensing In-Reply-To: <1420731974.2553595.211271805.6F28C032@webmail.messagingengine.com> References: <14C15E00-DCFD-4098-9FE9-0A0FE734A179@mac.com> <1420731974.2553595.211271805.6F28C032@webmail.messagingengine.com> Message-ID: <621C515C-5E90-4E1E-84C0-66ADCB60194D@mac.com> Thanks Mark - that's helpful. I will ask my US colleague to see what he thinks of the Apple ULA, at least as a first step. Graham > On 8 Jan 2015, at 16:46, Mark Wilcox wrote: > > > You might want to look at the standard license terms Apple applies to > apps on the App Stores: > https://www.apple.com/legal/internet-services/itunes/appstore/dev/stdeula/ > It covers most of what you're asking except it offers no warranty at > all, rather than a limited one. It also covers some things you might not > have thought of, while being relatively short as licenses go. > >> In the UK, AFAIK, there is no particular reason not to simply sell as >> an individual, always provided one can limit one?s liability through a >> contract. > You can always disclaim liability in the license agreement but that > doesn't guarantee a court won't decide you're liable anyway. Depending > on the nature of the software you're selling and the risk of potential > liability you perceive you might want to either use a limited company or > get some product liability insurance. For most software I wouldn't be > bothered though. > > Mark > > -- From pete at lcsql.com Thu Jan 8 15:05:21 2015 From: pete at lcsql.com (Peter Haworth) Date: Thu, 8 Jan 2015 12:05:21 -0800 Subject: RegEx Builder Message-ID: I've modified the RegEx Builder plugin that comes with Livecode. It handles the new filter syntax, creates capture groups, has a switch for multiline mode, and includes a few more regex syntax options However, it's marked as copyright Frederic Rinaldi so not sure how to proceed. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From stephenREVOLUTION2 at barncard.com Thu Jan 8 15:28:09 2015 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Thu, 8 Jan 2015 12:28:09 -0800 Subject: RegEx Builder In-Reply-To: References: Message-ID: On Thu, Jan 8, 2015 at 12:05 PM, Peter Haworth wrote: > However, it's marked as copyright Frederic Rinaldi so not sure how to > proceed. > The great Rinaldi still works for Apple and is not that hard to find. He's on LinkedIN. He'd probably say go ahead. *--* *Stephen Barncard - San Francisco Ca. USA - Deeds Not Words* From userev at canelasoftware.com Thu Jan 8 15:44:27 2015 From: userev at canelasoftware.com (Mark Talluto) Date: Thu, 8 Jan 2015 12:44:27 -0800 Subject: LiveCode 7.0.1: Move is smooth! Message-ID: <3009E076-BBD8-4B11-830A-265D7898C164@canelasoftware.com> Hello. Just wanted to make a public statement about the move command on 7.0.1. We made a really simple game called Dropper: http://livecloud.io/dropper-game-updated-source-and-standalone/ The standalone engine we used in the last update was around 6.1.3. We just tested the same game, no code changes in 7.0.1. The ball drops really smoothly now. In previous engines, the ball dropped with a jerky like movement. We will update the standalones on our site later today. You can download the source and try it on various versions of LC and see for yourself. Nice work on that aspect of the engine LiveCode team! Best regards, Mark Talluto livecloud.io canelasoftware.com From pete at lcsql.com Thu Jan 8 15:59:38 2015 From: pete at lcsql.com (Peter Haworth) Date: Thu, 8 Jan 2015 12:59:38 -0800 Subject: RegEx Builder In-Reply-To: References: Message-ID: Thanks Stephen, I've emailed him. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Thu, Jan 8, 2015 at 12:28 PM, stephen barncard < stephenREVOLUTION2 at barncard.com> wrote: > On Thu, Jan 8, 2015 at 12:05 PM, Peter Haworth wrote: > > > However, it's marked as copyright Frederic Rinaldi so not sure how to > > proceed. > > > > The great Rinaldi still works for Apple and is not that hard to find. He's > on LinkedIN. He'd probably say go ahead. > > *--* > *Stephen Barncard - San Francisco Ca. USA - Deeds Not Words* > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From coiin at verizon.net Thu Jan 8 16:11:11 2015 From: coiin at verizon.net (Colin Holgate) Date: Thu, 08 Jan 2015 16:11:11 -0500 Subject: Crash-a-lot just became critical In-Reply-To: <54AECA8F.30002@hyperactivesw.com> References: <54AECA8F.30002@hyperactivesw.com> Message-ID: <94DB42CE-661F-4D71-B059-61947F2BC307@verizon.net> Is it really the case that LiveCode does no logging to Console at all? That aside, would a screensharing session with Edinburgh have any value? Them watching it crash might lead to some ideas, without needing the source code. > On Jan 8, 2015, at 1:21 PM, J. Landman Gay wrote: > > On 1/8/2015 10:41 AM, Dr. Hawkins wrote: >> It is also unacceptable to expect me to turn over source code with over >> $100k of development time to be able to try to track down these crashes. > > I understand. But they can't fix it unless they can reproduce it. So you can either trust them or live with it until/unless someone else has the same issue and submits an example. The team is very keen to fix these issues, and crashes take top priority, but you've sort of tied their hands. > > I can verify first-hand that your work will remain confidential, and all files will be deleted after they fix the problem. They are also willing to sign any type of NDA you require. > > I think your only other alternative is to download the source code from github, set up the development environment, and do the trace yourself. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dochawk at gmail.com Thu Jan 8 16:50:34 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Thu, 8 Jan 2015 13:50:34 -0800 Subject: Crash-a-lot just became critical In-Reply-To: <94DB42CE-661F-4D71-B059-61947F2BC307@verizon.net> References: <54AECA8F.30002@hyperactivesw.com> <94DB42CE-661F-4D71-B059-61947F2BC307@verizon.net> Message-ID: On Thu, Jan 8, 2015 at 1:11 PM, Colin Holgate wrote: > Is it really the case that LiveCode does no logging to Console at all? > I'm not sure where those would go when launched from a GUI. But all I get is "application quit unexpectedly" > > That aside, would a screensharing session with Edinburgh have any value? > Them watching it crash might lead to some ideas, without needing the source > code. > I *think* I just got the id. I'm about to update the bug. It appears that it will, only sometimes and randomly, happen when referencing an object that doesn't exist in a stack that was opened as a palette. When I changed how the stack was opened (stack command instead of palette), normal errors were thrown. mouseEnter also seems to be involved. I'm stepping out on a limb, here, but the "randomness" may have to do with the order in which events are sent, or which elements were crosse between (button boundary, stack boundary). After doing this, I seem to only get a "normal" number of IDE crashes (now that I think of it, it's about like the frequency of the old shadow-variable bug biting, and that doesn't seem to be happening as much)--about every 10-30 minutes. I haven't crashed my standalone yet. There are an annoying number of apparently undocumented changes in the new engine with regard to message handling--I had apparently been relying on mouseEnter being sent to a stack itself, which 5.x does not do. I've seen and forgotten one or two more like that. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From ambassador at fourthworld.com Thu Jan 8 17:04:07 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 08 Jan 2015 14:04:07 -0800 Subject: Crash-a-lot just became critical In-Reply-To: References: Message-ID: <54AEFED7.4000207@fourthworld.com> Dr. Hawkins wrote: > I've been living through the frequent random crashes... Computers are deterministic systems: consistent inputs will yield consistent results. If something may appear to be random, it merely suggests we haven't found the recipe for reproducing it yet. All problems with computers can be resolved by identifying the differences between the working and non-working states. Your filing a bug report is helpful (#14350 for those wishing to help triage this), but the crash log may not be enough for the team to identify what went wrong. It might, though, and if so then we have nothing more to worry about. But if this issue is important to you (and it would seem that it is), you may be able to get what you want more easily by including in your bug report a description of what your program is doing when it crashes. If this is really important, you may consider adding some script logging to your stack so you can at least know the last handler that executed successfully. If you haven't yet played with the messageMessages property and the messageHandled message to make such a log, I can provide a simple script for you to log all handler calls to a text file. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From pete at lcsql.com Thu Jan 8 17:25:53 2015 From: pete at lcsql.com (Peter Haworth) Date: Thu, 8 Jan 2015 14:25:53 -0800 Subject: Crash-a-lot just became critical In-Reply-To: References: <54AECA8F.30002@hyperactivesw.com> <94DB42CE-661F-4D71-B059-61947F2BC307@verizon.net> Message-ID: On Thu, Jan 8, 2015 at 1:50 PM, Dr. Hawkins wrote: > It appears that it will, only sometimes and randomly, happen when > referencing an object that doesn't exist in a stack that was opened as a > palette. When I changed how the stack was opened (stack command instead of > palette), normal errors were thrown. mouseEnter also seems to be involved. > I've never seen that in a palette stack but it does happen in modal stacks. By which I mean that if there is a statement that causes a runtime error, you don't see the error, the stack processing stops and you usually can't get out of the stack without quitting LC. But that isn't a random happening, if there is an error it always happens. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From userev at canelasoftware.com Thu Jan 8 19:05:23 2015 From: userev at canelasoftware.com (Mark Talluto) Date: Thu, 8 Jan 2015 16:05:23 -0800 Subject: LiveCode 7.0.1: Move is smooth! In-Reply-To: <3009E076-BBD8-4B11-830A-265D7898C164@canelasoftware.com> References: <3009E076-BBD8-4B11-830A-265D7898C164@canelasoftware.com> Message-ID: <131439AC-8CE1-4005-9D3C-409899EF69C8@canelasoftware.com> On Jan 8, 2015, at 12:44 PM, Mark Talluto wrote: > Hello. > > Just wanted to make a public statement about the move command on 7.0.1. We made a really simple game called Dropper: http://livecloud.io/dropper-game-updated-source-and-standalone/ > The standalone engine we used in the last update was around 6.1.3. We just tested the same game, no code changes in 7.0.1. The ball drops really smoothly now. In previous engines, the ball dropped with a jerky like movement. > > We will update the standalones on our site later today. You can download the source and try it on various versions of LC and see for yourself. > > Nice work on that aspect of the engine LiveCode team! This feels weird replying to my own email. Had some response from this via direct email and thought I would make it even easier to see the difference. Here is a video for your enjoyment. https://www.youtube.com/watch?v=wjXHt8MqYNY Best regards, Mark Talluto livecloud.io canelasoftware.com From pete at lcsql.com Thu Jan 8 19:22:32 2015 From: pete at lcsql.com (Peter Haworth) Date: Thu, 8 Jan 2015 16:22:32 -0800 Subject: replaceText problem In-Reply-To: References: <54A764CE.8000108@hyperactivesw.com> Message-ID: On Tue, Jan 6, 2015 at 6:05 PM, Kay C Lan wrote: > LC uses the PCRE > implementation of regex. Yes there are different flavours of regex which is > why I like this online regex tester: > > https://regex101.com/#pcre > I've been using this site today to test out various examples while modifying the Regex Builder plugin and I think I have come across a bug in LC. The following regex works in the web site. It's also one of the examples in the RegExhibit program and, naturally, works there too. [the]{3}\s(\w+)\s.*?(?=;) The regex matches the first occurrence of the word "the" followed by a space followed by any number of words/spaces until a semicolon is found. Using matchText in LC 6.5.2 it fails with error 301 pattern error. If I remove "(?=;)", the error goes away but the match matches "the" and just the next word. Before I go to the QCC, any regex experts out there who can think why LC would flag an error on this? Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From bobsneidar at iotecdigital.com Thu Jan 8 19:44:13 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 9 Jan 2015 00:44:13 +0000 Subject: Free IP Calculator Message-ID: <72594843-7460-425D-932B-E552326432C7@iotecdigital.com> Hi all. It?s not often I get a chance to give something back to the LC community, so here is my contribution. I put together an IP calculator function which when passed any IP address and subnet mask returns an array of pretty much every value you want to know about your network. It may also help others who don?t know about how subnets are calculated to understand it a bit better. I didn?t do any error checking, because frankly there are a lot of bad values you can pass, including for example passing 0 for the first octet of the ip address or subnet, or passing the broadcast address as the IP address etc. I will add error checking later. so without further ado, here you go! function IPCalc theIPAddress, theSubnetMask set the itemdelimiter to "." -- initial setup set the numberFormat to "00000000" -- convert the ip address to binary put 0 into whichOctet repeat for each item theOctet in theIPAddress add 1 to whichOctet put baseConvert(theOctet, 10, 2) into item whichOctet of theBinIPAddress add 0 to item whichOctet of theBinIPAddress end repeat -- convert the subnet mask to binary put 0 into whichOctet repeat for each item theOctet in theSubnetMask add 1 to whichOctet put baseConvert(theOctet, 10, 2) into item whichOctet of theBinSubnetMask add 0 to item whichOctet of theBinSubnetMask end repeat -- calculate the binary subnet address put offset("0", theBinSubnetMask) into theFirstNodeChar put theFirstNodeChar -1 into theCIDRDepth put char 1 to theFirstNodeChar -1 of theBinIPAddress into theBinNetworkAddr put char theFirstNodeChar to -1 of theBinIPAddress into theBinNodeAddr put theBinNodeAddr into theBinSubnetNodeAddr set the numberFormat to "0" replace "1" with "0" in theBinSubnetNodeAddr put theBinNetworkAddr & theBinSubnetNodeAddr into theBinSubnetAddr -- convert the binary subnet address to decimal put 0 into whichOctet repeat for each item theOctet in theBinSubnetAddr add 1 to whichOctet put baseconvert(theOctet, 2, 10) into item whichOctet of theSubnetAddr end repeat -- calculate the first usable IP address put theSubnetAddr into theFirstAddr add 1 to item 4 of theFirstAddr -- calculate the binary broadcast address put theBinNodeAddr into theBinBcastNodeAddr replace "0" with "1" in theBinBcastNodeAddr put theBinNetworkAddr & theBinBcastNodeAddr into theBinBcastAddr -- convert the binary broadcast address to decimal put 0 into whichOctet repeat for each item theOctet in theBinBcastAddr add 1 to whichOctet put baseConvert(theOctet, 2 ,10) into item WhichOctet of theBcastAddr end repeat -- calculate the last usable IP address put theBcastAddr into theLastAddr subtract 1 from item 4 of theLastAddr -- calculate the number of usable addresses put item 4 of theLastAddr - item 4 of theFirstAddr +1 into theAddrCount -- calculate the CIDR notation put theSubnetAddr & "/" & theCIDRDepth into theCIDRAddr -- create array put theIPAddress into ipdata ["ipaddress"] put theSubnetMask into ipdata ["subnetmask"] put theSubnetAddr into ipdata ["subnetaddr"] put theFirstAddr into ipdata ["firstaddr"] put theBcastAddr into ipdata["bcastaddr"] put theLastAddr into ipdata ["lastaddr"] put theCIDRAddr into ipdata ["cidrdepth"] put theAddrCount into ipdata ["usablecount"] put theCIDRAddr into ipdata ["cidraddr"] return ipdata end IPCalc Bob S From userev at canelasoftware.com Thu Jan 8 19:51:24 2015 From: userev at canelasoftware.com (Mark Talluto) Date: Thu, 8 Jan 2015 16:51:24 -0800 Subject: Debugging plugins In-Reply-To: References: Message-ID: <51643FD0-B80B-4809-AC26-27281E65075A@canelasoftware.com> On Jan 5, 2015, at 8:16 AM, Geoff Canyon wrote: > I have a vague recollection of there being a way to get breakpoints to work > in "rev" stacks. I thought it was a preference setting, but I don't see it. > Anyone know what the setting/property is for that? There is a menu item labeled ?Script Debug Mode? in the ?Development? drop down of the LiveCode menus. Best regards, Mark Talluto livecloud.io canelasoftware.com From userev at canelasoftware.com Thu Jan 8 19:56:06 2015 From: userev at canelasoftware.com (Mark Talluto) Date: Thu, 8 Jan 2015 16:56:06 -0800 Subject: Moving a Group Smoothly In-Reply-To: <54A8C34B.9030509@hindu.org> References: <54A8C34B.9030509@hindu.org> Message-ID: <5A7D353F-8805-4934-8E65-B652B8E8DEB6@canelasoftware.com> On Jan 3, 2015, at 8:36 PM, Brahmanathaswami wrote: > BTW > setting the acceleratedRendering of the stack to true and the layerMode of the group to dynamic only means the motion is a tad faster, but it still "stutters" as it moves Is this in LC 7.0.1? I just posted a video showing ?move' is a noticeably faster than in previous versions of LC. Best regards, Mark Talluto livecloud.io canelasoftware.com From gerry.orkin at gmail.com Thu Jan 8 20:24:35 2015 From: gerry.orkin at gmail.com (Gerry) Date: Fri, 9 Jan 2015 12:24:35 +1100 Subject: iOS push notifications: why are they asked for? Message-ID: My app does not have push notifications enabled in the app ID settings for the app on the Apple Developer, yet it asks for permission to accept them when the app is first opened. What gives? LC 6.7.1. Gerry From ethanlish at gmail.com Thu Jan 8 20:36:11 2015 From: ethanlish at gmail.com (ethanlish at gmail.com) Date: Thu, 08 Jan 2015 20:36:11 -0500 Subject: iOS push notifications: why are they asked for? In-Reply-To: References: Message-ID: <54AF308B.4050000@gmail.com> My experience is that there are three areas to check; - stand-alone application settings the profile used - stand-alone application settings the check box for push notifications - the application code 'pushNotificationReceived' etc. The gotcha is in the profile used. Look at the cert on developer.apple.com to see if it is enabled for push This whole facility seems like a prime area for better training and documentation Hope this helps... E On 1/8/15 8:24 PM, Gerry wrote: > My app does not have push notifications enabled in the app ID settings for the app on the Apple Developer, yet it asks for permission to accept them when the app is first opened. What gives? LC 6.7.1. > > Gerry > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From prothero at earthednet.org Thu Jan 8 20:36:55 2015 From: prothero at earthednet.org (William Prothero) Date: Thu, 8 Jan 2015 17:36:55 -0800 Subject: Bugs reports for several issues Message-ID: <234B84A2-F747-4948-8994-81153A7245D2@earthednet.org> FYI: I?ve posted several bug reports on the system. bug 14351 ?problems with Flash videos in the CEF browser implementation bug 14353 ?problems with snapshot in windows 7, 32 bit systems bug 14354 ?example of a stack that crashes the 7.0.1 IDE in OS X I hope this will help the dev team. The inexplicable crashing in V7 is a real pain and I?ve spend all day futzing with a stack that started crashing during certain operations. I?m hoping my example stack will give the dev team a chance to investigate the crashing issues and perhaps help others at the same time. Regards, Bill William A. Prothero http://es.earthednet.org/ From dochawk at gmail.com Thu Jan 8 20:58:06 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Thu, 8 Jan 2015 17:58:06 -0800 Subject: Crash-a-lot just became critical In-Reply-To: <54AEFED7.4000207@fourthworld.com> References: <54AEFED7.4000207@fourthworld.com> Message-ID: On Thu, Jan 8, 2015 at 2:04 PM, Richard Gaskin wrote: > Dr. Hawkins wrote: > > I've been living through the frequent random crashes... >> > > Computers are deterministic systems: consistent inputs will yield > consistent results. > So they would like us to believe :) > > If something may appear to be random, it merely suggests we haven't found > the recipe for reproducing it yet. > Some pseudo-random events are as good as random for such purposes . . . And most people are unfamiliar with Bohr's response to Einstein's dicing comment . . . > All problems with computers can be resolved by identifying the differences > between the working and non-working states. > > Your filing a bug report is helpful (#14350 for those wishing to help > triage this), but the crash log may not be enough for the team to identify > what went wrong. > > It might, though, and if so then we have nothing more to worry about. > > But if this issue is important to you (and it would seem that it is), you > may be able to get what you want more easily by including in your bug > report a description of what your program is doing when it crashes. > Just moving a mouse. Err, fingering a trackpad. > > If this is really important, you may consider adding some script logging > to your stack so you can at least know the last handler that executed > successfully. > > If you haven't yet played with the messageMessages property and the > messageHandled message to make such a log, I can provide a simple script > for you to log all handler calls to a text file. I'd appreciate that--but I suspect that it won't catch this. This isn't livecode responding to an error, but failing to do so in a way that it doesn't trap. It appears quite likely that the triggering event is the reference to a non-existent control (the wrong stack was being targeted). In a vanilla stack, livecode choked on the error; in a palette, execution stopped. A missing branch in an engine switch, perhaps? A segfault? I'm willing to believe that the times that it happened "after" I clicked a button were likely already happening from moving the mouse to a location. If that's the case, mouseEnter messages would seem to be involved in every failure. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From mwieder at ahsoftware.net Thu Jan 8 21:11:53 2015 From: mwieder at ahsoftware.net (Mark Wieder) Date: Thu, 8 Jan 2015 18:11:53 -0800 Subject: RegEx Builder In-Reply-To: References: Message-ID: <1571895568694.20150108181153@ahsoftware.net> Pete- Thursday, January 8, 2015, 12:28:09 PM, Stephen wrote: > On Thu, Jan 8, 2015 at 12:05 PM, Peter Haworth wrote: >> However, it's marked as copyright Frederic Rinaldi so not sure how to >> proceed. >> > The great Rinaldi still works for Apple and is not that hard to find. He's > on LinkedIN. He'd probably say go ahead. What Stephen said, and I see you've already emailed him. But also, since it's bundled with the IDE, I believe it already falls under the IDE's licensing, which is GPL for the community edition. -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From mwieder at ahsoftware.net Thu Jan 8 21:16:51 2015 From: mwieder at ahsoftware.net (Mark Wieder) Date: Thu, 8 Jan 2015 18:16:51 -0800 Subject: Crash-a-lot just became critical In-Reply-To: References: <54AECA8F.30002@hyperactivesw.com> <94DB42CE-661F-4D71-B059-61947F2BC307@verizon.net> Message-ID: <1051895867264.20150108181651@ahsoftware.net> Richard- Thursday, January 8, 2015, 1:50:34 PM, you wrote: > There are an annoying number of apparently undocumented changes in the new > engine with regard to message handling--I had apparently been relying on > mouseEnter being sent to a stack itself, which 5.x does not do. I've seen > and forgotten one or two more like that. The mouseEnter message is indeed sent to the stack, unless you're trapping it somewhere along the message path and not passing it. -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From mwieder at ahsoftware.net Thu Jan 8 21:20:43 2015 From: mwieder at ahsoftware.net (Mark Wieder) Date: Thu, 8 Jan 2015 18:20:43 -0800 Subject: Code repository In-Reply-To: References: <1420508832043.84c4507e@Nodemailer> Message-ID: <931896098832.20150108182043@ahsoftware.net> Mike- Thursday, January 8, 2015, 8:07:00 AM, you wrote: > I don't suppose there is a step by step anywhere that walks a person > through the steps to build a full livecode community distribution? > Starting at the very very beginning, how to download the source, what > prerequisites need to be installed.. I'd be trying to do so on Linux or > similar (if I can get it going on linux, I'd also like to try and get it > built for openindiana) The steps, including the prerequisites, are listed in the readme on runrev's github main page. They may be slightly out of date by now, but in general that should get you started. -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From jacque at hyperactivesw.com Thu Jan 8 22:06:00 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 08 Jan 2015 21:06:00 -0600 Subject: Crash-a-lot just became critical In-Reply-To: <1051895867264.20150108181651@ahsoftware.net> References: <54AECA8F.30002@hyperactivesw.com> <94DB42CE-661F-4D71-B059-61947F2BC307@verizon.net> <1051895867264.20150108181651@ahsoftware.net> Message-ID: <54AF4598.3070505@hyperactivesw.com> On 1/8/2015 8:16 PM, Mark Wieder wrote: > Richard- > > Thursday, January 8, 2015, 1:50:34 PM, you wrote: > >> There are an annoying number of apparently undocumented changes in the new >> engine with regard to message handling--I had apparently been relying on >> mouseEnter being sent to a stack itself, which 5.x does not do. I've seen >> and forgotten one or two more like that. > > The mouseEnter message is indeed sent to the stack, unless you're > trapping it somewhere along the message path and not passing it. > I think he means, he relies on the message being sent to the stack where there is no other control present. LC 7 sends it, but in all previous versions, mouseEnter isn't sent directly to cards or stacks, only to controls on the card. I wasn't aware of this change either until now. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bonnmike at gmail.com Thu Jan 8 23:18:22 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Thu, 8 Jan 2015 21:18:22 -0700 Subject: Code repository In-Reply-To: <931896098832.20150108182043@ahsoftware.net> References: <1420508832043.84c4507e@Nodemailer> <931896098832.20150108182043@ahsoftware.net> Message-ID: Thank you sir. On Thu, Jan 8, 2015 at 7:20 PM, Mark Wieder wrote: > Mike- > > Thursday, January 8, 2015, 8:07:00 AM, you wrote: > > > I don't suppose there is a step by step anywhere that walks a person > > through the steps to build a full livecode community distribution? > > Starting at the very very beginning, how to download the source, what > > prerequisites need to be installed.. I'd be trying to do so on Linux or > > similar (if I can get it going on linux, I'd also like to try and get it > > built for openindiana) > > The steps, including the prerequisites, are listed in the readme on > runrev's github main page. They may be slightly out of date by now, > but in general that should get you started. > > -- > -Mark Wieder > ahsoftware at gmail.com > > This communication may be unlawfully collected and stored by the National > Security Agency (NSA) in secret. The parties to this email do not > consent to the retrieving or storing of this communication and any > related metadata, as well as printing, copying, re-transmitting, > disseminating, or otherwise using it. If you believe you have received > this communication in error, please delete it immediately. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From mwieder at ahsoftware.net Fri Jan 9 01:44:20 2015 From: mwieder at ahsoftware.net (Mark Wieder) Date: Thu, 8 Jan 2015 22:44:20 -0800 Subject: Crash-a-lot just became critical In-Reply-To: <54AF4598.3070505@hyperactivesw.com> References: <54AECA8F.30002@hyperactivesw.com> <94DB42CE-661F-4D71-B059-61947F2BC307@verizon.net> <1051895867264.20150108181651@ahsoftware.net> <54AF4598.3070505@hyperactivesw.com> Message-ID: <1431911915930.20150108224420@ahsoftware.net> Jacque- Thursday, January 8, 2015, 7:06:00 PM, you wrote: > I think he means, he relies on the message being sent to the stack where > there is no other control present. LC 7 sends it, but in all previous > versions, mouseEnter isn't sent directly to cards or stacks, only to > controls on the card. > I wasn't aware of this change either until now. Interesting. Seems to be platform-dependent. It works on linux with LC 5.5.4. And not on Snow Leopard with LC 5.5.3. Don't know about Windows. in new stack script: on mouseEnter put "mouseEnter!" & cr after msg end mouseEnter -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From gerry.orkin at gmail.com Fri Jan 9 01:59:07 2015 From: gerry.orkin at gmail.com (Gerry) Date: Fri, 9 Jan 2015 17:59:07 +1100 Subject: iOS push notifications: why are they asked for? In-Reply-To: <54AF308B.4050000@gmail.com> References: <54AF308B.4050000@gmail.com> Message-ID: Thanks, but... It's disabled in all those places! Urg! Gerry > On 9 Jan 2015, at 12:36 pm, ethanlish at gmail.com wrote: > > My experience is that there are three areas to check; > - stand-alone application settings the profile used > - stand-alone application settings the check box for push notifications > - the application code 'pushNotificationReceived' etc. From jacque at hyperactivesw.com Fri Jan 9 02:09:51 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 09 Jan 2015 01:09:51 -0600 Subject: Crash-a-lot just became critical In-Reply-To: <1431911915930.20150108224420@ahsoftware.net> References: <54AECA8F.30002@hyperactivesw.com> <94DB42CE-661F-4D71-B059-61947F2BC307@verizon.net> <1051895867264.20150108181651@ahsoftware.net> <54AF4598.3070505@hyperactivesw.com> <1431911915930.20150108224420@ahsoftware.net> Message-ID: <931E8528-AECA-4989-B6B2-39244204BAC9@hyperactivesw.com> It fails on Mavericks too with versions of LiveCode before 7. I didn't know it ever worked on other platforms, actually. On January 9, 2015 12:44:20 AM CST, Mark Wieder wrote: >Jacque- > >Thursday, January 8, 2015, 7:06:00 PM, you wrote: > >> I think he means, he relies on the message being sent to the stack >where >> there is no other control present. LC 7 sends it, but in all previous >> versions, mouseEnter isn't sent directly to cards or stacks, only to >> controls on the card. > >> I wasn't aware of this change either until now. > >Interesting. Seems to be platform-dependent. >It works on linux with LC 5.5.4. >And not on Snow Leopard with LC 5.5.3. >Don't know about Windows. > >in new stack script: > >on mouseEnter > put "mouseEnter!" & cr after msg >end mouseEnter -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From sean at pidigital.co.uk Fri Jan 9 07:23:50 2015 From: sean at pidigital.co.uk (Sean Cole (Pi)) Date: Fri, 9 Jan 2015 12:23:50 +0000 Subject: iOS push notifications: why are they asked for? In-Reply-To: References: <54AF308B.4050000@gmail.com> Message-ID: Hi Gerry, This is now the norm in iOS8 applications it would seem. Upon updating 17 iPads last weekend and uploading my app (which is identical in every way to the one I installed during iOS7) each one requested on application launch the permission for Push Notifications and Use of Camera (which also was never asked for in the past). It would seem that Apple are hotting up on these kind of permissions to make the user aware. Android has always done this to the point of irritation but the users are that much more aware of what the app is capable of accessing and has some level of control over what they are willing to permit. Ethan is right. There needs to be a lot more training and documentation to cover this but RR has fallen way too far behind on updating any of their documentation that I doubt that (unless they employ someone dedicated to the task) it will ever see the light of day in this decade. Pessimistic, I know, but likely to be the truth of the matter (unless Kevin/Ben/Other says otherwise). Sean Cole *Pi Digital Productions Ltd* www.pidigital.co.uk +44(1634)402193 +44(7702)116447 ? 'Don't try to think outside the box. Just remember the truth: There is no box!' 'For then you realise it is not the box you are trying to look outside of, but it is yourself!' This email and any files transmitted with it may be confidential and are intended solely for the use of the individual to whom it is addressed. You are hereby notified that if you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Any distribution, reproduction, modification or publication of this communication is strictly prohibited. If you have received this in error, please notify the sender and delete the message from your computer. Any opinions presented in this email are solely those of the author and do not necessarily represent those of Pi Digital. Pi Digital cannot accept any responsibility for the accuracy or completeness of this message and although this email and any attachments are believed to be free from viruses, it is the sole responsibility of the recipients. Pi Digital Productions Ltd is a UK registered limited company, no. 5255609. VAT GB998220972 On 9 January 2015 at 06:59, Gerry wrote: > Thanks, but... > > It's disabled in all those places! > > Urg! > > Gerry > > > > On 9 Jan 2015, at 12:36 pm, ethanlish at gmail.com wrote: > > > > My experience is that there are three areas to check; > > - stand-alone application settings the profile used > > - stand-alone application settings the check box for push notifications > > - the application code 'pushNotificationReceived' etc. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pmbrig at gmail.com Fri Jan 9 09:02:15 2015 From: pmbrig at gmail.com (Peter M. Brigham) Date: Fri, 9 Jan 2015 09:02:15 -0500 Subject: Crash-a-lot just became critical In-Reply-To: <931E8528-AECA-4989-B6B2-39244204BAC9@hyperactivesw.com> References: <54AECA8F.30002@hyperactivesw.com> <94DB42CE-661F-4D71-B059-61947F2BC307@verizon.net> <1051895867264.20150108181651@ahsoftware.net> <54AF4598.3070505@hyperactivesw.com> <1431911915930.20150108224420@ahsoftware.net> <931E8528-AECA-4989-B6B2-39244204BAC9@hyperactivesw.com> Message-ID: <732E2A34-8A95-43EC-BF03-D38B747340B4@gmail.com> I'm not sure I understand. Are people saying that in some newer versions of LC the mouseEnter message is not sent to the control being entered but rather directly to the stack? If this is so, what happens to the target function? Does it still return the control the mouse is entering? I'm still using OSX 10.7.4 (Lion) with LC 5.5.1, so if the target doesn't identify the control I'd have to rewrite hundreds of scripts to upgrade to a newer version. -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig On Jan 9, 2015, at 2:09 AM, J. Landman Gay wrote: > It fails on Mavericks too with versions of LiveCode before 7. I didn't know it ever worked on other platforms, actually. > > On January 9, 2015 12:44:20 AM CST, Mark Wieder wrote: >> Jacque- >> >> Thursday, January 8, 2015, 7:06:00 PM, you wrote: >> >>> I think he means, he relies on the message being sent to the stack >> where >>> there is no other control present. LC 7 sends it, but in all previous >>> versions, mouseEnter isn't sent directly to cards or stacks, only to >>> controls on the card. >> >>> I wasn't aware of this change either until now. >> >> Interesting. Seems to be platform-dependent. >> It works on linux with LC 5.5.4. >> And not on Snow Leopard with LC 5.5.3. >> Don't know about Windows. >> >> in new stack script: >> >> on mouseEnter >> put "mouseEnter!" & cr after msg >> end mouseEnter > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ray at linkit.com Fri Jan 9 09:19:56 2015 From: ray at linkit.com (Ray) Date: Fri, 09 Jan 2015 11:19:56 -0300 Subject: Can't Move Backward In-Reply-To: <60C72A67-6AFE-406F-B06B-93CDD70C437D@byu.edu> References: <54912789.70109@economy-x-talk.com> <54912D3A.1010203@economy-x-talk.com> <2664FDC7-23BC-405E-8617-E5EFEF1A1AC6@iotecdigital.com> <1418834388185-4686886.post@n4.nabble.com> <91CCE39C-BDFA-4EA0-B959-18F9A6EAED93@earthednet.org> <5491B795.5010200@LinkIt.Com> <11D6732B-1665-4F8A-9FD4-F1A7A11D7FDD@earthednet.org> <54AD5A37.7090602@LinkIt.Com> <60C72A67-6AFE-406F-B06B-93CDD70C437D@byu.edu> Message-ID: <54AFE38C.9050902@LinkIt.Com> I'm trying a "Save As" on a stack file last saved in 7.0.1 so I can open it in 6.5.2, the last stable version of Livecode that I know of. The choices are: Legacy Livecode Stack (5.5) Legacy Livecode Stack (2.7) Legacy Livecode Stack (2.4) I would imagine my copy of Livecode 6.5.2 would open a stack file saved as Legacy 5.5, but it doesn't. I can't remember back as far as 2.7 and 2.4. I am able to create a new, empty stack file in 7.0.1, save it in legacy 5.5 and then open it in 6.5.2 so there's apparently something going on with the first stack file. However, Livecode should open it and produce script errors which I can then find and fix. If Livecode 6.5.2 doesn't even open it then I'm stuck. Does anybody know how to move backward away from the many problems 7.0.1 has without having to re-write years of work? From bonnmike at gmail.com Fri Jan 9 10:38:52 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Fri, 9 Jan 2015 08:38:52 -0700 Subject: Can't Move Backward In-Reply-To: <54AFE38C.9050902@LinkIt.Com> References: <54912789.70109@economy-x-talk.com> <54912D3A.1010203@economy-x-talk.com> <2664FDC7-23BC-405E-8617-E5EFEF1A1AC6@iotecdigital.com> <1418834388185-4686886.post@n4.nabble.com> <91CCE39C-BDFA-4EA0-B959-18F9A6EAED93@earthednet.org> <5491B795.5010200@LinkIt.Com> <11D6732B-1665-4F8A-9FD4-F1A7A11D7FDD@earthednet.org> <54AD5A37.7090602@LinkIt.Com> <60C72A67-6AFE-406F-B06B-93CDD70C437D@byu.edu> <54AFE38C.9050902@LinkIt.Com> Message-ID: You might turn off messages before opening the stack to see if it loads. Also, if you're double clicking to open the stack, try using the file menu instead. On Fri, Jan 9, 2015 at 7:19 AM, Ray wrote: > I'm trying a "Save As" on a stack file last saved in 7.0.1 so I can open > it in 6.5.2, the last stable version of Livecode that I know of. > > The choices are: > Legacy Livecode Stack (5.5) > Legacy Livecode Stack (2.7) > Legacy Livecode Stack (2.4) > > I would imagine my copy of Livecode 6.5.2 would open a stack file saved as > Legacy 5.5, but it doesn't. I can't remember back as far as 2.7 and 2.4. > > I am able to create a new, empty stack file in 7.0.1, save it in legacy > 5.5 and then open it in 6.5.2 so there's apparently something going on with > the first stack file. However, Livecode should open it and produce script > errors which I can then find and fix. If Livecode 6.5.2 doesn't even open > it then I'm stuck. > > Does anybody know how to move backward away from the many problems 7.0.1 > has without having to re-write years of work? > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From coiin at verizon.net Fri Jan 9 11:53:21 2015 From: coiin at verizon.net (Colin Holgate) Date: Fri, 09 Jan 2015 11:53:21 -0500 Subject: Crash-a-lot just became critical In-Reply-To: <732E2A34-8A95-43EC-BF03-D38B747340B4@gmail.com> References: <54AECA8F.30002@hyperactivesw.com> <94DB42CE-661F-4D71-B059-61947F2BC307@verizon.net> <1051895867264.20150108181651@ahsoftware.net> <54AF4598.3070505@hyperactivesw.com> <1431911915930.20150108224420@ahsoftware.net> <931E8528-AECA-4989-B6B2-39244204BAC9@hyperactivesw.com> <732E2A34-8A95-43EC-BF03-D38B747340B4@gmail.com> Message-ID: Just did a test with 7.0.1, and things seem to work as I?d expect. If I put this into a button, card, and stack: on mouseenter answer ?button? ? or ?card" or ?stack? end mouseenter the answer shows up that I would expect. If I do this: on mouseenter answer ?button? ? or ?card or ?stack? pass mouseenter end mounter and move over the button, the answers come in the order of ?button?, ?card?, ?stack?. Isn?t that how it should be? > On Jan 9, 2015, at 9:02 AM, Peter M. Brigham wrote: > > I'm not sure I understand. Are people saying that in some newer versions of LC the mouseEnter message is not sent to the control being entered but rather directly to the stack? If this is so, what happens to the target function? Does it still return the control the mouse is entering? I'm still using OSX 10.7.4 (Lion) with LC 5.5.1, so if the target doesn't identify the control I'd have to rewrite hundreds of scripts to upgrade to a newer version. > > -- Peter > > Peter M. Brigham > pmbrig at gmail.com > http://home.comcast.net/~pmbrig > > On Jan 9, 2015, at 2:09 AM, J. Landman Gay wrote: > >> It fails on Mavericks too with versions of LiveCode before 7. I didn't know it ever worked on other platforms, actually. >> >> On January 9, 2015 12:44:20 AM CST, Mark Wieder wrote: >>> Jacque- >>> >>> Thursday, January 8, 2015, 7:06:00 PM, you wrote: >>> >>>> I think he means, he relies on the message being sent to the stack >>> where >>>> there is no other control present. LC 7 sends it, but in all previous >>>> versions, mouseEnter isn't sent directly to cards or stacks, only to >>>> controls on the card. >>> >>>> I wasn't aware of this change either until now. >>> >>> Interesting. Seems to be platform-dependent. >>> It works on linux with LC 5.5.4. >>> And not on Snow Leopard with LC 5.5.3. >>> Don't know about Windows. >>> >>> in new stack script: >>> >>> on mouseEnter >>> put "mouseEnter!" & cr after msg >>> end mouseEnter >> >> -- >> Jacqueline Landman Gay | jacque at hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From devin_asay at byu.edu Fri Jan 9 12:16:51 2015 From: devin_asay at byu.edu (Devin Asay) Date: Fri, 9 Jan 2015 17:16:51 +0000 Subject: LiveCode 7.0.1: Move is smooth! In-Reply-To: <131439AC-8CE1-4005-9D3C-409899EF69C8@canelasoftware.com> References: <3009E076-BBD8-4B11-830A-265D7898C164@canelasoftware.com> <131439AC-8CE1-4005-9D3C-409899EF69C8@canelasoftware.com> Message-ID: On Jan 8, 2015, at 5:05 PM, Mark Talluto wrote: > On Jan 8, 2015, at 12:44 PM, Mark Talluto wrote: > >> Hello. >> >> Just wanted to make a public statement about the move command on 7.0.1. We made a really simple game called Dropper: http://livecloud.io/dropper-game-updated-source-and-standalone/ >> The standalone engine we used in the last update was around 6.1.3. We just tested the same game, no code changes in 7.0.1. The ball drops really smoothly now. In previous engines, the ball dropped with a jerky like movement. >> >> We will update the standalones on our site later today. You can download the source and try it on various versions of LC and see for yourself. >> >> Nice work on that aspect of the engine LiveCode team! > > This feels weird replying to my own email. Had some response from this via direct email and thought I would make it even easier to see the difference. Here is a video for your enjoyment. > https://www.youtube.com/watch?v=wjXHt8MqYNY Hi Mark, Oddly enough I can?t see a difference in the video, but I can clearly see that the ball motion is much smoother on my system in 6.7.x vs. 6.5.2. Devin Devin Asay Office of Digital Humanities Brigham Young University From coiin at verizon.net Fri Jan 9 12:22:54 2015 From: coiin at verizon.net (Colin Holgate) Date: Fri, 09 Jan 2015 12:22:54 -0500 Subject: LiveCode 7.0.1: Move is smooth! In-Reply-To: References: <3009E076-BBD8-4B11-830A-265D7898C164@canelasoftware.com> <131439AC-8CE1-4005-9D3C-409899EF69C8@canelasoftware.com> Message-ID: <8E7C927A-73B4-4C69-BCBA-6560916C44A7@verizon.net> I noticed that and was going to say something, but if you go full screen you can see enough difference. > On Jan 9, 2015, at 12:16 PM, Devin Asay wrote: > > >Oddly enough I can?t see a difference in the video, but I can clearly see that the ball motion is much smoother on my system in 6.7.x vs. 6.5.2. From jacque at hyperactivesw.com Fri Jan 9 13:03:58 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 09 Jan 2015 12:03:58 -0600 Subject: Crash-a-lot just became critical In-Reply-To: <732E2A34-8A95-43EC-BF03-D38B747340B4@gmail.com> References: <54AECA8F.30002@hyperactivesw.com> <94DB42CE-661F-4D71-B059-61947F2BC307@verizon.net> <1051895867264.20150108181651@ahsoftware.net> <54AF4598.3070505@hyperactivesw.com> <1431911915930.20150108224420@ahsoftware.net> <931E8528-AECA-4989-B6B2-39244204BAC9@hyperactivesw.com> <732E2A34-8A95-43EC-BF03-D38B747340B4@gmail.com> Message-ID: <54B0180E.5060106@hyperactivesw.com> On 1/9/2015 8:02 AM, Peter M. Brigham wrote: > Are people saying that in some newer versions of LC the mouseEnter > message is not sent to the control being entered but rather directly > to the stack? No, that part behaves as it always did. Controls receive mouseEnter normally. Previous versions of the Mac engine did not send the message to the card or stack if there was no control under the mouse though. In LC 7 it does. Apparently it always did that on Linux, so the behavior was specific to the platform. You can test by creating a new stack without any controls, just a blank card. Put a mouseEnter handler into the card or stack script. Move the mouse into the stack window. In LC 6.x nothing will happen. In LC 7 the handler will execute. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bonnmike at gmail.com Fri Jan 9 13:09:22 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Fri, 9 Jan 2015 11:09:22 -0700 Subject: Crash-a-lot just became critical In-Reply-To: <54B0180E.5060106@hyperactivesw.com> References: <54AECA8F.30002@hyperactivesw.com> <94DB42CE-661F-4D71-B059-61947F2BC307@verizon.net> <1051895867264.20150108181651@ahsoftware.net> <54AF4598.3070505@hyperactivesw.com> <1431911915930.20150108224420@ahsoftware.net> <931E8528-AECA-4989-B6B2-39244204BAC9@hyperactivesw.com> <732E2A34-8A95-43EC-BF03-D38B747340B4@gmail.com> <54B0180E.5060106@hyperactivesw.com> Message-ID: That is definitely different. I won't need to put a background grc or image (or whatever) to catch the mouseenter anymore, but I can see it causing weird stuff. What about empty space in groups? Just checked, they still behave the old way. Enter a group, but not over a control, and no mouseenter is sent. On Fri, Jan 9, 2015 at 11:03 AM, J. Landman Gay wrote: > On 1/9/2015 8:02 AM, Peter M. Brigham wrote: > >> Are people saying that in some newer versions of LC the mouseEnter >> message is not sent to the control being entered but rather directly >> to the stack? >> > > No, that part behaves as it always did. Controls receive mouseEnter > normally. Previous versions of the Mac engine did not send the message to > the card or stack if there was no control under the mouse though. In LC 7 > it does. Apparently it always did that on Linux, so the behavior was > specific to the platform. > > You can test by creating a new stack without any controls, just a blank > card. Put a mouseEnter handler into the card or stack script. Move the > mouse into the stack window. In LC 6.x nothing will happen. In LC 7 the > handler will execute. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dochawk at gmail.com Fri Jan 9 13:27:55 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Fri, 9 Jan 2015 10:27:55 -0800 Subject: Crash-a-lot just became critical In-Reply-To: <732E2A34-8A95-43EC-BF03-D38B747340B4@gmail.com> References: <54AECA8F.30002@hyperactivesw.com> <94DB42CE-661F-4D71-B059-61947F2BC307@verizon.net> <1051895867264.20150108181651@ahsoftware.net> <54AF4598.3070505@hyperactivesw.com> <1431911915930.20150108224420@ahsoftware.net> <931E8528-AECA-4989-B6B2-39244204BAC9@hyperactivesw.com> <732E2A34-8A95-43EC-BF03-D38B747340B4@gmail.com> Message-ID: On Fri, Jan 9, 2015 at 6:02 AM, Peter M. Brigham wrote: > 'm not sure I understand. Are people saying that in some newer versions of > LC the mouseEnter message is not sent to the control being entered but > rather directly to the stack? If this is so, what happens to the target > function? Does it still return the control the mouse is entering? I'm still > using OSX 10.7.4 (Lion) with LC 5.5.1, so if the target doesn't identify > the control I'd have to rewrite hundreds of scripts to upgrade to a newer > version. Exactly. If it doesn't hit a control on its way, it is sent directly to the stack. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From dochawk at gmail.com Fri Jan 9 13:30:16 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Fri, 9 Jan 2015 10:30:16 -0800 Subject: Crash-a-lot just became critical In-Reply-To: <54AECA8F.30002@hyperactivesw.com> References: <54AECA8F.30002@hyperactivesw.com> Message-ID: On Thu, Jan 8, 2015 at 10:21 AM, J. Landman Gay wrote: > I understand. But they can't fix it unless they can reproduce it. So you > can either trust them or live with it until/unless someone else has the > same issue and submits an example. The team is very keen to fix these > issues, and crashes take top priority, but you've sort of tied their hands. > I have managed to strip it down to almost nothing, and it still exhibits the crash. However, it is bizarrely 6.3mb, for three one-card stacks and a couple of screens of script (and one small image). It must still contain "garbage", so I need to send it somehow, but not publicly post (it could have my master key in it, which would be catastrophic). -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From devin_asay at byu.edu Fri Jan 9 13:30:01 2015 From: devin_asay at byu.edu (Devin Asay) Date: Fri, 9 Jan 2015 18:30:01 +0000 Subject: Crash-a-lot just became critical In-Reply-To: <54B0180E.5060106@hyperactivesw.com> References: <54AECA8F.30002@hyperactivesw.com> <94DB42CE-661F-4D71-B059-61947F2BC307@verizon.net> <1051895867264.20150108181651@ahsoftware.net> <54AF4598.3070505@hyperactivesw.com> <1431911915930.20150108224420@ahsoftware.net> <931E8528-AECA-4989-B6B2-39244204BAC9@hyperactivesw.com> <732E2A34-8A95-43EC-BF03-D38B747340B4@gmail.com> <54B0180E.5060106@hyperactivesw.com> Message-ID: On Jan 9, 2015, at 11:03 AM, J. Landman Gay wrote: > On 1/9/2015 8:02 AM, Peter M. Brigham wrote: >> Are people saying that in some newer versions of LC the mouseEnter >> message is not sent to the control being entered but rather directly >> to the stack? > > No, that part behaves as it always did. Controls receive mouseEnter normally. Previous versions of the Mac engine did not send the message to the card or stack if there was no control under the mouse though. In LC 7 it does. Apparently it always did that on Linux, so the behavior was specific to the platform. > > You can test by creating a new stack without any controls, just a blank card. Put a mouseEnter handler into the card or stack script. Move the mouse into the stack window. In LC 6.x nothing will happen. In LC 7 the handler will execute. It looks like that change actually happened in LC 6.7. In 6.5 no mouseEnter is sent if there is no control object under the mouse. Starting in 6.7 a mouseEnter is sent to the card even if there is no control object under the mouse. Is this possibly an effect of the switch to Cocoa? This seems like an important and disruptive change. Devin Devin Asay Office of Digital Humanities Brigham Young University From dochawk at gmail.com Fri Jan 9 13:34:44 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Fri, 9 Jan 2015 10:34:44 -0800 Subject: Crash-a-lot just became critical In-Reply-To: References: <54AECA8F.30002@hyperactivesw.com> Message-ID: On Fri, Jan 9, 2015 at 10:30 AM, Dr. Hawkins wrote: > It must still contain "garbage", so I need to send it somehow, but not > publicly post (it could have my master key in it, which would be > catastrophic). I remembered an address they have; livecode has a crashing stack. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From devin_asay at byu.edu Fri Jan 9 13:41:11 2015 From: devin_asay at byu.edu (Devin Asay) Date: Fri, 9 Jan 2015 18:41:11 +0000 Subject: Crash-a-lot just became critical In-Reply-To: References: <54AECA8F.30002@hyperactivesw.com> <94DB42CE-661F-4D71-B059-61947F2BC307@verizon.net> <1051895867264.20150108181651@ahsoftware.net> <54AF4598.3070505@hyperactivesw.com> <1431911915930.20150108224420@ahsoftware.net> <931E8528-AECA-4989-B6B2-39244204BAC9@hyperactivesw.com> <732E2A34-8A95-43EC-BF03-D38B747340B4@gmail.com> <54B0180E.5060106@hyperactivesw.com> Message-ID: On Jan 9, 2015, at 11:30 AM, Devin Asay wrote: > > On Jan 9, 2015, at 11:03 AM, J. Landman Gay wrote: > >> On 1/9/2015 8:02 AM, Peter M. Brigham wrote: >>> Are people saying that in some newer versions of LC the mouseEnter >>> message is not sent to the control being entered but rather directly >>> to the stack? >> >> No, that part behaves as it always did. Controls receive mouseEnter normally. Previous versions of the Mac engine did not send the message to the card or stack if there was no control under the mouse though. In LC 7 it does. Apparently it always did that on Linux, so the behavior was specific to the platform. >> >> You can test by creating a new stack without any controls, just a blank card. Put a mouseEnter handler into the card or stack script. Move the mouse into the stack window. In LC 6.x nothing will happen. In LC 7 the handler will execute. > > It looks like that change actually happened in LC 6.7. In 6.5 no mouseEnter is sent if there is no control object under the mouse. Starting in 6.7 a mouseEnter is sent to the card even if there is no control object under the mouse. Is this possibly an effect of the switch to Cocoa? Sorry, the second sentence in the paragraph above should say ?In 6.5 *and 6.6* no mouseEnter is sent?? Devin Asay Office of Digital Humanities Brigham Young University From irog at mac.com Fri Jan 9 14:08:55 2015 From: irog at mac.com (Roger Guay) Date: Fri, 09 Jan 2015 12:08:55 -0700 Subject: Screen Flash w Visual Effect - Solved? In-Reply-To: References: <54AECA8F.30002@hyperactivesw.com> <94DB42CE-661F-4D71-B059-61947F2BC307@verizon.net> <1051895867264.20150108181651@ahsoftware.net> <54AF4598.3070505@hyperactivesw.com> <1431911915930.20150108224420@ahsoftware.net> <931E8528-AECA-4989-B6B2-39244204BAC9@hyperactivesw.com> <732E2A34-8A95-43EC-BF03-D38B747340B4@gmail.com> Message-ID: <50461AEC-448B-486C-A2F5-58436E1B0F93@mac.com> Some time ago, I reported a problem with random screen flashes related to unlock screen with visual effect, that came about with the release of Yosemite and all recent releases of LC. I think I may have discovered the cause. The problem seems to be exacerbated by having plugin stacks open. My setup was to have 2 of my favorite plugins automatically open when LC is launched. I recently discovered that the random screen flashes are at least far less frequent if I close these plugins. Does this make sense . . . especially since it seems to be Yosemite specific? Thanks, Roger From irog at mac.com Fri Jan 9 14:21:59 2015 From: irog at mac.com (Roger Guay) Date: Fri, 09 Jan 2015 12:21:59 -0700 Subject: Screen Flash w Visual Effect - Solved? In-Reply-To: <50461AEC-448B-486C-A2F5-58436E1B0F93@mac.com> References: <54AECA8F.30002@hyperactivesw.com> <94DB42CE-661F-4D71-B059-61947F2BC307@verizon.net> <1051895867264.20150108181651@ahsoftware.net> <54AF4598.3070505@hyperactivesw.com> <1431911915930.20150108224420@ahsoftware.net> <931E8528-AECA-4989-B6B2-39244204BAC9@hyperactivesw.com> <732E2A34-8A95-43EC-BF03-D38B747340B4@gmail.com> <50461AEC-448B-486C-A2F5-58436E1B0F93@mac.com> Message-ID: I spoke too soon. It just came back with a vengeance!! Open plugin stacks are definitely NOT the cause of my screen flash problem. Dad gum it!! Roger > On Jan 9, 2015, at 12:08 PM, Roger Guay wrote: > > Some time ago, I reported a problem with random screen flashes related to unlock screen with visual effect, that came about with the release of Yosemite and all recent releases of LC. I think I may have discovered the cause. > > The problem seems to be exacerbated by having plugin stacks open. My setup was to have 2 of my favorite plugins automatically open when LC is launched. I recently discovered that the random screen flashes are at least far less frequent if I close these plugins. Does this make sense . . . especially since it seems to be Yosemite specific? > > Thanks, > Roger > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Fri Jan 9 14:55:52 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 09 Jan 2015 13:55:52 -0600 Subject: Crash-a-lot just became critical In-Reply-To: References: <54AECA8F.30002@hyperactivesw.com> <94DB42CE-661F-4D71-B059-61947F2BC307@verizon.net> <1051895867264.20150108181651@ahsoftware.net> <54AF4598.3070505@hyperactivesw.com> <1431911915930.20150108224420@ahsoftware.net> <931E8528-AECA-4989-B6B2-39244204BAC9@hyperactivesw.com> <732E2A34-8A95-43EC-BF03-D38B747340B4@gmail.com> <54B0180E.5060106@hyperactivesw.com> Message-ID: <54B03248.5050208@hyperactivesw.com> On 1/9/2015 12:41 PM, Devin Asay wrote: >> >It looks like that change actually happened in LC 6.7. In 6.5 no mouseEnter is sent if there is no control object under the mouse. Starting in 6.7 a mouseEnter is sent to the card even if there is no control object under the mouse. Is this possibly an effect of the switch to Cocoa? > Sorry, the second sentence in the paragraph above should say ?In 6.5 *and 6.6* no mouseEnter is sent?? Just tested and you're right. It changed in 6.7. I can see some advantages to this. The ability to determine a mouseEnter into the stack window is useful in general. I suspect most scripts written by Mac users will have relied on a stack-sized control to trap entry into the stack, and that would still work the same as always. But you're right that problems would occur with a card or stack level handler that assumes a mouseEnter was always triggered by a control. I can't remember how Windows works. If it's the same as earlier LC versions on Mac, then there's still al platform discrepancy. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Fri Jan 9 14:57:38 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 09 Jan 2015 13:57:38 -0600 Subject: Crash-a-lot just became critical In-Reply-To: References: <54AECA8F.30002@hyperactivesw.com> Message-ID: <54B032B2.4040407@hyperactivesw.com> On 1/9/2015 12:34 PM, Dr. Hawkins wrote: > I remembered an address they have; livecode has a crashing stack. Thanks so much. You've probably saved the rest of us a bunch of headaches. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From ray at linkit.com Fri Jan 9 15:08:37 2015 From: ray at linkit.com (Ray) Date: Fri, 09 Jan 2015 17:08:37 -0300 Subject: Can't Move Backward In-Reply-To: <003501d01a22$f8f43ab0$eadcb010$@net> References: <54912789.70109@economy-x-talk.com> <54912D3A.1010203@economy-x-talk.com> <2664FDC7-23BC-405E-8617-E5EFEF1A1AC6@iotecdigital.com> <1418834388185-4686886.post@n4.nabble.com> <91CCE39C-BDFA-4EA0-B959-18F9A6EAED93@earthednet.org> <5491B795.5010200@LinkIt.Com> <11D6732B-1665-4F8A-9FD4-F1A7A11D7FDD@earthednet.org> <003501d01a22$f8f43ab0$eadcb010$@net> Message-ID: <54B03545.3010500@LinkIt.Com> Mike - thanks for the idea but even a script like this fails on mouseUp lock messages go stack [legacyStackPath] end mouseUp The result is the file I chose is not a stack file. So currently I can't open a stack which is a nearly two years of work in an older version of Livecode. Meanwhile, 7.0.1 is so full of bugs (even playing a sound after 'waiting till sound is done' crashes) I can barely use the stack. I failed to maintain piles of old versions of my project trusting Livecode's claim that a release is stable and relying on the legacy saving ability. Both of these have failed leaving me pleading for suggestions. Anybody? -------- Original message -------- From: Mike Bonner Date:01/09/2015 12:38 PM (GMT-04:00) To: How to use LiveCode Cc: Subject: Re: Can't Move Backward You might turn off messages before opening the stack to see if it loads. Also, if you're double clicking to open the stack, try using the file menu instead. On Fri, Jan 9, 2015 at 7:19 AM, Ray wrote: > I'm trying a "Save As" on a stack file last saved in 7.0.1 so I can open > it in 6.5.2, the last stable version of Livecode that I know of. > > The choices are: > Legacy Livecode Stack (5.5) > Legacy Livecode Stack (2.7) > Legacy Livecode Stack (2.4) > > I would imagine my copy of Livecode 6.5.2 would open a stack file saved as > Legacy 5.5, but it doesn't. I can't remember back as far as 2.7 and 2.4. > > I am able to create a new, empty stack file in 7.0.1, save it in legacy > 5.5 and then open it in 6.5.2 so there's apparently something going on with > the first stack file. However, Livecode should open it and produce script > errors which I can then find and fix. If Livecode 6.5.2 doesn't even open > it then I'm stuck. > > Does anybody know how to move backward away from the many problems 7.0.1 > has without having to re-write years of work? > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From pete at lcsql.com Fri Jan 9 15:12:28 2015 From: pete at lcsql.com (Peter Haworth) Date: Fri, 9 Jan 2015 12:12:28 -0800 Subject: Crash-a-lot just became critical In-Reply-To: <54B03248.5050208@hyperactivesw.com> References: <54AECA8F.30002@hyperactivesw.com> <94DB42CE-661F-4D71-B059-61947F2BC307@verizon.net> <1051895867264.20150108181651@ahsoftware.net> <54AF4598.3070505@hyperactivesw.com> <1431911915930.20150108224420@ahsoftware.net> <931E8528-AECA-4989-B6B2-39244204BAC9@hyperactivesw.com> <732E2A34-8A95-43EC-BF03-D38B747340B4@gmail.com> <54B0180E.5060106@hyperactivesw.com> <54B03248.5050208@hyperactivesw.com> Message-ID: On Fri, Jan 9, 2015 at 11:55 AM, J. Landman Gay wrote: > But you're right that problems would occur with a card or stack level > handler that assumes a mouseEnter was always triggered by a control. > Right. Pretty sure I have some card level mouseEnter handlers that check the mouseControl and act accordingly. I'll have to go back and check they work correctly if the mouseControl is empty. I just checked the release notes for 6.7 and there's no mention of this change in them, nor anything in the dictionary. Added a note about it to the dictionary with my lcDictNotes plugin, free, CE compatible (feels good to finally be able to say that!) at http://www.lcsql.com/free-stuff.html Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From userev at canelasoftware.com Fri Jan 9 15:15:15 2015 From: userev at canelasoftware.com (Mark Talluto) Date: Fri, 9 Jan 2015 12:15:15 -0800 Subject: LiveCode 7.0.1: Move is smooth! In-Reply-To: References: <3009E076-BBD8-4B11-830A-265D7898C164@canelasoftware.com> <131439AC-8CE1-4005-9D3C-409899EF69C8@canelasoftware.com> Message-ID: On Jan 9, 2015, at 9:16 AM, Devin Asay wrote: >> This feels weird replying to my own email. Had some response from this via direct email and thought I would make it even easier to see the difference. Here is a video for your enjoyment. >> https://www.youtube.com/watch?v=wjXHt8MqYNY > > Hi Mark, > > Oddly enough I can?t see a difference in the video, but I can clearly see that the ball motion is much smoother on my system in 6.7.x vs. 6.5.2. > > Devin > Hi Devin, Make sure you are full screen and HD mode through youtube. Making the code available so anyone can test this on any copy of LiveCode you wish. Best regards, Mark Talluto livecloud.io canelasoftware.com From userev at canelasoftware.com Fri Jan 9 15:18:41 2015 From: userev at canelasoftware.com (Mark Talluto) Date: Fri, 9 Jan 2015 12:18:41 -0800 Subject: LiveCode 7.0.1: Move is smooth! In-Reply-To: <8E7C927A-73B4-4C69-BCBA-6560916C44A7@verizon.net> References: <3009E076-BBD8-4B11-830A-265D7898C164@canelasoftware.com> <131439AC-8CE1-4005-9D3C-409899EF69C8@canelasoftware.com> <8E7C927A-73B4-4C69-BCBA-6560916C44A7@verizon.net> Message-ID: On Jan 9, 2015, at 9:22 AM, Colin Holgate wrote: > I noticed that and was going to say something, but if you go full screen you can see enough difference. > > >> On Jan 9, 2015, at 12:16 PM, Devin Asay wrote: >> >>> Oddly enough I can?t see a difference in the video, but I can clearly see that the ball motion is much smoother on my system in 6.7.x vs. 6.5.2. I just tried it again and can see what you are talking about. If you do not use the HD mode, you do not get enough frames per second to see the difference. I had to encode the video a second time to support 60 fps. Only then did it look accurate to what I could see when testing in the IDE. Thanks for pointing that out. Best regards, Mark Talluto livecloud.io canelasoftware.com From scott at tactilemedia.com Fri Jan 9 15:20:43 2015 From: scott at tactilemedia.com (Scott Rossi) Date: Fri, 9 Jan 2015 12:20:43 -0800 Subject: Can't Move Backward In-Reply-To: <54B03545.3010500@LinkIt.Com> References: <54912789.70109@economy-x-talk.com> <54912D3A.1010203@economy-x-talk.com> <2664FDC7-23BC-405E-8617-E5EFEF1A1AC6@iotecdigital.com> <1418834388185-4686886.post@n4.nabble.com> <91CCE39C-BDFA-4EA0-B959-18F9A6EAED93@earthednet.org> <5491B795.5010200@LinkIt.Com> <11D6732B-1665-4F8A-9FD4-F1A7A11D7FDD@earthednet.org> <003501d01a22$f8f43ab0$eadcb010$@net> <54B03545.3010500@LinkIt.Com> Message-ID: I believe what Mike was suggesting was to turn on lock messages, then use ?Open Stack?" in the File menu to launch the stack. This should prevent any startup scripts from firing, and you should then be able to choose "Save As?" and resave the stack. I haven?t done this with 7.0.1 but have done this often with 6.x and previous stacks. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On Jan 9, 2015, at 12:08 PM, Ray wrote: > > Mike - thanks for the idea but even a script like this fails > on mouseUp > lock messages > go stack [legacyStackPath] > end mouseUp > > The result is the file I chose is not a stack file. > > So currently I can't open a stack which is a nearly two years of work in an older version of Livecode. Meanwhile, 7.0.1 is so full of bugs (even playing a sound after 'waiting till sound is done' crashes) I can barely use the stack. I failed to maintain piles of old versions of my project trusting Livecode's claim that a release is stable and relying on the legacy saving ability. Both of these have failed leaving me pleading for suggestions. > > Anybody? > > -------- Original message -------- > From: Mike Bonner > Date:01/09/2015 12:38 PM (GMT-04:00) > To: How to use LiveCode > Cc: > Subject: Re: Can't Move Backward > > You might turn off messages before opening the stack to see if it loads. > Also, if you're double clicking to open the stack, try using the file menu > instead. > > On Fri, Jan 9, 2015 at 7:19 AM, Ray wrote: > > > I'm trying a "Save As" on a stack file last saved in 7.0.1 so I can open > > it in 6.5.2, the last stable version of Livecode that I know of. > > > > The choices are: > > Legacy Livecode Stack (5.5) > > Legacy Livecode Stack (2.7) > > Legacy Livecode Stack (2.4) > > > > I would imagine my copy of Livecode 6.5.2 would open a stack file saved as > > Legacy 5.5, but it doesn't. I can't remember back as far as 2.7 and 2.4. > > > > I am able to create a new, empty stack file in 7.0.1, save it in legacy > > 5.5 and then open it in 6.5.2 so there's apparently something going on with > > the first stack file. However, Livecode should open it and produce script > > errors which I can then find and fix. If Livecode 6.5.2 doesn't even open > > it then I'm stuck. > > > > Does anybody know how to move backward away from the many problems 7.0.1 > > has without having to re-write years of work? > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From alex at tweedly.net Fri Jan 9 16:21:57 2015 From: alex at tweedly.net (Alex Tweedly) Date: Fri, 09 Jan 2015 21:21:57 +0000 Subject: Free IP Calculator In-Reply-To: <72594843-7460-425D-932B-E552326432C7@iotecdigital.com> References: <72594843-7460-425D-932B-E552326432C7@iotecdigital.com> Message-ID: <54B04675.4080705@tweedly.net> Thanks Bob - that looks really useful. You do need one tiny tweak - the CIDR calculations are slightly off, because of the "."s in theBinSubnetMask. I added the line replace "." with empty in theBinSubnetMask just before put offset("0", theBinSubnetMask) into theFirstNodeChar to get the right answer (e.g. 24 instead of 27 in 192.168.1.1 255.255.255.0) Thanks again -- Alex. On 09/01/2015 00:44, Bob Sneidar wrote: > Hi all. > > It?s not often I get a chance to give something back to the LC community, so here is my contribution. I put together an IP calculator function which when passed any IP address and subnet mask returns an array of pretty much every value you want to know about your network. It may also help others who don?t know about how subnets are calculated to understand it a bit better. I didn?t do any error checking, because frankly there are a lot of bad values you can pass, including for example passing 0 for the first octet of the ip address or subnet, or passing the broadcast address as the IP address etc. > > I will add error checking later. so without further ado, here you go! > function IPCalc theIPAddress, theSubnetMask > set the itemdelimiter to "." > -- initial setup > set the numberFormat to "00000000" > > -- convert the ip address to binary > put 0 into whichOctet > repeat for each item theOctet in theIPAddress > add 1 to whichOctet > put baseConvert(theOctet, 10, 2) into item whichOctet of theBinIPAddress > add 0 to item whichOctet of theBinIPAddress > end repeat > > -- convert the subnet mask to binary > put 0 into whichOctet > repeat for each item theOctet in theSubnetMask > add 1 to whichOctet > put baseConvert(theOctet, 10, 2) into item whichOctet of theBinSubnetMask > add 0 to item whichOctet of theBinSubnetMask > end repeat > > -- calculate the binary subnet address > put offset("0", theBinSubnetMask) into theFirstNodeChar > put theFirstNodeChar -1 into theCIDRDepth > put char 1 to theFirstNodeChar -1 of theBinIPAddress into theBinNetworkAddr > put char theFirstNodeChar to -1 of theBinIPAddress into theBinNodeAddr > put theBinNodeAddr into theBinSubnetNodeAddr > set the numberFormat to "0" > replace "1" with "0" in theBinSubnetNodeAddr > put theBinNetworkAddr & theBinSubnetNodeAddr into theBinSubnetAddr > > -- convert the binary subnet address to decimal > put 0 into whichOctet > repeat for each item theOctet in theBinSubnetAddr > add 1 to whichOctet > put baseconvert(theOctet, 2, 10) into item whichOctet of theSubnetAddr > end repeat > > -- calculate the first usable IP address > put theSubnetAddr into theFirstAddr > add 1 to item 4 of theFirstAddr > > -- calculate the binary broadcast address > put theBinNodeAddr into theBinBcastNodeAddr > replace "0" with "1" in theBinBcastNodeAddr > put theBinNetworkAddr & theBinBcastNodeAddr into theBinBcastAddr > > -- convert the binary broadcast address to decimal > put 0 into whichOctet > repeat for each item theOctet in theBinBcastAddr > add 1 to whichOctet > put baseConvert(theOctet, 2 ,10) into item WhichOctet of theBcastAddr > end repeat > > -- calculate the last usable IP address > put theBcastAddr into theLastAddr > subtract 1 from item 4 of theLastAddr > > -- calculate the number of usable addresses > put item 4 of theLastAddr - item 4 of theFirstAddr +1 into theAddrCount > > -- calculate the CIDR notation > put theSubnetAddr & "/" & theCIDRDepth into theCIDRAddr > > -- create array > put theIPAddress into ipdata ["ipaddress"] > put theSubnetMask into ipdata ["subnetmask"] > put theSubnetAddr into ipdata ["subnetaddr"] > put theFirstAddr into ipdata ["firstaddr"] > put theBcastAddr into ipdata["bcastaddr"] > put theLastAddr into ipdata ["lastaddr"] > put theCIDRAddr into ipdata ["cidrdepth"] > put theAddrCount into ipdata ["usablecount"] > put theCIDRAddr into ipdata ["cidraddr"] > return ipdata > end IPCalc > > Bob S > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ray at linkit.com Fri Jan 9 16:41:40 2015 From: ray at linkit.com (Ray) Date: Fri, 09 Jan 2015 18:41:40 -0300 Subject: Can't Move Backward In-Reply-To: References: <54912789.70109@economy-x-talk.com> <54912D3A.1010203@economy-x-talk.com> <2664FDC7-23BC-405E-8617-E5EFEF1A1AC6@iotecdigital.com> <1418834388185-4686886.post@n4.nabble.com> <91CCE39C-BDFA-4EA0-B959-18F9A6EAED93@earthednet.org> <5491B795.5010200@LinkIt.Com> <11D6732B-1665-4F8A-9FD4-F1A7A11D7FDD@earthednet.org> <003501d01a22$f8f43ab0$eadcb010$@net> <54B03545.3010500@LinkIt.Com> Message-ID: <54B04B14.9070404@LinkIt.Com> Scott, could you help me with the exact syntax to 'turn on lock messages'? I've always used either 'lock messages' or 'set lockMessages to true' which I believe are the same (as I've done in the script below). In either case lockMessages is set to false at idle so I'm not sure what you and Mike mean by 'turning on' lock messages. Thanks, Ray On 1/9/2015 5:20 PM, Scott Rossi wrote: > I believe what Mike was suggesting was to turn on lock messages, then use ?Open Stack?" in the File menu to launch the stack. This should prevent any startup scripts from firing, and you should then be able to choose "Save As?" and resave the stack. > > I haven?t done this with 7.0.1 but have done this often with 6.x and previous stacks. > > Regards, > > Scott Rossi > Creative Director > Tactile Media, UX/UI Design > > On Jan 9, 2015, at 12:08 PM, Ray wrote: > >> Mike - thanks for the idea but even a script like this fails >> on mouseUp >> lock messages >> go stack [legacyStackPath] >> end mouseUp >> >> The result is the file I chose is not a stack file. >> >> So currently I can't open a stack which is a nearly two years of work in an older version of Livecode. Meanwhile, 7.0.1 is so full of bugs (even playing a sound after 'waiting till sound is done' crashes) I can barely use the stack. I failed to maintain piles of old versions of my project trusting Livecode's claim that a release is stable and relying on the legacy saving ability. Both of these have failed leaving me pleading for suggestions. >> >> Anybody? >> >> -------- Original message -------- >> From: Mike Bonner >> Date:01/09/2015 12:38 PM (GMT-04:00) >> To: How to use LiveCode >> Cc: >> Subject: Re: Can't Move Backward >> >> You might turn off messages before opening the stack to see if it loads. >> Also, if you're double clicking to open the stack, try using the file menu >> instead. >> >> On Fri, Jan 9, 2015 at 7:19 AM, Ray wrote: >> >>> I'm trying a "Save As" on a stack file last saved in 7.0.1 so I can open >>> it in 6.5.2, the last stable version of Livecode that I know of. >>> >>> The choices are: >>> Legacy Livecode Stack (5.5) >>> Legacy Livecode Stack (2.7) >>> Legacy Livecode Stack (2.4) >>> >>> I would imagine my copy of Livecode 6.5.2 would open a stack file saved as >>> Legacy 5.5, but it doesn't. I can't remember back as far as 2.7 and 2.4. >>> >>> I am able to create a new, empty stack file in 7.0.1, save it in legacy >>> 5.5 and then open it in 6.5.2 so there's apparently something going on with >>> the first stack file. However, Livecode should open it and produce script >>> errors which I can then find and fix. If Livecode 6.5.2 doesn't even open >>> it then I'm stuck. >>> >>> Does anybody know how to move backward away from the many problems 7.0.1 >>> has without having to re-write years of work? >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From scott at tactilemedia.com Fri Jan 9 16:44:59 2015 From: scott at tactilemedia.com (Scott Rossi) Date: Fri, 9 Jan 2015 13:44:59 -0800 Subject: Can't Move Backward In-Reply-To: <54B04B14.9070404@LinkIt.Com> References: <54912789.70109@economy-x-talk.com> <54912D3A.1010203@economy-x-talk.com> <2664FDC7-23BC-405E-8617-E5EFEF1A1AC6@iotecdigital.com> <1418834388185-4686886.post@n4.nabble.com> <91CCE39C-BDFA-4EA0-B959-18F9A6EAED93@earthednet.org> <5491B795.5010200@LinkIt.Com> <11D6732B-1665-4F8A-9FD4-F1A7A11D7FDD@earthednet.org> <003501d01a22$f8f43ab0$eadcb010$@net> <54B03545.3010500@LinkIt.Com> <54B04B14.9070404@LinkIt.Com> Message-ID: Ray: Press the button labeled ?Messages? in the main toolbar. It?s a toggle. Press it again to disable. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On Jan 9, 2015, at 1:41 PM, Ray wrote: > Scott, could you help me with the exact syntax to 'turn on lock messages'? I've always used either 'lock messages' or 'set lockMessages to true' which I believe are the same (as I've done in the script below). In either case lockMessages is set to false at idle so I'm not sure what you and Mike mean by 'turning on' lock messages. > > Thanks, > > Ray > > On 1/9/2015 5:20 PM, Scott Rossi wrote: >> I believe what Mike was suggesting was to turn on lock messages, then use ?Open Stack?" in the File menu to launch the stack. This should prevent any startup scripts from firing, and you should then be able to choose "Save As?" and resave the stack. >> >> I haven?t done this with 7.0.1 but have done this often with 6.x and previous stacks. >> >> Regards, >> >> Scott Rossi >> Creative Director >> Tactile Media, UX/UI Design >> >> On Jan 9, 2015, at 12:08 PM, Ray wrote: >> >>> Mike - thanks for the idea but even a script like this fails >>> on mouseUp >>> lock messages >>> go stack [legacyStackPath] >>> end mouseUp >>> >>> The result is the file I chose is not a stack file. >>> >>> So currently I can't open a stack which is a nearly two years of work in an older version of Livecode. Meanwhile, 7.0.1 is so full of bugs (even playing a sound after 'waiting till sound is done' crashes) I can barely use the stack. I failed to maintain piles of old versions of my project trusting Livecode's claim that a release is stable and relying on the legacy saving ability. Both of these have failed leaving me pleading for suggestions. >>> >>> Anybody? >>> >>> -------- Original message -------- >>> From: Mike Bonner >>> Date:01/09/2015 12:38 PM (GMT-04:00) >>> To: How to use LiveCode >>> Cc: >>> Subject: Re: Can't Move Backward >>> >>> You might turn off messages before opening the stack to see if it loads. >>> Also, if you're double clicking to open the stack, try using the file menu >>> instead. >>> >>> On Fri, Jan 9, 2015 at 7:19 AM, Ray wrote: >>> >>>> I'm trying a "Save As" on a stack file last saved in 7.0.1 so I can open >>>> it in 6.5.2, the last stable version of Livecode that I know of. >>>> >>>> The choices are: >>>> Legacy Livecode Stack (5.5) >>>> Legacy Livecode Stack (2.7) >>>> Legacy Livecode Stack (2.4) >>>> >>>> I would imagine my copy of Livecode 6.5.2 would open a stack file saved as >>>> Legacy 5.5, but it doesn't. I can't remember back as far as 2.7 and 2.4. >>>> >>>> I am able to create a new, empty stack file in 7.0.1, save it in legacy >>>> 5.5 and then open it in 6.5.2 so there's apparently something going on with >>>> the first stack file. However, Livecode should open it and produce script >>>> errors which I can then find and fix. If Livecode 6.5.2 doesn't even open >>>> it then I'm stuck. >>>> >>>> Does anybody know how to move backward away from the many problems 7.0.1 >>>> has without having to re-write years of work? >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ray at linkit.com Fri Jan 9 16:47:07 2015 From: ray at linkit.com (Ray) Date: Fri, 09 Jan 2015 18:47:07 -0300 Subject: Can't Move Backward In-Reply-To: References: <54912789.70109@economy-x-talk.com> <54912D3A.1010203@economy-x-talk.com> <2664FDC7-23BC-405E-8617-E5EFEF1A1AC6@iotecdigital.com> <1418834388185-4686886.post@n4.nabble.com> <91CCE39C-BDFA-4EA0-B959-18F9A6EAED93@earthednet.org> <5491B795.5010200@LinkIt.Com> <11D6732B-1665-4F8A-9FD4-F1A7A11D7FDD@earthednet.org> <003501d01a22$f8f43ab0$eadcb010$@net> <54B03545.3010500@LinkIt.Com> Message-ID: <54B04C5B.6050807@LinkIt.Com> Scott - thanks again. I just tried that and unfortunately it doesn't work. I forgot to mention that I've also tried 'exit to top' on the first card's preOpenStack handler. I believe this would also stop any scripts from running. Nonetheless, even choosing Open Stack... from Livecode 6.5.2's File menu produces the same error displaying "There was a problem opening that stack: file is not a stack" and does not open the stack file in any way. On 1/9/2015 5:20 PM, Scott Rossi wrote: > I believe what Mike was suggesting was to turn on lock messages, then use ?Open Stack?" in the File menu to launch the stack. This should prevent any startup scripts from firing, and you should then be able to choose "Save As?" and resave the stack. > > I haven?t done this with 7.0.1 but have done this often with 6.x and previous stacks. > > Regards, > > Scott Rossi > Creative Director > Tactile Media, UX/UI Design > > On Jan 9, 2015, at 12:08 PM, Ray wrote: > >> Mike - thanks for the idea but even a script like this fails >> on mouseUp >> lock messages >> go stack [legacyStackPath] >> end mouseUp >> >> The result is the file I chose is not a stack file. >> >> So currently I can't open a stack which is a nearly two years of work in an older version of Livecode. Meanwhile, 7.0.1 is so full of bugs (even playing a sound after 'waiting till sound is done' crashes) I can barely use the stack. I failed to maintain piles of old versions of my project trusting Livecode's claim that a release is stable and relying on the legacy saving ability. Both of these have failed leaving me pleading for suggestions. >> >> Anybody? >> >> -------- Original message -------- >> From: Mike Bonner >> Date:01/09/2015 12:38 PM (GMT-04:00) >> To: How to use LiveCode >> Cc: >> Subject: Re: Can't Move Backward >> >> You might turn off messages before opening the stack to see if it loads. >> Also, if you're double clicking to open the stack, try using the file menu >> instead. >> >> On Fri, Jan 9, 2015 at 7:19 AM, Ray wrote: >> >>> I'm trying a "Save As" on a stack file last saved in 7.0.1 so I can open >>> it in 6.5.2, the last stable version of Livecode that I know of. >>> >>> The choices are: >>> Legacy Livecode Stack (5.5) >>> Legacy Livecode Stack (2.7) >>> Legacy Livecode Stack (2.4) >>> >>> I would imagine my copy of Livecode 6.5.2 would open a stack file saved as >>> Legacy 5.5, but it doesn't. I can't remember back as far as 2.7 and 2.4. >>> >>> I am able to create a new, empty stack file in 7.0.1, save it in legacy >>> 5.5 and then open it in 6.5.2 so there's apparently something going on with >>> the first stack file. However, Livecode should open it and produce script >>> errors which I can then find and fix. If Livecode 6.5.2 doesn't even open >>> it then I'm stuck. >>> >>> Does anybody know how to move backward away from the many problems 7.0.1 >>> has without having to re-write years of work? >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From scott at tactilemedia.com Fri Jan 9 17:13:12 2015 From: scott at tactilemedia.com (Scott Rossi) Date: Fri, 9 Jan 2015 14:13:12 -0800 Subject: Can't Move Backward In-Reply-To: <54B04C5B.6050807@LinkIt.Com> References: <54912789.70109@economy-x-talk.com> <54912D3A.1010203@economy-x-talk.com> <2664FDC7-23BC-405E-8617-E5EFEF1A1AC6@iotecdigital.com> <1418834388185-4686886.post@n4.nabble.com> <91CCE39C-BDFA-4EA0-B959-18F9A6EAED93@earthednet.org> <5491B795.5010200@LinkIt.Com> <11D6732B-1665-4F8A-9FD4-F1A7A11D7FDD@earthednet.org> <003501d01a22$f8f43ab0$eadcb010$@net> <54B03545.3010500@LinkIt.Com> <54B04C5B.6050807@LinkIt.Com> Message-ID: <3B6FCDF3-320E-4D66-8EEC-F5BDDED80755@tactilemedia.com> So when you selected ?Save As?? did you choose ?Legacy LiveCode Stack (5.5)? from the Format pulldown at the bottom of the dialog? I just created a basic stack in 7.0.1, saved it in 5.5 format, and it opened correctly in both 5.5 and 6.7, so I have to imagine 6.5.2 should be fine. You should try the same with a test stack and see if you get the same results. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On Jan 9, 2015, at 1:47 PM, Ray wrote: > Scott - thanks again. I just tried that and unfortunately it doesn't work. > > I forgot to mention that I've also tried 'exit to top' on the first card's preOpenStack handler. I believe this would also stop any scripts from running. Nonetheless, even choosing Open Stack... from Livecode 6.5.2's File menu produces the same error displaying "There was a problem opening that stack: file is not a stack" and does not open the stack file in any way. > > On 1/9/2015 5:20 PM, Scott Rossi wrote: >> I believe what Mike was suggesting was to turn on lock messages, then use ?Open Stack?" in the File menu to launch the stack. This should prevent any startup scripts from firing, and you should then be able to choose "Save As?" and resave the stack. >> >> I haven?t done this with 7.0.1 but have done this often with 6.x and previous stacks. >> >> Regards, >> >> Scott Rossi >> Creative Director >> Tactile Media, UX/UI Design >> >> On Jan 9, 2015, at 12:08 PM, Ray wrote: >> >>> Mike - thanks for the idea but even a script like this fails >>> on mouseUp >>> lock messages >>> go stack [legacyStackPath] >>> end mouseUp >>> >>> The result is the file I chose is not a stack file. >>> >>> So currently I can't open a stack which is a nearly two years of work in an older version of Livecode. Meanwhile, 7.0.1 is so full of bugs (even playing a sound after 'waiting till sound is done' crashes) I can barely use the stack. I failed to maintain piles of old versions of my project trusting Livecode's claim that a release is stable and relying on the legacy saving ability. Both of these have failed leaving me pleading for suggestions. >>> >>> Anybody? >>> >>> -------- Original message -------- >>> From: Mike Bonner >>> Date:01/09/2015 12:38 PM (GMT-04:00) >>> To: How to use LiveCode >>> Cc: >>> Subject: Re: Can't Move Backward >>> >>> You might turn off messages before opening the stack to see if it loads. >>> Also, if you're double clicking to open the stack, try using the file menu >>> instead. >>> >>> On Fri, Jan 9, 2015 at 7:19 AM, Ray wrote: >>> >>>> I'm trying a "Save As" on a stack file last saved in 7.0.1 so I can open >>>> it in 6.5.2, the last stable version of Livecode that I know of. >>>> >>>> The choices are: >>>> Legacy Livecode Stack (5.5) >>>> Legacy Livecode Stack (2.7) >>>> Legacy Livecode Stack (2.4) >>>> >>>> I would imagine my copy of Livecode 6.5.2 would open a stack file saved as >>>> Legacy 5.5, but it doesn't. I can't remember back as far as 2.7 and 2.4. >>>> >>>> I am able to create a new, empty stack file in 7.0.1, save it in legacy >>>> 5.5 and then open it in 6.5.2 so there's apparently something going on with >>>> the first stack file. However, Livecode should open it and produce script >>>> errors which I can then find and fix. If Livecode 6.5.2 doesn't even open >>>> it then I'm stuck. >>>> >>>> Does anybody know how to move backward away from the many problems 7.0.1 >>>> has without having to re-write years of work? >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dochawk at gmail.com Fri Jan 9 17:41:33 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Fri, 9 Jan 2015 14:41:33 -0800 Subject: Crash-a-lot just became critical In-Reply-To: <54B032B2.4040407@hyperactivesw.com> References: <54AECA8F.30002@hyperactivesw.com> <54B032B2.4040407@hyperactivesw.com> Message-ID: On Fri, Jan 9, 2015 at 11:57 AM, J. Landman Gay wrote: > Thanks so much. You've probably saved the rest of us a bunch of headache > Now if only they'll fix it fast enough to end mine . . . :) -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From ray at linkit.com Fri Jan 9 18:15:30 2015 From: ray at linkit.com (Ray) Date: Fri, 09 Jan 2015 20:15:30 -0300 Subject: Can't Move Backward In-Reply-To: <3B6FCDF3-320E-4D66-8EEC-F5BDDED80755@tactilemedia.com> References: <54912789.70109@economy-x-talk.com> <54912D3A.1010203@economy-x-talk.com> <2664FDC7-23BC-405E-8617-E5EFEF1A1AC6@iotecdigital.com> <1418834388185-4686886.post@n4.nabble.com> <91CCE39C-BDFA-4EA0-B959-18F9A6EAED93@earthednet.org> <5491B795.5010200@LinkIt.Com> <11D6732B-1665-4F8A-9FD4-F1A7A11D7FDD@earthednet.org> <003501d01a22$f8f43ab0$eadcb010$@net> <54B03545.3010500@LinkIt.Com> <54B04C5B.6050807@LinkIt.Com> <3B6FCDF3-320E-4D66-8EEC-F5BDDED80755@tactilemedia.com> Message-ID: <54B06112.1090602@LinkIt.Com> Already tried it. I'm actually sticking with 6.5.2. I can create a new stack file from scratch in 7.0.1, save it as legacy 5.5 and then re-pen it in 6.5.2 fine. I just can't open /my stack file/ the same way, although it continues to open correctly and function fine in 7.0.1. On 1/9/2015 7:13 PM, Scott Rossi wrote: > So when you selected ?Save As?? did you choose ?Legacy LiveCode Stack (5.5)? from the Format pulldown at the bottom of the dialog? > > I just created a basic stack in 7.0.1, saved it in 5.5 format, and it opened correctly in both 5.5 and 6.7, so I have to imagine 6.5.2 should be fine. > > You should try the same with a test stack and see if you get the same results. > > Regards, > > Scott Rossi > Creative Director > Tactile Media, UX/UI Design > > > On Jan 9, 2015, at 1:47 PM, Ray wrote: > >> Scott - thanks again. I just tried that and unfortunately it doesn't work. >> >> I forgot to mention that I've also tried 'exit to top' on the first card's preOpenStack handler. I believe this would also stop any scripts from running. Nonetheless, even choosing Open Stack... from Livecode 6.5.2's File menu produces the same error displaying "There was a problem opening that stack: file is not a stack" and does not open the stack file in any way. >> >> On 1/9/2015 5:20 PM, Scott Rossi wrote: >>> I believe what Mike was suggesting was to turn on lock messages, then use ?Open Stack?" in the File menu to launch the stack. This should prevent any startup scripts from firing, and you should then be able to choose "Save As?" and resave the stack. >>> >>> I haven?t done this with 7.0.1 but have done this often with 6.x and previous stacks. >>> >>> Regards, >>> >>> Scott Rossi >>> Creative Director >>> Tactile Media, UX/UI Design >>> >>> On Jan 9, 2015, at 12:08 PM, Ray wrote: >>> >>>> Mike - thanks for the idea but even a script like this fails >>>> on mouseUp >>>> lock messages >>>> go stack [legacyStackPath] >>>> end mouseUp >>>> >>>> The result is the file I chose is not a stack file. >>>> >>>> So currently I can't open a stack which is a nearly two years of work in an older version of Livecode. Meanwhile, 7.0.1 is so full of bugs (even playing a sound after 'waiting till sound is done' crashes) I can barely use the stack. I failed to maintain piles of old versions of my project trusting Livecode's claim that a release is stable and relying on the legacy saving ability. Both of these have failed leaving me pleading for suggestions. >>>> >>>> Anybody? >>>> >>>> -------- Original message -------- >>>> From: Mike Bonner >>>> Date:01/09/2015 12:38 PM (GMT-04:00) >>>> To: How to use LiveCode >>>> Cc: >>>> Subject: Re: Can't Move Backward >>>> >>>> You might turn off messages before opening the stack to see if it loads. >>>> Also, if you're double clicking to open the stack, try using the file menu >>>> instead. >>>> >>>> On Fri, Jan 9, 2015 at 7:19 AM, Ray wrote: >>>> >>>>> I'm trying a "Save As" on a stack file last saved in 7.0.1 so I can open >>>>> it in 6.5.2, the last stable version of Livecode that I know of. >>>>> >>>>> The choices are: >>>>> Legacy Livecode Stack (5.5) >>>>> Legacy Livecode Stack (2.7) >>>>> Legacy Livecode Stack (2.4) >>>>> >>>>> I would imagine my copy of Livecode 6.5.2 would open a stack file saved as >>>>> Legacy 5.5, but it doesn't. I can't remember back as far as 2.7 and 2.4. >>>>> >>>>> I am able to create a new, empty stack file in 7.0.1, save it in legacy >>>>> 5.5 and then open it in 6.5.2 so there's apparently something going on with >>>>> the first stack file. However, Livecode should open it and produce script >>>>> errors which I can then find and fix. If Livecode 6.5.2 doesn't even open >>>>> it then I'm stuck. >>>>> >>>>> Does anybody know how to move backward away from the many problems 7.0.1 >>>>> has without having to re-write years of work? >>>>> >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>> subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Fri Jan 9 18:22:05 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 09 Jan 2015 15:22:05 -0800 Subject: Can't Move Backward In-Reply-To: <54B06112.1090602@LinkIt.Com> References: <54B06112.1090602@LinkIt.Com> Message-ID: <54B0629D.6090408@fourthworld.com> FWIW my test results were the same as Scott's, unable to reproduce this issue. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From bobsneidar at iotecdigital.com Fri Jan 9 19:22:25 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Sat, 10 Jan 2015 00:22:25 +0000 Subject: Free IP Calculator In-Reply-To: <54B04675.4080705@tweedly.net> References: <72594843-7460-425D-932B-E552326432C7@iotecdigital.com> <54B04675.4080705@tweedly.net> Message-ID: Great I?ll update my code. I am also going to update it to accept CIDR notation as the input so you will not be required to enter a subnet mask. Bob S On Jan 9, 2015, at 13:21 , Alex Tweedly > wrote: Thanks Bob - that looks really useful. You do need one tiny tweak - the CIDR calculations are slightly off, because of the "."s in theBinSubnetMask. I added the line replace "." with empty in theBinSubnetMask just before put offset("0", theBinSubnetMask) into theFirstNodeChar to get the right answer (e.g. 24 instead of 27 in 192.168.1.1 255.255.255.0) Thanks again -- Alex. From bobsneidar at iotecdigital.com Fri Jan 9 19:42:37 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Sat, 10 Jan 2015 00:42:37 +0000 Subject: Free IP Calculator In-Reply-To: <54B04675.4080705@tweedly.net> References: <72594843-7460-425D-932B-E552326432C7@iotecdigital.com> <54B04675.4080705@tweedly.net> Message-ID: Looks like that whacks some other things. I?ll look at this on the weekend and verify all the returned values are correct. I can?t believe I saw 25 when it was supposed to be 23 and I didn?t catch it. Bob S On Jan 9, 2015, at 13:21 , Alex Tweedly > wrote: Thanks Bob - that looks really useful. You do need one tiny tweak - the CIDR calculations are slightly off, because of the "."s in theBinSubnetMask. I added the line replace "." with empty in theBinSubnetMask just before put offset("0", theBinSubnetMask) into theFirstNodeChar to get the right answer (e.g. 24 instead of 27 in 192.168.1.1 255.255.255.0) Thanks again -- Alex. From bonnmike at gmail.com Fri Jan 9 20:56:36 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Fri, 9 Jan 2015 18:56:36 -0700 Subject: Can't Move Backward In-Reply-To: <54B0629D.6090408@fourthworld.com> References: <54B06112.1090602@LinkIt.Com> <54B0629D.6090408@fourthworld.com> Message-ID: I have an idea. (probably a stupid idea) if you select the stack, and copy it to the clipboard, then save the clipboarddata["objects"] to a file.. THen in 6.5.2, grab the data in that file, shove it back into the clipboarddata["objects"] and then "paste" does that allow you to get the stack popped up in the version you want to use, so that you can then save it? On Fri, Jan 9, 2015 at 4:22 PM, Richard Gaskin wrote: > FWIW my test results were the same as Scott's, unable to reproduce this > issue. > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jacque at hyperactivesw.com Fri Jan 9 22:20:33 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 09 Jan 2015 21:20:33 -0600 Subject: Can't Move Backward In-Reply-To: <54B06112.1090602@LinkIt.Com> References: <54912789.70109@economy-x-talk.com> <54912D3A.1010203@economy-x-talk.com> <2664FDC7-23BC-405E-8617-E5EFEF1A1AC6@iotecdigital.com> <1418834388185-4686886.post@n4.nabble.com> <91CCE39C-BDFA-4EA0-B959-18F9A6EAED93@earthednet.org> <5491B795.5010200@LinkIt.Com> <11D6732B-1665-4F8A-9FD4-F1A7A11D7FDD@earthednet.org> <003501d01a22$f8f43ab0$eadcb010$@net> <54B03545.3010500@LinkIt.Com> <54B04C5B.6050807@LinkIt.Com> <3B6FCDF3-320E-4D66-8EEC-F5BDDED80755@tactilemedia.com> <54B06112.1090602@LinkIt.Com> Message-ID: <54B09A81.2040306@hyperactivesw.com> On 1/9/2015 5:15 PM, Ray wrote: > Already tried it. I'm actually sticking with 6.5.2. I can create a new > stack file from scratch in 7.0.1, save it as legacy 5.5 and then re-pen > it in 6.5.2 fine. I just can't open /my stack file/ the same way, > although it continues to open correctly and function fine in 7.0.1. If all else fails, see if RR support will let you send it to them. They should be able to repair the file format pretty easily. It may also be a bug they would want to know about. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From coiin at verizon.net Fri Jan 9 23:12:53 2015 From: coiin at verizon.net (Colin Holgate) Date: Fri, 09 Jan 2015 23:12:53 -0500 Subject: 64 bitness Message-ID: Before Christmas Ben mentioned that there would be iOS 64 bit abilities in LiveCode. It?s worth noting that Sheep Herder was just updated in the app store, with 64 bit support. From brahma at hindu.org Sat Jan 10 00:39:12 2015 From: brahma at hindu.org (Brahmanathaswami) Date: Fri, 09 Jan 2015 19:39:12 -1000 Subject: Can't Move Backward In-Reply-To: <54B06112.1090602@LinkIt.Com> References: <54912789.70109@economy-x-talk.com> <54912D3A.1010203@economy-x-talk.com> <2664FDC7-23BC-405E-8617-E5EFEF1A1AC6@iotecdigital.com> <1418834388185-4686886.post@n4.nabble.com> <91CCE39C-BDFA-4EA0-B959-18F9A6EAED93@earthednet.org> <5491B795.5010200@LinkIt.Com> <11D6732B-1665-4F8A-9FD4-F1A7A11D7FDD@earthednet.org> <003501d01a22$f8f43ab0$eadcb010$@net> <54B03545.3010500@LinkIt.Com> <54B04C5B.6050807@LinkIt.Com> <3B6FCDF3-320E-4D66-8EEC-F5BDDED80755@tactilemedia.com> <54B06112.1090602@LinkIt.Com> Message-ID: <54B0BB00.3000608@hindu.org> Ray, I also was sweating it out yesterday with a very important project/stack that was stuck in 7.0.1 which is, as you say so full of bugs as to be useless...but would not open in 6.6.2 (pretty stable...) What I did was created a new button on the first card and in my na?vet?: on mouseup set the stackfileversion to 6 save this stack close this stack quit end mouseup clicked on the button... then it opened in 6.6.2 Go figure... "6" is not a valid legacy format .... but it worked Swasti Astu, Be Well! Brahmanathaswami Kauai's Hindu Monastery www.HimalayanAcademy.com Ray wrote: > Already tried it. I'm actually sticking with 6.5.2. I can create a > new stack file from scratch in 7.0.1, save it as legacy 5.5 and then > re-pen it in 6.5.2 fine. I just can't open /my stack file/ the same > way, although it continues to open correctly and function fine in 7.0.1. From nigels at amglighthouse.co.za Sat Jan 10 07:00:30 2015 From: nigels at amglighthouse.co.za (Nigel Soden) Date: Sat, 10 Jan 2015 14:00:30 +0200 Subject: [ATT] Derek Henderson. South Africa Message-ID: Hi FlexibleLearning - I live in South Africa and been using LiveCode for just under 2 years. If your having problems getting hold of Derek you can e-mail me his telephone number I?ll be able to assist him. My e-mail address is nigels at amglighthouse.co.za Nigel From lists at mangomultimedia.com Sat Jan 10 07:55:49 2015 From: lists at mangomultimedia.com (Trevor DeVore) Date: Sat, 10 Jan 2015 07:55:49 -0500 Subject: 64 bitness In-Reply-To: References: Message-ID: On Friday, January 9, 2015, Colin Holgate wrote: > Before Christmas Ben mentioned that there would be iOS 64 bit abilities in > LiveCode. It?s worth noting that Sheep Herder was just updated in the app > store, with 64 bit support. > Looking at the commits in Github, it appears that 6.7.2 rc-1 is being tested for release. It has a number of commits from an iOS 64 bit branch. So it shouldn't be long at all. -- Trevor DeVore From livfoss at mac.com Sat Jan 10 08:06:43 2015 From: livfoss at mac.com (Graham Samuel) Date: Sat, 10 Jan 2015 14:06:43 +0100 Subject: How buggy is 7.0.1? In-Reply-To: <54B03545.3010500@LinkIt.Com> References: <54912789.70109@economy-x-talk.com> <54912D3A.1010203@economy-x-talk.com> <2664FDC7-23BC-405E-8617-E5EFEF1A1AC6@iotecdigital.com> <1418834388185-4686886.post@n4.nabble.com> <91CCE39C-BDFA-4EA0-B959-18F9A6EAED93@earthednet.org> <5491B795.5010200@LinkIt.Com> <11D6732B-1665-4F8A-9FD4-F1A7A11D7FDD@earthednet.org> <003501d01a22$f8f43ab0$eadcb010$@net> <54B03545.3010500@LinkIt.Com> Message-ID: I?ve been kind of following ?Can?t Move Backward" conversation, and I have to say that the app I?m working on seems to be fine in 7.0.1. I have generated standalones for both Mac and PC that run well and don?t crash. I have found the odd bug, but I really mean ?odd? (minus infinity is a number, anyone?). Although the program has quite a few stacks and palettes, low thousands of lines of code and a certain amount of Unicode manipulation, it clearly isn?t putting a strain on 7.0.1. IMHO it would be nice to take a straw poll of the experience of listers, to get an idea if the general experience is as extreme as Ray?s and the other people currently having big trouble with this version, and whether a lot of people are simply sticking with earlier versions. I think the mother ship would be interested in this too. Graham > On 9 Jan 2015, at 21:08, Ray wrote (In the ?Can?t Move Backward Discussion): [?] > So currently I can't open a stack which is a nearly two years of work in an older version of Livecode. Meanwhile, 7.0.1 is so full of bugs (even playing a sound after 'waiting till sound is done' crashes) I can barely use the stack. I failed to maintain piles of old versions of my project trusting Livecode's claim that a release is stable and relying on the legacy saving ability. Both of these have failed leaving me pleading for suggestions. From shawnlivecode at gmail.com Sat Jan 10 10:47:46 2015 From: shawnlivecode at gmail.com (Shawn Blc) Date: Sat, 10 Jan 2015 09:47:46 -0600 Subject: [beginner] x,y coordinates in LiveCode Message-ID: I'm trying to find the x,y coordinates with a mouse hover to find the location of buttons on my card. Perhaps a little stack or something. Trying to create a menu and need to the x,y coordinates for several buttons. From roger.e.eller at sealedair.com Sat Jan 10 10:54:32 2015 From: roger.e.eller at sealedair.com (Roger Eller) Date: Sat, 10 Jan 2015 10:54:32 -0500 Subject: [beginner] x,y coordinates in LiveCode In-Reply-To: References: Message-ID: put the loc of btn "myButton" On Jan 10, 2015 10:48 AM, "Shawn Blc" wrote: > I'm trying to find the x,y coordinates with a mouse hover to find the > location of buttons on my card. > > Perhaps a little stack or something. Trying to create a menu and need to > the x,y coordinates for several buttons. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From prothero at earthednet.org Sat Jan 10 11:01:28 2015 From: prothero at earthednet.org (Earthednet-wp) Date: Sat, 10 Jan 2015 08:01:28 -0800 Subject: How buggy is 7.0.1? In-Reply-To: References: <54912789.70109@economy-x-talk.com> <54912D3A.1010203@economy-x-talk.com> <2664FDC7-23BC-405E-8617-E5EFEF1A1AC6@iotecdigital.com> <1418834388185-4686886.post@n4.nabble.com> <91CCE39C-BDFA-4EA0-B959-18F9A6EAED93@earthednet.org> <5491B795.5010200@LinkIt.Com> <11D6732B-1665-4F8A-9FD4-F1A7A11D7FDD@earthednet.org> <003501d01a22$f8f43ab0$eadcb010$@net> <54B03545.3010500@LinkIt.Com> Message-ID: <8FDD0E51-193C-4A6F-A2A8-A872A1744E77@earthednet.org> Graham, I've been using 7.0.1 for several months. I have an app with coupla thousand lines of code and about a dozen substacks. I have found it pretty good, rarely crashing unexpectedly. However, I do wish I'd stayed with the 6 series. I experienced one crash that comes and goes (only Allah and hopefully the dev team) knows why. But, in a version of my app that does crash, I can reliably initiate the crash, which helps the dev team sort it out. The CEF browser hangs on Flash plugins, in osx. As I've begun my testing on windows, I've had a problem with snapshot on my 32bit windows 7 (parallels VM) and CEF browser hangs on a windows standalone, but not in the IDE. Also annoying in windows is the tabbed button object's background color won't set. I've gotten quite familiar with the bug report system, and have reported all of these. So far, I haven't been stopped in my tracks, except for a YouTube video I want to play, and the lack of a 64bit version means that the CEF browser won't play Flash videos in Windows 64bit installations, which eliminates YouTube. So I'll have to host an mp4 version on my own server temporarily, until the issue is fixed. That's it for now. I don't depend on my livecode work for my income, so I have a bit more tolerance for this painful period where the dev team is moving livecode to the next, best and greatest level of wonderfulness. After living with Adobe Director's neglect and slow and painful decline, I'm very optimistic about livecode's future and find the developers' responsiveness very refreshing. It's an incredibly complicated piece of software and the sooner those of us who can, will pitch in and report bugs, the sooner the product will get where we need it to be. Regards, Bill William Prothero http://es.earthednet.org > On Jan 10, 2015, at 5:06 AM, Graham Samuel wrote: > > I?ve been kind of following ?Can?t Move Backward" conversation, and I have to say that the app I?m working on seems to be fine in 7.0.1. I have generated standalones for both Mac and PC that run well and don?t crash. I have found the odd bug, but I really mean ?odd? (minus infinity is a number, anyone?). Although the program has quite a few stacks and palettes, low thousands of lines of code and a certain amount of Unicode manipulation, it clearly isn?t putting a strain on 7.0.1. > > IMHO it would be nice to take a straw poll of the experience of listers, to get an idea if the general experience is as extreme as Ray?s and the other people currently having big trouble with this version, and whether a lot of people are simply sticking with earlier versions. I think the mother ship would be interested in this too. > > Graham > >> On 9 Jan 2015, at 21:08, Ray wrote (In the ?Can?t Move Backward Discussion): > > [?] >> So currently I can't open a stack which is a nearly two years of work in an older version of Livecode. Meanwhile, 7.0.1 is so full of bugs (even playing a sound after 'waiting till sound is done' crashes) I can barely use the stack. I failed to maintain piles of old versions of my project trusting Livecode's claim that a release is stable and relying on the legacy saving ability. Both of these have failed leaving me pleading for suggestions. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From coiin at verizon.net Sat Jan 10 11:11:08 2015 From: coiin at verizon.net (Colin Holgate) Date: Sat, 10 Jan 2015 11:11:08 -0500 Subject: [beginner] x,y coordinates in LiveCode In-Reply-To: References: Message-ID: A card script like this could be quicker: on mouseenter put the loc of the target end mouseenter Then you could point at each of the buttons and fields. > On Jan 10, 2015, at 10:54 AM, Roger Eller wrote: > > put the loc of btn "myButton" > On Jan 10, 2015 10:48 AM, "Shawn Blc" wrote: > >> I'm trying to find the x,y coordinates with a mouse hover to find the >> location of buttons on my card. >> >> Perhaps a little stack or something. Trying to create a menu and need to >> the x,y coordinates for several buttons. >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pmbrig at gmail.com Sat Jan 10 11:28:40 2015 From: pmbrig at gmail.com (Peter M. Brigham) Date: Sat, 10 Jan 2015 11:28:40 -0500 Subject: [beginner] x,y coordinates in LiveCode In-Reply-To: References: Message-ID: <582B9375-1970-4BA1-80C7-2DAF067B1041@gmail.com> On Jan 10, 2015, at 10:47 AM, Shawn Blc wrote: > I'm trying to find the x,y coordinates with a mouse hover to find the > location of buttons on my card. > > Perhaps a little stack or something. Trying to create a menu and need to > the x,y coordinates for several buttons. What are you trying to do? If you run into problems, give us an idea of the task at hand and you'll probably get lots of ideas on how to accomplish it. -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig From lists at mangomultimedia.com Sat Jan 10 11:47:46 2015 From: lists at mangomultimedia.com (Trevor DeVore) Date: Sat, 10 Jan 2015 11:47:46 -0500 Subject: How buggy is 7.0.1? In-Reply-To: References: <54912789.70109@economy-x-talk.com> <54912D3A.1010203@economy-x-talk.com> <2664FDC7-23BC-405E-8617-E5EFEF1A1AC6@iotecdigital.com> <1418834388185-4686886.post@n4.nabble.com> <91CCE39C-BDFA-4EA0-B959-18F9A6EAED93@earthednet.org> <5491B795.5010200@LinkIt.Com> <11D6732B-1665-4F8A-9FD4-F1A7A11D7FDD@earthednet.org> <003501d01a22$f8f43ab0$eadcb010$@net> <54B03545.3010500@LinkIt.Com> Message-ID: On Sat, Jan 10, 2015 at 8:06 AM, Graham Samuel wrote: > I?ve been kind of following ?Can?t Move Backward" conversation, and I have > to say that the app I?m working on seems to be fine in 7.0.1. I have > generated standalones for both Mac and PC that run well and don?t crash. I > have found the odd bug, but I really mean ?odd? (minus infinity is a > number, anyone?). Although the program has quite a few stacks and palettes, > low thousands of lines of code and a certain amount of Unicode > manipulation, it clearly isn?t putting a strain on 7.0.1. > Hi Graham, I'm using LiveCode 7 for work on a major upgrade to one of my products. I'm in the IDE the better part of the day and it is working well for me. The RunRev engineers have been very responsive in getting bugs fixed and included in the next update. Since the updates are coming along at such a regular pace I don't worry about a bug keeping me from being able to release. -- Trevor DeVore ScreenSteps www.screensteps.com - www.clarify-it.com From dunbarx at aol.com Sat Jan 10 12:36:51 2015 From: dunbarx at aol.com (dunbarx at aol.com) Date: Sat, 10 Jan 2015 12:36:51 -0500 Subject: [beginner] x,y coordinates in LiveCode In-Reply-To: <582B9375-1970-4BA1-80C7-2DAF067B1041@gmail.com> References: <582B9375-1970-4BA1-80C7-2DAF067B1041@gmail.com> Message-ID: <8D1FB13268AC7DA-EEC-BBD8F@webmail-m297.sysops.aol.com> Shawn: Do you need the "x,y" if all you are trying to do is find the locs of controls? Perhaps in the card script: on mouseWithin --or "mouseEnter"? put the name of the target && the loc of the target end mouseWithin But there are other ways as well, using the "within" operator with a "mouseMove" message, for example. Craig -----Original Message----- From: Peter M. Brigham To: How to use LiveCode Sent: Sat, Jan 10, 2015 11:29 am Subject: Re: [beginner] x,y coordinates in LiveCode On Jan 10, 2015, at 10:47 AM, Shawn Blc wrote: > I'm trying to find the x,y coordinates with a mouse hover to find the > location of buttons on my card. > > Perhaps a little stack or something. Trying to create a menu and need to > the x,y coordinates for several buttons. What are you trying to do? If you run into problems, give us an idea of the task at hand and you'll probably get lots of ideas on how to accomplish it. -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From coiin at verizon.net Sat Jan 10 12:47:38 2015 From: coiin at verizon.net (Colin Holgate) Date: Sat, 10 Jan 2015 12:47:38 -0500 Subject: [beginner] x,y coordinates in LiveCode In-Reply-To: <8D1FB13268AC7DA-EEC-BBD8F@webmail-m297.sysops.aol.com> References: <582B9375-1970-4BA1-80C7-2DAF067B1041@gmail.com> <8D1FB13268AC7DA-EEC-BBD8F@webmail-m297.sysops.aol.com> Message-ID: <58CA57F1-4CA1-482C-A3A7-7C13F001C08D@verizon.net> You may notice by now the similarity between your suggestion and what I suggested. One slight difference is that I tested mine first, and discovered that mousewithin doesn?t work as a card script, at least not on its own. Reading the dictionary it seems that a mousewithin handler has to be inside the object itself. > On Jan 10, 2015, at 12:36 PM, dunbarx at aol.com wrote: > > > Do you need the "x,y" if all you are trying to do is find the locs of controls? Perhaps in the card script: > > > on mouseWithin --or "mouseEnter"? > put the name of the target && the loc of the target > end mouseWithin From ambassador at fourthworld.com Sat Jan 10 12:50:38 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 10 Jan 2015 09:50:38 -0800 Subject: [beginner] x,y coordinates in LiveCode In-Reply-To: References: Message-ID: <54B1666E.3060709@fourthworld.com> Shawn Bl wrote: > I'm trying to find the x,y coordinates with a mouse hover to find the > location of buttons on my card. > > Perhaps a little stack or something. Trying to create a menu and need to > the x,y coordinates for several buttons. Like most languages, LiveCode provides a way to express the bounding rectangle of an object, as well as its location. But it may be helpful to note that these values may be different from what you'll find in other languages. For example, in JavaScript/CSS, the order of rectangle coordinates is: top, right, bottom, left ...but in LiveCode (and other xTalks) the order is: left, top, right, bottom Also, in some other languages the location property is a pair of coordinates expressing the top-left of the object, but in xTalks like LiveCode the location is the centerpoint of the object. Thankfully both languages use the same order for points, x,y. Possibly beyond the scope of your interest, if you're coming from a CSS background it can be helpful to remember that the margin property in LC is the opposite how it's used in CSS: in CSS the margin defines the area outside of the control's border, but in LiveCode is defines the boundary within the border (such as the space between the edge of a field and the text within it). In LiveCode you can observe and modify the size and location properties of selected controls with the "Size and Position" pane of the Inspector. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From ambassador at fourthworld.com Sat Jan 10 12:58:10 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 10 Jan 2015 09:58:10 -0800 Subject: [beginner] x,y coordinates in LiveCode In-Reply-To: <58CA57F1-4CA1-482C-A3A7-7C13F001C08D@verizon.net> References: <58CA57F1-4CA1-482C-A3A7-7C13F001C08D@verizon.net> Message-ID: <54B16832.9010708@fourthworld.com> Colin Holgate wrote: > I suggested. One slight difference is that I tested mine first, > and discovered that mousewithin doesn?t work as a card script, > at least not on its own. Reading the dictionary it seems that > a mousewithin handler has to be inside the object itself. Coordinates are a good opportunity to take advantage of something we have in LiveCode that we only dreamed about in HC: mouseMove. It's a good fit here because it's always sent when the mouse is in motion, and not sent when at rest which is nice since at those moments it's not needed. on mouseMove x,y put "Object: "& the name of the target && the loc of the target &\ cr&"Mouse: "& x,y end mouseMove -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From dunbarx at aol.com Sat Jan 10 12:58:48 2015 From: dunbarx at aol.com (dunbarx at aol.com) Date: Sat, 10 Jan 2015 12:58:48 -0500 Subject: [beginner] x,y coordinates in LiveCode In-Reply-To: <58CA57F1-4CA1-482C-A3A7-7C13F001C08D@verizon.net> References: <582B9375-1970-4BA1-80C7-2DAF067B1041@gmail.com> <8D1FB13268AC7DA-EEC-BBD8F@webmail-m297.sysops.aol.com> <58CA57F1-4CA1-482C-A3A7-7C13F001C08D@verizon.net> Message-ID: <8D1FB1637E95A69-EEC-BBFF7@webmail-m297.sysops.aol.com> Colin. Hi. Long time... I do not get all the mails from the use-list. And never my own, though I used to. But anyway, this works for me in the card script. Why wouldn't it? Craig -----Original Message----- From: Colin Holgate To: How to use LiveCode Sent: Sat, Jan 10, 2015 12:48 pm Subject: Re: [beginner] x,y coordinates in LiveCode You may notice by now the similarity between your suggestion and what I suggested. One slight difference is that I tested mine first, and discovered that mousewithin doesn?t work as a card script, at least not on its own. Reading the dictionary it seems that a mousewithin handler has to be inside the object itself. > On Jan 10, 2015, at 12:36 PM, dunbarx at aol.com wrote: > > > Do you need the "x,y" if all you are trying to do is find the locs of controls? Perhaps in the card script: > > > on mouseWithin --or "mouseEnter"? > put the name of the target && the loc of the target > end mouseWithin _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From dunbarx at aol.com Sat Jan 10 13:03:23 2015 From: dunbarx at aol.com (dunbarx at aol.com) Date: Sat, 10 Jan 2015 13:03:23 -0500 Subject: [beginner] x,y coordinates in LiveCode In-Reply-To: <54B1666E.3060709@fourthworld.com> References: <54B1666E.3060709@fourthworld.com> Message-ID: <8D1FB16DBFDA697-EEC-BC057@webmail-m297.sysops.aol.com> Colin. What did you mean by "testing"? I take it back. I had both a "mouseWithin" and a "mouseEnter" handler in the same script, just fooling around. When I comment out the "mouseEnter", the "mouseWithin" is not sent. And this is spelled out in the dictionary. Well what do you know? Craig -----Original Message----- From: Richard Gaskin To: use-livecode Sent: Sat, Jan 10, 2015 12:51 pm Subject: Re: [beginner] x,y coordinates in LiveCode Shawn Bl wrote: > I'm trying to find the x,y coordinates with a mouse hover to find the > location of buttons on my card. > > Perhaps a little stack or something. Trying to create a menu and need to > the x,y coordinates for several buttons. Like most languages, LiveCode provides a way to express the bounding rectangle of an object, as well as its location. But it may be helpful to note that these values may be different from what you'll find in other languages. For example, in JavaScript/CSS, the order of rectangle coordinates is: top, right, bottom, left ...but in LiveCode (and other xTalks) the order is: left, top, right, bottom Also, in some other languages the location property is a pair of coordinates expressing the top-left of the object, but in xTalks like LiveCode the location is the centerpoint of the object. Thankfully both languages use the same order for points, x,y. Possibly beyond the scope of your interest, if you're coming from a CSS background it can be helpful to remember that the margin property in LC is the opposite how it's used in CSS: in CSS the margin defines the area outside of the control's border, but in LiveCode is defines the boundary within the border (such as the space between the edge of a field and the text within it). In LiveCode you can observe and modify the size and location properties of selected controls with the "Size and Position" pane of the Inspector. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From dochawk at gmail.com Sat Jan 10 13:20:44 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Sat, 10 Jan 2015 10:20:44 -0800 Subject: opening a stack without changing current stack order? Message-ID: I need the formattedHeight and similar properties which only work on currently open cards. The processing, however, should be in the background and invisible to the user. I used to use push card open invisible card this of stack that pop card But now that I've gone to palettes instead of groups for controls, the recently closed palette pops up instead of the initial card/ What is the best way to get that card accessible without changing my stack order? -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From jacque at hyperactivesw.com Sat Jan 10 14:18:51 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 10 Jan 2015 13:18:51 -0600 Subject: opening a stack without changing current stack order? In-Reply-To: References: Message-ID: <54B17B1B.9050300@hyperactivesw.com> On 1/10/2015 12:20 PM, Dr. Hawkins wrote: > I need the formattedHeight and similar properties which only work on > currently open cards. The processing, however, should be in the background > and invisible to the user. > > I used to use > > push card > open invisible card this of stack that > pop card > > But now that I've gone to palettes instead of groups for controls, the > recently closed palette pops up instead of the initial card/ > > What is the best way to get that card accessible without changing my stack > order? > > Is the stack in RAM? You can get any property of anything if the stack is in memory and you provide a full reference: get the formattedheight of fld x of cd y of stack z It doesn't even have to be the current card of that stack. If the stack is not in RAM you don't need to specifically open it, you can do the same thing by refering to the stack by its file path: get the formattedheight of fld x of cd y of stack "volume/folder/stack.livecode" When you refer to a stack that way, it is placed in RAM but is not officially "opened" per se, there are no messages sent to it, and it is not in the message hierarchy. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From pete at lcsql.com Sat Jan 10 14:47:32 2015 From: pete at lcsql.com (Peter Haworth) Date: Sat, 10 Jan 2015 11:47:32 -0800 Subject: opening a stack without changing current stack order? In-Reply-To: <54B17B1B.9050300@hyperactivesw.com> References: <54B17B1B.9050300@hyperactivesw.com> Message-ID: On Sat, Jan 10, 2015 at 11:18 AM, J. Landman Gay wrote: > When you refer to a stack that way, it is placed in RAM but is not > officially "opened" per se, there are no messages sent to it, and it is not > in the message hierarchy. Didn't know that, useful. Do such stacks show up in things like openStacks,revLoadedStacks? Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From shawnlivecode at gmail.com Sat Jan 10 15:02:21 2015 From: shawnlivecode at gmail.com (Shawn Blc) Date: Sat, 10 Jan 2015 14:02:21 -0600 Subject: [beginner] x,y coordinates in LiveCode In-Reply-To: <54B16832.9010708@fourthworld.com> References: <58CA57F1-4CA1-482C-A3A7-7C13F001C08D@verizon.net> <54B16832.9010708@fourthworld.com> Message-ID: Thanks. Colin I used your idea, then Richards. Both work! Here's what I ended up with. *on* mouseMove x,y *put* "Object: "& the name of the target && the loc of the target &\ cr&"Mouse: "& x,y into fld "lblLocation" *end* mouseMove I'm doing not anything ground-breaking here. Just trying to get a some what good looking menu system. Here's what I have: *on* mouseUp *move* btn "btnA" to 95,102 *move* btn "btnB" to 95,130 *move* btn "btnC" to 95,158 *move* btn "btnD" to 95,186 *wait* until the mouse is up *end* mouseUp *on* mouseDoubleUp *move* btn "btnA" to 90,72 *move* btn "btnB" to 90,72 *move* btn "btnC" to 90,72 *move* btn "btnD" to 90,72 *wait* until the mouse is up *end* mouseDoubleUp On Sat, Jan 10, 2015 at 11:58 AM, Richard Gaskin wrote: > Colin Holgate wrote: > > I suggested. One slight difference is that I tested mine first, > > and discovered that mousewithin doesn?t work as a card script, > > at least not on its own. Reading the dictionary it seems that > > a mousewithin handler has to be inside the object itself. > > Coordinates are a good opportunity to take advantage of something we have > in LiveCode that we only dreamed about in HC: mouseMove. > > It's a good fit here because it's always sent when the mouse is in motion, > and not sent when at rest which is nice since at those moments it's not > needed. > > on mouseMove x,y > put "Object: "& the name of the target && the loc of the target &\ > cr&"Mouse: "& x,y > end mouseMove > > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From shawnlivecode at gmail.com Sat Jan 10 15:05:27 2015 From: shawnlivecode at gmail.com (Shawn Blc) Date: Sat, 10 Jan 2015 14:05:27 -0600 Subject: [beginner] x,y coordinates in LiveCode In-Reply-To: References: <58CA57F1-4CA1-482C-A3A7-7C13F001C08D@verizon.net> <54B16832.9010708@fourthworld.com> Message-ID: Using the code for my menu it looks good, but I can easily confuse LC by clicking fast, sometimes two buttons will move, other times three. Most of the time all four buttons will drop (correctly), but like I said, by clicking fast I can easily confuse LC. On Sat, Jan 10, 2015 at 2:02 PM, Shawn Blc wrote: > Thanks. Colin I used your idea, then Richards. Both work! Here's what I > ended up with. > > *on* mouseMove x,y > > *put* "Object: "& the name of the target && the loc of the target &\ > > cr&"Mouse: "& x,y into fld "lblLocation" > > *end* mouseMove > > > I'm doing not anything ground-breaking here. Just trying to get a some > what good looking menu system. > > Here's what I have: > > > *on* mouseUp > > *move* btn "btnA" to 95,102 > > *move* btn "btnB" to 95,130 > > *move* btn "btnC" to 95,158 > > *move* btn "btnD" to 95,186 > > *wait* until the mouse is up > > *end* mouseUp > > > *on* mouseDoubleUp > > *move* btn "btnA" to 90,72 > > *move* btn "btnB" to 90,72 > > *move* btn "btnC" to 90,72 > > *move* btn "btnD" to 90,72 > > *wait* until the mouse is up > > *end* mouseDoubleUp > > > > > On Sat, Jan 10, 2015 at 11:58 AM, Richard Gaskin < > ambassador at fourthworld.com> wrote: > >> Colin Holgate wrote: >> > I suggested. One slight difference is that I tested mine first, >> > and discovered that mousewithin doesn?t work as a card script, >> > at least not on its own. Reading the dictionary it seems that >> > a mousewithin handler has to be inside the object itself. >> >> Coordinates are a good opportunity to take advantage of something we have >> in LiveCode that we only dreamed about in HC: mouseMove. >> >> It's a good fit here because it's always sent when the mouse is in >> motion, and not sent when at rest which is nice since at those moments it's >> not needed. >> >> on mouseMove x,y >> put "Object: "& the name of the target && the loc of the target &\ >> cr&"Mouse: "& x,y >> end mouseMove >> >> >> -- >> Richard Gaskin >> Fourth World Systems >> Software Design and Development for the Desktop, Mobile, and the Web >> ____________________________________________________________________ >> Ambassador at FourthWorld.com http://www.FourthWorld.com >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > From coiin at verizon.net Sat Jan 10 15:11:36 2015 From: coiin at verizon.net (Colin Holgate) Date: Sat, 10 Jan 2015 15:11:36 -0500 Subject: [beginner] x,y coordinates in LiveCode In-Reply-To: References: <58CA57F1-4CA1-482C-A3A7-7C13F001C08D@verizon.net> <54B16832.9010708@fourthworld.com> Message-ID: <103B9E32-5FA1-47E1-8A8E-73FC59CEC4E7@verizon.net> Look at doing the move without messages. *move* btn "btnA" to 95,102 without messages etc. From revdev at pdslabs.net Sat Jan 10 15:30:41 2015 From: revdev at pdslabs.net (Phil Davis) Date: Sat, 10 Jan 2015 12:30:41 -0800 Subject: 64 bitness In-Reply-To: References: Message-ID: <54B18BF1.9020304@pdslabs.net> Is there any possibility there will be a 64-bit server version of 6.7.2, or is the 64-bitness for building iOS apps only? A 64-bit server version would be wonderful for Dreamhost users like myself (assuming it would run at speeds typical to 6.x, and not at 7.x speeds). Thanks - Phil Davis On 1/10/15 4:55 AM, Trevor DeVore wrote: > On Friday, January 9, 2015, Colin Holgate wrote: > >> Before Christmas Ben mentioned that there would be iOS 64 bit abilities in >> LiveCode. It?s worth noting that Sheep Herder was just updated in the app >> store, with 64 bit support. >> > Looking at the commits in Github, it appears that 6.7.2 rc-1 is being > tested for release. It has a number of commits from an iOS 64 bit branch. > So it shouldn't be long at all. > -- Phil Davis From mwieder at ahsoftware.net Sat Jan 10 15:41:38 2015 From: mwieder at ahsoftware.net (Mark Wieder) Date: Sat, 10 Jan 2015 12:41:38 -0800 Subject: 64 bitness In-Reply-To: <54B18BF1.9020304@pdslabs.net> References: <54B18BF1.9020304@pdslabs.net> Message-ID: <271876706455.20150110124138@ahsoftware.net> Phil- Saturday, January 10, 2015, 12:30:41 PM, you wrote: > Is there any possibility there will be a 64-bit server version of 6.7.2, > or is the 64-bitness for building iOS apps only? A 64-bit server version > would be wonderful for Dreamhost users like myself (assuming it would > run at speeds typical to 6.x, and not at 7.x speeds). Don't know, but I do note that there are 64-bit servers for the 7.x builds. Does that help any? -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From revdev at pdslabs.net Sat Jan 10 16:04:35 2015 From: revdev at pdslabs.net (Phil Davis) Date: Sat, 10 Jan 2015 13:04:35 -0800 Subject: 64 bitness In-Reply-To: <271876706455.20150110124138@ahsoftware.net> References: <54B18BF1.9020304@pdslabs.net> <271876706455.20150110124138@ahsoftware.net> Message-ID: <54B193E3.1010409@pdslabs.net> Hi Mark, Since DreamHost upgraded their servers to require 64-bit, I'm now using LC 7.0.1 64-bit in my DH accounts. It does work, but it adds *at least* a couple of seconds to every request's response time over the old 32-bit 6.x. Those speeds neutralize our LC server app bragging rights! But it's all we have for the moment. So you can see why I hope for a 64-bit build of 6.x server. However I would definitely "settle for" (read "prefer") a super-speedy 64-bit 7.x release! Thanks - Phil On 1/10/15 12:41 PM, Mark Wieder wrote: > Phil- > > Saturday, January 10, 2015, 12:30:41 PM, you wrote: > >> Is there any possibility there will be a 64-bit server version of 6.7.2, >> or is the 64-bitness for building iOS apps only? A 64-bit server version >> would be wonderful for Dreamhost users like myself (assuming it would >> run at speeds typical to 6.x, and not at 7.x speeds). > Don't know, but I do note that there are 64-bit servers for the 7.x > builds. Does that help any? > -- Phil Davis From ambassador at fourthworld.com Sat Jan 10 16:16:49 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 10 Jan 2015 13:16:49 -0800 Subject: 64 bitness In-Reply-To: <271876706455.20150110124138@ahsoftware.net> References: <271876706455.20150110124138@ahsoftware.net> Message-ID: <54B196C1.30307@fourthworld.com> Mark Wieder wrote: > Phil- > > Saturday, January 10, 2015, 12:30:41 PM, you wrote: > >> Is there any possibility there will be a 64-bit server version of 6.7.2, >> or is the 64-bitness for building iOS apps only? A 64-bit server version >> would be wonderful for Dreamhost users like myself (assuming it would >> run at speeds typical to 6.x, and not at 7.x speeds). > > Don't know, but I do note that there are 64-bit servers for the 7.x > builds. Does that help any? It gives us half of the solution we need, but unfortunately it's like so many other cases in life where half a solution isn't a complete solution. The remaining issue is performance. Thanks to Malte's testing initiative, we've identified several areas where v7 needs to be optimized to bring it up to performance parity with v6.7. The team is working on that now - kudos to RunRev's recent hire Peter B. for his help stewarding the benchmarking effort. On the desktop the difference is often negligible, but a server environment is a harsh mistress where performance is critical and has implications for load handling that can impair scalability. There are two sets of performance issues with LC v7 on a server: runtime and startup. At runtime, we can see in faceless mode pretty much what we can see in a GUI, that the wonderful job they've done with Unicode support requires, as we expected, more time for encoding checks and coersion. Additionally, the area we're less likely to care about in a GUI, and which matters a lot for any CGI, is startup time. Peter B. has confirmed something I found running LC with strace, that the init sequence is spending way too much time on font stuff. For many versions now we've had the ability to generate graphics from the faceless engine, which is nice when you need it but most CGIs don't. So one option might be to provide a flag for turning off graphics handling, and thus bypassing all such initialization with fonts and more altogether (hopefully along with removing some of the unused flags that are still reserved, as noted in the bug report you filed a while back). But that would be a last resort. Right now there's a sense that they should be able to speed up init time without having to make us decide whether or not our CGI will need graphics support. So the startup stuff I'm not too worried about, even it is is perhaps the largest noticeable difference in overall CGI throughput right now. Once that's done, it's a far more challenging task to get core operations working at 6.7-level speed, things like chunk expressions, array split/combine, some aspects of file I/O, and more. Transparent Unicode handling is a beautiful thing, and no one expected it would be both feature-complete and highly-optimized in the same build. Optimization will take some time. But how much time is the question. I had suggested they consider a 64-bit build of v6.7 for Linux and Server (I tend to use mostly standalones for CGI), but after reviewing the prospect the team felt that it would be too much effort for a version we all hope will be short-lived. That said, it can only be short-lived to the degree that we can optimize v7, so until I hear more about the optimization effort it seems we're in a chickens-and-eggs situation: we want to have the smallest number of builds to maintain and test (ideally just 7 & 8 for a while), but we need to be able to handle the same work we've done with v6.7. Of course I'll relay here any news on optimization as I learn more.... -- Richard Gaskin LiveCode Community Manager richard at livecode.org From brahma at hindu.org Sat Jan 10 16:26:51 2015 From: brahma at hindu.org (Brahmanathaswami) Date: Sat, 10 Jan 2015 11:26:51 -1000 Subject: How buggy is 7.0.1? In-Reply-To: References: <54912789.70109@economy-x-talk.com> <54912D3A.1010203@economy-x-talk.com> <2664FDC7-23BC-405E-8617-E5EFEF1A1AC6@iotecdigital.com> <1418834388185-4686886.post@n4.nabble.com> <91CCE39C-BDFA-4EA0-B959-18F9A6EAED93@earthednet.org> <5491B795.5010200@LinkIt.Com> <11D6732B-1665-4F8A-9FD4-F1A7A11D7FDD@earthednet.org> <003501d01a22$f8f43ab0$eadcb010$@net> <54B03545.3010500@LinkIt.Com> Message-ID: <54B1991B.6090108@hindu.org> A rambling answer to your "Straw Poll" : We have a desktop app that Andre built and continues to maintain, which we depend on heavily for communicating with a MySQL database on our web server. It's so much better than a web interface for accessing tables etc. I have volunteers in several different countries that use this to help with data entry to the web site. Runs on Mac or PC. But in 7.0.1 the libURL, POST, Headers etc all seem to be giving us (Andre) major troubles. I had to rescue the stack (save as legacy) and now he's working with it in 6.6.1. And the issues with POST seem to have gone away. I really do have faith in LC, and I need to keep moving forward because the upgrades to the field object will be very important for our work. I'm not sure if Andre submitted a bug report... Is anyone else successing POSTing large amts of data from a desktop app in 7? I'm talking about large JSON objects, MP3 files, Jpeg's etc. he's tried to identify the problem to report it... not sure where that is at the moment. Also as someone else noted, the CEF browser is pretty buggy... I don't have a recipe yet... because I don't have time to play around much.. .I need to pick the path of least resistance to staying up and running...if something doesn't work I typically move to path where I get the job done and this means no more testing on the "broken path"... which, I realize, is not very helpful. As an aside: Yosemite has it's own issues, so the line between what we see in LiveCode being an LC issue or a Mac OS X issue seems a bit blurry at times... flickering progress bars etc. Again, I'm not in a good position to qualify these issues... All that said I have start up some new projects that are totally desktop/local in 7.0.1. and other than having to stay away from the CEF browser, things are working. None of them use libURL... Swasti Astu, Be Well! Brahmanathaswami Kauai's Hindu Monastery www.HimalayanAcademy.com Graham Samuel wrote: > I?ve been kind of following ?Can?t Move Backward" conversation, and I have to say that the app I?m working on seems to be fine in 7.0.1. I have generated standalones for both Mac and PC that run well and don?t crash. I have found the odd bug, but I really mean ?odd? (minus infinity is a number, anyone?). Although the program has quite a few stacks and palettes, low thousands of lines of code and a certain amount of Unicode manipulation, it clearly isn?t putting a strain on 7.0.1. From prothero at earthednet.org Sat Jan 10 17:08:27 2015 From: prothero at earthednet.org (Earthednet-wp) Date: Sat, 10 Jan 2015 14:08:27 -0800 Subject: 64 bit? Message-ID: <255D2F06-2505-426B-8299-6DC6D4D06819@earthednet.org> I have been assuming livecode is not yet 64bit on windows. Is that true? If it is 64 bit, I will have to revise my bug report about flash videos in window 64 bit. Bill William Prothero http://es.earthednet.org From shawnlivecode at gmail.com Sat Jan 10 17:19:01 2015 From: shawnlivecode at gmail.com (Shawn Blc) Date: Sat, 10 Jan 2015 16:19:01 -0600 Subject: [Beginner] Put the label of btn "btnA" Message-ID: *put* the label of btn "btnA" and the label of fld "lblDate" into fld "fldTitle" When I use the above, I get false. From jacque at hyperactivesw.com Sat Jan 10 17:20:24 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 10 Jan 2015 16:20:24 -0600 Subject: opening a stack without changing current stack order? In-Reply-To: References: <54B17B1B.9050300@hyperactivesw.com> Message-ID: <54B1A5A8.7080700@hyperactivesw.com> On 1/10/2015 1:47 PM, Peter Haworth wrote: > On Sat, Jan 10, 2015 at 11:18 AM, J. Landman Gay > wrote: > >> When you refer to a stack that way, it is placed in RAM but is not >> officially "opened" per se, there are no messages sent to it, and it is not >> in the message hierarchy. > > > Didn't know that, useful. Do such stacks show up in things like > openStacks,revLoadedStacks? You'd have to check the "rev" stuff. The stack isn't in the openstacks but it is in the mainstacks. And "there is a stack " returns true. The stack behaves like any stack with destroystack set to false, after it has been closed. If it's important that it not be in RAM, the script needs to delete it. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bonnmike at gmail.com Sat Jan 10 17:30:35 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Sat, 10 Jan 2015 15:30:35 -0700 Subject: [Beginner] Put the label of btn "btnA" In-Reply-To: References: Message-ID: the word and makes it think you're doing an evaluation. if the label of btna and the lable of fld lbldate are not both true, then it'll give you false. don't use the word and, use the ampersand & as your string connector. put 1 && 2 && 3 (double ampersands put a space in between your string parts) will result in 1 2 3 On Sat, Jan 10, 2015 at 3:19 PM, Shawn Blc wrote: > *put* the label of btn "btnA" and the label of fld "lblDate" into fld > "fldTitle" > > > When I use the above, I get false. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dave at applicationinsight.com Sat Jan 10 17:30:06 2015 From: dave at applicationinsight.com (Dave Kilroy) Date: Sat, 10 Jan 2015 14:30:06 -0800 (PST) Subject: [Beginner] Put the label of btn "btnA" In-Reply-To: References: Message-ID: <1420929006175-4687622.post@n4.nabble.com> hey Shawn, I don't think fields have a 'label' property ----- "Some are born coders, some achieve coding, and some have coding thrust upon them." - William Shakespeare & Hugh Senior -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Beginner-Put-the-label-of-btn-btnA-tp4687619p4687622.html Sent from the Revolution - User mailing list archive at Nabble.com. From pete at lcsql.com Sat Jan 10 17:39:17 2015 From: pete at lcsql.com (Peter Haworth) Date: Sat, 10 Jan 2015 14:39:17 -0800 Subject: opening a stack without changing current stack order? In-Reply-To: <54B1A5A8.7080700@hyperactivesw.com> References: <54B17B1B.9050300@hyperactivesw.com> <54B1A5A8.7080700@hyperactivesw.com> Message-ID: On Sat, Jan 10, 2015 at 2:20 PM, J. Landman Gay wrote: > You'd have to check the "rev" stuff. The stack isn't in the openstacks but > it is in the mainstacks. And "there is a stack " returns true. > > The stack behaves like any stack with destroystack set to false, after it > has been closed. If it's important that it not be in RAM, the script needs > to delete it. > OK thanks. I'm guessing that's the mechanism the IDE uses to get the stack names of plugins at startup. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From dave at applicationinsight.com Sat Jan 10 17:38:03 2015 From: dave at applicationinsight.com (Dave Kilroy) Date: Sat, 10 Jan 2015 14:38:03 -0800 (PST) Subject: [Beginner] Put the label of btn "btnA" In-Reply-To: <1420929006175-4687622.post@n4.nabble.com> References: <1420929006175-4687622.post@n4.nabble.com> Message-ID: <1420929483995-4687624.post@n4.nabble.com> Aha a field CAN have a label! So what Mike said about ampersand then... ----- "Some are born coders, some achieve coding, and some have coding thrust upon them." - William Shakespeare & Hugh Senior -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Beginner-Put-the-label-of-btn-btnA-tp4687619p4687624.html Sent from the Revolution - User mailing list archive at Nabble.com. From pmbrig at gmail.com Sat Jan 10 17:43:10 2015 From: pmbrig at gmail.com (Peter M. Brigham) Date: Sat, 10 Jan 2015 17:43:10 -0500 Subject: [Beginner] Put the label of btn "btnA" In-Reply-To: References: Message-ID: <777E6980-3EC3-4DDD-961D-ECCB5DA4EF1E@gmail.com> On Jan 10, 2015, at 5:19 PM, Shawn Blc wrote: > *put* the label of btn "btnA" and the label of fld "lblDate" into fld > "fldTitle" > > > When I use the above, I get false. Buttons have labels, but fields don't. More properly, "label" is a property of buttons, but not of fields, so the label of fld "lblDate" will return empty. Then you use the binary operator "and" which requires boolean arguments. The engine will get the label of the button (a string of some kind) which evaluates to neither true nor false when treated as a boolean, and empty, which evaluates to neither true nor false when treated as a boolean, and the result of and is false. If you want to concatenate two strings, you should use the "&" operator: put "one thing " & "and another thing" into fld "fldTitle" will give you one thing and another thing And if you use "&&" then the space will be entered for you: put "one thing" && "and another thing" into fld "fldTitle" will give you one thing and another thing -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig From bonnmike at gmail.com Sat Jan 10 17:49:32 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Sat, 10 Jan 2015 15:49:32 -0700 Subject: [Beginner] Put the label of btn "btnA" In-Reply-To: <777E6980-3EC3-4DDD-961D-ECCB5DA4EF1E@gmail.com> References: <777E6980-3EC3-4DDD-961D-ECCB5DA4EF1E@gmail.com> Message-ID: Oh yep. No label for fields. (unless you create a label property for it of course) so putting the label of the field will put empty. Probably what you want is the text of the field. or just "put field "lbldate" On Sat, Jan 10, 2015 at 3:43 PM, Peter M. Brigham wrote: > On Jan 10, 2015, at 5:19 PM, Shawn Blc wrote: > > > *put* the label of btn "btnA" and the label of fld "lblDate" into fld > > "fldTitle" > > > > > > When I use the above, I get false. > > Buttons have labels, but fields don't. More properly, "label" is a > property of buttons, but not of fields, so the label of fld "lblDate" will > return empty. Then you use the binary operator "and" which requires boolean > arguments. The engine will get the label of the button (a string of some > kind) which evaluates to neither true nor false when treated as a boolean, > and empty, which evaluates to neither true nor false when treated as a > boolean, and the result of and is false. > If you want to concatenate two strings, you should use the "&" operator: > put "one thing " & "and another thing" into fld "fldTitle" > will give you > one thing and another thing > And if you use "&&" then the space will be entered for you: > put "one thing" && "and another thing" into fld "fldTitle" > will give you > one thing and another thing > > -- Peter > > Peter M. Brigham > pmbrig at gmail.com > http://home.comcast.net/~pmbrig > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From shawnlivecode at gmail.com Sat Jan 10 18:12:47 2015 From: shawnlivecode at gmail.com (Shawn Blc) Date: Sat, 10 Jan 2015 17:12:47 -0600 Subject: [Beginner] Put the label of btn "btnA" In-Reply-To: References: <777E6980-3EC3-4DDD-961D-ECCB5DA4EF1E@gmail.com> Message-ID: Thanks everyone. I'll try and update. On Sat, Jan 10, 2015 at 4:49 PM, Mike Bonner wrote: > Oh yep. No label for fields. (unless you create a label property for it of > course) so putting the label of the field will put empty. Probably what > you want is the text of the field. or just "put field "lbldate" > > On Sat, Jan 10, 2015 at 3:43 PM, Peter M. Brigham > wrote: > > > On Jan 10, 2015, at 5:19 PM, Shawn Blc wrote: > > > > > *put* the label of btn "btnA" and the label of fld "lblDate" into fld > > > "fldTitle" > > > > > > > > > When I use the above, I get false. > > > > Buttons have labels, but fields don't. More properly, "label" is a > > property of buttons, but not of fields, so the label of fld "lblDate" > will > > return empty. Then you use the binary operator "and" which requires > boolean > > arguments. The engine will get the label of the button (a string of some > > kind) which evaluates to neither true nor false when treated as a > boolean, > > and empty, which evaluates to neither true nor false when treated as a > > boolean, and the result of and is false. > > If you want to concatenate two strings, you should use the "&" operator: > > put "one thing " & "and another thing" into fld "fldTitle" > > will give you > > one thing and another thing > > And if you use "&&" then the space will be entered for you: > > put "one thing" && "and another thing" into fld "fldTitle" > > will give you > > one thing and another thing > > > > -- Peter > > > > Peter M. Brigham > > pmbrig at gmail.com > > http://home.comcast.net/~pmbrig > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From shawnlivecode at gmail.com Sat Jan 10 18:18:04 2015 From: shawnlivecode at gmail.com (Shawn Blc) Date: Sat, 10 Jan 2015 17:18:04 -0600 Subject: [Beginner] Put the label of btn "btnA" In-Reply-To: References: <777E6980-3EC3-4DDD-961D-ECCB5DA4EF1E@gmail.com> Message-ID: Excellent. Got it. Thanks guys. *put* the fld "lblDate" & " " & the label of btn "btnA" into fld "fldTitle" On Sat, Jan 10, 2015 at 5:12 PM, Shawn Blc wrote: > Thanks everyone. I'll try and update. > > On Sat, Jan 10, 2015 at 4:49 PM, Mike Bonner wrote: > >> Oh yep. No label for fields. (unless you create a label property for it >> of >> course) so putting the label of the field will put empty. Probably what >> you want is the text of the field. or just "put field "lbldate" >> >> On Sat, Jan 10, 2015 at 3:43 PM, Peter M. Brigham >> wrote: >> >> > On Jan 10, 2015, at 5:19 PM, Shawn Blc wrote: >> > >> > > *put* the label of btn "btnA" and the label of fld "lblDate" into fld >> > > "fldTitle" >> > > >> > > >> > > When I use the above, I get false. >> > >> > Buttons have labels, but fields don't. More properly, "label" is a >> > property of buttons, but not of fields, so the label of fld "lblDate" >> will >> > return empty. Then you use the binary operator "and" which requires >> boolean >> > arguments. The engine will get the label of the button (a string of some >> > kind) which evaluates to neither true nor false when treated as a >> boolean, >> > and empty, which evaluates to neither true nor false when treated as a >> > boolean, and the result of and is >> false. >> > If you want to concatenate two strings, you should use the "&" operator: >> > put "one thing " & "and another thing" into fld "fldTitle" >> > will give you >> > one thing and another thing >> > And if you use "&&" then the space will be entered for you: >> > put "one thing" && "and another thing" into fld "fldTitle" >> > will give you >> > one thing and another thing >> > >> > -- Peter >> > >> > Peter M. Brigham >> > pmbrig at gmail.com >> > http://home.comcast.net/~pmbrig >> > >> > >> > _______________________________________________ >> > use-livecode mailing list >> > use-livecode at lists.runrev.com >> > Please visit this url to subscribe, unsubscribe and manage your >> > subscription preferences: >> > http://lists.runrev.com/mailman/listinfo/use-livecode >> > >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > From bonnmike at gmail.com Sat Jan 10 18:24:06 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Sat, 10 Jan 2015 16:24:06 -0700 Subject: [Beginner] Put the label of btn "btnA" In-Reply-To: References: <777E6980-3EC3-4DDD-961D-ECCB5DA4EF1E@gmail.com> Message-ID: Couple notes.. put the fld "lblDate" & " " & the label of btn "btnA" into fld "fldTitle" It apparently doesn't matter in the above, but the word "The" is kinda the designates a property. the field "blahbla" apparently works, but field is an object not a property, so be careful of that. And then, you could simplify things by using the double ampersand method since it inserts a space for you. put fld "lblDate" && the label of btn "btnA" into fld "fldTitle" will putput the same as above because the && inserts a space. On Sat, Jan 10, 2015 at 4:18 PM, Shawn Blc wrote: > Excellent. Got it. Thanks guys. > > *put* the fld "lblDate" & " " & the label of btn "btnA" into fld > "fldTitle" > > On Sat, Jan 10, 2015 at 5:12 PM, Shawn Blc > wrote: > > > Thanks everyone. I'll try and update. > > > > On Sat, Jan 10, 2015 at 4:49 PM, Mike Bonner wrote: > > > >> Oh yep. No label for fields. (unless you create a label property for it > >> of > >> course) so putting the label of the field will put empty. Probably > what > >> you want is the text of the field. or just "put field "lbldate" > >> > >> On Sat, Jan 10, 2015 at 3:43 PM, Peter M. Brigham > >> wrote: > >> > >> > On Jan 10, 2015, at 5:19 PM, Shawn Blc wrote: > >> > > >> > > *put* the label of btn "btnA" and the label of fld "lblDate" into > fld > >> > > "fldTitle" > >> > > > >> > > > >> > > When I use the above, I get false. > >> > > >> > Buttons have labels, but fields don't. More properly, "label" is a > >> > property of buttons, but not of fields, so the label of fld "lblDate" > >> will > >> > return empty. Then you use the binary operator "and" which requires > >> boolean > >> > arguments. The engine will get the label of the button (a string of > some > >> > kind) which evaluates to neither true nor false when treated as a > >> boolean, > >> > and empty, which evaluates to neither true nor false when treated as a > >> > boolean, and the result of and is > >> false. > >> > If you want to concatenate two strings, you should use the "&" > operator: > >> > put "one thing " & "and another thing" into fld "fldTitle" > >> > will give you > >> > one thing and another thing > >> > And if you use "&&" then the space will be entered for you: > >> > put "one thing" && "and another thing" into fld "fldTitle" > >> > will give you > >> > one thing and another thing > >> > > >> > -- Peter > >> > > >> > Peter M. Brigham > >> > pmbrig at gmail.com > >> > http://home.comcast.net/~pmbrig > >> > > >> > > >> > _______________________________________________ > >> > use-livecode mailing list > >> > use-livecode at lists.runrev.com > >> > Please visit this url to subscribe, unsubscribe and manage your > >> > subscription preferences: > >> > http://lists.runrev.com/mailman/listinfo/use-livecode > >> > > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bonnmike at gmail.com Sat Jan 10 18:24:50 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Sat, 10 Jan 2015 16:24:50 -0700 Subject: [Beginner] Put the label of btn "btnA" In-Reply-To: References: <777E6980-3EC3-4DDD-961D-ECCB5DA4EF1E@gmail.com> Message-ID: Wow, my english is getting worse daily. Hope the previous is grokable. On Sat, Jan 10, 2015 at 4:24 PM, Mike Bonner wrote: > Couple notes.. > put the fld "lblDate" & " " & the label of btn "btnA" into fld "fldTitle" > > It apparently doesn't matter in the above, but the word "The" is kinda the > designates a property. the field "blahbla" apparently works, but field is > an object not a property, so be careful of that. > And then, you could simplify things by using the double ampersand method > since it inserts a space for you. > > put fld "lblDate" && the label of btn "btnA" into fld "fldTitle" will > putput the same as above because the && inserts a space. > > > > On Sat, Jan 10, 2015 at 4:18 PM, Shawn Blc > wrote: > >> Excellent. Got it. Thanks guys. >> >> *put* the fld "lblDate" & " " & the label of btn "btnA" into fld >> "fldTitle" >> >> On Sat, Jan 10, 2015 at 5:12 PM, Shawn Blc >> wrote: >> >> > Thanks everyone. I'll try and update. >> > >> > On Sat, Jan 10, 2015 at 4:49 PM, Mike Bonner >> wrote: >> > >> >> Oh yep. No label for fields. (unless you create a label property for >> it >> >> of >> >> course) so putting the label of the field will put empty. Probably >> what >> >> you want is the text of the field. or just "put field "lbldate" >> >> >> >> On Sat, Jan 10, 2015 at 3:43 PM, Peter M. Brigham >> >> wrote: >> >> >> >> > On Jan 10, 2015, at 5:19 PM, Shawn Blc wrote: >> >> > >> >> > > *put* the label of btn "btnA" and the label of fld "lblDate" into >> fld >> >> > > "fldTitle" >> >> > > >> >> > > >> >> > > When I use the above, I get false. >> >> > >> >> > Buttons have labels, but fields don't. More properly, "label" is a >> >> > property of buttons, but not of fields, so the label of fld "lblDate" >> >> will >> >> > return empty. Then you use the binary operator "and" which requires >> >> boolean >> >> > arguments. The engine will get the label of the button (a string of >> some >> >> > kind) which evaluates to neither true nor false when treated as a >> >> boolean, >> >> > and empty, which evaluates to neither true nor false when treated as >> a >> >> > boolean, and the result of and is >> >> false. >> >> > If you want to concatenate two strings, you should use the "&" >> operator: >> >> > put "one thing " & "and another thing" into fld "fldTitle" >> >> > will give you >> >> > one thing and another thing >> >> > And if you use "&&" then the space will be entered for you: >> >> > put "one thing" && "and another thing" into fld "fldTitle" >> >> > will give you >> >> > one thing and another thing >> >> > >> >> > -- Peter >> >> > >> >> > Peter M. Brigham >> >> > pmbrig at gmail.com >> >> > http://home.comcast.net/~pmbrig >> >> > >> >> > >> >> > _______________________________________________ >> >> > use-livecode mailing list >> >> > use-livecode at lists.runrev.com >> >> > Please visit this url to subscribe, unsubscribe and manage your >> >> > subscription preferences: >> >> > http://lists.runrev.com/mailman/listinfo/use-livecode >> >> > >> >> _______________________________________________ >> >> use-livecode mailing list >> >> use-livecode at lists.runrev.com >> >> Please visit this url to subscribe, unsubscribe and manage your >> >> subscription preferences: >> >> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> > >> > >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > From irog at mac.com Sat Jan 10 20:44:02 2015 From: irog at mac.com (Roger Guay) Date: Sat, 10 Jan 2015 18:44:02 -0700 Subject: [Beginner] Put the label of btn "btnA" In-Reply-To: References: <777E6980-3EC3-4DDD-961D-ECCB5DA4EF1E@gmail.com> Message-ID: You mean grokkable? > On Jan 10, 2015, at 4:24 PM, Mike Bonner wrote: > > grokable From shawnlivecode at gmail.com Sat Jan 10 21:00:11 2015 From: shawnlivecode at gmail.com (Shawn Blc) Date: Sat, 10 Jan 2015 20:00:11 -0600 Subject: [Beginner] Put the label of btn "btnA" In-Reply-To: References: <777E6980-3EC3-4DDD-961D-ECCB5DA4EF1E@gmail.com> Message-ID: Thanks guys. On Sat, Jan 10, 2015 at 7:44 PM, Roger Guay wrote: > You mean grokkable? > > > > On Jan 10, 2015, at 4:24 PM, Mike Bonner wrote: > > > > grokable > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bonnmike at gmail.com Sun Jan 11 00:26:46 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Sat, 10 Jan 2015 22:26:46 -0700 Subject: [Beginner] Put the label of btn "btnA" In-Reply-To: References: <777E6980-3EC3-4DDD-961D-ECCB5DA4EF1E@gmail.com> Message-ID: or grok-able? On Sat, Jan 10, 2015 at 7:00 PM, Shawn Blc wrote: > Thanks guys. > > On Sat, Jan 10, 2015 at 7:44 PM, Roger Guay wrote: > > > You mean grokkable? > > > > > > > On Jan 10, 2015, at 4:24 PM, Mike Bonner wrote: > > > > > > grokable > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From curry at pair.com Sun Jan 11 00:59:03 2015 From: curry at pair.com (Curry Kenworthy) Date: Sat, 10 Jan 2015 23:59:03 -0600 Subject: LiveCode Lullaby Message-ID: <54B21127.8000609@pair.com> I wanted to say, hope all friends, clients, and colleagues had a very Merry Christmas and Happy New Year! I also noticed an unusual way to use keywords, so I made a poem to test it. The script below does compile and run. Can you guess what it will output? on mouseUp -- livecode lullaby & syntax wrinkle -- by curryk a la twinkle, twinkle local local, global prop; put put and get and not stop put put and put after if; get get and get is in it put len(get) into go put live after with; get show put word go-1 of (mask \ && code && script) into ask go card go; put then into if if if is then then ask ask with with -- (sing a little faster on the last line) end mouseUp Tested on LC 5.5 and 7.01 on Windows. The idea is to be somewhat soothing, and confusing, but have a familiar ring to it for die hard coders. Don't sing this while operating heavy machinery. I hope 2015 is going well for all. I'll pop up again soon with updates for FT and WordLib, and maybe a new project! Best wishes, Curry Kenworthy Custom Software Development http://curryk.com/consulting/ From gerry.orkin at gmail.com Sun Jan 11 02:58:54 2015 From: gerry.orkin at gmail.com (Gerry) Date: Sun, 11 Jan 2015 18:58:54 +1100 Subject: iOS push notifications: why are they asked for? In-Reply-To: References: <54AF308B.4050000@gmail.com> Message-ID: <713ABA9E-34C9-4A8A-A11E-F47F77A977C5@gmail.com> Just for LC apps, or all apps? Because I've install LOTS of other apps and never get this message from apps that don't have a obvious need for notification permissions. g > On 9 Jan 2015, at 11:23 pm, Sean Cole (Pi) wrote: > > This is now the norm in iOS8 applications it would seem. From curry at pair.com Sun Jan 11 03:18:22 2015 From: curry at pair.com (Curry Kenworthy) Date: Sun, 11 Jan 2015 02:18:22 -0600 Subject: Repeat With Repeat Message-ID: <54B231CE.6030908@pair.com> Here's another example that doesn't rhyme, but I was testing again how flexible the current LiveCode is with its keywords: on mouseUp put len(get) into put put put after with put with before add add add to add repeat with repeat=with to add add repeat to answer end repeat answer answer end mouseUp Best wishes, Curry K. From revolution at derbrill.de Sun Jan 11 10:19:38 2015 From: revolution at derbrill.de (Malte Brill) Date: Sun, 11 Jan 2015 16:19:38 +0100 Subject: Repeat With Repeat In-Reply-To: References: Message-ID: <10CFBC94-8951-4922-ABB4-4A4EF93C0CC3@derbrill.de> One of the reasons why I always have strict compile enabled :-) Saves me from shooting my foot (rhyming or not) quite a few times. ;-) All the best, Malte From bobcole at earthlink.net Sun Jan 11 10:49:41 2015 From: bobcole at earthlink.net (Bob Cole) Date: Sun, 11 Jan 2015 09:49:41 -0600 Subject: Fields Have Labels Message-ID: Try this in a new stack with one field. It works: set the label of field 1 to "Label Test" put the label of field 1 From irog at mac.com Sun Jan 11 10:58:33 2015 From: irog at mac.com (Roger Guay) Date: Sun, 11 Jan 2015 08:58:33 -0700 Subject: Fields Have Labels In-Reply-To: References: Message-ID: <335C4AD6-C7AC-400A-922E-2C687C5174C4@mac.com> Ya but you can?t set the showName of a field to true, so what good is the label? > On Jan 11, 2015, at 8:49 AM, Bob Cole wrote: > > put the label of field 1 From pete at lcsql.com Sun Jan 11 11:04:58 2015 From: pete at lcsql.com (Peter Haworth) Date: Sun, 11 Jan 2015 08:04:58 -0800 Subject: Repeat With Repeat In-Reply-To: <10CFBC94-8951-4922-ABB4-4A4EF93C0CC3@derbrill.de> References: <10CFBC94-8951-4922-ABB4-4A4EF93C0CC3@derbrill.de> Message-ID: +1 On Jan 11, 2015 7:20 AM, "Malte Brill" wrote: > One of the reasons why I always have strict compile enabled :-) > Saves me from shooting my foot (rhyming or not) quite a few times. > > ;-) > > All the best, > > Malte > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ethanlish at gmail.com Sun Jan 11 11:23:34 2015 From: ethanlish at gmail.com (ethanlish at gmail.com) Date: Sun, 11 Jan 2015 11:23:34 -0500 Subject: JSON output from a Livecode server Message-ID: <54B2A386.2010801@gmail.com> I'm looking to produce JSON output from a Livecode server. Is revigniter generated JSON output the best alternative? http://revigniter.com/userGuide/plugins/querytojson_plugin.html Are there other JSON output tools one can easily use as a add-on to a Livecode server? E From bonnmike at gmail.com Sun Jan 11 11:32:52 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Sun, 11 Jan 2015 09:32:52 -0700 Subject: Fields Have Labels In-Reply-To: <335C4AD6-C7AC-400A-922E-2C687C5174C4@mac.com> References: <335C4AD6-C7AC-400A-922E-2C687C5174C4@mac.com> Message-ID: IF you set the label of the field, you're not setting a built in property, you're creating a property named label. On Sun, Jan 11, 2015 at 8:58 AM, Roger Guay wrote: > Ya but you can?t set the showName of a field to true, so what good is the > label? > > > > On Jan 11, 2015, at 8:49 AM, Bob Cole wrote: > > > > put the label of field 1 > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bonnmike at gmail.com Sun Jan 11 11:36:02 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Sun, 11 Jan 2015 09:36:02 -0700 Subject: iOS push notifications: why are they asked for? In-Reply-To: <713ABA9E-34C9-4A8A-A11E-F47F77A977C5@gmail.com> References: <54AF308B.4050000@gmail.com> <713ABA9E-34C9-4A8A-A11E-F47F77A977C5@gmail.com> Message-ID: Might look in standalone settings and make sure the checkbox for "push notifications" isn't checked. (requirements and restrictions section.) On Sun, Jan 11, 2015 at 12:58 AM, Gerry wrote: > Just for LC apps, or all apps? Because I've install LOTS of other apps and > never get this message from apps that don't have a obvious need for > notification permissions. > > g > > > > > On 9 Jan 2015, at 11:23 pm, Sean Cole (Pi) wrote: > > > > This is now the norm in iOS8 applications it would seem. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From mwieder at ahsoftware.net Sun Jan 11 12:04:09 2015 From: mwieder at ahsoftware.net (Mark Wieder) Date: Sun, 11 Jan 2015 09:04:09 -0800 Subject: Repeat With Repeat In-Reply-To: <54B231CE.6030908@pair.com> References: <54B231CE.6030908@pair.com> Message-ID: <1192121905007.20150111090409@ahsoftware.net> Sunday, January 11, 2015, 12:18:22 AM, Curry wrote: > put with before add > add add to add Note to runrev team: *Please* keep the extended language syntax out of the hands of Curry K. He's had too much to drink as is. -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From dunbarx at aol.com Sun Jan 11 12:28:08 2015 From: dunbarx at aol.com (dunbarx at aol.com) Date: Sun, 11 Jan 2015 12:28:08 -0500 Subject: Fields Have Labels In-Reply-To: References: <335C4AD6-C7AC-400A-922E-2C687C5174C4@mac.com> Message-ID: <8D1FBDB19C08FF4-1580-D39EF@webmail-vd004.sysops.aol.com> If you: set the label of fld "testField" to "XYZ" and have, in the card script, say setProp label answer random(999) end label The control structure does not fire. If you: set the ZZTOP of fld "testField" to "XYZ" and have: setProp ZZTOP answer random(999) end ZZTOP It does. So the "label" property of a field is not a custom property, it is a built-in property. It is just not settable in the inspector, nor viewable, as has been said, like, say, button labels are. Craig Newman -----Original Message----- From: Mike Bonner To: How to use LiveCode Sent: Sun, Jan 11, 2015 11:33 am Subject: Re: Fields Have Labels IF you set the label of the field, you're not setting a built in property, you're creating a property named label. On Sun, Jan 11, 2015 at 8:58 AM, Roger Guay wrote: > Ya but you can?t set the showName of a field to true, so what good is the > label? > > > > On Jan 11, 2015, at 8:49 AM, Bob Cole wrote: > > > > put the label of field 1 > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From rabit at revigniter.com Sun Jan 11 12:30:58 2015 From: rabit at revigniter.com (Ralf Bitter) Date: Sun, 11 Jan 2015 18:30:58 +0100 Subject: JSON output from a Livecode server In-Reply-To: <54B2A386.2010801@gmail.com> References: <54B2A386.2010801@gmail.com> Message-ID: <791FFF4F-B3DF-4C6D-A1CC-D5F64F161E44@revigniter.com> How about mergJSON? http://mergext.com or https://github.com/montegoulding/mergJSON Ralf > On 11.01.2015, at 17:23, ethanlish at gmail.com wrote: > > > I'm looking to produce JSON output from a Livecode server. > > Is revigniter generated JSON output the best alternative? > http://revigniter.com/userGuide/plugins/querytojson_plugin.html > > Are there other JSON output tools one can easily use as a add-on to a Livecode server? > > E > From irog at mac.com Sun Jan 11 12:45:05 2015 From: irog at mac.com (Roger Guay) Date: Sun, 11 Jan 2015 10:45:05 -0700 Subject: Fields Have Labels In-Reply-To: References: <335C4AD6-C7AC-400A-922E-2C687C5174C4@mac.com> Message-ID: <8F5E64C1-A7DC-4A76-9C81-AD42A2EA5030@mac.com> Yes, I thought it might be a Custom Property, but it is not. > On Jan 11, 2015, at 9:32 AM, Mike Bonner wrote: > > IF you set the label of the field, you're not setting a built in property, > you're creating a property named label. > > On Sun, Jan 11, 2015 at 8:58 AM, Roger Guay wrote: > >> Ya but you can?t set the showName of a field to true, so what good is the >> label? >> >> >>> On Jan 11, 2015, at 8:49 AM, Bob Cole wrote: >>> >>> put the label of field 1 >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bonnmike at gmail.com Sun Jan 11 12:57:59 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Sun, 11 Jan 2015 10:57:59 -0700 Subject: Fields Have Labels In-Reply-To: <8D1FBDB19C08FF4-1580-D39EF@webmail-vd004.sysops.aol.com> References: <335C4AD6-C7AC-400A-922E-2C687C5174C4@mac.com> <8D1FBDB19C08FF4-1580-D39EF@webmail-vd004.sysops.aol.com> Message-ID: Oh cool, thanks! Though, honestly I still wonder if the property doesn't exist as a built in, but the handling of setting a thing called "label" is earlier in the message path (in the engine somewhere), so the setprop you define is never seen, being caught earlier by the engine. (since the setprop can't designate an associated object, the engine wouldn't know to ignore it? ) Interesting, the only setting of label that fails (so far) is setting the label of a card, so I guess that would be one that truly doesn't have the built in property. Ignore the above! Thanks for the information, I appreciate it. On Sun, Jan 11, 2015 at 10:28 AM, wrote: > If you: set the label of fld "testField" to "XYZ" > > > and have, in the card script, say > > > setProp label > answer random(999) > end label > > > The control structure does not fire. > > > If you: set the ZZTOP of fld "testField" to "XYZ" > > > and have: > > > > setProp ZZTOP > answer random(999) > end ZZTOP > > > It does. So the "label" property of a field is not a custom property, it > is a built-in property. It is just not settable in the inspector, nor > viewable, as has been said, like, say, button labels are. > > > Craig Newman > > > > -----Original Message----- > From: Mike Bonner > To: How to use LiveCode > Sent: Sun, Jan 11, 2015 11:33 am > Subject: Re: Fields Have Labels > > > IF you set the label of the field, you're not setting a built in property, > you're creating a property named label. > > On Sun, Jan 11, 2015 at 8:58 AM, Roger Guay wrote: > > > Ya but you can?t set the showName of a field to true, so what good is the > > label? > > > > > > > On Jan 11, 2015, at 8:49 AM, Bob Cole wrote: > > > > > > put the label of field 1 > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bodine at bodinetraininggames.com Sun Jan 11 13:20:03 2015 From: bodine at bodinetraininggames.com (tbodine) Date: Sun, 11 Jan 2015 10:20:03 -0800 (PST) Subject: 64 bit? In-Reply-To: <255D2F06-2505-426B-8299-6DC6D4D06819@earthednet.org> References: <255D2F06-2505-426B-8299-6DC6D4D06819@earthednet.org> Message-ID: <1421000403404-4687649.post@n4.nabble.com> Hi Bill. I have several versions of LC installed on a Win 7 64-bit PC (the latest being LC 6.7.1 rc3) and all of them installed themselves in the 32-bit Program Files folder. So, not definitive, but it does support your assumption. Tom Bodine -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/64-bit-tp4687618p4687649.html Sent from the Revolution - User mailing list archive at Nabble.com. From ray at linkit.com Sun Jan 11 13:43:11 2015 From: ray at linkit.com (Ray) Date: Sun, 11 Jan 2015 15:43:11 -0300 Subject: Can't Move Backward In-Reply-To: References: <54B06112.1090602@LinkIt.Com> <54B0629D.6090408@fourthworld.com> Message-ID: <54B2C43F.7020604@LinkIt.Com> Mike I'll try this idea tomorrow first thing. I'll also try turning off messages before I save the stack. I just thought of that and I haven't tried it yet. And Jackie, thanks for your suggestion regarding RR support. I'll use that as a last resort. On 1/9/2015 10:56 PM, Mike Bonner wrote: > I have an idea. (probably a stupid idea) if you select the stack, and > copy it to the clipboard, then save the clipboarddata["objects"] to a > file.. > > THen in 6.5.2, grab the data in that file, shove it back into the > clipboarddata["objects"] and then "paste" does that allow you to get the > stack popped up in the version you want to use, so that you can then save > it? > > On Fri, Jan 9, 2015 at 4:22 PM, Richard Gaskin > wrote: > >> FWIW my test results were the same as Scott's, unable to reproduce this >> issue. >> >> -- >> Richard Gaskin >> Fourth World Systems >> Software Design and Development for the Desktop, Mobile, and the Web >> ____________________________________________________________________ >> Ambassador at FourthWorld.com http://www.FourthWorld.com >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jiml at netrin.com Sun Jan 11 13:43:57 2015 From: jiml at netrin.com (Jim Lambert) Date: Sun, 11 Jan 2015 10:43:57 -0800 Subject: Fields Have Labels In-Reply-To: References: Message-ID: Interesting thread. It would be useful if LiveCode fields did have a built-in label property, which one could hide/show and manipulate the styling of the label itself. If I recall correctly Oracle Media Objects fields had such property. Very handy it was. Jim Lambert From ray at linkit.com Sun Jan 11 13:44:34 2015 From: ray at linkit.com (Ray) Date: Sun, 11 Jan 2015 15:44:34 -0300 Subject: Can't Move Backward In-Reply-To: <54B0BB00.3000608@hindu.org> References: <54912789.70109@economy-x-talk.com> <54912D3A.1010203@economy-x-talk.com> <2664FDC7-23BC-405E-8617-E5EFEF1A1AC6@iotecdigital.com> <1418834388185-4686886.post@n4.nabble.com> <91CCE39C-BDFA-4EA0-B959-18F9A6EAED93@earthednet.org> <5491B795.5010200@LinkIt.Com> <11D6732B-1665-4F8A-9FD4-F1A7A11D7FDD@earthednet.org> <003501d01a22$f8f43ab0$eadcb010$@net> <54B03545.3010500@LinkIt.Com> <54B04C5B.6050807@LinkIt.Com> <3B6FCDF3-320E-4D66-8EEC-F5BDDED80755@tactilemedia.com> <54B06112.1090602@LinkIt.Com> <54B0BB00.3000608@hindu.org> Message-ID: <54B2C492.5040804@LinkIt.Com> Interesting... I'll add this to my list of things to try tomorrow when I have time and get back up and running. (My wife and I are in the middle of a move this weekend.) On 1/10/2015 2:39 AM, Brahmanathaswami wrote: > Ray, I also was sweating it out yesterday with a very important > project/stack that was stuck in 7.0.1 which is, as you say so full of > bugs as to be useless...but would not open in 6.6.2 (pretty stable...) > What I did was > > created a new button on the first card and in my na?vet?: > > on mouseup > set the stackfileversion to 6 > save this stack > close this stack > quit > end mouseup > > clicked on the button... then it opened in 6.6.2 > > Go figure... "6" is not a valid legacy format .... but it worked > > > Swasti Astu, Be Well! > Brahmanathaswami > > Kauai's Hindu Monastery > www.HimalayanAcademy.com > > > > Ray wrote: >> Already tried it. I'm actually sticking with 6.5.2. I can create a >> new stack file from scratch in 7.0.1, save it as legacy 5.5 and then >> re-pen it in 6.5.2 fine. I just can't open /my stack file/ the same >> way, although it continues to open correctly and function fine in 7.0.1. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bonnmike at gmail.com Sun Jan 11 14:11:30 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Sun, 11 Jan 2015 12:11:30 -0700 Subject: Can't Move Backward In-Reply-To: <54B2C492.5040804@LinkIt.Com> References: <54912789.70109@economy-x-talk.com> <54912D3A.1010203@economy-x-talk.com> <2664FDC7-23BC-405E-8617-E5EFEF1A1AC6@iotecdigital.com> <1418834388185-4686886.post@n4.nabble.com> <91CCE39C-BDFA-4EA0-B959-18F9A6EAED93@earthednet.org> <5491B795.5010200@LinkIt.Com> <11D6732B-1665-4F8A-9FD4-F1A7A11D7FDD@earthednet.org> <003501d01a22$f8f43ab0$eadcb010$@net> <54B03545.3010500@LinkIt.Com> <54B04C5B.6050807@LinkIt.Com> <3B6FCDF3-320E-4D66-8EEC-F5BDDED80755@tactilemedia.com> <54B06112.1090602@LinkIt.Com> <54B0BB00.3000608@hindu.org> <54B2C492.5040804@LinkIt.Com> Message-ID: Hey, if you decide to try the object copy thing, you can use this: https://dl.dropboxusercontent.com/u/11957935/mdbRevisionPlugin.livecode Heres the disclaimer though. If you have a stack and substacks (this includes having a datagrid substack) the results may be unpredictable. Meaning you might need to re-link behaviors. The way my revision thing works, it delinks substacks when you back up set of stacks, then restores the substack status when recovering. Definitely needs to be filled out more, but for what it is it works very well. To use it, open your stack, open the mdbrevisionplugin stack. It should list the mainstacks that are open. There is a list at the bottom that can be modified, if you have named your stacks in a way that match a filter, they won't show up, but its easy enough to fix. Once you see your stack in the list, select it and click backup. It'll add the stack to the backed up list on the right. (You're welcome to look at any of the 3 whole stacks I have in there right now, the only interesting one is the roku remote control application.. if you mess with it, you'll have to change things to reflect the ip address of your roku, its hard coded for now) Once its backed up, close everything, open the version of lc you want to bring the stack into, open the mdbrevisionplugin stack, select your stack, and click recover. They should pop right up, at which point you'll want to save them somewhere safe. oh. Dislcaimer two, if you recover the same stack more than once it will come into existence as "copy of ..." so again, any behaviors might get munged. On Sun, Jan 11, 2015 at 11:44 AM, Ray wrote: > Interesting... I'll add this to my list of things to try tomorrow when I > have time and get back up and running. (My wife and I are in the middle of > a move this weekend.) > > On 1/10/2015 2:39 AM, Brahmanathaswami wrote: > >> Ray, I also was sweating it out yesterday with a very important >> project/stack that was stuck in 7.0.1 which is, as you say so full of bugs >> as to be useless...but would not open in 6.6.2 (pretty stable...) What I >> did was >> >> created a new button on the first card and in my na?vet?: >> >> on mouseup >> set the stackfileversion to 6 >> save this stack >> close this stack >> quit >> end mouseup >> >> clicked on the button... then it opened in 6.6.2 >> >> Go figure... "6" is not a valid legacy format .... but it worked >> >> >> Swasti Astu, Be Well! >> Brahmanathaswami >> >> Kauai's Hindu Monastery >> www.HimalayanAcademy.com >> >> >> >> Ray wrote: >> >>> Already tried it. I'm actually sticking with 6.5.2. I can create a new >>> stack file from scratch in 7.0.1, save it as legacy 5.5 and then re-pen it >>> in 6.5.2 fine. I just can't open /my stack file/ the same way, although it >>> continues to open correctly and function fine in 7.0.1. >>> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From hello at simonsmith.co Sun Jan 11 14:11:58 2015 From: hello at simonsmith.co (Simon Smith) Date: Sun, 11 Jan 2015 21:11:58 +0200 Subject: JSON output from a Livecode server In-Reply-To: <54B2A386.2010801@gmail.com> References: <54B2A386.2010801@gmail.com> Message-ID: https://github.com/luxlogica/easyjson also works quiet well. On Sun, Jan 11, 2015 at 6:23 PM, ethanlish at gmail.com wrote: > > I'm looking to produce JSON output from a Livecode server. > > Is revigniter generated JSON output the best alternative? > http://revigniter.com/userGuide/plugins/querytojson_plugin.html > > Are there other JSON output tools one can easily use as a add-on to a > Livecode server? > > E > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- *Simon Smith* *seo, online marketing, web development* w. http://www.simonsmith.co m. +27 83 306 7862 From jacque at hyperactivesw.com Sun Jan 11 14:31:27 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 11 Jan 2015 13:31:27 -0600 Subject: JSON output from a Livecode server In-Reply-To: <54B2A386.2010801@gmail.com> References: <54B2A386.2010801@gmail.com> Message-ID: <54B2CF8F.7000408@hyperactivesw.com> On 1/11/2015 10:23 AM, ethanlish at gmail.com wrote: > > I'm looking to produce JSON output from a Livecode server. > > Is revigniter generated JSON output the best alternative? > http://revigniter.com/userGuide/plugins/querytojson_plugin.html > > Are there other JSON output tools one can easily use as a add-on to a > Livecode server? LibJSON is a LiveCode stack. The author has passed away but left us his legacy: . -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From shawnlivecode at gmail.com Sun Jan 11 14:37:45 2015 From: shawnlivecode at gmail.com (Shawn Blc) Date: Sun, 11 Jan 2015 13:37:45 -0600 Subject: [Beginner] Launch URL from fld "fldTitle" Message-ID: When I put a URL in a textbox and use the below script in a button, the button will launch, but I'll get a bad page. If I copy and paste the URL form the textbox I get the correct page. What am I doing wrong? I'm using this in on another mouseUp to put the URL into the fldTitle. *put* "http://www.myDomain.com/co/" & tFileName into fld "fldTitle" *on* mouseUp *put* fld "fldTitle" into tURL *launch* URL tURL *end* mouseUp From dunbarx at aol.com Sun Jan 11 14:43:58 2015 From: dunbarx at aol.com (dunbarx at aol.com) Date: Sun, 11 Jan 2015 14:43:58 -0500 Subject: Fields Have Labels In-Reply-To: References: Message-ID: <8D1FBEE138C0B8B-1580-D4550@webmail-vd004.sysops.aol.com> Jim. If you could set the label property to actually change some aspect of a field, what form would that take? Not the text, I assume. Craig -----Original Message----- From: Jim Lambert To: use-livecode Sent: Sun, Jan 11, 2015 1:44 pm Subject: Re: Fields Have Labels Interesting thread. It would be useful if LiveCode fields did have a built-in label property, which one could hide/show and manipulate the styling of the label itself. If I recall correctly Oracle Media Objects fields had such property. Very handy it was. Jim Lambert _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From dave at applicationinsight.com Sun Jan 11 15:14:08 2015 From: dave at applicationinsight.com (Dave Kilroy) Date: Sun, 11 Jan 2015 12:14:08 -0800 (PST) Subject: [Beginner] Launch URL from fld "fldTitle" In-Reply-To: References: Message-ID: <1421007248471-4687658.post@n4.nabble.com> hi Shawn Are you trying to show a hyperlink? If so this lesson may help http://lessons.runrev.com/m/4071/l/7406-creating-hypertext-links-in-fields ----- "Some are born coders, some achieve coding, and some have coding thrust upon them." - William Shakespeare & Hugh Senior -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Beginner-Launch-URL-from-fld-fldTitle-tp4687656p4687658.html Sent from the Revolution - User mailing list archive at Nabble.com. From prothero at earthednet.org Sun Jan 11 15:25:22 2015 From: prothero at earthednet.org (William Prothero) Date: Sun, 11 Jan 2015 12:25:22 -0800 Subject: 64 bit? In-Reply-To: <1421000403404-4687649.post@n4.nabble.com> References: <255D2F06-2505-426B-8299-6DC6D4D06819@earthednet.org> <1421000403404-4687649.post@n4.nabble.com> Message-ID: Tom: Just checked my Windows 7 (64bit) installation and 7.0.1 is also in the 32 bit programs folder. Tnx, Bill > On Jan 11, 2015, at 10:20 AM, tbodine wrote: > > Hi Bill. > I have several versions of LC installed on a Win 7 64-bit PC (the latest > being LC 6.7.1 rc3) and all of them installed themselves in the 32-bit > Program Files folder. So, not definitive, but it does support your > assumption. > Tom Bodine > > > > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/64-bit-tp4687618p4687649.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From stephenREVOLUTION2 at barncard.com Sun Jan 11 15:39:26 2015 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Sun, 11 Jan 2015 12:39:26 -0800 Subject: Fields Have Labels In-Reply-To: <8D1FBEE138C0B8B-1580-D4550@webmail-vd004.sysops.aol.com> References: <8D1FBEE138C0B8B-1580-D4550@webmail-vd004.sysops.aol.com> Message-ID: On Sun, Jan 11, 2015 at 11:43 AM, wrote: > It would be useful if LiveCode fields did have a built-in label property Absolutely! How many times have developers made a series of fields for data entry and immediately have to make a corresponding series of labels, even for test stacks? Filemaker has done this automatically since day one. sqb *--* *Stephen Barncard - San Francisco Ca. USA - Deeds Not Words* From shawnlivecode at gmail.com Sun Jan 11 15:58:55 2015 From: shawnlivecode at gmail.com (Shawn Blc) Date: Sun, 11 Jan 2015 14:58:55 -0600 Subject: [Beginner] Launch URL from fld "fldTitle" In-Reply-To: <1421007248471-4687658.post@n4.nabble.com> References: <1421007248471-4687658.post@n4.nabble.com> Message-ID: Thanks for the suggestion, but I don't believe that helps my situation. The URL that launches has a bunch of garbled text, however if I copy the text from the text box and paste it into the browser it works. Something is garbling my text. Not just %20, but all kinds of characters are appearing in the URL. On Sun, Jan 11, 2015 at 2:14 PM, Dave Kilroy wrote: > hi Shawn > > Are you trying to show a hyperlink? If so this lesson may help > http://lessons.runrev.com/m/4071/l/7406-creating-hypertext-links-in-fields > > > > ----- > "Some are born coders, some achieve coding, and some have coding thrust > upon them." - William Shakespeare & Hugh Senior > > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/Beginner-Launch-URL-from-fld-fldTitle-tp4687656p4687658.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From John at onechip.com Sun Jan 11 16:29:39 2015 From: John at onechip.com (John Miskimins) Date: Sun, 11 Jan 2015 13:29:39 -0800 Subject: [OT] Slow performance under Yosemite Message-ID: <5BB87F50-16A1-4705-B643-B0D152D1A9F3@onechip.com> This isn?t a LiveCode issue, but I thought it might effect others on the list. After updating my Mac to Yosemite,it slowed down noticeably and became frustrating to use. Granted my Mac is a bit long in the tooth (late 2009 27 inch iMac - lots of RAM and SSD with a second 2560X1440 monitor), but it has run really well up to now. I tried everything I could find online (repairing the HD, PRAM reset, etc.) to no avail. As turn out, the default in Yosemite is to treat the second monitor as a new ?space?. This was the issue. Using the Mission Control panel in System Preferences, I unticked ?Displays have separate Spaces? and, after a restart for it to take effect, my computer is once again snappy. Thanks, John From bonnmike at gmail.com Sun Jan 11 16:32:33 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Sun, 11 Jan 2015 14:32:33 -0700 Subject: [Beginner] Launch URL from fld "fldTitle" In-Reply-To: References: <1421007248471-4687658.post@n4.nabble.com> Message-ID: i'm wondering if you should urlencode things before the launch. %20 is a urlencoded space in the url, What else are you seeing? Can you give a more specific example of a url that doesn't work? On Sun, Jan 11, 2015 at 1:58 PM, Shawn Blc wrote: > Thanks for the suggestion, but I don't believe that helps my situation. > The URL that launches has a bunch of garbled text, however if I copy the > text from the text box and paste it into the browser it works. Something > is garbling my text. Not just %20, but all kinds of characters are > appearing in the URL. > > On Sun, Jan 11, 2015 at 2:14 PM, Dave Kilroy > wrote: > > > hi Shawn > > > > Are you trying to show a hyperlink? If so this lesson may help > > > http://lessons.runrev.com/m/4071/l/7406-creating-hypertext-links-in-fields > > > > > > > > ----- > > "Some are born coders, some achieve coding, and some have coding thrust > > upon them." - William Shakespeare & Hugh Senior > > > > -- > > View this message in context: > > > http://runtime-revolution.278305.n4.nabble.com/Beginner-Launch-URL-from-fld-fldTitle-tp4687656p4687658.html > > Sent from the Revolution - User mailing list archive at Nabble.com. > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bonnmike at gmail.com Sun Jan 11 16:36:57 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Sun, 11 Jan 2015 14:36:57 -0700 Subject: [OT] Slow performance under Yosemite In-Reply-To: <5BB87F50-16A1-4705-B643-B0D152D1A9F3@onechip.com> References: <5BB87F50-16A1-4705-B643-B0D152D1A9F3@onechip.com> Message-ID: Thanks for this. I'm thinking of "upgrading" to Yosemite on my mac mini.. Are there any other gotchas I need to watch out for? LC related especially, but any pointers are welcome. I'm also wondering if I can get my 2nd mac to run Yosemite the roundabout way. (its a core 2 duo, white) has anyone managed to install it on a machine that old? On Sun, Jan 11, 2015 at 2:29 PM, John Miskimins wrote: > This isn?t a LiveCode issue, but I thought it might effect others on the > list. After updating my Mac to Yosemite,it slowed down noticeably and > became frustrating to use. Granted my Mac is a bit long in the tooth (late > 2009 27 inch iMac - lots of RAM and SSD with a second 2560X1440 monitor), > but it has run really well up to now. I tried everything I could find > online (repairing the HD, PRAM reset, etc.) to no avail. As turn out, the > default in Yosemite is to treat the second monitor as a new ?space?. This > was the issue. Using the Mission Control panel in System Preferences, I > unticked ?Displays have separate Spaces? and, after a restart for it to > take effect, my computer is once again snappy. > > Thanks, > John > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at livecode.org Sun Jan 11 17:08:05 2015 From: paul at livecode.org (Paul Hibbert) Date: Sun, 11 Jan 2015 14:08:05 -0800 Subject: Fields Have Labels In-Reply-To: References: <8D1FBEE138C0B8B-1580-D4550@webmail-vd004.sysops.aol.com> Message-ID: <5A22783F-85C6-40F6-8260-A7CC2BA58F34@livecode.org> I totally agree that the field "label" could be very useful, especially if it was paired with a "gravity" property similar to "iconGravity". Paul > On Jan 11, 2015, at 12:39 PM, stephen barncard wrote: > > On Sun, Jan 11, 2015 at 11:43 AM, wrote: > >> It would be useful if LiveCode fields did have a built-in label property > > > Absolutely! How many times have developers made a series of fields for data > entry and immediately have to make a corresponding series of labels, even > for test stacks? Filemaker has done this automatically since day one. > > sqb > > *--* > *Stephen Barncard - San Francisco Ca. USA - Deeds Not Words* > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From gregory.lypny at videotron.ca Sun Jan 11 17:28:29 2015 From: gregory.lypny at videotron.ca (Gregory Lypny) Date: Sun, 11 Jan 2015 17:28:29 -0500 Subject: LiveCode Server on Yosemite - Changes to conf.httpd Message-ID: <9930124A-8D06-4C5B-B6F8-8E2EAC846461@videotron.ca> Hi everyone, I?ve tried, based on previous suggestions from list members, to make the necessary changes to the conf.httpd file to get LiveCode Server working under Yoesmite but nothing I do works. I have confirmed that Apache is running and can get non-LC pages to display. Be nice if the LiveCode team could chime in because the instructions at their website for getting LiveCode Server up and running are out of date. Regards, Gregory From pete at lcsql.com Sun Jan 11 17:29:15 2015 From: pete at lcsql.com (Peter Haworth) Date: Sun, 11 Jan 2015 14:29:15 -0800 Subject: Fields Have Labels In-Reply-To: References: <8D1FBEE138C0B8B-1580-D4550@webmail-vd004.sysops.aol.com> Message-ID: This doesn't entirely solve the problem but lcstackBrowser's controls palette allows you to create multiple objects in one drag/drop operation. In this case, you would option-click the label control, option-click the field control, then drag either one of them to your card. You get a prompt for how many rows/columns of the label/field pairs you want to create and can also specify spacing. I think what's really needed though is something that works like the label/showName properties of a group, plus a way to position the label left/right/below/above the control. That would elminate the need for a separate control. It would also be great if the label could have its own set of text properties so you could, for example, change the label text color to indicate a validation error. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Sun, Jan 11, 2015 at 12:39 PM, stephen barncard < stephenREVOLUTION2 at barncard.com> wrote: > On Sun, Jan 11, 2015 at 11:43 AM, wrote: > > > It would be useful if LiveCode fields did have a built-in label property > > > Absolutely! How many times have developers made a series of fields for data > entry and immediately have to make a corresponding series of labels, even > for test stacks? Filemaker has done this automatically since day one. > > sqb > > *--* > *Stephen Barncard - San Francisco Ca. USA - Deeds Not Words* > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From John at onechip.com Sun Jan 11 17:35:31 2015 From: John at onechip.com (John Miskimins) Date: Sun, 11 Jan 2015 14:35:31 -0800 Subject: [OT] Slow performance under Yosemite In-Reply-To: References: <5BB87F50-16A1-4705-B643-B0D152D1A9F3@onechip.com> Message-ID: <8719DC1C-8D09-4735-8544-357F4997D87A@onechip.com> I haven?t noticed any other issues with Yosemite as concerns LiveCode or any other app for that matter. I have gone back and forth on some of the eye candy (turning on an off transparency and the like) but other than that, things are working well now that I have fixed the Spaces issue. My machine has i5 processors/SSD and I have no idea if it will bog down on your Mac mini. Wandering around the web, some people seem to be happy and others aren?t with your configuration and Yosemite. This is just a guess on my part so please take it for what it is worth, if you are running Mavericks Ok, my guess is it will run Yosemite Ok. If your mini has a lot of ?baggage" (cruft from years gone by), you may have to tune it up a bit (the activity monitor can be a great help). All of that said, it is such a hassle to move to an older OS from a newer one, you might want to stay put. As a side thought, can you boot the mini off an external drive? If so, you can always try Yosemite before you commit. My 2 cents, John > On Jan 11, 2015, at 1:36 PM, Mike Bonner wrote: > > Thanks for this. I'm thinking of "upgrading" to Yosemite on my mac mini.. > Are there any other gotchas I need to watch out for? LC related > especially, but any pointers are welcome. I'm also wondering if I can get > my 2nd mac to run Yosemite the roundabout way. (its a core 2 duo, white) > has anyone managed to install it on a machine that old? > > On Sun, Jan 11, 2015 at 2:29 PM, John Miskimins wrote: > >> This isn?t a LiveCode issue, but I thought it might effect others on the >> list. After updating my Mac to Yosemite,it slowed down noticeably and >> became frustrating to use. Granted my Mac is a bit long in the tooth (late >> 2009 27 inch iMac - lots of RAM and SSD with a second 2560X1440 monitor), >> but it has run really well up to now. I tried everything I could find >> online (repairing the HD, PRAM reset, etc.) to no avail. As turn out, the >> default in Yosemite is to treat the second monitor as a new ?space?. This >> was the issue. Using the Mission Control panel in System Preferences, I >> unticked ?Displays have separate Spaces? and, after a restart for it to >> take effect, my computer is once again snappy. >> >> Thanks, >> John >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From curry at pair.com Sun Jan 11 17:41:51 2015 From: curry at pair.com (Curry Kenworthy) Date: Sun, 11 Jan 2015 16:41:51 -0600 Subject: Repeat With Repeat In-Reply-To: <1192121905007.20150111090409@ahsoftware.net> References: <1192121905007.20150111090409@ahsoftware.net> Message-ID: <54B2FC2F.6060602@pair.com> Mark Wieder: > *Please* keep the extended language syntax out of the hands of Curry > K. He's had too much to drink as is. Ha ha, that's blaming the messenger! I didn't make the rules. :) No one would want to actually use code like the unbelievable > if if is then then ask ask with with except for novelty or research. But better understanding how the compiler looks at things does have some other practical uses; thus the research! Best wishes, Curry Kenworthy Custom Software Development http://curryk.com/consulting/ From bonnmike at gmail.com Sun Jan 11 17:54:03 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Sun, 11 Jan 2015 15:54:03 -0700 Subject: [OT] Slow performance under Yosemite In-Reply-To: <8719DC1C-8D09-4735-8544-357F4997D87A@onechip.com> References: <5BB87F50-16A1-4705-B643-B0D152D1A9F3@onechip.com> <8719DC1C-8D09-4735-8544-357F4997D87A@onechip.com> Message-ID: First reply got nuked due to length, so here goes again. Yeah, think i'll try the try before you buy method. The machine itself should be fast enough, its the i7 server model, plenty of memory, and 7200 rpm drives. The negative side? A penchant for overheating since day one. Early on I had to flip it upside down and pop the cover off to keep it cool. Since then i've found a solution that helps a little, but looks like a Frankenstein monster. I removed a square of plastic from the base to expose the metal portion of things and thermal bonded a heatpipe based heat sink to the base metal. It's still upside down, but runs as cool this way as it did without the base attached. On the days I push it hard, I blow some air through the fins and mostly keep it below fry level of heat. I also do all my video work on a different machine. The mini is still pretty great, but i'm surprised its still around. (there was an incarnation of lion that I had installed that liked to hang processes in cpu lock. 100+c is NOT a good thing) An image of the modified mini. https://www.dropbox.com/s/ftslrqjydkzsgza/IMG_0193.JPG?dl=0 From irog at mac.com Sun Jan 11 18:13:11 2015 From: irog at mac.com (Roger Guay) Date: Sun, 11 Jan 2015 16:13:11 -0700 Subject: [OT] Slow performance under Yosemite In-Reply-To: References: <5BB87F50-16A1-4705-B643-B0D152D1A9F3@onechip.com> Message-ID: Mike, I am still trying to figure out why I get random screen flashes in all recent versions of LC since I upgraded to Yosemite. I seem to be the only one having this problem so it shouldn?t be of great concern to you. (BTW, these flashes occur randomly when using lock/unlock screen with visual effect.) Other than that, I?ve had no problems with Yosemite on my MacBook Pro Retina. Cheers, Roger > On Jan 11, 2015, at 2:36 PM, Mike Bonner wrote: > > Thanks for this. I'm thinking of "upgrading" to Yosemite on my mac mini.. > Are there any other gotchas I need to watch out for? LC related > especially, but any pointers are welcome. I'm also wondering if I can get > my 2nd mac to run Yosemite the roundabout way. (its a core 2 duo, white) > has anyone managed to install it on a machine that old? > > On Sun, Jan 11, 2015 at 2:29 PM, John Miskimins wrote: > >> This isn?t a LiveCode issue, but I thought it might effect others on the >> list. After updating my Mac to Yosemite,it slowed down noticeably and >> became frustrating to use. Granted my Mac is a bit long in the tooth (late >> 2009 27 inch iMac - lots of RAM and SSD with a second 2560X1440 monitor), >> but it has run really well up to now. I tried everything I could find >> online (repairing the HD, PRAM reset, etc.) to no avail. As turn out, the >> default in Yosemite is to treat the second monitor as a new ?space?. This >> was the issue. Using the Mission Control panel in System Preferences, I >> unticked ?Displays have separate Spaces? and, after a restart for it to >> take effect, my computer is once again snappy. >> >> Thanks, >> John >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From mwieder at ahsoftware.net Sun Jan 11 18:43:25 2015 From: mwieder at ahsoftware.net (Mark Wieder) Date: Sun, 11 Jan 2015 15:43:25 -0800 Subject: [OT] Slow performance under Yosemite In-Reply-To: References: <5BB87F50-16A1-4705-B643-B0D152D1A9F3@onechip.com> <8719DC1C-8D09-4735-8544-357F4997D87A@onechip.com> Message-ID: <1092145861097.20150111154325@ahsoftware.net> Mike- Sunday, January 11, 2015, 2:54:03 PM, you wrote: > An image of the modified mini. > https://www.dropbox.com/s/ftslrqjydkzsgza/IMG_0193.JPG?dl=0 LOL. How many channels can you get on that thing? -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From peterwawood at gmail.com Sun Jan 11 18:52:44 2015 From: peterwawood at gmail.com (Peter W A Wood) Date: Mon, 12 Jan 2015 07:52:44 +0800 Subject: LiveCode Server on Yosemite - Changes to conf.httpd In-Reply-To: <9930124A-8D06-4C5B-B6F8-8E2EAC846461@videotron.ca> References: <9930124A-8D06-4C5B-B6F8-8E2EAC846461@videotron.ca> Message-ID: <0B85D09B-9DBC-4B1E-A3E7-61A54FAAC3BF@gmail.com> Hi Gregory If you wouldn?t mind sending me your apache con.httpd file off list. I?ll take a look for you and see if I can spot something. Regards Peter > On 12 Jan 2015, at 06:28, Gregory Lypny wrote: > > Hi everyone, > > I?ve tried, based on previous suggestions from list members, to make the necessary changes to the conf.httpd file to get LiveCode Server working under Yoesmite but nothing I do works. I have confirmed that Apache is running and can get non-LC pages to display. > > Be nice if the LiveCode team could chime in because the instructions at their website for getting LiveCode Server up and running are out of date. > > Regards, > > Gregory > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dochawk at gmail.com Sun Jan 11 19:34:14 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Sun, 11 Jan 2015 16:34:14 -0800 Subject: Crash-a-lot just became critical In-Reply-To: References: <54AECA8F.30002@hyperactivesw.com> Message-ID: On Fri, Jan 9, 2015 at 10:34 AM, Dr. Hawkins wrote: > > > I remembered an address they have; livecode has a crashing stack. > I have it tracked down. It seems to occur between my code calling for a stack to open and the preOpenStack handler for that stack: I can't do any logging *within* livecode, but I've added some puts to the file system itself. For the code: put "opening dialgosM as modal" & cr & the seconds into url "file:/Users/hawk/bk_clients/vader_d/add_log.txt" open cd "otLnch" of stack "dialogsM" as modal put "back from dialgosM" & cr & the seconds into url "file:/Users/hawk/bk_clients/vader_d/add_log.txt" I end up with the file: opening dialgosM as modal 1421021932 Feeling clever, I put traps in the first lines of preOpenStack & openStack of stack dialogsM on preOpenStack -- lock screen put "in dialgosM preOpenStack" & cr & the seconds into url "file:/Users/hawk/bk_clients/vader_d/add_log.txt" This code is never reached. The only thing in cd otLnch's handler is a mouseUp routine -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From pete at lcsql.com Sun Jan 11 19:53:41 2015 From: pete at lcsql.com (Peter Haworth) Date: Sun, 11 Jan 2015 16:53:41 -0800 Subject: Crash-a-lot just became critical In-Reply-To: References: <54AECA8F.30002@hyperactivesw.com> Message-ID: Since runtime errors in modal dialogs never show up, you might try opening it in any other mode and put a breakpoint right after the open command to stop your code continuing. That way, if there is an runtime error somewhere in the modal stack scripts, it will show up as a runtime error. It doesn't sound like there is much in the way of scripts in the stack but you never know. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Sun, Jan 11, 2015 at 4:34 PM, Dr. Hawkins wrote: > On Fri, Jan 9, 2015 at 10:34 AM, Dr. Hawkins wrote: > > > > > > > I remembered an address they have; livecode has a crashing stack. > > > > > I have it tracked down. It seems to occur between my code calling for a > stack to open and the preOpenStack handler for that stack: > > I can't do any logging *within* livecode, but I've added some puts to the > file system itself. > > For the code: > > put "opening dialgosM as modal" & cr & the seconds into url > "file:/Users/hawk/bk_clients/vader_d/add_log.txt" > open cd "otLnch" of stack "dialogsM" as modal > put "back from dialgosM" & cr & the seconds into url > "file:/Users/hawk/bk_clients/vader_d/add_log.txt" > > I end up with the file: > opening dialgosM as modal > 1421021932 > > Feeling clever, I put traps in the first lines of preOpenStack & openStack > of stack dialogsM > > on preOpenStack > -- lock screen > put "in dialgosM preOpenStack" & cr & the seconds into url > "file:/Users/hawk/bk_clients/vader_d/add_log.txt" > > > This code is never reached. > > The only thing in cd otLnch's handler is a mouseUp routine > > > > > -- > Dr. Richard E. Hawkins, Esq. > (702) 508-8462 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dochawk at gmail.com Sun Jan 11 20:05:02 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Sun, 11 Jan 2015 17:05:02 -0800 Subject: Repeat With Repeat In-Reply-To: <1192121905007.20150111090409@ahsoftware.net> References: <54B231CE.6030908@pair.com> <1192121905007.20150111090409@ahsoftware.net> Message-ID: On Sun, Jan 11, 2015 at 9:04 AM, Mark Wieder wrote: > Note to runrev team: > > *Please* keep the extended language syntax out of the hands of Curry > K. He's had too much to drink as is > He's an amateur. Try the Whitespace language, in which only space, tab, and linefeed have meaning. And there are a couple that are even more bizarre: http://code.tutsplus.com/articles/10-most-bizarre-programming-languages-ever-created--net-2412 Having teenagers, I appreciate Whenever, which executes random lines of its code . . . -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From bonnmike at gmail.com Sun Jan 11 20:16:55 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Sun, 11 Jan 2015 18:16:55 -0700 Subject: [OT] Slow performance under Yosemite In-Reply-To: <1092145861097.20150111154325@ahsoftware.net> References: <5BB87F50-16A1-4705-B643-B0D152D1A9F3@onechip.com> <8719DC1C-8D09-4735-8544-357F4997D87A@onechip.com> <1092145861097.20150111154325@ahsoftware.net> Message-ID: 32 channels, plus coded communications from white sands and 3 aliens soap opera channels. I especially like it when I intercept a communique to Orson. On Sun, Jan 11, 2015 at 4:43 PM, Mark Wieder wrote: > Mike- > > Sunday, January 11, 2015, 2:54:03 PM, you wrote: > > > An image of the modified mini. > > https://www.dropbox.com/s/ftslrqjydkzsgza/IMG_0193.JPG?dl=0 > > LOL. How many channels can you get on that thing? > > -- > -Mark Wieder > ahsoftware at gmail.com > > This communication may be unlawfully collected and stored by the National > Security Agency (NSA) in secret. The parties to this email do not > consent to the retrieving or storing of this communication and any > related metadata, as well as printing, copying, re-transmitting, > disseminating, or otherwise using it. If you believe you have received > this communication in error, please delete it immediately. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dochawk at gmail.com Sun Jan 11 20:29:17 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Sun, 11 Jan 2015 17:29:17 -0800 Subject: Long IDE pauses? Message-ID: Are other people seeing *really* long pauses in the IDE of 7.0.1 while single stepping and editing? 10-30 seconds seems to happen at least once or twice an hour, and a couple of seconds to switch IDE tabs is the norm. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From dochawk at gmail.com Sun Jan 11 20:31:33 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Sun, 11 Jan 2015 17:31:33 -0800 Subject: Crash-a-lot just became critical In-Reply-To: References: <54AECA8F.30002@hyperactivesw.com> Message-ID: On Sun, Jan 11, 2015 at 4:53 PM, Peter Haworth wrote: > Since runtime errors in modal dialogs never show up, you might try opening > it in any other mode and put a breakpoint right after the open command to > stop your code continuing. > Tried that, just to get at the debugger. Never crashes, and no errors. :( > That way, if there is an runtime error somewhere in the modal stack > scripts, it will show up as a runtime error. > That's why I tried this: causing an external event. But it never hits the first line of preOpenStack . . . -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From jiml at netrin.com Sun Jan 11 20:47:24 2015 From: jiml at netrin.com (Jim Lambert) Date: Sun, 11 Jan 2015 17:47:24 -0800 Subject: Fields Have Labels In-Reply-To: References: Message-ID: > Craig wrote: > > If you could set the label property to actually change some aspect of a field, what form would that take? Not the text, I assume. Hi Craig, I?m thinking the field?s label would have its own property set, such as font, style, fore/back colors, ?iconGravity? etc. These properties would be separate from the field?s properties; even though the label itself is a property of the field. Jim Lambert From lcsqlpete at gmail.com Sun Jan 11 21:03:26 2015 From: lcsqlpete at gmail.com (Peter Haworth) Date: Sun, 11 Jan 2015 18:03:26 -0800 Subject: Fields Have Labels In-Reply-To: References: Message-ID: That would ne nice. Sort of like the label/showname of a group but with more control over the appearance/position of the label. Would be nice to include the label of a group in this change, in fact any type of control. But doing that would require a new property I think since label has meaning for some other controls, for example buttons. On Sun, Jan 11, 2015 at 5:47 PM, Jim Lambert wrote: > > > Craig wrote: > > > > If you could set the label property to actually change some aspect of a > field, what form would that take? Not the text, I assume. > > > Hi Craig, > > I?m thinking the field?s label would have its own property set, such as > font, style, fore/back colors, ?iconGravity? etc. > These properties would be separate from the field?s properties; even > though the label itself is a property of the field. > > Jim Lambert > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dunbarx at aol.com Sun Jan 11 22:24:13 2015 From: dunbarx at aol.com (dunbarx at aol.com) Date: Sun, 11 Jan 2015 22:24:13 -0500 Subject: Fields Have Labels In-Reply-To: References: Message-ID: <8D1FC2E5F8D30AA-1A74-91C02@webmail-vm148.sysops.aol.com> Jim. But how is this different from (or better than) a custom property, that contains any or all of those other values as an array or list? In other words, the "label" property has immense value in, say, a button, where the "shown" name may be separate from the actual button name. This extra layer of reference is very useful, but is based on the ability to display that different text apart from the name. After all, in a button, if the label is left blank, the shown name is the actual name of the button. How can a field use this extra layer in a way that enhances its existence, since there is no way, no place, to display that extra information? Craig -----Original Message----- From: Jim Lambert To: use-livecode Sent: Sun, Jan 11, 2015 8:48 pm Subject: Re: Fields Have Labels > Craig wrote: > > If you could set the label property to actually change some aspect of a field, what form would that take? Not the text, I assume. Hi Craig, I?m thinking the field?s label would have its own property set, such as font, style, fore/back colors, ?iconGravity? etc. These properties would be separate from the field?s properties; even though the label itself is a property of the field. Jim Lambert _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From rdimolad at evergreeninfo.net Sun Jan 11 22:40:47 2015 From: rdimolad at evergreeninfo.net (Ralph DiMola) Date: Sun, 11 Jan 2015 22:40:47 -0500 Subject: Repeat With Repeat Message-ID: +1 Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net
-------- Original message --------
From: Malte Brill
Date:01/11/2015 10:19 (GMT-05:00)
To: use-livecode at lists.runrev.com
Subject: Re: Repeat With Repeat
One of the reasons why I always have strict compile enabled :-) Saves me from shooting my foot (rhyming or not) quite a few times. ;-) All the best, Malte _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From curry at pair.com Sun Jan 11 23:14:04 2015 From: curry at pair.com (Curry Kenworthy) Date: Sun, 11 Jan 2015 22:14:04 -0600 Subject: Repeat With Repeat In-Reply-To: References: Message-ID: <54B34A0C.5030206@pair.com> Richard E. Hawkins: > Try the Whitespace language, in which only space, tab, > and linefeed have meaning. All good ways of having fun while getting people to...yes...think outside the box, and hopefully think more effectively. To the compiler itself, none of these looks bizarre. Best wishes, Curry Kenworthy Custom Software Development http://curryk.com/consulting/ From pete at lcsql.com Sun Jan 11 23:44:00 2015 From: pete at lcsql.com (Peter Haworth) Date: Sun, 11 Jan 2015 20:44:00 -0800 Subject: Fields Have Labels In-Reply-To: <8D1FC2E5F8D30AA-1A74-91C02@webmail-vm148.sysops.aol.com> References: <8D1FC2E5F8D30AA-1A74-91C02@webmail-vm148.sysops.aol.com> Message-ID: There isn't right now but this is an enhancement idea. I don't think it could use the label property because of its use elsewhere but the idea is similar to how the label of a group is used when showname is true. On Jan 11, 2015 7:24 PM, wrote: > Jim. > > > But how is this different from (or better than) a custom property, that > contains any or all of those other values as an array or list? In other > words, the "label" property has immense value in, say, a button, where the > "shown" name may be separate from the actual button name. This extra layer > of reference is very useful, but is based on the ability to display that > different text apart from the name. After all, in a button, if the label is > left blank, the shown name is the actual name of the button. > > > How can a field use this extra layer in a way that enhances its existence, > since there is no way, no place, to display that extra information? > > > Craig > > > > -----Original Message----- > From: Jim Lambert > To: use-livecode > Sent: Sun, Jan 11, 2015 8:48 pm > Subject: Re: Fields Have Labels > > > > > Craig wrote: > > > > If you could set the label property to actually change some aspect of a > field, > what form would that take? Not the text, I assume. > > > Hi Craig, > > I?m thinking the field?s label would have its own property set, such as > font, > style, fore/back colors, ?iconGravity? etc. > These properties would be separate from the field?s properties; even > though the > label itself is a property of the field. > > Jim Lambert > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From curry at pair.com Sun Jan 11 23:45:03 2015 From: curry at pair.com (Curry Kenworthy) Date: Sun, 11 Jan 2015 22:45:03 -0600 Subject: Repeat With Repeat In-Reply-To: <10CFBC94-8951-4922-ABB4-4A4EF93C0CC3@derbrill.de> References: <10CFBC94-8951-4922-ABB4-4A4EF93C0CC3@derbrill.de> Message-ID: <54B3514F.1000306@pair.com> Malte Brill: > One of the reasons why I always have strict compile enabled :-) > Saves me from shooting my foot (rhyming or not) quite a few times. > ;-) Good point! :) The "tLocal gGlobal etc" naming notation also makes it nearly impossible to commit such errors. In the last five years I probably had *one* typo that strict compile would have caught. And I found it right away. But my eyes naturally home in on typing errors, so strict mode would not be very useful to me unless my eyesight became worse. Which is always possible! Best wishes, Curry K. From jhj at jhj.com Sun Jan 11 23:55:41 2015 From: jhj at jhj.com (Jerry Jensen) Date: Sun, 11 Jan 2015 20:55:41 -0800 Subject: Repeat With Repeat In-Reply-To: References: <54B231CE.6030908@pair.com> <1192121905007.20150111090409@ahsoftware.net> Message-ID: <52055224-0E0A-43A5-AACB-33ACDF2584FB@jhj.com> On Jan 11, 2015, at 5:05 PM, Dr. Hawkins wrote: > On Sun, Jan 11, 2015 at 9:04 AM, Mark Wieder wrote: > >> Note to runrev team: >> >> *Please* keep the extended language syntax out of the hands of Curry >> K. He's had too much to drink as is >> > > He's an amateur. Try the Whitespace language, in which only space, tab, > and linefeed have meaning. > > And there are a couple that are even more bizarre: > > http://code.tutsplus.com/articles/10-most-bizarre-programming-languages-ever-created--net-2412 > > Having teenagers, I appreciate Whenever, which executes random lines of its > code . . . This device can cope with them all. Its the end of the line for cross-platform, language agnostic use: https://www.dropbox.com/s/egah79fm2y098sy/Supercoder.jpg?dl=0 .Jerry From eric at canelasoftware.com Mon Jan 12 00:00:53 2015 From: eric at canelasoftware.com (Eric Corbett) Date: Sun, 11 Jan 2015 21:00:53 -0800 Subject: Fields Have Labels In-Reply-To: References: <8D1FC2E5F8D30AA-1A74-91C02@webmail-vm148.sysops.aol.com> Message-ID: <14F7599D-3F41-4CEB-8A63-648DCDCAAAA8@canelasoftware.com> How about a ghostText property. An array style property for a data entry field. All the text properties + onEntry dim or hide; or onEmpty dim or hide; dimColor or dimBlendLevel. Or not an array at all, but labelFont, labelTextSize, labelAlign... It would be nice to not have to require a custom behavior script and to have this on iOS too. - Eric > On Jan 11, 2015, at 20:44, Peter Haworth wrote: > > There isn't right now but this is an enhancement idea. I don't think it > could use the label property because of its use elsewhere but the idea is > similar to how the label of a group is used when showname is true. >> On Jan 11, 2015 7:24 PM, wrote: >> >> Jim. >> >> >> But how is this different from (or better than) a custom property, that >> contains any or all of those other values as an array or list? In other >> words, the "label" property has immense value in, say, a button, where the >> "shown" name may be separate from the actual button name. This extra layer >> of reference is very useful, but is based on the ability to display that >> different text apart from the name. After all, in a button, if the label is >> left blank, the shown name is the actual name of the button. >> >> >> How can a field use this extra layer in a way that enhances its existence, >> since there is no way, no place, to display that extra information? >> >> >> Craig >> >> >> >> -----Original Message----- >> From: Jim Lambert >> To: use-livecode >> Sent: Sun, Jan 11, 2015 8:48 pm >> Subject: Re: Fields Have Labels >> >> >> >>> Craig wrote: >>> >>> If you could set the label property to actually change some aspect of a >> field, >> what form would that take? Not the text, I assume. >> >> >> Hi Craig, >> >> I?m thinking the field?s label would have its own property set, such as >> font, >> style, fore/back colors, ?iconGravity? etc. >> These properties would be separate from the field?s properties; even >> though the >> label itself is a property of the field. >> >> Jim Lambert >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription >> preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dunbarx at aol.com Mon Jan 12 00:11:38 2015 From: dunbarx at aol.com (dunbarx at aol.com) Date: Mon, 12 Jan 2015 00:11:38 -0500 Subject: Fields Have Labels In-Reply-To: References: <8D1FC2E5F8D30AA-1A74-91C02@webmail-vm148.sysops.aol.com> Message-ID: <8D1FC3D60CBE821-1A74-92224@webmail-vm148.sysops.aol.com> Ah. I see what you might mean. In a group the label appears as a, er, label in the upper left corner. I wonder if a more featured label field might use that to advantage. Craig -----Original Message----- From: Peter Haworth To: How to use LiveCode Sent: Sun, Jan 11, 2015 11:44 pm Subject: Re: Fields Have Labels There isn't right now but this is an enhancement idea. I don't think it could use the label property because of its use elsewhere but the idea is similar to how the label of a group is used when showname is true. On Jan 11, 2015 7:24 PM, wrote: > Jim. > > > But how is this different from (or better than) a custom property, that > contains any or all of those other values as an array or list? In other > words, the "label" property has immense value in, say, a button, where the > "shown" name may be separate from the actual button name. This extra layer > of reference is very useful, but is based on the ability to display that > different text apart from the name. After all, in a button, if the label is > left blank, the shown name is the actual name of the button. > > > How can a field use this extra layer in a way that enhances its existence, > since there is no way, no place, to display that extra information? > > > Craig > > > > -----Original Message----- > From: Jim Lambert > To: use-livecode > Sent: Sun, Jan 11, 2015 8:48 pm > Subject: Re: Fields Have Labels > > > > > Craig wrote: > > > > If you could set the label property to actually change some aspect of a > field, > what form would that take? Not the text, I assume. > > > Hi Craig, > > I?m thinking the field?s label would have its own property set, such as > font, > style, fore/back colors, ?iconGravity? etc. > These properties would be separate from the field?s properties; even > though the > label itself is a property of the field. > > Jim Lambert > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From lan.kc.macmail at gmail.com Mon Jan 12 01:36:10 2015 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Mon, 12 Jan 2015 14:36:10 +0800 Subject: replaceText problem In-Reply-To: References: <54A764CE.8000108@hyperactivesw.com> Message-ID: On Fri, Jan 9, 2015 at 8:22 AM, Peter Haworth wrote: > > [the]{3}\s(\w+)\s.*?(?=;) > > Using matchText in LC 6.5.2 it fails with error 301 pattern error. > Works fine in LC 7.0.1 on OS X 10.9.5 From prothero at earthednet.org Mon Jan 12 01:47:30 2015 From: prothero at earthednet.org (William Prothero) Date: Sun, 11 Jan 2015 22:47:30 -0800 Subject: Crash when revCloseBrowser Message-ID: Folks: Is anybody using the browser window in Windows? I get a crash on revBrowserClose, in a standalone. It works in the IDE. The browser opens and loads the web page, a simple text page then crashes the app when I close it. I?m on Windows 7, 64 bit, Livecode 7.0.1, using Parallels 10 on Yosemite. The CEF version of the browser also crashes the app when I try to close it. This is the last issue before I have a first version of a standalone app that works on Mac and PC desktops. For now, unless somebody has a bright idea, I?ll have to launch the default browser on Windows systems to get what I want, which is lame. I?ll submit a bug report unless someone points out an error in my code. When I open the browser: put the windowID of this stack into tWinID put revBrowserOpen(tWinID,helpURL) into sBrowserID ?When I close the browser on closeBrowser put revBrowserInstances() into tInstances repeat for each item tInst in tInstances if tInstances is not empty then revBrowserClose tInst end if end repeat end closeBrowser Regards, Bill William A. Prothero http://es.earthednet.org/ From lan.kc.macmail at gmail.com Mon Jan 12 02:13:00 2015 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Mon, 12 Jan 2015 15:13:00 +0800 Subject: [OT] Slow performance under Yosemite In-Reply-To: <5BB87F50-16A1-4705-B643-B0D152D1A9F3@onechip.com> References: <5BB87F50-16A1-4705-B643-B0D152D1A9F3@onechip.com> Message-ID: Thanks for sharing. I've been putting off Yosemite because of all the 'slow' reports. I run two external monitors so this would have surely bitten me. You may just have persuaded me to take the plunge. Are they up to 10.10.2 yet? I use to wait until .1 was out, but these days that seems to just address the initial deluge of complaints. .2 seems to be the first real sorted version of OS X. On Mon, Jan 12, 2015 at 5:29 AM, John Miskimins wrote: > This isn?t a LiveCode issue, but I thought it might effect others on the > list. After updating my Mac to Yosemite,it slowed down noticeably and > became frustrating to use. Granted my Mac is a bit long in the tooth (late > 2009 27 inch iMac - lots of RAM and SSD with a second 2560X1440 monitor), > but it has run really well up to now. I tried everything I could find > online (repairing the HD, PRAM reset, etc.) to no avail. As turn out, the > default in Yosemite is to treat the second monitor as a new ?space?. This > was the issue. Using the Mission Control panel in System Preferences, I > unticked ?Displays have separate Spaces? and, after a restart for it to > take effect, my computer is once again snappy. > > Thanks, > John > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From smudge.andy at googlemail.com Mon Jan 12 02:22:10 2015 From: smudge.andy at googlemail.com (AndyP) Date: Sun, 11 Jan 2015 23:22:10 -0800 (PST) Subject: [OT] Slow performance under Yosemite In-Reply-To: <5BB87F50-16A1-4705-B643-B0D152D1A9F3@onechip.com> References: <5BB87F50-16A1-4705-B643-B0D152D1A9F3@onechip.com> Message-ID: <1421047330974-4687693.post@n4.nabble.com> Yosemite changed how the app package in the Applications directory can be accessed. from the Script Editor Themer FAQ http://2108.co.uk/faq/#yosemeti Q. I?m unable to install Script Editor Themer on Yosemite? The release of Yosemite changed how the app package in the Applications directory can be accessed. Files in the Application directory cannot now be amended. At this time (03/01/2105) all of the LiveCode app package is installed in the Applications or sub Applications directory. This is an issue for all plugins that rely on being able to amend the LiveCode app files. If the LiveCode app package is copied to outside the Applications directory then LiveCode files can be amended and Seth will install and run as expected. ----- Andy Piddock My software never has bugs. It just develops random features. Copy the new cloud space, get your free 15GB space now: Get Copy My Tech site http://2108.co.uk PointandSee is a FREE simple but full featured under cursor colour picker / finder. http://www.pointandsee.co.uk - made with LiveCode -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/OT-Slow-performance-under-Yosemite-tp4687662p4687693.html Sent from the Revolution - User mailing list archive at Nabble.com. From dixonja at hotmail.co.uk Mon Jan 12 02:42:06 2015 From: dixonja at hotmail.co.uk (John Dixon) Date: Mon, 12 Jan 2015 07:42:06 +0000 Subject: Crash when revCloseBrowser In-Reply-To: References: Message-ID: Bill... I'm not too sure about your closeCard handler... I am not seeing crashes, but there again, I'm not running windows, but am not having any problems using OSX Yosemite, LC 7.0 local browserID ...... on closeCard /* destroy the browser instance when the card closes */ if browserID is not empty then revBrowserClose browserID put empty into browserID end if end closeCard Dixie > From: prothero at earthednet.org > Subject: Crash when revCloseBrowser > Date: Sun, 11 Jan 2015 22:47:30 -0800 > To: use-livecode at lists.runrev.com > > Folks: > Is anybody using the browser window in Windows? I get a crash on revBrowserClose, in a standalone. It works in the IDE. The browser opens and loads the web page, a simple text page then crashes the app when I close it. I?m on Windows 7, 64 bit, Livecode 7.0.1, using Parallels 10 on Yosemite. The CEF version of the browser also crashes the app when I try to close it. > > This is the last issue before I have a first version of a standalone app that works on Mac and PC desktops. For now, unless somebody has a bright idea, I?ll have to launch the default browser on Windows systems to get what I want, which is lame. > > I?ll submit a bug report unless someone points out an error in my code. > > When I open the browser: > put the windowID of this stack into tWinID > put revBrowserOpen(tWinID,helpURL) into sBrowserID > > ?When I close the browser > on closeBrowser > put revBrowserInstances() into tInstances > repeat for each item tInst in tInstances > if tInstances is not empty then > revBrowserClose tInst > end if > end repeat > end closeBrowser > > Regards, > Bill > > > William A. Prothero > http://es.earthednet.org/ > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From lan.kc.macmail at gmail.com Mon Jan 12 03:50:05 2015 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Mon, 12 Jan 2015 16:50:05 +0800 Subject: Can't Move Backward In-Reply-To: References: <54912789.70109@economy-x-talk.com> <54912D3A.1010203@economy-x-talk.com> <2664FDC7-23BC-405E-8617-E5EFEF1A1AC6@iotecdigital.com> <1418834388185-4686886.post@n4.nabble.com> <91CCE39C-BDFA-4EA0-B959-18F9A6EAED93@earthednet.org> <5491B795.5010200@LinkIt.Com> <11D6732B-1665-4F8A-9FD4-F1A7A11D7FDD@earthednet.org> <003501d01a22$f8f43ab0$eadcb010$@net> <54B03545.3010500@LinkIt.Com> <54B04C5B.6050807@LinkIt.Com> <3B6FCDF3-320E-4D66-8EEC-F5BDDED80755@tactilemedia.com> <54B06112.1090602@LinkIt.Com> <54B0BB00.3000608@hindu.org> <54B2C492.5040804@LinkIt.Com> Message-ID: Will not solve Ray's problem but may help him and others in the future from being bitten. What with the consistent flow of updates (thank you), flavours of LC to test (depending if Cocoa or Unicode is your top priority) or if you are just testing verses in production; I was sick and tied of opening certain stacks in the wrong version of LC. This was wasting my time so I created the following handler - hAvoidStableRcDpConfusion. It basically uses a naming convention of the actual file name - not the stack name, which can be anything. The convention is filename & v & a number & . [dot] condensed LC version* & . [dot] & livecode; i.e uniCtestv5.671.livecode * The condensed LC Version is scripturally created by taking what is reported by 'revAppVersion()' and removing any . [dots] or - [dashes]. 6.7.2_(dp1) becomes 672(dp1). If you attempted to open uniCtestv5.671.livecode in LC 7.0.1 you'd be told your are opening your stack in a different version of LC than intended and asked if you want to Quit LC all together, Close the stack - so you can work on another stack, or Rename the stack file name, which will automatically duplicate the current stack and allow you to work on your new stack in LC 7.0.1 without Quitting LC. Apart from preventing me from working on important stacks in unstable versions of LC, it automatically leaves a trail of working stacks in known LC versions which are easy to identify if I do want to try out new features and bug fixes. To test, duplicate a less important stack and give it a name [filename ]v2.450.livecode. Open it and place the two handlers in the Stack's script and Save. Quit LC. Open the duplicated stack. Unless you are using 4.5.0 a dialog box should come up with the option Quit, Close or Rename. If you choose rename you should be left with only 1 stack open, which is your newly created triplicate; you should have your original file, the v2 450 file, and a new file with v3 and the version number of LC you are currently using. (watch for line wraps) on preOpenStack hAvoidStableRcDpConfusion end preOpenStack on hAvoidStableRcDpConfusion --breakpoint --only applies if you are working on a stack if (environment() = "development") then put revAppVersion() into tVersion put the short name of this stack into tName --as part of the duplication process it is not possible to open a stack with the same name --you get the 'purge' message. To work around this the original has the word 'old' appended to it's name --this allows the new stack to open with the correct name. --If ever you need to revert to the original stack, when it opens it will automatically change it's name back --to the correct name by removing the 'old' suffix. if (char -3 to -1 of tName = "old") then put char 1 to -4 of tName into tName set the name of this stack to tName save this stack end if --IMPORTANT --this handler ONLY works if your stack follows this naming convention: -- yourStackName.LCversion.livecode --The LC Version does NOT contain dots,dashes or spaces, so 7.0.1-rc-2 = 701rc2 --ie yourStackName.701(rc2).livecode --you can also include your own version numbers by appending v and a number to the basic name; but it's not a requirement --i.e. yourStackNamev5.672(dp3).livecode --if you'd prefer to use some other naming convention you'll need to amend --BETWEEN HERE replace "." with "" in tVersion replace "-" with "" in tVersion put the long name of this stack into tName set the itemDelimiter to "/" put item -1 of tName into tFullName set the itemDelimiter to "." put item 2 of tFullName into tShortName --AND HERE --only need to do anything if the names don't match if (tVersion <> tShortName) then answer warning "This stack is based on LC " & tShortName & ", but you are using Version " & tVersion & "." & cr & \ "You may:" & cr & "Quit = Will close this stack and Quit LC completely." & cr & \ "Close = Will close this stack but leave LC " & tVersion & " running." & cr & \ "Rename = Will automatically duplicate this file a create a new stack with a file name which includes " & tVersion & "." with "Rename" or "Close" or "Quit" titled "LC Version to File Missmatch" put it into tAnswer switch tAnswer case ("Quit") quit break case ("Close") if (the destroyStack of this stack = false) then answer warning "Although your stack will disappear from view it is still in memory!" & cr & "You can manually Purge the stack from memory if necessary." titled "Stack Still In Memory" end if close this stack break case ("Rename") set the itemDelimiter to "/" put item 4 to -1 of tName into tOldName --remove the quote from the end of the name put char 1 to -2 of tOldname into tOldName put tOldName into tNewName replace tShortName with tVersion in tNewName --complete the path name to the file. put specialFolderPath("Home") & "/" & tOldName into tOriginalName put specialFolderPath("Documents") & "/" & tFullName into tCopyName put char 1 to -2 of tCopyName into tCopyName put specialFolderPath("Home") & "/" & tNewName into tNewName replace tShortName with tVersion in tFullName put char 1 to -2 of tFullName into tFullName put tFullName into tCurrentName if (matchText(tFullName,"v(\d)\.",tVersion)) then --increase our v number by 1 replace ("v" & tVersion & ".") with ("v" & (tVersion + 1) & ".") in tFullName end if ask question "Confirm new file name:" & cr & "The current File Name is: " & tCurrentName with tFullName titled "File Name" put it into tAnswer put tAnswer into item -1 of tNewName revCopyFile tOriginalName,specialFolderPath("Documents") rename tCopyName to tNewName put the short name of this stack into tCurrentStack put tCurrentStack & "old" into tOldStack set the name of this stack to tOldStack save this stack open stack tNewName set the destroyStack of stack tOldStack to true close stack tOldStack break end switch end if end if end hAvoidStableRcDpConfusion From ben at livecode.com Mon Jan 12 05:40:21 2015 From: ben at livecode.com (Benjamin Beaumont) Date: Mon, 12 Jan 2015 10:40:21 +0000 Subject: RELEASE LiveCode 6.7.2 RC1 Message-ID: Dear List Members, We're pleased to announce the release of LiveCode 6.7.2 RC1. This is a maintenance release focusing on product robustness and quality. We've also added support for iOS 64 bit apps. *Release Contents* This release contains 9 bug fixes: - 14308 - Answer color returns the wrong color on OS X after using magnifying glass - 14306 - IconGravity does not work in windows - 14285 - mobileCanMakePurchase() stops in Android - 14269 - Play audioclip loops when followed by wait until the sound is done - 14253 - [[ Player ]] For some videos - 14252 - [[Player]] documentation does not include error result for setting filename - 14245 - Video Player not managing relative paths - 14238 - backgroundpattern of a field out of sync if formattedHeight > roughly 32768 - 211417 - mobileExportImageToAlbum don't work on Android For full details of the changes in this release please see the release notes: http://downloads.livecode.com/livecode/6_7_2/LiveCodeNotes-6_7_2_rc_1.pdf *Getting the Release* To get the release please select "check for updates" from the "help" menu in the product or download the installer directly at: http://downloads.livecode.com *LiveCode 7.0.2* In the next few days we'll be releasing RC1 of 7.0.2 which will contain the above fixes as well as iOS 64 bit support. *iOS 64 bit support* Apple's AppStore rules change on the 1st of February requiring that all NEW app submission contain both 32 and 64 bit binary executables. LiveCode has been updates to produce iOS apps that comply with this. If you already have an app in the AppStore you do not need to update it before the deadline, but any new submission after that date will have to be built with LiveCode 6.7.2 or later. Warm regards, The LiveCode Team From richmondmathewson at gmail.com Mon Jan 12 06:18:01 2015 From: richmondmathewson at gmail.com (Richmond) Date: Mon, 12 Jan 2015 13:18:01 +0200 Subject: RELEASE LiveCode 6.7.2 RC1 In-Reply-To: References: Message-ID: <54B3AD69.7010801@gmail.com> Install "You Only" appears to work on Ubuntu 14.10, but, subsequently, the app cannot be found in the drop-done menu or when attempting to make a panel launcher. Richmond. From frans at knowlegistics.com Mon Jan 12 06:26:19 2015 From: frans at knowlegistics.com (Frans Schoffelen) Date: Mon, 12 Jan 2015 12:26:19 +0100 Subject: 64 Bit support In-Reply-To: References: Message-ID: On 12.01.2015, at 12:00, use-livecode-request at lists.runrev.com wrote: > *LiveCode 7.0.2* > In the next few days we'll be releasing RC1 of 7.0.2 which will contain the > above fixes as well as iOS 64 bit support. Cool! I was hoping it might be in time for our next release. We were grappling to get things done in time but if support comes in at this stage that would buy is a test round or two. Great! Thanks team. Frans Frans Schoffelen, Berlin frans at knowlegistics.com SKYPE: macfrans iCHAT: frans at me.com From richmondmathewson at gmail.com Mon Jan 12 07:48:19 2015 From: richmondmathewson at gmail.com (Richmond) Date: Mon, 12 Jan 2015 14:48:19 +0200 Subject: RELEASE LiveCode 6.7.2 RC1 In-Reply-To: <54B3AD69.7010801@gmail.com> References: <54B3AD69.7010801@gmail.com> Message-ID: <54B3C293.6090804@gmail.com> On 12/01/15 13:18, Richmond wrote: > Install "You Only" appears to work on Ubuntu 14.10, but, subsequently, > the app cannot be found in the drop-done menu or when attempting to make > a panel launcher. > > Richmond. Strike that! Install worked on third attempt: no rhyme, no reason :) From prothero at earthednet.org Mon Jan 12 10:35:15 2015 From: prothero at earthednet.org (Earthednet-wp) Date: Mon, 12 Jan 2015 07:35:15 -0800 Subject: Crash when revCloseBrowser In-Reply-To: References: Message-ID: <2350C768-804B-4213-928C-24C8E21D7B4B@earthednet.org> Dixie, That's what I see. It works fine on osx but crashes on windows standalones. Works ok in windows IDE. Bill William Prothero http://es.earthednet.org > On Jan 11, 2015, at 11:42 PM, John Dixon wrote: > > > Bill... > > I'm not too sure about your closeCard handler... I am not seeing crashes, but there again, I'm not running windows, but am not having any problems using OSX Yosemite, LC 7.0 > > local browserID > > ...... > > on closeCard > /* destroy the browser instance when the card closes */ > if browserID is not empty then > revBrowserClose browserID > put empty into browserID > end if > end closeCard > > Dixie > >> From: prothero at earthednet.org >> Subject: Crash when revCloseBrowser >> Date: Sun, 11 Jan 2015 22:47:30 -0800 >> To: use-livecode at lists.runrev.com >> >> Folks: >> Is anybody using the browser window in Windows? I get a crash on revBrowserClose, in a standalone. It works in the IDE. The browser opens and loads the web page, a simple text page then crashes the app when I close it. I?m on Windows 7, 64 bit, Livecode 7.0.1, using Parallels 10 on Yosemite. The CEF version of the browser also crashes the app when I try to close it. >> >> This is the last issue before I have a first version of a standalone app that works on Mac and PC desktops. For now, unless somebody has a bright idea, I?ll have to launch the default browser on Windows systems to get what I want, which is lame. >> >> I?ll submit a bug report unless someone points out an error in my code. >> >> When I open the browser: >> put the windowID of this stack into tWinID >> put revBrowserOpen(tWinID,helpURL) into sBrowserID >> >> ?When I close the browser >> on closeBrowser >> put revBrowserInstances() into tInstances >> repeat for each item tInst in tInstances >> if tInstances is not empty then >> revBrowserClose tInst >> end if >> end repeat >> end closeBrowser >> >> Regards, >> Bill >> >> >> William A. Prothero >> http://es.earthednet.org/ >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pete at lcsql.com Mon Jan 12 12:16:12 2015 From: pete at lcsql.com (Peter Haworth) Date: Mon, 12 Jan 2015 09:16:12 -0800 Subject: replaceText problem In-Reply-To: References: <54A764CE.8000108@hyperactivesw.com> Message-ID: I found the problem. This was during the course of updating the RegEx Builder stack and there was code in there to put "(" before the regex if it didn't start with "(" and also to put ")" after the regex if it wasn't already there. In the above regex, that resulted in putting "(" before the regex but no ")" after it, so the regex was invalid. That all happened within scripts so what was on the screen wasn't what was executed in MatchText. Still not sure what purpose the parens serve. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Sun, Jan 11, 2015 at 10:36 PM, Kay C Lan wrote: > On Fri, Jan 9, 2015 at 8:22 AM, Peter Haworth wrote: > > > > > [the]{3}\s(\w+)\s.*?(?=;) > > > > Using matchText in LC 6.5.2 it fails with error 301 pattern error. > > > > Works fine in LC 7.0.1 on OS X 10.9.5 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jiml at netrin.com Mon Jan 12 12:16:39 2015 From: jiml at netrin.com (Jim Lambert) Date: Mon, 12 Jan 2015 09:16:39 -0800 Subject: Fields Have Labels In-Reply-To: References: Message-ID: Craig wrote: > Ah. > I see what you might mean. In a group the label appears as a, er, label in the upper left corner. Exactly. You?ve got it! The label should be just that - a text area that is part of the control and optionally visible to identify the control to the end user. In LC only groups and buttons have this special feature. To get the same effect for other controls you use a separate field then group it with whatever needs a label. Arguably that?s more flexible but a bit less convenient. In OMO fields had a built-in label and perhaps some other objects also did. SO long ago I can?t remember! Jim Lambert From jiml at netrin.com Mon Jan 12 12:20:19 2015 From: jiml at netrin.com (Jim Lambert) Date: Mon, 12 Jan 2015 09:20:19 -0800 Subject: RELEASE LiveCode 6.7.2 RC1 (Benjamin Beaumont) In-Reply-To: References: Message-ID: <9E971065-94CC-4B15-AB4F-19B391856FC3@netrin.com> Ben wrote: > > *Getting the Release* > To get the release please select "check for updates" from the "help? menu ?Check for updates' doesn?t seem to work from 6.7.1 or 7.0.1 on OS X. JimL From pete at lcsql.com Mon Jan 12 12:21:07 2015 From: pete at lcsql.com (Peter Haworth) Date: Mon, 12 Jan 2015 09:21:07 -0800 Subject: Fields Have Labels In-Reply-To: References: Message-ID: Sounds like time to add an enhancement request to the QCC. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Mon, Jan 12, 2015 at 9:16 AM, Jim Lambert wrote: > Craig wrote: > > Ah. > > I see what you might mean. In a group the label appears as a, er, label > in the upper left corner. > > Exactly. You?ve got it! The label should be just that - a text area that > is part of the control and optionally visible to identify the control to > the end user. > In LC only groups and buttons have this special feature. > To get the same effect for other controls you use a separate field then > group it with whatever needs a label. > Arguably that?s more flexible but a bit less convenient. > > In OMO fields had a built-in label and perhaps some other objects also did. > SO long ago I can?t remember! > > Jim Lambert > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bonnmike at gmail.com Mon Jan 12 12:34:57 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Mon, 12 Jan 2015 10:34:57 -0700 Subject: Crash when revCloseBrowser In-Reply-To: <2350C768-804B-4213-928C-24C8E21D7B4B@earthednet.org> References: <2350C768-804B-4213-928C-24C8E21D7B4B@earthednet.org> Message-ID: Its not the issue, but wanted to point out that you can simplify your browser closing handler slightly. on closeBrowser put revBrowserInstances() into tInstances repeat for each item tInst in tInstances if tInstances is not empty then -- don't need this revBrowserClose tInst end if -- or this end repeat end closeBrowser If there isn't anything in tinstances it won't be repeating, so theres no need to do the check for tInstances not empty. If anything, you might do this instead: if tInst is an integer then revbrowserclose tInst else answer information "something is wrong, tInst is " & tInst -- if tinst isn't an integer, what is it? end if You also might wrap your revbrowserclose in a try/catch On Mon, Jan 12, 2015 at 8:35 AM, Earthednet-wp wrote: > Dixie, > That's what I see. It works fine on osx but crashes on windows > standalones. Works ok in windows IDE. > Bill > > William Prothero > http://es.earthednet.org > > > On Jan 11, 2015, at 11:42 PM, John Dixon wrote: > > > > > > Bill... > > > > I'm not too sure about your closeCard handler... I am not seeing > crashes, but there again, I'm not running windows, but am not having any > problems using OSX Yosemite, LC 7.0 > > > > local browserID > > > > ...... > > > > on closeCard > > /* destroy the browser instance when the card closes */ > > if browserID is not empty then > > revBrowserClose browserID > > put empty into browserID > > end if > > end closeCard > > > > Dixie > > > >> From: prothero at earthednet.org > >> Subject: Crash when revCloseBrowser > >> Date: Sun, 11 Jan 2015 22:47:30 -0800 > >> To: use-livecode at lists.runrev.com > >> > >> Folks: > >> Is anybody using the browser window in Windows? I get a crash on > revBrowserClose, in a standalone. It works in the IDE. The browser opens > and loads the web page, a simple text page then crashes the app when I > close it. I?m on Windows 7, 64 bit, Livecode 7.0.1, using Parallels 10 on > Yosemite. The CEF version of the browser also crashes the app when I try to > close it. > >> > >> This is the last issue before I have a first version of a standalone > app that works on Mac and PC desktops. For now, unless somebody has a > bright idea, I?ll have to launch the default browser on Windows systems to > get what I want, which is lame. > >> > >> I?ll submit a bug report unless someone points out an error in my code. > >> > >> When I open the browser: > >> put the windowID of this stack into tWinID > >> put revBrowserOpen(tWinID,helpURL) into sBrowserID > >> > >> ?When I close the browser > >> on closeBrowser > >> put revBrowserInstances() into tInstances > >> repeat for each item tInst in tInstances > >> if tInstances is not empty then > >> revBrowserClose tInst > >> end if > >> end repeat > >> end closeBrowser > >> > >> Regards, > >> Bill > >> > >> > >> William A. Prothero > >> http://es.earthednet.org/ > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ambassador at fourthworld.com Mon Jan 12 13:32:36 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 12 Jan 2015 10:32:36 -0800 Subject: Fields Have Labels In-Reply-To: References: Message-ID: <54B41344.70302@fourthworld.com> It may be helpful to have a label property for fields, but should the label have a fixed location or be settable? Should it always use the font face and style of the field, or be independently settable? What of its opaque, borderwidth, and other properties? So we could invent a new syntax for this sub-object, so that we could have sufficient control over it - but once we have that, would this: set the textStyle of the label of fld "Name" to "Bold" ...be any simpler than: set the textStyle of field "Label" to "Bold" ? I believe the attraction to auto-created labels is the time savings at the moment of creation. To me this seems more of an opportunity for a creation tool than the need to modify the innards of the engine to invent a new class of sub-objects. Maybe this is helpful: That said, maybe a middle path between a simple creation tool and a more complex category of sub-object would be a good experiment for Open Language/Widgets once a v8 Alpha is available. Rather than a request for the RQCC, why not just build it as a v8 widget? In fact, we don't really need to wait for v8 to get started. One could begin the ground work on defining the properties and behavior right now with the tools we have for custom controls, and update that for v8 when it becomes available.... -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From revdev at pdslabs.net Mon Jan 12 14:02:43 2015 From: revdev at pdslabs.net (Phil Davis) Date: Mon, 12 Jan 2015 11:02:43 -0800 Subject: Fields Have Labels In-Reply-To: <54B41344.70302@fourthworld.com> References: <54B41344.70302@fourthworld.com> Message-ID: <54B41A53.9060205@pdslabs.net> I like the sound... "v8". Can you 'rev' it up? Maybe add some speed equipment? :-) Phil On 1/12/15 10:32 AM, Richard Gaskin wrote: > Rather than a request for the RQCC, why not just build it as a v8 widget? -- Phil Davis From stephenREVOLUTION2 at barncard.com Mon Jan 12 14:05:45 2015 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Mon, 12 Jan 2015 11:05:45 -0800 Subject: Fields Have Labels In-Reply-To: <54B41A53.9060205@pdslabs.net> References: <54B41344.70302@fourthworld.com> <54B41A53.9060205@pdslabs.net> Message-ID: shoulda thought of v8 *--* *Stephen Barncard - San Francisco Ca. USA - Deeds Not Words* On Mon, Jan 12, 2015 at 11:02 AM, Phil Davis wrote: > I like the sound... "v8". Can you 'rev' it up? Maybe add some speed > equipment? > > :-) > Phil > > > > On 1/12/15 10:32 AM, Richard Gaskin wrote: > >> Rather than a request for the RQCC, why not just build it as a v8 widget? >> > > -- > Phil Davis > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pete at lcsql.com Mon Jan 12 14:06:07 2015 From: pete at lcsql.com (Peter Haworth) Date: Mon, 12 Jan 2015 11:06:07 -0800 Subject: Fields Have Labels In-Reply-To: <54B41344.70302@fourthworld.com> References: <54B41344.70302@fourthworld.com> Message-ID: On Mon, Jan 12, 2015 at 10:32 AM, Richard Gaskin wrote: > So we could invent a new syntax for this sub-object, so that we could have > sufficient control over it - but once we have that, would this: > > set the textStyle of the label of fld "Name" to "Bold" > > ...be any simpler than: > > set the textStyle of field "Label" to "Bold" > Not simpler no, but eliminating the need for a separate label field brings about a lot of simplification. Referring back to the analogy with how the label of a group works, the label is an integral part of the group, no need to create a separate field for it, it moves with the group during design, etc. It's lacking in positioning and separate text formatting but it's the same concept as is being suggested. You're right though, maybe the new widget designer will provide an opportunity to develop something like this. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From jacque at hyperactivesw.com Mon Jan 12 14:55:04 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 12 Jan 2015 13:55:04 -0600 Subject: Fields Have Labels In-Reply-To: <54B41344.70302@fourthworld.com> References: <54B41344.70302@fourthworld.com> Message-ID: <54B42698.4090101@hyperactivesw.com> On 1/12/2015 12:32 PM, Richard Gaskin wrote: > I believe the attraction to auto-created labels is the time savings at > the moment of creation. To me this seems more of an opportunity for a > creation tool than the need to modify the innards of the engine to > invent a new class of sub-objects. I have to agree. The complexity of adding a new property outweighs the small effort to create a separate field and will be less flexible. There's already a plugin called FieldsCreator available somewhere that creates field/label pairs but I've lost where I found it. > Rather than a request for the RQCC, why not just build it as a v8 widget? Just what I was thinking. The ability to create pseudo-independent controls as groups exists already and will improve by v8. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bonnmike at gmail.com Mon Jan 12 15:29:27 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Mon, 12 Jan 2015 13:29:27 -0700 Subject: OT: Tacoma Message-ID: I'm going to be in Tacoma for a few days, is there anyone in the area that might want to meet for a beer? From richmondmathewson at gmail.com Mon Jan 12 15:33:44 2015 From: richmondmathewson at gmail.com (Richmond) Date: Mon, 12 Jan 2015 22:33:44 +0200 Subject: Fake typing? Message-ID: <54B42FA8.9010009@gmail.com> I can do this sort of thing: send "mouseUp" to btn "BONKERS" it would be lovely if one could also do this sort of thing: send "keyUp" to rawKey ID 113 [ oddly enough the scriptEditor doesn't find any errors in that: it is only on attempted operation that the IDE throws a "bluey" ] this could be used for detecting what sort of keyboard layout an end-user was using. ------------------------------------------ How does one get Livecode to send signals to USB peripherals? Richmond. From bonnmike at gmail.com Mon Jan 12 15:40:46 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Mon, 12 Jan 2015 13:40:46 -0700 Subject: Fake typing? In-Reply-To: <54B42FA8.9010009@gmail.com> References: <54B42FA8.9010009@gmail.com> Message-ID: Would the type command do what you want? >From the dictionary: Note: As the type command is designed to emulate exactly what happens when a user types a key on the keyboard, the rawKeyDown, keyDown, rawKeyUp and keyUp messages are sent by the command. If these messages are blocked, the text will not appear in the selected field. On Mon, Jan 12, 2015 at 1:33 PM, Richmond wrote: > I can do this sort of thing: > > send "mouseUp" to btn "BONKERS" > > it would be lovely if one could also do this sort of thing: > > send "keyUp" to rawKey ID 113 > > [ oddly enough the scriptEditor doesn't find any errors in that: it is > only on attempted operation > that the IDE throws a "bluey" ] > > this could be used for detecting what sort of keyboard layout an end-user > was using. > > ------------------------------------------ > > How does one get Livecode to send signals to USB peripherals? > > Richmond. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From richmondmathewson at gmail.com Mon Jan 12 16:00:51 2015 From: richmondmathewson at gmail.com (Richmond) Date: Mon, 12 Jan 2015 23:00:51 +0200 Subject: Fake typing? In-Reply-To: References: <54B42FA8.9010009@gmail.com> Message-ID: <54B43603.20901@gmail.com> On 12/01/15 22:40, Mike Bonner wrote: > Would the type command do what you want? > > From the dictionary: > Note: As the type command is designed to emulate exactly what happens when > a user types a key on the keyboard, the rawKeyDown, keyDown, rawKeyUp and > keyUp messages are sent by the command. If these messages are blocked, the > text will not appear in the selected field. It's a thought. This works very well indeed: on mouseUp type "Q" end mouseUp on rawKeyDown RAWK put RAWK end rawKeyDown I get 81 ------------------------------ Richmond. > > On Mon, Jan 12, 2015 at 1:33 PM, Richmond > wrote: > >> I can do this sort of thing: >> >> send "mouseUp" to btn "BONKERS" >> >> it would be lovely if one could also do this sort of thing: >> >> send "keyUp" to rawKey ID 113 >> >> [ oddly enough the scriptEditor doesn't find any errors in that: it is >> only on attempted operation >> that the IDE throws a "bluey" ] >> >> this could be used for detecting what sort of keyboard layout an end-user >> was using. >> >> ------------------------------------------ >> >> How does one get Livecode to send signals to USB peripherals? >> >> Richmond. >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Mon Jan 12 16:19:44 2015 From: richmondmathewson at gmail.com (Richmond) Date: Mon, 12 Jan 2015 23:19:44 +0200 Subject: Fake typing? In-Reply-To: <54B43603.20901@gmail.com> References: <54B42FA8.9010009@gmail.com> <54B43603.20901@gmail.com> Message-ID: <54B43A70.3070000@gmail.com> On 12/01/15 23:00, Richmond wrote: > On 12/01/15 22:40, Mike Bonner wrote: >> Would the type command do what you want? >> >> From the dictionary: >> Note: As the type command is designed to emulate exactly what happens >> when >> a user types a key on the keyboard, the rawKeyDown, keyDown, rawKeyUp >> and >> keyUp messages are sent by the command. If these messages are >> blocked, the >> text will not appear in the selected field. > > It's a thought. > > This works very well indeed: > > on mouseUp > type "Q" > end mouseUp > > on rawKeyDown RAWK > put RAWK > end rawKeyDown > > I get 81 > ------------------------------ > > Richmond. > However, if I select a different keyboard layout, say "AZERTY" (French) and run the same script I still get 81, which means that the real rawKeyDown is NOT being delivered (it should be 65). From richmondmathewson at gmail.com Mon Jan 12 16:42:57 2015 From: richmondmathewson at gmail.com (Richmond) Date: Mon, 12 Jan 2015 23:42:57 +0200 Subject: Fake typing? In-Reply-To: <54B43A70.3070000@gmail.com> References: <54B42FA8.9010009@gmail.com> <54B43603.20901@gmail.com> <54B43A70.3070000@gmail.com> Message-ID: <54B43FE1.4030501@gmail.com> On 12/01/15 23:19, Richmond wrote: > On 12/01/15 23:00, Richmond wrote: >> On 12/01/15 22:40, Mike Bonner wrote: >>> Would the type command do what you want? >>> >>> From the dictionary: >>> Note: As the type command is designed to emulate exactly what >>> happens when >>> a user types a key on the keyboard, the rawKeyDown, keyDown, >>> rawKeyUp and >>> keyUp messages are sent by the command. If these messages are >>> blocked, the >>> text will not appear in the selected field. >> >> It's a thought. >> >> This works very well indeed: >> >> on mouseUp >> type "Q" >> end mouseUp >> >> on rawKeyDown RAWK >> put RAWK >> end rawKeyDown >> >> I get 81 >> ------------------------------ >> >> Richmond. >> > > However, if I select a different keyboard layout, say "AZERTY" (French) > and run the same script I still get 81, which means that the real > rawKeyDown > is NOT being delivered (it should be 65). What is needed is NOT to TYPE "Q", but to be able to send a rawKey command ??????????? Richmond. From richmondmathewson at gmail.com Mon Jan 12 17:18:23 2015 From: richmondmathewson at gmail.com (Richmond) Date: Tue, 13 Jan 2015 00:18:23 +0200 Subject: Fake typing? In-Reply-To: <54B43FE1.4030501@gmail.com> References: <54B42FA8.9010009@gmail.com> <54B43603.20901@gmail.com> <54B43A70.3070000@gmail.com> <54B43FE1.4030501@gmail.com> Message-ID: <54B4482F.9020003@gmail.com> On 12/01/15 23:42, Richmond wrote: > On 12/01/15 23:19, Richmond wrote: >> On 12/01/15 23:00, Richmond wrote: >>> On 12/01/15 22:40, Mike Bonner wrote: >>>> Would the type command do what you want? >>>> >>>> From the dictionary: >>>> Note: As the type command is designed to emulate exactly what >>>> happens when >>>> a user types a key on the keyboard, the rawKeyDown, keyDown, >>>> rawKeyUp and >>>> keyUp messages are sent by the command. If these messages are >>>> blocked, the >>>> text will not appear in the selected field. >>> >>> It's a thought. >>> >>> This works very well indeed: >>> >>> on mouseUp >>> type "Q" >>> end mouseUp >>> >>> on rawKeyDown RAWK >>> put RAWK >>> end rawKeyDown >>> >>> I get 81 >>> ------------------------------ >>> >>> Richmond. >>> >> >> However, if I select a different keyboard layout, say "AZERTY" (French) >> and run the same script I still get 81, which means that the real >> rawKeyDown >> is NOT being delivered (it should be 65). > > What is needed is NOT to TYPE "Q", but to be able to send a rawKey > command ??????????? > > Richmond. Obviously, on Linux at least, the IDE CANNOT pick up RAW keycodes per se as the operating system's keyboard layout "thingy" gets in between the IDE and the RAW signal coming into the computer from the physical keyboard. This is a topic I have raised on-and-off for the last 5 years here-and-hereabout :( In a perfect world (Ha, Ha, Ha) the IDE should be able to distinguish between which physical key on a keyboard is pressed and which alphanumeric signal is pumped out by the system when that physical key is pressed. https://github.com/glfw/glfw/issues/114 From olivieri at bc.edu Mon Jan 12 17:23:58 2015 From: olivieri at bc.edu (Peter Olivieri) Date: Mon, 12 Jan 2015 17:23:58 -0500 Subject: Livecode and internet login Message-ID: I use Livecode's launch URL to launch a web page. The web page requires my username and password. Can I have Livecode automatically enter these two items? Thanks in advance for any help. Peter From bonnmike at gmail.com Mon Jan 12 17:27:54 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Mon, 12 Jan 2015 15:27:54 -0700 Subject: Fake typing? In-Reply-To: <54B43FE1.4030501@gmail.com> References: <54B42FA8.9010009@gmail.com> <54B43603.20901@gmail.com> <54B43A70.3070000@gmail.com> <54B43FE1.4030501@gmail.com> Message-ID: Interesting.. Correct me if i'm wrong though. (which is likely) a Q is a Q is a Q, which is why it would still be 81, even though the keyboard scan code would be different, but then mapped to "Q" based on the layout. (meaning pressing the right key for Q on the keyboard would be mapped to 81) If the purpose is to determine the current keyboard layout, (you mentioned that somewhere above) I wonder if shell will work, though that has the problem that the environment from shell and in an x session may be different. You might mess around with setxkbmap -query from shell() also might look at the environment variables and see whats there. I don't think you can force a keyboard to send a key unless its a programmable, but I may be wrong on that. I messed with dispatching keydown and rawkeydown and dispatching things with some varied combinations of numtochar, chartonum and the newer but related native functions, don't see a way to force the behavior you wish. The best option would be to tell the user to press a specific key and see what pops out, and use that to determine layout.. assuming you can't get at the info programmatically. <-- (spelling?) On Mon, Jan 12, 2015 at 2:42 PM, Richmond wrote: > On 12/01/15 23:19, Richmond wrote: > >> On 12/01/15 23:00, Richmond wrote: >> >>> On 12/01/15 22:40, Mike Bonner wrote: >>> >>>> Would the type command do what you want? >>>> >>>> From the dictionary: >>>> Note: As the type command is designed to emulate exactly what happens >>>> when >>>> a user types a key on the keyboard, the rawKeyDown, keyDown, rawKeyUp >>>> and >>>> keyUp messages are sent by the command. If these messages are blocked, >>>> the >>>> text will not appear in the selected field. >>>> >>> >>> It's a thought. >>> >>> This works very well indeed: >>> >>> on mouseUp >>> type "Q" >>> end mouseUp >>> >>> on rawKeyDown RAWK >>> put RAWK >>> end rawKeyDown >>> >>> I get 81 >>> ------------------------------ >>> >>> Richmond. >>> >>> >> However, if I select a different keyboard layout, say "AZERTY" (French) >> and run the same script I still get 81, which means that the real >> rawKeyDown >> is NOT being delivered (it should be 65). >> > > What is needed is NOT to TYPE "Q", but to be able to send a rawKey command > ??????????? > > Richmond. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bonnmike at gmail.com Mon Jan 12 17:28:57 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Mon, 12 Jan 2015 15:28:57 -0700 Subject: Fake typing? In-Reply-To: References: <54B42FA8.9010009@gmail.com> <54B43603.20901@gmail.com> <54B43A70.3070000@gmail.com> <54B43FE1.4030501@gmail.com> Message-ID: If you can determine which map file is used, then you could maybe parse the file and figure things out that way. On Mon, Jan 12, 2015 at 3:27 PM, Mike Bonner wrote: > Interesting.. Correct me if i'm wrong though. (which is likely) a Q is a Q > is a Q, which is why it would still be 81, even though the keyboard scan > code would be different, but then mapped to "Q" based on the layout. > (meaning pressing the right key for Q on the keyboard would be mapped to > 81) > > If the purpose is to determine the current keyboard layout, (you mentioned > that somewhere above) I wonder if shell will work, though that has the > problem that the environment from shell and in an x session may be > different. > > You might mess around with setxkbmap -query from shell() > also might look at the environment variables and see whats there. > > I don't think you can force a keyboard to send a key unless its a > programmable, but I may be wrong on that. I messed with dispatching > keydown and rawkeydown and dispatching things with some varied combinations > of numtochar, chartonum and the newer but related native functions, don't > see a way to force the behavior you wish. > > The best option would be to tell the user to press a specific key and see > what pops out, and use that to determine layout.. assuming you can't get at > the info programmatically. <-- (spelling?) > > On Mon, Jan 12, 2015 at 2:42 PM, Richmond > wrote: > >> On 12/01/15 23:19, Richmond wrote: >> >>> On 12/01/15 23:00, Richmond wrote: >>> >>>> On 12/01/15 22:40, Mike Bonner wrote: >>>> >>>>> Would the type command do what you want? >>>>> >>>>> From the dictionary: >>>>> Note: As the type command is designed to emulate exactly what happens >>>>> when >>>>> a user types a key on the keyboard, the rawKeyDown, keyDown, rawKeyUp >>>>> and >>>>> keyUp messages are sent by the command. If these messages are blocked, >>>>> the >>>>> text will not appear in the selected field. >>>>> >>>> >>>> It's a thought. >>>> >>>> This works very well indeed: >>>> >>>> on mouseUp >>>> type "Q" >>>> end mouseUp >>>> >>>> on rawKeyDown RAWK >>>> put RAWK >>>> end rawKeyDown >>>> >>>> I get 81 >>>> ------------------------------ >>>> >>>> Richmond. >>>> >>>> >>> However, if I select a different keyboard layout, say "AZERTY" (French) >>> and run the same script I still get 81, which means that the real >>> rawKeyDown >>> is NOT being delivered (it should be 65). >>> >> >> What is needed is NOT to TYPE "Q", but to be able to send a rawKey >> command ??????????? >> >> Richmond. >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > From harrison at all-auctions.com Mon Jan 12 17:34:47 2015 From: harrison at all-auctions.com (Rick Harrison) Date: Mon, 12 Jan 2015 17:34:47 -0500 Subject: Livecode and internet login In-Reply-To: References: Message-ID: <87AC227D-C428-4FF1-B925-CC67C4EDCA79@all-auctions.com> Hi Peter, A long time ago, I used LiveCode to write some easy web robots to help me automate some of my own web routines. It worked great, so I think it should be possible to figure out a way to do it. If I think of any thing more I?ll let you know. Good luck, Rick > On Jan 12, 2015, at 5:23 PM, Peter Olivieri wrote: > > I use Livecode's launch URL to launch a web page. > > The web page requires my username and password. > > Can I have Livecode automatically enter these two items? > > Thanks in advance for any help. > > Peter From smudge.andy at googlemail.com Mon Jan 12 17:50:37 2015 From: smudge.andy at googlemail.com (AndyP) Date: Mon, 12 Jan 2015 14:50:37 -0800 (PST) Subject: POST & Url Encoding Message-ID: <1421103037275-4687722.post@n4.nabble.com> I've been doing a lot of work recently involving using POST & Url Encoding in LiveCode and had to look at a lot of different sources of information to sort out some of the problems I had encountered along the way. So I've created the first in a series of blog posts on the subject to help others with what I've learnt. Why do I need to Url Encode my http POST requests? ----- Andy Piddock My software never has bugs. It just develops random features. Copy the new cloud space, get your free 15GB space now: Get Copy Script editor Themer for LC http://2108.co.uk PointandSee is a FREE simple but full featured under cursor colour picker / finder. http://www.pointandsee.co.uk - made with LiveCode -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/POST-Url-Encoding-tp4687722.html Sent from the Revolution - User mailing list archive at Nabble.com. From prothero at earthednet.org Mon Jan 12 18:46:28 2015 From: prothero at earthednet.org (William Prothero) Date: Mon, 12 Jan 2015 15:46:28 -0800 Subject: Crash when revCloseBrowser In-Reply-To: <6E5D8BFC-D07E-4461-9B38-91E3E67470D7@gmail.com> References: <2350C768-804B-4213-928C-24C8E21D7B4B@earthednet.org> <6E5D8BFC-D07E-4461-9B38-91E3E67470D7@gmail.com> Message-ID: <934D12D8-831D-4E0D-871A-F649A853E950@earthednet.org> Folks: After messing with this all day, I now know that it?s not the browser that?s crashing my app. My app works fine in IDE, but crashes in standalone, on the PC. So, I?ve got more work to do to ferret out the problem. The last time I had this kind of problem, I submitted the entire app to the bug report, and they did find a true crash/bug. The revBrowser does not crash in OS X or PC standalones. There are problems with the CEF version, but that?s another story. Regards, Bill William A. Prothero http://es.earthednet.org/ From matthias_livecode_150811 at m-r-d.de Mon Jan 12 18:50:15 2015 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe | M-R-D) Date: Tue, 13 Jan 2015 00:50:15 +0100 Subject: Livecode and internet login In-Reply-To: References: Message-ID: Hi Peter, if the webserver is using ?Basic http authentication? for the login then you can just add the username and password to the url. The syntax is as follows: http://yourusername:yourpassword at yourserver.com? HTH Matthias > Am 12.01.2015 um 23:23 schrieb Peter Olivieri : > > I use Livecode's launch URL to launch a web page. > > The web page requires my username and password. > > Can I have Livecode automatically enter these two items? > > Thanks in advance for any help. > > Peter > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From lan.kc.macmail at gmail.com Mon Jan 12 18:53:05 2015 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Tue, 13 Jan 2015 07:53:05 +0800 Subject: [OT] Print to PDF Message-ID: This is not LC related but as you are the largest group of varied OS users I thought I'd ask. I've just discovered that the very basic OS feature of being able to 'Print to PDF' may not be available on all OSs. On OS X it's a feature I use daily. Particularly in your web browser, if you choose Print, do you have an option to save to some kind of single file (pdf,doc,...) rather than send to a physical printer. Please advise the OS, web browser, the kind of file you can create and where that option is hidden. [This relates to some very elder gentlemen who I'm trying to help access some online pages, and then be able to save these pages to view whilst offline. The 3 web browsers I have all have the ability to Save as.... but the result is a folder full of media and a bunch of html files and if one or the other is moved then the document breaks. The structure takes up more space and it's also harder to clean up as it's more than just one file to Trash. To me, Print to PDF produces a much cleaner smaller document for storing, viewing offline and deleting. I was hoping to help them with a similar single file solution.] Thanks in advance From monte at sweattechnologies.com Mon Jan 12 19:27:12 2015 From: monte at sweattechnologies.com (Monte Goulding) Date: Tue, 13 Jan 2015 11:27:12 +1100 Subject: mergExt & 64bit Message-ID: <9AB960EA-6C33-4672-B25E-809B6A3E32E7@sweattechnologies.com> Hi LiveCoders Just to preempt some of the emails and support queries I'll get over the next week I will be providing 64 bit builds as soon as possible but until then you will get errors when building against 6.7.2. I have had an open bug report open with RunRev for a while now about 64 bit support in the externals sdk because at the moment there are some errors thrown. I aim to have it all resolved by Apple's deadline. Cheers Monte -- M E R Goulding Software development services Bespoke application development for vertical markets mergExt - There's an external for that! From userev at canelasoftware.com Mon Jan 12 20:38:29 2015 From: userev at canelasoftware.com (Mark Talluto) Date: Mon, 12 Jan 2015 17:38:29 -0800 Subject: mergExt & 64bit In-Reply-To: <9AB960EA-6C33-4672-B25E-809B6A3E32E7@sweattechnologies.com> References: <9AB960EA-6C33-4672-B25E-809B6A3E32E7@sweattechnologies.com> Message-ID: On Jan 12, 2015, at 4:27 PM, Monte Goulding wrote: > Hi LiveCoders > > Just to preempt some of the emails and support queries I'll get over the next week I will be providing 64 bit builds as soon as possible but until then you will get errors when building against 6.7.2. I have had an open bug report open with RunRev for a while now about 64 bit support in the externals sdk because at the moment there are some errors thrown. I aim to have it all resolved by Apple's deadline. Thanks Monte! Best regards, Mark Talluto livecloud.io canelasoftware.com From jiml at netrin.com Mon Jan 12 23:39:54 2015 From: jiml at netrin.com (Jim Lambert) Date: Mon, 12 Jan 2015 20:39:54 -0800 Subject: Fields Have Labels In-Reply-To: References: Message-ID: <16A7A0E6-2653-4161-95A0-4E5B56A3E67F@netrin.com> Following the logic that it?s more better to have separate fields for labels would dictate that the existing built-in labels for buttons and groups should be deprecated! What?s good for the goose is good for the gander. ;) JimL From bdrunrev at gmail.com Tue Jan 13 00:36:20 2015 From: bdrunrev at gmail.com (Bernard Devlin) Date: Tue, 13 Jan 2015 05:36:20 +0000 Subject: Long IDE pauses? In-Reply-To: References: Message-ID: I believe I encountered this (slow-stepping through debugger). As one of the things I am working on requires something which is 10x to 20x slower in 7.0.1, I've gone back to using an earlier version. Bernard On Mon, Jan 12, 2015 at 1:29 AM, Dr. Hawkins wrote: > Are other people seeing *really* long pauses in the IDE of 7.0.1 while > single stepping and editing? > > 10-30 seconds seems to happen at least once or twice an hour, and a couple > of seconds to switch IDE tabs is the norm. > > -- > Dr. Richard E. Hawkins, Esq. > (702) 508-8462 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From paul at livecode.org Tue Jan 13 01:59:21 2015 From: paul at livecode.org (Paul Hibbert) Date: Mon, 12 Jan 2015 22:59:21 -0800 Subject: [OT] Print to PDF In-Reply-To: References: Message-ID: Maybe this could help? http://www.howtogeek.com/150891/how-to-print-to-pdf-in-windows-4-tips-and-tricks/ Paul > On Jan 12, 2015, at 3:53 PM, Kay C Lan wrote: > > This is not LC related but as you are the largest group of varied OS users > I thought I'd ask. I've just discovered that the very basic OS feature of > being able to 'Print to PDF' may not be available on all OSs. On OS X it's > a feature I use daily. > > Particularly in your web browser, if you choose Print, do you have an > option to save to some kind of single file (pdf,doc,...) rather than send > to a physical printer. Please advise the OS, web browser, the kind of file > you can create and where that option is hidden. > > [This relates to some very elder gentlemen who I'm trying to help access > some online pages, and then be able to save these pages to view whilst > offline. The 3 web browsers I have all have the ability to Save as.... but > the result is a folder full of media and a bunch of html files and if one > or the other is moved then the document breaks. The structure takes up more > space and it's also harder to clean up as it's more than just one file to > Trash. To me, Print to PDF produces a much cleaner smaller document for > storing, viewing offline and deleting. I was hoping to help them with a > similar single file solution.] > > Thanks in advance > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pete at lcsql.com Tue Jan 13 02:00:45 2015 From: pete at lcsql.com (Peter Haworth) Date: Mon, 12 Jan 2015 23:00:45 -0800 Subject: Fields Have Labels In-Reply-To: <54B42698.4090101@hyperactivesw.com> References: <54B41344.70302@fourthworld.com> <54B42698.4090101@hyperactivesw.com> Message-ID: Creation time is certainly one of the points where separate controls for a field and it's label is somewhat inconvenient. As you mentioned, there are tools out there that help alleviate the problem including Richard's. I think I probably complicated the issue by saying we needed a new property so it could be used with any control, plus the various comments on text properties being available separately from the field itself. All that would be great but I'd be happy if the label of a field could be displayed just as the label of a group can be displayed, coupled with making the new iconGravity property (or perhaps a more descriptive synonym for it like labelPosition) apply to a field but relative to the text of the field instead of the icon of a button. No need for showName, just set the label of the field to empty if you prefer to carry on using separate label fields. I know nothing of the complexities of the engine but this seems like it just makes use of existing properties and the existing logic for group labels and icon labels. Plus it enables you to carry on using separate label fields if you prefer. Off to the QCC. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On 1/12/2015 12:32 PM, Richard Gaskin wrote: > I believe the attraction to auto-created labels is the time savings at > the moment of creation. To me this seems more of an opportunity for a > creation tool than the need to modify the innards of the engine to > invent a new class of sub-objects. > I have to agree. The complexity of adding a new property outweighs the small effort to create a separate field and will be less flexible. There's already a plugin called FieldsCreator available somewhere that creates field/label pairs but I've lost where I found it. Rather than a request for the RQCC, why not just build it as a v8 widget? > Just what I was thinking. The ability to create pseudo-independent controls as groups exists already and will improve by v8. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From admin at FlexibleLearning.com Tue Jan 13 03:54:57 2015 From: admin at FlexibleLearning.com (FlexibleLearning.com) Date: Tue, 13 Jan 2015 08:54:57 -0000 Subject: Fields Have Labels Message-ID: <006801d02f0e$9c274010$d475c030$@FlexibleLearning.com> TitleWidth (LabelWidth) already exists for buttons... would including the property for field objects be useful? Hugh Senior FLCo From palcibiades-first at yahoo.co.uk Tue Jan 13 04:06:00 2015 From: palcibiades-first at yahoo.co.uk (Peter Alcibiades) Date: Tue, 13 Jan 2015 01:06:00 -0800 (PST) Subject: [OT] Print to PDF In-Reply-To: References: Message-ID: <1421139960333-4687733.post@n4.nabble.com> Debian, both Firefox (aka Iceweasel) and Chrome do this. Firefox is the easiest, you just do print to file, select pdf and give it a name. Chrome its hidden in the far right drop down menu, but after you find 'print' it gives you the option of PDF. It is much less intuitive. I would just give him Firefox and it should work fine. Incidentally, if you want to give anyone a truly portable Linux, try Porteus. Brilliant, runs from stick, and configure it exactly how you want. Peter -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/OT-Print-to-PDF-tp4687725p4687733.html Sent from the Revolution - User mailing list archive at Nabble.com. From robert at livecode.org Tue Jan 13 06:20:00 2015 From: robert at livecode.org (Robert L.) Date: Tue, 13 Jan 2015 05:20:00 -0600 Subject: What versions of OS X, Xcode, iOS SDK to build externals? Message-ID: I?ve posted this to the forums as well, but I know that the mailing list has a slightly different audience. I?m trying my hand at building some simple externals, but I can't even seem to make one attempt to build. Xcode is telling me that my project has "0 targets, missing base SDK". I think it may be due to using too recent version of Xcode (and thus missing older iOS SDKs). Currently I am on OS X Yosemite 10.10.1, Xcode 6.1.1 (which lets me target iOS 6.0 to 8.1), with the LiveCode iOS externals R14 SDK Support. Are there any tricks to build an external with the most recent tools? If not, what is the most recent combination of OS X and Xcode that is known to work for building iOS externals? I can build a virtual machine if needed. Any advice in getting started building externals would be greatly appreciated. Thanks, Robert From pmbrig at gmail.com Tue Jan 13 10:08:45 2015 From: pmbrig at gmail.com (Peter M. Brigham) Date: Tue, 13 Jan 2015 10:08:45 -0500 Subject: Fields Have Labels In-Reply-To: References: <54B41344.70302@fourthworld.com> <54B42698.4090101@hyperactivesw.com> Message-ID: On Jan 13, 2015, at 2:00 AM, Peter Haworth wrote: > Creation time is certainly one of the points where separate controls for a > field and it's label is somewhat inconvenient. As you mentioned, there are > tools out there that help alleviate the problem including Richard's. > > I think I probably complicated the issue by saying we needed a new property > so it could be used with any control, plus the various comments on text > properties being available separately from the field itself. > > All that would be great but I'd be happy if the label of a field could be > displayed just as the label of a group can be displayed, coupled with > making the new iconGravity property (or perhaps a more descriptive synonym > for it like labelPosition) apply to a field but relative to the text of the > field instead of the icon of a button. No need for showName, just set the > label of the field to empty if you prefer to carry on using separate label > fields. > > I know nothing of the complexities of the engine but this seems like it > just makes use of existing properties and the existing logic for group > labels and icon labels. Plus it enables you to carry on using separate > label fields if you prefer. Off to the QCC. If you want the logic of a field label to be the same as that of a button or group, then setting the label to empty should make the label field display the name of the field -- and indeed this is the way a group and button labels work. The showname property (shouldn't this be called showlabel?) should be separate from the value of the label. -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig From prothero at earthednet.org Tue Jan 13 10:32:50 2015 From: prothero at earthednet.org (Earthednet-wp) Date: Tue, 13 Jan 2015 07:32:50 -0800 Subject: Fields Have Labels In-Reply-To: <006801d02f0e$9c274010$d475c030$@FlexibleLearning.com> References: <006801d02f0e$9c274010$d475c030$@FlexibleLearning.com> Message-ID: <68B26454-5EA8-43B5-B2CC-C9DC06C2B0DD@earthednet.org> Hugh, Just a "heads up" re your lcstackbrowser app. I found that it interferes with some of my code. Also, I got a message that it was trying to open one of your handlers and couldn't because code was protected. I do a lot of creating of fields, lines, and graphic elements. I'm trying to finish a project, so don't have time to mess with it, so I had to remove it, as my app behaved oddly. So, just wondering if your handlers might have names that interfere with mine. Best, Bill William Prothero http://es.earthednet.org > On Jan 13, 2015, at 12:54 AM, "FlexibleLearning.com" wrote: > > TitleWidth (LabelWidth) already exists for buttons... would including the > property for field objects be useful? > > Hugh Senior > FLCo > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Tue Jan 13 10:41:19 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 13 Jan 2015 07:41:19 -0800 Subject: Fields Have Labels In-Reply-To: References: Message-ID: <54B53C9F.7070107@fourthworld.com> Peter Haworth wrote: > All that would be great but I'd be happy if the label of a field > could be displayed just as the label of a group can be displayed, > coupled with making the new iconGravity property (or perhaps a > more descriptive synonym for it like labelPosition) apply to a > field but relative to the text of the field instead of the icon > of a button. No need for showName, just set the label of the field > to empty if you prefer to carry on using separate label fields. > > I know nothing of the complexities of the engine but this seems > like it just makes use of existing properties and the existing > logic for group labels and icon labels. Plus it enables you to > carry on using separate label fields if you prefer. Off to the QCC. If RunRev were to implement this they probably wouldn't do it in C++, but in LiveCode: they'd make it as a Widget. This is exactly the sort of thing Open Language/Widgets was designed to do, allowing things that used to require C++ the option of being done in LiveCode at a savings every bit as significant as the reason we write our apps in LiveCode rather than C++. You could add it to the request queue, but given their need to finish the rest of the items on the Road Map it would be months before you'd have it. Or you could have it today in just a couple hours as a custom control. V8's Widgets will make this a little nicer in some respects, but this one is, as you suggest, so relatively simple that you could build is as a custom control this morning and enjoy it this afternoon. This isn't nearly as complex as the DataGrid, which is also just a custom control, independent of any goodies coming up in v8. When Widgets later become available it may be worth revising to take advantage of some of the new things there, but just like the DataGrid there are many useful things that can be done with custom controls right now so there's no need to wait. In fact, with this proposed object the bigger challenge is design; implementation is pretty straightforward. So you can work out the design today, have it today, and if you choose to update it later for v8 it only gets better. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From littlejamesw at mac.com Tue Jan 13 11:50:25 2015 From: littlejamesw at mac.com (James Little) Date: Tue, 13 Jan 2015 08:50:25 -0800 Subject: OT: Tacoma In-Reply-To: References: Message-ID: Hi Mike, Any chance you will be in Seattle? My son and I would like to get together, if you?re up this way. Jim Little On Jan 12, 2015, at 12:29 PM, Mike Bonner wrote: > I'm going to be in Tacoma for a few days, is there anyone in the area that > might want to meet for a beer? > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From rene.micout at numericable.com Tue Jan 13 12:07:25 2015 From: rene.micout at numericable.com (=?utf-8?Q?Ren=C3=A9_Micout?=) Date: Tue, 13 Jan 2015 18:07:25 +0100 Subject: LiveCode 6 and making standalone Message-ID: Hello everybody, Macintosh Yosemite. When I construct a standalone with LiveCode 6, I choose ?Move substacks into individual stackfiles? (for saving data in substack) this works with LC 6.6.3 > In the /Contents/MacOS/ of my application (ctrl + clic) I have 1 file (exec) + several stacks (substacks) but when I do the same thing with LC 6.6.4, 6.6.5, 6.7, 6.7.1 (rc 4) I have only 1 file (exec) and my application cannot save any data. Why ? Is-it a bug ? Tristement de Paris Ren? From pete at lcsql.com Tue Jan 13 12:13:41 2015 From: pete at lcsql.com (Peter Haworth) Date: Tue, 13 Jan 2015 09:13:41 -0800 Subject: Fields Have Labels In-Reply-To: <54B53C9F.7070107@fourthworld.com> References: <54B53C9F.7070107@fourthworld.com> Message-ID: On Tue, Jan 13, 2015 at 7:41 AM, Richard Gaskin wrote: > You could add it to the request queue, but given their need to finish the > rest of the items on the Road Map it would be months before you'd have it. > > Or you could have it today in just a couple hours as a custom control. > Wouldn't expect it to be implemented any time soon for the reason you pointed out. I just want to get it on record so it's not forgotten as a possibility for the future. I often see great ideas discussed on this list but, as with bugs, if they don't make it to the QCC, there's no chance they will ever be implemented. I already have it as a custom control and it sounds like others do too but it would be much more elegant if it was implemented within the engine. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From jiml at netrin.com Tue Jan 13 12:14:07 2015 From: jiml at netrin.com (Jim Lambert) Date: Tue, 13 Jan 2015 09:14:07 -0800 Subject: Fields Have Labels In-Reply-To: References: Message-ID: <526BC594-0357-4A26-BA30-00183C5D8D97@netrin.com> I wrote: > > it?s more better ?more better? !!! What was I thinking? Not much apparently! Jim Lambert From jacque at hyperactivesw.com Tue Jan 13 12:27:11 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 13 Jan 2015 11:27:11 -0600 Subject: Fields Have Labels In-Reply-To: <16A7A0E6-2653-4161-95A0-4E5B56A3E67F@netrin.com> References: <16A7A0E6-2653-4161-95A0-4E5B56A3E67F@netrin.com> Message-ID: <5F7A9C29-A906-4789-AC1C-6BDB1D530056@hyperactivesw.com> Buttons and groups do not have their own text displays, so their labels can inherent the text properties of the object. Adding a label to a field will require a whole set of new properties to distinguish its formatting from that of the field text. We'd also want relative placement properties (top, side), alignment, etc and by the time it's all there we'll basically have the same thing as our current field, only attached permanently to the parent field. So it seems to me that the only thing a label will save is the attachment bit. Also we'd need to introduce a new property that controls the offset of the label in pixels from the field itself, since the distance between the two will always vary depending on layout, font size, etc. This isn't an issue with buttons and groups, where each OS has existing rules about label placement. On January 12, 2015 10:39:54 PM CST, Jim Lambert wrote: >Following the logic that it?s more better to have separate fields for >labels would dictate that the existing built-in labels for buttons and >groups should be deprecated! > >What?s good for the goose is good for the gander. ;) > >JimL > > > > >_______________________________________________ >use-livecode mailing list >use-livecode at lists.runrev.com >Please visit this url to subscribe, unsubscribe and manage your >subscription preferences: >http://lists.runrev.com/mailman/listinfo/use-livecode -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From klaus at major-k.de Tue Jan 13 13:24:04 2015 From: klaus at major-k.de (Klaus major-k) Date: Tue, 13 Jan 2015 19:24:04 +0100 Subject: new player (AV Foundation) and MP3 Message-ID: <9C959530-D658-456A-BBD2-B81B180941E5@major-k.de> Hi friends, just tried the new player object with an MP3 file, could set its filename but cannot start the *?$%# thing, neither with the controller nor via srcipt!? I get -> could not create movie reference Tried with 6.7.1 and 6.7.2 RC1, OS X 10.10.1 and dozens of my MP3s, which play fine in QT and iTunes. I doublechecked: dontuseqt = TRUE Please don't tell me that we cannot play MP3s in a player anymore!? :-/ Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From jacque at hyperactivesw.com Tue Jan 13 14:12:21 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 13 Jan 2015 13:12:21 -0600 Subject: new player (AV Foundation) and MP3 In-Reply-To: <9C959530-D658-456A-BBD2-B81B180941E5@major-k.de> References: <9C959530-D658-456A-BBD2-B81B180941E5@major-k.de> Message-ID: <54B56E15.5040605@hyperactivesw.com> On 1/13/2015 12:24 PM, Klaus major-k wrote: > Hi friends, > > just tried the new player object with an MP3 file, could set its filename > but cannot start the *?$%# thing, neither with the controller nor via srcipt!? > > I get -> could not create movie reference > > Tried with 6.7.1 and 6.7.2 RC1, OS X 10.10.1 and dozens of my MP3s, > which play fine in QT and iTunes. > > I doublechecked: dontuseqt = TRUE > > Please don't tell me that we cannot play MP3s in a player anymore!? :-/ I get the same thing, also with m4a and wav files. It looks like audio-only files are broken. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From ambassador at fourthworld.com Tue Jan 13 14:25:24 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 13 Jan 2015 11:25:24 -0800 Subject: Fields Have Labels In-Reply-To: References: Message-ID: <54B57124.8030802@fourthworld.com> I'm indulging in a hat switch here with my CM sig because I think this aspect of the discussion may be helpful for many community interests: Peter Haworth wrote: > Wouldn't expect it to be implemented any time soon for the reason > you pointed out. I just want to get it on record so it's not > forgotten as a possibility for the future. Ideally (fully recognizing that we don't live in an ideal world ), the items in the RQCC would be actionable. With feature requests, this might mean that we've taken the time for community discussion to decide what it is we're asking them to implement. Once in a while there may be aspects of some feature requests which require input from the team, and thankfully Mark Waddingham and the others there tend to have good judgement about such things and the conversations in the RQCC are generally very productive, even if the original submission was lacking in detail. In this case, though, given the range of opinions expressed here it may be helpful to continue this thread a bit longer, to flesh out some of the details so that later one someone on the team or a member of the community can treat the request as a spec and just dive in to make it happen. > I often see great ideas discussed on this list but, as with bugs, > if they don't make it to the QCC, there's no chance they will > ever be implemented. If an idea is so easily forgotten, what is its enduring value? I'm not referring to this field label proposal here, but merely expressing a certain happy acceptance of the reality that we can brainstorm all sorts of things, but over time only a subset of them come up often enough to warrant investing in them. I can't begin to describe how many half-baked ideas I have floating around in my hard drives. :) In brief, I don't mind when ideas get forgotten, as I can have confidence that if something is frequently needed it'll come up again. > I already have it as a custom control and it sounds like others do > too but it would be much more elegant if it was implemented within > the engine. Given the extreme likelihood that any implementation by RunRev would be done in the same LiveCode we all use, I wouldn't sell your or any other implementation short. On the contrary, I believe it may be helpful to identify the specific ways in which a custom control may be inelegant, and make sure we have what we need to make it as elegant as if it were a native control. Because that's really what the future of controls in LiveCode is all about. Let's have the future today. Or at least as soon as practical. Let's figure out what we need for a wonderfully graceful implementation, and see that it happens. -- Richard Gaskin LiveCode Community Manager richard at livecode.org From pete at lcsql.com Tue Jan 13 14:47:47 2015 From: pete at lcsql.com (Peter Haworth) Date: Tue, 13 Jan 2015 11:47:47 -0800 Subject: Fields Have Labels In-Reply-To: <54B57124.8030802@fourthworld.com> References: <54B57124.8030802@fourthworld.com> Message-ID: On Tue, Jan 13, 2015 at 11:25 AM, Richard Gaskin wrote: > Let's figure out what we need for a wonderfully graceful implementation, > and see that it happens. It's QCC Report 14379 if anyone wants to follow it or add to it. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From ray at linkit.com Tue Jan 13 15:01:48 2015 From: ray at linkit.com (ray) Date: Tue, 13 Jan 2015 17:01:48 -0300 Subject: new player (AV Foundation) and MP3 Message-ID: This would be a major setback for us too. ?Anybody know? -------- Original message -------- From: Klaus major-k Date:01/13/2015 3:24 PM (GMT-04:00) To: How to use LiveCode Cc: Subject: new player (AV Foundation) and MP3 Hi friends, just tried the new player object with an MP3 file, could set its filename but cannot start the *?$%# thing, neither with the controller nor via srcipt!? I get -> could not create movie reference Tried with 6.7.1 and 6.7.2 RC1, OS X 10.10.1 and dozens of my MP3s, which play fine in QT and iTunes. I doublechecked: dontuseqt = TRUE Please don't tell me that we cannot play MP3s in a player anymore!? :-/ Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From klaus at major-k.de Tue Jan 13 15:04:37 2015 From: klaus at major-k.de (Klaus major-k) Date: Tue, 13 Jan 2015 21:04:37 +0100 Subject: new player (AV Foundation) and MP3 In-Reply-To: References: Message-ID: <9ABEA99C-2A37-4A5B-A148-49A523F16E5E@major-k.de> Hi all, > Am 13.01.2015 um 21:01 schrieb ray : > > This would be a major setback for us too. Anybody know? looks like this is a known bug :-/ > -------- Original message -------- > From: Klaus major-k > Date:01/13/2015 3:24 PM (GMT-04:00) > To: How to use LiveCode > Cc: > Subject: new player (AV Foundation) and MP3 > > Hi friends, > > just tried the new player object with an MP3 file, could set its filename > but cannot start the *?$%# thing, neither with the controller nor via srcipt!? > > I get -> could not create movie reference > > Tried with 6.7.1 and 6.7.2 RC1, OS X 10.10.1 and dozens of my MP3s, > which play fine in QT and iTunes. > > I doublechecked: dontuseqt = TRUE > > Please don't tell me that we cannot play MP3s in a player anymore!? :-/ Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From ray at linkit.com Tue Jan 13 15:09:12 2015 From: ray at linkit.com (ray) Date: Tue, 13 Jan 2015 17:09:12 -0300 Subject: new player (AV Foundation) and MP3 Message-ID: Ahh - gotcha. ?Thanks Klaus. Sent from my Samsung Galaxy smartphone. -------- Original message -------- From: Klaus major-k Date:01/13/2015 5:04 PM (GMT-04:00) To: How to use LiveCode Cc: Subject: Re: new player (AV Foundation) and MP3 Hi all, > Am 13.01.2015 um 21:01 schrieb ray : > > This would be a major setback for us too. Anybody know? looks like this is a known bug :-/ > -------- Original message -------- > From: Klaus major-k > Date:01/13/2015 3:24 PM (GMT-04:00) > To: How to use LiveCode > Cc: > Subject: new player (AV Foundation) and MP3 > > Hi friends, > > just tried the new player object with an MP3 file, could set its filename > but cannot start the *?$%# thing, neither with the controller nor via srcipt!? > > I get -> could not create movie reference > > Tried with 6.7.1 and 6.7.2 RC1, OS X 10.10.1 and dozens of my MP3s, > which play fine in QT and iTunes. > > I doublechecked: dontuseqt = TRUE > > Please don't tell me that we cannot play MP3s in a player anymore!? :-/ Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From matthias_livecode_150811 at m-r-d.de Tue Jan 13 15:07:55 2015 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe | M-R-D) Date: Tue, 13 Jan 2015 21:07:55 +0100 Subject: new player (AV Foundation) and MP3 In-Reply-To: <9C959530-D658-456A-BBD2-B81B180941E5@major-k.de> References: <9C959530-D658-456A-BBD2-B81B180941E5@major-k.de> Message-ID: Klaus, there is already an entry in the bug base for it. Bug?14345 A fix is awaited for 6.7.2 RC2. Devin posted in a comment that using set the playrate of player ?whatever? to 1 instead of start player will play the audio clip. Regards, Matthias > Am 13.01.2015 um 19:24 schrieb Klaus major-k : > > Hi friends, > > just tried the new player object with an MP3 file, could set its filename > but cannot start the *?$%# thing, neither with the controller nor via srcipt!? > > I get -> could not create movie reference > > Tried with 6.7.1 and 6.7.2 RC1, OS X 10.10.1 and dozens of my MP3s, > which play fine in QT and iTunes. > > I doublechecked: dontuseqt = TRUE > > Please don't tell me that we cannot play MP3s in a player anymore!? :-/ > > > Best > > Klaus > -- > Klaus Major > http://www.major-k.de > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From prothero at earthednet.org Tue Jan 13 15:58:38 2015 From: prothero at earthednet.org (William Prothero) Date: Tue, 13 Jan 2015 12:58:38 -0800 Subject: Odd crash with 7.0.1 and 6.7.2(rc1) Message-ID: Folks: I?m seeing a crash in both version 6.7.2(rc1) and 7.0.1 in my application. It only happens with a standalone in Windows. I?m running windows 7 64 bit in parallels 10, Yosemite on the Mac. The place where it causes the crash is in the following code, where the formatted width and formattedHeight of the map image comes out to be 0. This causes the crash. The app works fine in OS X standalone and in both Mac and Windows IDE?s. put getAFilePath("files/maps/")&mapFileName into fullFilePath set the filename of image "mainMap" to fullFilePath set the visible of image "mainMap" to TRUE wait for 0 seconds with messages put the formattedWidth of image "mainMap" into mapWidth put the formattedHeight of image "mainMap" into mapHeight This is a show stopper for my Windows version of my App. Can anybody suggest a workaround for this? Regards Bill William A. Prothero http://es.earthednet.org/ From userev at canelasoftware.com Tue Jan 13 16:17:14 2015 From: userev at canelasoftware.com (Mark Talluto) Date: Tue, 13 Jan 2015 13:17:14 -0800 Subject: Odd crash with 7.0.1 and 6.7.2(rc1) In-Reply-To: References: Message-ID: <9D2CC14D-D0F6-4CDC-943F-2FFBE6FB3911@canelasoftware.com> On Jan 13, 2015, at 12:58 PM, William Prothero wrote: > Folks: > I?m seeing a crash in both version 6.7.2(rc1) and 7.0.1 in my application. It only happens with a standalone in Windows. I?m running windows 7 64 bit in parallels 10, Yosemite on the Mac. The place where it causes the crash is in the following code, where the formatted width and formattedHeight of the map image comes out to be 0. This causes the crash. The app works fine in OS X standalone and in both Mac and Windows IDE?s. > > put getAFilePath("files/maps/")&mapFileName into fullFilePath > set the filename of image "mainMap" to fullFilePath > set the visible of image "mainMap" to TRUE > wait for 0 seconds with messages > put the formattedWidth of image "mainMap" into mapWidth > put the formattedHeight of image "mainMap" into mapHeight > > This is a show stopper for my Windows version of my App. Can anybody suggest a workaround for this? Hi Bill, What happens if you increase your wait to 30 milliseconds? If that does not work, what happens if you move the remaining code after the wait to another handler and then send to that new handler in 2 seconds? Best regards, Mark Talluto livecloud.io canelasoftware.com From bonnmike at gmail.com Tue Jan 13 16:28:47 2015 From: bonnmike at gmail.com (Mike) Date: Tue, 13 Jan 2015 14:28:47 -0700 Subject: OT: Tacoma In-Reply-To: References: Message-ID: <69C56C67-14B4-4344-AD0B-A50FFDC809A2@gmail.com> I'm flying in to Seattle tonight, but will be going straight to my hotel in Tacoma. Won't have my own car, but might be able to figure out something with my friend (the reason I'm going) once I'm settled in. I'll be in Washington till next Tuesday. Sent from my iPhone > On Jan 13, 2015, at 9:50 AM, James Little wrote: > > > Hi Mike, > > Any chance you will be in Seattle? My son and I would like to get together, if you?re up this way. > > Jim Little > > >> On Jan 12, 2015, at 12:29 PM, Mike Bonner wrote: >> >> I'm going to be in Tacoma for a few days, is there anyone in the area that >> might want to meet for a beer? >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From prothero at earthednet.org Tue Jan 13 17:14:11 2015 From: prothero at earthednet.org (William Prothero) Date: Tue, 13 Jan 2015 14:14:11 -0800 Subject: Odd crash with 7.0.1 and 6.7.2(rc1) In-Reply-To: <9D2CC14D-D0F6-4CDC-943F-2FFBE6FB3911@canelasoftware.com> References: <9D2CC14D-D0F6-4CDC-943F-2FFBE6FB3911@canelasoftware.com> Message-ID: Mark: I still get the crash in both cases. Bummer. So it doesn?t appear to be a timing problem. Bill > On Jan 13, 2015, at 1:17 PM, Mark Talluto wrote: > > > On Jan 13, 2015, at 12:58 PM, William Prothero wrote: > >> Folks: >> I?m seeing a crash in both version 6.7.2(rc1) and 7.0.1 in my application. It only happens with a standalone in Windows. I?m running windows 7 64 bit in parallels 10, Yosemite on the Mac. The place where it causes the crash is in the following code, where the formatted width and formattedHeight of the map image comes out to be 0. This causes the crash. The app works fine in OS X standalone and in both Mac and Windows IDE?s. >> >> put getAFilePath("files/maps/")&mapFileName into fullFilePath >> set the filename of image "mainMap" to fullFilePath >> set the visible of image "mainMap" to TRUE >> wait for 0 seconds with messages >> put the formattedWidth of image "mainMap" into mapWidth >> put the formattedHeight of image "mainMap" into mapHeight >> >> This is a show stopper for my Windows version of my App. Can anybody suggest a workaround for this? > > Hi Bill, > > What happens if you increase your wait to 30 milliseconds? > > If that does not work, what happens if you move the remaining code after the wait to another handler and then send to that new handler in 2 seconds? > > > Best regards, > > Mark Talluto > livecloud.io > canelasoftware.com > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pete at lcsql.com Tue Jan 13 18:17:26 2015 From: pete at lcsql.com (Peter Haworth) Date: Tue, 13 Jan 2015 15:17:26 -0800 Subject: Player object Message-ID: Just venturing into using a player object for the first time. I'm playing mp3 files in my iTunes library and I have most of what I want to do figured out but one thing eludes me. The controller has a couple of buttons on the right that look like they are supposed to move to the prev/next track (I'm playing music from a library). I see a playPaused message when I click on them but there doesn't appear to be a way to differentiate between clicking on one of those buttons and clicking the controller icon. I'd like to start playing the prev/next track in the library. I'm sure I'm missing something obvious! Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From jacque at hyperactivesw.com Tue Jan 13 18:30:39 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 13 Jan 2015 17:30:39 -0600 Subject: [OT] I'm going to go live in a cave Message-ID: <54B5AA9F.7040805@hyperactivesw.com> Wireless USB charger logs keystrokes: Cyberspace gets more disgusting every day. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From scott at tactilemedia.com Tue Jan 13 18:37:31 2015 From: scott at tactilemedia.com (Scott Rossi) Date: Tue, 13 Jan 2015 15:37:31 -0800 Subject: Player object In-Reply-To: References: Message-ID: <0AE35646-3A6E-4693-8694-F9F34985268F@tactilemedia.com> I don?t believe the player as any sense of ?tracks? by itself. The buttons on the right are for fast forward and reverse (click and hold), but like the play button, they don?t respond well when playing audio only. Play a movie and you?ll see the results better. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On Jan 13, 2015, at 3:17 PM, Peter Haworth wrote: > Just venturing into using a player object for the first time. > > I'm playing mp3 files in my iTunes library and I have most of what I want > to do figured out but one thing eludes me. > > The controller has a couple of buttons on the right that look like they are > supposed to move to the prev/next track (I'm playing music from a > library). I see a playPaused message when I click on them but there > doesn't appear to be a way to differentiate between clicking on one of > those buttons and clicking the controller icon. I'd like to start playing > the prev/next track in the library. > > I'm sure I'm missing something obvious! > > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From scott at tactilemedia.com Tue Jan 13 18:58:05 2015 From: scott at tactilemedia.com (Scott Rossi) Date: Tue, 13 Jan 2015 15:58:05 -0800 Subject: [OT] I'm going to go live in a cave In-Reply-To: <54B5AA9F.7040805@hyperactivesw.com> References: <54B5AA9F.7040805@hyperactivesw.com> Message-ID: <01F8F51B-E3BD-4753-B05D-63562B6D3949@tactilemedia.com> Dude, it?s not cyberspace any more. It?s the Internet of Things :-) Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On Jan 13, 2015, at 3:30 PM, J. Landman Gay wrote: > Wireless USB charger logs keystrokes: > > > > Cyberspace gets more disgusting every day. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Tue Jan 13 19:04:38 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 13 Jan 2015 18:04:38 -0600 Subject: [OT] I'm going to go live in a cave In-Reply-To: <01F8F51B-E3BD-4753-B05D-63562B6D3949@tactilemedia.com> References: <54B5AA9F.7040805@hyperactivesw.com> <01F8F51B-E3BD-4753-B05D-63562B6D3949@tactilemedia.com> Message-ID: <54B5B296.6050701@hyperactivesw.com> Well then, your lightbulbs just logged that. On 1/13/2015 5:58 PM, Scott Rossi wrote: > Dude, it?s not cyberspace any more. It?s the Internet of Things :-) > > Regards, > > Scott Rossi > Creative Director > Tactile Media, UX/UI Design > > > On Jan 13, 2015, at 3:30 PM, J. Landman Gay wrote: > >> Wireless USB charger logs keystrokes: >> >> >> >> Cyberspace gets more disgusting every day. >> >> -- >> Jacqueline Landman Gay | jacque at hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From prothero at earthednet.org Tue Jan 13 19:17:22 2015 From: prothero at earthednet.org (William Prothero) Date: Tue, 13 Jan 2015 16:17:22 -0800 Subject: Odd crash with 7.0.1 and 6.7.2(rc1) In-Reply-To: References: <9D2CC14D-D0F6-4CDC-943F-2FFBE6FB3911@canelasoftware.com> Message-ID: <7C1AD6E7-ABF9-4437-9544-3AB23416F443@earthednet.org> Never mind!! Looks like a found the problem. It was me. I found it when I was entering a bug report and typed ?it?s as if the image is not being loaded.? Bingo!! The paths are slightly different on Mac and PC standAlones. Best, Bill > On Jan 13, 2015, at 2:14 PM, William Prothero wrote: > > Mark: > I still get the crash in both cases. Bummer. So it doesn?t appear to be a timing problem. > Bill > >> On Jan 13, 2015, at 1:17 PM, Mark Talluto wrote: >> >> >> On Jan 13, 2015, at 12:58 PM, William Prothero wrote: >> >>> Folks: >>> I?m seeing a crash in both version 6.7.2(rc1) and 7.0.1 in my application. It only happens with a standalone in Windows. I?m running windows 7 64 bit in parallels 10, Yosemite on the Mac. The place where it causes the crash is in the following code, where the formatted width and formattedHeight of the map image comes out to be 0. This causes the crash. The app works fine in OS X standalone and in both Mac and Windows IDE?s. >>> >>> put getAFilePath("files/maps/")&mapFileName into fullFilePath >>> set the filename of image "mainMap" to fullFilePath >>> set the visible of image "mainMap" to TRUE >>> wait for 0 seconds with messages >>> put the formattedWidth of image "mainMap" into mapWidth >>> put the formattedHeight of image "mainMap" into mapHeight >>> >>> This is a show stopper for my Windows version of my App. Can anybody suggest a workaround for this? >> >> Hi Bill, >> >> What happens if you increase your wait to 30 milliseconds? >> >> If that does not work, what happens if you move the remaining code after the wait to another handler and then send to that new handler in 2 seconds? >> >> >> Best regards, >> >> Mark Talluto >> livecloud.io >> canelasoftware.com >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From scott at tactilemedia.com Tue Jan 13 19:20:48 2015 From: scott at tactilemedia.com (Scott Rossi) Date: Tue, 13 Jan 2015 16:20:48 -0800 Subject: [OT] I'm going to go live in a cave In-Reply-To: <54B5B296.6050701@hyperactivesw.com> References: <54B5AA9F.7040805@hyperactivesw.com> <01F8F51B-E3BD-4753-B05D-63562B6D3949@tactilemedia.com> <54B5B296.6050701@hyperactivesw.com> Message-ID: <0C1DC809-D561-4430-9F5D-192C0460E29F@tactilemedia.com> Actually, the cell phone charger is the key logger. The lightbulbs are web cams. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On Jan 13, 2015, at 4:04 PM, J. Landman Gay wrote: > Well then, your lightbulbs just logged that. > > On 1/13/2015 5:58 PM, Scott Rossi wrote: >> Dude, it?s not cyberspace any more. It?s the Internet of Things :-) >> >> Regards, >> >> Scott Rossi >> Creative Director >> Tactile Media, UX/UI Design >> >> >> On Jan 13, 2015, at 3:30 PM, J. Landman Gay wrote: >> >>> Wireless USB charger logs keystrokes: >>> >>> >>> >>> Cyberspace gets more disgusting every day. >>> >>> -- >>> Jacqueline Landman Gay | jacque at hyperactivesw.com >>> HyperActive Software | http://www.hyperactivesw.com > > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From devin_asay at byu.edu Tue Jan 13 19:24:21 2015 From: devin_asay at byu.edu (Devin Asay) Date: Wed, 14 Jan 2015 00:24:21 +0000 Subject: [OT] I'm going to go live in a cave In-Reply-To: <0C1DC809-D561-4430-9F5D-192C0460E29F@tactilemedia.com> References: <54B5AA9F.7040805@hyperactivesw.com> <01F8F51B-E3BD-4753-B05D-63562B6D3949@tactilemedia.com> <54B5B296.6050701@hyperactivesw.com> <0C1DC809-D561-4430-9F5D-192C0460E29F@tactilemedia.com> Message-ID: Better not let my light switches hear you say that. They might tell the garage door, and then things could get ugly. Devin On Jan 13, 2015, at 5:20 PM, Scott Rossi wrote: > Actually, the cell phone charger is the key logger. The lightbulbs are web cams. > > Regards, > > Scott Rossi > Creative Director > Tactile Media, UX/UI Design > > On Jan 13, 2015, at 4:04 PM, J. Landman Gay wrote: > >> Well then, your lightbulbs just logged that. >> >> On 1/13/2015 5:58 PM, Scott Rossi wrote: >>> Dude, it?s not cyberspace any more. It?s the Internet of Things :-) >>> >>> Regards, >>> >>> Scott Rossi >>> Creative Director >>> Tactile Media, UX/UI Design >>> >>> >>> On Jan 13, 2015, at 3:30 PM, J. Landman Gay wrote: >>> >>>> Wireless USB charger logs keystrokes: >>>> >>>> >>>> >>>> Cyberspace gets more disgusting every day. >>>> >>>> -- >>>> Jacqueline Landman Gay | jacque at hyperactivesw.com >>>> HyperActive Software | http://www.hyperactivesw.com >> >> >> -- >> Jacqueline Landman Gay | jacque at hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode Devin Asay Office of Digital Humanities Brigham Young University From userev at canelasoftware.com Tue Jan 13 19:28:29 2015 From: userev at canelasoftware.com (Mark Talluto) Date: Tue, 13 Jan 2015 16:28:29 -0800 Subject: Odd crash with 7.0.1 and 6.7.2(rc1) In-Reply-To: <7C1AD6E7-ABF9-4437-9544-3AB23416F443@earthednet.org> References: <9D2CC14D-D0F6-4CDC-943F-2FFBE6FB3911@canelasoftware.com> <7C1AD6E7-ABF9-4437-9544-3AB23416F443@earthednet.org> Message-ID: <53D1E46F-A5E8-4DAF-B33C-9E2C6B8753AD@canelasoftware.com> On Jan 13, 2015, at 4:17 PM, William Prothero wrote: > Never mind!! Looks like a found the problem. It was me. I found it when I was entering a bug report and typed ?it?s as if the image is not being loaded.? Bingo!! The paths are slightly different on Mac and PC standAlones. This is good news, but you should still report this as nothing should cause LiveCode to crash. Glad you have this working though. Best regards, Mark Talluto livecloud.io canelasoftware.com From bobsneidar at iotecdigital.com Tue Jan 13 19:39:50 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 14 Jan 2015 00:39:50 +0000 Subject: Free IP Calculator In-Reply-To: References: <72594843-7460-425D-932B-E552326432C7@iotecdigital.com> <54B04675.4080705@tweedly.net> Message-ID: <0AA66EF7-FC4A-4795-9FCD-219FCF4D5232@iotecdigital.com> OK Sorry all this seems to return all the correct values. If anyone finds anymore bugs let me know. Bob S function IPCalc theIPAddress, theSubnetMask set the itemdelimiter to "." -- initial setup set the numberFormat to "00000000" -- convert the ip address to binary put 0 into whichOctet repeat for each item theOctet in theIPAddress add 1 to whichOctet put baseConvert(theOctet, 10, 2) into item whichOctet of theBinIPAddress add 0 to item whichOctet of theBinIPAddress end repeat -- convert the subnet mask to binary put 0 into whichOctet repeat for each item theOctet in theSubnetMask add 1 to whichOctet put baseConvert(theOctet, 10, 2) into item whichOctet of theBinSubnetMask add 0 to item whichOctet of theBinSubnetMask end repeat -- calculate the binary subnet address put theBinSubnetMask into theBinSubnetAddr put offset("0", theBinSubnetAddr) into theFirstNodeChar put theFirstNodeChar -1 into theCIDRDepth if theCIDRDepth >9 then subtract 1 from theCIDRDepth if theCIDRDepth >18 then subtract 1 from theCIDRDepth if theCIDRDepth >27 then subtract 1 from theCIDRDepth put char 1 to theFirstNodeChar -1 of theBinIPAddress into theBinNetworkAddr put char theFirstNodeChar to -1 of theBinIPAddress into theBinNodeAddr put theBinNodeAddr into theBinSubnetNodeAddr set the numberFormat to "0" replace "1" with "0" in theBinSubnetNodeAddr put theBinNetworkAddr & theBinSubnetNodeAddr into theBinSubnetAddr -- convert the binary subnet address to decimal put 0 into whichOctet repeat for each item theOctet in theBinSubnetAddr add 1 to whichOctet put baseconvert(theOctet, 2, 10) into item whichOctet of theSubnetAddr end repeat -- calculate the first usable IP address put theSubnetAddr into theFirstAddr add 1 to item 4 of theFirstAddr -- calculate the binary broadcast address put theBinNodeAddr into theBinBcastNodeAddr replace "0" with "1" in theBinBcastNodeAddr put theBinNetworkAddr & theBinBcastNodeAddr into theBinBcastAddr -- convert the binary broadcast address to decimal put 0 into whichOctet repeat for each item theOctet in theBinBcastAddr add 1 to whichOctet put baseConvert(theOctet, 2 ,10) into item WhichOctet of theBcastAddr end repeat -- calculate the last usable IP address put theBcastAddr into theLastAddr subtract 1 from item 4 of theLastAddr -- calculate the number of usable addresses put item 4 of theLastAddr - item 4 of theFirstAddr +1 into theAddrCount -- calculate the CIDR notation put theSubnetAddr & "/" & theCIDRDepth into theCIDRAddr -- create array put theIPAddress into ipdata ["ipaddress"] put theSubnetMask into ipdata ["subnetmask"] put theSubnetAddr into ipdata ["subnetaddr"] put theFirstAddr into ipdata ["firstaddr"] put theBcastAddr into ipdata["bcastaddr"] put theLastAddr into ipdata ["lastaddr"] put theCIDRDepth into ipdata ["cidrdepth"] put theAddrCount into ipdata ["usablecount"] put theCIDRAddr into ipdata ["cidraddr"] return ipdata end IPCalc > On Jan 9, 2015, at 16:42 , Bob Sneidar wrote: > > Looks like that whacks some other things. I?ll look at this on the weekend and verify all the returned values are correct. I can?t believe I saw 25 when it was supposed to be 23 and I didn?t catch it. > > Bob S > > From lan.kc.macmail at gmail.com Tue Jan 13 19:41:29 2015 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Wed, 14 Jan 2015 08:41:29 +0800 Subject: [OT] Print to PDF In-Reply-To: <1421139960333-4687733.post@n4.nabble.com> References: <1421139960333-4687733.post@n4.nabble.com> Message-ID: Gentlemen, thank you very much, that is good news. Anyone out there with Windows and Firefox and can confirm it has the 'Print to file' with the option to select pdf. The article Paul linked indicates Chrome is as Peter mentions for Debian, but doesn't mention Firefox; or IE. From dochawk at gmail.com Tue Jan 13 19:47:27 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Tue, 13 Jan 2015 16:47:27 -0800 Subject: Odd crash with 7.0.1 and 6.7.2(rc1) In-Reply-To: <7C1AD6E7-ABF9-4437-9544-3AB23416F443@earthednet.org> References: <9D2CC14D-D0F6-4CDC-943F-2FFBE6FB3911@canelasoftware.com> <7C1AD6E7-ABF9-4437-9544-3AB23416F443@earthednet.org> Message-ID: On Tue, Jan 13, 2015 at 4:17 PM, William Prothero wrote: > Never mind!! Looks like a found the problem. It was me. I found it when I > was entering a bug report and typed ?it?s as if the image is not being > loaded.? Bingo!! The paths are slightly different on Mac and PC > standAlones. > I've filed at least one that seems to cause a crash on Mac IDE and standalone when referencing a nonexistent property. One went to "waiting build" this morning. Hurrah! And I saw another variant when a stack got renamed; referencing its properties (once the named stack no longer existed) caused the crash. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From ambassador at fourthworld.com Tue Jan 13 19:53:27 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 13 Jan 2015 16:53:27 -0800 Subject: [OT] I'm going to go live in a cave In-Reply-To: <0C1DC809-D561-4430-9F5D-192C0460E29F@tactilemedia.com> References: <0C1DC809-D561-4430-9F5D-192C0460E29F@tactilemedia.com> Message-ID: <54B5BE07.2060206@fourthworld.com> Scott Rossi wrote: > On Jan 13, 2015, at 4:04 PM, J. Landman Gay wrote: >> >> Wireless USB charger logs keystrokes: >> >> >> >> Cyberspace gets more disgusting every day. > > Dude, it?s not cyberspace any more. It?s the Internet of Things :-) Welcome to the future, brought to you by the "What, me worry?" folks making Internet of Things devices: ?I can see all of the devices in your home and I think I can control them..." -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From roger.e.eller at sealedair.com Tue Jan 13 20:03:14 2015 From: roger.e.eller at sealedair.com (Roger Eller) Date: Tue, 13 Jan 2015 20:03:14 -0500 Subject: [OT] I'm going to go live in a cave In-Reply-To: <54B5BE07.2060206@fourthworld.com> References: <0C1DC809-D561-4430-9F5D-192C0460E29F@tactilemedia.com> <54B5BE07.2060206@fourthworld.com> Message-ID: Richard, I have a shirt exactly like the one you're wearing. Sent from my iDrone On Jan 13, 2015 7:53 PM, "Richard Gaskin" wrote: > Scott Rossi wrote: > > > On Jan 13, 2015, at 4:04 PM, J. Landman Gay wrote: > >> > >> Wireless USB charger logs keystrokes: > >> > >> charger_will_wirelessly_keylog_your_boss/> > >> > >> Cyberspace gets more disgusting every day. > > > > Dude, it?s not cyberspace any more. It?s the Internet of Things :-) > > Welcome to the future, brought to you by the "What, me worry?" folks > making Internet of Things devices: > > ?I can see all of the devices in your home and I think I can control > them..." > > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pete at lcsql.com Tue Jan 13 20:10:42 2015 From: pete at lcsql.com (Peter Haworth) Date: Tue, 13 Jan 2015 17:10:42 -0800 Subject: Player object In-Reply-To: <0AE35646-3A6E-4693-8694-F9F34985268F@tactilemedia.com> References: <0AE35646-3A6E-4693-8694-F9F34985268F@tactilemedia.com> Message-ID: OK, got it. The buttons are for a different usage than I interpreted them. They do behave a bit strangely though. Holding down the mouse sends a playpaused message and does fast forward through the track but the track doesn't start playing again when I let go the mouse. Maybe I can store the currenttime in a mouseDown handler then in mouseUp start the player again if the currenttime is different. I guess I'll just add my own button for prev/next track. Thanks Scott. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Tue, Jan 13, 2015 at 3:37 PM, Scott Rossi wrote: > I don?t believe the player as any sense of ?tracks? by itself. The > buttons on the right are for fast forward and reverse (click and hold), but > like the play button, they don?t respond well when playing audio only. > Play a movie and you?ll see the results better. > > Regards, > > Scott Rossi > Creative Director > Tactile Media, UX/UI Design > > On Jan 13, 2015, at 3:17 PM, Peter Haworth wrote: > > > Just venturing into using a player object for the first time. > > > > I'm playing mp3 files in my iTunes library and I have most of what I want > > to do figured out but one thing eludes me. > > > > The controller has a couple of buttons on the right that look like they > are > > supposed to move to the prev/next track (I'm playing music from a > > library). I see a playPaused message when I click on them but there > > doesn't appear to be a way to differentiate between clicking on one of > > those buttons and clicking the controller icon. I'd like to start > playing > > the prev/next track in the library. > > > > I'm sure I'm missing something obvious! > > > > Pete > > lcSQL Software > > Home of lcStackBrowser and > > SQLiteAdmin > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bobsneidar at iotecdigital.com Tue Jan 13 20:14:54 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 14 Jan 2015 01:14:54 +0000 Subject: Free IP Calculator In-Reply-To: <0AA66EF7-FC4A-4795-9FCD-219FCF4D5232@iotecdigital.com> References: <72594843-7460-425D-932B-E552326432C7@iotecdigital.com> <54B04675.4080705@tweedly.net> <0AA66EF7-FC4A-4795-9FCD-219FCF4D5232@iotecdigital.com> Message-ID: Ok belay that last. Seems I found another bug that only appears with glassful subnet masks. I am going to have to convert everything to actual binary (not delimited octets) do my math then convert back to delimited octets. Stay tuned? Bob S On Jan 13, 2015, at 16:39 , Bob Sneidar > wrote: OK Sorry all this seems to return all the correct values. If anyone finds anymore bugs let me know. Bob S function IPCalc theIPAddress, theSubnetMask From scott at tactilemedia.com Tue Jan 13 20:19:48 2015 From: scott at tactilemedia.com (Scott Rossi) Date: Tue, 13 Jan 2015 17:19:48 -0800 Subject: Player object In-Reply-To: References: <0AE35646-3A6E-4693-8694-F9F34985268F@tactilemedia.com> Message-ID: <5AA96A71-77C1-41E6-B4FD-DC08A19F657A@tactilemedia.com> Again, the buttons behave more reliably with video than audio (likely related to the audio-only playback bug mentioned earlier). You might be better off creating your own controller. And yes, you?ll need to create your own track/playlist management. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On Jan 13, 2015, at 5:10 PM, Peter Haworth wrote: > OK, got it. The buttons are for a different usage than I interpreted them. > They do behave a bit strangely though. Holding down the mouse sends a > playpaused message and does fast forward through the track but the track > doesn't start playing again when I let go the mouse. Maybe I can store the > currenttime in a mouseDown handler then in mouseUp start the player again > if the currenttime is different. > > I guess I'll just add my own button for prev/next track. > > Thanks Scott. > > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin > > On Tue, Jan 13, 2015 at 3:37 PM, Scott Rossi wrote: > >> I don?t believe the player as any sense of ?tracks? by itself. The >> buttons on the right are for fast forward and reverse (click and hold), but >> like the play button, they don?t respond well when playing audio only. >> Play a movie and you?ll see the results better. >> >> Regards, >> >> Scott Rossi >> Creative Director >> Tactile Media, UX/UI Design >> >> On Jan 13, 2015, at 3:17 PM, Peter Haworth wrote: >> >>> Just venturing into using a player object for the first time. >>> >>> I'm playing mp3 files in my iTunes library and I have most of what I want >>> to do figured out but one thing eludes me. >>> >>> The controller has a couple of buttons on the right that look like they >> are >>> supposed to move to the prev/next track (I'm playing music from a >>> library). I see a playPaused message when I click on them but there >>> doesn't appear to be a way to differentiate between clicking on one of >>> those buttons and clicking the controller icon. I'd like to start >> playing >>> the prev/next track in the library. >>> >>> I'm sure I'm missing something obvious! >>> >>> Pete >>> lcSQL Software >>> Home of lcStackBrowser and >>> SQLiteAdmin >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From lan.kc.macmail at gmail.com Tue Jan 13 20:37:53 2015 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Wed, 14 Jan 2015 09:37:53 +0800 Subject: POST & Url Encoding In-Reply-To: <1421103037275-4687722.post@n4.nabble.com> References: <1421103037275-4687722.post@n4.nabble.com> Message-ID: Hi Andy, In your Blog: on mouseUp //the '&' in the string will cause problems so url encode it put urlEncode("black&white") into tencodedString put "animal=" & cat & "&color=" & tencodedString into tmyData post tmyData to url "http://2108.co.uk/code/lc/mypost.lc?" end mouseUp I think you meant: put "animal=" & "cat" & "&color=" & tencodedString into tmyData which really should be: put "animal=cat&color=" & tencodedString into tmyData or you meant put "cat" into tmyAnimal put "animal=" & tmyAnimal & "&color=" & tencodedString into tmyData From harrison at all-auctions.com Tue Jan 13 20:38:29 2015 From: harrison at all-auctions.com (Rick Harrison) Date: Tue, 13 Jan 2015 20:38:29 -0500 Subject: [OT] I'm going to go live in a cave In-Reply-To: <54B5AA9F.7040805@hyperactivesw.com> References: <54B5AA9F.7040805@hyperactivesw.com> Message-ID: <1207E390-BC6D-4ECA-BBA9-8B6FA5B544A4@all-auctions.com> Just go back to using wired keyboards and then you won?t have any worries. I?m still using my wired keyboard so no big change for me. ;-) I?ll come and visit you in the cave when the time is appropriate! LOL Cheers, Rick > On Jan 13, 2015, at 6:30 PM, J. Landman Gay wrote: > > Wireless USB charger logs keystrokes: > > > > Cyberspace gets more disgusting every day. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From prothero at earthednet.org Tue Jan 13 21:04:58 2015 From: prothero at earthednet.org (William Prothero) Date: Tue, 13 Jan 2015 18:04:58 -0800 Subject: Odd crash with 7.0.1 and 6.7.2(rc1) In-Reply-To: References: <9D2CC14D-D0F6-4CDC-943F-2FFBE6FB3911@canelasoftware.com> <7C1AD6E7-ABF9-4437-9544-3AB23416F443@earthednet.org> Message-ID: The app didn?t actually crash with a crash report. It just gave me the bug report email, so it?s probably not reportable and I shouldn?t have called it a crash. This bug teaches me to ALWAYS check if a file exists before trying to link to it. It was part of the code when I was learning LiveCode, but that?s no excuse. BTW, I noticed that for a number of lines, I had a curly bracket rather than a square one. e.g put myNumber into myList[xyz?} Shouldn?t the IDE toss an error alert? Seemed to work anyway. I fixed it anyway. Best, Bill William A. Prothero http://es.earthednet.org/ > On Jan 13, 2015, at 4:47 PM, Dr. Hawkins wrote: > > On Tue, Jan 13, 2015 at 4:17 PM, William Prothero > wrote: > >> Never mind!! Looks like a found the problem. It was me. I found it when I >> was entering a bug report and typed ?it?s as if the image is not being >> loaded.? Bingo!! The paths are slightly different on Mac and PC >> standAlones. >> > > I've filed at least one that seems to cause a crash on Mac IDE and > standalone when referencing a nonexistent property. One went to "waiting > build" this morning. Hurrah! > > And I saw another variant when a stack got renamed; referencing its > properties (once the named stack no longer existed) caused the crash. > -- > Dr. Richard E. Hawkins, Esq. > (702) 508-8462 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pete at lcsql.com Tue Jan 13 21:27:32 2015 From: pete at lcsql.com (Peter Haworth) Date: Tue, 13 Jan 2015 18:27:32 -0800 Subject: Player object In-Reply-To: <5AA96A71-77C1-41E6-B4FD-DC08A19F657A@tactilemedia.com> References: <0AE35646-3A6E-4693-8694-F9F34985268F@tactilemedia.com> <5AA96A71-77C1-41E6-B4FD-DC08A19F657A@tactilemedia.com> Message-ID: I've got the track/playlist management stuff in place and I figured out a way round the original problem too that seems to work. The fast forward/reverse buttons do work (at least in 6.6.2/OSX 10.7) although they don't move things along very fast. However, I closed my stack and re-opened it and now nothing plays. Not only that, the player object is just a plain white rectangle, no buttons, no progress bar. Not sure if this is related to the bug that's been discussed today. Oh well, I guess I'll need to make my own controller after all. What fun. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Tue, Jan 13, 2015 at 5:19 PM, Scott Rossi wrote: > Again, the buttons behave more reliably with video than audio (likely > related to the audio-only playback bug mentioned earlier). You might be > better off creating your own controller. > > And yes, you?ll need to create your own track/playlist management. > > Regards, > > Scott Rossi > Creative Director > Tactile Media, UX/UI Design > > On Jan 13, 2015, at 5:10 PM, Peter Haworth wrote: > > > OK, got it. The buttons are for a different usage than I interpreted > them. > > They do behave a bit strangely though. Holding down the mouse sends a > > playpaused message and does fast forward through the track but the track > > doesn't start playing again when I let go the mouse. Maybe I can store > the > > currenttime in a mouseDown handler then in mouseUp start the player again > > if the currenttime is different. > > > > I guess I'll just add my own button for prev/next track. > > > > Thanks Scott. > > > > Pete > > lcSQL Software > > Home of lcStackBrowser and > > SQLiteAdmin > > > > On Tue, Jan 13, 2015 at 3:37 PM, Scott Rossi > wrote: > > > >> I don?t believe the player as any sense of ?tracks? by itself. The > >> buttons on the right are for fast forward and reverse (click and hold), > but > >> like the play button, they don?t respond well when playing audio only. > >> Play a movie and you?ll see the results better. > >> > >> Regards, > >> > >> Scott Rossi > >> Creative Director > >> Tactile Media, UX/UI Design > >> > >> On Jan 13, 2015, at 3:17 PM, Peter Haworth wrote: > >> > >>> Just venturing into using a player object for the first time. > >>> > >>> I'm playing mp3 files in my iTunes library and I have most of what I > want > >>> to do figured out but one thing eludes me. > >>> > >>> The controller has a couple of buttons on the right that look like they > >> are > >>> supposed to move to the prev/next track (I'm playing music from a > >>> library). I see a playPaused message when I click on them but there > >>> doesn't appear to be a way to differentiate between clicking on one of > >>> those buttons and clicking the controller icon. I'd like to start > >> playing > >>> the prev/next track in the library. > >>> > >>> I'm sure I'm missing something obvious! > >>> > >>> Pete > >>> lcSQL Software > >>> Home of lcStackBrowser and > >>> SQLiteAdmin > >>> _______________________________________________ > >>> use-livecode mailing list > >>> use-livecode at lists.runrev.com > >>> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >>> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jacque at hyperactivesw.com Tue Jan 13 22:32:13 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 13 Jan 2015 21:32:13 -0600 Subject: [OT] I'm going to go live in a cave In-Reply-To: <1207E390-BC6D-4ECA-BBA9-8B6FA5B544A4@all-auctions.com> References: <54B5AA9F.7040805@hyperactivesw.com> <1207E390-BC6D-4ECA-BBA9-8B6FA5B544A4@all-auctions.com> Message-ID: <66747E2A-1F54-4B0E-A8B9-D3E37CBE50AF@hyperactivesw.com> Actually I do. I never could get used to low profile keyboards so I'm still using an ancient wired one. All the paint has worn off the keys on the left side (the S went first) and the punctuation on the right is mostly gone. It's filthy because I'm afraid if I clean it there will be nothing left. And besides, it has a keypad. On January 13, 2015 7:38:29 PM CST, Rick Harrison wrote: >Just go back to using wired keyboards and then you won?t have any >worries. >I?m still using my wired keyboard so no big change for me. ;-) > >I?ll come and visit you in the cave when the time is appropriate! LOL > >Cheers, > >Rick > >> On Jan 13, 2015, at 6:30 PM, J. Landman Gay > wrote: >> >> Wireless USB charger logs keystrokes: >> >> > >> >> Cyberspace gets more disgusting every day. >> >> -- >> Jacqueline Landman Gay | jacque at hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > >_______________________________________________ >use-livecode mailing list >use-livecode at lists.runrev.com >Please visit this url to subscribe, unsubscribe and manage your >subscription preferences: >http://lists.runrev.com/mailman/listinfo/use-livecode -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From paul at livecode.org Tue Jan 13 23:18:37 2015 From: paul at livecode.org (Paul Hibbert) Date: Tue, 13 Jan 2015 20:18:37 -0800 Subject: [OT] Print to PDF In-Reply-To: References: <1421139960333-4687733.post@n4.nabble.com> Message-ID: <1D5FE020-6D10-4E4D-93F5-0D937282A53F@livecode.org> No sign of any way to Print To PDF with FF or IE on Win 7 (running under Parallels). A quick check on Google and it seems this is still the case with Win 8, it looks like the only option is Chrome or third party software, unless somebody else knows different. Paul > On Jan 13, 2015, at 4:41 PM, Kay C Lan wrote: > > Gentlemen, > > thank you very much, that is good news. > > Anyone out there with Windows and Firefox and can confirm it has the 'Print > to file' with the option to select pdf. The article Paul linked indicates > Chrome is as Peter mentions for Debian, but doesn't mention Firefox; or IE. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From admin at FlexibleLearning.com Tue Jan 13 23:29:38 2015 From: admin at FlexibleLearning.com (FlexibleLearning.com) Date: Wed, 14 Jan 2015 04:29:38 -0000 Subject: Fields Have Labels Message-ID: <008101d02fb2$b6a18ff0$23e4afd0$@FlexibleLearning.com> Hi Bill, You should contact Pete Haworth if you have problems with lcstackbrowser... mine is ControlBrowser. Similar, but very different! With best regards, Hugh Senior FLCo Original message: Hugh, Just a "heads up" re your lcstackbrowser app. I found that it interferes with some of my code. Also, I got a message that it was trying to open one of your handlers and couldn't because code was protected. I do a lot of creating of fields, lines, and graphic elements. I'm trying to finish a project, so don't have time to mess with it, so I had to remove it, as my app behaved oddly. So, just wondering if your handlers might have names that interfere with mine. Best, Bill From revdev at pdslabs.net Tue Jan 13 23:35:57 2015 From: revdev at pdslabs.net (Phil Davis) Date: Tue, 13 Jan 2015 20:35:57 -0800 Subject: [OT] I'm going to go live in a cave In-Reply-To: <54B5AA9F.7040805@hyperactivesw.com> References: <54B5AA9F.7040805@hyperactivesw.com> Message-ID: <54B5F22D.5000406@pdslabs.net> Yes, but did you see this one? It sort of restores hope that the sovereignty of the individual is possible: http://www.gotenna.com/ Phil On 1/13/15 3:30 PM, J. Landman Gay wrote: > Wireless USB charger logs keystrokes: > > > > > Cyberspace gets more disgusting every day. > -- Phil Davis From rdimolad at evergreeninfo.net Wed Jan 14 00:15:13 2015 From: rdimolad at evergreeninfo.net (Ralph DiMola) Date: Wed, 14 Jan 2015 00:15:13 -0500 Subject: [OT] I'm going to go live in a cave Message-ID: Ha ha +1. I won't feel so bad tomorrow when I look at my nasty 8 year old keyboard. But it types so nice. I have an unholy attraction to it. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net
-------- Original message --------
From: "J. Landman Gay"
Date:01/13/2015 22:32 (GMT-05:00)
To: How to use LiveCode
Subject: Re: [OT] I'm going to go live in a cave
Actually I do. I never could get used to low profile keyboards so I'm still using an ancient wired one. All the paint has worn off the keys on the left side (the S went first) and the punctuation on the right is mostly gone. It's filthy because I'm afraid if I clean it there will be nothing left. And besides, it has a keypad. On January 13, 2015 7:38:29 PM CST, Rick Harrison wrote: >Just go back to using wired keyboards and then you won?t have any >worries. >I?m still using my wired keyboard so no big change for me. ;-) > >I?ll come and visit you in the cave when the time is appropriate! LOL > >Cheers, > >Rick > >> On Jan 13, 2015, at 6:30 PM, J. Landman Gay > wrote: >> >> Wireless USB charger logs keystrokes: >> >> > >> >> Cyberspace gets more disgusting every day. >> >> -- >> Jacqueline Landman Gay | jacque at hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > >_______________________________________________ >use-livecode mailing list >use-livecode at lists.runrev.com >Please visit this url to subscribe, unsubscribe and manage your >subscription preferences: >http://lists.runrev.com/mailman/listinfo/use-livecode -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From brahma at hindu.org Wed Jan 14 00:21:50 2015 From: brahma at hindu.org (Brahmanathaswami) Date: Tue, 13 Jan 2015 19:21:50 -1000 Subject: Script to Generate Concurrent Times Message-ID: <54B5FCEE.4020102@hindu.org> We are planning to do some webinars. I am looking for a liveCode script that can read a time value on our web server and output a little array like: Honolulu: 1:30 PM Sunday Jan 16 San Franscisco 4:30 PM Sunday Jan 16 Chicago 6:30 PM Sunday Jan 16 Toronto: 6:30PM Sunday Jan 16 New York: 7:30PM Sunday Jan 16 Rio de Janeiro: 8:30PM Sunday Jan 16 Perth: 7:30 AM Monday Jan 16 Sydney: 11:30 Monday Jan 16 etc. Yes, I could probably find this as JS/php script, but no, i don't want to do that, as I'm a bit crazy about trying to stay with LC! Swasti Astu, Be Well! Brahmanathaswami Kauai's Hindu Monastery www.HimalayanAcademy.com From richmondmathewson at gmail.com Wed Jan 14 02:02:35 2015 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 14 Jan 2015 09:02:35 +0200 Subject: [OT] I'm going to go live in a cave In-Reply-To: <54B5B296.6050701@hyperactivesw.com> References: <54B5AA9F.7040805@hyperactivesw.com> <01F8F51B-E3BD-4753-B05D-63562B6D3949@tactilemedia.com> <54B5B296.6050701@hyperactivesw.com> Message-ID: <54B6148B.8010902@gmail.com> On 01/14/2015 02:04 AM, J. Landman Gay wrote: > Well then, your lightbulbs just logged that. > My excrement has been transmitting details about my eating habits as long as I can remember: I'm way ahead of you, baby! LOL! Richmond. From richmondmathewson at gmail.com Wed Jan 14 02:06:14 2015 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 14 Jan 2015 09:06:14 +0200 Subject: [OT] I'm going to go live in a cave In-Reply-To: References: Message-ID: <54B61566.10908@gmail.com> On 01/14/2015 07:15 AM, Ralph DiMola wrote: > Ha ha +1. I won't feel so bad tomorrow when I look at my nasty 8 year old keyboard. But it types so nice. I have an unholy attraction to it. > > I use a keyboard that came with a third-hand G3 iMac model 1 that I bought in a pawnshop in Dundee for my Mum and Dad a few years ago: the computer is now, sadly, no more, but the rather sweet, small form-figure keyboard soldiers on - that's probably about 15 years old and counting: And! Do I bash the heck out of it or not? Richmond. From rene.micout at numericable.com Wed Jan 14 03:32:34 2015 From: rene.micout at numericable.com (=?utf-8?Q?Ren=C3=A9_Micout?=) Date: Wed, 14 Jan 2015 09:32:34 +0100 Subject: 6.7.2 and Yosemite Message-ID: <812889C6-2D9A-41AD-BDB1-320ED1E1280B@numericable.com> Hello, I read in LiveCode 6.7.2-rc-1 Release Notes 1/8/15, page # 4 : The Mac engine supports: 10.6.x (Snow Leopard) on Intel 10.7.x (Lion) on Intel 10.8.x (Mountain Lion) on Intel 10.9.x (Mavericks) on Intel What about Yosemite ? No compatible ? Tristement de Paris (sadly from Paris) Ren? From rene.micout at numericable.com Wed Jan 14 04:19:54 2015 From: rene.micout at numericable.com (=?utf-8?Q?Ren=C3=A9_Micout?=) Date: Wed, 14 Jan 2015 10:19:54 +0100 Subject: LiveCode 6 and making standalone In-Reply-To: References: Message-ID: <0E720DEF-AE99-4098-AE68-F7E469FE8F82@numericable.com> > Le 13 janv. 2015 ? 18:07, Ren? Micout a ?crit : > > Hello everybody, > Macintosh Yosemite. > When I construct a standalone with LiveCode 6, I choose ?Move substacks into individual stackfiles? (for saving data in substack) > this works with LC 6.6.3 > In the /Contents/MacOS/ of my application (ctrl + clic) I have 1 file (exec) + several stacks (substacks) > but when I do the same thing with LC 6.6.4, 6.6.5, 6.7, 6.7.1 (rc 4) I have only 1 file (exec) and my application cannot save any data. > Why ? I finally found my stack files : /Contents/Resources/_MacOS/? But my application don?t works correctly. It went crazy? It is the same stack, but after ?standaloned? it is another application. From rene.micout at numericable.com Wed Jan 14 05:56:14 2015 From: rene.micout at numericable.com (=?utf-8?Q?Ren=C3=A9_Micout?=) Date: Wed, 14 Jan 2015 11:56:14 +0100 Subject: LiveCode 6 and making standalone In-Reply-To: <0E720DEF-AE99-4098-AE68-F7E469FE8F82@numericable.com> References: <0E720DEF-AE99-4098-AE68-F7E469FE8F82@numericable.com> Message-ID: <063CFFA5-B831-4C20-8583-01752D05923E@numericable.com> > Le 14 janv. 2015 ? 10:19, Ren? Micout a ?crit : > > >> Le 13 janv. 2015 ? 18:07, Ren? Micout a ?crit : >> >> Hello everybody, >> Macintosh Yosemite. >> When I construct a standalone with LiveCode 6, I choose ?Move substacks into individual stackfiles? (for saving data in substack) >> this works with LC 6.6.3 > In the /Contents/MacOS/ of my application (ctrl + clic) I have 1 file (exec) + several stacks (substacks) >> but when I do the same thing with LC 6.6.4, 6.6.5, 6.7, 6.7.1 (rc 4) I have only 1 file (exec) and my application cannot save any data. >> Why ? > > I finally found my stack files : /Contents/Resources/_MacOS/? > But my application don?t works correctly. It went crazy? > It is the same stack, but after ?standaloned? it is another application. I understand why my application becomes crazy, all works good now, in fact not ALL : datas are not saved into substack (stack file) From admin at FlexibleLearning.com Wed Jan 14 06:24:29 2015 From: admin at FlexibleLearning.com (FlexibleLearning.com) Date: Wed, 14 Jan 2015 11:24:29 -0000 Subject: [OT] I'm going to go live in a cave Message-ID: <008b01d02fec$aaad3610$0007a230$@FlexibleLearning.com> A good keyboard is like a good piano. I still use my original Gateway keyboard, c1995 vintage (remember them?). Never found a better one and still works as good as new. I did clean it once when I could no longer read some of the keys but it's back filthy again. Time for the next 10-year spring clean, methinks.... where did I put those cotton swabs? Hugh Senior FLCo Jacque wrote: Actually I do. I never could get used to low profile keyboards so I'm still using an ancient wired one. All the paint has worn off the keys on the left side (the S went first) and the punctuation on the right is mostly gone. It's filthy because I'm afraid if I clean it there will be nothing left. And besides, it has a keypad. From pmbrig at gmail.com Wed Jan 14 07:42:41 2015 From: pmbrig at gmail.com (Peter M. Brigham) Date: Wed, 14 Jan 2015 07:42:41 -0500 Subject: Player object In-Reply-To: References: <0AE35646-3A6E-4693-8694-F9F34985268F@tactilemedia.com> <5AA96A71-77C1-41E6-B4FD-DC08A19F657A@tactilemedia.com> Message-ID: <853D746D-8FCD-48D2-9C0F-CE4BECCFBE20@gmail.com> On Jan 13, 2015, at 9:27 PM, Peter Haworth wrote: > I've got the track/playlist management stuff in place and I figured out a > way round the original problem too that seems to work. The fast > forward/reverse buttons do work (at least in 6.6.2/OSX 10.7) although they > don't move things along very fast. > > However, I closed my stack and re-opened it and now nothing plays. Not > only that, the player object is just a plain white rectangle, no buttons, > no progress bar. Not sure if this is related to the bug that's been > discussed today. > > Oh well, I guess I'll need to make my own controller after all. What fun. Thomas McGrath has a stack called libITS.rev, a pretty full-featured iTunes library suite. You might look into that. I used it to build a little controller that collapses down to a single round button that lives in the lower left corner of my screen. -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig From roger.e.eller at sealedair.com Wed Jan 14 07:43:32 2015 From: roger.e.eller at sealedair.com (Roger Eller) Date: Wed, 14 Jan 2015 07:43:32 -0500 Subject: [OT] Print to PDF In-Reply-To: References: Message-ID: Install CutePDF Writer. (requires ghostscript) Both are free, and links are provided on this page: http://www.cutepdf.com/Products/CutePDF/writer.asp Afterwards, it will appear as a Windows printer. I've used this for decades. Sent from my Android tablet On Jan 12, 2015 6:53 PM, "Kay C Lan" wrote: > This is not LC related but as you are the largest group of varied OS users > I thought I'd ask. I've just discovered that the very basic OS feature of > being able to 'Print to PDF' may not be available on all OSs. On OS X it's > a feature I use daily. > > Particularly in your web browser, if you choose Print, do you have an > option to save to some kind of single file (pdf,doc,...) rather than send > to a physical printer. Please advise the OS, web browser, the kind of file > you can create and where that option is hidden. > > [This relates to some very elder gentlemen who I'm trying to help access > some online pages, and then be able to save these pages to view whilst > offline. The 3 web browsers I have all have the ability to Save as.... but > the result is a folder full of media and a bunch of html files and if one > or the other is moved then the document breaks. The structure takes up more > space and it's also harder to clean up as it's more than just one file to > Trash. To me, Print to PDF produces a much cleaner smaller document for > storing, viewing offline and deleting. I was hoping to help them with a > similar single file solution.] > > Thanks in advance > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From prothero at earthednet.org Wed Jan 14 10:19:38 2015 From: prothero at earthednet.org (Earthednet-wp) Date: Wed, 14 Jan 2015 07:19:38 -0800 Subject: 6.7.2 and Yosemite In-Reply-To: <812889C6-2D9A-41AD-BDB1-320ED1E1280B@numericable.com> References: <812889C6-2D9A-41AD-BDB1-320ED1E1280B@numericable.com> Message-ID: <16E5B8F4-7464-482F-BDCF-D85E8748FA30@earthednet.org> Must have been a mistake. I have run it on Yosemite. Bill William Prothero http://es.earthednet.org > On Jan 14, 2015, at 12:32 AM, Ren? Micout wrote: > > Hello, > I read in LiveCode 6.7.2-rc-1 Release Notes 1/8/15, page # 4 : > > The Mac engine supports: > 10.6.x (Snow Leopard) on Intel > 10.7.x (Lion) on Intel > 10.8.x (Mountain Lion) on Intel > 10.9.x (Mavericks) on Intel > > What about Yosemite ? No compatible ? > > Tristement de Paris (sadly from Paris) > Ren? > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From gcanyon at gmail.com Wed Jan 14 11:26:15 2015 From: gcanyon at gmail.com (Geoff Canyon) Date: Wed, 14 Jan 2015 10:26:15 -0600 Subject: Debugging plugins In-Reply-To: <51643FD0-B80B-4809-AC26-27281E65075A@canelasoftware.com> References: <51643FD0-B80B-4809-AC26-27281E65075A@canelasoftware.com> Message-ID: Thanks to those who suggested Script Debug Mode and breakpoint. In plugins, neither of those allows setting a breakpoint that will work. global gRevDevelopment;put true into gRevDevelopment enables breakpoints in plugins, but in 6.7 at least seems to completely break the variable panel in the debugger. On Thu, Jan 8, 2015 at 6:51 PM, Mark Talluto wrote: > On Jan 5, 2015, at 8:16 AM, Geoff Canyon wrote: > > > I have a vague recollection of there being a way to get breakpoints to > work > > in "rev" stacks. I thought it was a preference setting, but I don't see > it. > > Anyone know what the setting/property is for that? > > There is a menu item labeled ?Script Debug Mode? in the ?Development? > drop down of the LiveCode menus. > > Best regards, > > Mark Talluto > livecloud.io > canelasoftware.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From devin_asay at byu.edu Wed Jan 14 11:27:37 2015 From: devin_asay at byu.edu (Devin Asay) Date: Wed, 14 Jan 2015 16:27:37 +0000 Subject: Script to Generate Concurrent Times In-Reply-To: <54B5FCEE.4020102@hindu.org> References: <54B5FCEE.4020102@hindu.org> Message-ID: <6BF8872A-961E-4C94-9BCC-2ED02B0C3230@byu.edu> On Jan 13, 2015, at 10:21 PM, Brahmanathaswami wrote: > We are planning to do some webinars. I am looking for a liveCode script that can read a time value on our web server and output a little array like: > > Honolulu: 1:30 PM Sunday Jan 16 > San Franscisco 4:30 PM Sunday Jan 16 > Chicago 6:30 PM Sunday Jan 16 > Toronto: 6:30PM Sunday Jan 16 > New York: 7:30PM Sunday Jan 16 > Rio de Janeiro: 8:30PM Sunday Jan 16 > Perth: 7:30 AM Monday Jan 16 > Sydney: 11:30 Monday Jan 16 > > > etc. > > Yes, I could probably find this as JS/php script, but no, i don't want to do that, as I'm a bit crazy about trying to stay with LC! Someone a few years ago showed me this; I can?t remember who. In your .lc script do this: put "US/Mountain" into $TZ # or whatever time zone you want to show put shell("date") into tDTstring Setting the $TZ variable right before called the date command returns the date/time the specified timezone. At least it works on the on-rev servers. HTH Devin Devin Asay Office of Digital Humanities Brigham Young University From dave at applicationinsight.com Wed Jan 14 11:26:18 2015 From: dave at applicationinsight.com (Dave Kilroy) Date: Wed, 14 Jan 2015 08:26:18 -0800 (PST) Subject: LiveCode 6 and making standalone In-Reply-To: <063CFFA5-B831-4C20-8583-01752D05923E@numericable.com> References: <0E720DEF-AE99-4098-AE68-F7E469FE8F82@numericable.com> <063CFFA5-B831-4C20-8583-01752D05923E@numericable.com> Message-ID: <1421252778813-4687793.post@n4.nabble.com> Dear Tristement de Paris What you are experiencing sounds similar to what led me to file this bug report: (http://quality.runrev.com/show_bug.cgi?id=14295) ----- "Some are born coders, some achieve coding, and some have coding thrust upon them." - William Shakespeare & Hugh Senior -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/LiveCode-6-and-making-standalone-tp4687739p4687793.html Sent from the Revolution - User mailing list archive at Nabble.com. From rene.micout at numericable.com Wed Jan 14 11:47:40 2015 From: rene.micout at numericable.com (=?utf-8?Q?Ren=C3=A9_Micout?=) Date: Wed, 14 Jan 2015 17:47:40 +0100 Subject: LiveCode 6 and making standalone In-Reply-To: <1421252778813-4687793.post@n4.nabble.com> References: <0E720DEF-AE99-4098-AE68-F7E469FE8F82@numericable.com> <063CFFA5-B831-4C20-8583-01752D05923E@numericable.com> <1421252778813-4687793.post@n4.nabble.com> Message-ID: > Le 14 janv. 2015 ? 17:26, Dave Kilroy a ?crit : > > Dear Tristement de Paris > > What you are experiencing sounds similar to what led me to file this bug > report: (http://quality.runrev.com/show_bug.cgi?id=14295) Thank you Dave? I put a commentary (14295) Ren? From rabit at revigniter.com Wed Jan 14 11:47:39 2015 From: rabit at revigniter.com (Ralf Bitter) Date: Wed, 14 Jan 2015 17:47:39 +0100 Subject: How to show the Windows 8 on screen keyboard in LiveCode? Message-ID: <0CFAAD92-B7E3-4412-8846-B11046B7131A@revigniter.com> Shouldn't the on screen keyboard of Windows 8 tablets pop up automatically on touching a text input control? A client who installed a standalone built with LiveCode 6.7.1 on a Toshiba tablet reports that the soft keyboard doesn't show up tapping a text input field. Thought that, as a workaround, one possibly could start the keyboard exe using launch or shell() like: launch "C:/Program Files/Common Files/microsoft shared/ink/TabTip.exe" yields "not opened" or get shell("start C:\Program Files\Common Files\microsoft shared\ink\TabTip.exe") yields "The file "C:/Program" could not be found." or get shell("start tabtip.exe") yields "The file "tabtip.exe" could not be found." Double checked the paths but all this fails, though start tabtip.exe definitely works from the Windows command shell in contrast to start C:\Program Files\Common Files\microsoft shared\ink\TabTip.exe. So, how do others show the on screen keyboard on Windows 8 tablets from LiveCode standalones? Any insights appreciated. Ralf From pete at lcsql.com Wed Jan 14 12:16:45 2015 From: pete at lcsql.com (Peter Haworth) Date: Wed, 14 Jan 2015 09:16:45 -0800 Subject: Player object In-Reply-To: <853D746D-8FCD-48D2-9C0F-CE4BECCFBE20@gmail.com> References: <0AE35646-3A6E-4693-8694-F9F34985268F@tactilemedia.com> <5AA96A71-77C1-41E6-B4FD-DC08A19F657A@tactilemedia.com> <853D746D-8FCD-48D2-9C0F-CE4BECCFBE20@gmail.com> Message-ID: Thanks Peter, I'll see if I can track it down. I also just remembered Bernd's very useful custom slider control that will definitely make my life easier. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Wed, Jan 14, 2015 at 4:42 AM, Peter M. Brigham wrote: > On Jan 13, 2015, at 9:27 PM, Peter Haworth wrote: > > > I've got the track/playlist management stuff in place and I figured out a > > way round the original problem too that seems to work. The fast > > forward/reverse buttons do work (at least in 6.6.2/OSX 10.7) although > they > > don't move things along very fast. > > > > However, I closed my stack and re-opened it and now nothing plays. Not > > only that, the player object is just a plain white rectangle, no buttons, > > no progress bar. Not sure if this is related to the bug that's been > > discussed today. > > > > Oh well, I guess I'll need to make my own controller after all. What > fun. > > Thomas McGrath has a stack called libITS.rev, a pretty full-featured > iTunes library suite. You might look into that. I used it to build a little > controller that collapses down to a single round button that lives in the > lower left corner of my screen. > > -- Peter > > Peter M. Brigham > pmbrig at gmail.com > http://home.comcast.net/~pmbrig > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jacque at hyperactivesw.com Wed Jan 14 12:20:56 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 14 Jan 2015 11:20:56 -0600 Subject: LiveCode 6 and making standalone In-Reply-To: <0E720DEF-AE99-4098-AE68-F7E469FE8F82@numericable.com> References: <0E720DEF-AE99-4098-AE68-F7E469FE8F82@numericable.com> Message-ID: <54B6A578.8040608@hyperactivesw.com> On 1/14/2015 3:19 AM, Ren? Micout wrote: > >> Le 13 janv. 2015 ? 18:07, Ren? Micout a ?crit : >> >> Hello everybody, >> Macintosh Yosemite. >> When I construct a standalone with LiveCode 6, I choose ?Move substacks into individual stackfiles? (for saving data in substack) >> this works with LC 6.6.3 > In the /Contents/MacOS/ of my application (ctrl + clic) I have 1 file (exec) + several stacks (substacks) >> but when I do the same thing with LC 6.6.4, 6.6.5, 6.7, 6.7.1 (rc 4) I have only 1 file (exec) and my application cannot save any data. >> Why ? > > I finally found my stack files : /Contents/Resources/_MacOS/? > But my application don?t works correctly. It went crazy? > It is the same stack, but after ?standaloned? it is another application. LC 6.7 changed where it stores files (as you know) because Apple has new rules about that. The release notes say that file paths in scripts should automatically translate to the new location without any changes, but yesterday I found that doesn't seem to work. Do you want to submit a bug report, or would you like me to do it? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Wed Jan 14 12:22:32 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 14 Jan 2015 11:22:32 -0600 Subject: Debugging plugins In-Reply-To: References: <51643FD0-B80B-4809-AC26-27281E65075A@canelasoftware.com> Message-ID: <54B6A5D8.1010406@hyperactivesw.com> On 1/14/2015 10:26 AM, Geoff Canyon wrote: > Thanks to those who suggested Script Debug Mode and breakpoint. In plugins, > neither of those allows setting a breakpoint that will work. > > global gRevDevelopment;put true into gRevDevelopment enables breakpoints in > plugins, but in 6.7 at least seems to completely break the variable panel > in the debugger. The simplest thing might be to temporarily rename your plugin without the "rev" prefix while you're working on it. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From pete at lcsql.com Wed Jan 14 12:25:35 2015 From: pete at lcsql.com (Peter Haworth) Date: Wed, 14 Jan 2015 09:25:35 -0800 Subject: Player object In-Reply-To: <853D746D-8FCD-48D2-9C0F-CE4BECCFBE20@gmail.com> References: <0AE35646-3A6E-4693-8694-F9F34985268F@tactilemedia.com> <5AA96A71-77C1-41E6-B4FD-DC08A19F657A@tactilemedia.com> <853D746D-8FCD-48D2-9C0F-CE4BECCFBE20@gmail.com> Message-ID: Been searching for libITS without any luck. The URL in some older forum posts doesn't work any longer. It's also on rev Online I believe however rev Online seems to be broken - when I open it, it hangs with a message "retrieving stack data". Anyone have another location to find it? Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Wed, Jan 14, 2015 at 4:42 AM, Peter M. Brigham wrote: > On Jan 13, 2015, at 9:27 PM, Peter Haworth wrote: > > > I've got the track/playlist management stuff in place and I figured out a > > way round the original problem too that seems to work. The fast > > forward/reverse buttons do work (at least in 6.6.2/OSX 10.7) although > they > > don't move things along very fast. > > > > However, I closed my stack and re-opened it and now nothing plays. Not > > only that, the player object is just a plain white rectangle, no buttons, > > no progress bar. Not sure if this is related to the bug that's been > > discussed today. > > > > Oh well, I guess I'll need to make my own controller after all. What > fun. > > Thomas McGrath has a stack called libITS.rev, a pretty full-featured > iTunes library suite. You might look into that. I used it to build a little > controller that collapses down to a single round button that lives in the > lower left corner of my screen. > > -- Peter > > Peter M. Brigham > pmbrig at gmail.com > http://home.comcast.net/~pmbrig > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dave at applicationinsight.com Wed Jan 14 12:24:26 2015 From: dave at applicationinsight.com (Dave Kilroy) Date: Wed, 14 Jan 2015 09:24:26 -0800 (PST) Subject: LiveCode 6 and making standalone In-Reply-To: <54B6A578.8040608@hyperactivesw.com> References: <0E720DEF-AE99-4098-AE68-F7E469FE8F82@numericable.com> <54B6A578.8040608@hyperactivesw.com> Message-ID: <1421256266619-4687800.post@n4.nabble.com> Jacque I filed this report http://quality.runrev.com/show_bug.cgi?id=14295 and another related one on Christmas eve J. Landman Gay wrote > LC 6.7 changed where it stores files (as you know) because Apple has new > rules about that. The release notes say that file paths in scripts > should automatically translate to the new location without any changes, > but yesterday I found that doesn't seem to work. > > Do you want to submit a bug report, or would you like me to do it? ----- "Some are born coders, some achieve coding, and some have coding thrust upon them." - William Shakespeare & Hugh Senior -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/LiveCode-6-and-making-standalone-tp4687739p4687800.html Sent from the Revolution - User mailing list archive at Nabble.com. From jacque at hyperactivesw.com Wed Jan 14 12:27:33 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 14 Jan 2015 11:27:33 -0600 Subject: Script to Generate Concurrent Times In-Reply-To: <6BF8872A-961E-4C94-9BCC-2ED02B0C3230@byu.edu> References: <54B5FCEE.4020102@hindu.org> <6BF8872A-961E-4C94-9BCC-2ED02B0C3230@byu.edu> Message-ID: <54B6A705.5020004@hyperactivesw.com> On 1/14/2015 10:27 AM, Devin Asay wrote: > In your .lc script do this: > > put "US/Mountain" into $TZ # or whatever time zone you want to show > put shell("date") into tDTstring > > Setting the $TZ variable right before called the date command returns the date/time the specified timezone. At least it works on the on-rev servers. Oh cool. It works on OS X too. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From littlejamesw at mac.com Wed Jan 14 12:34:11 2015 From: littlejamesw at mac.com (James Little) Date: Wed, 14 Jan 2015 09:34:11 -0800 Subject: OT: Tacoma In-Reply-To: <69C56C67-14B4-4344-AD0B-A50FFDC809A2@gmail.com> References: <69C56C67-14B4-4344-AD0B-A50FFDC809A2@gmail.com> Message-ID: <267FAED2-540E-453D-8133-41FB17987D37@mac.com> Mike, Email or call me if you will be in Seattle. Jim littlejamesw at mac dot com (206) 547-7061 On Jan 13, 2015, at 1:28 PM, Mike wrote: > I'm flying in to Seattle tonight, but will be going straight to my hotel in Tacoma. Won't have my own car, but might be able to figure out something with my friend (the reason I'm going) once I'm settled in. I'll be in Washington till next Tuesday. > > Sent from my iPhone > >> On Jan 13, 2015, at 9:50 AM, James Little wrote: >> >> >> Hi Mike, >> >> Any chance you will be in Seattle? My son and I would like to get together, if you?re up this way. >> >> Jim Little >> >> >>> On Jan 12, 2015, at 12:29 PM, Mike Bonner wrote: >>> >>> I'm going to be in Tacoma for a few days, is there anyone in the area that >>> might want to meet for a beer? >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From kee at kagi.com Wed Jan 14 12:48:21 2015 From: kee at kagi.com (kee nethery) Date: Wed, 14 Jan 2015 09:48:21 -0800 Subject: Livecode 7 - Unicode - items not the same as pre-7? Message-ID: <243089D6-9709-4628-A327-BDAA2C353027@kagi.com> In the pre-Unicode days, this code: set the itemdelimiter to tab put empty into theData put ?jumbo? into item 4 of theData would produce something that looked like this (in your mind replace ?? with the blank spacing of a tab) jumbo In the Livecode 7 Unicode world, this is producing an output that looks like: jumbo In the IDE, when I use the magnify glass to examine theData, I can click in ?jumbo? and use the right arrow to go through theData but when I try to use the left arrow to move back, it will move within ?jumbo? but when it gets to the left of ?j? it halts. The left arrow ceases to move the insertion point. Why is each item on a separate line? How do I get Unicode Livecode to produce the same output as pre-7? Kee Nethery From bogdanoff at me.com Wed Jan 14 12:58:05 2015 From: bogdanoff at me.com (Peter Bogdanoff) Date: Wed, 14 Jan 2015 09:58:05 -0800 Subject: Player object In-Reply-To: References: <0AE35646-3A6E-4693-8694-F9F34985268F@tactilemedia.com> <5AA96A71-77C1-41E6-B4FD-DC08A19F657A@tactilemedia.com> <853D746D-8FCD-48D2-9C0F-CE4BECCFBE20@gmail.com> Message-ID: Here it is: https://www.dropbox.com/s/61pwux0d51niarg/LibITS%20accessing%20iTunes%20in%20Livecode.zip?dl=0 Peter Bogdanoff UCLA On Jan 14, 2015, at 9:25 AM, Peter Haworth wrote: > Been searching for libITS without any luck. The URL in some older forum > posts doesn't work any longer. It's also on rev Online I believe however > rev Online seems to be broken - when I open it, it hangs with a message > "retrieving stack data". > > Anyone have another location to find it? > > > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin > > On Wed, Jan 14, 2015 at 4:42 AM, Peter M. Brigham wrote: > >> On Jan 13, 2015, at 9:27 PM, Peter Haworth wrote: >> >>> I've got the track/playlist management stuff in place and I figured out a >>> way round the original problem too that seems to work. The fast >>> forward/reverse buttons do work (at least in 6.6.2/OSX 10.7) although >> they >>> don't move things along very fast. >>> >>> However, I closed my stack and re-opened it and now nothing plays. Not >>> only that, the player object is just a plain white rectangle, no buttons, >>> no progress bar. Not sure if this is related to the bug that's been >>> discussed today. >>> >>> Oh well, I guess I'll need to make my own controller after all. What >> fun. >> >> Thomas McGrath has a stack called libITS.rev, a pretty full-featured >> iTunes library suite. You might look into that. I used it to build a little >> controller that collapses down to a single round button that lives in the >> lower left corner of my screen. >> >> -- Peter >> >> Peter M. Brigham >> pmbrig at gmail.com >> http://home.comcast.net/~pmbrig >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From mwieder at ahsoftware.net Wed Jan 14 12:57:44 2015 From: mwieder at ahsoftware.net (Mark Wieder) Date: Wed, 14 Jan 2015 09:57:44 -0800 Subject: Debugging plugins In-Reply-To: References: <51643FD0-B80B-4809-AC26-27281E65075A@canelasoftware.com> Message-ID: <38-2082500899.20150114095744@ahsoftware.net> Geoff- Wednesday, January 14, 2015, 8:26:15 AM, you wrote: > global gRevDevelopment;put true into gRevDevelopment enables breakpoints in > plugins, but in 6.7 at least seems to completely break the variable panel > in the debugger. Yeah. What Jacque said. The downside of setting gRevDevelopment to true is that bugs in the IDE stacks are no longer ignored. -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From pete at lcsql.com Wed Jan 14 13:15:39 2015 From: pete at lcsql.com (Peter Haworth) Date: Wed, 14 Jan 2015 10:15:39 -0800 Subject: Player object In-Reply-To: References: <0AE35646-3A6E-4693-8694-F9F34985268F@tactilemedia.com> <5AA96A71-77C1-41E6-B4FD-DC08A19F657A@tactilemedia.com> <853D746D-8FCD-48D2-9C0F-CE4BECCFBE20@gmail.com> Message-ID: Thanks Peter, got it. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Wed, Jan 14, 2015 at 9:58 AM, Peter Bogdanoff wrote: > > Here it is: > > > https://www.dropbox.com/s/61pwux0d51niarg/LibITS%20accessing%20iTunes%20in%20Livecode.zip?dl=0 > > Peter Bogdanoff > UCLA > > On Jan 14, 2015, at 9:25 AM, Peter Haworth wrote: > > > Been searching for libITS without any luck. The URL in some older forum > > posts doesn't work any longer. It's also on rev Online I believe however > > rev Online seems to be broken - when I open it, it hangs with a message > > "retrieving stack data". > > > > Anyone have another location to find it? > > > > > > Pete > > lcSQL Software > > Home of lcStackBrowser and > > SQLiteAdmin > > > > On Wed, Jan 14, 2015 at 4:42 AM, Peter M. Brigham > wrote: > > > >> On Jan 13, 2015, at 9:27 PM, Peter Haworth wrote: > >> > >>> I've got the track/playlist management stuff in place and I figured > out a > >>> way round the original problem too that seems to work. The fast > >>> forward/reverse buttons do work (at least in 6.6.2/OSX 10.7) although > >> they > >>> don't move things along very fast. > >>> > >>> However, I closed my stack and re-opened it and now nothing plays. Not > >>> only that, the player object is just a plain white rectangle, no > buttons, > >>> no progress bar. Not sure if this is related to the bug that's been > >>> discussed today. > >>> > >>> Oh well, I guess I'll need to make my own controller after all. What > >> fun. > >> > >> Thomas McGrath has a stack called libITS.rev, a pretty full-featured > >> iTunes library suite. You might look into that. I used it to build a > little > >> controller that collapses down to a single round button that lives in > the > >> lower left corner of my screen. > >> > >> -- Peter > >> > >> Peter M. Brigham > >> pmbrig at gmail.com > >> http://home.comcast.net/~pmbrig > >> > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pete at lcsql.com Wed Jan 14 13:18:46 2015 From: pete at lcsql.com (Peter Haworth) Date: Wed, 14 Jan 2015 10:18:46 -0800 Subject: Debugging plugins In-Reply-To: <38-2082500899.20150114095744@ahsoftware.net> References: <51643FD0-B80B-4809-AC26-27281E65075A@canelasoftware.com> <38-2082500899.20150114095744@ahsoftware.net> Message-ID: If I understand this correctly, if a stack name begins with rev and gRevDevelopment is false, any runtime errors in it are ignored? That's any stack, not just IDE stacks? I don't suppose this would also enable some way to trap runtime errors and report info about them, would it? Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Wed, Jan 14, 2015 at 9:57 AM, Mark Wieder wrote: > Geoff- > > Wednesday, January 14, 2015, 8:26:15 AM, you wrote: > > > global gRevDevelopment;put true into gRevDevelopment enables breakpoints > in > > plugins, but in 6.7 at least seems to completely break the variable panel > > in the debugger. > > Yeah. What Jacque said. > The downside of setting gRevDevelopment to true is that bugs in the > IDE stacks are no longer ignored. > > -- > -Mark Wieder > ahsoftware at gmail.com > > This communication may be unlawfully collected and stored by the National > Security Agency (NSA) in secret. The parties to this email do not > consent to the retrieving or storing of this communication and any > related metadata, as well as printing, copying, re-transmitting, > disseminating, or otherwise using it. If you believe you have received > this communication in error, please delete it immediately. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jacque at hyperactivesw.com Wed Jan 14 13:29:05 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 14 Jan 2015 12:29:05 -0600 Subject: LiveCode 6 and making standalone In-Reply-To: <1421256266619-4687800.post@n4.nabble.com> References: <0E720DEF-AE99-4098-AE68-F7E469FE8F82@numericable.com> <54B6A578.8040608@hyperactivesw.com> <1421256266619-4687800.post@n4.nabble.com> Message-ID: <54B6B571.7090900@hyperactivesw.com> Oh good, thanks for that. I just ran up against this problem yesterday for the first time. On 1/14/2015 11:24 AM, Dave Kilroy wrote: > Jacque I filed this report http://quality.runrev.com/show_bug.cgi?id=14295 > and another related one on Christmas eve > > > J. Landman Gay wrote >> LC 6.7 changed where it stores files (as you know) because Apple has new >> rules about that. The release notes say that file paths in scripts >> should automatically translate to the new location without any changes, >> but yesterday I found that doesn't seem to work. >> >> Do you want to submit a bug report, or would you like me to do it? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jbv at souslelogo.com Wed Jan 14 14:07:57 2015 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Wed, 14 Jan 2015 21:07:57 +0200 Subject: [semi OT] Virtual visits and LC Message-ID: <66cafe42fee112672929af42d6e91a00.squirrel@continental.on-rev.com> Hi list A client of mine wants to add a few virtual visits of warehouses and appartments on his website. Those virtual visits will include various clickable hot spots, for instance to move from one room to another, or on various objects and furnitures in the room in order to display infos about them when a user clicks upon. Furthermore, apart from the website, the same virtual visits will be used on a LC standalone, and probably also on a mobile version of that standalone. Does anyone has any experience with something similar, and could recommend any software for such a project ? Thanks in advance. jbv From richmondmathewson at gmail.com Wed Jan 14 14:12:46 2015 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 14 Jan 2015 21:12:46 +0200 Subject: [semi OT] Virtual visits and LC In-Reply-To: <66cafe42fee112672929af42d6e91a00.squirrel@continental.on-rev.com> References: <66cafe42fee112672929af42d6e91a00.squirrel@continental.on-rev.com> Message-ID: <54B6BFAE.9070809@gmail.com> On 14/01/15 21:07, jbv at souslelogo.com wrote: > Hi list > A client of mine wants to add a few virtual visits of warehouses > and appartments on his website. Those virtual visits will include > various clickable hot spots, for instance to move from one room > to another, or on various objects and furnitures in the room in > order to display infos about them when a user clicks upon. > Furthermore, apart from the website, the same virtual visits will > be used on a LC standalone, and probably also on a mobile version > of that standalone. > Does anyone has any experience with something similar, and > could recommend any software for such a project ? > > Thanks in advance. > jbv > > I don't think you need any other software than Livecode if RunRev GET A MOVE ON with HTML 5 . . . . . . Then one should be able to make a virtual visit in exactly the same way as I did with Hypercard in 1997 [and involving no more programming than then] in Livecode and then export it as HTML 5 for rolling into a website. Come to think of things [ Richard Gaskin ] things have got AWFULLY QUIET on the HTML 5 front recently ???? A spot of "where we are just now" might not be a bad thing. Richmond. From kee at kagi.com Wed Jan 14 14:12:55 2015 From: kee at kagi.com (kee nethery) Date: Wed, 14 Jan 2015 11:12:55 -0800 Subject: Livecode 7 - Unicode - items not the same as pre-7? In-Reply-To: <243089D6-9709-4628-A327-BDAA2C353027@kagi.com> References: <243089D6-9709-4628-A327-BDAA2C353027@kagi.com> Message-ID: To quote Gilda Radner?s Saturday Night Live character ?Oh, nevermind.? In my code I?m using the XML Xpath function to grab data out of a bunch of XML and insert it into items on a line. Problem is that the Xpath function either adds stuff to the end of the data it returns or that stuff is invisible when viewed in a browser. Either way, once I cleaned off characters from the Xpath function results, it did the right thing. Kee > On Jan 14, 2015, at 9:48 AM, kee nethery wrote: > > In the pre-Unicode days, this code: > > set the itemdelimiter to tab > put empty into theData > put ?jumbo? into item 4 of theData > > would produce something that looked like this (in your mind replace ?? with the blank spacing of a tab) > > jumbo > > In the Livecode 7 Unicode world, this is producing an output that looks like: > > > > > > jumbo > > In the IDE, when I use the magnify glass to examine theData, I can click in ?jumbo? and use the right arrow to go through theData but when I try to use the left arrow to move back, it will move within ?jumbo? but when it gets to the left of ?j? it halts. The left arrow ceases to move the insertion point. > > Why is each item on a separate line? How do I get Unicode Livecode to produce the same output as pre-7? > > Kee Nethery > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From kee at kagi.com Wed Jan 14 14:13:31 2015 From: kee at kagi.com (kee nethery) Date: Wed, 14 Jan 2015 11:13:31 -0800 Subject: [semi OT] Virtual visits and LC In-Reply-To: <66cafe42fee112672929af42d6e91a00.squirrel@continental.on-rev.com> References: <66cafe42fee112672929af42d6e91a00.squirrel@continental.on-rev.com> Message-ID: <95A225A9-8932-43E1-A825-CA0D35E1BE9A@kagi.com> ponga.com > On Jan 14, 2015, at 11:07 AM, jbv at souslelogo.com wrote: > > Hi list > A client of mine wants to add a few virtual visits of warehouses > and appartments on his website. Those virtual visits will include > various clickable hot spots, for instance to move from one room > to another, or on various objects and furnitures in the room in > order to display infos about them when a user clicks upon. > Furthermore, apart from the website, the same virtual visits will > be used on a LC standalone, and probably also on a mobile version > of that standalone. > Does anyone has any experience with something similar, and > could recommend any software for such a project ? > > Thanks in advance. > jbv > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From roger.e.eller at sealedair.com Wed Jan 14 14:22:30 2015 From: roger.e.eller at sealedair.com (Roger Eller) Date: Wed, 14 Jan 2015 14:22:30 -0500 Subject: Script to Generate Concurrent Times In-Reply-To: <54B6A705.5020004@hyperactivesw.com> References: <54B5FCEE.4020102@hindu.org> <6BF8872A-961E-4C94-9BCC-2ED02B0C3230@byu.edu> <54B6A705.5020004@hyperactivesw.com> Message-ID: Apparently on Windows the "date" command is used to SET the time. The result is: The current date is: Wed 01/14/2015 Enter the new date: (mm-dd-yy) On Wed, Jan 14, 2015 at 12:27 PM, J. Landman Gay wrote: > On 1/14/2015 10:27 AM, Devin Asay wrote: > >> In your .lc script do this: >> >> put "US/Mountain" into $TZ # or whatever time zone you want to >> show >> put shell("date") into tDTstring >> >> Setting the $TZ variable right before called the date command returns the >> date/time the specified timezone. At least it works on the on-rev servers. >> > > Oh cool. It works on OS X too. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jbv at souslelogo.com Wed Jan 14 14:42:41 2015 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Wed, 14 Jan 2015 21:42:41 +0200 Subject: [semi OT] Virtual visits and LC In-Reply-To: <66cafe42fee112672929af42d6e91a00.squirrel@continental.on-rev.com> References: <66cafe42fee112672929af42d6e91a00.squirrel@continental.on-rev.com> Message-ID: Actually I forgot to mention that ideally the virtual visit should be similar to google street view : users should be able to "move" around the appartment in 360? (like on google street view), not just with a serie of static photos with clickable spots... Best jbv > Hi list > A client of mine wants to add a few virtual visits of warehouses > and appartments on his website. Those virtual visits will include > various clickable hot spots, for instance to move from one room > to another, or on various objects and furnitures in the room in > order to display infos about them when a user clicks upon. > Furthermore, apart from the website, the same virtual visits will > be used on a LC standalone, and probably also on a mobile version > of that standalone. > Does anyone has any experience with something similar, and > could recommend any software for such a project ? > > Thanks in advance. > jbv From jacque at hyperactivesw.com Wed Jan 14 14:55:55 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 14 Jan 2015 13:55:55 -0600 Subject: Script to Generate Concurrent Times In-Reply-To: References: <54B5FCEE.4020102@hindu.org> <6BF8872A-961E-4C94-9BCC-2ED02B0C3230@byu.edu> <54B6A705.5020004@hyperactivesw.com> Message-ID: <54B6C9CB.6010703@hyperactivesw.com> On 1/14/2015 1:22 PM, Roger Eller wrote: > Apparently on Windows the "date" command is used to SET the time. That's too bad. I briefly looked for an equivalent but couldn't find one. I did find this though, which applies to Linux-based systems: Valid locations for $TZ can be found here: /usr/share/zoneinfo -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From livfoss at mac.com Wed Jan 14 15:03:38 2015 From: livfoss at mac.com (Graham Samuel) Date: Wed, 14 Jan 2015 21:03:38 +0100 Subject: Possible insanity, or is it LC 7.0.1? Message-ID: Using LC 7.0.1 on Yosemite 1010.1, when I type this into the message box put (1.884955 is a number) I get true, as expected, but if I put put (1.884956 is a number) I get Script compile error: Error description: Expression: unquoted literal This result was derived from some complex code so I originally thought that the character string could have been corrupt with invisible characters, but I retyped the numbers myself. This seems so mad that I need someone to confirm it, even though I find it completely repeatable. I tried it on LC 6.7 (which just happens to be on my machine) and I got true as expected. Someone tell me I am not crazy. TIA Graham From palcibiades-first at yahoo.co.uk Wed Jan 14 15:17:37 2015 From: palcibiades-first at yahoo.co.uk (Peter Alcibiades) Date: Wed, 14 Jan 2015 12:17:37 -0800 (PST) Subject: Possible insanity, or is it LC 7.0.1? In-Reply-To: References: Message-ID: <1421266657121-4687817.post@n4.nabble.com> LC 7.0 on Debian, both give true. And the second one, if you change it to 'is not a number', gives false. Dunno! Peter -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Possible-insanity-or-is-it-LC-7-0-1-tp4687816p4687817.html Sent from the Revolution - User mailing list archive at Nabble.com. From eric at canelasoftware.com Wed Jan 14 16:27:49 2015 From: eric at canelasoftware.com (Eric Corbett) Date: Wed, 14 Jan 2015 13:27:49 -0800 Subject: Possible insanity, or is it LC 7.0.1? In-Reply-To: References: Message-ID: <59D60422-E945-434A-99C3-6CEBCCC838C7@canelasoftware.com> Try on the multi-line option in the message box: put (1.884956 is a number) into tIsNum put tIsNum On Jan 14, 2015, at 12:03 PM, Graham Samuel wrote: > Using LC 7.0.1 on Yosemite 1010.1, when I type this into the message box > > put (1.884955 is a number) > > I get true, as expected, but if I put > > put (1.884956 is a number) > > I get > > Script compile error: > Error description: Expression: unquoted literal > > This result was derived from some complex code so I originally thought that the character string could have been corrupt with invisible characters, but I retyped the numbers myself. This seems so mad that I need someone to confirm it, even though I find it completely repeatable. I tried it on LC 6.7 (which just happens to be on my machine) and I got true as expected. > > Someone tell me I am not crazy. > > TIA > > Graham > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From mwieder at ahsoftware.net Wed Jan 14 16:30:17 2015 From: mwieder at ahsoftware.net (Mark Wieder) Date: Wed, 14 Jan 2015 13:30:17 -0800 Subject: Debugging plugins In-Reply-To: References: <51643FD0-B80B-4809-AC26-27281E65075A@canelasoftware.com> <38-2082500899.20150114095744@ahsoftware.net> Message-ID: <139-2069748664.20150114133017@ahsoftware.net> Pete- Wednesday, January 14, 2015, 10:18:46 AM, you wrote: > If I understand this correctly, if a stack name begins with rev and > gRevDevelopment is false, any runtime errors in it are ignored? That's any > stack, not just IDE stacks? That is correct. > I don't suppose this would also enable some way to trap runtime errors and > report info about them, would it? I'm not following that. Runtime errors *are* trapped, unless I'm misunderstanding you, which I suppose is pretty obvious. -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From pete at lcsql.com Wed Jan 14 16:50:53 2015 From: pete at lcsql.com (Peter Haworth) Date: Wed, 14 Jan 2015 13:50:53 -0800 Subject: Debugging plugins In-Reply-To: <139-2069748664.20150114133017@ahsoftware.net> References: <51643FD0-B80B-4809-AC26-27281E65075A@canelasoftware.com> <38-2082500899.20150114095744@ahsoftware.net> <139-2069748664.20150114133017@ahsoftware.net> Message-ID: Thanks Mark. What I mean is, if errors in the revxxx stack are ignored (I assume that means runtime errors?), is there some other way that the stack can determine that they happened so they can be handled more gracefully? Kinda like an error in a try/catch loop. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Wed, Jan 14, 2015 at 1:30 PM, Mark Wieder wrote: > Pete- > > Wednesday, January 14, 2015, 10:18:46 AM, you wrote: > > > If I understand this correctly, if a stack name begins with rev and > > gRevDevelopment is false, any runtime errors in it are ignored? That's > any > > stack, not just IDE stacks? > > That is correct. > > > I don't suppose this would also enable some way to trap runtime errors > and > > report info about them, would it? > > I'm not following that. Runtime errors *are* trapped, unless I'm > misunderstanding you, which I suppose is pretty obvious. > > -- > -Mark Wieder > ahsoftware at gmail.com > > This communication may be unlawfully collected and stored by the National > Security Agency (NSA) in secret. The parties to this email do not > consent to the retrieving or storing of this communication and any > related metadata, as well as printing, copying, re-transmitting, > disseminating, or otherwise using it. If you believe you have received > this communication in error, please delete it immediately. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From irog at mac.com Wed Jan 14 17:48:44 2015 From: irog at mac.com (Roger Guay) Date: Wed, 14 Jan 2015 15:48:44 -0700 Subject: Possible insanity, or is it LC 7.0.1? In-Reply-To: References: Message-ID: Graham, I get true in both cases, same setup. Roger > On Jan 14, 2015, at 1:03 PM, Graham Samuel wrote: > > Using LC 7.0.1 on Yosemite 1010.1, when I type this into the message box > > put (1.884955 is a number) > > I get true, as expected, but if I put > > put (1.884956 is a number) > > I get > > Script compile error: > Error description: Expression: unquoted literal > > This result was derived from some complex code so I originally thought that the character string could have been corrupt with invisible characters, but I retyped the numbers myself. This seems so mad that I need someone to confirm it, even though I find it completely repeatable. I tried it on LC 6.7 (which just happens to be on my machine) and I got true as expected. > > Someone tell me I am not crazy. > > TIA > > Graham > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From livfoss at mac.com Wed Jan 14 18:06:12 2015 From: livfoss at mac.com (Graham Samuel) Date: Thu, 15 Jan 2015 00:06:12 +0100 Subject: Possible insanity, or is it LC 7.0.1? In-Reply-To: References: Message-ID: <35C0AEAD-5C56-420C-810E-24FCACC70A46@mac.com> Thanks to those who replied. So, I am going crazy! I suppose it is something very particular about my setup. I did find one other way to show the anomaly, which was to put put 1.884956 into it; put value(it+0) this gives me the error "Message execution error: Error description: value: error executing expression Hint: 1.884956" But of course YMMV. I am quite happy to be told it?s my fault, but the fact is that this is just an abstraction of something that has arisen in the middle of a loop that produces a table of values based on input parameters which are all very similar: the loop suddenly hits an error only on this particular value. It has worked in earlier versions of LC, but now I?m wedded to Unicode, it?s got to work with LC 7. If I ever get an explanation, I?ll tell the list about it. Cheers Graham > On 14 Jan 2015, at 23:48, Roger Guay wrote: > > Graham, > > I get true in both cases, same setup. > > Roger > >> On Jan 14, 2015, at 1:03 PM, Graham Samuel wrote: >> >> Using LC 7.0.1 on Yosemite 1010.1, when I type this into the message box >> >> put (1.884955 is a number) >> >> I get true, as expected, but if I put >> >> put (1.884956 is a number) >> >> I get >> >> Script compile error: >> Error description: Expression: unquoted literal >> >> This result was derived from some complex code so I originally thought that the character string could have been corrupt with invisible characters, but I retyped the numbers myself. This seems so mad that I need someone to confirm it, even though I find it completely repeatable. I tried it on LC 6.7 (which just happens to be on my machine) and I got true as expected. >> >> Someone tell me I am not crazy. >> >> TIA >> >> Graham >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dan.soneson at gmail.com Wed Jan 14 18:29:28 2015 From: dan.soneson at gmail.com (Dan Soneson) Date: Wed, 14 Jan 2015 17:29:28 -0600 Subject: [semi OT] Virtual visits and LC Message-ID: Check out the krpano web solution at krpano.com It runs both as a Flash plugin and in HTML5. Embeds panoramas with programmable hotspots. Works only in a web browser, but also works within the revBrowser in LiveCode, which may be a way to incorporate the panoramas within a LiveCode app. Best, Dan > Actually I forgot to mention that ideally the virtual visit should be > similar to google street view : users should be able to "move" > around the appartment in 360? (like on google street view), not just > with a serie of static photos with clickable spots... > Best > jbv > > Hi list > > A client of mine wants to add a few virtual visits of warehouses > > and appartments on his website. Those virtual visits will include > > various clickable hot spots, for instance to move from one room > > to another, or on various objects and furnitures in the room in > > order to display infos about them when a user clicks upon. > > Furthermore, apart from the website, the same virtual visits will > > be used on a LC standalone, and probably also on a mobile version > > of that standalone. > > Does anyone has any experience with something similar, and > > could recommend any software for such a project ? > > > > Thanks in advance. > > jbv From lan.kc.macmail at gmail.com Wed Jan 14 18:30:39 2015 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Thu, 15 Jan 2015 07:30:39 +0800 Subject: [OT] Print to PDF In-Reply-To: References: Message-ID: Thank you gentlemen. I had hoped that there would be a way with their set up as is, these folks are old and techno-shy, but the Chrome or CutePDF + ghostscript seems doable. I'll pass it on. From lan.kc.macmail at gmail.com Wed Jan 14 19:04:05 2015 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Thu, 15 Jan 2015 08:04:05 +0800 Subject: [OT] I'm going to go live in a cave In-Reply-To: <008b01d02fec$aaad3610$0007a230$@FlexibleLearning.com> References: <008b01d02fec$aaad3610$0007a230$@FlexibleLearning.com> Message-ID: On Wed, Jan 14, 2015 at 7:24 PM, FlexibleLearning.com wrote: > where did I put those cotton swabs? > Cotton swabs? I've tried micro nozzle attachments that connect to your vacuum cleaner but by far the most effective way of cleaning all the nooks and crannies of anything, not just electronic equipment, is CyberClean: https://mail.google.com/mail/u/0/#label/Mobile/14ae5a2c442d19f0 That listing is pretty expensive. My 500g tub cost me $12 and has lasted several years. The stuff sort of oozes and deforms to any shape - see the photo in the link of cleaning the fan vents of the Mac Pro - but it doesn't come apart. It is slightly tacky so it picks up all the dirt and fluff. I use a ball about a quarter of the size shown in the photos. I attack each key individually, push down really hard with the palm of my hand to force the goop into all the crevices and then use a circular polishing motion to ensure all four sides of the key are done. You can see the stuff being picked up and just keep going until it's all gone, then move onto the next key. From paul at livecode.org Wed Jan 14 19:07:43 2015 From: paul at livecode.org (Paul Hibbert) Date: Wed, 14 Jan 2015 16:07:43 -0800 Subject: Possible insanity, or is it LC 7.0.1? In-Reply-To: <35C0AEAD-5C56-420C-810E-24FCACC70A46@mac.com> References: <35C0AEAD-5C56-420C-810E-24FCACC70A46@mac.com> Message-ID: <706DC66A-4ECA-4ECC-8BAB-74ED0E396A8D@livecode.org> You're not going totally crazy, unless I am too. This fails here in LC7.0.1 on Mac OS X 10.10.1? on mouseUp put 1.884956 into tVar put value(tVar + 0) end mouseUp ?With the following error; button "A": execution error at line 3 (value: error executing expression) near "1.884956", char 1 But this works? on mouseUp put 1.884955 into tVar add 0.000001 to tVar put value(tVar + 0) end mouseUp ?And this works; on mouseUp local tVar = "1.884956" put value(tVar + 0) end mouseUp Then if you use Try/Catch, they all fail in LC7.0.1, but work in LC5.5.5! Paul. :-/ > On Jan 14, 2015, at 3:06 PM, Graham Samuel wrote: > > Thanks to those who replied. So, I am going crazy! I suppose it is something very particular about my setup. I did find one other way to show the anomaly, which was to put > > put 1.884956 into it; put value(it+0) > > this gives me the error > "Message execution error: > Error description: value: error executing expression > Hint: 1.884956" > But of course YMMV. I am quite happy to be told it?s my fault, but the fact is that this is just an abstraction of something that has arisen in the middle of a loop that produces a table of values based on input parameters which are all very similar: the loop suddenly hits an error only on this particular value. It has worked in earlier versions of LC, but now I?m wedded to Unicode, it?s got to work with LC 7. > > If I ever get an explanation, I?ll tell the list about it. > > Cheers > > Graham >> On 14 Jan 2015, at 23:48, Roger Guay wrote: >> >> Graham, >> >> I get true in both cases, same setup. >> >> Roger >> >>> On Jan 14, 2015, at 1:03 PM, Graham Samuel wrote: >>> >>> Using LC 7.0.1 on Yosemite 1010.1, when I type this into the message box >>> >>> put (1.884955 is a number) >>> >>> I get true, as expected, but if I put >>> >>> put (1.884956 is a number) >>> >>> I get >>> >>> Script compile error: >>> Error description: Expression: unquoted literal >>> >>> This result was derived from some complex code so I originally thought that the character string could have been corrupt with invisible characters, but I retyped the numbers myself. This seems so mad that I need someone to confirm it, even though I find it completely repeatable. I tried it on LC 6.7 (which just happens to be on my machine) and I got true as expected. >>> >>> Someone tell me I am not crazy. >>> >>> TIA >>> >>> Graham >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From irog at mac.com Wed Jan 14 19:29:14 2015 From: irog at mac.com (Roger Guay) Date: Wed, 14 Jan 2015 17:29:14 -0700 Subject: Possible insanity, or is it LC 7.0.1? In-Reply-To: <706DC66A-4ECA-4ECC-8BAB-74ED0E396A8D@livecode.org> References: <35C0AEAD-5C56-420C-810E-24FCACC70A46@mac.com> <706DC66A-4ECA-4ECC-8BAB-74ED0E396A8D@livecode.org> Message-ID: <292DF177-947E-4637-83ED-BAE331F69AA4@mac.com> Such strange goings-on! I get Paul's results when I do it Paul?s way, but I don?t get Graham?s results when I do it his way via the message box!! Does that make me half crazy? > On Jan 14, 2015, at 5:07 PM, Paul Hibbert wrote: > > You're not going totally crazy, unless I am too. > > This fails here in LC7.0.1 on Mac OS X 10.10.1? > > on mouseUp > put 1.884956 into tVar > put value(tVar + 0) > end mouseUp > > ?With the following error; > button "A": execution error at line 3 (value: error executing expression) near "1.884956", char 1 > > But this works? > > on mouseUp > put 1.884955 into tVar > add 0.000001 to tVar > put value(tVar + 0) > end mouseUp > > ?And this works; > > on mouseUp > local tVar = "1.884956" > put value(tVar + 0) > end mouseUp > > Then if you use Try/Catch, they all fail in LC7.0.1, but work in LC5.5.5! > > Paul. :-/ > > >> On Jan 14, 2015, at 3:06 PM, Graham Samuel wrote: >> >> Thanks to those who replied. So, I am going crazy! I suppose it is something very particular about my setup. I did find one other way to show the anomaly, which was to put >> >> put 1.884956 into it; put value(it+0) >> >> this gives me the error >> "Message execution error: >> Error description: value: error executing expression >> Hint: 1.884956" >> But of course YMMV. I am quite happy to be told it?s my fault, but the fact is that this is just an abstraction of something that has arisen in the middle of a loop that produces a table of values based on input parameters which are all very similar: the loop suddenly hits an error only on this particular value. It has worked in earlier versions of LC, but now I?m wedded to Unicode, it?s got to work with LC 7. >> >> If I ever get an explanation, I?ll tell the list about it. >> >> Cheers >> >> Graham >>> On 14 Jan 2015, at 23:48, Roger Guay wrote: >>> >>> Graham, >>> >>> I get true in both cases, same setup. >>> >>> Roger >>> >>>> On Jan 14, 2015, at 1:03 PM, Graham Samuel wrote: >>>> >>>> Using LC 7.0.1 on Yosemite 1010.1, when I type this into the message box >>>> >>>> put (1.884955 is a number) >>>> >>>> I get true, as expected, but if I put >>>> >>>> put (1.884956 is a number) >>>> >>>> I get >>>> >>>> Script compile error: >>>> Error description: Expression: unquoted literal >>>> >>>> This result was derived from some complex code so I originally thought that the character string could have been corrupt with invisible characters, but I retyped the numbers myself. This seems so mad that I need someone to confirm it, even though I find it completely repeatable. I tried it on LC 6.7 (which just happens to be on my machine) and I got true as expected. >>>> >>>> Someone tell me I am not crazy. >>>> >>>> TIA >>>> >>>> Graham >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bodine at bodinetraininggames.com Wed Jan 14 20:01:20 2015 From: bodine at bodinetraininggames.com (tbodine) Date: Wed, 14 Jan 2015 17:01:20 -0800 (PST) Subject: How to solve "can't find stack" error Message-ID: <1421283680740-4687828.post@n4.nabble.com> Hi all. Looking for some insight here... I have a desktop program built in LC 6.5.1 that uses LC stacks as user files for storing user data in fields and cprops. Mostly this works well. However, I get occasional Error Reports when a few users have tried to reopen a file they created. Error type is "Chunk: can't find stack". I know the file exists because the user just picked it with the answer file command. The error occurs at a line where I first read a cprop from the stack. And the line just prior to that loads the stack with "go invisible to card 1 of stack tFullFilePath" My theory is on some (slower?) machines the stack file is not entirely loaded before the next line of my handler tries to read from it. The error only happens to a few users, but tends to hit them repeatedly, and I know one of them has an old machine. The typical stack file size is well under 300k. Does that theory sound feasible? I thought about inserting a "wait for X ms" between the two lines of code, but I'd just be guessing at the duration. Frankly, I've never understood the use of "wait" in LC... as it often seems arbitrary. Feel free to school me on that or anything else! Thanks for your thoughts. Tom Bodine -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/How-to-solve-can-t-find-stack-error-tp4687828.html Sent from the Revolution - User mailing list archive at Nabble.com. From lan.kc.macmail at gmail.com Wed Jan 14 20:13:20 2015 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Thu, 15 Jan 2015 09:13:20 +0800 Subject: Possible insanity, or is it LC 7.0.1? In-Reply-To: <292DF177-947E-4637-83ED-BAE331F69AA4@mac.com> References: <35C0AEAD-5C56-420C-810E-24FCACC70A46@mac.com> <706DC66A-4ECA-4ECC-8BAB-74ED0E396A8D@livecode.org> <292DF177-947E-4637-83ED-BAE331F69AA4@mac.com> Message-ID: On Thu, Jan 15, 2015 at 8:29 AM, Roger Guay wrote: > > I get Paul's results when I do it Paul?s way, but I don?t get Graham?s > results when I do it his way via the message box!! > Same here and I'm on Mavericks. And just to confuse the matter even further: put 1.884956 into tVar put isNumber(tVar) put 1.884956 into tVar put (tVar + 0) put value(1.884956+0) All three work fine. put 1.884956 into tVar put isNumber(tVar) put value(tVar + 0) does not. Graham, definitely one for you to log with the QCC. From lan.kc.macmail at gmail.com Wed Jan 14 20:24:18 2015 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Thu, 15 Jan 2015 09:24:18 +0800 Subject: How to solve "can't find stack" error In-Reply-To: <1421283680740-4687828.post@n4.nabble.com> References: <1421283680740-4687828.post@n4.nabble.com> Message-ID: Would seem easy enough to test your theory. Insert the second line of code, the one that reads the cprop, in a try statement. If it catches an error wait 5 seconds (just to really test your theory) and issue the command again. For those not having the problem they are not burdened with a wait, those that are you'll soon know if it fixes the problem. If so you could test various wait periods to see what is the shortest that consistently solves the problem. HTH From brahma at hindu.org Wed Jan 14 21:15:07 2015 From: brahma at hindu.org (Brahmanathaswami) Date: Wed, 14 Jan 2015 16:15:07 -1000 Subject: Script to Generate Concurrent Times In-Reply-To: <6BF8872A-961E-4C94-9BCC-2ED02B0C3230@byu.edu> References: <54B5FCEE.4020102@hindu.org> <6BF8872A-961E-4C94-9BCC-2ED02B0C3230@byu.edu> Message-ID: <54B722AB.7010206@hindu.org> Devin: thanks! "set the $TZ" a perfect little gift on this Happy Makara Sankranti/Thai Pongal. Big feast day in India today, sun moved into Capricorn, celebrate the post monsoon harvest. Tomorrow we will decorate and worship our lovely New Jersey cows. see: http://dev.himalayanacademy.com/tests/dates.lc "Sweet" - linux web server Cento OS6.2) How easy is this.... ------------------------ " after tWorldTimes end repeat put tWorldTimes ----------------- but now... trick will be: if you want to set a time in advance and then get your list from that and not from the current moment? put another way: this list is generated for this very moment at "box time" (PST) but if I want to set it to Future Webinar Date/Time and fetch calculated the "World Times" based on that future date/time... will need to think about that... Swasti Astu, Be Well! Brahmanathaswami Kauai's Hindu Monastery www.HimalayanAcademy.com Devin Asay wrote: > In your .lc script do this: > > put "US/Mountain" into $TZ # or whatever time zone you want to show > put shell("date") into tDTstring > > Setting the $TZ variable right before called the date command returns the date/time the specified timezone. At least it works on the on-rev servers. From mwieder at ahsoftware.net Wed Jan 14 21:30:38 2015 From: mwieder at ahsoftware.net (Mark Wieder) Date: Wed, 14 Jan 2015 18:30:38 -0800 Subject: Script to Generate Concurrent Times In-Reply-To: <54B722AB.7010206@hindu.org> References: <54B5FCEE.4020102@hindu.org> <6BF8872A-961E-4C94-9BCC-2ED02B0C3230@byu.edu> <54B722AB.7010206@hindu.org> Message-ID: <22-2051727564.20150114183038@ahsoftware.net> Brahmanathaswami- Wednesday, January 14, 2015, 6:15:07 PM, you wrote: > Tomorrow we will decorate and worship our lovely New Jersey cows. OK - I have to say that sequence of words totally blindsided me. Did not see that coming. -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From mwieder at ahsoftware.net Wed Jan 14 21:36:29 2015 From: mwieder at ahsoftware.net (Mark Wieder) Date: Wed, 14 Jan 2015 18:36:29 -0800 Subject: Debugging plugins In-Reply-To: References: <51643FD0-B80B-4809-AC26-27281E65075A@canelasoftware.com> <38-2082500899.20150114095744@ahsoftware.net> <139-2069748664.20150114133017@ahsoftware.net> Message-ID: <197-2051376926.20150114183629@ahsoftware.net> Pete- Wednesday, January 14, 2015, 1:50:53 PM, you wrote: > Thanks Mark. > What I mean is, if errors in the revxxx stack are ignored (I assume that > means runtime errors?), is there some other way that the stack can > determine that they happened so they can be handled more gracefully? Kinda > like an error in a try/catch loop. You could patch the IDE. There's a handler in one of the frontscript libraries (I forget the details off the top of my head) that determines whether or not to pass the error on for handling. -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From brahma at hindu.org Wed Jan 14 21:56:27 2015 From: brahma at hindu.org (Brahmanathaswami) Date: Wed, 14 Jan 2015 16:56:27 -1000 Subject: Script to Generate Concurrent Times In-Reply-To: <22-2051727564.20150114183038@ahsoftware.net> References: <54B5FCEE.4020102@hindu.org> <6BF8872A-961E-4C94-9BCC-2ED02B0C3230@byu.edu> <54B722AB.7010206@hindu.org> <22-2051727564.20150114183038@ahsoftware.net> Message-ID: <54B72C5B.8020400@hindu.org> ha! I meant new Jersey cows. We retired all our crazy Holsteins to our 200 acres of guinea grass across the river. I say "crazy' because "Deepti" was indeed a little wild... quite ready to chase you in a little Ranger and 2,000 pounds of white bovine rushing at you because she thinks you have a bucket of alfalfa cubes can be very scary... Whereas these new Jersey's are gentle as lambs. Years ago we had one Jersey that was so gentle that I could take a nap in the field with my head on her neck (she was also laying down) and when i would sing to her, her ears would perk up and tears would roll out of her eyes. I'm not kidding. OK enough of this natural world stuff! Back to $TZ manipulations! Swasti Astu, Be Well! Brahmanathaswami Kauai's Hindu Monastery www.HimalayanAcademy.com Mark Wieder wrote: >> > Tomorrow we will decorate and worship our lovely New Jersey cows. > > OK - I have to say that sequence of words totally blindsided me. > Did not see that coming. From gcanyon at gmail.com Wed Jan 14 21:58:05 2015 From: gcanyon at gmail.com (Geoff Canyon) Date: Wed, 14 Jan 2015 20:58:05 -0600 Subject: Debugging plugins In-Reply-To: <54B6A5D8.1010406@hyperactivesw.com> References: <51643FD0-B80B-4809-AC26-27281E65075A@canelasoftware.com> <54B6A5D8.1010406@hyperactivesw.com> Message-ID: On Wed, Jan 14, 2015 at 11:22 AM, J. Landman Gay wrote: > The simplest thing might be to temporarily rename your plugin without the > "rev" prefix while you're working on it. This gives me the opportunity to use my favorite phrase from an Apple commercial: "What, was I in thinking jail?" Apart from how much of a pain it is to rename a stack with behavior buttons in it, this was straightforward and works perfectly. thanks! From brahma at hindu.org Wed Jan 14 21:59:16 2015 From: brahma at hindu.org (Brahmanathaswami) Date: Wed, 14 Jan 2015 16:59:16 -1000 Subject: Possible insanity, or is it LC 7.0.1? In-Reply-To: <35C0AEAD-5C56-420C-810E-24FCACC70A46@mac.com> References: <35C0AEAD-5C56-420C-810E-24FCACC70A46@mac.com> Message-ID: <54B72D04.5060901@hindu.org> You are not crazy and it's not just your machine confirmed here Yosemite 10.10 LC 7.0.1 on mouseUp put 1.884956 into tVar put value(tVar + 0) end mouseUp button "Button": execution error at line 3 (value: error executing expression) near "1.884956", char 1 BR Graham Samuel wrote: > Thanks to those who replied. So, I am going crazy! I suppose it is something very particular about my setup. I did find one other way to show the anomaly, which was to put > > put 1.884956 into it; put value(it+0) > > this gives me the error > "Message execution error: > Error description: value: error executing expression > Hint: 1.884956" From peterwawood at gmail.com Wed Jan 14 22:06:26 2015 From: peterwawood at gmail.com (Peter W A Wood) Date: Thu, 15 Jan 2015 11:06:26 +0800 Subject: Possible insanity, or is it LC 7.0.1? In-Reply-To: References: <35C0AEAD-5C56-420C-810E-24FCACC70A46@mac.com> <706DC66A-4ECA-4ECC-8BAB-74ED0E396A8D@livecode.org> <292DF177-947E-4637-83ED-BAE331F69AA4@mac.com> Message-ID: <9949031D-8B45-4F5D-9CE6-7018F33A40EC@gmail.com> I experimented a little further and found that, on my set up, I got the same results as Roger. I ran this in the multi-line message box: put "version:" && the version & return into tReport put "os:" && the platform & the systemVersion & return after tReport put isNumber(1.884956) & return after tReport put 1.884956 into tVar put "Is tVar a number?" && isNumber(tVar) & return after tReport put 1.884956 into tVar put tVar / 1 into tVar2 put "Is tVar a number?" && isNumber(tVar) & return after tReport put "Is tVar2 a number?" && isNumber(tVar2) & return after tReport put tReport These are the results: version: 7.0.1 os: MacOS10.10.1 true Is tVar a number? true Is tVar a number? false Is tVar2 a number? false It seems dividing the number was sufficient to stop it being one! From playing in the message box, I noticed that dividing 1.12345 by 1 results in a number but dividing 1.123456 doesn?t. If I remove the last digit from Graham?s magic 1.884956, the multiline script works correctly. So it would seem the problem is related to the number of significant digits. (If I change the number to 1.884955, the multiline script still gives incorrect results.) Regards Peter > On 15 Jan 2015, at 09:13, Kay C Lan wrote: > > On Thu, Jan 15, 2015 at 8:29 AM, Roger Guay wrote: > >> >> I get Paul's results when I do it Paul?s way, but I don?t get Graham?s >> results when I do it his way via the message box!! >> > > Same here and I'm on Mavericks. And just to confuse the matter even further: > > put 1.884956 into tVar > put isNumber(tVar) > > put 1.884956 into tVar > put (tVar + 0) > > put value(1.884956+0) > > All three work fine. > > put 1.884956 into tVar > put isNumber(tVar) > put value(tVar + 0) > > does not. > > Graham, definitely one for you to log with the QCC. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Wed Jan 14 22:19:19 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 14 Jan 2015 21:19:19 -0600 Subject: Script to Generate Concurrent Times In-Reply-To: <54B72C5B.8020400@hindu.org> References: <54B5FCEE.4020102@hindu.org> <6BF8872A-961E-4C94-9BCC-2ED02B0C3230@byu.edu> <54B722AB.7010206@hindu.org> <22-2051727564.20150114183038@ahsoftware.net> <54B72C5B.8020400@hindu.org> Message-ID: <8356A7EC-F17A-4DE7-AE5E-87885910BCF0@hyperactivesw.com> On January 14, 2015 8:56:27 PM CST, Brahmanathaswami wrote: > Years ago we had one >Jersey that was so gentle that I could take a nap in the field with my >head on her neck (she was also laying down) and when i would sing to >her, her ears would perk up and tears would roll out of her eyes. Please sing to us too. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Wed Jan 14 22:23:31 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 14 Jan 2015 21:23:31 -0600 Subject: How to solve "can't find stack" error In-Reply-To: <1421283680740-4687828.post@n4.nabble.com> References: <1421283680740-4687828.post@n4.nabble.com> Message-ID: On January 14, 2015 7:01:20 PM CST, tbodine wrote: > I have a desktop program built in LC 6.5.1 >that uses LC stacks as user files for storing user data in fields and >cprops. Mostly this works well. However, I get occasional Error Reports >when >a few users have tried to reopen a file they created. Error type is >"Chunk: >can't find stack". I know the file exists because the user just picked >it >with the answer file command. This can also happen if the file exists but it isn't recognized as a stack, either because it's corrupted, it's the wrong stack version, or it was saved as a different type of file (like a text file, for example.) -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Wed Jan 14 22:32:44 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 14 Jan 2015 21:32:44 -0600 Subject: Possible insanity, or is it LC 7.0.1? In-Reply-To: <9949031D-8B45-4F5D-9CE6-7018F33A40EC@gmail.com> References: <35C0AEAD-5C56-420C-810E-24FCACC70A46@mac.com> <706DC66A-4ECA-4ECC-8BAB-74ED0E396A8D@livecode.org> <292DF177-947E-4637-83ED-BAE331F69AA4@mac.com> <9949031D-8B45-4F5D-9CE6-7018F33A40EC@gmail.com> Message-ID: <1D34A723-3DAE-40C6-A41F-4D8978F00E32@hyperactivesw.com> On January 14, 2015 9:06:26 PM CST, Peter W A Wood wrote: >It seems dividing the number was sufficient to stop it being one! For some reason this sounds to me like the SANE library is acting up again. Which doesn't make us crazy but would imply we're in SANE. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From roger.e.eller at sealedair.com Wed Jan 14 22:43:06 2015 From: roger.e.eller at sealedair.com (Roger Eller) Date: Wed, 14 Jan 2015 22:43:06 -0500 Subject: Script to Generate Concurrent Times In-Reply-To: <54B72C5B.8020400@hindu.org> References: <54B5FCEE.4020102@hindu.org> <6BF8872A-961E-4C94-9BCC-2ED02B0C3230@byu.edu> <54B722AB.7010206@hindu.org> <22-2051727564.20150114183038@ahsoftware.net> <54B72C5B.8020400@hindu.org> Message-ID: So that's where the old saying, "your singing would bring a jersey cow to tears" comes from. Sent from my Android tablet On Jan 14, 2015 9:56 PM, "Brahmanathaswami" wrote: > ha! I meant new Jersey cows. > > We retired all our crazy Holsteins to our 200 acres of guinea grass across > the river. I say "crazy' because "Deepti" was indeed a little wild... > quite ready to chase you in a little Ranger and 2,000 pounds of white > bovine rushing at you because she thinks you have a bucket of alfalfa cubes > can be very scary... > > Whereas these new Jersey's are gentle as lambs. Years ago we had one > Jersey that was so gentle that I could take a nap in the field with my head > on her neck (she was also laying down) and when i would sing to her, her > ears would perk up and tears would roll out of her eyes. I'm not kidding. > > OK enough of this natural world stuff! > Back to $TZ manipulations! > > Swasti Astu, Be Well! > Brahmanathaswami > > Kauai's Hindu Monastery > www.HimalayanAcademy.com > > > > Mark Wieder wrote: > >> > Tomorrow we will decorate and worship our lovely New Jersey cows. >>> >> >> OK - I have to say that sequence of words totally blindsided me. >> Did not see that coming. >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dixonja at hotmail.co.uk Thu Jan 15 01:13:29 2015 From: dixonja at hotmail.co.uk (John Dixon) Date: Thu, 15 Jan 2015 06:13:29 +0000 Subject: Which version... Message-ID: Why are there different versions of liveCode being updated.. LC 7.0 - updated 23 October 2014 LC 7.0.1 - updated 18 December 2014 LC 6.7.0 - updated 18 December 2014 LC 6.7.1 - updated 9 January 2015 Which one is considered to be the 'one' to use ? Dixie From dave at applicationinsight.com Thu Jan 15 02:47:31 2015 From: dave at applicationinsight.com (Dave Kilroy) Date: Wed, 14 Jan 2015 23:47:31 -0800 (PST) Subject: Which version... In-Reply-To: References: Message-ID: <1421308051983-4687843.post@n4.nabble.com> Hi John I do know that on the 5th of January Frazer put out community 6.7.1 for Windows again because the installer wasn't working properly - and I could add LC 6.7.2 to your list which also is dated on the 9th... ----- "Some are born coders, some achieve coding, and some have coding thrust upon them." - William Shakespeare & Hugh Senior -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Which-version-tp4687842p4687843.html Sent from the Revolution - User mailing list archive at Nabble.com. From dixonja at hotmail.co.uk Thu Jan 15 02:56:55 2015 From: dixonja at hotmail.co.uk (John Dixon) Date: Thu, 15 Jan 2015 07:56:55 +0000 Subject: Which version... In-Reply-To: <1421308051983-4687843.post@n4.nabble.com> References: , <1421308051983-4687843.post@n4.nabble.com> Message-ID: Hi Dave, Yes, but my question really is.. 'What is the reason for having all theses different versions being updated more or less at the same time ?'... Life was much simpler when you knew the version with the largest number stuck on the end of it was the one to use and the rest, as they say, were history ? being pedantic, but I will ask again... Which is the version to use ?... Dixie > Date: Wed, 14 Jan 2015 23:47:31 -0800 > From: dave at applicationinsight.com > To: use-revolution at lists.runrev.com > Subject: Re: Which version... > > Hi John > > I do know that on the 5th of January Frazer put out community 6.7.1 for > Windows again because the installer wasn't working properly - and I could > add LC 6.7.2 to your list which also is dated on the 9th... From toolbook at kestner.de Thu Jan 15 03:12:06 2015 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Thu, 15 Jan 2015 09:12:06 +0100 Subject: AW: Which version... In-Reply-To: References: , <1421308051983-4687843.post@n4.nabble.com> Message-ID: <004501d0309a$f51a1b10$df4e5130$@kestner.de> Hi John, the 7.x line is the new world, based on cocoa, full unicode support, etc. which will developed further on. The 6.x line is the old world without full Unicode support and is just maintained from runrev a little further for the old school guys (like me), who can't switch to the new world (yet) Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von John Dixon Gesendet: Donnerstag, 15. Januar 2015 08:57 An: How to use LiveCode Betreff: RE: Which version... Hi Dave, Yes, but my question really is.. 'What is the reason for having all theses different versions being updated more or less at the same time ?'... Life was much simpler when you knew the version with the largest number stuck on the end of it was the one to use and the rest, as they say, were history ? being pedantic, but I will ask again... Which is the version to use ?... Dixie > Date: Wed, 14 Jan 2015 23:47:31 -0800 > From: dave at applicationinsight.com > To: use-revolution at lists.runrev.com > Subject: Re: Which version... > > Hi John > > I do know that on the 5th of January Frazer put out community 6.7.1 > for Windows again because the installer wasn't working properly - and > I could add LC 6.7.2 to your list which also is dated on the 9th... _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From toolbook at kestner.de Thu Jan 15 03:18:40 2015 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Thu, 15 Jan 2015 09:18:40 +0100 Subject: AW: Which version... In-Reply-To: <004501d0309a$f51a1b10$df4e5130$@kestner.de> References: , <1421308051983-4687843.post@n4.nabble.com> <004501d0309a$f51a1b10$df4e5130$@kestner.de> Message-ID: <004601d0309b$deff1eb0$9cfd5c10$@kestner.de> ... I forgot to answer your question which version to use. If you need one of the new features of version 7 (see version info), then you go with 7.x If not, I personally would stay with 6.x until 7.x is more stable and more bugs are solved (see list) This is only my personal advice Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von Tiemo Hollmann TB Gesendet: Donnerstag, 15. Januar 2015 09:12 An: 'How to use LiveCode' Betreff: AW: Which version... Hi John, the 7.x line is the new world, based on cocoa, full unicode support, etc. which will developed further on. The 6.x line is the old world without full Unicode support and is just maintained from runrev a little further for the old school guys (like me), who can't switch to the new world (yet) Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von John Dixon Gesendet: Donnerstag, 15. Januar 2015 08:57 An: How to use LiveCode Betreff: RE: Which version... Hi Dave, Yes, but my question really is.. 'What is the reason for having all theses different versions being updated more or less at the same time ?'... Life was much simpler when you knew the version with the largest number stuck on the end of it was the one to use and the rest, as they say, were history ? being pedantic, but I will ask again... Which is the version to use ?... Dixie > Date: Wed, 14 Jan 2015 23:47:31 -0800 > From: dave at applicationinsight.com > To: use-revolution at lists.runrev.com > Subject: Re: Which version... > > Hi John > > I do know that on the 5th of January Frazer put out community 6.7.1 > for Windows again because the installer wasn't working properly - and > I could add LC 6.7.2 to your list which also is dated on the 9th... _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Thu Jan 15 03:23:10 2015 From: richmondmathewson at gmail.com (Richmond) Date: Thu, 15 Jan 2015 10:23:10 +0200 Subject: [OT] I'm going to go live in a cave In-Reply-To: References: <008b01d02fec$aaad3610$0007a230$@FlexibleLearning.com> Message-ID: <54B778EE.5060008@gmail.com> On 01/15/2015 02:04 AM, Kay C Lan wrote: > On Wed, Jan 14, 2015 at 7:24 PM, FlexibleLearning.com flexiblelearning.com> wrote: > >> where did I put those cotton swabs? >> > Cotton swabs? I've tried micro nozzle attachments that connect to your > vacuum cleaner but by far the most effective way of cleaning all the nooks > and crannies of anything, not just electronic equipment, is CyberClean: > > https://mail.google.com/mail/u/0/#label/Mobile/14ae5a2c442d19f0 All that happens when I click on that address above is that I end up in my gmail account on Firefox. Richmond. > > That listing is pretty expensive. My 500g tub cost me $12 and has lasted > several years. The stuff sort of oozes and deforms to any shape - see the > photo in the link of cleaning the fan vents of the Mac Pro - but it doesn't > come apart. It is slightly tacky so it picks up all the dirt and fluff. I > use a ball about a quarter of the size shown in the photos. I attack each > key individually, push down really hard with the palm of my hand to force > the goop into all the crevices and then use a circular polishing motion to > ensure all four sides of the key are done. You can see the stuff being > picked up and just keep going until it's all gone, then move onto the next > key. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From henk at ludisstudio.com Thu Jan 15 04:00:58 2015 From: henk at ludisstudio.com (Henk van der Velden) Date: Thu, 15 Jan 2015 10:00:58 +0100 Subject: Possible insanity, or is it LC 7.0.1? In-Reply-To: References: Message-ID: I get the same error here, same setup: OS X 10.10.1, LC7.0.1 build 10023 So it?s definitely not just you! Henk > On 15 Jan 2015, at 09:12, use-livecode-request at lists.runrev.com wrote: > > Message: 6 > Date: Thu, 15 Jan 2015 00:06:12 +0100 > From: Graham Samuel > > To: How to use LiveCode > > Subject: Re: Possible insanity, or is it LC 7.0.1? > Message-ID: <35C0AEAD-5C56-420C-810E-24FCACC70A46 at mac.com > > Content-Type: text/plain; charset=utf-8 > > Thanks to those who replied. So, I am going crazy! I suppose it is something very particular about my setup. I did find one other way to show the anomaly, which was to put > > put 1.884956 into it; put value(it+0) > > this gives me the error > "Message execution error: > Error description: value: error executing expression > Hint: 1.884956" > But of course YMMV. I am quite happy to be told it?s my fault, but the fact is that this is just an abstraction of something that has arisen in the middle of a loop that produces a table of values based on input parameters which are all very similar: the loop suddenly hits an error only on this particular value. It has worked in earlier versions of LC, but now I?m wedded to Unicode, it?s got to work with LC 7. > > If I ever get an explanation, I?ll tell the list about it. > > Cheers > > Graham > From livfoss at mac.com Thu Jan 15 04:22:44 2015 From: livfoss at mac.com (Graham Samuel) Date: Thu, 15 Jan 2015 10:22:44 +0100 Subject: Possible insanity, or is it LC 7.0.1? In-Reply-To: References: Message-ID: Now reported as a bug (14386) - I?ve included a reference to this thread to show that my observation is backed up by many listers. Thanks everyone. Thanks Jacque for doubting the sanity of SANE. Graham > On 15 Jan 2015, at 10:00, Henk van der Velden wrote: > > I get the same error here, same setup: OS X 10.10.1, LC7.0.1 build 10023 > So it?s definitely not just you! > Henk > >> On 15 Jan 2015, at 09:12, use-livecode-request at lists.runrev.com wrote: >> >> Message: 6 >> Date: Thu, 15 Jan 2015 00:06:12 +0100 >> From: Graham Samuel > >> To: How to use LiveCode > >> Subject: Re: Possible insanity, or is it LC 7.0.1? >> Message-ID: <35C0AEAD-5C56-420C-810E-24FCACC70A46 at mac.com > >> Content-Type: text/plain; charset=utf-8 >> >> Thanks to those who replied. So, I am going crazy! I suppose it is something very particular about my setup. I did find one other way to show the anomaly, which was to put >> >> put 1.884956 into it; put value(it+0) >> >> this gives me the error >> "Message execution error: >> Error description: value: error executing expression >> Hint: 1.884956" >> But of course YMMV. I am quite happy to be told it?s my fault, but the fact is that this is just an abstraction of something that has arisen in the middle of a loop that produces a table of values based on input parameters which are all very similar: the loop suddenly hits an error only on this particular value. It has worked in earlier versions of LC, but now I?m wedded to Unicode, it?s got to work with LC 7. >> >> If I ever get an explanation, I?ll tell the list about it. >> >> Cheers >> >> Graham >> From livfoss at mac.com Thu Jan 15 05:17:35 2015 From: livfoss at mac.com (Graham Samuel) Date: Thu, 15 Jan 2015 11:17:35 +0100 Subject: Which version... In-Reply-To: <004501d0309a$f51a1b10$df4e5130$@kestner.de> References: <1421308051983-4687843.post@n4.nabble.com> <004501d0309a$f51a1b10$df4e5130$@kestner.de> Message-ID: <86E6525C-8670-4805-8B5E-45CF8168C42E@mac.com> There seems to be another oddity, which is that I just found out that when you report a bug, you?re currently asked which of three or four versions of 7.0.1 you have - but when I look at the version I?m actually using, there?s no reference in the ?About? box to any of these versions! FWIW I think this level of confusion about versions is counterproductive. Graham > On 15 Jan 2015, at 09:12, Tiemo Hollmann TB wrote: > > Hi John, > > the 7.x line is the new world, based on cocoa, full unicode support, etc. > which will developed further on. > The 6.x line is the old world without full Unicode support and is just > maintained from runrev a little further for the old school guys (like me), > who can't switch to the new world (yet) > > Tiemo > > > -----Urspr?ngliche Nachricht----- > Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag > von John Dixon > Gesendet: Donnerstag, 15. Januar 2015 08:57 > An: How to use LiveCode > Betreff: RE: Which version... > > > Hi Dave, > > Yes, but my question really is.. > 'What is the reason for having all theses different versions being updated > more or less at the same time ?'... > Life was much simpler when you knew the version with the largest number > stuck on the end of it was the one to use and the rest, as they say, were > history ? > > being pedantic, but I will ask again... Which is the version to use ?... > > Dixie > > >> Date: Wed, 14 Jan 2015 23:47:31 -0800 >> From: dave at applicationinsight.com >> To: use-revolution at lists.runrev.com >> Subject: Re: Which version... >> >> Hi John >> >> I do know that on the 5th of January Frazer put out community 6.7.1 >> for Windows again because the installer wasn't working properly - and >> I could add LC 6.7.2 to your list which also is dated on the 9th... > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From lan.kc.macmail at gmail.com Thu Jan 15 05:26:58 2015 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Thu, 15 Jan 2015 18:26:58 +0800 Subject: [OT] I'm going to go live in a cave In-Reply-To: <54B778EE.5060008@gmail.com> References: <008b01d02fec$aaad3610$0007a230$@FlexibleLearning.com> <54B778EE.5060008@gmail.com> Message-ID: Whoops, don't know what happened there: http://www.amazon.com/Cyber-Clean-25055-Office-Pop-up/dp/B00375JBL4 From dave at applicationinsight.com Thu Jan 15 05:37:28 2015 From: dave at applicationinsight.com (Dave Kilroy) Date: Thu, 15 Jan 2015 02:37:28 -0800 (PST) Subject: Which version... In-Reply-To: <86E6525C-8670-4805-8B5E-45CF8168C42E@mac.com> References: <1421308051983-4687843.post@n4.nabble.com> <004501d0309a$f51a1b10$df4e5130$@kestner.de> <86E6525C-8670-4805-8B5E-45CF8168C42E@mac.com> Message-ID: <1421318248717-4687852.post@n4.nabble.com> As far as I know (which isn't saying much): LC 6.6.x = maintenance of 'old generation' versions (e.g. carbon) LC 6.7.x = 'new generation' stuff like cocoa, excluding UniCode LC 7.x.x = all 'new generation' stuff, including Unicode LC 6.6 is for working on legacy stacks LC 6.7 is for those wanting 'new generation' features but who don't want UniCode LC 7 is the future and the base on which they are building LC 8 (and presumabely HTML5 too) So - as to which version you should use - depends on what you're working on! If you are close to releasing an app and don't need 'new generation' features then probably you are best with 6.6.x If you don't expect to release you app very soon and think that 'new generation' bugs are both necessary in your app likely to have been ironed out by the time you launch your app then I would say go with 7.x.x Unless there is some reason why you don't want the new way LC supports UniCode, in which case go with 6.7.x Dave ----- "Some are born coders, some achieve coding, and some have coding thrust upon them." - William Shakespeare & Hugh Senior -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Which-version-tp4687842p4687852.html Sent from the Revolution - User mailing list archive at Nabble.com. From dixonja at hotmail.co.uk Thu Jan 15 05:50:22 2015 From: dixonja at hotmail.co.uk (John Dixon) Date: Thu, 15 Jan 2015 10:50:22 +0000 Subject: Which version... In-Reply-To: <1421318248717-4687852.post@n4.nabble.com> References: , <1421308051983-4687843.post@n4.nabble.com>, , <004501d0309a$f51a1b10$df4e5130$@kestner.de>, <86E6525C-8670-4805-8B5E-45CF8168C42E@mac.com>, <1421318248717-4687852.post@n4.nabble.com> Message-ID: Just made a standalone for a stack I'm working on... from LC 6.7 - 2.8 mb in size from LC 7.0 - 28.0 mb in size Where did all that bloat appear from !? Dixie > Date: Thu, 15 Jan 2015 02:37:28 -0800 > From: dave at applicationinsight.com > To: use-revolution at lists.runrev.com > Subject: Re: Which version... > > As far as I know (which isn't saying much): > > LC 6.6.x = maintenance of 'old generation' versions (e.g. carbon) > LC 6.7.x = 'new generation' stuff like cocoa, excluding UniCode > LC 7.x.x = all 'new generation' stuff, including Unicode > > LC 6.6 is for working on legacy stacks > LC 6.7 is for those wanting 'new generation' features but who don't want > UniCode > LC 7 is the future and the base on which they are building LC 8 (and > presumabely HTML5 too) > > So - as to which version you should use - depends on what you're working on! > > If you are close to releasing an app and don't need 'new generation' > features then probably you are best with 6.6.x > > If you don't expect to release you app very soon and think that 'new > generation' bugs are both necessary in your app likely to have been ironed > out by the time you launch your app then I would say go with 7.x.x > > Unless there is some reason why you don't want the new way LC supports > UniCode, in which case go with 6.7.x > > Dave > > > > ----- > "Some are born coders, some achieve coding, and some have coding thrust upon them." - William Shakespeare & Hugh Senior > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/Which-version-tp4687842p4687852.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dave at applicationinsight.com Thu Jan 15 05:59:57 2015 From: dave at applicationinsight.com (Dave Kilroy) Date: Thu, 15 Jan 2015 02:59:57 -0800 (PST) Subject: Which version... In-Reply-To: References: <1421308051983-4687843.post@n4.nabble.com> <004501d0309a$f51a1b10$df4e5130$@kestner.de> <86E6525C-8670-4805-8B5E-45CF8168C42E@mac.com> <1421318248717-4687852.post@n4.nabble.com> Message-ID: <1421319597027-4687854.post@n4.nabble.com> I believe it's resources needed to make their new handling of UniCode work (also believe they are looking at ways of slimming down file sizes...) John Dixon wrote > from LC 6.7 - 2.8 mb in size > from LC 7.0 - 28.0 mb in size > > Where did all that bloat appear from !? ----- "Some are born coders, some achieve coding, and some have coding thrust upon them." - William Shakespeare & Hugh Senior -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Which-version-tp4687842p4687854.html Sent from the Revolution - User mailing list archive at Nabble.com. From toolbook at kestner.de Thu Jan 15 06:04:20 2015 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Thu, 15 Jan 2015 12:04:20 +0100 Subject: AW: Which version... In-Reply-To: References: , <1421308051983-4687843.post@n4.nabble.com>, , <004501d0309a$f51a1b10$df4e5130$@kestner.de>, <86E6525C-8670-4805-8B5E-45CF8168C42E@mac.com>, <1421318248717-4687852.post@n4.nabble.com> Message-ID: <004c01d030b3$040833b0$0c189b10$@kestner.de> Brave new world -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von John Dixon Gesendet: Donnerstag, 15. Januar 2015 11:50 An: How to use LiveCode Betreff: RE: Which version... Just made a standalone for a stack I'm working on... from LC 6.7 - 2.8 mb in size from LC 7.0 - 28.0 mb in size Where did all that bloat appear from !? Dixie > Date: Thu, 15 Jan 2015 02:37:28 -0800 > From: dave at applicationinsight.com > To: use-revolution at lists.runrev.com > Subject: Re: Which version... > > As far as I know (which isn't saying much): > > LC 6.6.x = maintenance of 'old generation' versions (e.g. carbon) LC > 6.7.x = 'new generation' stuff like cocoa, excluding UniCode LC 7.x.x > = all 'new generation' stuff, including Unicode > > LC 6.6 is for working on legacy stacks LC 6.7 is for those wanting > 'new generation' features but who don't want UniCode LC 7 is the > future and the base on which they are building LC 8 (and presumabely > HTML5 too) > > So - as to which version you should use - depends on what you're working on! > > If you are close to releasing an app and don't need 'new generation' > features then probably you are best with 6.6.x > > If you don't expect to release you app very soon and think that 'new > generation' bugs are both necessary in your app likely to have been > ironed out by the time you launch your app then I would say go with > 7.x.x > > Unless there is some reason why you don't want the new way LC supports > UniCode, in which case go with 6.7.x > > Dave > > > > ----- > "Some are born coders, some achieve coding, and some have coding > thrust upon them." - William Shakespeare & Hugh Senior > > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/Which-version-tp4687842 > p4687852.html Sent from the Revolution - User mailing list archive at > Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From mkoob at rogers.com Thu Jan 15 06:22:04 2015 From: mkoob at rogers.com (Martin Koob) Date: Thu, 15 Jan 2015 03:22:04 -0800 (PST) Subject: Player object In-Reply-To: References: <0AE35646-3A6E-4693-8694-F9F34985268F@tactilemedia.com> <5AA96A71-77C1-41E6-B4FD-DC08A19F657A@tactilemedia.com> Message-ID: <1421320924964-4687856.post@n4.nabble.com> If you hold the shift key and click on the step forward/step backward buttons on the right of the controller you get a scrub control that allows you to vary the player's playrate forward and backward from - 3x to 3x. Martin Koob -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Player-object-tp4687755p4687856.html Sent from the Revolution - User mailing list archive at Nabble.com. From mkoob at rogers.com Thu Jan 15 06:22:46 2015 From: mkoob at rogers.com (Martin Koob) Date: Thu, 15 Jan 2015 03:22:46 -0800 (PST) Subject: Player object In-Reply-To: <1421320924964-4687856.post@n4.nabble.com> References: <0AE35646-3A6E-4693-8694-F9F34985268F@tactilemedia.com> <5AA96A71-77C1-41E6-B4FD-DC08A19F657A@tactilemedia.com> <1421320924964-4687856.post@n4.nabble.com> Message-ID: <1421320966966-4687857.post@n4.nabble.com> Oh forgot to say don't know how this works for audio files. Martin Koob -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Player-object-tp4687755p4687857.html Sent from the Revolution - User mailing list archive at Nabble.com. From shawnlivecode at gmail.com Thu Jan 15 08:27:38 2015 From: shawnlivecode at gmail.com (Shawn Blc) Date: Thu, 15 Jan 2015 07:27:38 -0600 Subject: Storing and saving a setting in a stand alone Message-ID: Can someone point me in the right direction? I want to save a setting in stand alone application. This setting will be different for each person (name). Once it's set, the user won't be prompted to enter again. From dunbarx at aol.com Thu Jan 15 09:08:39 2015 From: dunbarx at aol.com (dunbarx at aol.com) Date: Thu, 15 Jan 2015 09:08:39 -0500 Subject: Storing and saving a setting in a stand alone In-Reply-To: References: Message-ID: <8D1FEE3E5245B8D-1AB0-BABE@webmail-vm089.sysops.aol.com> Hi. Are you talking about the fact that a single stack, which is the executable if you save it as a standalone, cannot save to itself? If so, there are several threads on the forums that address this. My favorite is the "splash stack" method. Look here: Stack data i/o question Craig Newman -----Original Message----- From: Shawn Blc To: How to use LiveCode Sent: Thu, Jan 15, 2015 8:28 am Subject: Storing and saving a setting in a stand alone Can someone point me in the right direction? I want to save a setting in stand alone application. This setting will be different for each person (name). Once it's set, the user won't be prompted to enter again. _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From rene.micout at numericable.com Thu Jan 15 09:13:04 2015 From: rene.micout at numericable.com (=?utf-8?Q?Ren=C3=A9_Micout?=) Date: Thu, 15 Jan 2015 15:13:04 +0100 Subject: Storing and saving a setting in a stand alone In-Reply-To: <8D1FEE3E5245B8D-1AB0-BABE@webmail-vm089.sysops.aol.com> References: <8D1FEE3E5245B8D-1AB0-BABE@webmail-vm089.sysops.aol.com> Message-ID: > Le 15 janv. 2015 ? 15:08, dunbarx at aol.com a ?crit : > > Hi. > > > Are you talking about the fact that a single stack, which is the executable if you save it as a standalone, cannot save to itself? If so, there are several threads on the forums that address this. My favorite is the "splash stack" method. > > > Look here: > > > > Stack data i/o question Yes, I use it? but after LC 6.6.3, that don?t works ! From dunbarx at aol.com Thu Jan 15 09:17:24 2015 From: dunbarx at aol.com (dunbarx at aol.com) Date: Thu, 15 Jan 2015 09:17:24 -0500 Subject: Storing and saving a setting in a stand alone In-Reply-To: References: <8D1FEE3E5245B8D-1AB0-BABE@webmail-vm089.sysops.aol.com> Message-ID: <8D1FEE51DFCF847-1AB0-BB53@webmail-vm089.sysops.aol.com> Rene. OOOH. You know, recently I tried to make a "splash" standalone in 6.7, the first I needed to in a while (the last was in 5.x) and it would not work. I thought it was something I was doing wrong, but was not on my front burner to figure out. Anyone else? This is big if true, but how could it have gone unnoticed? Craig -----Original Message----- From: Ren? Micout To: How to use LiveCode Sent: Thu, Jan 15, 2015 9:14 am Subject: Re: Storing and saving a setting in a stand alone > Le 15 janv. 2015 ? 15:08, dunbarx at aol.com a ?crit : > > Hi. > > > Are you talking about the fact that a single stack, which is the executable if you save it as a standalone, cannot save to itself? If so, there are several threads on the forums that address this. My favorite is the "splash stack" method. > > > Look here: > > > > Stack data i/o question Yes, I use it? but after LC 6.6.3, that don?t works ! _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From dochawk at gmail.com Thu Jan 15 09:34:09 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Thu, 15 Jan 2015 06:34:09 -0800 Subject: Which version... In-Reply-To: References: <1421308051983-4687843.post@n4.nabble.com> Message-ID: On Wed, Jan 14, 2015 at 11:56 PM, John Dixon wrote: > Yes, but my question really is.. > 'What is the reason for having all theses different versions being updated > more or less at the same time ?'... > Life was much simpler when you knew the version with the largest number > stuck on the end of it was the one to use and the rest, as they say, were > history ? > > being pedantic, but I will ask again... Which is the version to use ?... > 5.5 if you want stability; it is late-beta quality. Some report stability on 6.6, apparently. 6.7 and 7.0 are late and early alpha quality, respectively. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From ambassador at fourthworld.com Thu Jan 15 10:06:29 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 15 Jan 2015 07:06:29 -0800 Subject: Which version... In-Reply-To: References: Message-ID: <54B7D775.7030302@fourthworld.com> John Dixon wrote: > Why are there different versions of liveCode being updated.. > > LC 7.0 - updated 23 October 2014 > LC 7.0.1 - updated 18 December 2014 > > LC 6.7.0 - updated 18 December 2014 > LC 6.7.1 - updated 9 January 2015 > > Which one is considered to be the 'one' to use ? As with most software, version numbers indicate the evolution of the code base over time, with higher numbers reflecting a more recent build. Just as OS X 10.1 has been superseded by OS X 10.10, older versions of LiveCode are generally just that, lacking in fixes and/or features found in more recent versions. When a trinomial version number is used, the most common pattern employs this set of unique communicative roles for each element: . . So the differences between 6.0.0 and 7.0.0 can be understood to be very significant, between 6.6.0 and 6.7.0 less so, and the differences between 7.0.0 and 7.0.1 can be expected to be comprised primarily of just bug fixes. There may be occasions when a point-point release may also include new features, but those are very rare. The 'one' so use is version 8, which will include all features implemented to date plus the Open Language/Widgets framework needed to complete the rest of the items remaining on the current Road Map. But version 8 does not yet exist. It's coming soon, but in the meantime we're in a transitional state between the old world of relatively minor changes in the engine and, as Tiemo calls it, the "brave new world" of an xTalk far more capable than anything before it. V6.7's focus was Cocoa for Mac, a very major overhaul to object handling and messaging that has on the whole gone surprisingly well. V7.0's focus is Unicode for all platforms and GTK integration for Linux. V7 includes all changes done in v6.7, making it the most feature-complete version available at this time. V7 is also the first version to deliver a 64-bit compatible Linux engine, making it essential on many Linux desktops and most Linux servers. When you see X.X.0 and X.X.1 versions, it's generally good to upgrade to the latter. Being a point-point release there are few if any new features meaning less likelihood of regression errors, but more useful is that its purpose is to deliver fixes for issues found in the X.X.0 build that weren't found during test of that version prior to release. As a general rule, you can expect the version with the highest version number listed as "Stable" here to be the most feature-complete: All that said, V7 is measurably slower than earlier versions for many operations, understandable given the scope of Unicode and how that affects so many elements throughout the language. This speed difference is often negligible on the desktop, but coupled with a suboptimal boot sequence makes it not merely measurably slower on servers, but noticeably so. Since v7 is necessary for modern 64-bit servers and performance in general is recognized as a valuable feature for all platforms, the team is exploring options for optimizing v7 to bring its performance more in line with that of v6.7. I don't think any of us expected we'd have both feature completion and optimization in the same build, so the necessity of this optimization phase is appreciated even if it requires some patience. Given the tradeoffs between the two version currently maintained, v6.7.x and v7.0.x, those whose work is critically dependent on performance often use v6.7.x, while those who need Unicode use v.7.0.x. -- Richard Gaskin LiveCode Community Manager richard at livecode.com From ambassador at fourthworld.com Thu Jan 15 10:13:26 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 15 Jan 2015 07:13:26 -0800 Subject: Storing and saving a setting in a stand alone In-Reply-To: References: Message-ID: <54B7D916.1060302@fourthworld.com> Shawn Blc wrote: > Can someone point me in the right direction? > I want to save a setting in stand alone application. This setting will be > different for each person (name). > > Once it's set, the user won't be prompted to enter again. OSes don't allow applications to modify themselves. Back in the olden days Mac Classic did, but that was due to a bifurcated file system long since recognized as needing replacement, so Apple discourages use of the resource fork in modern apps. And without a resource fork, runtime modification of an executable isn't possible. Most other OSes have had this convention in place since their beginnings. Data can be stored outside of the executable in a nearly infinite range of formats, including SQLite, text files, XML, JSON, encoded arrays, or even stack files using custom properties. When storing user data, it's helpful to put it into the user-writable folders recommended by the OS vendor - see the specialFolderPath function for details on that. Sarah Reichelt's article describes this in more detail, and includes tips for working with externally-stored data: -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From rene.micout at numericable.com Thu Jan 15 10:23:00 2015 From: rene.micout at numericable.com (=?utf-8?Q?Ren=C3=A9_Micout?=) Date: Thu, 15 Jan 2015 16:23:00 +0100 Subject: Storing and saving a setting in a stand alone In-Reply-To: <8D1FEE51DFCF847-1AB0-BB53@webmail-vm089.sysops.aol.com> References: <8D1FEE3E5245B8D-1AB0-BABE@webmail-vm089.sysops.aol.com> <8D1FEE51DFCF847-1AB0-BB53@webmail-vm089.sysops.aol.com> Message-ID: <63392D32-AE5B-4E05-9184-A4E99F248E6A@numericable.com> > Le 15 janv. 2015 ? 15:17, dunbarx at aol.com a ?crit : > > Rene. > > > OOOH. > > > You know, recently I tried to make a "splash" standalone in 6.7, the first I needed to in a while (the last was in 5.x) and it would not work. I thought it was something I was doing wrong, but was not on my front burner to figure out. > > > Anyone else? This is big if true, but how could it have gone unnoticed? Hello Craig, See bug report 14295 ! Ren? From ambassador at fourthworld.com Thu Jan 15 11:05:45 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 15 Jan 2015 08:05:45 -0800 Subject: Storing and saving a setting in a stand alone In-Reply-To: <63392D32-AE5B-4E05-9184-A4E99F248E6A@numericable.com> References: <63392D32-AE5B-4E05-9184-A4E99F248E6A@numericable.com> Message-ID: <54B7E559.4050109@fourthworld.com> Ren? Micout wrote: >> Le 15 janv. 2015 ? 15:17, dunbarx at aol.com a ?crit : >> >> You know, recently I tried to make a "splash" standalone in 6.7, >> the first I needed to in a while (the last was in 5.x) and it >> would not work. I thought it was something I was doing wrong, >> but was not on my front burner to figure out. >> >> >> Anyone else? This is big if true, but how could it have gone >> unnoticed? > > Hello Craig, > See bug report 14295 ! This is apparently related to a relatively recent change by Apple to security handling in OS X. From the Release Notes included in all 6.7.x builds from 6.7.0rc2 on: Non-executable file redirection on Mac (6.7.0-rc-2) Mac AppStore rules require that only executables (including bundles and apps) are present within the Contents/MacOS folder in the application bundle. However, historically (for cross-platform purposes), LiveCode applications traditional place resources relative to the engine executable, resulting in non-executable files to be present in the Contents/MacOS folder which violates AppStore signing policy. To remedy this situation without requiring users to change scripts, a simple redirection facility has been implemented in the engine: If an attempt is made to open a file for read which falls within Contents/MacOS and does not exist, the engine will attempt to open the same path but under Contents/Resources /_MacOS instead. If an attempt is made to list files in a folder which falls within Contents/MacOS, the engine will list files in that folder and concatenate them will files within the same folder under Contents/Resources/_MacOS. Additionally the standalone builder has had an extra processing step added on Mac: After the Mac bundle has been built, the S/B recurses through Contents/MacOS and creates an identical folder structure based at Contents/Resources/_MacOS. All non-executable files in any folders under Contents/MacOS are moved to the same folder under Contents/Resources/_MacOS whereas any Mach-O executable files are left where they are. The result of this is that after building a standalone, from a script's point of view nothing has changed; but the app bundle will conform to the rules required for signing for the Mac AppStore. While the absence of reports related to general file access in the bundle would seem to suggest this change was implemented well in the engine, Ren?'s report shows this workaround for Apple's new security policy needs to be added to the SQLite external as well. Hanson's confirmation there suggests they're working on it now, and given how widely SQLite is used I'd be surprised if the fix isn't in the next build. There is one remaining issue however: Ren?'s last comment in the report suggests an expectation that files within the bundle will also be writable, but write access to anything within the Applications folder is generally disallowed on most systems, including OS x. Does OS X now allow user-data to be written within an app bundle? It would seem simpler to store user data in one of the user-writable folders within the user's Home folder, perhaps Application Support or another relevant path obtainable with the specialFolderPath function. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From pete at lcsql.com Thu Jan 15 12:43:16 2015 From: pete at lcsql.com (Peter Haworth) Date: Thu, 15 Jan 2015 09:43:16 -0800 Subject: Storing and saving a setting in a stand alone In-Reply-To: <54B7E559.4050109@fourthworld.com> References: <63392D32-AE5B-4E05-9184-A4E99F248E6A@numericable.com> <54B7E559.4050109@fourthworld.com> Message-ID: On Thu, Jan 15, 2015 at 8:05 AM, Richard Gaskin wrote: > Hanson's confirmation there suggests they're working on it now, and given > how widely SQLite is used I'd be surprised if the fix isn't in the next > build. Hopefully they will take the opportunity to get the SQLite library up to date. Current version is 3.8.7.4 released 12/9/2014. LC includes version 3.8.3.1 released 2/11/2014, 10 months and 11 releases old. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From richmondmathewson at gmail.com Thu Jan 15 12:49:54 2015 From: richmondmathewson at gmail.com (Richmond) Date: Thu, 15 Jan 2015 19:49:54 +0200 Subject: Which version... In-Reply-To: References: <1421308051983-4687843.post@n4.nabble.com> Message-ID: <54B7FDC2.4070208@gmail.com> On 15/01/15 16:34, Dr. Hawkins wrote: > On Wed, Jan 14, 2015 at 11:56 PM, John Dixon wrote: > >> Yes, but my question really is.. >> 'What is the reason for having all theses different versions being updated >> more or less at the same time ?'... >> Life was much simpler when you knew the version with the largest number >> stuck on the end of it was the one to use and the rest, as they say, were >> history ? >> >> being pedantic, but I will ask again... Which is the version to use ?... >> > 5.5 if you want stability; it is late-beta quality. > > Some report stability on 6.6, apparently. > > 6.7 and 7.0 are late and early alpha quality, respectively. > > I wonder how you work that out. Is that using any standardised criteria, or is that just your opinion? Richmond. From pete at lcsql.com Thu Jan 15 12:49:52 2015 From: pete at lcsql.com (Peter Haworth) Date: Thu, 15 Jan 2015 09:49:52 -0800 Subject: Player object In-Reply-To: <1421320966966-4687857.post@n4.nabble.com> References: <0AE35646-3A6E-4693-8694-F9F34985268F@tactilemedia.com> <5AA96A71-77C1-41E6-B4FD-DC08A19F657A@tactilemedia.com> <1421320924964-4687856.post@n4.nabble.com> <1421320966966-4687857.post@n4.nabble.com> Message-ID: Hi Martin, Thanks for the tip. Unfortunately it doesn't seem to work for audio files, at least with LC 6.6.2 and OSX 10.7.4. That would be a nice feature though. Looks like it could be accommodated by varying the playrate property. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Thu, Jan 15, 2015 at 3:22 AM, Martin Koob wrote: > Oh forgot to say don't know how this works for audio files. > > Martin Koob > > > > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/Player-object-tp4687755p4687857.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dochawk at gmail.com Thu Jan 15 13:31:12 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Thu, 15 Jan 2015 10:31:12 -0800 Subject: Which version... In-Reply-To: <54B7FDC2.4070208@gmail.com> References: <1421308051983-4687843.post@n4.nabble.com> <54B7FDC2.4070208@gmail.com> Message-ID: On Thu, Jan 15, 2015 at 9:49 AM, Richmond wrote: > On 15/01/15 16:34, Dr. Hawkins wrote: > >> On Wed, Jan 14, 2015 at 11:56 PM, John Dixon >> wrote:5.5 if you want stability; it is late-beta quality. >> >> Some report stability on 6.6, apparently. >> >> 6.7 and 7.0 are late and early alpha quality, respectively. >> >> > I wonder how you work that out. > > Is that using any standardised criteria, or is that just your > opinion? > Pretty much standardized. (although 5.5 should have been labeled "release candidate" or "silver master"). Alpha releases execute and function, but are expected to crash/explode/whatever. They are possibly feature complete, but the jury would still be out. Betas should generally function and be usable, but are still looking for bugs. The big ones are supposedly gone. Features are set for release (barring something catastrophic), andwon't be added or subtracted. An RC believes that all bugs are taken care of, and is only making sure of this. Features are locked, and the release number will actually change if features are changed. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From richmondmathewson at gmail.com Thu Jan 15 13:39:55 2015 From: richmondmathewson at gmail.com (Richmond) Date: Thu, 15 Jan 2015 20:39:55 +0200 Subject: Which version... In-Reply-To: References: <1421308051983-4687843.post@n4.nabble.com> <54B7FDC2.4070208@gmail.com> Message-ID: <54B8097B.3070200@gmail.com> On 15/01/15 20:31, Dr. Hawkins wrote: > On Thu, Jan 15, 2015 at 9:49 AM, Richmond > wrote: > >> On 15/01/15 16:34, Dr. Hawkins wrote: >> >>> On Wed, Jan 14, 2015 at 11:56 PM, John Dixon >>> wrote:5.5 if you want stability; it is late-beta quality. >>> >>> Some report stability on 6.6, apparently. >>> >>> 6.7 and 7.0 are late and early alpha quality, respectively. >>> >>> >> I wonder how you work that out. >> >> Is that using any standardised criteria, or is that just your >> opinion? >> > Pretty much standardized. (although 5.5 should have been labeled "release > candidate" or "silver master"). > > Alpha releases execute and function, but are expected to > crash/explode/whatever. They are possibly feature complete, but the jury > would still be out. > > Betas should generally function and be usable, but are still looking for > bugs. The big ones are supposedly gone. Features are set for release > (barring something catastrophic), andwon't be added or subtracted. > > An RC believes that all bugs are taken care of, and is only making sure of > this. Features are locked, and the release number will actually change if > features are changed. > Why do I have a funny feeling that RunRev probably know that? Although, having said that, they did "confess" that they test their Linux versions on a horribly outdated version of Ubuntu. Richmond. From jacque at hyperactivesw.com Thu Jan 15 14:37:26 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 15 Jan 2015 13:37:26 -0600 Subject: Storing and saving a setting in a stand alone In-Reply-To: <54B7E559.4050109@fourthworld.com> References: <63392D32-AE5B-4E05-9184-A4E99F248E6A@numericable.com> <54B7E559.4050109@fourthworld.com> Message-ID: <54B816F6.8040608@hyperactivesw.com> On 1/15/2015 10:05 AM, Richard Gaskin wrote: > While the absence of reports related to general file access in the > bundle would seem to suggest this change was implemented well in the > engine, Ren?'s report shows this workaround for Apple's new security > policy needs to be added to the SQLite external as well. It's more general than that, see my bug report comment. The problem occurs not only in Yosemite but also in Mavericks, and applies to any file that is moved to the new location, not just databases. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From ambassador at fourthworld.com Thu Jan 15 14:51:53 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 15 Jan 2015 11:51:53 -0800 Subject: Which version... In-Reply-To: <54B8097B.3070200@gmail.com> References: <54B8097B.3070200@gmail.com> Message-ID: <54B81A59.1090304@fourthworld.com> Richmond wrote: >> On 15/01/15 16:34, Dr. Hawkins wrote: >> >> Pretty much standardized. ... >> An RC believes that all bugs are taken care of, and is only making >> sure of this. > > Why do I have a funny feeling that RunRev probably know that? Because they're described in similar terms at the top of RunRev's Downloads page: It's helpful to clarify that "all bugs taken care of" is both close to impossible and almost never happens with any software in the history of the industry. Instead, what's aimed for as a software gets close to release is that all *critical* bugs are addressed, and of course the only ones that can be addressed are those that are *known* at the time. With most projects, from Apple's OS X to Adobe's Photoshop to RunRev's LiveCode, minor issues may get put off for another version beyond the one being tested. Many here note that they only begin testing after release, and then report bugs no one else has seen. With complex systems in which the interaction of commands creates a combinatorial explosion of possible states, it's practically impossible to identify all possible issues prior to release. Awareness of this basic driver of all software engineering of similar scope can be helpful in encouraging us to test new builds with our scripts to ensure a new version will do what we uniquely require of it. It would be nice if all software shipped completely bug-free, but I've never seen such a thing. As a practical matter project teams tend to prioritize issues and address the most critical first. > Although, having said that, they did "confess" that they test their > Linux versions on a horribly outdated version of Ubuntu. Where did they write that? Throughout the forums and the bugs reports I've been following I've seen fairly regular references to Ubuntu 14.04 LTS, the most recent Long-Term Support release the project has. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From ambassador at fourthworld.com Thu Jan 15 14:57:14 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 15 Jan 2015 11:57:14 -0800 Subject: Storing and saving a setting in a stand alone In-Reply-To: <54B816F6.8040608@hyperactivesw.com> References: <54B816F6.8040608@hyperactivesw.com> Message-ID: <54B81B9A.6080308@fourthworld.com> J. Landman Gay wrote: > On 1/15/2015 10:05 AM, Richard Gaskin wrote: >> While the absence of reports related to general file access in the >> bundle would seem to suggest this change was implemented well in the >> engine, Ren?'s report shows this workaround for Apple's new security >> policy needs to be added to the SQLite external as well. > > It's more general than that, see my bug report comment. The problem > occurs not only in Yosemite but also in Mavericks, and applies to any > file that is moved to the new location, not just databases. Thanks for adding your note to the report. With the original submission focused on SQLite and subsequent notes involving writing to the app bundle, your note will help clarify what's going on. Why do you suppose this has survived so long with no one discovering it until now? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From richmondmathewson at gmail.com Thu Jan 15 15:23:22 2015 From: richmondmathewson at gmail.com (Richmond) Date: Thu, 15 Jan 2015 22:23:22 +0200 Subject: Which version... In-Reply-To: <54B81A59.1090304@fourthworld.com> References: <54B8097B.3070200@gmail.com> <54B81A59.1090304@fourthworld.com> Message-ID: <54B821BA.3050305@gmail.com> On 15/01/15 21:51, Richard Gaskin wrote: > Richmond wrote: > > >> On 15/01/15 16:34, Dr. Hawkins wrote: > >> > >> Pretty much standardized. > ... > >> An RC believes that all bugs are taken care of, and is only making > >> sure of this. > > > > Why do I have a funny feeling that RunRev probably know that? > > Because they're described in similar terms at the top of RunRev's > Downloads page: > > > It's helpful to clarify that "all bugs taken care of" is both close to > impossible and almost never happens with any software in the history > of the industry. > > Instead, what's aimed for as a software gets close to release is that > all *critical* bugs are addressed, and of course the only ones that > can be addressed are those that are *known* at the time. > > With most projects, from Apple's OS X to Adobe's Photoshop to RunRev's > LiveCode, minor issues may get put off for another version beyond the > one being tested. > > Many here note that they only begin testing after release, and then > report bugs no one else has seen. With complex systems in which the > interaction of commands creates a combinatorial explosion of possible > states, it's practically impossible to identify all possible issues > prior to release. Awareness of this basic driver of all software > engineering of similar scope can be helpful in encouraging us to test > new builds with our scripts to ensure a new version will do what we > uniquely require of it. > > It would be nice if all software shipped completely bug-free, but I've > never seen such a thing. As a practical matter project teams tend to > prioritize issues and address the most critical first. > > > > Although, having said that, they did "confess" that they test their > > Linux versions on a horribly outdated version of Ubuntu. > > Where did they write that? Throughout the forums and the bugs reports > I've been following I've seen fairly regular references to Ubuntu > 14.04 LTS, the most recent Long-Term Support release the project has. > That's good to know :) Last I heard they were using a 2008 version. Would be grateful if you check back with the Mothership. Richmond. From jacque at hyperactivesw.com Thu Jan 15 15:54:23 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 15 Jan 2015 14:54:23 -0600 Subject: Storing and saving a setting in a stand alone In-Reply-To: <54B81B9A.6080308@fourthworld.com> References: <54B816F6.8040608@hyperactivesw.com> <54B81B9A.6080308@fourthworld.com> Message-ID: <54B828FF.3070404@hyperactivesw.com> On 1/15/2015 1:57 PM, Richard Gaskin wrote: > J. Landman Gay wrote: > > > On 1/15/2015 10:05 AM, Richard Gaskin wrote: > >> While the absence of reports related to general file access in the > >> bundle would seem to suggest this change was implemented well in the > >> engine, Ren?'s report shows this workaround for Apple's new security > >> policy needs to be added to the SQLite external as well. > > > > It's more general than that, see my bug report comment. The problem > > occurs not only in Yosemite but also in Mavericks, and applies to any > > file that is moved to the new location, not just databases. > > Thanks for adding your note to the report. With the original submission > focused on SQLite and subsequent notes involving writing to the app > bundle, your note will help clarify what's going on. > > Why do you suppose this has survived so long with no one discovering it > until now? > I don't know. In my case I didn't need to build a new standalone until yesterday, coupled with the fact that my main project is still done in LC 6.5.x for other reasons. I've only recently started using 6.7, and only for a few newer projects. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Thu Jan 15 15:56:05 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 15 Jan 2015 14:56:05 -0600 Subject: Storing and saving a setting in a stand alone In-Reply-To: <54B828FF.3070404@hyperactivesw.com> References: <54B816F6.8040608@hyperactivesw.com> <54B81B9A.6080308@fourthworld.com> <54B828FF.3070404@hyperactivesw.com> Message-ID: <54B82965.9020609@hyperactivesw.com> On 1/15/2015 2:54 PM, J. Landman Gay wrote: > my main project is still done in LC 6.5.x Oops, that should be 6.6.5. I'm not THAT far behind. ;) -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From ambassador at fourthworld.com Thu Jan 15 16:04:45 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 15 Jan 2015 13:04:45 -0800 Subject: Which version... In-Reply-To: <54B821BA.3050305@gmail.com> References: <54B821BA.3050305@gmail.com> Message-ID: <54B82B6D.5010406@fourthworld.com> Richmond wrote: > On 15/01/15 21:51, Richard Gaskin wrote: >> Throughout the forums and the bugs reports I've been following >> I've seen fairly regular references to Ubuntu 14.04 LTS, the >> most recent Long-Term Support release the project has. > > That's good to know :) > > Last I heard they were using a 2008 version. Would be grateful if you > check back with the Mothership. As I noted, I've already seen many comments from many RunRev staff noting that they're using a wide range of Linux installs, most commonly right now Ubuntu 14.04 - here are a few reports in which their staff notes using very recent versions: Given the great many OSes they have installed on both metal and in VMs, I wouldn't be surprised if one from 2008 is among them. Heck, I keep an XP VM here for the few clients who like to live that dangerously. But if you search the bug DB or read the forums regularly you'll see that when RR staff mention a specific Linux version it's usually very current. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From MikeKerner at roadrunner.com Thu Jan 15 18:16:56 2015 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 15 Jan 2015 18:16:56 -0500 Subject: URL affected by default browser? Message-ID: Is the URL keyword affected by the default browser? It seems that if I do a put url, the result is directly dependent upon the default browser selected by the user. So, for instance, on Windows, with IE as the default, if the URL pointed to an invalid page, I would get an empty result, but if I switched the default browser to Chrome, I would get a bracketed error message. -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From bobsneidar at iotecdigital.com Thu Jan 15 18:18:00 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 15 Jan 2015 23:18:00 +0000 Subject: Free IP Calculator In-Reply-To: References: <72594843-7460-425D-932B-E552326432C7@iotecdigital.com> <54B04675.4080705@tweedly.net> <0AA66EF7-FC4A-4795-9FCD-219FCF4D5232@iotecdigital.com> Message-ID: OK I took some time today to really go through this IPCalc function. Note to self: Don?t try to write publicly distributable code quickly. That being said, I?ve been asked to include this function in the library of commands and functions everyone?s been talking about. So I am going to post the code here, and anyone wanting a shot at breaking it (as if you could) give it a go. NOTE: There is no error checking as of yet so you *could* break it by passing an invalid value like 256.256.256.0 for a subnet address. Meanwhile I am going to write some pretty thorough error checking before I submit it for public consumption, so that there are no values you can pass to it that would break it or otherwise return bad values. function IPCalc theIPAddress, theSubnetMask -- pass either CIDR notation in theIPAddress or else a standard IP and subnet mask -- returns an array of the following values: -- bcastaddr -- cidraddr -- cidrdepth -- firstaddr -- ipaddress -- lastaddr -- subnetaddr -- subnetmask -- usablecountset the itemdelimiter to "." set the itemdelimiter to "." -- initial setup set the numberFormat to "00000000" -- detemine format if theIPAddress contains "/" then put offset("/", theIPAddress) into theCIDRDelim put char theCIDRDelim +1 to -1 of theIPAddress into theCIDRDepth put charx("1", theCIDRDepth) & charx("0", 32-theCIDRDepth) into theBinSubnetMask put baseconvert(char 1 to 8 of theBinSubnetMask, 2, 10) into item 1 of theSubnetMask put baseconvert(char 9 to 16 of theBinSubnetMask, 2, 10) into item 2 of theSubnetMask put baseconvert(char 17 to 24 of theBinSubnetMask, 2, 10) into item 3 of theSubnetMask put baseconvert(char 25 to 32 of theBinSubnetMask, 2, 10) into item 4 of theSubnetMask put char 1 to theCIDRDelim -1 of theIPAddress into theIPAddress else -- convert the subnet mask to binary put 0 into whichOctet repeat for each item theOctet in theSubnetMask add 1 to whichOctet put value(baseConvert(theOctet, 10, 2)) after theBinSubnetMask end repeat put offset("0", theBinSubnetMask) -1 into theCIDRDepth end if -- convert the ip address to binary put 0 into whichOctet repeat for each item theOctet in theIPAddress add 1 to whichOctet put baseConvert(theOctet, 10, 2) into theBinValue add 0 to theBinValue put theBinValue after theBinIPAddress end repeat -- calculate the binary subnet address put char 1 to theCIDRDepth of theBinIPAddress into theBinNetworkAddr put char theCIDRDepth +1 to -1 of theBinIPAddress into theBinNodeAddr put theBinNodeAddr into theBinSubnetNodeAddr set the numberFormat to "0" replace "1" with "0" in theBinSubnetNodeAddr put theBinNetworkAddr & theBinSubnetNodeAddr into theBinSubnetAddr -- convert the binary subnet address to decimal put baseconvert(char 1 to 8 of theBinSubnetAddr, 2, 10) into item 1 of theSubnetAddr put baseconvert(char 9 to 16 of theBinSubnetAddr, 2, 10) into item 2 of theSubnetAddr put baseconvert(char 17 to 24 of theBinSubnetAddr, 2, 10) into item 3 of theSubnetAddr put baseconvert(char 25 to 32 of theBinSubnetAddr, 2, 10) into item 4 of theSubnetAddr -- calculate the first usable IP address put theSubnetAddr into theFirstAddr add 1 to item 4 of theFirstAddr -- calculate the binary broadcast address put theBinNodeAddr into theBinBcastNodeAddr replace "0" with "1" in theBinBcastNodeAddr put theBinNetworkAddr & theBinBcastNodeAddr into theBinBcastAddr -- convert the binary broadcast address to decimal put baseconvert(char 1 to 8 of theBinBcastAddr, 2, 10) into item 1 of theBcastAddr put baseconvert(char 9 to 16 of theBinBcastAddr, 2, 10) into item 2 of theBcastAddr put baseconvert(char 17 to 24 of theBinBcastAddr, 2, 10) into item 3 of theBcastAddr put baseconvert(char 25 to 32 of theBinBcastAddr, 2, 10) into item 4 of theBcastAddr -- calculate the last usable IP address put theBcastAddr into theLastAddr subtract 1 from item 4 of theLastAddr -- calculate the number of usable addresses -- put item 4 of theLastAddr - item 4 of theFirstAddr +1 into theAddrCount put baseconvert(theBinBcastNodeAddr, 2, 10) -1 into theAddrCount -- calculate the CIDR notation put theSubnetAddr & "/" & theCIDRDepth into theCIDRAddr -- create array put theIPAddress into ipdata ["ipaddress"] put theSubnetMask into ipdata ["subnetmask"] put theSubnetAddr into ipdata ["subnetaddr"] put theFirstAddr into ipdata ["firstaddr"] put theBcastAddr into ipdata["bcastaddr"] put theLastAddr into ipdata ["lastaddr"] put theCIDRDepth into ipdata ["cidrdepth"] put theAddrCount into ipdata ["usablecount"] put theCIDRAddr into ipdata ["cidraddr"] return ipdata end IPCalc From bobsneidar at iotecdigital.com Thu Jan 15 19:17:50 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 16 Jan 2015 00:17:50 +0000 Subject: Free IP Calculator In-Reply-To: References: <72594843-7460-425D-932B-E552326432C7@iotecdigital.com> <54B04675.4080705@tweedly.net> <0AA66EF7-FC4A-4795-9FCD-219FCF4D5232@iotecdigital.com> Message-ID: <833FD292-A8C7-45A1-9EB9-D788305FBB46@iotecdigital.com> Change this line to: ? usablecount set the itemdelimiter to ?.? won?t work without it. Another note to self: Don?t try to modify code posted in an email. Bob S On Jan 15, 2015, at 15:18 , Bob Sneidar > wrote: -- usablecountset the itemdelimiter to "." From lan.kc.macmail at gmail.com Thu Jan 15 19:21:42 2015 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Fri, 16 Jan 2015 08:21:42 +0800 Subject: Storing and saving a setting in a stand alone In-Reply-To: <54B81B9A.6080308@fourthworld.com> References: <54B816F6.8040608@hyperactivesw.com> <54B81B9A.6080308@fourthworld.com> Message-ID: On Fri, Jan 16, 2015 at 3:57 AM, Richard Gaskin wrote: > > Why do you suppose this has survived so long with no one discovering it > until now? > Whilst I may be a Mac fanboy, I'm definitely anti-iOSing of OS X. That said, one of the few side effects may be the herding of LCers to store User data in the correct place. For me, a splash stack was simple. It was popular, there were several online* and many LIst archive posts on how to achieve it. That's what I did. With iOS that was not approved so you had to look else where. So the beauty of LC is supposedly you can use one set of code for OS X and iOS so it seemed silly to me to use one approach to store data on OS X and a completely different one for iOS. So I looked at specialFolderPath() and it's all clearly spelled out there where you should store User data. That was a long time ago. Having gone down that route I now find that I HAVEN'T been bitten by the change in OS X signing policy. Having said that, the solution is still not one code for all platforms. It's specialFolderPath("library") for iOS, specialFolderPath("Preferences") or specialFolderPath("Support") for OS X, specialFolderPath("Support") Win and not really sure for Linux... specialFolderPath("Desktop")?. At least it's nice that for non-Preference type data, for documents that your User makes with your app, can all be sent to specialFolderPath("documents"), except Linux. Just had a thought, wouldn't it be nice if there was a specialFolderPath(" PrefData") which the engine naturally translated to "library" for iOS, "support" for OS X & Win, "documents" for android, and whatever for Linux. This should mean one code for all platforms for most basic apps and if anything more complex was needed then you're back to where we are now; writing different code for each platform. * It would probably be wise for RunRev to remove any mention of the Splash Stack method on their how-to site as it is clearly not an approach that should be used any more. From scott at tactilemedia.com Thu Jan 15 19:32:23 2015 From: scott at tactilemedia.com (Scott Rossi) Date: Thu, 15 Jan 2015 16:32:23 -0800 Subject: Storing and saving a setting in a stand alone In-Reply-To: References: <54B816F6.8040608@hyperactivesw.com> <54B81B9A.6080308@fourthworld.com> Message-ID: <9371A239-0BA7-467C-B1DD-4868BC39A21A@tactilemedia.com> RunRev may need to edit the description of the method but why remove it? What is preventing developers from placing their primary stacks in the Documents folder or any other writable folder? AFAICT, using the splash stack technique is still valid, but you may not be able to save the stack in as many locations as was previously possible. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On Jan 15, 2015, at 4:21 PM, Kay C Lan wrote: > * It would probably be wise for RunRev to remove any mention of the Splash > Stack method on their how-to site as it is clearly not an approach that > should be used any more. From ambassador at fourthworld.com Thu Jan 15 19:40:30 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 15 Jan 2015 16:40:30 -0800 Subject: Storing and saving a setting in a stand alone In-Reply-To: References: Message-ID: <54B85DFE.1000102@fourthworld.com> Kay C Lan wrote: > * It would probably be wise for RunRev to remove any mention of the Splash > Stack method on their how-to site as it is clearly not an approach that > should be used any more. On the contrary, as the rest of your post points out, it's increasingly useful as OS file system permissions get ever more restrictive. The only question is where to put the stack. I could dig up my user data path handlers and post 'em, but I'd figured everyone already had their own. But even with that there's the larger question of whether we really want to be saving data bound to the UI. The anchor stack (as we called it back in the early '90s in the SuperCard world) design pattern is any standalone that contains only enough code to find some other stack that contains most of the UI. Even when the UI is stored external to the app (a majority of the projects I'm working on now store the UI stacks on a server), the question of whether to bind data to the UI or store it in a separate file remains. There are many reasons to separate data from UI, not the least of which is the freedom to update your app's UI without encumbering the user with a complicated export/import. In our local user group we discussed how we might craft a library to make it easy for folks accustomed to storing data in UI stacks to externalize that data. But not far into it we realized we all store data differently. Sometimes it's a delimited text file, sometimes it's in custom props in a stack file, sometimes it's in a database, other times in encoded array files. Each method requires different handling methods, though we could conceivably craft a library to help populate a UI and manage data binding a la MVC, with each data store as a sort of plugin to handle the storage-specific mechanics in this framework. And not far into that we realized no one wanted to even document such a system, let alone write it. :) It's very easy to craft ad hoc solutions for data, and orders of magnitude harder to craft a generalized solution for all possible apps. But looking at the small corners of this, if a couple handlers for knowing the path to store files on OS X, Win and Linux would be helpful I can dig mine up. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From rjb at robelko.com Thu Jan 15 19:41:52 2015 From: rjb at robelko.com (Robert Brenstein) Date: Fri, 16 Jan 2015 01:41:52 +0100 Subject: How to solve "can't find stack" error In-Reply-To: <1421283680740-4687828.post@n4.nabble.com> References: <1421283680740-4687828.post@n4.nabble.com> Message-ID: On 14.01.2015 at 17:01 Uhr -0800 tbodine apparently wrote: >Hi all. > >Looking for some insight here... I have a desktop program built in LC 6.5.1 >that uses LC stacks as user files for storing user data in fields and >cprops. Mostly this works well. However, I get occasional Error Reports when >a few users have tried to reopen a file they created. Error type is "Chunk: >can't find stack". I know the file exists because the user just picked it >with the answer file command. > >The error occurs at a line where I first read a cprop from the stack. And >the line just prior to that loads the stack with "go invisible to card 1 of >stack tFullFilePath" Have you tried adding a check after the go command to see whether it is successful? Some versions of LC had issues with some chars in the path, for example. Does your file selector allows to pick only LC stacks? RObert From shawnlivecode at gmail.com Thu Jan 15 20:08:41 2015 From: shawnlivecode at gmail.com (Shawn Blc) Date: Thu, 15 Jan 2015 19:08:41 -0600 Subject: Getting the URL out of How would I go about getting a random URL out of an XML file like the following? There's several of these CDATA tags. My brain is about to explode. From skiplondon at gmail.com Thu Jan 15 20:16:09 2015 From: skiplondon at gmail.com (Skip Kimpel) Date: Thu, 15 Jan 2015 19:16:09 -0600 Subject: Free IP Calculator In-Reply-To: <833FD292-A8C7-45A1-9EB9-D788305FBB46@iotecdigital.com> References: <72594843-7460-425D-932B-E552326432C7@iotecdigital.com> <54B04675.4080705@tweedly.net> <0AA66EF7-FC4A-4795-9FCD-219FCF4D5232@iotecdigital.com> <833FD292-A8C7-45A1-9EB9-D788305FBB46@iotecdigital.com> Message-ID: That's a lot of notes to yourself :) Thanks for sharing! SKIP > On Jan 15, 2015, at 6:17 PM, Bob Sneidar wrote: > > Change this line to: > > ? usablecount > set the itemdelimiter to ?.? > > won?t work without it. Another note to self: Don?t try to modify code posted in an email. > > Bob S > > > > On Jan 15, 2015, at 15:18 , Bob Sneidar > wrote: > > -- usablecountset the itemdelimiter to "." > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From brahma at hindu.org Thu Jan 15 22:02:47 2015 From: brahma at hindu.org (Brahmanathaswami) Date: Thu, 15 Jan 2015 17:02:47 -1000 Subject: Script to Generate Concurrent Times In-Reply-To: References: <54B5FCEE.4020102@hindu.org> <6BF8872A-961E-4C94-9BCC-2ED02B0C3230@byu.edu> <54B722AB.7010206@hindu.org> <22-2051727564.20150114183038@ahsoftware.net> <54B72C5B.8020400@hindu.org> Message-ID: <54B87F57.6040605@hindu.org> Roger Eller wrote: > So that's where the old saying, "your singing would bring a jersey cow to > tears" comes from. LOL! Hmmm back on topic: Requirement: Generate current time list for a *future* time (for scheduled webinar) OK, so it is easy enough to get world time from the linux system. and FYI: LC "internet date" is, happily, using the standard RFC 2822 format and we can invoke this also in the shell: -R, --rfc-2822 output date and time in RFC 2822 format. Example: Mon, 07 Aug 2006 12:34:56 -0600 Check it out now http://dev.himalayanacademy.com/tests/dates.lc ----------- ?lc # copied the list from html source at: # http://www.timezoneconverter.com/cgi-bin/tzc.tzc put url "file:/home/devhap/public_html/tests/zones.txt" into tZones repeat for each line x in tZones set the itemdel to "/" if (the number of items of x) = 1 then put x into tCity else put item 2 of x into tCity end if put x into $TZ put shell("date -R") into tDTstring put tCity& ": "& tDTstring& "
" after tWorldTimes end repeat put tWorldTimes ----------------- but that doesn't actually meet my requirement. Sure: We get all the times to answer "what time is it now?" But what if I want to a future time e.g. February 1, 1:30PM HST and get a list of all dates/times across the globe that are concurrent with that future date/time? Maybe I'll ask that on Expert's Exchange... man timezone isn't getting me anything. I suppose one algorithm using LC native timedate conversion tools could be. (the future date in seconds) - (Current time in seconds local time) = advanceToFutureIncrement repeat for each concurrent time for now for all cities put (city[x] Time Right Now) + advanceToFutureIncrement into tFutureWebinarTimeInCity[x] put tFutureWebinarTimeInCity[x] & "
" after tListOfNextWebinarTimes end repeat of course the above needs a bit more code, but not much more... Brahmanathaswami From lan.kc.macmail at gmail.com Thu Jan 15 22:31:04 2015 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Fri, 16 Jan 2015 11:31:04 +0800 Subject: Storing and saving a setting in a stand alone In-Reply-To: <54B85DFE.1000102@fourthworld.com> References: <54B85DFE.1000102@fourthworld.com> Message-ID: On Fri, Jan 16, 2015 at 8:40 AM, Richard Gaskin wrote: On the contrary, as the rest of your post points out, it's increasingly > useful as OS file system permissions get ever more restrictive. > Yes Scott,you are right it's still a valid method, but it's not a method that works for all platforms and for a product who's key feature is that it is cross platform, desktop and mobile, I see it being counter productive to provide an example that isn't. Thanks Richard but I don't need your data path handlers because as you say, everyone's written their own; which goes back to your original question and my answer. Because everyone has rolled their own user data path handlers, user data is being saved in the correct place, whether it's a txt file, a data stack or one of the many other methods you mention. This problem comes up when those new to programming and/or LC follow an example How-To that doesn't work for all platforms and/or goes against OS guidelines. Saving User Data is a basic app requirement, the example given should work on ALL platforms. IMO if the How-To example used one of the many other options, but one that works on ALL platforms, then we'd get less 'How do I save User Data questions'. Certainly less than 'How do I save my App and User Data in a single location and still have it work'. From brahma at hindu.org Thu Jan 15 23:04:05 2015 From: brahma at hindu.org (Brahmanathaswami) Date: Thu, 15 Jan 2015 18:04:05 -1000 Subject: The Internet Date on Cento OS / LiveCode Server Returns Zulu Time Message-ID: <54B88DB5.6070503@hindu.org> Anyone know a) why Livecode returns zulu time (no UTC offset) for the internet date on a web server in San Francisco? b) how to fix that? On my machine (HST) the internet date returns: Thu, 15 Jan 2015 18:00:57 -1000 And the web server (in SF) CentOS shell --- system itself returns the internet date off set with UTC -0800 which is correct for PST [root at sat brahma]# date -R Thu, 15 Jan 2015 20:02:05 -0800 [root at sat brahma]# But from LiveCode Server, from my "dates.lc" script: *The LiveCode Internet Date is: * Fri, 16 Jan 2015 03:53:14 +0000 # Why Zulu time for a machine in San Franscisco? *The shell returns, for Local time: San Francisco*: Thu, 15 Jan 2015 19:53:14 -0800 #This is correct. (see http://dev.himalayanacademy.com/tests/dates.lc) Swasti Astu, Be Well! Brahmanathaswami Kauai's Hindu Monastery www.HimalayanAcademy.com From simon at asato-media.com Thu Jan 15 23:10:50 2015 From: simon at asato-media.com (Simon) Date: Thu, 15 Jan 2015 20:10:50 -0800 (PST) Subject: Script to Generate Concurrent Times In-Reply-To: <54B5FCEE.4020102@hindu.org> References: <54B5FCEE.4020102@hindu.org> Message-ID: <1421381450193-4687891.post@n4.nabble.com> Then there is this; https://www.youtube.com/watch?v=-5wpm-gesOY Simon -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Script-to-Generate-Concurrent-Times-tp4687781p4687891.html Sent from the Revolution - User mailing list archive at Nabble.com. From jacque at hyperactivesw.com Fri Jan 16 00:29:49 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 15 Jan 2015 23:29:49 -0600 Subject: Storing and saving a setting in a stand alone In-Reply-To: References: <54B85DFE.1000102@fourthworld.com> Message-ID: <54B8A1CD.6060002@hyperactivesw.com> On 1/15/2015 9:31 PM, Kay C Lan wrote: > Yes Scott,you are right it's still a valid method, but it's not a method > that works for all platforms and for a product who's key feature is that it > is cross platform, desktop and mobile, I see it being counter productive to > provide an example that isn't. I'm a little confused. The bug we were talking about in this thread refers to a change in an OS X app's bundle structure, rather than where user data is stored. Apple changed where files should go in bundles, and to accomodate, LC now scans for our embedded files in a couple of places in order to keep our code the same on all platforms. The engine will manage file lookups behind the scenes so we can use the same file paths everywhere. It's a good solution but there's a bug where it doesn't always work. As soon as they fix that, our internal app paths will work consistently as they always have, on any OS. > Because everyone has rolled their own user data path handlers, > user data is being saved in the correct place, whether it's a txt file, a > data stack or one of the many other methods you mention. The bug only applies to files that are stored as part of the app itself, like documentation, images, video, and peripheral stacks. Where we, as developers, store user data is a different thing. I haven't had any trouble with the splash stack method aside from needing the bundle file paths to be fixed in 6.7. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From prothero at earthednet.org Fri Jan 16 01:06:08 2015 From: prothero at earthednet.org (William Prothero) Date: Thu, 15 Jan 2015 22:06:08 -0800 Subject: Script to Generate Concurrent Times In-Reply-To: <1421381450193-4687891.post@n4.nabble.com> References: <54B5FCEE.4020102@hindu.org> <1421381450193-4687891.post@n4.nabble.com> Message-ID: That is hilarious, in a gruesome way. Bill > On Jan 15, 2015, at 8:10 PM, Simon wrote: > > Then there is this; > https://www.youtube.com/watch?v=-5wpm-gesOY > > Simon > > > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/Script-to-Generate-Concurrent-Times-tp4687781p4687891.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From palcibiades-first at yahoo.co.uk Fri Jan 16 02:07:00 2015 From: palcibiades-first at yahoo.co.uk (Peter Alcibiades) Date: Thu, 15 Jan 2015 23:07:00 -0800 (PST) Subject: Possible insanity, or is it LC 7.0.1? In-Reply-To: <54B72D04.5060901@hindu.org> References: <35C0AEAD-5C56-420C-810E-24FCACC70A46@mac.com> <54B72D04.5060901@hindu.org> Message-ID: <1421392020544-4687894.post@n4.nabble.com> Yes, verified this - new stack, new button, put this script onto it, and this is what it does. This is Debian, 7.0 Community Edition. Also verified it in multiline message box and tried a couple of other things. What is really weird is that if you just change 1.884956 to 1.88495, it seems to run fine. Also, if you change the +0 to +1 it seems to run fine with 1.884956. Then if you add 3 to the number as in 1.884956, ie 1.8849563 it runs fine with +0. Then if you change 1.884956 to 1.884955 it runs fine. What on earth can it be? Peter Brahmanathaswami wrote > You are not crazy and it's not just your machine > > confirmed here Yosemite 10.10 LC 7.0.1 > > on mouseUp > put 1.884956 into tVar > put value(tVar + 0) > end mouseUp > > button "Button": execution error at line 3 (value: error executing > expression) near "1.884956", char 1 > > BR > > > > Graham Samuel wrote: >> Thanks to those who replied. So, I am going crazy! I suppose it is >> something very particular about my setup. I did find one other way to >> show the anomaly, which was to put >> >> put 1.884956 into it; put value(it+0) >> >> this gives me the error >> "Message execution error: >> Error description: value: error executing expression >> Hint: 1.884956" > > _______________________________________________ > use-livecode mailing list > use-livecode at .runrev > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Possible-insanity-or-is-it-LC-7-0-1-tp4687816p4687894.html Sent from the Revolution - User mailing list archive at Nabble.com. From smudge.andy at googlemail.com Fri Jan 16 02:38:01 2015 From: smudge.andy at googlemail.com (AndyP) Date: Thu, 15 Jan 2015 23:38:01 -0800 (PST) Subject: Storing and saving a setting in a stand alone In-Reply-To: <54B8A1CD.6060002@hyperactivesw.com> References: <8D1FEE51DFCF847-1AB0-BB53@webmail-vm089.sysops.aol.com> <63392D32-AE5B-4E05-9184-A4E99F248E6A@numericable.com> <54B7E559.4050109@fourthworld.com> <54B816F6.8040608@hyperactivesw.com> <54B81B9A.6080308@fourthworld.com> <54B85DFE.1000102@fourthworld.com> <54B8A1CD.6060002@hyperactivesw.com> Message-ID: <1421393881288-4687895.post@n4.nabble.com> This restriction in Yosemite causes big issue if you want to hack the LiveCode ide. On Windows the LC ide stacks are stored in a sub directory of the users AppData folder which allows modifications to be made to the LC ide stacks. You cannot now do this in Yosemite and it will prevent any plugins utilities (including my Script Editor Themer) that need to amend the LC ide from working correctly. A workaround which one of my customers is using is to move the whole LC app bundle outside of the App directory but obviously this is not ideal. Added this to http://quality.runrev.com/show_bug.cgi?id=14295 ----- Andy Piddock My software never has bugs. It just develops random features. Copy the new cloud space, get your free 15GB space now: Get Copy Script editor Themer for LC http://2108.co.uk PointandSee is a FREE simple but full featured under cursor colour picker / finder. http://www.pointandsee.co.uk - made with LiveCode -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Storing-and-saving-a-setting-in-a-stand-alone-tp4687858p4687895.html Sent from the Revolution - User mailing list archive at Nabble.com. From livfoss at mac.com Fri Jan 16 05:13:53 2015 From: livfoss at mac.com (Graham Samuel) Date: Fri, 16 Jan 2015 11:13:53 +0100 Subject: Possible insanity, or is it LC 7.0.1? In-Reply-To: <1421392020544-4687894.post@n4.nabble.com> References: <35C0AEAD-5C56-420C-810E-24FCACC70A46@mac.com> <54B72D04.5060901@hindu.org> <1421392020544-4687894.post@n4.nabble.com> Message-ID: <66AEE8C3-719D-47BD-BF2B-99641DFC3756@mac.com> It is so weird that I also I hope the mother ship explains in the end. The bug is now reported to be ?awaiting build?. Given the (apparently) very ?focused? nature of the bug, it seems miraculous that anyone found it, least of all me! Graham > On 16 Jan 2015, at 08:07, Peter Alcibiades wrote: > > Yes, verified this - new stack, new button, put this script onto it, and this > is what it does. This is Debian, 7.0 Community Edition. Also verified it > in multiline message box and tried a couple of other things. > > What is really weird is that if you just change 1.884956 to 1.88495, it > seems to run fine. Also, if you change the +0 to +1 it seems to run fine > with 1.884956. > > Then if you add 3 to the number as in 1.884956, ie 1.8849563 it runs fine > with +0. Then if you change 1.884956 to 1.884955 it runs fine. > > What on earth can it be? > > Peter > > > > Brahmanathaswami wrote >> You are not crazy and it's not just your machine >> >> confirmed here Yosemite 10.10 LC 7.0.1 >> >> on mouseUp >> put 1.884956 into tVar >> put value(tVar + 0) >> end mouseUp >> >> button "Button": execution error at line 3 (value: error executing >> expression) near "1.884956", char 1 >> >> BR >> >> >> >> Graham Samuel wrote: >>> Thanks to those who replied. So, I am going crazy! I suppose it is >>> something very particular about my setup. I did find one other way to >>> show the anomaly, which was to put >>> >>> put 1.884956 into it; put value(it+0) >>> >>> this gives me the error >>> "Message execution error: >>> Error description: value: error executing expression >>> Hint: 1.884956" >> >> _______________________________________________ >> use-livecode mailing list > >> use-livecode at .runrev > >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/Possible-insanity-or-is-it-LC-7-0-1-tp4687816p4687894.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ben at livecode.com Fri Jan 16 08:07:33 2015 From: ben at livecode.com (Benjamin Beaumont) Date: Fri, 16 Jan 2015 13:07:33 +0000 Subject: RELEASE LiveCode 7.0.2 RC1 Message-ID: Dear List Members, We're pleased to announce the release of LiveCode 7.0.2 RC1. This is a maintenance release focusing on product robustness and quality. We've also added support for iOS 64 bit apps. *Release Contents* This release contains 16 bug fixes: - 14343 mobileStoreMakePurchase misbehaving in LC7.0.x - 14330 openstacks() crashes when called in the shutdown handler - 14306 IconGravity does not work in windows - 14304 launch URL is broken for (space) - 14303 Problem saving stack with custom properties - 14302 Recording does not produce file in correct location - 14285 mobileCanMakePurchase() stops in Android - 14278 Unicode PDF file name changes to ??????.pdf - 14277 Crash when any of the 'repeat with' expressions triggers an error - 14269 Play audioclip loops when followed by wait until the sound is done - 14259 Externals fail to load when livecode server script is started via "#!/usr/bin/env livecodeserver" - 14253 [[ Player ]] For some videos - 14252 [[Player]] documentation does not include error result for setting filename - 14245 Video Player not managing relative paths - 14238 backgroundpattern of a field out of sync if formattedHeight > roughly 32768 - 11417 mobileExportImageToAlbum don't work on Android For full details of the changes in this release please see the release notes: http://downloads.livecode.com/livecode/7_0_2/LiveCodeNotes-7_0_2_rc_1.pdf *Getting the Release* To get the release please select "check for updates" from the "help" menu in the product or download the installer directly at: http://downloads.livecode.com *iOS 64 bit support* Apple's AppStore rules change on the 1st of February requiring that all NEW app submission contain both 32 and 64 bit binary executables. LiveCode has been updates to produce iOS apps that comply with this. If you already have an app in the AppStore you do not need to update it before the deadline, but any new submission after that date will have to be built with LiveCode 6.7.2 or or 7.0.2 and above. Warm regards, The LiveCode Team From ambassador at fourthworld.com Fri Jan 16 10:08:03 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 16 Jan 2015 07:08:03 -0800 Subject: Storing and saving a setting in a stand alone In-Reply-To: References: Message-ID: <54B92953.6090808@fourthworld.com> Kay C Lan wrote: > This problem comes up when those new to programming and/or LC follow an > example How-To that doesn't work for all platforms and/or goes against OS > guidelines. Saving User Data is a basic app requirement, the example given > should work on ALL platforms. > > IMO if the How-To example used one of the many other options, but one that > works on ALL platforms, then we'd get less 'How do I save User Data > questions'. Certainly less than 'How do I save my App and User Data in a > single location and still have it work'. I'd like to flag that for revision once the new Community Documentation Team starts their work - can you tell me where I can find it? Is it in the User Guide or somewhere else? while we're at it, it may be good to expand that from a simple old-world HC-style save-the-data-in-the-UI example into something more modern that factors UI from data. -- Richard Gaskin LiveCode Community Manager richard at livecode.org From pete at lcsql.com Fri Jan 16 12:30:21 2015 From: pete at lcsql.com (Peter Haworth) Date: Fri, 16 Jan 2015 09:30:21 -0800 Subject: Script to Generate Concurrent Times In-Reply-To: <54B87F57.6040605@hindu.org> References: <54B5FCEE.4020102@hindu.org> <6BF8872A-961E-4C94-9BCC-2ED02B0C3230@byu.edu> <54B722AB.7010206@hindu.org> <22-2051727564.20150114183038@ahsoftware.net> <54B72C5B.8020400@hindu.org> <54B87F57.6040605@hindu.org> Message-ID: If, by chance, an SQLite database is involved in your application, its strftime() function has a lot of very powerful date adjustment/conversion tools which might help. Even without an SQLite database in an application, I sometimes create an in memory database just so I can issue SELECT statements to calculate dates and times. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Thu, Jan 15, 2015 at 7:02 PM, Brahmanathaswami wrote: > Roger Eller wrote: > >> So that's where the old saying, "your singing would bring a jersey cow to >> tears" comes from. >> > > LOL! > > Hmmm back on topic: > > Requirement: Generate current time list for a *future* time (for scheduled > webinar) > > OK, so it is easy enough to get world time from the linux system. > > and FYI: LC "internet date" is, happily, using the standard RFC 2822 > format and we can invoke this also in the shell: > > -R, --rfc-2822 > output date and time in RFC 2822 format. Example: Mon, 07 > Aug > 2006 12:34:56 -0600 > > Check it out now > > http://dev.himalayanacademy.com/tests/dates.lc > ----------- > > ?lc > > # copied the list from html source at: > # http://www.timezoneconverter.com/cgi-bin/tzc.tzc < > http://www.timezoneconverter.com/cgi-bin/tzc.tzc> > > put url "file:/home/devhap/public_html/tests/zones.txt" into tZones > > repeat for each line x in tZones > set the itemdel to "/" > if (the number of items of x) = 1 then > put x into tCity > else > put item 2 of x into tCity > end if > put x into $TZ > put shell("date -R") into tDTstring > put tCity& ": "& tDTstring& "
" after tWorldTimes > end repeat > > put tWorldTimes > ----------------- > > but that doesn't actually meet my requirement. > Sure: We get all the times to answer "what time is it now?" > > But what if I want to a future time e.g. February 1, 1:30PM HST > > and get a list of all dates/times across the globe that are concurrent > with that future date/time? > > Maybe I'll ask that on Expert's Exchange... man timezone isn't getting me > anything. > > I suppose one algorithm using LC native timedate conversion tools could be. > > (the future date in seconds) - (Current time in seconds local time) = > advanceToFutureIncrement > > repeat for each concurrent time for now for all cities > put (city[x] Time Right Now) + advanceToFutureIncrement into > tFutureWebinarTimeInCity[x] > put tFutureWebinarTimeInCity[x] & "
" after > tListOfNextWebinarTimes > end repeat > > of course the above needs a bit more code, but not much more... > > Brahmanathaswami > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From rabit at revigniter.com Fri Jan 16 13:13:01 2015 From: rabit at revigniter.com (Ralf Bitter) Date: Fri, 16 Jan 2015 19:13:01 +0100 Subject: How to show the Windows 8 on screen keyboard in LiveCode? In-Reply-To: <0CFAAD92-B7E3-4412-8846-B11046B7131A@revigniter.com> References: <0CFAAD92-B7E3-4412-8846-B11046B7131A@revigniter.com> Message-ID: <60139F10-C9DC-4B4E-A7E4-4F6E4B1AF94C@revigniter.com> Hi Ralf, the following code lets the Windows on screen keyboard appear (needed for applications used in desktop mode: -- set the hideConsoleWindows to true # USE WINDOWS POWERSHELL set the itemDel to "\" put item 1 to -2 of $PSModulePath & "\powershell.exe" into tPowerShellPath set the shellCommand to tPowerShellPath get shell("start '" & $CommonProgramW6432 & "\microsoft shared\ink\TabTip.exe'") -- Note the use of single and double quotes! Sorry for soliloquizing but I thought this could be useful for others too. Ralf > On 14.01.2015, at 17:47, Ralf Bitter wrote: > > Shouldn't the on screen keyboard of Windows 8 tablets pop up automatically > on touching a text input control? > A client who installed a standalone built with LiveCode 6.7.1 on a Toshiba tablet > reports that the soft keyboard doesn't show up tapping a text input field. > > Thought that, as a workaround, one possibly could start the keyboard exe > using launch or shell() like: > > launch "C:/Program Files/Common Files/microsoft shared/ink/TabTip.exe" > yields "not opened" > > or > > get shell("start C:\Program Files\Common Files\microsoft shared\ink\TabTip.exe") > yields "The file "C:/Program" could not be found." > > or > > get shell("start tabtip.exe") > yields "The file "tabtip.exe" could not be found." > > > Double checked the paths but all this fails, though start tabtip.exe definitely works from > the Windows command shell in contrast to > start C:\Program Files\Common Files\microsoft shared\ink\TabTip.exe. > > So, how do others show the on screen keyboard on Windows 8 tablets from > LiveCode standalones? Any insights appreciated. > > > Ralf From smudge.andy at googlemail.com Fri Jan 16 13:36:23 2015 From: smudge.andy at googlemail.com (AndyP) Date: Fri, 16 Jan 2015 10:36:23 -0800 (PST) Subject: Ann: Script Editor Themer updated Message-ID: <1421433383630-4687901.post@n4.nabble.com> I?ve just released V1.2 of Script Editor Themer. http://2108.co.uk/script-editor-themer/ You will be prompted to download this when you next open Seth. This now includes the integrated issue tracker and the Installer now has an update option which will update the Seth stack instead of having to completely uninstall and then install the newer version. The Issue Tracker can be viewed here http://2108.co.uk/issue-tracker/ this is built with LC server script, html, css, and MySql, no php in sight. ----- Andy Piddock My software never has bugs. It just develops random features. Copy the new cloud space, get your free 15GB space now: Get Copy Script editor Themer for LC http://2108.co.uk PointandSee is a FREE simple but full featured under cursor colour picker / finder. http://www.pointandsee.co.uk - made with LiveCode -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Ann-Script-Editor-Themer-updated-tp4687901.html Sent from the Revolution - User mailing list archive at Nabble.com. From matthias_livecode_150811 at m-r-d.de Fri Jan 16 14:01:43 2015 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe | M-R-D) Date: Fri, 16 Jan 2015 20:01:43 +0100 Subject: Ann: Script Editor Themer updated In-Reply-To: <1421433383630-4687901.post@n4.nabble.com> References: <1421433383630-4687901.post@n4.nabble.com> Message-ID: <5E2959D4-7C23-4776-9932-E2FA14FC6C66@m-r-d.de> Andy, thank you for this really useful tool. Btw: I noticed in the release notes that there were earlier versions release. Did i miss the announcement in the list? Regards, Matthias > Am 16.01.2015 um 19:36 schrieb AndyP : > > I?ve just released V1.2 of Script Editor Themer. > > http://2108.co.uk/script-editor-themer/ > > > You will be prompted to download this when you next open Seth. > > This now includes the integrated issue tracker and the Installer now has an > update option which will update the Seth stack instead of having to > completely uninstall and then install the newer version. > > The Issue Tracker can be viewed here http://2108.co.uk/issue-tracker/ > this is built with LC server script, > html, css, and MySql, no php in sight. > > > > > > ----- > Andy Piddock > > > My software never has bugs. It just develops random features. > > Copy the new cloud space, get your free 15GB space now: > Get Copy > > > Script editor Themer for LC http://2108.co.uk > > PointandSee is a FREE simple but full featured under cursor colour picker / finder. > http://www.pointandsee.co.uk - made with LiveCode > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/Ann-Script-Editor-Themer-updated-tp4687901.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pete at lcsql.com Fri Jan 16 14:37:23 2015 From: pete at lcsql.com (Peter Haworth) Date: Fri, 16 Jan 2015 11:37:23 -0800 Subject: XML question Message-ID: I have a handler that parses the text of an XML file. Decided to go that route because it was easier than learning all the revXML commands. The text includes the string & which I believe is the XML equivalent of the html attribute &ersand;. I can easily replace that string but concerned that others might turn up. I could write a handler that looks for strings that begin with &# and end with ; and then convert the number in between to ascii but wondering if there is an LC command to handle these strings automatically. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From shawnlivecode at gmail.com Fri Jan 16 15:19:38 2015 From: shawnlivecode at gmail.com (Shawn Blc) Date: Fri, 16 Jan 2015 14:19:38 -0600 Subject: Find all links in fld Message-ID: I'm still struggling with this, so I'm asking for a little help. I'm trying to extract the links from the field. All the links will start the same, but the last 5 digits will be different. *on* mouseUp *put* URL "http://mydomainA.com/rss.php" into tURL *put* tURL into fld "fld1" *find* string "https://www.domainB.com/show.php?l=0&u=156&id=" in fld "fld1" --- I'll need the whole URL https://www.domainB.com/show.php?l=0&u=156&id=xxxx -- notice the xxxx -- that changes from link to link *put* the foundText into tFound *put* tFound into fld "fld2" *end* mouseUp When I add a repeat it never stops and locks up LC. but I'm still missing the xxxx. From bodine at bodinetraininggames.com Fri Jan 16 15:21:36 2015 From: bodine at bodinetraininggames.com (tbodine) Date: Fri, 16 Jan 2015 12:21:36 -0800 (PST) Subject: How to solve "can't find stack" error In-Reply-To: <1421283680740-4687828.post@n4.nabble.com> References: <1421283680740-4687828.post@n4.nabble.com> Message-ID: <1421439696266-4687905.post@n4.nabble.com> Thanks, Kay, Jacque and Robert. It now looks like file corruption is the real issue. I have collected four different user file stacks and none of them can be opened even in the IDE. (Which rules out issues like wrong extension or type or missing file. I've also checked that the LiveCode file version is consistent.) I've heard LC stack corruption is rare, but I have 5 cases of it in the past year. I cannot open these as stacks in LiveCode, but I can put their contents using url binary to inspect them. (I'll be the first to say I'm out of my depth on this.) Each binary file starts with "REVO5500". I've compared the corrupt file binary to a known good file, but nothing stands out to my untrained eye. I'm hoping if I could isolate the corruption in the file, I could compare it to good files and figure out where in my program the corruption is introduced. Anyone have insights or resources for sorting out file corruption? Thanks, Tom Bodine -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/How-to-solve-can-t-find-stack-error-tp4687828p4687905.html Sent from the Revolution - User mailing list archive at Nabble.com. From dixonja at hotmail.co.uk Fri Jan 16 15:27:16 2015 From: dixonja at hotmail.co.uk (John Dixon) Date: Fri, 16 Jan 2015 20:27:16 +0000 Subject: Find all links in fld In-Reply-To: References: Message-ID: Very simple solution on mouseUp repeat for each word thisWord in fld 1 if char 1 to 4 of thisWord = "http" then put thisWord & cr after tempList end if end repeat put tempList end mouseUp > Date: Fri, 16 Jan 2015 14:19:38 -0600 > Subject: Find all links in fld > From: shawnlivecode at gmail.com > To: use-livecode at lists.runrev.com > > I'm still struggling with this, so I'm asking for a little help. > > I'm trying to extract the links from the field. All the links will start > the same, but the last 5 digits will be different. > > *on* mouseUp > > *put* URL "http://mydomainA.com/rss.php" into tURL > > *put* tURL into fld "fld1" > > *find* string "https://www.domainB.com/show.php?l=0&u=156&id=" in fld > "fld1" > > --- I'll need the whole URL > https://www.domainB.com/show.php?l=0&u=156&id=xxxx > > -- notice the xxxx -- that changes from link to link > > *put* the foundText into tFound > > *put* tFound into fld "fld2" > > *end* mouseUp > > > When I add a repeat it never stops and locks up LC. but I'm still missing > the xxxx. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From revdev at pdslabs.net Fri Jan 16 15:48:33 2015 From: revdev at pdslabs.net (Phil Davis) Date: Fri, 16 Jan 2015 12:48:33 -0800 Subject: new stack script comparison plugin on RevOnline Message-ID: <54B97921.2020304@pdslabs.net> Hi folks, Recently I built a plugin that helped me stop beating my head against the wall quite so often. It lets me compare the script of a stack I'm editing to a copy on disk, and yields 100% accurate results in a very usable format. I just uploaded it to RevOnline. Here is the write-up: ----- Compare your in-memory stack script to a copy on disk This Mac-only LiveCode plugin quickly answers those nagging questions we frequently ask ourselves: "Did I make any changes I want to save?" "What did I actually change?" If you use TextWrangler, you may have discovered its wonderful ability to "Find differences" between two files. TextWrangler has optional command-line tools you can install, one of which is runs "Find differences". At first use, this "Compare Stack Scripts" plugin guides you through the download and installation of TextWrangler command line tools (if you don't have them installed already). Then you can start comparing stack scripts and find every difference between them. Compare Stack Scripts was saved in stackFileVersion 2.7. It was tested on Mac OS X 10.6.8 and on 10.9.5 Server. ----- Enjoy! And if it for some reason it doesn't find the needed command-line tool after you've installed it, feel free to let me know. -- Phil Davis From bogdanoff at me.com Fri Jan 16 16:14:07 2015 From: bogdanoff at me.com (Peter Bogdanoff) Date: Fri, 16 Jan 2015 13:14:07 -0800 Subject: Inspector Issue Message-ID: Hi, I would like some expert advice. I have a stack that on some of the cards exhibit an issue: When you show the Inspector and there click on Inspect>? it doesn?t show all the controls. In fact it only shows Inspect>buttons> and then a list of the first 7-8 buttons on the card. On the card there are dozens of buttons, fields, an image, etc., but the Inspector doesn?t list them. When I use Geoff Canyon?s Navigator plugin I see all the controls, and indeed, all the controls seem to be visible and it all works. I can select any control and its properties display in the Inspector. Just that dang Inspect> triangle doesn?t show all it should. This issue occurs on many of the cards of this 3,000 card stack, but not all; on many all the controls show properly in the Inspector. This anomaly occured recently but doesn?t seem to affect the functionality of the stack. I?m using LC 6.3.1, but I also see it when I open that stack in a later version of LC. My question(s): Has anyone seen this before? and is my stack damaged? and should I revert to an earlier version? Peter Bogdanoff UCLA From jacque at hyperactivesw.com Fri Jan 16 16:14:14 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 16 Jan 2015 15:14:14 -0600 Subject: How to solve "can't find stack" error In-Reply-To: <1421439696266-4687905.post@n4.nabble.com> References: <1421283680740-4687828.post@n4.nabble.com> <1421439696266-4687905.post@n4.nabble.com> Message-ID: <54B97F26.6010305@hyperactivesw.com> On 1/16/2015 2:21 PM, tbodine wrote: > It now looks like file corruption is the real issue. What version of LC is your app made with? I just had a customer report a similar corruption and he's using 6.6.2. The stack corrupts when saving. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bodine at bodinetraininggames.com Fri Jan 16 16:16:38 2015 From: bodine at bodinetraininggames.com (tbodine) Date: Fri, 16 Jan 2015 13:16:38 -0800 (PST) Subject: How to solve "can't find stack" error In-Reply-To: <54B97F26.6010305@hyperactivesw.com> References: <1421283680740-4687828.post@n4.nabble.com> <1421439696266-4687905.post@n4.nabble.com> <54B97F26.6010305@hyperactivesw.com> Message-ID: <1421442998425-4687910.post@n4.nabble.com> Hi Jacque. The product is built with LC 6.5.1 on Windows and all the users who had problems were also on Windows. Thanks, Tom Bodine -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/How-to-solve-can-t-find-stack-error-tp4687828p4687910.html Sent from the Revolution - User mailing list archive at Nabble.com. From jacque at hyperactivesw.com Fri Jan 16 16:38:36 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 16 Jan 2015 15:38:36 -0600 Subject: How to solve "can't find stack" error In-Reply-To: <1421442998425-4687910.post@n4.nabble.com> References: <1421283680740-4687828.post@n4.nabble.com> <1421439696266-4687905.post@n4.nabble.com> <54B97F26.6010305@hyperactivesw.com> <1421442998425-4687910.post@n4.nabble.com> Message-ID: <54B984DC.9040505@hyperactivesw.com> On 1/16/2015 3:16 PM, tbodine wrote: > Hi Jacque. > > The product is built with LC 6.5.1 on Windows and all the users who had > problems were also on Windows. I had pretty good luck with 6.5.1, as I remember, so I'm not sure. You could try compiling with a newer version of LC and see if the problem resolves, or you could send the corrupted stacks to RR support to see if they know what happened. I doubt there's much you can do on your end to fix it. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From revdev at pdslabs.net Fri Jan 16 16:54:37 2015 From: revdev at pdslabs.net (Phil Davis) Date: Fri, 16 Jan 2015 13:54:37 -0800 Subject: Find all links in fld In-Reply-To: References: Message-ID: <54B9889D.3030405@pdslabs.net> Try this: on mouseUp put text of fld 1 into tText replace CR with space in tText replace quote with space in tText replace "https://" with ("--myTag--" & "https://") in tText replace space with CR in tText replace "--myTag--" with CR in tText filter tText with "https://" & "*" put tText into fld 2 -- should be a list of URLs end mouseUp Phil On 1/16/15 12:19 PM, Shawn Blc wrote: > I'm still struggling with this, so I'm asking for a little help. > > I'm trying to extract the links from the field. All the links will start > the same, but the last 5 digits will be different. > > *on* mouseUp > > *put* URL "http://mydomainA.com/rss.php" into tURL > > *put* tURL into fld "fld1" > > *find* string "https://www.domainB.com/show.php?l=0&u=156&id=" in fld > "fld1" > > --- I'll need the whole URL > https://www.domainB.com/show.php?l=0&u=156&id=xxxx > > -- notice the xxxx -- that changes from link to link > > *put* the foundText into tFound > > *put* tFound into fld "fld2" > > *end* mouseUp > > > When I add a repeat it never stops and locks up LC. but I'm still missing > the xxxx. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Phil Davis From shawnlivecode at gmail.com Fri Jan 16 17:02:41 2015 From: shawnlivecode at gmail.com (Shawn Blc) Date: Fri, 16 Jan 2015 16:02:41 -0600 Subject: Find all links in fld In-Reply-To: References: Message-ID: Thanks John, not as short and sweet as yours, but I used a little php to get to get the URLS, had to strip out the HTML, still had a little cleaning up to do that I used LC for, so far it's working. I still need to wrap my head around LC. On Fri, Jan 16, 2015 at 2:27 PM, John Dixon wrote: > Very simple solution > > on mouseUp > repeat for each word thisWord in fld 1 > if char 1 to 4 of thisWord = "http" then > put thisWord & cr after tempList > end if > end repeat > put tempList > end mouseUp > > > Date: Fri, 16 Jan 2015 14:19:38 -0600 > > Subject: Find all links in fld > > From: shawnlivecode at gmail.com > > To: use-livecode at lists.runrev.com > > > > I'm still struggling with this, so I'm asking for a little help. > > > > I'm trying to extract the links from the field. All the links will start > > the same, but the last 5 digits will be different. > > > > *on* mouseUp > > > > *put* URL "http://mydomainA.com/rss.php" into tURL > > > > *put* tURL into fld "fld1" > > > > *find* string "https://www.domainB.com/show.php?l=0&u=156&id=" in fld > > "fld1" > > > > --- I'll need the whole URL > > https://www.domainB.com/show.php?l=0&u=156&id=xxxx > > > > -- notice the xxxx -- that changes from link to link > > > > *put* the foundText into tFound > > > > *put* tFound into fld "fld2" > > > > *end* mouseUp > > > > > > When I add a repeat it never stops and locks up LC. but I'm still missing > > the xxxx. > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From shawnlivecode at gmail.com Fri Jan 16 17:09:39 2015 From: shawnlivecode at gmail.com (Shawn Blc) Date: Fri, 16 Jan 2015 16:09:39 -0600 Subject: Find all links in fld In-Reply-To: <54B9889D.3030405@pdslabs.net> References: <54B9889D.3030405@pdslabs.net> Message-ID: Phil that was the one that worked like I was hoping. Thanks John and Phil! Don't need the extra Php file now! On Fri, Jan 16, 2015 at 3:54 PM, Phil Davis wrote: > Try this: > > on mouseUp > put text of fld 1 into tText > replace CR with space in tText > replace quote with space in tText > replace "https://" with ("--myTag--" & "https://") in tText > replace space with CR in tText > replace "--myTag--" with CR in tText > filter tText with "https://" & "*" > put tText into fld 2 -- should be a list of URLs > end mouseUp > > Phil > > > On 1/16/15 12:19 PM, Shawn Blc wrote: > >> I'm still struggling with this, so I'm asking for a little help. >> >> I'm trying to extract the links from the field. All the links will start >> the same, but the last 5 digits will be different. >> >> *on* mouseUp >> >> *put* URL "http://mydomainA.com/rss.php" into tURL >> >> *put* tURL into fld "fld1" >> >> *find* string "https://www.domainB.com/show.php?l=0&u=156&id=" in fld >> "fld1" >> >> --- I'll need the whole URL >> https://www.domainB.com/show.php?l=0&u=156&id=xxxx >> >> -- notice the xxxx -- that changes from link to link >> >> *put* the foundText into tFound >> >> *put* tFound into fld "fld2" >> >> *end* mouseUp >> >> >> When I add a repeat it never stops and locks up LC. but I'm still missing >> the xxxx. >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> > -- > Phil Davis > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jacque at hyperactivesw.com Fri Jan 16 17:16:26 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 16 Jan 2015 16:16:26 -0600 Subject: Find all links in fld In-Reply-To: References: <54B9889D.3030405@pdslabs.net> Message-ID: <54B98DBA.3080504@hyperactivesw.com> On 1/16/2015 4:09 PM, Shawn Blc wrote: > Phil that was the one that worked like I was hoping. Thanks John and > Phil! Don't need the extra Php file now! Here's another way: on mouseUp put fld 1 into tText put 0 into tSkip repeat get offset("https://www.domainb.com/",tText,tSkip) if it > 0 then put the number of words in char 1 to (it + tSkip) of tText into tWordNum put word tWordNum of tText & cr after tList add it to tSkip else exit repeat end if end repeat end mouseUp Lots of ways to do stuff in LC. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From smudge.andy at googlemail.com Fri Jan 16 17:18:35 2015 From: smudge.andy at googlemail.com (AndyP) Date: Fri, 16 Jan 2015 14:18:35 -0800 (PST) Subject: Ann: Script Editor Themer updated In-Reply-To: <5E2959D4-7C23-4776-9932-E2FA14FC6C66@m-r-d.de> References: <1421433383630-4687901.post@n4.nabble.com> <5E2959D4-7C23-4776-9932-E2FA14FC6C66@m-r-d.de> Message-ID: <1421446715705-4687916.post@n4.nabble.com> Thanks for the comments Matthias. Yes both previous releases were posted. Please let me know how you get on, I'm very keen on getting as much feedback as possible. ----- Andy Piddock My software never has bugs. It just develops random features. Copy the new cloud space, get your free 15GB space now: Get Copy Script editor Themer for LC http://2108.co.uk PointandSee is a FREE simple but full featured under cursor colour picker / finder. http://www.pointandsee.co.uk - made with LiveCode -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Ann-Script-Editor-Themer-updated-tp4687901p4687916.html Sent from the Revolution - User mailing list archive at Nabble.com. From shawnlivecode at gmail.com Fri Jan 16 17:29:29 2015 From: shawnlivecode at gmail.com (Shawn Blc) Date: Fri, 16 Jan 2015 16:29:29 -0600 Subject: Find all links in fld In-Reply-To: <54B98DBA.3080504@hyperactivesw.com> References: <54B9889D.3030405@pdslabs.net> <54B98DBA.3080504@hyperactivesw.com> Message-ID: Here's what I ended up with , with the extra php file (one for the rss, one to clean up the html a bit [that file was 13 lines long]). Total lines = 20 lines. on mouseUp set the itemDelimiter to "
" put URL "http://mydomain.com/cleanHTML.php" into tURL put tURL into fld "fld4" replace "
" with return in fld "fld4" put any line of fld "fld4" into fld "fld3" end mouseUp Here's with just the original php file for the rss. No extra php file and only 12 lines of LC. on mouseUp put URL "http://mydomain.com/rss.php" into fld "fld1" put text of fld "fld1" into tText replace CR with space in tText replace quote with space in tText replace "https://www.mydomain.com/show.php?l=0&p=0056&i=" with ("--myTag--" & "https://www.mydomain.com/show.php?l=0&p=0056&i=") in tText replace space with CR in tText replace "--myTag--" with CR in tText filter tText with "https://www.mydomain.com/show.php?l=0&p=0056&i=" & "*" put tText into fld "fld4" -- should be a list of URLs put any line of fld "fld4" into fld "fld3" end mouseUp Thanks everyone for your input and helping this ole guy. Off to try another way now :) On Fri, Jan 16, 2015 at 4:16 PM, J. Landman Gay wrote: > On 1/16/2015 4:09 PM, Shawn Blc wrote: > >> Phil that was the one that worked like I was hoping. Thanks John and >> Phil! Don't need the extra Php file now! >> > > Here's another way: > > on mouseUp > put fld 1 into tText > put 0 into tSkip > repeat > get offset("https://www.domainb.com/",tText,tSkip) > if it > 0 then > put the number of words in char 1 to (it + tSkip) of tText into > tWordNum > put word tWordNum of tText & cr after tList > add it to tSkip > else > exit repeat > end if > end repeat > end mouseUp > > Lots of ways to do stuff in LC. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From shawnlivecode at gmail.com Fri Jan 16 17:31:40 2015 From: shawnlivecode at gmail.com (Shawn Blc) Date: Fri, 16 Jan 2015 16:31:40 -0600 Subject: Find all links in fld In-Reply-To: References: <54B9889D.3030405@pdslabs.net> <54B98DBA.3080504@hyperactivesw.com> Message-ID: I don't understand the --myTag-- part of the above. Someone care to explain. On Fri, Jan 16, 2015 at 4:29 PM, Shawn Blc wrote: > Here's what I ended up with , with the extra php file (one for the rss, > one to clean up the html a bit [that file was 13 lines long]). Total lines > = 20 lines. > > on mouseUp > set the itemDelimiter to "
" > put URL "http://mydomain.com/cleanHTML.php" into tURL > put tURL into fld "fld4" > replace "
" with return in fld "fld4" > put any line of fld "fld4" into fld "fld3" > end mouseUp > > > > Here's with just the original php file for the rss. No extra php file and > only 12 lines of LC. > > on mouseUp > put URL "http://mydomain.com/rss.php" into fld "fld1" > put text of fld "fld1" into tText > replace CR with space in tText > replace quote with space in tText > replace "https://www.mydomain.com/show.php?l=0&p=0056&i=" with > ("--myTag--" & "https://www.mydomain.com/show.php?l=0&p=0056&i=") in tText > replace space with CR in tText > replace "--myTag--" with CR in tText > filter tText with "https://www.mydomain.com/show.php?l=0&p=0056&i=" & > "*" > put tText into fld "fld4" -- should be a list of URLs > put any line of fld "fld4" into fld "fld3" > end mouseUp > > Thanks everyone for your input and helping this ole guy. Off to try > another way now :) > > On Fri, Jan 16, 2015 at 4:16 PM, J. Landman Gay > wrote: > >> On 1/16/2015 4:09 PM, Shawn Blc wrote: >> >>> Phil that was the one that worked like I was hoping. Thanks John and >>> Phil! Don't need the extra Php file now! >>> >> >> Here's another way: >> >> on mouseUp >> put fld 1 into tText >> put 0 into tSkip >> repeat >> get offset("https://www.domainb.com/",tText,tSkip) >> if it > 0 then >> put the number of words in char 1 to (it + tSkip) of tText into >> tWordNum >> put word tWordNum of tText & cr after tList >> add it to tSkip >> else >> exit repeat >> end if >> end repeat >> end mouseUp >> >> Lots of ways to do stuff in LC. >> >> -- >> Jacqueline Landman Gay | jacque at hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > From bobsneidar at iotecdigital.com Fri Jan 16 18:30:22 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 16 Jan 2015 23:30:22 +0000 Subject: Project Browser... BAAAAD! Message-ID: <0B8D07FF-6F3B-4D75-B4FB-031C17F40D34@iotecdigital.com> Hi all. So hearing that I can drag reorder objects in the project browser I thought I?d give it a try. I tried to drag a group up to another position, but it deleted the whole group!!!!! No problem, I?ll just revert to saved right? WRONG! Object still deleted!!!!! So I closed the stack without saving, then reverted the monistic. Object STILL DELETED!!!!! So I closed the main stack without saving, and verified it was not in memory anymore. I then reopened it. OBJECT STILL DELETED!!!!! I will not be using the project browser anymore. That is just too damned volatile!!! Luckily, I had the most recent version in the cloud. Bob S From ambassador at fourthworld.com Fri Jan 16 18:42:13 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 16 Jan 2015 15:42:13 -0800 Subject: Project Browser... BAAAAD! In-Reply-To: <0B8D07FF-6F3B-4D75-B4FB-031C17F40D34@iotecdigital.com> References: <0B8D07FF-6F3B-4D75-B4FB-031C17F40D34@iotecdigital.com> Message-ID: <54B9A1D5.6010703@fourthworld.com> Bob Sneidar wrote: > So hearing that I can drag reorder objects in the project browser > I thought I?d give it a try. I tried to drag a group up to another > position, but it deleted the whole group!!!!! No problem, I?ll just > revert to saved right? WRONG! Object still deleted!!!!! So I closed > the stack without saving, then reverted the monistic. Object STILL > DELETED!!!!! So I closed the main stack without saving, and verified > it was not in memory anymore. I then reopened it. OBJECT STILL > DELETED!!!!! I don't believe the Project Browser contains any code for saving. Are you using an auto-save plugin? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From bobsneidar at iotecdigital.com Fri Jan 16 18:56:55 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 16 Jan 2015 23:56:55 +0000 Subject: Project Browser... BAAAAD! In-Reply-To: <54B9A1D5.6010703@fourthworld.com> References: <0B8D07FF-6F3B-4D75-B4FB-031C17F40D34@iotecdigital.com> <54B9A1D5.6010703@fourthworld.com> Message-ID: No in fact I have gotten into the habit of using precious few plugins. All I have right now besides the default plugins is Datagrid Helper and TMAlign. Bob S On Jan 16, 2015, at 15:42 , Richard Gaskin > wrote: Bob Sneidar wrote: > So hearing that I can drag reorder objects in the project browser > I thought I?d give it a try. I tried to drag a group up to another > position, but it deleted the whole group!!!!! No problem, I?ll just > revert to saved right? WRONG! Object still deleted!!!!! So I closed > the stack without saving, then reverted the monistic. Object STILL > DELETED!!!!! So I closed the main stack without saving, and verified > it was not in memory anymore. I then reopened it. OBJECT STILL > DELETED!!!!! I don't believe the Project Browser contains any code for saving. Are you using an auto-save plugin? -- Richard Gaskin From prothero at earthednet.org Fri Jan 16 20:08:25 2015 From: prothero at earthednet.org (William Prothero) Date: Fri, 16 Jan 2015 17:08:25 -0800 Subject: What icon editor do you use? Message-ID: <1CB8BCA3-B02B-4F54-945F-119ED47224CD@earthednet.org> Folks: I?m at a place where I need to make icons for my App. There are a lot of icon editors and it seems some are not updated (for windows) to make the larger size icons Win 7 and 8 want. I note an app named Iconian and Sketch, which is free, has a nice export plugin for Mac icons. That?s good and I have it, but I need PC icons too. Any suggestions would be much appreciated. Best Bill William A. Prothero http://es.earthednet.org/ From martyknappster at gmail.com Fri Jan 16 20:19:22 2015 From: martyknappster at gmail.com (Marty Knapp) Date: Fri, 16 Jan 2015 17:19:22 -0800 Subject: What icon editor do you use? In-Reply-To: <1CB8BCA3-B02B-4F54-945F-119ED47224CD@earthednet.org> References: <1CB8BCA3-B02B-4F54-945F-119ED47224CD@earthednet.org> Message-ID: <54B9B89A.5070300@gmail.com> Hello Bill, I'm using Icon Slate - available from the Mac App store. It's $5 and can save in the Windows "ico" format. The largest size for Windows is 256x256. You do need to create you artwork elsewhere and bring it into the app, where you make the various sizes and it then saves in the Mac and/or Windows formats. Marty Knapp > Folks: > I?m at a place where I need to make icons for my App. There are a lot of icon editors and it seems some are not updated (for windows) to make the larger size icons Win 7 and 8 want. I note an app named Iconian and Sketch, which is free, has a nice export plugin for Mac icons. That?s good and I have it, but I need PC icons too. > > Any suggestions would be much appreciated. > Best > Bill > > William A. Prothero > http://es.earthednet.org/ > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pderocco at ix.netcom.com Fri Jan 16 20:24:28 2015 From: pderocco at ix.netcom.com (Paul D. DeRocco) Date: Fri, 16 Jan 2015 17:24:28 -0800 Subject: What icon editor do you use? In-Reply-To: <1CB8BCA3-B02B-4F54-945F-119ED47224CD@earthednet.org> References: <1CB8BCA3-B02B-4F54-945F-119ED47224CD@earthednet.org> Message-ID: > From: William Prothero > > I'm at a place where I need to make icons for my App. There > are a lot of icon editors and it seems some are not updated > (for windows) to make the larger size icons Win 7 and 8 want. > I note an app named Iconian and Sketch, which is free, has a > nice export plugin for Mac icons. That's good and I have it, > but I need PC icons too. http://icofx.ro/ works very nicely, but it's cheap not free. -- Ciao, Paul D. DeRocco Paul mailto:pderocco at ix.netcom.com From prothero at earthednet.org Fri Jan 16 20:34:31 2015 From: prothero at earthednet.org (Earthednet-wp) Date: Fri, 16 Jan 2015 17:34:31 -0800 Subject: What icon editor do you use? In-Reply-To: References: <1CB8BCA3-B02B-4F54-945F-119ED47224CD@earthednet.org> Message-ID: <20D85BE7-7B9D-4E65-881D-18192E80BA41@earthednet.org> Tnx for the feedback. I think window 7 and 8 want 512x512 icons, tho. I have a free one for windows that goes up to 256 and the app shows a blank icon for the largest size. I've looked at icofx and they want a monthly fee. I guess I could sign up for a month, make all my icons, then UN-sign up. But I really don't like these monthly subscription strategies. Bill William Prothero http://es.earthednet.org On Jan 16, 2015, at 5:24 PM, "Paul D. DeRocco" wrote: >> From: William Prothero >> >> I'm at a place where I need to make icons for my App. There >> are a lot of icon editors and it seems some are not updated >> (for windows) to make the larger size icons Win 7 and 8 want. >> I note an app named Iconian and Sketch, which is free, has a >> nice export plugin for Mac icons. That's good and I have it, >> but I need PC icons too. > > http://icofx.ro/ works very nicely, but it's cheap not free. > > -- > > Ciao, Paul D. DeRocco > Paul mailto:pderocco at ix.netcom.com > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pderocco at ix.netcom.com Fri Jan 16 20:51:41 2015 From: pderocco at ix.netcom.com (Paul D. DeRocco) Date: Fri, 16 Jan 2015 17:51:41 -0800 Subject: What icon editor do you use? In-Reply-To: <20D85BE7-7B9D-4E65-881D-18192E80BA41@earthednet.org> References: <1CB8BCA3-B02B-4F54-945F-119ED47224CD@earthednet.org> <20D85BE7-7B9D-4E65-881D-18192E80BA41@earthednet.org> Message-ID: <075FAA564F69441B921D2D459B6893F6@PAULD> > From: Earthednet-wp > > I've looked at icofx and they want a monthly fee. I guess I > could sign up for a month, make all my icons, then UN-sign > up. But I really don't like these monthly subscription strategies. Where do you see that? I just see one-time prices. Thirty bucks for a home license. I bought mine a few years ago, and it still works. -- Ciao, Paul D. DeRocco Paul mailto:pderocco at ix.netcom.com From lan.kc.macmail at gmail.com Fri Jan 16 20:57:07 2015 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Sat, 17 Jan 2015 09:57:07 +0800 Subject: Storing and saving a setting in a stand alone In-Reply-To: <54B92953.6090808@fourthworld.com> References: <54B92953.6090808@fourthworld.com> Message-ID: Jacque, it's more likely I'm confused. You and Richard are the experts here so I tend to be wary if I'm going against the flow. The original post simply asked about Saving User preferences. Unfortunately there was no mention of OS, nor was there any mention that it used to 'working for ages up until I upgraded to....' So I'm not sure that it's related to the bug you mention but that may be an extra factor. >From my perspective (NOT a full time programmer) I see the original post in the same light as: 'I have a 10,000+ line file I need to step through, I need to process each and every line, how do I do that." Although repeat with x = 1 to the number of lines in myDataFile is a valid and workable solution it is NOT the one that would be recommended by most LC experts. Repeat for each would be recommended. It has a known advantage. Prior to iOS, the Splash Screen approach was a very neat and tidy solution on all platforms, it still is on some platforms , BUT with the further iOSification of OS X it may be becoming an even less tidy solution. IMO (and I'm probably completely wrong) the recent in rush of interest in LC is a combination of the Community Edition, it's cross-platform abilities and the desire of people to build mobile Apps. For me (and it just might be me) I learn a LOT from online example. I plagiarise. I take the online example, see that it works then slowly modify it to suit my own particular needs. It really really frustrates me when I take an example, verbatim, and it doesn't work as advertised. IMO, it's even worse, and very counter productive to have an example that works perfectly, on desktop, work weeks or months adding features having it all work fine; then deploy to iOS and it fail. Richard, Here's one lesson: http://lessons.runrev .com/m/4071/l/17375-how-do-i-save-custom-properties-in-a-standalone-application Although if the reader bothered to read all the Comments they'd see that it doesn't work on iOS. I must be going crazy because I'm sure when I was last on that site there were tags listed including 'splash' and 'splash stack' but I don't see them any more. You can simply search the site for 'splash'. My original comment about removing them was a little over the top, a clear banner note at the top stating that the method will not work on iOS would suffice - as long as there was a link to a How-To that did work on ALL platforms. As for the User Guide there is only one mention of the Splash Stack approach in a Note on page 299. As you imply, that one Note is rather pitiful for a topic that would be far better served by an entire section covering the multitude of options available, a nice matrix table of what works and doesn't work on various platforms with the reference to the sub-section that spells out how to achieve option B on platforms W,X,Y and Z. From mwieder at ahsoftware.net Fri Jan 16 21:03:42 2015 From: mwieder at ahsoftware.net (Mark Wieder) Date: Fri, 16 Jan 2015 18:03:42 -0800 Subject: Script to Generate Concurrent Times In-Reply-To: References: <54B5FCEE.4020102@hindu.org> <6BF8872A-961E-4C94-9BCC-2ED02B0C3230@byu.edu> <54B722AB.7010206@hindu.org> <22-2051727564.20150114183038@ahsoftware.net> <54B72C5B.8020400@hindu.org> <54B87F57.6040605@hindu.org> Message-ID: <160170023541.20150116180342@ahsoftware.net> Pete- Friday, January 16, 2015, 9:30:21 AM, you wrote: > Even without an SQLite database in an application, I sometimes create an in > memory database just so I can issue SELECT statements to calculate dates > and times. OK - after my initial shock, I have to say that's pretty clever. -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From prothero at earthednet.org Fri Jan 16 21:09:14 2015 From: prothero at earthednet.org (EED-wp Email) Date: Fri, 16 Jan 2015 18:09:14 -0800 Subject: What icon editor do you use? In-Reply-To: <075FAA564F69441B921D2D459B6893F6@PAULD> References: <1CB8BCA3-B02B-4F54-945F-119ED47224CD@earthednet.org> <20D85BE7-7B9D-4E65-881D-18192E80BA41@earthednet.org> <075FAA564F69441B921D2D459B6893F6@PAULD> Message-ID: <8026B3A8-B1AA-4339-8CCA-EF46556FE2BE@earthednet.org> Paul You're right! Mixed it up with another one. $29.95 Bill William Prothero http://ed.earthednet.org On Jan 16, 2015, at 5:51 PM, Paul D. DeRocco wrote: >> From: Earthednet-wp >> >> I've looked at icofx and they want a monthly fee. I guess I >> could sign up for a month, make all my icons, then UN-sign >> up. But I really don't like these monthly subscription strategies. > > Where do you see that? I just see one-time prices. Thirty bucks for a home > license. I bought mine a few years ago, and it still works. > > -- > > Ciao, Paul D. DeRocco > Paul mailto:pderocco at ix.netcom.com > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From lan.kc.macmail at gmail.com Fri Jan 16 21:28:40 2015 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Sat, 17 Jan 2015 10:28:40 +0800 Subject: Getting the URL out of References: Message-ID: If the above format is EXACTLY as the data appears, i.e. --this is exact then this is a very easy to parse. If the line above and below the random URL is not as you've stated then there are other ways to skin the cat. on mouseUp put URL tPathToXMLFile into tData put false into tParse put empty into tOutput repeat for each line tLine in tData switch case (tLine = "]]>") put false into tParse break case (tLine = " References: <35C0AEAD-5C56-420C-810E-24FCACC70A46@mac.com> <54B72D04.5060901@hindu.org> <1421392020544-4687894.post@n4.nabble.com> <66AEE8C3-719D-47BD-BF2B-99641DFC3756@mac.com> Message-ID: On Fri, Jan 16, 2015 at 6:13 PM, Graham Samuel wrote: > It is so weird that I also I hope the mother ship explains in the end. The > bug is now reported to be ?awaiting build?. Given the (apparently) very > ?focused? nature of the bug, it seems miraculous that anyone found it, > least of all me! > But also beautifully highlights the fact that, given the broad spectrum of what people are doing with LC, irrespective of who you are, or what license you have, if you report a bug, and have a recipe, it will be squashed very rapidly. From ambassador at fourthworld.com Fri Jan 16 22:22:47 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 16 Jan 2015 19:22:47 -0800 Subject: Storing and saving a setting in a stand alone In-Reply-To: References: Message-ID: <54B9D587.3090708@fourthworld.com> This thread about "splash stacks" has me wondering: Among those who've never used HyperCard, how many people would think of saving data bound to the UI? -- Richard Gaskin Fourth World Systems Software Design and Development for Desktop, Mobile, and Web ____________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From scott at tactilemedia.com Fri Jan 16 22:26:00 2015 From: scott at tactilemedia.com (Scott Rossi) Date: Fri, 16 Jan 2015 19:26:00 -0800 Subject: Storing and saving a setting in a stand alone In-Reply-To: References: <54B92953.6090808@fourthworld.com> Message-ID: <475EBAA5-336D-4A05-B28B-DDC9568CB7C2@tactilemedia.com> Kay: The following won?t address the issue of the RunRev article you cite needing to be updated, which clearly needs to happen. But it might help you to know that there are really two different issues being addressed here: saving stack data, and making an updatable stack. While the splash screen approach CAN be used for saving data, its real power is more about making updatable stacks. If your goal is solely to save user data, you don?t need to use the splash screen method at all. You can write virtually any kind of data file (text, image, stack, etc) to a writable location, which, yes, can vary from platform to platform, but as mentioned in my earlier email, can be addressed using a common folder such as ?Documents?. Your app then reads and writes its data files to that location. The real benefit of the splash screen approach IMO is being able to make updatable stacks. As you know, an application cannot modify itself. The only update option with a standalone application is replace the entire standalone with an updated version. However, with LC you can create your application stack normally, leave it in stack format, and build a standalone whose sole purpose is to load your application stack. In this way it?s possible to treat your application stack as a data file that can be updated virtually at will without having to replace the standalone. This allows you to, for example, update the entire UI without building a new standalone Pretty neat stuff. But with iOS, this capability is limited because Apple frowns on remote loading of binary files (executable code). Does this mean you can?t update apps using the splash screen method? In theory, yes (though I?ve been dying to try to get a mobile app published that does this). But it doesn?t mean you CAN?T update your app, it just means you have to utilize the channels Apple provides to do your updates. As security and privacy concerns continue to grow, it shouldn?t be surprising that the viable locations for writing and saving files will become more restricted. This isn?t a LiveCode thing, this is an OS thing, and is something that RunRev has to jump through hoops to stay on top of. Your suggestion for creating a table of what data/stack options are possible on what platforms is a good one. And my guess is whatever code you?ve created to handle data saving/updating can still work, but with some modifications. Best Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On Jan 16, 2015, at 5:57 PM, Kay C Lan wrote: > Jacque, > > it's more likely I'm confused. You and Richard are the experts here so I > tend to be wary if I'm going against the flow. > > The original post simply asked about Saving User preferences. Unfortunately > there was no mention of OS, nor was there any mention that it used to > 'working for ages up until I upgraded to....' So I'm not sure that it's > related to the bug you mention but that may be an extra factor. > > From my perspective (NOT a full time programmer) I see the original post in > the same light as: 'I have a 10,000+ line file I need to step through, I > need to process each and every line, how do I do that." Although > > repeat with x = 1 to the number of lines in myDataFile > > is a valid and workable solution it is NOT the one that would be > recommended by most LC experts. Repeat for each would be recommended. It > has a known advantage. > > Prior to iOS, the Splash Screen approach was a very neat and tidy solution > on all platforms, it still is on some platforms , BUT with the further > iOSification of OS X it may be becoming an even less tidy solution. IMO > (and I'm probably completely wrong) the recent in rush of interest in LC is > a combination of the Community Edition, it's cross-platform abilities and > the desire of people to build mobile Apps. For me (and it just might be me) > I learn a LOT from online example. I plagiarise. I take the online example, > see that it works then slowly modify it to suit my own particular needs. It > really really frustrates me when I take an example, verbatim, and it > doesn't work as advertised. IMO, it's even worse, and very counter > productive to have an example that works perfectly, on desktop, work weeks > or months adding features having it all work fine; then deploy to iOS and > it fail. > > Richard, > > Here's one lesson: > > http://lessons.runrev > .com/m/4071/l/17375-how-do-i-save-custom-properties-in-a-standalone-application > > Although if the reader bothered to read all the Comments they'd see that it > doesn't work on iOS. > > I must be going crazy because I'm sure when I was last on that site there > were tags listed including 'splash' and 'splash stack' but I don't see them > any more. You can simply search the site for 'splash'. My original comment > about removing them was a little over the top, a clear banner note at the > top stating that the method will not work on iOS would suffice - as long as > there was a link to a How-To that did work on ALL platforms. > > As for the User Guide there is only one mention of the Splash Stack > approach in a Note on page 299. As you imply, that one Note is rather > pitiful for a topic that would be far better served by an entire section > covering the multitude of options available, a nice matrix table of what > works and doesn't work on various platforms with the reference to the > sub-section that spells out how to achieve option B on platforms W,X,Y and > Z. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Fri Jan 16 22:28:28 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 16 Jan 2015 19:28:28 -0800 Subject: Project Browser... BAAAAD! In-Reply-To: References: Message-ID: <54B9D6DC.6080009@fourthworld.com> Bob Sneidar wrote: > On Jan 16, 2015, at 15:42 , Richard Gaskin wrote: > >> I don't believe the Project Browser contains any code for saving. >> Are you using an auto-save plugin? > > No in fact I have gotten into the habit of using precious few > plugins. All I have right now besides the default plugins is > Datagrid Helper and TMAlign. Well, if the Project Browser didn't save it, and you didn't save it, and your plugins didn't save it, looks like we have a mystery to figure out what did. -- Richard Gaskin Fourth World Systems Software Design and Development for Desktop, Mobile, and Web ____________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From pete at lcsql.com Fri Jan 16 22:40:49 2015 From: pete at lcsql.com (Peter Haworth) Date: Fri, 16 Jan 2015 19:40:49 -0800 Subject: Storing and saving a setting in a stand alone In-Reply-To: <54B9D587.3090708@fourthworld.com> References: <54B9D587.3090708@fourthworld.com> Message-ID: Count 1 for me. Never considered saving user data in the application folder. Just seems weird. On Jan 16, 2015 7:23 PM, "Richard Gaskin" wrote: > This thread about "splash stacks" has me wondering: > > Among those who've never used HyperCard, how many people would think of > saving data bound to the UI? > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for Desktop, Mobile, and Web > ____________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From brahma at hindu.org Sat Jan 17 01:29:53 2015 From: brahma at hindu.org (Brahmanathaswami) Date: Fri, 16 Jan 2015 20:29:53 -1000 Subject: Script to Generate Concurrent Times In-Reply-To: References: <54B5FCEE.4020102@hindu.org> <6BF8872A-961E-4C94-9BCC-2ED02B0C3230@byu.edu> <54B722AB.7010206@hindu.org> <22-2051727564.20150114183038@ahsoftware.net> <54B72C5B.8020400@hindu.org> <54B87F57.6040605@hindu.org> Message-ID: <54BA0161.10708@hindu.org> I implemented my little algorithm... it works fine with a combo of nix TZ look ups + LC's native convert tools pretty straight forward. Thanks Devin! Do nix TZ times shift for the Daily Light Savings times when that goes on and off in various zones? see: http://dev.himalayanacademy.com/tests/dates.lc ######## CONVERT FUTURE TIME TO CONCURRENT FUTURE TIMES ############## # Generate a list of concurrent dates and times in other countries and cities # for a declared future Hawaii (HST; UTC1000) date and time put url "file:/home/devhap/public_html/tests/zones.txt" into tTargetCities # Next webinar: 1:30PM in Hawaii on February 15 put "Thu, 15 Feb 2015 13:30:00 -1000" into tNextWebinarInHawaii convert tNextWebinarInHawaii to seconds # get the current time in Hawaii put "America/Honolulu" into $TZ put shell("date -R") into tCurrentTimeInHawaii # the -R flag fetches the RSA convert tCurrentTimeInHawaii to seconds # substract current from future and get the time until next webinar increment put (tNextWebinarInHawaii - tCurrentTimeInHawaii) into tFutureIncrement # get a list of times now for several cities repeat for each line x in tTargetCities put x into $TZ put shell("date -R") into tDTstring # add the increment convert tDTstring to seconds put (tDtstring + tFutureIncrement) into tFutureDTstring # back to human readable: convert tFutureDTstring to internet date put x & ": " & tFutureDTstring & "
" after tTimeInOtherCities end repeat Peter Haworth wrote: > If, by chance, an SQLite database is involved in your application, its > strftime() function has a lot of very powerful date adjustment/conversion > tools which might help. > > Even without an SQLite database in an application, I sometimes create an in > memory database just so I can issue SELECT statements to calculate dates > and times. From richmondmathewson at gmail.com Sat Jan 17 03:39:02 2015 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 17 Jan 2015 10:39:02 +0200 Subject: What icon editor do you use? In-Reply-To: <1CB8BCA3-B02B-4F54-945F-119ED47224CD@earthednet.org> References: <1CB8BCA3-B02B-4F54-945F-119ED47224CD@earthednet.org> Message-ID: <54BA1FA6.2020601@gmail.com> On 17/01/15 03:08, William Prothero wrote: > Folks: > I?m at a place where I need to make icons for my App. There are a lot of icon editors and it seems some are not updated (for windows) to make the larger size icons Win 7 and 8 want. I note an app named Iconian and Sketch, which is free, has a nice export plugin for Mac icons. That?s good and I have it, but I need PC icons too. > > Any suggestions would be much appreciated. > Best > Bill > > http://download.cnet.com/Ico-Converter/3000-2195_4-75617429.html http://download.cnet.com/Image-Icon-Converter/3000-2195_4-10262097.html http://www.canadiancontent.net/tech/download/CoffeeCup_Free_Icon_Studio.html Richmond. From shawnlivecode at gmail.com Sat Jan 17 09:22:16 2015 From: shawnlivecode at gmail.com (Shawn Blc) Date: Sat, 17 Jan 2015 08:22:16 -0600 Subject: What icon editor do you use? In-Reply-To: <54BA1FA6.2020601@gmail.com> References: <1CB8BCA3-B02B-4F54-945F-119ED47224CD@earthednet.org> <54BA1FA6.2020601@gmail.com> Message-ID: I often use: http://iconverticons.com/online/ On Sat, Jan 17, 2015 at 2:39 AM, Richmond wrote: > On 17/01/15 03:08, William Prothero wrote: > >> Folks: >> I?m at a place where I need to make icons for my App. There are a lot of >> icon editors and it seems some are not updated (for windows) to make the >> larger size icons Win 7 and 8 want. I note an app named Iconian and Sketch, >> which is free, has a nice export plugin for Mac icons. That?s good and I >> have it, but I need PC icons too. >> >> Any suggestions would be much appreciated. >> Best >> Bill >> >> >> > http://download.cnet.com/Ico-Converter/3000-2195_4-75617429.html > > http://download.cnet.com/Image-Icon-Converter/3000-2195_4-10262097.html > > http://www.canadiancontent.net/tech/download/CoffeeCup_ > Free_Icon_Studio.html > > Richmond. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pmbrig at gmail.com Sat Jan 17 10:06:17 2015 From: pmbrig at gmail.com (Peter M. Brigham) Date: Sat, 17 Jan 2015 10:06:17 -0500 Subject: Find all links in fld In-Reply-To: References: Message-ID: <212FDC2E-D60E-490F-A7FE-DCDBD68AF58F@gmail.com> How about this: on mouseup put fld "fld1" into tList replace space with cr in tList filter tList with "http*" put tList end mouseup Gives a list of all the URLs in fld 'fld1". Is that what you want? -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig On Jan 16, 2015, at 3:19 PM, Shawn Blc wrote: > I'm still struggling with this, so I'm asking for a little help. > > I'm trying to extract the links from the field. All the links will start > the same, but the last 5 digits will be different. > > *on* mouseUp > > *put* URL "http://mydomainA.com/rss.php" into tURL > > *put* tURL into fld "fld1" > > *find* string "https://www.domainB.com/show.php?l=0&u=156&id=" in fld > "fld1" > > --- I'll need the whole URL > https://www.domainB.com/show.php?l=0&u=156&id=xxxx > > -- notice the xxxx -- that changes from link to link > > *put* the foundText into tFound > > *put* tFound into fld "fld2" > > *end* mouseUp > > > When I add a repeat it never stops and locks up LC. but I'm still missing > the xxxx. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pmbrig at gmail.com Sat Jan 17 10:08:34 2015 From: pmbrig at gmail.com (Peter M. Brigham) Date: Sat, 17 Jan 2015 10:08:34 -0500 Subject: Find all links in fld In-Reply-To: References: <54B9889D.3030405@pdslabs.net> <54B98DBA.3080504@hyperactivesw.com> Message-ID: <055BA90C-0A31-4016-99FC-E7CA556FB043@gmail.com> On Jan 16, 2015, at 5:29 PM, Shawn Blc wrote: > Here's what I ended up with , with the extra php file (one for the rss, one > to clean up the html a bit [that file was 13 lines long]). Total lines = > 20 lines. > > on mouseUp > set the itemDelimiter to "
" > put URL "http://mydomain.com/cleanHTML.php" into tURL > put tURL into fld "fld4" > replace "
" with return in fld "fld4" > put any line of fld "fld4" into fld "fld3" > end mouseUp OIC, you want a random URL. Then: on mouseup put fld "fld1" into tList replace space with cr in tList filter tList with "http*" put any line of tList end mouseup -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig From dochawk at gmail.com Sat Jan 17 10:40:03 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Sat, 17 Jan 2015 07:40:03 -0800 Subject: bringing a field of a sub-sub group to the for for editing Message-ID: I have fields in generated pages which are editable. The pages are constructed by placing groups, which in turn all belong to another (turned out that, at least in the IDE, it is far, far faster to delete that one group than to loop & delete). Anyway, some of the fields can be multi-ine, and could end up with more lines. This all means that if I change the height of the field to the formattedHeight, that the top portion will remain visible, but that the bottom will be below the next formatted group. I could do a big song & dance to raise and lower groups, but I'm thinking it might be cleaner to have a separate stack that positions itself over the single field, and then sets the text dispatches closeField or exitField to the new field. But this in turn means, I suppose, adjusting enterField in general to send it its close messages. Has anyone else dealt with something similar? -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From prothero at earthednet.org Sat Jan 17 12:57:29 2015 From: prothero at earthednet.org (William Prothero) Date: Sat, 17 Jan 2015 09:57:29 -0800 Subject: App wrapper and error messages Message-ID: Folks: I?m using App Wrapper to set up my App for the app store. I get 2 error messages: 1. This App is not being sandboxed. 2. Unable to fix framework ?Chromium Embedded Framework.framework?. In this case, the report screen indicates ?broken bundle?. I?m not sure how to sandbox my app. Also, I wonder how I can fix the CEF library so the App store will accept it. Hints or directions would be appreciated. Best, Bill William A. Prothero http://es.earthednet.org/ From prothero at earthednet.org Sat Jan 17 13:27:46 2015 From: prothero at earthednet.org (William Prothero) Date: Sat, 17 Jan 2015 10:27:46 -0800 Subject: App wrapper and error messages In-Reply-To: References: Message-ID: <92ECF3AE-62F0-4080-8EC6-4E76C42D798F@earthednet.org> BTW, I?m on OSX Yosemite and LiveCode V7.0.2(rc1) Bill > On Jan 17, 2015, at 9:57 AM, William Prothero wrote: > > Folks: > I?m using App Wrapper to set up my App for the app store. I get 2 error messages: > 1. This App is not being sandboxed. > 2. Unable to fix framework ?Chromium Embedded Framework.framework?. In this case, the report screen indicates ?broken bundle?. > > I?m not sure how to sandbox my app. Also, I wonder how I can fix the CEF library so the App store will accept it. > > Hints or directions would be appreciated. > Best, > Bill > > > > William A. Prothero > http://es.earthednet.org/ > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From smudge.andy at googlemail.com Sat Jan 17 13:36:35 2015 From: smudge.andy at googlemail.com (AndyP) Date: Sat, 17 Jan 2015 10:36:35 -0800 (PST) Subject: App wrapper and error messages In-Reply-To: References: Message-ID: <1421519795774-4687944.post@n4.nabble.com> Hi Bill, there was a problem with AppWrapper and Mavericks which has probably carried over to Yosemite. http://www.ohanaware.com/support/mavericksCodesign.php ----- Andy Piddock My software never has bugs. It just develops random features. Copy the new cloud space, get your free 15GB space now: Get Copy Script editor Themer for LC http://2108.co.uk PointandSee is a FREE simple but full featured under cursor colour picker / finder. http://www.pointandsee.co.uk - made with LiveCode -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/App-wrapper-and-error-messages-tp4687942p4687944.html Sent from the Revolution - User mailing list archive at Nabble.com. From rdimola at evergreeninfo.net Sat Jan 17 14:11:40 2015 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Sat, 17 Jan 2015 14:11:40 -0500 Subject: Garbage Collection/Old Data in stack In-Reply-To: References: <54B9D587.3090708@fourthworld.com> Message-ID: <000a01d03289$6cb14690$4613d3b0$@net> I was making a stub stack. I started with my original stack and deleted all the cards except 1. The resulting stack is 3MB. I then deleted all the scripts and objects on the remaining card and still 3MB. I Delete all the scripts from the stack and still 3MB. I opened that stack in a text editor and found all sorts of images and custom properties for cards that no longer exist. How can I clean up this stack? Are there other orphans in my main stack and other stacks that I don't know about? Am I missing something here or is there some stack corruption that has creeped in over time? Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net From devin_asay at byu.edu Sat Jan 17 14:15:28 2015 From: devin_asay at byu.edu (Devin Asay) Date: Sat, 17 Jan 2015 19:15:28 +0000 Subject: Project Browser... BAAAAD! In-Reply-To: <54B9D6DC.6080009@fourthworld.com> References: <54B9D6DC.6080009@fourthworld.com> Message-ID: On Jan 16, 2015, at 8:28 PM, Richard Gaskin wrote: > Bob Sneidar wrote: > > > On Jan 16, 2015, at 15:42 , Richard Gaskin wrote: > > > >> I don't believe the Project Browser contains any code for saving. > >> Are you using an auto-save plugin? > > > > No in fact I have gotten into the habit of using precious few > > plugins. All I have right now besides the default plugins is > > Datagrid Helper and TMAlign. > > Well, if the Project Browser didn't save it, and you didn't save it, and your plugins didn't save it, looks like we have a mystery to figure out what did. Are you sure you didn?t inadvertently move the missing group inside another group? (Of course, this is going back to the original question, not the Mystery of the Saved Stack.) Devin Devin Asay Learn to code with LiveCode University http://university.livecode.com From mark.rauterkus at gmail.com Sat Jan 17 14:35:44 2015 From: mark.rauterkus at gmail.com (Mark Rauterkus) Date: Sat, 17 Jan 2015 14:35:44 -0500 Subject: Storing and saving a setting in a stand alone Message-ID: Hi, Q asked: Among those who've never used HyperCard, how many people would think of saving data bound to the UI? My $.02: LOTS and LOTS of mere mortals. -- Ta. Mark Rauterkus Mark.Rauterkus at gmail.com PPS Summer Dreamers' Swim and Water Polo Camp Head Coach Varsity Boys Swim Coach, Pittsburgh Obama Academy Head Water Polo Coach, Carnegie Mellon University Women's Club Team Pittsburgh Combined Water Polo Team http://Rauterkus.blogspot.com http://FixPA.wikia.com http://CLOH.wikia.com 412 298 3432 = cell From richmondmathewson at gmail.com Sat Jan 17 14:35:40 2015 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 17 Jan 2015 21:35:40 +0200 Subject: Garbage Collection/Old Data in stack In-Reply-To: <000a01d03289$6cb14690$4613d3b0$@net> References: <54B9D587.3090708@fourthworld.com> <000a01d03289$6cb14690$4613d3b0$@net> Message-ID: <54BAB98C.2090004@gmail.com> On 17/01/15 21:11, Ralph DiMola wrote: > I was making a stub stack. I started with my original stack and deleted all > the cards except 1. The resulting stack is 3MB. I then deleted all the > scripts and objects on the remaining card and still 3MB. I Delete all the > scripts from the stack and still 3MB. I opened that stack in a text editor > and found all sorts of images and custom properties for cards that no longer > exist. > > How can I clean up this stack? Are there other orphans in my main stack and > other stacks that I don't know about? Am I missing something here or is > there some stack corruption that has creeped in over time? > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net > > Frankly, I don't know. I would do this: Make a NEW stack with one card and copy all the stuff from the card you wish to preserve in the other stack onto it . . . Primitive, but it would work. Richmond. From ambassador at fourthworld.com Sat Jan 17 14:40:48 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 17 Jan 2015 11:40:48 -0800 Subject: Storing and saving a setting in a stand alone In-Reply-To: References: Message-ID: <54BABAC0.7000803@fourthworld.com> Mark Rauterkus wrote: > Q asked: Among those who've never used HyperCard, how many people would > think of saving data bound to the UI? > > My $.02: LOTS and LOTS of mere mortals. I can see the attraction to it, esp. in cases where you're building a quickie ad hoc solution with no vision for later versions. But I can't think of any app that's ever attempted to save data to itself since OS 9 was put to rest so long ago. Where would folks even get the idea? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From richmondmathewson at gmail.com Sat Jan 17 14:43:57 2015 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 17 Jan 2015 21:43:57 +0200 Subject: Storing and saving a setting in a stand alone In-Reply-To: <54BABAC0.7000803@fourthworld.com> References: <54BABAC0.7000803@fourthworld.com> Message-ID: <54BABB7D.6030301@gmail.com> On 17/01/15 21:40, Richard Gaskin wrote: > Mark Rauterkus wrote: >> Q asked: Among those who've never used HyperCard, how many people would >> think of saving data bound to the UI? >> >> My $.02: LOTS and LOTS of mere mortals. > > I can see the attraction to it, esp. in cases where you're building a > quickie ad hoc solution with no vision for later versions. > > But I can't think of any app that's ever attempted to save data to > itself since OS 9 was put to rest so long ago. Where would folks even > get the idea? > The 'only' possible advantage I can see with an app that saves data to itself is if it is a portable app on something like a USB drive. I can imagine a scenario where somebody uses an app both at work and at home and for security reasons carries the app around in their pocket on a USB flash-drive or an SD card and wants the data to ride with it. Richmond. From jacque at hyperactivesw.com Sat Jan 17 14:53:34 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 17 Jan 2015 13:53:34 -0600 Subject: Garbage Collection/Old Data in stack In-Reply-To: <000a01d03289$6cb14690$4613d3b0$@net> References: <54B9D587.3090708@fourthworld.com> <000a01d03289$6cb14690$4613d3b0$@net> Message-ID: <54BABDBE.7040700@hyperactivesw.com> On 1/17/2015 1:11 PM, Ralph DiMola wrote: > I was making a stub stack. I started with my original stack and deleted all > the cards except 1. The resulting stack is 3MB. I then deleted all the > scripts and objects on the remaining card and still 3MB. I Delete all the > scripts from the stack and still 3MB. I opened that stack in a text editor > and found all sorts of images and custom properties for cards that no longer > exist. > > How can I clean up this stack? Are there other orphans in my main stack and > other stacks that I don't know about? Am I missing something here or is > there some stack corruption that has creeped in over time? Choose to show "Livecode UI Elements in Lists" from the View menu. Then start checking the custom property sets of the stack, cards, and objects. It's likely you're seeing LC custom props used during development. The standalone builder strips these out, but they stay in the stack. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From ambassador at fourthworld.com Sat Jan 17 15:13:49 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 17 Jan 2015 12:13:49 -0800 Subject: Extended Log Format or custom? Message-ID: <54BAC27D.3070003@fourthworld.com> I'm adding more extensive logging to some server apps, and it would be helpful to hear your opinions about formats. I'm tempted to use the Extended Log Format commonly used by Apache and many other server apps: http://www.w3.org/TR/WD-logfile.html I like the attraction of being able to say that my logs conform to a well-regarded standard. But on the flipside, I think that standard is crap. :) Most of it's not bad, but the time part of it is horrible, with timestamps expressed like: [17/Jan/2015:00:06:48 -0500] I'd prefer to use LC's internet date format: Sat, 17 Jan 2015 12:01:35 -0800 Many log analysis workflows use sed or awk, which make it easy to work with white space as delimiters. But since both time formats are multi-word expressions, the brackets are needed to identify the boundaries of the timestamp. At a minimum I'm tempted to leave off the brackets, and to use LC's internet date format instead of the format logs commonly use, which may be slightly more compact but isn't automatically convertible into other formats with LC's convert command, requiring extra processing when looking for date ranges. Going further, I'm inclined to consider tabs as delimiters rather than spaces, so multi-word values like the timestamp and conceivably others can be quickly identified as a single chunk. Right now most of the log analysis done with these apps is done in other LiveCode-based tools, so it would seem the choice is easily in favor of a custom format optimized for parsing and sorting in LC. But in all fairness, it's usually a good move to adopt common standards whenever possible, even at some cost to efficiency, since it allows the possibility of interoperability with other tools down the road if needed. What would you do? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From mwieder at ahsoftware.net Sat Jan 17 15:33:17 2015 From: mwieder at ahsoftware.net (Mark Wieder) Date: Sat, 17 Jan 2015 12:33:17 -0800 Subject: Storing and saving a setting in a stand alone In-Reply-To: <54BABAC0.7000803@fourthworld.com> References: <54BABAC0.7000803@fourthworld.com> Message-ID: <7236597289.20150117123317@ahsoftware.net> Richard- Saturday, January 17, 2015, 11:40:48 AM, you wrote: > Mark Rauterkus wrote: >> Q asked: Among those who've never used HyperCard, how many people would >> think of saving data bound to the UI? >> >> My $.02: LOTS and LOTS of mere mortals. > I can see the attraction to it, esp. in cases where you're building a > quickie ad hoc solution with no vision for later versions. I'm with Mark on this. The problem as I see it is that you build a stack in the IDE and it happily stores data into fields, onto cards, into custom props, makes other changes... and then you build a standalone app and it doesn't work. The IDE sets the expectation that everything is working properly and then there's a cognitive leap to dealing with persistence, especially with mobile apps. -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From mwieder at ahsoftware.net Sat Jan 17 15:39:39 2015 From: mwieder at ahsoftware.net (Mark Wieder) Date: Sat, 17 Jan 2015 12:39:39 -0800 Subject: Garbage Collection/Old Data in stack In-Reply-To: <000a01d03289$6cb14690$4613d3b0$@net> References: <54B9D587.3090708@fourthworld.com> <000a01d03289$6cb14690$4613d3b0$@net> Message-ID: <132236978954.20150117123939@ahsoftware.net> Ralph- Saturday, January 17, 2015, 11:11:40 AM, you wrote: > How can I clean up this stack? Are there other orphans in my main stack and > other stacks that I don't know about? Am I missing something here or is > there some stack corruption that has creeped in over time? Did you try compacting the stack? -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From jhj at jhj.com Sat Jan 17 15:52:35 2015 From: jhj at jhj.com (Jerry Jensen) Date: Sat, 17 Jan 2015 12:52:35 -0800 Subject: Storing and saving a setting in a stand alone In-Reply-To: <54B9D587.3090708@fourthworld.com> References: <54B9D587.3090708@fourthworld.com> Message-ID: <3F191677-42FE-4399-AE9F-3F6A2BC891A4@jhj.com> On Jan 16, 2015, at 7:22 PM, Richard Gaskin wrote: > Among those who've never used HyperCard, how many people would think of saving data bound to the UI? Harumph. Programs go in the card reader and data goes on the tape drive. From jacque at hyperactivesw.com Sat Jan 17 16:07:12 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 17 Jan 2015 15:07:12 -0600 Subject: Extended Log Format or custom? In-Reply-To: <54BAC27D.3070003@fourthworld.com> References: <54BAC27D.3070003@fourthworld.com> Message-ID: <54BACF00.1060601@hyperactivesw.com> On 1/17/2015 2:13 PM, Richard Gaskin wrote: > Right now most of the log analysis done with these apps is done in other > LiveCode-based tools, so it would seem the choice is easily in favor of > a custom format optimized for parsing and sorting in LC. > > But in all fairness, it's usually a good move to adopt common standards > whenever possible, even at some cost to efficiency, since it allows the > possibility of interoperability with other tools down the road if needed. > > What would you do? LiveCode. If it's just for your own use, make it easy. When you hit the tipping point and you're using more non-LC tools than LiveCode ones, change the code, which may never happen. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From pete at lcsql.com Sat Jan 17 16:18:10 2015 From: pete at lcsql.com (Peter Haworth) Date: Sat, 17 Jan 2015 13:18:10 -0800 Subject: How to access a file on a remote computer Message-ID: Looking for some advice on how to access a file on a remote computer. Both computers in question are on OSX. I'm getting file locations out of a text file on the local computer that look like URLs, e.g. "file://localhost/" with spaces replaced by %20, etc. Although the URL includes "localhost", the files are actually on another computer. If I look at the System Settings Sharing options for the remote computer, it tells me it can be accessed as "Petes-iMac.local" or as "afp:petes-imac". I tried replacing "localhost" with "Petes-iMac.local" in the URL and used "get URL..." but got "can't open file" in the result. Also tried "afp://petes-imac/" with the same result I tried libURLDownloadToFile with "file://Petes-imac.local", file://petes-imac", and "afp://petes-imac"and used the callback message to check the URLStatus (= error) and libURLErrorData to get the error (=invalid URL). The drive and folder containing the files have been set up for sharing on Petes-iMac and I can see them and open them in the Finder from the other computer. Any suggestions on how to make this work? Thanks, Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From dick.kriesel at mail.com Sat Jan 17 16:45:42 2015 From: dick.kriesel at mail.com (Dick Kriesel) Date: Sat, 17 Jan 2015 13:45:42 -0800 Subject: Extended Log Format or custom? In-Reply-To: <54BAC27D.3070003@fourthworld.com> References: <54BAC27D.3070003@fourthworld.com> Message-ID: <92DC4084-2425-41F5-B95F-0F03DB7055F7@mail.com> > On Jan 17, 2015, at 12:13 PM, Richard Gaskin wrote: > > What would you do? I'd skim through the ELFF doc for something to try. How about using ELFF fields date and time? "Dates are recorded in the format YYYY-MM-DD where YYYY, MM and DD stand for the numeric year, month and day respectively. All dates are specified in GMT. This format is chosen to assist collation using sort." "Times are recorded in the form HH:MM, HH:MM:SS or HH:MM:SS.S where HH is the hour in 24 hour format, MM is minutes and SS is seconds. All times are specified in GMT." And/or, how about extending your format using an app-specific field, like x-longSeconds? Otherwise, I?d probably Do It My Way. -- Dick From ethanlish at gmail.com Sat Jan 17 16:54:43 2015 From: ethanlish at gmail.com (Ethan Lish) Date: Sat, 17 Jan 2015 13:54:43 -0800 (PST) Subject: Multilingual UI Message-ID: <1421531682651.c97ada64@Nodemailer> LiveCode Gurus, Is there a defined approach, tool or general guidance on how best to design & develop a livecode app to support a multilingual user interface.? Of course a simple technique would be to centralize all text strings a select the string to present. This assumes a uniform text width.? Another approach would be to maintain a separate UI for each deployment. This has a heavy maintenance overhead.? Other thoughts or approaches would be appreciated? E ? Ethan at Lish.net240.876.1389 From pete at lcsql.com Sat Jan 17 17:35:13 2015 From: pete at lcsql.com (Peter Haworth) Date: Sat, 17 Jan 2015 14:35:13 -0800 Subject: Getting the URL out of References: Message-ID: I can't resist posting a regex solution. Have to admit I'm not entirely clear about what the OP wants to achieve, but I think it's to get hold of a random URL from an xml file so here goes. lcSQL_GetRegexMatches is a library function I use all the time to find all the matches of a regex in a string. function getRandomURL pxml constant kRegex="https://www.domainB.com/show.php\?l=0&u=156&id=\d*" --Need to escape the "?" local tMatches put lcSQL_GetRegexMatches(pxml,kRegex) into tMatches if tMatches is not empty then get the random of the number of lines of tMatches return char (item 1 of line it of tMatches) to (item 2 of line it of tMatches) of pxml else return empty end if end getRandomURL function lcSQL_GetRegexMatches ptext,pregex /* Finds all the matches of pregex in ptext and returns a list of the start,end char positions */ local tOffset,tStart,tEnd,tList,tLength --Make sure the whole regex string is a capture group if not (pregex begins with "(" and pregex ends with ")") then put "("before pregex put ")" after pregex end if --Make sure the regex is valid try get matchChunk(ptext,pregex,tStart,tEnd) catch e answer "Invalid regex expression:" return empty end try put 1 into tOffset put the length of ptext into tLength repeat if matchChunk(char tOffset to tLength of ptext,pregex,tStart,tEnd) then put tStart+tOffset-1, tEnd+tOffset-1 & return after tList add tEnd to tOffset else exit repeat end if end repeat return tList end lcSQL_GetRegexMatches Of course, if you knew in advance how may URLs were in the xml, you could do the whole thing in one call to MatchChunk with the appropriate number of start/end variables. Which reminds me that it would be so nice to have the matchChunkvariable be a list as in the above, or a numerically-keyed array with each key containing the comma-separated start and end positions, or just two variables with the first one holding a comma-separted list of the start positions and the second one holding a comma-separated list of the end positions. That would all cause backwards compatibility issues so I guess there'd have to be a new function, matchAllChunks maybe. Or you could ask Thierry when his new regex library will be ready. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Fri, Jan 16, 2015 at 6:28 PM, Kay C Lan wrote: > If the above format is EXACTLY as the data appears, i.e. > > --random URL you want to capture > ]]> --this is exact > > then this is a very easy to parse. If the line above and below the random > URL is not as you've stated then there are other ways to skin the cat. > > on mouseUp > put URL tPathToXMLFile into tData > put false into tParse > put empty into tOutput > repeat for each line tLine in tData > switch > case (tLine = "]]>") > put false into tParse > break > case (tLine = " put true into tParse > break > case (tParse = false) > --don't need to do anything > break > case (tParse = true) > put tLine & cr after tOutput > break > default --this is here mainly for the development process > answer warning "A Case I haven't considered." titled "Switch > Error" > breakpoint > end switch > end repeat > --strip the trailing cr > put word 1 to -1 of tOutput into tOutput > --put tOutput into where ever you like > end mouseUp > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From rdimola at evergreeninfo.net Sat Jan 17 17:46:16 2015 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Sat, 17 Jan 2015 17:46:16 -0500 Subject: Garbage Collection/Old Data in stack In-Reply-To: <132236978954.20150117123939@ahsoftware.net> References: <54B9D587.3090708@fourthworld.com> <000a01d03289$6cb14690$4613d3b0$@net> <132236978954.20150117123939@ahsoftware.net> Message-ID: <000b01d032a7$679e9e00$36dbda00$@net> Thank for all the suggestions. Compact did nothing. The properties and images are from long gone cards. They were not rev stack properties. Other properties are for fields and buttons that were on the deleted cards. This stack now has one empty card and it is 2MB. I know I could just recreate it but what about my plethora of other stacks? Do they have useless weight? These orphaned images are making my standalones larger than they should be. This is more of a problem for mobile than desktop. I guess it's time for a Bug Report. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net Phone: 518-636-3998 Ex:11 Cell: 518-796-9332 -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Mark Wieder Sent: Saturday, January 17, 2015 3:40 PM To: How to use LiveCode Subject: Re: Garbage Collection/Old Data in stack Ralph- Saturday, January 17, 2015, 11:11:40 AM, you wrote: > How can I clean up this stack? Are there other orphans in my main > stack and other stacks that I don't know about? Am I missing something > here or is there some stack corruption that has creeped in over time? Did you try compacting the stack? -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Sat Jan 17 18:27:55 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 17 Jan 2015 15:27:55 -0800 Subject: Garbage Collection/Old Data in stack In-Reply-To: <000b01d032a7$679e9e00$36dbda00$@net> References: <000b01d032a7$679e9e00$36dbda00$@net> Message-ID: <54BAEFFB.6000002@fourthworld.com> Ralph DiMola wrote: > Thank for all the suggestions. Compact did nothing. The properties and > images are from long gone cards. They were not rev stack properties. Other > properties are for fields and buttons that were on the deleted cards. This > stack now has one empty card and it is 2MB. I know I could just recreate it > but what about my plethora of other stacks? Do they have useless weight? > These orphaned images are making my standalones larger than they should be. > This is more of a problem for mobile than desktop. I guess it's time for a > Bug Report. Maybe. Any unplaced backgrounds in the stack file? Did you check all custom property sets of all objects? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From prothero at earthednet.org Sat Jan 17 18:36:38 2015 From: prothero at earthednet.org (William Prothero) Date: Sat, 17 Jan 2015 15:36:38 -0800 Subject: Storing and saving a setting in a stand alone In-Reply-To: <3F191677-42FE-4399-AE9F-3F6A2BC891A4@jhj.com> References: <54B9D587.3090708@fourthworld.com> <3F191677-42FE-4399-AE9F-3F6A2BC891A4@jhj.com> Message-ID: <05D153BB-01D0-490B-AF9F-1EEB46FCE8EC@earthednet.org> It wouldn?t occur to me to save data within the executable code (UI) area. For my purposes, I?d only save data in a separate file, mysql light db, or online mysql db. Apple has a folder in the Library folder called ?Application Support?. That?s where I put preferences, licenses, and stuff that doesn?t change after installation. For student work, I save images and files to the desktop, or in some cases, to a server. In the past the server contained text, image, and database files. In the future I?ll save anything I want to go onto the server in a database (perhaps not image files, tho). If I want data to be available from multiple machines and locations, I?d put it on a server, although a USB stick that?s carried around would seem a reasonable choice too. Best, Bill > On Jan 17, 2015, at 12:52 PM, Jerry Jensen wrote: > > > On Jan 16, 2015, at 7:22 PM, Richard Gaskin wrote: >> Among those who've never used HyperCard, how many people would think of saving data bound to the UI? > > Harumph. Programs go in the card reader and data goes on the tape drive. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From mwieder at ahsoftware.net Sat Jan 17 17:42:50 2015 From: mwieder at ahsoftware.net (Mark Wieder) Date: Sat, 17 Jan 2015 14:42:50 -0800 Subject: Extended Log Format or custom? In-Reply-To: <54BAC27D.3070003@fourthworld.com> References: <54BAC27D.3070003@fourthworld.com> Message-ID: <81244369419.20150117144250@ahsoftware.net> Richard- Saturday, January 17, 2015, 12:13:49 PM, you wrote: > Right now most of the log analysis done with these apps is done in other > LiveCode-based tools, so it would seem the choice is easily in favor of > a custom format optimized for parsing and sorting in LC. > But in all fairness, it's usually a good move to adopt common standards > whenever possible, even at some cost to efficiency, since it allows the > possibility of interoperability with other tools down the road if needed. There's your dilemma. I'd go with the option that makes your log analysis easier, and then have a quick routine that processes the dates in your log for export to another format as needed. The option of interoperability makes sense when and if it's needed, but I wouldn't consider it a tipping point right now. Just make sure you don't paint yourself into a corner. -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From ambassador at fourthworld.com Sat Jan 17 18:51:39 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 17 Jan 2015 15:51:39 -0800 Subject: Extended Log Format or custom? In-Reply-To: <81244369419.20150117144250@ahsoftware.net> References: <81244369419.20150117144250@ahsoftware.net> Message-ID: <54BAF58B.9010203@fourthworld.com> Mark Wieder wrote: > Saturday, January 17, 2015, 12:13:49 PM, you wrote: > >> Right now most of the log analysis done with these apps is done in other >> LiveCode-based tools, so it would seem the choice is easily in favor of >> a custom format optimized for parsing and sorting in LC. > >> But in all fairness, it's usually a good move to adopt common standards >> whenever possible, even at some cost to efficiency, since it allows the >> possibility of interoperability with other tools down the road if needed. > > There's your dilemma. I'd go with the option that makes your log > analysis easier, and then have a quick routine that processes the > dates in your log for export to another format as needed. The option > of interoperability makes sense when and if it's needed, but I > wouldn't consider it a tipping point right now. Just make sure you > don't paint yourself into a corner. Thanks, Mark. You make a good point there: it's easy enough to make a converter tool (esp. since the fields will be the same, it's mostly just the delimiters and time format I'm taking liberties with), and far better to handle it in non-real-time than to waste clock cycles on a server. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From dochawk at gmail.com Sat Jan 17 18:58:51 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Sat, 17 Jan 2015 15:58:51 -0800 Subject: screen math, stacks, fields, and effective screenRect Message-ID: I'm trying to figure out screen math to set the top of a helper stack to the top of a field, and the like. The math doesn't seem to make sense. It would *seem* to me that the top of this stack + the top of me should give the top of the field in screen coordinates. But it doesn't So I tried effective rect and the like. How can the effective top of a stack be *smaller* than the stack itself (higher on the screen). Shouldn't it be greater due to the window handle/bar, whatever that is? -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From dochawk at gmail.com Sat Jan 17 19:00:17 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Sat, 17 Jan 2015 16:00:17 -0800 Subject: Garbage Collection/Old Data in stack In-Reply-To: <54BAEFFB.6000002@fourthworld.com> References: <000b01d032a7$679e9e00$36dbda00$@net> <54BAEFFB.6000002@fourthworld.com> Message-ID: On Sat, Jan 17, 2015 at 3:27 PM, Richard Gaskin wrote: > These orphaned images are making my standalones larger than they should be. >> This is more of a problem for mobile than desktop. I guess it's time for a >> Bug Report. >> > > Maybe. Any unplaced backgrounds in the stack file? > > Did you check all custom property sets of all objects? That they can't be found in the application browser is a bug all by itself, even if there are scripty ways to hunt it down. (and may God have mercy on the project browser's soul!) -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From scott at tactilemedia.com Sat Jan 17 19:17:46 2015 From: scott at tactilemedia.com (Scott Rossi) Date: Sat, 17 Jan 2015 16:17:46 -0800 Subject: screen math, stacks, fields, and effective screenRect In-Reply-To: References: Message-ID: <09669BF4-765E-4233-82D0-7B5DD9C33B49@tactilemedia.com> The difference you're seeing is likely due to the height of the stack including its titlebar versus the height of the card region only of the stack. You might try seeing the entries in the dictionary for localLoc and globalLoc, used for converting global positions to local, and vice versa. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On Jan 17, 2015, at 3:58 PM, Dr. Hawkins wrote: > I'm trying to figure out screen math to set the top of a helper stack to > the top of a field, and the like. > > The math doesn't seem to make sense. > > It would *seem* to me that > the top of this stack + the top of me > > should give the top of the field in screen coordinates. > > But it doesn't > > So I tried effective rect and the like. > > How can the effective top of a stack be *smaller* than the stack itself > (higher on the screen). Shouldn't it be greater due to the window > handle/bar, whatever that is? > > -- > Dr. Richard E. Hawkins, Esq. > (702) 508-8462 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dochawk at gmail.com Sat Jan 17 20:40:45 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Sat, 17 Jan 2015 17:40:45 -0800 Subject: screen math, stacks, fields, and effective screenRect In-Reply-To: <09669BF4-765E-4233-82D0-7B5DD9C33B49@tactilemedia.com> References: <09669BF4-765E-4233-82D0-7B5DD9C33B49@tactilemedia.com> Message-ID: On Sat, Jan 17, 2015 at 4:17 PM, Scott Rossi wrote: > The difference you're seeing is likely due to the height of the stack > including its titlebar versus the height of the card region only of the > stack. > > You might try seeing the entries in the dictionary for localLoc and > globalLoc, used for converting global positions to local, and vice versa. > Those are definitely what I needed. But I'm still baffled by things like the effective top being a smaller number (higher on the screen) than the top. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From prothero at earthednet.org Sat Jan 17 20:51:01 2015 From: prothero at earthednet.org (William Prothero) Date: Sat, 17 Jan 2015 17:51:01 -0800 Subject: App wrapper and error messages In-Reply-To: <1421519795774-4687944.post@n4.nabble.com> References: <1421519795774-4687944.post@n4.nabble.com> Message-ID: <7EEB41C8-6E31-481F-834C-882607933BF4@earthednet.org> Andy: Tnx for the links. Buuuutttt, they refer to version 2.5 and I have version 3, which I would have thought fixed this by now. I?ve got a query into the developer, so I?ll see what happens. Best, Bill > On Jan 17, 2015, at 10:36 AM, AndyP wrote: > > Hi Bill, there was a problem with AppWrapper and Mavericks which has probably > carried over to Yosemite. > > http://www.ohanaware.com/support/mavericksCodesign.php > > > > > ----- > Andy Piddock > > > My software never has bugs. It just develops random features. > > Copy the new cloud space, get your free 15GB space now: > Get Copy > > > Script editor Themer for LC http://2108.co.uk > > PointandSee is a FREE simple but full featured under cursor colour picker / finder. > http://www.pointandsee.co.uk - made with LiveCode > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/App-wrapper-and-error-messages-tp4687942p4687944.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From lan.kc.macmail at gmail.com Sat Jan 17 21:05:58 2015 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Sun, 18 Jan 2015 10:05:58 +0800 Subject: Storing and saving a setting in a stand alone In-Reply-To: <54BABB7D.6030301@gmail.com> References: <54BABAC0.7000803@fourthworld.com> <54BABB7D.6030301@gmail.com> Message-ID: On Sun, Jan 18, 2015 at 3:43 AM, Richmond wrote: I can imagine a scenario where somebody uses an app both at work and at > home and for > security reasons carries the app around in their pocket on a USB > flash-drive or an SD card > and wants the data to ride with it. > Not sure that makes sense. That's like carrying your credit card with the PIN number scrawled on a piece of paper in your wallet. For real security you would only carry the encrypted data on the USB stick in a file format that would give no clue as to the application needed to access it. Even it the data isn't sensitive, If the app is required both at home and at work then leave the app at home and work and just carry the data. Thus an excellent reason for separating data from the UI. If for some reason I can't think of, you are bound by some restriction that the app can't be stored on computers at home or work and must be run off the USB stick, then there isn't anything preventing you from saving the data separate from the UI. Considering that a very basic vanilla LC 7.x standalone is now so large that it could easily be several 1000 times larger than the User Data, it seems less efficient to me to constantly be copying the App to and fro when you could just do the Data. Considering the trend towards cross device applications that remember the page you were reading, the bookmark you were looking at, the paragraph you were amending, and automatically takes it from one device to another; the copy to USB stick to take home is IMO like CDs and DVDs, outdated and not how users today would expect Apps to work across devices. PS Scott thanks for the excellent explanation. Thankfully you are right, any data saving method you start with can be modified. I crossed that bridge a long time ago. My comments are in consideration to making it easier for new users wanting to build mobile apps with LC. Lets hope that the new documentation will incorporate some sort of table of options available and an explanation as good as yours as to some of the reasons why a Splash Stack might be the solution to a particular problem. From paul at livecode.org Sat Jan 17 21:45:53 2015 From: paul at livecode.org (Paul Hibbert) Date: Sat, 17 Jan 2015 18:45:53 -0800 Subject: screen math, stacks, fields, and effective screenRect In-Reply-To: References: <09669BF4-765E-4233-82D0-7B5DD9C33B49@tactilemedia.com> Message-ID: <8B6A0137-D4F6-4AE6-89E0-D3CC9B679F5A@livecode.org> It depends if your stack has a Stack Menu or not, try? put (the top of this stack) - (the effective top of this stack) -- With no Stack Menu =22 with a Stack Menu = 0 Paul > On Jan 17, 2015, at 5:40 PM, Dr. Hawkins wrote: > > On Sat, Jan 17, 2015 at 4:17 PM, Scott Rossi wrote: > >> The difference you're seeing is likely due to the height of the stack >> including its titlebar versus the height of the card region only of the >> stack. >> >> You might try seeing the entries in the dictionary for localLoc and >> globalLoc, used for converting global positions to local, and vice versa. >> > > Those are definitely what I needed. > > But I'm still baffled by things like the effective top being a smaller > number (higher on the screen) than the top. > > > > > -- > Dr. Richard E. Hawkins, Esq. > (702) 508-8462 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From lan.kc.macmail at gmail.com Sat Jan 17 22:37:29 2015 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Sun, 18 Jan 2015 11:37:29 +0800 Subject: How to access a file on a remote computer In-Reply-To: References: Message-ID: Pete two things I notice. Firstly as the file path is enclosed in quotes there is no need to %20 the spaces. Secondly, rather than using localhost you should be using Volumes. So for me, using my hometheatre iMac as a test bed, with a 'a SHARED test file.txt' sitting in the Shared folder of the iMac, this works in the msg box put URL "file:/Volumes/Shared/a SHARED test file.txt" into msg with 'a PUBLIC test file.txt" sitting in the Public folder of the iMac, this works put URL "file:/Volumes/hometheatre's Public Folder/a PUBLIC test file.txt" into msg and just in case you wanted to access a file on your Time Machine - in this case my TM is named Tardus and the file's name 'a TARDUS test file.txt' put url "file:/Volumes/Tardus/a TARDUS test file.txt" into msg HTH From dochawk at gmail.com Sat Jan 17 23:16:37 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Sat, 17 Jan 2015 20:16:37 -0800 Subject: iOS provisioning profile and livecode Message-ID: I can't find coherent and current instructions for the provisioning profile for iOS and livecode. I've renewed my paid iOS developer status. I supposedly have the certificates, and xcode preferences->accounts shows my accounts. Viewing details shows signing identities for iOS development and for distribution, but the provisioning profiles below is empty. refreshing does nothing. Both profiles show in my login keychain. What is missing here? I know others have managed here. I'm pulling my hair wanting to put a simple app on my phone. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From dochawk at gmail.com Sat Jan 17 23:19:07 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Sat, 17 Jan 2015 20:19:07 -0800 Subject: How to access a file on a remote computer In-Reply-To: References: Message-ID: On Sat, Jan 17, 2015 at 7:37 PM, Kay C Lan wrote: > Secondly, rather than using localhost you should be using Volumes. > Also, OSX can be downright schizophrenic about the permissions, with conflicting ways of doig things. My macs got added to unix networks, with preexisting groups & users. One mac worked fine on the network, but after a couple of years, I still end up with files created by my assistant on my machine being unwritable by me, and vice versa. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From lan.kc.macmail at gmail.com Sat Jan 17 23:45:11 2015 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Sun, 18 Jan 2015 12:45:11 +0800 Subject: How to access a file on a remote computer In-Reply-To: References: Message-ID: On Sun, Jan 18, 2015 at 12:19 PM, Dr. Hawkins wrote: > I still end up > with files created by my assistant on my machine being unwritable by me, > and vice versa. > Where on the machine is the file being stored so that it's accessable by both of you? Shared?, Public? One problem can be, if you have shared folders of the same name. ie in the example I gave the Mac normally gives the Public folder and extended name, such as YOURNAME's Public Folder to avoid confusion with other Public folders. This is not the case for Shared. If you have access to several different Shared folders I think behind the scenes OS X names them Shared, Shared-1, Shared-2 etc. Same thing can happen if you share a common named folder, such as Documents, Music, Photos. If there is already a shared volume of the same name, then invisibly the next one accessed will be appended a number. Therefore put URL may not work as it's pointed to a different computer and whilst a folder of the same name exists, the file you are looking for doesn't. From kee at kagi.com Sat Jan 17 23:55:17 2015 From: kee at kagi.com (kee nethery) Date: Sat, 17 Jan 2015 20:55:17 -0800 Subject: How to access a file on a remote computer In-Reply-To: References: Message-ID: <3A05C317-38A2-427C-81E6-7739AA012863@kagi.com> If the client machine can see the file in the Finder while it sits on the server machine, an easy way to get it?s path is to open Terminal and drag it?s icon into Terminal. Terminal will write out the path. You can copy the path and use it as long as the client can see the server in the Finder. A simple "open file for text read? will do what you need (assuming your client Mac has read access). If you are not logging into the server from the client, and you want to gain access to it as if it was on a web or FTP server, you?ll need to actually set up a web or FTP server on the server Mac. Doing that, you?ll access it as if it was a web page using the get URL command. Kee Nethery From kee at kagi.com Sun Jan 18 00:07:31 2015 From: kee at kagi.com (kee nethery) Date: Sat, 17 Jan 2015 21:07:31 -0800 Subject: Multilingual UI In-Reply-To: <1421531682651.c97ada64@Nodemailer> References: <1421531682651.c97ada64@Nodemailer> Message-ID: > On Jan 17, 2015, at 1:54 PM, Ethan Lish wrote: > > Is there a defined approach, tool or general guidance on how best to design & develop a livecode app to support a multilingual user interface. My approach was, for each text element (button, field), to create a custom property named for the language ?en?, ?fr?, ?de?, and then put the translations into the custom properties. On opencard I would send a ?loadlanguage" command (that I wrote, you can call yours whatever) to each element and populated the element with the appropriate translation. In the corner of each window I had a language selector and if the language was changed, I?d send opencard which would send loadlanguage to each element. If the language custom property was missing for that language, and there was a ?en? custom property, I?d use that. Also, if there was an ?en? property, I?d create the other properties and populate them with the english translation. If there was no ?en? custom property, I?d not alter what was being displayed by the element. I found it useful to create a command that set the language to ?ww? and then for each card, I?d measure the length of each translation and insert the longest translation regardless of language. I could then adjust the buttons and fields appropriately knowing they would work properly regardless which language was selected. That is what I came up with when I was playing with a multi-lingual Livecode project. Seemed to work pretty well. Kee Nethery From rdimola at evergreeninfo.net Sun Jan 18 00:44:13 2015 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Sun, 18 Jan 2015 00:44:13 -0500 Subject: Garbage Collection/Old Data in stack In-Reply-To: References: <000b01d032a7$679e9e00$36dbda00$@net> <54BAEFFB.6000002@fourthworld.com> Message-ID: <000c01d032e1$ca54f460$5efedd20$@net> There are no objects except for the 1 blank card. I wonder how many other stacks out there are experiencing this creep of orphan object/properties. I just happen to find them because I did not want to redo all my standalone setting for mobile splash pages when creating a stub stack. I just deleted all the cards except for the splash and expected this tiny little stack. I will file a bug report. What type of scripty ways could I use to hunt them down? The number of controls of the sole card is 0. Check this weirdo out www.evergreeninfo.on-rev.com/EIS/Test3.livecode Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net > These orphaned images are making my standalones larger than they should be. >> This is more of a problem for mobile than desktop. I guess it's time >> for a Bug Report. >> > > Maybe. Any unplaced backgrounds in the stack file? > > Did you check all custom property sets of all objects? That they can't be found in the application browser is a bug all by itself, even if there are scripty ways to hunt it down. (and may God have mercy on the project browser's soul!) -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From rdimola at evergreeninfo.net Sun Jan 18 00:57:02 2015 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Sun, 18 Jan 2015 00:57:02 -0500 Subject: iOS provisioning profile and livecode In-Reply-To: References: Message-ID: <000d01d032e3$94c68eb0$be53ac10$@net> Download the certificates(dev and distribution) then click on them and they will install. Then in the Xcode prefs refresh all the provisioning profiles. There is a circle arrow thingy to refresh. Make sure you use the same login credentials as your Apple dev account. They should then be in the iOS standalone settings provisioning profile pull down. If that does not work then delete all the certificates then 1) re-download/install them 2) recreate new provisioning profiles and try again to refresh them in Xcode. My RR14 Keynote presentation shows all the steps with pictures. Also Colin's book documents all the steps in finer detail with complete explanations. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Dr. Hawkins Sent: Saturday, January 17, 2015 11:17 PM To: How to use LiveCode Subject: iOS provisioning profile and livecode I can't find coherent and current instructions for the provisioning profile for iOS and livecode. I've renewed my paid iOS developer status. I supposedly have the certificates, and xcode preferences->accounts shows my accounts. Viewing details shows signing identities for iOS development and for distribution, but the provisioning profiles below is empty. refreshing does nothing. Both profiles show in my login keychain. What is missing here? I know others have managed here. I'm pulling my hair wanting to put a simple app on my phone. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From scott at tactilemedia.com Sun Jan 18 01:06:37 2015 From: scott at tactilemedia.com (Scott Rossi) Date: Sat, 17 Jan 2015 22:06:37 -0800 Subject: Garbage Collection/Old Data in stack In-Reply-To: <000c01d032e1$ca54f460$5efedd20$@net> References: <000b01d032a7$679e9e00$36dbda00$@net> <54BAEFFB.6000002@fourthworld.com> <000c01d032e1$ca54f460$5efedd20$@net> Message-ID: <20F1B601-9328-4F23-9ABB-867796ED7482@tactilemedia.com> You have 20+ unplaced groups present in the stack, many of which contain images, which is why you have 2+ MB in file size. Not sure if there?s a programmatic way to remove them, but if you place each one and then delete it, you?ll eventually remove them from the stack. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On Jan 17, 2015, at 9:44 PM, Ralph DiMola wrote: > There are no objects except for the 1 blank card. I wonder how many other > stacks out there are experiencing this creep of orphan object/properties. I > just happen to find them because I did not want to redo all my standalone > setting for mobile splash pages when creating a stub stack. I just deleted > all the cards except for the splash and expected this tiny little stack. I > will file a bug report. What type of scripty ways could I use to hunt them > down? The number of controls of the sole card is 0. > > Check this weirdo out www.evergreeninfo.on-rev.com/EIS/Test3.livecode > > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net > > >> These orphaned images are making my standalones larger than they should > be. >>> This is more of a problem for mobile than desktop. I guess it's time >>> for a Bug Report. >>> >> >> Maybe. Any unplaced backgrounds in the stack file? >> >> Did you check all custom property sets of all objects? > > > That they can't be found in the application browser is a bug all by itself, > even if there are scripty ways to hunt it down. > > (and may God have mercy on the project browser's soul!) > > > -- > Dr. Richard E. Hawkins, Esq. > (702) 508-8462 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Sun Jan 18 01:21:28 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 17 Jan 2015 22:21:28 -0800 Subject: Garbage Collection/Old Data in stack In-Reply-To: <000c01d032e1$ca54f460$5efedd20$@net> References: <000c01d032e1$ca54f460$5efedd20$@net> Message-ID: <54BB50E8.2040501@fourthworld.com> Thanks for posting the stack, Ralph. I love a good mystery. There are unplaced background there: Exit BottomBarG NavScreen1GroupC NavScreen1GroupD NavScreen1GroupE MenuGrp NavScreen1GroupA NavScreen1GroupB LogoG1 BG2G BG3G BG6G BG4G Browser BG5G Back NextG Picker Picker EmailNote -- Richard Gaskin Fourth World Systems Software Design and Development for Desktop, Mobile, and Web ____________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From livfoss at mac.com Sun Jan 18 04:27:10 2015 From: livfoss at mac.com (Graham Samuel) Date: Sun, 18 Jan 2015 10:27:10 +0100 Subject: Multilingual UI In-Reply-To: References: <1421531682651.c97ada64@Nodemailer> Message-ID: <3B690AAB-6ECB-47DC-8872-9F9BBC7911EB@mac.com> I very much like Kee's approach, though there is an issue about populating the list of texts for the elements. I was involved in a project (which in fact was never finished) where we had to get all our texts translated from English into a language we (the developers) didn't know, Welsh. So we sent out a simple text document to a native Welsh speaker, with each text on a separate line, and got back a line-by-liine translation. In order to make it less tedious to then place each text into its appropriate custom property 'by hand', so to speak, our equivalent of the "loadLanguage" command for each text simply loaded the text for the element from the appropriate line of the text file for the particular language. So each text element (button etc) had a built-in identifying number which corresponded to the appropriate line number in the list of texts. This approach would have also made it very easy to add new languages. It was obviously an easy job to add such text files either externally at run time or internally during the development process. Graham > On 18 Jan 2015, at 06:07, kee nethery wrote: > > >> On Jan 17, 2015, at 1:54 PM, Ethan Lish wrote: >> >> Is there a defined approach, tool or general guidance on how best to design & develop a livecode app to support a multilingual user interface. > > My approach was, for each text element (button, field), to create a custom property named for the language ?en?, ?fr?, ?de?, and then put the translations into the custom properties. On opencard I would send a ?loadlanguage" command (that I wrote, you can call yours whatever) to each element and populated the element with the appropriate translation. In the corner of each window I had a language selector and if the language was changed, I?d send opencard which would send loadlanguage to each element. > > If the language custom property was missing for that language, and there was a ?en? custom property, I?d use that. Also, if there was an ?en? property, I?d create the other properties and populate them with the english translation. If there was no ?en? custom property, I?d not alter what was being displayed by the element. > > I found it useful to create a command that set the language to ?ww? and then for each card, I?d measure the length of each translation and insert the longest translation regardless of language. I could then adjust the buttons and fields appropriately knowing they would work properly regardless which language was selected. > > That is what I came up with when I was playing with a multi-lingual Livecode project. Seemed to work pretty well. > > Kee Nethery > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From lan.kc.macmail at gmail.com Sun Jan 18 06:39:10 2015 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Sun, 18 Jan 2015 19:39:10 +0800 Subject: How to access a file on a remote computer In-Reply-To: <3A05C317-38A2-427C-81E6-7739AA012863@kagi.com> References: <3A05C317-38A2-427C-81E6-7739AA012863@kagi.com> Message-ID: Kee, that had me confused and I looked a little deeper. It appears that I've just been lucky in the simple URL way I've been accessing files across my LAN - this is as tested on OS X 10.9.5. The URL method I posted earlier, and the open file for read methods do NOT seem to work unless the actual network folder the file resides in is mounted on your system - i.e. the Eject symbol needs to present not just the server and or folder icon visible. After a quick test the simplest way I've found within LC to mount the network folder/file and get the exact path name is to use - answer folder/file answer file "Choose a file:" --navigate to a network TEXT file to test put "file:" & it into tFilePath put URL tFilePath into msg For ages I've been using LC to 'do as AppleScript' to tell BBEdit to open a network file. I've then been using the 'put URL xxxx into tVar' and 'put tContent into URL xxxx' without a hiccup. I didn't realise that LC needed the file to be mounted first and BBEdit was doing it automatically for me. Does anyone know if there is a command to force OS X to mount a folder that you have appropriate access rights to? I can think of a million reasons why you would want to bypass the 'answer folder/file' step. It would be nice if either the put URL, or open file methods automatically mounted the folder, or a 'mount fiolder' command that acted like a faceless 'answer folder'; you gave it a folder path and it mounted just like answer folder/file is doing now but without the dialog box. If no one knows of a faceless way to mount a folder on OS X I can put in an enhancement request. Do those on Win and Linux have automatic mounting of network folders/files or is this a problem on those platforms as well? Oh and one last thing. One MAJOR difference between the URL method and the open file for read method. If you use open file for read, whilst ever it is open if you try and unmount the server/folder, i.e. click on the Eject icon, you will get a System warning telling you "The disk xxxxx couldn't be ejected because LiveCode is using it". With the URL method it is possible to Eject the server/folder without any warning so may unwittingly stop your stack from doing what it's suppose to. I think I better go back and change my URL method to open file for read. From revolution at derbrill.de Sun Jan 18 09:02:17 2015 From: revolution at derbrill.de (Malte Brill) Date: Sun, 18 Jan 2015 15:02:17 +0100 Subject: extracting the thumbnail from digital photos? In-Reply-To: References: Message-ID: Hi, did anyone of you try to extract a thumbnail image from digital photos and use those in a liveCode app? Reason I am asking is that I want to display downsized versions of digital photos (many, average filesize 10MB) and sizing those down is not pracicable as things stand atm... Did anybody code something like that already? Best, Malte From dochawk at gmail.com Sun Jan 18 10:19:03 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Sun, 18 Jan 2015 07:19:03 -0800 Subject: Garbage Collection/Old Data in stack In-Reply-To: <20F1B601-9328-4F23-9ABB-867796ED7482@tactilemedia.com> References: <000b01d032a7$679e9e00$36dbda00$@net> <54BAEFFB.6000002@fourthworld.com> <000c01d032e1$ca54f460$5efedd20$@net> <20F1B601-9328-4F23-9ABB-867796ED7482@tactilemedia.com> Message-ID: On Sat, Jan 17, 2015 at 10:06 PM, Scott Rossi wrote: > You have 20+ unplaced groups present in the stack, many of which contain > images, which is why you have 2+ MB in file size. OK, how do we find unplaced objects? I think I have a few megs in my main project. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From jacques.hausser at unil.ch Sun Jan 18 11:08:26 2015 From: jacques.hausser at unil.ch (Hausser Jacques) Date: Sun, 18 Jan 2015 17:08:26 +0100 Subject: Garbage Collection/Old Data in stack In-Reply-To: References: <000b01d032a7$679e9e00$36dbda00$@net> <54BAEFFB.6000002@fourthworld.com> <000c01d032e1$ca54f460$5efedd20$@net> <20F1B601-9328-4F23-9ABB-867796ED7482@tactilemedia.com> Message-ID: Look at item ?place groups? in object menu (and to delete groups, don?t use ?remove group? but place the group somewhere, select it and edit -> clear). > Le 18 janv. 2015 ? 16:19, Dr. Hawkins a ?crit : > > On Sat, Jan 17, 2015 at 10:06 PM, Scott Rossi > wrote: > >> You have 20+ unplaced groups present in the stack, many of which contain >> images, which is why you have 2+ MB in file size. > > > OK, how do we find unplaced objects? I think I have a few megs in my main > project. > > > -- > Dr. Richard E. Hawkins, Esq. > (702) 508-8462 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From shawnlivecode at gmail.com Sun Jan 18 11:13:41 2015 From: shawnlivecode at gmail.com (Shawn Blc) Date: Sun, 18 Jan 2015 10:13:41 -0600 Subject: Anyone else notice the progress bar flickering in 7.0.2 rc 1 build 10024 Message-ID: Anyone else notice the progress bar flickering in 7.0.2 rc 1 build 10024 or is it just me? I'm on OSX, compiled a little app for windows and mac, and the progress bar flickers on both. From scott at tactilemedia.com Sun Jan 18 11:19:34 2015 From: scott at tactilemedia.com (Scott Rossi) Date: Sun, 18 Jan 2015 08:19:34 -0800 Subject: Garbage Collection/Old Data in stack In-Reply-To: References: <000b01d032a7$679e9e00$36dbda00$@net> <54BAEFFB.6000002@fourthworld.com> <000c01d032e1$ca54f460$5efedd20$@net> <20F1B601-9328-4F23-9ABB-867796ED7482@tactilemedia.com> Message-ID: There isn?t any list of unplaced groups. The reason I was able to tell the groups were not placed is because all visible objects had been removed from the sample stack. There Go to the Object menu under Place Group to see groups that can be placed on the current card. Anything in the list that doesn?t exist elsewhere in the stack is unplaced. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On Jan 18, 2015, at 7:19 AM, Dr. Hawkins wrote: > On Sat, Jan 17, 2015 at 10:06 PM, Scott Rossi > wrote: > >> You have 20+ unplaced groups present in the stack, many of which contain >> images, which is why you have 2+ MB in file size. > > > OK, how do we find unplaced objects? I think I have a few megs in my main > project. > > > -- > Dr. Richard E. Hawkins, Esq. > (702) 508-8462 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Sun Jan 18 11:47:32 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sun, 18 Jan 2015 08:47:32 -0800 Subject: extracting the thumbnail from digital photos? In-Reply-To: References: Message-ID: <54BBE3A4.1020304@fourthworld.com> Malte Brill wrote: > did anyone of you try to extract a thumbnail image from > digital photos and use those in a liveCode app? Reason I > am asking is that I want to display downsized versions > of digital photos (many, average filesize 10MB) and > sizing those down is not pracicable as things stand atm... > > Did anybody code something like that already? The RunRev team, in the engine: see the new "at" option for the import and export snapshot commands, which lets you specify size to create a thumbnail. I've found it surprisingly fast. -- Richard Gaskin Fourth World Systems Software Design and Development for Desktop, Mobile, and Web ____________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From irog at mac.com Sun Jan 18 11:55:18 2015 From: irog at mac.com (Roger Guay) Date: Sun, 18 Jan 2015 09:55:18 -0700 Subject: Garbage Collection/Old Data in stack In-Reply-To: References: <000b01d032a7$679e9e00$36dbda00$@net> <54BAEFFB.6000002@fourthworld.com> <000c01d032e1$ca54f460$5efedd20$@net> <20F1B601-9328-4F23-9ABB-867796ED7482@tactilemedia.com> Message-ID: I have to ask . . . how does one end up with unplaced groups? Cheers, Roger > On Jan 18, 2015, at 9:19 AM, Scott Rossi wrote: > > There isn?t any list of unplaced groups. The reason I was able to tell the groups were not placed is because all visible objects had been removed from the sample stack. There > > Go to the Object menu under Place Group to see groups that can be placed on the current card. Anything in the list that doesn?t exist elsewhere in the stack is unplaced. > > Regards, > > Scott Rossi > Creative Director > Tactile Media, UX/UI Design > > On Jan 18, 2015, at 7:19 AM, Dr. Hawkins wrote: > >> On Sat, Jan 17, 2015 at 10:06 PM, Scott Rossi >> wrote: >> >>> You have 20+ unplaced groups present in the stack, many of which contain >>> images, which is why you have 2+ MB in file size. >> >> >> OK, how do we find unplaced objects? I think I have a few megs in my main >> project. >> >> >> -- >> Dr. Richard E. Hawkins, Esq. >> (702) 508-8462 >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pete at lcsql.com Sun Jan 18 12:25:25 2015 From: pete at lcsql.com (Peter Haworth) Date: Sun, 18 Jan 2015 09:25:25 -0800 Subject: Garbage Collection/Old Data in stack In-Reply-To: References: <000b01d032a7$679e9e00$36dbda00$@net> <54BAEFFB.6000002@fourthworld.com> <000c01d032e1$ca54f460$5efedd20$@net> <20F1B601-9328-4F23-9ABB-867796ED7482@tactilemedia.com> Message-ID: Hi Ralph, There's an undocumented property of a stack named revUnplacedGroupIDs. See what it shows for your stack You should be able to repeat through the lines in that property and delete the group ids listed in it. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Sun, Jan 18, 2015 at 8:19 AM, Scott Rossi wrote: > There isn?t any list of unplaced groups. The reason I was able to tell > the groups were not placed is because all visible objects had been removed > from the sample stack. There > > Go to the Object menu under Place Group to see groups that can be placed > on the current card. Anything in the list that doesn?t exist elsewhere in > the stack is unplaced. > > Regards, > > Scott Rossi > Creative Director > Tactile Media, UX/UI Design > > On Jan 18, 2015, at 7:19 AM, Dr. Hawkins wrote: > > > On Sat, Jan 17, 2015 at 10:06 PM, Scott Rossi > > wrote: > > > >> You have 20+ unplaced groups present in the stack, many of which contain > >> images, which is why you have 2+ MB in file size. > > > > > > OK, how do we find unplaced objects? I think I have a few megs in my > main > > project. > > > > > > -- > > Dr. Richard E. Hawkins, Esq. > > (702) 508-8462 > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pete at lcsql.com Sun Jan 18 12:32:52 2015 From: pete at lcsql.com (Peter Haworth) Date: Sun, 18 Jan 2015 09:32:52 -0800 Subject: Garbage Collection/Old Data in stack In-Reply-To: References: <000b01d032a7$679e9e00$36dbda00$@net> <54BAEFFB.6000002@fourthworld.com> <000c01d032e1$ca54f460$5efedd20$@net> <20F1B601-9328-4F23-9ABB-867796ED7482@tactilemedia.com> Message-ID: Just tried the following script in a button in your Test3 stack file: on mouseUp get the revUnplacedGroupIDs of stack "GolfDay FL" repeat for each line rID in it delete group id rID of stack "GolfDay FL" end repeat end mouseUp The saved the stack. It's now 9kbytes in size. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Sun, Jan 18, 2015 at 9:25 AM, Peter Haworth wrote: > Hi Ralph, > There's an undocumented property of a stack named revUnplacedGroupIDs. > See what it shows for your stack > > You should be able to repeat through the lines in that property and delete > the group ids listed in it. > > > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin > > On Sun, Jan 18, 2015 at 8:19 AM, Scott Rossi > wrote: > >> There isn?t any list of unplaced groups. The reason I was able to tell >> the groups were not placed is because all visible objects had been removed >> from the sample stack. There >> >> Go to the Object menu under Place Group to see groups that can be placed >> on the current card. Anything in the list that doesn?t exist elsewhere in >> the stack is unplaced. >> >> Regards, >> >> Scott Rossi >> Creative Director >> Tactile Media, UX/UI Design >> >> On Jan 18, 2015, at 7:19 AM, Dr. Hawkins wrote: >> >> > On Sat, Jan 17, 2015 at 10:06 PM, Scott Rossi >> > wrote: >> > >> >> You have 20+ unplaced groups present in the stack, many of which >> contain >> >> images, which is why you have 2+ MB in file size. >> > >> > >> > OK, how do we find unplaced objects? I think I have a few megs in my >> main >> > project. >> > >> > >> > -- >> > Dr. Richard E. Hawkins, Esq. >> > (702) 508-8462 >> > _______________________________________________ >> > use-livecode mailing list >> > use-livecode at lists.runrev.com >> > Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> > http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > From pete at lcsql.com Sun Jan 18 12:56:04 2015 From: pete at lcsql.com (Peter Haworth) Date: Sun, 18 Jan 2015 09:56:04 -0800 Subject: How to access a file on a remote computer In-Reply-To: References: <3A05C317-38A2-427C-81E6-7739AA012863@kagi.com> Message-ID: Thanks Kay and Kee, your suggestions put me on the right track. Kay: there is a mount command available though Terminal but I've never used it so don;t know if it would do what you're suggesting. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Sun, Jan 18, 2015 at 3:39 AM, Kay C Lan wrote: > Kee, > > that had me confused and I looked a little deeper. It appears that > I've just been lucky in the simple URL way I've been accessing files > across my LAN - this is as tested on OS X 10.9.5. > > The URL method I posted earlier, and the open file for read methods do > NOT seem to work unless the actual network folder the file resides in > is mounted on your system - i.e. the Eject symbol needs to present not > just the server and or folder icon visible. After a quick test the > simplest way I've found within LC to mount the network folder/file and > get the exact path name is to use - answer folder/file > > answer file "Choose a file:" --navigate to a network TEXT file to test > put "file:" & it into tFilePath > put URL tFilePath into msg > > For ages I've been using LC to 'do as AppleScript' to tell BBEdit to > open a network file. I've then been using the 'put URL xxxx into tVar' > and 'put tContent into URL xxxx' without a hiccup. I didn't realise > that LC needed the file to be mounted first and BBEdit was doing it > automatically for me. > > Does anyone know if there is a command to force OS X to mount a folder > that you have appropriate access rights to? I can think of a million > reasons why you would want to bypass the 'answer folder/file' step. It > would be nice if either the put URL, or open file methods > automatically mounted the folder, or a 'mount fiolder' command that > acted like a faceless 'answer folder'; you gave it a folder path and > it mounted just like answer folder/file is doing now but without the > dialog box. > > If no one knows of a faceless way to mount a folder on OS X I can put > in an enhancement request. > > Do those on Win and Linux have automatic mounting of network > folders/files or is this a problem on those platforms as well? > > Oh and one last thing. One MAJOR difference between the URL method and > the open file for read method. If you use open file for read, whilst > ever it is open if you try and unmount the server/folder, i.e. click > on the Eject icon, you will get a System warning telling you "The disk > xxxxx couldn't be ejected because LiveCode is using it". With the URL > method it is possible to Eject the server/folder without any warning > so may unwittingly stop your stack from doing what it's suppose to. > > I think I better go back and change my URL method to open file for read. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From scott at tactilemedia.com Sun Jan 18 13:13:23 2015 From: scott at tactilemedia.com (Scott Rossi) Date: Sun, 18 Jan 2015 10:13:23 -0800 Subject: Garbage Collection/Old Data in stack In-Reply-To: References: <000b01d032a7$679e9e00$36dbda00$@net> <54BAEFFB.6000002@fourthworld.com> <000c01d032e1$ca54f460$5efedd20$@net> <20F1B601-9328-4F23-9ABB-867796ED7482@tactilemedia.com> Message-ID: I have to ask . . . how does one end up with unplaced groups? Once a group has been placed on a card and is then removed from all cards on which it appeared, it is unplaced. The group remains in the stack so it can be used again. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design From irog at mac.com Sun Jan 18 13:21:14 2015 From: irog at mac.com (Roger Guay) Date: Sun, 18 Jan 2015 11:21:14 -0700 Subject: Garbage Collection/Old Data in stack In-Reply-To: References: <000b01d032a7$679e9e00$36dbda00$@net> <54BAEFFB.6000002@fourthworld.com> <000c01d032e1$ca54f460$5efedd20$@net> <20F1B601-9328-4F23-9ABB-867796ED7482@tactilemedia.com> Message-ID: <9C93D9A3-8245-40A2-A027-B251284B9FC0@mac.com> Aha, that makes sense! Thank you, Scott. Cheers, Roger > On Jan 18, 2015, at 11:13 AM, Scott Rossi wrote: > > I have to ask . . . how does one end up with unplaced groups? > > Once a group has been placed on a card and is then removed from all cards on which it appeared, it is unplaced. The group remains in the stack so it can be used again. > > Regards, > > Scott Rossi > Creative Director > Tactile Media, UX/UI Design > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From rdimola at evergreeninfo.net Sun Jan 18 13:50:47 2015 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Sun, 18 Jan 2015 13:50:47 -0500 Subject: Garbage Collection/Old Data in stack In-Reply-To: <9C93D9A3-8245-40A2-A027-B251284B9FC0@mac.com> References: <000b01d032a7$679e9e00$36dbda00$@net> <54BAEFFB.6000002@fourthworld.com> <000c01d032e1$ca54f460$5efedd20$@net> <20F1B601-9328-4F23-9ABB-867796ED7482@tactilemedia.com> <9C93D9A3-8245-40A2-A027-B251284B9FC0@mac.com> Message-ID: <000401d0334f$ac236c60$046a4520$@net> Thanks All! You folks are the best. This all makes sense! I ran Peter's script and viola the stack is 9kb. The revUnplacedGroupIDs properties should be documented. What other useful undocumented properties are out there? My philosophy was to create a card just to hold all the groups that I might use not thinking that if I deleted that card and all the other cards that the group was placed on does not actually delete the group. I'm going to rethink this. Maybe an LC enhancement to warn you that there will be unplaced groups when you delete a card. Or give you the option to delete the groups also. Peter, Is listing these is an enhancement for lcStackBrowser? Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Roger Guay Sent: Sunday, January 18, 2015 1:21 PM To: How to use LiveCode Subject: Re: Garbage Collection/Old Data in stack Aha, that makes sense! Thank you, Scott. Cheers, Roger > On Jan 18, 2015, at 11:13 AM, Scott Rossi wrote: > > I have to ask . . . how does one end up with unplaced groups? > > Once a group has been placed on a card and is then removed from all cards on which it appeared, it is unplaced. The group remains in the stack so it can be used again. > > Regards, > > Scott Rossi > Creative Director > Tactile Media, UX/UI Design > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From rdimola at evergreeninfo.net Sun Jan 18 14:13:45 2015 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Sun, 18 Jan 2015 14:13:45 -0500 Subject: Stub Stack In-Reply-To: <000401d0334f$ac236c60$046a4520$@net> References: <000b01d032a7$679e9e00$36dbda00$@net> <54BAEFFB.6000002@fourthworld.com> <000c01d032e1$ca54f460$5efedd20$@net> <20F1B601-9328-4F23-9ABB-867796ED7482@tactilemedia.com> <9C93D9A3-8245-40A2-A027-B251284B9FC0@mac.com> <000401d0334f$ac236c60$046a4520$@net> Message-ID: <000501d03352$e15763c0$a4062b40$@net> What is the best way to pass data the main stack? The stub stack show a splash screen then does a "Go Stack mainstack.livecode" and then closes itself. I could write text file in the stub and read it in from the main stack, but is there a better way to do this? Thanks Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net From pete at lcsql.com Sun Jan 18 14:22:03 2015 From: pete at lcsql.com (Peter Haworth) Date: Sun, 18 Jan 2015 11:22:03 -0800 Subject: Garbage Collection/Old Data in stack In-Reply-To: <000401d0334f$ac236c60$046a4520$@net> References: <000b01d032a7$679e9e00$36dbda00$@net> <54BAEFFB.6000002@fourthworld.com> <000c01d032e1$ca54f460$5efedd20$@net> <20F1B601-9328-4F23-9ABB-867796ED7482@tactilemedia.com> <9C93D9A3-8245-40A2-A027-B251284B9FC0@mac.com> <000401d0334f$ac236c60$046a4520$@net> Message-ID: On Sun, Jan 18, 2015 at 10:50 AM, Ralph DiMola wrote: > Peter, > Is listing these is an enhancement for lcStackBrowser? > It's already there. If you right click a card in the display, there's an option to place a group with subitems that show the available unplaced groups noted as "(Unlinked)" Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From rdimola at evergreeninfo.net Sun Jan 18 14:28:40 2015 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Sun, 18 Jan 2015 14:28:40 -0500 Subject: acceleratedRendering and transparency In-Reply-To: <000401d0334f$ac236c60$046a4520$@net> References: <000b01d032a7$679e9e00$36dbda00$@net> <54BAEFFB.6000002@fourthworld.com> <000c01d032e1$ca54f460$5efedd20$@net> <20F1B601-9328-4F23-9ABB-867796ED7482@tactilemedia.com> <9C93D9A3-8245-40A2-A027-B251284B9FC0@mac.com> <000401d0334f$ac236c60$046a4520$@net> Message-ID: <000601d03354$f73db430$e5b91c90$@net> I have a scrolling field. The list has every other line's backgroundcolor set to (100,100,100)/(125,125,125). The background image is visible behind the field. This was dog slow on some mobile devices. I turned on acceleratedRendering and the field scrolls is as fast as any native coded app. Great!! But the background image is no longer visible from behind the field. The shading of every other line is still there but the image is not visible thru the grey background. I set the background image to "static" and the field to "dynamic". No change. Is field level transparency not available with "acceleratedRendering" on or am I missing something? Thanks. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net From revolution at derbrill.de Sun Jan 18 14:34:28 2015 From: revolution at derbrill.de (Malte Brill) Date: Sun, 18 Jan 2015 20:34:28 +0100 Subject: extracting the thumbnail from digital photos? In-Reply-To: References: Message-ID: Hi Richard, how exactly does this only extract the thumbnail portion of a huge (10 MB) photo from disk and use it in an image object? (I guess I should have made myself clearer, I am talking about the thumbnail image that is stored in the EXIF data of the image). My problem is that it takes "forever" (Over a second) to load the huge file into an image object, sizing it down. Also when you have more than 3 or four, the whole application becomes unresponsive. So one would need to size the images down, export the thumbnail and then use the downsized version after clearing the big ones. Now as most modern cameras store a preview in the exif data, I was hoping I could just extract that somehow reading the binary (which should be significantly faster)... All the best, Malte From maring.richard at gmail.com Sun Jan 18 14:38:24 2015 From: maring.richard at gmail.com (Richard Maring) Date: Sun, 18 Jan 2015 13:38:24 -0600 Subject: Image caching not releasing images in 7.0.7 (rc2) Message-ID: Hi, The following is built on Windows 8. I have a referenced image in an image holder that the user can click a 'Delete' button that deletes the image from the hard drive. The user can then click a button to select a different image from their hard drive to display in the same image holder. The app takes the new image and scales it down and renames it to the same name as the previous image. When the new image is brought in the old image is the one displayed, even though the image source points to the newly created image. Obviously the new image cache is not releasing the old image and is displaying the prior cached image. I have searched for any answers and the only thing I could find was from may of 2014. The answer back then was to set the source of the image to something bogus and then set it to the newly created image. This does not work in LC 7.0.1 I have tried everything I can think of, including deleting the image holder and creating a new on on the fly. As long as the new file-name matches the old cached one, the cache won't release the old one. You literally have to exit the app and come back in for this to change. It would seem there would have to be a way to clear the image cache or to tell LC NOT to cash the image in the first place. Any thoughts or ideas would be immensely appreciated. Rich From capellan2000 at gmail.com Sun Jan 18 15:05:35 2015 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Sun, 18 Jan 2015 12:05:35 -0800 (PST) Subject: extracting the thumbnail from digital photos? In-Reply-To: References: Message-ID: <1421611535291-4688003.post@n4.nabble.com> Hi Malte, After reading this document: http://www.media.mit.edu/pia/Research/deepview/exif.html looks like EXIF Thumbnail data is stored as JPEG or TIFF, being JPEG the most common choice by Digital Camera manufacturers. Hope this helps. Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/extracting-the-thumbnail-from-digital-photos-tp4687985p4688003.html Sent from the Revolution - User mailing list archive at Nabble.com. From pmbrig at gmail.com Sun Jan 18 15:23:50 2015 From: pmbrig at gmail.com (Peter M. Brigham) Date: Sun, 18 Jan 2015 15:23:50 -0500 Subject: bringing a field of a sub-sub group to the for for editing In-Reply-To: References: Message-ID: On Jan 17, 2015, at 10:40 AM, Dr. Hawkins wrote: > I have fields in generated pages which are editable. > > The pages are constructed by placing groups, which in turn all belong to > another (turned out that, at least in the IDE, it is far, far faster to > delete that one group than to loop & delete). > > Anyway, some of the fields can be multi-ine, and could end up with more > lines. > > This all means that if I change the height of the field to the > formattedHeight, that the top portion will remain visible, but that the > bottom will be below the next formatted group. > > I could do a big song & dance to raise and lower groups, but I'm thinking > it might be cleaner to have a separate stack that positions itself over the > single field, and then sets the text dispatches closeField or exitField to > the new field. But this in turn means, I suppose, adjusting enterField in > general to send it its close messages. > > Has anyone else dealt with something similar? Not sure if I know what you have in mind, but I wouldn't use a separate stack over the field being edited. For each editable field userInputField I would use openfield to trigger showing a scrolling input field at the same location, then on closefield I'd set the text or htmltext of of the field userInputField to the text/htmltext of the input field, then set the height of userInputField to the formattedheight of userInputField, and add the difference in height to each of the groups following. You could set a custom prop of the scrolling input field to the name or ID of userInputField so it would load the correct field. Not sure if all of that is clear or will do what you want. -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig From richmondmathewson at gmail.com Sun Jan 18 15:35:15 2015 From: richmondmathewson at gmail.com (Richmond) Date: Sun, 18 Jan 2015 22:35:15 +0200 Subject: Image caching not releasing images in 7.0.7 (rc2) In-Reply-To: References: Message-ID: <54BC1903.8090807@gmail.com> On 18/01/15 21:38, Richard Maring wrote: > Hi, > > The following is built on Windows 8. > > I have a referenced image in an image holder that the user can click a > 'Delete' button that deletes the image from the hard drive. The user can > then click a button to select a different image from their hard drive to > display in the same image holder. > > The app takes the new image and scales it down and renames it to the same > name as the previous image. > > When the new image is brought in the old image is the one displayed, even > though the image source points to the newly created image. > > Obviously the new image cache is not releasing the old image and is > displaying the prior cached image. I have searched for any answers and the > only thing I could find was from may of 2014. The answer back then was to > set the source of the image to something bogus and then set it to the newly > created image. > > This does not work in LC 7.0.1 I have tried everything I can think of, > including deleting the image holder and creating a new on on the fly. As > long as the new file-name matches the old cached one, the cache won't > release the old one. You literally have to exit the app and come back in > for this to change. > > It would seem there would have to be a way to clear the image cache or to > tell LC NOT to cash the image in the first place. > > Any thoughts or ideas would be immensely appreciated. > > Rich > _______________________________________________ 7.0.7 (rc2) Wow: you are so far ahead it's beautiful! Richmond. From maring.richard at gmail.com Sun Jan 18 16:39:31 2015 From: maring.richard at gmail.com (Richard Maring) Date: Sun, 18 Jan 2015 15:39:31 -0600 Subject: Image caching not releasing images in 7.0.7 (rc2) In-Reply-To: <54BC1903.8090807@gmail.com> References: <54BC1903.8090807@gmail.com> Message-ID: Staring at code so long 1's look like 7's....... Sent from my iPhone > On Jan 18, 2015, at 2:35 PM, Richmond wrote: > >> On 18/01/15 21:38, Richard Maring wrote: >> Hi, >> >> The following is built on Windows 8. >> >> I have a referenced image in an image holder that the user can click a >> 'Delete' button that deletes the image from the hard drive. The user can >> then click a button to select a different image from their hard drive to >> display in the same image holder. >> >> The app takes the new image and scales it down and renames it to the same >> name as the previous image. >> >> When the new image is brought in the old image is the one displayed, even >> though the image source points to the newly created image. >> >> Obviously the new image cache is not releasing the old image and is >> displaying the prior cached image. I have searched for any answers and the >> only thing I could find was from may of 2014. The answer back then was to >> set the source of the image to something bogus and then set it to the newly >> created image. >> >> This does not work in LC 7.0.1 I have tried everything I can think of, >> including deleting the image holder and creating a new on on the fly. As >> long as the new file-name matches the old cached one, the cache won't >> release the old one. You literally have to exit the app and come back in >> for this to change. >> >> It would seem there would have to be a way to clear the image cache or to >> tell LC NOT to cash the image in the first place. >> >> Any thoughts or ideas would be immensely appreciated. >> >> Rich >> _______________________________________________ > > 7.0.7 (rc2) > > Wow: you are so far ahead it's beautiful! > > Richmond. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pete at lcsql.com Sun Jan 18 19:50:48 2015 From: pete at lcsql.com (Peter Haworth) Date: Sun, 18 Jan 2015 16:50:48 -0800 Subject: How to access a file on a remote computer In-Reply-To: References: <3A05C317-38A2-427C-81E6-7739AA012863@kagi.com> Message-ID: I'm almost there. The reason I'm looking into this is because I'm setting the filename of a player control to the name of a mp3 file on a remote computer. I thought I had it all working but the player control does not like filenames with an ampersand in them. I tried escaping the ampersand with a "\" character (that's what I see if I drag the filename into a Terminal window) but still no joy. Same problem with filenames including an apostrophe. I'm guessing there are other characters that cause the same problem Any ideas? Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Sun, Jan 18, 2015 at 9:56 AM, Peter Haworth wrote: > Thanks Kay and Kee, your suggestions put me on the right track. > > Kay: there is a mount command available though Terminal but I've never > used it so don;t know if it would do what you're suggesting. > > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin > > On Sun, Jan 18, 2015 at 3:39 AM, Kay C Lan > wrote: > >> Kee, >> >> that had me confused and I looked a little deeper. It appears that >> I've just been lucky in the simple URL way I've been accessing files >> across my LAN - this is as tested on OS X 10.9.5. >> >> The URL method I posted earlier, and the open file for read methods do >> NOT seem to work unless the actual network folder the file resides in >> is mounted on your system - i.e. the Eject symbol needs to present not >> just the server and or folder icon visible. After a quick test the >> simplest way I've found within LC to mount the network folder/file and >> get the exact path name is to use - answer folder/file >> >> answer file "Choose a file:" --navigate to a network TEXT file to test >> put "file:" & it into tFilePath >> put URL tFilePath into msg >> >> For ages I've been using LC to 'do as AppleScript' to tell BBEdit to >> open a network file. I've then been using the 'put URL xxxx into tVar' >> and 'put tContent into URL xxxx' without a hiccup. I didn't realise >> that LC needed the file to be mounted first and BBEdit was doing it >> automatically for me. >> >> Does anyone know if there is a command to force OS X to mount a folder >> that you have appropriate access rights to? I can think of a million >> reasons why you would want to bypass the 'answer folder/file' step. It >> would be nice if either the put URL, or open file methods >> automatically mounted the folder, or a 'mount fiolder' command that >> acted like a faceless 'answer folder'; you gave it a folder path and >> it mounted just like answer folder/file is doing now but without the >> dialog box. >> >> If no one knows of a faceless way to mount a folder on OS X I can put >> in an enhancement request. >> >> Do those on Win and Linux have automatic mounting of network >> folders/files or is this a problem on those platforms as well? >> >> Oh and one last thing. One MAJOR difference between the URL method and >> the open file for read method. If you use open file for read, whilst >> ever it is open if you try and unmount the server/folder, i.e. click >> on the Eject icon, you will get a System warning telling you "The disk >> xxxxx couldn't be ejected because LiveCode is using it". With the URL >> method it is possible to Eject the server/folder without any warning >> so may unwittingly stop your stack from doing what it's suppose to. >> >> I think I better go back and change my URL method to open file for read. >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > From scott at tactilemedia.com Sun Jan 18 20:31:52 2015 From: scott at tactilemedia.com (Scott Rossi) Date: Sun, 18 Jan 2015 17:31:52 -0800 Subject: How to access a file on a remote computer In-Reply-To: References: <3A05C317-38A2-427C-81E6-7739AA012863@kagi.com> Message-ID: Hi Pete: Many years ago I ran into path issues with players and (from my notes) wound up with a workaround that involved using the ?full? file path like this: set fileName of player 1 to \ "file:///volumes/primary/users/dude/really_long_filename_here.mp3? I also had in my notes to specifically replace spaces with ?%20?. These modifications were for older versions of LC, so not sure if they will make any difference now. If you continue to have issues you might try urlEncoding the path as well. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On Jan 18, 2015, at 4:50 PM, Peter Haworth wrote: > I'm almost there. > > The reason I'm looking into this is because I'm setting the filename of a > player control to the name of a mp3 file on a remote computer. > > I thought I had it all working but the player control does not like > filenames with an ampersand in them. > > I tried escaping the ampersand with a "\" character (that's what I see if I > drag the filename into a Terminal window) but still no joy. > > Same problem with filenames including an apostrophe. I'm guessing there are > other characters that cause the same problem > > Any ideas? > > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin > > On Sun, Jan 18, 2015 at 9:56 AM, Peter Haworth wrote: > >> Thanks Kay and Kee, your suggestions put me on the right track. >> >> Kay: there is a mount command available though Terminal but I've never >> used it so don;t know if it would do what you're suggesting. >> >> Pete >> lcSQL Software >> Home of lcStackBrowser and >> SQLiteAdmin >> >> On Sun, Jan 18, 2015 at 3:39 AM, Kay C Lan >> wrote: >> >>> Kee, >>> >>> that had me confused and I looked a little deeper. It appears that >>> I've just been lucky in the simple URL way I've been accessing files >>> across my LAN - this is as tested on OS X 10.9.5. >>> >>> The URL method I posted earlier, and the open file for read methods do >>> NOT seem to work unless the actual network folder the file resides in >>> is mounted on your system - i.e. the Eject symbol needs to present not >>> just the server and or folder icon visible. After a quick test the >>> simplest way I've found within LC to mount the network folder/file and >>> get the exact path name is to use - answer folder/file >>> >>> answer file "Choose a file:" --navigate to a network TEXT file to test >>> put "file:" & it into tFilePath >>> put URL tFilePath into msg >>> >>> For ages I've been using LC to 'do as AppleScript' to tell BBEdit to >>> open a network file. I've then been using the 'put URL xxxx into tVar' >>> and 'put tContent into URL xxxx' without a hiccup. I didn't realise >>> that LC needed the file to be mounted first and BBEdit was doing it >>> automatically for me. >>> >>> Does anyone know if there is a command to force OS X to mount a folder >>> that you have appropriate access rights to? I can think of a million >>> reasons why you would want to bypass the 'answer folder/file' step. It >>> would be nice if either the put URL, or open file methods >>> automatically mounted the folder, or a 'mount fiolder' command that >>> acted like a faceless 'answer folder'; you gave it a folder path and >>> it mounted just like answer folder/file is doing now but without the >>> dialog box. >>> >>> If no one knows of a faceless way to mount a folder on OS X I can put >>> in an enhancement request. >>> >>> Do those on Win and Linux have automatic mounting of network >>> folders/files or is this a problem on those platforms as well? >>> >>> Oh and one last thing. One MAJOR difference between the URL method and >>> the open file for read method. If you use open file for read, whilst >>> ever it is open if you try and unmount the server/folder, i.e. click >>> on the Eject icon, you will get a System warning telling you "The disk >>> xxxxx couldn't be ejected because LiveCode is using it". With the URL >>> method it is possible to Eject the server/folder without any warning >>> so may unwittingly stop your stack from doing what it's suppose to. >>> >>> I think I better go back and change my URL method to open file for read. >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From maring.richard at gmail.com Sun Jan 18 20:42:28 2015 From: maring.richard at gmail.com (Richard Maring) Date: Sun, 18 Jan 2015 19:42:28 -0600 Subject: Image caching not releasing images in 7.0.7 (rc2) In-Reply-To: References: <54BC1903.8090807@gmail.com> Message-ID: SOLVED!! Found that I had an image holder in another card in another stack that held the same source file name as the one that was not being released. Set it to "" and the refresh in the other stack started working again. Even though the other stack was closed, the image cache still new it was there and would not release the image until it was removed. Lesson learned. You must eliminate every reference to an image, no matter where it is, in order for the cash to release it. Rich *Richard B. Maring* Mobile: (830) 928-7013 maring.richard at gmail.com This email message and any attachments are confidential and may be privileged. If you are not the intended recipient, please notify Richard Maring immediately by replying to this message and destroying all copies of this message and any attachments. Thank you. On Sun, Jan 18, 2015 at 3:39 PM, Richard Maring wrote: > Staring at code so long 1's look like 7's....... > > Sent from my iPhone > > > On Jan 18, 2015, at 2:35 PM, Richmond > wrote: > > > >> On 18/01/15 21:38, Richard Maring wrote: > >> Hi, > >> > >> The following is built on Windows 8. > >> > >> I have a referenced image in an image holder that the user can click a > >> 'Delete' button that deletes the image from the hard drive. The user > can > >> then click a button to select a different image from their hard drive to > >> display in the same image holder. > >> > >> The app takes the new image and scales it down and renames it to the > same > >> name as the previous image. > >> > >> When the new image is brought in the old image is the one displayed, > even > >> though the image source points to the newly created image. > >> > >> Obviously the new image cache is not releasing the old image and is > >> displaying the prior cached image. I have searched for any answers and > the > >> only thing I could find was from may of 2014. The answer back then was > to > >> set the source of the image to something bogus and then set it to the > newly > >> created image. > >> > >> This does not work in LC 7.0.1 I have tried everything I can think of, > >> including deleting the image holder and creating a new on on the fly. > As > >> long as the new file-name matches the old cached one, the cache won't > >> release the old one. You literally have to exit the app and come back > in > >> for this to change. > >> > >> It would seem there would have to be a way to clear the image cache or > to > >> tell LC NOT to cash the image in the first place. > >> > >> Any thoughts or ideas would be immensely appreciated. > >> > >> Rich > >> _______________________________________________ > > > > 7.0.7 (rc2) > > > > Wow: you are so far ahead it's beautiful! > > > > Richmond. > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > From johnpatten at me.com Sun Jan 18 21:41:01 2015 From: johnpatten at me.com (JOHN PATTEN) Date: Sun, 18 Jan 2015 18:41:01 -0800 Subject: DataGrid Event for change of line highlighted? Message-ID: <43C8FB8E-B1AF-4710-91DD-8616014599A4@me.com> HI All, Is there a built in datagrid event that occurs when the user arrows down in a datagrid list and the row is highlighted? on dataGrid-lineHighlighted do something end dataGrid-lineHighlighted Thank you! From pete at lcsql.com Sun Jan 18 22:16:33 2015 From: pete at lcsql.com (Peter Haworth) Date: Sun, 18 Jan 2015 19:16:33 -0800 Subject: How to access a file on a remote computer In-Reply-To: References: <3A05C317-38A2-427C-81E6-7739AA012863@kagi.com> Message-ID: Hi Scott, Thanks for the tip. That's actually where I started with all this. Please bear with me on this somewhat lengthy explanation. I made this player as kind of an iTunes lite so I could just play tracks from my iTunes library without the extra bloat of iTunes. First time it runs, it asks for the location of the iTunes folder. I then parse the iTunes Library.xml file to get all the info about tracks and playlists. One of the items of track information is its location which is in exactly the format you mentioned, with the exception that it starts with "file://localhost/". Here's an example: file://localhost/Volumes/External1/iTunes/iTunes%20Music/A%20Wanton%20Fling/MR%20Possibles/Pipes-The%20Wee%20Eddie%20Reel.mp3 When I choose a track to play, I feed that location info to the player as it's filename. That all works great as long as I'm looking at an iTunes folder on the local computer. But if I point the player to an iTunes folder on another computer on the network, the player doesn't like the location as a filename because of the "localhost". I had hoped that if I simply replaced "localhost" with what OSX claims is the remote computer's name on the network, all would just work. The name I mean is the one shown in the System Settings/Sharing dialog when you go to the File sharing section. In my case, it's "petes-imac". It seems like that should work to me but the player didn't like it. Interestingly, it does work on the computer named petes-imac but not on a different computer that is trying to access it. Next thing I tried was massaging the location info so it looked like this: file://Volumes/iTunes/iTunes%20Music/A%20Wanton%20Fling/MR%20Possibles/Pipes-The%20Wee%20Eddie%20Reel.mp3 That's what I get if I drag the file into a Terminal window, minus the "file:/" and without the "%20"'s. But that didn't work either. At that point I tried a number of different ways of getting the filepath, some using the location info and some not. Another complication I have to deal with is that some of the filenames have unicode in them. I'm not using LC 7 yet but I managed to get around that one. I finally got it working but then ran into this problem with the ampersand and whatever other characters need to be escaped. So that's how I ended up in this situation. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Sun, Jan 18, 2015 at 5:31 PM, Scott Rossi wrote: > Hi Pete: > > Many years ago I ran into path issues with players and (from my notes) > wound up with a workaround that involved using the ?full? file path like > this: > > set fileName of player 1 to \ > "file:///volumes/primary/users/dude/really_long_filename_here.mp3? > > I also had in my notes to specifically replace spaces with ?%20?. > > These modifications were for older versions of LC, so not sure if they > will make any difference now. If you continue to have issues you might try > urlEncoding the path as well. > > Regards, > > Scott Rossi > Creative Director > Tactile Media, UX/UI Design > > > On Jan 18, 2015, at 4:50 PM, Peter Haworth wrote: > > > I'm almost there. > > > > The reason I'm looking into this is because I'm setting the filename of a > > player control to the name of a mp3 file on a remote computer. > > > > I thought I had it all working but the player control does not like > > filenames with an ampersand in them. > > > > I tried escaping the ampersand with a "\" character (that's what I see > if I > > drag the filename into a Terminal window) but still no joy. > > > > Same problem with filenames including an apostrophe. I'm guessing there > are > > other characters that cause the same problem > > > > Any ideas? > > > > Pete > > lcSQL Software > > Home of lcStackBrowser and > > SQLiteAdmin > > > > On Sun, Jan 18, 2015 at 9:56 AM, Peter Haworth wrote: > > > >> Thanks Kay and Kee, your suggestions put me on the right track. > >> > >> Kay: there is a mount command available though Terminal but I've never > >> used it so don;t know if it would do what you're suggesting. > >> > >> Pete > >> lcSQL Software > >> Home of lcStackBrowser and > >> SQLiteAdmin > >> > >> On Sun, Jan 18, 2015 at 3:39 AM, Kay C Lan > >> wrote: > >> > >>> Kee, > >>> > >>> that had me confused and I looked a little deeper. It appears that > >>> I've just been lucky in the simple URL way I've been accessing files > >>> across my LAN - this is as tested on OS X 10.9.5. > >>> > >>> The URL method I posted earlier, and the open file for read methods do > >>> NOT seem to work unless the actual network folder the file resides in > >>> is mounted on your system - i.e. the Eject symbol needs to present not > >>> just the server and or folder icon visible. After a quick test the > >>> simplest way I've found within LC to mount the network folder/file and > >>> get the exact path name is to use - answer folder/file > >>> > >>> answer file "Choose a file:" --navigate to a network TEXT file to test > >>> put "file:" & it into tFilePath > >>> put URL tFilePath into msg > >>> > >>> For ages I've been using LC to 'do as AppleScript' to tell BBEdit to > >>> open a network file. I've then been using the 'put URL xxxx into tVar' > >>> and 'put tContent into URL xxxx' without a hiccup. I didn't realise > >>> that LC needed the file to be mounted first and BBEdit was doing it > >>> automatically for me. > >>> > >>> Does anyone know if there is a command to force OS X to mount a folder > >>> that you have appropriate access rights to? I can think of a million > >>> reasons why you would want to bypass the 'answer folder/file' step. It > >>> would be nice if either the put URL, or open file methods > >>> automatically mounted the folder, or a 'mount fiolder' command that > >>> acted like a faceless 'answer folder'; you gave it a folder path and > >>> it mounted just like answer folder/file is doing now but without the > >>> dialog box. > >>> > >>> If no one knows of a faceless way to mount a folder on OS X I can put > >>> in an enhancement request. > >>> > >>> Do those on Win and Linux have automatic mounting of network > >>> folders/files or is this a problem on those platforms as well? > >>> > >>> Oh and one last thing. One MAJOR difference between the URL method and > >>> the open file for read method. If you use open file for read, whilst > >>> ever it is open if you try and unmount the server/folder, i.e. click > >>> on the Eject icon, you will get a System warning telling you "The disk > >>> xxxxx couldn't be ejected because LiveCode is using it". With the URL > >>> method it is possible to Eject the server/folder without any warning > >>> so may unwittingly stop your stack from doing what it's suppose to. > >>> > >>> I think I better go back and change my URL method to open file for > read. > >>> > >>> _______________________________________________ > >>> use-livecode mailing list > >>> use-livecode at lists.runrev.com > >>> Please visit this url to subscribe, unsubscribe and manage your > >>> subscription preferences: > >>> http://lists.runrev.com/mailman/listinfo/use-livecode > >>> > >> > >> > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From lan.kc.macmail at gmail.com Sun Jan 18 22:38:27 2015 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Mon, 19 Jan 2015 11:38:27 +0800 Subject: How to access a file on a remote computer In-Reply-To: References: <3A05C317-38A2-427C-81E6-7739AA012863@kagi.com> Message-ID: On Mon, Jan 19, 2015 at 11:16 AM, Peter Haworth wrote: > I'm not > using LC 7 yet but I managed to get around that one. > > Pete, thanks for the shell 'mount' pointer. I didn't get it to work first try but I'm sure it will be the solution. What version of LC are you using. I've not done anything with Players in LC so I've no clue. I created a new stack in 7.0.1, dragged the player object over, it looked normal, it played the demo RunRev mp4 OK. I then changed the fileName to an mp3 and no matter what I couldn't get any music. So I thought maybe it was an LC 7 thing, so I tried LC 6.6.5. New stack, drag the player object on to it and it looks all broken. The object seems to be in two separate parts - a empty box and offset to that a blue box 4 times the size. It doesn't play the RunRev Demo movie or music - it appears to be completely unusable to me. From brahma at hindu.org Sun Jan 18 23:15:51 2015 From: brahma at hindu.org (Brahmanathaswami) Date: Sun, 18 Jan 2015 18:15:51 -1000 Subject: How to access a file on a remote computer In-Reply-To: References: <3A05C317-38A2-427C-81E6-7739AA012863@kagi.com> Message-ID: <54BC84F7.4010301@hindu.org> I have a number of apps that talk to a server over the LAN I used to always keep this appleScript in a customProp tell application "Finder" mount volume "afp://192.142.103.8/Varuna" as user name "MyName" with password "MyPassword" end tell and either hardwire my user name and password to the script or use replacement strings like this: tell application "Finder" mount volume "afp://192.142.103.8/Varuna" as user name "###USER###" with password "###PASSWD" end tell and then in the UI prompt the user to enter credentials and save those to a preferencs file locally and reload as needed on boot. I keep a "ping.txt" file on the server to check for connectivity etc. But, over the years I found that there were way too many scenarios to try to manage from the app. So now I take the "low road" -- ping the remote machine by asking for a file... if I don't get it, then prompt the user "Please mount the remote volume" I still keep the user name and password stored somewhere as there are odd moments when the server still wants authentication, so we can provide that in the background as needed. I tried the above appleScript today in Mavericks and it still works. Perhaps this is of some use to you, Pete: command checkConnectivity tIP # typically I will pass an IP for one of our domains on a remote web server # assumes if user cannot get to the web server, then he's not even connect to the network. # there are other methods, but this one is pretty fail safe... of course if there is an enterprise firewall # preventing access to the outside while user can still see other machines on the LAN, this won't work. put hostAddressToName(tIP) into tServer if tServer is Empty then set the dialogData to "Sorry, there is a connection problem. Turn on airport or make sure your ethernet cable is pluggedin, then try again." showStatus wait 1 second exit to top else CheckVarunaIsMounted end if end checkConnectivity command mountVaruna set the dialogData to "Mounting Varuna..." showStatus put the uAppleScripts of stack "KA-Media-Player" into tScripts set the itemdel to "|" do item 1 of tScripts as applescript checkVarunaIsMounted end mountVaruna command CheckVarunaIsMounted repeat ten times put url "file:/Volumes/Varuna/Sound Projects/Gurudeva Audio in Process/Control-Files/KA-Media-Player_Access-Control.txt" into gControlFile if gControFile is not empty then loadACL else send checkVarunaIsMounted to me in 1 second end if end repeat if gControlFile is empty then mountVaruna end if end CheckVarunaIsMounted Swasti Astu, Be Well! Brahmanathaswami Kauai's Hindu Monastery www.HimalayanAcademy.com Kay C Lan wrote: > Pete, thanks for the shell 'mount' pointer. I didn't get it to work first > try but I'm sure it will be the solution. From jacque at hyperactivesw.com Mon Jan 19 00:41:54 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 18 Jan 2015 23:41:54 -0600 Subject: Stub Stack In-Reply-To: <000501d03352$e15763c0$a4062b40$@net> References: <000b01d032a7$679e9e00$36dbda00$@net> <54BAEFFB.6000002@fourthworld.com> <000c01d032e1$ca54f460$5efedd20$@net> <20F1B601-9328-4F23-9ABB-867796ED7482@tactilemedia.com> <9C93D9A3-8245-40A2-A027-B251284B9FC0@mac.com> <000401d0334f$ac236c60$046a4520$@net> <000501d03352$e15763c0$a4062b40$@net> Message-ID: <54BC9922.60106@hyperactivesw.com> On 1/18/2015 1:13 PM, Ralph DiMola wrote: > What is the best way to pass data the main stack? > The stub stack show a splash screen then does a "Go Stack > mainstack.livecode" and then closes itself. I could write text file in the > stub and read it in from the main stack, but is there a better way to do > this? If the stub is a standalone it never really closes because it's running everything. If it's a regular stack running in the IDE, just make sure destroystack is set to false so that when it closes it is still in RAM. Put a function into the stub stack script that returns the text you need. In the main running stack, call the function when you need to retrieve the text. You can either put the stub stack script in use, or just call the function from the main stack using this syntax: put value("retrieveText()",stack "stub") into tText where "retrieveText" is the name of the function in the stub stack. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From andre.bisseret at wanadoo.fr Mon Jan 19 03:20:36 2015 From: andre.bisseret at wanadoo.fr (=?utf-8?Q?Andr=C3=A9_Bisseret?=) Date: Mon, 19 Jan 2015 09:20:36 +0100 Subject: DataGrid Event for change of line highlighted? In-Reply-To: <43C8FB8E-B1AF-4710-91DD-8616014599A4@me.com> References: <43C8FB8E-B1AF-4710-91DD-8616014599A4@me.com> Message-ID: <49758BF8-4710-4B55-AF35-A0478FACE7E0@wanadoo.fr> Bonjour John, I think that what you are looking for is on selectionChanged end selectionChanged HTH Best regards Andr? > Le 19 janv. 2015 ? 03:41, JOHN PATTEN a ?crit : > > HI All, > > Is there a built in datagrid event that occurs when the user arrows down in a datagrid list and the row is highlighted? > > on dataGrid-lineHighlighted > do something > end dataGrid-lineHighlighted > > Thank you! > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bogdanoff at me.com Mon Jan 19 09:28:31 2015 From: bogdanoff at me.com (Peter Bogdanoff) Date: Mon, 19 Jan 2015 06:28:31 -0800 Subject: Inspector Issue In-Reply-To: References: Message-ID: <0554FEFC-E643-4C3B-B116-D9436A049CAA@me.com> I didn?t get any response about this problem. I went ahead and reverted to an earlier version of my stack. Most of the changes to restore were text. I gathered all the text from the later and earlier versions and followed Phil Davis? excellent suggestion to use TextWrangler?s ?Find differences? to see what I needed to move over. Peter On Jan 16, 2015, at 1:14 PM, Peter Bogdanoff wrote: > Hi, > > I would like some expert advice. > > I have a stack that on some of the cards exhibit an issue: When you show the Inspector and there click on Inspect>? it doesn?t show all the controls. In fact it only shows Inspect>buttons> and then a list of the first 7-8 buttons on the card. On the card there are dozens of buttons, fields, an image, etc., but the Inspector doesn?t list them. > > When I use Geoff Canyon?s Navigator plugin I see all the controls, and indeed, all the controls seem to be visible and it all works. I can select any control and its properties display in the Inspector. Just that dang Inspect> triangle doesn?t show all it should. > > This issue occurs on many of the cards of this 3,000 card stack, but not all; on many all the controls show properly in the Inspector. This anomaly occured recently but doesn?t seem to affect the functionality of the stack. I?m using LC 6.3.1, but I also see it when I open that stack in a later version of LC. > > My question(s): Has anyone seen this before? and is my stack damaged? and should I revert to an earlier version? > > Peter Bogdanoff > UCLA > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dfepstein at comcast.net Mon Jan 19 09:56:24 2015 From: dfepstein at comcast.net (David Epstein) Date: Mon, 19 Jan 2015 09:56:24 -0500 Subject: Tabstops problem in 7.0.1? Message-ID: On Mac Yosemite, a simple field with tabstops set to 36: In LiveCode 7.0.1 Community, with the insertion point in the field, I press tab, expecting to indent the paragraph I am about to type. The cursor does not move, as if the tab keystroke was not received. But when I type another character it gets indented properly, showing me that the tab had been inserted. In LiveCode 5.5 the cursor moves as expected and desired when I press tab, to the indented point where what I type next will be inserted. Do others see this symptom? Many thanks. David Epstein From prothero at earthednet.org Mon Jan 19 13:44:06 2015 From: prothero at earthednet.org (William Prothero) Date: Mon, 19 Jan 2015 10:44:06 -0800 Subject: App Wrapper with CEF Browser file Message-ID: <7B3547A4-6FBF-422C-AB6D-E7C91D7EDE06@earthednet.org> Folks: I?m just wondering if anybody has used App Wrapper 3 with the CEF browser library module. App Wrapper complains that it is not code signed. Yosemite, LC7.0.1 and beyond. Could this be a bug? Sam Rowlands, the App Wrapper author complains that LiveCode users are causing him 90% of the problems, so it would be nice to help him out and find out whether this is a problem with LC 7 series, or it?s a problem with App Wrapper. Regards, Bill William A. Prothero http://es.earthednet.org/ From prothero at earthednet.org Mon Jan 19 13:55:04 2015 From: prothero at earthednet.org (William Prothero) Date: Mon, 19 Jan 2015 10:55:04 -0800 Subject: Advice on free app and user security Message-ID: <4AA7BDF5-4122-4384-8417-40D57CCCF0D9@earthednet.org> Folks: I have been working on an educational app that I?m going to give away for free. I think of it as ROI for all the money I?ve gotten in NSF grants over the years. But, since I?m giving this away for free, I?d like to make sure my investment is being used and how much. I feel that, at least, I?m owed the satisfaction of knowing that educators and students use my work. On the other hand, I don?t want to create barriers that will inhibit its use. So, that said, my plan is to have all new users who are installing the app on their computer, enter a valid email. A registration code will be emailed to that address to validate the license. That?s a bottom line for me. In addition, I?d also like to know if it is being used, rather than just tried. So, my plan is to post a date and name (whatever the user chooses as a username) to an online mysql db. Also, bug reports will be automatically emailed to me. I would also promise not to share the information or use it for anything but rare marketing or update emails and perhaps I could have a checkbox that gets a yes or no on that. I find that unless it is automatic, users won?t go to a social media site or use email to give feedback about an app. However, I notice that many apps (Apple?s for example) ask for the user?s permission to send this diagnostic information to Apple. So, I?d like to get some feedback on what you consider the ?best practice? for this situation. Regards Bill William A. Prothero http://es.earthednet.org/ From pete at lcsql.com Mon Jan 19 14:14:04 2015 From: pete at lcsql.com (Peter Haworth) Date: Mon, 19 Jan 2015 11:14:04 -0800 Subject: How to access a file on a remote computer In-Reply-To: <54BC84F7.4010301@hindu.org> References: <3A05C317-38A2-427C-81E6-7739AA012863@kagi.com> <54BC84F7.4010301@hindu.org> Message-ID: Thanks for all the suggestions. Still trying to get this working. The last thing I tried was to replace "localhost" in the "file://" statement with the name of the remote Mac as shown in the Sharing Preferences. In this case that is "Petes-imac.local" so I end up with: "file://Petes-Imac.local/" But the player still doesn't like it. To double check, I tried "get URL" with the same URL and it failed with the result showing "can't open that file". Next thing I tried was pasting the URL into Safari. It also failed to get the file but the interesting thing was that the error message showed the filepath without "Petes-imac.local" at the start of it. Baffled! Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Sun, Jan 18, 2015 at 8:15 PM, Brahmanathaswami wrote: > I have a number of apps that talk to a server over the LAN > > I used to always keep this appleScript in a customProp > > tell application "Finder" > mount volume "afp://192.142.103.8/Varuna" as user name "MyName" with > password "MyPassword" > end tell > > and either > > hardwire my user name and password to the script or use replacement > strings like this: > > tell application "Finder" > mount volume "afp://192.142.103.8/Varuna" as user name "###USER###" with > password "###PASSWD" > end tell > > and then in the UI prompt the user to enter credentials and save those to > a preferencs file locally and reload as needed on boot. > > I keep a "ping.txt" file on the server to check for connectivity etc. > > But, over the years I found that there were way too many scenarios to try > to manage from the app. So now I take the "low road" -- ping the remote > machine by asking for a file... if I don't get it, then prompt the user > "Please mount the remote volume" I still keep the user name and password > stored somewhere as there are odd moments when the server still wants > authentication, so we can provide that in the background as needed. > > I tried the above appleScript today in Mavericks and it still works. > > Perhaps this is of some use to you, Pete: > > command checkConnectivity tIP > # typically I will pass an IP for one of our domains on a remote web server > # assumes if user cannot get to the web server, then he's not even connect > to the network. > # there are other methods, but this one is pretty fail safe... of course > if there is an enterprise firewall > # preventing access to the outside while user can still see other machines > on the LAN, this won't work. > > put hostAddressToName(tIP) into tServer > if tServer is Empty then > set the dialogData to "Sorry, there is a connection problem. Turn > on airport or make sure your ethernet cable is pluggedin, then try again." > showStatus > wait 1 second > exit to top > else > CheckVarunaIsMounted > end if > > end checkConnectivity > > command mountVaruna > > set the dialogData to "Mounting Varuna..." > showStatus > put the uAppleScripts of stack "KA-Media-Player" into tScripts > set the itemdel to "|" > do item 1 of tScripts as applescript > checkVarunaIsMounted > > end mountVaruna > > command CheckVarunaIsMounted > > repeat ten times > put url "file:/Volumes/Varuna/Sound Projects/Gurudeva Audio in > Process/Control-Files/KA-Media-Player_Access-Control.txt" into > gControlFile > if gControFile is not empty then > loadACL > else > send checkVarunaIsMounted to me in 1 second > end if > end repeat > > if gControlFile is empty then > mountVaruna > end if > > end CheckVarunaIsMounted > > > > > > > Swasti Astu, Be Well! > Brahmanathaswami > > Kauai's Hindu Monastery > www.HimalayanAcademy.com > > > > Kay C Lan wrote: > >> Pete, thanks for the shell 'mount' pointer. I didn't get it to work first >> try but I'm sure it will be the solution. >> > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From brahma at hindu.org Mon Jan 19 14:21:31 2015 From: brahma at hindu.org (Brahmanathaswami) Date: Mon, 19 Jan 2015 09:21:31 -1000 Subject: Advice on free app and user security In-Reply-To: <4AA7BDF5-4122-4384-8417-40D57CCCF0D9@earthednet.org> References: <4AA7BDF5-4122-4384-8417-40D57CCCF0D9@earthednet.org> Message-ID: <54BD593B.1070503@hindu.org> We also plan to give away apps moving forward. We have/had the same "hope" : to know who, how many and how "deep" the users are getting into the app. For now we are going with Quad/Yudu to build the first Hinduism Today mobile app. Their prices and features are very good. In the Application brief we got for the discovery phase (set up the design and basic feature set) one of the check boxes says __ check if you want users to be able to register. Please note that Apple's rules state that registration cannot be mandatory So I suspect somewhere in the fine print... Apple requires that registration not be mandatory for full functionality. It makes sense if you think about it... someone downloads and then can't actually use it without signing in? That would irritate me... You might set up a community for your audience in Disqus or a dedicated twitter account or some other social thingy (I'm way behind there...) and if your app gets traction, perhaps you will see this in the community growth? Years ago we had an HT Digital App on the desktop that required registration. Andre built this... it was pretty cool. It worked pretty well as a UI to simpy fetch issues as PDF's to the desktop, keep a list of back issues etc. we downloaded coverslll The registration requirement met with a lot of resistance. Especially if because we had users confirm by email etc. lots of issues there failures to confirm because of spam etc... But we had other ways to determine "depth" We tracked downloads of the current issue from the app itself (very easy to do, by setting up a unique agent type for the GET requests, then all you have to do is parse your ACCESS logs on the server on a cron and push those numbers to your database or some text file you can read periodically) So, while we had 12,000 registered users < ASIDE: (not bad for a early 2000 App -- which proved IMHO that the resistance to "download desktop internet enable app" was not as high as some thought in those days --Richard's line! /> But the actual downloads of the quarterly issue of the magazine were only about 500. So, I know we had 500 or so really dedicated users. We could also track downloads of back issues. We had people in India who would download 20-30 giant PDF via our app. Andre did a really good job with that part... our app would maintain connectivity and make sure they got their issue and try again... could keep a standing connection running for hours and hours.... I think looking back, had I removed the registration requirement, we might have got even more users... as, in the end it was the downloads of the issue that proved to be the key metric, not installations or registrations. I install and even register for lots of software myself, that i never use. So: think different -- set up some key component that must be used by a "dedicated fan" and track that... and perhaps you will come close to your goal: " I feel that, at least, I?m owed the satisfaction of knowing that educators and students use my work. Swasti Astu, Be Well! Brahmanathaswami Kauai's Hindu Monastery www.HimalayanAcademy.com William Prothero wrote: > However, I notice that many apps (Apple?s for example) ask for the user?s permission to send this diagnostic information to Apple. > > So, I?d like to get some feedback on what you consider the ?best practice? for this situation. From kee at kagi.com Mon Jan 19 14:22:16 2015 From: kee at kagi.com (kee nethery) Date: Mon, 19 Jan 2015 11:22:16 -0800 Subject: Advice on free app and user security In-Reply-To: <4AA7BDF5-4122-4384-8417-40D57CCCF0D9@earthednet.org> References: <4AA7BDF5-4122-4384-8417-40D57CCCF0D9@earthednet.org> Message-ID: > On Jan 19, 2015, at 10:55 AM, William Prothero wrote: > > Folks: > I have been working on an educational app that I?m going to give away for free. I think of it as ROI for all the money I?ve gotten in NSF grants over the years. But, since I?m giving this away for free, I?d like to make sure my investment is being used and how much. I feel that, at least, I?m owed the satisfaction of knowing that educators and students use my work. On the other hand, I don?t want to create barriers that will inhibit its use. > > So, that said, my plan is to have all new users who are installing the app on their computer, enter a valid email. A registration code will be emailed to that address to validate the license. That?s a bottom line for me. In addition, I?d also like to know if it is being used, rather than just tried. So, my plan is to post a date and name (whatever the user chooses as a username) to an online mysql db. Also, bug reports will be automatically emailed to me. I would also promise not to share the information or use it for anything but rare marketing or update emails and perhaps I could have a checkbox that gets a yes or no on that. I find that unless it is automatic, users won?t go to a social media site or use email to give feedback about an app. > > However, I notice that many apps (Apple?s for example) ask for the user?s permission to send this diagnostic information to Apple. > > So, I?d like to get some feedback on what you consider the ?best practice? for this situation. yes. You are far better off telling people what you are doing and why, than to have them discover your app is sending data and for them to assume the worst. Kee > > Regards > Bill > > William A. Prothero > http://es.earthednet.org/ > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Mon Jan 19 14:23:03 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 19 Jan 2015 13:23:03 -0600 Subject: How to access a file on a remote computer In-Reply-To: References: <3A05C317-38A2-427C-81E6-7739AA012863@kagi.com> <54BC84F7.4010301@hindu.org> Message-ID: <53672421-3D8A-47B3-95EA-04CDF8C011F4@hyperactivesw.com> On January 19, 2015 1:14:04 PM CST, Peter Haworth wrote: >Thanks for all the suggestions. Still trying to get this working. I can't remember if you tried this yet but what happens if you do an "answer file" dialog and use the file path that comes back? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From kee at kagi.com Mon Jan 19 14:46:52 2015 From: kee at kagi.com (kee nethery) Date: Mon, 19 Jan 2015 11:46:52 -0800 Subject: Advice on free app and user security In-Reply-To: <4AA7BDF5-4122-4384-8417-40D57CCCF0D9@earthednet.org> References: <4AA7BDF5-4122-4384-8417-40D57CCCF0D9@earthednet.org> Message-ID: Given all you want is use data, here?s my recommendation. Skip the email / reg code thing. Don?t do it. Skip the back end database, you don?t need it. Twice a year have your app put up a dialog that states something like: I?m glad you are using MyApp. It is free with one condition, every 6 months I?d like to receive your usage data so that I can focus on improving and enhancing the parts of MyApp that people actually use. The usage data, displayed below, contains nothing about you, it?s just a tally of what got used. This data gets sent to http://usage.myapp.com/usage.txt in clear text so that you can see, all I?m sending is what is displayed below. Again, thank you for using MyApp. Display the data that has been gathered to date: Version: 1.2.1 Usage Reports Sent: 1 Menu File/Open: 52 Menu File/Quit: 69 Trajectories calculated: 23 Summary sent to usage server: V=1.2.1&URS=1&FO=52&FQ=69&T=23 http://usage.myapp.com/usage.txt?V=1.2.1&URS=1&FO=52&FQ=69&T=23 If you just send this stuff to your server as a GET URL you?ll capture all this data in your server logs and you can process it whenever you feel like it. I would suggest that your usage.txt file contain a message of interest to them, and that you display it in the app after they press the Send button. For example ?Latest version 1.4 calculates trajectories two times faster than in previous versions. Download at ? Then zero the activity counters and increment the Usage Reports Sent. You might allow them to select a ?Not Now? button that would cause the ?Send Usage Data? display to pop up the next day and keep doing so until they send it. You could always build something on your server later that looks for people with high "usage reports sent" numbers and ask them to contact you via email so that you can interview them to have them give you advice, or really old versions and really ask them to upgrade. My two cents. Kee Nethery > On Jan 19, 2015, at 10:55 AM, William Prothero wrote: > > So, I?d like to get some feedback on what you consider the ?best practice? for this situation. From pete at lcsql.com Mon Jan 19 14:50:14 2015 From: pete at lcsql.com (Peter Haworth) Date: Mon, 19 Jan 2015 11:50:14 -0800 Subject: How to access a file on a remote computer In-Reply-To: <53672421-3D8A-47B3-95EA-04CDF8C011F4@hyperactivesw.com> References: <3A05C317-38A2-427C-81E6-7739AA012863@kagi.com> <54BC84F7.4010301@hindu.org> <53672421-3D8A-47B3-95EA-04CDF8C011F4@hyperactivesw.com> Message-ID: Right, yes I did try that and all works fine using the contents of the it variable that comes back. It uses the "/Volumes" format for the mounted folder/file. Problem is though that I already have the location of the file I want to play (but in "file://" URL format so don't want to prompt for it. Maybe I can get this working by somehow transposing the "file://" format file URL I already have into a "/Volumes" format. I'll give that a try and report back. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Mon, Jan 19, 2015 at 11:23 AM, J. Landman Gay wrote: > On January 19, 2015 1:14:04 PM CST, Peter Haworth wrote: > >Thanks for all the suggestions. Still trying to get this working. > > > I can't remember if you tried this yet but what happens if you do an > "answer file" dialog and use the file path that comes back? > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bodine at bodinetraininggames.com Mon Jan 19 15:33:15 2015 From: bodine at bodinetraininggames.com (tbodine) Date: Mon, 19 Jan 2015 12:33:15 -0800 (PST) Subject: Advice on free app and user security In-Reply-To: References: <4AA7BDF5-4122-4384-8417-40D57CCCF0D9@earthednet.org> Message-ID: <1421699595089-4688027.post@n4.nabble.com> >>Skip the email / reg code thing. Don?t do it. Skip the back end database, you don?t need it. Interesting thread. One factor not mentioned yet is the possible subversion of your intent, Bill. Case in point: when my daughter was teaching she started a blog with free teacher resources of her own creation. The blog became quite popular. And within a year a number of other sites popped up offering her content and other material (presumable free) for sale and without attribution. (She left teaching for other reasons and has since let her blog lapse.) My thought is your minor requirements of an email, reg code and tracking create a very small barrier to entry that shouldn't stop legit educators or students. But it may be just enough to keep those looking for an easy, fast buck from subverting your work. My 2 cents. Tom Bodine -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Advice-on-free-app-and-user-security-tp4688020p4688027.html Sent from the Revolution - User mailing list archive at Nabble.com. From capellan2000 at gmail.com Mon Jan 19 15:42:36 2015 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Mon, 19 Jan 2015 12:42:36 -0800 (PST) Subject: extracting the thumbnail from digital photos? In-Reply-To: <1421611535291-4688003.post@n4.nabble.com> References: <1421611535291-4688003.post@n4.nabble.com> Message-ID: <1421700156953-4688028.post@n4.nabble.com> Hi Malte, Out of curiosity (and just to test if I am correct about this) I started looking around among the jpg files stored in my Ubuntu PC (using the command line utility exiftool) Found that most jpg images, although they have exif data, do not have a thumbnail image. So, from this webpage: http://www.imaging-resource.com/PRODS/fuji-x100t/FULLRES/X100ThSLI00100NR2D.HTM I downloaded this 8 MB image: http://216.18.212.226/PRODS/fuji-x100t/FULLRES/X100ThSLI00100NR2D.JPG This 8 MB JPG image actually have a thumbnail inside the Exif data. In any Hexadecimal file editor (in Ubuntu, I am using Bless) select this range: FROM:0x750 TO:0x29e4 (or) FROM:0x750 TO:+8853 (bytes) Copy the selection, create a new file and paste this range. Save this new file as (for example) X100thumbnail.jpg This proves that Exif data stores the thumbnail as a complete JPG file. I am sure that you could repeat these steps inside Livecode. Have a nice week! Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/extracting-the-thumbnail-from-digital-photos-tp4687985p4688028.html Sent from the Revolution - User mailing list archive at Nabble.com. From jacque at hyperactivesw.com Mon Jan 19 16:11:15 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 19 Jan 2015 15:11:15 -0600 Subject: How to access a file on a remote computer In-Reply-To: References: <3A05C317-38A2-427C-81E6-7739AA012863@kagi.com> <54BC84F7.4010301@hindu.org> <53672421-3D8A-47B3-95EA-04CDF8C011F4@hyperactivesw.com> Message-ID: <54BD72F3.2000602@hyperactivesw.com> On 1/19/2015 1:50 PM, Peter Haworth wrote: > Right, yes I did try that and all works fine using the contents of the it > variable that comes back. It uses the "/Volumes" format for the mounted > folder/file. > > Problem is though that I already have the location of the file I want to > play (but in"file://" URL format so don't want to prompt for it. Okay, so now I'm talking off the top of my head with little experience but... I remember reading something about Apple's sandboxing rules, which say that apps can only access files outside the sandbox if the user specifically selects them, which is what happens when you use "answer file". If an app tries to access a file outside its sandbox without user interaction, permission is denied. Could that be related? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From pete at lcsql.com Mon Jan 19 16:26:23 2015 From: pete at lcsql.com (Peter Haworth) Date: Mon, 19 Jan 2015 13:26:23 -0800 Subject: How to access a file on a remote computer In-Reply-To: References: <3A05C317-38A2-427C-81E6-7739AA012863@kagi.com> <54BC84F7.4010301@hindu.org> <53672421-3D8A-47B3-95EA-04CDF8C011F4@hyperactivesw.com> Message-ID: Hi Jacque, Using the "/Volumes" way of opening the file worked! I ran into one issue - some of the filenames have unicode characters in them. I searched the list and found this solution from Bjornke: put unidecode(uniencode(tVar,"UTF8")) into tFilename That makes things work whether the file name has unicode characters in it or not. This, of course, is using pre-7.0 technology. Ou of interest, if I used 7.0 how would I set about translating a string with unicode characters in it into a form acceptable as an OSX filename? In answer to your thought about sandboxing, I'm doing exactly the same as iTunes - accessing music files in the ~/Music/iTunes folder so I assume they would be within the app's sandbox. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Mon, Jan 19, 2015 at 11:50 AM, Peter Haworth wrote: > Right, yes I did try that and all works fine using the contents of the it > variable that comes back. It uses the "/Volumes" format for the mounted > folder/file. > > Problem is though that I already have the location of the file I want to > play (but in "file://" URL format so don't want to prompt for it. > > Maybe I can get this working by somehow transposing the "file://" format > file URL I already have into a "/Volumes" format. I'll give that a try and > report back. > > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin > > On Mon, Jan 19, 2015 at 11:23 AM, J. Landman Gay > wrote: > >> On January 19, 2015 1:14:04 PM CST, Peter Haworth wrote: >> >Thanks for all the suggestions. Still trying to get this working. >> >> >> I can't remember if you tried this yet but what happens if you do an >> "answer file" dialog and use the file path that comes back? >> -- >> Jacqueline Landman Gay | jacque at hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > From jacque at hyperactivesw.com Mon Jan 19 16:49:15 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 19 Jan 2015 15:49:15 -0600 Subject: How to access a file on a remote computer In-Reply-To: References: <3A05C317-38A2-427C-81E6-7739AA012863@kagi.com> <54BC84F7.4010301@hindu.org> <53672421-3D8A-47B3-95EA-04CDF8C011F4@hyperactivesw.com> Message-ID: <54BD7BDB.1070003@hyperactivesw.com> If it works then my answer doesn't apply. But I got curious and did some research on the OS X sandbox. Most of what I found was old info but there's a reasonably readable explanation here: Which mentions iTunes controllers: "As pointed out by MacRumors, there are other apps that will be negatively impacted by sandboxing: ? iTunes controllers (Tagalicious, CoverSutra)" But apparently you've got it working. I'm not sure about LC 7 file paths, haven't gone there yet. On 1/19/2015 3:26 PM, Peter Haworth wrote: > Hi Jacque, > > Using the "/Volumes" way of opening the file worked! > > I ran into one issue - some of the filenames have unicode characters in > them. I searched the list and found this solution from Bjornke: > > put unidecode(uniencode(tVar,"UTF8")) into tFilename > > That makes things work whether the file name has unicode characters in it > or not. > > This, of course, is using pre-7.0 technology. Ou of interest, if I used > 7.0 how would I set about translating a string with unicode characters in > it into a form acceptable as an OSX filename? > > In answer to your thought about sandboxing, I'm doing exactly the same as > iTunes - accessing music files in the ~/Music/iTunes folder so I assume > they would be within the app's sandbox. > > > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin > > On Mon, Jan 19, 2015 at 11:50 AM, Peter Haworth wrote: > >> Right, yes I did try that and all works fine using the contents of the it >> variable that comes back. It uses the "/Volumes" format for the mounted >> folder/file. >> >> Problem is though that I already have the location of the file I want to >> play (but in "file://" URL format so don't want to prompt for it. >> >> Maybe I can get this working by somehow transposing the "file://" format >> file URL I already have into a "/Volumes" format. I'll give that a try and >> report back. >> >> Pete >> lcSQL Software >> Home of lcStackBrowser and >> SQLiteAdmin >> >> On Mon, Jan 19, 2015 at 11:23 AM, J. Landman Gay >> wrote: >> >>> On January 19, 2015 1:14:04 PM CST, Peter Haworth wrote: >>>> Thanks for all the suggestions. Still trying to get this working. >>> >>> >>> I can't remember if you tried this yet but what happens if you do an >>> "answer file" dialog and use the file path that comes back? >>> -- >>> Jacqueline Landman Gay | jacque at hyperactivesw.com >>> HyperActive Software | http://www.hyperactivesw.com >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From prothero at earthednet.org Mon Jan 19 16:58:04 2015 From: prothero at earthednet.org (William Prothero) Date: Mon, 19 Jan 2015 13:58:04 -0800 Subject: Advice on free app and user security In-Reply-To: <1421699595089-4688027.post@n4.nabble.com> References: <4AA7BDF5-4122-4384-8417-40D57CCCF0D9@earthednet.org> <1421699595089-4688027.post@n4.nabble.com> Message-ID: Thanks for the interesting comments. One thing I like to do is have a configuration file on a db on my server, so I can set specific parameters without the need to update the app. My current app accesses help files using the revBrowser and links to my html help (on my server) and a youtube demo movie. This way I can update the help files, add to them, etc, without requiring updating the app. Of course, I could have a link to a web page that does the same thing, but when the student using the app is focussed on their assignment, it?s nice to have help front and center. What I had planned was that there would be 2 installation modes. One would be in a lab setting where multiple students use the software. Another would be individual installations, probably by students in an online class or for homework assignments. The lab setting would require only one registration. I would inform the person doing the installation that there would be a usage item sent to the server, with a promise that the data will not contain personally identifiable information. That would be up front, and required. I haven?t yet decided about the individual student, but it would be nice if I could differentiate between frequent users and those who only try out the app. Regards, Bill > On Jan 19, 2015, at 12:33 PM, tbodine wrote: > >>> Skip the email / reg code thing. Don?t do it. Skip the back end database, > you don?t need it. > > Interesting thread. One factor not mentioned yet is the possible subversion > of your intent, Bill. Case in point: when my daughter was teaching she > started a blog with free teacher resources of her own creation. The blog > became quite popular. And within a year a number of other sites popped up > offering her content and other material (presumable free) for sale and > without attribution. (She left teaching for other reasons and has since let > her blog lapse.) > > My thought is your minor requirements of an email, reg code and tracking > create a very small barrier to entry that shouldn't stop legit educators or > students. But it may be just enough to keep those looking for an easy, fast > buck from subverting your work. > > My 2 cents. > Tom Bodine > > > > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/Advice-on-free-app-and-user-security-tp4688020p4688027.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pete at lcsql.com Mon Jan 19 19:01:42 2015 From: pete at lcsql.com (Peter Haworth) Date: Mon, 19 Jan 2015 16:01:42 -0800 Subject: How to access a file on a remote computer In-Reply-To: <54BD7BDB.1070003@hyperactivesw.com> References: <3A05C317-38A2-427C-81E6-7739AA012863@kagi.com> <54BC84F7.4010301@hindu.org> <53672421-3D8A-47B3-95EA-04CDF8C011F4@hyperactivesw.com> <54BD7BDB.1070003@hyperactivesw.com> Message-ID: Hi Jacque, I read the link and I think whey talk about "iTunes controllers", they mean apps that communicate directly with iTunes, not sure what happens if you run an Applescript to do that. The program I've written doesn't communicate with iTunes at all. It gets all the music information by parsing the iTunes Library.xml file and then doesn't touch anything else, other than play the files of course. I've run it now as a standalone on OSX 10.7, OSX 10.9, and OSX 10.10 and it seems to work fine on all of them so I guess I'm not breaking any sandbox rules. I know there are some very knowledgeable people on the list when it comes to sandboxing so maybe they will comment. I should say, this isn't something I was planning on selling or even distributing although I might offer it as a freebie on my web site since it's worked out pretty well. I started it as an exercise in using the Livecode player control but, as these "quick" projects do, it rapidly developed into learning more than I really wanted to deal with on remote file accessing, unicode, and a few other things. But I guess that will all be good knowledge for the future. Anyway, thanks again to all the advice from everyone. It all contributed to figuring out how to solve the issue. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Mon, Jan 19, 2015 at 1:49 PM, J. Landman Gay wrote: > If it works then my answer doesn't apply. But I got curious and did some > research on the OS X sandbox. Most of what I found was old info but there's > a reasonably readable explanation here: > > is-a-killjoy-destined-to-ruin-our-mac-experience/> > > Which mentions iTunes controllers: > > "As pointed out by MacRumors, there are other apps that will be negatively > impacted by sandboxing: > > ? iTunes controllers (Tagalicious, CoverSutra)" > > But apparently you've got it working. I'm not sure about LC 7 file paths, > haven't gone there yet. > > > On 1/19/2015 3:26 PM, Peter Haworth wrote: > >> Hi Jacque, >> >> Using the "/Volumes" way of opening the file worked! >> >> I ran into one issue - some of the filenames have unicode characters in >> them. I searched the list and found this solution from Bjornke: >> >> put unidecode(uniencode(tVar,"UTF8")) into tFilename >> >> That makes things work whether the file name has unicode characters in it >> or not. >> >> This, of course, is using pre-7.0 technology. Ou of interest, if I used >> 7.0 how would I set about translating a string with unicode characters in >> it into a form acceptable as an OSX filename? >> >> In answer to your thought about sandboxing, I'm doing exactly the same as >> iTunes - accessing music files in the ~/Music/iTunes folder so I assume >> they would be within the app's sandbox. >> >> >> Pete >> lcSQL Software >> Home of lcStackBrowser and >> SQLiteAdmin >> >> On Mon, Jan 19, 2015 at 11:50 AM, Peter Haworth wrote: >> >> Right, yes I did try that and all works fine using the contents of the it >>> variable that comes back. It uses the "/Volumes" format for the mounted >>> folder/file. >>> >>> Problem is though that I already have the location of the file I want to >>> play (but in "file://" URL format so don't want to prompt for it. >>> >>> Maybe I can get this working by somehow transposing the "file://" format >>> file URL I already have into a "/Volumes" format. I'll give that a try >>> and >>> report back. >>> >>> Pete >>> lcSQL Software >>> Home of lcStackBrowser and >>> SQLiteAdmin >>> >>> On Mon, Jan 19, 2015 at 11:23 AM, J. Landman Gay < >>> jacque at hyperactivesw.com >>> >>>> wrote: >>>> >>> >>> On January 19, 2015 1:14:04 PM CST, Peter Haworth >>>> wrote: >>>> >>>>> Thanks for all the suggestions. Still trying to get this working. >>>>> >>>> >>>> >>>> I can't remember if you tried this yet but what happens if you do an >>>> "answer file" dialog and use the file path that comes back? >>>> -- >>>> Jacqueline Landman Gay | jacque at hyperactivesw.com >>>> HyperActive Software | http://www.hyperactivesw.com >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>>> >>> >>> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dochawk at gmail.com Mon Jan 19 20:00:38 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Mon, 19 Jan 2015 17:00:38 -0800 Subject: more compound mysql command woes Message-ID: I've happily found that with my new internet service, I can do simple mysql transactions with my hosted service (not my ISP) in about 30 ms. So I set out to again use it as a server with my software. I now have less hair. Using a separate transaction for each line is simply not within the realm of the possible; opening a client instance has a few hundred lines in a single transaction. My transactions work fine with postgres (both local and remote) and SQLite. I just cannot get multiple lines to work. I've tried both revDataFromQuery and revExecuteSQL. I've tried with and without semicolons at the end of lines (which are needed for postgres & SQLite). I've tried with and without BEGIN/COMMIT. An example block is: BEGIN ; CREATE TABLE dhdbt_dragon_puff_the__001 (unqKy INT NOT NULL, ktyp CHAR(1), kywd VARCHAR(50) UNIQUE, usr VARCHAR(20),scr TEXT, dltd BOOLEAN, cmd TEXT, PRIMARY KEY (unqKy)); INSERT INTO dhdbt_dragon_puff_the__001(kywd, ktyp, cmd) VALUES ('ckDinfo', 'M', '100000a'); COMMIT; -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From dochawk at gmail.com Mon Jan 19 22:08:05 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Mon, 19 Jan 2015 19:08:05 -0800 Subject: postgres ssl authentication? sockets? Message-ID: As I continue to poke around . . . I really want to use postgres, not mysql for a variety of reasons. revOpenDatabase() has an useSSL argument for mySQL, but not postgres. Postgres, however, also has built in ssl, and can *require* an incoming connection to use ssl, or can negotiate. As I've experimented on a remote machine, I can get a connection with md5 authentication, but if I change the host type to "hostssl", I get the error FATAL: no pg_hba.conf entry for host "12.34.56.78", user "joe", database "joesdb", SSL off but "SSL off" ? I have "ssl = on" in postgres.conf, but I didn't set the certificates, etc. However, from the postgres docs, it seems that those will want another key from the client, and there's no way to specify this for livecode. I'm wondering if sockets might be a better approach. Most of what I use the remote db for would be better off asynchronously anyway--namely, syncing databases. If I could send a "change these" message to the remote and just continue, knowing that I would eventually get a "you change these, too" back that could execute once the local user hadn't typed or otherwise interacted for some specified time period, it would be a huge gain in usability (at the moment, once the user is idle for 2 seconds, a sync attempt is made--but remotely, this could take a noticeable fraction of a seconds. Usually, it's about 30ms with my ISP & host, but 250ms isn't rare enough to ignore). I'm toying with the sequence that an LC server at the other end launches a standalone when nudged, and the socket is opened with the standalone, which would be able to "wait 1 second" after every time it responded, and sleep a second again if there was nothing waiting for it. Also, a supervisor could increase that wait time among the many instances of the standalone that would be running. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From pete at lcsql.com Mon Jan 19 22:11:23 2015 From: pete at lcsql.com (Peter Haworth) Date: Mon, 19 Jan 2015 19:11:23 -0800 Subject: more compound mysql command woes In-Reply-To: References: Message-ID: What error are you getting? Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Mon, Jan 19, 2015 at 5:00 PM, Dr. Hawkins wrote: > I've happily found that with my new internet service, I can do simple mysql > transactions with my hosted service (not my ISP) in about 30 ms. > > So I set out to again use it as a server with my software. > > I now have less hair. > > Using a separate transaction for each line is simply not within the realm > of the possible; opening a client instance has a few hundred lines in a > single transaction. > > My transactions work fine with postgres (both local and remote) and SQLite. > > I just cannot get multiple lines to work. I've tried both > revDataFromQuery and revExecuteSQL. I've tried with and without > semicolons at the end of lines (which are needed for postgres & SQLite). > I've tried with and without BEGIN/COMMIT. > > > An example block is: > BEGIN ; > CREATE TABLE dhdbt_dragon_puff_the__001 (unqKy INT NOT NULL, ktyp > CHAR(1), kywd VARCHAR(50) UNIQUE, usr VARCHAR(20),scr TEXT, dltd BOOLEAN, > cmd TEXT, PRIMARY KEY (unqKy)); > INSERT INTO dhdbt_dragon_puff_the__001(kywd, ktyp, cmd) VALUES ('ckDinfo', > 'M', '100000a'); > COMMIT; > > > -- > Dr. Richard E. Hawkins, Esq. > (702) 508-8462 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dochawk at gmail.com Mon Jan 19 22:28:28 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Mon, 19 Jan 2015 19:28:28 -0800 Subject: bringing a field of a sub-sub group to the for for editing In-Reply-To: References: Message-ID: On Sun, Jan 18, 2015 at 12:23 PM, Peter M. Brigham wrote: > Not sure if I know what you have in mind, but I wouldn't use a separate > stack over the field being edited. My output is basically shingled in rows, and I write the rows to the card from top to bottom (which keeps tab order correct, too). Also, I found that much to my surprise, formatting the schedule where this is most important only takes 30ms on my test case (formatting/calculating; not rendering). I thought that it was an order of magnitude higher . . . this makes slapping a redraw up a potential solution. > For each editable field userInputField I would use openfield to trigger > showing a scrolling input field at the same location, then on closefield > I'd set the text or htmltext of of the field userInputField to the > text/htmltext of the input field, then set the height of userInputField to > the formattedheight of userInputField, and add the difference in height to > each of the groups following. D'oh! Now that you mention it, there's no reason to use a stack rather than a field. I've been using floating stacks so much for controls, and also for input search/reduction lists as the user types, that it didn't even occur to me . . . > You could set a custom prop of the scrolling input field to the name or ID > of userInputField so it would load the correct field. Not sure if all of > that is clear or will do what you want. That part would definitely work; I already have the code that returns to the correct place in place for other reasons (adding fields requires a redraw)). -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From dochawk at gmail.com Mon Jan 19 23:54:12 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Mon, 19 Jan 2015 20:54:12 -0800 Subject: more compound mysql command woes In-Reply-To: References: Message-ID: On Mon, Jan 19, 2015 at 7:11 PM, Peter Haworth wrote: > What error are you getting? > They were all along the lines of revdberr,You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'CREATE TABLE dhdbt_dragon_puff_the__001 (unqKy INT NOT NULL, ktyp CHAR(1), kyw' at line 2 -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From capellan2000 at gmail.com Tue Jan 20 01:26:54 2015 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Mon, 19 Jan 2015 22:26:54 -0800 (PST) Subject: extracting the thumbnail from digital photos? In-Reply-To: References: Message-ID: <1421735214485-4688039.post@n4.nabble.com> Hi Malte, This button script extracts and displays a jpeg thumbnail from this image: http://216.18.212.226/PRODS/fuji-x100t/FULLRES/X100ThSLI00100NR2D.JPG This sample jpeg image have two thumbnails: 160x120 and 320x240 on mouseUp local temp answer file "Select JPEG image with EXIF thumbnail data" put it into temp open file temp for binary read read from file temp for 100000 -- first 100k of jpeg binary data put it into temp1 close file temp put numtochar(255) & numtochar(216) into tStart -- in Hexadecimal: FFD8 = SOI(Start of jpeg image) put numtochar(255) & numtochar(217) into tEnd -- in Hexadecimal: FFD9 = EOI(End of jpeg image) delete char 1 to 4 of temp1 -- delete JPEG SOI (Start of jpeg image) if char -2 to -1 of temp1 = tEnd then delete char -2 to -1 of temp1 -- delete JPEG EOI(End of jpeg image) put char offset(tStart,temp1) to (offset(tEnd,temp1) + 1) of temp1 into tJPGThumb -- this finds the first JPEG Thumbnail in the Data -- Some Digital Cameras store Two thumbnails if tJPGThumb is not empty then create img set the text of it to tJPGThumb -- put "Chars = " & the number of chars of tJPGThumb & cr & tJPGThumb else answer "No JPEG Thumbnail in this image" end if end mouseUp Have a nice week! Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/extracting-the-thumbnail-from-digital-photos-tp4687985p4688039.html Sent from the Revolution - User mailing list archive at Nabble.com. From capellan2000 at gmail.com Tue Jan 20 01:50:17 2015 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Mon, 19 Jan 2015 22:50:17 -0800 (PST) Subject: extracting the thumbnail from digital photos? In-Reply-To: References: Message-ID: <1421736617180-4688040.post@n4.nabble.com> Hi Malte, This script extracts all thumbnails from a jpeg image: on mouseUp local temp answer file "Select JPEG image with EXIF thumbnail data" put it into temp open file temp for binary read read from file temp for 100000 put it into temp1 close file temp put numtochar(255) & numtochar(216) into tStart -- in Hexadecimal: FFD8 = SOI(Start of jpeg image) put numtochar(255) & numtochar(217) into tEnd -- in Hexadecimal: FFD9 = EOI(End of jpeg image) delete char 1 to 2 of temp1 -- delete JPEG SOI (Start of jpeg image) if char -2 to -1 of temp1 = tEnd then delete char -2 to -1 of temp1 -- delete JPEG EOI(End of jpeg image) repeat until offset(tStart,temp1) = 0 put offset(tStart,temp1) into tThumbstart put offset(tEnd,temp1) into tThumbEnd put char tThumbstart to (tThumbEnd + 1) of temp1 into tJPGThumb delete char 1 to (tThumbEnd + 1) of temp1 if tJPGThumb is not empty then create img set the text of it to tJPGThumb else answer "No JPEG Thumbnails in this image" end if end repeat end mouseUp Have a nice week! Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/extracting-the-thumbnail-from-digital-photos-tp4687985p4688040.html Sent from the Revolution - User mailing list archive at Nabble.com. From matsastrom at yahoo.se Tue Jan 20 09:27:39 2015 From: matsastrom at yahoo.se (=?iso-8859-1?Q?Mats_=C5str=F6m?=) Date: Tue, 20 Jan 2015 15:27:39 +0100 Subject: libURLftpUploadFile Message-ID: <1165229A-DCC0-4793-9EF9-67A1F454D458@yahoo.se> libURLftpUploadFile to my ON-REV server has stopped working on Windows. I use the same code that works on OSX except, of course, for the local file URL. USER is urlEncoded, PASSWORD does not need to be urlEncoded: put "/Users/matsastrom/Desktop/ISO3166alpha2.tiff" into aLocalFileURL put ftp://USER:PASSWORD at matsastrom.on-rev.com/658/info.png/ISO3166alpha2.tiff" into aFtpDestinationURL libURLftpUploadFile aLocalFileURL, aFtpDestinationURL, doUploadDone As said, it works fine on Mac - I get "error" back on Windows. Have tried it on 6.7 and 7.0.1 - same result. Any ideas? /Mats From gcanyon at gmail.com Tue Jan 20 09:42:23 2015 From: gcanyon at gmail.com (Geoff Canyon) Date: Tue, 20 Jan 2015 09:42:23 -0500 Subject: A code style question Message-ID: I think these two functions are equivalent. Which would you use? (or would you use a different function altogether?) function baseID newID if newID is empty then if not exists (the baseID of this stack) then set the baseID of this stack to "this card" end if else if exists newID then set the baseID of this stack to newID else set the baseID of this stack to "this card" end if end if return the baseID of this stack end baseID function baseID newID if (newID is not empty and not exists newID) or \ (newID is empty and not exists (the baseID of this stack)) then \ set the baseID of this stack to "this card" if newID is not empty then set the baseID of this stack to newID return the baseID of this stack end baseID From matsastrom at yahoo.se Tue Jan 20 10:00:13 2015 From: matsastrom at yahoo.se (=?iso-8859-1?Q?Mats_=C5str=F6m?=) Date: Tue, 20 Jan 2015 16:00:13 +0100 Subject: libURLftpUploadFile References: <1165229A-DCC0-4793-9EF9-67A1F454D458@yahoo.se> Message-ID: <89DC9221-72C3-42E5-B1A5-5CD2A59383BD@yahoo.se> Sorry to have bothered you at all? Having spent 6 hours on this I was "certain" that the fault was not mine. I could not have been more wrong - a misspelled password... Please disregard my post. /Mats Vidarebefordrat brev: > Fr?n: Mats ?str?m > ?mne: libURLftpUploadFile > Datum: 20 januari 2015 15:27:39 CET > Till: use-livecode at lists.runrev.com > > libURLftpUploadFile to my ON-REV server has stopped working on Windows. > > I use the same code that works on OSX except, of course, for the local file URL. > USER is urlEncoded, PASSWORD does not need to be urlEncoded: > > put "/Users/matsastrom/Desktop/ISO3166alpha2.tiff" into aLocalFileURL > put ftp://USER:PASSWORD at matsastrom.on-rev.com/658/info.png/ISO3166alpha2.tiff" into aFtpDestinationURL > libURLftpUploadFile aLocalFileURL, aFtpDestinationURL, doUploadDone > > As said, it works fine on Mac - I get "error" back on Windows. > > Have tried it on 6.7 and 7.0.1 - same result. > Any ideas? > /Mats From gcanyon at gmail.com Tue Jan 20 10:39:36 2015 From: gcanyon at gmail.com (Geoff Canyon) Date: Tue, 20 Jan 2015 10:39:36 -0500 Subject: A code style question In-Reply-To: References: Message-ID: It would be good to post code that works: function baseID newID if (newID is not empty and not exists(newID)) or \ (newID is empty and not exists(the baseID of this stack)) then \ set the baseID of this stack to "this card" if newID is not empty then set the baseID of this stack to newID return the baseID of this stack end baseID From bobsneidar at iotecdigital.com Tue Jan 20 10:48:23 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 20 Jan 2015 15:48:23 +0000 Subject: [beginner] x,y coordinates in LiveCode In-Reply-To: <54B1666E.3060709@fourthworld.com> References: <54B1666E.3060709@fourthworld.com> Message-ID: I can see the wisdom of this before we had the topLeft and bottomRight properties. You could simply parse the first two items and the last two items and get the same thing. Bob S On Jan 10, 2015, at 09:50 , Richard Gaskin > wrote: Like most languages, LiveCode provides a way to express the bounding rectangle of an object, as well as its location. But it may be helpful to note that these values may be different from what you'll find in other languages. For example, in JavaScript/CSS, the order of rectangle coordinates is: top, right, bottom, left ...but in LiveCode (and other xTalks) the order is: left, top, right, bottom From bobsneidar at iotecdigital.com Tue Jan 20 10:58:04 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 20 Jan 2015 15:58:04 +0000 Subject: more compound mysql command woes In-Reply-To: References: Message-ID: Copy paste the sql into an sql utility like mySQLWorkbench, execute it and see if it shows you an error. I did. I get this for the third line: Error Code: 1364. Field 'unqKy' doesn't have a default value There is your error. Bob S > On Jan 19, 2015, at 20:54 , Dr. Hawkins wrote: > > On Mon, Jan 19, 2015 at 7:11 PM, Peter Haworth wrote: > >> What error are you getting? >> > > They were all along the lines of > > revdberr,You have an error in your SQL syntax; check the manual that > corresponds to your MySQL server version for the right syntax to use near > 'CREATE TABLE dhdbt_dragon_puff_the__001 (unqKy INT NOT NULL, ktyp > CHAR(1), kyw' at line 2 > > > -- > Dr. Richard E. Hawkins, Esq. > (702) 508-8462 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pete at lcsql.com Tue Jan 20 11:18:13 2015 From: pete at lcsql.com (Peter Haworth) Date: Tue, 20 Jan 2015 08:18:13 -0800 Subject: more compound mysql command woes In-Reply-To: References: Message-ID: Try sending each command separately to make sure the syntax of each is correct. Pete lcSQL Software On Jan 19, 2015 8:54 PM, "Dr. Hawkins" wrote: > On Mon, Jan 19, 2015 at 7:11 PM, Peter Haworth wrote: > > > What error are you getting? > > > > They were all along the lines of > > revdberr,You have an error in your SQL syntax; check the manual that > corresponds to your MySQL server version for the right syntax to use near > 'CREATE TABLE dhdbt_dragon_puff_the__001 (unqKy INT NOT NULL, ktyp > CHAR(1), kyw' at line 2 > > > -- > Dr. Richard E. Hawkins, Esq. > (702) 508-8462 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pete at lcsql.com Tue Jan 20 11:45:23 2015 From: pete at lcsql.com (Peter Haworth) Date: Tue, 20 Jan 2015 08:45:23 -0800 Subject: A code style question In-Reply-To: References: Message-ID: I'd go with the first one. The second one makes my eyes glaze over! Plus I think there should be an else before the second if in the second function. I might consider something like this. function baseID newID if newID is empty then baseID_newIDempty else baseID_newIDnotempty end if Return the baseID of this stack end baseID The two subsidiary handlers would have the logic from your first function for empty/not empty. Pete lcSQL Software It would be good to post code that works: function baseID newID if (newID is not empty and not exists(newID)) or \ (newID is empty and not exists(the baseID of this stack)) then \ set the baseID of this stack to "this card" if newID is not empty then set the baseID of this stack to newID return the baseID of this stack end baseID _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From Mark at Rauterkus.com Tue Jan 20 12:24:42 2015 From: Mark at Rauterkus.com (Mark Rauterkus) Date: Tue, 20 Jan 2015 12:24:42 -0500 Subject: Subject: Advice on free app and user security Message-ID: Hi Bill and others: Your question matches mine. I have a project that needs to do the same as what you ask. I will be interested in seeing your code and the advice of others. Ours is a bit more teacher / student relationship. We want to keep tabs of the student use in a remote DB. -- Ta. Mark Rauterkus Mark.Rauterkus at gmail.com From pete at lcsql.com Tue Jan 20 12:27:26 2015 From: pete at lcsql.com (Peter Haworth) Date: Tue, 20 Jan 2015 09:27:26 -0800 Subject: A code style question In-Reply-To: References: Message-ID: A slightly corrected/modified version. To set the baseID: set the baseID of this stack to baseID(newID) To get the baseID get the baseID of this stack. The function(s) then become function baseID newID if newID is empty then return baseID_newIDempty() else return baseID_newIDnotempty(newID) end if end baseID function baseID_newIDempty if not exists (the baseID of this stack) then return "this card" else return the baseID of this stack end if end baseID_newIDempty function baseID_newIDNotEmpty newid if exists newID then return newID else return "this card" end if end baseID_newIDNotEmpty Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Tue, Jan 20, 2015 at 8:45 AM, Peter Haworth wrote: > I'd go with the first one. The second one makes my eyes glaze over! Plus I > think there should be an else before the second if in the second function. > > I might consider something like this. > > function baseID newID > if newID is empty then > baseID_newIDempty > else > baseID_newIDnotempty > end if > Return the baseID of this stack > end baseID > > The two subsidiary handlers would have the logic from your first function > for empty/not empty. > > Pete > lcSQL Software > It would be good to post code that works: > > function baseID newID > if (newID is not empty and not exists(newID)) or \ > (newID is empty and not exists(the baseID of this stack)) then \ > set the baseID of this stack to "this card" > if newID is not empty then set the baseID of this stack to newID > return the baseID of this stack > end baseID > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pete at lcsql.com Tue Jan 20 12:33:03 2015 From: pete at lcsql.com (Peter Haworth) Date: Tue, 20 Jan 2015 09:33:03 -0800 Subject: Multilingual UI In-Reply-To: <3B690AAB-6ECB-47DC-8872-9F9BBC7911EB@mac.com> References: <1421531682651.c97ada64@Nodemailer> <3B690AAB-6ECB-47DC-8872-9F9BBC7911EB@mac.com> Message-ID: I'm looking at doing this to. I'm wondering why property profiles haven't been mentioned in this thread. Seems like they would be a good solution, with one profile for each language. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Sun, Jan 18, 2015 at 1:27 AM, Graham Samuel wrote: > I very much like Kee's approach, though there is an issue about populating > the list of texts for the elements. I was involved in a project (which in > fact was never finished) where we had to get all our texts translated from > English into a language we (the developers) didn't know, Welsh. So we sent > out a simple text document to a native Welsh speaker, with each text on a > separate line, and got back a line-by-liine translation. In order to make > it less tedious to then place each text into its appropriate custom > property 'by hand', so to speak, our equivalent of the "loadLanguage" > command for each text simply loaded the text for the element from the > appropriate line of the text file for the particular language. So each text > element (button etc) had a built-in identifying number which corresponded > to the appropriate line number in the list of texts. This approach would > have also made it very easy to add new languages. It was obviously an easy > job to add such text files either externally at run time or internally > during the development process. > > Graham > > > > > On 18 Jan 2015, at 06:07, kee nethery wrote: > > > > > >> On Jan 17, 2015, at 1:54 PM, Ethan Lish wrote: > >> > >> Is there a defined approach, tool or general guidance on how best to > design & develop a livecode app to support a multilingual user interface. > > > > My approach was, for each text element (button, field), to create a > custom property named for the language ?en?, ?fr?, ?de?, and then put the > translations into the custom properties. On opencard I would send a > ?loadlanguage" command (that I wrote, you can call yours whatever) to each > element and populated the element with the appropriate translation. In the > corner of each window I had a language selector and if the language was > changed, I?d send opencard which would send loadlanguage to each element. > > > > If the language custom property was missing for that language, and there > was a ?en? custom property, I?d use that. Also, if there was an ?en? > property, I?d create the other properties and populate them with the > english translation. If there was no ?en? custom property, I?d not alter > what was being displayed by the element. > > > > I found it useful to create a command that set the language to ?ww? and > then for each card, I?d measure the length of each translation and insert > the longest translation regardless of language. I could then adjust the > buttons and fields appropriately knowing they would work properly > regardless which language was selected. > > > > That is what I came up with when I was playing with a multi-lingual > Livecode project. Seemed to work pretty well. > > > > Kee Nethery > > > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ambassador at fourthworld.com Tue Jan 20 12:47:22 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 20 Jan 2015 09:47:22 -0800 Subject: A code style question In-Reply-To: References: Message-ID: <54BE94AA.7040400@fourthworld.com> The first is slightly faster, but they don't return the same result - running the code below I always get: 6 8 false this card 1000 Did I mess up the test somewhere? on mouseUp put 1000 into tIterations -- set the baseID of this stack to empty put the millisecs into t repeat tIterations put baseID1(1000) into r1 end repeat put the millisecs - t into t1 -- set the baseID of this stack to empty put the millisecs into t repeat tIterations put baseID2(1000) into r2 end repeat put the millisecs - t into t2 -- put t1 && t2 && (r1=r2) &cr& r1 && r2 end mouseUp function baseID1 newID if newID is empty then if not exists(the baseID of this stack) then set the baseID of this stack to "this card" end if else if exists( newID) then set the baseID of this stack to newID else set the baseID of this stack to "this card" end if end if return the baseID of this stack end baseID1 function baseID2 newID if (newID is not empty and not exists(newID)) or \ (newID is empty and not exists(the baseID of this stack)) then\ set the baseID of this stack to "this card" if newID is not empty then set the baseID of this stack to newID return the baseID of this stack end baseID2 -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From gcanyon at gmail.com Tue Jan 20 12:54:47 2015 From: gcanyon at gmail.com (Geoff Canyon) Date: Tue, 20 Jan 2015 12:54:47 -0500 Subject: A code style question In-Reply-To: References: Message-ID: okay, I think this is correct for both versions (gah) function baseID newID if newID is empty then if not exists (the baseID of this stack) then set the baseID of this stack to "this card" end if else if exists(newID) or \ newID is among the items of "this card,card list,background list,stack list" then set the baseID of this stack to newID else set the baseID of this stack to "this card" end if end if return the baseID of this stack end baseID function baseID newID if (newID is not empty and not exists(newID)) or \ (newID is empty and not exists(the baseID of this stack)) then \ set the baseID of this stack to "this card" if exists(newID) or \ newID is among the items of "this card,card list,background list,stack list" then \ set the baseID of this stack to newID return the baseID of this stack end baseID From rdimola at evergreeninfo.net Tue Jan 20 13:13:31 2015 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Tue, 20 Jan 2015 13:13:31 -0500 Subject: A Got-Ya In-Reply-To: References: Message-ID: <000c01d034dc$cc4ea520$64ebef60$@net> I just spent an 1.5 hours of "what the heck just happened". My fault but just wanted to let others know. I have a custom stack prop named "pRegion". This worked as expected except in one handler. It always returned empty. From either the handler or from the message box while the handler was being debugged or from an answer dialog. Click the stop button in the debugger, then from the message box the custom property is the value the inspector says. Breakpoint on the first line of the mouseup handler and it's gone. Deleted all the code in the handler and it's back even though I examined it before any code was run from the debugger both times. Problem: I had a local of the same name by mistake. I was not even using it. I just deleted it and all was OK. This might be obvious to the more seasoned LiveCoder but to a beginner... not so much Just an FYI Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net From ambassador at fourthworld.com Tue Jan 20 13:14:18 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 20 Jan 2015 10:14:18 -0800 Subject: A code style question In-Reply-To: References: Message-ID: <54BE9AFA.9080805@fourthworld.com> Thanks for the fix. Once I took care of the email line wrap it ran well. The first version is still slightly faster, and to my eye more readable, so I'd go with that. on mouseUp put 1000 into tIterations -- set the baseID of this stack to empty put the millisecs into t repeat tIterations put baseID1(1000) into r1 end repeat put the millisecs - t into t1 -- set the baseID of this stack to empty put the millisecs into t repeat tIterations put baseID2(1000) into r2 end repeat put the millisecs - t into t2 -- put t1 && t2 && (r1=r2) &cr& r1 && r2 end mouseUp function baseID1 newID if newID is empty then if not exists (the baseID of this stack) then set the baseID of this stack to "this card" end if else if exists(newID) or \ newID is among the items of "this card,card list,background list,stack list" then set the baseID of this stack to newID else set the baseID of this stack to "this card" end if end if return the baseID of this stack end baseID1 function baseID2 newID if (newID is not empty and not exists(newID)) or \ (newID is empty and not exists(the baseID of this stack)) then \ set the baseID of this stack to "this card" if exists(newID) or \ newID is among the items of "this card,card list,background list,stack list" then \ set the baseID of this stack to newID return the baseID of this stack end baseID2 -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From pete at lcsql.com Tue Jan 20 13:35:49 2015 From: pete at lcsql.com (Peter Haworth) Date: Tue, 20 Jan 2015 10:35:49 -0800 Subject: Mac Menu Bar Apps Message-ID: Is it possible to put a Livecode app into the Mac Menu Bar? Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From benr_mc at cogapp.com Tue Jan 20 13:59:08 2015 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Tue, 20 Jan 2015 18:59:08 +0000 Subject: [Probably OT] Strange loss of ability to do SSL (through curl) Message-ID: <54BEA57C.1010906@cogapp.com> An app built in LC, sitting on an old box (PPC Mac Mini running 10.4.11) has for several years happily been running a few times a day to perform a batch job involving retrieve some data from a remote system, processing it, and pushing a report to a new location. Recently, it's not been updating correctly, and investigation has shown that the cause is a failure to retrieve the remote data. The remote system (a third-party SaaS product) has a REST interface, accessed with simple basic authentication over HTTPS. I'm not aware that anything has changed in their API recently. When I first wrote this app, I found that LC didn't correctly deal with the SSL portion (I forget the details); so I recoded it to use the shell function to invoke curl to retrieve each element. This has worked fine for a long time. But now the shell command is returning code 35, which according to man curl is: 35 SSL connect error. The SSL handshaking failed. So the weird thing is: - if I run this app on my dev machine (Intel Mac running 10.8.5), it works fine, happily invoking curl and getting the result - if I run the curl command in Terminal on the target machine, it works fine and retrieves the data - if I create a shell script to run the curl command on the target machine, and invoke that shell script in Terminal, it works fine and retrieves the data - if I modify the app to use 'shell' to run that shell script, instead of calling curl directly, it fails with code 35 again. So curl, and shell, are happy on that machine; but using shell in an LC app to either invoke curl directly, or run a batch script which invokes curl, makes SSL fail. I've marked this possibly OT because I don't think it's necessarily an LC problem. I get the same result with a version of the app built in 2011 from LC 4.6.4 as with one built now with LC 6.5.2. But then again, I'm not aware that anything has changed on the machine where this runs. Something must have changed; my guess is that it is something in the setup of the remote service. But the nature of that change doesn't disturb curl or shell running under Terminal on my target machine; nor when invoked from LC on my dev machine. I'm guessing it must be something to do with the environment in which the shell command operates when invoked from LC, as opposed to launching a terminal window. This goes considerably outside my knowledge area, so I'm appealing for suggestions as to where to investigate... TIA Ben From capellan2000 at gmail.com Tue Jan 20 13:57:33 2015 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Tue, 20 Jan 2015 10:57:33 -0800 (PST) Subject: extracting the thumbnail from digital photos? In-Reply-To: <1421736617180-4688040.post@n4.nabble.com> References: <1421736617180-4688040.post@n4.nabble.com> Message-ID: <1421780253327-4688058.post@n4.nabble.com> Hi Malte, Using the more recent version the scripts, I have found a single image that produce an infinite loop while showing the thumbnail So, to be safe, it's better idea to change this line: repeat until offset(tStart,temp1) = 0 for this line: repeat until offset(tEnd,temp1) = 0 Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/extracting-the-thumbnail-from-digital-photos-tp4687985p4688058.html Sent from the Revolution - User mailing list archive at Nabble.com. From bobsneidar at iotecdigital.com Tue Jan 20 14:12:24 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 20 Jan 2015 19:12:24 +0000 Subject: [Probably OT] Strange loss of ability to do SSL (through curl) In-Reply-To: <54BEA57C.1010906@cogapp.com> References: <54BEA57C.1010906@cogapp.com> Message-ID: <357A5456-5C96-4C86-9F32-1C97500B2DF2@iotecdigital.com> I suspect whatever system you are connecting to has modified in some way how it encrypts data using SSL. Sounds crazy, but Microsoft recently did something to their TLS in their cloud offerings that summarily prevented an entire series of Konica brand copiers from sending email through Exchange Online. Other series Konicas were fine, and other manufacturers didn?t seem to have a problem either. I was the only one saying Microsoft had made changes to their TLS. No one would listen, citing all the other copiers that still worked. Finally Konica released a bulletin telling us to install special firmware and make some changes in the security settings on the affected machines. What settings you ask? Why, the TLS settings of course! Bob S > On Jan 20, 2015, at 10:59 , Ben Rubinstein wrote: > > An app built in LC, sitting on an old box (PPC Mac Mini running 10.4.11) has for several years happily been running a few times a day to perform a batch job involving retrieve some data from a remote system, processing it, and pushing a report to a new location. > > Recently, it's not been updating correctly, and investigation has shown that the cause is a failure to retrieve the remote data. > > The remote system (a third-party SaaS product) has a REST interface, accessed with simple basic authentication over HTTPS. I'm not aware that anything has changed in their API recently. > > When I first wrote this app, I found that LC didn't correctly deal with the SSL portion (I forget the details); so I recoded it to use the shell function to invoke curl to retrieve each element. > > This has worked fine for a long time. But now the shell command is returning code 35, which according to man curl is: > 35 SSL connect error. The SSL handshaking failed. > > So the weird thing is: > - if I run this app on my dev machine (Intel Mac running 10.8.5), it works fine, happily invoking curl and getting the result > - if I run the curl command in Terminal on the target machine, it works fine and retrieves the data > - if I create a shell script to run the curl command on the target machine, and invoke that shell script in Terminal, it works fine and retrieves the data > - if I modify the app to use 'shell' to run that shell script, instead of calling curl directly, it fails with code 35 again. > > So curl, and shell, are happy on that machine; but using shell in an LC app to either invoke curl directly, or run a batch script which invokes curl, makes SSL fail. > > I've marked this possibly OT because I don't think it's necessarily an LC problem. I get the same result with a version of the app built in 2011 from LC 4.6.4 as with one built now with LC 6.5.2. But then again, I'm not aware that anything has changed on the machine where this runs. > > Something must have changed; my guess is that it is something in the setup of the remote service. But the nature of that change doesn't disturb curl or shell running under Terminal on my target machine; nor when invoked from LC on my dev machine. > > I'm guessing it must be something to do with the environment in which the shell command operates when invoked from LC, as opposed to launching a terminal window. This goes considerably outside my knowledge area, so I'm appealing for suggestions as to where to investigate... > > TIA > > Ben > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pete at lcsql.com Tue Jan 20 14:12:31 2015 From: pete at lcsql.com (Peter Haworth) Date: Tue, 20 Jan 2015 11:12:31 -0800 Subject: How to access a file on a remote computer In-Reply-To: References: <3A05C317-38A2-427C-81E6-7739AA012863@kagi.com> Message-ID: Hi Kay, Sorry for the delayed reply, been too busy getting the filename thing working. I'm using LC 6.6.2 and the controller works fine there (except see my comments below). I just tried exactly the same stack with 7.0.1 and confirm what you experienced, nothing plays. I'm using mp3 files. Filename of the controller looks exactly the same as in 6.6.2. I guess I should file a bug report. I guess that answers my question on how to handle unicode for this project in 7.0 - don't bother! >From my limited experience with the controller, it doesn't seem to be a well designed control. First thing I noticed is that if you set its filename to something invalid, all the controls disappear and you're left with a white rectangle. I also could not find where an error like that can be captured. More importantly, if you set the filename to empty, the same thing happens. Seems like empty should mean there's nothing to play, none of the controller buttons work. It seems strange that there's no way to get the state of the player, by which I mean whether it's playing, paused, or stopped. There should be a property for something as basic as that. I ended setting my own custom property in the playerStarted,playerPaused, and playerStopped message handlers. There's no way to tell which button in the controller has been clicked. The playerStarted and playerpaused messages handle some of that, but I couldn't find a way to tell if the fast forward/reverse buttons were clicked and had to write my own handler to figure that out based on the clickLoc and the rectangle enclosing those buttons. There are no next/previous buttons. I understand that the player has no concept of track management but those are pretty standard buttons and should be optionally available along with messages that are sent when they are clicked. I attempted to use the callbacks property to send me a message every second so I could update the current play time on the screen. Either I was doing something wrong (there was no error message) or the callbacks don't work. I ended up writing a handler that did the update using the currentTime of the player and sending the message to itself every1 second and canceling the message when the playyer paused or stopped. If this wasn't just a homegrown product for my family, I'd not be using the built in controller. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Sun, Jan 18, 2015 at 7:38 PM, Kay C Lan wrote: > On Mon, Jan 19, 2015 at 11:16 AM, Peter Haworth wrote: > > > I'm not > > using LC 7 yet but I managed to get around that one. > > > > > Pete, thanks for the shell 'mount' pointer. I didn't get it to work first > try but I'm sure it will be the solution. > > What version of LC are you using. I've not done anything with Players in LC > so I've no clue. I created a new stack in 7.0.1, dragged the player object > over, it looked normal, it played the demo RunRev mp4 OK. I then changed > the fileName to an mp3 and no matter what I couldn't get any music. So I > thought maybe it was an LC 7 thing, so I tried LC 6.6.5. New stack, drag > the player object on to it and it looks all broken. The object seems to be > in two separate parts - a empty box and offset to that a blue box 4 times > the size. It doesn't play the RunRev Demo movie or music - it appears to be > completely unusable to me. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From MikeKerner at roadrunner.com Tue Jan 20 14:17:53 2015 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Tue, 20 Jan 2015 14:17:53 -0500 Subject: A Got-Ya In-Reply-To: <000c01d034dc$cc4ea520$64ebef60$@net> References: <000c01d034dc$cc4ea520$64ebef60$@net> Message-ID: ugh. That's an ugly. I'd file a feature request to have the parser/compiler catch those for you. I am a big proponent of loose syntax, but if it's going to be loose enough that you can do THAT, then you either should get an error for misusing the token or it should be smart enough to not fail. On Tue, Jan 20, 2015 at 1:13 PM, Ralph DiMola wrote: > I just spent an 1.5 hours of "what the heck just happened". My fault but > just wanted to let others know. > > I have a custom stack prop named "pRegion". This worked as expected except > in one handler. It always returned empty. From either the handler or from > the message box while the handler was being debugged or from an answer > dialog. Click the stop button in the debugger, then from the message box > the > custom property is the value the inspector says. Breakpoint on the first > line of the mouseup handler and it's gone. Deleted all the code in the > handler and it's back even though I examined it before any code was run > from > the debugger both times. > Problem: I had a local of the same name by mistake. I was not even using > it. > I just deleted it and all was OK. This might be obvious to the more > seasoned > LiveCoder but to a beginner... not so much > > Just an FYI > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From scott at tactilemedia.com Tue Jan 20 14:22:57 2015 From: scott at tactilemedia.com (Scott Rossi) Date: Tue, 20 Jan 2015 11:22:57 -0800 Subject: How to access a file on a remote computer In-Reply-To: References: <3A05C317-38A2-427C-81E6-7739AA012863@kagi.com> Message-ID: <595B7A19-1756-4125-AB11-2A7155F580E2@tactilemedia.com> You may be running into the audio-only player bug already mentioned here: http://runtime-revolution.278305.n4.nabble.com/new-player-AV-Foundation-and-MP3-td4687743.html Try using the playRate workaround and see if that makes things work for you (for now). Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On Jan 20, 2015, at 11:12 AM, Peter Haworth wrote: > I'm using LC 6.6.2 and the controller works fine there (except see my > comments below). I just tried exactly the same stack with 7.0.1 and > confirm what you experienced, nothing plays. I'm using mp3 files. > Filename of the controller looks exactly the same as in 6.6.2. From johnpatten at me.com Tue Jan 20 14:41:42 2015 From: johnpatten at me.com (JOHN PATTEN) Date: Tue, 20 Jan 2015 11:41:42 -0800 Subject: Record Audio in OS X and Windows Message-ID: <5FD2C4D0-BD35-4ADA-AD20-275EAB4B5820@me.com> Hi All, Is the record audio feature currently broken in LiveCode (7.0.0)? When I do this: on mouseUp set the dontuseQt to false record sound file test.wav answer the result end mouseUp I get message ?error 2 starting recording? Thank you! John Patten SUSD From pete at lcsql.com Tue Jan 20 14:44:45 2015 From: pete at lcsql.com (Peter Haworth) Date: Tue, 20 Jan 2015 11:44:45 -0800 Subject: A Got-Ya In-Reply-To: References: <000c01d034dc$cc4ea520$64ebef60$@net> Message-ID: Confirmed here. Although unlikely to happen, that's a bad bug. The presence of "the" and "of " should make it clear that a custom property is being referenced, not a variable. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Tue, Jan 20, 2015 at 11:17 AM, Mike Kerner wrote: > ugh. That's an ugly. I'd file a feature request to have the > parser/compiler catch those for you. I am a big proponent of loose syntax, > but if it's going to be loose enough that you can do THAT, then you either > should get an error for misusing the token or it should be smart enough to > not fail. > > On Tue, Jan 20, 2015 at 1:13 PM, Ralph DiMola > wrote: > > > I just spent an 1.5 hours of "what the heck just happened". My fault but > > just wanted to let others know. > > > > I have a custom stack prop named "pRegion". This worked as expected > except > > in one handler. It always returned empty. From either the handler or from > > the message box while the handler was being debugged or from an answer > > dialog. Click the stop button in the debugger, then from the message box > > the > > custom property is the value the inspector says. Breakpoint on the first > > line of the mouseup handler and it's gone. Deleted all the code in the > > handler and it's back even though I examined it before any code was run > > from > > the debugger both times. > > Problem: I had a local of the same name by mistake. I was not even using > > it. > > I just deleted it and all was OK. This might be obvious to the more > > seasoned > > LiveCoder but to a beginner... not so much > > > > Just an FYI > > > > Ralph DiMola > > IT Director > > Evergreen Information Services > > rdimola at evergreeninfo.net > > > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > -- > On the first day, God created the heavens and the Earth > On the second day, God created the oceans. > On the third day, God put the animals on hold for a few hours, > and did a little diving. > And God said, "This is good." > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bobsneidar at iotecdigital.com Tue Jan 20 15:30:29 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 20 Jan 2015 20:30:29 +0000 Subject: How to access a file on a remote computer In-Reply-To: References: Message-ID: <4953F419-2688-474B-B676-D892E93D9AD2@iotecdigital.com> This is pretty standard for POSIX permissions. Even though a containing folder can have the appropriate permissions, the owner of the file is still the one who created it. In order to properly ensure your cohorts can read and write to every file in a share, you need to create a user with the same user name and password and then apply read write permissions for that user to the shared folder in the sharing tab of the system settings. It?s actually not that different than Windows peer to peer permissions. The proper way to do this is to put the shared data in the Public folder. This will get you around all the sandboxing issues you may encounter accessing folders in another users profile. Bob S On Jan 17, 2015, at 20:19 , Dr. Hawkins > wrote: Also, OSX can be downright schizophrenic about the permissions, with conflicting ways of doig things. My macs got added to unix networks, with preexisting groups & users. One mac worked fine on the network, but after a couple of years, I still end up with files created by my assistant on my machine being unwritable by me, and vice versa. -- Dr. Richard E. Hawkins, Esq. From bobsneidar at iotecdigital.com Tue Jan 20 15:36:24 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 20 Jan 2015 20:36:24 +0000 Subject: How to access a file on a remote computer In-Reply-To: <54BC84F7.4010301@hindu.org> References: <3A05C317-38A2-427C-81E6-7739AA012863@kagi.com> <54BC84F7.4010301@hindu.org> Message-ID: <98F502B2-B7DF-4DF9-9102-374B6E44CB36@iotecdigital.com> what is showStatus? There is no such command in the dictionary. Bob S On Jan 18, 2015, at 20:15 , Brahmanathaswami > wrote: put hostAddressToName(tIP) into tServer if tServer is Empty then set the dialogData to "Sorry, there is a connection problem. Turn on airport or make sure your ethernet cable is pluggedin, then try again." showStatus wait 1 second exit to top else CheckVarunaIsMounted end if From bobsneidar at iotecdigital.com Tue Jan 20 15:43:27 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 20 Jan 2015 20:43:27 +0000 Subject: How to access a file on a remote computer In-Reply-To: <54BC84F7.4010301@hindu.org> References: <3A05C317-38A2-427C-81E6-7739AA012863@kagi.com> <54BC84F7.4010301@hindu.org> Message-ID: <693896B4-DA3B-4946-B635-3FBAA7687F13@iotecdigital.com> hostAddressToName() returns an error if there is no internet connection. Not empty. Unless the dictionary is wrong. Bob S On Jan 18, 2015, at 20:15 , Brahmanathaswami > wrote: put hostAddressToName(tIP) into tServer if tServer is Empty then set the dialogData to "Sorry, there is a connection problem. Turn on airport or make sure your ethernet cable is pluggedin, then try again." showStatus wait 1 second exit to top else CheckVarunaIsMounted end if From dochawk at gmail.com Tue Jan 20 17:30:04 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Tue, 20 Jan 2015 14:30:04 -0800 Subject: A Got-Ya In-Reply-To: References: <000c01d034dc$cc4ea520$64ebef60$@net> Message-ID: On Tue, Jan 20, 2015 at 11:44 AM, Peter Haworth wrote: > Confirmed here. Although unlikely to happen, that's a bad bug. The > presence of "the" and "of " should make it clear that a > custom property is being referenced, not a variable. > But it's nastier than that: you can't can't quote the custom property to get around this, either . . . -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From dave at applicationinsight.com Tue Jan 20 17:52:07 2015 From: dave at applicationinsight.com (Dave Kilroy) Date: Tue, 20 Jan 2015 14:52:07 -0800 (PST) Subject: A Got-Ya In-Reply-To: <000c01d034dc$cc4ea520$64ebef60$@net> References: <000c01d034dc$cc4ea520$64ebef60$@net> Message-ID: <1421794327585-4688069.post@n4.nabble.com> For those who haven't read it yet I'll leave this link to Richard's excellent article here... http://www.fourthworld.com/embassy/articles/scriptstyle.html ----- "Some are born coders, some achieve coding, and some have coding thrust upon them." - William Shakespeare & Hugh Senior -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/A-code-style-question-tp4688042p4688069.html Sent from the Revolution - User mailing list archive at Nabble.com. From sc at sahores-conseil.com Tue Jan 20 18:41:50 2015 From: sc at sahores-conseil.com (Pierre Sahores) Date: Wed, 21 Jan 2015 00:41:50 +0100 Subject: Livecode server + NGINX ? References: <1421794327585-4688069.post@n4.nabble.com> Message-ID: Hi Friends, Did anyone know if Livecode Server can be set to use NGINX as its web server ? Thanks and best regards, -- Pierre Sahores mobile : 06 03 95 77 70 www.sahores-conseil.com From devin_asay at byu.edu Tue Jan 20 18:51:00 2015 From: devin_asay at byu.edu (Devin Asay) Date: Tue, 20 Jan 2015 23:51:00 +0000 Subject: Record Audio in OS X and Windows In-Reply-To: <5FD2C4D0-BD35-4ADA-AD20-275EAB4B5820@me.com> References: <5FD2C4D0-BD35-4ADA-AD20-275EAB4B5820@me.com> Message-ID: <11DEF337-252A-4B2A-8485-431AB30FEF17@byu.edu> On Jan 20, 2015, at 12:41 PM, JOHN PATTEN wrote: > Hi All, > > Is the record audio feature currently broken in LiveCode (7.0.0)? > > When I do this: > > on mouseUp > set the dontuseQt to false > record sound file test.wav > answer the result > end mouseUp > > I get message ?error 2 starting recording? > > Thank you! John, This works for me in 7.0.2 RC1: put ?test.aif" into sndName # make sure there's a name if sndName is empty then exit mouseUp end if set the dontUseQT to false record sound file sndName There have been a few audio-related bugs fixed in recent releases, so it may be that you?re experiencing one of those. Devin Devin Asay Office of Digital Humanities Brigham Young University From ambassador at fourthworld.com Tue Jan 20 19:09:16 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 20 Jan 2015 16:09:16 -0800 Subject: Livecode server + NGINX ? In-Reply-To: References: Message-ID: <54BEEE2C.6080506@fourthworld.com> Pierre Sahores wrote: > Did anyone know if Livecode Server can be set to use NGINX as its web server ? My (admittedly limited) understanding is that NginX doesn't support CGI, only FastCGI, so without threading LiveCode would seem a difficult fit for that server environment. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From peterwawood at gmail.com Tue Jan 20 19:29:50 2015 From: peterwawood at gmail.com (Peter W A Wood) Date: Wed, 21 Jan 2015 08:29:50 +0800 Subject: Mac Menu Bar Apps In-Reply-To: References: Message-ID: Peter If I remember correctly, Clarify installed into the Mac Menu Bar. I don?t know how though. I guess Trevor deVore knows. Regards Peter > On 21 Jan 2015, at 02:35, Peter Haworth wrote: > > Is it possible to put a Livecode app into the Mac Menu Bar? > > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Tue Jan 20 19:35:44 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 21 Jan 2015 00:35:44 +0000 Subject: Speaking of sockets... Message-ID: I?ve mentioned in the past that if I am unable to connect to a mySQL server (such as going to a location with my laptop and finding their firewall blocks port 3306) it takes close to a minute for LC to release and tell me it cannot connect. During that time LC is completely unresponsive. I needed a way to check first if I can make that connection. I came up with a solution using open socket: put ?mySQLServer.myhost.com:3306|mySQL? into theSocket open socket to theSocket with callback ?isConnected" wait for messages put the openSockets into theOpenSockets if theSocket is in theOpenSockets then close socket theSocket -- move along. Nothing to see here else -- alert the user. Maybe even put a repeat loop around the whole thingummy end if on isConnected -- stup handler for the callback end isConnected This is VASTLY superior to waiting for a minute (or whatever the SQL timeout is) until LC responds. Database commands are blocking. Open socket is not. Still unsure why the engine cannot do this as a matter of course. I might put in a feature enhancement. Bob S From gcanyon at gmail.com Tue Jan 20 20:33:01 2015 From: gcanyon at gmail.com (Geoff Canyon) Date: Tue, 20 Jan 2015 20:33:01 -0500 Subject: A code style question In-Reply-To: <54BE9AFA.9080805@fourthworld.com> References: <54BE9AFA.9080805@fourthworld.com> Message-ID: I figured the first version would be faster, since it only checks each thing once, where the second version tests some booleans twice, but this isn't going to be called repeatedly, so maximum performance isn't an issue. I was more curious about the readability, because I thought I might be the odd one out here, and it seems I am. The nested if statements in the first one, and the duplicated set the baseID of this stack to "this card" offend my eye. Once I realized I needed to test for "exists" OR "is among" more than once I used a separate function for those. Along with an inline "if" function I already had, and switching from a stack property to a local, I came up with: local baseID function baseID newID put iff(validID(newID),newID, \ iff(validID(baseID), baseID,"this card")) into baseID return baseID end baseID3 function iff X,T,F if X then return T else return F end iff function validID I return ((I is among the items of "this card,card list,background list,stack list") or exists(I)) end validID Maybe not everyone's cup of tea, but clear to me. On Tue, Jan 20, 2015 at 1:14 PM, Richard Gaskin wrote: > Thanks for the fix. Once I took care of the email line wrap it ran well. > The first version is still slightly faster, and to my eye more readable, so > I'd go with that. > > > > on mouseUp > put 1000 into tIterations > -- > set the baseID of this stack to empty > put the millisecs into t > repeat tIterations > put baseID1(1000) into r1 > end repeat > put the millisecs - t into t1 > -- > set the baseID of this stack to empty > put the millisecs into t > repeat tIterations > put baseID2(1000) into r2 > end repeat > put the millisecs - t into t2 > -- > put t1 && t2 && (r1=r2) &cr& r1 && r2 > end mouseUp > > function baseID1 newID > if newID is empty then > if not exists (the baseID of this stack) then > set the baseID of this stack to "this card" > end if > else > if exists(newID) or \ > newID is among the items of "this card,card list,background > list,stack list" then > set the baseID of this stack to newID > else > set the baseID of this stack to "this card" > end if > end if > return the baseID of this stack > end baseID1 > > > function baseID2 newID > if (newID is not empty and not exists(newID)) or \ > (newID is empty and not exists(the baseID of this stack)) then \ > set the baseID of this stack to "this card" > if exists(newID) or \ > newID is among the items of "this card,card list,background > list,stack list" then \ > set the baseID of this stack to newID > return the baseID of this stack > end baseID2 > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jacque at hyperactivesw.com Tue Jan 20 20:58:59 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 20 Jan 2015 19:58:59 -0600 Subject: A code style question In-Reply-To: References: <54BE9AFA.9080805@fourthworld.com> Message-ID: <54BF07E3.4080506@hyperactivesw.com> On 1/20/2015 7:33 PM, Geoff Canyon wrote: > I was more curious about the readability, because I thought I might be the > odd one out here, and it seems I am. The nested if statements in the first > one, and the duplicated > > set the baseID of this stack to "this card" > > offend my eye. There's two of us then. I tend toward combining as many statements as possible too. But if a handler gets too snarly to grasp quickly, I pull it back apart. Yours was pretty snarly. :) -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From gcanyon at gmail.com Tue Jan 20 21:14:20 2015 From: gcanyon at gmail.com (Geoff Canyon) Date: Tue, 20 Jan 2015 21:14:20 -0500 Subject: A Got-Ya In-Reply-To: References: <000c01d034dc$cc4ea520$64ebef60$@net> Message-ID: Two things to consider: 1. It's almost impossible to catch conflicts with custom properties. They don't have to be mentioned by name in a script because: 2. It's a feature that custom property names can be stored/referenced using variables. For example: repeat for each item P in "left,top" -- not custom properties, but the same principle applies set the P of button "example" to 10 * trunc(the P of button "example" / 10) end repeat If you have a large number of custom properties to initialize, this allows you to do something like: put "cProp1,23 cProp2,18 cProp3,98" into P split P using space and comma repeat for each key K in P set the K of button "example" to P[K] end repeat In neither of these cases would it be easily detectible to the compiler what (custom) properties are being referenced, and these cases aren't close to pathological. On the other hand, simply disallowing the use of a variable to store/reference a (custom) property would be a significant loss of functionality. On Tue, Jan 20, 2015 at 2:17 PM, Mike Kerner wrote: > ugh. That's an ugly. I'd file a feature request to have the > parser/compiler catch those for you. I am a big proponent of loose syntax, > but if it's going to be loose enough that you can do THAT, then you either > should get an error for misusing the token or it should be smart enough to > not fail. > > On Tue, Jan 20, 2015 at 1:13 PM, Ralph DiMola > wrote: > > > I just spent an 1.5 hours of "what the heck just happened". My fault but > > just wanted to let others know. > > > > I have a custom stack prop named "pRegion". This worked as expected > except > > in one handler. It always returned empty. From either the handler or from > > the message box while the handler was being debugged or from an answer > > dialog. Click the stop button in the debugger, then from the message box > > the > > custom property is the value the inspector says. Breakpoint on the first > > line of the mouseup handler and it's gone. Deleted all the code in the > > handler and it's back even though I examined it before any code was run > > from > > the debugger both times. > > Problem: I had a local of the same name by mistake. I was not even using > > it. > > I just deleted it and all was OK. This might be obvious to the more > > seasoned > > LiveCoder but to a beginner... not so much > > > > Just an FYI > > > > Ralph DiMola > > IT Director > > Evergreen Information Services > > rdimola at evergreeninfo.net > > > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > -- > On the first day, God created the heavens and the Earth > On the second day, God created the oceans. > On the third day, God put the animals on hold for a few hours, > and did a little diving. > And God said, "This is good." > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From peterwawood at gmail.com Tue Jan 20 21:14:03 2015 From: peterwawood at gmail.com (Peter W A Wood) Date: Wed, 21 Jan 2015 10:14:03 +0800 Subject: Livecode server + NGINX ? In-Reply-To: <54BEEE2C.6080506@fourthworld.com> References: <54BEEE2C.6080506@fourthworld.com> Message-ID: <9C002A15-81B2-41B4-BEFB-39B1CB624CA1@gmail.com> Pierre Richard is correct that nginx does not support CGI. It will forward requests to an upstream server or a number of upstream servers. I support one application that has been running for a couple of years that forwards CGI requests to a second server. (The second server is Cheyenne from Softinnov with which you may be familiar). I have also used nginx to distribute requests to a number of upstream servers when the upstream server could only process one request at a time. In my case, I spread the load over four servers. This load balancing feature of nginx use a simple approach in the free version, I believe the ?not free? version has more sophisticated load balancing. Regards Peter > On 21 Jan 2015, at 08:09, Richard Gaskin wrote: > > Pierre Sahores wrote: >> Did anyone know if Livecode Server can be set to use NGINX as its web server ? > > My (admittedly limited) understanding is that NginX doesn't support CGI, only FastCGI, so without threading LiveCode would seem a difficult fit for that server environment. > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dochawk at gmail.com Tue Jan 20 22:04:53 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Tue, 20 Jan 2015 19:04:53 -0800 Subject: Speaking of sockets... In-Reply-To: References: Message-ID: On Tue, Jan 20, 2015 at 4:35 PM, Bob Sneidar wrote: > I?ve mentioned in the past that if I am unable to connect to a mySQL > server (such as going to a location with my laptop and finding their > firewall blocks port 3306) it takes close to a minute for LC to release and > tell me it cannot connect. During that time LC is completely unresponsive. > I needed a way to check first if I can make that connection. OTOH, mySQL is the only db for which revOpenDataBase() allows a timeout to be specified . . . -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From johnpatten at me.com Tue Jan 20 23:29:12 2015 From: johnpatten at me.com (JOHN PATTEN) Date: Tue, 20 Jan 2015 20:29:12 -0800 Subject: Record Audio in OS X and Windows In-Reply-To: <11DEF337-252A-4B2A-8485-431AB30FEF17@byu.edu> References: <5FD2C4D0-BD35-4ADA-AD20-275EAB4B5820@me.com> <11DEF337-252A-4B2A-8485-431AB30FEF17@byu.edu> Message-ID: <8A04AB48-7983-410D-AFE2-D3A53CFEDE75@me.com> Thanks Devin, I will give that a try. I also found a work around that works fine too, AppleScript. Put this in the a field: tell application "Finder" set savePath to (the path to the desktop folder as text) & "record.m4a" tell application "QuickTime Player" activate set doku to new audio recording start doku delay 30 stop doku set newDoc to last item of (documents whose name contains "Untitled") export newDoc in file savePath using settings preset "Audio Only" close document 1 without saving quit end tell end tell ?and the following in a button: on mouseUp ask "Please name your recording:" put it & ".m4a" into tFileName put cd fld 1 into myScript replace "record.m4a" with tFileName in myScript do myScript as AppleScript --wait 10 seconds revCopyFile ("~/Desktop/" & tFilename),"~/Google Drive/CloseAudio/" delete file ("~/Desktop/" & tFilename) end mouseUp Saves to your Google Drive and you could create a Google Site with the Google Folder embedded in the Google Site page. This makes your recordings available any play you have Internet access. Nice easy strategy for educators to save elementary school student reading samples and listen and review later. A little clunky but functional :) Cheers! John Patten SUSD On Jan 20, 2015, at 3:51 PM, Devin Asay wrote: > > On Jan 20, 2015, at 12:41 PM, JOHN PATTEN wrote: > >> Hi All, >> >> Is the record audio feature currently broken in LiveCode (7.0.0)? >> >> When I do this: >> >> on mouseUp >> set the dontuseQt to false >> record sound file test.wav >> answer the result >> end mouseUp >> >> I get message ?error 2 starting recording? >> >> Thank you! > > John, > > This works for me in 7.0.2 RC1: > > put ?test.aif" into sndName > > # make sure there's a name > if sndName is empty then > exit mouseUp > end if > > set the dontUseQT to false > record sound file sndName > > > There have been a few audio-related bugs fixed in recent releases, so it may be that you?re experiencing one of those. > > Devin > > Devin Asay > Office of Digital Humanities > Brigham Young University > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From matthias_livecode_150811 at m-r-d.de Wed Jan 21 04:38:09 2015 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe | M-R-D) Date: Wed, 21 Jan 2015 10:38:09 +0100 Subject: Mac Menu Bar Apps In-Reply-To: References: Message-ID: <8F66E15A-AB1C-48D2-8919-252E18773271@m-r-d.de> Hi Pete, yes, but only with an external. Trevor Devore created such an external. It supports the following handlers/messages -- HANDLERS command CreateStatusMenu - generates the menu in the menubar. param 1: Name of the menu. param 2: A cr delimited list of menu items. Each line contains a menu item name. param 3: The tooltip that shows up if you hover your mouse over the menu icon. command SetCheckedState - set the checked state of a menu item. param 1: the menu item name param 2: true/false command SetStatusMenuKeyEquivalent - specify the shortcut key that appears alongside a menu item. This won't actually do anything other than provide a visual. I use it for some global hotkeys that my app registers. param 1: The menu item name param 2: The key equivalent (e.g. 2 or A) param 3: true/false for command key param 4: true/false for shift key param 5: true/false for option key param 6: true/false for control key command DeleteStatusMenu - call when your app quits or you want to otherwise remove the status menu. MESSAGES StatusMenuSelect - sent when the user makes a selection from the menu. param 1: The name of the menu item selected. ? Maybe you ask him, if he is willing to share it with you. But i am pretty sure, he will do. I asked also and got it some months ago. Regards, Matthias > Am 20.01.2015 um 19:35 schrieb Peter Haworth : > > Is it possible to put a Livecode app into the Mac Menu Bar? > > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From sc at sahores-conseil.com Wed Jan 21 08:55:33 2015 From: sc at sahores-conseil.com (Pierre Sahores) Date: Wed, 21 Jan 2015 14:55:33 +0100 Subject: Livecode server + NGINX ? In-Reply-To: <9C002A15-81B2-41B4-BEFB-39B1CB624CA1@gmail.com> References: <54BEEE2C.6080506@fourthworld.com> <9C002A15-81B2-41B4-BEFB-39B1CB624CA1@gmail.com> Message-ID: <5FDBE3B9-1A9D-4FF9-AE3E-EB16C37AD35A@sahores-conseil.com> Thanks Richard and Peter. Cheyenne, the Rebol HTTPd (Carl Sassenrath and Cindy !) and Olivier Auverlot, a friend i used to be colleague with when i was working for the French Secretary of Education? Warm Regards, Pierre Le 21 janv. 2015 ? 03:14, Peter W A Wood a ?crit : > Pierre > > Richard is correct that nginx does not support CGI. It will forward requests to an upstream server or a number of upstream servers. I support one application that has been running for a couple of years that forwards CGI requests to a second server. (The second server is Cheyenne from Softinnov with which you may be familiar). > > I have also used nginx to distribute requests to a number of upstream servers when the upstream server could only process one request at a time. In my case, I spread the load over four servers. This load balancing feature of nginx use a simple approach in the free version, I believe the ?not free? version has more sophisticated load balancing. > > Regards > > Peter > >> On 21 Jan 2015, at 08:09, Richard Gaskin wrote: >> >> Pierre Sahores wrote: >>> Did anyone know if Livecode Server can be set to use NGINX as its web server ? >> >> My (admittedly limited) understanding is that NginX doesn't support CGI, only FastCGI, so without threading LiveCode would seem a difficult fit for that server environment. >> >> -- >> Richard Gaskin >> Fourth World Systems >> Software Design and Development for the Desktop, Mobile, and the Web >> ____________________________________________________________________ >> Ambassador at FourthWorld.com http://www.FourthWorld.com >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- Pierre Sahores mobile : 06 03 95 77 70 www.sahores-conseil.com From benr_mc at cogapp.com Wed Jan 21 10:15:11 2015 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Wed, 21 Jan 2015 15:15:11 +0000 Subject: A code style question In-Reply-To: <54BF07E3.4080506@hyperactivesw.com> References: <54BE9AFA.9080805@fourthworld.com> <54BF07E3.4080506@hyperactivesw.com> Message-ID: <54BFC27F.2010501@cogapp.com> On 21/01/2015 01:58, J. Landman Gay wrote: > On 1/20/2015 7:33 PM, Geoff Canyon wrote: >> The nested if statements in the first >> one, and the duplicated >> >> set the baseID of this stack to "this card" >> >> offend my eye. > > There's two of us then. Me three. Also I was glad to see you also have a reflex of defining > function iff X,T,F > if X then return T else return F > end iff (I usually name my version "ifthenelse" - I like the conciseness of yours, but I studied logic some decades ago, so for me "iff" is already a word, and it means something different - if and only if.) I don't we think should be proposing fundamental additions to the language very often, but this is such a useful one that I think it should be considered. What do you think? Ben From benr_mc at cogapp.com Wed Jan 21 10:17:48 2015 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Wed, 21 Jan 2015 15:17:48 +0000 Subject: [Probably OT] Strange loss of ability to do SSL (through curl) In-Reply-To: <357A5456-5C96-4C86-9F32-1C97500B2DF2@iotecdigital.com> References: <54BEA57C.1010906@cogapp.com> <357A5456-5C96-4C86-9F32-1C97500B2DF2@iotecdigital.com> Message-ID: <54BFC31C.3090408@cogapp.com> Bob, Thanks for replying - I suspect you're right as to the immediate cause and where something has changed (it might just be about a new certificate, for example). However, my real question is why it works in terminal but not using LC "shell"; although calling the same service does work via LC "shell" on my dev machine (including as a standalone). Where can one affect the context in which a shell command is executing? thanks, Ben On 20/01/2015 19:12, Bob Sneidar wrote: > I suspect whatever system you are connecting to has modified in some way how it encrypts data using SSL. Sounds crazy, but Microsoft recently did something to their TLS in their cloud offerings that summarily prevented an entire series of Konica brand copiers from sending email through Exchange Online. Other series Konicas were fine, and other manufacturers didn?t seem to have a problem either. I was the only one saying Microsoft had made changes to their TLS. No one would listen, citing all the other copiers that still worked. > > Finally Konica released a bulletin telling us to install special firmware and make some changes in the security settings on the affected machines. What settings you ask? Why, the TLS settings of course! > > Bob S > > >> On Jan 20, 2015, at 10:59 , Ben Rubinstein wrote: >> >> An app built in LC, sitting on an old box (PPC Mac Mini running 10.4.11) has for several years happily been running a few times a day to perform a batch job involving retrieve some data from a remote system, processing it, and pushing a report to a new location. >> >> Recently, it's not been updating correctly, and investigation has shown that the cause is a failure to retrieve the remote data. >> >> The remote system (a third-party SaaS product) has a REST interface, accessed with simple basic authentication over HTTPS. I'm not aware that anything has changed in their API recently. >> >> When I first wrote this app, I found that LC didn't correctly deal with the SSL portion (I forget the details); so I recoded it to use the shell function to invoke curl to retrieve each element. >> >> This has worked fine for a long time. But now the shell command is returning code 35, which according to man curl is: >> 35 SSL connect error. The SSL handshaking failed. >> >> So the weird thing is: >> - if I run this app on my dev machine (Intel Mac running 10.8.5), it works fine, happily invoking curl and getting the result >> - if I run the curl command in Terminal on the target machine, it works fine and retrieves the data >> - if I create a shell script to run the curl command on the target machine, and invoke that shell script in Terminal, it works fine and retrieves the data >> - if I modify the app to use 'shell' to run that shell script, instead of calling curl directly, it fails with code 35 again. >> >> So curl, and shell, are happy on that machine; but using shell in an LC app to either invoke curl directly, or run a batch script which invokes curl, makes SSL fail. >> >> I've marked this possibly OT because I don't think it's necessarily an LC problem. I get the same result with a version of the app built in 2011 from LC 4.6.4 as with one built now with LC 6.5.2. But then again, I'm not aware that anything has changed on the machine where this runs. >> >> Something must have changed; my guess is that it is something in the setup of the remote service. But the nature of that change doesn't disturb curl or shell running under Terminal on my target machine; nor when invoked from LC on my dev machine. >> >> I'm guessing it must be something to do with the environment in which the shell command operates when invoked from LC, as opposed to launching a terminal window. This goes considerably outside my knowledge area, so I'm appealing for suggestions as to where to investigate... >> >> TIA >> >> Ben From bobsneidar at iotecdigital.com Wed Jan 21 10:34:35 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 21 Jan 2015 15:34:35 +0000 Subject: Speaking of sockets... In-Reply-To: References: Message-ID: <7346A689-671A-40E1-9A06-178AD0661E14@iotecdigital.com> Oh good to know. However, I am getting less than a second response time for open socket, and I wouldn?t want to set a timeout that low for SQL. Bob S > On Jan 20, 2015, at 19:04 , Dr. Hawkins wrote: > > On Tue, Jan 20, 2015 at 4:35 PM, Bob Sneidar > wrote: > >> I?ve mentioned in the past that if I am unable to connect to a mySQL >> server (such as going to a location with my laptop and finding their >> firewall blocks port 3306) it takes close to a minute for LC to release and >> tell me it cannot connect. During that time LC is completely unresponsive. >> I needed a way to check first if I can make that connection. > > > OTOH, mySQL is the only db for which revOpenDataBase() allows a timeout to > be specified . . . > > > -- > Dr. Richard E. Hawkins, Esq. > (702) 508-8462 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Wed Jan 21 10:39:56 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 21 Jan 2015 15:39:56 +0000 Subject: [Probably OT] Strange loss of ability to do SSL (through curl) In-Reply-To: <54BFC31C.3090408@cogapp.com> References: <54BEA57C.1010906@cogapp.com> <357A5456-5C96-4C86-9F32-1C97500B2DF2@iotecdigital.com> <54BFC31C.3090408@cogapp.com> Message-ID: <22129A18-0282-4165-B7B5-A9116E8943AA@iotecdigital.com> Use the sudo command. Sudo allows an administrator account to masquerade as root. You will need to provide the current login password when you do this. I have successfully put the password as a second line in a terminal command. The current login must be an administrator. Bob S > On Jan 21, 2015, at 07:17 , Ben Rubinstein wrote: > > Bob, > > Thanks for replying - I suspect you're right as to the immediate cause and where something has changed (it might just be about a new certificate, for example). > > However, my real question is why it works in terminal but not using LC "shell"; although calling the same service does work via LC "shell" on my dev machine (including as a standalone). > > Where can one affect the context in which a shell command is executing? > > thanks, > > Ben > > On 20/01/2015 19:12, Bob Sneidar wrote: >> I suspect whatever system you are connecting to has modified in some way how it encrypts data using SSL. Sounds crazy, but Microsoft recently did something to their TLS in their cloud offerings that summarily prevented an entire series of Konica brand copiers from sending email through Exchange Online. Other series Konicas were fine, and other manufacturers didn?t seem to have a problem either. I was the only one saying Microsoft had made changes to their TLS. No one would listen, citing all the other copiers that still worked. >> >> Finally Konica released a bulletin telling us to install special firmware and make some changes in the security settings on the affected machines. What settings you ask? Why, the TLS settings of course! >> >> Bob S >> >> >>> On Jan 20, 2015, at 10:59 , Ben Rubinstein wrote: >>> >>> An app built in LC, sitting on an old box (PPC Mac Mini running 10.4.11) has for several years happily been running a few times a day to perform a batch job involving retrieve some data from a remote system, processing it, and pushing a report to a new location. >>> >>> Recently, it's not been updating correctly, and investigation has shown that the cause is a failure to retrieve the remote data. >>> >>> The remote system (a third-party SaaS product) has a REST interface, accessed with simple basic authentication over HTTPS. I'm not aware that anything has changed in their API recently. >>> >>> When I first wrote this app, I found that LC didn't correctly deal with the SSL portion (I forget the details); so I recoded it to use the shell function to invoke curl to retrieve each element. >>> >>> This has worked fine for a long time. But now the shell command is returning code 35, which according to man curl is: >>> 35 SSL connect error. The SSL handshaking failed. >>> >>> So the weird thing is: >>> - if I run this app on my dev machine (Intel Mac running 10.8.5), it works fine, happily invoking curl and getting the result >>> - if I run the curl command in Terminal on the target machine, it works fine and retrieves the data >>> - if I create a shell script to run the curl command on the target machine, and invoke that shell script in Terminal, it works fine and retrieves the data >>> - if I modify the app to use 'shell' to run that shell script, instead of calling curl directly, it fails with code 35 again. >>> >>> So curl, and shell, are happy on that machine; but using shell in an LC app to either invoke curl directly, or run a batch script which invokes curl, makes SSL fail. >>> >>> I've marked this possibly OT because I don't think it's necessarily an LC problem. I get the same result with a version of the app built in 2011 from LC 4.6.4 as with one built now with LC 6.5.2. But then again, I'm not aware that anything has changed on the machine where this runs. >>> >>> Something must have changed; my guess is that it is something in the setup of the remote service. But the nature of that change doesn't disturb curl or shell running under Terminal on my target machine; nor when invoked from LC on my dev machine. >>> >>> I'm guessing it must be something to do with the environment in which the shell command operates when invoked from LC, as opposed to launching a terminal window. This goes considerably outside my knowledge area, so I'm appealing for suggestions as to where to investigate... >>> >>> TIA >>> >>> Ben > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Wed Jan 21 10:42:16 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 21 Jan 2015 15:42:16 +0000 Subject: A code style question In-Reply-To: <54BFC27F.2010501@cogapp.com> References: <54BE9AFA.9080805@fourthworld.com> <54BF07E3.4080506@hyperactivesw.com> <54BFC27F.2010501@cogapp.com> Message-ID: I believe dBase/Foxpro had an iif function. That is because they also had an if control structure command and the compiler needed to discern between the two. Bob S > On Jan 21, 2015, at 07:15 , Ben Rubinstein wrote: > > On 21/01/2015 01:58, J. Landman Gay wrote: >> On 1/20/2015 7:33 PM, Geoff Canyon wrote: >>> The nested if statements in the first >>> one, and the duplicated >>> >>> set the baseID of this stack to "this card" >>> >>> offend my eye. >> >> There's two of us then. > > Me three. > > Also I was glad to see you also have a reflex of defining > >> function iff X,T,F >> if X then return T else return F >> end iff > > (I usually name my version "ifthenelse" - I like the conciseness of yours, but I studied logic some decades ago, so for me "iff" is already a word, and it means something different - if and only if.) > > I don't we think should be proposing fundamental additions to the language very often, but this is such a useful one that I think it should be considered. > > What do you think? > > Ben > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From gcanyon at gmail.com Wed Jan 21 10:53:34 2015 From: gcanyon at gmail.com (Geoff Canyon) Date: Wed, 21 Jan 2015 09:53:34 -0600 Subject: A code style question In-Reply-To: <54BFC27F.2010501@cogapp.com> References: <54BE9AFA.9080805@fourthworld.com> <54BF07E3.4080506@hyperactivesw.com> <54BFC27F.2010501@cogapp.com> Message-ID: I know iff means in-and-only-if, but I have a habit of taking things that are not functions and making them into functions by appending an "f" so I went with it. I agree that it would be a very useful thing to have -- the obvious drawback of the way it is now is that both outcomes have to be evaluated, where in an if statement, obviously, only one of them is. On Wed, Jan 21, 2015 at 9:15 AM, Ben Rubinstein wrote: > On 21/01/2015 01:58, J. Landman Gay wrote: > >> On 1/20/2015 7:33 PM, Geoff Canyon wrote: >> >>> The nested if statements in the first >>> one, and the duplicated >>> >>> set the baseID of this stack to "this card" >>> >>> offend my eye. >>> >> >> There's two of us then. >> > > Me three. > > Also I was glad to see you also have a reflex of defining > > function iff X,T,F >> if X then return T else return F >> end iff >> > > (I usually name my version "ifthenelse" - I like the conciseness of yours, > but I studied logic some decades ago, so for me "iff" is already a word, > and it means something different - if and only if.) > > I don't we think should be proposing fundamental additions to the language > very often, but this is such a useful one that I think it should be > considered. > > What do you think? > > Ben > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ambassador at fourthworld.com Wed Jan 21 11:09:52 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 21 Jan 2015 08:09:52 -0800 Subject: Mac Menu Bar Apps In-Reply-To: <8F66E15A-AB1C-48D2-8919-252E18773271@m-r-d.de> References: <8F66E15A-AB1C-48D2-8919-252E18773271@m-r-d.de> Message-ID: <54BFCF50.20902@fourthworld.com> Wasn't statusMenu an "experimental" feature for both Mac's menu bar and Windows' Task Bar several versions back? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From harrison at all-auctions.com Wed Jan 21 11:23:33 2015 From: harrison at all-auctions.com (Rick Harrison) Date: Wed, 21 Jan 2015 11:23:33 -0500 Subject: Mac Menu Bar Apps In-Reply-To: <54BFCF50.20902@fourthworld.com> References: <8F66E15A-AB1C-48D2-8919-252E18773271@m-r-d.de> <54BFCF50.20902@fourthworld.com> Message-ID: <9E5602F8-526E-403E-80D6-C50BF397B915@all-auctions.com> Hi there, If Xcode will let you do it as a Mac developer then it it possible. If that is the case, I?d look into either a shell system call or applescript as a possibility. Good luck! Rick P.S. Why does it have to be a menubar app? Seems to me a small open stack window near the top of the screen might be good enough? > On Jan 21, 2015, at 11:09 AM, Richard Gaskin wrote: > > Wasn't statusMenu an "experimental" feature for both Mac's menu bar and Windows' Task Bar several versions back? > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Wed Jan 21 11:37:57 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 21 Jan 2015 08:37:57 -0800 Subject: Livecode server + NGINX ? In-Reply-To: <9C002A15-81B2-41B4-BEFB-39B1CB624CA1@gmail.com> References: <9C002A15-81B2-41B4-BEFB-39B1CB624CA1@gmail.com> Message-ID: <54BFD5E5.4030509@fourthworld.com> Peter W A Wood wrote: > Richard is correct that nginx does not support CGI. It will forward > requests to an upstream server or a number of upstream servers. I > support one application that has been running for a couple of years > that forwards CGI requests to a second server. (The second server is > Cheyenne from Softinnov with which you may be familiar). > > I have also used nginx to distribute requests to a number of upstream > servers when the upstream server could only process one request at > a time. In my case, I spread the load over four servers. This load > balancing feature of nginx use a simple approach in the free version, > I believe the ?not free? version has more sophisticated load > balancing. A few months ago I was experimenting with multi-processing in LiveCode as an alternative to multi-threading. The literature on each notes the higher overhead of the former compared to the latter, but also that the overhead is not as significant as one might think. In many cases multi-processing allows for less complex code than multi-threading by virtue of being able to rely on OS partitioning of memory and CPU resources rather than having to manage all of that internally via threads. In those early tests I was interested in seeing just how many requests I could throw at a single non-threaded LC-based daemon listening on port 80. This required a VPS, of course, since shared hosts generally don't allow always-on processes. I was surprised by the amount of traffic it could handle. I had three clients hammering it with requests as fast as they could, up to as little as 5ms apart (though given the overhead of TCP that was merely a theoretical limit; I don't think any of my systems were able to round-trip requests that fast with latency, etc.). The server held up admirably, able to broadcast each request to all three clients faster than all but one of the clients could keep up with. This suggested an extension of the experiment I've not had time for, in which I'd build a modest quad-core system (Intel's J1900 would be an ideal CPU for this, as would some similarly-priced AMD quad-cores), with one broker daemon listening on port 80 for incoming requests, and routes those to any of three other daemons listening to the broker on internal ports. In fact, communications between the broker and the workers need not even be via sockets; file polling could be quite efficient on a system with excellent caching like Linux, esp. with an SSD, similar to some distributed file systems. With this setup, the broker merely hands off requests to other processes but never bothers with the heavy lifting of any of them, that heavy lifting done by the worker daemons which handle only those requests and nothing more, since the broker handles the client comms. I doubt such a system would completely solve the "C10k Problem" ("How efficiently can a system handle 10,000 concurrent connections?") as well as NginX. But given the ever-increasing role of Python and other high-level scripting languages in large-scale systems, I think it's worth exploring further. The most famous example is Eve Online, a massively-multi-player game server made with Stackless Python. Also worth considering are Tahoe and Disco, both distributed file systems similar to Hadoop but written in Python. Osterhout was right: scripting is the 21st century solution for many application needs. Given all this, I believe we may well be able to use LiveCode in systems of similar scope, with relatively modest enhancements to the engine. And in the meantime, there are probably ways we can use the existing engine in ever more clever ways to achieve scaling far beyond current expectations. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From bonnmike at gmail.com Wed Jan 21 11:42:01 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Wed, 21 Jan 2015 09:42:01 -0700 Subject: [Probably OT] Strange loss of ability to do SSL (through curl) In-Reply-To: <22129A18-0282-4165-B7B5-A9116E8943AA@iotecdigital.com> References: <54BEA57C.1010906@cogapp.com> <357A5456-5C96-4C86-9F32-1C97500B2DF2@iotecdigital.com> <54BFC31C.3090408@cogapp.com> <22129A18-0282-4165-B7B5-A9116E8943AA@iotecdigital.com> Message-ID: You might check to see the environment variables from the command line, and via lc shell, and do a comparison. If I recall correctly, lc shell environment and the environment you get in a terminal or console can differ. If the lc shell is using bash, and you know which files are processed when a terminal session starts, you can "source" them. Source is a built in command that processes the file you give it. So if you have a file .bashrc in your home directory that has the required env variables set up you could get shell("source /path/to/my/home/.bashrc; the rest of your commands here" ) If you can figure out what env variables are missing, but required for what you want to do, you can probably include them at the top of your curl ssl script file On Wed, Jan 21, 2015 at 8:39 AM, Bob Sneidar wrote: > Use the sudo command. Sudo allows an administrator account to masquerade > as root. You will need to provide the current login password when you do > this. I have successfully put the password as a second line in a terminal > command. The current login must be an administrator. > > Bob S > > > > On Jan 21, 2015, at 07:17 , Ben Rubinstein wrote: > > > > Bob, > > > > Thanks for replying - I suspect you're right as to the immediate cause > and where something has changed (it might just be about a new certificate, > for example). > > > > However, my real question is why it works in terminal but not using LC > "shell"; although calling the same service does work via LC "shell" on my > dev machine (including as a standalone). > > > > Where can one affect the context in which a shell command is executing? > > > > thanks, > > > > Ben > > > > On 20/01/2015 19:12, Bob Sneidar wrote: > >> I suspect whatever system you are connecting to has modified in some > way how it encrypts data using SSL. Sounds crazy, but Microsoft recently > did something to their TLS in their cloud offerings that summarily > prevented an entire series of Konica brand copiers from sending email > through Exchange Online. Other series Konicas were fine, and other > manufacturers didn?t seem to have a problem either. I was the only one > saying Microsoft had made changes to their TLS. No one would listen, citing > all the other copiers that still worked. > >> > >> Finally Konica released a bulletin telling us to install special > firmware and make some changes in the security settings on the affected > machines. What settings you ask? Why, the TLS settings of course! > >> > >> Bob S > >> > >> > >>> On Jan 20, 2015, at 10:59 , Ben Rubinstein wrote: > >>> > >>> An app built in LC, sitting on an old box (PPC Mac Mini running > 10.4.11) has for several years happily been running a few times a day to > perform a batch job involving retrieve some data from a remote system, > processing it, and pushing a report to a new location. > >>> > >>> Recently, it's not been updating correctly, and investigation has > shown that the cause is a failure to retrieve the remote data. > >>> > >>> The remote system (a third-party SaaS product) has a REST interface, > accessed with simple basic authentication over HTTPS. I'm not aware that > anything has changed in their API recently. > >>> > >>> When I first wrote this app, I found that LC didn't correctly deal > with the SSL portion (I forget the details); so I recoded it to use the > shell function to invoke curl to retrieve each element. > >>> > >>> This has worked fine for a long time. But now the shell command is > returning code 35, which according to man curl is: > >>> 35 SSL connect error. The SSL handshaking failed. > >>> > >>> So the weird thing is: > >>> - if I run this app on my dev machine (Intel Mac running 10.8.5), it > works fine, happily invoking curl and getting the result > >>> - if I run the curl command in Terminal on the target machine, it > works fine and retrieves the data > >>> - if I create a shell script to run the curl command on the target > machine, and invoke that shell script in Terminal, it works fine and > retrieves the data > >>> - if I modify the app to use 'shell' to run that shell script, instead > of calling curl directly, it fails with code 35 again. > >>> > >>> So curl, and shell, are happy on that machine; but using shell in an > LC app to either invoke curl directly, or run a batch script which invokes > curl, makes SSL fail. > >>> > >>> I've marked this possibly OT because I don't think it's necessarily an > LC problem. I get the same result with a version of the app built in 2011 > from LC 4.6.4 as with one built now with LC 6.5.2. But then again, I'm not > aware that anything has changed on the machine where this runs. > >>> > >>> Something must have changed; my guess is that it is something in the > setup of the remote service. But the nature of that change doesn't disturb > curl or shell running under Terminal on my target machine; nor when invoked > from LC on my dev machine. > >>> > >>> I'm guessing it must be something to do with the environment in which > the shell command operates when invoked from LC, as opposed to launching a > terminal window. This goes considerably outside my knowledge area, so I'm > appealing for suggestions as to where to investigate... > >>> > >>> TIA > >>> > >>> Ben > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From matthias_livecode_150811 at m-r-d.de Wed Jan 21 11:44:40 2015 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe | M-R-D) Date: Wed, 21 Jan 2015 17:44:40 +0100 Subject: Mac Menu Bar Apps In-Reply-To: <54BFCF50.20902@fourthworld.com> References: <8F66E15A-AB1C-48D2-8919-252E18773271@m-r-d.de> <54BFCF50.20902@fourthworld.com> Message-ID: <5908D40F-9B3A-4AD1-B47E-553482445380@m-r-d.de> Do you mean ?iconmenu?? This allowed to place an icon with menu in the systray of the taskbar under windows and an icon with menu on the toolbar on mac. If the iconic of the stack was set to true the iconfiyStack handler did the rest For example on iconifyStack set the statusicon to 1005 set the statusiconMenu to ?Hilfe" & CR &"Status abfragen"&CR & "Quit" pass iconifyStack end iconifyStack And the menu pick was handled by the statusIconMenuPick handler ON statusIconMenuPick pItem switch pItem case ?Hilfe? go stack ?hilfe? break case ?Status abfragen? get abStatus() break case ?quit? send ?quitme? to this stack in 50 milliseconds break end switch end statusIconMenuPick But i cannot remember a pure livecode way to place a status icon in the dock on Mac OSX. Matthias > Am 21.01.2015 um 17:09 schrieb Richard Gaskin : > > Wasn't statusMenu an "experimental" feature for both Mac's menu bar and Windows' Task Bar several versions back? > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From matthias_livecode_150811 at m-r-d.de Wed Jan 21 11:46:45 2015 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe | M-R-D) Date: Wed, 21 Jan 2015 17:46:45 +0100 Subject: Mac Menu Bar Apps In-Reply-To: <5908D40F-9B3A-4AD1-B47E-553482445380@m-r-d.de> References: <8F66E15A-AB1C-48D2-8919-252E18773271@m-r-d.de> <54BFCF50.20902@fourthworld.com> <5908D40F-9B3A-4AD1-B47E-553482445380@m-r-d.de> Message-ID: > Am 21.01.2015 um 17:44 schrieb Matthias Rebbe | M-R-D : > > > Do you mean ?iconmenu?? This allowed to place an icon with menu in the systray of the taskbar under windows and an icon with menu on the toolbar on mac. > I meant dock not toolbar. > If the iconic of the stack was set to true the iconfiyStack handler did the rest > > For example > on iconifyStack > set the statusicon to 1005 > set the statusiconMenu to ?Hilfe" & CR &"Status abfragen"&CR & "Quit" > pass iconifyStack > end iconifyStack > > And the menu pick was handled by the statusIconMenuPick handler > > ON statusIconMenuPick pItem > switch pItem > case ?Hilfe? > go stack ?hilfe? > break > case ?Status abfragen? > get abStatus() > break > case ?quit? > send ?quitme? to this stack in 50 milliseconds > break > end switch > end statusIconMenuPick > > > But i cannot remember a pure livecode way to place a status icon in the dock on Mac OSX. > > > Matthias > > >> Am 21.01.2015 um 17:09 schrieb Richard Gaskin : >> >> Wasn't statusMenu an "experimental" feature for both Mac's menu bar and Windows' Task Bar several versions back? >> >> -- >> Richard Gaskin >> Fourth World Systems >> Software Design and Development for the Desktop, Mobile, and the Web >> ____________________________________________________________________ >> Ambassador at FourthWorld.com http://www.FourthWorld.com >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pete at lcsql.com Wed Jan 21 12:06:50 2015 From: pete at lcsql.com (Peter Haworth) Date: Wed, 21 Jan 2015 09:06:50 -0800 Subject: [Probably OT] Strange loss of ability to do SSL (through curl) In-Reply-To: References: <54BEA57C.1010906@cogapp.com> <357A5456-5C96-4C86-9F32-1C97500B2DF2@iotecdigital.com> <54BFC31C.3090408@cogapp.com> <22129A18-0282-4165-B7B5-A9116E8943AA@iotecdigital.com> Message-ID: Courtesy of Dariusz Miedzianogora a while back on this list: "You could try the following command in the shell call: . ~/.profile; The first dot (.) executes the next file. The ~ (tilde) is a shortcut to the home directory of the user. Since .profile is a shell script that is executed when the user logs in, this will rerun the .profile script in the local shell, and you should get the updated path. The semi-colon means that the command continues, so you can then execute your shell command in the process instance (and thus the shell instance) that you just refreshed. " On Jan 21, 2015 8:42 AM, "Mike Bonner" wrote: > You might check to see the environment variables from the command line, and > via lc shell, and do a comparison. If I recall correctly, lc shell > environment and the environment you get in a terminal or console can > differ. If the lc shell is using bash, and you know which files are > processed when a terminal session starts, you can "source" them. Source is > a built in command that processes the file you give it. So if you have a > file .bashrc in your home directory that has the required env variables set > up you could get shell("source /path/to/my/home/.bashrc; the rest of your > commands here" ) > > If you can figure out what env variables are missing, but required for what > you want to do, you can probably include them at the top of your curl ssl > script file > > On Wed, Jan 21, 2015 at 8:39 AM, Bob Sneidar > wrote: > > > Use the sudo command. Sudo allows an administrator account to masquerade > > as root. You will need to provide the current login password when you do > > this. I have successfully put the password as a second line in a terminal > > command. The current login must be an administrator. > > > > Bob S > > > > > > > On Jan 21, 2015, at 07:17 , Ben Rubinstein wrote: > > > > > > Bob, > > > > > > Thanks for replying - I suspect you're right as to the immediate cause > > and where something has changed (it might just be about a new > certificate, > > for example). > > > > > > However, my real question is why it works in terminal but not using LC > > "shell"; although calling the same service does work via LC "shell" on my > > dev machine (including as a standalone). > > > > > > Where can one affect the context in which a shell command is executing? > > > > > > thanks, > > > > > > Ben > > > > > > On 20/01/2015 19:12, Bob Sneidar wrote: > > >> I suspect whatever system you are connecting to has modified in some > > way how it encrypts data using SSL. Sounds crazy, but Microsoft recently > > did something to their TLS in their cloud offerings that summarily > > prevented an entire series of Konica brand copiers from sending email > > through Exchange Online. Other series Konicas were fine, and other > > manufacturers didn?t seem to have a problem either. I was the only one > > saying Microsoft had made changes to their TLS. No one would listen, > citing > > all the other copiers that still worked. > > >> > > >> Finally Konica released a bulletin telling us to install special > > firmware and make some changes in the security settings on the affected > > machines. What settings you ask? Why, the TLS settings of course! > > >> > > >> Bob S > > >> > > >> > > >>> On Jan 20, 2015, at 10:59 , Ben Rubinstein > wrote: > > >>> > > >>> An app built in LC, sitting on an old box (PPC Mac Mini running > > 10.4.11) has for several years happily been running a few times a day to > > perform a batch job involving retrieve some data from a remote system, > > processing it, and pushing a report to a new location. > > >>> > > >>> Recently, it's not been updating correctly, and investigation has > > shown that the cause is a failure to retrieve the remote data. > > >>> > > >>> The remote system (a third-party SaaS product) has a REST interface, > > accessed with simple basic authentication over HTTPS. I'm not aware that > > anything has changed in their API recently. > > >>> > > >>> When I first wrote this app, I found that LC didn't correctly deal > > with the SSL portion (I forget the details); so I recoded it to use the > > shell function to invoke curl to retrieve each element. > > >>> > > >>> This has worked fine for a long time. But now the shell command is > > returning code 35, which according to man curl is: > > >>> 35 SSL connect error. The SSL handshaking failed. > > >>> > > >>> So the weird thing is: > > >>> - if I run this app on my dev machine (Intel Mac running 10.8.5), it > > works fine, happily invoking curl and getting the result > > >>> - if I run the curl command in Terminal on the target machine, it > > works fine and retrieves the data > > >>> - if I create a shell script to run the curl command on the target > > machine, and invoke that shell script in Terminal, it works fine and > > retrieves the data > > >>> - if I modify the app to use 'shell' to run that shell script, > instead > > of calling curl directly, it fails with code 35 again. > > >>> > > >>> So curl, and shell, are happy on that machine; but using shell in an > > LC app to either invoke curl directly, or run a batch script which > invokes > > curl, makes SSL fail. > > >>> > > >>> I've marked this possibly OT because I don't think it's necessarily > an > > LC problem. I get the same result with a version of the app built in > 2011 > > from LC 4.6.4 as with one built now with LC 6.5.2. But then again, I'm > not > > aware that anything has changed on the machine where this runs. > > >>> > > >>> Something must have changed; my guess is that it is something in the > > setup of the remote service. But the nature of that change doesn't > disturb > > curl or shell running under Terminal on my target machine; nor when > invoked > > from LC on my dev machine. > > >>> > > >>> I'm guessing it must be something to do with the environment in which > > the shell command operates when invoked from LC, as opposed to launching > a > > terminal window. This goes considerably outside my knowledge area, so > I'm > > appealing for suggestions as to where to investigate... > > >>> > > >>> TIA > > >>> > > >>> Ben > > > > > > > > > _______________________________________________ > > > use-livecode mailing list > > > use-livecode at lists.runrev.com > > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pete at lcsql.com Wed Jan 21 12:09:57 2015 From: pete at lcsql.com (Peter Haworth) Date: Wed, 21 Jan 2015 09:09:57 -0800 Subject: Mac Menu Bar Apps In-Reply-To: <54BFCF50.20902@fourthworld.com> References: <8F66E15A-AB1C-48D2-8919-252E18773271@m-r-d.de> <54BFCF50.20902@fourthworld.com> Message-ID: That does ring a bell but I can't find any mention of it in the dictionary. I suppose I'll have to search through the multiple separate release notes to see if I can find it. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Wed, Jan 21, 2015 at 8:09 AM, Richard Gaskin wrote: > Wasn't statusMenu an "experimental" feature for both Mac's menu bar and > Windows' Task Bar several versions back? > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dochawk at gmail.com Wed Jan 21 12:14:20 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Wed, 21 Jan 2015 09:14:20 -0800 Subject: Speaking of sockets... In-Reply-To: <7346A689-671A-40E1-9A06-178AD0661E14@iotecdigital.com> References: <7346A689-671A-40E1-9A06-178AD0661E14@iotecdigital.com> Message-ID: On Wed, Jan 21, 2015 at 7:34 AM, Bob Sneidar wrote: > Oh good to know. However, I am getting less than a second response time > for open socket, and I wouldn?t want to set a timeout that low for SQL. > > I'm currently seeing ~250 ms to connect to mySQL on dreamhost . . . -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From matthias_livecode_150811 at m-r-d.de Wed Jan 21 12:15:37 2015 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe | M-R-D) Date: Wed, 21 Jan 2015 18:15:37 +0100 Subject: Mac Menu Bar Apps In-Reply-To: References: <8F66E15A-AB1C-48D2-8919-252E18773271@m-r-d.de> <54BFCF50.20902@fourthworld.com> Message-ID: <516B05E3-8E9E-449C-B5D1-FB3EF95F48D7@m-r-d.de> The release not of LC 4.5 definitely list that experimental feature. http://downloads.livecode.com/livecode/4_5_0/LiveCodeNotes-4_5_0.pdf Matthias > Am 21.01.2015 um 18:09 schrieb Peter Haworth : > > That does ring a bell but I can't find any mention of it in the > dictionary. I suppose I'll have to search through the multiple separate > release notes to see if I can find it. > > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin > > On Wed, Jan 21, 2015 at 8:09 AM, Richard Gaskin > wrote: > >> Wasn't statusMenu an "experimental" feature for both Mac's menu bar and >> Windows' Task Bar several versions back? >> >> -- >> Richard Gaskin >> Fourth World Systems >> Software Design and Development for the Desktop, Mobile, and the Web >> ____________________________________________________________________ >> Ambassador at FourthWorld.com http://www.FourthWorld.com >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pete at lcsql.com Wed Jan 21 12:17:07 2015 From: pete at lcsql.com (Peter Haworth) Date: Wed, 21 Jan 2015 09:17:07 -0800 Subject: Mac Menu Bar Apps In-Reply-To: <5908D40F-9B3A-4AD1-B47E-553482445380@m-r-d.de> References: <8F66E15A-AB1C-48D2-8919-252E18773271@m-r-d.de> <54BFCF50.20902@fourthworld.com> <5908D40F-9B3A-4AD1-B47E-553482445380@m-r-d.de> Message-ID: Thanks Matthias. Once again, no mention in the dictionary of statusicon, statusiconmenu, or statusiconmenupick, although I think there's enough in your reply to give it a try. Maybe I'm not using the right terminology. When I say the Mac menu bar, I mean the strip at the top of the screen with the File, Edit, etc menus at the left, username, search icon and various other app icons on the right Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Wed, Jan 21, 2015 at 8:44 AM, Matthias Rebbe | M-R-D < matthias_livecode_150811 at m-r-d.de> wrote: > > Do you mean ?iconmenu?? This allowed to place an icon with menu in the > systray of the taskbar under windows and an icon with menu on the toolbar > on mac. > > If the iconic of the stack was set to true the iconfiyStack handler did > the rest > > For example > on iconifyStack > set the statusicon to 1005 > set the statusiconMenu to ?Hilfe" & CR &"Status abfragen"&CR & "Quit" > pass iconifyStack > end iconifyStack > > And the menu pick was handled by the statusIconMenuPick handler > > ON statusIconMenuPick pItem > switch pItem > case ?Hilfe? > go stack ?hilfe? > break > case ?Status abfragen? > get abStatus() > break > case ?quit? > send ?quitme? to this stack in 50 milliseconds > break > end switch > end statusIconMenuPick > > > But i cannot remember a pure livecode way to place a status icon in the > dock on Mac OSX. > > > Matthias > > > > Am 21.01.2015 um 17:09 schrieb Richard Gaskin < > ambassador at fourthworld.com>: > > > > Wasn't statusMenu an "experimental" feature for both Mac's menu bar and > Windows' Task Bar several versions back? > > > > -- > > Richard Gaskin > > Fourth World Systems > > Software Design and Development for the Desktop, Mobile, and the Web > > ____________________________________________________________________ > > Ambassador at FourthWorld.com http://www.FourthWorld.com > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From rjb at robelko.com Wed Jan 21 12:16:14 2015 From: rjb at robelko.com (Robert Brenstein) Date: Wed, 21 Jan 2015 18:16:14 +0100 Subject: Livecode server + NGINX ? In-Reply-To: <54BFD5E5.4030509@fourthworld.com> References: <9C002A15-81B2-41B4-BEFB-39B1CB624CA1@gmail.com> <54BFD5E5.4030509@fourthworld.com> Message-ID: On 21.01.2015 at 8:37 Uhr -0800 Richard Gaskin apparently wrote: > >A few months ago I was experimenting with multi-processing in >LiveCode as an alternative to multi-threading. The literature on >each notes the higher overhead of the former compared to the latter, >but also that the overhead is not as significant as one might think. >In many cases multi-processing allows for less complex code than >multi-threading by virtue of being able to rely on OS partitioning >of memory and CPU resources rather than having to manage all of that >internally via threads. > >In those early tests I was interested in seeing just how many >requests I could throw at a single non-threaded LC-based daemon >listening on port 80. This required a VPS, of course, since shared >hosts generally don't allow always-on processes. > Would you care to provide more technical details on those tests? RObert From pete at lcsql.com Wed Jan 21 12:23:11 2015 From: pete at lcsql.com (Peter Haworth) Date: Wed, 21 Jan 2015 09:23:11 -0800 Subject: Mac Menu Bar Apps In-Reply-To: <516B05E3-8E9E-449C-B5D1-FB3EF95F48D7@m-r-d.de> References: <8F66E15A-AB1C-48D2-8919-252E18773271@m-r-d.de> <54BFCF50.20902@fourthworld.com> <516B05E3-8E9E-449C-B5D1-FB3EF95F48D7@m-r-d.de> Message-ID: Thanks Matthias. Just read that and unfortunately it says it's only implemented on Windows, at least in that release. Maybe it made it to Mac in a later release, I guess I'll give it a whirl and see what happens. It sure would be nice if there was a searchable database of all the LC release notes :-) Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Wed, Jan 21, 2015 at 9:15 AM, Matthias Rebbe | M-R-D < matthias_livecode_150811 at m-r-d.de> wrote: > The release not of LC 4.5 definitely list that experimental feature. > http://downloads.livecode.com/livecode/4_5_0/LiveCodeNotes-4_5_0.pdf > > Matthias > > > Am 21.01.2015 um 18:09 schrieb Peter Haworth : > > > > That does ring a bell but I can't find any mention of it in the > > dictionary. I suppose I'll have to search through the multiple separate > > release notes to see if I can find it. > > > > Pete > > lcSQL Software > > Home of lcStackBrowser and > > SQLiteAdmin > > > > On Wed, Jan 21, 2015 at 8:09 AM, Richard Gaskin < > ambassador at fourthworld.com> > > wrote: > > > >> Wasn't statusMenu an "experimental" feature for both Mac's menu bar and > >> Windows' Task Bar several versions back? > >> > >> -- > >> Richard Gaskin > >> Fourth World Systems > >> Software Design and Development for the Desktop, Mobile, and the Web > >> ____________________________________________________________________ > >> Ambassador at FourthWorld.com http://www.FourthWorld.com > >> > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From alanstenhouse at hotmail.com Wed Jan 21 12:33:59 2015 From: alanstenhouse at hotmail.com (Alan Stenhouse) Date: Wed, 21 Jan 2015 18:33:59 +0100 Subject: Release notes DB - was Re: Mac Menu Bar Apps In-Reply-To: References: Message-ID: +1 +5 actually! On 21 Jan 2015, at 6:23 pm, Peter Haworth wrote: > It sure would be nice if there was a searchable database of all the LC > release notes :-) From sc at sahores-conseil.com Wed Jan 21 12:45:10 2015 From: sc at sahores-conseil.com (Pierre Sahores) Date: Wed, 21 Jan 2015 18:45:10 +0100 Subject: Livecode server + NGINX ? References: <54BFD5E5.4030509@fourthworld.com> Message-ID: 100% my tough too, Richard ! With up to 3750 connections/second handled in a LAN test < 1500 U$ dedicated server configuration with XSS/CSRF filter and protection set to ON, Linux/Apache/LC Server/RevIgniter/PostgreSQL is able to handle more than any of my clients will probably ever need in production apps. Should probably be less reliable in using a MySQL INNODB back-end DB (untested). D?but du message r?exp?di? : > And in the meantime, there are probably ways we can use the existing engine in ever more clever ways to achieve scaling far beyond current expectations. -- Pierre Sahores mobile : 06 03 95 77 70 www.sahores-conseil.com From kray at sonsothunder.com Wed Jan 21 12:54:14 2015 From: kray at sonsothunder.com (Ken Ray) Date: Wed, 21 Jan 2015 11:54:14 -0600 Subject: A code style question In-Reply-To: References: <54BE9AFA.9080805@fourthworld.com> Message-ID: > local baseID > > function baseID newID > put iff(validID(newID),newID, \ > iff(validID(baseID), baseID,"this card")) into baseID > return baseID > end baseID3 Of course you could reduce it one step further: function baseID newID return iff(validID(newID),newID, \ iff(validID(baseID), baseID,"this card")) end baseID3 I use a similar inline "switch": put stsSwitch(the platform,"MacOS=Finder","Win32=Explorer","*=Desktop") into tReference easier/shorter then: switch (the platform) case "MacOS" put "Finder" into tReference break case "Win32" put "Explorer" into tReference break default put "Desktop" into tReference break end switch For anyone interested, here?s the code: function stsSwitch -- does a quick inline switch/case; separate multiple matches with a comma -- param 1 is -- params 2+ is in the form =; if there is a match to one -- or more items in , return -- otherwise empty is returned (unless a matchValue is "*", in which case return the associated value) put param(1) into tCheckValue set the itemDel to "=" put "" into tDefault repeat with x = 2 to the paramCount put param(x) into tCheck put item 1 of tCheck into tMatch put item 2 of tCheck into tRetVal replace "," with "=" in tMatch if tCheckValue is among the items of tMatch then return tRetVal if tMatch = "*" then if tRetVal = "*" then put tCheckValue into tDefault else put tRetVal into tDefault end if end if end repeat return tDefault end stsSwitch :D Ken Ray Sons of Thunder Software, Inc. Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ From ambassador at fourthworld.com Wed Jan 21 13:06:29 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 21 Jan 2015 10:06:29 -0800 Subject: Mac Menu Bar Apps In-Reply-To: References: Message-ID: <54BFEAA5.8050801@fourthworld.com> Peter Haworth wrote: > On Wed, Jan 21, 2015 at 9:15 AM, Matthias Rebbe wrote: > >> The release not of LC 4.5 definitely list that experimental feature. >> http://downloads.livecode.com/livecode/4_5_0/LiveCodeNotes-4_5_0.pdf >> > Thanks Matthias. Just read that and unfortunately it says it's only > implemented on Windows, at least in that release. Maybe it made it > to Mac in a later release, I guess I'll give it a whirl and see what > happens. Might be useful to drop a request into the RQCC, or see if there's one there already and bump it. Cross-platform parity is a key feature of LiveCode, so if this is working in Windows now it would be very nice to see this in the Mac menubar and in Gnome panels. > It sure would be nice if there was a searchable database of all the LC > release notes :-) Somewhat specialized in that most of the items in the Release Notes become entries in the searchable Dictionary once they move from "experimental" to a supported implementation. And before we go into another 80 replies about how we need more thorough indexing in the Dictionary, yes, that's in development now, with the hope of having that in the final release of v8. The release notes back to v4.5.0 are available on the Downloads page: http://downloads.livecode.com/livecode/ Anything older than that probably isn't very interesting, in that things have either been added to the Dictionary by now or dropped altogether. Still, if someone wants to take this on maybe it's a good community project. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From bonnmike at gmail.com Wed Jan 21 13:05:32 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Wed, 21 Jan 2015 11:05:32 -0700 Subject: [Probably OT] Strange loss of ability to do SSL (through curl) In-Reply-To: References: <54BEA57C.1010906@cogapp.com> <357A5456-5C96-4C86-9F32-1C97500B2DF2@iotecdigital.com> <54BFC31C.3090408@cogapp.com> <22129A18-0282-4165-B7B5-A9116E8943AA@iotecdigital.com> Message-ID: yeah, same thing as source, I forgot you could . it On Wed, Jan 21, 2015 at 10:06 AM, Peter Haworth wrote: > Courtesy of Dariusz Miedzianogora a while back on this list: > > > "You could try the following command in the shell call: > > . ~/.profile; > > The first dot (.) executes the next file. The ~ (tilde) is a shortcut to > the home directory of the user. Since .profile is a shell script that is > executed when the user logs in, this will rerun the .profile script in the > local shell, and you should get the updated path. The semi-colon means that > the command continues, so you can then execute your shell command in the > process instance (and thus the shell instance) that you just refreshed. " > > > On Jan 21, 2015 8:42 AM, "Mike Bonner" wrote: > > > You might check to see the environment variables from the command line, > and > > via lc shell, and do a comparison. If I recall correctly, lc shell > > environment and the environment you get in a terminal or console can > > differ. If the lc shell is using bash, and you know which files are > > processed when a terminal session starts, you can "source" them. Source > is > > a built in command that processes the file you give it. So if you have a > > file .bashrc in your home directory that has the required env variables > set > > up you could get shell("source /path/to/my/home/.bashrc; the rest of your > > commands here" ) > > > > If you can figure out what env variables are missing, but required for > what > > you want to do, you can probably include them at the top of your curl ssl > > script file > > > > On Wed, Jan 21, 2015 at 8:39 AM, Bob Sneidar < > bobsneidar at iotecdigital.com> > > wrote: > > > > > Use the sudo command. Sudo allows an administrator account to > masquerade > > > as root. You will need to provide the current login password when you > do > > > this. I have successfully put the password as a second line in a > terminal > > > command. The current login must be an administrator. > > > > > > Bob S > > > > > > > > > > On Jan 21, 2015, at 07:17 , Ben Rubinstein > wrote: > > > > > > > > Bob, > > > > > > > > Thanks for replying - I suspect you're right as to the immediate > cause > > > and where something has changed (it might just be about a new > > certificate, > > > for example). > > > > > > > > However, my real question is why it works in terminal but not using > LC > > > "shell"; although calling the same service does work via LC "shell" on > my > > > dev machine (including as a standalone). > > > > > > > > Where can one affect the context in which a shell command is > executing? > > > > > > > > thanks, > > > > > > > > Ben > > > > > > > > On 20/01/2015 19:12, Bob Sneidar wrote: > > > >> I suspect whatever system you are connecting to has modified in some > > > way how it encrypts data using SSL. Sounds crazy, but Microsoft > recently > > > did something to their TLS in their cloud offerings that summarily > > > prevented an entire series of Konica brand copiers from sending email > > > through Exchange Online. Other series Konicas were fine, and other > > > manufacturers didn?t seem to have a problem either. I was the only one > > > saying Microsoft had made changes to their TLS. No one would listen, > > citing > > > all the other copiers that still worked. > > > >> > > > >> Finally Konica released a bulletin telling us to install special > > > firmware and make some changes in the security settings on the affected > > > machines. What settings you ask? Why, the TLS settings of course! > > > >> > > > >> Bob S > > > >> > > > >> > > > >>> On Jan 20, 2015, at 10:59 , Ben Rubinstein > > wrote: > > > >>> > > > >>> An app built in LC, sitting on an old box (PPC Mac Mini running > > > 10.4.11) has for several years happily been running a few times a day > to > > > perform a batch job involving retrieve some data from a remote system, > > > processing it, and pushing a report to a new location. > > > >>> > > > >>> Recently, it's not been updating correctly, and investigation has > > > shown that the cause is a failure to retrieve the remote data. > > > >>> > > > >>> The remote system (a third-party SaaS product) has a REST > interface, > > > accessed with simple basic authentication over HTTPS. I'm not aware > that > > > anything has changed in their API recently. > > > >>> > > > >>> When I first wrote this app, I found that LC didn't correctly deal > > > with the SSL portion (I forget the details); so I recoded it to use the > > > shell function to invoke curl to retrieve each element. > > > >>> > > > >>> This has worked fine for a long time. But now the shell command > is > > > returning code 35, which according to man curl is: > > > >>> 35 SSL connect error. The SSL handshaking failed. > > > >>> > > > >>> So the weird thing is: > > > >>> - if I run this app on my dev machine (Intel Mac running 10.8.5), > it > > > works fine, happily invoking curl and getting the result > > > >>> - if I run the curl command in Terminal on the target machine, it > > > works fine and retrieves the data > > > >>> - if I create a shell script to run the curl command on the target > > > machine, and invoke that shell script in Terminal, it works fine and > > > retrieves the data > > > >>> - if I modify the app to use 'shell' to run that shell script, > > instead > > > of calling curl directly, it fails with code 35 again. > > > >>> > > > >>> So curl, and shell, are happy on that machine; but using shell in > an > > > LC app to either invoke curl directly, or run a batch script which > > invokes > > > curl, makes SSL fail. > > > >>> > > > >>> I've marked this possibly OT because I don't think it's necessarily > > an > > > LC problem. I get the same result with a version of the app built in > > 2011 > > > from LC 4.6.4 as with one built now with LC 6.5.2. But then again, I'm > > not > > > aware that anything has changed on the machine where this runs. > > > >>> > > > >>> Something must have changed; my guess is that it is something in > the > > > setup of the remote service. But the nature of that change doesn't > > disturb > > > curl or shell running under Terminal on my target machine; nor when > > invoked > > > from LC on my dev machine. > > > >>> > > > >>> I'm guessing it must be something to do with the environment in > which > > > the shell command operates when invoked from LC, as opposed to > launching > > a > > > terminal window. This goes considerably outside my knowledge area, so > > I'm > > > appealing for suggestions as to where to investigate... > > > >>> > > > >>> TIA > > > >>> > > > >>> Ben > > > > > > > > > > > > _______________________________________________ > > > > use-livecode mailing list > > > > use-livecode at lists.runrev.com > > > > Please visit this url to subscribe, unsubscribe and manage your > > > subscription preferences: > > > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > _______________________________________________ > > > use-livecode mailing list > > > use-livecode at lists.runrev.com > > > Please visit this url to subscribe, unsubscribe and manage your > > > subscription preferences: > > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From gcanyon at gmail.com Wed Jan 21 13:08:27 2015 From: gcanyon at gmail.com (Geoff Canyon) Date: Wed, 21 Jan 2015 12:08:27 -0600 Subject: Inspector Issue In-Reply-To: References: Message-ID: Sorry I didn't see this before -- if you're seeing that the problem is now fixed, then maybe -- maybe -- there was something wrong with the stack before. If you still see the problem, if you have a large number of cards/controls, maybe there's some inherent limit in the inspector you're hitting. Navigator has limits as well, they're just very large. I think in menus it's something like 300 cards/objects, and in lists I think it's 3000, or maybe 10,000. Those were set a long time ago because of performance limitations. At this point I could probably remove them and the engine/Navigator would likely hold up for much larger counts. On Fri, Jan 16, 2015 at 3:14 PM, Peter Bogdanoff wrote: > Hi, > > I would like some expert advice. > > I have a stack that on some of the cards exhibit an issue: When you show > the Inspector and there click on Inspect>? it doesn?t show all the > controls. In fact it only shows Inspect>buttons> and then a list of the > first 7-8 buttons on the card. On the card there are dozens of buttons, > fields, an image, etc., but the Inspector doesn?t list them. > > When I use Geoff Canyon?s Navigator plugin I see all the controls, and > indeed, all the controls seem to be visible and it all works. I can select > any control and its properties display in the Inspector. Just that dang > Inspect> triangle doesn?t show all it should. > > This issue occurs on many of the cards of this 3,000 card stack, but not > all; on many all the controls show properly in the Inspector. This anomaly > occured recently but doesn?t seem to affect the functionality of the stack. > I?m using LC 6.3.1, but I also see it when I open that stack in a later > version of LC. > > My question(s): Has anyone seen this before? and is my stack damaged? and > should I revert to an earlier version? > > Peter Bogdanoff > UCLA > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pete at lcsql.com Wed Jan 21 13:09:54 2015 From: pete at lcsql.com (Peter Haworth) Date: Wed, 21 Jan 2015 10:09:54 -0800 Subject: Mac Menu Bar Apps In-Reply-To: <54BFEAA5.8050801@fourthworld.com> References: <54BFEAA5.8050801@fourthworld.com> Message-ID: I tried it on MAc and it's not implemented on that platform. I will add a QCC enhancement request. Meantime, hopefully Trevor will chime in with his external. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Wed, Jan 21, 2015 at 10:06 AM, Richard Gaskin wrote: > Peter Haworth wrote: > > > On Wed, Jan 21, 2015 at 9:15 AM, Matthias Rebbe wrote: > > > >> The release not of LC 4.5 definitely list that experimental feature. > >> http://downloads.livecode.com/livecode/4_5_0/LiveCodeNotes-4_5_0.pdf > >> > > Thanks Matthias. Just read that and unfortunately it says it's only > > implemented on Windows, at least in that release. Maybe it made it > > to Mac in a later release, I guess I'll give it a whirl and see what > > happens. > > Might be useful to drop a request into the RQCC, or see if there's one > there already and bump it. > > Cross-platform parity is a key feature of LiveCode, so if this is working > in Windows now it would be very nice to see this in the Mac menubar and in > Gnome panels. > > > > It sure would be nice if there was a searchable database of all the LC > > release notes :-) > > Somewhat specialized in that most of the items in the Release Notes become > entries in the searchable Dictionary once they move from "experimental" to > a supported implementation. > > And before we go into another 80 replies about how we need more thorough > indexing in the Dictionary, yes, that's in development now, with the hope > of having that in the final release of v8. > > The release notes back to v4.5.0 are available on the Downloads page: > http://downloads.livecode.com/livecode/ > > Anything older than that probably isn't very interesting, in that things > have either been added to the Dictionary by now or dropped altogether. > > Still, if someone wants to take this on maybe it's a good community > project. > > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ambassador at fourthworld.com Wed Jan 21 13:34:58 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 21 Jan 2015 10:34:58 -0800 Subject: Livecode server + NGINX ? In-Reply-To: References: Message-ID: <54BFF152.1060902@fourthworld.com> Robert Brenstein wrote: > On 21.01.2015 at 8:37 Uhr -0800 Richard Gaskin wrote: >> >>A few months ago I was experimenting with multi-processing in >>LiveCode as an alternative to multi-threading. The literature on >>each notes the higher overhead of the former compared to the latter, >>but also that the overhead is not as significant as one might think. >>In many cases multi-processing allows for less complex code than >>multi-threading by virtue of being able to rely on OS partitioning >>of memory and CPU resources rather than having to manage all of that >>internally via threads. >> >>In those early tests I was interested in seeing just how many >>requests I could throw at a single non-threaded LC-based daemon >>listening on port 80. This required a VPS, of course, since shared >>hosts generally don't allow always-on processes. >> > > Would you care to provide more technical details on those tests? I wish it were more interesting, but it was the quickest test I could come up with to begin to measure system load on the server, so it's kinda rudimentary. I used the example chat scripts here for both client and server: Normally all that happens with those scripts is that any string sent to the server is broadcast to each connected client, where the echo is added to a log field. Here I modified the client to add a repeat loop that attempts to continually bombard the server with sent messages as fast as it can up to 5ms between them, while also responding to echos from the server to update the log field. Given the size of the log field, I truncate it to show only the last 1000 or so messages. The three clients used represent a broad spectrum of performance, in an attempt to identify issues known in the gaming world with slow clients: - Slow: Atom 230, 1.6 Ghz, Lubuntu 14.04 LTS - Medium: Core 2 Duo, 2.26 GHz, Mac OS 10.7 - Fast: Haswell G3220, 3.0 GHz, Ubuntu 14.10 The slow Atom-based machine also runs an Apache server with OwnCloud and some custom LiveCode services for my network so throughput is even worse than one might imagine, though I did try to keep the network somewhat quiet during the test. Each test ran for two minutes, with each client sending and receiving messages as fast as they can for the duration of the test. While running, I had terminal logged into the server running top so I could see a profile of the system in near-real-time, watching the LC daemon. Most of the time the server never used more than 25% of CPU, with RAM usually below 45 MB. I did sometimes find the server would freak out with a spike in CPU and an apparent hang, but I found that once I took the slow Atom client off the test performance became reliable again. Given the synchronous nature of the test, server impairment from an unusually slow client is not surprising (and workarounds for handling that the subject of many articles on game server design). After throttling all clients to send at intervals no shorter than about 25 ms, all runs of the test were always completed successfully, with the server able to handle all three clients gracefully with just a slice of CPU time and surprisingly little RAM. I never spent the time to explore ways to mitigate TCP bottlenecks on the server side, though I hope to have time to get back to those experiments in Spring. TCP is generally reliable, but that robustness comes at a significant cost to throughput over UDP. Many large-scale game servers send event frames in UDP for this reason, but at a certain scale they need to go much further to employ action prediction and other exotic solutions to keep up with the traffic. In this test, the results may seem modest: only three clients, and throttled. But a steady stream of traffic - far in excess anything we'd expect in any normal chat context - continually handled by a LiveCode daemon that never maxes the CPU nor even consumes much RAM seems quite promising. Employing multiple worker daemons and making better use of asynchronous methods would likely yield satisfying performance for a wide range of real-time connected apps, all using the humble LiveCode engine we have in our hands right now. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From gcanyon at gmail.com Wed Jan 21 13:54:41 2015 From: gcanyon at gmail.com (Geoff Canyon) Date: Wed, 21 Jan 2015 12:54:41 -0600 Subject: A code style question In-Reply-To: References: <54BE9AFA.9080805@fourthworld.com> Message-ID: I was thinking of doing a switch version, so thanks! On Wed, Jan 21, 2015 at 11:54 AM, Ken Ray wrote: > > local baseID > > > > function baseID newID > > put iff(validID(newID),newID, \ > > iff(validID(baseID), baseID,"this card")) into baseID > > return baseID > > end baseID3 > > Of course you could reduce it one step further: > > function baseID newID > return iff(validID(newID),newID, \ > iff(validID(baseID), baseID,"this card")) > end baseID3 > > I use a similar inline "switch": > > put stsSwitch(the > platform,"MacOS=Finder","Win32=Explorer","*=Desktop") into tReference > > easier/shorter then: > > switch (the platform) > case "MacOS" > put "Finder" into tReference > break > case "Win32" > put "Explorer" into tReference > break > default > put "Desktop" into tReference > break > end switch > > > For anyone interested, here?s the code: > > function stsSwitch > -- does a quick inline switch/case; separate multiple matches with a > comma > -- param 1 is > -- params 2+ is in the form =; if there is a > match to one > -- or more items in , return > -- otherwise empty is returned (unless a matchValue is "*", in which > case return the associated value) > put param(1) into tCheckValue > set the itemDel to "=" > put "" into tDefault > repeat with x = 2 to the paramCount > put param(x) into tCheck > put item 1 of tCheck into tMatch > put item 2 of tCheck into tRetVal > replace "," with "=" in tMatch > if tCheckValue is among the items of tMatch then return tRetVal > if tMatch = "*" then > if tRetVal = "*" then > put tCheckValue into tDefault > else > put tRetVal into tDefault > end if > end if > end repeat > return tDefault > end stsSwitch > > :D > > Ken Ray > Sons of Thunder Software, Inc. > Email: kray at sonsothunder.com > > > Web Site: http://www.sonsothunder.com/ > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From capellan2000 at gmail.com Wed Jan 21 14:42:34 2015 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Wed, 21 Jan 2015 11:42:34 -0800 (PST) Subject: Error playing MP3 on Linux as Videoclips Message-ID: <1421869354334-4688112.post@n4.nabble.com> Hi All, On Ubuntu, Are you seeing an mplayer error while playing mp3 files inside LiveCode? LiveCode 7.0.2 (RC1) in Ubuntu launch mplayer to play sounds and videos. As soon a video or audio stops playing, LiveCode shuts down mplayer, except after playing MP3 media. Everytime that I play a MP3 file using: play vc mymp3file.mp3 mplayer open and play the sound, but after checking Task Manager, mplayer is still open. This only happen after playing mp3 files. Are you seeing this error while playing mp3 files on Ubuntu using LiveCode? Thanks in advance. Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Error-playing-MP3-on-Linux-as-Videoclips-tp4688112.html Sent from the Revolution - User mailing list archive at Nabble.com. From scott at tactilemedia.com Wed Jan 21 14:48:14 2015 From: scott at tactilemedia.com (Scott Rossi) Date: Wed, 21 Jan 2015 11:48:14 -0800 Subject: Fields Have Labels In-Reply-To: References: <54B57124.8030802@fourthworld.com> Message-ID: Going back a few days on this one: > Try this in a new stack with one field. It works: > > set the label of field 1 to "Label Test" > put the label of field 1 I remember discovering this a long time ago, and then remembered why I never use it: the property is not saved. When the stack is closed (not saved in memory) and reopened, the assigned label data is gone. Folks attempting to make use of this might want to double check the behavior on their end. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design From ambassador at fourthworld.com Wed Jan 21 15:36:15 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 21 Jan 2015 12:36:15 -0800 Subject: Error playing MP3 on Linux as Videoclips In-Reply-To: <1421869354334-4688112.post@n4.nabble.com> References: <1421869354334-4688112.post@n4.nabble.com> Message-ID: <54C00DBF.2010707@fourthworld.com> Alejandro Tejada wrote: > On Ubuntu, Are you seeing an mplayer error while > playing mp3 files inside LiveCode? > > LiveCode 7.0.2 (RC1) in Ubuntu launch mplayer > to play sounds and videos. > As soon a video or audio stops playing, LiveCode > shuts down mplayer, except after playing MP3 media. > > Everytime that I play a MP3 file using: > > play vc mymp3file.mp3 > > mplayer open and play the sound, but > after checking Task Manager, mplayer > is still open. This only happen after > playing mp3 files. > > Are you seeing this error while playing mp3 files > on Ubuntu using LiveCode? I haven't tried that specific recipe, but I rarely have good results with multimedia playback in LC, even as all the other playback tools I use in Ubuntu perform marvelously, often handling more formats more gracefully than Mac's QuickTime. Related, I just discovered that merely setting the filename of a player object to an MP3 causes LC to hang: In my dream world every member of the IDE team would be required to spend at least one day each week on Mac, Windows, and Linux, with the remainder spent on whichever system they prefer. Given that one of the strongest selling points of LiveCode is platform independence, I believe this practice would allow platform-specific issues to be identified and resolved much faster than through any other means. And given that issues are generally less expensive to fix the earlier in the process they're discovered, this would likely be very cost-effective as well. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From bogdanoff at me.com Wed Jan 21 16:07:02 2015 From: bogdanoff at me.com (Peter Bogdanoff) Date: Wed, 21 Jan 2015 13:07:02 -0800 Subject: Inspector Issue In-Reply-To: References: Message-ID: <42E3B10D-C758-4643-92F0-A95CC3377EEB@me.com> I reverted back to an earlier version that didn?t show the problem. However, when adding the now missing cards and controls, the problem came back. The missing cards were create anew; controls copied over from the old, weird stack. It does seem to be caused by some object limit that the Inspector can display. The text of the Inspector itself starts being truncated: On some cards I'll see Inspect>Buttons>[then a brief list with the first 4-8 or so buttons] On other cards I see Inspect>Butt [exactly this. (Whose butt, I don?t know. I?m a musician, not a proctologist! ;) ) ] On other cards I can see the whole normal list of buttons, fields, etc. All the versions of LC 6 that I tried show the issue. In LC 7 I don?t see this problem at all with the same stack. It seems to be fixed there. I?m going ahead with the weirdness in my stack and stick with LC 6.1.3. In the future I?m going to go to LC 7 as I require the Unicode, but not yet?the AV foundation player is not fully functional for my requirements, but that?s another story. Peter UCLA On Jan 21, 2015, at 10:08 AM, Geoff Canyon wrote: > Sorry I didn't see this before -- if you're seeing that the problem is now > fixed, then maybe -- maybe -- there was something wrong with the stack > before. If you still see the problem, if you have a large number of > cards/controls, maybe there's some inherent limit in the inspector you're > hitting. Navigator has limits as well, they're just very large. I think in > menus it's something like 300 cards/objects, and in lists I think it's > 3000, or maybe 10,000. Those were set a long time ago because of > performance limitations. At this point I could probably remove them and the > engine/Navigator would likely hold up for much larger counts. > > On Fri, Jan 16, 2015 at 3:14 PM, Peter Bogdanoff wrote: > >> Hi, >> >> I would like some expert advice. >> >> I have a stack that on some of the cards exhibit an issue: When you show >> the Inspector and there click on Inspect>? it doesn?t show all the >> controls. In fact it only shows Inspect>buttons> and then a list of the >> first 7-8 buttons on the card. On the card there are dozens of buttons, >> fields, an image, etc., but the Inspector doesn?t list them. >> >> When I use Geoff Canyon?s Navigator plugin I see all the controls, and >> indeed, all the controls seem to be visible and it all works. I can select >> any control and its properties display in the Inspector. Just that dang >> Inspect> triangle doesn?t show all it should. >> >> This issue occurs on many of the cards of this 3,000 card stack, but not >> all; on many all the controls show properly in the Inspector. This anomaly >> occured recently but doesn?t seem to affect the functionality of the stack. >> I?m using LC 6.3.1, but I also see it when I open that stack in a later >> version of LC. >> >> My question(s): Has anyone seen this before? and is my stack damaged? and >> should I revert to an earlier version? >> >> Peter Bogdanoff >> UCLA >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From capellan2000 at gmail.com Wed Jan 21 16:09:42 2015 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Wed, 21 Jan 2015 13:09:42 -0800 (PST) Subject: Error playing MP3 on Linux as Videoclips In-Reply-To: <54C00DBF.2010707@fourthworld.com> References: <1421869354334-4688112.post@n4.nabble.com> <54C00DBF.2010707@fourthworld.com> Message-ID: <1421874582600-4688116.post@n4.nabble.com> Hi Richard, Richard Gaskin wrote > I haven't tried that specific recipe, but I rarely have good results > with multimedia playback in LC, even as all the other playback tools I > use in Ubuntu perform marvelously, often handling more formats more > gracefully than Mac's QuickTime. > Related, I just discovered that merely setting the filename of a player > object to an MP3 causes LC to hang: > < > http://quality.runrev.com/show_bug.cgi?id=14427 > > Well, looks like sounds in format aiff, au or wav works fine and mplayer actually quits after the sound is done. I will restart again this project from Ubuntu using LC 7.0.2 (RC1): https://drive.google.com/folderview?id=0B9ja3Yvw8cHLc2lVbWduV1VVUDA&usp=sharing Richard Gaskin wrote > In my dream world every member of the IDE team would be required to > spend at least one day each week on Mac, Windows, and Linux, with the > remainder spent on whichever system they prefer. > Given that one of the strongest selling points of LiveCode is platform > independence, I believe this practice would allow platform-specific > issues to be identified and resolved much faster than through any other > means. > And given that issues are generally less expensive to fix the earlier in > the process they're discovered, this would likely be very cost-effective > as well. If I remember correctly, RunRev test LiveCode in Linux using virtual machines. So, maybe they are completely unaware of these bugs. All previous efforts toward 1) automatic testing and 2) benchmark scripts are steps in the right direction. Maybe, just maybe, we could ask each month all users for new ideas and scripts for automated testing and benchmark. Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Error-playing-MP3-on-Linux-as-Videoclips-tp4688112p4688116.html Sent from the Revolution - User mailing list archive at Nabble.com. From bobsneidar at iotecdigital.com Wed Jan 21 18:12:06 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 21 Jan 2015 23:12:06 +0000 Subject: Speaking of sockets... In-Reply-To: References: <7346A689-671A-40E1-9A06-178AD0661E14@iotecdigital.com> Message-ID: <261DE142-6BB1-4C5D-B9DA-BB44855DEFD3@iotecdigital.com> Unplug your network connection and try again. The problem occurs when I cannot connect to the database because of firewall issues at a customer location. Then it takes a full minute at least to timeout before I get control of LC again. But no matter because the open socket method I posted fixes that. Bob S > On Jan 21, 2015, at 09:14 , Dr. Hawkins wrote: > > On Wed, Jan 21, 2015 at 7:34 AM, Bob Sneidar > wrote: > >> Oh good to know. However, I am getting less than a second response time >> for open socket, and I wouldn?t want to set a timeout that low for SQL. >> >> > I'm currently seeing ~250 ms to connect to mySQL on dreamhost . . . > > > -- > Dr. Richard E. Hawkins, Esq. > (702) 508-8462 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bodine at bodinetraininggames.com Wed Jan 21 18:40:16 2015 From: bodine at bodinetraininggames.com (tbodine) Date: Wed, 21 Jan 2015 15:40:16 -0800 (PST) Subject: Error playing MP3 on Linux as Videoclips In-Reply-To: <54C00DBF.2010707@fourthworld.com> References: <1421869354334-4688112.post@n4.nabble.com> <54C00DBF.2010707@fourthworld.com> Message-ID: <1421883616142-4688118.post@n4.nabble.com> Richard Gaskin wrote > I rarely have good results with multimedia playback in LC, even as all the > other playback tools I > use in Ubuntu perform marvelously, often handling more formats more > gracefully than Mac's QuickTime Agreed! I have to say multimedia playback has been quite disappointing in LC. I've done multimedia work for 20 years on Windows and Mac, coming to LC a couple years ago after giving up on Director and Flash. I am very pleased with most aspects of LC, especially the outstanding field control. But multimedia in LC is way behind other tools in both stability and utility. It would be great to see multimedia support get updated to modern standards, because so many apps these days depend on images and sound to make a strong impression. Will we see and hear that in 2015? Tom Bodine -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Error-playing-MP3-on-Linux-as-Videoclips-tp4688112p4688118.html Sent from the Revolution - User mailing list archive at Nabble.com. From pete at lcsql.com Wed Jan 21 19:00:46 2015 From: pete at lcsql.com (Peter Haworth) Date: Wed, 21 Jan 2015 16:00:46 -0800 Subject: A Got-Ya In-Reply-To: References: <000c01d034dc$cc4ea520$64ebef60$@net> Message-ID: On Tue, Jan 20, 2015 at 6:14 PM, Geoff Canyon wrote: > 1. It's almost impossible to catch conflicts with custom properties. They > don't have to be mentioned by name in a script because: > But doesn't the presence of "the" and "of " indicate that the reference is to a (custom) property not a variable? Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From capellan2000 at gmail.com Wed Jan 21 19:34:37 2015 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Wed, 21 Jan 2015 16:34:37 -0800 (PST) Subject: Error playing MP3 on Linux as Videoclips In-Reply-To: <1421883616142-4688118.post@n4.nabble.com> References: <1421869354334-4688112.post@n4.nabble.com> <54C00DBF.2010707@fourthworld.com> <1421883616142-4688118.post@n4.nabble.com> Message-ID: <1421886877466-4688120.post@n4.nabble.com> Hi Tom, tbodine wrote > [snip] I have to say multimedia playback has been > quite disappointing in LC. I've done multimedia work > for 20 years on Windows and Mac, coming to LC a > couple years ago after giving up on Director and Flash. > I am very pleased with most aspects of LC, especially > the outstanding field control. But multimedia in LC is > way behind other tools in both stability and utility. > It would be great to see multimedia support get > updated to modern standards, because so many > apps these days depend on images and sound > to make a strong impression. > > Will we see and hear that in 2015? My vote for multimedia playback goes to... WEBM http://www.webmproject.org/about/faq/ Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Error-playing-MP3-on-Linux-as-Videoclips-tp4688112p4688120.html Sent from the Revolution - User mailing list archive at Nabble.com. From dochawk at gmail.com Wed Jan 21 19:56:50 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Wed, 21 Jan 2015 16:56:50 -0800 Subject: A Got-Ya In-Reply-To: References: <000c01d034dc$cc4ea520$64ebef60$@net> Message-ID: On Wed, Jan 21, 2015 at 4:00 PM, Peter Haworth wrote: > But doesn't the presence of "the" and "of " indicate that > the reference is to a (custom) property not a variable? > Not necessarily. repeat for each word theProp in "a b c" set the theProp of me to empty end repeat It's necessary to be able to refer to the property with a variable. The problem is really that if you try to say set the "thisProp" of me to "that? then "thisProp" does not resolve to the quoted contents. If memory serves, it's just an illegal value for a property name because it starts with a quote. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From ambassador at fourthworld.com Wed Jan 21 20:23:05 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 21 Jan 2015 17:23:05 -0800 Subject: Error playing MP3 on Linux as Videoclips In-Reply-To: <1421883616142-4688118.post@n4.nabble.com> References: <1421883616142-4688118.post@n4.nabble.com> Message-ID: <54C050F9.809@fourthworld.com> Tom Bodine wrote: > It would be great to see multimedia support get updated to modern standards, > because so many apps these days depend on images and sound to make a strong > impression. > > Will we see and hear that in 2015? That's the plan, listed on the Road Map under the new Player object: http://livecode.com/community/roadmap/ -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From michaell at unimelb.edu.au Thu Jan 22 01:05:37 2015 From: michaell at unimelb.edu.au (Michael Julian Lew) Date: Thu, 22 Jan 2015 06:05:37 +0000 Subject: Getting the scroll and clickloc of a browser object Message-ID: <8FC5D5A2-C404-44FA-A9B0-EBB3D59CDFFA@unimelb.edu.au> I'm playing with displaying pdf notes in a browser object and I would like to respond to the user clicking on text in the pdf and to the scroll reaching certain points. Is there any way to know ow far a pdf file in a browser has been scrolled? Any way to know what might have been clicked? Michael From richmondmathewson at gmail.com Thu Jan 22 02:32:43 2015 From: richmondmathewson at gmail.com (Richmond) Date: Thu, 22 Jan 2015 09:32:43 +0200 Subject: Error playing MP3 on Linux as Videoclips In-Reply-To: <54C050F9.809@fourthworld.com> References: <1421883616142-4688118.post@n4.nabble.com> <54C050F9.809@fourthworld.com> Message-ID: <54C0A79B.1020203@gmail.com> On 22/01/15 03:23, Richard Gaskin wrote: > Tom Bodine wrote: > >> It would be great to see multimedia support get updated to modern >> standards, >> because so many apps these days depend on images and sound to make a >> strong >> impression. >> >> Will we see and hear that in 2015? > > That's the plan, listed on the Road Map under the new Player object: > http://livecode.com/community/roadmap/ > Um . . . time-frame, Please. Richmond. From rene.micout at numericable.com Thu Jan 22 03:08:16 2015 From: rene.micout at numericable.com (=?utf-8?Q?Ren=C3=A9_Micout?=) Date: Thu, 22 Jan 2015 09:08:16 +0100 Subject: A code style question In-Reply-To: References: <54BE9AFA.9080805@fourthworld.com> Message-ID: <2C2984B0-10C6-42CB-9421-E2E4E20438CB@numericable.com> > Le 21 janv. 2015 ? 18:54, Ken Ray a ?crit : > > easier/shorter then: > > switch (the platform) > case "MacOS" > put "Finder" into tReference > break > case "Win32" > put "Explorer" into tReference > break > default > put "Desktop" into tReference > break > end switch Easier (clear) / shorter : switch (the platform) case ?MacOS? ; put "Finder" into tReference ; break case ?Win32? ; put "Explorer" into tReference ; break default ; put "Desktop" into tReference ; break end switch ;-) Ren? From dick.kriesel at mail.com Thu Jan 22 04:48:38 2015 From: dick.kriesel at mail.com (Dick Kriesel) Date: Thu, 22 Jan 2015 01:48:38 -0800 Subject: A code style question In-Reply-To: References: <54BE9AFA.9080805@fourthworld.com> Message-ID: > On Jan 21, 2015, at 9:54 AM, Ken Ray wrote: > > I use a similar inline "switch": > > put stsSwitch(the platform,"MacOS=Finder","Win32=Explorer","*=Desktop") into tReference One line can accomplish that even without invoking a custom function: put item itemOffset( the platform, "MacOS,Win32" ) + 1 of "Desktop,Finder,Explorer" into tReference -- Dick From dave at applicationinsight.com Thu Jan 22 05:17:42 2015 From: dave at applicationinsight.com (Dave Kilroy) Date: Thu, 22 Jan 2015 02:17:42 -0800 (PST) Subject: Windows 10 and Spartan Message-ID: <1421921862973-4688127.post@n4.nabble.com> I've been remiss about digging into the details of Windows 10 (and spartan) - for those who have been keeping more up to date with Windows developments - could you let us know if there any implications for LiveCode developers in their proposed changes? Thanks! Dave ----- "Some are born coders, some achieve coding, and some have coding thrust upon them." - William Shakespeare & Hugh Senior -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Windows-10-and-Spartan-tp4688127.html Sent from the Revolution - User mailing list archive at Nabble.com. From revolution at derbrill.de Thu Jan 22 05:42:12 2015 From: revolution at derbrill.de (Malte Brill) Date: Thu, 22 Jan 2015 11:42:12 +0100 Subject: extracting the thumbnail from digital photos? In-Reply-To: References: Message-ID: <03FCA348-0FC2-4EB7-A3C8-F9DB64B01897@derbrill.de> Hi Al! Thanks so much for taking the time to look into this and sorry for my late reply. I was on the road without any access to the interwebs the last 3 days. Looking at your script it makes a lot of sense, however, I can not get it to work if the images I have here. The resulting jpeg Data is 2 bytes long, so I do not get a no thumbnail answer, however, I not get a valid thumbnail either. Using an exif viewer I see that a thumbnail is embedded. Migth the SOI EOI markers be different depending on camera vendor?? If so, I will have to give up this idea. Not sure why it fails otherwise. All the best and thanks again, Malte From lists at mangomultimedia.com Thu Jan 22 09:20:19 2015 From: lists at mangomultimedia.com (Trevor DeVore) Date: Thu, 22 Jan 2015 09:20:19 -0500 Subject: Mac Menu Bar Apps In-Reply-To: <8F66E15A-AB1C-48D2-8919-252E18773271@m-r-d.de> References: <8F66E15A-AB1C-48D2-8919-252E18773271@m-r-d.de> Message-ID: On Wednesday, January 21, 2015, Matthias Rebbe | M-R-D < matthias_livecode_150811 at m-r-d.de> wrote: > Hi Pete, > > yes, but only with an external. > > Trevor Devore created such an external. > > ... > > Maybe you ask him, if he is willing to share it with you. > But i am pretty sure, he will do. > > I asked also and got it some months ago. > Matthias, I'm traveling this week. Would you be able to post what I sent you for Peter to download? -- Trevor DeVore ScreenSteps From matthias_livecode_150811 at m-r-d.de Thu Jan 22 09:40:18 2015 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe | M-R-D) Date: Thu, 22 Jan 2015 15:40:18 +0100 Subject: Mac Menu Bar Apps In-Reply-To: References: <8F66E15A-AB1C-48D2-8919-252E18773271@m-r-d.de> Message-ID: <6506ADAC-53B3-4DD6-A802-7A6E72477919@m-r-d.de> Of course. I?ve uploaded it now to my dropbox. https://dl.dropbox.com/s/o5zfiiqg4q8d163/index.html > Am 22.01.2015 um 15:20 schrieb Trevor DeVore : > > Matthias, > > I'm traveling this week. Would you be able to post what I sent you for > Peter to download? > > -- > Trevor DeVore > ScreenSteps > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From prothero at earthednet.org Thu Jan 22 12:33:34 2015 From: prothero at earthednet.org (William Prothero) Date: Thu, 22 Jan 2015 09:33:34 -0800 Subject: Posting to php problem Message-ID: <344794E7-1D2A-475D-8100-3EFC907F3A43@earthednet.org> Folks: This simple code inexplicably stopped working. LC 7.0.1 and 7.0.2 (rc1), Yosemite on Mac. I?m setting up my mySQL database code and accessing the db?s thru php. This code worked at first, then after I did a bit of changing, it stopped. Reverting to the initial working code didn?t work. I get the ?Query: ? part of the echo statement, but the $query part is blank. What the hell? This should be trivial. What am I missing? Livecode script (almost verbatim from the docs): on mouseUp put empty into tFormData put "http://earthednet.org/cgiphp/dbtest2.php" into tUrl put "This is a test" into tSendContents if libUrlMultipartFormData(tFormData, "fullname", tSendContents) is not empty then answer it ##error else set the httpHeaders to line 1 of tFormData post line 2 to -1 of tFormData to url tUrl -- ## check the result, etc., here put the result into tRes put it into theReturnedData set the httpHeaders to empty end if put theReturnedData into fld "nameList" end mouseUp Here?s the php code: I get the ?Query: ? part of the response, but not the input data in the POST. From prothero at earthednet.org Thu Jan 22 12:42:57 2015 From: prothero at earthednet.org (William Prothero) Date: Thu, 22 Jan 2015 09:42:57 -0800 Subject: Posting to php problem In-Reply-To: <344794E7-1D2A-475D-8100-3EFC907F3A43@earthednet.org> References: <344794E7-1D2A-475D-8100-3EFC907F3A43@earthednet.org> Message-ID: Dang! Just solved it. The syntax for getting the $_POST variable in php is: $_POST[?fullame?] the underscore was the problem. Regards, Bill > On Jan 22, 2015, at 9:33 AM, William Prothero wrote: > > Folks: > This simple code inexplicably stopped working. LC 7.0.1 and 7.0.2 (rc1), Yosemite on Mac. I?m setting up my mySQL database code and accessing the db?s thru php. This code worked at first, then after I did a bit of changing, it stopped. Reverting to the initial working code didn?t work. > > I get the ?Query: ? part of the echo statement, but the $query part is blank. > > What the hell? This should be trivial. What am I missing? > > Livecode script (almost verbatim from the docs): > > on mouseUp > put empty into tFormData > put "http://earthednet.org/cgiphp/dbtest2.php" into tUrl > put "This is a test" into tSendContents > if libUrlMultipartFormData(tFormData, "fullname", tSendContents) is not empty then > answer it ##error > else > set the httpHeaders to line 1 of tFormData > post line 2 to -1 of tFormData to url tUrl > -- ## check the result, etc., here > put the result into tRes > put it into theReturnedData > set the httpHeaders to empty > end if > put theReturnedData into fld "nameList" > end mouseUp > > > Here?s the php code: I get the ?Query: ? part of the response, but not the input data in the POST. > $query = $_POST_["fullname"]; > echo "Query: ".$query; > ?> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From mikedoub at gmail.com Thu Jan 22 12:45:26 2015 From: mikedoub at gmail.com (Michael Doub) Date: Thu, 22 Jan 2015 12:45:26 -0500 Subject: extracting the thumbnail from digital photos? In-Reply-To: <1421780253327-4688058.post@n4.nabble.com> References: <1421736617180-4688040.post@n4.nabble.com> <1421780253327-4688058.post@n4.nabble.com> Message-ID: <54C13736.2090400@gmail.com> Alejandro, I have been playing with your script. I don't understand why I am getting the same value returned from: put offset(tStart,temp1) into tThumbstart put offset(tEnd,temp1) into tThumbEnd In my testing tThumbstart and tThumbEnd are equal which does not make sense to me since tStart and tEnd are different. I am using LiveCode 6.6.4. Any ideas why I am seeing this odd behavour? -= Mike On 1/20/15 1:57 PM, Alejandro Tejada wrote: > repeat until offset(tEnd,temp1) = 0 From pete at lcsql.com Thu Jan 22 13:07:45 2015 From: pete at lcsql.com (Peter Haworth) Date: Thu, 22 Jan 2015 10:07:45 -0800 Subject: A Got-Ya In-Reply-To: References: <000c01d034dc$cc4ea520$64ebef60$@net> Message-ID: On Wed, Jan 21, 2015 at 4:56 PM, Dr. Hawkins wrote: > repeat for each word theProp in "a b c" > set the theProp of me to empty > end repeat > That's correct, but the contents of theProp variable should still be interpreted as a custom property name, not a variable because of "the" and "of me". The original problem was that if, eg, a is defined as a local variable and the command in the repeat statement is "get theProp of me", you get the contents of the local variable a, not the custom property a. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From gcanyon at gmail.com Thu Jan 22 13:35:53 2015 From: gcanyon at gmail.com (Geoff Canyon) Date: Thu, 22 Jan 2015 12:35:53 -0600 Subject: A Got-Ya In-Reply-To: References: <000c01d034dc$cc4ea520$64ebef60$@net> Message-ID: On Wed, Jan 21, 2015 at 6:00 PM, Peter Haworth wrote: > doesn't the presence of "the" and "of " indicate that > the reference is to a (custom) property not a variable > You can store the name of a custom property in a variable, even one with the same name as some other custom property. So there's no question that you're accessing a custom property, because of the "the" as you say, but here the issue was over which custom property was being returned. I'm saying that since it's legitimate and useful to be able to do this, there's no good way for the compiler to realize when you're doing it by mistake. From dave at applicationinsight.com Thu Jan 22 13:50:47 2015 From: dave at applicationinsight.com (Dave Kilroy) Date: Thu, 22 Jan 2015 10:50:47 -0800 (PST) Subject: Windows 10 and Spartan In-Reply-To: <1421921862973-4688127.post@n4.nabble.com> References: <1421921862973-4688127.post@n4.nabble.com> Message-ID: <1421952647029-4688139.post@n4.nabble.com> Hi Dave Because tonight's "Create it with LiveCode" webinar tanked (GoToWebinar's issue, not RunRev's) I have some spare time so I got active and after a bit of googling I found this https://www.thurrott.com/windows/windows-10/470/maybe-windows-10s-spartan-isnt-going-suck In short it seems that Spartan will not be using webkit or blink but will be staying with trident (apparently this is the engine used to run IE - I never knew that!) - BUT they will be forking it and spartan will not have compatibility issues trying to keep legacy IE versions going - SO it may be that spartan could end up as a real contender along with Chrome, Firefox and Safari... Bye! Dave ----- "Some are born coders, some achieve coding, and some have coding thrust upon them." - William Shakespeare & Hugh Senior -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Windows-10-and-Spartan-tp4688127p4688139.html Sent from the Revolution - User mailing list archive at Nabble.com. From gerry.orkin at gmail.com Thu Jan 22 14:17:04 2015 From: gerry.orkin at gmail.com (Gerry) Date: Fri, 23 Jan 2015 06:17:04 +1100 Subject: Posting to php problem In-Reply-To: <344794E7-1D2A-475D-8100-3EFC907F3A43@earthednet.org> References: <344794E7-1D2A-475D-8100-3EFC907F3A43@earthednet.org> Message-ID: <563BC660-718E-488C-A544-3359F317407C@gmail.com> There's a httpHeaders bug in recent versions of LiveCode. Andre Garzia has been having problems with it in his Facebook lib - perhaps he has a workround? Gerry Sent from my iPhone > On 23 Jan 2015, at 4:33 am, William Prothero wrote: > > httpHeaders From benr_mc at cogapp.com Thu Jan 22 14:42:20 2015 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Thu, 22 Jan 2015 19:42:20 +0000 Subject: A code style question In-Reply-To: References: <54BE9AFA.9080805@fourthworld.com> <54BF07E3.4080506@hyperactivesw.com> <54BFC27F.2010501@cogapp.com> Message-ID: <54C1529C.6030809@cogapp.com> On 21/01/2015 15:53, Geoff Canyon wrote: > the obvious drawback of the way it is now is that both outcomes have > to be evaluated, where in an if statement, obviously, only one of them is. True, but (coding style preference) I tend to use it pretty much only for constants. If there's a complex expression in there, I prefer to split it out onto lines where there's more whitespace around the expressions to help future-me comprehend the code! Of course there's a speed penalty to using a function in this way (though there wouldn't be if it was built in*) - generally I'm using it to make the code more readable, to avoid the eye+mind tripping over a big expression that's only doing a simple thing, when it will be more comprehensible as e.g. set the spotcolour to ifte(status="good","green","red") To my mind, that makes it more obvious how limited this issue is - I can quickly see that this is just about setting red or green according to the status - whereas the five line if status = "good" then set the spotcolour to "green" else set the spotcolour to "red" end if forces me to read it more carefully to check whether there are other actions being taken depending on the condition, whether it's the same property being set in both, etc. Ben *Sorry, I've only just realised as I was about to press send that the point you were making was that if it was built-in, then it also wouldn't need to evaluate both outcomes. Good point - though I'd personally still tend to restrict the use to constants or very simple expressions. From benr_mc at cogapp.com Thu Jan 22 15:12:22 2015 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Thu, 22 Jan 2015 20:12:22 +0000 Subject: [Probably OT] Strange loss of ability to do SSL (through curl) In-Reply-To: References: <54BEA57C.1010906@cogapp.com> <357A5456-5C96-4C86-9F32-1C97500B2DF2@iotecdigital.com> <54BFC31C.3090408@cogapp.com> <22129A18-0282-4165-B7B5-A9116E8943AA@iotecdigital.com> Message-ID: <54C159A6.6020309@cogapp.com> Thanks Mike and Peter, that's indeed got me to the next stage. Using this technique I can get curl to work correctly (and by using env/printenv as the command, I can see the differences in the environment) - as you suspected, the difference is in PATH. Now the next question (which brings it back on topic): given that I can now get curl-through-shell to work this way; how can I get LC's native URL functions to work? TIA, Ben On 21/01/2015 18:05, Mike Bonner wrote: > yeah, same thing as source, I forgot you could . it > > On Wed, Jan 21, 2015 at 10:06 AM, Peter Haworth wrote: > >> Courtesy of Dariusz Miedzianogora a while back on this list: >> >> >> "You could try the following command in the shell call: >> >> . ~/.profile; >> >> The first dot (.) executes the next file. The ~ (tilde) is a shortcut to >> the home directory of the user. Since .profile is a shell script that is >> executed when the user logs in, this will rerun the .profile script in the >> local shell, and you should get the updated path. The semi-colon means that >> the command continues, so you can then execute your shell command in the >> process instance (and thus the shell instance) that you just refreshed. " >> >> >> On Jan 21, 2015 8:42 AM, "Mike Bonner" wrote: >> >>> You might check to see the environment variables from the command line, >> and >>> via lc shell, and do a comparison. If I recall correctly, lc shell >>> environment and the environment you get in a terminal or console can >>> differ. If the lc shell is using bash, and you know which files are >>> processed when a terminal session starts, you can "source" them. Source >> is >>> a built in command that processes the file you give it. So if you have a >>> file .bashrc in your home directory that has the required env variables >> set >>> up you could get shell("source /path/to/my/home/.bashrc; the rest of your >>> commands here" ) >>> >>> If you can figure out what env variables are missing, but required for >> what >>> you want to do, you can probably include them at the top of your curl ssl >>> script file >>> >>> On Wed, Jan 21, 2015 at 8:39 AM, Bob Sneidar < >> bobsneidar at iotecdigital.com> >>> wrote: >>> >>>> Use the sudo command. Sudo allows an administrator account to >> masquerade >>>> as root. You will need to provide the current login password when you >> do >>>> this. I have successfully put the password as a second line in a >> terminal >>>> command. The current login must be an administrator. >>>> >>>> Bob S >>>> >>>> >>>>> On Jan 21, 2015, at 07:17 , Ben Rubinstein >> wrote: >>>>> >>>>> Bob, >>>>> >>>>> Thanks for replying - I suspect you're right as to the immediate >> cause >>>> and where something has changed (it might just be about a new >>> certificate, >>>> for example). >>>>> >>>>> However, my real question is why it works in terminal but not using >> LC >>>> "shell"; although calling the same service does work via LC "shell" on >> my >>>> dev machine (including as a standalone). >>>>> >>>>> Where can one affect the context in which a shell command is >> executing? >>>>> >>>>> thanks, >>>>> >>>>> Ben >>>>> >>>>> On 20/01/2015 19:12, Bob Sneidar wrote: >>>>>> I suspect whatever system you are connecting to has modified in some >>>> way how it encrypts data using SSL. Sounds crazy, but Microsoft >> recently >>>> did something to their TLS in their cloud offerings that summarily >>>> prevented an entire series of Konica brand copiers from sending email >>>> through Exchange Online. Other series Konicas were fine, and other >>>> manufacturers didn?t seem to have a problem either. I was the only one >>>> saying Microsoft had made changes to their TLS. No one would listen, >>> citing >>>> all the other copiers that still worked. >>>>>> >>>>>> Finally Konica released a bulletin telling us to install special >>>> firmware and make some changes in the security settings on the affected >>>> machines. What settings you ask? Why, the TLS settings of course! >>>>>> >>>>>> Bob S >>>>>> >>>>>> >>>>>>> On Jan 20, 2015, at 10:59 , Ben Rubinstein >>> wrote: >>>>>>> >>>>>>> An app built in LC, sitting on an old box (PPC Mac Mini running >>>> 10.4.11) has for several years happily been running a few times a day >> to >>>> perform a batch job involving retrieve some data from a remote system, >>>> processing it, and pushing a report to a new location. >>>>>>> >>>>>>> Recently, it's not been updating correctly, and investigation has >>>> shown that the cause is a failure to retrieve the remote data. >>>>>>> >>>>>>> The remote system (a third-party SaaS product) has a REST >> interface, >>>> accessed with simple basic authentication over HTTPS. I'm not aware >> that >>>> anything has changed in their API recently. >>>>>>> >>>>>>> When I first wrote this app, I found that LC didn't correctly deal >>>> with the SSL portion (I forget the details); so I recoded it to use the >>>> shell function to invoke curl to retrieve each element. >>>>>>> >>>>>>> This has worked fine for a long time. But now the shell command >> is >>>> returning code 35, which according to man curl is: >>>>>>> 35 SSL connect error. The SSL handshaking failed. >>>>>>> >>>>>>> So the weird thing is: >>>>>>> - if I run this app on my dev machine (Intel Mac running 10.8.5), >> it >>>> works fine, happily invoking curl and getting the result >>>>>>> - if I run the curl command in Terminal on the target machine, it >>>> works fine and retrieves the data >>>>>>> - if I create a shell script to run the curl command on the target >>>> machine, and invoke that shell script in Terminal, it works fine and >>>> retrieves the data >>>>>>> - if I modify the app to use 'shell' to run that shell script, >>> instead >>>> of calling curl directly, it fails with code 35 again. >>>>>>> >>>>>>> So curl, and shell, are happy on that machine; but using shell in >> an >>>> LC app to either invoke curl directly, or run a batch script which >>> invokes >>>> curl, makes SSL fail. >>>>>>> >>>>>>> I've marked this possibly OT because I don't think it's necessarily >>> an >>>> LC problem. I get the same result with a version of the app built in >>> 2011 >>>> from LC 4.6.4 as with one built now with LC 6.5.2. But then again, I'm >>> not >>>> aware that anything has changed on the machine where this runs. >>>>>>> >>>>>>> Something must have changed; my guess is that it is something in >> the >>>> setup of the remote service. But the nature of that change doesn't >>> disturb >>>> curl or shell running under Terminal on my target machine; nor when >>> invoked >>>> from LC on my dev machine. >>>>>>> >>>>>>> I'm guessing it must be something to do with the environment in >> which >>>> the shell command operates when invoked from LC, as opposed to >> launching >>> a >>>> terminal window. This goes considerably outside my knowledge area, so >>> I'm >>>> appealing for suggestions as to where to investigate... >>>>>>> >>>>>>> TIA >>>>>>> >>>>>>> Ben From prothero at earthednet.org Thu Jan 22 16:25:13 2015 From: prothero at earthednet.org (William Prothero) Date: Thu, 22 Jan 2015 13:25:13 -0800 Subject: Posting to php problem In-Reply-To: <563BC660-718E-488C-A544-3359F317407C@gmail.com> References: <344794E7-1D2A-475D-8100-3EFC907F3A43@earthednet.org> <563BC660-718E-488C-A544-3359F317407C@gmail.com> Message-ID: Gerry: It seems to be working for me now, though in LC 7.0.1 and 7.0.2. Now I?m thrashing through the permissions forest to get access to my db. Regards, Bill > On Jan 22, 2015, at 11:17 AM, Gerry wrote: > > There's a httpHeaders bug in recent versions of LiveCode. Andre Garzia has been having problems with it in his Facebook lib - perhaps he has a workround? > > Gerry > > Sent from my iPhone > >> On 23 Jan 2015, at 4:33 am, William Prothero wrote: >> >> httpHeaders > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dochawk at gmail.com Thu Jan 22 17:48:00 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Thu, 22 Jan 2015 14:48:00 -0800 Subject: A Got-Ya In-Reply-To: References: <000c01d034dc$cc4ea520$64ebef60$@net> Message-ID: On Thu, Jan 22, 2015 at 10:07 AM, Peter Haworth wrote: > On Wed, Jan 21, 2015 at 4:56 PM, Dr. Hawkins wrote: > > > repeat for each word theProp in "a b c" > > set the theProp of me to empty > > end repeat > > > > That's correct, but the contents of theProp variable should still be > interpreted as a custom property name, not a variable because of "the" and > "of me". > But how? That would limit custom properties to string literals, and be a different syntax than the rest of livecode. The oddity/inconsistency here is the inability to force it to be a literal with quotes. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From gcanyon at gmail.com Thu Jan 22 17:49:34 2015 From: gcanyon at gmail.com (Geoff Canyon) Date: Thu, 22 Jan 2015 16:49:34 -0600 Subject: A code style question In-Reply-To: <54C1529C.6030809@cogapp.com> References: <54BE9AFA.9080805@fourthworld.com> <54BF07E3.4080506@hyperactivesw.com> <54BFC27F.2010501@cogapp.com> <54C1529C.6030809@cogapp.com> Message-ID: On Thu, Jan 22, 2015 at 1:42 PM, Ben Rubinstein wrote: > Sorry, I've only just realised as I was about to press send that the point > you were making was that if it was built-in, then it also wouldn't need to > evaluate both outcomes. Good point - though I'd personally still tend to > restrict the use to constants or very simple expressions. Agreed that there's the potential for complexity abuse for something like this. The evaluation aspect could come up even in simple situations like: set the left of to iff(exists(),the left of ,) From bonnmike at gmail.com Thu Jan 22 18:07:41 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Thu, 22 Jan 2015 16:07:41 -0700 Subject: [Probably OT] Strange loss of ability to do SSL (through curl) In-Reply-To: References: <54BEA57C.1010906@cogapp.com> <357A5456-5C96-4C86-9F32-1C97500B2DF2@iotecdigital.com> <54BFC31C.3090408@cogapp.com> <22129A18-0282-4165-B7B5-A9116E8943AA@iotecdigital.com> <54C159A6.6020309@cogapp.com> Message-ID: I've never done it, but think i've seen that you can get around issues with ssl stuff by setting liburlsslverification to false. If I understand correctly (always in doubt) you'll still end up with an ssl connection, but if the cert is expired, or off domain or something of that nature, the connection will still work since verification is ignored. No clue about the security risks of this, though if you control both ends of the connect its probably fine. If its NOT fine, you have more things to worry about than just the ssl. From jacque at hyperactivesw.com Thu Jan 22 22:26:16 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 22 Jan 2015 21:26:16 -0600 Subject: Duplicate simultaneous calls to same handler Message-ID: <54C1BF58.2030706@hyperactivesw.com> Suppose I have a long handler that includes a few "wait with messages" so that users can continue interacting with the stack while it runs. The user does something that calls the long handler while it is still running from a previous instance. Assume there is no flag in the script to prevent that. Does the engine queue the second call until the long handler finishes, and then send the message from the second call (serial responses)? Or does the engine run two instances of the long handler simultaneously? If so, what happens to the values of the variables? Or something else? I've never allowed this to happen before but I find myself in a position where simultaneous calls would be the best way to handle things. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From peterwawood at gmail.com Thu Jan 22 23:42:44 2015 From: peterwawood at gmail.com (Peter W A Wood) Date: Fri, 23 Jan 2015 12:42:44 +0800 Subject: Duplicate simultaneous calls to same handler In-Reply-To: <54C1BF58.2030706@hyperactivesw.com> References: <54C1BF58.2030706@hyperactivesw.com> Message-ID: <61F3D757-D37E-4E3E-9263-A99F2818CEDB@gmail.com> Jacque I believe that the engine can start processing the second call before the first is finished after I did a little experiment: One card, button1, button2 and a field Both buttons with this script: on mouseUp oneOrTwo end mouseUp A card script with on oneOrTwo put "one" & return after Field "Field" wait 50 with messages put "two" & return after Field "Field" end oneOrTwo Clicking on the buttons in quick succession gives one, one, two, two. I found out that you don?t even need two buttons. Hitting one button twice quickly will give the same effect. Regards Peter > On 23 Jan 2015, at 11:26, J. Landman Gay wrote: > > Suppose I have a long handler that includes a few "wait with messages" so that users can continue interacting with the stack while it runs. The user does something that calls the long handler while it is still running from a previous instance. Assume there is no flag in the script to prevent that. > > Does the engine queue the second call until the long handler finishes, and then send the message from the second call (serial responses)? > > Or does the engine run two instances of the long handler simultaneously? If so, what happens to the values of the variables? > > Or something else? > > I've never allowed this to happen before but I find myself in a position where simultaneous calls would be the best way to handle things. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From mwieder at ahsoftware.net Fri Jan 23 00:45:41 2015 From: mwieder at ahsoftware.net (Mark Wieder) Date: Thu, 22 Jan 2015 21:45:41 -0800 Subject: Duplicate simultaneous calls to same handler In-Reply-To: <54C1BF58.2030706@hyperactivesw.com> References: <54C1BF58.2030706@hyperactivesw.com> Message-ID: <131195899928.20150122214541@ahsoftware.net> Jacque- Thursday, January 22, 2015, 7:26:16 PM, you wrote: > Does the engine queue the second call until the long handler finishes, Every "wait with messages" call will yield time to the system to allow other tasks to continue. > and then send the message from the second call (serial responses)? > Or does the engine run two instances of the long handler simultaneously? > If so, what happens to the values of the variables? Google idempotent. > Or something else? > I've never allowed this to happen before but I find myself in a position > where simultaneous calls would be the best way to handle things. Well, you won't get simultaneous without threading, but yielding to messages is as close as we're gonna get. -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From mwieder at ahsoftware.net Fri Jan 23 00:58:41 2015 From: mwieder at ahsoftware.net (Mark Wieder) Date: Thu, 22 Jan 2015 21:58:41 -0800 Subject: Duplicate simultaneous calls to same handler In-Reply-To: <131195899928.20150122214541@ahsoftware.net> References: <54C1BF58.2030706@hyperactivesw.com> <131195899928.20150122214541@ahsoftware.net> Message-ID: <131196679383.20150122215841@ahsoftware.net> Jacque- >> If so, what happens to the values of the variables? > Google idempotent. Oh, all right. Each invocation of a function gets its own set of local variables. Script local variables are in a shared common pool. Changing them from within a function is commonly referred to as a side effect. If you use globals... don't use globals. -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From peterwawood at gmail.com Fri Jan 23 01:13:46 2015 From: peterwawood at gmail.com (Peter W A Wood) Date: Fri, 23 Jan 2015 14:13:46 +0800 Subject: Duplicate simultaneous calls to same handler In-Reply-To: <61F3D757-D37E-4E3E-9263-A99F2818CEDB@gmail.com> References: <54C1BF58.2030706@hyperactivesw.com> <61F3D757-D37E-4E3E-9263-A99F2818CEDB@gmail.com> Message-ID: I ?improved? my script just to check that each time the handler is called it still gets its own local variables: on oneOrTwo local tCount add 1 to tCount put "one" && tCount & return after Field "Field" wait 50 with messages put "two" && tCount & return after Field "Field" end oneOrTwo As you would expect, if you make tCount script local rather than handler local, it is ?shared? between the ?pseudo-simultaneously? running handlers. Regards Peter > On 23 Jan 2015, at 12:42, Peter W A Wood wrote: > > Jacque > > I believe that the engine can start processing the second call before the first is finished after I did a little experiment: > > One card, button1, button2 and a field > > Both buttons with this script: > > on mouseUp > oneOrTwo > end mouseUp > > A card script with > > on oneOrTwo > put "one" & return after Field "Field" > wait 50 with messages > put "two" & return after Field "Field" > end oneOrTwo > > Clicking on the buttons in quick succession gives one, one, two, two. > > I found out that you don?t even need two buttons. Hitting one button twice quickly will give the same effect. > > Regards > > Peter > >> On 23 Jan 2015, at 11:26, J. Landman Gay wrote: >> >> Suppose I have a long handler that includes a few "wait with messages" so that users can continue interacting with the stack while it runs. The user does something that calls the long handler while it is still running from a previous instance. Assume there is no flag in the script to prevent that. >> >> Does the engine queue the second call until the long handler finishes, and then send the message from the second call (serial responses)? >> >> Or does the engine run two instances of the long handler simultaneously? If so, what happens to the values of the variables? >> >> Or something else? >> >> I've never allowed this to happen before but I find myself in a position where simultaneous calls would be the best way to handle things. >> >> -- >> Jacqueline Landman Gay | jacque at hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > From phil at liverpool.ac.uk Fri Jan 23 03:14:24 2015 From: phil at liverpool.ac.uk (Phil Jimmieson) Date: Fri, 23 Jan 2015 08:14:24 +0000 Subject: Duplicate simultaneous calls to same handler In-Reply-To: <61F3D757-D37E-4E3E-9263-A99F2818CEDB@gmail.com> References: <54C1BF58.2030706@hyperactivesw.com> <61F3D757-D37E-4E3E-9263-A99F2818CEDB@gmail.com> Message-ID: On 23 Jan 2015, at 04:42, Peter W A Wood wrote: > > I found out that you don?t even need two buttons. Hitting one button twice quickly will give the same effect. > I see this problem with one of my large LiveCode projects, but particularly on Windows systems. Some users double-click everything and sometimes this invokes the button script twice - which leads to all kinds of problems. I've had to set a flag or disable the button as the first action (and if you do the latter it used to stop the debugger - it wouldn't debug the script of what had effectively become a disabled button?). > Regards > > Peter > >> On 23 Jan 2015, at 11:26, J. Landman Gay wrote: >> >> Suppose I have a long handler that includes a few "wait with messages" so that users can continue interacting with the stack while it runs. The user does something that calls the long handler while it is still running from a previous instance. Assume there is no flag in the script to prevent that. >> >> Does the engine queue the second call until the long handler finishes, and then send the message from the second call (serial responses)? >> >> Or does the engine run two instances of the long handler simultaneously? If so, what happens to the values of the variables? >> >> Or something else? >> >> I've never allowed this to happen before but I find myself in a position where simultaneous calls would be the best way to handle things. >> >> -- >> Jacqueline Landman Gay | jacque at hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- Phil Jimmieson phil at liverpool.ac.uk (UK) 0151 795 4236 Computer Science Dept., Liverpool University, Ashton Building, Ashton Street Liverpool L69 3BX http://www.csc.liv.ac.uk/~phil/ I used to sit on a special medical board... ...but now I use this ointment. From dave.cragg at lacscentre.co.uk Fri Jan 23 07:03:32 2015 From: dave.cragg at lacscentre.co.uk (Dave Cragg) Date: Fri, 23 Jan 2015 12:03:32 +0000 Subject: Duplicate simultaneous calls to same handler In-Reply-To: <54C1BF58.2030706@hyperactivesw.com> References: <54C1BF58.2030706@hyperactivesw.com> Message-ID: > On 23 Jan 2015, at 03:26, J. Landman Gay wrote: > > Suppose I have a long handler that includes a few "wait with messages" so that users can continue interacting with the stack while it runs. The user does something that calls the long handler while it is still running from a previous instance. Assume there is no flag in the script to prevent that. > > Does the engine queue the second call until the long handler finishes, and then send the message from the second call (serial responses)? > > Or does the engine run two instances of the long handler simultaneously? If so, what happens to the values of the variables? > > Or something else? One issue might be the nesting of the "waits". It?s a while since I?ve done this, but I think the waits need to be released in reverse order of how they were applied. So if you run the handler three times, the first and second calls won?t return until the "wait" in the third call has cleared. See if the following script in a button does what you would expect when you click it three times in succession (less than 5 seconds between clicks). local lvCount = 0 on mouseUp add 1 to lvCount put 5 into tTime put "start " & lvCount & cr after field 1 testHandler tTime, lvCount end mouseUp on testHandler pSecs, pCount wait pSecs seconds with messages put "end " & pCount & cr after field 1 end testHandler Cheers Dave Cragg From michael.mccreary at livecode.com Fri Jan 23 10:13:57 2015 From: michael.mccreary at livecode.com (Michael McCreary) Date: Fri, 23 Jan 2015 15:13:57 +0000 Subject: RELEASE: LiveCode 6.7.2 RC2 Message-ID: <54C26535.1010500@livecode.com> Dear List Members, We're pleased to announce the release of LiveCode 6.7.2 RC2. This is a maintenance release focusing on product robustness and quality. We've also added support for iOS 64 bit apps. Release Contents This release contains 11 bug fixes: * 14421 Text breaking can lead to hang LiveCode with Unicode text * 14406 Unable to enter Chinese characters in script editor * 14392 New resource folder location prevent from using 'launch' in standalones * 14350 Standalone crashes after closing a palette window * 14347 crash with illegal imagesource manipulation * 14346 Menu items which point to submenus are selectable * 14345 Audio files do not play in player object * 14290 Faulty implementation of location services plist file in Livecode 6.7 * 1 From michael.mccreary at livecode.com Fri Jan 23 10:17:34 2015 From: michael.mccreary at livecode.com (Michael McCreary) Date: Fri, 23 Jan 2015 15:17:34 +0000 Subject: RELEASE: LiveCode 6.7.2 RC2 Message-ID: <54C2660E.2020402@livecode.com> Dear List Members, We're pleased to announce the release of LiveCode 6.7.2 RC2. This is a maintenance release focusing on product robustness and quality. We've also added support for iOS 64 bit apps. Release Contents This release contains 11 bug fixes: * 14421 Text breaking can lead to hang LiveCode with Unicode text * 14406 Unable to enter Chinese characters in script editor * 14392 New resource folder location prevent from using 'launch' in standalones * 14350 Standalone crashes after closing a palette window * 14347 crash with illegal imagesource manipulation * 14346 Menu items which point to submenus are selectable * 14345 Audio files do not play in player object * 14290 Faulty implementation of location services plist file in Livecode 6.7 * 13764 iOS 8 GPS chips should be used even though NA is selected in standalone settings * 13213 Android externals libraries are not copied in the apk on Linux * 13211 Crash when pressing backspace key after writing an accented character For full details of the changes in this release please see the release notes: http://downloads.livecode.com/livecode/6_7_2/LiveCodeNotes-6_7_2_rc_2.pdf Getting the Release To get the release please select "check for updates" from the "help" menu in the product or download the installer directly at: http://downloads.livecode.com iOS 64 bit support Apple's AppStore rules change on the 1st of February requiring that all NEW app submission contain both 32 and 64 bit binary executables. LiveCode has been updates to produce iOS apps that comply with this. If you already have an app in the AppStore you do not need to update it before the deadline, but any new submission after that date will have to be built with LiveCode 6.7.2 or later. Warm regards, The LiveCode Team From pmbrig at gmail.com Fri Jan 23 10:25:45 2015 From: pmbrig at gmail.com (Peter M. Brigham) Date: Fri, 23 Jan 2015 10:25:45 -0500 Subject: A Got-Ya In-Reply-To: References: <000c01d034dc$cc4ea520$64ebef60$@net> Message-ID: <059B9BF1-5646-4627-97C7-3C674C7E90B8@gmail.com> On Jan 20, 2015, at 9:14 PM, Geoff Canyon wrote: > 2. It's a feature that custom property names can be stored/referenced using > variables. For example: > > repeat for each item P in "left,top" > -- not custom properties, but the same principle applies > set the P of button "example" to 10 * trunc(the P of button > "example" / 10) > end repeat A little late to this thread, but I couldn't resist generalizing this really nifty idea: on initializeCprops propList,tObjRef,tDelim -- initialize a list of custom properties in one swoop -- proplist is a comma-delimited list of , eg: -- put "tGender^M,tTown^Cambridge,nextAppt^1 month" into propList -- initializeCprops propList,the long id of this card,"^" -- tDelim defaults to if empty -- from an example by Geoff Canyon, use-LC list, -- adapted by Peter M. Brigham, pmbrig at gmail.com if tDelim = empty then put space into tDelim split propList using comma and tDelim repeat for each key K in propList set the K of tObjRef to propList[K] end repeat end initializeCprops -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig From ms1 at soas.ac.uk Fri Jan 23 11:30:32 2015 From: ms1 at soas.ac.uk (Muaadh Salih) Date: Fri, 23 Jan 2015 16:30:32 +0000 Subject: new Revolution account Message-ID: I have received six copies of the following email . I did not create such account and I know nothing about this . Is this a genuine email ? any info ?! many thanks Muaadh ------------------------------------------------------------------------ Dear Revolution customer Thank you for creating a new Revolution account, your log in details are as follows: Username: Password: ******** Before you can use your account, you need to activate it by clicking on the following link. The activation url is: https://developer.runrev.com/revonline_secure.irev?request=H4sIAAAAAAAAAy2MQQqAIBBFp6B1N4iuIGLpMtp2iWkcoUUaZp0%2FB9o8eB%2Fe7wCg7Sq2CzOe%0D%0AXDjf1aBpK2akcrxYjhTX5Fn20RoOhtkH3JHJKa2MDm6alKPZa4sg4SBhihL0%2FwcvROmJBT7N%0D%0AoZmHcgAAAA%3D%3D This is an automatically generated email, please don't reply to it. If you have any problems please contact support at support at runrev.com. We hope you enjoy using Revolution's online features Kind regards The revOnline team -- From ambassador at fourthworld.com Fri Jan 23 11:38:16 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 23 Jan 2015 08:38:16 -0800 Subject: new Revolution account In-Reply-To: References: Message-ID: <54C278F8.2060400@fourthworld.com> Muaadh Salih wrote: > I have received six copies of the following email . > I did not create such account and I know nothing about this . > Is this a genuine email ? any info ?! > many thanks Some time ago I noted here that the team at RunRev was working on restoring RevOnline. It looks like the last phase of that was completed this morning: With this fix all backlocked confirmation emails were sent (as a heavy tester I got a couple dozen ), so you can probably ignore all but the last of them. If you find any issues logging in please write to support AT runrev.com, but testing the password I received here seems to work well, so hopefully those issues are now behind us. -- Richard Gaskin LiveCode Community Manager richard at livecode.org From bobsneidar at iotecdigital.com Fri Jan 23 13:50:16 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 23 Jan 2015 18:50:16 +0000 Subject: Getting the scroll and clickloc of a browser object In-Reply-To: <8FC5D5A2-C404-44FA-A9B0-EBB3D59CDFFA@unimelb.edu.au> References: <8FC5D5A2-C404-44FA-A9B0-EBB3D59CDFFA@unimelb.edu.au> Message-ID: <303F8053-FE46-4B0A-B86B-34E0B8B1A4AB@iotecdigital.com> There is nothing in the LC code repository for getting that kind of information from any browser control. There may be a way to post a URL that can give you that information but it will have nothing to do with Livecode. I would google what you are trying to do and see if you get any hits. Bob S > On Jan 21, 2015, at 22:05 , Michael Julian Lew wrote: > > I'm playing with displaying pdf notes in a browser object and I would like to respond to the user clicking on text in the pdf and to the scroll reaching certain points. > > Is there any way to know ow far a pdf file in a browser has been scrolled? Any way to know what might have been clicked? > > Michael From jacque at hyperactivesw.com Fri Jan 23 13:52:57 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 23 Jan 2015 12:52:57 -0600 Subject: Duplicate simultaneous calls to same handler In-Reply-To: <131196679383.20150122215841@ahsoftware.net> References: <54C1BF58.2030706@hyperactivesw.com> <131195899928.20150122214541@ahsoftware.net> <131196679383.20150122215841@ahsoftware.net> Message-ID: <54C29889.6090503@hyperactivesw.com> On 1/22/2015 11:58 PM, Mark Wieder wrote: > Each invocation of a function gets its own set of local variables. > Script local variables are in a shared common pool. Thanks everybody for all the responses, it was what I needed to know. So basically it acts just like a recursive handler, with the same rules about waits and variable values. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From mikedoub at gmail.com Fri Jan 23 16:13:30 2015 From: mikedoub at gmail.com (Michael Doub) Date: Fri, 23 Jan 2015 16:13:30 -0500 Subject: Offset and Binary Data Message-ID: <54C2B97A.8090204@gmail.com> Can someone explain to me why the offset function is returning the same offset when the search criteria is different? Put this into a button: on mouseUp put numtochar(255) & numtochar(216) into tStart -- in Hexadecimal: FFD8 = SOI(Start of jpeg image) put numtochar(255) & numtochar(217) into tEnd -- in Hexadecimal: FFD9 = EOI(End of jpeg image) put "AAA" & tStart & "DATA"& tEnd & "BBB" into temp1 put offset(tStart,temp1) into tThumbstart put offset(tEnd,temp1) into tThumbEnd answer "Start:" && tThumbstart & cr & "End:" && tThumbEnd end mouseUp I get 4,4. Is this not the way to search thru binary data? -= Mike From bobsneidar at iotecdigital.com Fri Jan 23 17:22:52 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 23 Jan 2015 22:22:52 +0000 Subject: A code style question In-Reply-To: <2C2984B0-10C6-42CB-9421-E2E4E20438CB@numericable.com> References: <54BE9AFA.9080805@fourthworld.com> <2C2984B0-10C6-42CB-9421-E2E4E20438CB@numericable.com> Message-ID: <61F86EDD-8AC1-48A2-8491-0F9C01F92E42@iotecdigital.com> Shorter still: switch (the platform) case ?MacOS? ; put "Finder" into tReference ; break case ?Win32? ; put "Explorer" into tReference ; break default ; put "Desktop" into tReference end switch You don?t need a break after default. :-) Bob S On Jan 22, 2015, at 24:08 , Ren? Micout > wrote: Easier (clear) / shorter : switch (the platform) case ?MacOS? ; put "Finder" into tReference ; break case ?Win32? ; put "Explorer" into tReference ; break default ; put "Desktop" into tReference ; break end switch ;-) Ren? From bobsneidar at iotecdigital.com Fri Jan 23 17:30:30 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 23 Jan 2015 22:30:30 +0000 Subject: Duplicate simultaneous calls to same handler In-Reply-To: <54C1BF58.2030706@hyperactivesw.com> References: <54C1BF58.2030706@hyperactivesw.com> Message-ID: It would be easy to tell. Start a counter in a local variable before one of the wait with messages statements, increment the counter by one, then after the wait with messages command put the counter into the message box, then subtract one from the counter. If it queues you should see counters going over 1. If not you will only ever see 1. Bob S > On Jan 22, 2015, at 19:26 , J. Landman Gay wrote: > > Suppose I have a long handler that includes a few "wait with messages" so that users can continue interacting with the stack while it runs. The user does something that calls the long handler while it is still running from a previous instance. Assume there is no flag in the script to prevent that. > > Does the engine queue the second call until the long handler finishes, and then send the message from the second call (serial responses)? > > Or does the engine run two instances of the long handler simultaneously? If so, what happens to the values of the variables? > > Or something else? > > I've never allowed this to happen before but I find myself in a position where simultaneous calls would be the best way to handle things. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pete at lcsql.com Fri Jan 23 17:30:55 2015 From: pete at lcsql.com (Peter Haworth) Date: Fri, 23 Jan 2015 14:30:55 -0800 Subject: Duplicate simultaneous calls to same handler In-Reply-To: <131196679383.20150122215841@ahsoftware.net> References: <54C1BF58.2030706@hyperactivesw.com> <131195899928.20150122214541@ahsoftware.net> <131196679383.20150122215841@ahsoftware.net> Message-ID: On Thu, Jan 22, 2015 at 9:58 PM, Mark Wieder wrote: > Script local variables are in a shared common pool. ...except in behavior scripts where each object using the behavior has its own set of script locals. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From bobsneidar at iotecdigital.com Fri Jan 23 17:38:26 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 23 Jan 2015 22:38:26 +0000 Subject: Duplicate simultaneous calls to same handler In-Reply-To: References: <54C1BF58.2030706@hyperactivesw.com> Message-ID: OK this got me going so I put this script in a button: on mouseUp global theCount add 1 to theCount put theCount wait 5 seconds with messages subtract 1 from theCount put theCount end mouseUp Each time I click the button the counter increments, then after the SUM TOTAL of time has elapsed, the counter quickly counts down to 0. Bob S On Jan 23, 2015, at 14:30 , Bob Sneidar > wrote: It would be easy to tell. Start a counter in a local variable before one of the wait with messages statements, increment the counter by one, then after the wait with messages command put the counter into the message box, then subtract one from the counter. If it queues you should see counters going over 1. If not you will only ever see 1. Bob S On Jan 22, 2015, at 19:26 , J. Landman Gay > wrote: Suppose I have a long handler that includes a few "wait with messages" so that users can continue interacting with the stack while it runs. The user does something that calls the long handler while it is still running from a previous instance. Assume there is no flag in the script to prevent that. Does the engine queue the second call until the long handler finishes, and then send the message from the second call (serial responses)? Or does the engine run two instances of the long handler simultaneously? If so, what happens to the values of the variables? Or something else? I've never allowed this to happen before but I find myself in a position where simultaneous calls would be the best way to handle things. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From scott at tactilemedia.com Fri Jan 23 19:27:42 2015 From: scott at tactilemedia.com (Scott Rossi) Date: Fri, 23 Jan 2015 16:27:42 -0800 Subject: Getting the scroll and clickloc of a browser object In-Reply-To: <8FC5D5A2-C404-44FA-A9B0-EBB3D59CDFFA@unimelb.edu.au> References: <8FC5D5A2-C404-44FA-A9B0-EBB3D59CDFFA@unimelb.edu.au> Message-ID: <32461152-9754-465A-8D2A-262B5E4DD10F@tactilemedia.com> If you?re using a browser object, I believe this is what you want: put revBrowserGet(theBrowserId, ?vscroll") into theVScrollAmount Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On Jan 21, 2015, at 10:05 PM, Michael Julian Lew wrote: > I'm playing with displaying pdf notes in a browser object and I would like to respond to the user clicking on text in the pdf and to the scroll reaching certain points. > > Is there any way to know ow far a pdf file in a browser has been scrolled? Any way to know what might have been clicked? > > Michael > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ray at linkit.com Fri Jan 23 19:29:01 2015 From: ray at linkit.com (Ray) Date: Fri, 23 Jan 2015 21:29:01 -0300 Subject: 7.0.2 RC1 Crashes and Corrupts Stack Files In-Reply-To: References: Message-ID: <54C2E74D.1010608@LinkIt.Com> On my Windows 8.1 system I do the following: 1) create a new main stack 2) drag a player object onto it 3) remove the default fileName (source) 4) save the stack file At this point I get "Livecode has stopped working". With no other options I close the program and find my entire stack file has been corrupted and will not re-open. Anybody know anything about this? From bobsneidar at iotecdigital.com Fri Jan 23 19:51:56 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Sat, 24 Jan 2015 00:51:56 +0000 Subject: Getting the scroll and clickloc of a browser object In-Reply-To: <32461152-9754-465A-8D2A-262B5E4DD10F@tactilemedia.com> References: <8FC5D5A2-C404-44FA-A9B0-EBB3D59CDFFA@unimelb.edu.au> <32461152-9754-465A-8D2A-262B5E4DD10F@tactilemedia.com> Message-ID: <1B89E971-A6AD-4EDE-941A-15776C3419E4@iotecdigital.com> But the browser object will not generate LC mouseUp messages when the user clicks objects in the browser will it? And how is he going to get the scroll of the PDF in the browser as opposed to the browser object scroll? Maybe I?m not getting it, but I envision the PDF plugin having it?s own scroll setting. I could be mistaken. Bob S > On Jan 23, 2015, at 16:27 , Scott Rossi wrote: > > If you?re using a browser object, I believe this is what you want: > > put revBrowserGet(theBrowserId, ?vscroll") into theVScrollAmount > > Regards, > > Scott Rossi > Creative Director > Tactile Media, UX/UI Design > > On Jan 21, 2015, at 10:05 PM, Michael Julian Lew wrote: > >> I'm playing with displaying pdf notes in a browser object and I would like to respond to the user clicking on text in the pdf and to the scroll reaching certain points. >> >> Is there any way to know ow far a pdf file in a browser has been scrolled? Any way to know what might have been clicked? >> >> Michael >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Fri Jan 23 19:53:44 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Sat, 24 Jan 2015 00:53:44 +0000 Subject: 7.0.2 RC1 Crashes and Corrupts Stack Files In-Reply-To: <54C2E74D.1010608@LinkIt.Com> References: <54C2E74D.1010608@LinkIt.Com> Message-ID: Check if there is a file at the same location as you original with a tilde in the file name (~). If the crash happened during the save, this file is your old file before you saved it. Bob S On Jan 23, 2015, at 16:29 , Ray > wrote: On my Windows 8.1 system I do the following: 1) create a new main stack 2) drag a player object onto it 3) remove the default fileName (source) 4) save the stack file At this point I get "Livecode has stopped working". With no other options I close the program and find my entire stack file has been corrupted and will not re-open. Anybody know anything about this? From paul at livecode.org Sat Jan 24 00:09:16 2015 From: paul at livecode.org (Paul Hibbert) Date: Fri, 23 Jan 2015 21:09:16 -0800 Subject: 7.0.2 RC1 Crashes and Corrupts Stack Files In-Reply-To: <54C2E74D.1010608@LinkIt.Com> References: <54C2E74D.1010608@LinkIt.Com> Message-ID: Just tried this on OS X 10.10.1 (Yosemite) and only managed to get to step 3, then LC crashed! Have you filed a bug report yet? If you have I can add to it, if not I'll file one and you can add to it. Paul > On Jan 23, 2015, at 4:29 PM, Ray wrote: > > On my Windows 8.1 system I do the following: > > 1) create a new main stack > 2) drag a player object onto it > 3) remove the default fileName (source) > 4) save the stack file > > At this point I get "Livecode has stopped working". With no other options I close the program and find my entire stack file has been corrupted and will not re-open. > > Anybody know anything about this? > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at livecode.org Sat Jan 24 00:49:11 2015 From: paul at livecode.org (Paul Hibbert) Date: Fri, 23 Jan 2015 21:49:11 -0800 Subject: 7.0.2 RC1 Crashes and Corrupts Stack Files In-Reply-To: References: <54C2E74D.1010608@LinkIt.Com> Message-ID: <9B8BCD84-8077-433C-93D2-04179934E11B@livecode.org> Ray, I tried this a couple of times and realised that it is definitely a serious bug so I decided to report it, hope you don't mind, the number is http://quality.runrev.com/show_bug.cgi?id=14437 if you would like to add to it. Regards Paul > On Jan 23, 2015, at 9:09 PM, Paul Hibbert wrote: > > Just tried this on OS X 10.10.1 (Yosemite) and only managed to get to step 3, then LC crashed! > > Have you filed a bug report yet? > > If you have I can add to it, if not I'll file one and you can add to it. > > Paul > >> On Jan 23, 2015, at 4:29 PM, Ray wrote: >> >> On my Windows 8.1 system I do the following: >> >> 1) create a new main stack >> 2) drag a player object onto it >> 3) remove the default fileName (source) >> 4) save the stack file >> >> At this point I get "Livecode has stopped working". With no other options I close the program and find my entire stack file has been corrupted and will not re-open. >> >> Anybody know anything about this? >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From rene.micout at numericable.com Sat Jan 24 02:28:03 2015 From: rene.micout at numericable.com (=?utf-8?Q?Ren=C3=A9_Micout?=) Date: Sat, 24 Jan 2015 08:28:03 +0100 Subject: A code style question In-Reply-To: <61F86EDD-8AC1-48A2-8491-0F9C01F92E42@iotecdigital.com> References: <54BE9AFA.9080805@fourthworld.com> <2C2984B0-10C6-42CB-9421-E2E4E20438CB@numericable.com> <61F86EDD-8AC1-48A2-8491-0F9C01F92E42@iotecdigital.com> Message-ID: Thank you Bob ! :-) Ren? > Le 23 janv. 2015 ? 23:22, Bob Sneidar a ?crit : > > Shorter still: > > switch (the platform) > case ?MacOS? ; put "Finder" into tReference ; break > case ?Win32? ; put "Explorer" into tReference ; break > default ; put "Desktop" into tReference > end switch > > You don?t need a break after default. :-) > > Bob S From ray at linkit.com Sat Jan 24 09:15:46 2015 From: ray at linkit.com (Ray) Date: Sat, 24 Jan 2015 11:15:46 -0300 Subject: 7.0.2 RC1 Crashes and Corrupts Stack Files In-Reply-To: <9B8BCD84-8077-433C-93D2-04179934E11B@livecode.org> References: <54C2E74D.1010608@LinkIt.Com> <9B8BCD84-8077-433C-93D2-04179934E11B@livecode.org> Message-ID: <54C3A912.6040002@LinkIt.Com> Bob, thanks for your insight regarding the saved stack files and Paul, thanks for posting this bug. I might add something to it since I'm having trouble getting a player in 7.0.2 RC1 to play anything at all. If you know of any other way for me to play a sound at half speed or any other speed than the normal speed please let me know. Thanks! On 1/24/2015 2:49 AM, Paul Hibbert wrote: > Ray, > > I tried this a couple of times and realised that it is definitely a serious bug so I decided to report it, hope you don't mind, the number is http://quality.runrev.com/show_bug.cgi?id=14437 if you would like to add to it. > > Regards > > Paul > > >> On Jan 23, 2015, at 9:09 PM, Paul Hibbert wrote: >> >> Just tried this on OS X 10.10.1 (Yosemite) and only managed to get to step 3, then LC crashed! >> >> Have you filed a bug report yet? >> >> If you have I can add to it, if not I'll file one and you can add to it. >> >> Paul >> >>> On Jan 23, 2015, at 4:29 PM, Ray wrote: >>> >>> On my Windows 8.1 system I do the following: >>> >>> 1) create a new main stack >>> 2) drag a player object onto it >>> 3) remove the default fileName (source) >>> 4) save the stack file >>> >>> At this point I get "Livecode has stopped working". With no other options I close the program and find my entire stack file has been corrupted and will not re-open. >>> >>> Anybody know anything about this? >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pete at lcsql.com Sat Jan 24 12:36:01 2015 From: pete at lcsql.com (Peter Haworth) Date: Sat, 24 Jan 2015 09:36:01 -0800 Subject: 7.0.2 RC1 Crashes and Corrupts Stack Files In-Reply-To: <54C3A912.6040002@LinkIt.Com> References: <54C2E74D.1010608@LinkIt.Com> <9B8BCD84-8077-433C-93D2-04179934E11B@livecode.org> <54C3A912.6040002@LinkIt.Com> Message-ID: I get the same problem here with Yosemite and LC 7.0.2. Works OK with 7.0.1. Ray, you can vary the playback speed by setting the playRate property of the player. A value of 1 is normal speed, 0.5 is half speed, etc. As long as you're not using LC 7 of course since it won't play anything right now. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Sat, Jan 24, 2015 at 6:15 AM, Ray wrote: > Bob, thanks for your insight regarding the saved stack files and Paul, > thanks for posting this bug. I might add something to it since I'm having > trouble getting a player in 7.0.2 RC1 to play anything at all. > > If you know of any other way for me to play a sound at half speed or any > other speed than the normal speed please let me know. > > Thanks! > > > On 1/24/2015 2:49 AM, Paul Hibbert wrote: > >> Ray, >> >> I tried this a couple of times and realised that it is definitely a >> serious bug so I decided to report it, hope you don't mind, the number is >> http://quality.runrev.com/show_bug.cgi?id=14437 if you would like to add >> to it. >> >> Regards >> >> Paul >> >> >> On Jan 23, 2015, at 9:09 PM, Paul Hibbert wrote: >>> >>> Just tried this on OS X 10.10.1 (Yosemite) and only managed to get to >>> step 3, then LC crashed! >>> >>> Have you filed a bug report yet? >>> >>> If you have I can add to it, if not I'll file one and you can add to it. >>> >>> Paul >>> >>> On Jan 23, 2015, at 4:29 PM, Ray wrote: >>>> >>>> On my Windows 8.1 system I do the following: >>>> >>>> 1) create a new main stack >>>> 2) drag a player object onto it >>>> 3) remove the default fileName (source) >>>> 4) save the stack file >>>> >>>> At this point I get "Livecode has stopped working". With no other >>>> options I close the program and find my entire stack file has been >>>> corrupted and will not re-open. >>>> >>>> Anybody know anything about this? >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ray at linkit.com Sat Jan 24 12:55:03 2015 From: ray at linkit.com (ray) Date: Sat, 24 Jan 2015 14:55:03 -0300 Subject: 7.0.2 RC1 Crashes and Corrupts Stack Files Message-ID: <7blggbd7qcijoi1c7fnjcfkn.1422122103743@email.android.com> I'll check it and get back to you but in my situation that would be really unattractive. ?We just came through rough upgrade from 6.5.2 to the (stable) 7.x and new audio bugs are still being found. ?Now that audio will play after a wait I'd hate to return to considering downgrading 6.5.2 again. ?But I'll test the play rate in 6.5.2 and post... Sent from my Samsung Galaxy smartphone. -------- Original message -------- From: Peter Haworth Date:01/24/2015 2:36 PM (GMT-04:00) To: How to use LiveCode Cc: Subject: Re: 7.0.2 RC1 Crashes and Corrupts Stack Files I get the same problem here with Yosemite and LC 7.0.2. Works OK with 7.0.1. Ray, you can vary the playback speed by setting the playRate property of the player. A value of 1 is normal speed, 0.5 is half speed, etc. As long as you're not using LC 7 of course since it won't play anything right now. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Sat, Jan 24, 2015 at 6:15 AM, Ray wrote: > Bob, thanks for your insight regarding the saved stack files and Paul, > thanks for posting this bug. I might add something to it since I'm having > trouble getting a player in 7.0.2 RC1 to play anything at all. > > If you know of any other way for me to play a sound at half speed or any > other speed than the normal speed please let me know. > > Thanks! > > > On 1/24/2015 2:49 AM, Paul Hibbert wrote: > >> Ray, >> >> I tried this a couple of times and realised that it is definitely a >> serious bug so I decided to report it, hope you don't mind, the number is >> http://quality.runrev.com/show_bug.cgi?id=14437 if you would like to add >> to it. >> >> Regards >> >> Paul >> >> >> On Jan 23, 2015, at 9:09 PM, Paul Hibbert wrote: >>> >>> Just tried this on OS X 10.10.1 (Yosemite) and only managed to get to >>> step 3, then LC crashed! >>> >>> Have you filed a bug report yet? >>> >>> If you have I can add to it, if not I'll file one and you can add to it. >>> >>> Paul >>> >>> On Jan 23, 2015, at 4:29 PM, Ray wrote: >>>> >>>> On my Windows 8.1 system I do the following: >>>> >>>> 1) create a new main stack >>>> 2) drag a player object onto it >>>> 3) remove the default fileName (source) >>>> 4) save the stack file >>>> >>>> At this point I get "Livecode has stopped working". With no other >>>> options I close the program and find my entire stack file has been >>>> corrupted and will not re-open. >>>> >>>> Anybody know anything about this? >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Sat Jan 24 15:14:29 2015 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 24 Jan 2015 22:14:29 +0200 Subject: 7.0.2 RC1 Crashes and Corrupts Stack Files In-Reply-To: <54C2E74D.1010608@LinkIt.Com> References: <54C2E74D.1010608@LinkIt.Com> Message-ID: <54C3FD25.6010008@gmail.com> On 24/01/15 02:29, Ray wrote: > On my Windows 8.1 system I do the following: > > 1) create a new main stack > 2) drag a player object onto it > 3) remove the default fileName (source) > 4) save the stack file > > At this point I get "Livecode has stopped working". With no other > options I close the program and find my entire stack file has been > corrupted and will not re-open. > > Anybody know anything about this? > I just tried this (sorry, late to the party) with 7.0.2 rc1 on Ubuntu Studio 14.10 and it crashed the IDE . . . I looked here: /home/richmond/.runrev/crashlogs but the directory was empty as was: /home/richmond/.runrev/logs Richmond. From richmondmathewson at gmail.com Sat Jan 24 15:54:28 2015 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 24 Jan 2015 22:54:28 +0200 Subject: 7.0.2 RC1 Crashes and Corrupts Stack Files In-Reply-To: <54C2E74D.1010608@LinkIt.Com> References: <54C2E74D.1010608@LinkIt.Com> Message-ID: <54C40684.5090601@gmail.com> Tangentially . . . Where ARE Livecode crash logs stored on Linux? Richmond. From michaell at unimelb.edu.au Sat Jan 24 16:00:44 2015 From: michaell at unimelb.edu.au (Michael Julian Lew) Date: Sat, 24 Jan 2015 21:00:44 +0000 Subject: Getting the scroll and clickloc of a browser object Message-ID: Thanks Scott, but it stays at zero even when I scroll the pdf in the browser object. (I fixed the quote mark that email mucked up.) Maybe Bob Sneidar is right: "There is nothing in the LC code repository for getting that kind of information from any browser control." If so, then that is a shame. Oh well. Notes on paper it will be. If you?re using a browser object, I believe this is what you want: put revBrowserGet(theBrowserId, ?vscroll") into theVScrollAmount Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On Jan 21, 2015, at 10:05 PM, Michael Julian Lew > wrote: I'm playing with displaying pdf notes in a browser object and I would like to respond to the user clicking on text in the pdf and to the scroll reaching certain points. Is there any way to know ow far a pdf file in a browser has been scrolled? Any way to know what might have been clicked? Michael From ray at linkit.com Sat Jan 24 17:27:46 2015 From: ray at linkit.com (Ray) Date: Sat, 24 Jan 2015 19:27:46 -0300 Subject: 7.0.2 RC1 Crashes and Corrupts Stack Files In-Reply-To: <54C40684.5090601@gmail.com> References: <54C2E74D.1010608@LinkIt.Com> <54C40684.5090601@gmail.com> Message-ID: <54C41C62.2080506@LinkIt.Com> Sorry Richmond, not sure about that one. Thanks for the added report. On 1/24/2015 5:54 PM, Richmond wrote: > Tangentially . . . > > Where ARE Livecode crash logs stored on Linux? > > Richmond. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ray at linkit.com Sat Jan 24 17:35:58 2015 From: ray at linkit.com (Ray) Date: Sat, 24 Jan 2015 19:35:58 -0300 Subject: 7.0.2 RC1 Crashes and Corrupts Stack Files In-Reply-To: References: <54C2E74D.1010608@LinkIt.Com> <9B8BCD84-8077-433C-93D2-04179934E11B@livecode.org> <54C3A912.6040002@LinkIt.Com> Message-ID: <54C41E4E.8030903@LinkIt.Com> Guys - I've just downloaded (once again) Livecode 6.5.2 and found as to be expected everything working fine regarding the playback of audio and video files via a player object. This includes setting the playRate to something other than 1. I set it to .5 to play at half speed. I also get the expected controller in the player window running 6.5.2, another thing which is missing in 7.x players. The entire player in 7.x seems to be non-functional in every way. On 1/24/2015 2:36 PM, Peter Haworth wrote: > I get the same problem here with Yosemite and LC 7.0.2. Works OK with > 7.0.1. > > Ray, you can vary the playback speed by setting the playRate property of > the player. A value of 1 is normal speed, 0.5 is half speed, etc. As long > as you're not using LC 7 of course since it won't play anything right now. > > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin > > On Sat, Jan 24, 2015 at 6:15 AM, Ray wrote: > >> Bob, thanks for your insight regarding the saved stack files and Paul, >> thanks for posting this bug. I might add something to it since I'm having >> trouble getting a player in 7.0.2 RC1 to play anything at all. >> >> If you know of any other way for me to play a sound at half speed or any >> other speed than the normal speed please let me know. >> >> Thanks! >> >> >> On 1/24/2015 2:49 AM, Paul Hibbert wrote: >> >>> Ray, >>> >>> I tried this a couple of times and realised that it is definitely a >>> serious bug so I decided to report it, hope you don't mind, the number is >>> http://quality.runrev.com/show_bug.cgi?id=14437 if you would like to add >>> to it. >>> >>> Regards >>> >>> Paul >>> >>> >>> On Jan 23, 2015, at 9:09 PM, Paul Hibbert wrote: >>>> Just tried this on OS X 10.10.1 (Yosemite) and only managed to get to >>>> step 3, then LC crashed! >>>> >>>> Have you filed a bug report yet? >>>> >>>> If you have I can add to it, if not I'll file one and you can add to it. >>>> >>>> Paul >>>> >>>> On Jan 23, 2015, at 4:29 PM, Ray wrote: >>>>> On my Windows 8.1 system I do the following: >>>>> >>>>> 1) create a new main stack >>>>> 2) drag a player object onto it >>>>> 3) remove the default fileName (source) >>>>> 4) save the stack file >>>>> >>>>> At this point I get "Livecode has stopped working". With no other >>>>> options I close the program and find my entire stack file has been >>>>> corrupted and will not re-open. >>>>> >>>>> Anybody know anything about this? >>>>> >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>> subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pete at lcsql.com Sat Jan 24 17:39:10 2015 From: pete at lcsql.com (Peter Haworth) Date: Sat, 24 Jan 2015 14:39:10 -0800 Subject: 7.0.2 RC1 Crashes and Corrupts Stack Files In-Reply-To: <54C41E4E.8030903@LinkIt.Com> References: <54C2E74D.1010608@LinkIt.Com> <9B8BCD84-8077-433C-93D2-04179934E11B@livecode.org> <54C3A912.6040002@LinkIt.Com> <54C41E4E.8030903@LinkIt.Com> Message-ID: I've been trying the player in 6.7 and it too has problems although not as bad as 7. It looks like the 7 player but actually plays music files. However, I've experienced hard hangs with it which require a force quit. Haven't nailed down the circumstances yet. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Sat, Jan 24, 2015 at 2:35 PM, Ray wrote: > Guys - I've just downloaded (once again) Livecode 6.5.2 and found as to be > expected everything working fine regarding the playback of audio and video > files via a player object. This includes setting the playRate to something > other than 1. I set it to .5 to play at half speed. > > I also get the expected controller in the player window running 6.5.2, > another thing which is missing in 7.x players. The entire player in 7.x > seems to be non-functional in every way. > > On 1/24/2015 2:36 PM, Peter Haworth wrote: > >> I get the same problem here with Yosemite and LC 7.0.2. Works OK with >> 7.0.1. >> >> Ray, you can vary the playback speed by setting the playRate property of >> the player. A value of 1 is normal speed, 0.5 is half speed, etc. As >> long >> as you're not using LC 7 of course since it won't play anything right now. >> >> Pete >> lcSQL Software >> Home of lcStackBrowser and >> SQLiteAdmin >> >> On Sat, Jan 24, 2015 at 6:15 AM, Ray wrote: >> >> Bob, thanks for your insight regarding the saved stack files and Paul, >>> thanks for posting this bug. I might add something to it since I'm >>> having >>> trouble getting a player in 7.0.2 RC1 to play anything at all. >>> >>> If you know of any other way for me to play a sound at half speed or any >>> other speed than the normal speed please let me know. >>> >>> Thanks! >>> >>> >>> On 1/24/2015 2:49 AM, Paul Hibbert wrote: >>> >>> Ray, >>>> >>>> I tried this a couple of times and realised that it is definitely a >>>> serious bug so I decided to report it, hope you don't mind, the number >>>> is >>>> http://quality.runrev.com/show_bug.cgi?id=14437 if you would like to >>>> add >>>> to it. >>>> >>>> Regards >>>> >>>> Paul >>>> >>>> >>>> On Jan 23, 2015, at 9:09 PM, Paul Hibbert wrote: >>>> >>>>> Just tried this on OS X 10.10.1 (Yosemite) and only managed to get to >>>>> step 3, then LC crashed! >>>>> >>>>> Have you filed a bug report yet? >>>>> >>>>> If you have I can add to it, if not I'll file one and you can add to >>>>> it. >>>>> >>>>> Paul >>>>> >>>>> On Jan 23, 2015, at 4:29 PM, Ray wrote: >>>>> >>>>>> On my Windows 8.1 system I do the following: >>>>>> >>>>>> 1) create a new main stack >>>>>> 2) drag a player object onto it >>>>>> 3) remove the default fileName (source) >>>>>> 4) save the stack file >>>>>> >>>>>> At this point I get "Livecode has stopped working". With no other >>>>>> options I close the program and find my entire stack file has been >>>>>> corrupted and will not re-open. >>>>>> >>>>>> Anybody know anything about this? >>>>>> >>>>>> _______________________________________________ >>>>>> use-livecode mailing list >>>>>> use-livecode at lists.runrev.com >>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>> subscription preferences: >>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>> >>>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>> subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>> >>>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pete at lcsql.com Sun Jan 25 17:45:56 2015 From: pete at lcsql.com (Peter Haworth) Date: Sun, 25 Jan 2015 14:45:56 -0800 Subject: Unicode Message-ID: Is there a lesson/guide anywhere that shows how to use unicode in LC 7? All I need to do is SELECT data from an UTF8 encoded SQLite database/display it in fields/datagrid and read input from fields/ INSERT/UPDATE it to the database. I've got things working using unicodeText/uniencode/unidecode in LC 6.6 but wondering how things work in 7. Or even if it's worthwhile even using LC 7 for something as simple as this. The LC7 release notes document all the new properties/commands but don't have any examples for straightforward use. Am I right in thinking that I don't need to use unicodeText/uniencode/unidecode in LC7 to do the above tasks? Just simple put into field/put field into var is all I need? Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From bobwarren at howsoft.com Sun Jan 25 19:57:19 2015 From: bobwarren at howsoft.com (Bob Warren) Date: Sun, 25 Jan 2015 22:57:19 -0200 Subject: [ANN] Unicode compliant Chooser Widgets available Message-ID: <54C590EF.3010506@howsoft.com> Over the years, many of you have downloaded my "File/Folder/Picture Chooser Widgets" for Linux and Windows, which work only in English. Well now, thanks to LiveCode 7.0.1, a Unicode Compliant (international) Edition is available. Here are the relevant links: GENERAL DESCRIPTION: http://www.howsoft.com/runrev/runrev_stacks_index.htm DOWNLOADS: http://www.howsoft.com/runrev/downloads/ LINUX HELP: http://www.howsoft.com/runrev/linchoosers/ WINDOWS HELP: http://www.howsoft.com/runrev/winchoosers/ Also, see the "readme.txt" that comes with the download. As a precaution, I have given these widgets "Beta" status. Please test them to your satisfaction before distributing them. Regards to all, Bob Warren P.S. When using the Unicode Demo, note that the widget output files are now "_file_chooser_choice.htm" and "_picture_chooser_choice.htm" rather than "_file_chooser_choice.txt" and "_picture_chooser_choice.txt" as shown. The latter file names are for the Legacy version. Apologies. From peterwawood at gmail.com Sun Jan 25 20:08:52 2015 From: peterwawood at gmail.com (Peter W A Wood) Date: Mon, 26 Jan 2015 09:08:52 +0800 Subject: Unicode In-Reply-To: References: Message-ID: <6078DFAC-E4F9-4E52-854E-DDA937F21091@gmail.com> Pete LiveCode 7+ stores text data encoded according to UTF-16 so, as I understand, you will need to convert the UTF-8 encoded data using the textEncode function. Regards Peter > On 26 Jan 2015, at 06:45, Peter Haworth wrote: > > Is there a lesson/guide anywhere that shows how to use unicode in LC 7? > > All I need to do is SELECT data from an UTF8 encoded SQLite > database/display it in fields/datagrid and read input from fields/ > INSERT/UPDATE it to the database. > > I've got things working using unicodeText/uniencode/unidecode in LC 6.6 but > wondering how things work in 7. Or even if it's worthwhile even using LC 7 > for something as simple as this. > > The LC7 release notes document all the new properties/commands but don't > have any examples for straightforward use. Am I right in thinking that I > don't need to use unicodeText/uniencode/unidecode in LC7 to do the above > tasks? Just simple put into field/put field into var is all I need? > > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dochawk at gmail.com Sun Jan 25 20:19:29 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Sun, 25 Jan 2015 17:19:29 -0800 Subject: changing layer within a group by script/ speed of "start editing" Message-ID: I have a group with four overlapping graphics. Depending upon what happens, different ones want to be brought to the top and change the overlap. I'm currently using start editing/set the layer of zzz to top/stop editing. I think it also changes the size. I can actually see the order in which this is handled on an iphone 6+. Fast, but visible. Is start editing "expensive"? Is there a better way to do this? I suppose I could skip the group and catch their handlers in the card or stack instead of the group, but . . . -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From eric at canelasoftware.com Sun Jan 25 20:28:26 2015 From: eric at canelasoftware.com (Eric Corbett) Date: Sun, 25 Jan 2015 17:28:26 -0800 Subject: changing layer within a group by script/ speed of "start editing" In-Reply-To: References: Message-ID: <19BD000D-548E-4A54-9813-65EBFB389FB6@canelasoftware.com> Try using the relayer command; relayer grc 1 of grp x after grc 2 of grp x You don't need to start editing with relayer, but you need to be careful not to relayer an object to outside the group. HTH Eric > On Jan 25, 2015, at 17:19, Dr. Hawkins wrote: > > I have a group with four overlapping graphics. > > Depending upon what happens, different ones want to be brought to the top > and change the overlap. > > I'm currently using start editing/set the layer of zzz to top/stop > editing. I think it also changes the size. > > I can actually see the order in which this is handled on an iphone 6+. > Fast, but visible. > > Is start editing "expensive"? Is there a better way to do this? > > > I suppose I could skip the group and catch their handlers in the card or > stack instead of the group, but . . . > -- > Dr. Richard E. Hawkins, Esq. > (702) 508-8462 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From scott at tactilemedia.com Sun Jan 25 20:30:53 2015 From: scott at tactilemedia.com (Scott Rossi) Date: Sun, 25 Jan 2015 17:30:53 -0800 Subject: changing layer within a group by script/ speed of "start editing" In-Reply-To: References: Message-ID: <1CE90A40-10CA-44E0-A14C-86A21CC1C905@tactilemedia.com> Try locking the screen before doing any object relayering. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On Jan 25, 2015, at 5:19 PM, Dr. Hawkins wrote: > I have a group with four overlapping graphics. > > Depending upon what happens, different ones want to be brought to the top > and change the overlap. > > I'm currently using start editing/set the layer of zzz to top/stop > editing. I think it also changes the size. > > I can actually see the order in which this is handled on an iphone 6+. > Fast, but visible. > > Is start editing "expensive"? Is there a better way to do this? > > > I suppose I could skip the group and catch their handlers in the card or > stack instead of the group, but . . . > -- > Dr. Richard E. Hawkins, Esq. > (702) 508-8462 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pete at lcsql.com Sun Jan 25 21:15:10 2015 From: pete at lcsql.com (Peter Haworth) Date: Sun, 25 Jan 2015 18:15:10 -0800 Subject: Unicode In-Reply-To: <6078DFAC-E4F9-4E52-854E-DDA937F21091@gmail.com> References: <6078DFAC-E4F9-4E52-854E-DDA937F21091@gmail.com> Message-ID: Thanks Peter. If that's the case, I'm not seeing much in the way of a coding advantage over pre 7.0. Sounds like using textEncode/textDecode instaed of uniencode/unidecode? That does answer another question I had though which is what is needed if the database is UTF-16 encoded. Sounds like nothing needs to be done. I guess I'll have to set up some tests. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Sun, Jan 25, 2015 at 5:08 PM, Peter W A Wood wrote: > Pete > > LiveCode 7+ stores text data encoded according to UTF-16 so, as I > understand, you will need to convert the UTF-8 encoded data using the > textEncode function. > > Regards > > Peter > > > > On 26 Jan 2015, at 06:45, Peter Haworth wrote: > > > > Is there a lesson/guide anywhere that shows how to use unicode in LC 7? > > > > All I need to do is SELECT data from an UTF8 encoded SQLite > > database/display it in fields/datagrid and read input from fields/ > > INSERT/UPDATE it to the database. > > > > I've got things working using unicodeText/uniencode/unidecode in LC 6.6 > but > > wondering how things work in 7. Or even if it's worthwhile even using > LC 7 > > for something as simple as this. > > > > The LC7 release notes document all the new properties/commands but don't > > have any examples for straightforward use. Am I right in thinking that I > > don't need to use unicodeText/uniencode/unidecode in LC7 to do the above > > tasks? Just simple put into field/put field into var is all I need? > > > > Pete > > lcSQL Software > > Home of lcStackBrowser and > > SQLiteAdmin > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From peterwawood at gmail.com Mon Jan 26 00:33:32 2015 From: peterwawood at gmail.com (Peter W A Wood) Date: Mon, 26 Jan 2015 13:33:32 +0800 Subject: Unicode In-Reply-To: References: <6078DFAC-E4F9-4E52-854E-DDA937F21091@gmail.com> Message-ID: Pete I think the real coding advantage with Unicode in 7+ comes when processing text. Personally, I think that it is safer to stick with UTF-8 encoding for external data as it is the only encoding format that you don?t need to worry about processor ?endianness?. Regards Peter > On 26 Jan 2015, at 10:15, Peter Haworth wrote: > > Thanks Peter. If that's the case, I'm not seeing much in the way of a > coding advantage over pre 7.0. Sounds like using textEncode/textDecode > instaed of uniencode/unidecode? > > That does answer another question I had though which is what is needed if > the database is UTF-16 encoded. Sounds like nothing needs to be done. I > guess I'll have to set up some tests. > > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin > > On Sun, Jan 25, 2015 at 5:08 PM, Peter W A Wood > wrote: > >> Pete >> >> LiveCode 7+ stores text data encoded according to UTF-16 so, as I >> understand, you will need to convert the UTF-8 encoded data using the >> textEncode function. >> >> Regards >> >> Peter >> >> >>> On 26 Jan 2015, at 06:45, Peter Haworth wrote: >>> >>> Is there a lesson/guide anywhere that shows how to use unicode in LC 7? >>> >>> All I need to do is SELECT data from an UTF8 encoded SQLite >>> database/display it in fields/datagrid and read input from fields/ >>> INSERT/UPDATE it to the database. >>> >>> I've got things working using unicodeText/uniencode/unidecode in LC 6.6 >> but >>> wondering how things work in 7. Or even if it's worthwhile even using >> LC 7 >>> for something as simple as this. >>> >>> The LC7 release notes document all the new properties/commands but don't >>> have any examples for straightforward use. Am I right in thinking that I >>> don't need to use unicodeText/uniencode/unidecode in LC7 to do the above >>> tasks? Just simple put into field/put field into var is all I need? >>> >>> Pete >>> lcSQL Software >>> Home of lcStackBrowser and >>> SQLiteAdmin >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From fraser.gordon at livecode.com Mon Jan 26 06:42:25 2015 From: fraser.gordon at livecode.com (Fraser Gordon) Date: Mon, 26 Jan 2015 11:42:25 +0000 Subject: Unicode In-Reply-To: References: <6078DFAC-E4F9-4E52-854E-DDA937F21091@gmail.com> Message-ID: <5599BE2D-7AE8-4362-870E-AF6CBF3B98D0@livecode.com> On 26 Jan 2015, at 02:15, Peter Haworth wrote: > Thanks Peter. If that's the case, I'm not seeing much in the way of a > coding advantage over pre 7.0. Sounds like using textEncode/textDecode > instaed of uniencode/unidecode? Assuming you have UTF-8 encoded data from a source outside LiveCode: local tUTF8Data ? This is binary data local tString ? This is a textual string put textDecode(tUTF8Data, ?UTF-8?) into tString The important difference is that uniEncode becomes textDecode - because you are decoding some binary data to text. The big difference between 7.0 and previous versions is that Unicode text works everywhere - you don?t need to use special Unicode properties or commands any more. > > That does answer another question I had though which is what is needed if > the database is UTF-16 encoded. Sounds like nothing needs to be done. I > guess I'll have to set up some tests. If your external data is UTF-16 you still need to textDecode it - if you don?t, it will treat the data as 8-bit text and you?ll get corrupted text back. This 8-bit default is necessary from a backwards compatibility point of view - if we changed it to accept UTF-16 by default, anyone who gets text from an external source and doesn?t textDecode it will suddenly find that their stacks don?t work. One way of looking at things is that all external interfaces (files, processes, etc) return binary data and you need to do something to turn that into text (textDecode) and you need to turn your text into binary data when writing to them (textEncode). By using something like UTF-8 as an encoding, it also avoids the problems that occur because the ?native? encoding differs between our platforms - it is MacRoman on OSX, CP1252 on Windows and ISO-8859-1 on Linux. Regards, Fraser From bobsneidar at iotecdigital.com Mon Jan 26 10:47:26 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 26 Jan 2015 15:47:26 +0000 Subject: IP Calculator Final Version References: <159357CC-8C42-4979-989A-E7D644A993A9@iotecdigital.com> Message-ID: Hi all. Mike Doub has offered to include this in the MasterLibrary, so I went through and added what I think is fairly comprehensive error checking to make sure that bogus input values return a descriptive error message. If any of you feel so inclined, please try to make it fail using incorrect input values. Also make sure that it returns the correct values for correct input values. I have already done this but as you are well aware, developers can easily miss things others can see. Bob S > Begin forwarded message: > > function IPCalc theIPAddress, theSubnetMask > /* IPCalc yyy > Syntax: > IPCalc theIPAddress, [theSubnetMask] > Examples: > > Description: > Derive Internet values from either CIDR notation in the IPAddress > or a standard IP and subnet mask > > Input: > . theIPAddress - the IP address in CIDR notation > or > . theIPAddress - a standard IP address and > . theSubNetMask - a standard subNetMask > > Returns an array of the following values: > . bcastaddr > . cidraddr > . cidrdepth > . firstaddr > . ipaddress > . lastaddr > . subnetaddr > . subnetmask > . usablecount > Returns a string beginning with ERROR: if the parameters are out of range > Check that the returned value is an array to see if there was an error > > Source: > Bob Sneidar, slylabs13 at icloud.com > IPCalc */ > > set the itemdelimiter to "." > > -- check parameters > -- the IP address must be 4 octets of numbers > if the last char of theIPAddress is "." then > delete the last char of theIPAddress > end if > > if the number of items of theIPAddress <>4 then > return "ERROR: The IP Address must contain 4 octets. (ipaddress = " & theIPAddress & ")" > end if > > -- initial setup > set the numberFormat to "00000000" > > -- detemine format > if theIPAddress contains "/" then > put offset("/", theIPAddress) into theCIDRDelim > put char theCIDRDelim +1 to -1 of theIPAddress into theCIDRDepth > > -- CIDR depth must be a number > if theCIDRDepth is not a number then > return "ERROR: The CIDR Depth must be a number between 1 and 30. " & \ > "(CIDRDepth = " & theCIDRDepth & ")" > end if > > put charx("1", theCIDRDepth) & charx("0", 32-theCIDRDepth) into theBinSubnetMask > put baseconvert(char 1 to 8 of theBinSubnetMask, 2, 10) into item 1 of theSubnetMask > put baseconvert(char 9 to 16 of theBinSubnetMask, 2, 10) into item 2 of theSubnetMask > put baseconvert(char 17 to 24 of theBinSubnetMask, 2, 10) into item 3 of theSubnetMask > put baseconvert(char 25 to 32 of theBinSubnetMask, 2, 10) into item 4 of theSubnetMask > put char 1 to theCIDRDelim -1 of theIPAddress into theIPAddress > else > -- subnet mask octets must be 4 numbers between 0 and 255 > -- and all octets after the first octet less than 255 must be 0 > > if the last char of theSubnetMask is "." then > delete the last char of theSubnetMask > end if > > if the number of items of theSubnetMask <>4 then > return "ERROR: The Subnet Mask must contain 4 numbers between 0 and 255 " & \ > "separated by periods. (subnetmask = " & theSubnetMask & ")" > end if > > put false into mustBeZero > repeat for each item theOctet in theSubnetMask > > if theOctet <0 or theOctet >255 then > return "Each octet in the subnet mask must be a number between 0 and 255. " & \ > "(subnetmask = " & theSubnetMask & ")" > end if > > if mustBeZero and theOctet >0 then > return "ERROR: All octets after an octet less than 255 must be 0. " & \ > "(subnetmask = " & theSubnetMask & ")" > end if > > if theOctet <255 then > put true into mustBeZero > end if > end repeat > > -- convert the subnet mask to binary > put 0 into whichOctet > repeat for each item theOctet in theSubnetMask > add 1 to whichOctet > > -- subnet mask must contain only 4 octets > if whichOctet >4 then > return "ERROR: The Subnet Mask must contain 4 numbers between 0 and 255 " & \ > "separated by periods. (subnetmask = " & theSubnetMask & ")" > end if > > put value(baseConvert(theOctet, 10, 2)) after theBinSubnetMask > end repeat > put offset("0", theBinSubnetMask) -1 into theCIDRDepth > end if > > -- CIDR depth must be between 1 and 30 > if theCIDRDepth <1 or theCIDRDepth >30 then > return "ERROR: The CIDR Depth must be between 1 and 30. " & \ > "(CIDRDepth = " & theCIDRDepth & ")" > end if > > -- All octets of the IP address must be between 0 and 255 > repeat for each item theOctet in theIPAddress > if theOctet <0 or theOctet >255 then > return "ERROR: Each IP Address octet must be a number between 0 and 255. " & \ > "(ipaddress = " & theIPAddress & ")" > end if > end repeat > > -- convert the ip address to binary > put 0 into whichOctet > repeat for each item theOctet in theIPAddress > add 1 to whichOctet > put baseConvert(theOctet, 10, 2) into theBinValue > add 0 to theBinValue > put theBinValue after theBinIPAddress > end repeat > > -- calculate the binary subnet address > put char 1 to theCIDRDepth of theBinIPAddress into theBinNetworkAddr > put char theCIDRDepth +1 to -1 of theBinIPAddress into theBinNodeAddr > put theBinNodeAddr into theBinSubnetNodeAddr > set the numberFormat to "0" > replace "1" with "0" in theBinSubnetNodeAddr > put theBinNetworkAddr & theBinSubnetNodeAddr into theBinSubnetAddr > > -- convert the binary subnet address to decimal > put baseconvert(char 1 to 8 of theBinSubnetAddr, 2, 10) into item 1 of theSubnetAddr > put baseconvert(char 9 to 16 of theBinSubnetAddr, 2, 10) into item 2 of theSubnetAddr > put baseconvert(char 17 to 24 of theBinSubnetAddr, 2, 10) into item 3 of theSubnetAddr > put baseconvert(char 25 to 32 of theBinSubnetAddr, 2, 10) into item 4 of theSubnetAddr > > -- calculate the first usable IP address > put theSubnetAddr into theFirstAddr > add 1 to item 4 of theFirstAddr > > -- calculate the binary broadcast address > put theBinNodeAddr into theBinBcastNodeAddr > replace "0" with "1" in theBinBcastNodeAddr > put theBinNetworkAddr & theBinBcastNodeAddr into theBinBcastAddr > > -- convert the binary broadcast address to decimal > put baseconvert(char 1 to 8 of theBinBcastAddr, 2, 10) into item 1 of theBcastAddr > put baseconvert(char 9 to 16 of theBinBcastAddr, 2, 10) into item 2 of theBcastAddr > put baseconvert(char 17 to 24 of theBinBcastAddr, 2, 10) into item 3 of theBcastAddr > put baseconvert(char 25 to 32 of theBinBcastAddr, 2, 10) into item 4 of theBcastAddr > > -- calculate the last usable IP address > put theBcastAddr into theLastAddr > subtract 1 from item 4 of theLastAddr > > -- calculate the number of usable addresses > -- put item 4 of theLastAddr - item 4 of theFirstAddr +1 into theAddrCount > put baseconvert(theBinBcastNodeAddr, 2, 10) -1 into theAddrCount > > -- calculate the CIDR notation > put theIPAddress & "/" & theCIDRDepth into theCIDRAddr > > -- create array > put theIPAddress into ipdata ["ipaddress"] > put theSubnetMask into ipdata ["subnetmask"] > put theSubnetAddr into ipdata ["subnetaddr"] > put theFirstAddr into ipdata ["firstaddr"] > put theBcastAddr into ipdata["bcastaddr"] > put theLastAddr into ipdata ["lastaddr"] > put theCIDRDepth into ipdata ["cidrdepth"] > put theAddrCount into ipdata ["usablecount"] > put theCIDRAddr into ipdata ["cidraddr"] > return ipdata > end IPCalc From bobsneidar at iotecdigital.com Mon Jan 26 10:55:14 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 26 Jan 2015 15:55:14 +0000 Subject: Getting the scroll and clickloc of a browser object In-Reply-To: References: Message-ID: Except replace the question mark with the correct quote mark. I think Scott?s email app is replacing standard quotes with smart quotes which are getting lost in the translation. Bob S On Jan 24, 2015, at 13:00 , Michael Julian Lew > wrote: If you?re using a browser object, I believe this is what you want: put revBrowserGet(theBrowserId, ?vscroll") into theVScrollAmount From devin_asay at byu.edu Mon Jan 26 12:01:07 2015 From: devin_asay at byu.edu (Devin Asay) Date: Mon, 26 Jan 2015 17:01:07 +0000 Subject: Unicode In-Reply-To: <5599BE2D-7AE8-4362-870E-AF6CBF3B98D0@livecode.com> References: <6078DFAC-E4F9-4E52-854E-DDA937F21091@gmail.com> <5599BE2D-7AE8-4362-870E-AF6CBF3B98D0@livecode.com> Message-ID: On Jan 26, 2015, at 4:42 AM, Fraser Gordon wrote: > > On 26 Jan 2015, at 02:15, Peter Haworth wrote: > >> Thanks Peter. If that's the case, I'm not seeing much in the way of a >> coding advantage over pre 7.0. Sounds like using textEncode/textDecode >> instaed of uniencode/unidecode? > > Assuming you have UTF-8 encoded data from a source outside LiveCode: > > local tUTF8Data ? This is binary data > local tString ? This is a textual string > put textDecode(tUTF8Data, ?UTF-8?) into tString > > The important difference is that uniEncode becomes textDecode - because you are decoding some binary data to text. > > The big difference between 7.0 and previous versions is that Unicode text works everywhere - you don?t need to use special Unicode properties or commands any more. > >> >> That does answer another question I had though which is what is needed if >> the database is UTF-16 encoded. Sounds like nothing needs to be done. I >> guess I'll have to set up some tests. > > If your external data is UTF-16 you still need to textDecode it - if you don?t, it will treat the data as 8-bit text and you?ll get corrupted text back. This 8-bit default is necessary from a backwards compatibility point of view - if we changed it to accept UTF-16 by default, anyone who gets text from an external source and doesn?t textDecode it will suddenly find that their stacks don?t work. > > One way of looking at things is that all external interfaces (files, processes, etc) return binary data and you need to do something to turn that into text (textDecode) and you need to turn your text into binary data when writing to them (textEncode). By using something like UTF-8 as an encoding, it also avoids the problems that occur because the ?native? encoding differs between our platforms - it is MacRoman on OSX, CP1252 on Windows and ISO-8859-1 on Linux. > > Regards, > Fraser It would be great if there were a stack property we could set that would specify what format outputted text would be. The default could be ?native?; i.e., the native encoding for the platform, but then we could set it to things like ?utf8? or ?utf16? or ?ISO?. It would essentially do the textEncode/decode for us. Is this an idea that appeals to folks here? Devin Devin Asay Office of Digital Humanities Brigham Young University From cs_livecode at icloud.com Mon Jan 26 12:23:42 2015 From: cs_livecode at icloud.com (Chris Sheffield) Date: Mon, 26 Jan 2015 10:23:42 -0700 Subject: semi-OT: TestFlight.com beta testing closing Message-ID: Just thought I?d throw this out there. Sounds like Apple is killing the TestFlight.com beta testing site in favor of their newer TestFlight service. http://www.idownloadblog.com/2015/01/26/apple-closing-old-beta-testing-test-flight/ Kind of cruddy, imo. Especially because Apple?s new version of the service only supports devices running iOS 8+, which means no more testing apps on older devices, or even on newer devices running older versions of iOS. Their TestFlight app won?t even install unless iOS 8 is installed on the device. In the education market, we need to be able to test different configurations. I was kind of hoping they would leave this service running a bit longer. We may have to look for something else. Does anyone know of other beta testing services that work similar to TestFlight? Also, the last time I checked into using TestFlight in iTunes Connect, I could not get a LiveCode-built app to work correctly. I kept getting a warning about missing entitlements. Does anyone know if this is fixed yet? I haven?t tried it recently. Thanks, Chris -- Chris Sheffield Read Naturally, Inc. www.readnaturally.com From pete at lcsql.com Mon Jan 26 12:27:38 2015 From: pete at lcsql.com (Peter Haworth) Date: Mon, 26 Jan 2015 09:27:38 -0800 Subject: Unicode In-Reply-To: <5599BE2D-7AE8-4362-870E-AF6CBF3B98D0@livecode.com> References: <6078DFAC-E4F9-4E52-854E-DDA937F21091@gmail.com> <5599BE2D-7AE8-4362-870E-AF6CBF3B98D0@livecode.com> Message-ID: On Mon, Jan 26, 2015 at 3:42 AM, Fraser Gordon wrote: > One way of looking at things is that all external interfaces (files, > processes, etc) return binary data and you need to do something to turn > that into text (textDecode) and you need to turn your text into binary data > when writing to them (textEncode). By using something like UTF-8 as an > encoding, it also avoids the problems that occur because the ?native? > encoding differs between our platforms - it is MacRoman on OSX, CP1252 on > Windows and ISO-8859-1 on Linux. Thanks Fraser, I like that explanation, plus it answers the next question I had regarding ISOToMac/MacToISO. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From pete at lcsql.com Mon Jan 26 12:38:39 2015 From: pete at lcsql.com (Peter Haworth) Date: Mon, 26 Jan 2015 09:38:39 -0800 Subject: 7.0.2 RC1 Crashes and Corrupts Stack Files In-Reply-To: <54C3FD25.6010008@gmail.com> References: <54C2E74D.1010608@LinkIt.Com> <54C3FD25.6010008@gmail.com> Message-ID: Seems like most of the problems with the player control have been in LC 7 but I'm seeing issues in 6.7. Hard hang in circumstances I haven't quite nailed down yet. Command-period doesn't work and have to force quit. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Sat, Jan 24, 2015 at 12:14 PM, Richmond wrote: > On 24/01/15 02:29, Ray wrote: > >> On my Windows 8.1 system I do the following: >> >> 1) create a new main stack >> 2) drag a player object onto it >> 3) remove the default fileName (source) >> 4) save the stack file >> >> At this point I get "Livecode has stopped working". With no other >> options I close the program and find my entire stack file has been >> corrupted and will not re-open. >> >> Anybody know anything about this? >> >> > I just tried this (sorry, late to the party) with 7.0.2 rc1 on Ubuntu > Studio 14.10 > and it crashed the IDE . . . > > I looked here: /home/richmond/.runrev/crashlogs but the directory was > empty > > as was: /home/richmond/.runrev/logs > > Richmond. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From mikedoub at gmail.com Mon Jan 26 12:50:43 2015 From: mikedoub at gmail.com (Michael Doub) Date: Mon, 26 Jan 2015 12:50:43 -0500 Subject: IP Calculator Final Version In-Reply-To: References: <159357CC-8C42-4979-989A-E7D644A993A9@iotecdigital.com> Message-ID: <54C67E73.20000@gmail.com> Here is the version of the MasterLibrary (version 22) with Bob's IP Calculator integrated. https://www.dropbox.com/s/3wpwn3hfbmpl7sk/MasterLibrary.livecode?dl=0 Enjoy... Mike On 1/26/15 10:47 AM, Bob Sneidar wrote: > Hi all. > > Mike Doub has offered to include this in the MasterLibrary, so I went through and added what I think is fairly comprehensive error checking to make sure that bogus input values return a descriptive error message. If any of you feel so inclined, please try to make it fail using incorrect input values. Also make sure that it returns the correct values for correct input values. > > I have already done this but as you are well aware, developers can easily miss things others can see. > > Bob S > > > >> Begin forwarded message: >> >> function IPCalc theIPAddress, theSubnetMask >> /* IPCalc yyy >> Syntax: >> IPCalc theIPAddress, [theSubnetMask] >> Examples: >> >> Description: >> Derive Internet values from either CIDR notation in the IPAddress >> or a standard IP and subnet mask >> >> Input: >> . theIPAddress - the IP address in CIDR notation >> or >> . theIPAddress - a standard IP address and >> . theSubNetMask - a standard subNetMask >> >> Returns an array of the following values: >> . bcastaddr >> . cidraddr >> . cidrdepth >> . firstaddr >> . ipaddress >> . lastaddr >> . subnetaddr >> . subnetmask >> . usablecount >> Returns a string beginning with ERROR: if the parameters are out of range >> Check that the returned value is an array to see if there was an error >> >> Source: >> Bob Sneidar, slylabs13 at icloud.com >> IPCalc */ >> >> set the itemdelimiter to "." >> >> -- check parameters >> -- the IP address must be 4 octets of numbers >> if the last char of theIPAddress is "." then >> delete the last char of theIPAddress >> end if >> >> if the number of items of theIPAddress <>4 then >> return "ERROR: The IP Address must contain 4 octets. (ipaddress = " & theIPAddress & ")" >> end if >> >> -- initial setup >> set the numberFormat to "00000000" >> >> -- detemine format >> if theIPAddress contains "/" then >> put offset("/", theIPAddress) into theCIDRDelim >> put char theCIDRDelim +1 to -1 of theIPAddress into theCIDRDepth >> >> -- CIDR depth must be a number >> if theCIDRDepth is not a number then >> return "ERROR: The CIDR Depth must be a number between 1 and 30. " & \ >> "(CIDRDepth = " & theCIDRDepth & ")" >> end if >> >> put charx("1", theCIDRDepth) & charx("0", 32-theCIDRDepth) into theBinSubnetMask >> put baseconvert(char 1 to 8 of theBinSubnetMask, 2, 10) into item 1 of theSubnetMask >> put baseconvert(char 9 to 16 of theBinSubnetMask, 2, 10) into item 2 of theSubnetMask >> put baseconvert(char 17 to 24 of theBinSubnetMask, 2, 10) into item 3 of theSubnetMask >> put baseconvert(char 25 to 32 of theBinSubnetMask, 2, 10) into item 4 of theSubnetMask >> put char 1 to theCIDRDelim -1 of theIPAddress into theIPAddress >> else >> -- subnet mask octets must be 4 numbers between 0 and 255 >> -- and all octets after the first octet less than 255 must be 0 >> >> if the last char of theSubnetMask is "." then >> delete the last char of theSubnetMask >> end if >> >> if the number of items of theSubnetMask <>4 then >> return "ERROR: The Subnet Mask must contain 4 numbers between 0 and 255 " & \ >> "separated by periods. (subnetmask = " & theSubnetMask & ")" >> end if >> >> put false into mustBeZero >> repeat for each item theOctet in theSubnetMask >> >> if theOctet <0 or theOctet >255 then >> return "Each octet in the subnet mask must be a number between 0 and 255. " & \ >> "(subnetmask = " & theSubnetMask & ")" >> end if >> >> if mustBeZero and theOctet >0 then >> return "ERROR: All octets after an octet less than 255 must be 0. " & \ >> "(subnetmask = " & theSubnetMask & ")" >> end if >> >> if theOctet <255 then >> put true into mustBeZero >> end if >> end repeat >> >> -- convert the subnet mask to binary >> put 0 into whichOctet >> repeat for each item theOctet in theSubnetMask >> add 1 to whichOctet >> >> -- subnet mask must contain only 4 octets >> if whichOctet >4 then >> return "ERROR: The Subnet Mask must contain 4 numbers between 0 and 255 " & \ >> "separated by periods. (subnetmask = " & theSubnetMask & ")" >> end if >> >> put value(baseConvert(theOctet, 10, 2)) after theBinSubnetMask >> end repeat >> put offset("0", theBinSubnetMask) -1 into theCIDRDepth >> end if >> >> -- CIDR depth must be between 1 and 30 >> if theCIDRDepth <1 or theCIDRDepth >30 then >> return "ERROR: The CIDR Depth must be between 1 and 30. " & \ >> "(CIDRDepth = " & theCIDRDepth & ")" >> end if >> >> -- All octets of the IP address must be between 0 and 255 >> repeat for each item theOctet in theIPAddress >> if theOctet <0 or theOctet >255 then >> return "ERROR: Each IP Address octet must be a number between 0 and 255. " & \ >> "(ipaddress = " & theIPAddress & ")" >> end if >> end repeat >> >> -- convert the ip address to binary >> put 0 into whichOctet >> repeat for each item theOctet in theIPAddress >> add 1 to whichOctet >> put baseConvert(theOctet, 10, 2) into theBinValue >> add 0 to theBinValue >> put theBinValue after theBinIPAddress >> end repeat >> >> -- calculate the binary subnet address >> put char 1 to theCIDRDepth of theBinIPAddress into theBinNetworkAddr >> put char theCIDRDepth +1 to -1 of theBinIPAddress into theBinNodeAddr >> put theBinNodeAddr into theBinSubnetNodeAddr >> set the numberFormat to "0" >> replace "1" with "0" in theBinSubnetNodeAddr >> put theBinNetworkAddr & theBinSubnetNodeAddr into theBinSubnetAddr >> >> -- convert the binary subnet address to decimal >> put baseconvert(char 1 to 8 of theBinSubnetAddr, 2, 10) into item 1 of theSubnetAddr >> put baseconvert(char 9 to 16 of theBinSubnetAddr, 2, 10) into item 2 of theSubnetAddr >> put baseconvert(char 17 to 24 of theBinSubnetAddr, 2, 10) into item 3 of theSubnetAddr >> put baseconvert(char 25 to 32 of theBinSubnetAddr, 2, 10) into item 4 of theSubnetAddr >> >> -- calculate the first usable IP address >> put theSubnetAddr into theFirstAddr >> add 1 to item 4 of theFirstAddr >> >> -- calculate the binary broadcast address >> put theBinNodeAddr into theBinBcastNodeAddr >> replace "0" with "1" in theBinBcastNodeAddr >> put theBinNetworkAddr & theBinBcastNodeAddr into theBinBcastAddr >> >> -- convert the binary broadcast address to decimal >> put baseconvert(char 1 to 8 of theBinBcastAddr, 2, 10) into item 1 of theBcastAddr >> put baseconvert(char 9 to 16 of theBinBcastAddr, 2, 10) into item 2 of theBcastAddr >> put baseconvert(char 17 to 24 of theBinBcastAddr, 2, 10) into item 3 of theBcastAddr >> put baseconvert(char 25 to 32 of theBinBcastAddr, 2, 10) into item 4 of theBcastAddr >> >> -- calculate the last usable IP address >> put theBcastAddr into theLastAddr >> subtract 1 from item 4 of theLastAddr >> >> -- calculate the number of usable addresses >> -- put item 4 of theLastAddr - item 4 of theFirstAddr +1 into theAddrCount >> put baseconvert(theBinBcastNodeAddr, 2, 10) -1 into theAddrCount >> >> -- calculate the CIDR notation >> put theIPAddress & "/" & theCIDRDepth into theCIDRAddr >> >> -- create array >> put theIPAddress into ipdata ["ipaddress"] >> put theSubnetMask into ipdata ["subnetmask"] >> put theSubnetAddr into ipdata ["subnetaddr"] >> put theFirstAddr into ipdata ["firstaddr"] >> put theBcastAddr into ipdata["bcastaddr"] >> put theLastAddr into ipdata ["lastaddr"] >> put theCIDRDepth into ipdata ["cidrdepth"] >> put theAddrCount into ipdata ["usablecount"] >> put theCIDRAddr into ipdata ["cidraddr"] >> return ipdata >> end IPCalc > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ray at linkit.com Mon Jan 26 13:40:11 2015 From: ray at linkit.com (Ray) Date: Mon, 26 Jan 2015 15:40:11 -0300 Subject: 7.0.2 RC1 Crashes and Corrupts Stack Files In-Reply-To: References: <54C2E74D.1010608@LinkIt.Com> <54C3FD25.6010008@gmail.com> Message-ID: <54C68A0B.3080007@LinkIt.Com> Exactly - this is actually under two different bug reports now, #14437 and #14449. I realized after adding to the 2nd report that I'm also not able to 'see' Quicktime movies, even in 6.5.2, when assigning a new Source to a player. Hopefully all these things will be addressed when the team at Livecode looks into these bugs. Thanks... On 1/26/2015 2:38 PM, Peter Haworth wrote: > Seems like most of the problems with the player control have been in LC 7 > but I'm seeing issues in 6.7. > > Hard hang in circumstances I haven't quite nailed down yet. Command-period > doesn't work and have to force quit. > > > > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin > > On Sat, Jan 24, 2015 at 12:14 PM, Richmond > wrote: > >> On 24/01/15 02:29, Ray wrote: >> >>> On my Windows 8.1 system I do the following: >>> >>> 1) create a new main stack >>> 2) drag a player object onto it >>> 3) remove the default fileName (source) >>> 4) save the stack file >>> >>> At this point I get "Livecode has stopped working". With no other >>> options I close the program and find my entire stack file has been >>> corrupted and will not re-open. >>> >>> Anybody know anything about this? >>> >>> >> I just tried this (sorry, late to the party) with 7.0.2 rc1 on Ubuntu >> Studio 14.10 >> and it crashed the IDE . . . >> >> I looked here: /home/richmond/.runrev/crashlogs but the directory was >> empty >> >> as was: /home/richmond/.runrev/logs >> >> Richmond. >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From gcanyon at gmail.com Mon Jan 26 13:54:24 2015 From: gcanyon at gmail.com (Geoff Canyon) Date: Mon, 26 Jan 2015 12:54:24 -0600 Subject: changing layer within a group by script/ speed of "start editing" In-Reply-To: <1CE90A40-10CA-44E0-A14C-86A21CC1C905@tactilemedia.com> References: <1CE90A40-10CA-44E0-A14C-86A21CC1C905@tactilemedia.com> Message-ID: set relayergroupedcontrols to true set the layer of to On Sun, Jan 25, 2015 at 7:30 PM, Scott Rossi wrote: > Try locking the screen before doing any object relayering. > > Regards, > > Scott Rossi > Creative Director > Tactile Media, UX/UI Design > > On Jan 25, 2015, at 5:19 PM, Dr. Hawkins wrote: > > > I have a group with four overlapping graphics. > > > > Depending upon what happens, different ones want to be brought to the top > > and change the overlap. > > > > I'm currently using start editing/set the layer of zzz to top/stop > > editing. I think it also changes the size. > > > > I can actually see the order in which this is handled on an iphone 6+. > > Fast, but visible. > > > > Is start editing "expensive"? Is there a better way to do this? > > > > > > I suppose I could skip the group and catch their handlers in the card or > > stack instead of the group, but . . . > > -- > > Dr. Richard E. Hawkins, Esq. > > (702) 508-8462 > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ambassador at fourthworld.com Mon Jan 26 14:08:18 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 26 Jan 2015 11:08:18 -0800 Subject: Server performance issues: Dreamhost only? Message-ID: <54C690A2.4050705@fourthworld.com> We've seen reports of serious performance issues with running LiveCode Server 7.x on Dreamhost. I'm working with Peter Brett at RunRev to try to resolve these, and there's one detail that would be very useful to know: While we see relatively minor speed differences on the desktop, running LiveCode Serve on Dreamhost has resulted in requests taking as long as several seconds, far beyond anything we can account for in the engine itself. Have any of you seen order-of-magnitude speed loss when running LiveCode Server on any host other than Dreamhost? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From coiin at verizon.net Mon Jan 26 14:33:03 2015 From: coiin at verizon.net (Colin Holgate) Date: Mon, 26 Jan 2015 19:33:03 +0000 Subject: semi-OT: TestFlight.com beta testing closing In-Reply-To: References: Message-ID: With Adobe AIR you have added this to the app descriptor XML: get-task-allowbeta-reports-active]]> That then ends up in the embedded provisioning profile. Not sure of the steps for LiveCode. Test Flight?s URL is https://www.testflightapp.com/ , but as you say, it closes on Feb 26th. If you have an HTTPS site you can post builds for your testers, but those would just be from your list of 100, not from the Test Flight 1000 external testers. From alex at tweedly.net Mon Jan 26 15:14:54 2015 From: alex at tweedly.net (Alex Tweedly) Date: Mon, 26 Jan 2015 20:14:54 +0000 Subject: IP Calculator Final Version In-Reply-To: References: <159357CC-8C42-4979-989A-E7D644A993A9@iotecdigital.com> Message-ID: <54C6A03E.9060603@tweedly.net> On 26/01/2015 15:47, Bob Sneidar wrote: > Hi all. > > Mike Doub has offered to include this in the MasterLibrary, so I went through and added what I think is fairly comprehensive error checking to make sure that bogus input values return a descriptive error message. If any of you feel so inclined, please try to make it fail using incorrect input values. Also make sure that it returns the correct values for correct input values. > > I have already done this but as you are well aware, developers can easily miss things others can see. > > Bob S A couple of error cases that aren't caught gracefully 192.168.1/24.1 192.168..1/24 One that is accepted and shouldn't be 192.168.1.1/24. (note the trailing ".") Also, not sure why you limit CIDRDepth to between 1 and 30. RFC 4632 specifically says between 0 and 3 - and indeed host routes (/32s) are common enough, as is default route. Thanks again for contributing this Bob. -- Alex. From cs_livecode at icloud.com Mon Jan 26 15:38:01 2015 From: cs_livecode at icloud.com (Chris Sheffield) Date: Mon, 26 Jan 2015 13:38:01 -0700 Subject: semi-OT: TestFlight.com beta testing closing In-Reply-To: References: Message-ID: Thanks, Colin. This may help. In the Runtime folder of the LiveCode application bundle, if you drill down into iOS -> Device-[whatever], there is an Entitlements.xcent file. I?m assuming this is where that same key could be added. However, there?s also a StoreEntitlements.xcent, with the same contents as Entitlements.xcent. So I?m not sure which one to make the change in. Maybe both? Does anyone know? At some point RunRev will need to update LC to support his, but in the meantime, this may be a viable workaround. Thanks again. > On Jan 26, 2015, at 12:33 PM, Colin Holgate wrote: > > With Adobe AIR you have added this to the app descriptor XML: > > get-task-allowbeta-reports-active]]> > > That then ends up in the embedded provisioning profile. Not sure of the steps for LiveCode. > > Test Flight?s URL is https://www.testflightapp.com/ , but as you say, it closes on Feb 26th. If you have an HTTPS site you can post builds for your testers, but those would just be from your list of 100, not from the Test Flight 1000 external testers. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From warren at warrensweb.us Mon Jan 26 16:28:28 2015 From: warren at warrensweb.us (Warren Samples) Date: Mon, 26 Jan 2015 15:28:28 -0600 Subject: Server performance issues: Dreamhost only? In-Reply-To: <54C690A2.4050705@fourthworld.com> References: <54C690A2.4050705@fourthworld.com> Message-ID: <54C6B17C.5000507@warrensweb.us> On 01/26/2015 01:08 PM, Richard Gaskin wrote: > We've seen reports of serious performance issues with running LiveCode > Server 7.x on Dreamhost. > > I'm working with Peter Brett at RunRev to try to resolve these, and > there's one detail that would be very useful to know: > > While we see relatively minor speed differences on the desktop, running > LiveCode Serve on Dreamhost has resulted in requests taking as long as > several seconds, far beyond anything we can account for in the engine > itself. > > Have any of you seen order-of-magnitude speed loss when running LiveCode > Server on any host other than Dreamhost? > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web Not at webfaction where I have various versions of LC Server running as as cgi via a Caudium server which in turn runs behind nginx (and maybe Apache, I'm not sure if they've left the Apache layer in for the deployment of webapps, since putting nginx up front, and am too lazy to look it up because it still works so why should I care :D). Request handling is fractionally slower since LC 6.5 but the discernable delay doesn't seem to have increased here for LC 7. I've already reported that script handling is 3 to 4 times slower in LC 7, but that's a different issue. Warren From warren at warrensweb.us Mon Jan 26 16:32:21 2015 From: warren at warrensweb.us (Warren Samples) Date: Mon, 26 Jan 2015 15:32:21 -0600 Subject: Server performance issues: Dreamhost only? In-Reply-To: <54C6B17C.5000507@warrensweb.us> References: <54C690A2.4050705@fourthworld.com> <54C6B17C.5000507@warrensweb.us> Message-ID: <54C6B265.5070005@warrensweb.us> On 01/26/2015 03:28 PM, Warren Samples wrote: >> Have any of you seen order-of-magnitude speed loss when running LiveCode >> Server on any host other than Dreamhost? >> > > Not at webfaction It may be relevant to note that all LC Server versions I have installed are 32bit, including LC 7. webfaction is still running CentOS 32bit. Warren From MikeKerner at roadrunner.com Mon Jan 26 17:09:06 2015 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 26 Jan 2015 17:09:06 -0500 Subject: semi-OT: TestFlight.com beta testing closing In-Reply-To: References: Message-ID: There is also hockeyApp, but I'm not aware of anyone trying to make it work with LC On Mon, Jan 26, 2015 at 3:38 PM, Chris Sheffield wrote: > Thanks, Colin. This may help. > > In the Runtime folder of the LiveCode application bundle, if you drill > down into iOS -> Device-[whatever], there is an Entitlements.xcent file. > I?m assuming this is where that same key could be added. However, there?s > also a StoreEntitlements.xcent, with the same contents as > Entitlements.xcent. So I?m not sure which one to make the change in. Maybe > both? Does anyone know? > > At some point RunRev will need to update LC to support his, but in the > meantime, this may be a viable workaround. > > Thanks again. > > > > On Jan 26, 2015, at 12:33 PM, Colin Holgate wrote: > > > > With Adobe AIR you have added this to the app descriptor XML: > > > > > get-task-allowbeta-reports-active]]> > > > > That then ends up in the embedded provisioning profile. Not sure of the > steps for LiveCode. > > > > Test Flight?s URL is https://www.testflightapp.com/ < > https://www.testflightapp.com/>, but as you say, it closes on Feb 26th. > If you have an HTTPS site you can post builds for your testers, but those > would just be from your list of 100, not from the Test Flight 1000 external > testers. > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From capellan2000 at gmail.com Mon Jan 26 18:59:50 2015 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Mon, 26 Jan 2015 18:59:50 -0500 Subject: extracting the thumbnail from digital photos? Message-ID: Hi, This script works in LiveCode 7.0.1 under Windows: (Notice that I am using byte instead of char as recommended in release notes and, unlike Ubuntu, I have to set the casesensitive to true to make it work) First, download this 8 MB image that contains two thumbnails (320x240 and 160x120): (this link should be in a single line) http://216.18.212.226/PRODS/fuji-x100t/FULLRES/X100ThSLI00100NR2D.JPG Create a stack and put this script in a button: on mouseUp local temp answer file "Select JPEG image with EXIF thumbnail data" put it into temp open file temp for binary read read from file temp for 100000 put it into temp1 close file temp put numtobyte(255) & numtobyte(216) into tStart -- in Hexadecimal: FFD8 = SOI(Start of jpeg image) put numtobyte(255) & numtobyte(217) into tEnd -- in Hexadecimal: FFD9 = EOI(End of jpeg image) delete byte 1 to 2 of temp1 -- delete JPEG SOI (Start of jpeg image) if byte -2 to -1 of temp1 = tEnd then delete byte -2 to -1 of temp1 -- delete JPEG EOI(End of jpeg image) set the casesensitive to true repeat until offset(tEnd,temp1) = 0 -- repeat until offset(tStart,temp1) = 0 put offset(tStart,temp1) into tThumbstart put offset(tEnd,temp1) into tThumbEnd put byte tThumbstart to (tThumbEnd + 1) of temp1 into tJPGThumb delete byte 1 to (tThumbEnd + 1) of temp1 if tJPGThumb is not empty then create img set the text of it to tJPGThumb else answer "No JPEG Thumbnails in this image" end if end repeat end mouseUp Al From capellan2000 at gmail.com Mon Jan 26 19:16:00 2015 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Mon, 26 Jan 2015 19:16:00 -0500 Subject: Offset and Binary Data Message-ID: Hi Mike, After running your script, using Livecode 7.0.1 under Windows my result is 4,10 Maybe, this could help. Add this line before getting offset: set the casesensitive to true to read in this way: on mouseUp put numtochar(255) & numtochar(216) into tStart -- in Hexadecimal: FFD8 = SOI(Start of jpeg image) put numtochar(255) & numtochar(217) into tEnd -- in Hexadecimal: FFD9 = EOI(End of jpeg image) put "AAA" & tStart & "DATA"& tEnd & "BBB" into temp1 set the casesensitive to true put offset(tStart,temp1) into tThumbstart put offset(tEnd,temp1) into tThumbEnd answer "Start:" && tThumbstart & cr & "End:" && tThumbEnd end mouseUp Al From bobsneidar at iotecdigital.com Mon Jan 26 19:22:25 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 27 Jan 2015 00:22:25 +0000 Subject: IP Calculator Final Version In-Reply-To: <54C6A03E.9060603@tweedly.net> References: <159357CC-8C42-4979-989A-E7D644A993A9@iotecdigital.com> <54C6A03E.9060603@tweedly.net> Message-ID: Oh thanks Alex I will check for those. I though they would be covered in the part that checks that each octet is a number between 0 and 255. As far as the CIDR depth, it is true that technically you can have a CIDR of 32, but it is not a network that can be used. That would leave no usable addresses, and the subnet and broadcast addresses would not be assignable. A CIDR of 31 has 2 addresses, neither of them usable by a node, as they would have to be the subnet address and the broadcast address. The highest CIDR that has any node assignable addresses is 30. That has only 2 usable addresses, and is typically used as the WAN subnet for a single IP router, the other being the gateway address. A CIDR of 0 has no subnet mask, and therefore cannot be used except for a multicast network where everything is a node, there is no universal broadcast address and no routing is possible. For the sake of accuracy, I will expand the range to 0 to 32. It will be up to the calling function to then determine if their subnet is usable. Bob S On Jan 26, 2015, at 12:14 , Alex Tweedly > wrote: A couple of error cases that aren't caught gracefully 192.168.1/24.1 192.168..1/24 One that is accepted and shouldn't be 192.168.1.1/24. (note the trailing ".") Also, not sure why you limit CIDRDepth to between 1 and 30. RFC 4632 specifically says between 0 and 3 - and indeed host routes (/32s) are common enough, as is default route. Thanks again for contributing this Bob. -- Alex. From pete at lcsql.com Mon Jan 26 19:35:39 2015 From: pete at lcsql.com (Peter Haworth) Date: Mon, 26 Jan 2015 16:35:39 -0800 Subject: Unicode In-Reply-To: References: <6078DFAC-E4F9-4E52-854E-DDA937F21091@gmail.com> <5599BE2D-7AE8-4362-870E-AF6CBF3B98D0@livecode.com> Message-ID: Well I guess I spoke too soon :-) When I said I had things working, I meant I could successfully get data from a UTF8 database and display it correctly. I'm now trying to get input from field controls and get it into the database. I found a lorem ipsum generator that would create text in various languages to I got some Russian text from it and pasted it into an LC field. In my handler, I need to put the contents of the field into a variable and then hand it off from there to an INSERT statement. I've tried every combination of unicodeText, uniencode, unidecode, or none of the above to get the correct value into the variable but it either ends up as question marks or something that looks nothing like the characters in the field. This is all with pre 7.0. I think I'm beginning to understand why 7.0 is a lot better to use than pre 7.0 when heavy unicode handling is needed! But in the meantime, how should I be handling the above situation in pre 7.0? Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Mon, Jan 26, 2015 at 9:01 AM, Devin Asay wrote: > > On Jan 26, 2015, at 4:42 AM, Fraser Gordon > wrote: > > > > > On 26 Jan 2015, at 02:15, Peter Haworth wrote: > > > >> Thanks Peter. If that's the case, I'm not seeing much in the way of a > >> coding advantage over pre 7.0. Sounds like using textEncode/textDecode > >> instaed of uniencode/unidecode? > > > > Assuming you have UTF-8 encoded data from a source outside LiveCode: > > > > local tUTF8Data ? This is binary data > > local tString ? This is a textual string > > put textDecode(tUTF8Data, ?UTF-8?) into tString > > > > The important difference is that uniEncode becomes textDecode - because > you are decoding some binary data to text. > > > > The big difference between 7.0 and previous versions is that Unicode > text works everywhere - you don?t need to use special Unicode properties or > commands any more. > > > >> > >> That does answer another question I had though which is what is needed > if > >> the database is UTF-16 encoded. Sounds like nothing needs to be done. > I > >> guess I'll have to set up some tests. > > > > If your external data is UTF-16 you still need to textDecode it - if you > don?t, it will treat the data as 8-bit text and you?ll get corrupted text > back. This 8-bit default is necessary from a backwards compatibility point > of view - if we changed it to accept UTF-16 by default, anyone who gets > text from an external source and doesn?t textDecode it will suddenly find > that their stacks don?t work. > > > > One way of looking at things is that all external interfaces (files, > processes, etc) return binary data and you need to do something to turn > that into text (textDecode) and you need to turn your text into binary data > when writing to them (textEncode). By using something like UTF-8 as an > encoding, it also avoids the problems that occur because the ?native? > encoding differs between our platforms - it is MacRoman on OSX, CP1252 on > Windows and ISO-8859-1 on Linux. > > > > Regards, > > Fraser > > > It would be great if there were a stack property we could set that would > specify what format outputted text would be. The default could be ?native?; > i.e., the native encoding for the platform, but then we could set it to > things like ?utf8? or ?utf16? or ?ISO?. It would essentially do the > textEncode/decode for us. > > Is this an idea that appeals to folks here? > > Devin > > > Devin Asay > Office of Digital Humanities > Brigham Young University > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bobsneidar at iotecdigital.com Mon Jan 26 19:53:16 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 27 Jan 2015 00:53:16 +0000 Subject: IP Calculator Final Version In-Reply-To: References: <159357CC-8C42-4979-989A-E7D644A993A9@iotecdigital.com> <54C6A03E.9060603@tweedly.net> Message-ID: <49E9F2A8-7BA9-4AF6-AF01-71D0F3E5AB84@iotecdigital.com> OK I think I have another script compilation. Given an IP address of 192.168..1 set the itemDelimiter to ?.? repeat for each item theOctet in theIPAddress if theOctet <0 or theOctet >255 then return "ERROR: Each IP Address octet must be a number between 0 and 255. " & \ "(ipaddress = " & theIPAddress & ")" end if end repeat Should return an error on the third pass. It does not. Even though empty is in fact less than 0, it passes the condition! Oh but wait, it gets better. I stepped through the code, and at first it passed, but then I put in a statement just before the condition: put theOctet is empty On the third pass it put true into the message box then FAILED THE TEST! Subsequent calls to the function continued to fail! Then I stopped stepping and recompiled the script and saved it. IT STARTED PASSING AGAIN!!!!! This is some crazy crap! The same code should not be behaving differently depending on whether or not I am stepping or not. Bob S From bobsneidar at iotecdigital.com Mon Jan 26 20:00:43 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 27 Jan 2015 01:00:43 +0000 Subject: IP Calculator Final Version In-Reply-To: <49E9F2A8-7BA9-4AF6-AF01-71D0F3E5AB84@iotecdigital.com> References: <159357CC-8C42-4979-989A-E7D644A993A9@iotecdigital.com> <54C6A03E.9060603@tweedly.net> <49E9F2A8-7BA9-4AF6-AF01-71D0F3E5AB84@iotecdigital.com> Message-ID: <19714D32-A2A6-4E02-8774-19548A1FC30E@iotecdigital.com> So now I modify the condition to look like this: set the itemdelimiter to "." repeat for each item theOctet in theIPAddress if theOctet is empty or theOctet < 0 or theOctet > 255 then return "ERROR: Each IP Address octet must be a number between 0 and 255. " & \ "(ipaddress = " & theIPAddress & ")" end if end repeat Note the check for the octet being empty. NOW it fails the condition every time. What this means is that sometimes the engine thinks empty is less than 0 and sometimes it does not. Otherwise it means that sometimes an item which ought to be empty is not, and sometimes it is. Is this scaring anyone besides me? I am calling the function containing this code from the message box. I could go through the process of running it from a button but frankly having been able to force the engine to check for empty, I have solved the problem for now. But if anyone comes across something similar, it isn?t a gremlin. Or is it???? Using version 6.7.0 build 5012 Bob S On Jan 26, 2015, at 16:53 , Bob Sneidar > wrote: OK I think I have another script compilation. Given an IP address of 192.168..1 set the itemDelimiter to ?.? repeat for each item theOctet in theIPAddress if theOctet <0 or theOctet >255 then return "ERROR: Each IP Address octet must be a number between 0 and 255. " & \ "(ipaddress = " & theIPAddress & ")" end if end repeat Should return an error on the third pass. It does not. Even though empty is in fact less than 0, it passes the condition! Oh but wait, it gets better. I stepped through the code, and at first it passed, but then I put in a statement just before the condition: put theOctet is empty On the third pass it put true into the message box then FAILED THE TEST! Subsequent calls to the function continued to fail! Then I stopped stepping and recompiled the script and saved it. IT STARTED PASSING AGAIN!!!!! This is some crazy crap! The same code should not be behaving differently depending on whether or not I am stepping or not. Bob S From bobsneidar at iotecdigital.com Mon Jan 26 20:03:09 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 27 Jan 2015 01:03:09 +0000 Subject: IP Calculator Final Version In-Reply-To: <54C67E73.20000@gmail.com> References: <159357CC-8C42-4979-989A-E7D644A993A9@iotecdigital.com> <54C67E73.20000@gmail.com> Message-ID: <883CDE1E-AB4F-4C75-8C1D-BA1C6F7C9D2F@iotecdigital.com> Hi Mike. May have spoke too soon. Apparently I need to check for empty octets because apparently this will only sometimes get caught in the error checking. Now I am going to have to *really* go through this. However, if proper values are provided the function works as expected so I would let it stand for now and I can provide an updated version for the next revision if there is one. Bob S On Jan 26, 2015, at 09:50 , Michael Doub > wrote: Here is the version of the MasterLibrary (version 22) with Bob's IP Calculator integrated. From toolbook at kestner.de Tue Jan 27 03:18:18 2015 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Tue, 27 Jan 2015 09:18:18 +0100 Subject: AW: 7.0.2 RC1 Crashes and Corrupts Stack Files In-Reply-To: <54C68A0B.3080007@LinkIt.Com> References: <54C2E74D.1010608@LinkIt.Com> <54C3FD25.6010008@gmail.com> <54C68A0B.3080007@LinkIt.Com> Message-ID: <002c01d03a09$cfea4d60$6fbee820$@kestner.de> Hi Ray, I am only working with 6.5.2 for my live product and the "major feature" is playing videos. I have never had any issues with changing the source pretty straight forward with this version. Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von Ray Gesendet: Montag, 26. Januar 2015 19:40 An: use-livecode at lists.runrev.com Betreff: Re: 7.0.2 RC1 Crashes and Corrupts Stack Files Exactly - this is actually under two different bug reports now, #14437 and #14449. I realized after adding to the 2nd report that I'm also not able to 'see' Quicktime movies, even in 6.5.2, when assigning a new Source to a player. Hopefully all these things will be addressed when the team at Livecode looks into these bugs. Thanks... On 1/26/2015 2:38 PM, Peter Haworth wrote: > Seems like most of the problems with the player control have been in > LC 7 but I'm seeing issues in 6.7. > > Hard hang in circumstances I haven't quite nailed down yet. > Command-period doesn't work and have to force quit. > > > > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin > > On Sat, Jan 24, 2015 at 12:14 PM, Richmond > > wrote: > >> On 24/01/15 02:29, Ray wrote: >> >>> On my Windows 8.1 system I do the following: >>> >>> 1) create a new main stack >>> 2) drag a player object onto it >>> 3) remove the default fileName (source) >>> 4) save the stack file >>> >>> At this point I get "Livecode has stopped working". With no other >>> options I close the program and find my entire stack file has been >>> corrupted and will not re-open. >>> >>> Anybody know anything about this? >>> >>> >> I just tried this (sorry, late to the party) with 7.0.2 rc1 on Ubuntu >> Studio 14.10 and it crashed the IDE . . . >> >> I looked here: /home/richmond/.runrev/crashlogs but the directory was >> empty >> >> as was: /home/richmond/.runrev/logs >> >> Richmond. >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From ray at linkit.com Tue Jan 27 07:57:07 2015 From: ray at linkit.com (Ray) Date: Tue, 27 Jan 2015 09:57:07 -0300 Subject: AW: 7.0.2 RC1 Crashes and Corrupts Stack Files In-Reply-To: <002c01d03a09$cfea4d60$6fbee820$@kestner.de> References: <54C2E74D.1010608@LinkIt.Com> <54C3FD25.6010008@gmail.com> <54C68A0B.3080007@LinkIt.Com> <002c01d03a09$cfea4d60$6fbee820$@kestner.de> Message-ID: <54C78B23.8070801@LinkIt.Com> Agreed. I'm not seeing any of the major problems on 6.5.2 which 7.X has regarding players. If you're considering updating my suggestion would be to wait until you're sure 7.X is truly stable in this area. The only issue I have with 6.5.2, a minor issue, is I can't see Quicktime movies when re-assigning the Source. The easy work-around is to choose to show All Files. On 1/27/2015 5:18 AM, Tiemo Hollmann TB wrote: > Hi Ray, > I am only working with 6.5.2 for my live product and the "major feature" is > playing videos. I have never had any issues with changing the source pretty > straight forward with this version. > Tiemo > > > -----Urspr?ngliche Nachricht----- > Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag > von Ray > Gesendet: Montag, 26. Januar 2015 19:40 > An: use-livecode at lists.runrev.com > Betreff: Re: 7.0.2 RC1 Crashes and Corrupts Stack Files > > Exactly - this is actually under two different bug reports now, #14437 and > #14449. I realized after adding to the 2nd report that I'm also not able to > 'see' Quicktime movies, even in 6.5.2, when assigning a new Source to a > player. Hopefully all these things will be addressed when the team at > Livecode looks into these bugs. > > Thanks... > > On 1/26/2015 2:38 PM, Peter Haworth wrote: >> Seems like most of the problems with the player control have been in >> LC 7 but I'm seeing issues in 6.7. >> >> Hard hang in circumstances I haven't quite nailed down yet. >> Command-period doesn't work and have to force quit. >> >> >> >> Pete >> lcSQL Software >> Home of lcStackBrowser and >> SQLiteAdmin >> >> On Sat, Jan 24, 2015 at 12:14 PM, Richmond >> >> wrote: >> >>> On 24/01/15 02:29, Ray wrote: >>> >>>> On my Windows 8.1 system I do the following: >>>> >>>> 1) create a new main stack >>>> 2) drag a player object onto it >>>> 3) remove the default fileName (source) >>>> 4) save the stack file >>>> >>>> At this point I get "Livecode has stopped working". With no other >>>> options I close the program and find my entire stack file has been >>>> corrupted and will not re-open. >>>> >>>> Anybody know anything about this? >>>> >>>> >>> I just tried this (sorry, late to the party) with 7.0.2 rc1 on Ubuntu >>> Studio 14.10 and it crashed the IDE . . . >>> >>> I looked here: /home/richmond/.runrev/crashlogs but the directory was >>> empty >>> >>> as was: /home/richmond/.runrev/logs >>> >>> Richmond. >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From devin_asay at byu.edu Tue Jan 27 10:50:18 2015 From: devin_asay at byu.edu (Devin Asay) Date: Tue, 27 Jan 2015 15:50:18 +0000 Subject: Unicode In-Reply-To: References: <6078DFAC-E4F9-4E52-854E-DDA937F21091@gmail.com> <5599BE2D-7AE8-4362-870E-AF6CBF3B98D0@livecode.com> Message-ID: <6432465A-97D6-47F8-B65E-65E683B69975@byu.edu> On Jan 26, 2015, at 5:35 PM, Peter Haworth wrote: > Well I guess I spoke too soon :-) When I said I had things working, I > meant I could successfully get data from a UTF8 database and display it > correctly. > > I'm now trying to get input from field controls and get it into the > database. I found a lorem ipsum generator that would create text in > various languages to I got some Russian text from it and pasted it into an > LC field. > > In my handler, I need to put the contents of the field into a variable and > then hand it off from there to an INSERT statement. I've tried every > combination of unicodeText, uniencode, unidecode, or none of the above to > get the correct value into the variable but it either ends up as question > marks or something that looks nothing like the characters in the field. > > This is all with pre 7.0. I think I'm beginning to understand why 7.0 is a > lot better to use than pre 7.0 when heavy unicode handling is needed! > > But in the meantime, how should I be handling the above situation in pre > 7.0? > Pete, I?ve done this a lot pre-7. Here?s the relevant bit of code: put unidecode(the unicodeText of line 1 of fld ?russStuff","utf8") into tRussTxt At that point, since the text in tRussTxt is expressed in plain ASCII you can just INSERT it or UPDATE your database. To get it out again you reverse the process: set the unicodeText of fld ?russStuff? to uniencode(tRussFldFromDB,?utf8?) LC 7 of course simplifies this process, but you still have to textEncode/textDecode the text as you?re outputting/inputting it. put textEncode(the text of fld ?russStuff?,?utf8?) into tRussTxt # prep for DB put textDecode(tRussFldFromDB,?utf8?) into fld ?russStuff? # display text from DB HTH Devin Devin Asay Office of Digital Humanities Brigham Young University From devin_asay at byu.edu Tue Jan 27 10:53:09 2015 From: devin_asay at byu.edu (Devin Asay) Date: Tue, 27 Jan 2015 15:53:09 +0000 Subject: Unicode In-Reply-To: References: <6078DFAC-E4F9-4E52-854E-DDA937F21091@gmail.com> <5599BE2D-7AE8-4362-870E-AF6CBF3B98D0@livecode.com> Message-ID: On Jan 26, 2015, at 10:01 AM, Devin Asay wrote: > It would be great if there were a stack property we could set that would specify what format outputted text would be. The default could be ?native?; i.e., the native encoding for the platform, but then we could set it to things like ?utf8? or ?utf16? or ?ISO?. It would essentially do the textEncode/decode for us. > > Is this an idea that appeals to folks here? Of course, then I discovered that this property already exists! A global property called outputTextEncoding. But it is limited to output from Server. It would be nice to see that extended to all LC editions. Devin Devin Asay Office of Digital Humanities Brigham Young University From ray at linkit.com Tue Jan 27 10:56:13 2015 From: ray at linkit.com (Ray) Date: Tue, 27 Jan 2015 12:56:13 -0300 Subject: Set Script Limits in Standalones In-Reply-To: <6432465A-97D6-47F8-B65E-65E683B69975@byu.edu> References: <6078DFAC-E4F9-4E52-854E-DDA937F21091@gmail.com> <5599BE2D-7AE8-4362-870E-AF6CBF3B98D0@livecode.com> <6432465A-97D6-47F8-B65E-65E683B69975@byu.edu> Message-ID: <54C7B51D.5090607@LinkIt.Com> As I recall there's a limit to the number of lines in a script which is set in a standalone. I thought it was 16 lines. This limitation, if it still exists, is not documented in the dictionary. Does anybody know what it is or if it got removed with the advent of the community edition? From cs_livecode at icloud.com Tue Jan 27 11:08:12 2015 From: cs_livecode at icloud.com (Chris Sheffield) Date: Tue, 27 Jan 2015 09:08:12 -0700 Subject: semi-OT: TestFlight.com beta testing closing In-Reply-To: References: Message-ID: <32697894-4F8A-4CDD-9BBD-D6003062110F@icloud.com> Mike, Yes, I found HockeyApp yesterday as well. Looks very similar to TestFlight. We?ll probably end up giving that a go for now. Thanks, Chris > On Jan 26, 2015, at 3:09 PM, Mike Kerner wrote: > > There is also hockeyApp, but I'm not aware of anyone trying to make it work > with LC > > On Mon, Jan 26, 2015 at 3:38 PM, Chris Sheffield > wrote: > >> Thanks, Colin. This may help. >> >> In the Runtime folder of the LiveCode application bundle, if you drill >> down into iOS -> Device-[whatever], there is an Entitlements.xcent file. >> I?m assuming this is where that same key could be added. However, there?s >> also a StoreEntitlements.xcent, with the same contents as >> Entitlements.xcent. So I?m not sure which one to make the change in. Maybe >> both? Does anyone know? >> >> At some point RunRev will need to update LC to support his, but in the >> meantime, this may be a viable workaround. >> >> Thanks again. >> >> >>> On Jan 26, 2015, at 12:33 PM, Colin Holgate wrote: >>> >>> With Adobe AIR you have added this to the app descriptor XML: >>> >>> >> get-task-allowbeta-reports-active]]> >>> >>> That then ends up in the embedded provisioning profile. Not sure of the >> steps for LiveCode. >>> >>> Test Flight?s URL is https://www.testflightapp.com/ < >> https://www.testflightapp.com/>, but as you say, it closes on Feb 26th. >> If you have an HTTPS site you can post builds for your testers, but those >> would just be from your list of 100, not from the Test Flight 1000 external >> testers. >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > > -- > On the first day, God created the heavens and the Earth > On the second day, God created the oceans. > On the third day, God put the animals on hold for a few hours, > and did a little diving. > And God said, "This is good." > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Tue Jan 27 11:21:36 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 27 Jan 2015 16:21:36 +0000 Subject: Set Script Limits in Standalones In-Reply-To: <54C7B51D.5090607@LinkIt.Com> References: <6078DFAC-E4F9-4E52-854E-DDA937F21091@gmail.com> <5599BE2D-7AE8-4362-870E-AF6CBF3B98D0@livecode.com> <6432465A-97D6-47F8-B65E-65E683B69975@byu.edu> <54C7B51D.5090607@LinkIt.Com> Message-ID: <6688A027-9C3E-4E55-A481-EFE5869456D4@iotecdigital.com> I think the 16 line limit was for in line compilation, as in creating a list of commands and executing them with a do command. I do not think it means that every script in a standalone is limited to 16 lines, and I believe that limit has been removed anyway, or else greatly increased. Bob S > On Jan 27, 2015, at 07:56 , Ray wrote: > > As I recall there's a limit to the number of lines in a script which is set in a standalone. I thought it was 16 lines. This limitation, if it still exists, is not documented in the dictionary. Does anybody know what it is or if it got removed with the advent of the community edition? > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From rdimola at evergreeninfo.net Tue Jan 27 11:51:06 2015 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Tue, 27 Jan 2015 11:51:06 -0500 Subject: semi-OT: TestFlight.com beta testing closing In-Reply-To: <32697894-4F8A-4CDD-9BBD-D6003062110F@icloud.com> References: <32697894-4F8A-4CDD-9BBD-D6003062110F@icloud.com> Message-ID: <004a01d03a51$7210ccd0$56326670$@net> I'm trying to use the new TestFlight. I created a new distribution profile. This is supposed to include the Beta entitlement. I refreshed Xcode and the new profile appeared and was on the LC provisioning profile list. I selected it and created a standalone. Uploaded via the application loader. On iTunes connect I see the dreaded "To use TestFlight Beta Testing, build 1.326.1 must contain the correct beta entitlement. For more information, see the FAQ". The FAQ states "To use the TestFlight app to test your prerelease build, it must be signed with an App Store Distribution Provisioning profile that includes the beta entitlement. New Distribution Provisioning profiles generated in the iOS Developer Center will automatically contain the beta entitlement. If you have an existing Distribution Provisioning Profile that was generated before the launch of TestFlight Beta Testing, you must regenerate the profile." Do I also have to add the get-task-allowbeta-reports-active]]> key to StoreEntitlements.xcent or Entitlements.xcent or both? Is there a cookbook for this? MacBook Pro OSX 10.9.5 Xcode 6.1.1 LC 6.7.1 Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Chris Sheffield Sent: Tuesday, January 27, 2015 11:08 AM To: How to use LiveCode Subject: Re: semi-OT: TestFlight.com beta testing closing Mike, Yes, I found HockeyApp yesterday as well. Looks very similar to TestFlight. We?ll probably end up giving that a go for now. Thanks, Chris > On Jan 26, 2015, at 3:09 PM, Mike Kerner wrote: > > There is also hockeyApp, but I'm not aware of anyone trying to make it > work with LC > > On Mon, Jan 26, 2015 at 3:38 PM, Chris Sheffield > > wrote: > >> Thanks, Colin. This may help. >> >> In the Runtime folder of the LiveCode application bundle, if you >> drill down into iOS -> Device-[whatever], there is an Entitlements.xcent file. >> I?m assuming this is where that same key could be added. However, >> there?s also a StoreEntitlements.xcent, with the same contents as >> Entitlements.xcent. So I?m not sure which one to make the change in. >> Maybe both? Does anyone know? >> >> At some point RunRev will need to update LC to support his, but in >> the meantime, this may be a viable workaround. >> >> Thanks again. >> >> >>> On Jan 26, 2015, at 12:33 PM, Colin Holgate wrote: >>> >>> With Adobe AIR you have added this to the app descriptor XML: >>> >>> >> get-task-allowbeta-rep >> orts-active]]> >>> >>> That then ends up in the embedded provisioning profile. Not sure of >>> the >> steps for LiveCode. >>> >>> Test Flight?s URL is https://www.testflightapp.com/ < >> https://www.testflightapp.com/>, but as you say, it closes on Feb 26th. >> If you have an HTTPS site you can post builds for your testers, but >> those would just be from your list of 100, not from the Test Flight >> 1000 external testers. >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > > -- > On the first day, God created the heavens and the Earth On the second > day, God created the oceans. > On the third day, God put the animals on hold for a few hours, > and did a little diving. > And God said, "This is good." > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From coiin at verizon.net Tue Jan 27 11:59:20 2015 From: coiin at verizon.net (Colin Holgate) Date: Tue, 27 Jan 2015 16:59:20 +0000 Subject: semi-OT: TestFlight.com beta testing closing In-Reply-To: <004a01d03a51$7210ccd0$56326670$@net> References: <32697894-4F8A-4CDD-9BBD-D6003062110F@icloud.com> <004a01d03a51$7210ccd0$56326670$@net> Message-ID: According to what you say Apple say, you would think the provisioning would include the entitlements. One thing though, did you do Ad Hoc or App Store? For an AIR app I have in Test Flight I used the App Store version. From ambassador at fourthworld.com Tue Jan 27 12:01:49 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 27 Jan 2015 09:01:49 -0800 Subject: Set Script Limits in Standalones In-Reply-To: <6688A027-9C3E-4E55-A481-EFE5869456D4@iotecdigital.com> References: <6688A027-9C3E-4E55-A481-EFE5869456D4@iotecdigital.com> Message-ID: <54C7C47D.3080801@fourthworld.com> Bob Sneidar wrote: >> On Jan 27, 2015, at 07:56 , Ray wrote: >> >> As I recall there's a limit to the number of lines in a script >> which is set in a standalone. I thought it was 16 lines. This >> limitation, if it still exists, is not documented in the >> dictionary. Does anybody know what it is or if it got removed >> with the advent of the community edition? > > I think the 16 line limit was for in line compilation, as in creating > a list of commands and executing them with a do command. I do not > think it means that every script in a standalone is limited to 16 > lines, and I believe that limit has been removed anyway, or else > greatly increased. The scriptLimits global property was originally invented to allow MetaCard to deliver a demo version with no time limit. The limits were: 10 executable statements with "do", "value" or "set the script of...." 10 frontScripts 10 backScripts 50 libraries Some were able to deliver complete working apps within those limits, but Dr. Raney felt it was still a good balance because sooner or later they'd get tired of the workarounds for such things and just get a license. Since the concept of having arbitrary limits on utility for licensing purposes is incompatible with the GPL, the scriptLimits property was removed from the Community Edition on first release of that version (6.0 if memory serves). After review, it was also removed from the Commercial edition as of v6.7 - here's the bug report on that, with Mark Waddingham's comment: Having considered this for a while and based on feedback from yourselves and others I can confirm that we will be removing the scriptLimits from commercial in 6.7 onwards (and thus 7.0). This change should take effect in the next build after 6.7-dp-6 / 7.0-dp-8. This is consistent with the design mandate of the two editions now that LiveCode is open source, in which if there are any differences at all they favor the Commercial so it represents a superset of Community features. That said, RunRev is sincere about their commitment to open source, so Community is not "crippleware" at all: both engines have complete feature parity across the board, with the only exceptions being Commercial features which may be incompatible with the GPL. Currently these are limited to Oracle database connectivity (since Oracle's drivers are closed-source), and password-protected stacks (since concealing source is incompatible with the GPL's mandate for free and open sharing). -- Richard Gaskin LiveCode Community Manager richard at livecode.org From cs_livecode at icloud.com Tue Jan 27 11:59:43 2015 From: cs_livecode at icloud.com (Chris Sheffield) Date: Tue, 27 Jan 2015 09:59:43 -0700 Subject: semi-OT: TestFlight.com beta testing closing In-Reply-To: <004a01d03a51$7210ccd0$56326670$@net> References: <32697894-4F8A-4CDD-9BBD-D6003062110F@icloud.com> <004a01d03a51$7210ccd0$56326670$@net> Message-ID: <889B9359-AC4B-4610-BF0A-4A1375E35C03@icloud.com> Ralph, At this point your guess is as good as mine. I?m not totally sure how to make it work. Haven?t had a chance to try it yet. If someone from RunRev happens to see this and wants to chime in, that would be great. I am planning on filing a bug/enhancement request about this, if no one has done it already. I do know that you wouldn?t do it exactly like this, however. As Colin stated, this is how it?s done for Adobe AIR. You wouldn?t use a CDATA block for LiveCode, for example. I?ve got some time today. I?ll play around with it a bit and see what I can figure out. I?ll let you know. Chris > On Jan 27, 2015, at 9:51 AM, Ralph DiMola wrote: > > Do I also have to add the get-task-allowbeta-reports-active]]> key to StoreEntitlements.xcent or Entitlements.xcent or both? Is there a cookbook for this? From cs_livecode at icloud.com Tue Jan 27 12:25:40 2015 From: cs_livecode at icloud.com (Chris Sheffield) Date: Tue, 27 Jan 2015 10:25:40 -0700 Subject: semi-OT: TestFlight.com beta testing closing In-Reply-To: References: <32697894-4F8A-4CDD-9BBD-D6003062110F@icloud.com> <004a01d03a51$7210ccd0$56326670$@net> Message-ID: <8E2C9A2D-CD4B-4E14-91F9-17EE4FABCE0C@icloud.com> Interesting you used the App Store profile. I didn?t think that worked, so I?ve used an Ad Hoc profile when I?ve tried it. I thought an app store distribution profile was strictly for that, the App Store. So your testers can download the build just fine? No problems installing and running on devices? > On Jan 27, 2015, at 9:59 AM, Colin Holgate wrote: > > According to what you say Apple say, you would think the provisioning would include the entitlements. One thing though, did you do Ad Hoc or App Store? For an AIR app I have in Test Flight I used the App Store version. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ray at linkit.com Tue Jan 27 12:35:10 2015 From: ray at linkit.com (Ray) Date: Tue, 27 Jan 2015 14:35:10 -0300 Subject: Set Script Limits in Standalones In-Reply-To: <6688A027-9C3E-4E55-A481-EFE5869456D4@iotecdigital.com> References: <6078DFAC-E4F9-4E52-854E-DDA937F21091@gmail.com> <5599BE2D-7AE8-4362-870E-AF6CBF3B98D0@livecode.com> <6432465A-97D6-47F8-B65E-65E683B69975@byu.edu> <54C7B51D.5090607@LinkIt.Com> <6688A027-9C3E-4E55-A481-EFE5869456D4@iotecdigital.com> Message-ID: <54C7CC4E.8090608@LinkIt.Com> Thanks Bob. What I'm actually doing is executing something like 'set the script of button myButton to myScript' where myScript is greater than 16 lines. Historically this has worked in the IDE but fails in the standalone because of the limitation. On 1/27/2015 1:21 PM, Bob Sneidar wrote: > I think the 16 line limit was for in line compilation, as in creating a list of commands and executing them with a do command. I do not think it means that every script in a standalone is limited to 16 lines, and I believe that limit has been removed anyway, or else greatly increased. > > Bob S > > >> On Jan 27, 2015, at 07:56 , Ray wrote: >> >> As I recall there's a limit to the number of lines in a script which is set in a standalone. I thought it was 16 lines. This limitation, if it still exists, is not documented in the dictionary. Does anybody know what it is or if it got removed with the advent of the community edition? >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ray at linkit.com Tue Jan 27 12:39:02 2015 From: ray at linkit.com (Ray) Date: Tue, 27 Jan 2015 14:39:02 -0300 Subject: Set Script Limits in Standalones In-Reply-To: <54C7C47D.3080801@fourthworld.com> References: <6688A027-9C3E-4E55-A481-EFE5869456D4@iotecdigital.com> <54C7C47D.3080801@fourthworld.com> Message-ID: <54C7CD36.5040405@LinkIt.Com> Richard - your post just came in and thanks for this clarification. It's alos good news all the way around. "Raney" Now there's a name I haven't heard in a long time. I didn't know Scott had a doctoral degree and I hope he was never offended that I didn't address him with this title. I wonder what he's doing these days? On 1/27/2015 2:01 PM, Richard Gaskin wrote: > Bob Sneidar wrote: > > >> On Jan 27, 2015, at 07:56 , Ray wrote: > >> > >> As I recall there's a limit to the number of lines in a script > >> which is set in a standalone. I thought it was 16 lines. This > >> limitation, if it still exists, is not documented in the > >> dictionary. Does anybody know what it is or if it got removed > >> with the advent of the community edition? > > > > I think the 16 line limit was for in line compilation, as in creating > > a list of commands and executing them with a do command. I do not > > think it means that every script in a standalone is limited to 16 > > lines, and I believe that limit has been removed anyway, or else > > greatly increased. > > The scriptLimits global property was originally invented to allow > MetaCard to deliver a demo version with no time limit. The limits were: > > 10 executable statements with "do", "value" or "set the script of...." > 10 frontScripts > 10 backScripts > 50 libraries > > Some were able to deliver complete working apps within those limits, > but Dr. Raney felt it was still a good balance because sooner or later > they'd get tired of the workarounds for such things and just get a > license. > > Since the concept of having arbitrary limits on utility for licensing > purposes is incompatible with the GPL, the scriptLimits property was > removed from the Community Edition on first release of that version > (6.0 if memory serves). > > After review, it was also removed from the Commercial edition as of > v6.7 - here's the bug report on that, with Mark Waddingham's comment: > > > > Having considered this for a while and based on feedback > from yourselves and others I can confirm that we will be > removing the scriptLimits from commercial in 6.7 onwards > (and thus 7.0). This change should take effect in the next > build after 6.7-dp-6 / 7.0-dp-8. > > > This is consistent with the design mandate of the two editions now > that LiveCode is open source, in which if there are any differences at > all they favor the Commercial so it represents a superset of Community > features. > > That said, RunRev is sincere about their commitment to open source, so > Community is not "crippleware" at all: both engines have complete > feature parity across the board, with the only exceptions being > Commercial features which may be incompatible with the GPL. Currently > these are limited to Oracle database connectivity (since Oracle's > drivers are closed-source), and password-protected stacks (since > concealing source is incompatible with the GPL's mandate for free and > open sharing). > From pete at lcsql.com Tue Jan 27 13:02:48 2015 From: pete at lcsql.com (Peter Haworth) Date: Tue, 27 Jan 2015 10:02:48 -0800 Subject: Unicode In-Reply-To: <6432465A-97D6-47F8-B65E-65E683B69975@byu.edu> References: <6078DFAC-E4F9-4E52-854E-DDA937F21091@gmail.com> <5599BE2D-7AE8-4362-870E-AF6CBF3B98D0@livecode.com> <6432465A-97D6-47F8-B65E-65E683B69975@byu.edu> Message-ID: Hi Devin, That works perfectly in pre 7 and 7, thanks a lot. It's somewhat of a pain to deal with this when putting data into a datagrid since it requires a custom column behavior to format the data correctly. I haven't tried editing a datagrid cell with unicode in it yet, but I'm guessing that will require some custom coding too. It seems like there should be a datagrid column property by now that indicates whether translation to/from unicode is required, especially in 7 since that's its focus. Similar to your idea of a stack property I guess. I did find one other motivation to move to 7.0 for unicode. It seems you can't copy/paste a unicode string into the pre 7 script editor, you just end up with question marks. In 7, it pastes correctly. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Tue, Jan 27, 2015 at 7:50 AM, Devin Asay wrote: > > On Jan 26, 2015, at 5:35 PM, Peter Haworth wrote: > > > Well I guess I spoke too soon :-) When I said I had things working, I > > meant I could successfully get data from a UTF8 database and display it > > correctly. > > > > I'm now trying to get input from field controls and get it into the > > database. I found a lorem ipsum generator that would create text in > > various languages to I got some Russian text from it and pasted it into > an > > LC field. > > > > In my handler, I need to put the contents of the field into a variable > and > > then hand it off from there to an INSERT statement. I've tried every > > combination of unicodeText, uniencode, unidecode, or none of the above to > > get the correct value into the variable but it either ends up as question > > marks or something that looks nothing like the characters in the field. > > > > This is all with pre 7.0. I think I'm beginning to understand why 7.0 > is a > > lot better to use than pre 7.0 when heavy unicode handling is needed! > > > > But in the meantime, how should I be handling the above situation in pre > > 7.0? > > > > Pete, > > I?ve done this a lot pre-7. Here?s the relevant bit of code: > > put unidecode(the unicodeText of line 1 of fld ?russStuff","utf8") into > tRussTxt > > At that point, since the text in tRussTxt is expressed in plain ASCII you > can just INSERT it or UPDATE your database. To get it out again you reverse > the process: > > set the unicodeText of fld ?russStuff? to > uniencode(tRussFldFromDB,?utf8?) > > LC 7 of course simplifies this process, but you still have to > textEncode/textDecode the text as you?re outputting/inputting it. > > put textEncode(the text of fld ?russStuff?,?utf8?) into tRussTxt # prep > for DB > > put textDecode(tRussFldFromDB,?utf8?) into fld ?russStuff? # display > text from DB > > HTH > > Devin > > > Devin Asay > Office of Digital Humanities > Brigham Young University > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From rdimola at evergreeninfo.net Tue Jan 27 13:54:12 2015 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Tue, 27 Jan 2015 13:54:12 -0500 Subject: semi-OT: TestFlight.com beta testing closing In-Reply-To: <8E2C9A2D-CD4B-4E14-91F9-17EE4FABCE0C@icloud.com> References: <32697894-4F8A-4CDD-9BBD-D6003062110F@icloud.com> <004a01d03a51$7210ccd0$56326670$@net> <8E2C9A2D-CD4B-4E14-91F9-17EE4FABCE0C@icloud.com> Message-ID: <004e01d03a62$a463e300$ed2ba900$@net> Colin/Chris, Ad Hoc's work just fine. I used a Distribution certificate to generate the new provisioning profile. Apple says in the FAQ "To use the TestFlight app to test your prerelease build, it must be signed with an App Store Distribution Provisioning profile that includes the beta entitlement. New Distribution Provisioning profiles generated in the iOS Developer Center will automatically contain the beta entitlement. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Chris Sheffield Sent: Tuesday, January 27, 2015 12:26 PM To: How to use LiveCode Subject: Re: semi-OT: TestFlight.com beta testing closing Interesting you used the App Store profile. I didn?t think that worked, so I?ve used an Ad Hoc profile when I?ve tried it. I thought an app store distribution profile was strictly for that, the App Store. So your testers can download the build just fine? No problems installing and running on devices? > On Jan 27, 2015, at 9:59 AM, Colin Holgate wrote: > > According to what you say Apple say, you would think the provisioning would include the entitlements. One thing though, did you do Ad Hoc or App Store? For an AIR app I have in Test Flight I used the App Store version. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From cs_livecode at icloud.com Tue Jan 27 13:53:06 2015 From: cs_livecode at icloud.com (Chris Sheffield) Date: Tue, 27 Jan 2015 11:53:06 -0700 Subject: semi-OT: TestFlight.com beta testing closing In-Reply-To: <004a01d03a51$7210ccd0$56326670$@net> References: <32697894-4F8A-4CDD-9BBD-D6003062110F@icloud.com> <004a01d03a51$7210ccd0$56326670$@net> Message-ID: Ralph, I think I got it to work. I created an app build using an App Store distribution profile, not Ad Hoc, as Colin suggested. I also added the following to my StoreEntitlements file: beta-reports-active This should go right before the closing tag, if you?re just using a text editor. I would recommend creating a copy of that file before modifying it, just in case. After creating a build and uploading it, I no longer see the beta entitlement warning, and I can turn on beta testing for that build. Pretty cool. :) So it seems as though RunRev simply need to add this to the entitlements file in a future release of LiveCode. That should fix the issue for everyone going forward. > On Jan 27, 2015, at 9:51 AM, Ralph DiMola wrote: > > I'm trying to use the new TestFlight. I created a new distribution profile. This is supposed to include the Beta entitlement. I refreshed Xcode and the new profile appeared and was on the LC provisioning profile list. I selected it and created a standalone. Uploaded via the application loader. > On iTunes connect I see the dreaded "To use TestFlight Beta Testing, build 1.326.1 must contain the correct beta entitlement. For more information, see the FAQ". > > The FAQ states "To use the TestFlight app to test your prerelease build, it must be signed with an App Store Distribution Provisioning profile that includes the beta entitlement. New Distribution Provisioning profiles generated in the iOS Developer Center will automatically contain the beta entitlement. > If you have an existing Distribution Provisioning Profile that was generated before the launch of TestFlight Beta Testing, you must regenerate the profile." > > Do I also have to add the get-task-allowbeta-reports-active]]> key to StoreEntitlements.xcent or Entitlements.xcent or both? Is there a cookbook for this? > > MacBook Pro > OSX 10.9.5 > Xcode 6.1.1 > LC 6.7.1 > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net > > > -----Original Message----- > From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Chris Sheffield > Sent: Tuesday, January 27, 2015 11:08 AM > To: How to use LiveCode > Subject: Re: semi-OT: TestFlight.com beta testing closing > > Mike, > > Yes, I found HockeyApp yesterday as well. Looks very similar to TestFlight. We?ll probably end up giving that a go for now. > > Thanks, > Chris > >> On Jan 26, 2015, at 3:09 PM, Mike Kerner wrote: >> >> There is also hockeyApp, but I'm not aware of anyone trying to make it >> work with LC >> >> On Mon, Jan 26, 2015 at 3:38 PM, Chris Sheffield >> >> wrote: >> >>> Thanks, Colin. This may help. >>> >>> In the Runtime folder of the LiveCode application bundle, if you >>> drill down into iOS -> Device-[whatever], there is an Entitlements.xcent file. >>> I?m assuming this is where that same key could be added. However, >>> there?s also a StoreEntitlements.xcent, with the same contents as >>> Entitlements.xcent. So I?m not sure which one to make the change in. >>> Maybe both? Does anyone know? >>> >>> At some point RunRev will need to update LC to support his, but in >>> the meantime, this may be a viable workaround. >>> >>> Thanks again. >>> >>> >>>> On Jan 26, 2015, at 12:33 PM, Colin Holgate wrote: >>>> >>>> With Adobe AIR you have added this to the app descriptor XML: >>>> >>>> >>> get-task-allowbeta-rep >>> orts-active]]> >>>> >>>> That then ends up in the embedded provisioning profile. Not sure of >>>> the >>> steps for LiveCode. >>>> >>>> Test Flight?s URL is https://www.testflightapp.com/ < >>> https://www.testflightapp.com/>, but as you say, it closes on Feb 26th. >>> If you have an HTTPS site you can post builds for your testers, but >>> those would just be from your list of 100, not from the Test Flight >>> 1000 external testers. >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> >> >> >> -- >> On the first day, God created the heavens and the Earth On the second >> day, God created the oceans. >> On the third day, God put the animals on hold for a few hours, >> and did a little diving. >> And God said, "This is good." >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Tue Jan 27 14:02:13 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 27 Jan 2015 11:02:13 -0800 Subject: Set Script Limits in Standalones In-Reply-To: <54C7CD36.5040405@LinkIt.Com> References: <54C7CD36.5040405@LinkIt.Com> Message-ID: <54C7E0B5.90703@fourthworld.com> Ray wrote: > What I'm actually doing is executing something like 'set the > script of button myButton to myScript' where myScript is greater > than 16 lines. Historically this has worked in the IDE but > fails in the standalone because of the limitation. That should be possible now, but tread carefully: self-modifying scripts are difficult to debug. Would behaviors provide a simpler and possibly more efficient solution for what you need? > "Raney" Now there's a name I haven't heard in a long time. I > didn't know Scott had a doctoral degree and I hope he was never > offended that I didn't address him with this title. I wonder > what he's doing these days? For a few years following the acquisition of MetaCard by RunRev he was sailing the Caribbean. Last I heard he's stateside again, and beginning to get back into programming after enjoying his long break. -- Richard Gaskin LiveCode Community Manager richard at livecode.org From coiin at verizon.net Tue Jan 27 14:00:17 2015 From: coiin at verizon.net (Colin Holgate) Date: Tue, 27 Jan 2015 19:00:17 +0000 Subject: semi-OT: TestFlight.com beta testing closing In-Reply-To: <004e01d03a62$a463e300$ed2ba900$@net> References: <32697894-4F8A-4CDD-9BBD-D6003062110F@icloud.com> <004a01d03a51$7210ccd0$56326670$@net> <8E2C9A2D-CD4B-4E14-91F9-17EE4FABCE0C@icloud.com> <004e01d03a62$a463e300$ed2ba900$@net> Message-ID: You say Ad Hoc works fine, but that Apple say to use App Store. In my successful Test Flight test I?m using App Store, not Ad Hoc. Ad Hoc would only work on your 100 internal test devices, to work on the 1000 external devices you should use App Store. > On Jan 27, 2015, at 6:54 PM, Ralph DiMola wrote: > > Ad Hoc's work just fine. I used a Distribution certificate to generate the new provisioning profile. Apple says in the FAQ "To use the TestFlight app to test your prerelease build, it must be signed with an App Store Distribution Provisioning profile that includes the beta entitlement. New Distribution Provisioning profiles generated in the iOS Developer Center will automatically contain the beta entitlement. From ray at linkit.com Tue Jan 27 14:04:11 2015 From: ray at linkit.com (Ray) Date: Tue, 27 Jan 2015 16:04:11 -0300 Subject: Set Script Limits in Standalones In-Reply-To: <54C7E0B5.90703@fourthworld.com> References: <54C7CD36.5040405@LinkIt.Com> <54C7E0B5.90703@fourthworld.com> Message-ID: <54C7E12B.4050300@LinkIt.Com> Richard that is really great that Scott took some time to pursue what sounds like a really cool dream. Now, back to business :) I've never used behaviors much which is really bad on my part. I think I'll look into them. Thanks for the suggestion. On 1/27/2015 4:02 PM, Richard Gaskin wrote: > Ray wrote: > > > What I'm actually doing is executing something like 'set the > > script of button myButton to myScript' where myScript is greater > > than 16 lines. Historically this has worked in the IDE but > > fails in the standalone because of the limitation. > > That should be possible now, but tread carefully: self-modifying > scripts are difficult to debug. > > Would behaviors provide a simpler and possibly more efficient solution > for what you need? > > > > "Raney" Now there's a name I haven't heard in a long time. I > > didn't know Scott had a doctoral degree and I hope he was never > > offended that I didn't address him with this title. I wonder > > what he's doing these days? > > For a few years following the acquisition of MetaCard by RunRev he was > sailing the Caribbean. Last I heard he's stateside again, and > beginning to get back into programming after enjoying his long break. > From rdimola at evergreeninfo.net Tue Jan 27 14:17:17 2015 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Tue, 27 Jan 2015 14:17:17 -0500 Subject: semi-OT: TestFlight.com beta testing closing In-Reply-To: References: <32697894-4F8A-4CDD-9BBD-D6003062110F@icloud.com> <004a01d03a51$7210ccd0$56326670$@net> <8E2C9A2D-CD4B-4E14-91F9-17EE4FABCE0C@icloud.com> <004e01d03a62$a463e300$ed2ba900$@net> Message-ID: <004f01d03a65$ded17040$9c7450c0$@net> Colin, Thanks! Sorry I was not clear. I use Ad Hoc for testing with the internal 100. Ad Hoc has worked in the past and still works. I used Distribution profile when attempting to get TestFlight working. It look like Chris solved this. Chris, Thank you for running this down! Beta should be a check box in standalone settings. Or is it ok to include it at all times? Not clear on this. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Colin Holgate Sent: Tuesday, January 27, 2015 2:00 PM To: How to use LiveCode Subject: Re: semi-OT: TestFlight.com beta testing closing You say Ad Hoc works fine, but that Apple say to use App Store. In my successful Test Flight test I?m using App Store, not Ad Hoc. Ad Hoc would only work on your 100 internal test devices, to work on the 1000 external devices you should use App Store. > On Jan 27, 2015, at 6:54 PM, Ralph DiMola wrote: > > Ad Hoc's work just fine. I used a Distribution certificate to generate the new provisioning profile. Apple says in the FAQ "To use the TestFlight app to test your prerelease build, it must be signed with an App Store Distribution Provisioning profile that includes the beta entitlement. New Distribution Provisioning profiles generated in the iOS Developer Center will automatically contain the beta entitlement. _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Tue Jan 27 15:44:13 2015 From: richmondmathewson at gmail.com (Richmond) Date: Tue, 27 Jan 2015 22:44:13 +0200 Subject: The Italians are coming Message-ID: <54C7F89D.8030404@gmail.com> I stumbled on this: http://www.maxvessi.net/pmwiki/pmwiki.php?n=Main.GuidaALivecode and this: http://livecodeitalia.freeforums.org/generale-f2.html I wonder how widely publicised they are? Richmond. From richmondmathewson at gmail.com Tue Jan 27 16:02:38 2015 From: richmondmathewson at gmail.com (Richmond) Date: Tue, 27 Jan 2015 23:02:38 +0200 Subject: 8 ball Message-ID: <54C7FCEE.5030205@gmail.com> Wow: http://livecode.com/blog/2015/01/27/8reasonstotalklivecode8/ Richmond. From pete at lcsql.com Tue Jan 27 16:03:06 2015 From: pete at lcsql.com (Peter Haworth) Date: Tue, 27 Jan 2015 13:03:06 -0800 Subject: Unicode In-Reply-To: <6432465A-97D6-47F8-B65E-65E683B69975@byu.edu> References: <6078DFAC-E4F9-4E52-854E-DDA937F21091@gmail.com> <5599BE2D-7AE8-4362-870E-AF6CBF3B98D0@livecode.com> <6432465A-97D6-47F8-B65E-65E683B69975@byu.edu> Message-ID: Another quick question Devin. Pre 7, you have to address the unicodeText property of an object to do this. ]If I have a variable/custom property whose contents are unidecoded, how can I uniencode it into another variable since it has no unicodeText property? Seems like I would need a hidden filed to act as an intermediary. Maybe I just need to bite the bullet and use LC 7 for this project since it doesn't need to address the unicodeText property. This for making my SQLiteAdmin program unicode capable. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Tue, Jan 27, 2015 at 7:50 AM, Devin Asay wrote: > > On Jan 26, 2015, at 5:35 PM, Peter Haworth wrote: > > > Well I guess I spoke too soon :-) When I said I had things working, I > > meant I could successfully get data from a UTF8 database and display it > > correctly. > > > > I'm now trying to get input from field controls and get it into the > > database. I found a lorem ipsum generator that would create text in > > various languages to I got some Russian text from it and pasted it into > an > > LC field. > > > > In my handler, I need to put the contents of the field into a variable > and > > then hand it off from there to an INSERT statement. I've tried every > > combination of unicodeText, uniencode, unidecode, or none of the above to > > get the correct value into the variable but it either ends up as question > > marks or something that looks nothing like the characters in the field. > > > > This is all with pre 7.0. I think I'm beginning to understand why 7.0 > is a > > lot better to use than pre 7.0 when heavy unicode handling is needed! > > > > But in the meantime, how should I be handling the above situation in pre > > 7.0? > > > > Pete, > > I?ve done this a lot pre-7. Here?s the relevant bit of code: > > put unidecode(the unicodeText of line 1 of fld ?russStuff","utf8") into > tRussTxt > > At that point, since the text in tRussTxt is expressed in plain ASCII you > can just INSERT it or UPDATE your database. To get it out again you reverse > the process: > > set the unicodeText of fld ?russStuff? to > uniencode(tRussFldFromDB,?utf8?) > > LC 7 of course simplifies this process, but you still have to > textEncode/textDecode the text as you?re outputting/inputting it. > > put textEncode(the text of fld ?russStuff?,?utf8?) into tRussTxt # prep > for DB > > put textDecode(tRussFldFromDB,?utf8?) into fld ?russStuff? # display > text from DB > > HTH > > Devin > > > Devin Asay > Office of Digital Humanities > Brigham Young University > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From devin_asay at byu.edu Tue Jan 27 16:45:27 2015 From: devin_asay at byu.edu (Devin Asay) Date: Tue, 27 Jan 2015 21:45:27 +0000 Subject: Unicode In-Reply-To: References: <6078DFAC-E4F9-4E52-854E-DDA937F21091@gmail.com> <5599BE2D-7AE8-4362-870E-AF6CBF3B98D0@livecode.com> <6432465A-97D6-47F8-B65E-65E683B69975@byu.edu> Message-ID: <5DA327CE-4F60-4F65-8E80-C2977C00C075@byu.edu> On Jan 27, 2015, at 2:03 PM, Peter Haworth wrote: > Another quick question Devin. Pre 7, you have to address the unicodeText > property of an object to do this. > > ]If I have a variable/custom property whose contents are unidecoded, how > can I uniencode it into another variable since it has no unicodeText > property? Seems like I would need a hidden filed to act as an intermediary. > > Maybe I just need to bite the bullet and use LC 7 for this project since it > doesn't need to address the unicodeText property. This for making my > SQLiteAdmin program unicode capable. > The way I ended up handling this most of the time in pre-7 was to store the unicode text in a custom property of the object, either as UTF-8 encoded text, or as HTML text. Neither of those approaches suffers from problems with endianness. It is true that for these approaches you often need to process the text through an intermediary text field. LC 7 really is a wonder in terms of how seamless it has made using Unicode in the interface. It came with the slight cost of making text I/O a bit more complicated. devin Devin Asay Office of Digital Humanities Brigham Young University From alex at tweedly.net Tue Jan 27 16:59:44 2015 From: alex at tweedly.net (Alex Tweedly) Date: Tue, 27 Jan 2015 21:59:44 +0000 Subject: IP Calculator Final Version In-Reply-To: References: <159357CC-8C42-4979-989A-E7D644A993A9@iotecdigital.com> <54C6A03E.9060603@tweedly.net> Message-ID: <54C80A50.7080104@tweedly.net> On 27/01/2015 00:22, Bob Sneidar wrote: > Oh thanks Alex I will check for those. I though they would be covered in the part that checks that each octet is a number between 0 and 255. > > As far as the CIDR depth, it is true that technically you can have a CIDR of 32, but it is not a network that can be used. It can't be used as a network - but it can be used in specifying a route to a network (i.e. to a single host), hence its inclusion (Tony Li was working for me at Cisco when he wrote the first CIDR draft :-) -- Alex. From bobsneidar at iotecdigital.com Tue Jan 27 17:01:46 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 27 Jan 2015 22:01:46 +0000 Subject: 8 ball In-Reply-To: <54C7FCEE.5030205@gmail.com> References: <54C7FCEE.5030205@gmail.com> Message-ID: <1FA8A630-17E7-4373-96F3-29770F8DBF25@iotecdigital.com> I can think of 3 or 4 widgets right now that I could convert bits of existing projects into. Bob S > On Jan 27, 2015, at 13:02 , Richmond wrote: > > Wow: > > http://livecode.com/blog/2015/01/27/8reasonstotalklivecode8/ > > Richmond. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Tue Jan 27 18:38:31 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 27 Jan 2015 23:38:31 +0000 Subject: IP Calculator Final Version In-Reply-To: References: <159357CC-8C42-4979-989A-E7D644A993A9@iotecdigital.com> <54C6A03E.9060603@tweedly.net> Message-ID: Hi Alex. Thanks for testing this for me and your input. Here is an updated function that accounts for any non-numerical octets and expands the limits of the CIDR to 0-32. Also, if the IP or the CIDR ends in any number of periods it returns an error. I have made the same check for subnet masks. This reminds me of when I originally started programming. I would proudly show off my new creation to a friend of mine who was a school principle, and he would set about breaking it. :-) It was a good lesson. function IPCalc theIPAddress, theSubnetMask /* IPCalc yyy Syntax: IPCalc theIPAddress, [theSubnetMask] Examples: Description: Derive Internet values from either CIDR notation in the IPAddress or a standard IP and subnet mask Input: . theIPAddress - the IP address in CIDR notation or . theIPAddress - a standard IP address and . theSubNetMask - a standard subNetMask Returns an array of the following values: . bcastaddr . cidraddr . cidrdepth . firstaddr . ipaddress . lastaddr . subnetaddr . subnetmask . usablecount Returns a string beginning with ERROR: if the parameters are out of range Check that the returned value is an array to see if there was an error Source: Bob Sneidar, slylabs13 at icloud.com IPCalc */ set the itemdelimiter to "." -- check parameters -- the IP address must be 4 octets of numbers if the number of items of theIPAddress <>4 \ or the last char of theIPAddress is "." \ or ".." is in theIPAddress then return "ERROR: The IP Address must be in the form:" & cr & \ "'nnn.nnn.nnn.nnn' or 'nnn.nnn.nnn.nnn/nn'. (ipaddress = '" & theIPAddress & "')" end if -- initial setup set the numberFormat to "00000000" -- detemine format if theIPAddress contains "/" then put offset("/", theIPAddress) into theCIDRDelim put char theCIDRDelim +1 to -1 of theIPAddress into theCIDRDepth -- CIDR depth must be a WHOLE number put cleanString(theCIDRDepth) into theCIDRDepth if theCIDRDepth is not a number then return "ERROR: The CIDR Depth must be a number between 0 and 32. " & \ "(CIDRDepth = '" & theCIDRDepth & "')" end if put charx("1", theCIDRDepth) & charx("0", 32-theCIDRDepth) into theBinSubnetMask put baseconvert(char 1 to 8 of theBinSubnetMask, 2, 10) into item 1 of theSubnetMask put baseconvert(char 9 to 16 of theBinSubnetMask, 2, 10) into item 2 of theSubnetMask put baseconvert(char 17 to 24 of theBinSubnetMask, 2, 10) into item 3 of theSubnetMask put baseconvert(char 25 to 32 of theBinSubnetMask, 2, 10) into item 4 of theSubnetMask put char 1 to theCIDRDelim -1 of theIPAddress into theIPAddress else -- subnet mask octets must be 4 numbers between 0 and 255 -- and all octets after the first octet less than 255 must be 0 if the number of items of theSubnetMask <>4 \ or the last char of theSubnetMask is "." \ or ".." is in theSubnetMask then return "ERROR: The Subnet Mask must be in the form:" & cr & \ "'nnn.nnn.nnn.nnn' (subnetmask = '" & theSubnetMask & "')" end if put false into mustBeZero repeat for each item theOctet in theSubnetMask if theOctet <0 or theOctet >255 then return "Each octet in the subnet mask must be a number between 0 and 255. " & \ "(subnetmask = '" & theSubnetMask & "')" end if if mustBeZero and theOctet >0 then return "ERROR: All octets after an octet less than 255 must be 0. " & \ "(subnetmask = '" & theSubnetMask & "')" end if if theOctet <255 then put true into mustBeZero end if end repeat -- convert the subnet mask to binary put 0 into whichOctet repeat for each item theOctet in theSubnetMask add 1 to whichOctet -- subnet mask must contain only 4 octets if whichOctet >4 then return "ERROR: The Subnet Mask must contain 4 numbers between 0 and 255 " & \ "separated by periods. (subnetmask = '" & theSubnetMask & "')" end if put value(baseConvert(theOctet, 10, 2)) after theBinSubnetMask end repeat put offset("0", theBinSubnetMask) -1 into theCIDRDepth end if -- CIDR depth must be between 0 and 32 if theCIDRDepth <0 or theCIDRDepth >32 then return "ERROR: The CIDR Depth must be between 0 and 32. " & \ "(CIDRDepth = '" & theCIDRDepth & "')" end if -- All octets of the IP address must be between 0 and 255 repeat for each item theOctet in theIPAddress if theOctet is empty or theOctet < 0 or theOctet > 255 then return "ERROR: Each IP Address octet must be a number between 0 and 255. " & \ "(ipaddress = '" & theIPAddress & "')" end if end repeat -- convert the ip address to binary put 0 into whichOctet repeat for each item theOctet in theIPAddress add 1 to whichOctet put baseConvert(theOctet, 10, 2) into theBinValue add 0 to theBinValue put theBinValue after theBinIPAddress end repeat -- calculate the binary subnet address put char 1 to theCIDRDepth of theBinIPAddress into theBinNetworkAddr put char theCIDRDepth +1 to -1 of theBinIPAddress into theBinNodeAddr put theBinNodeAddr into theBinSubnetNodeAddr set the numberFormat to "0" replace "1" with "0" in theBinSubnetNodeAddr put theBinNetworkAddr & theBinSubnetNodeAddr into theBinSubnetAddr -- convert the binary subnet address to decimal put baseconvert(char 1 to 8 of theBinSubnetAddr, 2, 10) into item 1 of theSubnetAddr put baseconvert(char 9 to 16 of theBinSubnetAddr, 2, 10) into item 2 of theSubnetAddr put baseconvert(char 17 to 24 of theBinSubnetAddr, 2, 10) into item 3 of theSubnetAddr put baseconvert(char 25 to 32 of theBinSubnetAddr, 2, 10) into item 4 of theSubnetAddr -- calculate the first usable IP address put theSubnetAddr into theFirstAddr add 1 to item 4 of theFirstAddr -- calculate the binary broadcast address put theBinNodeAddr into theBinBcastNodeAddr replace "0" with "1" in theBinBcastNodeAddr put theBinNetworkAddr & theBinBcastNodeAddr into theBinBcastAddr -- convert the binary broadcast address to decimal put baseconvert(char 1 to 8 of theBinBcastAddr, 2, 10) into item 1 of theBcastAddr put baseconvert(char 9 to 16 of theBinBcastAddr, 2, 10) into item 2 of theBcastAddr put baseconvert(char 17 to 24 of theBinBcastAddr, 2, 10) into item 3 of theBcastAddr put baseconvert(char 25 to 32 of theBinBcastAddr, 2, 10) into item 4 of theBcastAddr -- calculate the last usable IP address put theBcastAddr into theLastAddr subtract 1 from item 4 of theLastAddr -- calculate the number of usable addresses -- put item 4 of theLastAddr - item 4 of theFirstAddr +1 into theAddrCount put baseconvert(theBinBcastNodeAddr, 2, 10) -1 into theAddrCount -- calculate the CIDR notation put theIPAddress & "/" & theCIDRDepth into theCIDRAddr -- create array put theIPAddress into ipdata ["ipaddress"] put theSubnetMask into ipdata ["subnetmask"] put theSubnetAddr into ipdata ["subnetaddr"] put theFirstAddr into ipdata ["firstaddr"] put theBcastAddr into ipdata["bcastaddr"] put theLastAddr into ipdata ["lastaddr"] put theCIDRDepth into ipdata ["cidrdepth"] put theAddrCount into ipdata ["usablecount"] put theCIDRAddr into ipdata ["cidraddr"] return ipdata end IPCalc Bob S > On Jan 26, 2015, at 16:22 , Bob Sneidar wrote: > >> On Jan 26, 2015, at 12:14 , Alex Tweedly wrote: >> >> A couple of error cases that aren't caught gracefully >> >> 192.168.1/24.1 >> 192.168..1/24 >> >> One that is accepted and shouldn't be >> 192.168.1.1/24. (note the trailing ".") >> >> Also, not sure why you limit CIDRDepth to between 1 and 30. RFC 4632 specifically says between 0 and 3 - and indeed host routes (/32s) are common enough, as is default route. >> >> Thanks again for contributing this Bob. >> >> -- Alex. From rdimola at evergreeninfo.net Tue Jan 27 18:53:25 2015 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Tue, 27 Jan 2015 18:53:25 -0500 Subject: IP Calculator Final Version In-Reply-To: References: <159357CC-8C42-4979-989A-E7D644A993A9@iotecdigital.com> <54C6A03E.9060603@tweedly.net> Message-ID: <006701d03a8c$7125a7b0$5370f710$@net> I wrote the OS for a custom computer for solving the 3d solution of the FA-18 Flight Simulator back in the 80's. I had to write the floating point input/display routines. I was very proud how I anticipated all the combos for FP input. 1.0/1/1e10/.0005 e-20/0.0005/-55/1.125 e0 and all the other(so I thought) input expectations and error handling. I Demoed it for colleague before I presented it to the team and he typed +0 and it crashed the OS. Woops...... Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Bob Sneidar Sent: Tuesday, January 27, 2015 6:39 PM To: How to use LiveCode Subject: Re: IP Calculator Final Version Hi Alex. Thanks for testing this for me and your input. Here is an updated function that accounts for any non-numerical octets and expands the limits of the CIDR to 0-32. Also, if the IP or the CIDR ends in any number of periods it returns an error. I have made the same check for subnet masks. This reminds me of when I originally started programming. I would proudly show off my new creation to a friend of mine who was a school principle, and he would set about breaking it. :-) It was a good lesson. function IPCalc theIPAddress, theSubnetMask /* IPCalc yyy Syntax: IPCalc theIPAddress, [theSubnetMask] Examples: Description: Derive Internet values from either CIDR notation in the IPAddress or a standard IP and subnet mask Input: . theIPAddress - the IP address in CIDR notation or . theIPAddress - a standard IP address and . theSubNetMask - a standard subNetMask Returns an array of the following values: . bcastaddr . cidraddr . cidrdepth . firstaddr . ipaddress . lastaddr . subnetaddr . subnetmask . usablecount Returns a string beginning with ERROR: if the parameters are out of range Check that the returned value is an array to see if there was an error Source: Bob Sneidar, slylabs13 at icloud.com IPCalc */ set the itemdelimiter to "." -- check parameters -- the IP address must be 4 octets of numbers if the number of items of theIPAddress <>4 \ or the last char of theIPAddress is "." \ or ".." is in theIPAddress then return "ERROR: The IP Address must be in the form:" & cr & \ "'nnn.nnn.nnn.nnn' or 'nnn.nnn.nnn.nnn/nn'. (ipaddress = '" & theIPAddress & "')" end if -- initial setup set the numberFormat to "00000000" -- detemine format if theIPAddress contains "/" then put offset("/", theIPAddress) into theCIDRDelim put char theCIDRDelim +1 to -1 of theIPAddress into theCIDRDepth -- CIDR depth must be a WHOLE number put cleanString(theCIDRDepth) into theCIDRDepth if theCIDRDepth is not a number then return "ERROR: The CIDR Depth must be a number between 0 and 32. " & \ "(CIDRDepth = '" & theCIDRDepth & "')" end if put charx("1", theCIDRDepth) & charx("0", 32-theCIDRDepth) into theBinSubnetMask put baseconvert(char 1 to 8 of theBinSubnetMask, 2, 10) into item 1 of theSubnetMask put baseconvert(char 9 to 16 of theBinSubnetMask, 2, 10) into item 2 of theSubnetMask put baseconvert(char 17 to 24 of theBinSubnetMask, 2, 10) into item 3 of theSubnetMask put baseconvert(char 25 to 32 of theBinSubnetMask, 2, 10) into item 4 of theSubnetMask put char 1 to theCIDRDelim -1 of theIPAddress into theIPAddress else -- subnet mask octets must be 4 numbers between 0 and 255 -- and all octets after the first octet less than 255 must be 0 if the number of items of theSubnetMask <>4 \ or the last char of theSubnetMask is "." \ or ".." is in theSubnetMask then return "ERROR: The Subnet Mask must be in the form:" & cr & \ "'nnn.nnn.nnn.nnn' (subnetmask = '" & theSubnetMask & "')" end if put false into mustBeZero repeat for each item theOctet in theSubnetMask if theOctet <0 or theOctet >255 then return "Each octet in the subnet mask must be a number between 0 and 255. " & \ "(subnetmask = '" & theSubnetMask & "')" end if if mustBeZero and theOctet >0 then return "ERROR: All octets after an octet less than 255 must be 0. " & \ "(subnetmask = '" & theSubnetMask & "')" end if if theOctet <255 then put true into mustBeZero end if end repeat -- convert the subnet mask to binary put 0 into whichOctet repeat for each item theOctet in theSubnetMask add 1 to whichOctet -- subnet mask must contain only 4 octets if whichOctet >4 then return "ERROR: The Subnet Mask must contain 4 numbers between 0 and 255 " & \ "separated by periods. (subnetmask = '" & theSubnetMask & "')" end if put value(baseConvert(theOctet, 10, 2)) after theBinSubnetMask end repeat put offset("0", theBinSubnetMask) -1 into theCIDRDepth end if -- CIDR depth must be between 0 and 32 if theCIDRDepth <0 or theCIDRDepth >32 then return "ERROR: The CIDR Depth must be between 0 and 32. " & \ "(CIDRDepth = '" & theCIDRDepth & "')" end if -- All octets of the IP address must be between 0 and 255 repeat for each item theOctet in theIPAddress if theOctet is empty or theOctet < 0 or theOctet > 255 then return "ERROR: Each IP Address octet must be a number between 0 and 255. " & \ "(ipaddress = '" & theIPAddress & "')" end if end repeat -- convert the ip address to binary put 0 into whichOctet repeat for each item theOctet in theIPAddress add 1 to whichOctet put baseConvert(theOctet, 10, 2) into theBinValue add 0 to theBinValue put theBinValue after theBinIPAddress end repeat -- calculate the binary subnet address put char 1 to theCIDRDepth of theBinIPAddress into theBinNetworkAddr put char theCIDRDepth +1 to -1 of theBinIPAddress into theBinNodeAddr put theBinNodeAddr into theBinSubnetNodeAddr set the numberFormat to "0" replace "1" with "0" in theBinSubnetNodeAddr put theBinNetworkAddr & theBinSubnetNodeAddr into theBinSubnetAddr -- convert the binary subnet address to decimal put baseconvert(char 1 to 8 of theBinSubnetAddr, 2, 10) into item 1 of theSubnetAddr put baseconvert(char 9 to 16 of theBinSubnetAddr, 2, 10) into item 2 of theSubnetAddr put baseconvert(char 17 to 24 of theBinSubnetAddr, 2, 10) into item 3 of theSubnetAddr put baseconvert(char 25 to 32 of theBinSubnetAddr, 2, 10) into item 4 of theSubnetAddr -- calculate the first usable IP address put theSubnetAddr into theFirstAddr add 1 to item 4 of theFirstAddr -- calculate the binary broadcast address put theBinNodeAddr into theBinBcastNodeAddr replace "0" with "1" in theBinBcastNodeAddr put theBinNetworkAddr & theBinBcastNodeAddr into theBinBcastAddr -- convert the binary broadcast address to decimal put baseconvert(char 1 to 8 of theBinBcastAddr, 2, 10) into item 1 of theBcastAddr put baseconvert(char 9 to 16 of theBinBcastAddr, 2, 10) into item 2 of theBcastAddr put baseconvert(char 17 to 24 of theBinBcastAddr, 2, 10) into item 3 of theBcastAddr put baseconvert(char 25 to 32 of theBinBcastAddr, 2, 10) into item 4 of theBcastAddr -- calculate the last usable IP address put theBcastAddr into theLastAddr subtract 1 from item 4 of theLastAddr -- calculate the number of usable addresses -- put item 4 of theLastAddr - item 4 of theFirstAddr +1 into theAddrCount put baseconvert(theBinBcastNodeAddr, 2, 10) -1 into theAddrCount -- calculate the CIDR notation put theIPAddress & "/" & theCIDRDepth into theCIDRAddr -- create array put theIPAddress into ipdata ["ipaddress"] put theSubnetMask into ipdata ["subnetmask"] put theSubnetAddr into ipdata ["subnetaddr"] put theFirstAddr into ipdata ["firstaddr"] put theBcastAddr into ipdata["bcastaddr"] put theLastAddr into ipdata ["lastaddr"] put theCIDRDepth into ipdata ["cidrdepth"] put theAddrCount into ipdata ["usablecount"] put theCIDRAddr into ipdata ["cidraddr"] return ipdata end IPCalc Bob S > On Jan 26, 2015, at 16:22 , Bob Sneidar wrote: > >> On Jan 26, 2015, at 12:14 , Alex Tweedly wrote: >> >> A couple of error cases that aren't caught gracefully >> >> 192.168.1/24.1 >> 192.168..1/24 >> >> One that is accepted and shouldn't be >> 192.168.1.1/24. (note the trailing ".") >> >> Also, not sure why you limit CIDRDepth to between 1 and 30. RFC 4632 specifically says between 0 and 3 - and indeed host routes (/32s) are common enough, as is default route. >> >> Thanks again for contributing this Bob. >> >> -- Alex. _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From alex at tweedly.net Tue Jan 27 19:06:22 2015 From: alex at tweedly.net (Alex Tweedly) Date: Wed, 28 Jan 2015 00:06:22 +0000 Subject: IP Calculator Final Version In-Reply-To: <006701d03a8c$7125a7b0$5370f710$@net> References: <159357CC-8C42-4979-989A-E7D644A993A9@iotecdigital.com> <54C6A03E.9060603@tweedly.net> <006701d03a8c$7125a7b0$5370f710$@net> Message-ID: <54C827FE.6070903@tweedly.net> On 27/01/2015 23:53, Ralph DiMola wrote: > I wrote the OS for a custom computer for solving the 3d solution of the > FA-18 Flight Simulator back in the 80's. I had to write the floating point > input/display routines. I was very proud how I anticipated all the combos > for FP input. 1.0/1/1e10/.0005 e-20/0.0005/-55/1.125 e0 and all the other(so > I thought) input expectations and error handling. I Demoed it for colleague > before I presented it to the team and he typed +0 and it crashed the OS. > Woops...... > Back in the 80's, I worked on a graphics display/editor for an IC design system; it worked on Tektronix 401x displays. We had a really irritating bug that we just couldn't find, so every so often, during a screen refresh (which could take 10-30 seconds), the program would crash; this was always preceded by failures in the re-drawing, which could be easily recognized by someone experienced with it, but weren't immediately obvious to a casual observer. The Tektronix displays had this really stooopid design feature - the on/off switch was on the lower right front of the pedestal just where your right foot could inadvertantly catch on it as you crossed or uncrossed your legs, and switch off the display. It was surprising how often the operator demo-ing the system to a potential customer would accidentally hit that switch when failure mode was imminent :-) -- Alex. From andrew at ctech.me Tue Jan 27 20:03:00 2015 From: andrew at ctech.me (Andrew Kluthe) Date: Tue, 27 Jan 2015 19:03:00 -0600 Subject: 8 ball In-Reply-To: <1FA8A630-17E7-4373-96F3-29770F8DBF25@iotecdigital.com> References: <54C7FCEE.5030205@gmail.com> <1FA8A630-17E7-4373-96F3-29770F8DBF25@iotecdigital.com> Message-ID: Some code snippets of how each were accomplished to preview the usage would go a long way to making this interesting. In the past we have gotten short screencasts demonstrating how simple it is to accomplish something using a particular up and coming feature. On Tue, Jan 27, 2015 at 4:01 PM, Bob Sneidar wrote: > I can think of 3 or 4 widgets right now that I could convert bits of > existing projects into. > > Bob S > > > > On Jan 27, 2015, at 13:02 , Richmond > wrote: > > > > Wow: > > > > http://livecode.com/blog/2015/01/27/8reasonstotalklivecode8/ > > > > Richmond. > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Regards, Andrew Kluthe andrew at ctech.me From dfepstein at comcast.net Tue Jan 27 20:11:44 2015 From: dfepstein at comcast.net (David Epstein) Date: Tue, 27 Jan 2015 20:11:44 -0500 Subject: Invisible character treated as word? Message-ID: <9F4EDD32-EA1E-45BD-A834-A53FEA4A4905@comcast.net> For a tab-delimited table of numbers, I want to be sure that none of the numbers is surrounded by invisible spaces that will interfere with using the numbers in calculation. I do that by overwriting each cell with "word 1 to -1 of" that cell. This generally works fine, but was tripped up by a case in which a number was followed by what looked like two spaces. Closer inspection revealed that the second space had charToNum value 202. Even though it is invisible, LiveCode (5.5) seems to treat it as a word, and so my script did not strip it out. Are there other characters that are always or sometimes invisible that cause the same problem? And what is a remedy? Many thanks. David Epstein From rdimola at evergreeninfo.net Tue Jan 27 20:29:41 2015 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Tue, 27 Jan 2015 20:29:41 -0500 Subject: Invisible character treated as word? In-Reply-To: <9F4EDD32-EA1E-45BD-A834-A53FEA4A4905@comcast.net> References: <9F4EDD32-EA1E-45BD-A834-A53FEA4A4905@comcast.net> Message-ID: <007001d03a99$e416a140$ac43e3c0$@net> A non-breaking space(160) is respected in LC as a word delimiter. But the 202 is just another character. In the standard extended ascii table this is a ? character In other character sets is might be displayed as a space or just invisible. This would be part of the word it's adjacent to. GIGO. If someone put a 202 in a number field or data file in my apps, then it's on them. If you want just numbers then do a chartonum for each character and make sure it's in range of chartonum("0") to chartonum("9") or a decimal point it it's a real. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of David Epstein Sent: Tuesday, January 27, 2015 8:12 PM To: use-livecode at lists.runrev.com Subject: Invisible character treated as word? For a tab-delimited table of numbers, I want to be sure that none of the numbers is surrounded by invisible spaces that will interfere with using the numbers in calculation. I do that by overwriting each cell with "word 1 to -1 of" that cell. This generally works fine, but was tripped up by a case in which a number was followed by what looked like two spaces. Closer inspection revealed that the second space had charToNum value 202. Even though it is invisible, LiveCode (5.5) seems to treat it as a word, and so my script did not strip it out. Are there other characters that are always or sometimes invisible that cause the same problem? And what is a remedy? Many thanks. David Epstein _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From mwieder at ahsoftware.net Tue Jan 27 21:29:06 2015 From: mwieder at ahsoftware.net (Mark Wieder) Date: Tue, 27 Jan 2015 18:29:06 -0800 Subject: IP Calculator Final Version In-Reply-To: <54C80A50.7080104@tweedly.net> References: <159357CC-8C42-4979-989A-E7D644A993A9@iotecdigital.com> <54C6A03E.9060603@tweedly.net> <54C80A50.7080104@tweedly.net> Message-ID: <41195311510.20150127182906@ahsoftware.net> Alex- Tuesday, January 27, 2015, 1:59:44 PM, you wrote: >> As far as the CIDR depth, it is true that technically you can >> have a CIDR of 32, but it is not a network that can be used. > It can't be used as a network - but it can be used in specifying a route > to a network (i.e. to a single host), Interesting. I never thought of using a CIDR of 32. Although now that I'm thinking about it, I can't think of a context in which I'd put it to use. Maybe if I really wanted to tighten up security and create a bottleneck for routing... -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From lan.kc.macmail at gmail.com Tue Jan 27 21:46:36 2015 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Wed, 28 Jan 2015 10:46:36 +0800 Subject: Invisible character treated as word? In-Reply-To: <9F4EDD32-EA1E-45BD-A834-A53FEA4A4905@comcast.net> References: <9F4EDD32-EA1E-45BD-A834-A53FEA4A4905@comcast.net> Message-ID: On Wed, Jan 28, 2015 at 9:11 AM, David Epstein wrote: > > Are there other characters that are always or sometimes invisible that > cause the same problem? And what is a remedy? > Many thanks. > In the multi-line msg box: put empty into msg repeat with x = 0 to 255 put x & " = " & numToChar(x) & cr after msg end repeat On all English OSs the first 32 should be blank. On all English OSs the chars up to 127 should be identical. On all English OSs char 127 should be 'intentionally blank'. On different OS the chars vary for chars 128 to 255. On OS X char 202 is also 'intentionally blank' - no idea for Win or Linux. ASCII 32 is a space, those lower than 32 may or may not cause the same problem you are seeing. My suggested solution is where ever the data originally came from, prior to inputting into your fields, variables or custom properties, it should be tested to confirm that the data only contains ASCII chars 48 to 57 (unless you include thousand separators and or decimal points, in which case you'd have to include their ASCII equivalents as well). HTH From sundown at pacifier.com Tue Jan 27 22:28:57 2015 From: sundown at pacifier.com (JB) Date: Tue, 27 Jan 2015 19:28:57 -0800 Subject: Invisible character treated as word? In-Reply-To: References: <9F4EDD32-EA1E-45BD-A834-A53FEA4A4905@comcast.net> Message-ID: <5F6E5F55-7EFE-43C1-89B6-53C0F1FCFD46@pacifier.com> On Jan 27, 2015, at 6:46 PM, Kay C Lan wrote: > > My suggested solution is where ever the data originally came from, prior to > inputting into your fields, variables or custom properties, it should be > tested to confirm that the data only contains ASCII chars 48 to 57 (unless > you include thousand separators and or decimal points, in which case you'd > have to include their ASCII equivalents as well). > > HTH How about something like this? put ?0123456789.,? into tList ?put the text you want to check in pText repeat with x = 1 to number of chars in pText if char x of pText is in tList then put char x of pText in tCleanText end repeat put tCleanText John Balgenorth From sundown at pacifier.com Tue Jan 27 22:34:36 2015 From: sundown at pacifier.com (JB) Date: Tue, 27 Jan 2015 19:34:36 -0800 Subject: Invisible character treated as word? In-Reply-To: <5F6E5F55-7EFE-43C1-89B6-53C0F1FCFD46@pacifier.com> References: <9F4EDD32-EA1E-45BD-A834-A53FEA4A4905@comcast.net> <5F6E5F55-7EFE-43C1-89B6-53C0F1FCFD46@pacifier.com> Message-ID: <7D4CF5F7-7FFF-46E1-8CDB-83D5FCBA8D2F@pacifier.com> That should have been put after tCleanText > repeat with x = 1 to number of chars in pText > if char x of pText is in tList then put char x of pText in tCleanText > end repeat On Jan 27, 2015, at 7:28 PM, JB wrote: > > On Jan 27, 2015, at 6:46 PM, Kay C Lan wrote: > >> >> My suggested solution is where ever the data originally came from, prior to >> inputting into your fields, variables or custom properties, it should be >> tested to confirm that the data only contains ASCII chars 48 to 57 (unless >> you include thousand separators and or decimal points, in which case you'd >> have to include their ASCII equivalents as well). >> >> HTH > > How about something like this? > > put ?0123456789.,? into tList > ?put the text you want to check in pText > > repeat with x = 1 to number of chars in pText > if char x of pText is in tList then put char x of pText in tCleanText > end repeat > > put tCleanText > > John Balgenorth > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From revdev at pdslabs.net Tue Jan 27 23:47:59 2015 From: revdev at pdslabs.net (Phil Davis) Date: Tue, 27 Jan 2015 20:47:59 -0800 Subject: 8 ball In-Reply-To: References: <54C7FCEE.5030205@gmail.com> <1FA8A630-17E7-4373-96F3-29770F8DBF25@iotecdigital.com> Message-ID: <54C869FF.5090801@pdslabs.net> From Ben's post: "... it lets you hook into platform APIs without having to write any native code or modify the source code of LiveCode." With due respect to widgets, THAT'S what I'm waiting for! Phil On 1/27/15 5:03 PM, Andrew Kluthe wrote: > Some code snippets of how each were accomplished to preview the usage would > go a long way to making this interesting. In the past we have gotten short > screencasts demonstrating how simple it is to accomplish something using a > particular up and coming feature. > > On Tue, Jan 27, 2015 at 4:01 PM, Bob Sneidar > wrote: > >> I can think of 3 or 4 widgets right now that I could convert bits of >> existing projects into. >> >> Bob S >> >> >>> On Jan 27, 2015, at 13:02 , Richmond >> wrote: >>> Wow: >>> >>> http://livecode.com/blog/2015/01/27/8reasonstotalklivecode8/ >>> >>> Richmond. >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > -- Phil Davis From dixonja at hotmail.co.uk Wed Jan 28 03:50:45 2015 From: dixonja at hotmail.co.uk (John Dixon) Date: Wed, 28 Jan 2015 08:50:45 +0000 Subject: UIScrollView in 7.0.2 Message-ID: Have not had any problems with LC 7.0... tried LC 7.0.2 last night and found that the 'scrollers' won't scroll...:-( Using the same stack as using in LC 7.0 Anyone else seeing this ? From dave at applicationinsight.com Wed Jan 28 05:32:55 2015 From: dave at applicationinsight.com (Dave Kilroy) Date: Wed, 28 Jan 2015 02:32:55 -0800 (PST) Subject: 8 ball In-Reply-To: <54C869FF.5090801@pdslabs.net> References: <54C7FCEE.5030205@gmail.com> <1FA8A630-17E7-4373-96F3-29770F8DBF25@iotecdigital.com> <54C869FF.5090801@pdslabs.net> Message-ID: <1422441175024-4688254.post@n4.nabble.com> Really looking forward to experimenting with LiveCode Builder - so many primarily-visual widgets (and non-visual things as libraries) I could build! ----- "Some are born coders, some achieve coding, and some have coding thrust upon them." - William Shakespeare & Hugh Senior -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/8-ball-tp4688237p4688254.html Sent from the Revolution - User mailing list archive at Nabble.com. From alain.vezina at logilangue.com Wed Jan 28 10:24:57 2015 From: alain.vezina at logilangue.com (Alain Vezina) Date: Wed, 28 Jan 2015 10:24:57 -0500 Subject: 32 and 64 bit in LiveCode Message-ID: <472F07BB-A590-4D69-9AEF-B0C2415B60FB@logilangue.com> Hi all, Yesterday I loaded an upgrade of one of my iOS apps to the Apple App Store and I received this message Beginning on February 1, 2015 new iOS apps submitted to the App Store must include 64-bit support and be built with the iOS 8 SDK. Beginning June 1, 2015 app updates will also need to follow the same requirements. To enable 64-bit in your project, we recommend using the default Xcode build setting of ?Standard architectures? to build a single binary with both 32-bit and 64-bit code. I am wondering when LiveCode will include the 64-bit support for iOS. I am so disappointed of the LC 7.0.1 with iOS 8 (slow with the splahscreen , crashes, the command type no longer working, and so on) that I am not sure I will continue coding with LiveCode although I am coding with LC for more than 10 years. I waited six months to get a more powerful version of LC and I think I can?t make the users of my apps wait for so long time before they get a new version from me. LiveCode was wonderful before. Alain Vezina Logilangue www.logilangue.com From fraser.gordon at livecode.com Wed Jan 28 10:32:38 2015 From: fraser.gordon at livecode.com (Fraser Gordon) Date: Wed, 28 Jan 2015 15:32:38 +0000 Subject: 32 and 64 bit in LiveCode In-Reply-To: <472F07BB-A590-4D69-9AEF-B0C2415B60FB@logilangue.com> References: <472F07BB-A590-4D69-9AEF-B0C2415B60FB@logilangue.com> Message-ID: <2FF67497-7AC8-46BC-8D28-8CC771360B53@livecode.com> On 28 Jan 2015, at 15:24, Alain Vezina wrote: > I am wondering when LiveCode will include the 64-bit support for iOS. 64-bit/32-bit universal iOS 8.1 engines have been added in 6.7.2 and 7.0.2 (both are currently at the RC stage). Regards, Fraser From bobsneidar at iotecdigital.com Wed Jan 28 10:58:43 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 28 Jan 2015 15:58:43 +0000 Subject: Control Shift Graphic Bug Possible Cause Message-ID: Hi all. I reported and filed a bug report about going to a card and having all the controls shifted, and ?holes? in the background graphic where the controls should have been. I just noticed that sometimes because of the size of my windows, my stack window positions will shift up to where the title bar is behind the Toolbar. When this just happened I noticed the controls had all shifted producing this bug. However, when I moved the window so that the title bar was no longer behind the toolbar, the window redrew correctly. Anyone having this graphic bug give that a try next t time it rears it?s ugly head. Bob S From devin_asay at byu.edu Wed Jan 28 11:33:18 2015 From: devin_asay at byu.edu (Devin Asay) Date: Wed, 28 Jan 2015 16:33:18 +0000 Subject: Control Shift Graphic Bug Possible Cause In-Reply-To: References: Message-ID: <078651A0-042D-4A4C-9829-A58DE5C41409@byu.edu> On Jan 28, 2015, at 8:58 AM, Bob Sneidar wrote: > Hi all. > > I reported and filed a bug report about going to a card and having all the controls shifted, and ?holes? in the background graphic where the controls should have been. I just noticed that sometimes because of the size of my windows, my stack window positions will shift up to where the title bar is behind the Toolbar. When this just happened I noticed the controls had all shifted producing this bug. However, when I moved the window so that the title bar was no longer behind the toolbar, the window redrew correctly. > > Anyone having this graphic bug give that a try next t time it rears it?s ugly head. > Bob, What?s the bug number? It sounds similar to this one that I filed a few weeks ago: http://quality.runrev.com/show_bug.cgi?id=13883 Devin Devin Asay Office of Digital Humanities Brigham Young University From paul at livecode.org Wed Jan 28 11:43:49 2015 From: paul at livecode.org (Paul Hibbert) Date: Wed, 28 Jan 2015 08:43:49 -0800 Subject: extracting the thumbnail from digital photos? In-Reply-To: References: Message-ID: Thank you Alejandro for posting this. I've tried it on OS X and found it works well. I've also tried it with the JPEGS straight from a Nikon camera and it works with them too, and it works on PSD files that are saved with a thumbnail image. Regards, Paul > On Jan 26, 2015, at 3:59 PM, Alejandro Tejada wrote: > > Hi, > > This script works in LiveCode 7.0.1 > under Windows: > > (Notice that I am using byte instead of char > as recommended in release notes and, > unlike Ubuntu, I have to set the casesensitive > to true to make it work) > > First, download this 8 MB image that contains > two thumbnails (320x240 and 160x120): > (this link should be in a single line) > > http://216.18.212.226/PRODS/fuji-x100t/FULLRES/X100ThSLI00100NR2D.JPG > > Create a stack and put this script > in a button: > > on mouseUp > local temp > answer file "Select JPEG image with EXIF thumbnail data" > put it into temp > open file temp for binary read > read from file temp for 100000 > put it into temp1 > close file temp > > put numtobyte(255) & numtobyte(216) into tStart > -- in Hexadecimal: FFD8 = SOI(Start of jpeg image) > put numtobyte(255) & numtobyte(217) into tEnd > -- in Hexadecimal: FFD9 = EOI(End of jpeg image) > > delete byte 1 to 2 of temp1 > -- delete JPEG SOI (Start of jpeg image) > if byte -2 to -1 of temp1 = tEnd then delete byte -2 to -1 of temp1 > -- delete JPEG EOI(End of jpeg image) > > set the casesensitive to true > > > repeat until offset(tEnd,temp1) = 0 > > -- repeat until offset(tStart,temp1) = 0 > > put offset(tStart,temp1) into tThumbstart > put offset(tEnd,temp1) into tThumbEnd > > put byte tThumbstart to (tThumbEnd + 1) of temp1 into tJPGThumb > > delete byte 1 to (tThumbEnd + 1) of temp1 > > if tJPGThumb is not empty > then > create img > set the text of it to tJPGThumb > else > answer "No JPEG Thumbnails in this image" > end if > > end repeat > end mouseUp > > Al > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From mikedoub at gmail.com Wed Jan 28 15:06:51 2015 From: mikedoub at gmail.com (Michael Doub) Date: Wed, 28 Jan 2015 15:06:51 -0500 Subject: IP Calculator Final Version In-Reply-To: References: <159357CC-8C42-4979-989A-E7D644A993A9@iotecdigital.com> <54C6A03E.9060603@tweedly.net> Message-ID: <54C9415B.6050204@gmail.com> The MasterLibrary is now current with this version of IPCalc. It also has a adaption of the Alejando Tejada's thumbnail extraction routine. https://www.dropbox.com/s/3wpwn3hfbmpl7sk/MasterLibrary.livecode?dl=0 -= Mike On 1/27/15 6:38 PM, Bob Sneidar wrote: > Hi Alex. > > Thanks for testing this for me and your input. Here is an updated function that accounts for any non-numerical octets and expands the limits of the CIDR to 0-32. Also, if the IP or the CIDR ends in any number of periods it returns an error. I have made the same check for subnet masks. > > This reminds me of when I originally started programming. I would proudly show off my new creation to a friend of mine who was a school principle, and he would set about breaking it. :-) It was a good lesson. > > function IPCalc theIPAddress, theSubnetMask > /* IPCalc yyy > Syntax: > IPCalc theIPAddress, [theSubnetMask] > Examples: > > Description: > Derive Internet values from either CIDR notation in the IPAddress > or a standard IP and subnet mask > > Input: > . theIPAddress - the IP address in CIDR notation > or > . theIPAddress - a standard IP address and > . theSubNetMask - a standard subNetMask > > Returns an array of the following values: > . bcastaddr > . cidraddr > . cidrdepth > . firstaddr > . ipaddress > . lastaddr > . subnetaddr > . subnetmask > . usablecount > Returns a string beginning with ERROR: if the parameters are out of range > Check that the returned value is an array to see if there was an error > > Source: > Bob Sneidar, slylabs13 at icloud.com > IPCalc */ > > set the itemdelimiter to "." > > -- check parameters > -- the IP address must be 4 octets of numbers > if the number of items of theIPAddress <>4 \ > or the last char of theIPAddress is "." \ > or ".." is in theIPAddress then > return "ERROR: The IP Address must be in the form:" & cr & \ > "'nnn.nnn.nnn.nnn' or 'nnn.nnn.nnn.nnn/nn'. (ipaddress = '" & theIPAddress & "')" > end if > > -- initial setup > set the numberFormat to "00000000" > > -- detemine format > if theIPAddress contains "/" then > put offset("/", theIPAddress) into theCIDRDelim > put char theCIDRDelim +1 to -1 of theIPAddress into theCIDRDepth > > -- CIDR depth must be a WHOLE number > put cleanString(theCIDRDepth) into theCIDRDepth > > if theCIDRDepth is not a number then > return "ERROR: The CIDR Depth must be a number between 0 and 32. " & \ > "(CIDRDepth = '" & theCIDRDepth & "')" > end if > > put charx("1", theCIDRDepth) & charx("0", 32-theCIDRDepth) into theBinSubnetMask > put baseconvert(char 1 to 8 of theBinSubnetMask, 2, 10) into item 1 of theSubnetMask > put baseconvert(char 9 to 16 of theBinSubnetMask, 2, 10) into item 2 of theSubnetMask > put baseconvert(char 17 to 24 of theBinSubnetMask, 2, 10) into item 3 of theSubnetMask > put baseconvert(char 25 to 32 of theBinSubnetMask, 2, 10) into item 4 of theSubnetMask > put char 1 to theCIDRDelim -1 of theIPAddress into theIPAddress > else > -- subnet mask octets must be 4 numbers between 0 and 255 > -- and all octets after the first octet less than 255 must be 0 > > if the number of items of theSubnetMask <>4 \ > or the last char of theSubnetMask is "." \ > or ".." is in theSubnetMask then > return "ERROR: The Subnet Mask must be in the form:" & cr & \ > "'nnn.nnn.nnn.nnn' (subnetmask = '" & theSubnetMask & "')" > end if > > put false into mustBeZero > repeat for each item theOctet in theSubnetMask > > if theOctet <0 or theOctet >255 then > return "Each octet in the subnet mask must be a number between 0 and 255. " & \ > "(subnetmask = '" & theSubnetMask & "')" > end if > > if mustBeZero and theOctet >0 then > return "ERROR: All octets after an octet less than 255 must be 0. " & \ > "(subnetmask = '" & theSubnetMask & "')" > end if > > if theOctet <255 then > put true into mustBeZero > end if > end repeat > > -- convert the subnet mask to binary > put 0 into whichOctet > repeat for each item theOctet in theSubnetMask > add 1 to whichOctet > > -- subnet mask must contain only 4 octets > if whichOctet >4 then > return "ERROR: The Subnet Mask must contain 4 numbers between 0 and 255 " & \ > "separated by periods. (subnetmask = '" & theSubnetMask & "')" > end if > > put value(baseConvert(theOctet, 10, 2)) after theBinSubnetMask > end repeat > put offset("0", theBinSubnetMask) -1 into theCIDRDepth > end if > > -- CIDR depth must be between 0 and 32 > if theCIDRDepth <0 or theCIDRDepth >32 then > return "ERROR: The CIDR Depth must be between 0 and 32. " & \ > "(CIDRDepth = '" & theCIDRDepth & "')" > end if > > -- All octets of the IP address must be between 0 and 255 > repeat for each item theOctet in theIPAddress > if theOctet is empty or theOctet < 0 or theOctet > 255 then > return "ERROR: Each IP Address octet must be a number between 0 and 255. " & \ > "(ipaddress = '" & theIPAddress & "')" > end if > end repeat > > -- convert the ip address to binary > put 0 into whichOctet > repeat for each item theOctet in theIPAddress > add 1 to whichOctet > put baseConvert(theOctet, 10, 2) into theBinValue > add 0 to theBinValue > put theBinValue after theBinIPAddress > end repeat > > -- calculate the binary subnet address > put char 1 to theCIDRDepth of theBinIPAddress into theBinNetworkAddr > put char theCIDRDepth +1 to -1 of theBinIPAddress into theBinNodeAddr > put theBinNodeAddr into theBinSubnetNodeAddr > set the numberFormat to "0" > replace "1" with "0" in theBinSubnetNodeAddr > put theBinNetworkAddr & theBinSubnetNodeAddr into theBinSubnetAddr > > -- convert the binary subnet address to decimal > put baseconvert(char 1 to 8 of theBinSubnetAddr, 2, 10) into item 1 of theSubnetAddr > put baseconvert(char 9 to 16 of theBinSubnetAddr, 2, 10) into item 2 of theSubnetAddr > put baseconvert(char 17 to 24 of theBinSubnetAddr, 2, 10) into item 3 of theSubnetAddr > put baseconvert(char 25 to 32 of theBinSubnetAddr, 2, 10) into item 4 of theSubnetAddr > > -- calculate the first usable IP address > put theSubnetAddr into theFirstAddr > add 1 to item 4 of theFirstAddr > > -- calculate the binary broadcast address > put theBinNodeAddr into theBinBcastNodeAddr > replace "0" with "1" in theBinBcastNodeAddr > put theBinNetworkAddr & theBinBcastNodeAddr into theBinBcastAddr > > -- convert the binary broadcast address to decimal > put baseconvert(char 1 to 8 of theBinBcastAddr, 2, 10) into item 1 of theBcastAddr > put baseconvert(char 9 to 16 of theBinBcastAddr, 2, 10) into item 2 of theBcastAddr > put baseconvert(char 17 to 24 of theBinBcastAddr, 2, 10) into item 3 of theBcastAddr > put baseconvert(char 25 to 32 of theBinBcastAddr, 2, 10) into item 4 of theBcastAddr > > -- calculate the last usable IP address > put theBcastAddr into theLastAddr > subtract 1 from item 4 of theLastAddr > > -- calculate the number of usable addresses > -- put item 4 of theLastAddr - item 4 of theFirstAddr +1 into theAddrCount > put baseconvert(theBinBcastNodeAddr, 2, 10) -1 into theAddrCount > > -- calculate the CIDR notation > put theIPAddress & "/" & theCIDRDepth into theCIDRAddr > > -- create array > put theIPAddress into ipdata ["ipaddress"] > put theSubnetMask into ipdata ["subnetmask"] > put theSubnetAddr into ipdata ["subnetaddr"] > put theFirstAddr into ipdata ["firstaddr"] > put theBcastAddr into ipdata["bcastaddr"] > put theLastAddr into ipdata ["lastaddr"] > put theCIDRDepth into ipdata ["cidrdepth"] > put theAddrCount into ipdata ["usablecount"] > put theCIDRAddr into ipdata ["cidraddr"] > return ipdata > end IPCalc > > Bob S > > >> On Jan 26, 2015, at 16:22 , Bob Sneidar wrote: >> >>> On Jan 26, 2015, at 12:14 , Alex Tweedly wrote: >>> >>> A couple of error cases that aren't caught gracefully >>> >>> 192.168.1/24.1 >>> 192.168..1/24 >>> >>> One that is accepted and shouldn't be >>> 192.168.1.1/24. (note the trailing ".") >>> >>> Also, not sure why you limit CIDRDepth to between 1 and 30. RFC 4632 specifically says between 0 and 3 - and indeed host routes (/32s) are common enough, as is default route. >>> >>> Thanks again for contributing this Bob. >>> >>> -- Alex. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From lan.kc.macmail at gmail.com Wed Jan 28 20:11:26 2015 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Thu, 29 Jan 2015 09:11:26 +0800 Subject: 8 ball In-Reply-To: <1422441175024-4688254.post@n4.nabble.com> References: <54C7FCEE.5030205@gmail.com> <1FA8A630-17E7-4373-96F3-29770F8DBF25@iotecdigital.com> <54C869FF.5090801@pdslabs.net> <1422441175024-4688254.post@n4.nabble.com> Message-ID: The real question is, will there be some easy to access, logically presented and categorised central store for all the GPL widgets that are currently dreams but hopefully turn into reality when LC 8 arrives? On Wed, Jan 28, 2015 at 6:32 PM, Dave Kilroy wrote: > Really looking forward to experimenting with LiveCode Builder - so many > primarily-visual widgets (and non-visual things as libraries) I could > build! > > > > ----- > "Some are born coders, some achieve coding, and some have coding thrust > upon them." - William Shakespeare & Hugh Senior > > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/8-ball-tp4688237p4688254.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From brahma at hindu.org Wed Jan 28 21:12:21 2015 From: brahma at hindu.org (Brahmanathaswami) Date: Wed, 28 Jan 2015 16:12:21 -1000 Subject: ISO 8601 date to seconds Message-ID: <54C99705.4030308@hindu.org> We have had a feature request in to include the ISO 8601 date in the engine for 8 years (entered into the Quality Control system in 2007) But, sadly it is not happening. I have to deal with a lot date/time based algorithms on CentoOS/Word Press (and other similar frameworks) where "the Date" is usually output liked this, with no timezone code 2000-02-17T22:13:21-05 As anyone written a script to convert this to seconds? I need to compare such a date with the time right now in LiveCode(server) and the only way is via seconds. Swasti Astu, Be Well! Brahmanathaswami Kauai's Hindu Monastery www.HimalayanAcademy.com From jacque at hyperactivesw.com Wed Jan 28 23:40:32 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 28 Jan 2015 22:40:32 -0600 Subject: ISO 8601 date to seconds In-Reply-To: <54C99705.4030308@hindu.org> References: <54C99705.4030308@hindu.org> Message-ID: <54C9B9C0.3010708@hyperactivesw.com> On 1/28/2015 8:12 PM, Brahmanathaswami wrote: > I have to deal with a lot date/time based algorithms on CentoOS/Word > Press (and other similar frameworks) where "the Date" is usually output > liked this, with no timezone code > > 2000-02-17T22:13:21-05 > > As anyone written a script to convert this to seconds? I need to compare > such a date with the time right now in LiveCode(server) and the only way > is via seconds. This should work: function convertDate pDate put char 1 to offset("T",pDate)-1 of pDate into tDate put char offset("T",pDate)+1 to -4 of pDate into tTime put char -3 to -1 of pDate into tHrOffset replace "-" with slash in tDate set the itemdel to slash put item 2 to 3 of tDate & slash & item 1 of tDate into tDate set the itemdel to comma convert (tDate && tTime) to dateitems add tHrOffset to item 4 of it convert it to seconds return it end convertDate If the time zone includes minutes, you'd need to extract those and add them to the minutes item of the dateitems, just before or after the hrOffset is added. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From gcanyon at gmail.com Thu Jan 29 00:28:04 2015 From: gcanyon at gmail.com (Geoff Canyon) Date: Wed, 28 Jan 2015 23:28:04 -0600 Subject: ISO 8601 date to seconds In-Reply-To: <54C99705.4030308@hindu.org> References: <54C99705.4030308@hindu.org> Message-ID: On Wed, Jan 28, 2015 at 8:12 PM, Brahmanathaswami wrote: > 2000-02-17T22:13:21-05 > > As anyone written a script to convert this to seconds? > If the positioning is fixed (as is implied by the leading 0s) then I think this will work: function S D put format("%s/%s/%s %s",char 6 to 7 of D,char 9 to 10 of D,char 1 to 4 of D,char 12 to 19 of D) into R convert R to seconds return R + 3600 * char -3 to -1 of D end S From bobsneidar at iotecdigital.com Thu Jan 29 10:44:39 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 29 Jan 2015 15:44:39 +0000 Subject: Control Shift Graphic Bug Possible Cause In-Reply-To: <078651A0-042D-4A4C-9829-A58DE5C41409@byu.edu> References: <078651A0-042D-4A4C-9829-A58DE5C41409@byu.edu> Message-ID: I?d love to tell you, unfortunately I cannot find the email they sent me saying they had not heard from me in a while and were closing it. I also discovered there is no way to view just the bugs I have filed. When I search on my name I get No Bugs Found. Bob S On Jan 28, 2015, at 08:33 , Devin Asay > wrote: On Jan 28, 2015, at 8:58 AM, Bob Sneidar > wrote: Hi all. I reported and filed a bug report about going to a card and having all the controls shifted, and ?holes? in the background graphic where the controls should have been. I just noticed that sometimes because of the size of my windows, my stack window positions will shift up to where the title bar is behind the Toolbar. When this just happened I noticed the controls had all shifted producing this bug. However, when I moved the window so that the title bar was no longer behind the toolbar, the window redrew correctly. Anyone having this graphic bug give that a try next t time it rears it?s ugly head. Bob, What?s the bug number? It sounds similar to this one that I filed a few weeks ago: http://quality.runrev.com/show_bug.cgi?id=13883 Devin Devin Asay Office of Digital Humanities Brigham Young University From bobsneidar at iotecdigital.com Thu Jan 29 11:05:33 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 29 Jan 2015 16:05:33 +0000 Subject: ISO 8601 date to seconds In-Reply-To: References: <54C99705.4030308@hindu.org> Message-ID: <8AD1544E-460E-463D-B024-3079A0321F3D@iotecdigital.com> Not that this solves your particular problem but some might be interested in this function. I will see if I can include this scenario in my function at some point. Bob S function formatTime theTime, theFormat /* accepts any valid time and returns the form of the time specified in the second parameter. The valid formats are: sql time: hh:mm:ss (Note: combining sql date from the formatDate() function with the sql time will produce a valid SQL date time type). short time: LC short time format abbreviated time: LC abbr time format (same as short time) long time: LC long time format seconds: the number of seconds since the prior midnight military: the military time 00:00 - 23:59 */ set the numberFormat to "00" switch theFormat case "sql time" convert theTime to dateitems put (item 4 of theTime +0) & ":" & \ (item 5 of theTime +0) & ":" & \ (item 6 of theTime +0) into theTime break case "short time" convert theTime to short time break case "abbreviated time" convert theTime to abbreviated time break case "long time" convert theTime to long time break case "seconds" convert theTime to seconds break case "military" set the itemDelimiter to ":" if theTime contains "PM" then add 12 to item 1 of theTime end if put word 1 of item 2 of theTime into item 2 of theTime break end switch return theTime end formatTime On Jan 28, 2015, at 21:28 , Geoff Canyon > wrote: On Wed, Jan 28, 2015 at 8:12 PM, Brahmanathaswami > wrote: 2000-02-17T22:13:21-05 As anyone written a script to convert this to seconds? If the positioning is fixed (as is implied by the leading 0s) then I think this will work: function S D put format("%s/%s/%s %s",char 6 to 7 of D,char 9 to 10 of D,char 1 to 4 of D,char 12 to 19 of D) into R convert R to seconds return R + 3600 * char -3 to -1 of D end S _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From devin_asay at byu.edu Thu Jan 29 11:18:58 2015 From: devin_asay at byu.edu (Devin Asay) Date: Thu, 29 Jan 2015 16:18:58 +0000 Subject: Control Shift Graphic Bug Possible Cause In-Reply-To: References: <078651A0-042D-4A4C-9829-A58DE5C41409@byu.edu> Message-ID: <26875461-B1F8-4D6D-8E17-371B5C0E89BB@byu.edu> On Jan 29, 2015, at 8:44 AM, Bob Sneidar wrote: > I?d love to tell you, unfortunately I cannot find the email they sent me saying they had not heard from me in a while and were closing it. I also discovered there is no way to view just the bugs I have filed. When I search on my name I get No Bugs Found. > Did you search on your email address? That?s how I always find mine. Devin Devin Asay Office of Digital Humanities Brigham Young University From bobsneidar at iotecdigital.com Thu Jan 29 11:20:35 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 29 Jan 2015 16:20:35 +0000 Subject: ISO 8601 date to seconds In-Reply-To: <8AD1544E-460E-463D-B024-3079A0321F3D@iotecdigital.com> References: <54C99705.4030308@hindu.org> <8AD1544E-460E-463D-B024-3079A0321F3D@iotecdigital.com> Message-ID: <3284E3D8-686E-4CC2-AFCE-DB0578781C67@iotecdigital.com> Sorry about the extra lines in the last post. Not sure what caused that. Here is the formatDate() function as well. Bob S function formatDate theDate, theFormat /* Accepts any valid date for the first parameter. If not a valid date, it simply returns what was passed. Second parameter can be any of the following: sql date: date in the yyyy-mm-dd format short date, abbreviated date, internet date, long date: LC versions of the same julian date: Julian number based on (I believe) Jacques formula) */ put the itemdelimiter into theOldDelim set the itemdelimiter to "-" if the length of item 1 of theDate = 4 and \ the number of items of theDate = 3 and \ item 1 of theDate is a number and \ item 2 of theDate is a number and \ item 3 of theDate is a number then put item 2 of theDate & "/" & \ item 3 of theDate & "/" & \ item 1 of theDate into theDate end if convert theDate to dateitems set the itemdelimiter to theOldDelim switch theFormat case "sql date" put item 1 of theDate & "-" & \ format("%02d",item 2 of theDate) & "-" & \ format("%02d",item 3 of theDate) into theDate break case "short date" convert theDate from dateitems to short date break case "abbreviated date" convert theDate from dateitems to abbreviated date break case "internet date" convert theDate from dateitems to internet date break case "long date" convert theDate from dateitems to long date break case "julian date" put the date into theDate convert theDate to dateItems if ((item 2 of theDate = 1) or (item 2 of theDate = 2)) then put 1 into theDay else put 0 into theDay end if put item 1 of theDate + 4800 - theDay into theYear put item 2 of theDate + (12 * theDay) - 3 into theMonth put item 3 of theDate + \ ((153 * theMonth + 2) div 5) + \ (365 * theYear) + \ (theYear div 4) - \ (theYear div 100) + \ (theYear div 400) - \ 32045 into theDate break end switch return theDate end formatDate > On Jan 29, 2015, at 08:05 , Bob Sneidar wrote: > > Not that this solves your particular problem but some might be interested in this function. I will see if I can include this scenario in my function at some point. > > Bob S From bobsneidar at iotecdigital.com Thu Jan 29 11:31:53 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 29 Jan 2015 16:31:53 +0000 Subject: Control Shift Graphic Bug Possible Cause In-Reply-To: <26875461-B1F8-4D6D-8E17-371B5C0E89BB@byu.edu> References: <078651A0-042D-4A4C-9829-A58DE5C41409@byu.edu> <26875461-B1F8-4D6D-8E17-371B5C0E89BB@byu.edu> Message-ID: <29A6C07A-63C1-4E89-9411-E1A209DE03FF@iotecdigital.com> Yes I did. For some reason none of my sent or deleted emails from this list are showing up there. I checked my settings for this account and there is nothing I can see there that would do that. At any rate, as I said moving the window seems to refresh it, but having done that, I discovered the controls were still not responding to clicks and what not. I suspect the issue is the same. The engine thinks the controls are in one place but the display has them at another. Navigating away from the card and back again after moving the window title bar out from under the icon bar seems to fix it. Bob S On Jan 29, 2015, at 08:18 , Devin Asay > wrote: On Jan 29, 2015, at 8:44 AM, Bob Sneidar > wrote: I?d love to tell you, unfortunately I cannot find the email they sent me saying they had not heard from me in a while and were closing it. I also discovered there is no way to view just the bugs I have filed. When I search on my name I get No Bugs Found. Did you search on your email address? That?s how I always find mine. Devin Devin Asay Office of Digital Humanities Brigham Young University From livfoss at mac.com Thu Jan 29 12:24:35 2015 From: livfoss at mac.com (Graham Samuel) Date: Thu, 29 Jan 2015 18:24:35 +0100 Subject: Control Shift Graphic Bug Possible Cause In-Reply-To: <29A6C07A-63C1-4E89-9411-E1A209DE03FF@iotecdigital.com> References: <078651A0-042D-4A4C-9829-A58DE5C41409@byu.edu> <26875461-B1F8-4D6D-8E17-371B5C0E89BB@byu.edu> <29A6C07A-63C1-4E89-9411-E1A209DE03FF@iotecdigital.com> Message-ID: <78C16CD8-C9CC-4414-9786-367790FAC282@mac.com> I see a very untypical 10-hour period of silence on the list from 06:29 to 16:45 to be precise (Central European Time). Looks like a problem with the listserv. Graham > On 29 Jan 2015, at 17:31, Bob Sneidar wrote: > > For some reason none of my sent or deleted emails from this list are showing up there. I checked my settings for this account and there is nothing I can see there that would do that. From gcanyon at gmail.com Thu Jan 29 12:29:15 2015 From: gcanyon at gmail.com (Geoff Canyon) Date: Thu, 29 Jan 2015 11:29:15 -0600 Subject: Refactoring Message-ID: Small thing, but I just turned this twelve-year-old code: put "Double-Click:" into tProperty if the optionKey is "down" then if the commandKey is "down" then put "Option-Command-Double-Click:" into tProperty else put "Option-Double-Click:" into tProperty end if else if the commandKey is "down" then put "Command-Double-Click:" into tProperty end if into this: put "Double-Click:" into tProperty if the commandKey is "down" then put "Command-" before tProperty if the optionKey is "down" then put "Option-" before tProperty I love turning ten lines of code into three lines of code. I hope twelve years from now I can look back at those three lines with the same degree of horror I feel now looking at the ten-line implementation. From bobsneidar at iotecdigital.com Thu Jan 29 12:30:42 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 29 Jan 2015 17:30:42 +0000 Subject: Control Shift Graphic Bug Possible Cause In-Reply-To: <78C16CD8-C9CC-4414-9786-367790FAC282@mac.com> References: <078651A0-042D-4A4C-9829-A58DE5C41409@byu.edu> <26875461-B1F8-4D6D-8E17-371B5C0E89BB@byu.edu> <29A6C07A-63C1-4E89-9411-E1A209DE03FF@iotecdigital.com> <78C16CD8-C9CC-4414-9786-367790FAC282@mac.com> Message-ID: <6CEC73D3-8E5E-4706-A550-CC6DB668E18F@iotecdigital.com> Different problem. I was talking about how my mail client has not retained sent mail for quite some time, although I think I now know why. Apple Mail threads ALL mail, received or sent, in a single thread. When I delete the thread, it also deletes the sent mail in the thread. In versions past it did not do this. Bob S > On Jan 29, 2015, at 09:24 , Graham Samuel wrote: > > I see a very untypical 10-hour period of silence on the list from 06:29 to 16:45 to be precise (Central European Time). Looks like a problem with the listserv. > > Graham > >> On 29 Jan 2015, at 17:31, Bob Sneidar wrote: >> >> For some reason none of my sent or deleted emails from this list are showing up there. I checked my settings for this account and there is nothing I can see there that would do that. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Thu Jan 29 13:01:05 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 29 Jan 2015 10:01:05 -0800 Subject: Refactoring In-Reply-To: References: Message-ID: <54CA7561.7050101@fourthworld.com> Geoff Canyon wrote: > I hope twelve years from now I can look back at those three > lines with the same degree of horror I feel now looking at > the ten-line implementation. LiveCode 18 will replace Open Language with Psychic Language - just a few characters to indicate that you have any intention at all will be sufficient to have that intention fully realized. -- Richard Gaskin Fourth World Systems Software Design and Development for Desktop, Mobile, and Web ____________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From curry at pair.com Thu Jan 29 15:32:40 2015 From: curry at pair.com (Curry Kenworthy) Date: Thu, 29 Jan 2015 14:32:40 -0600 Subject: Line Attributes of Char Chunks In-Reply-To: References: Message-ID: <54CA98E8.2030800@pair.com> Howdy Folks, Field containing "blah blah". Message box: "put effective textalign of char 1 of field 1" LC 6.7: "left" LC 7.01: "No such proper-tay, homie" (object does not have this property) So, now it's necessary to refer to the corresponding line chunk, using lineIndex for example, if you want any paragraph-level attributes. Previously LC would automatically provide the corresponding properties. This is true for several properties and not just textAlign. Was this an LC 7 oversight or intended change? Should I file a report or leave it alone? IMO, yes it's true that chars don't have paragraph properties. However, each char belongs to only one paragraph, which has those properties, which affects that char, so the old way was convenient and equally logical. With the addition of tabAlign in LC 7, now alignment doesn't belong only to paragraphs anymore. That makes the old way look pretty relevant in the new environment.... Best wishes, Curry Kenworthy Custom Software Development http://curryk.com/consulting/ From capellan2000 at gmail.com Thu Jan 29 15:41:02 2015 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Thu, 29 Jan 2015 12:41:02 -0800 (PST) Subject: extracting the thumbnail from digital photos? In-Reply-To: References: Message-ID: <1422564062752-4688275.post@n4.nabble.com> Hi Paul, Paul Hibbert-4 wrote > Thank you Alejandro for posting this. > I've tried it on OS X and found it works well. > > I've also tried it with the JPEGS straight > from a Nikon camera and it works with them too, > and it works on PSD files that are saved > with a thumbnail image. I am glad that you find this useful, but this script does not works for Malte. Maybe you could help him to make it work on MacOSX. Thanks in advance! Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/extracting-the-thumbnail-from-digital-photos-tp4688207p4688275.html Sent from the Revolution - User mailing list archive at Nabble.com. From admin at FlexibleLearning.com Thu Jan 29 16:08:19 2015 From: admin at FlexibleLearning.com (FlexibleLearning.com) Date: Thu, 29 Jan 2015 21:08:19 -0000 Subject: [ANN] ControlManager build 70 released Message-ID: <00bc01d03c07$b61ee4e0$225caea0$@FlexibleLearning.com> I am delighted to announce that an updated version of ControlManager is now available. You can find out more at www.FlexibleLearning.com/controlmanager (includes video) and at livecode.com/store/marketplace/controlManager-1-0-0 (now with lots of 5-star ratings... Thanks!) All registered users should have received a free update. If you didn't, please let me know. Meanwhile, this is what has been included in the latest build... New in Build 70 . Filter: A filter has been added to the Control Browser tab. Options include 'All matches' and 'Prefix matches only'. . Global Properties: More than 120 global properties are now included. Click the new green 'G' icon. . Object Properties: An additional 37 additional object properties are included. There are now 320 object properties available, including IconGravity (6.7+) and CenterRect (6.7+) . Added 'Architecture' and 'Externals' as property groupings . Library stacks are now listed in the Celestial Overview . Options menu: Short or long object forms can now be chosen (e.g. "btn" or "button", "grp" or "group") . Options menu: Vertical scrollbars may now be omitted from the Control and Properties browsers for less clutter or if you prefer to use the mousewheel . Unused backgrounds: A warning icon with action access is now displayed if there are unused (i.e. unplaced) stack backgrounds Improvements in Build 70 . Control Browser: Celestial overview now supports stack collapse/expand with shift-click to collapse/expand all . Property Browser: Shift-click property disclosures to collapse/expand all . Disclosure memory: List disclosure states are now retained (unless filtering is active) until the list content is updated . Window height: Maximum window height increased to maximum allowed . Inline behavior icons now reflect password protection . Read-only Properties text is now always selectable so it can be copied if required with Cmd/Ctrl.C Changes in Control Browser behaviour in Build 70 A visual 'cheat sheet' is now supplied with the package for reference . Double-clicking no longer displays the Properties Browser . Double-clicking on a listed group now navigates to edit the group . Double-clicking a listed card now navigates to the card controls . Clicking the object icon edits the script . Clicking the behavior icon edits the behaviour script . Clicking the visibility bullet icons shows/hides the object Bugfixes in Build 70 . Control Browser: Celestial overview: Both stack and card selection changes are now reflected in the palette . Control Browser: Celestial overview: Double-clicking embedded media no longer throws an error . Deeply indented list items no longer over-truncate . Stacks deleted by the IDE's Project Browser no longer result in a ControlManager error . Properties: 'Copy list' now works for properties displayed by type With best regards, Hugh Senior FLCo From bobsneidar at iotecdigital.com Thu Jan 29 16:21:10 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 29 Jan 2015 21:21:10 +0000 Subject: Control Shift Graphic Bug Possible Cause In-Reply-To: References: Message-ID: <1D8B975F-42AA-45B5-9201-ED98D958229D@iotecdigital.com> Okay I believe I have isolated the cause of my graphical display bug. When I go to another card in the stack, for some reason the card resizes. I know this because when I go back, the original card is smaller than it was when I left it and not all the objects fit. I believe that this resizing is what is causing the ?shifting? of objects. I?m pretty sure I know what is causing this too. I have a menu on the first card and not on the second. On the Mac, having a menu set as the system menu causes all the objects on the card to shift up the size of the menu group. It?s been discussed before, but it is really distracting. Instead changing the size of the card to hide the menu group, the group should just be hidden. Now with the new graphics engine I believe this ?shifting? of objects because of the presence or absence of a system menu object is at the heart of the problem. Fortunately I found a workaround. I set the min and max heights of the stack to the current size of the stack so that the engine will not resize the window when switching from card to card. I will submit another bug report when I have a chance. Bob S > On Jan 28, 2015, at 07:58 , Bob Sneidar wrote: > > Hi all. > > I reported and filed a bug report about going to a card and having all the controls shifted, and ?holes? in the background graphic where the controls should have been. I just noticed that sometimes because of the size of my windows, my stack window positions will shift up to where the title bar is behind the Toolbar. When this just happened I noticed the controls had all shifted producing this bug. However, when I moved the window so that the title bar was no longer behind the toolbar, the window redrew correctly. > > Anyone having this graphic bug give that a try next t time it rears it?s ugly head. > > Bob S > > From bobsneidar at iotecdigital.com Thu Jan 29 16:29:39 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 29 Jan 2015 21:29:39 +0000 Subject: Refactoring In-Reply-To: References: Message-ID: <70C63B08-0470-44F5-889E-CC6EB6908AF2@iotecdigital.com> The code 10 years from now: scanMind(currentThought, currentObject, applyNow) All the code you will ever need. Bob S On Jan 29, 2015, at 09:29 , Geoff Canyon > wrote: Small thing, but I just turned this twelve-year-old code: put "Double-Click:" into tProperty if the optionKey is "down" then if the commandKey is "down" then put "Option-Command-Double-Click:" into tProperty else put "Option-Double-Click:" into tProperty end if else if the commandKey is "down" then put "Command-Double-Click:" into tProperty end if into this: put "Double-Click:" into tProperty if the commandKey is "down" then put "Command-" before tProperty if the optionKey is "down" then put "Option-" before tProperty I love turning ten lines of code into three lines of code. I hope twelve years from now I can look back at those three lines with the same degree of horror I feel now looking at the ten-line implementation. From mikedoub at gmail.com Thu Jan 29 17:19:37 2015 From: mikedoub at gmail.com (Mike Doub) Date: Thu, 29 Jan 2015 17:19:37 -0500 Subject: extracting the thumbnail from digital photos? In-Reply-To: <1422564062752-4688275.post@n4.nabble.com> References: <1422564062752-4688275.post@n4.nabble.com> Message-ID: It works fine if you add the statement before the offset statements: set the casesensitive to true Regards, Mike On Thursday, January 29, 2015, Alejandro Tejada wrote: > Hi Paul, > > > Paul Hibbert-4 wrote > > Thank you Alejandro for posting this. > > I've tried it on OS X and found it works well. > > > > I've also tried it with the JPEGS straight > > from a Nikon camera and it works with them too, > > and it works on PSD files that are saved > > with a thumbnail image. > > I am glad that you find this useful, but > this script does not works for Malte. > Maybe you could help him to make it work > on MacOSX. > > Thanks in advance! > > Al > > > > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/extracting-the-thumbnail-from-digital-photos-tp4688207p4688275.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pete at lcsql.com Thu Jan 29 18:42:13 2015 From: pete at lcsql.com (Peter Haworth) Date: Thu, 29 Jan 2015 15:42:13 -0800 Subject: Line Attributes of Char Chunks In-Reply-To: <54CA98E8.2030800@pair.com> References: <54CA98E8.2030800@pair.com> Message-ID: I'd say if it used to work in 6.7 and it doesn't work in 7.0 and the change is not mentioned in the Release Notes, you should file a bug report. RunRev will decide if it's a documentation bug or a software bug. Since the whole area of text processing changed so much in 7.0, I could certainly see that something like this might get overlooked. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Thu, Jan 29, 2015 at 12:32 PM, Curry Kenworthy wrote: > > Howdy Folks, > > Field containing "blah blah". > > Message box: "put effective textalign of char 1 of field 1" > > LC 6.7: "left" > > LC 7.01: "No such proper-tay, homie" > > (object does not have this property) > > So, now it's necessary to refer to the corresponding line chunk, using > lineIndex for example, if you want any paragraph-level attributes. > > Previously LC would automatically provide the corresponding properties. > This is true for several properties and not just textAlign. > > Was this an LC 7 oversight or intended change? Should I file a report or > leave it alone? > > IMO, yes it's true that chars don't have paragraph properties. However, > each char belongs to only one paragraph, which has those properties, which > affects that char, so the old way was convenient and equally logical. > > With the addition of tabAlign in LC 7, now alignment doesn't belong only > to paragraphs anymore. That makes the old way look pretty relevant in the > new environment.... > > Best wishes, > > Curry Kenworthy > > Custom Software Development > http://curryk.com/consulting/ > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From capellan2000 at gmail.com Thu Jan 29 18:50:16 2015 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Thu, 29 Jan 2015 15:50:16 -0800 (PST) Subject: Set Script Limits in Standalones In-Reply-To: <54C7E0B5.90703@fourthworld.com> References: <5599BE2D-7AE8-4362-870E-AF6CBF3B98D0@livecode.com> <6432465A-97D6-47F8-B65E-65E683B69975@byu.edu> <54C7B51D.5090607@LinkIt.Com> <6688A027-9C3E-4E55-A481-EFE5869456D4@iotecdigital.com> <54C7C47D.3080801@fourthworld.com> <54C7CD36.5040405@LinkIt.Com> <54C7E0B5.90703@fourthworld.com> Message-ID: <1422575416497-4688281.post@n4.nabble.com> Hi Richard, Richard Gaskin wrote > [snip] > For a few years following the acquisition of MetaCard by RunRev he was > sailing the Caribbean. Last I heard he's stateside again, and beginning > to get back into programming after enjoying his long break. That is nice to know but "sailing the Caribbean" brings me images of Sunken Galleon Treasure Hunters... :D http://www.economist.com/news/international/21573964-treasure-hunters-misdeeds-have-led-tougher-laws-now-their-business-model-must Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Unicode-tp4688182p4688281.html Sent from the Revolution - User mailing list archive at Nabble.com. From capellan2000 at gmail.com Thu Jan 29 19:38:43 2015 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Thu, 29 Jan 2015 16:38:43 -0800 (PST) Subject: extracting the thumbnail from digital photos? In-Reply-To: References: <1422564062752-4688275.post@n4.nabble.com> Message-ID: <1422578323155-4688282.post@n4.nabble.com> Hi Mike, Michael Doub wrote > It works fine if you add the statement > before the offset statements: > set the casesensitive to true As posted in previous messages when I test first this jpeg thumbnail script in UBUNTU Linux, I do not needed to add: set the casesensitive to true to make it work. It was later, after you (Mike) and Malte reported it, that I found this fundamental difference between Linux and all other platforms. Why UBUNTU Linux does not require to set the casesensitive true, unlike Windows and OSX? Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/extracting-the-thumbnail-from-digital-photos-tp4688207p4688282.html Sent from the Revolution - User mailing list archive at Nabble.com. From curry at pair.com Thu Jan 29 19:57:01 2015 From: curry at pair.com (Curry Kenworthy) Date: Thu, 29 Jan 2015 18:57:01 -0600 Subject: Line Attributes of Char Chunks In-Reply-To: References: Message-ID: <54CAD6DD.9040801@pair.com> Peter Haworth: > I'd say if it used to work in 6.7 and it doesn't work in 7.0 and the change > is not mentioned in the Release Notes, you should file a bug report. I agree, it does look like it was overlooked. Report filed here: http://quality.runrev.com/show_bug.cgi?id=14467 Best wishes, Curry K. From mikedoub at gmail.com Thu Jan 29 20:10:26 2015 From: mikedoub at gmail.com (Michael Doub) Date: Thu, 29 Jan 2015 20:10:26 -0500 Subject: extracting the thumbnail from digital photos? In-Reply-To: <1422578323155-4688282.post@n4.nabble.com> References: <1422564062752-4688275.post@n4.nabble.com> <1422578323155-4688282.post@n4.nabble.com> Message-ID: <54CADA02.3050302@gmail.com> Al, I ended up submitting a bug thinking that there was an issue with the offset command. The offset command was fine, the bug was redirected against the livecode documentation as there is no mention of the relationship between the offset command and the casesensitive global property. see... http://quality.runrev.com/show_bug.cgi?id=14440 Did you happen to check the state of casesensitive before your test? I suggest that you try the code snipit that I used in the bug report below and if it really works with the casesensitive property set to false. If it works, then we really did find a bug in the Linux implementation. -= Mike on mouseUp put numtochar(255) & numtochar(216) into tStart -- in Hexadecimal: FFD8 = SOI(Start of jpeg image) put numtochar(255) & numtochar(217) into tEnd -- in Hexadecimal: FFD9 = EOI(End of jpeg image) put "AAA" & tStart & "DATA"& tEnd & "BBB" into temp1 put offset(tStart,temp1) into tThumbstart put offset(tEnd,temp1) into tThumbEnd answer "Start:" && tThumbstart & cr & "End:" && tThumbEnd end mouseUp On 1/29/15 7:38 PM, Alejandro Tejada wrote: > Hi Mike, > > > Michael Doub wrote >> It works fine if you add the statement >> before the offset statements: >> set the casesensitive to true > As posted in previous messages > when I test first this jpeg thumbnail > script in UBUNTU Linux, > I do not needed to add: > set the casesensitive to true > to make it work. > > It was later, after you (Mike) and Malte > reported it, that I found this > fundamental difference between > Linux and all other platforms. > > Why UBUNTU Linux does not require > to set the casesensitive true, > unlike Windows and OSX? > > Al > > > > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/extracting-the-thumbnail-from-digital-photos-tp4688207p4688282.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From capellan2000 at gmail.com Thu Jan 29 20:44:02 2015 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Thu, 29 Jan 2015 17:44:02 -0800 (PST) Subject: extracting the thumbnail from digital photos? In-Reply-To: <54CADA02.3050302@gmail.com> References: <1422564062752-4688275.post@n4.nabble.com> <1422578323155-4688282.post@n4.nabble.com> <54CADA02.3050302@gmail.com> Message-ID: <1422582242541-4688285.post@n4.nabble.com> Hi Mike, In UBUNTU, I confirmed my initial findings: Offset works fine with casesensitive set to false. Tested in LC 7.0.1, 7.0.2(RC) and 6.7.2(RC2). Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/extracting-the-thumbnail-from-digital-photos-tp4688207p4688285.html Sent from the Revolution - User mailing list archive at Nabble.com. From mikedoub at gmail.com Thu Jan 29 21:00:04 2015 From: mikedoub at gmail.com (Mike Doub) Date: Thu, 29 Jan 2015 21:00:04 -0500 Subject: extracting the thumbnail from digital photos? In-Reply-To: <1422582242541-4688285.post@n4.nabble.com> References: <1422564062752-4688275.post@n4.nabble.com> <1422578323155-4688282.post@n4.nabble.com> <54CADA02.3050302@gmail.com> <1422582242541-4688285.post@n4.nabble.com> Message-ID: Al, Are you seeing offset working as you expected you really want casesensitive off? Or is this a special case? I would have thought this wold be an obvious problem. -= Mike On Thursday, January 29, 2015, Alejandro Tejada wrote: > Hi Mike, > > In UBUNTU, I confirmed my initial findings: > Offset works fine with casesensitive set to false. > Tested in LC 7.0.1, 7.0.2(RC) and 6.7.2(RC2). > > Al > > > > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/extracting-the-thumbnail-from-digital-photos-tp4688207p4688285.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From capellan2000 at gmail.com Fri Jan 30 00:22:58 2015 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Thu, 29 Jan 2015 21:22:58 -0800 (PST) Subject: extracting the thumbnail from digital photos? In-Reply-To: References: <1422564062752-4688275.post@n4.nabble.com> <1422578323155-4688282.post@n4.nabble.com> <54CADA02.3050302@gmail.com> <1422582242541-4688285.post@n4.nabble.com> Message-ID: <1422595378976-4688287.post@n4.nabble.com> Hi Mike, RunRev will have the last word about this unexpected difference while using offset in Linux, OSX and Windows. Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/extracting-the-thumbnail-from-digital-photos-tp4688207p4688287.html Sent from the Revolution - User mailing list archive at Nabble.com. From prothero at earthednet.org Fri Jan 30 00:51:45 2015 From: prothero at earthednet.org (William Prothero) Date: Thu, 29 Jan 2015 21:51:45 -0800 Subject: Refactoring In-Reply-To: <70C63B08-0470-44F5-889E-CC6EB6908AF2@iotecdigital.com> References: <70C63B08-0470-44F5-889E-CC6EB6908AF2@iotecdigital.com> Message-ID: <494DEA08-FB30-4D37-8213-D579548B9EEC@earthednet.org> Nice, but personally, I value clarity much more than I do brevity. Re-factoring is much, much more than brevity of code. When I work, I generally code, it?s spaghetti, then I re-write it. The more i re-write for simple, predictable functionality for each method, the easier it is to debug and change later on. Unfortunately, as the project nears completion, I get less patient and the quality of the code goes down as I cut corners. Oh well. Regards, Bill > On Jan 29, 2015, at 1:29 PM, Bob Sneidar wrote: > > The code 10 years from now: > > scanMind(currentThought, currentObject, applyNow) > > All the code you will ever need. > > Bob S > > > On Jan 29, 2015, at 09:29 , Geoff Canyon > wrote: > > Small thing, but I just turned this twelve-year-old code: > > put "Double-Click:" into tProperty > if the optionKey is "down" then > if the commandKey is "down" then > put "Option-Command-Double-Click:" into tProperty > else > put "Option-Double-Click:" into tProperty > end if > else if the commandKey is "down" then > put "Command-Double-Click:" into tProperty > end if > > into this: > > put "Double-Click:" into tProperty > if the commandKey is "down" then put "Command-" before tProperty > if the optionKey is "down" then put "Option-" before tProperty > > I love turning ten lines of code into three lines of code. I hope twelve > years from now I can look back at those three lines with the same degree of > horror I feel now looking at the ten-line implementation. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From gcanyon at gmail.com Fri Jan 30 04:33:23 2015 From: gcanyon at gmail.com (Geoff Canyon) Date: Fri, 30 Jan 2015 03:33:23 -0600 Subject: Refactoring In-Reply-To: <494DEA08-FB30-4D37-8213-D579548B9EEC@earthednet.org> References: <70C63B08-0470-44F5-889E-CC6EB6908AF2@iotecdigital.com> <494DEA08-FB30-4D37-8213-D579548B9EEC@earthednet.org> Message-ID: To me the three line version is far more clear than the ten line version. Shorter wasn't my goal, just (in this case) a really good indicator of the improvement in clarity. On Thu, Jan 29, 2015 at 11:51 PM, William Prothero wrote: > Nice, but personally, I value clarity much more than I do brevity. > Re-factoring is much, much more than brevity of code. When I work, I > generally code, it?s spaghetti, then I re-write it. The more i re-write for > simple, predictable functionality for each method, the easier it is to > debug and change later on. Unfortunately, as the project nears completion, > I get less patient and the quality of the code goes down as I cut corners. > Oh well. > > Regards, > Bill > > > On Jan 29, 2015, at 1:29 PM, Bob Sneidar > wrote: > > > > The code 10 years from now: > > > > scanMind(currentThought, currentObject, applyNow) > > > > All the code you will ever need. > > > > Bob S > > > > > > On Jan 29, 2015, at 09:29 , Geoff Canyon gcanyon at gmail.com>> wrote: > > > > Small thing, but I just turned this twelve-year-old code: > > > > put "Double-Click:" into tProperty > > if the optionKey is "down" then > > if the commandKey is "down" then > > put "Option-Command-Double-Click:" into tProperty > > else > > put "Option-Double-Click:" into tProperty > > end if > > else if the commandKey is "down" then > > put "Command-Double-Click:" into tProperty > > end if > > > > into this: > > > > put "Double-Click:" into tProperty > > if the commandKey is "down" then put "Command-" before tProperty > > if the optionKey is "down" then put "Option-" before tProperty > > > > I love turning ten lines of code into three lines of code. I hope twelve > > years from now I can look back at those three lines with the same degree > of > > horror I feel now looking at the ten-line implementation. > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From gcanyon at gmail.com Fri Jan 30 04:40:07 2015 From: gcanyon at gmail.com (Geoff Canyon) Date: Fri, 30 Jan 2015 03:40:07 -0600 Subject: stackfileversion and locking 6.5.2 Message-ID: I have a stack that I moved to 7.0.2 for a few days without thinking, and I want to move it back. I tried this in the message box: set the stackfileversion to 5.5;lock messages;save stack "versionProblem";close stack "versionProblem" and after that if I open it in 6.5.2 or 6.7, they lock up with the spinning beach ball of death. I don't think I put anything into the stack that requires 7, and LC dies even if I lock messages before opening the stack. Any ideas? gc From revolution at derbrill.de Fri Jan 30 05:06:30 2015 From: revolution at derbrill.de (Malte Brill) Date: Fri, 30 Jan 2015 11:06:30 +0100 Subject: extracting the thumbnail from digital photos? In-Reply-To: References: Message-ID: <1D08E915-5EAC-4CBF-9C62-D2093C4D20CA@derbrill.de> Hi Al, sorry to chime in late. I was on the road without any iNet access. The last iteration of the script including numToByte and setting the case sensitive to true indeed does work extracting the thumbnail image. And it is incredibly fast. :-) I still have troubles to see if there is no thumbnail in the image though. Need tto dig into that. All the best and thanks again! Malte From mikedoub at gmail.com Fri Jan 30 07:02:24 2015 From: mikedoub at gmail.com (Mike Doub) Date: Fri, 30 Jan 2015 07:02:24 -0500 Subject: extracting the thumbnail from digital photos? In-Reply-To: <1D08E915-5EAC-4CBF-9C62-D2093C4D20CA@derbrill.de> References: <1D08E915-5EAC-4CBF-9C62-D2093C4D20CA@derbrill.de> Message-ID: In my implementation I put all of the thumbnails into an array. If there are no thumbnails found, the array is empty. Mike On Friday, January 30, 2015, Malte Brill wrote: > Hi Al, > > sorry to chime in late. I was on the road without any iNet access. The > last iteration of the script including numToByte and setting the case > sensitive to true indeed does work extracting the thumbnail image. And it > is incredibly fast. :-) I still have troubles to see if there is no > thumbnail in the image though. Need tto dig into that. > > All the best and thanks again! > > Malte > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dave at applicationinsight.com Fri Jan 30 07:44:42 2015 From: dave at applicationinsight.com (Dave Kilroy) Date: Fri, 30 Jan 2015 04:44:42 -0800 (PST) Subject: Unicode In-Reply-To: <5599BE2D-7AE8-4362-870E-AF6CBF3B98D0@livecode.com> References: <6078DFAC-E4F9-4E52-854E-DDA937F21091@gmail.com> <5599BE2D-7AE8-4362-870E-AF6CBF3B98D0@livecode.com> Message-ID: <1422621882555-4688293.post@n4.nabble.com> Leaving the Caribbean alone for a bit ... Fraser wrote a couple of blog posts on Unicode back in March and April 2014: http://livecode.com/blog/2014/03/31/examining-unicode-part-i-the-dissection/ http://livecode.com/blog/2014/04/02/examining-unicode-part-ii-digesting-text/ The second of these posts finishes with this information on identifying what encoding has been used: "..Unfortunately, the URL syntax does not offer the same convenience. It can, however, auto-detect the correct encoding to use in some circumstances: when reading from a file URL, the beginning of the file is examined for a ?byte order mark? that specifies the encoding of the text. It also uses the encoding returned by the web server when HTTP URLs are used. If the encoding is not recognised, it assumes the platform?s native text encoding is used. As the native encodings do not support Unicode, it is usually better to be explicit when writing to files, etc. An an aside, we are hoping to improve the URL syntax in order to allow for the same auto-conversion but have not yet settled on what it will be." Fraser Gordon-3 wrote > On 26 Jan 2015, at 02:15, Peter Haworth < > pete@ > > wrote: > >> Thanks Peter. If that's the case, I'm not seeing much in the way of a >> coding advantage over pre 7.0. Sounds like using textEncode/textDecode >> instaed of uniencode/unidecode? > > Assuming you have UTF-8 encoded data from a source outside LiveCode: > > local tUTF8Data ? This is binary data > local tString ? This is a textual string > put textDecode(tUTF8Data, ?UTF-8?) into tString > > The important difference is that uniEncode becomes textDecode - because > you are decoding some binary data to text. > > The big difference between 7.0 and previous versions is that Unicode text > works everywhere - you don?t need to use special Unicode properties or > commands any more. > >> >> That does answer another question I had though which is what is needed if >> the database is UTF-16 encoded. Sounds like nothing needs to be done. I >> guess I'll have to set up some tests. > > If your external data is UTF-16 you still need to textDecode it - if you > don?t, it will treat the data as 8-bit text and you?ll get corrupted text > back. This 8-bit default is necessary from a backwards compatibility point > of view - if we changed it to accept UTF-16 by default, anyone who gets > text from an external source and doesn?t textDecode it will suddenly find > that their stacks don?t work. > > One way of looking at things is that all external interfaces (files, > processes, etc) return binary data and you need to do something to turn > that into text (textDecode) and you need to turn your text into binary > data when writing to them (textEncode). By using something like UTF-8 as > an encoding, it also avoids the problems that occur because the ?native? > encoding differs between our platforms - it is MacRoman on OSX, CP1252 on > Windows and ISO-8859-1 on Linux. > > Regards, > Fraser > > > _______________________________________________ > use-livecode mailing list > use-livecode at .runrev > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode ----- "Some are born coders, some achieve coding, and some have coding thrust upon them." - William Shakespeare & Hugh Senior -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Unicode-tp4688182p4688293.html Sent from the Revolution - User mailing list archive at Nabble.com. From dfepstein at comcast.net Fri Jan 30 07:50:12 2015 From: dfepstein at comcast.net (David Epstein) Date: Fri, 30 Jan 2015 07:50:12 -0500 Subject: Invisible character treated as word? Message-ID: <5BCD9B0A-B38E-4AD7-83EB-2282FF3BC061@comcast.net> Thanks for the helpful responses on this question. A complication is that while I want to get rid of invisible characters that cause seeming-numbers not to be numbers, I don't want to exclude all non-numbers from my table. But since it seems that fonts and systems will differ as to which characters are actually invisible, I will need to purge even harmless visible characters. So my current plan is to use this function: function scrubbedText txt -- For tab-delimited data, replace possibly invisible characters with a space; and then -- remove leading and trailing spaces from each cell repeat for each char k in txt if charToNum(k) > 31 or charToNum(k) < 127 then put k after hold else put space after hold end repeat set itemDelimiter to tab repeat for each line k in hold repeat for each item i in k put word 1 to -1 of i & tab after k2 end repeat put return into char -1 of k2 put k2 after hold2 put empty into k2 end repeat return hold2 end scrubbedText If anyone sees a way to do this without stepping through each character, or without excluding non-standard visible characters, suggestions are welcome. David Epstein From gcanyon at gmail.com Fri Jan 30 10:27:35 2015 From: gcanyon at gmail.com (Geoff Canyon) Date: Fri, 30 Jan 2015 09:27:35 -0600 Subject: stackfileversion and locking 6.5.2 In-Reply-To: References: Message-ID: So far I've determined that stripping out every line of code from the stack doesn't fix the problem. Deleting every control does. Now I'm going through to figure out which control is poisonous to 6.5.2 On Fri, Jan 30, 2015 at 3:40 AM, Geoff Canyon wrote: > I have a stack that I moved to 7.0.2 for a few days without thinking, and > I want to move it back. I tried this in the message box: > > > set the stackfileversion to 5.5;lock messages;save stack > "versionProblem";close stack "versionProblem" > > > and after that if I open it in 6.5.2 or 6.7, they lock up with the > spinning beach ball of death. I don't think I put anything into the stack > that requires 7, and LC dies even if I lock messages before opening the > stack. > > > Any ideas? > > > gc > From prothero at earthednet.org Fri Jan 30 10:39:36 2015 From: prothero at earthednet.org (Earthednet-wp) Date: Fri, 30 Jan 2015 07:39:36 -0800 Subject: Refactoring In-Reply-To: References: <70C63B08-0470-44F5-889E-CC6EB6908AF2@iotecdigital.com> <494DEA08-FB30-4D37-8213-D579548B9EEC@earthednet.org> Message-ID: Thanks Geoff, for the clarification. I agree with you. I was thinking more in general, and didn't mean to imply any criticism. As I get more familiar with livecode and it's sometimes unexpected (to me as one more used to conventional syntax) I am growing to love how quickly I can implement my ideas. I now only hope for quick resolution of some of the bugs in important features. Best, Bill William Prothero http://es.earthednet.org > On Jan 30, 2015, at 1:33 AM, Geoff Canyon wrote: > > To me the three line version is far more clear than the ten line version. > Shorter wasn't my goal, just (in this case) a really good indicator of the > improvement in clarity. > > On Thu, Jan 29, 2015 at 11:51 PM, William Prothero > wrote: > >> Nice, but personally, I value clarity much more than I do brevity. >> Re-factoring is much, much more than brevity of code. When I work, I >> generally code, it?s spaghetti, then I re-write it. The more i re-write for >> simple, predictable functionality for each method, the easier it is to >> debug and change later on. Unfortunately, as the project nears completion, >> I get less patient and the quality of the code goes down as I cut corners. >> Oh well. >> >> Regards, >> Bill >> >>>> On Jan 29, 2015, at 1:29 PM, Bob Sneidar >>> wrote: >>> >>> The code 10 years from now: >>> >>> scanMind(currentThought, currentObject, applyNow) >>> >>> All the code you will ever need. >>> >>> Bob S >>> >>> >>>> On Jan 29, 2015, at 09:29 , Geoff Canyon >> gcanyon at gmail.com>> wrote: >>> >>> Small thing, but I just turned this twelve-year-old code: >>> >>> put "Double-Click:" into tProperty >>> if the optionKey is "down" then >>> if the commandKey is "down" then >>> put "Option-Command-Double-Click:" into tProperty >>> else >>> put "Option-Double-Click:" into tProperty >>> end if >>> else if the commandKey is "down" then >>> put "Command-Double-Click:" into tProperty >>> end if >>> >>> into this: >>> >>> put "Double-Click:" into tProperty >>> if the commandKey is "down" then put "Command-" before tProperty >>> if the optionKey is "down" then put "Option-" before tProperty >>> >>> I love turning ten lines of code into three lines of code. I hope twelve >>> years from now I can look back at those three lines with the same degree >> of >>> horror I feel now looking at the ten-line implementation. >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From johnpatten at me.com Fri Jan 30 10:48:43 2015 From: johnpatten at me.com (JOHN PATTEN) Date: Fri, 30 Jan 2015 07:48:43 -0800 Subject: Sending Google Script Commands via POST? Message-ID: Hi All! I know LiveCode can send html post commands. Is is possible to send a post command that activates a Google Script? There is a Google Script that allows you to create a basic web form to upload files to a specific Google Drive folder. It is available here: http://www.labnol.org/internet/receive-files-in-google-drive/19697/ ...if you?re curious. The Google Script resides in your Google Drive and the accompanying html form uses the following code:
Would it be possible to utilize this process in a LiveCode project so that a resulting file, say for example, an audio recording, could be uploaded automatically to a specific Google Drive Folder? Any advice? Thank you! John Patten SUSD From eric at canelasoftware.com Fri Jan 30 10:53:26 2015 From: eric at canelasoftware.com (Eric Corbett) Date: Fri, 30 Jan 2015 07:53:26 -0800 Subject: stackfileversion and locking 6.5.2 In-Reply-To: References: Message-ID: I had to do this as well. In the end it was a group that had two fields in it. I assumed it was a field property that I either could not find or could not change and submitted a bug report. Since my problem was present in 6.7. or 7, nothing was investigated. e On Jan 30, 2015, at 7:27 AM, Geoff Canyon wrote: > So far I've determined that stripping out every line of code from the stack > doesn't fix the problem. > > Deleting every control does. > > Now I'm going through to figure out which control is poisonous to 6.5.2 > > On Fri, Jan 30, 2015 at 3:40 AM, Geoff Canyon wrote: > >> I have a stack that I moved to 7.0.2 for a few days without thinking, and >> I want to move it back. I tried this in the message box: >> >> >> set the stackfileversion to 5.5;lock messages;save stack >> "versionProblem";close stack "versionProblem" >> >> >> and after that if I open it in 6.5.2 or 6.7, they lock up with the >> spinning beach ball of death. I don't think I put anything into the stack >> that requires 7, and LC dies even if I lock messages before opening the >> stack. >> >> >> Any ideas? >> >> >> gc >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dave at applicationinsight.com Fri Jan 30 11:25:52 2015 From: dave at applicationinsight.com (Dave Kilroy) Date: Fri, 30 Jan 2015 08:25:52 -0800 (PST) Subject: Unicode In-Reply-To: <1422621882555-4688293.post@n4.nabble.com> References: <6078DFAC-E4F9-4E52-854E-DDA937F21091@gmail.com> <5599BE2D-7AE8-4362-870E-AF6CBF3B98D0@livecode.com> <1422621882555-4688293.post@n4.nabble.com> Message-ID: <1422635152475-4688299.post@n4.nabble.com> Update: Paul Depuis has submitted an enhancement request, commented on the Unicode blog posting and got a reply from Fraser (who suggested a guessEncoding function). More details at http://forums.livecode.com/viewtopic.php?f=68&t=22949&p=118538#p118538 ----- "Some are born coders, some achieve coding, and some have coding thrust upon them." - William Shakespeare & Hugh Senior -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Unicode-tp4688182p4688299.html Sent from the Revolution - User mailing list archive at Nabble.com. From bodine at bodinetraininggames.com Fri Jan 30 11:36:42 2015 From: bodine at bodinetraininggames.com (tbodine) Date: Fri, 30 Jan 2015 08:36:42 -0800 (PST) Subject: stackfileversion and locking 6.5.2 In-Reply-To: References: Message-ID: <1422635802768-4688300.post@n4.nabble.com> Is it feasible to make a handler for stacks being opened that would detect old version stacks and open them copies of them as "untitled" in the new stack format while leaving the legacy stack as is? -- Tom Bodine -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/stackfileversion-and-locking-6-5-2-tp4688290p4688300.html Sent from the Revolution - User mailing list archive at Nabble.com. From bonnmike at gmail.com Fri Jan 30 12:00:07 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Fri, 30 Jan 2015 10:00:07 -0700 Subject: stackfileversion and locking 6.5.2 In-Reply-To: <1422635802768-4688300.post@n4.nabble.com> References: <1422635802768-4688300.post@n4.nabble.com> Message-ID: Even setting the filename to empty might be enough. (this way, any references in the stack that use the stackname won't be broken). When this is done, when you save it, rather than just saving it brings up the filename dialog as if it were a new stack, and if you try to save it in the same place with the same name, you receive the usual warning about overwriting the stack. On Fri, Jan 30, 2015 at 9:36 AM, tbodine wrote: > Is it feasible to make a handler for stacks being opened that would detect > old version stacks and open them copies of them as "untitled" in the new > stack format while leaving the legacy stack as is? > -- Tom Bodine > > > > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/stackfileversion-and-locking-6-5-2-tp4688290p4688300.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pete at lcsql.com Fri Jan 30 12:05:11 2015 From: pete at lcsql.com (Peter Haworth) Date: Fri, 30 Jan 2015 09:05:11 -0800 Subject: Unicode In-Reply-To: <1422635152475-4688299.post@n4.nabble.com> References: <6078DFAC-E4F9-4E52-854E-DDA937F21091@gmail.com> <5599BE2D-7AE8-4362-870E-AF6CBF3B98D0@livecode.com> <1422621882555-4688293.post@n4.nabble.com> <1422635152475-4688299.post@n4.nabble.com> Message-ID: Thanks Dave and Paul for the QCC report. The ability to automatically detect encoding would really make the "it just works" phrase be more in line with reality, even if it's not right 100% of the time. It would be interesting to know how many of the possible encoding cases might cause guessEncoding to come up with the wrong answer. In my case, I'm dealing with an SQLite database and there's a PRAGMA statement that tells me when the encoding is. However, I also have to deal with importing csv files where a guessEncoding function would really help. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Fri, Jan 30, 2015 at 8:25 AM, Dave Kilroy wrote: > Update: Paul Depuis has submitted an enhancement request, commented on the > Unicode blog posting and got a reply from Fraser (who suggested a > guessEncoding function). More details at > http://forums.livecode.com/viewtopic.php?f=68&t=22949&p=118538#p118538 > > > > ----- > "Some are born coders, some achieve coding, and some have coding thrust > upon them." - William Shakespeare & Hugh Senior > > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/Unicode-tp4688182p4688299.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From paul at researchware.com Fri Jan 30 12:13:59 2015 From: paul at researchware.com (Paul Dupuis) Date: Fri, 30 Jan 2015 12:13:59 -0500 Subject: Unicode In-Reply-To: References: <6078DFAC-E4F9-4E52-854E-DDA937F21091@gmail.com> <5599BE2D-7AE8-4362-870E-AF6CBF3B98D0@livecode.com> <1422621882555-4688293.post@n4.nabble.com> <1422635152475-4688299.post@n4.nabble.com> Message-ID: <54CBBBD7.3040104@researchware.com> The Quality Center entry is http://quality.runrev.com/show_bug.cgi?id=14474 Personally, I really like Fraser's "guessEncoding(somefile)" vs my suggested "textEncoding(somefile)" as it reminds the developer it is an algorithmic and educated guess, but a guess none the less. From capellan2000 at gmail.com Fri Jan 30 13:35:22 2015 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Fri, 30 Jan 2015 10:35:22 -0800 (PST) Subject: extracting the thumbnail from digital photos? In-Reply-To: References: <1D08E915-5EAC-4CBF-9C62-D2093C4D20CA@derbrill.de> Message-ID: <1422642922810-4688304.post@n4.nabble.com> Hi Mike, Michael Doub wrote > In my implementation I put all of the thumbnails into an array. > If there are no thumbnails found, the array is empty. Many Thanks for including this function in your library. :D In this way, everyone will find it and use in their programs. By the way, I noticed that you only have 6 math functions in MasterLibrary. Look this stack published by Dave Jones: www.rsmas.miami.edu/personal/djones/metacard/joneslib.mc He wrote this message to the MetaCard maillist: https://www.mail-archive.com/metacard at lists.runrev.com/msg00361.html Just for curiosity, Why MasterLibrary try to connect to the internet when opened? Many Thanks again for publishing this wonderful resource! Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/extracting-the-thumbnail-from-digital-photos-tp4688207p4688304.html Sent from the Revolution - User mailing list archive at Nabble.com. From ethanlish at gmail.com Fri Jan 30 13:53:38 2015 From: ethanlish at gmail.com (Ethan Lish) Date: Fri, 30 Jan 2015 10:53:38 -0800 (PST) Subject: extracting the thumbnail from digital photos? In-Reply-To: References: Message-ID: <1422644018244.275969a3@Nodemailer> Hey On a related note, can this function be used/expanded to create a thumbnail image (tile) of a website. Looking to use this static image as a "button" to launch the full site in another card/browser Code examples welcome ;-) E ? Ethan at Lish.net240.876.1389 On Fri, Jan 30, 2015 at 7:03 AM, Mike Doub wrote: > In my implementation I put all of the thumbnails into an array. If there > are no thumbnails found, the array is empty. > Mike > On Friday, January 30, 2015, Malte Brill wrote: >> Hi Al, >> >> sorry to chime in late. I was on the road without any iNet access. The >> last iteration of the script including numToByte and setting the case >> sensitive to true indeed does work extracting the thumbnail image. And it >> is incredibly fast. :-) I still have troubles to see if there is no >> thumbnail in the image though. Need tto dig into that. >> >> All the best and thanks again! >> >> Malte >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From mikedoub at gmail.com Fri Jan 30 13:59:19 2015 From: mikedoub at gmail.com (Michael Doub) Date: Fri, 30 Jan 2015 13:59:19 -0500 Subject: extracting the thumbnail from digital photos? In-Reply-To: <1422642922810-4688304.post@n4.nabble.com> References: <1D08E915-5EAC-4CBF-9C62-D2093C4D20CA@derbrill.de> <1422642922810-4688304.post@n4.nabble.com> Message-ID: <54CBD487.4030601@gmail.com> Thanks for the pointer. The when you open the stack it checks my dropbox to see if there is an update available and turns the version button blue. You can then click the blue version button and download the latest version. -= Mike On 1/30/15 1:35 PM, Alejandro Tejada wrote: > Hi Mike, > > > Michael Doub wrote >> In my implementation I put all of the thumbnails into an array. >> If there are no thumbnails found, the array is empty. > Many Thanks for including this function in your library. :D > In this way, everyone will find it and use in their programs. > > By the way, I noticed that you only have 6 math functions > in MasterLibrary. Look this stack published by Dave Jones: > www.rsmas.miami.edu/personal/djones/metacard/joneslib.mc > > He wrote this message to the MetaCard maillist: > https://www.mail-archive.com/metacard at lists.runrev.com/msg00361.html > > Just for curiosity, Why MasterLibrary try to connect to > the internet when opened? > > Many Thanks again for publishing this wonderful resource! > > Al > > > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/extracting-the-thumbnail-from-digital-photos-tp4688207p4688304.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From mikedoub at gmail.com Fri Jan 30 14:40:01 2015 From: mikedoub at gmail.com (Michael Doub) Date: Fri, 30 Jan 2015 14:40:01 -0500 Subject: extracting the thumbnail from digital photos? In-Reply-To: <1422644018244.275969a3@Nodemailer> References: <1422644018244.275969a3@Nodemailer> Message-ID: <54CBDE11.9010209@gmail.com> Ethan, I not sure that I understand your question but here is a example of how to use the routine found in the MasterLibrary: put __getThumbs (pfilepath ) into imageArray if imageArray is not an array then answer "No thumbnails" else create image set the text of it to imageArray[1] end if This assumes that you want the first thumbnail. I have seen photos that have multiple thumbnails, each a different size. Hope this helps. Mike On 1/30/15 1:53 PM, Ethan Lish wrote: > Hey > > > On a related note, can this function be used/expanded to create a thumbnail image (tile) of a website. Looking to use this static image as a "button" to launch the full site in another card/browser > > > > > Code examples welcome ;-) > > > > > E > > > ? > Ethan at Lish.net240.876.1389 > > On Fri, Jan 30, 2015 at 7:03 AM, Mike Doub wrote: > >> In my implementation I put all of the thumbnails into an array. If there >> are no thumbnails found, the array is empty. >> Mike >> On Friday, January 30, 2015, Malte Brill wrote: >>> Hi Al, >>> >>> sorry to chime in late. I was on the road without any iNet access. The >>> last iteration of the script including numToByte and setting the case >>> sensitive to true indeed does work extracting the thumbnail image. And it >>> is incredibly fast. :-) I still have troubles to see if there is no >>> thumbnail in the image though. Need tto dig into that. >>> >>> All the best and thanks again! >>> >>> Malte >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From capellan2000 at gmail.com Fri Jan 30 14:49:43 2015 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Fri, 30 Jan 2015 11:49:43 -0800 (PST) Subject: extracting the thumbnail from digital photos? In-Reply-To: <1422644018244.275969a3@Nodemailer> References: <1D08E915-5EAC-4CBF-9C62-D2093C4D20CA@derbrill.de> <1422644018244.275969a3@Nodemailer> Message-ID: <1422647383740-4688308.post@n4.nabble.com> Hi Ethan, Ethan Lish wrote > On a related note, can this function be used/expanded > to create a thumbnail image (tile) of a website. > Looking to use this static image as a "button" to launch > the full site in another card/browser > Code examples welcome ;-) Maybe scripts posted in this thread could help: http://forums.livecode.com/viewtopic.php?f=7&t=22713&p=117095 ------------------------ Snapshot of a desktop browser Post by Traxgeek Sun Jan 18, 2015 7:04 pm Hi, Wondering if someone can help me here please ? I'm trying to take a snapshot of a browser window. On mobile I use the format: mobileControlSet nBID, "rect", the rect of image "imgBrowser" of group "grpBrowser" mobileControlSet nBID, "url", sURL and export snapshot from rect sTheRectOfTheBrowserImageControl to file (sFilePath & "/" & sFileName) as jpeg which works perfectly for anything WITHIN my app - both mobile (and desktop in fact - as long as the browser control is within my app). [snip] ------------------------ Ethan, probably there are more examples in the forum and the mail list, but looks like this script could be what you are looking for. Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/extracting-the-thumbnail-from-digital-photos-tp4688207p4688308.html Sent from the Revolution - User mailing list archive at Nabble.com. From mikedoub at gmail.com Fri Jan 30 14:53:06 2015 From: mikedoub at gmail.com (Michael Doub) Date: Fri, 30 Jan 2015 14:53:06 -0500 Subject: extracting the thumbnail from digital photos? In-Reply-To: <1422644018244.275969a3@Nodemailer> References: <1422644018244.275969a3@Nodemailer> Message-ID: <54CBE122.4080102@gmail.com> Ethan, Clearly I missed was you were asking. It seems that you are trying to capture that initial image of the website within a browser. I would be inclined to just take a screen shapshot and resize it. If you want to do this within livecode you are going to need to create a browser instance in a stack and then use import snapshot to capture the image of the website. You can then resize this image to be used in your button. Take a look a the revBrowser control tutorial and import snapshot dictionary entry. -= Mike On 1/30/15 1:53 PM, Ethan Lish wrote: > Hey > > > On a related note, can this function be used/expanded to create a thumbnail image (tile) of a website. Looking to use this static image as a "button" to launch the full site in another card/browser > > > > > Code examples welcome ;-) > > > > > E > > > ? > Ethan at Lish.net240.876.1389 > > On Fri, Jan 30, 2015 at 7:03 AM, Mike Doub wrote: > >> In my implementation I put all of the thumbnails into an array. If there >> are no thumbnails found, the array is empty. >> Mike >> On Friday, January 30, 2015, Malte Brill wrote: >>> Hi Al, >>> >>> sorry to chime in late. I was on the road without any iNet access. The >>> last iteration of the script including numToByte and setting the case >>> sensitive to true indeed does work extracting the thumbnail image. And it >>> is incredibly fast. :-) I still have troubles to see if there is no >>> thumbnail in the image though. Need tto dig into that. >>> >>> All the best and thanks again! >>> >>> Malte >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Fri Jan 30 15:35:33 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 30 Jan 2015 20:35:33 +0000 Subject: Datagrid Selection Toggle Message-ID: <1E5C52F8-FA06-41B8-903C-9E7422BF5E67@iotecdigital.com> Anyone ever want to have data grid table selections toggle without making the user hold the shift key down? on selectionChanged theSelectedItem put the savedHilitedLines of me into theHilitedLines if theSelectedItem is among the items of theHilitedLines then set wholeMatches to true put itemOffset(theSelectedItem, theHilitedLines) into theFoundItem delete item theFoundItem of theHilitedLines set the dgHilitedLines of me to theHilitedLines end if set the savedHilitedLines of me to the dgHilitedLines of me end selectionChanged Bob S From gcanyon at gmail.com Fri Jan 30 17:05:12 2015 From: gcanyon at gmail.com (Geoff Canyon) Date: Fri, 30 Jan 2015 16:05:12 -0600 Subject: stackfileversion and locking 6.5.2 In-Reply-To: References: <1422635802768-4688300.post@n4.nabble.com> Message-ID: well that didn't take long :-P It turns out that there is one field in the stack -- delete the contents of that field, and the stack opens fine in 6.5.2. I copied the contents of the field and pasted into Pages, then deleted the contents of the field, and the file opened fine in 6.5.2. I then pasted the contents back in, and the stack survived. Bug 14476 On Fri, Jan 30, 2015 at 11:00 AM, Mike Bonner wrote: > Even setting the filename to empty might be enough. (this way, any > references in the stack that use the stackname won't be broken). When this > is done, when you save it, rather than just saving it brings up the > filename dialog as if it were a new stack, and if you try to save it in the > same place with the same name, you receive the usual warning about > overwriting the stack. > > On Fri, Jan 30, 2015 at 9:36 AM, tbodine > wrote: > > > Is it feasible to make a handler for stacks being opened that would > detect > > old version stacks and open them copies of them as "untitled" in the new > > stack format while leaving the legacy stack as is? > > -- Tom Bodine > > > > > > > > -- > > View this message in context: > > > http://runtime-revolution.278305.n4.nabble.com/stackfileversion-and-locking-6-5-2-tp4688290p4688300.html > > Sent from the Revolution - User mailing list archive at Nabble.com. > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From revdev at pdslabs.net Fri Jan 30 17:52:32 2015 From: revdev at pdslabs.net (Phil Davis) Date: Fri, 30 Jan 2015 14:52:32 -0800 Subject: 6.7 vs 7.0 performance [was: Re: Tio does not work ] In-Reply-To: <54C69379.3000606@pdslabs.net> References: <54C69379.3000606@pdslabs.net> Message-ID: <54CC0B30.9040906@pdslabs.net> Has anyone installed LC 7 in a shared hosting account with a provider other than Dreamhost? If so, would you be willing to put the following script on your server and let Dreamhost support (and me) use it in some tests for the next few days? Dreamhost isn't sure the speed lag is their problem, and maybe it isn't... but having the same test script available on different hosts and running under similar "custom" installs of LC 7 server could produce some interesting comparisons. (on-rev servers aren't equal in testing because LC is "built in".) Here is my test script - it's pretty trivial but does the job: " in tOutput put tOutput ?> Thanks for whatever help you can provide. Just post your URL here and I'll post the test results (if someone doesn't beat me to it) Here is my DH test URL for the above script: http://support.nweta.com/test2.lc Phil Davis On 1/26/15 11:20 AM, Phil Davis wrote: > Thanks so much for your work on this, Peter. I just posted a support > request to Dreamhost with a PDF of the LC bug post (13983) your forum > post attached. We'll see how they respond. > > Thanks - > Phil Davis > > > On 1/26/15 8:04 AM, Peter TB Brett wrote: >> Richard Gaskin wrote: >> >>> This suggests that the biggest performance degradation we're >>> experiencing on Dreamhost is specific to the interaction between DH's >>> Apache setup and launching our LiveCode CGIs. >> >> Hi all, >> >> I have performed some tests that strongly suggest that these issues >> are indeed Dreamhost-specific. Please see my latest forum post here: >> >> http://forums.livecode.com/viewtopic.php?f=67&t=22072&p=118043#p118043 >> >> Have you considered taking these issues up with Dreamhost's support? >> >> Note that we will soon start providing fully-supported and performant >> LiveCode 7 hosting via On-Rev. >> >> Peter >> >> >> _______________________________________________ >> livecode-dev mailing list >> livecode-dev at lists.runrev.com >> http://lists.runrev.com/mailman/listinfo/livecode-dev >> > -- Phil Davis From jacque at hyperactivesw.com Fri Jan 30 19:15:40 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 30 Jan 2015 18:15:40 -0600 Subject: Invisible character treated as word? In-Reply-To: <5BCD9B0A-B38E-4AD7-83EB-2282FF3BC061@comcast.net> References: <5BCD9B0A-B38E-4AD7-83EB-2282FF3BC061@comcast.net> Message-ID: <54CC1EAC.5090000@hyperactivesw.com> On 1/30/2015 6:50 AM, David Epstein wrote: > But since it seems that fonts and systems will differ as to which > characters are actually invisible, I will need to purge even harmless > visible characters. So my current plan is to use this function: > > function scrubbedText txt > > -- For tab-delimited data, replace possibly invisible characters with a space; and then > > -- remove leading and trailing spaces from each cell > > repeat for each char k in txt > > if charToNum(k) > 31 or charToNum(k) < 127 then put k after hold > > else put space after hold > > end repeat You could probably use "filter txt with regex pattern", if you can come up with the right regular expression. One of our smart regex people probably knows what that is. If you do end up using the function above, I think you'll want to use "and" instead of "or" in the "if" statement. As written it will match all possible characters. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From ambassador at fourthworld.com Fri Jan 30 21:02:41 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 30 Jan 2015 18:02:41 -0800 Subject: 6.7 vs 7.0 performance [was: Re: Tio does not work ] Message-ID: <5heevrroelnagayihw9gc92u.1422669761991@email.android.com> Can RunRev set up both engines on On-Rev, at least long enough to run this test?? Richard Gaskin Fourth World Systems http://www.FourthWorld.com From th.douez at gmail.com Sat Jan 31 00:01:09 2015 From: th.douez at gmail.com (Thierry Douez) Date: Sat, 31 Jan 2015 06:01:09 +0100 Subject: Invisible character treated as word? In-Reply-To: <5BCD9B0A-B38E-4AD7-83EB-2282FF3BC061@comcast.net> References: <5BCD9B0A-B38E-4AD7-83EB-2282FF3BC061@comcast.net> Message-ID: > function scrubbedText txt > repeat for each char k in txt > if charToNum(k) > 31 or charToNum(k) < 127 then put k after hold > else put space after hold > end repea > set itemDelimiter to tab > repeat for each line k in hold > repeat for each item i in k > put word 1 to -1 of i & tab after k2 > end repeat > put return into char -1 of k2 > put k2 after hold > put empty into k2 > end repeat > return hold2 > end scrubbedText > > If anyone sees a way to do this without stepping through each character, or without excluding non-standard visible characters, suggestions are welcome. Hi David, Umm, as invisible char has no-standard meaning, I'm not completely sure if this one will fit your needs: put replacetext( txt, "[^[:print:]\n\t]", empty) into newTxt HTH, Thierry PS: if looking at regular expressions it's like a goat staring at a new fence, please, accept my apologies and try to enjoy your week-end. ------------------------------------------------ Thierry Douez - http://sunny-tdz.com Maker of sunnYperl - sunnYmidi - sunnYmage From richmondmathewson at gmail.com Sat Jan 31 07:43:23 2015 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 31 Jan 2015 14:43:23 +0200 Subject: Are you bored this weekend? Message-ID: <54CCCDEB.1020201@gmail.com> I am going to try to copy this: http://turtlediary.us3.list-manage1.com/track/click?u=45a6d3a2aaeaa1091df463735&id=40968b27c5&e=c88722d2ca in Livecode . . . Richmond. From msiskin at andrew.cmu.edu Sat Jan 31 09:56:38 2015 From: msiskin at andrew.cmu.edu (Marc Siskin) Date: Sat, 31 Jan 2015 14:56:38 +0000 Subject: Western Pennsylvania LiveCodeUser Group Message-ID: <0DB01577-6475-4296-8FE2-7B93F83A209F@andrew.cmu.edu> Western Pennsylvania LiveCode User Group is calling its first meeting for 6 pm on Tuesday, February 24, 2015, at Carnegie Mellon University's Modern Language Resource Center, Room 225c Baker Porter Hall. All those in and around Pittsburgh with experiences or an interest in the multi-platform, open source, software LiveCode (http://www.LiveCode.com) are invited to attend the organizational meeting. Our meet and greet starts with pizza and includes a 20-to-30 minute presentation and demo from Marc Siskin of CMU on how he converts his LiveCode content into mobile apps that run on both iOS and Android devices. If you have any interest in the group, attend the meeting or else email msiskin at edvista.com or call 412-401-5623 as monthly meetings are expected. From dochawk at gmail.com Sat Jan 31 09:59:09 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Sat, 31 Jan 2015 06:59:09 -0800 Subject: Set Script Limits in Standalones In-Reply-To: <54C7CD36.5040405@LinkIt.Com> References: <6688A027-9C3E-4E55-A481-EFE5869456D4@iotecdigital.com> <54C7C47D.3080801@fourthworld.com> <54C7CD36.5040405@LinkIt.Com> Message-ID: On Tue, Jan 27, 2015 at 9:39 AM, Ray wrote: > I didn't know Scott had a doctoral degree and I hope he was never offended > that I didn't address him with this title. I have yet to meet a real doctor that gets offended or expects the title to be used outside of a classroom. MDs are another story, but most aren't real doctors, not having contributed to knowledge . . -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From dochawk at gmail.com Sat Jan 31 10:03:36 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Sat, 31 Jan 2015 07:03:36 -0800 Subject: dealing with graphics whose size changes Message-ID: I have graphics whose animation will take them to arbitrary sizes from 10 to 200 pixels, with an initial displayed size of 100. If reset their size & width, they eventually get jagged. Is there a "best" method for keeping them to date in shape? The extreme versions would seem to be to have one for every possible point size and make it visible, or to copy it, set size, and unlock screen with every change. Both of these sosund like a lot of work for the engine, though . . . -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From dochawk at gmail.com Sat Jan 31 10:05:42 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Sat, 31 Jan 2015 07:05:42 -0800 Subject: changing layer within a group by script/ speed of "start editing" In-Reply-To: References: <1CE90A40-10CA-44E0-A14C-86A21CC1C905@tactilemedia.com> Message-ID: On Mon, Jan 26, 2015 at 10:54 AM, Geoff Canyon wrote: > set relayergroupedcontrols to true > set the layer of to > wow. That did it. I keep trying to read large blocks of the dictionary, but there is still so much to find . . . We're a long way from hypercard, for which I read the entire book one afternoon (and still have it) -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From scott at tactilemedia.com Sat Jan 31 10:31:41 2015 From: scott at tactilemedia.com (Scott Rossi) Date: Sat, 31 Jan 2015 07:31:41 -0800 Subject: dealing with graphics whose size changes In-Reply-To: References: Message-ID: <867E37AE-60A8-4F30-9864-71FD485DF45E@tactilemedia.com> Are the graphics polygons? If yes, you can store the original points of the polygons as custom properties in the graphics, and revert to those before doing any size changes. You may need to account for an offset depending on where the graphic is displayed on the card, but usually locking the screen is enough to hide unwanted visible changes when you reset the points. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On Jan 31, 2015, at 7:03 AM, Dr. Hawkins wrote: > I have graphics whose animation will take them to arbitrary sizes from 10 > to 200 pixels, with an initial displayed size of 100. > > If reset their size & width, they eventually get jagged. > > Is there a "best" method for keeping them to date in shape? The extreme > versions would seem to be to have one for every possible point size and > make it visible, or to copy it, set size, and unlock screen with every > change. Both of these sosund like a lot of work for the engine, though . > . . > > > -- > Dr. Richard E. Hawkins, Esq. > (702) 508-8462 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Sat Jan 31 12:41:36 2015 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 31 Jan 2015 19:41:36 +0200 Subject: Are you bored this weekend? In-Reply-To: <54CCCDEB.1020201@gmail.com> References: <54CCCDEB.1020201@gmail.com> Message-ID: <54CD13D0.7010301@gmail.com> On 31/01/15 14:43, Richmond wrote: > I am going to try to copy this: > > http://turtlediary.us3.list-manage1.com/track/click?u=45a6d3a2aaeaa1091df463735&id=40968b27c5&e=c88722d2ca > > > in Livecode . . . > > Richmond. Dunnit: http://forums.livecode.com/viewtopic.php?f=22&t=22971&p=118612#p118612 Richmond. From ethanlish at gmail.com Sat Jan 31 13:01:55 2015 From: ethanlish at gmail.com (Ethan Lish) Date: Sat, 31 Jan 2015 18:01:55 +0000 (UTC) Subject: 6.7 vs 7.0 performance [was: Re: Tio does not work ] In-Reply-To: <5heevrroelnagayihw9gc92u.1422669761991@email.android.com> References: <5heevrroelnagayihw9gc92u.1422669761991@email.android.com> Message-ID: <706BCB1B4E1DCFFD.90B1D6A7-7C1E-4923-A138-95A9241F6584@mail.outlook.com> Phil I have the script on a couple of sandbox servers. No performance problem. Email me off list if you want details.? Ethan "at" Lish.net E Sent from Outlook on my iPhone On Fri, Jan 30, 2015 at 6:03 PM -0800, "Richard Gaskin" wrote: Can RunRev set up both engines on On-Rev, at least long enough to run this test?? Richard Gaskin Fourth World Systems http://www.FourthWorld.com _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From coiin at verizon.net Sat Jan 31 13:01:57 2015 From: coiin at verizon.net (Colin Holgate) Date: Sat, 31 Jan 2015 13:01:57 -0500 Subject: Are you bored this weekend? In-Reply-To: <54CD13D0.7010301@gmail.com> References: <54CCCDEB.1020201@gmail.com> <54CD13D0.7010301@gmail.com> Message-ID: <61EE40C0-93BA-4813-AE02-7C9364C747C6@verizon.net> Can you try to be quicker next time? BTW, line 22 (in HEX2) is like this: set the loc of group "gHEX21" to the loc of img ?TARGET6" it should be: set the loc of group "gHEX2" to the loc of img ?TARGET6" > On Jan 31, 2015, at 12:41 PM, Richmond wrote: > > On 31/01/15 14:43, Richmond wrote: >> I am going to try to copy this: >> >> http://turtlediary.us3.list-manage1.com/track/click?u=45a6d3a2aaeaa1091df463735&id=40968b27c5&e=c88722d2ca >> >> in Livecode . . . >> >> Richmond. > > Dunnit: http://forums.livecode.com/viewtopic.php?f=22&t=22971&p=118612#p118612 > > Richmond. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Sat Jan 31 13:28:55 2015 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 31 Jan 2015 20:28:55 +0200 Subject: Are you bored this weekend? In-Reply-To: <61EE40C0-93BA-4813-AE02-7C9364C747C6@verizon.net> References: <54CCCDEB.1020201@gmail.com> <54CD13D0.7010301@gmail.com> <61EE40C0-93BA-4813-AE02-7C9364C747C6@verizon.net> Message-ID: <54CD1EE7.8000102@gmail.com> On 31/01/15 20:01, Colin Holgate wrote: > Can you try to be quicker next time? Is that sarcastic or real? > > BTW, line 22 (in HEX2) is like this: > > set the loc of group "gHEX21" to the loc of img ?TARGET6" > > it should be: > > set the loc of group "gHEX2" to the loc of img ?TARGET6" > Thanks for the correction. Richmond. >> On Jan 31, 2015, at 12:41 PM, Richmond wrote: >> >> On 31/01/15 14:43, Richmond wrote: >>> I am going to try to copy this: >>> >>> http://turtlediary.us3.list-manage1.com/track/click?u=45a6d3a2aaeaa1091df463735&id=40968b27c5&e=c88722d2ca >>> >>> in Livecode . . . >>> >>> Richmond. >> Dunnit: http://forums.livecode.com/viewtopic.php?f=22&t=22971&p=118612#p118612 >> >> Richmond. >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Sat Jan 31 13:32:36 2015 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 31 Jan 2015 20:32:36 +0200 Subject: Are you bored this weekend? In-Reply-To: <61EE40C0-93BA-4813-AE02-7C9364C747C6@verizon.net> References: <54CCCDEB.1020201@gmail.com> <54CD13D0.7010301@gmail.com> <61EE40C0-93BA-4813-AE02-7C9364C747C6@verizon.net> Message-ID: <54CD1FC4.1070206@gmail.com> On 31/01/15 20:01, Colin Holgate wrote: > Can you try to be quicker next time? I, also am refactoring my Devawriter, and spent 3 hours on that between my first posting and second one. Richmond. From coiin at verizon.net Sat Jan 31 13:32:41 2015 From: coiin at verizon.net (Colin Holgate) Date: Sat, 31 Jan 2015 13:32:41 -0500 Subject: Are you bored this weekend? In-Reply-To: <54CD1EE7.8000102@gmail.com> References: <54CCCDEB.1020201@gmail.com> <54CD13D0.7010301@gmail.com> <61EE40C0-93BA-4813-AE02-7C9364C747C6@verizon.net> <54CD1EE7.8000102@gmail.com> Message-ID: It was a compliment, disguised as sarcasm. > On Jan 31, 2015, at 1:28 PM, Richmond wrote: > > On 31/01/15 20:01, Colin Holgate wrote: >> Can you try to be quicker next time? > > Is that sarcastic or real? From richmondmathewson at gmail.com Sat Jan 31 13:37:39 2015 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 31 Jan 2015 20:37:39 +0200 Subject: Are you bored this weekend? In-Reply-To: References: <54CCCDEB.1020201@gmail.com> <54CD13D0.7010301@gmail.com> <61EE40C0-93BA-4813-AE02-7C9364C747C6@verizon.net> <54CD1EE7.8000102@gmail.com> Message-ID: <54CD20F3.4090907@gmail.com> On 31/01/15 20:32, Colin Holgate wrote: > It was a compliment, disguised as sarcasm. > > >> On Jan 31, 2015, at 1:28 PM, Richmond wrote: >> >> On 31/01/15 20:01, Colin Holgate wrote: >>> Can you try to be quicker next time? >> Is that sarcastic or real? > The whole thing took me about 90 minutes; mind you I spent a bit of time messing around with GIMP; so, probably about 60 minutes on Livecode. HOWEVER; it is a copy of the Turtle Diary thing, so the idea is not original in the slightest, and, ultimately, I am prepared to admire the person who came up with the original version (if, indeed, Turtle Diary's is the original) more than anybody producing imitations. What is good, though, is trying to imitate this sort of thing in Livecode, not just as a mental exercise, but as a demonstration that Livecode can "cut the mustard" and one can get these things up and running really quite quickly. Richmond. From richmondmathewson at gmail.com Sat Jan 31 13:40:21 2015 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 31 Jan 2015 20:40:21 +0200 Subject: Are you bored this weekend? In-Reply-To: References: <54CCCDEB.1020201@gmail.com> <54CD13D0.7010301@gmail.com> <61EE40C0-93BA-4813-AE02-7C9364C747C6@verizon.net> <54CD1EE7.8000102@gmail.com> Message-ID: <54CD2195.9050704@gmail.com> Of course, if I had spent a bit more time I would have made sure the hexagons rotated in the same direction the arrows pointed :P i.e. clockwise, rather than anti-clockwise. I had forgotten that SET THE ANGLE worked anti-clockwise (which does seem a bit counter-intuitive)! Richmond. From coiin at verizon.net Sat Jan 31 13:46:37 2015 From: coiin at verizon.net (Colin Holgate) Date: Sat, 31 Jan 2015 13:46:37 -0500 Subject: Are you bored this weekend? In-Reply-To: <54CD2195.9050704@gmail.com> References: <54CCCDEB.1020201@gmail.com> <54CD13D0.7010301@gmail.com> <61EE40C0-93BA-4813-AE02-7C9364C747C6@verizon.net> <54CD1EE7.8000102@gmail.com> <54CD2195.9050704@gmail.com> Message-ID: There are some things wrong with the original that you don?t have to exactly mimic. The only rotating clockwise is one example. With two arrows (but not as close as your ones are) you would allow users to rotate either way, getting to the desired rotation in half the time on average. It?s not an easy game by the way, and I stopped playing it because it was a bit frustrating. From richmondmathewson at gmail.com Sat Jan 31 13:47:27 2015 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 31 Jan 2015 20:47:27 +0200 Subject: Are you bored this weekend? In-Reply-To: References: <54CCCDEB.1020201@gmail.com> <54CD13D0.7010301@gmail.com> <61EE40C0-93BA-4813-AE02-7C9364C747C6@verizon.net> <54CD1EE7.8000102@gmail.com> Message-ID: <54CD233F.1000404@gmail.com> I must say, I wonder about this: http://en.wikipedia.org/wiki/Pentomino really rather fun! I suppose I should throw down the gauntlet to challenge anybody to produce a Livecode Pentomino puzzle: the only real problem being that I very much doubt I can manage that myself. Richmond. From richmondmathewson at gmail.com Sat Jan 31 13:49:01 2015 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 31 Jan 2015 20:49:01 +0200 Subject: Are you bored this weekend? In-Reply-To: References: <54CCCDEB.1020201@gmail.com> <54CD13D0.7010301@gmail.com> <61EE40C0-93BA-4813-AE02-7C9364C747C6@verizon.net> <54CD1EE7.8000102@gmail.com> <54CD2195.9050704@gmail.com> Message-ID: <54CD239D.8010803@gmail.com> On 31/01/15 20:46, Colin Holgate wrote: > There are some things wrong with the original that you don?t have to exactly mimic. The only rotating clockwise is one example. With two arrows (but not as close as your ones are) you would allow users to rotate either way, getting to the desired rotation in half the time on average. > > It?s not an easy game by the way, and I stopped playing it because it was a bit frustrating. > _______________________________________________ > Yup: I played with it for about 5 minutes and thought that it would be more fun copying the thing in Livecode than actually playing it. Richmond. From brahma at hindu.org Sat Jan 31 14:41:35 2015 From: brahma at hindu.org (Brahmanathaswami) Date: Sat, 31 Jan 2015 09:41:35 -1000 Subject: ISO 8601 date to seconds In-Reply-To: <3284E3D8-686E-4CC2-AFCE-DB0578781C67@iotecdigital.com> References: <54C99705.4030308@hindu.org> <8AD1544E-460E-463D-B024-3079A0321F3D@iotecdigital.com> <3284E3D8-686E-4CC2-AFCE-DB0578781C67@iotecdigital.com> Message-ID: <54CD2FEF.3070207@hindu.org> FYI: those interested in this date/time enhancement can add their thoughts here: http://quality.runrev.com/show_bug.cgi?id=4636 Bob Sneidar wrote: > Sorry about the extra lines in the last post. Not sure what caused that. Here is the formatDate() function as well. > > Bob S > > function formatDate theDate, theFormat > /* > Accepts any valid date for the first parameter. If not a valid date, it simply returns > what was passed. Second parameter can be any of the following: > sql date: date in the yyyy-mm-dd format > short date, abbreviated date, internet date, long date: LC versions of the same > julian date: Julian number based on (I believe) Jacques formula) > */ > > put the itemdelimiter into theOldDelim > set the itemdelimiter to "-" > > if the length of item 1 of theDate = 4 and \ > the number of items of theDate = 3 and \ > item 1 of theDate is a number and \ > item 2 of theDate is a number and \ > item 3 of theDate is a number then > put item 2 of theDate& "/"& \ > item 3 of theDate& "/"& \ > item 1 of theDate into theDate > end if > > convert theDate to dateitems > set the itemdelimiter to theOldDelim > > switch theFormat > case "sql date" > put item 1 of theDate& "-"& \ > format("%02d",item 2 of theDate)& "-"& \ > format("%02d",item 3 of theDate) into theDate > break > case "short date" > convert theDate from dateitems to short date > break > case "abbreviated date" > convert theDate from dateitems to abbreviated date > break > case "internet date" > convert theDate from dateitems to internet date > break > case "long date" > convert theDate from dateitems to long date > break > case "julian date" > put the date into theDate > convert theDate to dateItems > if ((item 2 of theDate = 1) or (item 2 of theDate = 2)) then > put 1 into theDay > else > put 0 into theDay > end if > put item 1 of theDate + 4800 - theDay into theYear > put item 2 of theDate + (12 * theDay) - 3 into theMonth > put item 3 of theDate + \ > ((153 * theMonth + 2) div 5) + \ > (365 * theYear) + \ > (theYear div 4) - \ > (theYear div 100) + \ > (theYear div 400) - \ > 32045 into theDate > break > end switch > > return theDate > end formatDate > > >> On Jan 29, 2015, at 08:05 , Bob Sneidar wrote: >> >> Not that this solves your particular problem but some might be interested in this function. I will see if I can include this scenario in my function at some point. >> >> Bob S > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From richmondmathewson at gmail.com Sat Jan 31 15:24:04 2015 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 31 Jan 2015 22:24:04 +0200 Subject: Overlap detection? Message-ID: <54CD39E4.7080905@gmail.com> http://forums.livecode.com/viewtopic.php?f=22&t=22974 Richmond. From richmondmathewson at gmail.com Sat Jan 31 15:32:22 2015 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 31 Jan 2015 22:32:22 +0200 Subject: Overlap detection? In-Reply-To: <54CD39E4.7080905@gmail.com> References: <54CD39E4.7080905@gmail.com> Message-ID: <54CD3BD6.5080406@gmail.com> On 31/01/15 22:24, Richmond wrote: > http://forums.livecode.com/viewtopic.php?f=22&t=22974 > > Richmond. intersect? From mikedoub at gmail.com Sat Jan 31 15:33:34 2015 From: mikedoub at gmail.com (Michael Doub) Date: Sat, 31 Jan 2015 15:33:34 -0500 Subject: Livecode Precision or me? Message-ID: <54CD3C1E.9050009@gmail.com> I am trying to covert the javascript that computes distance based on longitude and latitude from this page: http://andrew.hedges.name/experiments/haversine/. The sites javascript is returning 0.341 miles and 0.549 km Livecode is returning 0.097 miles and 0.157 I have been staring at this for a while. Does anyone see my mistake or is there a precision issue tripping me up? Thanks Mike on doit answer __latLongDist (38.898556, -77.037852, 38.897147, -77.043934) end doit function __latLongDist t1, n1, t2, n2 , mk put 3961 into Rm -- mean radius of the earth (miles) at 39 degrees from the equator put 6373 into Rk -- mean radius of the earth (km) at 39 degrees from the equator put t1 * pi/180 into lat1 -- convert degrees to radians put n1 * pi/180 into lon1 put t2 * pi/180 into lat2 put n2 * pi/180 into lon2 put lat2 - lat1 into dlat put lon2 - lon2 into dlon put (sin(dlat/2))^2 + cos(lat1) * cos(lat2) * (sin(dlon/2))^2 into aa put 2 * atan2( sqrt(aa), sqrt(1-aa) ) into cc put cc * Rm into Dm put cc * Rk into Dk return round (Dm,3), round(Dk,3) end __latLongDist /* main function */ function findDistance(frm) { var t1, n1, t2, n2, lat1, lon1, lat2, lon2, dlat, dlon, a, c, dm, dk, mi, km; // get values for lat1, lon1, lat2, and lon2 t1 = frm.lat1.value; n1 = frm.lon1.value; t2 = frm.lat2.value; n2 = frm.lon2.value; // convert coordinates to radians lat1 = deg2rad(t1); lon1 = deg2rad(n1); lat2 = deg2rad(t2); lon2 = deg2rad(n2); // find the differences between the coordinates dlat = lat2 - lat1; dlon = lon2 - lon1; // here's the heavy lifting a = Math.pow(Math.sin(dlat/2),2) + Math.cos(lat1) * Math.cos(lat2) * Math.pow(Math.sin(dlon/2),2); c = 2 * Math.atan2(Math.sqrt(a),Math.sqrt(1-a)); // great circle distance in radians dm = c * Rm; // great circle distance in miles dk = c * Rk; // great circle distance in km // round the results down to the nearest 1/1000 mi = round(dm); km = round(dk); // display the result frm.mi.value = mi; frm.km.value = km; } From mikedoub at gmail.com Sat Jan 31 15:42:36 2015 From: mikedoub at gmail.com (Michael Doub) Date: Sat, 31 Jan 2015 15:42:36 -0500 Subject: Livecode Precision or me? In-Reply-To: <54CD3C1E.9050009@gmail.com> References: <54CD3C1E.9050009@gmail.com> Message-ID: <54CD3E3C.2040904@gmail.com> Of coarse it was me. And as you would expect, I found it right after sending the mail to the list. put lon2 - lon2 into dlon should be put lon2 - lon1 into dlon Sorry for the junk mail. -= Mike On 1/31/15 3:33 PM, Michael Doub wrote: > I am trying to covert the javascript that computes distance based on > longitude and latitude from this page: > http://andrew.hedges.name/experiments/haversine/. > > The sites javascript is returning 0.341 miles and 0.549 km > Livecode is returning 0.097 miles and 0.157 > > I have been staring at this for a while. Does anyone see my mistake > or is there a precision issue tripping me up? > > Thanks > Mike > > > > on doit > answer __latLongDist (38.898556, -77.037852, 38.897147, -77.043934) > end doit > > > function __latLongDist t1, n1, t2, n2 , mk > put 3961 into Rm -- mean radius of the earth (miles) at 39 degrees > from the equator > put 6373 into Rk -- mean radius of the earth (km) at 39 degrees > from the equator > put t1 * pi/180 into lat1 -- convert degrees to radians > put n1 * pi/180 into lon1 > put t2 * pi/180 into lat2 > put n2 * pi/180 into lon2 > put lat2 - lat1 into dlat > put lon2 - lon2 into dlon > put (sin(dlat/2))^2 + cos(lat1) * cos(lat2) * (sin(dlon/2))^2 into aa > put 2 * atan2( sqrt(aa), sqrt(1-aa) ) into cc > put cc * Rm into Dm > put cc * Rk into Dk > return round (Dm,3), round(Dk,3) > end __latLongDist > > > > /* main function */ > function findDistance(frm) { > var t1, n1, t2, n2, lat1, lon1, lat2, lon2, dlat, dlon, a, c, > dm, dk, mi, km; > > // get values for lat1, lon1, lat2, and lon2 > t1 = frm.lat1.value; > n1 = frm.lon1.value; > t2 = frm.lat2.value; > n2 = frm.lon2.value; > > // convert coordinates to radians > lat1 = deg2rad(t1); > lon1 = deg2rad(n1); > lat2 = deg2rad(t2); > lon2 = deg2rad(n2); > > // find the differences between the coordinates > dlat = lat2 - lat1; > dlon = lon2 - lon1; > > // here's the heavy lifting > a = Math.pow(Math.sin(dlat/2),2) + Math.cos(lat1) * > Math.cos(lat2) * Math.pow(Math.sin(dlon/2),2); > c = 2 * Math.atan2(Math.sqrt(a),Math.sqrt(1-a)); // great > circle distance in radians > dm = c * Rm; // great circle distance in miles > dk = c * Rk; // great circle distance in km > > // round the results down to the nearest 1/1000 > mi = round(dm); > km = round(dk); > > // display the result > frm.mi.value = mi; > frm.km.value = km; > } From pete at lcsql.com Sat Jan 31 15:44:25 2015 From: pete at lcsql.com (Peter Haworth) Date: Sat, 31 Jan 2015 12:44:25 -0800 Subject: ISO 8601 date to seconds In-Reply-To: <54CD2FEF.3070207@hindu.org> References: <54C99705.4030308@hindu.org> <8AD1544E-460E-463D-B024-3079A0321F3D@iotecdigital.com> <3284E3D8-686E-4CC2-AFCE-DB0578781C67@iotecdigital.com> <54CD2FEF.3070207@hindu.org> Message-ID: On Sat, Jan 31, 2015 at 11:41 AM, Brahmanathaswami wrote: > FYI: those interested in this date/time enhancement can add their thoughts > here: > > http://quality.runrev.com/show_bug.cgi?id=4636 > Just added one minor note. The separator between date and time can be the letter "T" as well as a space. SQLIte allows this, not sure about other implementations. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From dochawk at gmail.com Sat Jan 31 16:00:00 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Sat, 31 Jan 2015 13:00:00 -0800 Subject: Where did the handlers for my menukeys go??? Message-ID: Sometime, over two years ago, I set up some key accelerators for a card (or maybe the substack). They still work--and I can't find them. I assume that I used the menubuilder. These drivers send a mouseup to an associated button Can anyone tell me where to hunt for them? -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From richmondmathewson at gmail.com Sat Jan 31 16:03:05 2015 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 31 Jan 2015 23:03:05 +0200 Subject: Rotating non-square images Message-ID: <54CD4309.6080305@gmail.com> I must say I wonder why Livecode still mucks up non-square images: http://forums.livecode.com/viewtopic.php?f=22&t=22974&p=118632#p118632 Richmond. From jacque at hyperactivesw.com Sat Jan 31 16:03:54 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 31 Jan 2015 15:03:54 -0600 Subject: Invisible character treated as word? In-Reply-To: References: <5BCD9B0A-B38E-4AD7-83EB-2282FF3BC061@comcast.net> Message-ID: <54CD433A.9070609@hyperactivesw.com> On 1/30/2015 11:01 PM, Thierry Douez wrote: > if looking at regular expressions it's like a goat staring at a new fence, Wonderful imagery. :) I knew you'd show up to solve the regex problem, I didn't even have to say your name. I suppose when your wife wants you to come to dinner, she only has to say "regex!" and you arrive at the table. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From revdev at pdslabs.net Sat Jan 31 16:04:51 2015 From: revdev at pdslabs.net (Phil Davis) Date: Sat, 31 Jan 2015 13:04:51 -0800 Subject: 6.7 vs 7.0 performance [was: Re: Tio does not work ] In-Reply-To: <706BCB1B4E1DCFFD.90B1D6A7-7C1E-4923-A138-95A9241F6584@mail.outlook.com> References: <5heevrroelnagayihw9gc92u.1422669761991@email.android.com> <706BCB1B4E1DCFFD.90B1D6A7-7C1E-4923-A138-95A9241F6584@mail.outlook.com> Message-ID: <54CD4373.6060709@pdslabs.net> Thanks Ethan. Actually I just opened a GatorHost shared hosting account and will set up a test there. It will be roughly equivalent to my Dreamhost setup, running Apache in a Linux environment. It may be educational for us all. Thanks - Phil On 1/31/15 10:01 AM, Ethan Lish wrote: > Phil > I have the script on a couple of sandbox servers. No performance problem. Email me off list if you want details. > Ethan "at" Lish.net > E > > Sent from Outlook on my iPhone > > > > > On Fri, Jan 30, 2015 at 6:03 PM -0800, "Richard Gaskin" wrote: > > > > > > > > > > > Can RunRev set up both engines on On-Rev, at least long enough to run this test? > > > Richard Gaskin > Fourth World Systems > http://www.FourthWorld.com > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- Phil Davis From ethanlish at gmail.com Sat Jan 31 16:20:25 2015 From: ethanlish at gmail.com (Ethan Lish) Date: Sat, 31 Jan 2015 21:20:25 +0000 (UTC) Subject: 6.7 vs 7.0 performance [was: Re: Tio does not work ] In-Reply-To: <54CD4373.6060709@pdslabs.net> References: <5heevrroelnagayihw9gc92u.1422669761991@email.android.com> <706BCB1B4E1DCFFD.90B1D6A7-7C1E-4923-A138-95A9241F6584@mail.outlook.com> <54CD4373.6060709@pdslabs.net> Message-ID: <706BCB1B4E1DCFFD.799DB69A-B3DB-491A-939A-460DA958B140@mail.outlook.com> Cool If you are looking for a new LiveCode host you might want to checkout hostmhttp://www.hostm.com/. They run a shared v6 community edition? Also No Support Linux allows you to install your own cgi-bin instance of LiveCode at a $1/month.?https://www.nosupportlinuxhosting.com We use both of these for low cost sandbox servers. Low cost. Try it out and through it away when your done ? E Sent from Outlook on my iPhone On Sat, Jan 31, 2015 at 1:05 PM -0800, "Phil Davis" wrote: Thanks Ethan. Actually I just opened a GatorHost shared hosting account and will set up a test there. It will be roughly equivalent to my Dreamhost setup, running Apache in a Linux environment. It may be educational for us all. Thanks - Phil On 1/31/15 10:01 AM, Ethan Lish wrote: > Phil > I have the script on a couple of sandbox servers. No performance problem. Email me off list if you want details. > Ethan "at" Lish.net > E > > Sent from Outlook on my iPhone > > > > > On Fri, Jan 30, 2015 at 6:03 PM -0800, "Richard Gaskin" wrote: > > > > > > > > > > > Can RunRev set up both engines on On-Rev, at least long enough to run this test? > > > Richard Gaskin > Fourth World Systems > http://www.FourthWorld.com > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- Phil Davis _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From dochawk at gmail.com Sat Jan 31 17:52:45 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Sat, 31 Jan 2015 14:52:45 -0800 Subject: 6.7 vs 7.0 performance [was: Re: Tio does not work ] In-Reply-To: <54CC0B30.9040906@pdslabs.net> References: <54C69379.3000606@pdslabs.net> <54CC0B30.9040906@pdslabs.net> Message-ID: "Livecode 7" and "Performance" should not be used in the same sentence . . . :) -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From pmbrig at gmail.com Sat Jan 31 17:52:53 2015 From: pmbrig at gmail.com (Peter M. Brigham) Date: Sat, 31 Jan 2015 17:52:53 -0500 Subject: Set Script Limits in Standalones In-Reply-To: References: <6688A027-9C3E-4E55-A481-EFE5869456D4@iotecdigital.com> <54C7C47D.3080801@fourthworld.com> <54C7CD36.5040405@LinkIt.Com> Message-ID: On Jan 31, 2015, at 9:59 AM, Dr. Hawkins wrote: > MDs are another story, but most aren't > real doctors, not having contributed to knowledge . . Sorry, but as an MD I have to protest this. I may not have contributed to knowledge in the sense of having published original research, but i'm confident that I have contributed to the well-being of thousands of patients. That said, I don't take offense at being called "Mr." outside of the office. -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig From dochawk at gmail.com Sat Jan 31 17:54:49 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Sat, 31 Jan 2015 14:54:49 -0800 Subject: dealing with graphics whose size changes In-Reply-To: <867E37AE-60A8-4F30-9864-71FD485DF45E@tactilemedia.com> References: <867E37AE-60A8-4F30-9864-71FD485DF45E@tactilemedia.com> Message-ID: On Sat, Jan 31, 2015 at 7:31 AM, Scott Rossi wrote: > Are the graphics polygons? > > If yes, you can store the original points of the polygons as custom > properties in the graphics, and revert to those before doing any size > changes. You may need to account for an offset depending on where the > graphic is displayed on the card, but usually locking the screen is enough > to hide unwanted visible changes when you reset the points. > At the moment, they're crude free-hand drawings from livecode. I expect them to be replaced by a png by someone who can actually draw, or a scan of such a drawing. They are solid, though, and monochromatic. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From dochawk at gmail.com Sat Jan 31 18:03:37 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Sat, 31 Jan 2015 15:03:37 -0800 Subject: Set Script Limits in Standalones In-Reply-To: References: <6688A027-9C3E-4E55-A481-EFE5869456D4@iotecdigital.com> <54C7C47D.3080801@fourthworld.com> <54C7CD36.5040405@LinkIt.Com> Message-ID: On Sat, Jan 31, 2015 at 2:52 PM, Peter M. Brigham wrote: > Sorry, but as an MD I have to protest this. I may not have contributed to > knowledge in the sense of having published original research, but i'm > confident that I have contributed to the well-being of thousands of > patients. That said, I don't take offense at being called "Mr." outside of > the office. > I'm not disputing the value of MDs, but the meaning of "doctor" for a couple of thousand of years before the creation of the modern MD. The modern MD was designed (or named) specifically to "borrow" the prestige/reputation/non-killing-patients of the doctors of the university, at a time when general medicine was more likely to hurt than help (I think crossover to net good was 1920, give or take, in the western world). It was a wonderful change, and a major factor in modern prosperity. But an MD isn't what the word doctor (latin for "teach") has meant and been used as--one who has both acquired significant knowledge in a field, and contributed to that knowledge (and neither does a J.D., which I also have). I just get a kick out of it every time I hear the pompous "I'm a real doctor" from an MD dismissing, well, real doctors :) I don't mind the title around, but the chutzpah in dismissing the real thing is amusing. (I understand, however, that there was an older MD that was comparable to the PhD and DD, but that's not who most folks were treated by . . .) -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From dunbarx at aol.com Sat Jan 31 22:41:11 2015 From: dunbarx at aol.com (dunbarx at aol.com) Date: Sat, 31 Jan 2015 22:41:11 -0500 Subject: Where did the handlers for my menukeys go??? In-Reply-To: References: Message-ID: <8D20BE80E2274A4-1C3C-807E@webmail-va087.sysops.aol.com> Richard. Do you use the "Find and Replace..." tool? If you search for "menuPick" (just a thought) you will likely find the handlers for the buttons in your menu group. Or you can edit the scripts of any and all groups, one of which will be your menu button group. Just a thought. Craig -----Original Message----- From: Dr. Hawkins To: How to use LiveCode Sent: Sat, Jan 31, 2015 4:01 pm Subject: Where did the handlers for my menukeys go??? Sometime, over two years ago, I set up some key accelerators for a card (or maybe the substack). They still work--and I can't find them. I assume that I used the menubuilder. These drivers send a mouseup to an associated button Can anyone tell me where to hunt for them? -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode