From richmondmathewson at gmail.com Fri Jan 1 08:57:40 2016 From: richmondmathewson at gmail.com (Richmond) Date: Fri, 1 Jan 2016 15:57:40 +0200 Subject: [OT] Gnome MATE and Livecode Message-ID: <568685D4.6030009@gmail.com> Having inherited [for the second time] a "horrible old laptop" because I bought my wife a MacBook Air for Christmas, I decided to scrap the version of Ubuntu Studio my wife had had on there, and install Ubuntu MATE 15.10 32 bit as am getting a wee bit bored with xfce. HOWEVER, when I tried to set up launchers for LiveCode 8 Dp 12, 7.1.1 and 6.7.8 on the bottom panel I ran into problems. While it is relatively easy to set up the launchers; they won't work. I have marked this as 'OT' as am sure it is a problem with the MATE panel and NOT with Livecode. Richmond. From richmondmathewson at gmail.com Fri Jan 1 12:10:18 2016 From: richmondmathewson at gmail.com (Richmond) Date: Fri, 1 Jan 2016 19:10:18 +0200 Subject: [OT] SVG Message-ID: <5686B2FA.1080101@gmail.com> I'm not sure what to make of this; better qualified folk such as Alejandro may: http://blog.siliconpublishing.com/2015/12/the-fall-and-rise-of-svg/ Richmond. From prothero at earthednet.org Fri Jan 1 12:50:57 2016 From: prothero at earthednet.org (William Prothero) Date: Fri, 1 Jan 2016 09:50:57 -0800 Subject: Weird crash when stack is in use Message-ID: Folks: First, Happy New Year. I?ve gotten obsessed with a very odd crash that?s stopping my progress, so here it is. I am on Mac El-Capitan 10.11.2 and Livecode 7.1. I have a splash stack that launches my main stack, which has several substacks. When I load my main stack, I ?start using ? all of the library stacks that I need. There is a handler in one of the library stacks that calls a script in the main stack?s stack script. This script (in the library stack) can?t find the handler in the stack that calls it. So, I tried to ?start using ? the main stack. This crashes livecode. Is it bad practice to ?start using ? the main application stack? When I look at ?the target?, I get the reference to the button where the action was initiated, but the IDE says that it can?t find the handler. Here?s the sequence: --Launch splash app ?button click on splash app opens the main app ?script in cd 1 initializes the main app and ?starts using? the library apps and substacks Resut: If, in the initialization routine (in the card script of card 1 of the main app), I do: put the name of this stack into sName if not (the stacksinuse contains sName) then start using sName end if ?result: livecode crashes. No error messages, just disappears. If I don?t put the above statements in the initialization routine, LC does not crash, but then handlers in one of the library stacks can?t find the function handler in the main app stack script. ?? This is quite frustrating and caps of a day of tedious coding that I thought was finished, until this problem surfaced. Livecode crashes without any dialog, error report. It just disappears. Any suggestions would be much appreciated. Best, Bill William Prothero, Ph.D. University of California, Santa Barbara, Emeritus prothero at earthednet.org From brahma at hindu.org Fri Jan 1 15:10:36 2016 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Fri, 1 Jan 2016 20:10:36 +0000 Subject: One Rect For All specificaiton In-Reply-To: References: <565536EB.7040206@hindu.org> <57ACF118-9494-4ECD-A413-E7475115BBE6@gmail.com> <5655FEAF.3070209@hyperactivesw.com> <1413C89C-2017-4376-89E4-3077B14DFB92@gmail.com> <5656ADF6.40608@hindu.org> Message-ID: @Colin: Update on this thread: I have tried this exactly as you have defined it using the numbers you gave. It awesome on preopenstack set the fullscreenmode of this stack to ?noBorder? end preopenstack works perfectly! Caveat: if developing on iPhone 16X9 at 14X 9 canvas (card rect) the bottom tab bar will ?ride up? on the iPad. I guess we have to implement for both the top and bottom bars, dynamic positioning. Right? ----------- I have transferred these dimension to inches/decimal and created a template on US Letter for our designers and animators and script writers who are creating story boards. This will give them the template they need to work in?So this is a big step forward BUT: and this is an old caveat in our design world, even for print media: I have set my stack to 1400 x 900 as you suggested? created and ?internal? graphic at 1200 X 788 centered on the screen and then went to work building everything in side that area with a lovely stack background image. Save this as standalone and then run on my iPhone 6 + and and iPad.. wow? works perfectly. BUT I created buttons that are way too small. also that 1400X 900 pixel stack doesn?t fit easily even on my 15? Macbook Pro. So working on a 30? cinema display has advantages for dealing with multiple apps, but it will always blindside us with design. I have this problem already with some of the team here developing things in Illustrator and they are working way, way to big on their screens and when we go to print (e.g. some designer working in a 4? space in illustrator on something that will have to be printed on a business card) or to mobile, we frequently lose time (and the associated gorilla dust in meetings) when that thing is simply way, way too small for production. My first instinct it so scrap the idea of 1400 X 900 stacks as a design environment and translate this to the *real* iPhone 6+ rect and then chop off the stack by X number of pixels left and right to get from 16 X 9 to 14 X ( OR I can translate Googles and Apples mandated spec (e.g. icons on the bottom tab bar are ideally 40 px tall) to larger sizes and continue to work in a bigger card rect. So, I guess what I?m asking here is, for those who are doing a lot of mobile? how do you handle this problem/challenge? What size space do you like to work in and if you do, and if you have already translated the mobile device spec sizes for the status/Nav/Tab bars? to your larger size? can you share this here? and do you like fullScreenmode exactFit? or NoBorder? On December 14, 2015 at 6:07:41 AM, Brahmanathaswami (brahma at hindu.org) wrote: Here are some real numbers: The complete card could be 1400x900. On a 16:9 device you would see all of the 1400 width, and 788 pixels of the height. On a 4:3 device you would see all of the 900 height, and 1200 of the width. So, you would have the important things within the central 1200 of the width, and the central 788 of the height. You can now be sure that the important content will appear on all devices between 16:9 and 4:3. The things that are outside of that 1200x788 area will spill off the edges of the device screen. BTW, you don?t have to take care of every device size, LiveCode will scale the above example size to whatever size the device is. So just pick a card size that is comfortable to work on. About splash screens, with the requirement to include iPhone6, 6 Plus, and maybe even iPad Pro screens, a detailed splash screen could take as much as 20 MB of the app size. What I?ve started to do is use a flat color, that matches the background color of the title screen. Doing that means that the 9 different splash screens take a total of under 200k of space. If that?s not interesting enough try just having a flat screen with your logo in middle, that shouldn?t be too bad file size wise. Svasti Astu! Be Well Brahmanathaswami www.himalayanacademy.com Get the Gurudeva.app here: http://www.himalayanacademy.com/apps/gurudeva Svasti Astu! Be Well Brahmanathaswami www.himalayanacademy.com Get the Gurudeva.app here: http://www.himalayanacademy.com/apps/gurudeva On November 26, 2015 at 4:32:30 AM, Colin Holgate (colinholgate at gmail.com) wrote: Here are some real numbers: The complete card could be 1400x900. On a 16:9 device you would see all of the 1400 width, and 788 pixels of the height. On a 4:3 device you would see all of the 900 height, and 1200 of the width. So, you would have the important things within the central 1200 of the width, and the central 788 of the height. You can now be sure that the important content will appear on all devices between 16:9 and 4:3. The things that are outside of that 1200x788 area will spill off the edges of the device screen. From prothero at earthednet.org Fri Jan 1 22:50:55 2016 From: prothero at earthednet.org (William Prothero) Date: Fri, 1 Jan 2016 19:50:55 -0800 Subject: Weird crash when stack is in use In-Reply-To: References: Message-ID: <316D1C67-4532-4075-954D-963C929BE5A3@earthednet.org> FYI, I made a test stack where the destination stack?s only script was the ?start using? script referred to below. Livecode did not crash. I don?t know why it crashes my app, but I will investigate further to try and pin down the source, over the next day or so. Bill > On Jan 1, 2016, at 9:50 AM, William Prothero wrote: > > Folks: > First, Happy New Year. I?ve gotten obsessed with a very odd crash that?s stopping my progress, so here it is. > > I am on Mac El-Capitan 10.11.2 and Livecode 7.1. I have a splash stack that launches my main stack, which has several substacks. When I load my main stack, I ?start using ? all of the library stacks that I need. There is a handler in one of the library stacks that calls a script in the main stack?s stack script. This script (in the library stack) can?t find the handler in the stack that calls it. So, I tried to ?start using ? the main stack. This crashes livecode. > > Is it bad practice to ?start using ? the main application stack? When I look at ?the target?, I get the reference to the button where the action was initiated, but the IDE says that it can?t find the handler. > > Here?s the sequence: > > --Launch splash app > > ?button click on splash app opens the main app > > ?script in cd 1 initializes the main app and ?starts using? the library apps and substacks > > Resut: If, in the initialization routine (in the card script of card 1 of the main app), I do: > > put the name of this stack into sName > if not (the stacksinuse contains sName) then > start using sName > end if > > ?result: livecode crashes. No error messages, just disappears. > > If I don?t put the above statements in the initialization routine, LC does not crash, but then > handlers in one of the library stacks can?t find the function handler in the main app stack script. > > ?? This is quite frustrating and caps of a day of tedious coding that I thought was finished, until this problem surfaced. Livecode crashes without any dialog, error report. It just disappears. > > Any suggestions would be much appreciated. > Best, > Bill > > William Prothero, Ph.D. > University of California, Santa Barbara, Emeritus > prothero at 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 Sat Jan 2 05:15:48 2016 From: scott at tactilemedia.com (Scott Rossi) Date: Sat, 02 Jan 2016 02:15:48 -0800 Subject: One Rect For All specificaiton In-Reply-To: References: <565536EB.7040206@hindu.org> <57ACF118-9494-4ECD-A413-E7475115BBE6@gmail.com> <5655FEAF.3070209@hyperactivesw.com> <1413C89C-2017-4376-89E4-3077B14DFB92@gmail.com> <5656ADF6.40608@hindu.org> Message-ID: Hi Bramanatha: It sounds like you're working at actual hi-res size when you may not need to. You should be able to lay out a stack at half your hi-res dimensions, and the stack will auto-scale to fit the device. The only upscaling aspect you really need to be concerned about is images. You can create sets of images in multiple resolutions and rely on LC's density mapping feature to display the appropriate image, or you might be able to use single hi-res images, and show them scaled down on standard res screens (this might depend on the image content). But for all built-in controls, text and graphics, LC will do the scaling for you. As an example, I always create iOS stacks based on the "natural" size (the LiveCode folks also call it "logical" size) of the device. iPhone 5 is 320 x 568 or iPhone 6 is 375 x 667. When you lay out your stack using either of these dimensions (note they are essentially proportional), the stack displays as expected on the device. I know there are a few folks out there who work at actual hi-res size, and I understand they're constantly shifting their stacks around on the screen due to the limitations of most displays (especially with portrait-oriented layouts). For myself, I'd rather be able to see the entire layout at once, at near the same size it's going to appear when held in-hand on a device, and let LiveCode take care of the scaling. A great tip I learned from a colleague: When working at natural size and you want to zoom into a stack to make some fine adjustment, simply set the scaleFactor of the stack to 2, make the adjustment, and return the scaleFactor back to 1 when finished. YMMV. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 1/1/16, 12:10 PM, "use-livecode on behalf of Sannyasin Brahmanathaswami" wrote: >I created buttons that are way too small. also that 1400X 900 pixel stack >doesn?t fit easily even on my 15? Macbook Pro. So working on a 30? cinema >display has advantages for dealing with multiple apps, but it will always >blindside us with design. I have this problem already with some of the >team here developing things in Illustrator and they are working way, way >to big on their screens and when we go to print (e.g. some designer >working in a 4? space in illustrator on something that will have to be >printed on a business card) or to mobile, we frequently lose time (and >the associated gorilla dust in meetings) when that thing is simply way, >way too small for production. > >My first instinct it so scrap the idea of 1400 X 900 stacks as a design >environment and translate this to the *real* iPhone 6+ rect and then chop >off the stack by X number of pixels left and right to get from 16 X 9 to >14 X ( > >OR I can translate Googles and Apples mandated spec (e.g. icons on the >bottom tab bar are ideally 40 px tall) to larger sizes and continue to >work in a bigger card rect. > >So, I guess what I?m asking here is, for those who are doing a lot of >mobile? how do you handle this problem/challenge? What size space do you >like to work in and if you do, and if you have already translated the >mobile device spec sizes for the status/Nav/Tab bars? to your larger >size? can you share this here? From pmbrig at gmail.com Sat Jan 2 07:52:13 2016 From: pmbrig at gmail.com (Peter M. Brigham) Date: Sat, 2 Jan 2016 07:52:13 -0500 Subject: Weird crash when stack is in use In-Reply-To: References: Message-ID: Don't know about your crashing problem, but the reason the library stack script can't find the function handler in the main stack is that it's in the wrong place in the message path. From the LC dictionary: The start using command places a stack's script into the message path *after* the current stack and before any objects in the backScripts. [emphasis added] You could consider calling the function using the value() function -- look it up. put value(myFunction(x,y,z), stack "myMainStack") into functionOutput -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig On Jan 1, 2016, at 12:50 PM, William Prothero wrote: > Folks: > First, Happy New Year. I?ve gotten obsessed with a very odd crash that?s stopping my progress, so here it is. > > I am on Mac El-Capitan 10.11.2 and Livecode 7.1. I have a splash stack that launches my main stack, which has several substacks. When I load my main stack, I ?start using ? all of the library stacks that I need. There is a handler in one of the library stacks that calls a script in the main stack?s stack script. This script (in the library stack) can?t find the handler in the stack that calls it. So, I tried to ?start using ? the main stack. This crashes livecode. > > Is it bad practice to ?start using ? the main application stack? When I look at ?the target?, I get the reference to the button where the action was initiated, but the IDE says that it can?t find the handler. > > Here?s the sequence: > > --Launch splash app > > ?button click on splash app opens the main app > > ?script in cd 1 initializes the main app and ?starts using? the library apps and substacks > > Resut: If, in the initialization routine (in the card script of card 1 of the main app), I do: > > put the name of this stack into sName > if not (the stacksinuse contains sName) then > start using sName > end if > > ?result: livecode crashes. No error messages, just disappears. > > If I don?t put the above statements in the initialization routine, LC does not crash, but then > handlers in one of the library stacks can?t find the function handler in the main app stack script. > > ?? This is quite frustrating and caps of a day of tedious coding that I thought was finished, until this problem surfaced. Livecode crashes without any dialog, error report. It just disappears. > > Any suggestions would be much appreciated. > Best, > Bill > > William Prothero, Ph.D. > University of California, Santa Barbara, Emeritus > prothero at 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 ambassador at fourthworld.com Sat Jan 2 08:53:34 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 2 Jan 2016 05:53:34 -0800 Subject: Dictionary alternatives Message-ID: <5687D65E.9070504@fourthworld.com> While the Dictionary is being repaired for v8.0dp13, I was hoping to install an alternative from the community, but alas I can't find one. I haven't maintained the one I'd made for MetaCard in years, and BVG Docu appears inaccessible (and I don't even know if it's been updated for v7 or v8): Are there any other alternative Dictionary resources in the community, other than the web-based mirror at ? (I'd prefer something that can be accessible even without an Internet connection) TIA - -- 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 2 13:13:48 2016 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 2 Jan 2016 20:13:48 +0200 Subject: Dictionary alternatives In-Reply-To: <5687D65E.9070504@fourthworld.com> References: <5687D65E.9070504@fourthworld.com> Message-ID: <5688135C.6090000@gmail.com> On 02/01/16 15:53, Richard Gaskin wrote: > While the Dictionary is being repaired for v8.0dp13, I was hoping to > install an alternative from the community, but alas I can't find one. > > I haven't maintained the one I'd made for MetaCard in years, and BVG > Docu appears inaccessible (and I don't even know if it's been updated > for v7 or v8): > > > Are there any other alternative Dictionary resources in the community, > other than the web-based mirror at > ? (I'd prefer something that can > be accessible even without an Internet connection) > > TIA - > Well, at the risk of sounding even more cretinous than usual . . . You could run LC 7.1.1. side-by-side with LC 8 and use the dictionary there. Richmond. From richmondmathewson at gmail.com Sat Jan 2 13:18:05 2016 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 2 Jan 2016 20:18:05 +0200 Subject: Dictionary alternatives In-Reply-To: <5687D65E.9070504@fourthworld.com> References: <5687D65E.9070504@fourthworld.com> Message-ID: <5688145D.7070103@gmail.com> On 02/01/16 15:53, Richard Gaskin wrote: > While the Dictionary is being repaired for v8.0dp13, I was hoping to > install an alternative from the community, but alas I can't find one. > > I haven't maintained the one I'd made for MetaCard in years, and BVG > Docu appears inaccessible (and I don't even know if it's been updated > for v7 or v8): > > > Are there any other alternative Dictionary resources in the community, > other than the web-based mirror at > ? (I'd prefer something that can > be accessible even without an Internet connection) > > TIA - > With apologies to Bjoernke here are bvg_docu versions 1.8 and 2.0 that I found lurking on one of my hard drives: https://www.dropbox.com/sh/bdvltvtqh5sndmd/AAAPsT25duA-ld5arHpslURaa?dl=0 Richmond. From ambassador at fourthworld.com Sat Jan 2 14:25:01 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 2 Jan 2016 11:25:01 -0800 Subject: [ANN] SoCal LC Meetup: Thurs, Jan 7 Message-ID: <5688240D.5070902@fourthworld.com> The SoCal LiveCode User Groups kicks off the new year with our next meeting on Thursday, January 7 in Pasadena - details in the forum: http://forums.livecode.com/viewtopic.php?f=50&t=26201 -- 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 ali.lloyd at livecode.com Sat Jan 2 15:34:11 2016 From: ali.lloyd at livecode.com (Ali Lloyd) Date: Sat, 02 Jan 2016 20:34:11 +0000 Subject: Dictionary alternatives In-Reply-To: <5688145D.7070103@gmail.com> References: <5687D65E.9070504@fourthworld.com> <5688145D.7070103@gmail.com> Message-ID: You could open the dictionary html file in a browser. That might not work in DP 12 but should in DP 11. On Sat, 2 Jan 2016 at 18:18, Richmond wrote: > On 02/01/16 15:53, Richard Gaskin wrote: > > While the Dictionary is being repaired for v8.0dp13, I was hoping to > > install an alternative from the community, but alas I can't find one. > > > > I haven't maintained the one I'd made for MetaCard in years, and BVG > > Docu appears inaccessible (and I don't even know if it's been updated > > for v7 or v8): > > > > > > Are there any other alternative Dictionary resources in the community, > > other than the web-based mirror at > > ? (I'd prefer something that can > > be accessible even without an Internet connection) > > > > TIA - > > > > With apologies to Bjoernke here are bvg_docu versions 1.8 and 2.0 that I > found lurking > on one of my hard drives: > > https://www.dropbox.com/sh/bdvltvtqh5sndmd/AAAPsT25duA-ld5arHpslURaa?dl=0 > > 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 2 16:16:48 2016 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 2 Jan 2016 23:16:48 +0200 Subject: Dictionary alternatives In-Reply-To: <5687D65E.9070504@fourthworld.com> References: <5687D65E.9070504@fourthworld.com> Message-ID: <56883E40.2050402@gmail.com> On 02/01/16 15:53, Richard Gaskin wrote: > While the Dictionary is being repaired for v8.0dp13, I was hoping to > install an alternative from the community, but alas I can't find one. > > I haven't maintained the one I'd made for MetaCard in years, and BVG > Docu appears inaccessible (and I don't even know if it's been updated > for v7 or v8): > > > Are there any other alternative Dictionary resources in the community, > other than the web-based mirror at > ? (I'd prefer something that can > be accessible even without an Internet connection) > > TIA - > Here's a "quick 'N' dirty" that works as long as you have an internet connexion. http://forums.livecode.com/viewtopic.php?f=6&t=26203 Richmond. From bonnmike at gmail.com Sat Jan 2 16:17:17 2016 From: bonnmike at gmail.com (Mike Bonner) Date: Sat, 2 Jan 2016 14:17:17 -0700 Subject: Dictionary alternatives In-Reply-To: References: <5687D65E.9070504@fourthworld.com> <5688145D.7070103@gmail.com> Message-ID: Isn't there an api.sqlite file that has all the info in it? Shouldn't be too bad to roll your own reader. On Sat, Jan 2, 2016 at 1:34 PM, Ali Lloyd wrote: > You could open the dictionary html file in a browser. That might not work > in DP 12 but should in DP 11. > > On Sat, 2 Jan 2016 at 18:18, Richmond wrote: > > > On 02/01/16 15:53, Richard Gaskin wrote: > > > While the Dictionary is being repaired for v8.0dp13, I was hoping to > > > install an alternative from the community, but alas I can't find one. > > > > > > I haven't maintained the one I'd made for MetaCard in years, and BVG > > > Docu appears inaccessible (and I don't even know if it's been updated > > > for v7 or v8): > > > > > > > > > Are there any other alternative Dictionary resources in the community, > > > other than the web-based mirror at > > > ? (I'd prefer something that can > > > be accessible even without an Internet connection) > > > > > > TIA - > > > > > > > With apologies to Bjoernke here are bvg_docu versions 1.8 and 2.0 that I > > found lurking > > on one of my hard drives: > > > > > https://www.dropbox.com/sh/bdvltvtqh5sndmd/AAAPsT25duA-ld5arHpslURaa?dl=0 > > > > 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 bonnmike at gmail.com Sat Jan 2 17:19:00 2016 From: bonnmike at gmail.com (Mike Bonner) Date: Sat, 2 Jan 2016 15:19:00 -0700 Subject: Dictionary alternatives In-Reply-To: <56883E40.2050402@gmail.com> References: <5687D65E.9070504@fourthworld.com> <56883E40.2050402@gmail.com> Message-ID: So, can anyone guide me as far as decoding the actual entry data from the api.sqlite file? I'm close to having a basic dictionary browser done, but am clueless as far as decoding column "entry_data" from table "dictionary_data" The sqlite file is located at.. C:\Program Files (x86)\RunRev\LiveCode Community 8.0 (dp 12)\Documentation\html_viewer\resources\data\api\api.sqlite On Sat, Jan 2, 2016 at 2:16 PM, Richmond wrote: > On 02/01/16 15:53, Richard Gaskin wrote: > >> While the Dictionary is being repaired for v8.0dp13, I was hoping to >> install an alternative from the community, but alas I can't find one. >> >> I haven't maintained the one I'd made for MetaCard in years, and BVG Docu >> appears inaccessible (and I don't even know if it's been updated for v7 or >> v8): >> >> >> Are there any other alternative Dictionary resources in the community, >> other than the web-based mirror at ? >> (I'd prefer something that can be accessible even without an Internet >> connection) >> >> TIA - >> >> > Here's a "quick 'N' dirty" that works as long > as you have an internet connexion. > > http://forums.livecode.com/viewtopic.php?f=6&t=26203 > > 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 Sat Jan 2 17:35:46 2016 From: pete at lcsql.com (Peter Haworth) Date: Sat, 2 Jan 2016 14:35:46 -0800 Subject: Dictionary alternatives In-Reply-To: References: <5687D65E.9070504@fourthworld.com> <56883E40.2050402@gmail.com> Message-ID: Looks like entry_data has a data type of blob so who knows what format it's in. There were a bunch of new functions introduced in DP12 to access various levels of data in the dictionary so might be easier to use those. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Sat, Jan 2, 2016 at 2:19 PM, Mike Bonner wrote: > So, can anyone guide me as far as decoding the actual entry data from the > api.sqlite file? I'm close to having a basic dictionary browser done, but > am clueless as far as decoding column "entry_data" from table > "dictionary_data" > The sqlite file is located at.. > C:\Program Files (x86)\RunRev\LiveCode Community 8.0 (dp > 12)\Documentation\html_viewer\resources\data\api\api.sqlite > > On Sat, Jan 2, 2016 at 2:16 PM, Richmond > wrote: > > > On 02/01/16 15:53, Richard Gaskin wrote: > > > >> While the Dictionary is being repaired for v8.0dp13, I was hoping to > >> install an alternative from the community, but alas I can't find one. > >> > >> I haven't maintained the one I'd made for MetaCard in years, and BVG > Docu > >> appears inaccessible (and I don't even know if it's been updated for v7 > or > >> v8): > >> > >> > >> Are there any other alternative Dictionary resources in the community, > >> other than the web-based mirror at >? > >> (I'd prefer something that can be accessible even without an Internet > >> connection) > >> > >> TIA - > >> > >> > > Here's a "quick 'N' dirty" that works as long > > as you have an internet connexion. > > > > http://forums.livecode.com/viewtopic.php?f=6&t=26203 > > > > 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 bonnmike at gmail.com Sat Jan 2 17:48:56 2016 From: bonnmike at gmail.com (Mike Bonner) Date: Sat, 2 Jan 2016 15:48:56 -0700 Subject: Dictionary alternatives In-Reply-To: References: <5687D65E.9070504@fourthworld.com> <56883E40.2050402@gmail.com> Message-ID: Ok. I'll poke around and see what I can find. Thanks. On Sat, Jan 2, 2016 at 3:35 PM, Peter Haworth wrote: > Looks like entry_data has a data type of blob so who knows what format it's > in. There were a bunch of new functions introduced in DP12 to access > various levels of data in the dictionary so might be easier to use those. > > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin > > On Sat, Jan 2, 2016 at 2:19 PM, Mike Bonner wrote: > > > So, can anyone guide me as far as decoding the actual entry data from the > > api.sqlite file? I'm close to having a basic dictionary browser done, > but > > am clueless as far as decoding column "entry_data" from table > > "dictionary_data" > > The sqlite file is located at.. > > C:\Program Files (x86)\RunRev\LiveCode Community 8.0 (dp > > 12)\Documentation\html_viewer\resources\data\api\api.sqlite > > > > On Sat, Jan 2, 2016 at 2:16 PM, Richmond > > wrote: > > > > > On 02/01/16 15:53, Richard Gaskin wrote: > > > > > >> While the Dictionary is being repaired for v8.0dp13, I was hoping to > > >> install an alternative from the community, but alas I can't find one. > > >> > > >> I haven't maintained the one I'd made for MetaCard in years, and BVG > > Docu > > >> appears inaccessible (and I don't even know if it's been updated for > v7 > > or > > >> v8): > > >> > > >> > > >> Are there any other alternative Dictionary resources in the community, > > >> other than the web-based mirror at < > https://livecode.com/resources/api/ > > >? > > >> (I'd prefer something that can be accessible even without an Internet > > >> connection) > > >> > > >> TIA - > > >> > > >> > > > Here's a "quick 'N' dirty" that works as long > > > as you have an internet connexion. > > > > > > http://forums.livecode.com/viewtopic.php?f=6&t=26203 > > > > > > 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 ali.lloyd at livecode.com Sat Jan 2 18:45:11 2016 From: ali.lloyd at livecode.com (Ali Lloyd) Date: Sat, 02 Jan 2016 23:45:11 +0000 Subject: Dictionary alternatives In-Reply-To: References: <5687D65E.9070504@fourthworld.com> <56883E40.2050402@gmail.com> Message-ID: The entry_data is arrayEncoded - it's keyed by the top-level 'elements' in the dictionary (I.e. Name, Summary, Type, Description etc) but some of those are sub-arrays - for example syntax is a numerical sub-array with all the syntax variants. On Sat, 2 Jan 2016 at 22:48, Mike Bonner wrote: > Ok. I'll poke around and see what I can find. Thanks. > > On Sat, Jan 2, 2016 at 3:35 PM, Peter Haworth wrote: > > > Looks like entry_data has a data type of blob so who knows what format > it's > > in. There were a bunch of new functions introduced in DP12 to access > > various levels of data in the dictionary so might be easier to use those. > > > > Pete > > lcSQL Software > > Home of lcStackBrowser and > > SQLiteAdmin > > > > On Sat, Jan 2, 2016 at 2:19 PM, Mike Bonner wrote: > > > > > So, can anyone guide me as far as decoding the actual entry data from > the > > > api.sqlite file? I'm close to having a basic dictionary browser done, > > but > > > am clueless as far as decoding column "entry_data" from table > > > "dictionary_data" > > > The sqlite file is located at.. > > > C:\Program Files (x86)\RunRev\LiveCode Community 8.0 (dp > > > 12)\Documentation\html_viewer\resources\data\api\api.sqlite > > > > > > On Sat, Jan 2, 2016 at 2:16 PM, Richmond > > > wrote: > > > > > > > On 02/01/16 15:53, Richard Gaskin wrote: > > > > > > > >> While the Dictionary is being repaired for v8.0dp13, I was hoping to > > > >> install an alternative from the community, but alas I can't find > one. > > > >> > > > >> I haven't maintained the one I'd made for MetaCard in years, and BVG > > > Docu > > > >> appears inaccessible (and I don't even know if it's been updated for > > v7 > > > or > > > >> v8): > > > >> > > > >> > > > >> Are there any other alternative Dictionary resources in the > community, > > > >> other than the web-based mirror at < > > https://livecode.com/resources/api/ > > > >? > > > >> (I'd prefer something that can be accessible even without an > Internet > > > >> connection) > > > >> > > > >> TIA - > > > >> > > > >> > > > > Here's a "quick 'N' dirty" that works as long > > > > as you have an internet connexion. > > > > > > > > http://forums.livecode.com/viewtopic.php?f=6&t=26203 > > > > > > > > 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 matthias_livecode_150811 at m-r-d.de Sat Jan 2 18:59:18 2016 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe | M-R-D) Date: Sun, 3 Jan 2016 00:59:18 +0100 Subject: Dictionary alternatives In-Reply-To: <5687D65E.9070504@fourthworld.com> References: <5687D65E.9070504@fourthworld.com> Message-ID: <08D0A57A-D60A-4524-B717-0AF2220DBDA0@m-r-d.de> > > I see an "Internal Server Error? and i see that Bj?rnkes site is on Tio. There was an external attack to Tio some days ago where the content of all index files were overwritten with the text ?Internal Server Error?. The On-Rev support tried to restore the files from an backup, but it seems at least in my and Bj?rnkes case the restore was not successful. I had to restore my sites manually. Maybe other accounts were also not restored. So i am pretty sure that if Bj?rnke will fix his site. I just sent him an email about that. What i don?t understand is, why the support did not inform all customers who have accounts on Tio, so they could check their site and could restore manually. But that?s an other story. Matthias From ambassador at fourthworld.com Sat Jan 2 19:34:18 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 2 Jan 2016 16:34:18 -0800 Subject: Dictionary alternatives In-Reply-To: References: Message-ID: <56886C8A.5050800@fourthworld.com> I appreciate all the good ideas about rolling my own interim fix for this, but perhaps I should clarify my interest: Part of my soon-to-be-release devolution 4.0 toolkit includes the ability to switch between standard IDE components and community-based alternatives. For example, it has a "Browser" button that lets you choose between the Project Browser, App Browser, or Navigator. The one common IDE component I can't find an alternative for is the Dictionary. Many years ago there was the MC Dict, but I stopped maintaining that once I migrated my work to LiveCode v4.6.4. BVG Docu was a very nice alternative, but I'm unsure whether it's still being maintained for v8 forward. With the changes to the structure of the Dictionary content in v8 I would imagine some non-trivial work would be required to rewrite that to import into Docu. So yes, lots of good options for rolling my own. LC is very flexible and a joy to work with, and as well suited for making Dictionary viewers as anything else. But my goal here is simpler: I'm just looking for currently-maintained Dictionary solutions in our community to make sure they're represented as alternatives in devolution once it's released. It would be nice to offer at least one if we have a current one in our community, or more if there are other such projects I'm unfamiliar with. -- 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 Sat Jan 2 20:01:12 2016 From: bonnmike at gmail.com (Mike Bonner) Date: Sat, 2 Jan 2016 18:01:12 -0700 Subject: Dictionary alternatives In-Reply-To: <56886C8A.5050800@fourthworld.com> References: <56886C8A.5050800@fourthworld.com> Message-ID: Thanks Ali. Thats one of the things I tried, but got no keys after arraydecode. I'll go back and see what I did wrong. Appreciate it. Sorry for the tangent richard, alas, now i'm interested in making this work, so i'm off to beat my head against the brick wall again. On Sat, Jan 2, 2016 at 5:34 PM, Richard Gaskin wrote: > I appreciate all the good ideas about rolling my own interim fix for this, > but perhaps I should clarify my interest: > > Part of my soon-to-be-release devolution 4.0 toolkit includes the ability > to switch between standard IDE components and community-based > alternatives. For example, it has a "Browser" button that lets you choose > between the Project Browser, App Browser, or Navigator. > > The one common IDE component I can't find an alternative for is the > Dictionary. Many years ago there was the MC Dict, but I stopped > maintaining that once I migrated my work to LiveCode v4.6.4. > > BVG Docu was a very nice alternative, but I'm unsure whether it's still > being maintained for v8 forward. With the changes to the structure of the > Dictionary content in v8 I would imagine some non-trivial work would be > required to rewrite that to import into Docu. > > So yes, lots of good options for rolling my own. LC is very flexible and > a joy to work with, and as well suited for making Dictionary viewers as > anything else. > > But my goal here is simpler: I'm just looking for currently-maintained > Dictionary solutions in our community to make sure they're represented as > alternatives in devolution once it's released. It would be nice to offer > at least one if we have a current one in our community, or more if there > are other such projects I'm unfamiliar with. > > -- > 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 brahma at hindu.org Sat Jan 2 20:32:56 2016 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sun, 3 Jan 2016 01:32:56 +0000 Subject: One Rect For All specificaiton In-Reply-To: References: <565536EB.7040206@hindu.org> <57ACF118-9494-4ECD-A413-E7475115BBE6@gmail.com> <5655FEAF.3070209@hyperactivesw.com> <1413C89C-2017-4376-89E4-3077B14DFB92@gmail.com> <5656ADF6.40608@hindu.org> Message-ID: Scott: I?m not actually interested in working in hi-res. ON our last project I worked in native size (iphone 6+ ?..736H X 414w) it was enough to learn/know to make all images 1472 X 828 (then we get quality), import those and simple resie them to fit. By on my new LG monitor (huge!) using 14 X 9 as the stack rect (this actually works well with fullscreenmode set to ?No Border?) it was very small? So, I got the idea to just ?double it!? i.e Scale factor 2 DOUBLE UP: CARD/CANVAS SIZE: 644 X 414 == 1288 X 828 SAFE ZONE 1104 X 724 TOPLEFT (x)92,(y)52 bottom nav bar 48 x 2 = 96 now this stack fits beautifully on my macbook pro.. . and is still big enough on the cinema display. 2X work well because you just double the numbers: iOS wants 44 x 44 icons on the bottom tab bar: Just just bring them in at 88 X 88. And Colin ?nailed it? on the safe zone: see this puzzle thing I am working on (for images this time) http://dev.himalayanacademy.com/media/apps/image-puzzles/Image_Puzzles.livecode I have a light blue area in the middle that is the ?safeZone? and I tested on iPhone 6+ and iPad and its perfect. The last project was done as ? set the fullscreenmode of this stack to ?showAll? But there are caveats with ?showAll? ?you get perfect fit in only one direction? so it ?blindsides? you on what is happening. Using the NoBorder seems to be more transparent? We will see. I will try the scalefactor idea.. but working in 2X has some advantages. On January 2, 2016 at 12:16:29 AM, Scott Rossi (scott at tactilemedia.com) wrote: I know there are a few folks out there who work at actual hi-res size, and I understand they're constantly shifting their stacks around on the screen due to the limitations of most displays (especially with portrait-oriented layouts). For myself, I'd rather be able to see the entire layout at once, at near the same size it's going to appear when held in-hand on a device, and let LiveCode take care of the scaling. A great tip I learned from a colleague: When working at natural size and you want to zoom into a stack to make some fine adjustment, simply set the scaleFactor of the stack to 2, make the adjustment, and return the scaleFactor back to 1 when finished. From tkuypers at telenet.be Sun Jan 3 05:44:48 2016 From: tkuypers at telenet.be (tkuypers at telenet.be) Date: Sun, 3 Jan 2016 11:44:48 +0100 Subject: LiveCode Mac, importing images from iPhone Message-ID: Hi, I?m building an app running on a Mac to manage a large amount of products in a store. It searches in a database using a barcode reader, add product info, pricing, remarks, stock, etc. to a database. But for the product image I would like to be able to take a picture on my iPhone and place it into the productfiche automatically. When I take a picture, it automatically shows up in Photos, when I do this in Pages or KeyNote, I select ?Photos? from the ?media? sidebar and all my pics from my iPhone are visible. But when I try to do this from within LC (7.1.1 or 8.0dp12) nothing happens. Is there something I need to setup on the Mac to make these visible, or is this some nice OSX feature which is not supported by LIveCode? Met vriendelijke groeten, Warm Regards, Ton Kuypers +32 (0) 477 739 530 Steenweg op Leopoldsburg 100 ? B-2490 ? Balen ? Belgium www.publishingtools4u.com From tore.nilsen at me.com Sun Jan 3 07:30:51 2016 From: tore.nilsen at me.com (Tore Nilsen) Date: Sun, 03 Jan 2016 13:30:51 +0100 Subject: LiveCode Mac, importing images from iPhone In-Reply-To: References: Message-ID: The ability to access different kinds of media from Pages, Keynote etc. is an OSX feature that is not implemented in LiveCode. Since images are stored in a library that is a bundle (much like an application on OSX) there is no simple way of getting these files into LiveCode either, as far as I know. Applications like Pages etc. get their information from the associated databases, and there may be ways to access these. You can find these pictures manually by selecting the library in Finder and choose ?Show Package Contents? when right clicking the library. You then choose the folder ?Masters" and navigate to the folder for the appropriate year (2016 if it was today) then the folder for the appropriate month, thereafter the folder for the appropriate date, and finally the folder that contains your last import. It is easier to open your the ?Photos? application and export your images to a folder you have chosen yourself. You can then import these images into LiveCode from this folder. Another alternative is to share/export the images from the iPhone to a folder where they can be accessed from LiveCode. You may use Dropbox for this, as you can use ?answer file" to access files in the Dropbox-folder on the Mac. Best of luck Tore Nilsen > 3. jan. 2016 kl. 11.44 skrev tkuypers at telenet.be: > > Hi, > > I?m building an app running on a Mac to manage a large amount of products in a store. > It searches in a database using a barcode reader, add product info, pricing, remarks, stock, etc. to a database. > > But for the product image I would like to be able to take a picture on my iPhone and place it into the productfiche automatically. > When I take a picture, it automatically shows up in Photos, when I do this in Pages or KeyNote, I select ?Photos? from the ?media? sidebar and all my pics from my iPhone are visible. > > But when I try to do this from within LC (7.1.1 or 8.0dp12) nothing happens. > > Is there something I need to setup on the Mac to make these visible, or is this some nice OSX feature which is not supported by LIveCode? > > > Met vriendelijke groeten, > Warm Regards, > > > > Ton Kuypers > +32 (0) 477 739 530 > > Steenweg op Leopoldsburg 100 ? B-2490 ? Balen ? Belgium > www.publishingtools4u.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 Sun Jan 3 11:12:57 2016 From: pete at lcsql.com (Peter Haworth) Date: Sun, 3 Jan 2016 08:12:57 -0800 Subject: Dictionary alternatives In-Reply-To: References: <56886C8A.5050800@fourthworld.com> Message-ID: I have a really simple one using the new dictionary access functions in DP12. It works fine for the Livecode Script entries but the functions that return the Livecode Builder and Extensions dictionary info are broken (QCC report added). Need to add a generic search function. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Sat, Jan 2, 2016 at 5:01 PM, Mike Bonner wrote: > Thanks Ali. Thats one of the things I tried, but got no keys after > arraydecode. I'll go back and see what I did wrong. Appreciate it. > > Sorry for the tangent richard, alas, now i'm interested in making this > work, so i'm off to beat my head against the brick wall again. > > On Sat, Jan 2, 2016 at 5:34 PM, Richard Gaskin > > wrote: > > > I appreciate all the good ideas about rolling my own interim fix for > this, > > but perhaps I should clarify my interest: > > > > Part of my soon-to-be-release devolution 4.0 toolkit includes the ability > > to switch between standard IDE components and community-based > > alternatives. For example, it has a "Browser" button that lets you > choose > > between the Project Browser, App Browser, or Navigator. > > > > The one common IDE component I can't find an alternative for is the > > Dictionary. Many years ago there was the MC Dict, but I stopped > > maintaining that once I migrated my work to LiveCode v4.6.4. > > > > BVG Docu was a very nice alternative, but I'm unsure whether it's still > > being maintained for v8 forward. With the changes to the structure of > the > > Dictionary content in v8 I would imagine some non-trivial work would be > > required to rewrite that to import into Docu. > > > > So yes, lots of good options for rolling my own. LC is very flexible and > > a joy to work with, and as well suited for making Dictionary viewers as > > anything else. > > > > But my goal here is simpler: I'm just looking for currently-maintained > > Dictionary solutions in our community to make sure they're represented as > > alternatives in devolution once it's released. It would be nice to offer > > at least one if we have a current one in our community, or more if there > > are other such projects I'm unfamiliar with. > > > > -- > > 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 colinholgate at gmail.com Sun Jan 3 11:32:33 2016 From: colinholgate at gmail.com (Colin Holgate) Date: Sun, 3 Jan 2016 11:32:33 -0500 Subject: One Rect For All specificaiton In-Reply-To: References: <565536EB.7040206@hindu.org> <57ACF118-9494-4ECD-A413-E7475115BBE6@gmail.com> <5655FEAF.3070209@hyperactivesw.com> <1413C89C-2017-4376-89E4-3077B14DFB92@gmail.com> <5656ADF6.40608@hindu.org> Message-ID: A key difference between showAll and noBorder is that with noBorder all of the content you will ever see has to lie within the card area. With showAll only the content that everyone will see is in the card area, there remember is off the edges of the card, and will get revealed to users with either wider or taller devices. Almost all of the things I?ve done have been showAll, where either it?s a book like experience, where I want to be sure everyone sees the full height of the page (and there is extra sideline content that will appear), or it?s a game, where a bit more ground and sky appears on taller devices. The one time I did use noBorder it was for a game that had interesting items in all directions, and so I used the 14:9 trick to compromise between 16:9 and 4:3 screens. In terms of working on a card, showAll would have the advantage of taking up less screen space. You could use the 1024x768 iPad preset and then have extra content that extends out to 171 pixels either side of the card, that you don?t normally se while working on the stack. I did come across a case recently where extra tools were appearing on an Android screen, which effectively makes it even wider than 16:9. Taking the background image out further would solve that. noBorder wouldn?t have the same issue, but you would lose a bit more off the top and bottom of the area. As an aside, 1400x900 is not hi res, it?s less than the non-Retina height of iPad Pro, and only 40% the area of regular iPad Retina. Still, you don?t have to use 1400x900, any 14:9 ratio would work, assuming you have LiveCode set to also do full screen. From brahma at hindu.org Sun Jan 3 23:18:28 2016 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Mon, 4 Jan 2016 04:18:28 +0000 Subject: One Rect For All specificaiton In-Reply-To: References: <565536EB.7040206@hindu.org> <57ACF118-9494-4ECD-A413-E7475115BBE6@gmail.com> <5655FEAF.3070209@hyperactivesw.com> <1413C89C-2017-4376-89E4-3077B14DFB92@gmail.com> <5656ADF6.40608@hindu.org> Message-ID: HA @ colin: ?Almost all of the things I?ve done have been ?showAll? " and here I was thinking you were recommending ?noBorder? as the optimum development strategy. But the whole exercise is still very useful. I think it is still the case that if you want to have someone (and need to provide specs and instructions) doing illustrations / or story boards for you?regardless of the LiveCode card size one choses to working?we *still* need to use ? for instructions: 1400 X 900 (as a ratio on paper, it could be bigger in inches decimal) as the ?you must fill this canvas wall to wall? with 1200 X 788 (as a ratio, on paper it wouldbe an area ?inside? the canvas) as the ?Be careful that all your important elements fall inside this ?safeZone?. My current experiment in ?noBorder? has the useful result that I can actually visualize the entire canvas on the card. Whereas with ?showAll? if you work in iPhone 6+ (16 X9) then you can?t tell what is ?lost? on the iPad and you can also get yourself in trouble by adding elements top and bottom (or left and right) that will not appear on the iPad. Since we are talking about 2D animation with illustration rich background content? it?s not something we can ?fudge? at all. But?with if you create a set of bottom tab controls for a landscape app in iPhone 6+(16 X9) and place these in the ?safe zone? then use ?no border? they will float above the bottom on the iPad (in landscape) where as if you build those to be at the bottom of the screen/card, ?showAll? will be sure to place them there on iPad? at least I think? will have to test. Colin wrote: "You could use the 1024x768 iPad preset and then have extra content that extends out to 171 pixels either side of the card, that you don?t normally se while working on the stack.? But then wouldn?t you have the issue of losing the top and bottom if you run the same app in iPhone 6+ landscape? So, now I?m back to choice paralysis on which way to go. I did work out the 14 X 9 and 1200 X 788 with a young designer here and we transferred this to US Letter and made a template for him to work in storyboards into? and it seems to work pretty well. I will have to import his work into a 16 X 9 stack and try ?showAll? and see what happens. BR On January 3, 2016 at 6:32:50 AM, Colin Holgate (colinholgate at gmail.com) wrote: A key difference between showAll and noBorder is that with noBorder all of the content you will ever see has to lie within the card area. With showAll only the content that everyone will see is in the card area, there remember is off the edges of the card, and will get revealed to users with either wider or taller devices. Almost all of the things I?ve done have been showAll, where either it?s a book like experience, where I want to be sure everyone sees the full height of the page (and there is extra sideline content that will appear), or it?s a game, where a bit more ground and sky appears on taller devices. The one time I did use noBorder it was for a game that had interesting items in all directions, and so I used the 14:9 trick to compromise between 16:9 and 4:3 screens. From peter.brett at livecode.com Mon Jan 4 06:39:47 2016 From: peter.brett at livecode.com (Peter TB Brett) Date: Mon, 4 Jan 2016 11:39:47 +0000 Subject: Charset problems with .lc web page In-Reply-To: <567BA4E7.6060502@tkf.att.ne.jp> References: <567BA4E7.6060502@tkf.att.ne.jp> Message-ID: <568A5A03.3080606@livecode.com> On 24/12/2015 07:55, Tim Selander wrote: > Dear list, > > I'm having trouble making a .lc web pages correctly show the charset. > > I have two test files: > http://www.pba.on-rev.com/5_today.lc > http://www.pba.on-rev.com/5_today.irev > > They are identical except for the .lc/.irev file extensions, and also > the and tags in the html. > > The .irev file correctly shows Japanese UTF8, the .lc file does not. > > Anyone else having problems with this? Can .lc files not handle charset > correctly? Hi Tim, I think that if you put a comment like: -- encoding: utf8 in the first line of the .lc file (or the second line if you have a shebang), the server engine will treat the .lc file as UTF-8 text rather than native text. On the other hand, that solution might not work except in LiveCode 6.7 or later. I'm not sure! Peter -- Dr Peter Brett LiveCode Open Source Team LiveCode on reddit: https://reddit.com/r/livecode From peter.brett at livecode.com Mon Jan 4 07:01:24 2016 From: peter.brett at livecode.com (Peter TB Brett) Date: Mon, 4 Jan 2016 12:01:24 +0000 Subject: [ANN] This Week in LiveCode 14 Message-ID: <568A5F14.2000503@livecode.com> Hi all, Happy New Year! Read about new developments in LiveCode open source and the open source community in today's edition of the "This Week in LiveCode" newsletter! Read issue #14 here: https://goo.gl/S5Gn7r This is a weekly newsletter about LiveCode, focussing on what's been going on in and around the open source project. New issues will be released weekly on Mondays. We have a dedicated mailing list that will deliver each issue directly to you e-mail, so you don't miss any! If you have anything you'd like mentioned (a project, a discussion somewhere, an upcoming event) then please get in touch. Peter -- Dr Peter Brett LiveCode Open Source Team LiveCode on reddit: https://reddit.com/r/livecode From index at kenjikojima.com Mon Jan 4 07:06:28 2016 From: index at kenjikojima.com (Kenji Kojima) Date: Mon, 4 Jan 2016 07:06:28 -0500 Subject: Charset problems with .lc web page In-Reply-To: <568A5A03.3080606@livecode.com> References: <567BA4E7.6060502@tkf.att.ne.jp> <568A5A03.3080606@livecode.com> Message-ID: Tim, > > The .irev file correctly shows Japanese UTF8, the .lc file does not. I wrote about it in Japanese. http://kenjikojima.com/basic_iRev/main/rev11.html http://kenjikojima.com/basic_iRev/ -- Kenji Kojima / ???? http://www.kenjikojima.com/ From colinholgate at gmail.com Mon Jan 4 08:15:24 2016 From: colinholgate at gmail.com (Colin Holgate) Date: Mon, 4 Jan 2016 08:15:24 -0500 Subject: One Rect For All specificaiton In-Reply-To: References: <565536EB.7040206@hindu.org> <57ACF118-9494-4ECD-A413-E7475115BBE6@gmail.com> <5655FEAF.3070209@hyperactivesw.com> <1413C89C-2017-4376-89E4-3077B14DFB92@gmail.com> <5656ADF6.40608@hindu.org> Message-ID: With showAll you are guaranteed to see all of the original card contents. On a wider screen the height of the card is still fitted into the height of the device, and the extra width is filled in with the content that was off the edges of the card. I?ve used showAll for books, where I wanted to be sure to not lose any of the height, and games, where I wanted to be sure not to lose any of the width. For one game though it was better to do the noBorder compromise, so that it wasn?t geared towards either wider or not so wide devices. Suggesting noBorder for you was after asking questions about whether you could work in the same way. > On Jan 3, 2016, at 11:18 PM, Sannyasin Brahmanathaswami wrote: > > Colin wrote: "You could use the 1024x768 iPad preset and then have extra content that extends out to 171 pixels either side of the card, that you don?t normally se while working on the stack.? > > But then wouldn?t you have the issue of losing the top and bottom if you run the same app in iPhone 6+ landscape? From prothero at earthednet.org Mon Jan 4 14:55:06 2016 From: prothero at earthednet.org (William Prothero) Date: Mon, 4 Jan 2016 11:55:06 -0800 Subject: One Rect For All specificaiton In-Reply-To: References: <565536EB.7040206@hindu.org> <57ACF118-9494-4ECD-A413-E7475115BBE6@gmail.com> <5655FEAF.3070209@hyperactivesw.com> <1413C89C-2017-4376-89E4-3077B14DFB92@gmail.com> <5656ADF6.40608@hindu.org> Message-ID: Colin and Brahmanathaswami: When this discussion topic is finally resolved, it would be wonderful and extremely useful if a summaryof the best practice, with comments on implementation consequences, was posted somewhere. This is an important issue and will save the rest of us who haven?t faced this issue yet, a lot of time. Best, Bill > On Jan 4, 2016, at 5:15 AM, Colin Holgate wrote: > > With showAll you are guaranteed to see all of the original card contents. On a wider screen the height of the card is still fitted into the height of the device, and the extra width is filled in with the content that was off the edges of the card. > > I?ve used showAll for books, where I wanted to be sure to not lose any of the height, and games, where I wanted to be sure not to lose any of the width. For one game though it was better to do the noBorder compromise, so that it wasn?t geared towards either wider or not so wide devices. Suggesting noBorder for you was after asking questions about whether you could work in the same way. > > >> On Jan 3, 2016, at 11:18 PM, Sannyasin Brahmanathaswami wrote: >> >> Colin wrote: "You could use the 1024x768 iPad preset and then have extra content that extends out to 171 pixels either side of the card, that you don?t normally se while working on the stack.? >> >> But then wouldn?t you have the issue of losing the top and bottom if you run the same app in iPhone 6+ landscape? > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 4 15:09:00 2016 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Mon, 4 Jan 2016 20:09:00 +0000 Subject: Animation in LiveCode In-Reply-To: <1408752392164-4682303.post@n4.nabble.com> References: <53F596EA.1070007@hindu.org> <1408632467884-4682265.post@n4.nabble.com> <1408726682866-4682292.post@n4.nabble.com> <1408746307616-4682296.post@n4.nabble.com> <53F7C57B.1040302@hindu.org> <1408752392164-4682303.post@n4.nabble.com> Message-ID: I?m ?back at it? trying to discover all possible means for animation in Livecode. All the high end tools seem to export to video: create your frame based ?thing? whatever it is.. then you save as h.264. I don?t find much that will export to animated GIF ? which seems to be the only ?native? way to play animation in LiveCode?. The use case is: If we commission some 2D animation? what tools do I need to ask the artist(s) to use and format to give it to me so that we can actually incorporated in to LiveCode? a) Kids I know want to use Scratch, but that?s a proprietary format (.sb2) with no export to animated GIF b) There are legions of people using Unity. And I could get any amount of assets done in Unity. But again? how to incorporate into LiveCode? c) Photoshop and After effects All go out to Video = a player object in LiveCode [Is it possible to have transparency in a play object? I doubt it, but wanted to ask anyway. A hack could be to make a small video and then have this player move around on top of a background and ?see through? ? I doubt that works at all.] Other way to go is to make the whole card a player object and do the animation and run the rest of the LC things on top? That also could be very tricky. SVG animation, looks promising and with the resurgence of SVG perhaps this may one day be possible in Livecode? especially if we could get transparency in the white areas. https://upload.wikimedia.org/wikipedia/commons/b/ba/Toy_train_SMIL.svg. But I don?t see any tools for that kind of creation and LiveCode SVG widget is a long way from being able to play that kind of thing. A frame based option is to use Scott?s method of storing the text of images of the different frames in custom props and then programmatically driving those out to a single image object? so this gives us a frame based animation? if the ?little man? were also moving across the screen and had 5 frames of his legs moving, this could work. Extremely primitive So, goes back to the key question: if you commission 2D animation, what do you ask for that can be used effectively in LiveCode? Is anyone using Franklin3D? I got a license ten years ago, but never had time to pursue it. Is it working on Mobile? BR On August 22, 2014 at 2:06:32 PM, Alejandro Tejada (capellan2000 at gmail.com) wrote: Notice that for this platform there was a dll for playing interactive 3d animation: Franklin3d, a port of Irrlicht 3D Engine for LiveCode and Real Basic... Franklin3D demo worked fine on Windows, but I do not have experience using it in other platforms. From richmondmathewson at gmail.com Mon Jan 4 15:18:57 2016 From: richmondmathewson at gmail.com (Richmond) Date: Mon, 4 Jan 2016 22:18:57 +0200 Subject: Animation in LiveCode In-Reply-To: References: <53F596EA.1070007@hindu.org> <1408632467884-4682265.post@n4.nabble.com> <1408726682866-4682292.post@n4.nabble.com> <1408746307616-4682296.post@n4.nabble.com> <53F7C57B.1040302@hindu.org> <1408752392164-4682303.post@n4.nabble.com> Message-ID: <568AD3B1.4080208@gmail.com> On 04/01/16 22:09, Sannyasin Brahmanathaswami wrote: > I?m ?back at it? trying to discover all possible means for animation in Livecode. All the high end tools seem to export to video: create your frame based ?thing? whatever it is.. then you save as h.264. > > I don?t find much that will export to animated GIF ? which seems to be the only ?native? way to play animation in LiveCode?. > > The use case is: If we commission some 2D animation? what tools do I need to ask the artist(s) to use and format to give it to me so that we can actually incorporated in to LiveCode? > > a) Kids I know want to use Scratch, but that?s a proprietary format (.sb2) with no export to animated GIF > b) There are legions of people using Unity. And I could get any amount of assets done in Unity. But again? how to incorporate into LiveCode? > c) Photoshop and After effects All go out to Video = a player object in LiveCode > > [Is it possible to have transparency in a play object? I doubt it, but wanted to ask anyway. A hack could be to make a small video and then have this player move around on top of a background and ?see through? ? I doubt that works at all.] You could have an animated GIF that moved around in top of a background . . . Richmond. > > Other way to go is to make the whole card a player object and do the animation and run the rest of the LC things on top? That also could be very tricky. > > SVG animation, looks promising and with the resurgence of SVG perhaps this may one day be possible in Livecode? especially if we could get transparency in the white areas. > > https://upload.wikimedia.org/wikipedia/commons/b/ba/Toy_train_SMIL.svg. > > But I don?t see any tools for that kind of creation and LiveCode SVG widget is a long way from being able to play that kind of thing. > > A frame based option is to use Scott?s method of storing the text of images of the different frames in custom props and then programmatically driving those out to a single image object? so this gives us a frame based animation? if the ?little man? were also moving across the screen and had 5 frames of his legs moving, this could work. Extremely primitive > > So, goes back to the key question: if you commission 2D animation, what do you ask for that can be used effectively in LiveCode? > > Is anyone using Franklin3D? I got a license ten years ago, but never had time to pursue it. > > Is it working on Mobile? > > BR > > > On August 22, 2014 at 2:06:32 PM, Alejandro Tejada (capellan2000 at gmail.com) wrote: > > Notice that for this platform there was a dll for playing > interactive 3d animation: Franklin3d, a port of Irrlicht > 3D Engine for LiveCode and Real Basic... > Franklin3D demo worked fine on Windows, but I do not > have experience using it in other platforms. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From colinholgate at gmail.com Mon Jan 4 15:20:03 2016 From: colinholgate at gmail.com (Colin Holgate) Date: Mon, 4 Jan 2016 15:20:03 -0500 Subject: Animation in LiveCode In-Reply-To: References: <53F596EA.1070007@hindu.org> <1408632467884-4682265.post@n4.nabble.com> <1408726682866-4682292.post@n4.nabble.com> <1408746307616-4682296.post@n4.nabble.com> <53F7C57B.1040302@hindu.org> <1408752392164-4682303.post@n4.nabble.com> Message-ID: You should certainly get Flash Pro on your list of tools to use. It can export perfect frame rate H.264, and also image sequences or animated GIFs. I just did a test export, and the animation played back well in LiveCode, even at 60 fps. From colinholgate at gmail.com Mon Jan 4 15:21:44 2016 From: colinholgate at gmail.com (Colin Holgate) Date: Mon, 4 Jan 2016 15:21:44 -0500 Subject: Animation in LiveCode In-Reply-To: <568AD3B1.4080208@gmail.com> References: <53F596EA.1070007@hindu.org> <1408632467884-4682265.post@n4.nabble.com> <1408726682866-4682292.post@n4.nabble.com> <1408746307616-4682296.post@n4.nabble.com> <53F7C57B.1040302@hindu.org> <1408752392164-4682303.post@n4.nabble.com> <568AD3B1.4080208@gmail.com> Message-ID: I tested that too. When exporting from Flash Pro you can set the animation to be transparent. In LiveCode it kept up the 60 fps rate even when animating on top of a text field. > On Jan 4, 2016, at 3:18 PM, Richmond wrote: > >> [Is it possible to have transparency in a play object? I doubt it, but wanted to ask anyway. A hack could be to make a small video and then have this player move around on top of a background and ?see through? ? I doubt that works at all.] > > You could have an animated GIF that moved around in top of a background . . . From richmondmathewson at gmail.com Mon Jan 4 15:37:59 2016 From: richmondmathewson at gmail.com (Richmond) Date: Mon, 4 Jan 2016 22:37:59 +0200 Subject: Animation in LiveCode In-Reply-To: <568AD3B1.4080208@gmail.com> References: <53F596EA.1070007@hindu.org> <1408632467884-4682265.post@n4.nabble.com> <1408726682866-4682292.post@n4.nabble.com> <1408746307616-4682296.post@n4.nabble.com> <53F7C57B.1040302@hindu.org> <1408752392164-4682303.post@n4.nabble.com> <568AD3B1.4080208@gmail.com> Message-ID: <568AD827.5090608@gmail.com> > You could have an animated GIF that moved around in top of a > background . . . > > Richmond. Here's a proof-of-concept stack: http://forums.livecode.com/viewtopic.php?f=10&t=26110&p=136301#p136301 From hh at livecode.org Mon Jan 4 17:17:58 2016 From: hh at livecode.org (-hh) Date: Mon, 4 Jan 2016 23:17:58 +0100 Subject: Animation in LiveCode Message-ID: <66655B56-284D-4699-A0F6-D09E08D3F4F1@livecode.org> Classical tools are, for all main platforms available, imagemagick or, faster, graphicsmagick. Both are callable via shell from LC on all desktop platforms. They easily convert frames from a lot of different image formats to gif (also, for example, multi-page PDFs!). Transparency is one of a bunch of options available for such conversions. And gifs play easily in LC, even in 'highly experimental' HTML standalones, see for example http://hh.on-rev.com/html5/SantasAreBusy-8.0.0-dp-9X.html (which is essentially Richmond's move-method). From rman at free.fr Mon Jan 4 18:33:10 2016 From: rman at free.fr (Robert Mann) Date: Mon, 4 Jan 2016 15:33:10 -0800 (PST) Subject: [On-Rev Tio] could someone test the index.html files in her/his account on Tio? In-Reply-To: References: Message-ID: <1451950390594-4699917.post@n4.nabble.com> ooops!! all my test sites are down with this re-written index file!!! COuld anybody expand on how is that possible? is that an error from the maintenance team or an outsider attack? -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/On-Rev-Tio-could-someone-test-the-index-html-files-in-her-his-account-on-Tio-tp4699843p4699917.html Sent from the Revolution - User mailing list archive at Nabble.com. From brahma at hindu.org Mon Jan 4 18:03:26 2016 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Mon, 4 Jan 2016 23:03:26 +0000 Subject: One Rect For All specificaiton In-Reply-To: References: <565536EB.7040206@hindu.org> <57ACF118-9494-4ECD-A413-E7475115BBE6@gmail.com> <5655FEAF.3070209@hyperactivesw.com> <1413C89C-2017-4376-89E4-3077B14DFB92@gmail.com> <5656ADF6.40608@hindu.org> Message-ID: Bill: Yes. I plan to draft something put it on Google Docs an invite a few others.. it?s pretty mission critical, especially if you are about to hire ($) animators. I worked late last night using ?showAll? and I think in the end this is the simplest way to go. Landscape, showAll ? 16 X 9 card size means you have extra ?canvas? that will appear on 3X 4 (iPad) top and bottom. ? if you build a tab bar on the bottom and a nav bar at the top, these will appear ?inset? when you run that into the simulator for iPad Interestingly: Colin?s ?after thought? of setting the card size to 4 X 3 (iPad) has a very useful caveat: when you build the tab bar at the bottom and nav bar at the top and you switch to iPhone 6+ *those two bars still appear and are nicely position at the top and bottom!* So: work at 16 X 9 (horizontal) and i) you see everything that will show on both devices ii) but have to script the groups you want to stick to the top and bottom. iii) You have to remember to get the backgrounds and artwork another 20% taller to fill the canvas top and bottom that appears on the 3X 4 tablet (I have to figure the exact amt in ratios and percentages, so that our artists can translate this to any size canvas, drawing pad) OR work in 4 X 3 horizontal and i) now elements positioned flush top and flush bottom will reposition and ?stick? there when switching to iPhone 6 + but elements you have on the left and right will ?float inside? the card space on the iPhone (ie. you woudl have to script those elements to ?left=0? or ?right= width of this screen.? ii) you have to make some kind of guides top and bottom to make sure any significant elements are not above or below those guides (otherwise they will not appear on the iPhone) And, ?oddly? it means you are better off working in iPad rect ? assuming you don?t have controls that are sticky on the left and right edge. I have a few stacks built as examples with simple rects showing how it all works? I?ll load those up later somewhere. BR On January 4, 2016 at 9:55:26 AM, William Prothero (prothero at earthednet.org) wrote: Colin and Brahmanathaswami: When this discussion topic is finally resolved, it would be wonderful and extremely useful if a summaryof the best practice, with comments on implementation consequences, was posted somewhere. This is an important issue and will save the rest of us who haven?t faced this issue yet, a lot of time. Best, Bill From rman at free.fr Mon Jan 4 19:01:00 2016 From: rman at free.fr (Robert Mann) Date: Mon, 4 Jan 2016 16:01:00 -0800 (PST) Subject: [On-Rev Tio] could someone test the index.html files in her/his account on Tio? In-Reply-To: <1451950390594-4699917.post@n4.nabble.com> References: <1451950390594-4699917.post@n4.nabble.com> Message-ID: <1451952060939-4699919.post@n4.nabble.com> Details :: all my index files on my on-rev account on too were changed on TUESDAY 29th December at 09:02 -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/On-Rev-Tio-could-someone-test-the-index-html-files-in-her-his-account-on-Tio-tp4699843p4699919.html Sent from the Revolution - User mailing list archive at Nabble.com. From rman at free.fr Mon Jan 4 19:25:09 2016 From: rman at free.fr (Robert Mann) Date: Mon, 4 Jan 2016 16:25:09 -0800 (PST) Subject: [On-Rev Tio] could someone test the index.html files in her/his account on Tio? In-Reply-To: <1451952060939-4699919.post@n4.nabble.com> References: <1451950390594-4699917.post@n4.nabble.com> <1451952060939-4699919.post@n4.nabble.com> Message-ID: <1451953509630-4699920.post@n4.nabble.com> ..and all files named index have been changed everywhere at all folder levels, independently of the postfix (.html, .lc, .rev) So I asked the team to replace all content of my account with a backup anytime in december priori to 29th since i did not do any change to it in december. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/On-Rev-Tio-could-someone-test-the-index-html-files-in-her-his-account-on-Tio-tp4699843p4699920.html Sent from the Revolution - User mailing list archive at Nabble.com. From colinholgate at gmail.com Mon Jan 4 20:12:28 2016 From: colinholgate at gmail.com (Colin Holgate) Date: Mon, 4 Jan 2016 20:12:28 -0500 Subject: One Rect For All specificaiton In-Reply-To: References: <565536EB.7040206@hindu.org> <57ACF118-9494-4ECD-A413-E7475115BBE6@gmail.com> <5655FEAF.3070209@hyperactivesw.com> <1413C89C-2017-4376-89E4-3077B14DFB92@gmail.com> <5656ADF6.40608@hindu.org> Message-ID: Which you choose is often dependent on whether you have tools that stick to the top and bottom, or the sides. If you do use code to make them snap into place, it can be tricky. You need to find the real width and height of the device itself, divide one into the other, and use that as a multiplier against your card size to know how far from the center the controls should be placed. If you?re only doing current iOS devices you could make assumptions about it being 16:9 or 4:3, but that might not always be the case, and it wouldn?t be correct for most Android devices. > On Jan 4, 2016, at 6:03 PM, Sannyasin Brahmanathaswami wrote: > > Bill: > > Yes. I plan to draft something put it on Google Docs an invite a few others.. it?s pretty mission critical, especially if you are about to hire ($) animators. > > I worked late last night using ?showAll? and I think in the end this is the simplest way to go. > > > Landscape, showAll > > ? 16 X 9 card size means you have extra ?canvas? that will appear on 3X 4 (iPad) top and bottom. > ? if you build a tab bar on the bottom and a nav bar at the top, these will appear ?inset? when you run that into the simulator for iPad > > Interestingly: Colin?s ?after thought? of setting the card size to 4 X 3 (iPad) has a very useful caveat: when you build the tab bar at the bottom and nav bar at the top and you switch to iPhone 6+ *those two bars still appear and are nicely position at the top and bottom!* > > So: work at 16 X 9 (horizontal) and > i) you see everything that will show on both devices > ii) but have to script the groups you want to stick to the top and bottom. > iii) You have to remember to get the backgrounds and artwork another 20% taller to fill the canvas top and bottom that appears on the 3X 4 tablet (I have to figure the exact amt in ratios and percentages, so that our artists can translate this to any size canvas, drawing pad) > > OR > > work in 4 X 3 horizontal and > > i) now elements positioned flush top and flush bottom will reposition and ?stick? there when switching to iPhone 6 + but elements you have on the left and right will ?float inside? the card space on the iPhone (ie. you woudl have to script those elements to ?left=0? or ?right= width of this screen.? > > ii) you have to make some kind of guides top and bottom to make sure any significant elements are not above or below those guides (otherwise they will not appear on the iPhone) > > And, ?oddly? it means you are better off working in iPad rect ? assuming you don?t have controls that are sticky on the left and right edge. > > I have a few stacks built as examples with simple rects showing how it all works? I?ll load those up later somewhere. > > BR > > On January 4, 2016 at 9:55:26 AM, William Prothero (prothero at earthednet.org) wrote: > > Colin and Brahmanathaswami: > When this discussion topic is finally resolved, it would be wonderful and extremely useful if a summaryof the best practice, with comments on implementation consequences, was posted somewhere. This is an important issue and will save the rest of us who haven?t faced this issue yet, a lot of time. > > Best, > Bill > _______________________________________________ > use-livecode mailing list > use-livecode at 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 4 20:43:59 2016 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Tue, 5 Jan 2016 01:43:59 +0000 Subject: Animation in LiveCode In-Reply-To: <568AD827.5090608@gmail.com> References: <53F596EA.1070007@hindu.org> <1408632467884-4682265.post@n4.nabble.com> <1408726682866-4682292.post@n4.nabble.com> <1408746307616-4682296.post@n4.nabble.com> <53F7C57B.1040302@hindu.org> <1408752392164-4682303.post@n4.nabble.com> <568AD3B1.4080208@gmail.com> <568AD827.5090608@gmail.com> Message-ID: Richmond: Yes of course that would work, but moving the animated GIF around on top of a video? Player FYI: your tiger has this white rectangular border that flashes on each cycle through the frames. I turned off the border width and the 3D etc in the inspector, but it did not go away. Perhaps one of the GIF frames has a border? Otherwise the outer glow on top of the grass is very effective. Indeed looking around the web: animated GIF is still very much alive and well. And here I thought it was a fading, ?retro? format? but people are even making little animated GIFS from movies. So the answer to the artists team is ?assets must be animated GIF.? This will be a challenge for some, depending on their skill set and tool box. Midnight-Rises graphic novel game trailer is also interesting in that it has *zero* moving images? but the parallax effect was used in some scenes to great effect? the simple use of having 2D images with transparency slide onto the scene from left or right worked well too. On January 4, 2016 at 10:38:21 AM, Richmond (richmondmathewson at gmail.com) wrote: > You could have an animated GIF that moved around in top of a > background . . . > > Richmond. Here's a proof-of-concept stack: http://forums.livecode.com/viewtopic.php?f=10&t=26110&p=136301#p136301 From brahma at hindu.org Mon Jan 4 20:55:57 2016 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Tue, 5 Jan 2016 01:55:57 +0000 Subject: One Rect For All specificaiton In-Reply-To: References: <565536EB.7040206@hindu.org> <57ACF118-9494-4ECD-A413-E7475115BBE6@gmail.com> <5655FEAF.3070209@hyperactivesw.com> <1413C89C-2017-4376-89E4-3077B14DFB92@gmail.com> <5656ADF6.40608@hindu.org> Message-ID: Seems better to let Livecode do the job? which means working in iPad size even though your main target is phones. Odd, but that would work for controls that are meant to stay top and bottom. OTHO I don?t understand how it is that ?tricky?? doesn?t the screen rect solve this for any device? on preOpenCard put the effective screenrect into tRect set the bottom of group ?tabBar? to item 4 of tRect end preOpenCard On January 4, 2016 at 3:12:46 PM, Colin Holgate (colinholgate at gmail.com) wrote: Which you choose is often dependent on whether you have tools that stick to the top and bottom, or the sides. If you do use code to make them snap into place, it can be tricky. You need to find the real width and height of the device itself, divide one into the other, and use that as a multiplier against your card size to know how far from the center the controls should be placed. If you?re only doing current iOS devices you could make assumptions about it being 16:9 or 4:3, but that might not always be the case, and it wouldn?t be correct for most Android devices. From colinholgate at gmail.com Mon Jan 4 21:33:56 2016 From: colinholgate at gmail.com (Colin Holgate) Date: Mon, 4 Jan 2016 21:33:56 -0500 Subject: One Rect For All specificaiton In-Reply-To: References: <565536EB.7040206@hindu.org> <57ACF118-9494-4ECD-A413-E7475115BBE6@gmail.com> <5655FEAF.3070209@hyperactivesw.com> <1413C89C-2017-4376-89E4-3077B14DFB92@gmail.com> <5656ADF6.40608@hindu.org> Message-ID: Don?t know, you should test it. According to the help it returns the screenrect after removing things like the keyboard overlay. But that may still be in virtual pixels, based on the card rect. > On Jan 4, 2016, at 8:55 PM, Sannyasin Brahmanathaswami wrote: > > Seems better to let Livecode do the job? which means working in iPad size even though your main target is phones. Odd, but that would work for controls that are meant to stay top and bottom. > > OTHO I don?t understand how it is that ?tricky?? doesn?t the screen rect solve this for any device? > > on preOpenCard > put the effective screenrect into tRect > set the bottom of group ?tabBar? to item 4 of tRect > end preOpenCard > > > > > > > > On January 4, 2016 at 3:12:46 PM, Colin Holgate (colinholgate at gmail.com) wrote: > > Which you choose is often dependent on whether you have tools that stick to the top and bottom, or the sides. If you do use code to make them snap into place, it can be tricky. You need to find the real width and height of the device itself, divide one into the other, and use that as a multiplier against your card size to know how far from the center the controls should be placed. If you?re only doing current iOS devices you could make assumptions about it being 16:9 or 4:3, but that might not always be the case, and it wouldn?t be correct for most Android devices. > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mon Jan 4 23:51:42 2016 From: prothero at earthednet.org (EED-wp Email) Date: Mon, 4 Jan 2016 20:51:42 -0800 Subject: One Rect For All specificaiton In-Reply-To: References: <565536EB.7040206@hindu.org> <57ACF118-9494-4ECD-A413-E7475115BBE6@gmail.com> <5655FEAF.3070209@hyperactivesw.com> <1413C89C-2017-4376-89E4-3077B14DFB92@gmail.com> <5656ADF6.40608@hindu.org> Message-ID: <5CD5CC95-D781-495B-9FC4-8FB614B39703@earthednet.org> I wonder if a set of screen templates for a range of ui configurations might not be a product folks would be willing to pay for. It sounds like it might save some folks a lot of time. Bill William Prothero http://ed.earthednet.org > On Jan 4, 2016, at 6:33 PM, Colin Holgate wrote: > > Don?t know, you should test it. According to the help it returns the screenrect after removing things like the keyboard overlay. But that may still be in virtual pixels, based on the card rect. > > >> On Jan 4, 2016, at 8:55 PM, Sannyasin Brahmanathaswami wrote: >> >> Seems better to let Livecode do the job? which means working in iPad size even though your main target is phones. Odd, but that would work for controls that are meant to stay top and bottom. >> >> OTHO I don?t understand how it is that ?tricky?? doesn?t the screen rect solve this for any device? >> >> on preOpenCard >> put the effective screenrect into tRect >> set the bottom of group ?tabBar? to item 4 of tRect >> end preOpenCard >> >> >> >> >> >> >> >> On January 4, 2016 at 3:12:46 PM, Colin Holgate (colinholgate at gmail.com) wrote: >> >> Which you choose is often dependent on whether you have tools that stick to the top and bottom, or the sides. If you do use code to make them snap into place, it can be tricky. You need to find the real width and height of the device itself, divide one into the other, and use that as a multiplier against your card size to know how far from the center the controls should be placed. If you?re only doing current iOS devices you could make assumptions about it being 16:9 or 4:3, but that might not always be the case, and it wouldn?t be correct for most Android devices. >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 5 01:14:07 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 5 Jan 2016 00:14:07 -0600 Subject: Animation in LiveCode In-Reply-To: References: <53F596EA.1070007@hindu.org> <1408632467884-4682265.post@n4.nabble.com> <1408726682866-4682292.post@n4.nabble.com> <1408746307616-4682296.post@n4.nabble.com> <53F7C57B.1040302@hindu.org> <1408752392164-4682303.post@n4.nabble.com> Message-ID: <568B5F2F.4080202@hyperactivesw.com> On 1/4/2016 2:20 PM, Colin Holgate wrote: > You should certainly get Flash Pro on your list of tools to use. It > can export perfect frame rate H.264, and also image sequences or > animated GIFs. Another option is Graphic Converter, which will also export an image sequence to gif. You can set the time/rate between frames. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Tue Jan 5 01:24:57 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 5 Jan 2016 00:24:57 -0600 Subject: [On-Rev Tio] could someone test the index.html files in her/his account on Tio? In-Reply-To: <1451952060939-4699919.post@n4.nabble.com> References: <1451950390594-4699917.post@n4.nabble.com> <1451952060939-4699919.post@n4.nabble.com> Message-ID: <568B61B9.5030907@hyperactivesw.com> On 1/4/2016 6:01 PM, Robert Mann wrote: > Details :: all my index files on my on-rev account on too were changed on > TUESDAY 29th December at 09:02 I'm on Tio and my files are okay. But I heard other people have had the same problem as you did. I don't use any php at all, I wonder if the affected accounts did. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From alex at harryscollar.com Tue Jan 5 01:26:46 2016 From: alex at harryscollar.com (Alex Shaw) Date: Tue, 5 Jan 2016 16:26:46 +1000 Subject: Animation in LiveCode In-Reply-To: <568B5F2F.4080202@hyperactivesw.com> References: <53F596EA.1070007@hindu.org> <1408632467884-4682265.post@n4.nabble.com> <1408726682866-4682292.post@n4.nabble.com> <1408746307616-4682296.post@n4.nabble.com> <53F7C57B.1040302@hindu.org> <1408752392164-4682303.post@n4.nabble.com> <568B5F2F.4080202@hyperactivesw.com> Message-ID: <568B6226.6050109@harryscollar.com> Mac-only but Hype3 is pretty good too.. http://tumult.com/hype/ regards alex On 5/01/2016 4:14 PM, J. Landman Gay wrote: > On 1/4/2016 2:20 PM, Colin Holgate wrote: >> You should certainly get Flash Pro on your list of tools to use. It >> can export perfect frame rate H.264, and also image sequences or >> animated GIFs. > > Another option is Graphic Converter, which will also export an image > sequence to gif. You can set the time/rate between frames. > From richmondmathewson at gmail.com Tue Jan 5 01:27:20 2016 From: richmondmathewson at gmail.com (Richmond) Date: Tue, 5 Jan 2016 08:27:20 +0200 Subject: Animation in LiveCode In-Reply-To: References: <53F596EA.1070007@hindu.org> <1408632467884-4682265.post@n4.nabble.com> <1408726682866-4682292.post@n4.nabble.com> <1408746307616-4682296.post@n4.nabble.com> <53F7C57B.1040302@hindu.org> <1408752392164-4682303.post@n4.nabble.com> <568AD3B1.4080208@gmail.com> <568AD827.5090608@gmail.com> Message-ID: <568B6248.8010706@gmail.com> On 05/01/16 03:43, Sannyasin Brahmanathaswami wrote: > Richmond: > > Yes of course that would work, but moving the animated GIF around on top of a video? Player I don't see why that shouldn't be possible: after all, if I've actually got one thing right it is that a layer is a layer and they don't interact with one another. > > FYI: your tiger has this white rectangular border that flashes on each cycle through the frames. I turned off the border width and the 3D etc in the inspector, but it did not go away. Perhaps one of the GIF frames has a border? Well, to be honest, that's just "any old GIF" I grabbed off the internet to make my "proof of concept" stack. That whole 'thing' took me about 10 minutes - after all, it is not rocket science. The flashing frame is a nuisance; and IF I were to use that sort of thing I would NOT use something I grabbed off the internet but roll my own. > > Otherwise the outer glow on top of the grass is very effective. I set the outer glow because without it the tiger was very difficult to see. > > Indeed looking around the web: animated GIF is still very much alive and well. And here I thought it was a fading, ?retro? format? but people are even making little animated GIFS from movies. > > So the answer to the artists team is ?assets must be animated GIF.? There are any number of online tools for assembling a series of static GIF images into an animated GIF, and several FREE downloadable ones if you feel funny about people getting their paws on your images when you upload them. For the sake of argument GIMP [which is multi-platform and Free] (the program I know and love) can churn out animated GIFs without too much of a learning curve. https://www.gimp.org/downloads/ > > This will be a challenge for some, depending on their skill set and tool box. > > Midnight-Rises graphic novel game trailer is also interesting in that it has *zero* moving images? but the parallax effect was used in some scenes to great effect? the simple use of having 2D images with transparency slide onto the scene from left or right worked well too. > > > At the risk of sounding a bit goofy: I do think that if you are trying to put together a kit for children to make wee animated "thingies" the simpler the underlying stuff the better. As animated GIFs have a long pedigree, and are not doing the 'coming and going' thing that Flash seems to be doing, it is best to rely on them. Obviously from my silly tiger you would then have to delve into frame-rates and so on. However, it should not be unduly difficult to set up an import stack that allowed and end-user (a child ???) to bring in their pre-prepared animated GIF and set all sorts of parameters before deploying it in their piece of work. Richmond. From rman at free.fr Tue Jan 5 04:32:40 2016 From: rman at free.fr (Robert Mann) Date: Tue, 5 Jan 2016 01:32:40 -0800 (PST) Subject: [On-Rev Tio] could someone test the index.html files in her/his account on Tio? In-Reply-To: <568B61B9.5030907@hyperactivesw.com> References: <1451950390594-4699917.post@n4.nabble.com> <1451952060939-4699919.post@n4.nabble.com> <568B61B9.5030907@hyperactivesw.com> Message-ID: <1451986360383-4699930.post@n4.nabble.com> no php used on my account. Only are pure "lc" sites. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/On-Rev-Tio-could-someone-test-the-index-html-files-in-her-his-account-on-Tio-tp4699843p4699930.html Sent from the Revolution - User mailing list archive at Nabble.com. From stgoldberg at aol.com Tue Jan 5 07:41:55 2016 From: stgoldberg at aol.com (stgoldberg at aol.com) Date: Tue, 5 Jan 2016 07:41:55 -0500 Subject: Animation in Lilvecode Message-ID: <15211cedd72-6656-1cd69@webprd-m89.mail.aol.com> Several ways of animating with animated GIFs are shown in the free download: Livecode Scripting Tutorial, in its section on Special Effects Scripting/Motion, which can be found at www.medmaster.net/livecode.html, and which accompanies my book Livecode Lite: Computer Programming Made Ridiculously Simple (also available as a free PDF download). Stephen Goldberg, MD President, Medmaster Inc www.medmaster.net On 04/01/16 22:09, Sannyasin Brahmanathaswami wrote: > Im back at it trying to discover all possible means for animation in Livecode. From matthias_livecode_150811 at m-r-d.de Tue Jan 5 08:21:05 2016 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe | M-R-D) Date: Tue, 5 Jan 2016 14:21:05 +0100 Subject: [On-Rev Tio] could someone test the index.html files in her/his account on Tio? In-Reply-To: <1451986360383-4699930.post@n4.nabble.com> References: <1451950390594-4699917.post@n4.nabble.com> <1451952060939-4699919.post@n4.nabble.com> <568B61B9.5030907@hyperactivesw.com> <1451986360383-4699930.post@n4.nabble.com> Message-ID: <3FABE239-1BD3-41DA-8D24-71D166C85384@m-r-d.de> Hi, it seems that all index files, regardless what suffix they had, were overwritten in all folders in all accounts . I noticed that on the 28th and informed On-Rev Support. At that time they were already running a script which tried to restore the data from a backup. Unfortunately not all accounts were successfully restored. So i had to restore my data manually. The sad thing is that the respective customers were not informed about the fact that they had to restore their data manually. I am pretty sure there are plenty of them who even still are not aware that there was and still is a problem with their site. I call this really awful information management. @Kevin Miller, in the case you are reading this, please don?t reply with such phrases like "I?m not aware of any particular delays in processing on-rev support at the moment. I?ll investigate this question for you.? Fact is, standard On-Rev support requests are answered very very late. Most emergency requests are answered in an acceptable time, but some also just were ignored or answered very late. Fact is other providers like ?HostM? are also offering WebHosting with LiveCode server and they are answering standard - not emergency- support request within some hours instead of days and that for very low monthly rates. Fact is also there is absolutely no communication between On-Rev Support and On-Rev customers when for example a maintenance is planned. I remember even a situation when PHP was upgraded on an On-Rev server w/o informing the customers about this. Not before and even not after the upgrade. Okay we noticed it here automatically because after the upgrade we had massive problems with our online shop. It would be nice, if you, Kevin, would tell us how many people work exclusively full Time in the On-Rev support. I have the impression that only David is there 24h for the big problems. At least he is the only one who is answering the emergency requests. Regards, Matthias > Am 05.01.2016 um 10:32 schrieb Robert Mann : > > no php used on my account. Only are pure "lc" sites. > > > > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/On-Rev-Tio-could-someone-test-the-index-html-files-in-her-his-account-on-Tio-tp4699843p4699930.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 selander at tkf.att.ne.jp Tue Jan 5 09:08:15 2016 From: selander at tkf.att.ne.jp (Tim Selander) Date: Tue, 05 Jan 2016 23:08:15 +0900 Subject: Charset problems with .lc web page In-Reply-To: References: <567BA4E7.6060502@tkf.att.ne.jp> <568A5A03.3080606@livecode.com> Message-ID: <568BCE4F.1060903@tkf.att.ne.jp> Kojima-san, Thank you! Your instructions worked perfectly. For the others: 1) --> must be the first line of the .lc 2) set the outputTextEncoding to native --> must be the first line of the first script in the file If you put "set the outputTextEncoding to native" later in the script, UTF-8 above that line will be garbled; after that line it will show properly. Very interesting. Tim Selander Tokyo, Japan On 1/4/16, 21:06, Kenji Kojima wrote: > Tim, > >>> The .irev file correctly shows Japanese UTF8, the .lc file does not. > I wrote about it in Japanese. > http://kenjikojima.com/basic_iRev/main/rev11.html > > http://kenjikojima.com/basic_iRev/ > > -- > 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 selander at tkf.att.ne.jp Tue Jan 5 09:14:34 2016 From: selander at tkf.att.ne.jp (Tim Selander) Date: Tue, 05 Jan 2016 23:14:34 +0900 Subject: Charset problems with .lc web page In-Reply-To: <568A5A03.3080606@livecode.com> References: <567BA4E7.6060502@tkf.att.ne.jp> <568A5A03.3080606@livecode.com> Message-ID: <568BCFCA.4020207@tkf.att.ne.jp> Hi Peter, Thanks for the tip. However, it didn't seem to do anything for me. According to the trick Alex told me about getting the server version, the On-rev account I'm using has livecode-server-6.6.2 installed. FWIW, Kojima-san's tip worked great; it's in another post in this thread. Appreciate everyone's help with this! Tim Selander Tokyo, Japan On 1/4/16, 20:39, Peter TB Brett wrote: > On 24/12/2015 07:55, Tim Selander wrote: > > Dear list, > > > > I'm having trouble making a .lc web pages correctly show the > charset. > > > > I have two test files: > > http://www.pba.on-rev.com/5_today.lc > > http://www.pba.on-rev.com/5_today.irev > > > > They are identical except for the .lc/.irev file extensions, > and also > > the and tags in the html. > > > > The .irev file correctly shows Japanese UTF8, the .lc file > does not. > > > > Anyone else having problems with this? Can .lc files not > handle charset > > correctly? > > Hi Tim, > > I think that if you put a comment like: > > -- encoding: utf8 > > in the first line of the .lc file (or the second line if you > have a shebang), the server engine will treat the .lc file as > UTF-8 text rather than native text. > > On the other hand, that solution might not work except in > LiveCode 6.7 or later. I'm not sure! > > Peter > From index at kenjikojima.com Tue Jan 5 14:37:31 2016 From: index at kenjikojima.com (Kenji Kojima) Date: Tue, 5 Jan 2016 14:37:31 -0500 Subject: Charset problems with .lc web page In-Reply-To: <568BCE4F.1060903@tkf.att.ne.jp> References: <567BA4E7.6060502@tkf.att.ne.jp> <568A5A03.3080606@livecode.com> <568BCE4F.1060903@tkf.att.ne.jp> Message-ID: <586362B5-D9D1-42D1-967A-A8901CCE8890@kenjikojima.com> Tim, I?m still using ?.rev? most of all time, but I have to use ?.lc? when I use a stack. -- Kenji Kojima / ???? http://www.kenjikojima.com/ > On Jan 5, 2016, at 9:08 AM, Tim Selander wrote: > > Kojima-san, > > Thank you! Your instructions worked perfectly. > > For the others: > 1) --> must be the first line of the .lc > 2) set the outputTextEncoding to native --> must be the first line of the first script in the file > > If you put "set the outputTextEncoding to native" later in the script, UTF-8 above that line will be garbled; after that line it will show properly. > > Very interesting. > > Tim Selander > Tokyo, Japan > > > > On 1/4/16, 21:06, Kenji Kojima wrote: >> Tim, >> >>>> The .irev file correctly shows Japanese UTF8, the .lc file does not. >> I wrote about it in Japanese. >> http://kenjikojima.com/basic_iRev/main/rev11.html >> >> http://kenjikojima.com/basic_iRev/ >> >> -- >> 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 richmondmathewson at gmail.com Tue Jan 5 14:46:58 2016 From: richmondmathewson at gmail.com (Richmond) Date: Tue, 5 Jan 2016 21:46:58 +0200 Subject: Animation in LiveCode In-Reply-To: References: <53F596EA.1070007@hindu.org> <1408632467884-4682265.post@n4.nabble.com> <1408726682866-4682292.post@n4.nabble.com> <1408746307616-4682296.post@n4.nabble.com> <53F7C57B.1040302@hindu.org> <1408752392164-4682303.post@n4.nabble.com> <568AD3B1.4080208@gmail.com> <568AD827.5090608@gmail.com> Message-ID: <568C1DB2.1030101@gmail.com> To make GIFs with GIMP, you're going to need both GIMP itself as well as the GIMP Animation Package (or GIMP GAP, for those who like recursive acronyms). Get GIMP: http://www.gimp.org/ Get GIMP GAP: http://www.gimpusers.com/downloads GIMP recognizes animated GIF files as a file with multiple layers (one layer for each frame), which makes it easy to resize the whole file as needed. Thus, when creating an animated GIF from scratch, it's as easy as adding new layers. And you can use it to add text to an animation, for memes galore. With GIMP, you can also specify whether the file should loop (not all of them should), and even specify a different delay time between frames. That provides some pinpoint precision to your work. Note that to make this all work, you need the GIMP Animation Package. Information cobbled together from here and there. Richmond. From richmondmathewson at gmail.com Tue Jan 5 15:23:05 2016 From: richmondmathewson at gmail.com (Richmond) Date: Tue, 5 Jan 2016 22:23:05 +0200 Subject: Animation in LiveCode In-Reply-To: <568AD827.5090608@gmail.com> References: <53F596EA.1070007@hindu.org> <1408632467884-4682265.post@n4.nabble.com> <1408726682866-4682292.post@n4.nabble.com> <1408746307616-4682296.post@n4.nabble.com> <53F7C57B.1040302@hindu.org> <1408752392164-4682303.post@n4.nabble.com> <568AD3B1.4080208@gmail.com> <568AD827.5090608@gmail.com> Message-ID: <568C2629.2090708@gmail.com> Thanks to the good offices of Brahmanathaswami and GIMP I have removed the annoying surrounding round one of the frames in the Tiger animated GIF. I have uploaded a new version of the proof-of-concept stack: http://forums.livecode.com/viewtopic.php?f=10&t=26110&p=136351#p136351 featuring 2 animated tigers. My "problem" is how to get them to animate at the same time. Richmond. From smaclean at madmansoft.com Tue Jan 5 15:38:39 2016 From: smaclean at madmansoft.com (Stephen MacLean) Date: Tue, 5 Jan 2016 15:38:39 -0500 Subject: Accepting secure connections with sockets Message-ID: <7F6EBCB4-5E3A-485E-87A9-EB9DBD82A3E5@madmansoft.com> Hi All, Some questions on securing sockets both ?server" and ?client" side. On the server side (which is just an LC app, not a LC server deployment), you open a connection with ?accept connections on port xxxx?. I am trying to make sure that only secured connections are made to the server. I?ve tried ?accept secure connections on port xxxx? and while it didn?t throw an error, it allowed a client to connect without using the "open secure socket xxxxxxx?, just using the "open socket xxxxxxx? command. I don?t see that secure is listed in the dictionary for ?accept? but again, it didn?t throw an error. I?ve also used: accept connections on port xxxx secure socket ?xxxx? again, no error, but is this actually secure now? I was also able to connect via the client using the ?open socket? command with no error. So, how do I force the connections to only be secured connections on the server? On the client side, the "open secure socket xxxxxxx? command seems to work, at least it doesn?t throw an error. However, while I can see the open socket using ?the openSockets?, it doesn?t tell me if it is secure or not. So, is there a way to see if a connected socket is running in secure mode? Any and all help greatly appreciated! Best, Steve MacLean From bonnmike at gmail.com Tue Jan 5 15:59:56 2016 From: bonnmike at gmail.com (Mike Bonner) Date: Tue, 5 Jan 2016 13:59:56 -0700 Subject: Animation in LiveCode In-Reply-To: <568C2629.2090708@gmail.com> References: <53F596EA.1070007@hindu.org> <1408632467884-4682265.post@n4.nabble.com> <1408726682866-4682292.post@n4.nabble.com> <1408746307616-4682296.post@n4.nabble.com> <53F7C57B.1040302@hindu.org> <1408752392164-4682303.post@n4.nabble.com> <568AD3B1.4080208@gmail.com> <568AD827.5090608@gmail.com> <568C2629.2090708@gmail.com> Message-ID: use "lock moves" before your moves, and add "without waiting" at the end of each move command. Unlock moves after you have all moves queued. Also, rather than mess with setting the move speed a second time, just set the loc of the images to where you want. Or even better, since they walk off screen entirely, there is no reason to set them to invis, and since you use "move" to tell them where to move from and to, you don't even need to set the loc of them. This is sufficient to the task. on mouseup set the moveSpeed to 50 lock moves move img "Tiger" from -59, 240 to 698, 240 without waiting move img "TigerBack" from 698, 160 to -59, 160 without waiting unlock moves end mouseup On Tue, Jan 5, 2016 at 1:23 PM, Richmond wrote: > Thanks to the good offices of Brahmanathaswami and GIMP > I have removed the annoying surrounding round one > of the frames in the Tiger animated GIF. > > I have uploaded a new version of the proof-of-concept stack: > > http://forums.livecode.com/viewtopic.php?f=10&t=26110&p=136351#p136351 > > featuring 2 animated tigers. > > My "problem" is how to get them to animate at the same time. > > > 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 Tue Jan 5 16:01:34 2016 From: bonnmike at gmail.com (Mike Bonner) Date: Tue, 5 Jan 2016 14:01:34 -0700 Subject: Animation in LiveCode In-Reply-To: References: <53F596EA.1070007@hindu.org> <1408632467884-4682265.post@n4.nabble.com> <1408726682866-4682292.post@n4.nabble.com> <1408746307616-4682296.post@n4.nabble.com> <53F7C57B.1040302@hindu.org> <1408752392164-4682303.post@n4.nabble.com> <568AD3B1.4080208@gmail.com> <568AD827.5090608@gmail.com> <568C2629.2090708@gmail.com> Message-ID: Alternatively, if you want more control of the animation, you could use a game loop, and move the tigers around (set the loc... ) as well as manually choosing which frame to show when using "currentFrame" On Tue, Jan 5, 2016 at 1:59 PM, Mike Bonner wrote: > use "lock moves" before your moves, and add "without waiting" at the end > of each move command. > Unlock moves after you have all moves queued. > > Also, rather than mess with setting the move speed a second time, just set > the loc of the images to where you want. Or even better, since they walk > off screen entirely, there is no reason to set them to invis, and since you > use "move" to tell them where to move from and to, you don't even need to > set the loc of them. > > This is sufficient to the task. > on mouseup > set the moveSpeed to 50 > lock moves > move img "Tiger" from -59, 240 to 698, 240 without waiting > move img "TigerBack" from 698, 160 to -59, 160 without waiting > unlock moves > end mouseup > > On Tue, Jan 5, 2016 at 1:23 PM, Richmond > wrote: > >> Thanks to the good offices of Brahmanathaswami and GIMP >> I have removed the annoying surrounding round one >> of the frames in the Tiger animated GIF. >> >> I have uploaded a new version of the proof-of-concept stack: >> >> http://forums.livecode.com/viewtopic.php?f=10&t=26110&p=136351#p136351 >> >> featuring 2 animated tigers. >> >> My "problem" is how to get them to animate at the same time. >> >> >> 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 rman at free.fr Tue Jan 5 16:14:27 2016 From: rman at free.fr (Robert Mann) Date: Tue, 5 Jan 2016 13:14:27 -0800 (PST) Subject: [On-Rev Tio] could someone test the index.html files in her/his account on Tio? In-Reply-To: <3FABE239-1BD3-41DA-8D24-71D166C85384@m-r-d.de> References: <1451950390594-4699917.post@n4.nabble.com> <1451952060939-4699919.post@n4.nabble.com> <568B61B9.5030907@hyperactivesw.com> <1451986360383-4699930.post@n4.nabble.com> <3FABE239-1BD3-41DA-8D24-71D166C85384@m-r-d.de> Message-ID: <1452028467709-4699941.post@n4.nabble.com> Matthias Rebbe | M-R-D wrote > I noticed that on the 28th and informed On-Rev Support. At that time they > were already running a script which tried to restore the data from a > backup. Unfortunately not all accounts were successfully restored. So i > had to restore my data manually. => I proposed to them to simply replace all my account content with a the latest backup before 29th december, provided it's after 30november, to simplify the process and avoid me restoring manually all index files. Did not do it as urgent request but hope they will look into it in next 24 hours :: all sites are down, but not critical sites.. (that was kind of the moral deal with the on-rev founder package :: benefit from a development server space ad eternal, but not use it for critical sites!) i'll left you know how it goes/went! => indeed, I would have appreciated a little warning because when I read the initial warning on the list I just did not realize that.. it was.. bad for me too! -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/On-Rev-Tio-could-someone-test-the-index-html-files-in-her-his-account-on-Tio-tp4699843p4699941.html Sent from the Revolution - User mailing list archive at Nabble.com. From lyn.teyla at gmail.com Tue Jan 5 18:41:50 2016 From: lyn.teyla at gmail.com (Lyn Teyla) Date: Wed, 6 Jan 2016 00:41:50 +0100 Subject: Charset problems with .lc web page In-Reply-To: <568BCE4F.1060903@tkf.att.ne.jp> References: <567BA4E7.6060502@tkf.att.ne.jp> <568A5A03.3080606@livecode.com> <568BCE4F.1060903@tkf.att.ne.jp> Message-ID: <202B4F79-5F73-417E-B12C-F42A524F87C9@gmail.com> Tim Selander wrote: > 1) --> must be the first line of the .lc > 2) set the outputTextEncoding to native --> must be the first line of the first script in the file > > If you put "set the outputTextEncoding to native" later in the script, UTF-8 above that line will be garbled; after that line it will show properly. This can get unnecessarily convoluted if you have to keep alternating between "native" and "utf-8" outputTextEncodings between different blocks of LiveCode script and HTML. I can imagine that one would tend to forget to change the outputTextEncoding somewhere along the way. Did you run into any problems with the "put header" method that I had suggested, where you only need to insert a single line at the top of the file? I use the single-line solution and it works perfectly fine on many versions of revServer and LiveCode Server, including 3.5, 6.6.2 (the one you?re using), 6.7.8, 7.1.1, and 8.0.0 DP 12. This article on HostM.com also mentions the same solution. Perhaps it explains it better than I did: https://www.hostm.com/tutorials/livecode/utf-8-output Lyn From selander at tkf.att.ne.jp Tue Jan 5 18:58:58 2016 From: selander at tkf.att.ne.jp (Tim Selander) Date: Wed, 06 Jan 2016 08:58:58 +0900 Subject: Charset problems with .lc web page In-Reply-To: <202B4F79-5F73-417E-B12C-F42A524F87C9@gmail.com> References: <567BA4E7.6060502@tkf.att.ne.jp> <568A5A03.3080606@livecode.com> <568BCE4F.1060903@tkf.att.ne.jp> <202B4F79-5F73-417E-B12C-F42A524F87C9@gmail.com> Message-ID: <568C58C2.6080302@tkf.att.ne.jp> Hi Lyn, When I first tried your tip, it didn't work for me. But when I looked at the tutorial you linked to, I saw that the was the very first line of the .lc file, before or anything else. When I tried that, it worked great! I had been inserting the command: put header "Content-Type: text/html; charset=UTF-8" into the first line of my Tim Selander wrote: > >> 1) --> must be the first line of the .lc >> 2) set the outputTextEncoding to native --> must be the first line of the first script in the file >> >> If you put "set the outputTextEncoding to native" later in the script, UTF-8 above that line will be garbled; after that line it will show properly. > This can get unnecessarily convoluted if you have to keep alternating between "native" and "utf-8" outputTextEncodings between different blocks of LiveCode script and HTML. > > I can imagine that one would tend to forget to change the outputTextEncoding somewhere along the way. > > Did you run into any problems with the "put header" method that I had suggested, where you only need to insert a single line at the top of the file? > > I use the single-line solution and it works perfectly fine on many versions of revServer and LiveCode Server, including 3.5, 6.6.2 (the one you?re using), 6.7.8, 7.1.1, and 8.0.0 DP 12. > > This article on HostM.com also mentions the same solution. Perhaps it explains it better than I did: > > https://www.hostm.com/tutorials/livecode/utf-8-output > > Lyn > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From lyn.teyla at gmail.com Tue Jan 5 19:07:48 2016 From: lyn.teyla at gmail.com (Lyn Teyla) Date: Wed, 6 Jan 2016 01:07:48 +0100 Subject: Charset problems with .lc web page In-Reply-To: <568C58C2.6080302@tkf.att.ne.jp> References: <567BA4E7.6060502@tkf.att.ne.jp> <568A5A03.3080606@livecode.com> <568BCE4F.1060903@tkf.att.ne.jp> <202B4F79-5F73-417E-B12C-F42A524F87C9@gmail.com> <568C58C2.6080302@tkf.att.ne.jp> Message-ID: <2A030560-C384-4A28-BFDC-F85DDC4EEB85@gmail.com> Tim Selander wrote: > When I first tried your tip, it didn't work for me. But when I looked at the tutorial you linked to, I saw that the > > was the very first line of the .lc file, before or anything else. > > When I tried that, it worked great! Thanks for letting us know. I?ll strive to be clearer next time whilst at the same time reducing message length (which has always been a challenge for me ? it can be hard to balance the two). Lyn From ambassador at fourthworld.com Tue Jan 5 19:53:17 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 5 Jan 2016 16:53:17 -0800 Subject: [OT]SoCal Linux Expo: Jan 21-24 in Pasadena Message-ID: <568C657D.7080704@fourthworld.com> The SoCal Linux Expo (SCaLE) is one of my favorite annual events, and this year it's coming to Pasadena. For LiveCoders it's a chance to learn more about servers, containers, security, and more to enhance the work you do. For tech enthusiasts of every stripe there are sessions covering everything from IoT to building communities. And for everyone there's a chance to make new friends in an easy-going environment focused around sharing free software. https://www.socallinuxexpo.org/scale/14x With excellent sponsors like HP, Microsoft, Facebook, O'Reilly Media, Ubuntu, MySQL, and many more, the price of admission to this four-day event is just $85. Even better, if you're interested in going drop me an email and I'll send you a discount code for 50% off. And for Ubuntu fans there's a special treat: for the last few years I've been organizing UbuCon at SCaLE, a special full day track at SCaLE for all things Ubuntu. This year we've had tremendous support from Ubuntu, and we're premiering UbuCon Summit: two full days with two tracks, one for end-users and one for app devs. If you're interested in attending the UbuCon Summit at SCaLE please register here so they can make sure to have enough t-shirts on hand: http://ubucon.org/ Hope to see you there. Year after year, SCaLE is among the most educational and fun events I've attended. -- 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 Tue Jan 5 20:45:43 2016 From: prothero at earthednet.org (William Prothero) Date: Tue, 5 Jan 2016 17:45:43 -0800 Subject: Animation in LiveCode In-Reply-To: References: <53F596EA.1070007@hindu.org> <1408632467884-4682265.post@n4.nabble.com> <1408726682866-4682292.post@n4.nabble.com> <1408746307616-4682296.post@n4.nabble.com> <53F7C57B.1040302@hindu.org> <1408752392164-4682303.post@n4.nabble.com> <568AD3B1.4080208@gmail.com> <568AD827.5090608@gmail.com> <568C2629.2090708@gmail.com> Message-ID: Thanks, Richmond and Mike: So?. the frame rate of the animated gif is set when the gif is made? And, the movement of the gif is controlled by the movespeed command. Obviously, these two speeds would need to be coordinated, or the tiger might look like its slipping on wet grass, pawing the ground. I wonder if there are any gotchas if the gif animation could get out of whack with the movespeed control of the figure across the screen. Nice animation, and you both are amazing! Bill > On Jan 5, 2016, at 1:01 PM, Mike Bonner wrote: > > Alternatively, if you want more control of the animation, you could use a > game loop, and move the tigers around (set the loc... ) as well as manually > choosing which frame to show when using "currentFrame" > > On Tue, Jan 5, 2016 at 1:59 PM, Mike Bonner wrote: > >> use "lock moves" before your moves, and add "without waiting" at the end >> of each move command. >> Unlock moves after you have all moves queued. >> >> Also, rather than mess with setting the move speed a second time, just set >> the loc of the images to where you want. Or even better, since they walk >> off screen entirely, there is no reason to set them to invis, and since you >> use "move" to tell them where to move from and to, you don't even need to >> set the loc of them. >> >> This is sufficient to the task. >> on mouseup >> set the moveSpeed to 50 >> lock moves >> move img "Tiger" from -59, 240 to 698, 240 without waiting >> move img "TigerBack" from 698, 160 to -59, 160 without waiting >> unlock moves >> end mouseup >> From gcanyon at gmail.com Tue Jan 5 22:03:49 2016 From: gcanyon at gmail.com (Geoff Canyon) Date: Tue, 5 Jan 2016 22:03:49 -0500 Subject: Can anyone else log in at rosettacode.org? Message-ID: When I try it says that I have a cookie problem, yet I've checked and I have a cookie from them. I deleted it, tried logging in again, and the cookie reappeared, even though the login failed again. I can't ask for help on the site because an anonymous user can't create a new page, or edit any of the relevant pages. I've tried emailing the creator of the site, and the email bounced. :-/ From richmondmathewson at gmail.com Wed Jan 6 05:15:21 2016 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 6 Jan 2016 12:15:21 +0200 Subject: Animation in LiveCode In-Reply-To: References: <53F596EA.1070007@hindu.org> <1408632467884-4682265.post@n4.nabble.com> <1408726682866-4682292.post@n4.nabble.com> <1408746307616-4682296.post@n4.nabble.com> <53F7C57B.1040302@hindu.org> <1408752392164-4682303.post@n4.nabble.com> <568AD3B1.4080208@gmail.com> <568AD827.5090608@gmail.com> <568C2629.2090708@gmail.com> Message-ID: <568CE939.2080102@gmail.com> On 06/01/16 03:45, William Prothero wrote: > Thanks, Richmond and Mike: > > So?. the frame rate of the animated gif is set when the gif is made? And, the movement of the gif is controlled by the movespeed command. Obviously, these two speeds would need to be coordinated, or the tiger might look like its slipping on wet grass, pawing the ground. I wonder if there are any gotchas if the gif animation could get out of whack with the movespeed control of the figure across the screen. > > Nice animation, and you both are amazing! > Bill > > > It is a bit sad how a lot of useful stuff seems to "get lost": https://www.novell.com/coolsolutions/author/1211.html Richmond. From richmondmathewson at gmail.com Wed Jan 6 05:53:56 2016 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 6 Jan 2016 12:53:56 +0200 Subject: Animation in LiveCode In-Reply-To: References: <53F596EA.1070007@hindu.org> <1408632467884-4682265.post@n4.nabble.com> <1408726682866-4682292.post@n4.nabble.com> <1408746307616-4682296.post@n4.nabble.com> <53F7C57B.1040302@hindu.org> <1408752392164-4682303.post@n4.nabble.com> <568AD3B1.4080208@gmail.com> <568AD827.5090608@gmail.com> <568C2629.2090708@gmail.com> Message-ID: <568CF244.1070101@gmail.com> http://denon-dj-asio-driver-mac.mac.novellshareware.com/info/pivot--revolution.html Oh, Super, it's multi-platform and its free! Animated GIFs all round. Richmond. From richmondmathewson at gmail.com Wed Jan 6 08:47:48 2016 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 6 Jan 2016 15:47:48 +0200 Subject: Animation in LiveCode In-Reply-To: References: <53F596EA.1070007@hindu.org> <1408632467884-4682265.post@n4.nabble.com> <1408726682866-4682292.post@n4.nabble.com> <1408746307616-4682296.post@n4.nabble.com> <53F7C57B.1040302@hindu.org> <1408752392164-4682303.post@n4.nabble.com> <568AD3B1.4080208@gmail.com> <568AD827.5090608@gmail.com> <568C2629.2090708@gmail.com> Message-ID: <568D1B04.7010905@gmail.com> On 06/01/16 03:45, William Prothero wrote: > Thanks, Richmond and Mike: > > So?. the frame rate of the animated gif is set when the gif is made? And, the movement of the gif is controlled by the movespeed command. Obviously, these two speeds would need to be coordinated, or the tiger might look like its slipping on wet grass, pawing the ground. I wonder if there are any gotchas if the gif animation could get out of whack with the movespeed control of the figure across the screen. I did mess about with the moveSpeed, and finally settled on 50, as it did look a bit odd at 200. Richmond. > > Nice animation, and you both are amazing! > Bill > > >> On Jan 5, 2016, at 1:01 PM, Mike Bonner wrote: >> >> Alternatively, if you want more control of the animation, you could use a >> game loop, and move the tigers around (set the loc... ) as well as manually >> choosing which frame to show when using "currentFrame" >> >> On Tue, Jan 5, 2016 at 1:59 PM, Mike Bonner wrote: >> >>> use "lock moves" before your moves, and add "without waiting" at the end >>> of each move command. >>> Unlock moves after you have all moves queued. >>> >>> Also, rather than mess with setting the move speed a second time, just set >>> the loc of the images to where you want. Or even better, since they walk >>> off screen entirely, there is no reason to set them to invis, and since you >>> use "move" to tell them where to move from and to, you don't even need to >>> set the loc of them. >>> >>> This is sufficient to the task. >>> on mouseup >>> set the moveSpeed to 50 >>> lock moves >>> move img "Tiger" from -59, 240 to 698, 240 without waiting >>> move img "TigerBack" from 698, 160 to -59, 160 without waiting >>> unlock moves >>> 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 Wow at together.net Wed Jan 6 09:44:32 2016 From: Wow at together.net (Richard Miller) Date: Wed, 6 Jan 2016 09:44:32 -0500 Subject: LC app not displaying correctly on iPhone Message-ID: I am testing a LC iPhone app on my iPad and iPhone 6S plus. I'm setting the fullscreenmode to "exactFit". The app displays perfectly on the iPad, but there is black space above and below the app on the iPhone. Nothing is cut off; it's just that the app is not filling the iPhone screen. I get the same result in the simulator, even when I set it to iPhone 6 or 5S. Any suggestions? Building this with OS 10.11.2, LC 7.1, and Xcode 6.4. Thanks Richard Miller From richmondmathewson at gmail.com Wed Jan 6 10:34:37 2016 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 6 Jan 2016 17:34:37 +0200 Subject: Animation in LiveCode In-Reply-To: <568D1B04.7010905@gmail.com> References: <53F596EA.1070007@hindu.org> <1408632467884-4682265.post@n4.nabble.com> <1408726682866-4682292.post@n4.nabble.com> <1408746307616-4682296.post@n4.nabble.com> <53F7C57B.1040302@hindu.org> <1408752392164-4682303.post@n4.nabble.com> <568AD3B1.4080208@gmail.com> <568AD827.5090608@gmail.com> <568C2629.2090708@gmail.com> <568D1B04.7010905@gmail.com> Message-ID: <568D340D.1090108@gmail.com> http://www.lcdf.org/gifsicle/man.html Um? Richmond. From ambassador at fourthworld.com Wed Jan 6 10:55:32 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 6 Jan 2016 07:55:32 -0800 Subject: Animation in LiveCode In-Reply-To: <568CF244.1070101@gmail.com> References: <568CF244.1070101@gmail.com> Message-ID: <568D38F4.9050306@fourthworld.com> Richmond wrote: > http://denon-dj-asio-driver-mac.mac.novellshareware.com/info/pivot--revolution.html > > Oh, Super, it's multi-platform and its free! > > Animated GIFs all round. Ken Ray built a competing tool using LiveCode called Stykz, and while it's not open source it's free as in gratis: -- 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 mkoob at rogers.com Wed Jan 6 10:47:04 2016 From: mkoob at rogers.com (Martin Koob) Date: Wed, 6 Jan 2016 07:47:04 -0800 (PST) Subject: LiveCode Toronto MeetUp Feb. 4th, 2016 with Fraser Gordon Message-ID: <1452095224325-4699954.post@n4.nabble.com> Greater Toronto Area LiveCode Users Group MeetUp February 4th, 2016 6:00 pm - 9:00 pm Fraser Gordon, a Software Engineer with the LiveCode team at their headquarters in Edinburgh, Scotland is coming to Toronto and has offered to do a presentation on one of the exciting new features in LiveCode 8. Deploying a LiveCode app in a browser using HTML5 was launched in August of 2015 in the early developer previews of LiveCode 8. Fraser will present on HTML5 deployment as LiveCode 8 approaches its release date. If there is interest he may also discuss running LiveCode on Raspberry Pi. See the MeetUp announcement for more details and to register for the event. The number of attendees is limited. http://www.meetup.com/Greater-Toronto-Area-LiveCode-Users-Group/events/227589114/ Martin Koob -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/LiveCode-Toronto-MeetUp-Feb-4th-2016-with-Fraser-Gordon-tp4699954.html Sent from the Revolution - User mailing list archive at Nabble.com. From mark at canelasoftware.com Wed Jan 6 11:52:03 2016 From: mark at canelasoftware.com (Mark Talluto) Date: Wed, 6 Jan 2016 08:52:03 -0800 Subject: Animation in LiveCode In-Reply-To: <568D38F4.9050306@fourthworld.com> References: <568CF244.1070101@gmail.com> <568D38F4.9050306@fourthworld.com> Message-ID: <1719EE8D-3959-4CDD-A732-3D5DA1B0F17A@canelasoftware.com> > On Jan 6, 2016, at 7:55 AM, Richard Gaskin wrote: > > Richmond wrote: > > http://denon-dj-asio-driver-mac.mac.novellshareware.com/info/pivot--revolution.html > > > > Oh, Super, it's multi-platform and its free! > > > > Animated GIFs all round. > > Ken Ray built a competing tool using LiveCode called Stykz, and while it's not open source it's free as in gratis: > Awesome stuff! Best regards, Mark Talluto livecloud.io canelasoftware.com From richmondmathewson at gmail.com Wed Jan 6 11:53:51 2016 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 6 Jan 2016 18:53:51 +0200 Subject: Animation in LiveCode In-Reply-To: <568D38F4.9050306@fourthworld.com> References: <568CF244.1070101@gmail.com> <568D38F4.9050306@fourthworld.com> Message-ID: <568D469F.40107@gmail.com> On 06/01/16 17:55, Richard Gaskin wrote: > Richmond wrote: > > > http://denon-dj-asio-driver-mac.mac.novellshareware.com/info/pivot--revolution.html > > > > Oh, Super, it's multi-platform and its free! > > > > Animated GIFs all round. > > Ken Ray built a competing tool using LiveCode called Stykz, and while > it's not open source it's free as in gratis: > > That has got to be good! Richmond. From richmondmathewson at gmail.com Wed Jan 6 11:57:37 2016 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 6 Jan 2016 18:57:37 +0200 Subject: Animation in LiveCode In-Reply-To: <568D38F4.9050306@fourthworld.com> References: <568CF244.1070101@gmail.com> <568D38F4.9050306@fourthworld.com> Message-ID: <568D4781.8010808@gmail.com> On 06/01/16 17:55, Richard Gaskin wrote: > Richmond wrote: > > > http://denon-dj-asio-driver-mac.mac.novellshareware.com/info/pivot--revolution.html > > > > Oh, Super, it's multi-platform and its free! > > > > Animated GIFs all round. > > Ken Ray built a competing tool using LiveCode called Stykz, and while > it's not open source it's free as in gratis: > > Mind you, I do feel a bit funny about Linux: "Public Beta Coming Soon" followed by the date 2011. Richmond. From ambassador at fourthworld.com Wed Jan 6 12:21:45 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 6 Jan 2016 09:21:45 -0800 Subject: Animation in LiveCode In-Reply-To: <568D4781.8010808@gmail.com> References: <568D4781.8010808@gmail.com> Message-ID: <568D4D29.1090300@fourthworld.com> Richmond wrote: > On 06/01/16 17:55, Richard Gaskin wrote: >> Richmond wrote: >> > >> http://denon-dj-asio-driver-mac.mac.novellshareware.com/info/pivot--revolution.html >> > >> > Oh, Super, it's multi-platform and its free! >> > >> > Animated GIFs all round. >> >> Ken Ray built a competing tool using LiveCode called Stykz, and while >> it's not open source it's free as in gratis: >> >> > > Mind you, I do feel a bit funny about > > Linux: "Public Beta Coming Soon" followed by the date 2011. It seems very little doesn't make you feel a bit funny. Ken manages several large projects on top of being a devoted father. He made Stykz in his free time to help his son get past some of the limitations of Pivot, and makes his software available at no cost. I can hardly blame him if he hasn't had the time to finish that Linux port. -- 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 Wed Jan 6 12:49:03 2016 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 6 Jan 2016 19:49:03 +0200 Subject: Animation in LiveCode In-Reply-To: <568D4D29.1090300@fourthworld.com> References: <568D4781.8010808@gmail.com> <568D4D29.1090300@fourthworld.com> Message-ID: <568D538F.3080500@gmail.com> On 06/01/16 19:21, Richard Gaskin wrote: > Richmond wrote: >> On 06/01/16 17:55, Richard Gaskin wrote: >>> Richmond wrote: >>> > >>> http://denon-dj-asio-driver-mac.mac.novellshareware.com/info/pivot--revolution.html >>> >>> > >>> > Oh, Super, it's multi-platform and its free! >>> > >>> > Animated GIFs all round. >>> >>> Ken Ray built a competing tool using LiveCode called Stykz, and while >>> it's not open source it's free as in gratis: >>> >>> >> >> Mind you, I do feel a bit funny about >> >> Linux: "Public Beta Coming Soon" followed by the date 2011. > > It seems very little doesn't make you feel a bit funny. > > Ken manages several large projects on top of being a devoted father. > He made Stykz in his free time to help his son get past some of the > limitations of Pivot, and makes his software available at no cost. > > I can hardly blame him if he hasn't had the time to finish that Linux > port. > I wasn't blaming anyone. I just thought it was rather a pity. Richmond. From colinholgate at gmail.com Wed Jan 6 13:05:42 2016 From: colinholgate at gmail.com (Colin Holgate) Date: Wed, 6 Jan 2016 13:05:42 -0500 Subject: LC app not displaying correctly on iPhone In-Reply-To: References: Message-ID: <6B324CB7-BAF2-4240-AF28-B1901F0763D3@gmail.com> Exact fit is rarely what you would want to do, it will distort the card area to fit the screen size. The black bars are because you didn?t include the Default-568h at 2x.png file. > On Jan 6, 2016, at 9:44 AM, Richard Miller wrote: > > I am testing a LC iPhone app on my iPad and iPhone 6S plus. I'm setting the fullscreenmode to "exactFit". The app displays perfectly on the iPad, but there is black space above and below the app on the iPhone. Nothing is cut off; it's just that the app is not filling the iPhone screen. I get the same result in the simulator, even when I set it to iPhone 6 or 5S. > > Any suggestions? Building this with OS 10.11.2, LC 7.1, and Xcode 6.4. > > Thanks > Richard Miller > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From smaclean at madmansoft.com Wed Jan 6 13:55:33 2016 From: smaclean at madmansoft.com (Stephen MacLean) Date: Wed, 6 Jan 2016 13:55:33 -0500 Subject: Accepting secure connections with sockets In-Reply-To: <7F6EBCB4-5E3A-485E-87A9-EB9DBD82A3E5@madmansoft.com> References: <7F6EBCB4-5E3A-485E-87A9-EB9DBD82A3E5@madmansoft.com> Message-ID: First, I?ve made a forum post: http://forums.livecode.com/viewtopic.php?f=11&t=26225 To help continue the discussion. I?m also uploading my sample server and sample client so others can test and take a peek if they want. Second, after some more testing, I?ve noticed the following: 1) That while using the ?accept secure connections on port xxxx? or ?secure socket xxxx? after accepting connections doesn?t throw and error, if the client tries to send the server something, the server (I think) closes the connection. There is no error message. 2) When just using ?accept connections? without the secure and attempting to open a secure socket on the client doesn?t throw an error, having the client send some data results in a socket error of: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol back on the client connection. So it looks like the socket isn?t getting secured on both sides, but don?t know which one is causing the error. Hopefully someone from the mothership can comment on this as I?m at a loss at the moment. Best, Steve > On Jan 5, 2016, at 3:38 PM, Stephen MacLean wrote: > > Hi All, > > Some questions on securing sockets both ?server" and ?client" side. > > On the server side (which is just an LC app, not a LC server deployment), you open a connection with ?accept connections on port xxxx?. I am trying to make sure that only secured connections are made to the server. I?ve tried ?accept secure connections on port xxxx? and while it didn?t throw an error, it allowed a client to connect without using the "open secure socket xxxxxxx?, just using the "open socket xxxxxxx? command. I don?t see that secure is listed in the dictionary for ?accept? but again, it didn?t throw an error. I?ve also used: > > accept connections on port xxxx > secure socket ?xxxx? > > again, no error, but is this actually secure now? I was also able to connect via the client using the ?open socket? command with no error. > > So, how do I force the connections to only be secured connections on the server? > > On the client side, the "open secure socket xxxxxxx? command seems to work, at least it doesn?t throw an error. However, while I can see the open socket using ?the openSockets?, it doesn?t tell me if it is secure or not. > > So, is there a way to see if a connected socket is running in secure mode? > > Any and all help greatly appreciated! > > Best, > > Steve MacLean > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 6 14:08:40 2016 From: ray at linkit.com (Ray) Date: Wed, 6 Jan 2016 14:08:40 -0500 Subject: LC app not displaying correctly on iPhone In-Reply-To: <6B324CB7-BAF2-4240-AF28-B1901F0763D3@gmail.com> References: <6B324CB7-BAF2-4240-AF28-B1901F0763D3@gmail.com> Message-ID: <568D6638.1030003@LinkIt.Com> What is the Default-568h at 2x.png file and where does it go? Are these simply the files you specify in the Standalone Application settings? Would you happen to have a link to any lessons on this? I've Googled it and looked for it in the Livecode dictionary and I'm coming up empty handed. On 1/6/2016 1:05 PM, Colin Holgate wrote: > Exact fit is rarely what you would want to do, it will distort the card area to fit the screen size. > > The black bars are because you didn?t include the Default-568h at 2x.png file. > > >> On Jan 6, 2016, at 9:44 AM, Richard Miller wrote: >> >> I am testing a LC iPhone app on my iPad and iPhone 6S plus. I'm setting the fullscreenmode to "exactFit". The app displays perfectly on the iPad, but there is black space above and below the app on the iPhone. Nothing is cut off; it's just that the app is not filling the iPhone screen. I get the same result in the simulator, even when I set it to iPhone 6 or 5S. >> >> Any suggestions? Building this with OS 10.11.2, LC 7.1, and Xcode 6.4. >> >> Thanks >> Richard Miller >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 Wed Jan 6 14:13:11 2016 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 6 Jan 2016 21:13:11 +0200 Subject: Animation in LiveCode In-Reply-To: <568D4D29.1090300@fourthworld.com> References: <568D4781.8010808@gmail.com> <568D4D29.1090300@fourthworld.com> Message-ID: <568D6747.2080908@gmail.com> Here's an animated GIF travelling along a path: http://forums.livecode.com/viewtopic.php?f=10&t=26110 Richmond. From dave at applicationinsight.com Wed Jan 6 15:31:06 2016 From: dave at applicationinsight.com (Dave Kilroy) Date: Wed, 6 Jan 2016 12:31:06 -0800 (PST) Subject: Can anyone else log in at rosettacode.org? In-Reply-To: References: Message-ID: <1452112266790-4699965.post@n4.nabble.com> Hi Geoff - I created an account and tried logging in with both Safari and Firefox without any issues (I'm on OS X 10.11.2) ----- "The difference between genius and stupidity is; genius has its limits." - Albert Einstein -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Can-anyone-else-log-in-at-rosettacode-org-tp4699947p4699965.html Sent from the Revolution - User mailing list archive at Nabble.com. From gcanyon at gmail.com Wed Jan 6 16:42:12 2016 From: gcanyon at gmail.com (Geoff Canyon) Date: Wed, 6 Jan 2016 16:42:12 -0500 Subject: Can anyone else log in at rosettacode.org? In-Reply-To: <1452112266790-4699965.post@n4.nabble.com> References: <1452112266790-4699965.post@n4.nabble.com> Message-ID: On Wed, Jan 6, 2016 at 3:31 PM, Dave Kilroy wrote: > Hi Geoff - I created an account and tried logging in with both Safari and > Firefox without any issues (I'm on OS X 10.11.2) > ?Strange -- I'll try registering again using an alternative email. Thanks! Geoff? From peter.brett at livecode.com Wed Jan 6 17:01:51 2016 From: peter.brett at livecode.com (Peter TB Brett) Date: Wed, 6 Jan 2016 22:01:51 +0000 Subject: HTML5 update: why it is slow? Message-ID: <568D8ECF.4070600@livecode.com> Hi all, We've had experimental HTML5 deployment available in several "Developer Preview" releases of LiveCode 8 so far, and I thought you might like an update on the status of the HTML5 engine and our current plans for it. Recent changes -------------- The most recent work that Fraser and I have done on HTML5 deployment has been: * Adding deployment from LiveCode Business edition and LiveCode Indy edition * Improving font metrics and rendering * Enabling support for "wait" syntax -- as part of this work, the HTML5 engine got a lot slower (see below) * Enabling logging to standard output and standard error * Porting our testsuite to (mostly) run in a browser Current plans ------------- Before LiveCode 8.0.0 is released, I hope that I can: * Make the HTML5 engine faster again * Make most "url" chunk syntax work Once those two things are complete, then I plan to discuss with the people who are using the HTML5 deployment and see what issues are most affecting them in order to decide what to do next! Why is the engine so slow since 8.0.0 DP 11? -------------------------------------------- As you may know, we use the Emscripten C++-to-JavaScript to compile the LiveCode engine so that it runs in a web browser. One of the interesting things about JavaScript is that functions aren't allowed to block, i.e. stop running and wait for something to happen. In LiveCode, and in C++, this is very common! For example, if you write: get url "https://livecode.com/" put the number of lines in it Then you know that the first line will make LiveCode stop and wait until all of the data of our home page has been received over the network, which might take quite a long time. To get around this, we use a technology called Emterpreter, which is part of the Emscripten compiler. Normally, the engine C++ code is compiled to a specially optimised dialect of JavaScript called "asm.js", which can be run directly (and very quickly) by a web browser. When a C++ function is compiled with Emterpreter, however, it compiles to a special bytecode that's run by a bytecode interpreter written in JavaScript. Emterpreter helps get around the "blocking" problem because the bytecode interpreter can save the state of the program and quit. Later, when something happens, it can load up the previously saved program state and start running it again. However, every function that can block -- and every function that can possibly call a function that blocks -- must be compiled with Emterpreter. Also, the bytecode interpreter is up to 22x slower than running asm.js code. To make "wait" syntax work, I had to compile most of the LiveCode script evaluator using Emterpreter instead of compiling it to asm.js. Needless to say, this makes running *any* script much slower! Currently, Mark Waddingham and I are trying to figure out if it's possible to put *both* versions of the engine functions into the HTML5 engine -- the slow, "wait"-compatible version, and the fast asm.js version. Needless to say, this will make the engine source file (even) bigger, but on the other hand, it would provide an engine that both supports "wait" (and, importantly, "url" chunks) while also running code that doesn't need to block nice and quickly. It remains to be seen whether I can figure out how do that. ;-) Peter -- Dr Peter Brett LiveCode Open Source Team From peter.brett at livecode.com Wed Jan 6 17:09:27 2016 From: peter.brett at livecode.com (Peter TB Brett) Date: Wed, 6 Jan 2016 22:09:27 +0000 Subject: Array constants in LiveCode Builder Message-ID: <568D9097.2000507@livecode.com> Here's another piece of good news: Mark Waddingham and I spent a couple of hours yesterday morning adding support for literal arrays to the LiveCode Builder Language. In LiveCode 8.0.0 DP 13, you will be able to write: variable tArray as Array put {"cats": 5, "dogs": 23} into tArray Or: constant kColours is { "dirty purple": [80, 24, 60], \ "blue: [0, 0, 255] } Hopefully this should make working with arrays both easier and less verbose. Peter P.S. There's currently a limit of 127 key-value pairs in an array literal. -- Dr Peter Brett LiveCode Open Source Team From gcanyon at gmail.com Wed Jan 6 17:18:39 2016 From: gcanyon at gmail.com (Geoff Canyon) Date: Wed, 6 Jan 2016 17:18:39 -0500 Subject: Can anyone else log in at rosettacode.org? In-Reply-To: References: <1452112266790-4699965.post@n4.nabble.com> Message-ID: Curiouser and curiouser -- I can register with another email address no sweat. We'll see what happens when I have to log in with it :-/ In any case, I was able to add a LiveCode entry for this page: http://rosettacode.org/wiki/Look-and-say_sequence If anyone has improvements I'd love to hear about them. gc On Wed, Jan 6, 2016 at 4:42 PM, Geoff Canyon wrote: > > On Wed, Jan 6, 2016 at 3:31 PM, Dave Kilroy > wrote: > >> Hi Geoff - I created an account and tried logging in with both Safari and >> Firefox without any issues (I'm on OS X 10.11.2) >> > > ?Strange -- I'll try registering again using an alternative email. > > Thanks! > > Geoff? > > From monte at appisle.net Wed Jan 6 18:25:09 2016 From: monte at appisle.net (Monte Goulding) Date: Thu, 7 Jan 2016 10:25:09 +1100 Subject: HTML5 update: why it is slow? In-Reply-To: <568D8ECF.4070600@livecode.com> References: <568D8ECF.4070600@livecode.com> Message-ID: > On 7 Jan 2016, at 9:01 am, Peter TB Brett wrote: > > It remains to be seen whether I can figure out how do that. ;-) Personally I?d rather you declare force majeure on wait for HTML5 and apply your considerable talents to implementing non-blocking versions of everything. Wait et al causes issues all over the place, is usually the least efficient way of doing things and the end result is almost always a poor user experience. Given the choice of a little bit of extra coding work implementing callbacks but with the side benefit that users won?t be sitting there wondering what?s going on and an engine that?s either 22x faster or half the size (both of which are critical issues for HTML5) what do you think people would choose? For reference: http://forums.livecode.com/viewtopic.php?f=66&t=18719 Cheers Monte From rdimola at evergreeninfo.net Wed Jan 6 18:32:19 2016 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Wed, 6 Jan 2016 18:32:19 -0500 Subject: Array constants in LiveCode Builder In-Reply-To: <568D9097.2000507@livecode.com> References: <568D9097.2000507@livecode.com> Message-ID: <005a01d148da$7c755630$75600290$@net> Peter, Nice.... Could it also be used like the function call example below(that looks for the second argument to be an array) when calling a procedure that expects an array? This would make reading function calls long arguments lists(like I use) more readable. I don't use arrays for function/command optional arguments because you need to declare the array and then add an extra line of code to insert each argument into an array. Example: Put MyFunction(SomeVar,{"cats": 5, "dogs": 23},SomeOtherVar) into MyVar PS: I know there is a good reason but I got to know... 127? 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 Peter TB Brett Sent: Wednesday, January 06, 2016 5:09 PM To: User List Subject: Array constants in LiveCode Builder Here's another piece of good news: Mark Waddingham and I spent a couple of hours yesterday morning adding support for literal arrays to the LiveCode Builder Language. In LiveCode 8.0.0 DP 13, you will be able to write: variable tArray as Array put {"cats": 5, "dogs": 23} into tArray Or: constant kColours is { "dirty purple": [80, 24, 60], \ "blue: [0, 0, 255] } Hopefully this should make working with arrays both easier and less verbose. Peter P.S. There's currently a limit of 127 key-value pairs in an array literal. -- Dr Peter Brett LiveCode Open Source Team _______________________________________________ use-livecode mailing list use-livecode at 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 6 18:44:40 2016 From: mwieder at ahsoftware.net (Mark Wieder) Date: Wed, 6 Jan 2016 15:44:40 -0800 Subject: Array constants in LiveCode Builder In-Reply-To: <005a01d148da$7c755630$75600290$@net> References: <568D9097.2000507@livecode.com> <005a01d148da$7c755630$75600290$@net> Message-ID: <568DA6E8.2010906@ahsoftware.net> On 01/06/2016 03:32 PM, Ralph DiMola wrote: > PS: I know there is a good reason but I got to know... 127? A: Because it's 3 x 42 -- Mark Wieder ahsoftware at gmail.com From lyn.teyla at gmail.com Wed Jan 6 21:56:04 2016 From: lyn.teyla at gmail.com (Lyn Teyla) Date: Thu, 7 Jan 2016 03:56:04 +0100 Subject: HTML5 update: why it is slow? In-Reply-To: References: <568D8ECF.4070600@livecode.com> Message-ID: <5C4A1F28-7185-492D-940F-DE7C1E37C396@gmail.com> Monte Goulding wrote: > Personally I?d rather you declare force majeure on wait for HTML5 and apply your considerable talents to implementing non-blocking versions of everything. Agreed. Won?t the planned improvements to networking include asynchronous communication in any case? If a stop-gap solution for HTTP request support is required, what about the suggestions listed at: http://stackoverflow.com/questions/16987080/whats-the-c-side-of-an-emscripten-xmlhttprequest-call Lyn From matthias_livecode_150811 at m-r-d.de Thu Jan 7 02:25:07 2016 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe | M-R-D) Date: Thu, 7 Jan 2016 08:25:07 +0100 Subject: [OT] iconapp lifetime access for 25$ instead for 60$/year Message-ID: Hi, at http://www.appsumo.com/~P_ZPd/ you can get lifetime access to iconapp.io for just 25$ instead of paying 60$ every year. You will have online access to more than 10.000 icons and also all icons added in future. You can change color, set icon size and you can download them in different file formats (like eps, svg, pdf, gif,ai,ico,jpg, png and others). The offer expire in about 20 hours. Maybe this is useful for the one or the other. Regards, Matthias Matthias Rebbe Bramkampsieke 13 32312 L?bbecke Tel +49 5741 310000 +49 160 5504462 Fax: +49 5741 310002 eMail: matthias at m-r-d.de BR5 Konverter - BR5 -> MP3 From peter.brett at livecode.com Thu Jan 7 02:48:38 2016 From: peter.brett at livecode.com (Peter TB Brett) Date: Thu, 7 Jan 2016 07:48:38 +0000 Subject: Array constants in LiveCode Builder In-Reply-To: <005a01d148da$7c755630$75600290$@net> References: <568D9097.2000507@livecode.com> <005a01d148da$7c755630$75600290$@net> Message-ID: <568E1856.9070407@livecode.com> On 06/01/2016 23:32, Ralph DiMola wrote: > Nice.... Could it also be used like the function call example below(that > looks for the second argument to be an array) when calling a procedure that > expects an array? This would make reading function calls long arguments > lists(like I use) more readable. I don't use arrays for function/command > optional arguments because you need to declare the array and then add an > extra line of code to insert each argument into an array. > > Example: > Put MyFunction(SomeVar,{"cats": 5, "dogs": 23},SomeOtherVar) into MyVar Yes, that should work fine! > PS: I know there is a good reason but I got to know... 127? You asked, so I will explain. :-) There are actually *two* types of array literals in LiveCode Builder. 1. When all of the values that go into the array -- and therefore the full structure of the array -- are directly specified in the source code, the array is a "simple constant". Simple constants are stored in the "constant data" section of the LCB bytecode file, and there's no practical limit on how large they can be! Your example above is a simple constant. 2. When some key or value in the array isn't known at compile time, then the array has to be constructed "on-the-fly". Example: handler MakeSimpleArray(in pKey, in pValue) return {pKey: pValue} end handler At the moment, there's a dedicated bytecode opcode for runtime array construction. Each LCB opcode takes up to 255 registers as arguments. The "assignarray" opcode uses up one register argument for the destination register (i.e. where to store the constructed array), which leaves 254 registers for keys and values. 254/2 = 127. The dedicated opcode is required because LCB doesn't know how to invoke handlers with varying numbers of arguments. Once the bytecode supports that, the "assignarray" and "assignlist" opcodes won't be needed any more and will be deprecated. Peter -- Dr Peter Brett LiveCode Open Source Team From sc at sahores-conseil.com Thu Jan 7 06:59:02 2016 From: sc at sahores-conseil.com (Pierre Sahores) Date: Thu, 7 Jan 2016 12:59:02 +0100 Subject: HTML5 update: why it is slow? In-Reply-To: <5C4A1F28-7185-492D-940F-DE7C1E37C396@gmail.com> References: <568D8ECF.4070600@livecode.com> <5C4A1F28-7185-492D-940F-DE7C1E37C396@gmail.com> Message-ID: <09174E05-E3FA-4090-B3EF-0F13C47E368F@sahores-conseil.com> > Le 7 janv. 2016 ? 03:56, Lyn Teyla a ?crit : > > Monte Goulding wrote: > >> Personally I?d rather you declare force majeure on wait for HTML5 and apply your considerable talents to implementing non-blocking versions of everything. > > Agreed. Won?t the planned improvements to networking include asynchronous communication in any case? > > If a stop-gap solution for HTTP request support is required, what about the suggestions listed at: > > http://stackoverflow.com/questions/16987080/whats-the-c-side-of-an-emscripten-xmlhttprequest-call or what?s amazingly well minded and reliable on the lua, openresty/nginx and gideros side? > Lyn > > -- Pierre Sahores mobile : 06 03 95 77 70 www.sahores-conseil.com From peter.brett at livecode.com Thu Jan 7 08:18:15 2016 From: peter.brett at livecode.com (Peter TB Brett) Date: Thu, 7 Jan 2016 13:18:15 +0000 Subject: HTML5 update: why it is slow? In-Reply-To: <09174E05-E3FA-4090-B3EF-0F13C47E368F@sahores-conseil.com> References: <568D8ECF.4070600@livecode.com> <5C4A1F28-7185-492D-940F-DE7C1E37C396@gmail.com> <09174E05-E3FA-4090-B3EF-0F13C47E368F@sahores-conseil.com> Message-ID: <568E6597.5060102@livecode.com> On 07/01/2016 11:59, Pierre Sahores wrote: > > >> Le 7 janv. 2016 ? 03:56, Lyn Teyla a ?crit : >> >> Monte Goulding wrote: >> >>> Personally I?d rather you declare force majeure on wait for HTML5 and apply your considerable talents to implementing non-blocking versions of everything. >> >> Agreed. Won?t the planned improvements to networking include asynchronous communication in any case? >> >> If a stop-gap solution for HTTP request support is required, what about the suggestions listed at: >> >> http://stackoverflow.com/questions/16987080/whats-the-c-side-of-an-emscripten-xmlhttprequest-call Doing a synchronous XMLHttpRequest isn't a totally insane idea and might be a decent temporary workaround. Thanks Lyn -- I'll look into it. > or what?s amazingly well minded and reliable on the lua, openresty/nginx and gideros side? Since I'm not very well-versed in Lua programming, would you mind going into more detail about how the model used there and how you envisage it working in LiveCode Script? Peter -- Dr Peter Brett LiveCode Open Source Team LiveCode on reddit: https://reddit.com/r/livecode From sc at sahores-conseil.com Thu Jan 7 08:29:24 2016 From: sc at sahores-conseil.com (Pierre Sahores) Date: Thu, 7 Jan 2016 14:29:24 +0100 Subject: HTML5 update: why it is slow? In-Reply-To: <568E6597.5060102@livecode.com> References: <568D8ECF.4070600@livecode.com> <5C4A1F28-7185-492D-940F-DE7C1E37C396@gmail.com> <09174E05-E3FA-4090-B3EF-0F13C47E368F@sahores-conseil.com> <568E6597.5060102@livecode.com> Message-ID: <6D859784-CFDF-4276-A0C0-1F9BD4BF81BE@sahores-conseil.com> > Le 7 janv. 2016 ? 14:18, Peter TB Brett a ?crit : > > On 07/01/2016 11:59, Pierre Sahores wrote: >> >> >>> Le 7 janv. 2016 ? 03:56, Lyn Teyla a ?crit : >>> >>> Monte Goulding wrote: >>> >>>> Personally I?d rather you declare force majeure on wait for HTML5 and apply your considerable talents to implementing non-blocking versions of everything. >>> >>> Agreed. Won?t the planned improvements to networking include asynchronous communication in any case? >>> >>> If a stop-gap solution for HTTP request support is required, what about the suggestions listed at: >>> >>> http://stackoverflow.com/questions/16987080/whats-the-c-side-of-an-emscripten-xmlhttprequest-call > > Doing a synchronous XMLHttpRequest isn't a totally insane idea and might be a decent temporary workaround. Thanks Lyn -- I'll look into it. > >> or what?s amazingly well minded and reliable on the lua, openresty/nginx and gideros side? > > Since I'm not very well-versed in Lua programming, would you mind going into more detail about how the model used there and how you envisage it working in LiveCode Script? https://openresty.org/ Cheers, Pierre > > Peter > > > -- > Dr Peter Brett > LiveCode Open Source Team > > LiveCode on reddit: https://reddit.com/r/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 lists at mangomultimedia.com Thu Jan 7 09:03:20 2016 From: lists at mangomultimedia.com (Trevor DeVore) Date: Thu, 7 Jan 2016 09:03:20 -0500 Subject: HTML5 update: why it is slow? In-Reply-To: References: <568D8ECF.4070600@livecode.com> Message-ID: On Wednesday, January 6, 2016, Monte Goulding wrote: > > > Personally I?d rather you declare force majeure on wait for HTML5 and > apply your considerable talents to implementing non-blocking versions of > everything. Wait et al causes issues all over the place, is usually the > least efficient way of doing things and the end result is almost always a > poor user experience. Given the choice of a little bit of extra coding work > implementing callbacks but with the side benefit that users won?t be > sitting there wondering what?s going on and an engine that?s either 22x > faster or half the size (both of which are critical issues for HTML5) what > do you think people would choose? > Amen. -- Trevor DeVore From bobsneidar at iotecdigital.com Thu Jan 7 10:37:15 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 7 Jan 2016 15:37:15 +0000 Subject: [OT] iconapp lifetime access for 25$ instead for 60$/year In-Reply-To: References: Message-ID: <65834844-8C10-4FF8-9E65-47ABB2206D7E@iotecdigital.com> Price is right. Just a caution tho, when dealing with Icons, about one out of 10,000 is how many of them I would actually use in any application. :-) Bob S > On Jan 6, 2016, at 23:25 , Matthias Rebbe | M-R-D wrote: > > Hi, > > at http://www.appsumo.com/~P_ZPd/ > you can get lifetime access to iconapp.io for just 25$ instead of paying 60$ every year. > You will have online access to more than 10.000 icons and also all icons added in future. You can change color, set icon size and you can download them in different file formats (like eps, svg, pdf, gif,ai,ico,jpg, png and others). > > The offer expire in about 20 hours. > > Maybe this is useful for the one or the other. > > Regards, > Matthias > > > Matthias Rebbe > Bramkampsieke 13 > 32312 L?bbecke > Tel +49 5741 310000 > +49 160 5504462 > Fax: +49 5741 310002 > eMail: matthias at m-r-d.de > > BR5 Konverter - BR5 -> MP3 > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 7 12:34:34 2016 From: pete at lcsql.com (Peter Haworth) Date: Thu, 7 Jan 2016 09:34:34 -0800 Subject: mySQL Host access Message-ID: It seems that to access a mySQL database on my web host's servers from a Livecode program, I have to configure "Allowable hosts" in the database configuration. That can be an ip address or a domain name such as "@. mydomain.com" The program in question will be used by perhaps a half dozen users, all from their home computers and likely using different internet providers so it appears every time I give the program to a new user, I will have to add either their ip address (if it's fixed) or a domain as above. Is this common practice when accessing mySQL on a host server? If so, is there a better way to set about accessing a mySQL database in these circumstances, perhaps using php scripts on the server instead of accessing the db directly with the LC database functions? Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From ray at linkit.com Thu Jan 7 12:47:08 2016 From: ray at linkit.com (Ray) Date: Thu, 7 Jan 2016 12:47:08 -0500 Subject: Collapsing and Expanding Handlers in the Script Editor In-Reply-To: <568E1856.9070407@livecode.com> References: <568D9097.2000507@livecode.com> <005a01d148da$7c755630$75600290$@net> <568E1856.9070407@livecode.com> Message-ID: <568EA49C.3070008@LinkIt.Com> Mu apologies if this has come up before, but does anybody know of any add-ons or plug-ins which will accommodate collapsing and expanding handlers in Livecode's script editor window? I believe this is also referred to as folding in other development environments. Sure would be nice! From prothero at earthednet.org Thu Jan 7 12:53:04 2016 From: prothero at earthednet.org (Earthednet-wp) Date: Thu, 7 Jan 2016 09:53:04 -0800 Subject: mySQL Host access In-Reply-To: References: Message-ID: Peter, I do this on my server. I keep the php on my server. Then I only have to allow access from "localhost' because the php is being run on the server. The php is accessed with "post" command from livecode. If you need an example, I can send you a sample stack, with some sample php. Bill William Prothero http://es.earthednet.org > On Jan 7, 2016, at 9:34 AM, Peter Haworth wrote: > > It seems that to access a mySQL database on my web host's servers from a > Livecode program, I have to configure "Allowable hosts" in the database > configuration. That can be an ip address or a domain name such as "@. > mydomain.com" > > The program in question will be used by perhaps a half dozen users, all > from their home computers and likely using different internet providers so > it appears every time I give the program to a new user, I will have to add > either their ip address (if it's fixed) or a domain as above. > > Is this common practice when accessing mySQL on a host server? If so, is > there a better way to set about accessing a mySQL database in these > circumstances, perhaps using php scripts on the server instead of accessing > the db directly with the LC database functions? > > 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 matthias_livecode_150811 at m-r-d.de Thu Jan 7 13:17:47 2016 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe | M-R-D) Date: Thu, 7 Jan 2016 19:17:47 +0100 Subject: mySQL Host access In-Reply-To: References: Message-ID: > Am 07.01.2016 um 18:34 schrieb Peter Haworth : > > It seems that to access a mySQL database on my web host's servers from a > Livecode program, I have to configure "Allowable hosts" in the database > configuration. That can be an ip address or a domain name such as "@. > mydomain.com? > if i remember right you could use %.%.%.% instead of the ip address to allow all ip addresses to remotely connect to the MySQL DB. But i wouldn?t do that. I would create a php or lc script on the server which makes all the communication with the MySQL db and then let the Desktop App call the php/lc file on the server. The php/lc file would then return the needed data to the Desktop App. It?s much safer then to allow remote connections to the MySQL DB. Matthias > The program in question will be used by perhaps a half dozen users, all > from their home computers and likely using different internet providers so > it appears every time I give the program to a new user, I will have to add > either their ip address (if it's fixed) or a domain as above. > > Is this common practice when accessing mySQL on a host server? If so, is > there a better way to set about accessing a mySQL database in these > circumstances, perhaps using php scripts on the server instead of accessing > the db directly with the LC database functions? > > 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 ambassador at fourthworld.com Thu Jan 7 13:40:11 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 7 Jan 2016 10:40:11 -0800 Subject: mySQL Host access In-Reply-To: References: Message-ID: <568EB10B.4030006@fourthworld.com> Matthias Rebbe wrote: > I would create a php or lc script on the server which makes all the > communication with the MySQL db and then let the Desktop App call the > php/lc file on the server. The php/lc file would then return the > needed data to the Desktop App. > > It?s much safer then to allow remote connections to the MySQL DB. This is by far the most frequently-needed discussion in all threads about remote DB access in our community. Is there a tutorial somewhere that I may have missed which provides a simple example of using LC for this sort of middleware between the client and the DB? -- 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 7 13:42:55 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 7 Jan 2016 10:42:55 -0800 Subject: Array constants in LiveCode Builder In-Reply-To: <568D9097.2000507@livecode.com> References: <568D9097.2000507@livecode.com> Message-ID: <568EB1AF.9060301@fourthworld.com> Peter TB Brett wrote: > Here's another piece of good news: > > Mark Waddingham and I spent a couple of hours yesterday morning > adding support for literal arrays to the LiveCode Builder Language. > In LiveCode 8.0.0 DP 13, you will be able to write: > > variable tArray as Array > put {"cats": 5, "dogs": 23} into tArray > > Or: > > constant kColours is { "dirty purple": [80, 24, 60], \ > "blue: [0, 0, 255] } > > Hopefully this should make working with arrays both easier and less > verbose. Seems very useful. Nice to have it in the extensibility subsystem, but any chance it'll find its way into the main language? -- 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 7 14:03:07 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 7 Jan 2016 11:03:07 -0800 Subject: "fork" command? In-Reply-To: <09174E05-E3FA-4090-B3EF-0F13C47E368F@sahores-conseil.com> References: <09174E05-E3FA-4090-B3EF-0F13C47E368F@sahores-conseil.com> Message-ID: <568EB66B.7090508@fourthworld.com> I'm just far enough into Robert Love's "Linux System Programming" that I think the solution to FastCGI may be much simpler than I'd previously thought. I think we need a new command that launches a specified process but in a way that uses a call to "fork" to pass file descriptors (which include sockets and other I/O info) to the child process. In many ways it would work very similarly to the existing "open process", but allow params to give the child process access to things like socket connections, pipes, files, etc. the parent process has access to at the time the child process is launched. It would seem least intrusive on the code base to implement it as a new command, perhaps called "fork". That said, I have to admit the risk of Dunning-Kruger effect here: I'm not that far into the book, and my knowledge in this area is far below my aspirations. But for those of you more familiar with Linux system programming, do I misunderstand the difficulty involved? Forking seems so common in other tools, and not having it appears to be the one detail standing between where we are now and having not just FastCGI, but also being able to build truly excellent application servers on par with Node.js and other similar systems. LiveCode is a great language, and if we had the ability to fork we should be able to build a wide range of powerful, scalable, efficient systems, breaking far beyond the limitations of CGI we're limited to now. If all we need is a new command to wrap the Linux "fork" call, after I finish Love's book I may brush up on my C skills and give it a go. But who wants to wait for that. Is there anyone in our community who could do this now? Do I misunderstand what's needed here? -- 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 7 14:13:43 2016 From: pete at lcsql.com (Peter Haworth) Date: Thu, 7 Jan 2016 11:13:43 -0800 Subject: mySQL Host access In-Reply-To: References: Message-ID: Hi Bill, An example stack would be great. I have some php scripts for database access for another project but I'm definitly a php neophyte so would be great to see some other scripts too. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Thu, Jan 7, 2016 at 9:53 AM, Earthednet-wp wrote: > Peter, > I do this on my server. I keep the php on my server. Then I only have to > allow access from "localhost' because the php is being run on the server. > The php is accessed with "post" command from livecode. If you need an > example, I can send you a sample stack, with some sample php. > Bill > > William Prothero > http://es.earthednet.org > > > On Jan 7, 2016, at 9:34 AM, Peter Haworth wrote: > > > > It seems that to access a mySQL database on my web host's servers from a > > Livecode program, I have to configure "Allowable hosts" in the database > > configuration. That can be an ip address or a domain name such as "@. > > mydomain.com" > > > > The program in question will be used by perhaps a half dozen users, all > > from their home computers and likely using different internet providers > so > > it appears every time I give the program to a new user, I will have to > add > > either their ip address (if it's fixed) or a domain as above. > > > > Is this common practice when accessing mySQL on a host server? If so, is > > there a better way to set about accessing a mySQL database in these > > circumstances, perhaps using php scripts on the server instead of > accessing > > the db directly with the LC database functions? > > > > 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 Thu Jan 7 14:15:37 2016 From: pete at lcsql.com (Peter Haworth) Date: Thu, 7 Jan 2016 11:15:37 -0800 Subject: mySQL Host access In-Reply-To: References: Message-ID: Thanks Matthias, definitely seems like php on the server is the way to go. I guess designing the interface protocol between the LC app and the php scripts is my next step. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Thu, Jan 7, 2016 at 10:17 AM, Matthias Rebbe | M-R-D < matthias_livecode_150811 at m-r-d.de> wrote: > > > > Am 07.01.2016 um 18:34 schrieb Peter Haworth : > > > > It seems that to access a mySQL database on my web host's servers from a > > Livecode program, I have to configure "Allowable hosts" in the database > > configuration. That can be an ip address or a domain name such as "@. > > mydomain.com? > > > > if i remember right you could use %.%.%.% instead of the ip address to > allow all ip addresses to remotely connect to the MySQL DB. > But i wouldn?t do that. I would create a php or lc script on the server > which makes all the communication with the MySQL db and then let the > Desktop App call the php/lc file on the server. The php/lc file would then > return the needed data to the Desktop App. > > It?s much safer then to allow remote connections to the MySQL DB. > > Matthias > > > The program in question will be used by perhaps a half dozen users, all > > from their home computers and likely using different internet providers > so > > it appears every time I give the program to a new user, I will have to > add > > either their ip address (if it's fixed) or a domain as above. > > > > Is this common practice when accessing mySQL on a host server? If so, is > > there a better way to set about accessing a mySQL database in these > > circumstances, perhaps using php scripts on the server instead of > accessing > > the db directly with the LC database functions? > > > > 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 dunbarx at aol.com Thu Jan 7 14:25:18 2016 From: dunbarx at aol.com (dunbarx at aol.com) Date: Thu, 7 Jan 2016 14:25:18 -0500 Subject: Collapsing and Expanding Handlers in the Script Editor In-Reply-To: <568EA49C.3070008@LinkIt.Com> Message-ID: <1521d8ce183-5f6c-171f@webprd-m04.mail.aol.com> I would ask this in the "Feature Request" pane of the Forum. I would vote for it. Craig Newman -----Original Message----- From: Ray To: use-livecode Sent: Thu, Jan 7, 2016 12:48 pm Subject: Collapsing and Expanding Handlers in the Script Editor Mu apologies if this has come up before, but does anybody know of any add-ons or plug-ins which will accommodate collapsing and expanding handlers in Livecode's script editor window? I believe this is also referred to as folding in other development environments. Sure would be nice! _______________________________________________ use-livecode mailing list use-livecode at 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 Thu Jan 7 14:55:04 2016 From: sc at sahores-conseil.com (Pierre Sahores) Date: Thu, 7 Jan 2016 20:55:04 +0100 Subject: "fork" command? In-Reply-To: <568EB66B.7090508@fourthworld.com> References: <09174E05-E3FA-4090-B3EF-0F13C47E368F@sahores-conseil.com> <568EB66B.7090508@fourthworld.com> Message-ID: <178FF8A8-30E4-4310-8126-CB3274A54FBB@sahores-conseil.com> > Le 7 janv. 2016 ? 20:03, Richard Gaskin a ?crit : > > I'm just far enough into Robert Love's "Linux System Programming" that I think the solution to FastCGI may be much simpler than I'd previously thought. > > Forking seems so common in other tools, and not having it appears to be the one detail standing between where we are now and having not just FastCGI, but also being able to build truly excellent application servers on par with Node.js and other similar systems. > > LiveCode is a great language, and if we had the ability to fork we should be able to build a wide range of powerful, scalable, efficient systems, breaking far beyond the limitations of CGI we're limited to now. +1 Livecode behind NGINX would probably run as fast as OpenResty powered app?s servers. https://www.techempower.com/benchmarks/ Best, Pierre -- Pierre Sahores mobile : 06 03 95 77 70 www.sahores-conseil.com From bonnmike at gmail.com Thu Jan 7 15:19:30 2016 From: bonnmike at gmail.com (Mike Bonner) Date: Thu, 7 Jan 2016 13:19:30 -0700 Subject: mySQL Host access In-Reply-To: References: Message-ID: I wonder if Andres Dblib could be modified so that it could be used on both ends. On the client side, use the where, columns etc functionality to build up an array, (dbA) encode it, and post it to a page where its decoded, copied to the dbA variable (after you "start using.." andres stack) and then its a single call to interact with the database. (ok so a bit more complicated, you'd have to set the default connection, and pass in whethere you were doing an insert, update, or whatever) but overall I think it would be do-able. (and there is a gpl version of the library) It would just have to be modded to handle the arrayencode, and posting. And decoding on the far side. On Thu, Jan 7, 2016 at 12:15 PM, Peter Haworth wrote: > Thanks Matthias, definitely seems like php on the server is the way to go. > I guess designing the interface protocol between the LC app and the php > scripts is my next step. > > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin > > On Thu, Jan 7, 2016 at 10:17 AM, Matthias Rebbe | M-R-D < > matthias_livecode_150811 at m-r-d.de> wrote: > > > > > > > > Am 07.01.2016 um 18:34 schrieb Peter Haworth : > > > > > > It seems that to access a mySQL database on my web host's servers from > a > > > Livecode program, I have to configure "Allowable hosts" in the database > > > configuration. That can be an ip address or a domain name such as "@. > > > mydomain.com? > > > > > > > if i remember right you could use %.%.%.% instead of the ip address to > > allow all ip addresses to remotely connect to the MySQL DB. > > But i wouldn?t do that. I would create a php or lc script on the server > > which makes all the communication with the MySQL db and then let the > > Desktop App call the php/lc file on the server. The php/lc file would > then > > return the needed data to the Desktop App. > > > > It?s much safer then to allow remote connections to the MySQL DB. > > > > Matthias > > > > > The program in question will be used by perhaps a half dozen users, all > > > from their home computers and likely using different internet providers > > so > > > it appears every time I give the program to a new user, I will have to > > add > > > either their ip address (if it's fixed) or a domain as above. > > > > > > Is this common practice when accessing mySQL on a host server? If so, > is > > > there a better way to set about accessing a mySQL database in these > > > circumstances, perhaps using php scripts on the server instead of > > accessing > > > the db directly with the LC database functions? > > > > > > 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 monte at appisle.net Thu Jan 7 15:35:37 2016 From: monte at appisle.net (Monte Goulding) Date: Fri, 8 Jan 2016 07:35:37 +1100 Subject: "fork" command? In-Reply-To: <568EB66B.7090508@fourthworld.com> References: <09174E05-E3FA-4090-B3EF-0F13C47E368F@sahores-conseil.com> <568EB66B.7090508@fourthworld.com> Message-ID: <563B4880-48C2-4EB8-A19E-2B6E5398B929@appisle.net> Hmm? I?m not convinced we need this for FastCGI. Apache mod_fcgid will start up processes for you and for Nginx and other servers that don?t do that you could use spawn-fcgi. I have done some thinking on FastCGI after Todd asked me to look into the feasibility of it and was considering funding or part funding it. He ended up going with another platform for server side stuff so its been put on the back burner. We mainly need two things for FastCGI: - an engine with the FastCGI accept loop as the main loop (LC Server just starts up and quits at the end of the code and standalones just keep looping until you quit). - to decide on how to handle things like global variable scope etc because you?re going to end up with multiple requests to the same environment. After some thought and considering the new script only stack format I came to the conclusion that it would be better not to do the php style On 8 Jan 2016, at 6:03 am, Richard Gaskin wrote: > > I'm just far enough into Robert Love's "Linux System Programming" that I think the solution to FastCGI may be much simpler than I'd previously thought. > > I think we need a new command that launches a specified process but in a way that uses a call to "fork" to pass file descriptors (which include sockets and other I/O info) to the child process. > > In many ways it would work very similarly to the existing "open process", but allow params to give the child process access to things like socket connections, pipes, files, etc. the parent process has access to at the time the child process is launched. > > It would seem least intrusive on the code base to implement it as a new command, perhaps called "fork". > > That said, I have to admit the risk of Dunning-Kruger effect here: I'm not that far into the book, and my knowledge in this area is far below my aspirations. > > But for those of you more familiar with Linux system programming, do I misunderstand the difficulty involved? > > Forking seems so common in other tools, and not having it appears to be the one detail standing between where we are now and having not just FastCGI, but also being able to build truly excellent application servers on par with Node.js and other similar systems. > > LiveCode is a great language, and if we had the ability to fork we should be able to build a wide range of powerful, scalable, efficient systems, breaking far beyond the limitations of CGI we're limited to now. > > If all we need is a new command to wrap the Linux "fork" call, after I finish Love's book I may brush up on my C skills and give it a go. > > But who wants to wait for that. Is there anyone in our community who could do this now? > > Do I misunderstand what's needed here? > > -- > 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 alex at tweedly.net Thu Jan 7 16:49:30 2016 From: alex at tweedly.net (Alex Tweedly) Date: Thu, 7 Jan 2016 21:49:30 +0000 Subject: mySQL Host access In-Reply-To: References: Message-ID: <568EDD6A.8070400@tweedly.net> Why would you consider php scripts, when it would (I assume) be much more familiar for you to use .lc scripts on LCServer, or CGI, scripts ? In fact, given it's you :-), I would think you could write such LC access scripts in your sleep :-), probably better than most of us. -- Alex. On 07/01/2016 17:34, Peter Haworth wrote: > It seems that to access a mySQL database on my web host's servers from a > Livecode program, I have to configure "Allowable hosts" in the database > configuration. That can be an ip address or a domain name such as "@. > mydomain.com" > > The program in question will be used by perhaps a half dozen users, all > from their home computers and likely using different internet providers so > it appears every time I give the program to a new user, I will have to add > either their ip address (if it's fixed) or a domain as above. > > Is this common practice when accessing mySQL on a host server? If so, is > there a better way to set about accessing a mySQL database in these > circumstances, perhaps using php scripts on the server instead of accessing > the db directly with the LC database functions? > > 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 Thu Jan 7 17:13:03 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 7 Jan 2016 22:13:03 +0000 Subject: "fork" command? In-Reply-To: <568EB66B.7090508@fourthworld.com> References: <09174E05-E3FA-4090-B3EF-0F13C47E368F@sahores-conseil.com> <568EB66B.7090508@fourthworld.com> Message-ID: <0B177116-A556-47FA-A5F5-3D06BBD8D2AD@iotecdigital.com> That would be a great addition, although I confess I am highly dependent on the "finish what you are doing and move on to the next step" model, or single threading as the less tech savy might call it. ;-) Bob S > On Jan 7, 2016, at 11:03 , Richard Gaskin wrote: > > I'm just far enough into Robert Love's "Linux System Programming" that I think the solution to FastCGI may be much simpler than I'd previously thought. > > I think we need a new command that launches a specified process but in a way that uses a call to "fork" to pass file descriptors (which include sockets and other I/O info) to the child process. > > In many ways it would work very similarly to the existing "open process", but allow params to give the child process access to things like socket connections, pipes, files, etc. the parent process has access to at the time the child process is launched. > > It would seem least intrusive on the code base to implement it as a new command, perhaps called "fork". > > That said, I have to admit the risk of Dunning-Kruger effect here: I'm not that far into the book, and my knowledge in this area is far below my aspirations. > > But for those of you more familiar with Linux system programming, do I misunderstand the difficulty involved? > > Forking seems so common in other tools, and not having it appears to be the one detail standing between where we are now and having not just FastCGI, but also being able to build truly excellent application servers on par with Node.js and other similar systems. > > LiveCode is a great language, and if we had the ability to fork we should be able to build a wide range of powerful, scalable, efficient systems, breaking far beyond the limitations of CGI we're limited to now. > > If all we need is a new command to wrap the Linux "fork" call, after I finish Love's book I may brush up on my C skills and give it a go. > > But who wants to wait for that. Is there anyone in our community who could do this now? > > Do I misunderstand what's needed here? > > -- > 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 Thu Jan 7 19:06:02 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 7 Jan 2016 16:06:02 -0800 Subject: "fork" command? In-Reply-To: <563B4880-48C2-4EB8-A19E-2B6E5398B929@appisle.net> References: <563B4880-48C2-4EB8-A19E-2B6E5398B929@appisle.net> Message-ID: <568EFD6A.9060800@fourthworld.com> Monte Goulding wrote: >> On 8 Jan 2016, at 6:03 am, Richard Gaskin wrote: >> >> I think we need a new command that launches a specified process >> but in a way that uses a call to "fork" to pass file descriptors >> (which include sockets and other I/O info) to the child process. >> >> In many ways it would work very similarly to the existing "open >> process", but allow params to give the child process access to >> things like socket connections, pipes, files, etc. the parent >> process has access to at the time the child process is launched. >> >> It would seem least intrusive on the code base to implement it as >> a new command, perhaps called "fork". > > > Hmm? I?m not convinced we need this for FastCGI. Apache mod_fcgid > will start up processes for you and for Nginx and other servers > that don?t do that you could use spawn-fcgi. My understanding is that spawn-fcgi uses fork, no? > We mainly need two things for FastCGI: > - an engine with the FastCGI accept loop as the main loop (LC Server > just starts up and quits at the end of the code and standalones just > keep looping until you quit). I believe that has more to do with the nature of CGI than with LC per se. That is, as a CGI any engine (Perl, Python, Ruby, LiveCode) will be born, live, and die during the request. But with FastCGI the engine is only loaded once, and instances forked with requests as needed, and using fork they get the socket and other data needed for the child process to handle the task. Some engines may use multithreading rather than multiprocessing, but the difference is less of a concern on Linux than on Windows since Linux spawns processes much more efficiently. If multithreading were pursued as an alternative to multiprocessing via fork, I fear a threading subsystem would be much more work to implement, no? > - to decide on how to handle things like global variable scope etc > because you?re going to end up with multiple requests to the same > environment. How is that handled in the FastCGI version of PHP? I would imagine it would be no more onerous than with threading, arguably simpler since so much of the action takes places in a separate process. I wouldn't expect to be able to use FastCGI without modifying some of my scripting habits; as with any new feature, just a few new things to learn and keep track of. Indeed, I would welcome the opportunity for it to become possible to learn those things. > After some thought and considering the new script only stack format > I came to the conclusion that it would be better not to do the php > style - startup - the process is started do anything you can do once for > all requests > - acceptRequest - a new request needs to be handled and the global > environment variables $_SERVER etc have been updated where > necessary (or these could be parameters I guess) > - shutdown - something is killing the process so do anything you > need to do to cleanup > > The basic idea is you can do something like this: > > local sCounter = 0 > local sProcessStarted > > on startup > put the seconds into sProcessStarted > end startup > > on acceptRequest > add 1 to sCounter > put ?Started:? && sProcessStarted & return & ?Counter:? && sCounter > end acceptRequest > > If you only spawn one process then each time you hit the server the > counter would increment. In that outline would "acceptRequest" be a request from Apache, or are you proposing a system that replaces Apache to accept requests directly from the client? Once we have forking we could completely replace Apache (or NGineX or Node.js) with a fully-functioning server for specific applications where the efficiencies of a purpose-built system would be helpful. But even when running under Apache with FastCGI, fork would seem a very useful thing. It's how PHP and other engines are able to scale, and indeed not having it prevents LC from being used in traffic-heavy scenarios. > Of course you could have a FastCGI engine that cleared all the > globals and stacks from memory between requests and loaded any > script only stack file but it?s not quite as much fun, you lose > the advantage of keeping resources in memory and as far as I can > tell it?s a bit more work to do that ;-) As with other persistent systems like LC on the desktop, we should maintain control over which data is purged and which data is shared. We have globals and script-locals, depending on the context we need them, and in a multiprocessing environment we should have the same flexibility. For example, one of the strong advantages of FastCGI or other persistent implementation is that we don't have to create and destroy database connections with every request. That sort of information (along with config data and other such things) we'd want to remain globally available to child processes. Request-specific data could be handled in script-locals, where they can be managed and cleared as needed within the worker process itself, without affecting truly global data managed by the parent. -- 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 lyn.teyla at gmail.com Thu Jan 7 19:17:21 2016 From: lyn.teyla at gmail.com (Lyn Teyla) Date: Fri, 8 Jan 2016 01:17:21 +0100 Subject: mySQL Host access In-Reply-To: References: Message-ID: <2C4E5ED8-EB00-4044-A5B1-B053ED41336F@gmail.com> Peter Haworth wrote: > Is this common practice when accessing mySQL on a host server? If so, is > there a better way to set about accessing a mySQL database in these > circumstances, perhaps using php scripts on the server instead of accessing > the db directly with the LC database functions? One of my hosting providers HostM.com has been offering a free LiveCode-based MariaDB/MySQL API solution. It was previously available only to clients who needed this setup. I told them about the widespread interest in the LiveCode community for such a solution, and they?ve kindly made their API demo available for free download by any LiveCode developer. You can download it at: https://www.hostm.com/tutorials/livecode/api-mariadb-mysql Hope this helps! Lyn From dochawk at gmail.com Thu Jan 7 19:32:41 2016 From: dochawk at gmail.com (Dr. Hawkins) Date: Thu, 7 Jan 2016 16:32:41 -0800 Subject: equivalent to DISTINCT ON (with SUM()) for in-memory SQLite Message-ID: I need to sum amounts and return keys where other fields are the same on an in-memory database. I have my own unique key uniqDna, fields cname and cadr, and numeric field due I want to SUM(due) for each unique cname||cadr, and get get the corresponding keys. DISTINCT ON would due this, but it's not supported by SQLite. At the moment, I'm not seeing any approach other than returning them all, and using cname||cadr as a matrix key, and summing myself. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From pete at lcsql.com Thu Jan 7 20:01:40 2016 From: pete at lcsql.com (Peter Haworth) Date: Fri, 08 Jan 2016 01:01:40 +0000 Subject: mySQL Host access In-Reply-To: <2C4E5ED8-EB00-4044-A5B1-B053ED41336F@gmail.com> References: <2C4E5ED8-EB00-4044-A5B1-B053ED41336F@gmail.com> Message-ID: Hi Alex, You're probably right on the lc server issue (and thanks for the compliment). I already had a library of php db access scripts on my server which I've been using in batch cron jobson a nightly basis so the guts of what I needed to do was already in place, whereas I have never installed LC server or used it. Now that it's all working I will probably try using LC server. My web host is Dreamhost - does anyone know if they support LC server? I have all this working now using php middleware. I ended up using the LC post command with a command code that indicates what SQL action is required plus other parameters that contain the required data for the SQL action. The php script return a JSON containing either the data from SELECT statements, number of rows affected for INSERT/UPDATE/DELETE, or error message information if there's a mySQL error. No SQL commands are sent out, they are all constructed by the sever php script. I think, but would like opinions, that doing it that way means I can embed the data in the SQL commands and not have to worry about injection attacks since the actual SQL commands go directly from my php script to mySQL. Thanks for everyone's input on this. On Thu, Jan 7, 2016 at 4:17 PM Lyn Teyla wrote: > Peter Haworth wrote: > > > Is this common practice when accessing mySQL on a host server? If so, is > > there a better way to set about accessing a mySQL database in these > > circumstances, perhaps using php scripts on the server instead of > accessing > > the db directly with the LC database functions? > > One of my hosting providers HostM.com has been offering a free > LiveCode-based MariaDB/MySQL API solution. It was previously available only > to clients who needed this setup. > > I told them about the widespread interest in the LiveCode community for > such a solution, and they?ve kindly made their API demo available for free > download by any LiveCode developer. > > You can download it at: > > https://www.hostm.com/tutorials/livecode/api-mariadb-mysql > > Hope this helps! > > Lyn > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From monte at appisle.net Thu Jan 7 20:02:08 2016 From: monte at appisle.net (Monte Goulding) Date: Fri, 8 Jan 2016 12:02:08 +1100 Subject: "fork" command? In-Reply-To: <568EFD6A.9060800@fourthworld.com> References: <563B4880-48C2-4EB8-A19E-2B6E5398B929@appisle.net> <568EFD6A.9060800@fourthworld.com> Message-ID: <0C7E12D8-6688-4638-ADFA-4B02A4D55DCF@appisle.net> > My understanding is that spawn-fcgi uses fork, no? Yes. Are you looking to implement your own process manager though? > > > > We mainly need two things for FastCGI: > > - an engine with the FastCGI accept loop as the main loop (LC Server > > just starts up and quits at the end of the code and standalones just > > keep looping until you quit). > > I believe that has more to do with the nature of CGI than with LC per se. That is, as a CGI any engine (Perl, Python, Ruby, LiveCode) will be born, live, and die during the request. > > But with FastCGI the engine is only loaded once, and instances forked with requests as needed, and using fork they get the socket and other data needed for the child process to handle the task. > Some engines may use multithreading rather than multiprocessing, but the difference is less of a concern on Linux than on Windows since Linux spawns processes much more efficiently. > > If multithreading were pursued as an alternative to multiprocessing via fork, I fear a threading subsystem would be much more work to implement, no? spawn-fcgi and mod_fcgid do essentially what you are proposing. Spawn long running processes when told to and manage passing the request to them in a balanced way if there?s more than one process. > > > > - to decide on how to handle things like global variable scope etc > > because you?re going to end up with multiple requests to the same > > environment. > > How is that handled in the FastCGI version of PHP? PHP tears down everything although you can maintain persistent db connections. There?s a few different ways to do FastCGI for PHP as it has it?s own process manager. > I would imagine it would be no more onerous than with threading, arguably simpler since so much of the action takes places in a separate process. I actually haven?t mentioned threading at all... > > I wouldn't expect to be able to use FastCGI without modifying some of my scripting habits; as with any new feature, just a few new things to learn and keep track of. Indeed, I would welcome the opportunity for it to become possible to learn those things. > > In that outline would "acceptRequest" be a request from Apache, or are you proposing a system that replaces Apache to accept requests directly from the client? acceptRequest would be called in response to the FastCGI main loop which processes a requests then waits for the next one to come in. Where it comes from is from anything that implements the FastCGI protocol but it is a HTTP request if that?s what you are asking. > > Once we have forking we could completely replace Apache (or NGineX or Node.js) with a fully-functioning server for specific applications where the efficiencies of a purpose-built system would be helpful. Ah, ok so you wan?t MCHTTPd with child processes and maybe FastCGI but maybe just some custom protocol between them? > > But even when running under Apache with FastCGI, fork would seem a very useful thing. It's how PHP and other engines are able to scale, and indeed not having it prevents LC from being used in traffic-heavy scenarios. I?m not saying it?s not useful, just suggesting letting something else do the forking might be a good idea. > > > > Of course you could have a FastCGI engine that cleared all the > > globals and stacks from memory between requests and loaded any > > script only stack file but it?s not quite as much fun, you lose > > the advantage of keeping resources in memory and as far as I can > > tell it?s a bit more work to do that ;-) > > As with other persistent systems like LC on the desktop, we should maintain control over which data is purged and which data is shared. We have globals and script-locals, depending on the context we need them, and in a multiprocessing environment we should have the same flexibility. > > For example, one of the strong advantages of FastCGI or other persistent implementation is that we don't have to create and destroy database connections with every request. That sort of information (along with config data and other such things) we'd want to remain globally available to child processes. Request-specific data could be handled in script-locals, where they can be managed and cleared as needed within the worker process itself, without affecting truly global data managed by the parent. I think what I was proposing covers that. Cheers Monte From pete at lcsql.com Thu Jan 7 20:03:50 2016 From: pete at lcsql.com (Peter Haworth) Date: Fri, 08 Jan 2016 01:03:50 +0000 Subject: mySQL Host access In-Reply-To: <2C4E5ED8-EB00-4044-A5B1-B053ED41336F@gmail.com> References: <2C4E5ED8-EB00-4044-A5B1-B053ED41336F@gmail.com> Message-ID: Hi Lyn, Thanks for that info, that will certainly help me when I start looking into LC server. Unfortunately, I think I'm about 6 months into a 2-year contract with my current web host so probably could not switch at this point. On Thu, Jan 7, 2016 at 4:17 PM Lyn Teyla wrote: > Peter Haworth wrote: > > > Is this common practice when accessing mySQL on a host server? If so, is > > there a better way to set about accessing a mySQL database in these > > circumstances, perhaps using php scripts on the server instead of > accessing > > the db directly with the LC database functions? > > One of my hosting providers HostM.com has been offering a free > LiveCode-based MariaDB/MySQL API solution. It was previously available only > to clients who needed this setup. > > I told them about the widespread interest in the LiveCode community for > such a solution, and they?ve kindly made their API demo available for free > download by any LiveCode developer. > > You can download it at: > > https://www.hostm.com/tutorials/livecode/api-mariadb-mysql > > Hope this helps! > > Lyn > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From tfabacher at gmail.com Thu Jan 7 20:17:04 2016 From: tfabacher at gmail.com (Todd Fabacher) Date: Fri, 8 Jan 2016 05:17:04 +0400 Subject: Subject: Re: "fork" command? Message-ID: +1 for Me also I would for sure would support funding for this. LiveCode in a Node.JS like solution would be a KILLER!!! Especially if there was a direct connection to MongoDB which we are HEAVY users of. --Todd > Le 7 janv. 2016 ? 20:03, Richard Gaskin a ?crit : > > I'm just far enough into Robert Love's "Linux System Programming" that I think the solution to FastCGI may be much simpler than I'd previously thought. > > Forking seems so common in other tools, and not having it appears to be the one detail standing between where we are now and having not just FastCGI, but also being able to build truly excellent application servers on par with Node.js and other similar systems. > > LiveCode is a great language, and if we had the ability to fork we should be able to build a wide range of powerful, scalable, efficient systems, breaking far beyond the limitations of CGI we're limited to now. From tfabacher at gmail.com Thu Jan 7 20:36:34 2016 From: tfabacher at gmail.com (Todd Fabacher) Date: Fri, 8 Jan 2016 05:36:34 +0400 Subject: "fork" command? Message-ID: Yes, Monte is correct, we switch our servers to Node.JS simply because of the ease of use, speed and productivity gains. BUT...there is tremendous power is using one language as a solution. The barrier of entry for most LiveCoders is very high to get a proper cloud App. If like LC had a solution like Node.JS where you could just drop it on the server. list your scripts, start up the server and BINGO one cloud server ready to go - it would be HUGE. FASTCGI did not offer many advantages over Node.JS, and we are quite happy with it. but Now I need to keep a person on staff who specialize it at the cost of over $100K. The future of LiveCode is the cloud any way you turn, even if you do traditional desktops. All this talk about HTML5 without a good, simple and fast web server is just BS because it is the weak link in the chain. Any productivity gain you might get in HTML5 or LC are going to be killed trying to create a REST API server for your app. I would for sure support any web server with this functionality. I also think this would be a great opportunity to the LC community to step up and do this on it's own as a independent project and let LC guys stay focused. What do you think Monti and Richard? --Todd From pete at lcsql.com Thu Jan 7 20:41:24 2016 From: pete at lcsql.com (Peter Haworth) Date: Fri, 08 Jan 2016 01:41:24 +0000 Subject: equivalent to DISTINCT ON (with SUM()) for in-memory SQLite In-Reply-To: References: Message-ID: I think this will work SELECT sum(due) from mytable WHERE ORDER BY cname || caddr GROUP BY cname || caddr GROUP may have to come before ORDER, don't remember. On Thu, Jan 7, 2016 at 4:32 PM Dr. Hawkins wrote: > I need to sum amounts and return keys where other fields are the same on an > in-memory database. > > I have my own unique key uniqDna, fields cname and cadr, and numeric field > due > > I want to SUM(due) for each unique cname||cadr, and get get the > corresponding keys. > > DISTINCT ON would due this, but it's not supported by SQLite. > > At the moment, I'm not seeing any approach other than returning them all, > and using cname||cadr as a matrix key, and summing myself. > > -- > 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 Thu Jan 7 20:42:52 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 7 Jan 2016 17:42:52 -0800 Subject: "fork" command? In-Reply-To: <0C7E12D8-6688-4638-ADFA-4B02A4D55DCF@appisle.net> References: <0C7E12D8-6688-4638-ADFA-4B02A4D55DCF@appisle.net> Message-ID: <568F141C.6090903@fourthworld.com> Monte Goulding wrote: >> My understanding is that spawn-fcgi uses fork, no? > > Yes. Are you looking to implement your own process manager though? What constitutes "process manager" in this context? >> Once we have forking we could completely replace Apache (or NGineX >> or Node.js) with a fully-functioning server for specific >> applications where the efficiencies of a purpose-built system would >> be helpful. > > Ah, ok so you wan?t MCHTTPd with child processes and maybe FastCGI > but maybe just some custom protocol between them? Ideally, both: FastCGI for use under Apache for building Web sites, and a forkable variant of MCHTTPd for building custom application servers. >> But even when running under Apache with FastCGI, fork would seem >> a very useful thing. It's how PHP and other engines are able to >> scale, and indeed not having it prevents LC from being used in >> traffic-heavy scenarios. > > I?m not saying it?s not useful, just suggesting letting something > else do the forking might be a good idea. I'm not particular how it's done; I'm just looking for options to make scalable services with LC. What would that "something else" be? -- 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 Wow at together.net Thu Jan 7 20:38:57 2016 From: Wow at together.net (Richard Miller) Date: Thu, 7 Jan 2016 20:38:57 -0500 Subject: LC app not displaying correctly on iPhone In-Reply-To: <6B324CB7-BAF2-4240-AF28-B1901F0763D3@gmail.com> References: <6B324CB7-BAF2-4240-AF28-B1901F0763D3@gmail.com> Message-ID: Thank you, Colin. Sent from my iPhone > On Jan 6, 2016, at 1:05 PM, Colin Holgate wrote: > > Exact fit is rarely what you would want to do, it will distort the card area to fit the screen size. > > The black bars are because you didn?t include the Default-568h at 2x.png file. > > >> On Jan 6, 2016, at 9:44 AM, Richard Miller wrote: >> >> I am testing a LC iPhone app on my iPad and iPhone 6S plus. I'm setting the fullscreenmode to "exactFit". The app displays perfectly on the iPad, but there is black space above and below the app on the iPhone. Nothing is cut off; it's just that the app is not filling the iPhone screen. I get the same result in the simulator, even when I set it to iPhone 6 or 5S. >> >> Any suggestions? Building this with OS 10.11.2, LC 7.1, and Xcode 6.4. >> >> Thanks >> Richard Miller >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 Thu Jan 7 20:46:52 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 7 Jan 2016 17:46:52 -0800 Subject: Subject: Re: "fork" command? In-Reply-To: References: Message-ID: <568F150C.7000908@fourthworld.com> Todd Fabacher wrote: >> Le 7 janv. 2016 ? 20:03, Richard Gaskin a ?crit : >> >> LiveCode is a great language, and if we had the ability to fork we >> should be able to build a wide range of powerful, scalable, >> efficient systems, breaking far beyond the limitations of CGI we're >> limited to now. > > +1 for Me also > > I would for sure would support funding for this. LiveCode in a > Node.JS like solution would be a KILLER!!! Especially if there was > a direct connection to MongoDB which we are HEAVY users of. I haven't yet seen a MongoDB lib for LC yet, but Greg Miller's work on a CouchDB library looks very promising: http://forums.livecode.com/viewtopic.php?f=12&t=24925 -- 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 lyn.teyla at gmail.com Thu Jan 7 21:05:07 2016 From: lyn.teyla at gmail.com (Lyn Teyla) Date: Fri, 8 Jan 2016 03:05:07 +0100 Subject: mySQL Host access In-Reply-To: References: <2C4E5ED8-EB00-4044-A5B1-B053ED41336F@gmail.com> Message-ID: <33913EDD-AD17-4A06-8202-23D68D11B270@gmail.com> Peter Haworth wrote: > Thanks for that info, that will certainly help me when I start looking into > LC server. Unfortunately, I think I'm about 6 months into a 2-year > contract with my current web host so probably could not switch at this > point. The stacks are a free download, and from what I can tell, don?t require you to be a HostM.com client. You just need to be able to run LiveCode Server. Lyn From monte at appisle.net Thu Jan 7 21:12:58 2016 From: monte at appisle.net (Monte Goulding) Date: Fri, 8 Jan 2016 13:12:58 +1100 Subject: "fork" command? In-Reply-To: <568F141C.6090903@fourthworld.com> References: <0C7E12D8-6688-4638-ADFA-4B02A4D55DCF@appisle.net> <568F141C.6090903@fourthworld.com> Message-ID: <2CBC5B0F-DF00-4F36-A8C7-81B425EE8AEC@appisle.net> > On 8 Jan 2016, at 12:42 pm, Richard Gaskin wrote: > > Monte Goulding wrote: > > >> My understanding is that spawn-fcgi uses fork, no? > > > > Yes. Are you looking to implement your own process manager though? > > What constitutes "process manager" in this context? Something that spawns processes that handle requests. > > > >> Once we have forking we could completely replace Apache (or NGineX > >> or Node.js) with a fully-functioning server for specific > >> applications where the efficiencies of a purpose-built system would > >> be helpful. > > > > Ah, ok so you wan?t MCHTTPd with child processes and maybe FastCGI > > but maybe just some custom protocol between them? > > Ideally, both: FastCGI for use under Apache for building Web sites, and a forkable variant of MCHTTPd for building custom application servers. OK, well these are two quite distinct requests although you could probably implement the FastCGI protocol in script and then use your proposed fork command if you wanted to load balance over child processes. I was thinking more along the lines of using libfcgi directly in the engine. It?s worth noting that FastCGI doesn?t require fork (http://www.fastcgi.com/drupal/node/6?q=node/22#S3 ) so if you are keen to implement FastCGI in script you could try doing that now. If fork is implemented then it should be easy to add to your implementation. > > > >> But even when running under Apache with FastCGI, fork would seem > >> a very useful thing. It's how PHP and other engines are able to > >> scale, and indeed not having it prevents LC from being used in > >> traffic-heavy scenarios. > > > > I?m not saying it?s not useful, just suggesting letting something > > else do the forking might be a good idea. > > I'm not particular how it's done; I'm just looking for options to make scalable services with LC. What would that "something else" be? I thought I?d covered that. spawn-fcgi, mod_fcgid or some equivalent. Cheers Monte From pete at lcsql.com Thu Jan 7 21:18:07 2016 From: pete at lcsql.com (Peter Haworth) Date: Fri, 08 Jan 2016 02:18:07 +0000 Subject: mySQL Host access In-Reply-To: <33913EDD-AD17-4A06-8202-23D68D11B270@gmail.com> References: <2C4E5ED8-EB00-4044-A5B1-B053ED41336F@gmail.com> <33913EDD-AD17-4A06-8202-23D68D11B270@gmail.com> Message-ID: OK, thanks Lyn. I will have to check with my web host (Dreamhost) how to set LC server up. On Thu, Jan 7, 2016 at 6:05 PM Lyn Teyla wrote: > Peter Haworth wrote: > > > Thanks for that info, that will certainly help me when I start looking > into > > LC server. Unfortunately, I think I'm about 6 months into a 2-year > > contract with my current web host so probably could not switch at this > > point. > > The stacks are a free download, and from what I can tell, don?t require > you to be a HostM.com client. You just need to be able to run LiveCode > Server. > > Lyn > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Thu Jan 7 21:43:05 2016 From: mwieder at ahsoftware.net (Mark Wieder) Date: Thu, 7 Jan 2016 18:43:05 -0800 Subject: mySQL Host access In-Reply-To: <33913EDD-AD17-4A06-8202-23D68D11B270@gmail.com> References: <2C4E5ED8-EB00-4044-A5B1-B053ED41336F@gmail.com> <33913EDD-AD17-4A06-8202-23D68D11B270@gmail.com> Message-ID: <568F2239.7040907@ahsoftware.net> On 01/07/2016 06:05 PM, Lyn Teyla wrote: > The stacks are a free download, and from what I can tell, don?t require you to be a HostM.com client. You just need to be able to run LiveCode Server. Maybe. The url *does* throw a 404, though. -- Mark Wieder ahsoftware at gmail.com From mwieder at ahsoftware.net Thu Jan 7 21:51:47 2016 From: mwieder at ahsoftware.net (Mark Wieder) Date: Thu, 7 Jan 2016 18:51:47 -0800 Subject: mySQL Host access In-Reply-To: <568F2239.7040907@ahsoftware.net> References: <2C4E5ED8-EB00-4044-A5B1-B053ED41336F@gmail.com> <33913EDD-AD17-4A06-8202-23D68D11B270@gmail.com> <568F2239.7040907@ahsoftware.net> Message-ID: <568F2443.5050106@ahsoftware.net> On 01/07/2016 06:43 PM, Mark Wieder wrote: > The url *does* throw a 404, though. ...and now they fixed the link. -- Mark Wieder ahsoftware at gmail.com From rman at free.fr Thu Jan 7 22:08:35 2016 From: rman at free.fr (Robert Mann) Date: Thu, 7 Jan 2016 19:08:35 -0800 (PST) Subject: [On-Rev Tio] could someone test the index.html files in her/his account on Tio? In-Reply-To: <1452028467709-4699941.post@n4.nabble.com> References: <1451950390594-4699917.post@n4.nabble.com> <1451952060939-4699919.post@n4.nabble.com> <568B61B9.5030907@hyperactivesw.com> <1451986360383-4699930.post@n4.nabble.com> <3FABE239-1BD3-41DA-8D24-71D166C85384@m-r-d.de> <1452028467709-4699941.post@n4.nabble.com> Message-ID: <1452222515795-4700013.post@n4.nabble.com> CLOSURE ON THAT SUBJECT :: had to reinstall corrupted files / folders 1. Because I did not have a save copy locally (now I have!) 2. Because they only seem to have one daily backup and told me the corrupted files had just been corrupted before backup... ?? how can they not have a d-1 backup?? I wonder! So DO make a backup of your on-rev accounts locally after each major modification!! ------------------------------------------------------------------------------------- Has anybody made a stack that would scan changes within site files and make local copy of changed folders? ------------------------------------------------------------------------------------- -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/On-Rev-Tio-could-someone-test-the-index-html-files-in-her-his-account-on-Tio-tp4699843p4700013.html Sent from the Revolution - User mailing list archive at Nabble.com. From ambassador at fourthworld.com Fri Jan 8 02:17:37 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 7 Jan 2016 23:17:37 -0800 Subject: [On-Rev Tio] could someone test the index.html files in her/his account on Tio? In-Reply-To: <1452222515795-4700013.post@n4.nabble.com> References: <1452222515795-4700013.post@n4.nabble.com> Message-ID: <568F6291.90104@fourthworld.com> Robert Mann wrote: > So DO make a backup of your on-rev accounts locally after each major > modification!! With portable HDDs selling at around US$50/GB multiple redundant backups are easy, esp. with: > Has anybody made a stack that would scan changes within site files > and make local copy of changed folders? rsync -avz user at server:/path/to/server/folder/ local/folder/ rsync is preinstalled on OS X and Linux; Windows users can install Cygwin to have it (and other great bash tools). -- Richard Gaskin Fourth World Systems Software Design and Development for Desktop, Mobile, and Web ____________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From mark at livecode.com Fri Jan 8 04:47:59 2016 From: mark at livecode.com (Mark Waddingham) Date: Fri, 08 Jan 2016 10:47:59 +0100 Subject: "fork" =?UTF-8?Q?command=3F?= In-Reply-To: <568EB66B.7090508@fourthworld.com> References: <09174E05-E3FA-4090-B3EF-0F13C47E368F@sahores-conseil.com> <568EB66B.7090508@fourthworld.com> Message-ID: <86bc2d2edc1403e92b91bbe82b45763f@livecode.com> On 2016-01-07 20:03, Richard Gaskin wrote: > I'm just far enough into Robert Love's "Linux System Programming" that > I think the solution to FastCGI may be much simpler than I'd > previously thought. I think you need to read a bit more about fork ;) > I think we need a new command that launches a specified process but in > a way that uses a call to "fork" to pass file descriptors (which > include sockets and other I/O info) to the child process. The 'fork()' system call is a very low-level primitive which is the basis of executing other processes on UNIX based systems. You have to use it very carefully - indeed, pretty much any use of fork will almost immediately be followed by a call to some variant of 'exec', which basically runs a different executable in the current process, replacing the original one. > In many ways it would work very similarly to the existing "open > process", but allow params to give the child process access to things > like socket connections, pipes, files, etc. the parent process has > access to at the time the child process is launched. Well 'gives access to' is slightly misleading here as it suggests that you can use them all, which isn't really true. When you fork the kernel: 1) clones the task structure (the thing the kernel uses to represent a process) 2) marks all memory pages as copy on write 3) increases the reference count on every thing attached to a file descriptor This means that when the child process starts running its memory image is identical to the parent, and it has *exactly the same* file descriptors as the parent. Critically, any state which the original process has related to connections to things (e.g. databases or display servers) is the same in parent and child, which means they have the same 'state' on the other end of the connection. This means that any usage of them in either after the fork will cause things to break, probably horrendously as the two processes run asynchronously. This means that you need to engineer things so that the child gets appropriate fd's and the parent keeps appropriate fd's. The typical thing you do here is faff around with pipes. For example, here is the critical bit of code from the engine's open process command: int tochild[2]; int toparent[2]; int4 index = MCnprocesses; if (pipe(tochild) == 0) { if (pipe(toparent) == 0) { MCU_realloc((char **)&MCprocesses, MCnprocesses, MCnprocesses + 1, sizeof(Streamnode)); MCprocesses[MCnprocesses].name = strclone("shell"); MCprocesses[MCnprocesses].mode = OM_NEITHER; MCprocesses[MCnprocesses].ohandle = NULL; MCprocesses[MCnprocesses].ihandle = NULL; if ((MCprocesses[MCnprocesses++].pid = fork()) == 0) { close(tochild[1]); close(0); dup(tochild[0]); close(tochild[0]); close(toparent[0]); close(1); dup(toparent[1]); close(2); dup(toparent[1]); close(toparent[1]); execl(MCshellcmd, MCshellcmd, "-s", NULL); _exit(-1); } MCS_checkprocesses(); close(tochild[0]); char *str = path2utf(ep.getsvalue().clone()); write(tochild[1], str, strlen(str)); delete str; write(tochild[1], "\n", 1); close(tochild[1]); close(toparent[1]); MCS_nodelay(toparent[0]); if (MCprocesses[index].pid == -1) { if (MCprocesses[index].pid > 0) MCS_kill(MCprocesses[index].pid, SIGKILL); MCprocesses[index].pid = 0; MCeerror->add(EE_SHELL_BADCOMMAND, 0, 0, ep.getsvalue()); return IO_ERROR; } } else { close(tochild[0]); close(tochild[1]); MCeerror->add(EE_SHELL_BADCOMMAND, 0, 0, ep.getsvalue()); return IO_ERROR; } } > But for those of you more familiar with Linux system programming, do I > misunderstand the difficulty involved? Yes - fork() isn't what you are looking for. It isn't magical - it does *precisely* what it says it does which is insufficient for what you are proposing (and isn't what it is really used for anywhere). > Forking seems so common in other tools, and not having it appears to > be the one detail standing between where we are now and having not > just FastCGI, but also being able to build truly excellent application > servers on par with Node.js and other similar systems. I'd say forking (except the purpose of implementing the equivalent of shell or open process) is actually very rare. Any language which offers bindings to system libraries and such will likely have os.fork() or some such for completeness - however this doesn't mean it is actually used very much (nor should it - there are few patterns around fork which are safe and generally useful - shell and open process pretty much cover 99% of them). > LiveCode is a great language, and if we had the ability to fork we > should be able to build a wide range of powerful, scalable, efficient > systems, breaking far beyond the limitations of CGI we're limited to > now. Using LiveCode in the contexts you are talking about doesn't require fork(). LiveCode can almost be used as a Node.js type server already - start a -ui standalone engine running which 'accepts connections' and dispatches requests for appropriate protocols out to whatever you need (the missing bit, as I've mentioned before is that some 'long' running things such as db access block, rather than do things asynchronously). Like other Node.js style setups, I'd imagine you'd need some sort of 'load-balancing' magic to farm the Node.js-like processes which farm the requests - I'm sure others know more about this than me. Adding FastCGI support to LiveCode server would also be a similar solution (where the blocking nature of some aspects of LiveCode wouldn't matter so much). When you run this through something such as mod_fcgi, you get the 'farming' of processes for free, so in LiveCode you only have to worry about servicing the requests, rather than how processes get started up and shutdown and used. Basically, managing collections of processes to fulfil CGI-like requests (which is what fork() - because it is what you use to do open process - is used for in these contexts) is already a solved problem - there is no need for it to be solved again. > If all we need is a new command to wrap the Linux "fork" call, after I > finish Love's book I may brush up on my C skills and give it a go. No need to 'brush up' on your C skills. Something along the lines of the following in LiveCode Builder should work: library module org.livecode.fork foreign handler _Fork() returns CInt binds to "fork" public handle Fork() return _Fork() end handler end module Although, as mentioned above, it won't get you very far for the reasons outlined above. Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From mark at livecode.com Fri Jan 8 04:52:47 2016 From: mark at livecode.com (Mark Waddingham) Date: Fri, 08 Jan 2016 10:52:47 +0100 Subject: HTML5 update: why it is =?UTF-8?Q?slow=3F?= In-Reply-To: References: <568D8ECF.4070600@livecode.com> Message-ID: <67a4fe23a97d7564a92cfb6e219fe493@livecode.com> On 2016-01-07 00:25, Monte Goulding wrote: >> On 7 Jan 2016, at 9:01 am, Peter TB Brett >> wrote: >> >> It remains to be seen whether I can figure out how do that. ;-) > > Personally I?d rather you declare force majeure on wait for HTML5 and > apply your considerable talents to implementing non-blocking versions > of everything. Wait et al causes issues all over the place, is usually > the least efficient way of doing things and the end result is almost > always a poor user experience. Given the choice of a little bit of > extra coding work implementing callbacks but with the side benefit > that users won?t be sitting there wondering what?s going on and an > engine that?s either 22x faster or half the size (both of which are > critical issues for HTML5) what do you think people would choose? > > For reference: http://forums.livecode.com/viewtopic.php?f=66&t=18719 > That actually is referring to *blocking wait* which is evil. Non-blocking wait is entirely natural though. It is the difference between being able to write code like: on processThing put url "..." into tInput put revdb_query(..., "SELECT * FROM x WHERE y = %1", "tInput") into tQuery doThingWithQueryResult line 1 of tQuery end processThing And (imagining the existence of certain things): on processThing load url "..." with "processThing2" end processThing on processThing2 pUrlData revb_query_async("processThing3", ..., "SELECT * FROM x WHERE y = %1", "tInput") end processThing2 on processThing3 pQueryData doThingWithQueryResult line 1 of pQueryData end processThing3 Of course, the point you raise a good one - make sure you can everything non-blocking first then try and make non-blocking wait work. At least that way round some things become possible in the HTML5 engine, even if you have to rewrite some code to make it so. Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From monte at appisle.net Fri Jan 8 07:00:00 2016 From: monte at appisle.net (Monte Goulding) Date: Fri, 8 Jan 2016 23:00:00 +1100 Subject: HTML5 update: why it is slow? In-Reply-To: <67a4fe23a97d7564a92cfb6e219fe493@livecode.com> References: <568D8ECF.4070600@livecode.com> <67a4fe23a97d7564a92cfb6e219fe493@livecode.com> Message-ID: I like it! Sent from my iPhone > On 8 Jan 2016, at 8:52 PM, Mark Waddingham wrote: > > on processThing > load url "..." with "processThing2" > end processThing > > on processThing2 pUrlData > revb_query_async("processThing3", ..., "SELECT * FROM x WHERE y = %1", "tInput") > end processThing2 > > on processThing3 pQueryData > doThingWithQueryResult line 1 of pQueryData > end processThing3 From lists at mangomultimedia.com Fri Jan 8 10:20:42 2016 From: lists at mangomultimedia.com (Trevor DeVore) Date: Fri, 8 Jan 2016 10:20:42 -0500 Subject: HTML5 update: why it is slow? In-Reply-To: <67a4fe23a97d7564a92cfb6e219fe493@livecode.com> References: <568D8ECF.4070600@livecode.com> <67a4fe23a97d7564a92cfb6e219fe493@livecode.com> Message-ID: On Fri, Jan 8, 2016 at 4:52 AM, Mark Waddingham wrote: > > That actually is referring to *blocking wait* which is evil. Non-blocking > wait is entirely natural though. It is the difference between being able to > write code like: > > on processThing > put url "..." into tInput > put revdb_query(..., "SELECT * FROM x WHERE y = %1", "tInput") into > tQuery > doThingWithQueryResult line 1 of tQuery > end processThing > And (imagining the existence of certain things): > > on processThing > load url "..." with "processThing2" > end processThing > > on processThing2 pUrlData > revb_query_async("processThing3", ..., "SELECT * FROM x WHERE y = %1", > "tInput") > end processThing2 > > on processThing3 pQueryData > doThingWithQueryResult line 1 of pQueryData > end processThing3 > This whole problem is one I stop to think about every time I start writing desktop code that loads data through a web API. One one hand we want to be able to write code that is compact and easy to understand. On the other hand we want to have a great user experience for people using our apps. Currently you can't have both. The synchronous approach is good because it is easy to read and write. All of the logic is in one place. The synchronous approach is bad given the current engine design for a couple of reasons: 1) The interface will not be as responsive (if at all) while the synchronous requests are going on. Think showing animated busy indicators or resizing windows. 2) If the user closes the window that the synchronous request is being performed in you can't cancel the operation. That code is going to keep running until it is finished. The asynchronous approach is good for a couple of reasons: 1) The user interface is responsive while the operation is being performed. 2) You can cancel requests if the user decides to close a window that relied on the request(s). The asynchronous approach takes a lot more code though. You have to write the callbacks and if you want to cancel the request then you have to keep track of the fact that the request is running so you know to cancel it if the user cancels through the UI. Personally I don't use asynchronous URL calls any longer in my apps. I think the user experience suffers too much. I don't know that there is an ideal solution. I wonder if being able to treat a block of code as a single entity that could be canceled and would report errors? Take this ugly pseudo code for example. It allows me to see all of the operations related to the high level action (processThing) without having to split it up between multiple commands. It also allows the current async action to be canceled. on processThing start asynchronous block "processThing" with error callback "AnErrorOccurred" # or maybe you have something similar to try/catch for reporting errors? request url "..." put the response into tInput query database "myDatabase" with "SELECT * FROM x WHERE y = %1" using variables tInput doThingWithQueryResult the query response end asynchronous block "processThing" end processThing # An error occurred in the asynchronous block. No more code in the block executes and the # error is reported here. command AnErrorOccurred pError, pAsynchronousBlockName answer "Bad things going on in asynchronous block" && pAsynchronousBlockName & ":" && pError. end AnErrorOccurred # If user clicks Cancel then cancel current async operations. command uiCancelAsyncOperations cancel asynchronous block "processThing" -- this would cancel the current async operation and not execute any more code in the block end uiCancelAsyncOperations -- Trevor DeVore ScreenSteps www.screensteps.com - www.clarify-it.com From smaclean at madmansoft.com Fri Jan 8 10:25:34 2016 From: smaclean at madmansoft.com (Stephen MacLean) Date: Fri, 8 Jan 2016 10:25:34 -0500 Subject: HTML5 update: why it is slow? In-Reply-To: References: <568D8ECF.4070600@livecode.com> <67a4fe23a97d7564a92cfb6e219fe493@livecode.com> Message-ID: <92714308-3662-4521-B025-60D377ACFF5D@madmansoft.com> Like sockets with messages ;) > On Jan 8, 2016, at 7:00 AM, Monte Goulding wrote: > > I like it! > > Sent from my iPhone > >> On 8 Jan 2016, at 8:52 PM, Mark Waddingham wrote: >> >> on processThing >> load url "..." with "processThing2" >> end processThing >> >> on processThing2 pUrlData >> revb_query_async("processThing3", ..., "SELECT * FROM x WHERE y = %1", "tInput") >> end processThing2 >> >> on processThing3 pQueryData >> doThingWithQueryResult line 1 of pQueryData >> end processThing3 > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From iowahengst at mac.com Fri Jan 8 11:01:53 2016 From: iowahengst at mac.com (Randy Hengst) Date: Fri, 08 Jan 2016 10:01:53 -0600 Subject: LC app not displaying correctly on iPhone In-Reply-To: <568D6638.1030003@LinkIt.Com> References: <6B324CB7-BAF2-4240-AF28-B1901F0763D3@gmail.com> <568D6638.1030003@LinkIt.Com> Message-ID: Ray, I didn?t see a response to this? Yes, to your question? all you need to do is to make sure you include a link in the Standalone Application Settings for each of the iPhone Splash Screens. You don?t have to name the screens ?Default? or anything specific. LC takes care of that in the build process. be well, randy Randy Hengst www.classroomFocusedSoftware.com > On Jan 6, 2016, at 1:08 PM, Ray wrote: > > What is the Default-568h at 2x.png file and where does it go? Are these simply the files you specify in the Standalone Application settings? > > Would you happen to have a link to any lessons on this? I've Googled it and looked for it in the Livecode dictionary and I'm coming up empty handed. > > On 1/6/2016 1:05 PM, Colin Holgate wrote: >> Exact fit is rarely what you would want to do, it will distort the card area to fit the screen size. >> >> The black bars are because you didn?t include the Default-568h at 2x.png file. >> >> >>> On Jan 6, 2016, at 9:44 AM, Richard Miller wrote: >>> >>> I am testing a LC iPhone app on my iPad and iPhone 6S plus. I'm setting the fullscreenmode to "exactFit". The app displays perfectly on the iPad, but there is black space above and below the app on the iPhone. Nothing is cut off; it's just that the app is not filling the iPhone screen. I get the same result in the simulator, even when I set it to iPhone 6 or 5S. >>> >>> Any suggestions? Building this with OS 10.11.2, LC 7.1, and Xcode 6.4. >>> >>> Thanks >>> Richard Miller >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode 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 8 14:11:32 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 8 Jan 2016 11:11:32 -0800 Subject: [On-Rev Tio] could someone test the index.html files in her/his account on Tio? In-Reply-To: <568F6291.90104@fourthworld.com> References: <568F6291.90104@fourthworld.com> Message-ID: <569009E4.9040501@fourthworld.com> Silly typo - yesterday when I wrote: > With portable HDDs selling at around US$50/GB multiple redundant backups > are easy, esp. with: ...of course I meant "US$50/TB" - it would be insane to pay $50/GB these days. :) -- 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 Fri Jan 8 14:21:18 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 8 Jan 2016 11:21:18 -0800 Subject: "fork" command? In-Reply-To: <2CBC5B0F-DF00-4F36-A8C7-81B425EE8AEC@appisle.net> References: <2CBC5B0F-DF00-4F36-A8C7-81B425EE8AEC@appisle.net> Message-ID: <56900C2E.8060003@fourthworld.com> Monte Goulding wrote: > It?s worth noting that FastCGI doesn?t require fork > http://www.fastcgi.com/drupal/node/6?q=node/22#S3 > so if you are keen to implement FastCGI in script you could > try doing that now. If fork is implemented then it should be > easy to add to your implementation. If not via forking by what means can we handle concurrency? Multiprocessing through worker apps would be a solution except that we have no way to pass the socket connection from the parent app that received it to the child app it would launch. -- 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 matthias_livecode_150811 at m-r-d.de Fri Jan 8 15:01:07 2016 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe | M-R-D) Date: Fri, 8 Jan 2016 21:01:07 +0100 Subject: [On-Rev Tio] could someone test the index.html files in her/his account on Tio? In-Reply-To: <569009E4.9040501@fourthworld.com> References: <568F6291.90104@fourthworld.com> <569009E4.9040501@fourthworld.com> Message-ID: <0161AC55-C99A-4938-A2E4-127D995057F4@m-r-d.de> > Am 08.01.2016 um 20:11 schrieb Richard Gaskin : > > Silly typo - yesterday when I wrote: >> With portable HDDs selling at around US$50/GB multiple redundant backups >> are easy, esp. with: > > ...of course I meant "US$50/TB" - it would be insane to pay $50/GB these days. :) > I remember the time when one had to pay more than the decuple of it for a 10MB HDD from BASF. Matthias > -- > 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 monte at appisle.net Fri Jan 8 15:16:58 2016 From: monte at appisle.net (Monte Goulding) Date: Sat, 9 Jan 2016 07:16:58 +1100 Subject: "fork" command? In-Reply-To: <56900C2E.8060003@fourthworld.com> References: <2CBC5B0F-DF00-4F36-A8C7-81B425EE8AEC@appisle.net> <56900C2E.8060003@fourthworld.com> Message-ID: <1F514379-AD47-476D-891E-470414056BC6@appisle.net> > On 9 Jan 2016, at 6:21 am, Richard Gaskin wrote: > > If not via forking by what means can we handle concurrency? For Apache mod_fcgid will start multiple processes for you. As will spawn-fcgi if you aren?t running a web server that will do it for you. Cheers Monte From jbv at souslelogo.com Fri Jan 8 15:33:09 2016 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Fri, 8 Jan 2016 22:33:09 +0200 Subject: Difference between LC on Mac and LC server Message-ID: <7fe6da674f06a85ad00adbaa81cfc7f9.squirrel@continental.on-rev.com> Hi list When I run the following code on my Mac (LC community 6.5.2) : get "04/17/2016" convert it to seconds put it I get 1460844000 When I run the same code on LC server (on-rev account) I get 1460840400 Any idea wht there's a difference ? Thanks jbv From ambassador at fourthworld.com Fri Jan 8 15:33:42 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 8 Jan 2016 12:33:42 -0800 Subject: "fork" command? In-Reply-To: <1F514379-AD47-476D-891E-470414056BC6@appisle.net> References: <1F514379-AD47-476D-891E-470414056BC6@appisle.net> Message-ID: <56901D26.7080806@fourthworld.com> Monte Goulding wrote: >> On 9 Jan 2016, at 6:21 am, Richard Gaskin wrote: >> >> If not via forking by what means can we handle concurrency? > > For Apache mod_fcgid will start multiple processes for you. As will > spawn-fcgi if you aren?t running a web server that will do it for you. Now I'm super-confused: if we already have everything we need for FastCGI under Apache, what's all the fuss about? -- 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 Fri Jan 8 15:51:28 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 8 Jan 2016 12:51:28 -0800 Subject: Difference between LC on Mac and LC server In-Reply-To: <7fe6da674f06a85ad00adbaa81cfc7f9.squirrel@continental.on-rev.com> References: <7fe6da674f06a85ad00adbaa81cfc7f9.squirrel@continental.on-rev.com> Message-ID: <56902150.1010409@fourthworld.com> jbv wrote: > When I run the following code on my Mac (LC community 6.5.2) : > get "04/17/2016" > convert it to seconds > put it > > I get 1460844000 > > When I run the same code on LC server (on-rev account) I get > 1460840400 > > Any idea wht there's a difference ? With a difference of 3600, it looks like one of the two systems hasn't accounted for a shift in daylight time, or perhaps that daylight time occurs on a different date in your time zone from the time zone the server is in. -- 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 monte at appisle.net Fri Jan 8 15:56:20 2016 From: monte at appisle.net (Monte Goulding) Date: Sat, 9 Jan 2016 07:56:20 +1100 Subject: HTML5 update: why it is slow? In-Reply-To: References: <568D8ECF.4070600@livecode.com> <67a4fe23a97d7564a92cfb6e219fe493@livecode.com> Message-ID: <55B0BD36-B1BF-4A7E-86E4-B84AAAE1017B@appisle.net> > On 9 Jan 2016, at 2:20 am, Trevor DeVore wrote: > > start asynchronous block "processThing" with error callback Background threads then. A while back we were discussing threading (http://forums.livecode.com/viewtopic.php?f=66&t=19569&hilit=+background&sid=b5e636e53ac539017fb945ef9529d824 ) and I proposed: > How about there's two standard queues (foreground, background) with the ability to create more as required. A queue would have a thread and it's own pending messages with engine messages going to the foreground queue. > > Maybe: > > create queue > dispatch to [with param1? n] [[in {foreground|background|}] with message ] > delete queue > > A queue might have it's own instance of the handlers to message but perhaps we would need a sort of common script local which would be accessible from all threads and a regular script local which isn't. In most cases there would be no need to create a named queue but it might be helpful in some cases. However, I don?t think background threads will actually resolve the issue at hand because we still have the blocking commands and waits but they are just on a different thread. One thing that might work to avoid having multiple callbacks would be completion handler style blocks. This would be particularly helpful if their variable scope included the locals in the parent handler. This would also give us the choice of declaring a callback either inside or outside the current handler. Using Mark?s example: on processThing load url "..." with block pResultCode, pData, pError --- end block end processThing ? OR on processThing load url "..." with processThing2 end processThing block processThing2 pResultCode, pData, pError -- end processThing2 Whether it would be feasible to mix in the queue idea with blocks for running scripts asynchronously I?m not sure but it?s probably a neater idea than my dispatch butchery. We would just need something like: do processThing2 in background with tResultCode, tData, tError Cheers Monte From monte at appisle.net Fri Jan 8 16:01:32 2016 From: monte at appisle.net (Monte Goulding) Date: Sat, 9 Jan 2016 08:01:32 +1100 Subject: "fork" command? In-Reply-To: <56901D26.7080806@fourthworld.com> References: <1F514379-AD47-476D-891E-470414056BC6@appisle.net> <56901D26.7080806@fourthworld.com> Message-ID: <22EFF4FC-9988-40F2-AD99-8938EAABA00C@appisle.net> > On 9 Jan 2016, at 7:33 am, Richard Gaskin wrote: > > Now I'm super-confused: if we already have everything we need for FastCGI under Apache, what's all the fuss about? Isn?t it you making the fuss ;-) We don?t actually have everything. Someone either needs to implement the FastCGI protocol in script or create an engine that uses libfcgi to give us a fast cgi main loop. Cheers Monte From ambassador at fourthworld.com Fri Jan 8 16:24:23 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 8 Jan 2016 13:24:23 -0800 Subject: "fork" command? In-Reply-To: <22EFF4FC-9988-40F2-AD99-8938EAABA00C@appisle.net> References: <22EFF4FC-9988-40F2-AD99-8938EAABA00C@appisle.net> Message-ID: <56902907.2030904@fourthworld.com> Monte Goulding wrote: >> On 9 Jan 2016, at 7:33 am, Richard Gaskin wrote: >> >> Now I'm super-confused: if we already have everything we need for >> FastCGI under Apache, what's all the fuss about? > > Isn?t it you making the fuss ;-) I seem to be in good company, since FastCGI is something you and Todd and Andre and many others have expressed an interest in. I enjoy using LC for workgroup solutions where concurrency needs are very modest, but for any potentially-successful public system we need scalability beyond what CGI can provide. If this is too hard to do I suppose we can recommend folks use PHP for FastCGI and CPython for socket servers. I'd just prefer to work in LC if possible. > We don?t actually have everything. Someone either needs to implement > the FastCGI protocol in script or create an engine that uses libfcgi > to give us a fast cgi main loop. Historically, the many discussions about FastCGI support here and elsewhere in the LC community over the years have come down to issue handling concurrency. Since so much of LC is made of blocking commands, handling of any single connection would in many cases lock up handling of all others. I'm fine with writing some code so the main process hands off tasks to workers. The issue I've run into is that I've found no way to hand the socket connection to the worker. -- 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 monte at appisle.net Fri Jan 8 16:53:57 2016 From: monte at appisle.net (Monte Goulding) Date: Sat, 9 Jan 2016 08:53:57 +1100 Subject: "fork" command? In-Reply-To: <56902907.2030904@fourthworld.com> References: <22EFF4FC-9988-40F2-AD99-8938EAABA00C@appisle.net> <56902907.2030904@fourthworld.com> Message-ID: > On 9 Jan 2016, at 8:24 am, Richard Gaskin wrote: > > I'm fine with writing some code so the main process hands off tasks to workers. The issue I've run into is that I've found no way to hand the socket connection to the worker. This is unnecessary. The basic idea with FastCGI is you have a process sitting there that is waiting for a request, handles the request and goes back to waiting for the next one. mod_fcgid, spawn_fcgi and I?m sure other things take this a step further by farming out the requests over multiple processes. Often the processes will have a life of say 500 requests where they will be killed and replaced to protect against memory leaks etc. I?m sure there?s ways to dynamically start up more processes depending on server load too? Mind you it?s just as easy to spin up a whole new instance of your VPS these days? maybe in a different location closer to your customers. Cheers Monte From ambassador at fourthworld.com Fri Jan 8 17:35:49 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 8 Jan 2016 14:35:49 -0800 Subject: "fork" command? In-Reply-To: References: Message-ID: <569039C5.6000607@fourthworld.com> Monte Goulding wrote: >> On 9 Jan 2016, at 8:24 am, Richard Gaskin wrote: >> >> I'm fine with writing some code so the main process hands off tasks >> to workers. The issue I've run into is that I've found no way to >> hand the socket connection to the worker. > > This is unnecessary. It might seems so because I'm interleaving discussion of two different desires: FastCGI and scalable socket servers. If this isn't needed for FastCGI so much the better, but if one were to make a sort of Node.lc I would imagine they'd need to hand off socket connections to workers, no? > The basic idea with FastCGI is you have a process sitting there that > is waiting for a request, handles the request and goes back to > waiting for the next one. mod_fcgid, spawn_fcgi and I?m sure other > things take this a step further by farming out the requests over > multiple processes. Often the processes will have a life of say 500 > requests where they will be killed and replaced to protect against > memory leaks etc. Sounds easy. Why didn't Todd just do that back when he was exploring ways to use FastCGI with LC? As or my earlier fixation on fork(), it stems from an older discussion of these issues here with Andre: As it is, FastCGI is worse than CGI for LC because with CGI we can answer more than one user at the same time by spawning new processes. With FastCGI, while the request was being processed, no other request would be answered. Thats not a FastCGI limitation, the protocol is way smarter than CGI you receive all requests on the same port and you're supposed to fork(). Since we have nothing like forking on LC, we're dead on that front. -- 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 Fri Jan 8 17:53:14 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 8 Jan 2016 14:53:14 -0800 Subject: Beyond POSIX time Message-ID: <56903DDA.4080408@fourthworld.com> Try this: on mouseUp put "1/1/69" into t convert t to secs convert t to short date put t end mouseUp Is there yet a convenient way to handle conversion of dates prior to 1/1/70? -- 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 jacque at hyperactivesw.com Fri Jan 8 18:03:27 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 8 Jan 2016 17:03:27 -0600 Subject: Beyond POSIX time In-Reply-To: <56903DDA.4080408@fourthworld.com> References: <56903DDA.4080408@fourthworld.com> Message-ID: <5690403F.9070500@hyperactivesw.com> On 1/8/2016 4:53 PM, Richard Gaskin wrote: > Try this: > > on mouseUp > put "1/1/69" into t > convert t to secs > convert t to short date > put t > end mouseUp > > Is there yet a convenient way to handle conversion of dates prior to > 1/1/70? > I get 1/1/69. I get the same thing if I specify the year exactly: 1/1/1969. Mac OS X Yosemite. What do you get? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From ambassador at fourthworld.com Fri Jan 8 18:06:20 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 8 Jan 2016 15:06:20 -0800 Subject: Beyond POSIX time In-Reply-To: <5690403F.9070500@hyperactivesw.com> References: <5690403F.9070500@hyperactivesw.com> Message-ID: <569040EC.8080201@fourthworld.com> J. Landman Gay wrote: > On 1/8/2016 4:53 PM, Richard Gaskin wrote: >> Try this: >> >> on mouseUp >> put "1/1/69" into t >> convert t to secs >> convert t to short date >> put t >> end mouseUp >> >> Is there yet a convenient way to handle conversion of dates prior to >> 1/1/70? >> > > I get 1/1/69. I get the same thing if I specify the year exactly: > 1/1/1969. Mac OS X Yosemite. What do you get? -31507200 on Linux, and I believe the same on Windows (though I haven't tested there in a while). Mark Waddingham flagged this a while back, but I was hoping there may have been some enhancement since then: http://quality.livecode.com/show_bug.cgi?id=4941 -- 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 matthias_livecode_150811 at m-r-d.de Fri Jan 8 18:09:40 2016 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe | M-R-D) Date: Sat, 9 Jan 2016 00:09:40 +0100 Subject: Beyond POSIX time In-Reply-To: <56903DDA.4080408@fourthworld.com> References: <56903DDA.4080408@fourthworld.com> Message-ID: <84A637E8-3BAD-4EDF-8CA9-0D1521215B29@m-r-d.de> Hi, Malte created a date library https://github.com/derbrill/libdate If i remember right it can handle dates below 1970 and above 2036. Matthias > Am 08.01.2016 um 23:53 schrieb Richard Gaskin : > > Try this: > > on mouseUp > put "1/1/69" into t > convert t to secs > convert t to short date > put t > end mouseUp > > Is there yet a convenient way to handle conversion of dates prior to 1/1/70? > > -- > 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 monte at appisle.net Fri Jan 8 18:41:05 2016 From: monte at appisle.net (Monte Goulding) Date: Sat, 9 Jan 2016 10:41:05 +1100 Subject: "fork" command? In-Reply-To: <569039C5.6000607@fourthworld.com> References: <569039C5.6000607@fourthworld.com> Message-ID: <2E87BE1E-61D6-4AD7-86D9-385DA7B0DED6@appisle.net> > On 9 Jan 2016, at 9:35 am, Richard Gaskin wrote: > > Monte Goulding wrote: > >> On 9 Jan 2016, at 8:24 am, Richard Gaskin wrote: > >> > >> I'm fine with writing some code so the main process hands off tasks > >> to workers. The issue I've run into is that I've found no way to > >> hand the socket connection to the worker. > > > > This is unnecessary. > > It might seems so because I'm interleaving discussion of two different desires: FastCGI and scalable socket servers. If this isn't needed for FastCGI so much the better, but if one were to make a sort of Node.lc I would imagine they'd need to hand off socket connections to workers, no? Or you could just act as an intermediary accepting connections from whatever is making the request and then routing the incoming data to the appropriate child process. > > > The basic idea with FastCGI is you have a process sitting there that > > is waiting for a request, handles the request and goes back to > > waiting for the next one. mod_fcgid, spawn_fcgi and I?m sure other > > things take this a step further by farming out the requests over > > multiple processes. Often the processes will have a life of say 500 > > requests where they will be killed and replaced to protect against > > memory leaks etc. > > Sounds easy. Why didn't Todd just do that back when he was exploring ways to use FastCGI with LC? We didn?t get that far > > As or my earlier fixation on fork(), it stems from an older discussion of these issues here with Andre: > > As it is, FastCGI is worse than CGI for LC because with CGI we > can answer more than one user at the same time by spawning new > processes. With FastCGI, while the request was being processed, > no other request would be answered. Thats not a FastCGI limitation, > the protocol is way smarter than CGI you receive all requests on > the same port and you're supposed to fork(). Since we have nothing > like forking on LC, we're dead on that front. > We are going around in circles here a bit. Check the docs for mod_fcgid where there are settings to control the number of processes and spawn rate https://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html The nuts of it is that mod_fcgid will start a new process if it has permission to and there?s a request but no idle processes. Cheers Monte > > > -- > 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 mwieder at ahsoftware.net Fri Jan 8 19:37:16 2016 From: mwieder at ahsoftware.net (Mark Wieder) Date: Fri, 8 Jan 2016 16:37:16 -0800 Subject: Beyond POSIX time In-Reply-To: <569040EC.8080201@fourthworld.com> References: <5690403F.9070500@hyperactivesw.com> <569040EC.8080201@fourthworld.com> Message-ID: <5690563C.3000904@ahsoftware.net> On 01/08/2016 03:06 PM, Richard Gaskin wrote: > Mark Waddingham flagged this a while back, *a while* ... 2007 ... rev 2.8.1rc3 -- Mark Wieder ahsoftware at gmail.com From ambassador at fourthworld.com Fri Jan 8 19:45:04 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 8 Jan 2016 16:45:04 -0800 Subject: "fork" command? In-Reply-To: <2E87BE1E-61D6-4AD7-86D9-385DA7B0DED6@appisle.net> References: <2E87BE1E-61D6-4AD7-86D9-385DA7B0DED6@appisle.net> Message-ID: <56905810.7040602@fourthworld.com> Monte Goulding wrote: >> On 9 Jan 2016, at 9:35 am, Richard Gaskin wrote: >> ...if one were to make a sort of Node.lc I would imagine they'd >> need to hand off socket connections to workers, no? > > Or you could just act as an intermediary accepting connections from > whatever is making the request and then routing the incoming data to > the appropriate child process. I've used that and it seems to work well enough, but my concern is that if scaled large enough it may be even better to not have a single instance handling all connections. Admittedly this is completely theoretical for me at the moment. I don't have any project I'm working on right now that needs to solve the C10k problem. I'm just hoping to ensure that if/when I come up with something really successful, I will have built it on a toolkit that can scale. And when we consider Eve Online, we know scripting languages are up for the task; I'd just like to have confidence LiveCode is one of them. > Check the docs for mod_fcgid where there are settings to control the > number of processes and spawn rate https://httpd.apache.org/mod_fcgid >/mod/mod_fcgid.html /mod/mod_fcgid.html> > > The nuts of it is that mod_fcgid will start a new process if it has > permission to and there?s a request but no idle processes. Good lead to add to my studies. Thanks. -- 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 monte at appisle.net Fri Jan 8 19:53:03 2016 From: monte at appisle.net (Monte Goulding) Date: Sat, 9 Jan 2016 11:53:03 +1100 Subject: "fork" command? In-Reply-To: <56905810.7040602@fourthworld.com> References: <2E87BE1E-61D6-4AD7-86D9-385DA7B0DED6@appisle.net> <56905810.7040602@fourthworld.com> Message-ID: <490257C6-FB30-42B4-88E3-A5E6969896CF@appisle.net> Isn't that when you deploy your app on EC2 instances with Elasitc Load Balancer and all your static content served by CloudFront from S3? Sent from my iPhone > On 9 Jan 2016, at 11:45 AM, Richard Gaskin wrote: > > I've used that and it seems to work well enough, but my concern is that if scaled large enough it may be even better to not have a single instance handling all connections. From ambassador at fourthworld.com Fri Jan 8 20:27:50 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 8 Jan 2016 17:27:50 -0800 Subject: "fork" command? In-Reply-To: <490257C6-FB30-42B4-88E3-A5E6969896CF@appisle.net> References: <490257C6-FB30-42B4-88E3-A5E6969896CF@appisle.net> Message-ID: <56906216.5090000@fourthworld.com> Monte Goulding wrote: >> On 9 Jan 2016, at 11:45 AM, Richard Gaskin wrote: >> >> I've used that and it seems to work well enough, but my concern is >> that if scaled large enough it may be even better to not have a >> single instance handling all connections. > > Isn't that when you deploy your app on EC2 instances with Elasitc > Load Balancer and all your static content served by CloudFront > from S3? If Amazon was the only way to run web sites that assumption would be correct. But needs vary. Amazon's great for many things, but no single solution is the best option for all needs. For example, game servers like Eve Online don't use Amazon. Everything in life involves tradeoffs. Having managed elastic VPSes valuable for many contexts but isn't a free ride - file I/O is one of several consideration when comparing options: -- 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 monte at appisle.net Fri Jan 8 20:39:28 2016 From: monte at appisle.net (Monte Goulding) Date: Sat, 9 Jan 2016 12:39:28 +1100 Subject: "fork" command? In-Reply-To: <56906216.5090000@fourthworld.com> References: <490257C6-FB30-42B4-88E3-A5E6969896CF@appisle.net> <56906216.5090000@fourthworld.com> Message-ID: <41457324-3160-4EAB-8D03-0BC19A2A49E6@appisle.net> It was just an example. There's obviously more than one way to scale. Sent from my iPhone > On 9 Jan 2016, at 12:27 PM, Richard Gaskin wrote: > > If Amazon was the only way to run web sites that assumption would be correct. From ambassador at fourthworld.com Fri Jan 8 20:48:17 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 8 Jan 2016 17:48:17 -0800 Subject: "fork" command? In-Reply-To: <41457324-3160-4EAB-8D03-0BC19A2A49E6@appisle.net> References: <41457324-3160-4EAB-8D03-0BC19A2A49E6@appisle.net> Message-ID: <569066E1.8080007@fourthworld.com> Monte Goulding wrote: > There's obviously more than one way to scale. Agreed. The question I and others may have not far down the road, and the question Todd already faced, is whether LiveCode can be a part of it. If I were to play it safe I could limit LiveCode to the client only, and use industry-standard tools for everything on the backend. But I like LiveCode. I'd even go so far as to say that I love it. And when I see truly massive systems like Eve Online, and efficient systems like Node.js, I see things that are very close to what LiveCode can do right now - but is LiveCode close enough to do them? I don't know. That's what I'm hoping to learn. -- 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 Fri Jan 8 22:09:45 2016 From: dunbarx at aol.com (dunbarx at aol.com) Date: Fri, 8 Jan 2016 22:09:45 -0500 Subject: Beyond POSIX time In-Reply-To: <56903DDA.4080408@fourthworld.com> References: <56903DDA.4080408@fourthworld.com> Message-ID: <152245c77fe-5df6-5db6@webprd-a91.mail.aol.com> Richard. I get the date you first put in. Tried several, all the way back to the battle of Hastings. All good The negative seconds do the math as well as ordinary ones. The thing went south when I tried the birth of Charlemangne. I suppose thee digit dates are not well received. Craig -----Original Message----- From: Richard Gaskin To: How to use LiveCode Sent: Fri, Jan 8, 2016 5:54 pm Subject: Beyond POSIX time Try this: on mouseUp put "1/1/69" into t convert t to secs convert t to short date put t end mouseUp Is there yet a convenient way to handle conversion of dates prior to 1/1/70? -- 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 mwieder at ahsoftware.net Fri Jan 8 22:16:58 2016 From: mwieder at ahsoftware.net (Mark Wieder) Date: Fri, 8 Jan 2016 19:16:58 -0800 Subject: "fork" command? In-Reply-To: <569066E1.8080007@fourthworld.com> References: <41457324-3160-4EAB-8D03-0BC19A2A49E6@appisle.net> <569066E1.8080007@fourthworld.com> Message-ID: <56907BAA.4090905@ahsoftware.net> On 01/08/2016 05:48 PM, Richard Gaskin wrote: > But I like LiveCode. I'd even go so far as to say that I love it. And > when I see truly massive systems like Eve Online, and efficient systems > like Node.js, I see things that are very close to what LiveCode can do > right now - but is LiveCode close enough to do them? I don't know. > That's what I'm hoping to learn. It's an interesting philosophy. I usually go the other way around. I think part of maturing as a developer is being able to pick an appropriate tool for a given job. I've had to drop LiveCode as a platform for multiple projects when it wasn't up to the job or I hit brick walls with it. I'm not much of a php fan, but if it does the job on the backend I'm fine with using it. Likewise a Rails frontend when LC server isn't up to the task (certificates, totp, etc.). -- Mark Wieder ahsoftware at gmail.com From ambassador at fourthworld.com Fri Jan 8 22:42:09 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 8 Jan 2016 19:42:09 -0800 Subject: "fork" command? In-Reply-To: <56907BAA.4090905@ahsoftware.net> References: <56907BAA.4090905@ahsoftware.net> Message-ID: <56908191.6090207@fourthworld.com> Mark Wieder wrote: > I think part of maturing as a developer is being able to pick an > appropriate tool for a given job. And as a business owner as well. I'm willing to explore the question, but I'm not betting my business on it; hence the exploration. It would benefit the community, and by extension the company and even myself, if I could help find truly scalable solutions for using LiveCode on a server. But if I can't find 'em I have nothing less than the entire world of options all other devs have to choose from. :) -- Richard Gaskin Fourth World Systems Software Design and Development for Desktop, Mobile, and Web ____________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From admin at FlexibleLearning.com Sat Jan 9 06:21:00 2016 From: admin at FlexibleLearning.com (FlexibleLearning.com) Date: Sat, 9 Jan 2016 11:21:00 -0000 Subject: Beyond POSIX time Message-ID: <002101d14acf$d24d9300$76e8b900$@FlexibleLearning.com> > I get the date you first put in. Tried several, all the way back to the battle of > Hastings. All good The negative seconds do the math as well as ordinary > ones. If you got a Saturday for 14 October 1066, all good. Otherwise the algorithm is not accounting for the 1582 or 1752 calendar changes. > The thing went south when I tried the birth of Charlemangne. I suppose thee > digit dates are not well received. Which date are you using? There are several suggested... 2 April 742AD was a Monday 2 April 747AD was a Sunday 2 April 748AD was a Tuesday DatePicker for LiveCode www.flexiblelearning.com/datepicker Hugh Senior FLCo From ambassador at fourthworld.com Sat Jan 9 09:44:09 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 9 Jan 2016 06:44:09 -0800 Subject: Beyond POSIX time In-Reply-To: <152245c77fe-5df6-5db6@webprd-a91.mail.aol.com> References: <152245c77fe-5df6-5db6@webprd-a91.mail.aol.com> Message-ID: <56911CB9.1000006@fourthworld.com> dunbarx wrote: > On 1/8/2016 4:53 PM, Richard Gaskin wrote: >> Try this: >> >> on mouseUp >> put "1/1/69" into t >> convert t to secs >> convert t to short date >> put t >> end mouseUp > > I get the date you first put in. Tried several, all the way back > to the battle of Hastings. All good The negative seconds do the > math as well as ordinary ones. I'm guessing that, like Jacque, you ran that on OS X, where apparently the OS provides extended handling of date ranges beyond what Windows and Linux provide without additional libraries. As Mark Waddingham noted in the report he filed on this: (Note that at present, the 1970 thru 3000 range is guaranteed to work cross-platform, a wider range of dates works on OS X but isn't strictly supported). I don't use Windows often beyond testing and touch-up, but since it's still the most important platform in the world for developer revenue I recognize that whether or not I use it is less important than that my customers use it; i.e., Windows pays my bills. I happen to use Linux for most of my development, and while for client-side apps the number of customer I support for Linux is small, as I move more and more code to servers these sorts of things potentially affect all customers, regardless what OS they're running on the client-side. I'm okay with continuing to use libraries for this. I have some Julian routines I threw together about 15 years ago, and Malte's library is no doubt an even better solution. I was just reminded of this when I came across this forum post yesterday from Sparkout: Calendar pickers still need to be coded around for dates prior to 1970 on Windows. And don't say this is a "bug" on Windows. It can be coded around in script, why can't the coding around be done in the engine? I was double-checking things before I replied there, and had hoped that perhaps the enhancement to handle broader date ranges may have already found its way into the engine. For those of us already hooked on LC it's a small matter to use Malte's lib and hook it into our work. But for newcomers this may from time to time be one of those gotchas that will cause hair to be pulled as they're learning. -- 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 lfredricks at proactive-intl.com Sat Jan 9 13:57:18 2016 From: lfredricks at proactive-intl.com (Lynn Fredricks) Date: Sat, 9 Jan 2016 10:57:18 -0800 Subject: LiveCoders on Twitter - Are You There? Message-ID: <45F3F9022B6A4B01AEE93F3EC510F259@GATEWAY> http://flockaflame.com/lists/LivecodeDevs&Tools/69 Are you posting about Livecode on Twitter? Reply with your @ and I can get you added to this list. Best regards, Lynn Fredricks Paradigma Software http://www.paradigmasoft.com Valentina SQL Server: The Ultra-fast, Royalty Free Database Server From david at viral.academy Sat Jan 9 15:01:18 2016 From: david at viral.academy (David Bovill) Date: Sat, 9 Jan 2016 21:01:18 +0100 Subject: LiveCoders on Twitter - Are You There? In-Reply-To: <45F3F9022B6A4B01AEE93F3EC510F259@GATEWAY> References: <45F3F9022B6A4B01AEE93F3EC510F259@GATEWAY> Message-ID: @fortyfoxes On Saturday, 9 January 2016, Lynn Fredricks wrote: > http://flockaflame.com/lists/LivecodeDevs&Tools/69 > > Are you posting about Livecode on Twitter? Reply with your @ and I can get > you added to this list. > > Best regards, > > Lynn Fredricks > Paradigma Software > http://www.paradigmasoft.com > > Valentina SQL Server: The Ultra-fast, Royalty Free Database Server > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Sat Jan 9 16:55:56 2016 From: bodine at bodinetraininggames.com (tbodine) Date: Sat, 9 Jan 2016 13:55:56 -0800 (PST) Subject: Does user have network connection? Message-ID: <1452376556413-4700051.post@n4.nabble.com> For desktop standalones, is there a function or constant that will tell me if the user has an Internet connection or not? (Can't find one searching the dictionary.) Happy new year! Tom B. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Does-user-have-network-connection-tp4700051.html Sent from the Revolution - User mailing list archive at Nabble.com. From dixonja at hotmail.co.uk Sat Jan 9 17:24:15 2016 From: dixonja at hotmail.co.uk (John Dixon) Date: Sat, 9 Jan 2016 22:24:15 +0000 Subject: Does user have network connection? In-Reply-To: <1452376556413-4700051.post@n4.nabble.com> References: <1452376556413-4700051.post@n4.nabble.com> Message-ID: on mouseUp put "http://www.google.com" into tURL put URL tURL into tempVar end mouseUp if the variable tempVar is empty then there is no internet connection > Date: Sat, 9 Jan 2016 13:55:56 -0800 > From: bodine at bodinetraininggames.com > To: use-revolution at lists.runrev.com > Subject: Does user have network connection? > > For desktop standalones, is there a function or constant that will tell me if > the user has an Internet connection or not? (Can't find one searching the > dictionary.) > > Happy new year! > Tom B. > > > > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/Does-user-have-network-connection-tp4700051.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 Sat Jan 9 18:55:04 2016 From: dochawk at gmail.com (Dr. Hawkins) Date: Sat, 9 Jan 2016 15:55:04 -0800 Subject: Figuring out if something is on the current screen, or getting the current screen rect Message-ID: As I look through screenLoc, screenRect(s), etc., I'm not seeing *any* way to figure out which screen an object is on, short of manually comparing elements of its rect to the various bits of screensRects. In particular, I want to know if another stack (or group) that I set the position of will actually fit onto the current screen, or if I need to move it. Any ideas? -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From mwieder at ahsoftware.net Sat Jan 9 19:26:51 2016 From: mwieder at ahsoftware.net (Mark Wieder) Date: Sat, 9 Jan 2016 16:26:51 -0800 Subject: Figuring out if something is on the current screen, or getting the current screen rect In-Reply-To: References: Message-ID: <5691A54B.2010500@ahsoftware.net> On 01/09/2016 03:55 PM, Dr. Hawkins wrote: > As I look through screenLoc, screenRect(s), etc., I'm not seeing *any* way > to figure out which screen an object is on, short of manually comparing > elements of its rect to the various bits of screensRects. > > > In particular, I want to know if another stack (or group) that I set the > position of will actually fit onto the current screen, or if I need to move > it. *should* you need to know this? I would think that ideally the user should be in control of whether something goes on one screen or another, and that this ability shouldn't be taken away from them. If this really is something you need, then I use the screenrects in more or less the way you describe to figure out what screen something is on. And it's "more or less" because I just look at the loc of the object and compare that with the rect elements of the screenrects. -- Mark Wieder ahsoftware at gmail.com From dochawk at gmail.com Sat Jan 9 19:37:52 2016 From: dochawk at gmail.com (Dr. Hawkins) Date: Sat, 9 Jan 2016 16:37:52 -0800 Subject: Figuring out if something is on the current screen, or getting the current screen rect In-Reply-To: <5691A54B.2010500@ahsoftware.net> References: <5691A54B.2010500@ahsoftware.net> Message-ID: On Sat, Jan 9, 2016 at 4:26 PM, Mark Wieder wrote: > I would think that ideally the user should be in control of whether > something goes on one screen or another, and that this ability shouldn't be > taken away from them. > AFAIK,live code offers no such option when opening a stack . . . there was a big to-do several years ago when the package maintainer for fvwm on (iirc) debian decided that the user placing each and every window was the only sane way to handle it. I believe that it actually deleted other methods from existing .fvwmrc or some such (or I may be mixing idiotic choices). Anyway, in this case, I'm popping up a stack over a field with the list of valid choices (I needed more than the built in popups). I just want them to stay on the screen . . . It's just insane that there's no notion of a current screen . . . -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From scott at tactilemedia.com Sat Jan 9 19:53:39 2016 From: scott at tactilemedia.com (Scott Rossi) Date: Sat, 09 Jan 2016 16:53:39 -0800 Subject: Figuring out if something is on the current screen, or getting the current screen rect In-Reply-To: References: Message-ID: I believe the screenRects is the only function that determines if you have multiple monitors available. So comparing stack rects or plugging points from your group rect/s into the globalLoc function would be the way to go. The screenRect by itself determines the rect of the main monitor. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 1/9/16, 3:55 PM, "use-livecode on behalf of Dr. Hawkins" wrote: >As I look through screenLoc, screenRect(s), etc., I'm not seeing *any* way >to figure out which screen an object is on, short of manually comparing >elements of its rect to the various bits of screensRects. > > >In particular, I want to know if another stack (or group) that I set the >position of will actually fit onto the current screen, or if I need to >move >it. > >Any ideas? >-- >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 9 20:44:43 2016 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Sun, 10 Jan 2016 09:44:43 +0800 Subject: Beyond POSIX time In-Reply-To: <002101d14acf$d24d9300$76e8b900$@FlexibleLearning.com> References: <002101d14acf$d24d9300$76e8b900$@FlexibleLearning.com> Message-ID: On Sat, Jan 9, 2016 at 7:21 PM, FlexibleLearning.com < admin at flexiblelearning.com> wrote: > > If you got a Saturday for 14 October 1066, all good. Otherwise the > algorithm > is not accounting for the 1582 or 1752 calendar changes. > > Yes, often forgotten, as is the particular country you you may live in or be referring to. Here's a good summary on how to deal with dates and time - make sure you watch to the very end where he discusses the Google approach to one of the vary many idiosyncrasies of time you've probably never thought of: https://www.youtube.com/watch?v=-5wpm-gesOY From monte at appisle.net Sat Jan 9 21:20:09 2016 From: monte at appisle.net (Monte Goulding) Date: Sun, 10 Jan 2016 13:20:09 +1100 Subject: Figuring out if something is on the current screen, or getting the current screen rect In-Reply-To: References: Message-ID: <7322FABF-C824-45B7-B69B-3740001B119D@appisle.net> > On 10 Jan 2016, at 10:55 am, Dr. Hawkins wrote: > > As I look through screenLoc, screenRect(s), etc., I'm not seeing *any* way > to figure out which screen an object is on, short of manually comparing > elements of its rect to the various bits of screensRects. put the screen of this stack into theScreen put line theScreen of the screenRects into theStackScreenRect From my memory of following the repo feed the screen of stack was undocumented until recently when Trevor documented it which probably means it is only documented in LC 8 so not sure what version it was introduced but it stands to reason it may have been introduced when the screenRects was... Cheers Monte From jacque at hyperactivesw.com Sat Jan 9 22:03:28 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 09 Jan 2016 21:03:28 -0600 Subject: Figuring out if something is on the current screen, or getting the current screen rect In-Reply-To: References: <5691A54B.2010500@ahsoftware.net> Message-ID: <0605F172-E1E3-4C10-B708-A3FE1297E2F0@hyperactivesw.com> Couldn't you just get the globalLoc of the field and set the stack to that, or an offset of it? On January 9, 2016 6:37:52 PM CST, "Dr. Hawkins" wrote: > > >Anyway, in this case, I'm popping up a stack over a field with the list >of valid choices (I needed more than the built in popups). I just want >them to stay on the screen . . . -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From hh at livecode.org Sun Jan 10 01:21:20 2016 From: hh at livecode.org (-hh) Date: Sun, 10 Jan 2016 07:21:20 +0100 Subject: Figuring out if something is on the current screen, or getting the current screen rect Message-ID: It's really hard to say how all the advices to this question apply to the new feature of "SplitView" of OSX 10.11 (https://support.apple.com/en-ca/HT204948) Luckily, in the sense of Mark Wieder (and TMHO). From monte at appisle.net Sun Jan 10 02:40:12 2016 From: monte at appisle.net (Monte Goulding) Date: Sun, 10 Jan 2016 18:40:12 +1100 Subject: Figuring out if something is on the current screen, or getting the current screen rect In-Reply-To: References: Message-ID: <22456082-3851-41E5-8F82-94380A70172B@appisle.net> We get Split View for free if we implement fullscreen. I was going to do it for Hacktoberfest but it was interesting working out the syntax and how it interacts with the current fullscreen property and decorations so I went for something simpler instead. Cheers Monte Sent from my iPhone > On 10 Jan 2016, at 5:21 PM, [-hh] wrote: > > It's really hard to say how all the advices to this question apply to the new feature of "SplitView" of OSX 10.11 (https://support.apple.com/en-ca/HT204948) From dave at applicationinsight.com Sun Jan 10 06:36:03 2016 From: dave at applicationinsight.com (Dave Kilroy) Date: Sun, 10 Jan 2016 03:36:03 -0800 (PST) Subject: LiveCoders on Twitter - Are You There? In-Reply-To: References: <45F3F9022B6A4B01AEE93F3EC510F259@GATEWAY> Message-ID: <1452425763040-4700062.post@n4.nabble.com> Thanks Lynn - I think I follow just about everyone on the list anyway :) - @App_Insight_ David Bovill-3 wrote > @fortyfoxes > > On Saturday, 9 January 2016, Lynn Fredricks < > lfredricks@ > > > wrote: > >> http://flockaflame.com/lists/LivecodeDevs&Tools/69 >> >> Are you posting about Livecode on Twitter? Reply with your @ and I can >> get >> you added to this list. >> >> Best regards, >> >> Lynn Fredricks >> Paradigma Software >> http://www.paradigmasoft.com >> >> Valentina SQL Server: The Ultra-fast, Royalty Free Database Server >> >> >> _______________________________________________ >> use-livecode mailing list >> > use-livecode at .runrev > <javascript:;> >> 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 .runrev > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode ----- "The difference between genius and stupidity is; genius has its limits." - Albert Einstein -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/LiveCoders-on-Twitter-Are-You-There-tp4700049p4700062.html Sent from the Revolution - User mailing list archive at Nabble.com. From ray at linkit.com Sun Jan 10 12:24:42 2016 From: ray at linkit.com (Ray) Date: Sun, 10 Jan 2016 12:24:42 -0500 Subject: Does user have network connection? In-Reply-To: References: <1452376556413-4700051.post@n4.nabble.com> Message-ID: <569293DA.2080204@LinkIt.Com> What if Google is out of business :) On 1/9/2016 5:24 PM, John Dixon wrote: > on mouseUp > put "http://www.google.com" into tURL > put URL tURL into tempVar > end mouseUp > > if the variable tempVar is empty then there is no internet connection > >> Date: Sat, 9 Jan 2016 13:55:56 -0800 >> From: bodine at bodinetraininggames.com >> To: use-revolution at lists.runrev.com >> Subject: Does user have network connection? >> >> For desktop standalones, is there a function or constant that will tell me if >> the user has an Internet connection or not? (Can't find one searching the >> dictionary.) >> >> Happy new year! >> Tom B. >> >> >> >> >> -- >> View this message in context: http://runtime-revolution.278305.n4.nabble.com/Does-user-have-network-connection-tp4700051.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 pmbrig at gmail.com Sun Jan 10 12:38:12 2016 From: pmbrig at gmail.com (Peter M. Brigham) Date: Sun, 10 Jan 2016 12:38:12 -0500 Subject: Does user have network connection? In-Reply-To: <569293DA.2080204@LinkIt.Com> References: <1452376556413-4700051.post@n4.nabble.com> <569293DA.2080204@LinkIt.Com> Message-ID: <1AC2E5FA-71BC-4745-A4ED-B186AD6C6E97@gmail.com> Then that's the end of the world as we know it?. -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig On Jan 10, 2016, at 12:24 PM, Ray wrote: > What if Google is out of business :) > > On 1/9/2016 5:24 PM, John Dixon wrote: >> on mouseUp >> put "http://www.google.com" into tURL >> put URL tURL into tempVar >> end mouseUp >> >> if the variable tempVar is empty then there is no internet connection >> >>> Date: Sat, 9 Jan 2016 13:55:56 -0800 >>> From: bodine at bodinetraininggames.com >>> To: use-revolution at lists.runrev.com >>> Subject: Does user have network connection? >>> >>> For desktop standalones, is there a function or constant that will tell me if >>> the user has an Internet connection or not? (Can't find one searching the >>> dictionary.) >>> >>> Happy new year! >>> Tom B. >>> >>> >>> >>> >>> -- >>> View this message in context: http://runtime-revolution.278305.n4.nabble.com/Does-user-have-network-connection-tp4700051.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 > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Sun Jan 10 19:22:17 2016 From: paul at researchware.com (Paul Dupuis) Date: Sun, 10 Jan 2016 19:22:17 -0500 Subject: Does user have network connection? In-Reply-To: <569293DA.2080204@LinkIt.Com> References: <1452376556413-4700051.post@n4.nabble.com> <569293DA.2080204@LinkIt.Com> Message-ID: <5692F5B9.7000706@researchware.com> On 1/10/2016 12:24 PM, Ray wrote: > What if Google is out of business :) Use http://www.un.org/ OR https://www.gov.uk/ OR https://www.gov.uk/ OR ... etc. etc, For good or bad, Governmental organizations last forever... > > On 1/9/2016 5:24 PM, John Dixon wrote: >> on mouseUp >> put "http://www.google.com" into tURL >> put URL tURL into tempVar >> end mouseUp >> >> if the variable tempVar is empty then there is no internet connection >> >>> Date: Sat, 9 Jan 2016 13:55:56 -0800 >>> From: bodine at bodinetraininggames.com >>> To: use-revolution at lists.runrev.com >>> Subject: Does user have network connection? >>> >>> For desktop standalones, is there a function or constant that will >>> tell me if >>> the user has an Internet connection or not? (Can't find one >>> searching the >>> dictionary.) >>> >>> Happy new year! >>> Tom B. >>> >>> >>> >>> >>> -- >>> View this message in context: >>> http://runtime-revolution.278305.n4.nabble.com/Does-user-have-network-connection-tp4700051.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 > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Sun Jan 10 19:39:16 2016 From: alex at tweedly.net (Alex Tweedly) Date: Mon, 11 Jan 2016 00:39:16 +0000 Subject: Does user have network connection? In-Reply-To: <5692F5B9.7000706@researchware.com> References: <1452376556413-4700051.post@n4.nabble.com> <569293DA.2080204@LinkIt.Com> <5692F5B9.7000706@researchware.com> Message-ID: <5692F9B4.7070903@tweedly.net> On 11/01/2016 00:22, Paul Dupuis wrote: > On 1/10/2016 12:24 PM, Ray wrote: >> What if Google is out of business :) > Use http://www.un.org/ OR https://www.gov.uk/ OR https://www.gov.uk/ OR > ... etc. etc, > > For good or bad, Governmental organizations last forever... Yeah, but don't they usually respond very slowly ? :-) -- Alex. From MikeKerner at roadrunner.com Sun Jan 10 20:57:09 2016 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sun, 10 Jan 2016 20:57:09 -0500 Subject: browser widget Message-ID: Is anyone playing with the browser widget? I was trying to see if I could use it to do some scraping, but I am running into issues. 1) It seems that certain javascript-laden pages don't function 2) It does not appear that controlling the widget is going to be very easy, e.g. filling in text fields and then submitting the text, without manually triggering an event. -- 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 peter.brett at livecode.com Mon Jan 11 05:47:38 2016 From: peter.brett at livecode.com (Peter TB Brett) Date: Mon, 11 Jan 2016 10:47:38 +0000 Subject: [ANN] This Week in LiveCode 15 Message-ID: <5693884A.4030901@livecode.com> Hi all, Read about new developments in LiveCode open source and the open source community in today's edition of the "This Week in LiveCode" newsletter! Read issue #15 here: https://goo.gl/obZk4h This is a weekly newsletter about LiveCode, focussing on what's been going on in and around the open source project. New issues will be released weekly on Mondays. We have a dedicated mailing list that will deliver each issue directly to you e-mail, so you don't miss any! If you have anything you'd like mentioned (a project, a discussion somewhere, an upcoming event) then please get in touch. Peter -- Dr Peter Brett LiveCode Open Source Team LiveCode on reddit: https://reddit.com/r/livecode From effendi at wanadoo.fr Mon Jan 11 06:51:47 2016 From: effendi at wanadoo.fr (Francis Nugent Dixon) Date: Mon, 11 Jan 2016 12:51:47 +0100 Subject: Getting Finder results into LiveCode Message-ID: Hi from Beautiful (but wet) Brittany, A tiny problem. I use ?cmd F? to find documents on my computer (never got round to using Spotlight). Is there a way to get the results of such a ?Find? inside a Rev stack ? Anybody done this ??? I am a buggar for backups, and for one original, I have copies on several of my external disks. I want to update all the copies of a file that I just modified, and by hand, it?s a pain ! And just in case I haven?t got enough, is there a way to display in a liveCode stack the results of a ?Get Info? from the finder ? I seem to spend half my life in "housekeeping" -Francis ?Nothing should ever be done for the first time !? From lan.kc.macmail at gmail.com Mon Jan 11 09:11:43 2016 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Mon, 11 Jan 2016 22:11:43 +0800 Subject: Getting Finder results into LiveCode In-Reply-To: References: Message-ID: On Mon, Jan 11, 2016 at 7:51 PM, Francis Nugent Dixon wrote: > > I use ?cmd F? to find documents on my computer > (never got round to using Spotlight). > Absolutely love Spotlight, use it hundreds of time a day and it saves me an incalculable amount of time and effort. Have successfully weened my wife onto it. Once you've learned to cmd + spacebar + type a few letters of the App/Folder/File/Contact/Preference/email content.... then hit Return when the one you are looking for is hilited, you'll never go back to mousing around the Finder. Spotlight is to Finder like LiveCode is to C Is there a way to get the results of such a ?Find? > inside a Rev stack ? Anybody done this ??? > You can 'do as AppleScript' but it's long and convoluted and AppleScript is so ugly once you've worked with LC. ;-) > I am a buggar for backups, and for one original, I > have copies on several of my external disks. > I want to update all the copies of a file that I just > modified, and by hand, it?s a pain ! > > Sounds like you simply need a good piece of back-up software. Love Carbon Copy Cloner myself; have different types of backups (Archive, Clone, entire disc, specific folders, different schedules...) all set up for different and typically multiple discs and if any of them are missed because the laptop either isn't connected to the network disks or physically connected to the direct connect disks then as soon as they are connected the backups/archive will run. Painless. http://bombich.com/ But for this particular situation you could go with the less capable but highly suited to your case and less expensive, SuperDuper http://www.shirt-pocket.com/SuperDuper/SuperDuperDescription.html > And just in case I haven?t got enough, is there a way > to display in a liveCode stack the results of a ?Get Info? > from the finder ? > have a look at the 'files' entry in the Dictionary, particularly the 'detailed files' entry which gives you all you should need. > > I seem to spend half my life in "housekeeping" > But this all begs the question. Unless you are constantly moving your Master file around surely you know where your Master file is and where the back-ups are and so could easily hard code the file patht into LC and have it check the 'detailed file' info and see if you need a fresh copy on your back-up. It's then up to you, are you after an Archive or a straight back up? Either way you will always use the rename (look it up in the Dictionary) command to Rename the Old file to include a Date time stamp before you do the copy. This ensures nothing is lost should the copy fail - power failure half way thru. Once renamed you can then copy the file across. From memory (and I'm probably wrong here) LC can't copy files from one HD to another. I've used the shell command 'ditto' for file transfer across HDs. Look up 'ditto' in your favourite Man Page viewer. To use shell commands in LC look up 'shell' in the Dictionary. If you are after an archive you are done, if you need a simple back-up then you'll need to Trash the old time stamped file. Hint: the easiest way to get a file or folder's full path name as required by these LC commands is to: type cmd + space bar then 'ter' Terminal should now be hilited in Spotlight. Press Return and Terminal will start up. All you then have to do is drag any file or folder into the Terminal window and it's full file path is revealed. WARNING: the Dictionary entry for revDeleteFolder says that on OS X it uses AppleScript to place the folder into the Trash. This is incorrect, the folder is nuked, gone, lost, never to return. This is a CONFIRMED bug # 15176. 'delete file' does the same, but thankfully the Dictionary warns you it's permanent. If you are paranoid, then instead of using revDeleteFolder or delete file, use the rename command to move the file/folder to the Trash. That way it can still be recovered until you manually empty the Trash rename file "/Volumes/Backup Disk 7/MyLifesWork 2016112211.livecode" to "/Volumes/Backup Disk 7/.Trash/MyLifesWork 2016112211.livecode" Note the intentional period before Trash You can do this for Files or Folders. I use to do this ages ago until I eventually bought Carbon Copy Cloner, my files are too way precious it just didn't make cents (yes with a c) to risk them with my own code ;-) I'm sorry if this sounds like I'm telling you to suck eggs but I know there are many lurkers on this List so I write for the lowest common denominator who may be reading - which I appreciate isn't you. :-) From klaus at major-k.de Mon Jan 11 10:04:40 2016 From: klaus at major-k.de (Klaus major-k) Date: Mon, 11 Jan 2016 16:04:40 +0100 Subject: Getting Finder results into LiveCode In-Reply-To: References: Message-ID: <3A6169EA-670E-4E08-A36A-F3FB5E402433@major-k.de> Hi Francis, > Am 11.01.2016 um 12:51 schrieb Francis Nugent Dixon : > > Hi from Beautiful (but wet) Brittany, > > A tiny problem. > > I use ?cmd F? to find documents on my computer > (never got round to using Spotlight). > Is there a way to get the results of such a ?Find? > inside a Rev stack ? Anybody done this ??? > I am a buggar for backups, and for one original, I > have copies on several of my external disks. > I want to update all the copies of a file that I just > modified, and by hand, it?s a pain ! > > And just in case I haven?t got enough, is there a way > to display in a liveCode stack the results of a ?Get Info? > from the finder ? > > I seem to spend half my life in ?housekeeping" you could use SHELL with ?mdfind? like this: ? put "your searchterm? into tSearchTerm put shell("mdfind? && q(tSearchTerm)) into fld "found files? ? function q tString return QUOTE & tString & QUOTE end q SHELL is blocking, but works really fine ;-) Check the MAN pages for mdfind in the terminal. > -Francis > > ?Nothing should ever be done for the first time !? Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From mkoob at rogers.com Mon Jan 11 09:48:15 2016 From: mkoob at rogers.com (Martin Koob) Date: Mon, 11 Jan 2016 06:48:15 -0800 (PST) Subject: Getting Finder results into LiveCode In-Reply-To: References: Message-ID: <1452523695359-4700072.post@n4.nabble.com> Any time I see "can you get this info on a Mac" I head for the shell. I found the following for a terminal command to get file info. http://apple.stackexchange.com/questions/165095/is-there-a-similar-functionality-of-get-info-cmdi-from-the-mac-os-x-termina So it says use the mdls command So then I put it in a shell function in a LiveCode Script. http://apple.stackexchange.com/questions/165095/is-there-a-similar-functionality-of-get-info-cmdi-from-the-mac-os-x-termina on mouseUp answer File "Select file to get info on..." put it into tFilePath put shell( "mdls" && tFilepath) into tFileInfo put tFileInfo into field 1 end mouseUp Then you get the following data in tFileInfo that you would then parse for the data you want. ------------------------------- kMDItemAlternateNames = ( "MyFile.rtf" ) kMDItemContentCreationDate = 2016-01-11 15:04:45 +0000 kMDItemContentModificationDate = 2016-01-11 15:04:45 +0000 kMDItemContentType = "public.rtf" kMDItemContentTypeTree = ( "public.rtf", "public.text", "public.data", "public.item", "public.content" ) kMDItemDateAdded = 2016-01-11 15:04:45 +0000 kMDItemDisplayName = "MyFile" kMDItemFSContentChangeDate = 2016-01-11 15:04:45 +0000 kMDItemFSCreationDate = 2016-01-11 15:04:45 +0000 kMDItemFSCreatorCode = "" kMDItemFSFinderFlags = 16 kMDItemFSHasCustomIcon = (null) kMDItemFSInvisible = 0 kMDItemFSIsExtensionHidden = 1 kMDItemFSIsStationery = (null) kMDItemFSLabel = 0 kMDItemFSName = "MyFile.rtf" kMDItemFSNodeCount = (null) kMDItemFSOwnerGroupID = 20 kMDItemFSOwnerUserID = 501 kMDItemFSSize = 332 kMDItemFSTypeCode = "" kMDItemKind = "Rich Text Document" kMDItemLastUsedDate = 2016-01-11 15:04:45 +0000 kMDItemLogicalSize = 332 kMDItemPhysicalSize = 4096 kMDItemUseCount = 1 kMDItemUsedDates = ( "2016-01-11 05:00:00 +0000" ) ----------------------------- Martin -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Getting-Finder-results-into-LiveCode-tp4700069p4700072.html Sent from the Revolution - User mailing list archive at Nabble.com. From ambassador at fourthworld.com Mon Jan 11 10:32:39 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 11 Jan 2016 07:32:39 -0800 Subject: Does user have network connection? In-Reply-To: <5692F9B4.7070903@tweedly.net> References: <5692F9B4.7070903@tweedly.net> Message-ID: <5693CB17.4030001@fourthworld.com> Alex Tweedly wrote: > On 11/01/2016 00:22, Paul Dupuis wrote: >> On 1/10/2016 12:24 PM, Ray wrote: >>> What if Google is out of business :) >> Use http://www.un.org/ OR https://www.gov.uk/ OR https://www.gov.uk/ >> OR >> ... etc. etc, >> >> For good or bad, Governmental organizations last forever... > Yeah, but don't they usually respond very slowly ? > :-) If anyone here releases a version of an app today that outlives the google.com domain let me be the first to congratulate on having the most desirable problem possible. :) -- 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 jacque at hyperactivesw.com Mon Jan 11 10:32:26 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 11 Jan 2016 09:32:26 -0600 Subject: Getting Finder results into LiveCode In-Reply-To: References: Message-ID: <9268BBDA-75AD-48E8-9973-946E94D781CE@hyperactivesw.com> I'd use Spotlight more too if it would show the file path to each of duplicate copies of a file. Cmd-F does that if you have the path info at the bottom of the window turned on in Finder. I often have a master copy and a duplicate in a shared dropbox folder, as well as multiple historical copies in labelled folders, and I need to know which copy I'm about to open. Cmd-F in Finder gives you a list of all copies with all the usual details (size, date, etc.) so I use that more often. It sounds like that's what Francis needs too. BTW, a quick way to copy (most of) the file path to the clipboard is to Get Info on it and copy the path from the there. You do need to add the short name at the end so it isn't perfect. I've installed a contextual menu addition that copies the path. None of this actually answers the question though. I don't think there's a way to get a found file list in LC without the help of an Applescript or by doing a complete directory walk. On January 11, 2016 8:11:43 AM CST, Kay C Lan wrote: >On Mon, Jan 11, 2016 at 7:51 PM, Francis Nugent Dixon > >wrote: > >> >> I use ?cmd F? to find documents on my computer >> (never got round to using Spotlight). >> > >Absolutely love Spotlight, use it hundreds of time a day and it saves >me an >incalculable amount of time and effort. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From alex at tweedly.net Mon Jan 11 10:56:16 2016 From: alex at tweedly.net (Alex Tweedly) Date: Mon, 11 Jan 2016 15:56:16 +0000 Subject: [ANN] This Week in LiveCode 15 In-Reply-To: <5693884A.4030901@livecode.com> References: <5693884A.4030901@livecode.com> Message-ID: <5693D0A0.6040201@tweedly.net> Every week I look at the newsletter, and in the "Interesting discussion" section I find pointers to the uselist discussions. I follow the uselist pretty closely, but have never found an acceptable way to follow the forum discussions, so I rarely read anything on there (except if an entry on the uselist contains a pointer to a particular discussion). Does the fact that the weekly newsletter always references interesting discussions on uselist but not on the forums indicate: (a) all the interesting discussion happens there, and I am right to (almost) ignore the forums (btw - :-) (b) it is assumed that everyone follows the forums anyway, so there is no need to mention their discussions in the newsletter. (c) whoever draws up this part of the newsletter is, like me, a uselist follower rather than a forum user. Or of course, (d) something else entirely. -- Alex. On 11/01/2016 10:47, Peter TB Brett wrote: > Hi all, > > Read about new developments in LiveCode open source and the open > source community in today's edition of the "This Week in LiveCode" > newsletter! > > Read issue #15 here: https://goo.gl/obZk4h > > > This is a weekly newsletter about LiveCode, focussing on what's been > going on in and around the open source project. New issues will be > released weekly on Mondays. We have a dedicated mailing list that > will deliver each issue directly to you e-mail, so you don't miss any! > > If you have anything you'd like mentioned (a project, a discussion > somewhere, an upcoming event) then please get in touch. > > Peter > From peter.brett at livecode.com Mon Jan 11 11:06:17 2016 From: peter.brett at livecode.com (Peter TB Brett) Date: Mon, 11 Jan 2016 16:06:17 +0000 Subject: "Interesting discussions" for This Week in LiveCode In-Reply-To: <5693D0A0.6040201@tweedly.net> References: <5693884A.4030901@livecode.com> <5693D0A0.6040201@tweedly.net> Message-ID: <5693D2F9.60001@livecode.com> On 11/01/2016 15:56, Alex Tweedly wrote: > Every week I look at the newsletter, and in the "Interesting discussion" > section I find pointers to the uselist discussions. > > I follow the uselist pretty closely, but have never found an acceptable > way to follow the forum discussions, so I rarely read anything on there > (except if an entry on the uselist contains a pointer to a particular > discussion). > > Does the fact that the weekly newsletter always references interesting > discussions on uselist but not on the forums indicate: > > (a) all the interesting discussion happens there, and I am right to > (almost) ignore the forums > (btw - :-) > > (b) it is assumed that everyone follows the forums anyway, so there is > no need to mention their discussions in the newsletter. > > (c) whoever draws up this part of the newsletter is, like me, a uselist > follower rather than a forum user. > > Or of course, > (d) something else entirely. Hi Alex, I'm the person who (usually) puts the newsletter together! I do sometimes include forum topics. I usually prepare the newsletter first thing on a Monday morning. I use Gmane to look through the recent messages in the use list [1], and I use the "Active topics" search on the forums to look through the list of topics that have had recent messages [2]. I usually look for several criteria when I'm choosing a discussion to include: * There should have been more than two people involved * There should be more than about 3-4 messages in the conversation * The conversation should have started since the last newsletter * The topic should be of reasonably general interest I feel like one of the reasons that more mailing list things make it onto the newsletter is because the majority of forum topics seem to follow the "basic LiveCode question, straightforward answer, end" format, where as mailing list discussions usually seem to be more open-ended and involve more people. Also, if you notice any discussions about LiveCode or LiveCode development in other places (Reddit, Hacker News, ...), please send a message to or open an issue on the TWiL GitHub repository so that it can be incorporated into the next issue. Peter [1] http://news.gmane.org/gmane.comp.ide.revolution.user [2] http://forums.livecode.com/search.php?search_id=active_topics -- Dr Peter Brett LiveCode Open Source Team LiveCode on reddit: https://reddit.com/r/livecode From alex at tweedly.net Mon Jan 11 11:06:29 2016 From: alex at tweedly.net (Alex Tweedly) Date: Mon, 11 Jan 2016 16:06:29 +0000 Subject: Multi-platform development. Message-ID: <5693D305.8010401@tweedly.net> I'm considering developing a multi-platform app; i.e. ont where the same app runs on both "desktop" and mobile. On the 'desktop' platforms it will use 'standard' menus, and that will be the main "command" access (along with an optional toolbar, most likely, but the toolbar will give access to a limited number of most often used commands/features, rather than to "everything). But, on mobile, there are no "standard menus", and although they are appearing on a few apps (as homegrown menus), they aren't the usual convention on mobile devices. So, I will have a combination of icons, buttons, etc. on the mobile platforms. I suspect that means I'm in the same boat as many other people have already been in, and I'd like to benefit from your experience. If you have developed an app running on both desktop and mobile: 1. did you follow this same split on how your main command structure was invoked ? 2. how did you manage this ? a. really one app with per-platform customization b. two (or more) apps with as large a percentage as possible put into library stacks (or similar) as possible, with separate menu-based vs button-based apps. c. something else that you could readily explain :-) Many thanks Alex. From ambassador at fourthworld.com Mon Jan 11 11:13:59 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 11 Jan 2016 08:13:59 -0800 Subject: [ANN] This Week in LiveCode 15 In-Reply-To: <5693D0A0.6040201@tweedly.net> References: <5693D0A0.6040201@tweedly.net> Message-ID: <5693D4C7.4010700@fourthworld.com> Alex Tweedly wrote: > Every week I look at the newsletter, and in the "Interesting discussion" > section I find pointers to the uselist discussions. > > I follow the uselist pretty closely, but have never found an acceptable > way to follow the forum discussions, so I rarely read anything on there > (except if an entry on the uselist contains a pointer to a particular > discussion). > > Does the fact that the weekly newsletter always references interesting > discussions on uselist but not on the forums indicate: > > (a) all the interesting discussion happens there, and I am right to > (almost) ignore the forums > (btw - :-) > > (b) it is assumed that everyone follows the forums anyway, so there is > no need to mention their discussions in the newsletter. > > (c) whoever draws up this part of the newsletter is, like me, a uselist > follower rather than a forum user. > > Or of course, > (d) something else entirely. Probably a bit of each. Like the rest of us, Peter is an individual with his own tastes. Some people spend more time with the list, others with the forums, and maybe Peter just spends more time here. That said, in previous newletters I've seen more than a few posts to the forums, and I see him there regularly enough to know he drops in at least weekly. For me the most convenient way to read the forums has been to use the "View new posts" link at the top of the home page. In fact, that's the one I bookmarked, so it saves me a click each time I choose my bookmark. New users will have everything flagged as "new" of course, but the more you come back the more usefully the list only contains threads changed since your last visit. As for whether one can be "right to (almost) ignore the forums" or "wrong" on that is a notion that confuses me. Do whatever you enjoy. I can say on the one hand that the forums appear to be the preference of a majority of newcomers, so there is a larger proportion of beginner-oriented questions than we see on this list. But on the other hand, the separated threaded discussions there, along with simpler persistence, lend themselves to a greater depth in some forums than we often see here. The "Engine Contributors" section and others under the "LiveCode Open Source" heading can be especially worthwhile for serious pros. -- 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 Mon Jan 11 11:03:02 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 11 Jan 2016 08:03:02 -0800 Subject: Getting Finder results into LiveCode In-Reply-To: References: Message-ID: <5693D236.7020407@fourthworld.com> Francis Nugent Dixon wrote: > I use ?cmd F? to find documents on my computer > (never got round to using Spotlight). > Is there a way to get the results of such a ?Find? > inside a Rev stack ? Anybody done this ??? > I am a buggar for backups, and for one original, I > have copies on several of my external disks. > I want to update all the copies of a file that I just > modified, and by hand, it?s a pain ! > > And just in case I haven?t got enough, is there a way > to display in a liveCode stack the results of a ?Get Info? > from the finder ? > > I seem to spend half my life in "housekeeping" If the larger goal here is to manage backups, I can describe what I do these days and although how people manage their backups is a very personal choice hopefully some of this will be useful: With backups I have two goals: - Redundancy, recognizing that drives fail - Versioning, recognizing that the latest version may not always be the one I want I use two mechanisms for versioning, and rsync for everything else. I happen to use ownCloud for syncing not only my LC Plugins folder but also the folder containing my work files (and a few others). Dropbox, Google Drive, and Time Machine also provide versioning, so which one is used is often less important than that at least one of them is used. ownCloud is more flexible than the others, so while it's more work to set up I need a server in the office for testing anyway, so it was convenient enough to add ownCloud to that. So while ownCloud keeps my Ubuntu workstation, Ubuntu laptop, and OS X workstation in sync with a versioned repository through my local server, I also have Time Machine on my Mac to have a second copy versioned through different means. With this, with the various synced machines I have two versioned archives and three current copies of all data. But all of this is in my office, and I live in an earthquake-prone area. Given that portable HDDs are available at about US$50/TB, I have four of them, and each night I sync my work folders and email to one of those drives, and take it home to bring the next one in the following day. Periodically I also save a complete archive of work files as a snapshot (space being cheaper than time). So even if my office is destroyed and some of the offsite drives fail, the worst case leaves me with at least one complete copy of all current and archived files. The key to being able to conveniently backup to a portable drive has been rsync. It's a very smart algo that automatically does a lot of what I think I was reading in your post: With a given source folder and a destination folder, it can recursively go through all folders and compare all files, skipping any where the mod date and file size are the same (there's also an option to force a checksum, but that's usually not needed since it's extremely rare that a file will change in a way that leaves the size and mod date the same). This is quite efficient in itself, but it gets better: once rsync finds a file that needs replacing, it compares segments of the file and only copies the segments that have changed. All this comes together to make a solution that's about as efficient as it can be, and very easy to write into a text file on your drive that you can call whenever you need it, e.g.: rsync -av /Users/username/WorkFolder/ /Volumes/backupdrive/WorkFolder/ rsync has many options (it's a deeply flexible tool), but the ones shown here are: a: archive mode, preserves time stamps, user and group ownership, and other file attributes useful to make a true mirror of the source. v: verbose mode, displays each action in Terminal as it's running; most of the time I don't care, but it's interesting to watch. If backing up over a network it can be useful to add a z option there, which uses gzip compression for each packet copied to reduce transmission time. The end result is half a dozen drives with complete copies of the entire directory structure of all useful files, with time stamps preserved to make a truly complete and multiply redundant collection of backups. rsync is preinstalled on OS X and Linux, and can be used on Windows when the free Cygwin package is installed. There are many tutorials on using rsync on OS X for backups - here's just one: -- 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 lists at mangomultimedia.com Mon Jan 11 13:27:24 2016 From: lists at mangomultimedia.com (Trevor DeVore) Date: Mon, 11 Jan 2016 13:27:24 -0500 Subject: HTML5 update: why it is slow? In-Reply-To: <55B0BD36-B1BF-4A7E-86E4-B84AAAE1017B@appisle.net> References: <568D8ECF.4070600@livecode.com> <67a4fe23a97d7564a92cfb6e219fe493@livecode.com> <55B0BD36-B1BF-4A7E-86E4-B84AAAE1017B@appisle.net> Message-ID: On Fri, Jan 8, 2016 at 3:56 PM, Monte Goulding wrote: > > One thing that might work to avoid having multiple callbacks would be > completion handler style blocks. This would be particularly helpful if > their variable scope included the locals in the parent handler. This would > also give us the choice of declaring a callback either inside or outside > the current handler. > > Using Mark?s example: > > on processThing > load url "..." with block pResultCode, pData, pError > --- > end block > end processThing > > ? OR > > on processThing > load url "..." with processThing2 > end processThing > > block processThing2 pResultCode, pData, pError > -- > end processThing2 Monte, I don't see how you would cancel a running operating with the block example. With your queue idea then you can delete the queue to effectively cancel it. -- Trevor DeVore ScreenSteps www.screensteps.com - www.clarify-it.com From monte at appisle.net Mon Jan 11 14:04:32 2016 From: monte at appisle.net (Monte Goulding) Date: Tue, 12 Jan 2016 06:04:32 +1100 Subject: HTML5 update: why it is slow? In-Reply-To: References: <568D8ECF.4070600@livecode.com> <67a4fe23a97d7564a92cfb6e219fe493@livecode.com> <55B0BD36-B1BF-4A7E-86E4-B84AAAE1017B@appisle.net> Message-ID: <6F2DA200-0E50-4A18-A7E2-C2DCE20E0606@appisle.net> What if the result after end block was a block Id? A bit like send in time. Sent from my iPhone > On 12 Jan 2016, at 5:27 AM, Trevor DeVore wrote: > >> On Fri, Jan 8, 2016 at 3:56 PM, Monte Goulding wrote: >> >> >> One thing that might work to avoid having multiple callbacks would be >> completion handler style blocks. This would be particularly helpful if >> their variable scope included the locals in the parent handler. This would >> also give us the choice of declaring a callback either inside or outside >> the current handler. >> >> Using Mark?s example: >> >> on processThing >> load url "..." with block pResultCode, pData, pError >> --- >> end block >> end processThing >> >> ? OR >> >> on processThing >> load url "..." with processThing2 >> end processThing >> >> block processThing2 pResultCode, pData, pError >> -- >> end processThing2 > > > Monte, > > I don't see how you would cancel a running operating with the block > example. With your queue idea then you can delete the queue to effectively > cancel it. > > -- > Trevor DeVore > ScreenSteps > www.screensteps.com - www.clarify-it.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 rdimola at evergreeninfo.net Mon Jan 11 16:20:58 2016 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Mon, 11 Jan 2016 16:20:58 -0500 Subject: FW: important message (Spam) Message-ID: <007701d14cb5$f7579a00$e606ce00$@net> I just received this. Do we have a problem? Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net From: Sharon McQueen [mailto:neil.davis at davismaterial.com] Sent: Monday, January 11, 2016 4:14 PM To: How to use LiveCode; Mark Waddingham; MikeKerner; Ralph DiMola; mats.wilstrand Subject: Fw: important message Hello! New message, please read LINK DELETED BY RALPH Sharon McQueen From ambassador at fourthworld.com Mon Jan 11 16:25:48 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 11 Jan 2016 13:25:48 -0800 Subject: FW: important message (Spam) In-Reply-To: <007701d14cb5$f7579a00$e606ce00$@net> References: <007701d14cb5$f7579a00$e606ce00$@net> Message-ID: <56941DDC.5000202@fourthworld.com> Ralph DiMola wrote: > I just received this. Do we have a problem? > > From: Sharon McQueen [mailto:neil.davis at davismaterial.com] > Sent: Monday, January 11, 2016 4:14 PM > To: How to use LiveCode; Mark Waddingham; MikeKerner; Ralph DiMola; > mats.wilstrand > Subject: Fw: important message > > Hello! > > New message, please read LINK DELETED BY RALPH > > Sharon McQueen Probably not. For starters, the sender name doesn't match the sending address. I see a lot of these, apparently gathering names of people the recipient is likely to know either by farming this list, Facebook friends, forum members, etc. In all cases the only plausible element is the name; none of the addresses match. I got one this morning from "Mark Waddingham", sent from an address in South Africa. Mark: If you're traveling in South Africa and intended to send me a link to illegal prescription drugs, sorry, but I deleted your email. :) -- 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 jacque at hyperactivesw.com Mon Jan 11 17:33:45 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 11 Jan 2016 16:33:45 -0600 Subject: Windows 10 system version Message-ID: <56942DC9.1030301@hyperactivesw.com> Could someone on Windows 10 tell me what the systemVersion returns? Thanks. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From hlowe at me.com Mon Jan 11 17:13:17 2016 From: hlowe at me.com (hlowe) Date: Mon, 11 Jan 2016 14:13:17 -0800 (PST) Subject: iOS Safari View Controller Message-ID: <1452550397286-4700085.post@n4.nabble.com> Any plans to add LC support for iOS Safari View Controller? Looks like a very simple API with a lot of power that eliminates the need to create and manage browsers within an iOS app. https://developer.apple.com/library/ios/documentation/SafariServices/Reference/SFSafariViewController_Ref/ https://www.macstories.net/stories/ios-9-and-safari-view-controller-the-future-of-web-views/ Henry -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/iOS-Safari-View-Controller-tp4700085.html Sent from the Revolution - User mailing list archive at Nabble.com. From pete at lcsql.com Mon Jan 11 17:41:14 2016 From: pete at lcsql.com (Peter Haworth) Date: Mon, 11 Jan 2016 22:41:14 +0000 Subject: Windows 10 system version In-Reply-To: <56942DC9.1030301@hyperactivesw.com> References: <56942DC9.1030301@hyperactivesw.com> Message-ID: NT 6.2 On Mon, Jan 11, 2016 at 2:34 PM J. Landman Gay wrote: > Could someone on Windows 10 tell me what the systemVersion returns? 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 monte at appisle.net Mon Jan 11 17:47:59 2016 From: monte at appisle.net (Monte Goulding) Date: Tue, 12 Jan 2016 09:47:59 +1100 Subject: iOS Safari View Controller In-Reply-To: <1452550397286-4700085.post@n4.nabble.com> References: <1452550397286-4700085.post@n4.nabble.com> Message-ID: <7BA39750-EAB7-4647-8354-7643FC2D3244@appisle.net> Looks like a pretty simple external to write > On 12 Jan 2016, at 9:13 AM, hlowe wrote: > > Any plans to add LC support for iOS Safari View Controller? Looks like a very > simple API with a lot of power that eliminates the need to create and manage > browsers within an iOS app. > > https://developer.apple.com/library/ios/documentation/SafariServices/Reference/SFSafariViewController_Ref/ > > https://www.macstories.net/stories/ios-9-and-safari-view-controller-the-future-of-web-views/ > > Henry > > > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/iOS-Safari-View-Controller-tp4700085.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 Mon Jan 11 18:23:25 2016 From: paul at researchware.com (Paul Dupuis) Date: Mon, 11 Jan 2016 18:23:25 -0500 Subject: Windows 10 system version In-Reply-To: <56942DC9.1030301@hyperactivesw.com> References: <56942DC9.1030301@hyperactivesw.com> Message-ID: <5694396D.8000708@researchware.com> On 1/11/2016 5:33 PM, J. Landman Gay wrote: > Could someone on Windows 10 tell me what the systemVersion returns? > Thanks. > See http://quality.livecode.com/show_bug.cgi?id=15606 This has only been fixed in 6.7.8 (and related higher 7.x and 8.x releases) From jacque at hyperactivesw.com Mon Jan 11 18:40:40 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 11 Jan 2016 17:40:40 -0600 Subject: Windows 10 system version In-Reply-To: <5694396D.8000708@researchware.com> References: <56942DC9.1030301@hyperactivesw.com> <5694396D.8000708@researchware.com> Message-ID: <56943D78.6040707@hyperactivesw.com> On 1/11/2016 5:23 PM, Paul Dupuis wrote: > On 1/11/2016 5:33 PM, J. Landman Gay wrote: >> Could someone on Windows 10 tell me what the systemVersion returns? >> Thanks. >> > See http://quality.livecode.com/show_bug.cgi?id=15606 > > This has only been fixed in 6.7.8 (and related higher 7.x and 8.x releases) Thanks, that explains why my version check was failing. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From colinholgate at gmail.com Mon Jan 11 18:48:40 2016 From: colinholgate at gmail.com (Colin Holgate) Date: Mon, 11 Jan 2016 18:48:40 -0500 Subject: Windows 10 system version In-Reply-To: References: <56942DC9.1030301@hyperactivesw.com> Message-ID: <6E7163E4-E59D-453E-8B55-F80B8B4E2B1C@gmail.com> Just went through some sort of big Windows 10 update, and the systemVersion is showing NT 10.0 for me. > On Jan 11, 2016, at 5:41 PM, Peter Haworth wrote: > > NT 6.2 > > On Mon, Jan 11, 2016 at 2:34 PM J. Landman Gay > wrote: > >> Could someone on Windows 10 tell me what the systemVersion returns? 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 >> > _______________________________________________ > use-livecode mailing list > use-livecode at 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 11 18:57:42 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 11 Jan 2016 23:57:42 +0000 Subject: LiveCoders on Twitter - Are You There? In-Reply-To: <45F3F9022B6A4B01AEE93F3EC510F259@GATEWAY> References: <45F3F9022B6A4B01AEE93F3EC510F259@GATEWAY> Message-ID: <22FFF1D5-F1DC-4FF3-823D-9F1E1D26D7F2@iotecdigital.com> @RobertSneidar > On Jan 9, 2016, at 10:57 , Lynn Fredricks wrote: > > http://flockaflame.com/lists/LivecodeDevs&Tools/69 > > Are you posting about Livecode on Twitter? Reply with your @ and I can get > you added to this list. > > Best regards, > > Lynn Fredricks > Paradigma Software > http://www.paradigmasoft.com > > Valentina SQL Server: The Ultra-fast, Royalty Free Database Server > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 11 19:00:15 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 11 Jan 2016 18:00:15 -0600 Subject: Windows 10 system version In-Reply-To: References: <56942DC9.1030301@hyperactivesw.com> Message-ID: <5694420F.9010007@hyperactivesw.com> Given the bug that Paul Dupuis mentioned, "NT 6.2" isn't correct. What version of LC did you use? http://quality.livecode.com/show_bug.cgi?id=15606 On 1/11/2016 4:41 PM, Peter Haworth wrote: > NT 6.2 > > On Mon, Jan 11, 2016 at 2:34 PM J. Landman Gay > wrote: > >> Could someone on Windows 10 tell me what the systemVersion returns? 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 >> > _______________________________________________ > use-livecode mailing list > use-livecode 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 bobsneidar at iotecdigital.com Mon Jan 11 19:00:25 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 12 Jan 2016 00:00:25 +0000 Subject: Does user have network connection? In-Reply-To: <1452376556413-4700051.post@n4.nabble.com> References: <1452376556413-4700051.post@n4.nabble.com> Message-ID: <700F073F-944D-487A-A3F9-E86F79740748@iotecdigital.com> What I do is shell out and telnet to the server I am trying to communicate with. Unfortunately this is not reliable for Windows, as Microsoft no lonegr enables the Telnet client by default. Instead you can use ping to a known internet server. Google responds to pings, but it could change in the future. You might try having 3 servers you ping before you fail. Bob S > On Jan 9, 2016, at 13:55 , tbodine wrote: > > For desktop standalones, is there a function or constant that will tell me if > the user has an Internet connection or not? (Can't find one searching the > dictionary.) > > Happy new year! > Tom B. > > > > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/Does-user-have-network-connection-tp4700051.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 bobsneidar at iotecdigital.com Mon Jan 11 19:03:18 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 12 Jan 2016 00:03:18 +0000 Subject: Figuring out if something is on the current screen, or getting the current screen rect In-Reply-To: References: <5691A54B.2010500@ahsoftware.net> Message-ID: There is no notion of a current screen in the OS itself. Do you mean which screen the frontmost window is in? And what do you mean by "In"? A window can overlap two or more screens. Typically if you double click the title bar of a window, the window will maximize on the screen the mouse is in. Bob S > On Jan 9, 2016, at 16:37 , Dr. Hawkins wrote: > > On Sat, Jan 9, 2016 at 4:26 PM, Mark Wieder wrote: > >> I would think that ideally the user should be in control of whether >> something goes on one screen or another, and that this ability shouldn't be >> taken away from them. >> > > AFAIK,live code offers no such option when opening a stack . . . there was > a big to-do several years ago when the package maintainer for fvwm on > (iirc) debian decided that the user placing each and every window was the > only sane way to handle it. I believe that it actually deleted other > methods from existing .fvwmrc or some such (or I may be mixing idiotic > choices). > > Anyway, in this case, I'm popping up a stack over a field with the list of > valid choices (I needed more than the built in popups). I just want them > to stay on the screen . . . > > It's just insane that there's no notion of a current screen . . . > > > -- > 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 jacque at hyperactivesw.com Mon Jan 11 19:04:53 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 11 Jan 2016 18:04:53 -0600 Subject: Windows 10 system version In-Reply-To: <6E7163E4-E59D-453E-8B55-F80B8B4E2B1C@gmail.com> References: <56942DC9.1030301@hyperactivesw.com> <6E7163E4-E59D-453E-8B55-F80B8B4E2B1C@gmail.com> Message-ID: <56944325.2070907@hyperactivesw.com> On 1/11/2016 5:48 PM, Colin Holgate wrote: > Just went through some sort of big Windows 10 update, and the > systemVersion is showing NT 10.0 for me. That's more what I'd expect. Thanks. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From pete at lcsql.com Mon Jan 11 19:08:33 2016 From: pete at lcsql.com (Peter Haworth) Date: Tue, 12 Jan 2016 00:08:33 +0000 Subject: Windows 10 system version In-Reply-To: <56944325.2070907@hyperactivesw.com> References: <56942DC9.1030301@hyperactivesw.com> <6E7163E4-E59D-453E-8B55-F80B8B4E2B1C@gmail.com> <56944325.2070907@hyperactivesw.com> Message-ID: Right, that was on an older version of LC, 6.6.something I think. On Mon, Jan 11, 2016 at 4:05 PM J. Landman Gay wrote: > On 1/11/2016 5:48 PM, Colin Holgate wrote: > > Just went through some sort of big Windows 10 update, and the > > systemVersion is showing NT 10.0 for me. > > That's more what I'd expect. 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 colinholgate at gmail.com Mon Jan 11 19:17:15 2016 From: colinholgate at gmail.com (Colin Holgate) Date: Mon, 11 Jan 2016 19:17:15 -0500 Subject: Windows 10 system version In-Reply-To: <5694420F.9010007@hyperactivesw.com> References: <56942DC9.1030301@hyperactivesw.com> <5694420F.9010007@hyperactivesw.com> Message-ID: <5E601599-048B-4068-9117-0DD188CB8A95@gmail.com> I get NT 6.2 with older LiveCode, but NT 10.0 with 8.0 dp12. > On Jan 11, 2016, at 7:00 PM, J. Landman Gay wrote: > > Given the bug that Paul Dupuis mentioned, "NT 6.2" isn't correct. What version of LC did you use? > > http://quality.livecode.com/show_bug.cgi?id=15606 > > On 1/11/2016 4:41 PM, Peter Haworth wrote: >> NT 6.2 >> >> On Mon, Jan 11, 2016 at 2:34 PM J. Landman Gay >> wrote: >> >>> Could someone on Windows 10 tell me what the systemVersion returns? 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 >>> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 bobsneidar at iotecdigital.com Mon Jan 11 19:20:25 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 12 Jan 2016 00:20:25 +0000 Subject: Figuring out if something is on the current screen, or getting the current screen rect In-Reply-To: <7322FABF-C824-45B7-B69B-3740001B119D@appisle.net> References: <7322FABF-C824-45B7-B69B-3740001B119D@appisle.net> Message-ID: works in 6.7.6 > On Jan 9, 2016, at 18:20 , Monte Goulding wrote: > > >> On 10 Jan 2016, at 10:55 am, Dr. Hawkins wrote: >> >> As I look through screenLoc, screenRect(s), etc., I'm not seeing *any* way >> to figure out which screen an object is on, short of manually comparing >> elements of its rect to the various bits of screensRects. > > put the screen of this stack into theScreen > put line theScreen of the screenRects into theStackScreenRect > > From my memory of following the repo feed the screen of stack was undocumented until recently when Trevor documented it which probably means it is only documented in LC 8 so not sure what version it was introduced but it stands to reason it may have been introduced when the screenRects was... > > Cheers > > Monte > _______________________________________________ > use-livecode mailing list > use-livecode at 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 11 19:24:57 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 12 Jan 2016 00:24:57 +0000 Subject: Does user have network connection? In-Reply-To: <1AC2E5FA-71BC-4745-A4ED-B186AD6C6E97@gmail.com> References: <1452376556413-4700051.post@n4.nabble.com> <569293DA.2080204@LinkIt.Com> <1AC2E5FA-71BC-4745-A4ED-B186AD6C6E97@gmail.com> Message-ID: <0669639F-3BB4-4702-9B7C-43112970262D@iotecdigital.com> And I feel fine. Bob S > On Jan 10, 2016, at 09:38 , Peter M. Brigham wrote: > > Then that's the end of the world as we know it?. > > -- Peter > > Peter M. Brigham > pmbrig at gmail.com > http://home.comcast.net/~pmbrig > > On Jan 10, 2016, at 12:24 PM, Ray wrote: > >> What if Google is out of business :) >> >> On 1/9/2016 5:24 PM, John Dixon wrote: >>> on mouseUp >>> put "http://www.google.com" into tURL >>> put URL tURL into tempVar >>> end mouseUp >>> >>> if the variable tempVar is empty then there is no internet connection >>> >>>> Date: Sat, 9 Jan 2016 13:55:56 -0800 >>>> From: bodine at bodinetraininggames.com >>>> To: use-revolution at lists.runrev.com >>>> Subject: Does user have network connection? >>>> >>>> For desktop standalones, is there a function or constant that will tell me if >>>> the user has an Internet connection or not? (Can't find one searching the >>>> dictionary.) >>>> >>>> Happy new year! >>>> Tom B. >>>> >>>> >>>> >>>> >>>> -- >>>> View this message in context: http://runtime-revolution.278305.n4.nabble.com/Does-user-have-network-connection-tp4700051.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 >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 Mon Jan 11 19:39:37 2016 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Mon, 11 Jan 2016 19:39:37 -0500 Subject: Windows 10 system version In-Reply-To: <56942DC9.1030301@hyperactivesw.com> References: <56942DC9.1030301@hyperactivesw.com> Message-ID: <00a301d14cd1$b7b8ea40$272abec0$@net> Rumors is that 9 was skipped and 10 was used so that legacy SW looking for the leading 9 in Win 95/98 did not go south. 10 is correct. 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 J. Landman Gay Sent: Monday, January 11, 2016 5:34 PM To: LiveCode Mailing List Subject: Windows 10 system version Could someone on Windows 10 tell me what the systemVersion returns? 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 jiml at netrin.com Mon Jan 11 20:14:22 2016 From: jiml at netrin.com (Jim Lambert) Date: Mon, 11 Jan 2016 17:14:22 -0800 Subject: [ANN] This Week in LiveCode 15 In-Reply-To: References: Message-ID: <67F6BE3B-D0D5-479A-861B-25C5185D3963@netrin.com> Alex, I take advantage of the forum feature that lets one subscribe to a digest of new forum posts. In that way the forum becomes more like the use and dev digests - the experience which I prefer. Jim Lambert From scott at tactilemedia.com Mon Jan 11 20:42:59 2016 From: scott at tactilemedia.com (Scott Rossi) Date: Mon, 11 Jan 2016 17:42:59 -0800 Subject: Custom Installed Fonts Broken in LC 7.1.1? Message-ID: Anyone run across issues with custom installed fonts not rendering on iOS (simulator) using LC 7.1.1? I've looked through QCC and am not seeing anything specific. I have a simple dummy stack that renders an icon font as expected in 7.0.6 and fails in 7.1.1. I'm hoping I someone has a workaround for this so I don't have to go back to 7.0.6 or 6.7.8 to deliver a project. Thanks & Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design From hlowe at me.com Mon Jan 11 20:32:47 2016 From: hlowe at me.com (hlowe) Date: Mon, 11 Jan 2016 17:32:47 -0800 (PST) Subject: iOS Safari View Controller In-Reply-To: <7BA39750-EAB7-4647-8354-7643FC2D3244@appisle.net> References: <1452550397286-4700085.post@n4.nabble.com> <7BA39750-EAB7-4647-8354-7643FC2D3244@appisle.net> Message-ID: <1452562367938-4700103.post@n4.nabble.com> Using LiveCode 6.7.8 under iOS 9.1 "launch url pAppURL" switches to a Safari view that includes a "Back to myApp" button in the top left corner. Strangely the "launch url appName://" form, based on an app's custom url, will no longer launch apps on the device. Henry -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/iOS-Safari-View-Controller-tp4700085p4700103.html Sent from the Revolution - User mailing list archive at Nabble.com. From mwieder at ahsoftware.net Mon Jan 11 21:00:40 2016 From: mwieder at ahsoftware.net (Mark Wieder) Date: Mon, 11 Jan 2016 18:00:40 -0800 Subject: Does user have network connection? In-Reply-To: <0669639F-3BB4-4702-9B7C-43112970262D@iotecdigital.com> References: <1452376556413-4700051.post@n4.nabble.com> <569293DA.2080204@LinkIt.Com> <1AC2E5FA-71BC-4745-A4ED-B186AD6C6E97@gmail.com> <0669639F-3BB4-4702-9B7C-43112970262D@iotecdigital.com> Message-ID: <56945E48.8050601@ahsoftware.net> Why top-posting doesn't work: ...drum roll, please On 01/11/2016 04:24 PM, Bob Sneidar wrote: > And I feel fine. > > Bob S > > >> On Jan 10, 2016, at 09:38 , Peter M. Brigham wrote: >> >> Then that's the end of the world as we know it?. >> >> -- Peter -- Mark Wieder ahsoftware at gmail.com From hlowe at me.com Mon Jan 11 21:18:46 2016 From: hlowe at me.com (hlowe) Date: Mon, 11 Jan 2016 18:18:46 -0800 (PST) Subject: iOS Safari View Controller In-Reply-To: <1452562367938-4700103.post@n4.nabble.com> References: <1452550397286-4700085.post@n4.nabble.com> <7BA39750-EAB7-4647-8354-7643FC2D3244@appisle.net> <1452562367938-4700103.post@n4.nabble.com> Message-ID: <1452565126342-4700105.post@n4.nabble.com> OK, on further investigation the "launch url pAppURL" call is actually launching Safari and suspending my App. Returning to my app from the Safari Web view causes my app's splash screen to appear (as it is relaunched by iOS). It would be MUCH nicer to be able to open a Safari View within LC. As Monte says it should be trivial to implement. This is how Apple now recommends viewing web content from within an iOS app and it also offers an elegant solution to the ATS issue that will eventually prevent viewing http sites within an app using LCs MobileControlCreate "browser" syntax. Henry -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/iOS-Safari-View-Controller-tp4700085p4700105.html Sent from the Revolution - User mailing list archive at Nabble.com. From terry.judd at unimelb.edu.au Mon Jan 11 21:45:08 2016 From: terry.judd at unimelb.edu.au (Terry Judd) Date: Tue, 12 Jan 2016 02:45:08 +0000 Subject: mobileCreateLocalNotifications non-functional on iOS 8 Message-ID: Hi all - I?m not having any luck getting local notifications to work (in the simulator at least) on iOS 8 or later. A search of the forum and bugzilla revealed that this was a known issue in the LC 6.6 series (I?ve been developing my app with 6.6.5) but that it was fixed in 6.7.1. That seems true(ish) in that it works in 6.7.1 but the bad news is that it fails in all subsequent versions of LC that I?ve tested (7.1, 7.1.1 and 8.0 dp12). Can anyone else confirm this? I really need local notifications to work in my app ? on all versions of iOS from 7 up ? and I?m not particularly keen on having to build my app with 6.7.1. BTW, the original bug (13927) is marked as closed. I added a comment to this outlining the issue but am I better off opening a new report? Regards, Terry? Terry Judd | Senior Lecturer in Medical Education Department of Medical Education The University of Melbourne M: 0435 961 594 | E: terry.judd at unimelb.edu.au Publications From hlowe at me.com Mon Jan 11 21:35:23 2016 From: hlowe at me.com (hlowe) Date: Mon, 11 Jan 2016 18:35:23 -0800 (PST) Subject: mobileCreateLocalNotifications non-functional on iOS 8 In-Reply-To: References: Message-ID: <1452566123393-4700107.post@n4.nabble.com> Terry, MobileCreateLocalNotification is working fine for me under iOS 9.1 and LC 6.7.8. What problem are you encountering? Henry -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/mobileCreateLocalNotifications-non-functional-on-iOS-8-tp4700106p4700107.html Sent from the Revolution - User mailing list archive at Nabble.com. From terry.judd at unimelb.edu.au Mon Jan 11 22:03:21 2016 From: terry.judd at unimelb.edu.au (Terry Judd) Date: Tue, 12 Jan 2016 03:03:21 +0000 Subject: mobileCreateLocalNotifications non-functional on iOS 8 In-Reply-To: <1452566123393-4700107.post@n4.nabble.com> References: <1452566123393-4700107.post@n4.nabble.com> Message-ID: Hi Henry - I haven?t tried 6.7.8 (but I will), but on every version of LC from 6.7.5 on that I tested mobileCreateLocalNotification did nothing if I selected iOS 8 or greater in the simulator or tested on my iPhone (iOS 9.2). What version/s of Xcode do you have ?installed? under the 'mobile support? option of LC preferences window? Terry... On 12/01/2016 1:35 pm, "use-livecode on behalf of hlowe" wrote: >Terry, > >MobileCreateLocalNotification is working fine for me under iOS 9.1 and LC >6.7.8. What problem are you encountering? > >Henry > > > >-- >View this message in context: >http://runtime-revolution.278305.n4.nabble.com/mobileCreateLocalNotificati >ons-non-functional-on-iOS-8-tp4700106p4700107.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 terry.judd at unimelb.edu.au Mon Jan 11 22:37:47 2016 From: terry.judd at unimelb.edu.au (Terry Judd) Date: Tue, 12 Jan 2016 03:37:47 +0000 Subject: mobileCreateLocalNotifications non-functional on iOS 8 In-Reply-To: References: <1452566123393-4700107.post@n4.nabble.com> Message-ID: OK - 6.7.8 fails for me as well (simulator and device) so maybe it?s tied to the iOS sdks that I have included in the mobile support tab. The latest version of Xcode 6.7.8 will lets me include seems to be 6.4 - which gives me access to the iOS 8.4 simulator and SDK. Terry... On 12/01/2016 2:03 pm, "use-livecode on behalf of Terry Judd" wrote: >Hi Henry - I haven?t tried 6.7.8 (but I will), but on every version of LC >from 6.7.5 on that I tested mobileCreateLocalNotification did nothing if I >selected iOS 8 or greater in the simulator or tested on my iPhone (iOS >9.2). > >What version/s of Xcode do you have ?installed? under the 'mobile support? >option of LC preferences window? > >Terry... > >On 12/01/2016 1:35 pm, "use-livecode on behalf of hlowe" > wrote: > >>Terry, >> >>MobileCreateLocalNotification is working fine for me under iOS 9.1 and LC >>6.7.8. What problem are you encountering? >> >>Henry >> >> >> >>-- >>View this message in context: >>http://runtime-revolution.278305.n4.nabble.com/mobileCreateLocalNotificat >>i >>ons-non-functional-on-iOS-8-tp4700106p4700107.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 terry.judd at unimelb.edu.au Mon Jan 11 22:41:10 2016 From: terry.judd at unimelb.edu.au (Terry Judd) Date: Tue, 12 Jan 2016 03:41:10 +0000 Subject: list of compatible Xcode versions for various LC versions? Message-ID: Hi all, Is there a list of what versions of Xcode are compatible with the various versions of Livecode anywhere? I?m having real trouble trying to work out which combination of LC and Xcode I need to use. I have multiple copies of LC installed (across the 6, 7 and 8 series) and I suspect that isn?t really helping either. Regards, Terry? Terry Judd | Senior Lecturer in Medical Education Department of Medical Education The University of Melbourne M: 0435 961 594 | E: terry.judd at unimelb.edu.au Publications From smaclean at madmansoft.com Mon Jan 11 22:49:37 2016 From: smaclean at madmansoft.com (Stephen MacLean) Date: Mon, 11 Jan 2016 22:49:37 -0500 Subject: list of compatible Xcode versions for various LC versions? In-Reply-To: References: Message-ID: <0A434B29-D419-4DEA-80A3-6BA49FC00952@madmansoft.com> Hi Terry https://livecode.com/resources/support/ask-a-question/ Second one down. hth Steve > On Jan 11, 2016, at 10:41 PM, Terry Judd wrote: > > Hi all, > > Is there a list of what versions of Xcode are compatible with the various versions of Livecode anywhere? I?m having real trouble trying to work out which combination of LC and Xcode I need to use. I have multiple copies of LC installed (across the 6, 7 and 8 series) and I suspect that isn?t really helping either. > > Regards, > > Terry? > > Terry Judd | Senior Lecturer in Medical Education > Department of Medical Education > The University of Melbourne > M: 0435 961 594 | E: terry.judd at unimelb.edu.au > Publications > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From terry.judd at unimelb.edu.au Mon Jan 11 23:24:46 2016 From: terry.judd at unimelb.edu.au (Terry Judd) Date: Tue, 12 Jan 2016 04:24:46 +0000 Subject: list of compatible Xcode versions for various LC versions? In-Reply-To: <0A434B29-D419-4DEA-80A3-6BA49FC00952@madmansoft.com> References: <0A434B29-D419-4DEA-80A3-6BA49FC00952@madmansoft.com> Message-ID: Perfect - thanks Steve! Terry... On 12/01/2016 2:49 pm, "use-livecode on behalf of Stephen MacLean" wrote: >Hi Terry > >https://livecode.com/resources/support/ask-a-question/ > >Second one down. > >hth > >Steve > >> On Jan 11, 2016, at 10:41 PM, Terry Judd >>wrote: >> >> Hi all, >> >> Is there a list of what versions of Xcode are compatible with the >>various versions of Livecode anywhere? I?m having real trouble trying to >>work out which combination of LC and Xcode I need to use. I have >>multiple copies of LC installed (across the 6, 7 and 8 series) and I >>suspect that isn?t really helping either. >> >> Regards, >> >> Terry? >> >> Terry Judd | Senior Lecturer in Medical Education >> Department of Medical >>Education >> The University of Melbourne >> M: 0435 961 594 | E: >>terry.judd at unimelb.edu.au >> >>Publications>=en> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 11 23:37:21 2016 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Tue, 12 Jan 2016 12:37:21 +0800 Subject: Getting Finder results into LiveCode In-Reply-To: <9268BBDA-75AD-48E8-9973-946E94D781CE@hyperactivesw.com> References: <9268BBDA-75AD-48E8-9973-946E94D781CE@hyperactivesw.com> Message-ID: Straying off topic, On Mon, Jan 11, 2016 at 11:32 PM, J. Landman Gay wrote: > I'd use Spotlight more too if it would show the file path to each of > duplicate copies of a file. Unfortunately it involves using the mouse but if you press the Option + cmd keys whilst mousing over any Spotlight result Quicklook should pop-up and at the bottom is the file path - which may be truncated depending on how many folders deep it is buried. If a duplicate file resides on another HD then the name of the HD will appear in faint gray to the right of the name. > I often have a master copy and a duplicate in a shared dropbox folder, as > well as multiple historical copies in labelled folders, and I need to know > which copy I'm about to open. > > I think Labels are now called Tags, make sure all your Tags start with a different letter; Top Priority, Original, Backup, Archive etc. Tag your originals and backups appropriately, then in Spotlight tag:o .li tag:o .pd tag:o .tx --gets all your original livecode stacks, pdfs or txt documents. tag:b canc tag:b my imp --gets your backup copies of your documents based on their name tag:a canc .li --gets all your tagged archive copies of your livecode stack called Cancer Cure My wife makes the common mistake of thinking she needs to type out the entire name and or search criteria; that's the beauty of Spotlight, with the application of a little logic it can save a whole heap of typing and mousing about and point directly to the file you need with less chance of mistakenly opening the wrong one. People who code are definitely logically inclined so they can easily figure out how to set Tags up and what it is about a file/folder that makes it unique so they can type the least into Spotlight tag:o date:yesterday or quicker to type tag:o date:1/11/16 --gets all your original documents created, opened or modified yesterday or on a specific date BUT tag:o Should find all originals and list them by date last modified/opened. So in all likelihood, if the last stack you worked on on Friday is going to be the first stack you work on Monday, tag:o will be all you need to type into Spotlight because the Top Hit will be the last original file you worked on, so hit the Return key to have it Open for you. Once you start really using Spotlight, and you start getting a better sense of how Spotlight thinks, you adapt to make better use of it, ie you don't have Tags like Project 1, Project 2, Project 3. and yes, these are valid inputs as well date:tomorrow date:next month --gets any calendar or reminder items due in the future - although Jacque, if you write a Spotlight plugin for your Back to the Future stack we'll all be able to do a Spotlight search for the Stacks we are going to create 'next week'. :-) From jerry at jhjensen.com Tue Jan 12 00:19:31 2016 From: jerry at jhjensen.com (Jerry Jensen) Date: Mon, 11 Jan 2016 21:19:31 -0800 Subject: list of compatible Xcode versions for various LC versions? In-Reply-To: References: <0A434B29-D419-4DEA-80A3-6BA49FC00952@madmansoft.com> Message-ID: <8C4AEABD-8E07-4BF8-858A-6D7099BF7B6A@jhjensen.com> I am also thankful, but the answer could use updating to current versions. .Jerry > On Jan 11, 2016, at 8:24 PM, Terry Judd wrote: > > Perfect - thanks Steve! > > Terry... > > On 12/01/2016 2:49 pm, "use-livecode on behalf of Stephen MacLean" > smaclean at madmansoft.com> wrote: > >> Hi Terry >> >> https://livecode.com/resources/support/ask-a-question/ >> >> Second one down. >> >> hth >> >> Steve >> >>> On Jan 11, 2016, at 10:41 PM, Terry Judd >>> wrote: >>> >>> Hi all, >>> >>> Is there a list of what versions of Xcode are compatible with the >>> various versions of Livecode anywhere? I?m having real trouble trying to >>> work out which combination of LC and Xcode I need to use. I have >>> multiple copies of LC installed (across the 6, 7 and 8 series) and I >>> suspect that isn?t really helping either. >>> >>> Regards, >>> >>> Terry? >>> >>> Terry Judd | Senior Lecturer in Medical Education >>> Department of Medical >>> Education >>> The University of Melbourne >>> M: 0435 961 594 | E: >>> terry.judd at unimelb.edu.au >>> >>> Publications>> =en> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode 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 12 00:45:48 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 11 Jan 2016 23:45:48 -0600 Subject: Getting Finder results into LiveCode In-Reply-To: References: <9268BBDA-75AD-48E8-9973-946E94D781CE@hyperactivesw.com> Message-ID: <5694930C.2040304@hyperactivesw.com> On 1/11/2016 10:37 PM, Kay C Lan wrote: > Unfortunately it involves using the mouse but if you press the Option + cmd > keys whilst mousing over any Spotlight result Quicklook should pop-up and > at the bottom is the file path - which may be truncated depending on how > many folders deep it is buried. Good to know, thanks. It seems that only the Cmd key is necessary to show a path, at least in Yosemite, and the target line has to be selected. Long paths are truncated, but probably good enough to identify the item. >> I think Labels are now called Tags Sorry, I was linguistically sloppy, though the info you gave is a useful addedum. I didn't really mean "tags", I meant labelled (i.e.: named) folders. Every build I do is in a named folder with all build files inside, including the LiveCode source stack. I end up with dozens of source stacks with the same names. If you haven't done a Finder search lately, try this: Open any Finder window. If you know the general location of the files you want, open the window at that folder; the search will start at the current window's location and drill down from there. Type Cmd-F. Enter a search term in the find box. The default is to search file names and content, but you can change it to only match file names in the dropdown that appears under the search term. Above the results list that appears, you can filter by any of dozens of filters. Common ones are already in the dropdown menu, but if you choose "Other" you can add more filters by selecting them. If you use certain filters frequently you can add them to the default menu by ticking their checkbox. You'll get a list of exactly what you're looking for, and all file attributes normally displayed in your Finder view are immediately available. > if you write a Spotlight plugin for your Back to the Future stack we'll all > be able to do a Spotlight search for the Stacks we are going to create > 'next week'. :-) Now that I can certainly do. I will have done it, in fact. Now we both have new ways to find things. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From lfredricks at proactive-intl.com Tue Jan 12 01:46:15 2016 From: lfredricks at proactive-intl.com (Lynn Fredricks) Date: Mon, 11 Jan 2016 22:46:15 -0800 Subject: LiveCoders on Twitter - Are You There? In-Reply-To: <1452425763040-4700062.post@n4.nabble.com> References: <45F3F9022B6A4B01AEE93F3EC510F259@GATEWAY> <1452425763040-4700062.post@n4.nabble.com> Message-ID: <45F3262659CC4D6F9B47F8D88F576E0C@GATEWAY> A few more additions... http://flockaflame.com/lists/LivecodeDevs&Tools/69 More subscribers puts the list higher / more visible on the site. Best, Lynn > -----Original Message----- > From: use-livecode > [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of > Dave Kilroy > Sent: Sunday, January 10, 2016 3:36 AM > To: use-revolution at lists.runrev.com > Subject: Re: LiveCoders on Twitter - Are You There? > > Thanks Lynn - I think I follow just about everyone on the > list anyway :) - @App_Insight_ > > > David Bovill-3 wrote > > @fortyfoxes > > > > On Saturday, 9 January 2016, Lynn Fredricks < > > > lfredricks@ > > > > > > wrote: > > > >> http://flockaflame.com/lists/LivecodeDevs&Tools/69 > >> > >> Are you posting about Livecode on Twitter? Reply with your @ and I > >> can get you added to this list. > >> > >> Best regards, > >> > >> Lynn Fredricks > >> Paradigma Software > >> http://www.paradigmasoft.com > >> > >> Valentina SQL Server: The Ultra-fast, Royalty Free Database Server > >> > >> > >> _______________________________________________ > >> use-livecode mailing list > >> > > > use-livecode at .runrev > > > <javascript:;> > >> 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 .runrev > > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > ----- > "The difference between genius and stupidity is; genius has > its limits." - Albert Einstein > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/LiveCoders-on-T > witter-Are-You-There-tp4700049p4700062.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 hlowe at me.com Tue Jan 12 01:26:14 2016 From: hlowe at me.com (hlowe) Date: Mon, 11 Jan 2016 22:26:14 -0800 (PST) Subject: mobileCreateLocalNotifications non-functional on iOS 8 In-Reply-To: References: <1452566123393-4700107.post@n4.nabble.com> Message-ID: <1452579974147-4700117.post@n4.nabble.com> I am using LC 6.7.8 (Mac OS 10.11.2), xCode 7.1.1 and iOS 9.1 Henry -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/mobileCreateLocalNotifications-non-functional-on-iOS-8-tp4700106p4700117.html Sent from the Revolution - User mailing list archive at Nabble.com. From peter.brett at livecode.com Tue Jan 12 04:23:30 2016 From: peter.brett at livecode.com (Peter TB Brett) Date: Tue, 12 Jan 2016 09:23:30 +0000 Subject: LiveCoders on Twitter - Are You There? In-Reply-To: <45F3F9022B6A4B01AEE93F3EC510F259@GATEWAY> References: <45F3F9022B6A4B01AEE93F3EC510F259@GATEWAY> Message-ID: <5694C612.7080302@livecode.com> On 09/01/2016 18:57, Lynn Fredricks wrote: > http://flockaflame.com/lists/LivecodeDevs&Tools/69 > > Are you posting about Livecode on Twitter? Reply with your @ and I can get > you added to this list. I tweet about LiveCode occasionally. ;-) https://twitter.com/PeterTBBrett Peter -- Dr Peter Brett LiveCode Open Source Team LiveCode on reddit: https://reddit.com/r/livecode From mark at livecode.com Tue Jan 12 04:59:32 2016 From: mark at livecode.com (Mark Waddingham) Date: Tue, 12 Jan 2016 10:59:32 +0100 Subject: HTML5 update: why it is =?UTF-8?Q?slow=3F?= In-Reply-To: <55B0BD36-B1BF-4A7E-86E4-B84AAAE1017B@appisle.net> References: <568D8ECF.4070600@livecode.com> <67a4fe23a97d7564a92cfb6e219fe493@livecode.com> <55B0BD36-B1BF-4A7E-86E4-B84AAAE1017B@appisle.net> Message-ID: On 2016-01-08 21:56, Monte Goulding wrote: > Using Mark?s example: > > on processThing > load url "..." with block pResultCode, pData, pError > --- > end block > end processThing > > ? OR > > on processThing > load url "..." with processThing2 > end processThing > > block processThing2 pResultCode, pData, pError > -- > end processThing2 Is the block syntax really any better than just using callbacks? If you don't have the block inline, then it is the same; if you do then things get unwieldy as soon as you want to sequence 3 or more things (I tend to find at least). Ideally, I think all blocking operations would block using 'with with messages', and message loops created in this way would run side-by-side rather than recursively (the current recursive nature is why you get into a lot of trouble with 'get url' if you aren't careful). In terms of cancellation, then you could imagine that each handler stack which is started (all running side-by-side in a co-operative fashion) has some sort of easily accessible id (e.g. the task id) which you could save and then do something like 'cancel task id ...'. This would cause a 'cancelled' exception to be generated in the context of that task so it could clean itself up. Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From lan.kc.macmail at gmail.com Tue Jan 12 07:24:46 2016 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Tue, 12 Jan 2016 20:24:46 +0800 Subject: Getting Finder results into LiveCode In-Reply-To: <5694930C.2040304@hyperactivesw.com> References: <9268BBDA-75AD-48E8-9973-946E94D781CE@hyperactivesw.com> <5694930C.2040304@hyperactivesw.com> Message-ID: On Tue, Jan 12, 2016 at 1:45 PM, J. Landman Gay wrote: > Every build I do is in a named folder with all build files inside, > including the LiveCode source stack. I end up with dozens of source stacks > with the same names. > > Ahh, now I understand why the path is so important to you. > If you haven't done a Finder search lately, try this: > > ...but if you choose "Other" you can add more filters by selecting them. I venture into the Finder's search window whenever I'm looking for the proverbial needle, ie a Pages, rtf or text document created the summer of '09, or was it '08 which is at least 8 pages long but less than 15 - no idea of the name but the content would have included the word 'cheese'. That's all way too hard to type into Spotlight! Spotlight, great when you know exactly what you are looking for, Finder search perfect when you need to collect, filter, sort, pick and choose. if you write a Spotlight plugin for your Back to the Future stack we'll all be able to do a Spotlight search for the Stacks we are going to create 'next week'. :-) Now that I can certainly do. I will have done it, in fact. > date:next week Ah yes Spotlight tells me I have a reminder to thank you yesterday for the stack you created today based on work you start tomorrow ;-) From bobwarren at howsoft.com Tue Jan 12 09:34:01 2016 From: bobwarren at howsoft.com (Bob Warren) Date: Tue, 12 Jan 2016 12:34:01 -0200 Subject: Multi-platform development In-Reply-To: References: Message-ID: <56950ED9.40605@howsoft.com> Hi Alex, The lack of response to your question shows, I think, that multi-platform apps in LiveCode, for both desktop and mobile, are really hard to achieve. I would love to be able to do this in LC because I love the language, but the only practical way I have found so far is to write browser apps in JQuery. If you think it would be of any use at all, visit the main page of www.howsoft.com and click on the "Universal Apps" icon. The extensive Helps to the 2 apps in this series will give you a good idea of how they are written. You will see that data is exchanged among platforms by the use of DROPBOX. Regards, Bob Warren -------------------------------------------------------------------------- Alex Tweedly wrote: I'm considering developing a multi-platform app; i.e. ont where the same app runs on both "desktop" and mobile. On the 'desktop' platforms it will use 'standard' menus, and that will be the main "command" access (along with an optional toolbar, most likely, but the toolbar will give access to a limited number of most often used commands/features, rather than to "everything). But, on mobile, there are no "standard menus", and although they are appearing on a few apps (as homegrown menus), they aren't the usual convention on mobile devices. So, I will have a combination of icons, buttons, etc. on the mobile platforms. I suspect that means I'm in the same boat as many other people have already been in, and I'd like to benefit from your experience. If you have developed an app running on both desktop and mobile: 1. did you follow this same split on how your main command structure was invoked ? 2. how did you manage this ? a. really one app with per-platform customization b. two (or more) apps with as large a percentage as possible put into library stacks (or similar) as possible, with separate menu-based vs button-based apps. c. something else that you could readily explain Many thanks Alex. From pmbrig at gmail.com Tue Jan 12 10:50:10 2016 From: pmbrig at gmail.com (Peter M. Brigham) Date: Tue, 12 Jan 2016 10:50:10 -0500 Subject: Getting Finder results into LiveCode In-Reply-To: <1452523695359-4700072.post@n4.nabble.com> References: <1452523695359-4700072.post@n4.nabble.com> Message-ID: <721F43AC-50F3-47CA-BBCB-011B1732B0C1@gmail.com> mdls doesn't like spaces in the file path. What do I do to escape spaces here? -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig On Jan 11, 2016, at 9:48 AM, Martin Koob wrote: > Any time I see "can you get this info on a Mac" I head for the shell. > > I found the following for a terminal command to get file info. > > http://apple.stackexchange.com/questions/165095/is-there-a-similar-functionality-of-get-info-cmdi-from-the-mac-os-x-termina > > So it says use the mdls command > > So then I put it in a shell function in a LiveCode Script. > > http://apple.stackexchange.com/questions/165095/is-there-a-similar-functionality-of-get-info-cmdi-from-the-mac-os-x-termina > > on mouseUp > answer File "Select file to get info on..." > put it into tFilePath > put shell( "mdls" && tFilepath) into tFileInfo > put tFileInfo into field 1 > end mouseUp > > Then you get the following data in tFileInfo that you would then parse for > the data you want. > > ------------------------------- > kMDItemAlternateNames = ( > "MyFile.rtf" > ) > kMDItemContentCreationDate = 2016-01-11 15:04:45 +0000 > kMDItemContentModificationDate = 2016-01-11 15:04:45 +0000 > kMDItemContentType = "public.rtf" > kMDItemContentTypeTree = ( > "public.rtf", > "public.text", > "public.data", > "public.item", > "public.content" > ) > kMDItemDateAdded = 2016-01-11 15:04:45 +0000 > kMDItemDisplayName = "MyFile" > kMDItemFSContentChangeDate = 2016-01-11 15:04:45 +0000 > kMDItemFSCreationDate = 2016-01-11 15:04:45 +0000 > kMDItemFSCreatorCode = "" > kMDItemFSFinderFlags = 16 > kMDItemFSHasCustomIcon = (null) > kMDItemFSInvisible = 0 > kMDItemFSIsExtensionHidden = 1 > kMDItemFSIsStationery = (null) > kMDItemFSLabel = 0 > kMDItemFSName = "MyFile.rtf" > kMDItemFSNodeCount = (null) > kMDItemFSOwnerGroupID = 20 > kMDItemFSOwnerUserID = 501 > kMDItemFSSize = 332 > kMDItemFSTypeCode = "" > kMDItemKind = "Rich Text Document" > kMDItemLastUsedDate = 2016-01-11 15:04:45 +0000 > kMDItemLogicalSize = 332 > kMDItemPhysicalSize = 4096 > kMDItemUseCount = 1 > kMDItemUsedDates = ( > "2016-01-11 05:00:00 +0000" > ) > ----------------------------- > > > Martin > > > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/Getting-Finder-results-into-LiveCode-tp4700069p4700072.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 klaus at major-k.de Tue Jan 12 11:00:41 2016 From: klaus at major-k.de (Klaus major-k) Date: Tue, 12 Jan 2016 17:00:41 +0100 Subject: Getting Finder results into LiveCode In-Reply-To: <721F43AC-50F3-47CA-BBCB-011B1732B0C1@gmail.com> References: <1452523695359-4700072.post@n4.nabble.com> <721F43AC-50F3-47CA-BBCB-011B1732B0C1@gmail.com> Message-ID: <28DDCBFC-C4D8-418B-BCBC-C3647611396F@major-k.de> Hi Peter, > Am 12.01.2016 um 16:50 schrieb Peter M. Brigham : > > mdls doesn't like spaces in the file path. What do I do to escape spaces here? Just QUOTE it: ? put shell( "mdls" && QUOTE & tFilepath & QUOTE) into tFileInfo ? > -- Peter > > Peter M. Brigham > pmbrig at gmail.com > http://home.comcast.net/~pmbrig Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From dochawk at gmail.com Tue Jan 12 11:30:43 2016 From: dochawk at gmail.com (Dr. Hawkins) Date: Tue, 12 Jan 2016 08:30:43 -0800 Subject: Getting Finder results into LiveCode In-Reply-To: <5694930C.2040304@hyperactivesw.com> References: <9268BBDA-75AD-48E8-9973-946E94D781CE@hyperactivesw.com> <5694930C.2040304@hyperactivesw.com> Message-ID: On Mon, Jan 11, 2016 at 9:45 PM, J. Landman Gay wrote: > On 1/11/2016 10:37 PM, Kay C Lan wrote: > >> Unfortunately it involves using the mouse but if you press the Option + >> cmd >> keys whilst mousing over any Spotlight result Quicklook should pop-up and >> at the bottom is the file path - which may be truncated depending on how >> many folders deep it is buried. >> > > Good to know, thanks. It seems that only the Cmd key is necessary to show > a path, at least in Yosemite, and the target line has to be selected. Long > paths are truncated, but probably good enough to identify the item. > I can't get either to work in El Capitan . . . -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From dochawk at gmail.com Tue Jan 12 11:33:55 2016 From: dochawk at gmail.com (Dr. Hawkins) Date: Tue, 12 Jan 2016 08:33:55 -0800 Subject: Getting Finder results into LiveCode In-Reply-To: <28DDCBFC-C4D8-418B-BCBC-C3647611396F@major-k.de> References: <1452523695359-4700072.post@n4.nabble.com> <721F43AC-50F3-47CA-BBCB-011B1732B0C1@gmail.com> <28DDCBFC-C4D8-418B-BCBC-C3647611396F@major-k.de> Message-ID: On Tue, Jan 12, 2016 at 8:00 AM, Klaus major-k wrote: > Hi Peter, > > > Am 12.01.2016 um 16:50 schrieb Peter M. Brigham : > > > > mdls doesn't like spaces in the file path. What do I do to escape spaces > here? > > Just QUOTE it: > ? > put shell( "mdls" && QUOTE & tFilepath & QUOTE) into tFileInfo > using double quotes can cause variable substitution in the shell. Instead, put shell( "mdld '" & tFilepath "'") into tFileInfo will dom it without risking any substitution. And backticks (`) will cause anything inside them to be evaluated as a command -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From ambassador at fourthworld.com Tue Jan 12 12:02:10 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 12 Jan 2016 09:02:10 -0800 Subject: Multi-platform development In-Reply-To: <56950ED9.40605@howsoft.com> References: <56950ED9.40605@howsoft.com> Message-ID: <56953192.5080502@fourthworld.com> Bob Warren wrote: > Hi Alex, > > The lack of response to your question shows, I think, that multi- > platform apps in LiveCode, for both desktop and mobile, are really > hard to achieve. In all fairness, his post was unattended for just 22 hours. I pondered replying myself yesterday when I first saw it, but it is indeed a tricky goal, something very few people in all the world even attempt, in any language. While it's true that Ubuntu and more recently Microsoft have begun exploring convergence strategies for a single adaptable, scalable set of UI conventions across all device types, the reality is that to date neither has been enormously successful (though the night is young, and the research and APIs still in early days). Apple still has the belief that every category of devices require their own unique OS, with their own interaction models and supporting APIs. Consider the tablet: its screen size is the same as a laptop, so while a phone is a radically different beast we might expect a tablet and a laptop to be able to share a single UI. And in some cases they can, but not well on most systems other than Gnome-based Linux distros because most have much smaller controls completely unsuitable for use with both a pointer and a finger. You've extended Alex' original question into the realm of the browser here, in a way I believe can be very helpful: > I would love to be able to do this in LC because I love the language, > but the only practical way I have found so far is to write browser > apps in JQuery. This is a useful consideration, because there's much we developers of native apps can learn from the web world driven today by responsive design, making a single style sheet that adapts the UI for any size screen and accounts for the very different interaction modes of pointer and finger. Some complain that learning web development is hard because it requires attaining competency with three different subsystems: HTML, CSS, and JavaScript. But I believe this is a feature, not a bug. When building native apps, decades of software engineering "best practices" have long encouraged us to do the same: separate data, layout, and code as much as practical, so changes to one have minimal affect on the others. If we apply what we've learned from web development to making multi-device apps in LiveCode, our app's core business logic can be well factored into libraries and behaviors, with data brought into the app and saved outside of the app, and layout containing so little code those stack files are almost as slender as a Cocoa NIB file. I'm only just starting to build mobile apps in earnest, but I've been making multi-platform desktop apps in LC since the '90s, before LiveCode or even RunRev existed. Even when working in the more self-same world of the desktop, accommodating user expectations on both Mac and Windows has never been trivial. LiveCode makes it about as easy as it can be, but the differences are not small and require some thinking to handle well. Extending that to include iOS and Android as well is accomplishable, but no more simple than accommodating OS X vs Windows. It requires spending time reading the HIGs for each platform, being willing to move things around as users are accustomed to on each, and making that as simple as practical by centralizing code away from the UI. Now that I'm building multi-device-type apps, for myself I find it easier to make separate layouts for phone and desktop, allowing each to take best advantage of what the device and its input models offer. I tend to build things with reusable behavior-driven groups, which allows me to have a toolbar common to iOS and Android but placed at the top for Android and the bottom for iOS, as each HIG suggests. The toolbar for desktop not only has more space but more importantly supports in some cases different tasks, because the device type serves a different set of use cases. The card controls the layout of the groups within it, so a different card for mobile, tablet, and desktop lets me optimize the layout for what the user could expect to do for each, and since the underlying business logic is the same for all very little of my central libraries are affected by whichever UI happens to be in use at a given moment. There are many ways to solve such problems, and the way I find useful for me in making productivity apps will no doubt differ from others, and certainly differ a lot from those making games where the UI and UX are very, very different. But in all cases I believe two things: 1. Making software is by its nature inherently complex, requiring study and more than a little typing. LiveCode makes it far less difficult than most tools, but I doubt making good software can ever be truly "simple". 2. We can learn from the world of responsive web design to reinforce best practices with native app development: factoring code, data, and UI to minimize interactions between them and thereby maximizing flexibility across device types. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com > > -------------------------------------------------------------------------- > > Alex Tweedly wrote: > > > I'm considering developing a multi-platform app; i.e. ont where the > same app runs on both "desktop" and mobile. > > On the 'desktop' platforms it will use 'standard' menus, and that will > be the main "command" access (along with an optional toolbar, most > likely, but the toolbar will give access to a limited number of most > often used commands/features, rather than to "everything). > > But, on mobile, there are no "standard menus", and although they are > appearing on a few apps (as homegrown menus), they aren't the usual > convention on mobile devices. So, I will have a combination of icons, > buttons, etc. on the mobile platforms. > > I suspect that means I'm in the same boat as many other people have > already been in, and I'd like to benefit from your experience. > > If you have developed an app running on both desktop and mobile: > > 1. did you follow this same split on how your main command structure > was invoked ? > > 2. how did you manage this ? > a. really one app with per-platform customization > b. two (or more) apps with as large a percentage as possible put > into library stacks (or similar) as possible, with separate menu-based > vs button-based apps. > c. something else that you could readily explain > > Many thanks > Alex. From alex at tweedly.net Tue Jan 12 12:47:15 2016 From: alex at tweedly.net (Alex Tweedly) Date: Tue, 12 Jan 2016 17:47:15 +0000 Subject: Multi-platform development In-Reply-To: <56950ED9.40605@howsoft.com> References: <56950ED9.40605@howsoft.com> Message-ID: <56953C23.7080909@tweedly.net> Thanks Bob. I was not expecting quick replies to my question - I know it's a tough, and potentially wide, area to address. Thanks for the pointers to those apps - I looked closely at QuickInfo and more briefly at the other. My first comment is that I guess I'm not ready to give up on LC yet :-( In some ways, the WebApp approach is at one end of the spectrum of responses to my question: i.e. provide essentially a single UI for all platforms. Of course, it can and should be responsive to screen size, layout, aspect ratio, etc. - but it basically makes *an* app which has its own look/feel, rather than try to appear like a native app on each platform. Also, of course, it provides two large advantages : - sidesteps the hurdle of getting into the AppStore (and setting up correct SDK, Xcode, yada, yada, yada, ...) - gives an immediate solution to the Dropbox issue. I'm sure that before too long we'll have a usable Dropbox library (i.e. with an OAuth component that imho is needed to make it usable for most use cases), so I'm happy to deal with some short-term work-around for data sharing (which isn't too hard for my single app). (btw - yes, I did look at OAuth with a view to whether or not I could write such a library, and decided it was beyond my ability/effort level in an area I just don't understand). The app store issue - well, I have only the anecdotal evidence from the uselist, which suggests it is frustrating, but that as long as you have a reasonable approach to UI, you have some freedom to adopt either a very iOS-centric approach, or something "quite different but consistent". (see more of my views on that topic in my reply to Richard's post....) Thanks again, Alex. On 12/01/2016 14:34, Bob Warren wrote: > Hi Alex, > > The lack of response to your question shows, I think, that > multi-platform apps in LiveCode, for both desktop and mobile, are > really hard to achieve. I would love to be able to do this in LC > because I love the language, but the only practical way I have found > so far is to write browser apps in JQuery. > > If you think it would be of any use at all, visit the main page of > www.howsoft.com and click on the "Universal Apps" icon. The extensive > Helps to the 2 apps in this series will give you a good idea of how > they are written. You will see that data is exchanged among platforms > by the use of DROPBOX. > > Regards, > > Bob Warren > > -------------------------------------------------------------------------- > > > Alex Tweedly wrote: > > > I'm considering developing a multi-platform app; i.e. ont where the same > app runs on both "desktop" and mobile. > > On the 'desktop' platforms it will use 'standard' menus, and that will > be the main "command" access (along with an optional toolbar, most > likely, but the toolbar will give access to a limited number of most > often used commands/features, rather than to "everything). > > But, on mobile, there are no "standard menus", and although they are > appearing on a few apps (as homegrown menus), they aren't the usual > convention on mobile devices. So, I will have a combination of icons, > buttons, etc. on the mobile platforms. > > I suspect that means I'm in the same boat as many other people have > already been in, and I'd like to benefit from your experience. > > If you have developed an app running on both desktop and mobile: > > 1. did you follow this same split on how your main command structure was > invoked ? > > 2. how did you manage this ? > a. really one app with per-platform customization > b. two (or more) apps with as large a percentage as possible put > into library stacks (or similar) as possible, with separate menu-based > vs button-based apps. > c. something else that you could readily explain > > Many thanks > 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 klaus at major-k.de Tue Jan 12 12:49:29 2016 From: klaus at major-k.de (Klaus major-k) Date: Tue, 12 Jan 2016 18:49:29 +0100 Subject: mobilepick more than one option at a time without more than one pickwheel? Message-ID: Hi all, is there a way to let the user pick more than one option in ONE mobilepick xyz? I do not want to show two or more pickwheels! If yes, how can this be done? Or do I need to ?roll my own? with a listfield or a group or something? Like provideing a list of weekday names and the user can seldct more than one day at once. Thanks in advance! Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From alex at tweedly.net Tue Jan 12 13:10:34 2016 From: alex at tweedly.net (Alex Tweedly) Date: Tue, 12 Jan 2016 18:10:34 +0000 Subject: Multi-platform development In-Reply-To: <56953192.5080502@fourthworld.com> References: <56950ED9.40605@howsoft.com> <56953192.5080502@fourthworld.com> Message-ID: <5695419A.6030006@tweedly.net> Thanks for the thoughtful reply. Replies in-line On 12/01/2016 17:02, Richard Gaskin wrote: > Bob Warren wrote: > > > Hi Alex, > > > > The lack of response to your question shows, I think, that multi- > > platform apps in LiveCode, for both desktop and mobile, are really > > hard to achieve. > > In all fairness, his post was unattended for just 22 hours. > > I pondered replying myself yesterday when I first saw it, but it is > indeed a tricky goal, something very few people in all the world even > attempt, in any language. > > While it's true that Ubuntu and more recently Microsoft have begun > exploring convergence strategies for a single adaptable, scalable set > of UI conventions across all device types, the reality is that to date > neither has been enormously successful (though the night is young, and > the research and APIs still in early days). > Indeed. In fact I bought a Surface Pro last month, and after one day I abandoned it (early enough to give it to someone else as a Christmas present - he said, knowing they will never read this list :-) It was (for me) just unusable because of the tiny buttons and icons (or you could scale them up, and make it unusable because you couldn't fit any more text etc. on it than I could already get on a mid-size tablet) > Apple still has the belief that every category of devices require > their own unique OS, with their own interaction models and supporting > APIs. > Yes, but at least they are willing to accept apps which don't. One that has heavily influenced my views is iAWriter - an app which I find a joy to use (on iPad). It has eschewed the iOS UI guidelines almost completely, in favour of what feels much like desktop menus. And even better, they've written about the choices they made, and why - see https://ia.net/writer/updates/ia-writer-3 In particular, to quote one short section: [ on iOS ] > We eliminated arbitrary icons, and streamlined the labelling and > grouping of functions. After a lot of iteration, we ended up staring > with disbelief as a desktop app?s menus emerged. Menus were invented > in a time of small screens. With the return of small screens they > actually make a lot of sense. [ ... lots of good stuff from Richard omitted for brevity ....] > Now that I'm building multi-device-type apps, for myself I find it > easier to make separate layouts for phone and desktop, allowing each > to take best advantage of what the device and its input models offer. > > I tend to build things with reusable behavior-driven groups, which > allows me to have a toolbar common to iOS and Android but placed at > the top for Android and the bottom for iOS, as each HIG suggests. > > The toolbar for desktop not only has more space but more importantly > supports in some cases different tasks, because the device type serves > a different set of use cases. > Ummm. I am very wary about this differentiation. I think we can over-categorize the ways users *might* want to use different devices. I would dearly love to be able to travel with just my phone and a tablet (either 7-inch android or iPad Pro, depending on many factors), and leave the laptop behind. But if (as happens all too often) the developer has decided that some things won't be needed on limited devices, I find myself precluded from leaving the laptop behind because some more-complex task would be "clumsy" on a limited screen. OK - let it be clumsy, I'll accept that and put up with it for the sake of being able to do it at all. Trivial (similar) case - iOS calendar app which *insists* on going into a particular mode (weeky? hourly?) whenever I turn it into landscape orientation. !? OK, I understand that orientation handles this mode better than portrait does, and this orientation doesn't handle the other viewing modes as well - but please leave that as my choice. (OK, rant over :-) > The card controls the layout of the groups within it, so a different > card for mobile, tablet, and desktop lets me optimize the layout for > what the user could expect to do for each, and since the underlying > business logic is the same for all very little of my central libraries > are affected by whichever UI happens to be in use at a given moment. > Good idea. A single app (and hence single main stack), but with different cards is an approach I hadn't particularly thought about. Thanks. > There are many ways to solve such problems, and the way I find useful > for me in making productivity apps will no doubt differ from others, > and certainly differ a lot from those making games where the UI and UX > are very, very different. > > But in all cases I believe two things: > > 1. Making software is by its nature inherently complex, requiring > study and more than a little typing. LiveCode makes it far > less difficult than most tools, but I doubt making good software > can ever be truly "simple". > > 2. We can learn from the world of responsive web design to reinforce > best practices with native app development: factoring code, data, > and UI to minimize interactions between them and thereby maximizing > flexibility across device types. > I think this second point reinforces what was said earlier today on another thread about the need for a better, more modern, approach to a *built-in* geometry manager / helper which can make it easier to implement responsive, variable UI layouts. I don't think it needs to be a (totally) IDE-based - it's just fine to write some script to deal with more complex cases - but it should make it easier. All suggestions welcome - in the meantime I'll push ahead with the outline version of my app, making as much of it as I can be separated into libraries, behaviours, etc., and (with luck) will be able to make the multiple apps vs multiple cards vs multiple layouts decision be as unimportant as possible. -- Alex. From david at viral.academy Tue Jan 12 13:15:03 2016 From: david at viral.academy (David Bovill) Date: Tue, 12 Jan 2016 19:15:03 +0100 Subject: Arrays: digitally signing them Message-ID: I was looking into standards for digitally signing JSON - and I wandered about signing Livecode arrays. This would need some way to normalise the array construction as (from the docs): Arrays in LiveCode are un-ordered. This means in particular that encoding > two arrays will not necessarily produce the same result, even if the arrays > had the same elements. To compare two arrays, simply use the = operator > directly on them rather than encoding them first. I take this to mean that depending on exactly how (the order of construction), a Livecode array is created, it's hash will be different, as will the result of arrayDecode. Is this right? Any thoughts on how to digitally sign an array? If this proves as complex as i think, it may be more useful to replicate the JSON-LD signature algorithm: The following algorithm specifies how to create a digital signature that > can be later used to verify the authenticity and integrity of a Linked > Data Document > . > A Linked Data Document > > , document, a private key > , > and an identifier for the public/private key pair, creator, are required > inputs. Anonce > and a > domain may > also be optionally specified as inputs. A Signed Linked Data Document > is > produced as output. Whenever this algorithm must encode strings, it uses > UTF-8 encoding. > > 1. Create a copy of document, output. > > > 1. Remove any signature nodes from the default graph in output. > > > 1. Generate a normalized document by normalizing document according to > the *URDNA2015* [RDF-DATASET-NORMALIZATION > ] > algorithm. > > > 1. Generate an ISO8601 combined date and time string, created containing > the current date and time, accurate to at least one second, in Universal > Time Code format. For example: 2011-09-23T20:21:34Z. Add an entry to > headers with a key ofhttp://purl.org/dc/elements/1.1/created and a > value of created. > > > 1. Create a value tbs that represents the data to be signed, and set > it to the result of running the Create Verify Hash Algorithm > > . > > > 1. Digitally sign tbs using the private key > and > the the *RSASSA-PKCS1-v1_5* [PKCS1 > ] > algorithm and base-64 encode the resulting value. The resulting base-64 > encoded string is the signatureValue > > . > > > 1. Add a signature node to output containing a Linked Data Signature > > using creator, created, signatureValue > , > and if given, the nonce > , and > domain > . > > > 1. Return output as the Signed Linked Data Document > > . > > So make something like a Livecode version of this library - https://www.npmjs.com/package/jsonld-signatures From ambassador at fourthworld.com Tue Jan 12 13:25:53 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 12 Jan 2016 10:25:53 -0800 Subject: Arrays: digitally signing them In-Reply-To: References: Message-ID: <56954531.3010904@fourthworld.com> David Bovill wrote: > I was looking into standards for digitally signing JSON - and I wandered > about signing Livecode arrays. This would need some way to normalise the > array construction as (from the docs): > > Arrays in LiveCode are un-ordered. This means in particular that encoding >> two arrays will not necessarily produce the same result, even if the arrays >> had the same elements. To compare two arrays, simply use the = operator >> directly on them rather than encoding them first. > > I take this to mean that depending on exactly how (the order of > construction), a Livecode array is created, it's hash will be different, as > will the result of arrayDecode. > > Is this right? Any thoughts on how to digitally sign an array? If this > proves as complex as i think, it may be more useful to replicate the JSON-LD > signature algorithm: Would BSON lend itself to signing? As a binary format it could offer the efficiency of LSON (my pet name for LiveCode encoded arrays, which I've found clients tend to respond favorably to), but also the benefit of being a standard open format like JSON. Some time ago I submitted a request for BSONencode and BSONdecode: Peter's point there is well taken, that this could be implemented as a library; it wouldn't even need to be in Builder, since LiveCode is much faster to develop in, runs a bit faster, and already has the binary functions to support it. The only downside to implementing that in either scripting language is the very desirability of BSON: we choose the encumbrance of binary formats for the benefit of performance. In C++ it would be wonderful; in any scripting language that benefit would be compromised. An external perhaps? -- 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 peter.brett at livecode.com Tue Jan 12 13:31:15 2016 From: peter.brett at livecode.com (Peter TB Brett) Date: Tue, 12 Jan 2016 18:31:15 +0000 Subject: BSON libarry [was: Re: Arrays: digitally signing them] In-Reply-To: <56954531.3010904@fourthworld.com> References: <56954531.3010904@fourthworld.com> Message-ID: <56954673.50504@livecode.com> On 12/01/2016 18:25, Richard Gaskin wrote: > Some time ago I submitted a request for BSONencode and BSONdecode: > > > Peter's point there is well taken, that this could be implemented as a > library; it wouldn't even need to be in Builder, since LiveCode is much > faster to develop in, runs a bit faster, and already has the binary > functions to support it. I still mean to implement this in LiveCode Builder when I get some so-called free time. ;-) Peter -- Dr Peter Brett LiveCode Open Source Team LiveCode on reddit: https://reddit.com/r/livecode From sims at ezpzapps.com Tue Jan 12 13:06:08 2016 From: sims at ezpzapps.com (Jim sims) Date: Tue, 12 Jan 2016 19:06:08 +0100 Subject: mobilepick more than one option at a time without more than one pickwheel? In-Reply-To: References: Message-ID: If you look at the "Registration" section you will find an example " Professional Credentials". That is an example of choosing more than one but unless I'm wrong, that can stay as it is. It is not an iOS menupicker. I will consult with her to be sure. What I was referring to is only the few examples of iOS menupickers. These are the ones that popup when clicking on the blue btns that have white text. Only those are the ones she wants changed. Refer to the blue buttons. Those are the ones she wants changed. They popup an iOS menupicker. Please have a look at the ADHD Tracker example as it seems like a fairly easy way to do what she wants. Hope that helps. sims -- On Tuesday, January 12, 2016, Klaus major-k wrote: > Hi all, > > is there a way to let the user pick more than one option in ONE mobilepick > xyz? > I do not want to show two or more pickwheels! If yes, how can this be > done? > Or do I need to ?roll my own? with a listfield or a group or something? > > Like provideing a list of weekday names and the user can seldct more than > one day at once. > > Thanks in advance! > > > 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 -- Sent from my iPodo - it makes weird spelling sometimes :-P From ambassador at fourthworld.com Tue Jan 12 13:45:27 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 12 Jan 2016 10:45:27 -0800 Subject: Multi-platform development In-Reply-To: <5695419A.6030006@tweedly.net> References: <5695419A.6030006@tweedly.net> Message-ID: <569549C7.9080007@fourthworld.com> Alex Tweedly wrote: > One that has heavily influenced my views is iAWriter - an app which > I find a joy to use (on iPad). It has eschewed the iOS UI guidelines > almost completely, in favour of what feels much like desktop menus. > And even better, they've written about the choices they made, and > why - see > https://ia.net/writer/updates/ia-writer-3 Oooh - nice! I have to credit Scott Rossi for helping me (sometimes) move past my slavish devotion to HIGs to consider broader options. It may sound heretical to some, but I do thing Material Design is a more useful set of conventions than the much looser guidelines Apple offers. But even more exciting to see devs break from both to explore new ground. I'll read that article with gusto - thanks! > I think we can over-categorize the ways users *might* want to use > different devices. I would dearly love to be able to travel with > just my phone and a tablet (either 7-inch android or iPad Pro, > depending on many factors), and leave the laptop behind. But if > (as happens all too often) the developer has decided that some > things won't be needed on limited devices, I find myself precluded > from leaving the laptop behind because some more-complex task > would be "clumsy" on a limited screen. OK - let it be clumsy, I'll > accept that and put up with it for the sake of being able to do it > at all. Agreed. Such decisions need to be made *very* carefully, and ideally after A/B user testing, time and budget permitting. At a minimum, even the most modest budget affords the opportunity to listen to complaints and respond to them. >> 2. We can learn from the world of responsive web design to reinforce >> best practices with native app development: factoring code, data, >> and UI to minimize interactions between them and thereby >> maximizing flexibility across device types. >> > I think this second point reinforces what was said earlier today on > another thread about the need for a better, more modern, approach to > a *built-in* geometry manager / helper which can make it easier to > implement responsive, variable UI layouts. I don't think it needs to > be a (totally) IDE-based - it's just fine to write some script to > deal with more complex cases - but it should make it easier. It's probably just a failure of my own imagination, but I rather like the complete control I have writing resize handlers. Every other solution, no matter how it works, ultimately boils down to responding to resize messages, just as my handlers do. But when it's a generalized solution, it's likely to have been difficult for its developer to guess all the possible things I might want to do, and any generalized solution will by its nature require more lines of code (sometimes I open GarageBand and resize its window just to remind myself why performance in such things can be critically important ). One thing that's been a godsend for me is the more recent extension to how resizeControl works: In older versions it was only sent in response to user interaction with the pointer tool, but more recently it's also sent to groups when resized by other scripts. This allows me to keep the logic of a component's appearance internal to itself: the card only sets the rects of a handful of groups, and the groups take care of themselves via their behavior scripts. The group never cares what cards it's on or where it is on the card; that's the card's job. The group only takes care of its internals, so both the card script and the component script are fairly independent of one another. -- 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 klaus at major-k.de Tue Jan 12 13:45:54 2016 From: klaus at major-k.de (Klaus major-k) Date: Tue, 12 Jan 2016 19:45:54 +0100 Subject: mobilepick more than one option at a time without more than one pickwheel? In-Reply-To: References: Message-ID: Hi sims, > Am 12.01.2016 um 19:06 schrieb Jim sims : > > ... > > Hope that helps. > > > sims I think we really should keep THIS private, take a looks at the mail address 8-) Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From ambassador at fourthworld.com Tue Jan 12 14:08:36 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 12 Jan 2016 11:08:36 -0800 Subject: BSON libarry [was: Re: Arrays: digitally signing them] In-Reply-To: <56954673.50504@livecode.com> References: <56954673.50504@livecode.com> Message-ID: <56954F34.7060200@fourthworld.com> Peter TB Brett wrote: > On 12/01/2016 18:25, Richard Gaskin wrote: > >> Some time ago I submitted a request for BSONencode and BSONdecode: >> >> >> Peter's point there is well taken, that this could be implemented as >> a library; it wouldn't even need to be in Builder, since LiveCode is >> much faster to develop in, runs a bit faster, and already has the >> binary functions to support it. > > I still mean to implement this in LiveCode Builder when I get some > so-called free time. ;-) As much as it delights me to see this BSON stuff still has your interest, I must admit it's a bit of an edge case even for me; most of the time the simple LSON we already have works just fine. More than fine, really; quite efficiently. So yes, by all means, but given the many ways your vast talents could be applied I'm hoping your definition of "free time" is as I imagine it, behind a list of other things a far great number of people need than my specialized desire to somehow show up the MongoDB world with how cool LC is. :) -- 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 peter.brett at livecode.com Tue Jan 12 14:11:21 2016 From: peter.brett at livecode.com (Peter TB Brett) Date: Tue, 12 Jan 2016 19:11:21 +0000 Subject: BSON libarry [was: Re: Arrays: digitally signing them] In-Reply-To: <56954F34.7060200@fourthworld.com> References: <56954673.50504@livecode.com> <56954F34.7060200@fourthworld.com> Message-ID: <56954FD9.2080601@livecode.com> On 12/01/2016 19:08, Richard Gaskin wrote: > So yes, by all means, but given the many ways your vast talents could be > applied I'm hoping your definition of "free time" is as I imagine it, > behind a list of other things a far great number of people need than my > specialized desire to somehow show up the MongoDB world with how cool LC > is. :) I'm currently and extremely off-topically compiling FOSS electronic design tools for Windows. Or possibly failing to compile them, we'll see... Peter -- Dr Peter Brett LiveCode Open Source Team LiveCode on reddit: https://reddit.com/r/livecode From mark at livecode.com Tue Jan 12 14:16:57 2016 From: mark at livecode.com (Mark Waddingham) Date: Tue, 12 Jan 2016 19:16:57 +0000 Subject: Arrays: digitally signing them In-Reply-To: References: Message-ID: Usually a digital signature is applied to a specific sequence of bytes so needing a canonical representation isn't necessary. (They are used to ensure the specific bytes are as signed). What's the reason for requiring ordered keys in this case? Note that utf-8 has multiple representations per string, as do numeric values (as strings - which is an issue for text encoded json) - so ordered keys in the binary representation of an array is just one aspect. (The utf-8 rep of strings and decimal rep of numbers affect Json's byte-by-byte comparison too). Mark. Sent from my iPhone > On 12 Jan 2016, at 18:15, David Bovill wrote: > > I was looking into standards for digitally signing JSON - and I wandered > about signing Livecode arrays. This would need some way to normalise the > array construction as (from the docs): > > Arrays in LiveCode are un-ordered. This means in particular that encoding >> two arrays will not necessarily produce the same result, even if the arrays >> had the same elements. To compare two arrays, simply use the = operator >> directly on them rather than encoding them first. > > > I take this to mean that depending on exactly how (the order of > construction), a Livecode array is created, it's hash will be different, as > will the result of arrayDecode. > > Is this right? Any thoughts on how to digitally sign an array? If this > proves as complex as i think, it may be more useful to replicate the JSON-LD > signature algorithm: > > The following algorithm specifies how to create a digital signature that >> can be later used to verify the authenticity and integrity of a Linked >> Data Document >> . >> A Linked Data Document >> >> , document, a private key >> , >> and an identifier for the public/private key pair, creator, are required >> inputs. Anonce >> and a >> domain may >> also be optionally specified as inputs. A Signed Linked Data Document >> is >> produced as output. Whenever this algorithm must encode strings, it uses >> UTF-8 encoding. >> >> 1. Create a copy of document, output. >> >> >> 1. Remove any signature nodes from the default graph in output. >> >> >> 1. Generate a normalized document by normalizing document according to >> the *URDNA2015* [RDF-DATASET-NORMALIZATION >> ] >> algorithm. >> >> >> 1. Generate an ISO8601 combined date and time string, created containing >> the current date and time, accurate to at least one second, in Universal >> Time Code format. For example: 2011-09-23T20:21:34Z. Add an entry to >> headers with a key ofhttp://purl.org/dc/elements/1.1/created and a >> value of created. >> >> >> 1. Create a value tbs that represents the data to be signed, and set >> it to the result of running the Create Verify Hash Algorithm >> >> . >> >> >> 1. Digitally sign tbs using the private key >> and >> the the *RSASSA-PKCS1-v1_5* [PKCS1 >> ] >> algorithm and base-64 encode the resulting value. The resulting base-64 >> encoded string is the signatureValue >> >> . >> >> >> 1. Add a signature node to output containing a Linked Data Signature >> >> using creator, created, signatureValue >> , >> and if given, the nonce >> , and >> domain >> . >> >> >> 1. Return output as the Signed Linked Data Document >> >> . > So make something like a Livecode version of this library - > https://www.npmjs.com/package/jsonld-signatures > _______________________________________________ > use-livecode mailing list > use-livecode at 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 livecode.com Tue Jan 12 14:26:42 2016 From: mark at livecode.com (Mark Waddingham) Date: Tue, 12 Jan 2016 19:26:42 +0000 Subject: Multi-platform development. In-Reply-To: <5693D305.8010401@tweedly.net> References: <5693D305.8010401@tweedly.net> Message-ID: <595A91E6-534B-4C61-9D79-68A973F1B670@livecode.com> This isn't so much about 'multi-platform' development but about designing apps for different interaction / display combinations. I'd say the key thing is to separate your design into modelcontroller and view. In the ideal case a UI is a 'thin' layer on top of an API based model which encodes all the actual logic of the app. Simple things like not putting code in a mouseUp, but instead just get it to call an action function in the core part of the application (independent of UI) help immensely. Ideally this means that you can have different stacks (or cards even) specialised to different UI requirements (in terms of layout and interaction). If the only real code in the UI part for a particular target is pertinent to that target alone, adding new layouts is straightforward and you avoid bugs creeping in because of 'duplicated code' gremlins. Just my 2 pence, Mark. Sent from my iPhone > On 11 Jan 2016, at 16:06, Alex Tweedly wrote: > > > I'm considering developing a multi-platform app; i.e. ont where the same app runs on both "desktop" and mobile. > > On the 'desktop' platforms it will use 'standard' menus, and that will be the main "command" access (along with an optional toolbar, most likely, but the toolbar will give access to a limited number of most often used commands/features, rather than to "everything). > > But, on mobile, there are no "standard menus", and although they are appearing on a few apps (as homegrown menus), they aren't the usual convention on mobile devices. So, I will have a combination of icons, buttons, etc. on the mobile platforms. > > I suspect that means I'm in the same boat as many other people have already been in, and I'd like to benefit from your experience. > > If you have developed an app running on both desktop and mobile: > > 1. did you follow this same split on how your main command structure was invoked ? > > 2. how did you manage this ? > a. really one app with per-platform customization > b. two (or more) apps with as large a percentage as possible put into library stacks (or similar) as possible, with separate menu-based vs button-based apps. > c. something else that you could readily explain :-) > > Many thanks > 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 pmbrig at gmail.com Tue Jan 12 15:15:59 2016 From: pmbrig at gmail.com (Peter M. Brigham) Date: Tue, 12 Jan 2016 15:15:59 -0500 Subject: Getting Finder results into LiveCode In-Reply-To: <28DDCBFC-C4D8-418B-BCBC-C3647611396F@major-k.de> References: <1452523695359-4700072.post@n4.nabble.com> <721F43AC-50F3-47CA-BBCB-011B1732B0C1@gmail.com> <28DDCBFC-C4D8-418B-BCBC-C3647611396F@major-k.de> Message-ID: <27A008B2-5E01-44A0-9E4D-1C385728098F@gmail.com> Thanks. -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig On Jan 12, 2016, at 11:00 AM, Klaus major-k wrote: > Hi Peter, > >> Am 12.01.2016 um 16:50 schrieb Peter M. Brigham : >> >> mdls doesn't like spaces in the file path. What do I do to escape spaces here? > > Just QUOTE it: > ? > put shell( "mdls" && QUOTE & tFilepath & QUOTE) into tFileInfo > ? > >> -- Peter >> >> Peter M. Brigham >> pmbrig at gmail.com >> http://home.comcast.net/~pmbrig > > 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 pmbrig at gmail.com Tue Jan 12 15:16:49 2016 From: pmbrig at gmail.com (Peter M. Brigham) Date: Tue, 12 Jan 2016 15:16:49 -0500 Subject: Getting Finder results into LiveCode In-Reply-To: References: <1452523695359-4700072.post@n4.nabble.com> <721F43AC-50F3-47CA-BBCB-011B1732B0C1@gmail.com> <28DDCBFC-C4D8-418B-BCBC-C3647611396F@major-k.de> Message-ID: Right, I found on a google search that single quotes are safer than double quotes. -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig On Jan 12, 2016, at 11:33 AM, Dr. Hawkins wrote: > On Tue, Jan 12, 2016 at 8:00 AM, Klaus major-k wrote: > >> Hi Peter, >> >>> Am 12.01.2016 um 16:50 schrieb Peter M. Brigham : >>> >>> mdls doesn't like spaces in the file path. What do I do to escape spaces >> here? >> >> Just QUOTE it: >> ? >> put shell( "mdls" && QUOTE & tFilepath & QUOTE) into tFileInfo >> > > using double quotes can cause variable substitution in the shell. Instead, > > put shell( "mdld '" & tFilepath "'") into tFileInfo > > > will dom it without risking any substitution. > > And backticks (`) will cause anything inside them to be evaluated as a > command > > -- > 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 pmbrig at gmail.com Tue Jan 12 15:39:41 2016 From: pmbrig at gmail.com (Peter M. Brigham) Date: Tue, 12 Jan 2016 15:39:41 -0500 Subject: Getting Finder results into LiveCode In-Reply-To: References: <9268BBDA-75AD-48E8-9973-946E94D781CE@hyperactivesw.com> <5694930C.2040304@hyperactivesw.com> Message-ID: <35E1B3A6-B60D-4300-9CDF-45220BD84785@gmail.com> I use a utility called Alfred on my Mac. I believe it uses Spotlight but I like the user interface. It allows you to search for files whose name contain , and also allows you to search for files whose contents contain . Plus it allows hotkeys for launching apps or files, and a clipboard with memory -- see a list of the past 40 or 50 pieces of text you've copied and insert the one you want with a keypress. Plus a whole lot more. And the basic app is free. "Alfred" like the butler in Batman?. -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig On Jan 12, 2016, at 7:24 AM, Kay C Lan wrote: > On Tue, Jan 12, 2016 at 1:45 PM, J. Landman Gay > wrote: > >> Every build I do is in a named folder with all build files inside, >> including the LiveCode source stack. I end up with dozens of source stacks >> with the same names. >> >> Ahh, now I understand why the path is so important to you. > > >> If you haven't done a Finder search lately, try this: >> >> ...but if you choose "Other" you can add more filters by selecting them. > > > I venture into the Finder's search window whenever I'm looking for the > proverbial needle, ie a Pages, rtf or text document created the summer of > '09, or was it '08 which is at least 8 pages long but less than 15 - no > idea of the name but the content would have included the word 'cheese'. > That's all way too hard to type into Spotlight! > > Spotlight, great when you know exactly what you are looking for, Finder > search perfect when you need to collect, filter, sort, pick and choose. > > > if you write a Spotlight plugin for your Back to the Future stack we'll all > > be able to do a Spotlight search for the Stacks we are going to create > > 'next week'. :-) > > Now that I can certainly do. I will have done it, in fact. >> > > date:next week > > Ah yes Spotlight tells me I have a reminder to thank you yesterday for the > stack you created today based on work you start tomorrow ;-) > _______________________________________________ > use-livecode mailing list > use-livecode at 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 12 20:50:29 2016 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Wed, 13 Jan 2016 09:50:29 +0800 Subject: Getting Finder results into LiveCode In-Reply-To: References: <9268BBDA-75AD-48E8-9973-946E94D781CE@hyperactivesw.com> <5694930C.2040304@hyperactivesw.com> Message-ID: On Wed, Jan 13, 2016 at 12:30 AM, Dr. Hawkins wrote: > > I can't get either to work in El Capitan . . . > This seems to suggest it's the same as Yosemite (cmd+option is for mavericks and prior) https://support.apple.com/kb/PH21907?viewlocale=en_US&locale=en_US Have you changed the default keyboard shortcuts for anything ? And for Jacque, the cmd + option + spacebar might be of interest to you. No mousing around, straight to your favourite search window ready to go. From dochawk at gmail.com Tue Jan 12 21:42:54 2016 From: dochawk at gmail.com (Dr. Hawkins) Date: Tue, 12 Jan 2016 18:42:54 -0800 Subject: Getting Finder results into LiveCode In-Reply-To: References: <9268BBDA-75AD-48E8-9973-946E94D781CE@hyperactivesw.com> <5694930C.2040304@hyperactivesw.com> Message-ID: On Tue, Jan 12, 2016 at 5:50 PM, Kay C Lan wrote: > Have you changed the default keyboard shortcuts for anything ? > Now I see it. How unapplish. There at the bottom of the document, in the same colors as the document (white on black). I do change my settings to put the control key where God Meant it to be, but aside from that, I pretty much leave things alone. Now, if I could get X's cut and paste, or true focus follows mouse . . . I had to give those up to get spotlight, and I still miss them :( -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From lan.kc.macmail at gmail.com Wed Jan 13 00:21:52 2016 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Wed, 13 Jan 2016 13:21:52 +0800 Subject: Getting Finder results into LiveCode In-Reply-To: <35E1B3A6-B60D-4300-9CDF-45220BD84785@gmail.com> References: <9268BBDA-75AD-48E8-9973-946E94D781CE@hyperactivesw.com> <5694930C.2040304@hyperactivesw.com> <35E1B3A6-B60D-4300-9CDF-45220BD84785@gmail.com> Message-ID: On Wed, Jan 13, 2016 at 4:39 AM, Peter M. Brigham wrote: > I use a utility called Alfred on my Mac... > It allows you to search for files whose name contain , and also > allows you to search for files whose contents contain . This is the default way Spotlight works, it searches both for name or content. If you want to restrict to content only: intext:livecode revolution metacard This will find any document that contains all three words livecode OR revolution OR metacard This will find any file whose name or content contains either of the words listed. I only get one hit for the first seach: LiveCode Mobile Development Beginner's Guide [eBook].pdf > Plus it allows hotkeys for launching apps or files, What is your hotkey for Skype and Safari? I type cmd+spacebar s return and Skype is up and running. I type cmd+spacebar sa return and Safari starts. cmd+s is already taken so you can't be saving too many key strokes ;-) Once any file is found and hilited in Spotlight pressing Return will open it in it's default Application. > and a clipboard with memory -- see a list of the past 40 or 50 pieces of > text you've copied and insert the one you want with a keypress. Yes that is a very very useful feature. > Plus a whole lot more. > To learn more about Alfred I Googled Alfred vs Spotlight and came up with this website: https://www.quora .com/Will-the-new-Spotlight-in-OS-X-Yosemite-replace-Alfred?share=1 Which had this rather interesting list: These are some of the extra things Alfred has: > Alfred can close apps with the Quit command. > Alfred can find a file and reveal it in finder with Find > command. > Alfred can search Google, Yahoo, Wikipedia. > Alfred can set limit for the search. > Alfred can open URLs in browser. > Alfred can Shutdown, Sleep and Restart a Mac. I use cmd+q to Quit an app. Seems a lot quicker than typing: quit appname If a folder or file is hilited in Spotlight cmd+r will open a new finder window and reveal it's locations, no special Find command required. Spotlight only searches Google and Wikipedia, not Yahoo, or DuckDuckGo which is my browser's default search engine. Not sure what 'limit for the search' means. If I want just apps, or just folders, or just movies I can specify that. If a URL exists in your bookmarks or history or an entry you've placed into a search engine, then typing this into Spotlight will get hits under the 'Web Page' category and clicking on any of these will open the page in your default web browser. If it's an unknown web address I'm not sure why you'd be typing it into Alfred and not simply typing it into your browser? No, Spotlight can't Shutdown, Restart or Sleep my Mac. > > I like the user interface > > And really that's all that matters. If you are more productive because it's interface suits you better then that's all that counts. I mention these things not in an attempt to dissuade you from doing what you are doing but for others who may not appreciate what Spotlight can do for them; or have been given incorrect information as to what Spotlight can do. From jacque at hyperactivesw.com Wed Jan 13 01:13:39 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 13 Jan 2016 00:13:39 -0600 Subject: Getting the clicktext from a browser control Message-ID: <5695EB13.2040001@hyperactivesw.com> How are people dealing with the inability to know when a user clicks a link in a (desktop) browser object? The only message I get reliably is "browserNavigateComplete". What if I want to know what's clicked before that? BrowserClick only works on Windows, so I can't use that. BrowserBeforeNavigate doesn't always get sent. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From klaus at major-k.de Wed Jan 13 04:42:17 2016 From: klaus at major-k.de (Klaus major-k) Date: Wed, 13 Jan 2016 10:42:17 +0100 Subject: mobilepick more than one option at a time without more than one pickwheel? In-Reply-To: References: Message-ID: <68042C7E-72F2-44DD-BFBC-F3E7BD196CB5@major-k.de> > Am 12.01.2016 um 18:49 schrieb Klaus major-k : > > Hi all, > > is there a way to let the user pick more than one option in ONE mobilepick xyz? > I do not want to show two or more pickwheels! If yes, how can this be done? > Or do I need to ?roll my own? with a listfield or a group or something? > > Like providing a list of weekday names and the user can seldct more than one day at once. > > Thanks in advance! Smart ideas anyone? Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From dixonja at hotmail.co.uk Wed Jan 13 05:21:30 2016 From: dixonja at hotmail.co.uk (John Dixon) Date: Wed, 13 Jan 2016 10:21:30 +0000 Subject: mobilepick more than one option at a time without more than one pickwheel? In-Reply-To: <68042C7E-72F2-44DD-BFBC-F3E7BD196CB5@major-k.de> References: , <68042C7E-72F2-44DD-BFBC-F3E7BD196CB5@major-k.de> Message-ID: > > Am 12.01.2016 um 18:49 schrieb Klaus major-k : > > > > Hi all, > > > > is there a way to let the user pick more than one option in ONE mobilepick xyz? > > I do not want to show two or more pickwheels! If yes, how can this be done? > > Or do I need to ?roll my own? with a listfield or a group or something? > > > > Like providing a list of weekday names and the user can seldct more than one day at once. > > > Klaus Klaus... I seem to remember that Bernd Niggeman wrote a 'pickwheel' when mobile first came to liveCode. I don't remember too much of the detail now, but do remember that it was impressive.. It would be worth talking to him..:-) Dixie From effendi at wanadoo.fr Wed Jan 13 07:55:00 2016 From: effendi at wanadoo.fr (Francis Nugent Dixon) Date: Wed, 13 Jan 2016 13:55:00 +0100 Subject: Getting Finder results into LiveCode Message-ID: <59F1956F-3AB5-49BB-8817-B081C6F1E959@wanadoo.fr> Hi from Beautiful Brittany, Thanks to all for your responses, especially to Martin Koob and Klaus Major. I have all I need. I had tinkered with the idea of using AppleScript, but apart from simple scripts, I find AppleScript excessively impenetrable, even after 50 years of programming in many languages ......... To clarify my apparent disorder in having multiple copies of some files, iTunes Libraries, iPhoto Libraries, , etc., on FIVE different Macs. I will explain why I needed precise responses to my questions. I move around my multiple copies, on external disks, from my master data bases on Computer 1, to my other computers for use by others. Every so often, I mount all my external disks onto Computer 1, and now need to know which data base copies are out of sync, sync them, and then put them back in circulation on the other computers. When my kids and grandkids come to visit, they can access mirror copies of my master computer (and screw them up if they want), not impacting my data bases. But I also want to access Finder information for other motives, and so I used this specific example to define my problem. In this instance, whether I will have problems getting the info from all of my external disks, and then syncing all the file copies, is an obstacle I will overcome when I get to it. And because I program every waking day, and often look for complicated solutions to strange requirements, often trashing results which do not do what I want, is not a problem. I program in LiveCode because I love programming. Whether I get apps which work is not a prerequisite !! Thanks again ! -Francis From benr_mc at cogapp.com Wed Jan 13 08:07:36 2016 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Wed, 13 Jan 2016 13:07:36 +0000 Subject: mobile acceleration/rotation Message-ID: <56964C18.4040101@cogapp.com> Hmmmm - I've just tried reading the acceleration and rotation sensors. I admit to finding the whole business confusing, but it seems to me that the data accompanying the accelerationChanged message represents the static orientation of the device. At first I thought that the "rotation" and "acceleration" had been swapped - but then I realised it wasn't "rotation" but "rotation rate". At any rate, the readings I'm getting for acceleration, with my phone lying flat on the desk, have x and y approximately 0, and z at -1. If I bring the phone upright on its short end, y shifts to -1 and z to 0. If instead I bring it upright to lie on its left edge, x goes to -1 and y and z to 0; if I bring it upright on the right edge, x goes to 1, y and z to 0. These seem perfectly reasonable things to me, i.e. they seem to represent the state of rotation around the various axes; but I don't understand how they relate to acceleration. Can someone explain this to me? Many thanks, Ben From klaus at major-k.de Wed Jan 13 08:38:11 2016 From: klaus at major-k.de (Klaus major-k) Date: Wed, 13 Jan 2016 14:38:11 +0100 Subject: mobilepick more than one option at a time without more than one pickwheel? In-Reply-To: References: <68042C7E-72F2-44DD-BFBC-F3E7BD196CB5@major-k.de> Message-ID: <7E8642E7-6681-4D9F-A5DC-C9276ADFAB51@major-k.de> HI Dixie, > Am 13.01.2016 um 11:21 schrieb John Dixon : > >>> Am 12.01.2016 um 18:49 schrieb Klaus major-k : >>> >>> Hi all, >>> >>> is there a way to let the user pick more than one option in ONE mobilepick xyz? >>> I do not want to show two or more pickwheels! If yes, how can this be done? >>> Or do I need to ?roll my own? with a listfield or a group or something? >>> Like providing a list of weekday names and the user can seldct more than one day at once. > >> Klaus > > Klaus... > > I seem to remember that Bernd Niggeman wrote a 'pickwheel' when mobile first came to liveCode. > I don't remember too much of the detail now, but do remember that it was impressive.. > > It would be worth talking to him..:-) Yes, I know these stacks, but they also only allowed to pick ONE option, if I remember correctly. My question was, if there is some ?mobile control" that does what I need ;-) > Dixie Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From colinholgate at gmail.com Wed Jan 13 08:39:19 2016 From: colinholgate at gmail.com (Colin Holgate) Date: Wed, 13 Jan 2016 08:39:19 -0500 Subject: Getting the clicktext from a browser control In-Reply-To: <5695EB13.2040001@hyperactivesw.com> References: <5695EB13.2040001@hyperactivesw.com> Message-ID: The times that BrowserBeforeNavigate doesn?t get sent, is a BrowserBeforeNavigateFrame sent instead? > On Jan 13, 2016, at 1:13 AM, J. Landman Gay wrote: > > How are people dealing with the inability to know when a user clicks a link in a (desktop) browser object? The only message I get reliably is "browserNavigateComplete". What if I want to know what's clicked before that? > > BrowserClick only works on Windows, so I can't use that. BrowserBeforeNavigate doesn't always get sent. > > -- > 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 alanstenhouse at hotmail.com Wed Jan 13 12:08:06 2016 From: alanstenhouse at hotmail.com (Alan Stenhouse) Date: Wed, 13 Jan 2016 18:08:06 +0100 Subject: LC7.1 Screen update problem on iOS? Message-ID: Hi all Running my current app using LC 7.1 on iOS Simulator 8.2 for iPad - I get problems with the screen not updating while it runs properly under LC 7.0.6 on the same simulator. Even just simple icon highlights don't actually appear on touch. Weird. Had anyone else noticed screen update problems using LC 7.1 or later? Or have I missed posts about this issue? cheers Alan From jmac at consensustech.com Wed Jan 13 12:11:19 2016 From: jmac at consensustech.com (Jim MacConnell) Date: Wed, 13 Jan 2016 09:11:19 -0800 Subject: mobile acceleration/rotation In-Reply-To: <56964C18.4040101@cogapp.com> References: <56964C18.4040101@cogapp.com> Message-ID: <039201d14e25$6b91d190$42b574b0$@consensustech.com> Short answer: Gravity. The device can't measure actual acceleration. It measures the forces on sensors in 3 axes. One of those axes will feel force from gravity. That's the 1. Jim -----Original Message----- From: Ben Rubinstein [mailto:benr_mc at cogapp.com] Sent: Wednesday, January 13, 2016 5:08 AM To: Use LiveCode Subject: mobile acceleration/rotation Hmmmm - I've just tried reading the acceleration and rotation sensors. I admit to finding the whole business confusing, but it seems to me that the data accompanying the accelerationChanged message represents the static orientation of the device. At first I thought that the "rotation" and "acceleration" had been swapped - but then I realised it wasn't "rotation" but "rotation rate". At any rate, the readings I'm getting for acceleration, with my phone lying flat on the desk, have x and y approximately 0, and z at -1. If I bring the phone upright on its short end, y shifts to -1 and z to 0. If instead I bring it upright to lie on its left edge, x goes to -1 and y and z to 0; if I bring it upright on the right edge, x goes to 1, y and z to 0. These seem perfectly reasonable things to me, i.e. they seem to represent the state of rotation around the various axes; but I don't understand how they relate to acceleration. Can someone explain this to me? Many thanks, 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 ali.lloyd at livecode.com Wed Jan 13 13:05:03 2016 From: ali.lloyd at livecode.com (Ali Lloyd) Date: Wed, 13 Jan 2016 18:05:03 +0000 Subject: Release: 8.0 DP 13 Message-ID: Dear list members, We are pleased to announce the release of LiveCode 8.0 DP 13. Warning: this is not a stable release. Please ensure you back up your stacks before testing them. *IMPORTANT*: It is especially vital that you back up your stacks before testing them in 8.0 DP 13, as there has been a change to the save command. The IDE has been updated to accommodate this change, but we strongly recommend making back-ups in case there is unforeseen data loss. *Release contents* *More accurate measurements when laying out text* The measurements used by LiveCode to lay out text (the text "metrics") in versions prior to 8 were optimised for low-resolution bitmap fonts. In LiveCode 8, more accurate measurements are now being used by the field and other controls. *Improvements for saving in old stack file formats* It is now possible to specify a version of the stack file format to be used when saving directly with the save command, by using the save STACK with format VERSION form of the command. *Dictionary data build location* Previously the IDE would try to build dictionary data internally, which was a problem for the installed application on Windows and Linux (as the location was not necessarily writable). This also enables navigation to specific docs entries on platforms where the browser widget is not available. *LCB array literals* It is now possible to use array constants and array expressions in LiveCode Builder programs. *35 bug fixes* *Known Issues* - Cef Browser (and therefore the dictionary and browser widget) does not currently work on 32-bit Linux - HTML 5 standalones do not currently function when they contain extensions with dependencies. *Getting the release* You can get the release at http://downloads.livecode.com/livecode/ LiveCode 8 is still in development so we?d love to hear any feedback you have on it. There are a number of features that we?d like to implement but aren?t ready yet and the existing features are subject to change during development - we can?t guarantee that extensions written in Developer Previews will continue to work the same way in later versions. Please report any bugs encountered on our Bugzilla at http://quality.livecode.com/ We have a forum available for discussing LiveCode Builder at http://forums.livecode.com/viewforum.php?f=93 The LiveCode Team From dochawk at gmail.com Wed Jan 13 13:24:52 2016 From: dochawk at gmail.com (Dr. Hawkins) Date: Wed, 13 Jan 2016 10:24:52 -0800 Subject: Figuring out if something is on the current screen, or getting the current screen rect In-Reply-To: References: <5691A54B.2010500@ahsoftware.net> Message-ID: On Mon, Jan 11, 2016 at 4:03 PM, Bob Sneidar wrote: > There is no notion of a current screen in the OS itself. Do you mean which > screen the frontmost window is in? And what do you mean by "In"? A window > can overlap two or more screens. Typically if you double click the title > bar of a window, the window will maximize on the screen the mouse is in. I'm trying to pop another stack with selections over an object from that object's handler. My concern is the popup going over the top or bottom. (There's a secondary left/right issue, too, but the top/bottom is the big issue)) So something like on mouseOver lock screen palette stack "choose" at the screenLoc of me do some magic to keep it on screen end mouseOver -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From jacque at hyperactivesw.com Wed Jan 13 13:51:06 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 13 Jan 2016 12:51:06 -0600 Subject: Getting the clicktext from a browser control In-Reply-To: References: <5695EB13.2040001@hyperactivesw.com> Message-ID: <56969C9A.9050005@hyperactivesw.com> On 1/13/2016 7:39 AM, Colin Holgate wrote: > The times that BrowserBeforeNavigate doesn?t get sent, is a > BrowserBeforeNavigateFrame sent instead? There are no frames, so no. The browserBeforeNavigate only gets sent when the URL changes, and the links in the page do not always change URLs, (they are basically reference IDs, mainly footnotes) so that's why. If the footnote is contained in the existing browser content then the link navigates but I can't find out about it until after the navigation completes. If the link points to another set of content that isn't loaded yet, nothing happens and I still don't find out about it until browserNavigateComplete is sent. I want to know what link was clicked so I can handle it regardless of the intended link destination. I don't see any way to do that. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From richmondmathewson at gmail.com Wed Jan 13 14:50:17 2016 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 13 Jan 2016 21:50:17 +0200 Subject: Release: 8.0 DP 13 In-Reply-To: References: Message-ID: <5696AA79.9090202@gmail.com> Over 'here' on Xubuntu 14.04 LTS 64 bit the Dictionary looks far, far better, but sadly the search facility doesn't let one enter text. Richmond. From terry.judd at unimelb.edu.au Wed Jan 13 19:45:58 2016 From: terry.judd at unimelb.edu.au (Terry Judd) Date: Thu, 14 Jan 2016 00:45:58 +0000 Subject: Setting up for android development on OS X 10.10 - help needed Message-ID: Hi all ? after a long break from developing for Android I need to get up and running again but seem to be getting nowhere. I have all the Android sdk stuff installed and updated and installed Java but when I go to configure things in LC it accepts the location of the Android SDK root folder but the JDK path stays empty. I can build an app ok but even the simplest one will immediately crash (on the simulator ? I?m still trying to get my device to show up on the target list). A search of the forums suggests that the empty path thing this is a known issue( from some months ago) and a post (reply) from Sebastian in late November last year suggested that you need to install the now deprecated Java 6 to undertake Android development in LC. I?d try that if I could only find somewhere to download Java 6 from! Does anyone have this stuff working on OS X 10.10 (or later) and care to provide some tips on how they got it to work? Best regards, Terry? Terry Judd | Senior Lecturer in Medical Education Department of Medical Education The University of Melbourne M: 0435 961 594 | E: terry.judd at unimelb.edu.au Publications From terry.judd at unimelb.edu.au Wed Jan 13 20:21:38 2016 From: terry.judd at unimelb.edu.au (Terry Judd) Date: Thu, 14 Jan 2016 01:21:38 +0000 Subject: Setting up for android development on OS X 10.10 - help needed In-Reply-To: References: Message-ID: OK - so I did manage to find and install a copy of Java 6 (I deleted the existing newer version of Java and then did a default install) and now the JDK path bit in the mobile support pane of the LC preferences window has a value in it but everything else remains the same. Even the simplest app crashes on the Android simulator. I?m also trying to get a real device to show up under the development>test target menu without success. I have a couple of Samsung phones (S2 and S4 mini) both with usb debugging enabled but neither shows up in the test target menu when connected. Any ideas? Terry... On 14/01/2016 11:45 am, "use-livecode on behalf of Terry Judd? wrote: >Hi all ? after a long break from developing for Android I need to get up >and running again but seem to be getting nowhere. I have all the Android >sdk stuff installed and updated and installed Java but when I go to >configure things in LC it accepts the location of the Android SDK root >folder but the JDK path stays empty. I can build an app ok but even the >simplest one will immediately crash (on the simulator ? I?m still trying >to get my device to show up on the target list). > >A search of the forums suggests that the empty path thing this is a known >issue( from some months ago) and a post (reply) from Sebastian in late >November last year suggested that you need to install the now deprecated >Java 6 to undertake Android development in LC. I?d try that if I could >only find somewhere to download Java 6 from! > >Does anyone have this stuff working on OS X 10.10 (or later) and care to >provide some tips on how they got it to work? > >Best regards, > >Terry? > >Terry Judd | Senior Lecturer in Medical Education >Department of Medical >Education >The University of Melbourne >M: 0435 961 594 | E: >terry.judd at unimelb.edu.au >Publicationsen> >_______________________________________________ >use-livecode mailing list >use-livecode at 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 Wed Jan 13 11:44:30 2016 From: pmbrig at gmail.com (Peter M. Brigham) Date: Wed, 13 Jan 2016 11:44:30 -0500 Subject: Getting Finder results into LiveCode In-Reply-To: References: <9268BBDA-75AD-48E8-9973-946E94D781CE@hyperactivesw.com> <5694930C.2040304@hyperactivesw.com> <35E1B3A6-B60D-4300-9CDF-45220BD84785@gmail.com> Message-ID: On Jan 13, 2016, at 12:21 AM, Kay C Lan wrote: > On Wed, Jan 13, 2016 at 4:39 AM, Peter M. Brigham wrote: > >> I use a utility called Alfred on my Mac... > > > >> It allows you to search for files whose name contain , and also >> allows you to search for files whose contents contain . > > > This is the default way Spotlight works, it searches both for name or > content. If you want to restrict to content only: > > intext:livecode revolution metacard > > This will find any document that contains all three words > > livecode OR revolution OR metacard > > This will find any file whose name or content contains either of the words > listed. > > I only get one hit for the first seach: LiveCode Mobile Development > Beginner's Guide [eBook].pdf > > >> Plus it allows hotkeys for launching apps or files, > > > What is your hotkey for Skype and Safari? I type cmd+spacebar s return and > Skype is up and running. I type cmd+spacebar sa return and Safari starts. > cmd+s is already taken so you can't be saving too many key strokes ;-) > > Once any file is found and hilited in Spotlight pressing Return will open > it in it's default Application. With Alfred, you can assign any document or app any free hotkey. I use control-option- for all launching shortcuts, and I have a shortcut for all my frequently used LC stacks, as well as for a few other documents. > and a clipboard with memory -- see a list of the past 40 or 50 pieces of >> text you've copied and insert the one you want with a keypress. > > > Yes that is a very very useful feature. I use it all the time > Plus a whole lot more. for instance, summon Alfred, type ">" then enter a shell command, and it sends the command to Terminal. Control iTunes as well. > To learn more about Alfred I Googled Alfred vs Spotlight and came up with > this website: > > https://www.quora > .com/Will-the-new-Spotlight-in-OS-X-Yosemite-replace-Alfred?share=1 > > Which had this rather interesting list: > > These are some of the extra things Alfred has: >> Alfred can close apps with the Quit command. >> Alfred can find a file and reveal it in finder with Find >> command. >> Alfred can search Google, Yahoo, Wikipedia. >> Alfred can set limit for the search. >> Alfred can open URLs in browser. >> Alfred can Shutdown, Sleep and Restart a Mac. > > > I use cmd+q to Quit an app. Seems a lot quicker than typing: quit appname Yeah, never use this, seems superfluous > If a folder or file is hilited in Spotlight cmd+r will open a new finder > window and reveal it's locations, no special Find command required. > > Spotlight only searches Google and Wikipedia, not Yahoo, or DuckDuckGo > which is my browser's default search engine. > > Not sure what 'limit for the search' means. If I want just apps, or just > folders, or just movies I can specify that. > > If a URL exists in your bookmarks or history or an entry you've placed into > a search engine, then typing this into Spotlight will get hits under the > 'Web Page' category and clicking on any of these will open the page in your > default web browser. If it's an unknown web address I'm not sure why you'd > be typing it into Alfred and not simply typing it into your browser? > > No, Spotlight can't Shutdown, Restart or Sleep my Mac. > >> I like the user interface > > And really that's all that matters. If you are more productive because > it's interface suits you better then that's all that counts. I mention > these things not in an attempt to dissuade you from doing what you are > doing but for others who may not appreciate what Spotlight can do for them; > or have been given incorrect information as to what Spotlight can do. Right. It's all about what comes naturally to the individual user. Actually, if Alfred didn't exist, I'd do fine with just using Spotlight, except for the clipboard history function, which I use constantly, eg, copying multiple LC fields, then going to another card/stack and pasting them one by one -- no constant back-and-forth. And I like the launching shortcuts. -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig From lan.kc.macmail at gmail.com Wed Jan 13 21:24:52 2016 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Thu, 14 Jan 2016 10:24:52 +0800 Subject: Getting Finder results into LiveCode In-Reply-To: <59F1956F-3AB5-49BB-8817-B081C6F1E959@wanadoo.fr> References: <59F1956F-3AB5-49BB-8817-B081C6F1E959@wanadoo.fr> Message-ID: On Wed, Jan 13, 2016 at 8:55 PM, Francis Nugent Dixon wrote: > I love > programming. Whether I get apps which work is not a prerequisite !! > > Brilliant! Made me smile from ear to ear... it's going to be a good day:-) From lan.kc.macmail at gmail.com Wed Jan 13 21:53:04 2016 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Thu, 14 Jan 2016 10:53:04 +0800 Subject: Getting Finder results into LiveCode In-Reply-To: References: <9268BBDA-75AD-48E8-9973-946E94D781CE@hyperactivesw.com> <5694930C.2040304@hyperactivesw.com> <35E1B3A6-B60D-4300-9CDF-45220BD84785@gmail.com> Message-ID: On Thu, Jan 14, 2016 at 12:44 AM, Peter M. Brigham wrote: > > > > Plus a whole lot more. > > for instance, summon Alfred, type ">" then enter a shell command, and it > sends the command to Terminal. \ Oh, now you're talking! I love the way I can look up a Dictionary definition or do a quick arithmetic calculation in Spotlight. Use it constantly. Spotlight can't send Terminal commands, and that is a feature I could get use to very quickly! Of course in Terminal you can carry out a Spotlight style search by using mdfind with the big difference that instead of being limited to the top 20 or 30 most relevant hits, you get everything. And if you want file paths, you've got them. mdfind livecode mdfind -count livecode From capellan2000 at gmail.com Wed Jan 13 22:31:22 2016 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Wed, 13 Jan 2016 19:31:22 -0800 (PST) Subject: Release: 8.0 DP 13 In-Reply-To: <5696AA79.9090202@gmail.com> References: <5696AA79.9090202@gmail.com> Message-ID: <1452742282519-4700164.post@n4.nabble.com> How could I uninstall a previous version of LC8 under Ubuntu 14.04? Thanks in advance! Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Release-8-0-DP-13-tp4700155p4700164.html Sent from the Revolution - User mailing list archive at Nabble.com. From mwieder at ahsoftware.net Thu Jan 14 01:33:04 2016 From: mwieder at ahsoftware.net (Mark Wieder) Date: Wed, 13 Jan 2016 22:33:04 -0800 Subject: Release: 8.0 DP 13 In-Reply-To: <1452742282519-4700164.post@n4.nabble.com> References: <5696AA79.9090202@gmail.com> <1452742282519-4700164.post@n4.nabble.com> Message-ID: <56974120.7080205@ahsoftware.net> On 01/13/2016 07:31 PM, Alejandro Tejada wrote: > How could I uninstall a previous version > of LC8 under Ubuntu 14.04? Depends on which version and whether you installed just for you or for all users. If you installed for all users: for rc12 then look in /opt/livecode navigate into the version's directory 32-bit: ./setup.x86 uninstall 64-bit: ./setup.x86_64 uninstall for previous versions look in /opt/runrev and run ./.setup.x86 uninstall you may have to chmod it first. If you installed just for you: look in your home directory, then do the above -- Mark Wieder ahsoftware at gmail.com From james at thehales.id.au Thu Jan 14 01:43:47 2016 From: james at thehales.id.au (jameshale) Date: Wed, 13 Jan 2016 22:43:47 -0800 (PST) Subject: DP13 breaks GLX framework Message-ID: <1452753827432-4700166.post@n4.nabble.com> Hopefully there are people out there who have a more intimate knowledge of the GLX framework than I. Opening a GLX based app with DP13 hits a snag in the last handler just before the launcher is dismissed. Consequently no preopenwindow handler makes it to the main app stack and necessary set up routines do not happen. All versions of LC8 up until this point have proceeded without incident. Something has changed in DP13. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/DP13-breaks-GLX-framework-tp4700166.html Sent from the Revolution - User mailing list archive at Nabble.com. From merakosp at gmail.com Thu Jan 14 05:37:43 2016 From: merakosp at gmail.com (panagiotis merakos) Date: Thu, 14 Jan 2016 10:37:43 +0000 Subject: Setting up for android development on OS X 10.10 - help needed In-Reply-To: References: Message-ID: Hi Terry, Regarding the crash on startup when deploying to android simulator: What version of Android is running on the simulator? I have experienced crashes *only* when deploying to android 2.3.3 simulator. Other android versions work as expected. If you experience the crash not only in 2.3.3 simulator, but also in *any* android version less or equal to 4.1.3, then you are probably affected by bug 16688: http://quality.livecode.com/show_bug.cgi?id=16688 which we cannot reproduce, but according to the bug report it affects *only* LiveCode 7.1.1 releases (works fine in 7.1.0). Regarding the problem of not seeing your devices under the development>test target menu: What happens if you type in the OS X terminal : "adb devices" ? If you see an empty list, then the problem is that your devices are not recognized. I have experienced this problem a number of times. I would suggest using a different android cable. If this does not work, type in the terminal: "adb kill-server" and then "adb start-server" Hope this helps, Panos -- On Thu, Jan 14, 2016 at 1:21 AM, Terry Judd wrote: > OK - so I did manage to find and install a copy of Java 6 (I deleted the > existing newer version of Java and then did a default install) and now the > JDK path bit in the mobile support pane of > the LC preferences window has a value in it but everything else remains > the same. Even the simplest app crashes on the Android simulator. > > I?m also trying to get a real device to show up under the development>test > target menu without success. I have a couple of Samsung phones (S2 and S4 > mini) both with usb debugging enabled but neither shows up in the test > target menu when connected. Any ideas? > > Terry... > > On 14/01/2016 11:45 am, "use-livecode on behalf of Terry Judd? > terry.judd at unimelb.edu.au> wrote: > > >Hi all ? after a long break from developing for Android I need to get up > >and running again but seem to be getting nowhere. I have all the Android > >sdk stuff installed and updated and installed Java but when I go to > >configure things in LC it accepts the location of the Android SDK root > >folder but the JDK path stays empty. I can build an app ok but even the > >simplest one will immediately crash (on the simulator ? I?m still trying > >to get my device to show up on the target list). > > > >A search of the forums suggests that the empty path thing this is a known > >issue( from some months ago) and a post (reply) from Sebastian in late > >November last year suggested that you need to install the now deprecated > >Java 6 to undertake Android development in LC. I?d try that if I could > >only find somewhere to download Java 6 from! > > > >Does anyone have this stuff working on OS X 10.10 (or later) and care to > >provide some tips on how they got it to work? > > > >Best regards, > > > >Terry? > > > >Terry Judd | Senior Lecturer in Medical Education > >Department of Medical > >Education > >The University of Melbourne > >M: 0435 961 594 | E: > >terry.judd at unimelb.edu.au > >Publications< > https://scholar.google.com.au/citations?user=XC5s6wwAAAAJ&hl= > >en> > >_______________________________________________ > >use-livecode mailing list > >use-livecode 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 benr_mc at cogapp.com Thu Jan 14 06:06:23 2016 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Thu, 14 Jan 2016 11:06:23 +0000 Subject: mobile acceleration/rotation In-Reply-To: <039201d14e25$6b91d190$42b574b0$@consensustech.com> References: <56964C18.4040101@cogapp.com> <039201d14e25$6b91d190$42b574b0$@consensustech.com> Message-ID: <5697812F.60102@cogapp.com> Thanks Jim. So if the device is vertical at rest (y=-1), and falls down vertically, it won't register any acceleration because it's already measuring the maximum in that axis? In short, it's static acceleration rather than dynamic acceleration, is that correct? Many thanks, Ben On 13/01/2016 17:11, Jim MacConnell wrote: > Short answer: Gravity. > The device can't measure actual acceleration. It measures the forces on > sensors in 3 axes. One of those axes will feel force from gravity. That's > the 1. > Jim > > -----Original Message----- > From: Ben Rubinstein [mailto:benr_mc at cogapp.com] > Sent: Wednesday, January 13, 2016 5:08 AM > To: Use LiveCode > Subject: mobile acceleration/rotation > > Hmmmm - I've just tried reading the acceleration and rotation sensors. I > admit to finding the whole business confusing, but it seems to me that the > data accompanying the accelerationChanged message represents the static > orientation of the device. > > At first I thought that the "rotation" and "acceleration" had been swapped - > but then I realised it wasn't "rotation" but "rotation rate". > > At any rate, the readings I'm getting for acceleration, with my phone lying > flat on the desk, have x and y approximately 0, and z at -1. If I bring the > phone upright on its short end, y shifts to -1 and z to 0. If instead I > bring it upright to lie on its left edge, x goes to -1 and y and z to 0; if > I bring it upright on the right edge, x goes to 1, y and z to 0. > > These seem perfectly reasonable things to me, i.e. they seem to represent > the state of rotation around the various axes; but I don't understand how > they relate to acceleration. > > Can someone explain this to me? > > Many thanks, > > Ben > From james at thehales.id.au Thu Jan 14 08:20:29 2016 From: james at thehales.id.au (jameshale) Date: Thu, 14 Jan 2016 05:20:29 -0800 (PST) Subject: DP13 breaks GLX framework In-Reply-To: <1452753827432-4700166.post@n4.nabble.com> References: <1452753827432-4700166.post@n4.nabble.com> Message-ID: <1452777629612-4700169.post@n4.nabble.com> ok, the error I am getting is" button "glxappManagedEngineMessages": execution error at line 7342 (Chunk: can't find background), char 9 I can of course not find a line 7342 in a script that has only 279 lines. The button referred to is in the 'scripts' card in a group 'frontscripts' of the 'glxapplicationframework.dat' stack. The calling chain is... glxApplicationFramework ->glxapp_loadApplication application->glxapp_openApplication glxappManagedEngineMessages->preopenstack I have tried tracing the path but it seems to be all ok. I can't find any error, but see below. If I launch and kill the handler when the script debugger comes up and then call my "PreOpenWindow" handler (which resides in my main stack "program") then my app completes its correct loading sequence and all is fine. Note: before I do this my main stack has opened, it is just not initialised. Running the preopenwindow handler completes the initialisation. While tracing the launch progress there are many 'try..catch..end try' blocks. They are all quite simple and of the form.. try some handler or function call catch e ThrowError e end TRY In almost quite a few cases I would go to the "ThrowError e" line and into the 'ThrowError' handler. However nothing is in the 'e' parameter, at least nothing until the end. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/DP13-breaks-GLX-framework-tp4700166p4700169.html Sent from the Revolution - User mailing list archive at Nabble.com. From MikeKerner at roadrunner.com Thu Jan 14 08:47:20 2016 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 14 Jan 2016 08:47:20 -0500 Subject: mobilepick more than one option at a time without more than one pickwheel? In-Reply-To: <7E8642E7-6681-4D9F-A5DC-C9276ADFAB51@major-k.de> References: <68042C7E-72F2-44DD-BFBC-F3E7BD196CB5@major-k.de> <7E8642E7-6681-4D9F-A5DC-C9276ADFAB51@major-k.de> Message-ID: I thought you could use mobilePick to select multiples. Anyway, I use tmc2 for most mobile controls, including building pickers, and have not regretted it for a moment. One of the nice things about tmc is you can customize the library easily to get exaclty the behavior you want. So, for example, in one case I have a form for a tablet with three pickers on the same screen, each with the option for multiple selections. On Wed, Jan 13, 2016 at 8:38 AM, Klaus major-k wrote: > HI Dixie, > > > Am 13.01.2016 um 11:21 schrieb John Dixon : > > > >>> Am 12.01.2016 um 18:49 schrieb Klaus major-k : > >>> > >>> Hi all, > >>> > >>> is there a way to let the user pick more than one option in ONE > mobilepick xyz? > >>> I do not want to show two or more pickwheels! If yes, how can this be > done? > >>> Or do I need to ?roll my own? with a listfield or a group or something? > >>> Like providing a list of weekday names and the user can seldct more > than one day at once. > > > >> Klaus > > > > Klaus... > > > > I seem to remember that Bernd Niggeman wrote a 'pickwheel' when mobile > first came to liveCode. > > I don't remember too much of the detail now, but do remember that it was > impressive.. > > > > It would be worth talking to him..:-) > > Yes, I know these stacks, but they also only allowed to pick ONE option, > if I remember correctly. > My question was, if there is some ?mobile control" that does what I need > ;-) > > > Dixie > > 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 > -- 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 klaus at major-k.de Thu Jan 14 08:52:58 2016 From: klaus at major-k.de (Klaus major-k) Date: Thu, 14 Jan 2016 14:52:58 +0100 Subject: mobilepick more than one option at a time without more than one pickwheel? In-Reply-To: References: <68042C7E-72F2-44DD-BFBC-F3E7BD196CB5@major-k.de> <7E8642E7-6681-4D9F-A5DC-C9276ADFAB51@major-k.de> Message-ID: <8583020D-5CC7-4DAD-957D-B07AEA6B6783@major-k.de> Hi Mike, > Am 14.01.2016 um 14:47 schrieb Mike Kerner : > > I thought you could use mobilePick to select multiples. if there is I did not find out how to do this yet, any hints appreciated! > Anyway, I use tmc2 for most mobile controls, including building pickers, and have not > regretted it for a moment. One of the nice things about tmc is you can > customize the library easily to get exaclty the behavior you want. So, for > example, in one case I have a form for a tablet with three pickers on the > same screen, each with the option for multiple selections. wonderful, but no option for me ;-) > On Wed, Jan 13, 2016 at 8:38 AM, Klaus major-k wrote: > >> HI Dixie, >> >>> Am 13.01.2016 um 11:21 schrieb John Dixon : >>> >>>>> Am 12.01.2016 um 18:49 schrieb Klaus major-k : >>>>> >>>>> Hi all, >>>>> >>>>> is there a way to let the user pick more than one option in ONE >> mobilepick xyz? >>>>> I do not want to show two or more pickwheels! If yes, how can this be >> done? >>>>> Or do I need to ?roll my own? with a listfield or a group or something? >>>>> Like providing a list of weekday names and the user can seldct more >> than one day at once. >>> >>>> Klaus >>> >>> Klaus... >>> >>> I seem to remember that Bernd Niggeman wrote a 'pickwheel' when mobile >> first came to liveCode. >>> I don't remember too much of the detail now, but do remember that it was >> impressive.. >>> >>> It would be worth talking to him..:-) >> >> Yes, I know these stacks, but they also only allowed to pick ONE option, >> if I remember correctly. >> My question was, if there is some ?mobile control" that does what I need >> ;-) >> >>> Dixie Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From jmac at consensustech.com Thu Jan 14 09:02:36 2016 From: jmac at consensustech.com (Consensus IMAP) Date: Thu, 14 Jan 2016 06:02:36 -0800 Subject: mobile acceleration/rotation In-Reply-To: <5697812F.60102@cogapp.com> References: <56964C18.4040101@cogapp.com> <039201d14e25$6b91d190$42b574b0$@consensustech.com> <5697812F.60102@cogapp.com> Message-ID: <19B84B92-54C1-47CB-9703-D56E3563CA19@consensustech.com> Hopefully, I've got this right but..... I think of it as the "apparent" acceleration a mass attached to phone feels relative to the body of the device. At rest, if it wasn't attached, it would slide down the inside of the device and end up rattling inside the case. The force trying to make that happen is the mass in the sensor times the acceleration it feels: 1 g (gravity) = 9.8 m/sec^2 = 32 ft/sec^2. The "acceleration" is in units of g's. Not, drop the whole device. Both the mass and the device fall at the same velocity. The force require to hold them together is almost nothing because they are moving together. Thus the indicated acceleration would be near 0. When the device hits the floor, it stops but the mass tries to keep going. It takes a lot of force to hold it in place so it will indicate a huge acceleration. That acceleration is, in essence, the opposite of what the device itself experienced. Likewise for "sideways", accelerations. That little mass inside the device experiences forces that hold it in place and feels those as imposed accelerations due to the movement of the device Bet this just confused things. Bottom line. When at rest, the acceleration will have a magnitude of 1 with a vector pointing towards the middle of the earth. When the device is in free fall, it will indicate 0 because there is no relative force between the mass and the device. Do something that might "break the mass free inside the device" and it will indicate the force (apparent acceleration) between the device and the mass as a vector with a large magnitude. If you want the "imposed acceleration" the device is feeling, you'll have to "subtract" the 1 g acceleration vector from what "put the acceleration" returns. J Sent from my iPad > On Jan 14, 2016, at 3:06 AM, Ben Rubinstein wrote: > > Thanks Jim. > > So if the device is vertical at rest (y=-1), and falls down vertically, it won't register any acceleration because it's already measuring the maximum in that axis? > > In short, it's static acceleration rather than dynamic acceleration, is that correct? > > Many thanks, > > Ben > > >> On 13/01/2016 17:11, Jim MacConnell wrote: >> Short answer: Gravity. >> The device can't measure actual acceleration. It measures the forces on >> sensors in 3 axes. One of those axes will feel force from gravity. That's >> the 1. >> Jim >> >> -----Original Message----- >> From: Ben Rubinstein [mailto:benr_mc at cogapp.com] >> Sent: Wednesday, January 13, 2016 5:08 AM >> To: Use LiveCode >> Subject: mobile acceleration/rotation >> >> Hmmmm - I've just tried reading the acceleration and rotation sensors. I >> admit to finding the whole business confusing, but it seems to me that the >> data accompanying the accelerationChanged message represents the static >> orientation of the device. >> >> At first I thought that the "rotation" and "acceleration" had been swapped - >> but then I realised it wasn't "rotation" but "rotation rate". >> >> At any rate, the readings I'm getting for acceleration, with my phone lying >> flat on the desk, have x and y approximately 0, and z at -1. If I bring the >> phone upright on its short end, y shifts to -1 and z to 0. If instead I >> bring it upright to lie on its left edge, x goes to -1 and y and z to 0; if >> I bring it upright on the right edge, x goes to 1, y and z to 0. >> >> These seem perfectly reasonable things to me, i.e. they seem to represent >> the state of rotation around the various axes; but I don't understand how >> they relate to acceleration. >> >> Can someone explain this to me? >> >> Many thanks, >> >> 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 MikeKerner at roadrunner.com Thu Jan 14 09:11:17 2016 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 14 Jan 2016 09:11:17 -0500 Subject: mobilepick more than one option at a time without more than one pickwheel? In-Reply-To: <8583020D-5CC7-4DAD-957D-B07AEA6B6783@major-k.de> References: <68042C7E-72F2-44DD-BFBC-F3E7BD196CB5@major-k.de> <7E8642E7-6681-4D9F-A5DC-C9276ADFAB51@major-k.de> <8583020D-5CC7-4DAD-957D-B07AEA6B6783@major-k.de> Message-ID: Then, I would suggest rolling your own. It is relatively straightforward, even if you want to add some funky features, which I don't think you're doing in this case. I have the "pickerwheel" stacks/source, but I didn't like them as much as I liked my own flat version. You know how to find me if you need help. On Thu, Jan 14, 2016 at 8:52 AM, Klaus major-k wrote: > Hi Mike, > > > Am 14.01.2016 um 14:47 schrieb Mike Kerner : > > > > I thought you could use mobilePick to select multiples. > > if there is I did not find out how to do this yet, any hints appreciated! > > > Anyway, I use tmc2 for most mobile controls, including building pickers, > and have not > > regretted it for a moment. One of the nice things about tmc is you can > > customize the library easily to get exaclty the behavior you want. So, > for > > example, in one case I have a form for a tablet with three pickers on the > > same screen, each with the option for multiple selections. > > wonderful, but no option for me ;-) > > > On Wed, Jan 13, 2016 at 8:38 AM, Klaus major-k wrote: > > > >> HI Dixie, > >> > >>> Am 13.01.2016 um 11:21 schrieb John Dixon : > >>> > >>>>> Am 12.01.2016 um 18:49 schrieb Klaus major-k : > >>>>> > >>>>> Hi all, > >>>>> > >>>>> is there a way to let the user pick more than one option in ONE > >> mobilepick xyz? > >>>>> I do not want to show two or more pickwheels! If yes, how can this > be > >> done? > >>>>> Or do I need to ?roll my own? with a listfield or a group or > something? > >>>>> Like providing a list of weekday names and the user can seldct more > >> than one day at once. > >>> > >>>> Klaus > >>> > >>> Klaus... > >>> > >>> I seem to remember that Bernd Niggeman wrote a 'pickwheel' when mobile > >> first came to liveCode. > >>> I don't remember too much of the detail now, but do remember that it > was > >> impressive.. > >>> > >>> It would be worth talking to him..:-) > >> > >> Yes, I know these stacks, but they also only allowed to pick ONE option, > >> if I remember correctly. > >> My question was, if there is some ?mobile control" that does what I need > >> ;-) > >> > >>> Dixie > > 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 > -- 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 lists at mangomultimedia.com Thu Jan 14 10:06:11 2016 From: lists at mangomultimedia.com (Trevor DeVore) Date: Thu, 14 Jan 2016 10:06:11 -0500 Subject: DP13 breaks GLX framework In-Reply-To: <1452777629612-4700169.post@n4.nabble.com> References: <1452753827432-4700166.post@n4.nabble.com> <1452777629612-4700169.post@n4.nabble.com> Message-ID: On Thursday, January 14, 2016, jameshale wrote: > ok, the error I am getting is" > button "glxappManagedEngineMessages": execution error at line 7342 (Chunk: > can't find background), char 9 > > I can of course not find a line 7342 in a script that has only 279 lines. > The button referred to is in the 'scripts' card in a group 'frontscripts' > of > the 'glxapplicationframework.dat' stack. > James, Does your stack (or card) script have a line 7342? Look and see if that line is trying to reference an object that doesn't exist. -- Trevor DeVore From ali.lloyd at livecode.com Thu Jan 14 10:11:59 2016 From: ali.lloyd at livecode.com (Ali Lloyd) Date: Thu, 14 Jan 2016 15:11:59 +0000 Subject: DP13 breaks GLX framework In-Reply-To: <1452777629612-4700169.post@n4.nabble.com> References: <1452753827432-4700166.post@n4.nabble.com> <1452777629612-4700169.post@n4.nabble.com> Message-ID: I can confirm this is a DP 13 regression, caused by the fix to bug 16351 ( https://github.com/livecode/livecode/pull/3448) The error is occurring in the data grid behavior. I think problem is something to do with 'the target' and 'me' evaluating to different things in a context where they should evaluate to the same thing. On Thu, Jan 14, 2016 at 1:20 PM jameshale wrote: > ok, the error I am getting is" > button "glxappManagedEngineMessages": execution error at line 7342 (Chunk: > can't find background), char 9 > > I can of course not find a line 7342 in a script that has only 279 lines. > The button referred to is in the 'scripts' card in a group 'frontscripts' > of > the 'glxapplicationframework.dat' stack. > > The calling chain is... > glxApplicationFramework ->glxapp_loadApplication > application->glxapp_openApplication > glxappManagedEngineMessages->preopenstack > > I have tried tracing the path but it seems to be all ok. I can't find any > error, but see below. > > If I launch and kill the handler when the script debugger comes up and then > call my "PreOpenWindow" handler (which resides in my main stack "program") > then my app completes its correct loading sequence and all is fine. > Note: before I do this my main stack has opened, it is just not > initialised. > Running the preopenwindow handler completes the initialisation. > > While tracing the launch progress there are many 'try..catch..end try' > blocks. > They are all quite simple and of the form.. > try > some handler or function call > catch e > ThrowError e > end TRY > > In almost quite a few cases I would go to the "ThrowError e" line and into > the 'ThrowError' handler. > However nothing is in the 'e' parameter, at least nothing until the end. > > > > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/DP13-breaks-GLX-framework-tp4700166p4700169.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 james at thehales.id.au Thu Jan 14 10:00:33 2016 From: james at thehales.id.au (jameshale) Date: Thu, 14 Jan 2016 07:00:33 -0800 (PST) Subject: DP13 breaks GLX framework In-Reply-To: References: <1452753827432-4700166.post@n4.nabble.com> <1452777629612-4700169.post@n4.nabble.com> Message-ID: <1452783633750-4700176.post@n4.nabble.com> Aha. Thanks Ali. Does a bug report need to be generated? (Well, actually will you be entering one given you know what it is?) -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/DP13-breaks-GLX-framework-tp4700166p4700176.html Sent from the Revolution - User mailing list archive at Nabble.com. From littlejamesw at mac.com Thu Jan 14 11:00:32 2016 From: littlejamesw at mac.com (James Little) Date: Thu, 14 Jan 2016 08:00:32 -0800 Subject: DP13 breaks GLX framework In-Reply-To: <1452783633750-4700176.post@n4.nabble.com> References: <1452753827432-4700166.post@n4.nabble.com> <1452777629612-4700169.post@n4.nabble.com> <1452783633750-4700176.post@n4.nabble.com> Message-ID: I don?t know if this is related but I?m seeing both a tree view widget and a browser widget disappear from my application on startup in the IDE. Jim L On Jan 14, 2016, at 7:00 AM, jameshale wrote: > Aha. > Thanks Ali. > Does a bug report need to be generated? > (Well, actually will you be entering one given you know what it is?) > > > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/DP13-breaks-GLX-framework-tp4700166p4700176.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 littlejamesw at mac.com Thu Jan 14 11:00:32 2016 From: littlejamesw at mac.com (James Little) Date: Thu, 14 Jan 2016 08:00:32 -0800 Subject: DP13 breaks GLX framework In-Reply-To: <1452783633750-4700176.post@n4.nabble.com> References: <1452753827432-4700166.post@n4.nabble.com> <1452777629612-4700169.post@n4.nabble.com> <1452783633750-4700176.post@n4.nabble.com> Message-ID: I don?t know if this is related but I?m seeing both a tree view widget and a browser widget disappear from my application on startup in the IDE. Jim L On Jan 14, 2016, at 7:00 AM, jameshale wrote: > Aha. > Thanks Ali. > Does a bug report need to be generated? > (Well, actually will you be entering one given you know what it is?) > > > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/DP13-breaks-GLX-framework-tp4700166p4700176.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 richmondmathewson at gmail.com Thu Jan 14 13:53:56 2016 From: richmondmathewson at gmail.com (Richmond) Date: Thu, 14 Jan 2016 20:53:56 +0200 Subject: Release: 8.0 DP 13 In-Reply-To: <1452742282519-4700164.post@n4.nabble.com> References: <5696AA79.9090202@gmail.com> <1452742282519-4700164.post@n4.nabble.com> Message-ID: <5697EEC4.1010401@gmail.com> On 14/01/16 05:31, Alejandro Tejada wrote: > How could I uninstall a previous version > of LC8 under Ubuntu 14.04? > > Thanks in advance! > > Al > > Just download it from: http://downloads.livecode.com/livecode/ set the executable bit, and get on with things. Richmond. From jacque at hyperactivesw.com Thu Jan 14 15:48:39 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 14 Jan 2016 14:48:39 -0600 Subject: Windows 10 file paths Message-ID: <569809A7.4050105@hyperactivesw.com> I need to ensure the user has not deleted the revSecurity.dll file. This works on Windows 7 and under: put "revsecurity.dll" into tWinFile put the filename of this stack into tFilepath set the itemdel to slash put tWinFile into last item of tFilepath put there is a file tFilepath into tExists It fails on Windows 10, which can't find the file. If the user manually opens the app folder, the file is there. Anyone know why? Should I be using specialFolderPath("engine") or maybe the new specialFolderPath("resources")? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From dave at applicationinsight.com Thu Jan 14 15:39:37 2016 From: dave at applicationinsight.com (Dave Kilroy) Date: Thu, 14 Jan 2016 12:39:37 -0800 (PST) Subject: Windows 10 file paths In-Reply-To: <569809A7.4050105@hyperactivesw.com> References: <569809A7.4050105@hyperactivesw.com> Message-ID: <1452803977939-4700180.post@n4.nabble.com> I haven't messed with LC apps and Win10 yet (but my old LC apps still work on it) - but what you describe reminds me strongly of virtualisation headaches when Vista came out http://newsletters.livecode.com/march/issue21/newsletter3.php - if nothing has changed in your app, could there be something different either in the user's settings in Win10 or how Win10 is managing apps? ----- "The difference between genius and stupidity is; genius has its limits." - Albert Einstein -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Windows-10-file-paths-tp4700179p4700180.html Sent from the Revolution - User mailing list archive at Nabble.com. From jacque at hyperactivesw.com Thu Jan 14 16:15:10 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 14 Jan 2016 15:15:10 -0600 Subject: Windows 10 file paths In-Reply-To: <1452803977939-4700180.post@n4.nabble.com> References: <569809A7.4050105@hyperactivesw.com> <1452803977939-4700180.post@n4.nabble.com> Message-ID: <56980FDE.10105@hyperactivesw.com> On 1/14/2016 2:39 PM, Dave Kilroy wrote: > I haven't messed with LC apps and Win10 yet (but my old LC apps still work on > it) - but what you describe reminds me strongly of virtualisation headaches > when Vista came out > http://newsletters.livecode.com/march/issue21/newsletter3.php - if nothing > has changed in your app, could there be something different either in the > user's settings in Win10 or how Win10 is managing apps? Something must have changed, since the original code works fine in Windows 7 and Vista. Virtualisation was already in place in those versions. The only other thing I can think of is that the user is trying to run the app from inside the zip file. I'm not sure what error we'd get if that were the case, I need to check. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From roger.e.eller at sealedair.com Thu Jan 14 16:15:22 2016 From: roger.e.eller at sealedair.com (Roger Eller) Date: Thu, 14 Jan 2016 16:15:22 -0500 Subject: Windows 10 file paths In-Reply-To: <569809A7.4050105@hyperactivesw.com> References: <569809A7.4050105@hyperactivesw.com> Message-ID: I don't know when it started, but even in Win7 I have had to include it in the copy files pane for quite a while. It seems like it started around LC 6.5 to 6.6 builds. On Thu, Jan 14, 2016 at 3:48 PM, J. Landman Gay wrote: > I need to ensure the user has not deleted the revSecurity.dll file. This > works on Windows 7 and under: > > put "revsecurity.dll" into tWinFile > put the filename of this stack into tFilepath > set the itemdel to slash > put tWinFile into last item of tFilepath > put there is a file tFilepath into tExists > > It fails on Windows 10, which can't find the file. If the user manually > opens the app folder, the file is there. Anyone know why? > > Should I be using specialFolderPath("engine") or maybe the new > specialFolderPath("resources")? > > -- > 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 terry.judd at unimelb.edu.au Thu Jan 14 15:55:47 2016 From: terry.judd at unimelb.edu.au (Terry Judd) Date: Thu, 14 Jan 2016 20:55:47 +0000 Subject: Setting up for android development on OS X 10.10 - help needed In-Reply-To: References: Message-ID: Thanks very much Panos - I had another quick try last night following your suggestions and met with some success. It looks like I?m affected by bug 16688 as you suggest so no joy with the simulator (I didn?t get around to moving back to LC 7.1.0) but changing cables did the trick with getting my Android phone to show up on the devices list. My app?s still not functioning correctly but at least it?s loading on my device. With any luck I can debug any remaining issues (my programming inadequacies) from there. Best regards, Terry? Terry Judd | Senior Lecturer in Medical Education Department of Medical Education The University of Melbourne M: 0435 961 594 | E: terry.judd at unimelb.edu.au Publications On 14/01/2016 9:37 pm, "use-livecode on behalf of panagiotis merakos" on behalf of merakosp at gmail.com> wrote: Hi Terry, Regarding the crash on startup when deploying to android simulator: What version of Android is running on the simulator? I have experienced crashes *only* when deploying to android 2.3.3 simulator. Other android versions work as expected. If you experience the crash not only in 2.3.3 simulator, but also in *any* android version less or equal to 4.1.3, then you are probably affected by bug 16688: http://quality.livecode.com/show_bug.cgi?id=16688 which we cannot reproduce, but according to the bug report it affects *only* LiveCode 7.1.1 releases (works fine in 7.1.0). Regarding the problem of not seeing your devices under the development>test target menu: What happens if you type in the OS X terminal : "adb devices" ? If you see an empty list, then the problem is that your devices are not recognized. I have experienced this problem a number of times. I would suggest using a different android cable. If this does not work, type in the terminal: "adb kill-server" and then "adb start-server" Hope this helps, Panos -- On Thu, Jan 14, 2016 at 1:21 AM, Terry Judd > wrote: OK - so I did manage to find and install a copy of Java 6 (I deleted the existing newer version of Java and then did a default install) and now the JDK path bit in the mobile support pane of the LC preferences window has a value in it but everything else remains the same. Even the simplest app crashes on the Android simulator. I?m also trying to get a real device to show up under the development>test target menu without success. I have a couple of Samsung phones (S2 and S4 mini) both with usb debugging enabled but neither shows up in the test target menu when connected. Any ideas? Terry... On 14/01/2016 11:45 am, "use-livecode on behalf of Terry Judd? on behalf of terry.judd at unimelb.edu.au> wrote: >Hi all ? after a long break from developing for Android I need to get up >and running again but seem to be getting nowhere. I have all the Android >sdk stuff installed and updated and installed Java but when I go to >configure things in LC it accepts the location of the Android SDK root >folder but the JDK path stays empty. I can build an app ok but even the >simplest one will immediately crash (on the simulator ? I?m still trying >to get my device to show up on the target list). > >A search of the forums suggests that the empty path thing this is a known >issue( from some months ago) and a post (reply) from Sebastian in late >November last year suggested that you need to install the now deprecated >Java 6 to undertake Android development in LC. I?d try that if I could >only find somewhere to download Java 6 from! > >Does anyone have this stuff working on OS X 10.10 (or later) and care to >provide some tips on how they got it to work? > >Best regards, > >Terry? > >Terry Judd | Senior Lecturer in Medical Education >Department of Medical >Education >The University of Melbourne >M: 0435 961 594 | E: >terry.judd at unimelb.edu.au >Publications< https://scholar.google.com.au/citations?user=XC5s6wwAAAAJ&hl= >en> >_______________________________________________ >use-livecode mailing list >use-livecode 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 Thu Jan 14 17:27:48 2016 From: scott at tactilemedia.com (Scott Rossi) Date: Thu, 14 Jan 2016 14:27:48 -0800 Subject: Getting textShift To Shift Down? Message-ID: Anyone have any insight on getting textShift to shift text downward? I need to vertically align blocks text on a line that use different fonts. Whether I select a block of text, or all the text around the selection, things shift up, but never down. Here's a simple stack that demonstrates the problem. http://tactilemedia.com/download/textshift.mp4 This is LiveCode 7.0.6 (I need to use this version). I've tried including bits of texts with textShift set to zero on the same line. I've tried assigning positive/negative textShift values to multiple selections of text on the same line. Text always shifts upward. Somebody, please offer a workaround so I can stop the blood loss from the continuous head beating against the wall that's been taking place over here. Thanks & Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design From dave at applicationinsight.com Thu Jan 14 17:09:38 2016 From: dave at applicationinsight.com (Dave Kilroy) Date: Thu, 14 Jan 2016 14:09:38 -0800 (PST) Subject: Windows 10 file paths In-Reply-To: References: <569809A7.4050105@hyperactivesw.com> Message-ID: <1452809378981-4700185.post@n4.nabble.com> Yep I think I've also been including it specifically in 'copy files' for a good while - the other thing to check is whether the user has allowed their anti-virus to block the .dll, if it was blocked it wouldn't be allowed to function even if it was present Roger Eller wrote > I don't know when it started, but even in Win7 I have had to include it in > the copy files pane for quite a while. It seems like it started around LC > 6.5 to 6.6 builds. > > > On Thu, Jan 14, 2016 at 3:48 PM, J. Landman Gay < > jacque@ > > > wrote: > >> I need to ensure the user has not deleted the revSecurity.dll file. This >> works on Windows 7 and under: >> >> put "revsecurity.dll" into tWinFile >> put the filename of this stack into tFilepath >> set the itemdel to slash >> put tWinFile into last item of tFilepath >> put there is a file tFilepath into tExists >> >> It fails on Windows 10, which can't find the file. If the user manually >> opens the app folder, the file is there. Anyone know why? >> >> Should I be using specialFolderPath("engine") or maybe the new >> specialFolderPath("resources")? >> >> -- >> Jacqueline Landman Gay | > jacque@ >> HyperActive Software | http://www.hyperactivesw.com >> >> _______________________________________________ >> 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 >> > _______________________________________________ > 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 ----- "The difference between genius and stupidity is; genius has its limits." - Albert Einstein -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Windows-10-file-paths-tp4700179p4700185.html Sent from the Revolution - User mailing list archive at Nabble.com. From jacque at hyperactivesw.com Thu Jan 14 17:32:39 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 14 Jan 2016 16:32:39 -0600 Subject: Windows 10 file paths In-Reply-To: References: <569809A7.4050105@hyperactivesw.com> Message-ID: <56982207.5030602@hyperactivesw.com> The file is in the build and Win 7 can find it. Win 10 can't. It isn't that the file doesn't exist, it's that Win 10 can't see it. On 1/14/2016 3:15 PM, Roger Eller wrote: > I don't know when it started, but even in Win7 I have had to include it in > the copy files pane for quite a while. It seems like it started around LC > 6.5 to 6.6 builds. > > > On Thu, Jan 14, 2016 at 3:48 PM, J. Landman Gay > wrote: > >> I need to ensure the user has not deleted the revSecurity.dll file. This >> works on Windows 7 and under: >> >> put "revsecurity.dll" into tWinFile >> put the filename of this stack into tFilepath >> set the itemdel to slash >> put tWinFile into last item of tFilepath >> put there is a file tFilepath into tExists >> >> It fails on Windows 10, which can't find the file. If the user manually >> opens the app folder, the file is there. Anyone know why? >> >> Should I be using specialFolderPath("engine") or maybe the new >> specialFolderPath("resources")? >> >> -- >> 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 littlejamesw at mac.com Thu Jan 14 17:46:51 2016 From: littlejamesw at mac.com (James Little) Date: Thu, 14 Jan 2016 14:46:51 -0800 Subject: Widgets Disappear in DP13 In-Reply-To: References: <1452753827432-4700166.post@n4.nabble.com> <1452777629612-4700169.post@n4.nabble.com> <1452783633750-4700176.post@n4.nabble.com> Message-ID: <2F15BB4C-73B2-431B-8AD2-936C7494CE40@mac.com> Using 8.0 DP13 on a Mac, a Tree View widget and a Browser widget disappear when the app is saved and then re-opened in the IDE. I?ve just confirmed this with a new test stack. I saw this yesterday in the regular app that I?m working on. The widgets are no longer present in the Project Browser either. Jim L From littlejamesw at mac.com Thu Jan 14 17:46:51 2016 From: littlejamesw at mac.com (James Little) Date: Thu, 14 Jan 2016 14:46:51 -0800 Subject: Widgets Disappear in DP13 In-Reply-To: References: <1452753827432-4700166.post@n4.nabble.com> <1452777629612-4700169.post@n4.nabble.com> <1452783633750-4700176.post@n4.nabble.com> Message-ID: <2F15BB4C-73B2-431B-8AD2-936C7494CE40@mac.com> Using 8.0 DP13 on a Mac, a Tree View widget and a Browser widget disappear when the app is saved and then re-opened in the IDE. I?ve just confirmed this with a new test stack. I saw this yesterday in the regular app that I?m working on. The widgets are no longer present in the Project Browser either. Jim L From peter.brett at livecode.com Thu Jan 14 18:10:28 2016 From: peter.brett at livecode.com (Peter TB Brett) Date: Thu, 14 Jan 2016 23:10:28 +0000 Subject: Widgets Disappear in DP13 In-Reply-To: <2F15BB4C-73B2-431B-8AD2-936C7494CE40@mac.com> References: <1452753827432-4700166.post@n4.nabble.com> <1452777629612-4700169.post@n4.nabble.com> <1452783633750-4700176.post@n4.nabble.com> <2F15BB4C-73B2-431B-8AD2-936C7494CE40@mac.com> Message-ID: On 2016-01-14 22:46, James Little wrote: > Using 8.0 DP13 on a Mac, a Tree View widget and a Browser widget > disappear when the app is saved and then re-opened in the IDE. I?ve > just confirmed this with a new test stack. I saw this yesterday in > the regular app that I?m working on. The widgets are no longer > present in the Project Browser either. Hmm, yes, this sounds like it's probably my bug -- I think your stack might be getting saved in 7.0 stack format, which doesn't know how to store widgets. Could you please file a bug report with the steps to reproduce (and the affected stack, if possible?) As a workaround, you could try using: save the mousestack with newest format in the message box (with your mouse over the stack in question) to force it to be saved in 8.0 stack format. Peter -- Dr Peter Brett LiveCode Open Source Team LiveCode on reddit! From bodine at bodinetraininggames.com Thu Jan 14 17:55:18 2016 From: bodine at bodinetraininggames.com (tbodine) Date: Thu, 14 Jan 2016 14:55:18 -0800 (PST) Subject: Windows 10 file paths In-Reply-To: <56982207.5030602@hyperactivesw.com> References: <569809A7.4050105@hyperactivesw.com> <56982207.5030602@hyperactivesw.com> Message-ID: <1452812118166-4700189.post@n4.nabble.com> Is the dll code signed? Perhaps higher security settings are blocking its installation or use for that reason. -- Tom Bodine -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Windows-10-file-paths-tp4700179p4700189.html Sent from the Revolution - User mailing list archive at Nabble.com. From jacque at hyperactivesw.com Thu Jan 14 18:53:19 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 14 Jan 2016 17:53:19 -0600 Subject: Getting textShift To Shift Down? In-Reply-To: References: Message-ID: <569834EF.9050508@hyperactivesw.com> On 1/14/2016 4:27 PM, Scott Rossi wrote: > Anyone have any insight on getting textShift to shift text downward? > > I need to vertically align blocks text on a line that use different fonts. > Whether I select a block of text, or all the text around the selection, > things shift up, but never down. A positive value should push it down. It seems to sort of work in a quick test in LC 7.1.1, but the text next to it gets pushed up so that the down-shifted character stays on the baseline and everything else rises above it. Turning off fixedLineHeight helps a little. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Thu Jan 14 19:07:49 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 14 Jan 2016 18:07:49 -0600 Subject: Windows 10 file paths In-Reply-To: <1452812118166-4700189.post@n4.nabble.com> References: <569809A7.4050105@hyperactivesw.com> <56982207.5030602@hyperactivesw.com> <1452812118166-4700189.post@n4.nabble.com> Message-ID: <56983855.9060005@hyperactivesw.com> On 1/14/2016 4:55 PM, tbodine wrote: > Is the dll code signed? Perhaps higher security settings are blocking its > installation or use for that reason. I don't know, it's got whatever LC assigns to it when it saves a standalone. The file is there, the user can see it in the folder. The script just checks for its existence but doesn't try to use it for anything. New data has come in since I first wrote: there are lots of Windows 10 users who have no problem with it, so it is something related to specific machines. We have 3 instances of the problem out of maybe a couple hundred Windows 10 users. Additional info: one user who had the failure is able to run without any problems if he copies the app folder to a thumb drive and runs it from there. So a permissions issue does seem to be relevant...but why would LC report the file doesn't even exist? Does "there is a file" on Windows return "false" if the user doesn't have permission to access the file? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From scott at tactilemedia.com Thu Jan 14 19:19:46 2016 From: scott at tactilemedia.com (Scott Rossi) Date: Thu, 14 Jan 2016 16:19:46 -0800 Subject: Getting textShift To Shift Down? In-Reply-To: <569834EF.9050508@hyperactivesw.com> References: <569834EF.9050508@hyperactivesw.com> Message-ID: Unfortunately, what textShift *should* be doing, and what's it's actually doing are two different things. Trying my simple test stack in 5.5, 6.7.8, and 8 dp 11 shows the same behavior, so apparently this has been broken forever. TextShift should never adjust the lines around a selection, but that's what it does. In any event, I still need to shift text down in 7.0.6, so I'm hoping knows a way to pull this off. Anyone? Thanks & Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 1/14/16, 3:53 PM, "use-livecode on behalf of J. Landman Gay" wrote: >On 1/14/2016 4:27 PM, Scott Rossi wrote: >> Anyone have any insight on getting textShift to shift text downward? >> >> I need to vertically align blocks text on a line that use different >>fonts. >> Whether I select a block of text, or all the text around the >>selection, >> things shift up, but never down. > >A positive value should push it down. It seems to sort of work in a >quick test in LC 7.1.1, but the text next to it gets pushed up so that >the down-shifted character stays on the baseline and everything else >rises above it. Turning off fixedLineHeight helps a little. > >-- >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 bernd.niggemann at uni-wh.de Thu Jan 14 19:04:58 2016 From: bernd.niggemann at uni-wh.de (BNig) Date: Thu, 14 Jan 2016 16:04:58 -0800 (PST) Subject: Getting textShift To Shift Down? In-Reply-To: References: Message-ID: <1452816298173-4700193.post@n4.nabble.com> Hi Scott, the following works for me in 7.0.6 textSize 14, textheight 28, fixed lineHeight e.g. ----- set the textShift of char 1 to - 1 of field 1 to -9 ----- then a slider with values from - 9 to - 3 ---- on scrollbarDrag pValue set the textShift of word 2 of line 1 of field 1 to pValue end scrollbarDrag ---- this pushes word 2 of line 1 of field 1 down. If I use values above - 3, e.g. -2 or 0 then it pushes the text up again. Maybe this is an option to set the textshift of the whole text to a negative number and then move down the text by setting it to another negative number but not as high as the whole text. Kind regards Bernd -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Getting-textShift-To-Shift-Down-tp4700184p4700193.html Sent from the Revolution - User mailing list archive at Nabble.com. From alex at tweedly.net Thu Jan 14 19:27:18 2016 From: alex at tweedly.net (Alex Tweedly) Date: Fri, 15 Jan 2016 00:27:18 +0000 Subject: Message watcher in LC 8 Message-ID: <56983CE6.1060603@tweedly.net> I'm trying to use the Message Watcher in LC 8 (currently using DP9). I get a continuous loop of a number of messages, even when nothing is being done, which makes it hard to get any useful info. Is there something I need to do in LC8 to avoid this (other than suppress each of these messages). (btw - rant - why can't I copy/paste from the message watcher output field !!! ) The messages in question are openstack respondToFrontScript respondToFrontScript_openstack stackToBeExcluded getPreference isIDEStack getPreference openstack respondToFrontScript respondToFrontScript_openstack stackToBeExcluded getPreference isIDEStack getPreference and on and on and on .... But, if I click on "Suppress..." in the Message Watcher, then (after about a minute's delay while it catches up with outputting all these looping messages :-(, followed by Cancel, these messages cease. Until the next time I change which stack has focus (or something ??) when the "loop" starts again. Thanks for any suggestions -- Alex From scott at tactilemedia.com Thu Jan 14 19:41:48 2016 From: scott at tactilemedia.com (Scott Rossi) Date: Thu, 14 Jan 2016 16:41:48 -0800 Subject: Getting textShift To Shift Down? In-Reply-To: <1452816298173-4700193.post@n4.nabble.com> References: <1452816298173-4700193.post@n4.nabble.com> Message-ID: Thanks Bernd, but if I understand what you're suggesting, I've already tried this and it doesn't appear to work. Using different textShift values for the selected text and surrounding text just seems to average out, always moving text upward, never downward. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 1/14/16, 4:04 PM, "use-livecode on behalf of BNig" wrote: >Hi Scott, > >the following works for me in 7.0.6 > >textSize 14, textheight 28, fixed lineHeight > >e.g. > >----- >set the textShift of char 1 to - 1 of field 1 to -9 >----- > >then a slider with values from - 9 to - 3 > >---- >on scrollbarDrag pValue > set the textShift of word 2 of line 1 of field 1 to pValue >end scrollbarDrag >---- > >this pushes word 2 of line 1 of field 1 down. If I use values above - 3, >e.g. -2 or 0 then it pushes the text up again. > >Maybe this is an option to set the textshift of the whole text to a >negative >number and then move down the text by setting it to another negative >number >but not as high as the whole text. > >Kind regards >Bernd > > > >-- >View this message in context: >http://runtime-revolution.278305.n4.nabble.com/Getting-textShift-To-Shift- >Down-tp4700184p4700193.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 mwieder at ahsoftware.net Thu Jan 14 20:04:06 2016 From: mwieder at ahsoftware.net (Mark Wieder) Date: Thu, 14 Jan 2016 17:04:06 -0800 Subject: Windows 10 file paths In-Reply-To: <56983855.9060005@hyperactivesw.com> References: <569809A7.4050105@hyperactivesw.com> <56982207.5030602@hyperactivesw.com> <1452812118166-4700189.post@n4.nabble.com> <56983855.9060005@hyperactivesw.com> Message-ID: <56984586.2020505@ahsoftware.net> On 01/14/2016 04:07 PM, J. Landman Gay wrote: > Does "there is a file" on Windows > return "false" if the user doesn't have permission to access the file? I would hope so. Do you get anything interesting by running "attrib"? -- Mark Wieder ahsoftware at gmail.com From pmbrig at gmail.com Thu Jan 14 14:42:57 2016 From: pmbrig at gmail.com (Peter M. Brigham) Date: Thu, 14 Jan 2016 14:42:57 -0500 Subject: mobile acceleration/rotation In-Reply-To: <5697812F.60102@cogapp.com> References: <56964C18.4040101@cogapp.com> <039201d14e25$6b91d190$42b574b0$@consensustech.com> <5697812F.60102@cogapp.com> Message-ID: <97245AA3-9DD3-440E-8536-A1C4A43C8BF3@gmail.com> On Jan 14, 2016, at 6:06 AM, Ben Rubinstein wrote: > So if the device is vertical at rest (y=-1), and falls down vertically, it won't register any acceleration because it's already measuring the maximum in that axis? > > In short, it's static acceleration rather than dynamic acceleration, is that correct? I think it's just plain acceleration, measured by the force exerted on a sensor in each of three directions. Remember that Einstein discovered out that gravity is indistinguishable from acceleration, in other words, the reading of y=1 is what you would get if you were in space and accelerating at 1g along the y axis. -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig From pmbrig at gmail.com Thu Jan 14 20:44:51 2016 From: pmbrig at gmail.com (Peter M. Brigham) Date: Thu, 14 Jan 2016 20:44:51 -0500 Subject: mobile acceleration/rotation In-Reply-To: <5697812F.60102@cogapp.com> References: <56964C18.4040101@cogapp.com> <039201d14e25$6b91d190$42b574b0$@consensustech.com> <5697812F.60102@cogapp.com> Message-ID: On Jan 14, 2016, at 6:06 AM, Ben Rubinstein wrote: > So if the device is vertical at rest (y=-1), and falls down vertically, it won't register any acceleration because it's already measuring the maximum in that axis? > > In short, it's static acceleration rather than dynamic acceleration, is that correct? I think it's just plain acceleration, measured by the force exerted on a sensor in each of three directions. Remember that Einstein discovered out that gravity is indistinguishable from acceleration, in other words, the reading of y=1 is what you would get if you were in space and accelerating at 1g along the y axis. -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig From paul at livecode.org Thu Jan 14 21:02:19 2016 From: paul at livecode.org (Paul Hibbert) Date: Thu, 14 Jan 2016 18:02:19 -0800 Subject: Message watcher in LC 8 In-Reply-To: <56983CE6.1060603@tweedly.net> References: <56983CE6.1060603@tweedly.net> Message-ID: <4CE043DB-3C70-45A3-AABE-20400C45EF1B@livecode.org> There have been a lot of bugs squashed since DP9, so I?d suggest trying DP13, I?m not seeing any such messages in this version. Paul From pete at lcsql.com Thu Jan 14 21:09:01 2016 From: pete at lcsql.com (Peter Haworth) Date: Fri, 15 Jan 2016 02:09:01 +0000 Subject: Message watcher in LC 8 In-Reply-To: <4CE043DB-3C70-45A3-AABE-20400C45EF1B@livecode.org> References: <56983CE6.1060603@tweedly.net> <4CE043DB-3C70-45A3-AABE-20400C45EF1B@livecode.org> Message-ID: Hi Alex, The messages after openStack are coming from lcStackBrowser's front script which traps openStack. I guess the question is where the openStack messages are coming from in the first place. You might try Richard's 4WFlightRecorder stack, I find it much more useful than the message watcher. I believe it will tell you where the openStack messages are coming from. On Thu, Jan 14, 2016 at 6:02 PM Paul Hibbert wrote: > There have been a lot of bugs squashed since DP9, so I?d suggest trying > DP13, I?m not seeing any such messages in this version. > > Paul > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From terry.judd at unimelb.edu.au Thu Jan 14 21:21:18 2016 From: terry.judd at unimelb.edu.au (Terry Judd) Date: Fri, 15 Jan 2016 02:21:18 +0000 Subject: Getting textShift To Shift Down? In-Reply-To: References: <1452816298173-4700193.post@n4.nabble.com> Message-ID: Hi Scott - I think you might be able to do something by manipulating the margins of the field as well as the textShift. I did a test with 2 basic fields - one containing the text and the other the value I wanted to adjust the textshift by... Contents of fld 1 word1 word2 word3 word1 word2 word3 word1 word2 word3 Script of fld 2 on returnInField lock screen put me into y if (pMargins is empty) or (y<0) then put "8,8,0,0" into pMargins # default margins put pMargins into tMargins set the textShift of word 2 of line 3 of fld 1 to y if y ? 0 then add y to item 2 of tMargins end if set the margins of fld 1 to tMargins unlock screen end returnInField ?my test was pretty basic but it seemed to work under these conditions. Regards, Terry... On 15/01/2016 11:41 am, "use-livecode on behalf of Scott Rossi" wrote: >Thanks Bernd, but if I understand what you're suggesting, I've already >tried this and it doesn't appear to work. Using different textShift >values for the selected text and surrounding text just seems to average >out, always moving text upward, never downward. > >Regards, > >Scott Rossi >Creative Director >Tactile Media, UX/UI Design > > > > >On 1/14/16, 4:04 PM, "use-livecode on behalf of BNig" >bernd.niggemann at uni-wh.de> wrote: > >>Hi Scott, >> >>the following works for me in 7.0.6 >> >>textSize 14, textheight 28, fixed lineHeight >> >>e.g. >> >>----- >>set the textShift of char 1 to - 1 of field 1 to -9 >>----- >> >>then a slider with values from - 9 to - 3 >> >>---- >>on scrollbarDrag pValue >> set the textShift of word 2 of line 1 of field 1 to pValue >>end scrollbarDrag >>---- >> >>this pushes word 2 of line 1 of field 1 down. If I use values above - 3, >>e.g. -2 or 0 then it pushes the text up again. >> >>Maybe this is an option to set the textshift of the whole text to a >>negative >>number and then move down the text by setting it to another negative >>number >>but not as high as the whole text. >> >>Kind regards >>Bernd >> >> >> >>-- >>View this message in context: >>http://runtime-revolution.278305.n4.nabble.com/Getting-textShift-To-Shift >>- >>Down-tp4700184p4700193.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 james at thehales.id.au Thu Jan 14 21:07:25 2016 From: james at thehales.id.au (jameshale) Date: Thu, 14 Jan 2016 18:07:25 -0800 (PST) Subject: DP13 breaks GLX framework In-Reply-To: References: <1452753827432-4700166.post@n4.nabble.com> <1452777629612-4700169.post@n4.nabble.com> Message-ID: <1452823645540-4700202.post@n4.nabble.com> Hi Trevor, The only script I can see over 7000 lines is sqlYoga. All my calls to this library take place after my preopenwindow handler and as mentioned, when run from the message box it goes without issue. The app seems to function fine from this point with functions that use sqlYoga working as expected. I feel Ali might be able n the right track as while tracing through the GLX routines I noticed they relied heavily on the 'target'. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/DP13-breaks-GLX-framework-tp4700166p4700202.html Sent from the Revolution - User mailing list archive at Nabble.com. From terry.judd at unimelb.edu.au Thu Jan 14 21:42:18 2016 From: terry.judd at unimelb.edu.au (Terry Judd) Date: Fri, 15 Jan 2016 02:42:18 +0000 Subject: Getting textShift To Shift Down? In-Reply-To: References: <1452816298173-4700193.post@n4.nabble.com> Message-ID: Looks like the script got slightly munged en route. That should be ?if y > 0 then? a few lines down. Terry... On 15/01/2016 1:21 pm, "use-livecode on behalf of Terry Judd" wrote: >Hi Scott - I think you might be able to do something by manipulating the >margins of the field as well as the textShift. > >I did a test with 2 basic fields - one containing the text and the other >the value I wanted to adjust the textshift by... > >Contents of fld 1 > >word1 word2 word3 >word1 word2 word3 > >word1 word2 word3 > > >Script of fld 2 > >on returnInField > lock screen > put me into y > if (pMargins is empty) or (y<0) then put "8,8,0,0" into pMargins # >default margins > put pMargins into tMargins > set the textShift of word 2 of line 3 of fld 1 to y > if y ? 0 then > add y to item 2 of tMargins > end if > set the margins of fld 1 to tMargins > unlock screen >end returnInField > >?my test was pretty basic but it seemed to work under these conditions. > >Regards, > >Terry... > > > >On 15/01/2016 11:41 am, "use-livecode on behalf of Scott Rossi" >scott at tactilemedia.com> wrote: > >>Thanks Bernd, but if I understand what you're suggesting, I've already >>tried this and it doesn't appear to work. Using different textShift >>values for the selected text and surrounding text just seems to average >>out, always moving text upward, never downward. >> >>Regards, >> >>Scott Rossi >>Creative Director >>Tactile Media, UX/UI Design >> >> >> >> >>On 1/14/16, 4:04 PM, "use-livecode on behalf of BNig" >>>bernd.niggemann at uni-wh.de> wrote: >> >>>Hi Scott, >>> >>>the following works for me in 7.0.6 >>> >>>textSize 14, textheight 28, fixed lineHeight >>> >>>e.g. >>> >>>----- >>>set the textShift of char 1 to - 1 of field 1 to -9 >>>----- >>> >>>then a slider with values from - 9 to - 3 >>> >>>---- >>>on scrollbarDrag pValue >>> set the textShift of word 2 of line 1 of field 1 to pValue >>>end scrollbarDrag >>>---- >>> >>>this pushes word 2 of line 1 of field 1 down. If I use values above - 3, >>>e.g. -2 or 0 then it pushes the text up again. >>> >>>Maybe this is an option to set the textshift of the whole text to a >>>negative >>>number and then move down the text by setting it to another negative >>>number >>>but not as high as the whole text. >>> >>>Kind regards >>>Bernd >>> >>> >>> >>>-- >>>View this message in context: >>>http://runtime-revolution.278305.n4.nabble.com/Getting-textShift-To-Shif >>>t >>>- >>>Down-tp4700184p4700193.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 > > >_______________________________________________ >use-livecode mailing list >use-livecode at 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 Thu Jan 14 23:05:47 2016 From: scott at tactilemedia.com (Scott Rossi) Date: Thu, 14 Jan 2016 20:05:47 -0800 Subject: Getting textShift To Shift Down? In-Reply-To: References: <1452816298173-4700193.post@n4.nabble.com> Message-ID: <304818E8-15D5-4366-BDA5-15CE6477D147@tactilemedia.com> Thanks for the suggestion, but unfortunately no -- I have the field set up as a table which needs a specific top margin so the first line is spaced down a distance equal to all lines in the field. As often happens, Bernd N figured out an arrangement that allows downward shifting of text, but it only works with limited range of values and with text of the same (or similar) size. I've since given up what I was trying to get working in a single field and am now using two fields, which is goofy but gets around the problem. The reality is, one should be able to designate a chunk of text and move it up or down any distance, independently of the surrounding text. Currently you can't do that. Regards, Scott Rossi Creative Director Tactile Media UX/UI Design > On Jan 14, 2016, at 6:21 PM, Terry Judd wrote: > > Hi Scott - I think you might be able to do something by manipulating the > margins of the field as well as the textShift. > > I did a test with 2 basic fields - one containing the text and the other > the value I wanted to adjust the textshift by... > > Contents of fld 1 > > word1 word2 word3 > word1 word2 word3 > > word1 word2 word3 > > > Script of fld 2 > > on returnInField > lock screen > put me into y > if (pMargins is empty) or (y<0) then put "8,8,0,0" into pMargins # > default margins > put pMargins into tMargins > set the textShift of word 2 of line 3 of fld 1 to y > if y ? 0 then > add y to item 2 of tMargins > end if > set the margins of fld 1 to tMargins > unlock screen > end returnInField > > ?my test was pretty basic but it seemed to work under these conditions. > > Regards, > > Terry... > > > > On 15/01/2016 11:41 am, "use-livecode on behalf of Scott Rossi" > References: <569809A7.4050105@hyperactivesw.com> <56982207.5030602@hyperactivesw.com> <1452812118166-4700189.post@n4.nabble.com> <56983855.9060005@hyperactivesw.com> <56984586.2020505@ahsoftware.net> Message-ID: <56987D27.7040105@hyperactivesw.com> On 1/14/2016 7:04 PM, Mark Wieder wrote: > On 01/14/2016 04:07 PM, J. Landman Gay wrote: > >> Does "there is a file" on Windows >> return "false" if the user doesn't have permission to access the file? > > I would hope so. > Do you get anything interesting by running "attrib"? > I'm not sure how to test that, since it all works fine for everyone except those 3 people, and they aren't users we can actually ask to test for us. But I did some searches and found several indirect references to the same problem in other languages (C#, php, java) and their "exists" functions also return false if the user doesn't have permission to access the file. I have to assume that's what's happening here too, it's the only explanation. We've asked one user to move the app folder to the Documents folder, so we'll see how that goes. We think at least some of the affected users may be running on public computers, which are likely restricting permissions (which is why the app works on their thumb drives I guess.) The surprising bit to me was that "there is a file" can return false, even if it's right there in front of you. I'd have thought that it would always return true, whether or not you could run it. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Fri Jan 15 00:08:54 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 14 Jan 2016 23:08:54 -0600 Subject: Windows 10 file paths In-Reply-To: <56984586.2020505@ahsoftware.net> References: <569809A7.4050105@hyperactivesw.com> <56982207.5030602@hyperactivesw.com> <1452812118166-4700189.post@n4.nabble.com> <56983855.9060005@hyperactivesw.com> <56984586.2020505@ahsoftware.net> Message-ID: <56987EE6.3090401@hyperactivesw.com> On 1/14/2016 7:04 PM, Mark Wieder wrote: > On 01/14/2016 04:07 PM, J. Landman Gay wrote: > >> Does "there is a file" on Windows >> return "false" if the user doesn't have permission to access the file? > > I would hope so. Okay, just to finish this up, I found the definitive answer in the Microsoft docs: "File.Exists Method (String) Type: System.Boolean true if the caller has the required permissions and path contains the name of an existing file; otherwise, false. This method also returns false if path is null, an invalid path, or a zero-length string. If the caller does not have sufficient permissions to read the specified file, no exception is thrown and the method returns false regardless of the existence of path." Gah. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Fri Jan 15 01:05:57 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 15 Jan 2016 00:05:57 -0600 Subject: Getting textShift To Shift Down? In-Reply-To: <304818E8-15D5-4366-BDA5-15CE6477D147@tactilemedia.com> References: <1452816298173-4700193.post@n4.nabble.com> <304818E8-15D5-4366-BDA5-15CE6477D147@tactilemedia.com> Message-ID: <56988C45.3070902@hyperactivesw.com> On 1/14/2016 10:05 PM, Scott Rossi wrote: > The reality is, one should be able to designate a chunk of text and > move it up or down any distance, independently of the surrounding > text. Currently you can't do that. It might be time for a bug report. What you expect seems pretty realistic to me. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From hh at livecode.org Fri Jan 15 02:34:35 2016 From: hh at livecode.org (-hh) Date: Fri, 15 Jan 2016 08:34:35 +0100 Subject: Getting textShift To Shift Down? Message-ID: <7141FBC3-7920-414B-A88B-87516B2F408C@livecode.org> Right out from my head, can not test at the moment. The hard way: The direct input of the htmltext should always work (as long as your on one line with the chunk).

wordOne put me down wordThree

" -- down

wordOne put me down wordThree

" -- up If I remember right "sup" instead of "sub" (what works in HTML) doesn't work with LC, it's not really needed, bt good to know. Anyway, look at the htmltext to see what's wrong with you current LC version. H. From hh at livecode.org Fri Jan 15 03:32:58 2016 From: hh at livecode.org (-hh) Date: Fri, 15 Jan 2016 09:32:58 +0100 Subject: Getting textShift To Shift Down? Message-ID: <18B093B6-3F31-4BB7-853B-26524DC267F2@livecode.org> Tested now and it works here: LC 's textshift does exactly what it *can* do (with the primitive typesetting system of HTML which it uses): [1] It takes the baseline, moves the chunk relative to that up or down, leaving the surrounding text on that baseline. [2] After that it gives the whole line a new height (if variable textheight) or fits it midway into the fixed line height, that is it moves the baseline. One can watch this with with "showlines" and "hGrid". What you 'optically' want, can you achieve exactly with a professional typesetting system ("TeX") only or, approximately, if you shift (also) the *complement* of the object in the line. H. From peter.brett at livecode.com Fri Jan 15 05:31:46 2016 From: peter.brett at livecode.com (Peter TB Brett) Date: Fri, 15 Jan 2016 10:31:46 +0000 Subject: Widgets Disappear in DP13 In-Reply-To: <2F15BB4C-73B2-431B-8AD2-936C7494CE40@mac.com> References: <1452753827432-4700166.post@n4.nabble.com> <1452777629612-4700169.post@n4.nabble.com> <1452783633750-4700176.post@n4.nabble.com> <2F15BB4C-73B2-431B-8AD2-936C7494CE40@mac.com> Message-ID: <5698CA92.5080000@livecode.com> On 14/01/2016 22:46, James Little wrote: > > Using 8.0 DP13 on a Mac, a Tree View widget and a Browser widget disappear when the app is saved and then re-opened in the IDE. I?ve just confirmed this with a new test stack. I saw this yesterday in the regular app that I?m working on. The widgets are no longer present in the Project Browser either. > Hi Jim, I'm looking into this at the moment. Unfortunately, I haven't been able to reproduce the problem. I used the following steps: 1. Install LiveCode 8.0.0 DP 13 Community Edition, on Mac OS X 10.11.2. 2. Open the IDE, and create a new stack 3. Drag a treeview widget onto the stack 4. Save the stack as "SaveTest.livecode" 5. Close the IDE, and reopen it. 6. Open "SaveTest.livecode" When I do that, the treeview widget is still present. Have I missed something? I'd really like to fix this for you. :-) Peter -- Dr Peter Brett LiveCode Open Source Team LiveCode on reddit: https://reddit.com/r/livecode From alex at tweedly.net Fri Jan 15 07:35:32 2016 From: alex at tweedly.net (Alex Tweedly) Date: Fri, 15 Jan 2016 12:35:32 +0000 Subject: Message watcher in LC 8 In-Reply-To: <4CE043DB-3C70-45A3-AABE-20400C45EF1B@livecode.org> References: <56983CE6.1060603@tweedly.net> <4CE043DB-3C70-45A3-AABE-20400C45EF1B@livecode.org> Message-ID: <5698E794.6000700@tweedly.net> Thanks Paul, but I haven't yet had any luck with DP13. It seems to have (yet again) changed something that causes a problem with lcStackBrowser, and I can't use LC without that, so until I have the time to figure out what's going on and get that info to Pete Haworth, I'm going to have to stick with DP9. -- Alex. On 15/01/2016 02:02, Paul Hibbert wrote: > There have been a lot of bugs squashed since DP9, so I?d suggest trying DP13, I?m not seeing any such messages in this version. > > Paul > _______________________________________________ > use-livecode mailing list > use-livecode at 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 15 07:49:04 2016 From: alex at tweedly.net (Alex Tweedly) Date: Fri, 15 Jan 2016 12:49:04 +0000 Subject: Message watcher in LC 8 In-Reply-To: References: <56983CE6.1060603@tweedly.net> <4CE043DB-3C70-45A3-AABE-20400C45EF1B@livecode.org> Message-ID: <5698EAC0.8040307@tweedly.net> Thanks Pete. Do you (anyone) have any idea where I can get hold of 4WFlightRecorder ? All the Googling I do for it points me to "the stacks section of Go Revnet" (from IDE / Development / Plugins), but when I go there, I can't find a 'stacks' section. I tried the obvious thing (i.e. to look at Richard's site) but don't see anything there either. -- Alex. On 15/01/2016 02:09, Peter Haworth wrote: > Hi Alex, > The messages after openStack are coming from lcStackBrowser's front script > which traps openStack. I guess the question is where the openStack > messages are coming from in the first place. You might try Richard's > 4WFlightRecorder stack, I find it much more useful than the message > watcher. I believe it will tell you where the openStack messages are > coming from. > > On Thu, Jan 14, 2016 at 6:02 PM Paul Hibbert wrote: > >> There have been a lot of bugs squashed since DP9, so I?d suggest trying >> DP13, I?m not seeing any such messages in this version. >> >> Paul >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 Fri Jan 15 08:11:59 2016 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Fri, 15 Jan 2016 21:11:59 +0800 Subject: Message watcher in LC 8 In-Reply-To: <5698EAC0.8040307@tweedly.net> References: <56983CE6.1060603@tweedly.net> <4CE043DB-3C70-45A3-AABE-20400C45EF1B@livecode.org> <5698EAC0.8040307@tweedly.net> Message-ID: On Fri, Jan 15, 2016 at 8:49 PM, Alex Tweedly wrote: > > Do you (anyone) have any idea where I can get hold of 4WFlightRecorder ? > I see Devolution is currently undergoing 'radical enhancement' so maybe this old link from a previous List message wont work: From ambassador at fourthworld.com Fri Jan 15 09:42:26 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 15 Jan 2016 06:42:26 -0800 Subject: Message watcher in LC 8 In-Reply-To: References: Message-ID: <56990552.9060705@fourthworld.com> Alex Tweedly wrote: > Do you (anyone) have any idea where I can get hold of 4WFlightRecorder ? > All the Googling I do for it points me to "the stacks section of Go > Revnet" (from IDE / Development / Plugins), but when I go there, I can't > find a 'stacks' section. I tried the obvious thing (i.e. to look at > Richard's site) but don't see anything there either. Sorry for the inconvenience. The upgrade for RevNet is in development but other projects have unfortunately pushed that volunteer work to the back burner, leaving links like the one to 4W Flight Recorder in limbo. Hopefully I'll get a break from the other priorities here soon to wrap up the new RevNet - when it's done I think many here will like it. I appreciate Kay's posting a URL to it, but I'm afraid the URL has changed. The IDE insists on changing the name of the stack file when I do Save As (necessary to maintain compatibility with older versions of LC), and at some point I just gave up manually changing it to match the old URL. So now (and hopefully going forward, unless LC goes through another name and/or file extension change) the URL is: -- 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 15 10:36:02 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 15 Jan 2016 15:36:02 +0000 Subject: Does user have network connection? In-Reply-To: <5692F9B4.7070903@tweedly.net> References: <1452376556413-4700051.post@n4.nabble.com> <569293DA.2080204@LinkIt.Com> <5692F5B9.7000706@researchware.com> <5692F9B4.7070903@tweedly.net> Message-ID: <1D0F7253-141C-452B-8C47-F79BE3B28405@iotecdigital.com> > For good or bad, Governmental organizations last forever... Tell that to the Huns. Or to Romulus Augustus for that matter. :-) Bob S From bobsneidar at iotecdigital.com Fri Jan 15 10:41:30 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 15 Jan 2016 15:41:30 +0000 Subject: important message (Spam) In-Reply-To: <56941DDC.5000202@fourthworld.com> References: <007701d14cb5$f7579a00$e606ce00$@net> <56941DDC.5000202@fourthworld.com> Message-ID: Wait, what? I didn't get that. Can you please resend that to my private email Mark? ;-) Bob S On Jan 11, 2016, at 13:25 , Richard Gaskin > wrote: Mark: If you're traveling in South Africa and intended to send me a link to illegal prescription drugs, sorry, but I deleted your email. :) -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web From bobsneidar at iotecdigital.com Fri Jan 15 10:43:53 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 15 Jan 2016 15:43:53 +0000 Subject: Does user have network connection? In-Reply-To: <56945E48.8050601@ahsoftware.net> References: <1452376556413-4700051.post@n4.nabble.com> <569293DA.2080204@LinkIt.Com> <1AC2E5FA-71BC-4745-A4ED-B186AD6C6E97@gmail.com> <0669639F-3BB4-4702-9B7C-43112970262D@iotecdigital.com> <56945E48.8050601@ahsoftware.net> Message-ID: I wonder if there is a way to get Apple Mail to bottom post... then I can be different from almost everyone else on this list. ;-) Bob S > On Jan 11, 2016, at 18:00 , Mark Wieder wrote: > > Why top-posting doesn't work: > > ...drum roll, please > > On 01/11/2016 04:24 PM, Bob Sneidar wrote: >> And I feel fine. >> >> Bob S >> >> >>> On Jan 10, 2016, at 09:38 , Peter M. Brigham wrote: >>> >>> Then that's the end of the world as we know it?. >>> >>> -- Peter > > -- > Mark Wieder > ahsoftware at gmail.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 dixonja at hotmail.co.uk Fri Jan 15 11:38:31 2016 From: dixonja at hotmail.co.uk (John Dixon) Date: Fri, 15 Jan 2016 16:38:31 +0000 Subject: iphoneDatePick Message-ID: I am banging my head against the wall.. Could someone show me how to call iPhoneDatePick... I would like the 'max' date and time to selected to be what it is when called and the minimum to be say two days prior.. I have tried everything, read and re-read the notes but I can't get it to play... I can get it to work but only with every day in the UNIX epoch it seems From dixonja at hotmail.co.uk Fri Jan 15 12:35:26 2016 From: dixonja at hotmail.co.uk (John Dixon) Date: Fri, 15 Jan 2016 17:35:26 +0000 Subject: iphoneDatePick In-Reply-To: References: Message-ID: > From: dixonja at hotmail.co.uk > To: use-livecode at lists.runrev.com > Subject: iphoneDatePick > Date: Fri, 15 Jan 2016 16:38:31 +0000 > > I am banging my head against the wall.. > > Could someone show me how to call iPhoneDatePick... > > I would like the 'max' date and time to selected to be what it is when called and the minimum to be say two days prior.. I have tried everything, read and re-read the notes but I can't get it to play... > > I can get it to work but only with every day in the UNIX epoch it seems I worked it out !... I had not been paying attention and did not notice that the dates and times 'spring' back to the maximum and minimum that has been set... From dochawk at gmail.com Fri Jan 15 12:58:47 2016 From: dochawk at gmail.com (Dr. Hawkins) Date: Fri, 15 Jan 2016 09:58:47 -0800 Subject: Does user have network connection? In-Reply-To: References: <1452376556413-4700051.post@n4.nabble.com> <569293DA.2080204@LinkIt.Com> <1AC2E5FA-71BC-4745-A4ED-B186AD6C6E97@gmail.com> <0669639F-3BB4-4702-9B7C-43112970262D@iotecdigital.com> <56945E48.8050601@ahsoftware.net> Message-ID: On Fri, Jan 15, 2016 at 7:43 AM, Bob Sneidar wrote: > I wonder if there is a way to get Apple Mail to bottom post... then I can > be different from almost everyone else on this list. ;-) > Just click in the editor below the text where you want your comment. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From lan.kc.macmail at gmail.com Fri Jan 15 21:37:52 2016 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Sat, 16 Jan 2016 10:37:52 +0800 Subject: Does user have network connection? In-Reply-To: References: <1452376556413-4700051.post@n4.nabble.com> <569293DA.2080204@LinkIt.Com> <1AC2E5FA-71BC-4745-A4ED-B186AD6C6E97@gmail.com> <0669639F-3BB4-4702-9B7C-43112970262D@iotecdigital.com> <56945E48.8050601@ahsoftware.net> Message-ID: On Fri, Jan 15, 2016 at 11:43 PM, Bob Sneidar wrote: > I wonder if there is a way to get Apple Mail to bottom post... https://github.com/robertklep/quotefixformac From bodine at bodinetraininggames.com Fri Jan 15 21:21:34 2016 From: bodine at bodinetraininggames.com (tbodine) Date: Fri, 15 Jan 2016 18:21:34 -0800 (PST) Subject: Windows 10 file paths In-Reply-To: <56987EE6.3090401@hyperactivesw.com> References: <569809A7.4050105@hyperactivesw.com> <56982207.5030602@hyperactivesw.com> <1452812118166-4700189.post@n4.nabble.com> <56983855.9060005@hyperactivesw.com> <56984586.2020505@ahsoftware.net> <56987EE6.3090401@hyperactivesw.com> Message-ID: <1452910894616-4700222.post@n4.nabble.com> Followup on the code signing hunch: We know in the Apple world a lack of code signing can get an app banished by Apple's Gatekeeper. So perhaps a Windows machine with high security requirements also blocks exes or dlls that are not signed. It looks to me like RunRev does not code sign the dlls used for Windows standalone builds. In a spot check of the externals in my LC 7.1.1 commercial installation on Windows 7, I see several external dlls there are not code signed by RunRev. (I did not check them all.) Dlls in my standalones are also not signed until I do that myself. Innosetup has the capability of calling your code signing tool and signing the dlls and executable as part of its installer compiling process. Using that, my dlls get code signed painlessly. -- Tom Bodine -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Windows-10-file-paths-tp4700179p4700222.html Sent from the Revolution - User mailing list archive at Nabble.com. From jacque at hyperactivesw.com Fri Jan 15 22:57:45 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 15 Jan 2016 21:57:45 -0600 Subject: Windows 10 file paths In-Reply-To: <1452910894616-4700222.post@n4.nabble.com> References: <569809A7.4050105@hyperactivesw.com> <56982207.5030602@hyperactivesw.com> <1452812118166-4700189.post@n4.nabble.com> <56983855.9060005@hyperactivesw.com> <56984586.2020505@ahsoftware.net> <56987EE6.3090401@hyperactivesw.com> <1452910894616-4700222.post@n4.nabble.com> Message-ID: <5699BFB9.3050001@hyperactivesw.com> Good info, thanks for that. My client didn't want an installer (they used to use one but for this app they wanted a plain zip file.) It's useful to know that the dll isn't signed though, for future reference. We did ask one affected person to move the app folder to their Documents folder and all was well. This person was using a university-issued computer that likely enforced some stricter permissions. Putting the app on the Desktop failed, putting it in Documents was okay. Don't ask me, I just work here. On 1/15/2016 8:21 PM, tbodine wrote: > Followup on the code signing hunch: > > We know in the Apple world a lack of code signing can get an app banished by > Apple's Gatekeeper. So perhaps a Windows machine with high security > requirements also blocks exes or dlls that are not signed. > > It looks to me like RunRev does not code sign the dlls used for Windows > standalone builds. In a spot check of the externals in my LC 7.1.1 > commercial installation on Windows 7, I see several external dlls there are > not code signed by RunRev. (I did not check them all.) Dlls in my > standalones are also not signed until I do that myself. > > Innosetup has the capability of calling your code signing tool and signing > the dlls and executable as part of its installer compiling process. Using > that, my dlls get code signed painlessly. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From brahma at hindu.org Sat Jan 16 13:16:27 2016 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sat, 16 Jan 2016 18:16:27 +0000 Subject: One Rect For All specificaiton Message-ID: I?m about ready to go into the documentation on this, not only for myself, but for our design team and for our illustrators. I would like to make this collaborative in the sense that we would invite a limited number of contributors to the documentation. It would include some PDF?s templates for media-on-physical media (think water color or acrylic on small art pads) artists. Pixel definitions for digital artists and a simple LC stack with big rect on different cards with borders and a floating pallette that would dynamically change the stack size to simulate what happens on different devices, showing live content ?safe zone? and the background over flow? etc So? where do we put all such documentation? Other ?open source? software typically maintain a DOKU style Wiki (or MediaWiki) for documentation of this nature. (e.g. Synfig) once a small group refines the documentation then we can release it to a wider group for more additions. Google docs could work and Google Drive, but me-thinks it would be better to somehow keep this in a LiveCode universe.. OR do the whole thing, including notes all in the stack? but then it gets back to: How does a team collaborate on a stack? (obviously a script only stack can?t work because this is all about the presentation layer) Any thoughts? BR On January 4, 2016 at 6:55:34 PM, EED-wp Email (prothero at earthednet.org) wrote: I wonder if a set of screen templates for a range of ui configurations might not be a product folks would be willing to pay for. It sounds like it might save some folks a lot of time. Bill William Prothero http://ed.earthednet.org > On Jan 4, 2016, at 6:33 PM, Colin Holgate wrote: > > Don?t know, you should test it. According to the help it returns the screenrect after removing things like the keyboard overlay. But that may still be in virtual pixels, based on the card rect. > > >> On Jan 4, 2016, at 8:55 PM, Sannyasin Brahmanathaswami wrote: >> >> Seems better to let Livecode do the job? which means working in iPad size even though your main target is phones. Odd, but that would work for controls that are meant to stay top and bottom. >> >> OTHO I don?t understand how it is that ?tricky?? doesn?t the screen rect solve this for any device? >> >> on preOpenCard >> put the effective screenrect into tRect >> set the bottom of group ?tabBar? to item 4 of tRect >> end preOpenCard >> >> >> >> >> >> >> >> On January 4, 2016 at 3:12:46 PM, Colin Holgate (colinholgate at gmail.com) wrote: >> >> Which you choose is often dependent on whether you have tools that stick to the top and bottom, or the sides. If you do use code to make them snap into place, it can be tricky. You need to find the real width and height of the device itself, divide one into the other, and use that as a multiplier against your card size to know how far from the center the controls should be placed. If you?re only doing current iOS devices you could make assumptions about it being 16:9 or 4:3, but that might not always be the case, and it wouldn?t be correct for most Android devices. >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 brahma at hindu.org Sat Jan 16 13:29:20 2016 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sat, 16 Jan 2016 18:29:20 +0000 Subject: Release: 8.0 DP 13 -- Image Library? In-Reply-To: References: Message-ID: On January 13, 2016 at 8:05:44 AM, Ali Lloyd (ali.lloyd at livecode.com) wrote: We are pleased to announce the release of LiveCode 8.0 DP 13. Can we get the image library back? I frequently dev using standard icons and then change those out later with custom designed ones after review? but currently in LC 8 dp13? unless I?m blind? I don?t see this in the IDE anywhere? BR From pete at lcsql.com Sat Jan 16 13:37:42 2016 From: pete at lcsql.com (Peter Haworth) Date: Sat, 16 Jan 2016 18:37:42 +0000 Subject: Release: 8.0 DP 13 -- Image Library? In-Reply-To: References: Message-ID: Youre right, I can't find it either, used to be on the Development menu. Should enter a bug report. In the meantime, you can get to it from the lcstackbrowser Tools icon. On Sat, Jan 16, 2016 at 10:29 AM Sannyasin Brahmanathaswami < brahma at hindu.org> wrote: > On January 13, 2016 at 8:05:44 AM, Ali Lloyd (ali.lloyd at livecode.com > ) wrote: > We are pleased to announce the release of LiveCode 8.0 DP 13. > > > Can we get the image library back? I frequently dev using standard icons > and then change those out later with custom designed ones after review? but > currently in LC 8 dp13? unless I?m blind? I don?t see this in the IDE > anywhere? > > > BR > _______________________________________________ > use-livecode mailing list > use-livecode at 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 16 13:49:27 2016 From: pete at lcsql.com (Peter Haworth) Date: Sat, 16 Jan 2016 18:49:27 +0000 Subject: Version 2.2.2 of lcStackbrowser Message-ID: lcStackBrowser v2.2.2 is now available. This is mainly a bug fix release with a couple of minor enhancements, all listed in the release notes at https://goo.gl/DGUg65. This is a free release for existing users. A fully functional, 30-day demo is available at http://www.lcsql.com/lcstackbrowser.html. From richmondmathewson at gmail.com Sat Jan 16 13:51:40 2016 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 16 Jan 2016 20:51:40 +0200 Subject: Release: 8.0 DP 13 -- Image Library? In-Reply-To: References: Message-ID: <569A913C.5060006@gmail.com> On 16/01/16 20:37, Peter Haworth wrote: > Youre right, I can't find it either, used to be on the Development menu. > Should enter a bug report. > > In the meantime, you can get to it from the lcstackbrowser Tools icon. > revImageLibrary is 'there', but has got 'lost' in the Menubar, so one can just pop this into the Message Box: open stack "revImageLibrary" Richmond. AND, I have just discovered something 100% wonderful: I was able to copy-paste directly from the LiveCode 8 messageBox on Xubuntu into my e-mail client (Thunderbird): something I was unable to do with the LiveCode 7 series. 1. Thanks, LiveCode. 2. Please note, LiveCode people, Richmond gives credit! From merakosp at gmail.com Sat Jan 16 14:13:46 2016 From: merakosp at gmail.com (panagiotis merakos) Date: Sat, 16 Jan 2016 21:13:46 +0200 Subject: Release: 8.0 DP 13 -- Image Library? In-Reply-To: <569A913C.5060006@gmail.com> References: <569A913C.5060006@gmail.com> Message-ID: Thanks Richmond :) One note though (just tested on Windows): If you [open stack "revImageLibrary"] then selecting an image from the Image Library will place the image on the Image Library stack itself (and not on your current working stack) (For anyone interested, this is because "the topstack" returns the path to the Image Library stack) To workaround this, use the form [open stack "revImageLibrary" as palette]. In this case, "the topstack" returns the path to the current working stack and the selected image from the Image Library is put in the expected place. Regards, Panos -- On Sat, Jan 16, 2016 at 8:51 PM, Richmond wrote: > On 16/01/16 20:37, Peter Haworth wrote: > >> Youre right, I can't find it either, used to be on the Development menu. >> Should enter a bug report. >> >> In the meantime, you can get to it from the lcstackbrowser Tools icon. >> >> > revImageLibrary is 'there', but has got 'lost' in the Menubar, > so one can just pop this into the Message Box: > > > open stack "revImageLibrary" > > Richmond. > > AND, I have just discovered something 100% wonderful: > > I was able to copy-paste directly from the LiveCode 8 messageBox > on Xubuntu into my e-mail client (Thunderbird): something I was > unable to do with the LiveCode 7 series. > > > 1. Thanks, LiveCode. > > 2. Please note, LiveCode people, Richmond gives credit! > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 16 15:45:23 2016 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 16 Jan 2016 22:45:23 +0200 Subject: Release: 8.0 DP 13 -- Image Library? In-Reply-To: References: <569A913C.5060006@gmail.com> Message-ID: <569AABE3.4050606@gmail.com> On 16/01/16 21:13, panagiotis merakos wrote: > Thanks Richmond :) > > One note though (just tested on Windows): > > If you [open stack "revImageLibrary"] then selecting an image from the > Image Library will place the image on the Image Library stack itself (and > not on your current working stack) > > (For anyone interested, this is because "the topstack" returns the path to > the Image Library stack) > > To workaround this, use the form [open stack "revImageLibrary" as palette]. > In this case, "the topstack" returns the path to the current working stack > and the selected image from the Image Library is put in the expected place. > > Regards, > Panos > -- That was an oversight of mine; thanks for putting me right. write this in the messageBox: palette "revImageLibrary" and everything should be OK. Richmond. > > On Sat, Jan 16, 2016 at 8:51 PM, Richmond > wrote: > >> On 16/01/16 20:37, Peter Haworth wrote: >> >>> Youre right, I can't find it either, used to be on the Development menu. >>> Should enter a bug report. >>> >>> In the meantime, you can get to it from the lcstackbrowser Tools icon. >>> >>> >> revImageLibrary is 'there', but has got 'lost' in the Menubar, >> so one can just pop this into the Message Box: >> >> >> open stack "revImageLibrary" >> >> Richmond. >> >> AND, I have just discovered something 100% wonderful: >> >> I was able to copy-paste directly from the LiveCode 8 messageBox >> on Xubuntu into my e-mail client (Thunderbird): something I was >> unable to do with the LiveCode 7 series. >> >> >> 1. Thanks, LiveCode. >> >> 2. Please note, LiveCode people, Richmond gives credit! >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 Sat Jan 16 15:48:42 2016 From: prothero at earthednet.org (Earthednet-wp) Date: Sat, 16 Jan 2016 12:48:42 -0800 Subject: One Rect For All specificaiton In-Reply-To: References: Message-ID: This sounds like a wonderful contribution and I know I'll find it very useful. Thanks so much and I'm looking forward to the result. Best, Bill William Prothero http://es.earthednet.org > On Jan 16, 2016, at 10:16 AM, Sannyasin Brahmanathaswami wrote: > > I?m about ready to go into the documentation on this, not only for myself, but for our design team and for our illustrators. > > I would like to make this collaborative in the sense that we would invite a limited number of contributors to the documentation. It would include some PDF?s templates for media-on-physical media (think water color or acrylic on small art pads) artists. > > Pixel definitions for digital artists > > and a simple LC stack with big rect on different cards with borders and a floating pallette that would dynamically change the stack size to simulate what happens on different devices, showing live content ?safe zone? and the background over flow? etc > > So? where do we put all such documentation? Other ?open source? software typically maintain a DOKU style Wiki (or MediaWiki) for documentation of this nature. (e.g. Synfig) once a small group refines the documentation then we can release it to a wider group for more additions. Google docs could work and Google Drive, but me-thinks it would be better to somehow keep this in a LiveCode universe.. > > OR do the whole thing, including notes all in the stack? but then it gets back to: > > How does a team collaborate on a stack? (obviously a script only stack can?t work because this is all about the presentation layer) > > Any thoughts? > > BR > > > > > On January 4, 2016 at 6:55:34 PM, EED-wp Email (prothero at earthednet.org) wrote: > > I wonder if a set of screen templates for a range of ui configurations might not be a product folks would be willing to pay for. It sounds like it might save some folks a lot of time. > Bill > > William Prothero > http://ed.earthednet.org > >> On Jan 4, 2016, at 6:33 PM, Colin Holgate wrote: >> >> Don?t know, you should test it. According to the help it returns the screenrect after removing things like the keyboard overlay. But that may still be in virtual pixels, based on the card rect. >> >> >>> On Jan 4, 2016, at 8:55 PM, Sannyasin Brahmanathaswami wrote: >>> >>> Seems better to let Livecode do the job? which means working in iPad size even though your main target is phones. Odd, but that would work for controls that are meant to stay top and bottom. >>> >>> OTHO I don?t understand how it is that ?tricky?? doesn?t the screen rect solve this for any device? >>> >>> on preOpenCard >>> put the effective screenrect into tRect >>> set the bottom of group ?tabBar? to item 4 of tRect >>> end preOpenCard >>> >>> >>> >>> >>> >>> >>> >>> On January 4, 2016 at 3:12:46 PM, Colin Holgate (colinholgate at gmail.com) wrote: >>> >>> Which you choose is often dependent on whether you have tools that stick to the top and bottom, or the sides. If you do use code to make them snap into place, it can be tricky. You need to find the real width and height of the device itself, divide one into the other, and use that as a multiplier against your card size to know how far from the center the controls should be placed. If you?re only doing current iOS devices you could make assumptions about it being 16:9 or 4:3, but that might not always be the case, and it wouldn?t be correct for most Android devices. >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode 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 Sat Jan 16 17:04:52 2016 From: dochawk at gmail.com (Dr. Hawkins) Date: Sat, 16 Jan 2016 14:04:52 -0800 Subject: sort numeric by items? Message-ID: I have a snippet *set* the itemDel to "_" *sort* lines of grNms ascending numeric by item -1 of each Yet if grams is a_1 a_3 a_10 my order is a_1 a_10 a_3 It appears to me that "numeric" is getting ignored--or am I missing something? -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From stephenREVOLUTION2 at barncard.com Sat Jan 16 17:22:31 2016 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Sat, 16 Jan 2016 14:22:31 -0800 Subject: sort numeric by items? In-Reply-To: References: Message-ID: On Sat, Jan 16, 2016 at 2:04 PM, Dr. Hawkins wrote: > It appears to me that "numeric" is getting ignored--or am I missing > something? > the interpreter is treating the chunk items as text. Is there some way you can force a math operation on each iteration such as +0 ? Stephen Barncard - Sebastopol Ca. USA - mixstream.org From dochawk at gmail.com Sat Jan 16 17:36:56 2016 From: dochawk at gmail.com (Dr. Hawkins) Date: Sat, 16 Jan 2016 14:36:56 -0800 Subject: sort numeric by items? In-Reply-To: References: Message-ID: On Sat, Jan 16, 2016 at 2:22 PM, stephen barncard < stephenREVOLUTION2 at barncard.com> wrote: > the interpreter is treating the chunk items as text. Is there some way you > can force a math operation on each iteration such as +0 ? > 0+item -1 of each Value(item -1 of each) both give me the same result -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From iowahengst at mac.com Sat Jan 16 17:39:34 2016 From: iowahengst at mac.com (Randy Hengst) Date: Sat, 16 Jan 2016 16:39:34 -0600 Subject: sort numeric by items? In-Reply-To: References: Message-ID: I?m using LC 7.1.1 on Mac 10.10.5 Just for fun I put your lines in a text field? then this code set the itemDel to "_" sort lines of field "grNms" ascending numeric by item -1 of each And the lines were sorted as expected of numeric. be well, randy Randy Hengst www.classroomFocusedSoftware.com > On Jan 16, 2016, at 4:36 PM, Dr. Hawkins wrote: > > On Sat, Jan 16, 2016 at 2:22 PM, stephen barncard < > stephenREVOLUTION2 at barncard.com> wrote: > >> the interpreter is treating the chunk items as text. Is there some way you >> can force a math operation on each iteration such as +0 ? >> > > 0+item -1 of each > > Value(item -1 of each) > > both give me the same result > -- > 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 16 17:51:39 2016 From: dochawk at gmail.com (Dr. Hawkins) Date: Sat, 16 Jan 2016 14:51:39 -0800 Subject: sort numeric by items? In-Reply-To: References: Message-ID: On Sat, Jan 16, 2016 at 2:39 PM, Randy Hengst wrote: > And the lines were sorted as expected of numeric. I added a field to watch this, and it worked correctly. Then I single stepped through, and grams behaved just as it should. So I went to my slider, which still had the wrong order. It seems that in my fanGrps command, I stuck in a call to a temporary, long forgotten routine (even named "ocTmp"!) that was redoing thing an not using the numeric . . . *argh* On the bright side, today my own mistakes wasted more time than livecode's bugs :) (that doesn't happen very often) -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From brahma at hindu.org Sun Jan 17 01:16:09 2016 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sun, 17 Jan 2016 06:16:09 +0000 Subject: One Rect For All specificaiton In-Reply-To: References: Message-ID: I have decided, for now, just to go with a stack that has a documentation substack. I made a good start today? couple of hours into it. For now it only expose the specs required if you use ?fullScreenMode? ShowAll. For collaboration we can use the old ?pass the baton? method? I make V 1.0.0? some else can grab it and add to it and save as 1.0.1? Is Git Hub a good place to do that if it is a single file/stack and not code as such? BR On January 16, 2016 at 10:48:56 AM, Earthednet-wp (prothero at earthednet.org) wrote: This sounds like a wonderful contribution and I know I'll find it very useful. Thanks so much and I'm looking forward to the result. Best, Bill From dixonja at hotmail.co.uk Sun Jan 17 06:30:00 2016 From: dixonja at hotmail.co.uk (John Dixon) Date: Sun, 17 Jan 2016 11:30:00 +0000 Subject: cipherNames Message-ID: When asking for the cipher names that are available to liveCode... a long list is produced.. In the case of aes 256 there are many variants as depicted by three letters after 'aes'... What do they mean ?... Is it important to use the correct one ? example of different cipher names in the list.... aes-128-cbc,128 aes-128-cfb,128 aes-128-cfb1,128 aes-128-cfb8,128 aes-128-ctr,128 aes-128-ecb,128 aes-128-gcm,128 aes-128-ofb,128 aes-128-xts,256 aes-192-cbc,192 aes-192-cfb,192 aes-192-cfb1,192 aes-192-cfb8,192 aes-192-ctr,192 aes-192-ecb,192 aes-192-gcm,192 aes-192-ofb,192 aes-256-cbc,256 aes-256-cfb,256 aes-256-cfb1,256 aes-256-cfb8,256 aes-256-ctr,256 aes-256-ecb,256 aes-256-gcm,256 aes-256-ofb,256 aes-256-xts,512 aes128,128 aes192,192 aes256,256 From peterwawood at gmail.com Sun Jan 17 07:34:46 2016 From: peterwawood at gmail.com (Peter W A Wood) Date: Sun, 17 Jan 2016 20:34:46 +0800 Subject: cipherNames In-Reply-To: References: Message-ID: John > On 17 Jan 2016, at 19:30, John Dixon wrote: > > When asking for the cipher names that are available to liveCode... a long list is produced.. In the case of aes 256 there are many variants as depicted by three letters after 'aes'... What do they mean ?... Is it important to use the correct one ? > > example of different cipher names in the list.... > > aes-128-cbc,128 > ?. > > aes256,256 They are different mechanisms for handling multiple blocks of data. (A block length being determined by the key length.). This may help https://en.wikipedia.org/wiki/Block_cipher_mode_of_operation Regards Peter From rolf.kocherhans at id.uzh.ch Sun Jan 17 08:42:29 2016 From: rolf.kocherhans at id.uzh.ch (Rolf Kocherhans) Date: Sun, 17 Jan 2016 14:42:29 +0100 Subject: Where can I find the latest "Release Notes for Mobile" Message-ID: <0FF17048-23F9-4800-A7F0-0DDAECA4CDC2@id.uzh.ch> Where can I find the latest Release Notes for the mobile platform ? The latest I can find is: LiveCodeNotes-5_5_5-iOS.pdf from here: http://downloads.livecode.com/livecode/ That version is very old ! I am sure there must be newer one somwhere (for LC 7.1.1) ? Cheers Rolf From colinholgate at gmail.com Sun Jan 17 10:23:09 2016 From: colinholgate at gmail.com (Colin Holgate) Date: Sun, 17 Jan 2016 10:23:09 -0500 Subject: Where can I find the latest "Release Notes for Mobile" In-Reply-To: <0FF17048-23F9-4800-A7F0-0DDAECA4CDC2@id.uzh.ch> References: <0FF17048-23F9-4800-A7F0-0DDAECA4CDC2@id.uzh.ch> Message-ID: Although they are not linked, there are a few more recent ones. This is the last one I see: http://downloads.livecode.com/livecode/6_0_2/LiveCodeNotes-6_0_2-iOS.pdf From 6.1.0 onwards either there is no file, or the naming scheme changed. The more general release notes do include more iOS topics, but don?t go into the fundamentals like the 6.0.2 one does. From richmondmathewson at gmail.com Sun Jan 17 11:02:35 2016 From: richmondmathewson at gmail.com (Richmond) Date: Sun, 17 Jan 2016 18:02:35 +0200 Subject: Where can I find the latest "Release Notes for Mobile" In-Reply-To: References: <0FF17048-23F9-4800-A7F0-0DDAECA4CDC2@id.uzh.ch> Message-ID: <569BBB1B.9050900@gmail.com> On 17/01/16 17:23, Colin Holgate wrote: > Although they are not linked, there are a few more recent ones. This is the last one I see: > > http://downloads.livecode.com/livecode/6_0_2/LiveCodeNotes-6_0_2-iOS.pdf > > From 6.1.0 onwards either there is no file, or the naming scheme changed. The more general release notes do include more iOS topics, but don?t go into the fundamentals like the 6.0.2 one does. > _______________________________________________ > Queerly enough I seem unable to access that pdf over here. Richmond. From dixonja at hotmail.co.uk Sun Jan 17 11:21:40 2016 From: dixonja at hotmail.co.uk (John Dixon) Date: Sun, 17 Jan 2016 16:21:40 +0000 Subject: cipherNames In-Reply-To: References: , Message-ID: Peter... Thanks :-) > Subject: Re: cipherNames > From: peterwawood at gmail.com > Date: Sun, 17 Jan 2016 20:34:46 +0800 > To: use-livecode at lists.runrev.com > > John > > > On 17 Jan 2016, at 19:30, John Dixon wrote: > > > > When asking for the cipher names that are available to liveCode... a long list is produced.. In the case of aes 256 there are many variants as depicted by three letters after 'aes'... What do they mean ?... Is it important to use the correct one ? > > > > example of different cipher names in the list.... > > > > aes-128-cbc,128 > > > ?. > > > > aes256,256 > > They are different mechanisms for handling multiple blocks of data. (A block length being determined by the key length.). This may help https://en.wikipedia.org/wiki/Block_cipher_mode_of_operation > > Regards > > 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 richmondmathewson at gmail.com Sun Jan 17 11:07:01 2016 From: richmondmathewson at gmail.com (Richmond) Date: Sun, 17 Jan 2016 18:07:01 +0200 Subject: Where can I find the latest "Release Notes for Mobile" In-Reply-To: References: <0FF17048-23F9-4800-A7F0-0DDAECA4CDC2@id.uzh.ch> Message-ID: <569BBC25.2080601@gmail.com> On 17/01/16 17:23, Colin Holgate wrote: > Although they are not linked, there are a few more recent ones. This is the last one I see: > > http://downloads.livecode.com/livecode/6_0_2/LiveCodeNotes-6_0_2-iOS.pdf > > From 6.1.0 onwards either there is no file, or the naming scheme changed. The more general release notes do include more iOS topics, but don?t go into the fundamentals like the 6.0.2 one does. > _______________________________________________ > HOWEVER: I found a lot of useful stuff here: http://livecode.com/resources/guides/mobile/ios/ and here: http://livecode.com/resources/guides/mobile/android/ and as I have inherited an Android tablet as a side effect of my getting a MacBook Air for my wife for Christmas, I am seriously tempted to see whether I can port my Devawriter. Richmond. From terry.judd at unimelb.edu.au Sun Jan 17 21:30:31 2016 From: terry.judd at unimelb.edu.au (Terry Judd) Date: Mon, 18 Jan 2016 02:30:31 +0000 Subject: Forcing an android app to quit when the 'home' button is clicked? Message-ID: On iOS the fact that a LC app routinely quits when the home button is clicked can be a pain but in the case of the app I?m currently developing I actually want this to occur. Anyway, I?m covered on iOS but how do I make the app quit when the user leaves it on an android device, or is this not possible? Terry? Terry Judd | Senior Lecturer in Medical Education Department of Medical Education The University of Melbourne M: 0435 961 594 | E: terry.judd at unimelb.edu.au Publications From matthias_livecode_150811 at m-r-d.de Mon Jan 18 02:16:55 2016 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe | M-R-D) Date: Mon, 18 Jan 2016 08:16:55 +0100 Subject: OT-Rev TIO: again all index files were overwritten Message-ID: <4B529462-A80F-4632-87B3-3C560706B14A@m-r-d.de> Hi, maybe this is of interest of other On-Rev users on TIO, but in our accounts all index files were again overwritten. But i am pretty sure it?s not just our account. So be aware. Regards, Matthias From matthias_livecode_150811 at m-r-d.de Mon Jan 18 02:51:07 2016 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe | M-R-D) Date: Mon, 18 Jan 2016 08:51:07 +0100 Subject: [On-Rev] TIO: again all index files were overwritten Message-ID: <301C153F-929D-432B-8618-558B14D99141@m-r-d.de> Hi, please excuse. My subject was a little bit mixed up in my previous email. Maybe this is of interest of other On-Rev users on TIO, but in our accounts all index files were again overwritten. But i am pretty sure it?s not just our account. So be aware. Regards, Matthias From benr_mc at cogapp.com Mon Jan 18 04:32:36 2016 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Mon, 18 Jan 2016 09:32:36 +0000 Subject: Message watcher in LC 8 In-Reply-To: <56990552.9060705@fourthworld.com> References: <56990552.9060705@fourthworld.com> Message-ID: <569CB134.2040901@cogapp.com> On 15/01/2016 14:42, Richard Gaskin wrote: > The IDE insists on changing the name of the stack file when I do Save As > (necessary to maintain compatibility with older versions of LC), and at some > point I just gave up manually changing it to match the old URL. Hi Richard, I wouldn't dream of teaching my grandmother anything in relation to eggs, but FWIW: the 'backup+save' button on my standard toolbar extension looks for a stack property "uPrefStackFormat" which I can set to indicate the preferred format (2.4/2.7/5.5) and sets "the stackfileversion" appropriately before saving the stack. That technique lets me move around between many versions of LC without (too often) running into the problem you mention. best Ben From peter.brett at livecode.com Mon Jan 18 05:07:59 2016 From: peter.brett at livecode.com (Peter TB Brett) Date: Mon, 18 Jan 2016 10:07:59 +0000 Subject: Message watcher in LC 8 In-Reply-To: <569CB134.2040901@cogapp.com> References: <56990552.9060705@fourthworld.com> <569CB134.2040901@cogapp.com> Message-ID: <569CB97F.4050706@livecode.com> On 18/01/2016 09:32, Ben Rubinstein wrote: > On 15/01/2016 14:42, Richard Gaskin wrote: >> The IDE insists on changing the name of the stack file when I do Save As >> (necessary to maintain compatibility with older versions of LC), and >> at some >> point I just gave up manually changing it to match the old URL. > > Hi Richard, > > I wouldn't dream of teaching my grandmother anything in relation to > eggs, but FWIW: the 'backup+save' button on my standard toolbar > extension looks for a stack property "uPrefStackFormat" which I can set > to indicate the preferred format (2.4/2.7/5.5) and sets "the > stackfileversion" appropriately before saving the stack. That technique > lets me move around between many versions of LC without (too often) > running into the problem you mention. Note that in LC 8.0.0 DP 13 and later, the IDE save commands don't use "the stackFileVersion" and save as specific versions directly. You may want to update your toolbar extension to take advantage of this! For example, simply use: save stack "my stack name" with format 2.7 (This is new syntax in 8.0.0 DP 13). Peter -- Dr Peter Brett LiveCode Open Source Team LiveCode on reddit: https://reddit.com/r/livecode From peter.brett at livecode.com Mon Jan 18 05:10:39 2016 From: peter.brett at livecode.com (Peter TB Brett) Date: Mon, 18 Jan 2016 10:10:39 +0000 Subject: Widgets Disappear in DP13 In-Reply-To: <2F15BB4C-73B2-431B-8AD2-936C7494CE40@mac.com> References: <1452753827432-4700166.post@n4.nabble.com> <1452777629612-4700169.post@n4.nabble.com> <1452783633750-4700176.post@n4.nabble.com> <2F15BB4C-73B2-431B-8AD2-936C7494CE40@mac.com> Message-ID: <569CBA1F.30200@livecode.com> On 14/01/2016 22:46, James Little wrote: > > Using 8.0 DP13 on a Mac, a Tree View widget and a Browser widget disappear when the app is saved and then re-opened in the IDE. I?ve just confirmed this with a new test stack. I saw this yesterday in the regular app that I?m working on. The widgets are no longer present in the Project Browser either. This is an engine bug which occurs when you have a widget in a substack, but no widget in the main stack. http://quality.livecode.com/show_bug.cgi?id=16738 You can work around it by adding a widget to the main stack and making it invisible. Peter -- Dr Peter Brett LiveCode Open Source Team LiveCode on reddit: https://reddit.com/r/livecode From rolf.kocherhans at id.uzh.ch Mon Jan 18 05:46:16 2016 From: rolf.kocherhans at id.uzh.ch (Rolf Kocherhans) Date: Mon, 18 Jan 2016 11:46:16 +0100 Subject: Where can I find the latest "Release Notes for Mobile" Message-ID: <601AAB51-C03D-4456-B6FC-34AE8AC74BDB@id.uzh.ch> Thanks Colin & Richmond for the links. I was after the newest version of - what was once called ?iOS-specific engine features? in the PDF file - this has been renamed to: "Mobile Specific Engine Features? and can now be found online here: https://livecode.com/resources/guides/mobile/mobile-specific-engine-features/ Cheers Rolf From peter.brett at livecode.com Mon Jan 18 06:24:29 2016 From: peter.brett at livecode.com (Peter TB Brett) Date: Mon, 18 Jan 2016 11:24:29 +0000 Subject: LiveCode meetup at FOSDEM 2016: Sunday Message-ID: <569CCB6D.1060107@livecode.com> Hi all, As previously mentioned, I'll be at FOSDEM 2016 this year! https://fosdem.org/2016/ If you'll be there, let's meet up at 11:00 CET at the upstairs entrance to Janson. It's the main lecture theatre where the keynotes happen -- walk up to the back of the auditorium and out into the foyer, and I'll be there. (We won't stay there long, but will go and find somewhere warmer to chat.) I'm keen to discuss LiveCode 8, widgets, Linux, and LiveCode Open Source with anyone who can make it to Brussels! Peter -- Dr Peter Brett LiveCode Open Source Team LiveCode on reddit: https://reddit.com/r/livecode From peter.brett at livecode.com Mon Jan 18 06:48:48 2016 From: peter.brett at livecode.com (Peter TB Brett) Date: Mon, 18 Jan 2016 11:48:48 +0000 Subject: [ANN] This Week in LiveCode 16 Message-ID: <569CD120.1020707@livecode.com> Hi all, Read about new developments in LiveCode open source and the open source community in today's edition of the "This Week in LiveCode" newsletter! Read issue #15 here: https://goo.gl/i6Gosr This is a weekly newsletter about LiveCode, focussing on what's been going on in and around the open source project. New issues will be released weekly on Mondays. We have a dedicated mailing list that will deliver each issue directly to you e-mail, so you don't miss any! Are you doing something interesting with LiveCode Community Edition? Please get in touch and get it featured in "This Week in LiveCode"! Peter -- Dr Peter Brett LiveCode Open Source Team LiveCode on reddit: https://reddit.com/r/livecode From mazzapaoloitaly at gmail.com Mon Jan 18 08:50:21 2016 From: mazzapaoloitaly at gmail.com (paolo mazza) Date: Mon, 18 Jan 2016 14:50:21 +0100 Subject: Best LC release for Raspberry PI Message-ID: Hi all, I have a question about Raspberry PI: which is the best LC release for Raspberry PI now? According to the download list, the last release for Raspberry PI is the 7.0.4 However, I read in the forum that it does not work properly , see http://forums.livecode.com/viewtopic.php?f=76&t=24588. So, what am I supposed to install to have a working LiveCode IDE in my Raspberry PI 2? All the best, Paolo Mazza From ambassador at fourthworld.com Mon Jan 18 10:01:38 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 18 Jan 2016 07:01:38 -0800 Subject: Message watcher in LC 8 In-Reply-To: <569CB97F.4050706@livecode.com> References: <569CB97F.4050706@livecode.com> Message-ID: <569CFE52.1070208@fourthworld.com> Ben Rubinstein wrote: > On 15/01/2016 14:42, Richard Gaskin wrote: >> The IDE insists on changing the name of the stack file when I do >> Save As (necessary to maintain compatibility with older versions >> of LC), and at some point I just gave up manually changing it to >> match the old URL. > > I wouldn't dream of teaching my grandmother anything in relation to > eggs, but FWIW: the 'backup+save' button on my standard toolbar > extension looks for a stack property "uPrefStackFormat" which I can > set to indicate the preferred format (2.4/2.7/5.5) and sets "the > stackfileversion" appropriately before saving the stack. That > technique lets me move around between many versions of LC without > (too often) running into the problem you mention. If I only used the IDE's File->Save command I'd get pretty good results, as once you do a Save As within the IDE it stores the preferred stackFileVersion in a custom property and uses that when saving (except apparently differently in v87dp13, as described below). Sounds good in theory, and I've even modified my personal tools to use the IDE's Save routine to keep behavior consistent, but despite that I've found a few cases where after working in v7 later on I find I can't open a stack in v6. Haven't taken the time to pin down which method of saving doesn't change the stackFileVersion to the saved custom prop (and in all fairness it may be some of my older tools and not something in the IDE), and in the case of 4wFlightRecorder it didn't matter much because the older .rev file extension is just confusing to new users anyway. Peter TB Brett wrote: > Note that in LC 8.0.0 DP 13 and later, the IDE save commands don't > use "the stackFileVersion" and save as specific versions directly. > You may want to update your toolbar extension to take advantage of > this! For example, simply use: > > save stack "my stack name" with format 2.7 > > (This is new syntax in 8.0.0 DP 13). Nice new addition - thanks. -- 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 gbojsza at gmail.com Mon Jan 18 10:02:14 2016 From: gbojsza at gmail.com (Glen Bojsza) Date: Mon, 18 Jan 2016 10:02:14 -0500 Subject: Running Processes in the background Message-ID: Hello, Are there any examples of how to run a process in the background in an application? I need to have two timer processes run when the user is using the application. The processes need to check for certain trigger values every - 1 minute - 10 minutes If the trigger value(s) exist then the application takes the user to a different part in the application. Everything I have read is that LC is not multithreaded but there is a way to generate these as loops that can check for these values? Any direction or examples are appreciated. regards, Glen From benr_mc at cogapp.com Mon Jan 18 10:06:58 2016 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Mon, 18 Jan 2016 15:06:58 +0000 Subject: Message watcher in LC 8 In-Reply-To: <569CB97F.4050706@livecode.com> References: <56990552.9060705@fourthworld.com> <569CB134.2040901@cogapp.com> <569CB97F.4050706@livecode.com> Message-ID: <569CFF92.3030703@cogapp.com> On 18/01/2016 10:07, Peter TB Brett wrote: > Note that in LC 8.0.0 DP 13 and later, the IDE save commands don't use "the > stackFileVersion" and save as specific versions directly. You may want to > update your toolbar extension to take advantage of this! For example, simply > use: > > save stack "my stack name" with format 2.7 > > (This is new syntax in 8.0.0 DP 13). Thanks Peter, I wouldn't have spotted that. Ben From rdimola at evergreeninfo.net Mon Jan 18 10:14:21 2016 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Mon, 18 Jan 2016 10:14:21 -0500 Subject: Running Processes in the background In-Reply-To: References: Message-ID: <004501d15202$e8ecf2b0$bac6d810$@net> Send in time will do it. You can also get the message ID to cancel the pending message. Example(not tested) Start up the timers(messages) in the main startup code: Send "testit to me in 1 minute Send "testitlong to me in 10 minutes Then use 2 handlers to receive the messages. On testit If some condition is true then do something Send "testit to me in 1 minutes End on testit On testitlong If some condition is true then do something Send "testitlong to me in 10 minutes End on testitlong 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 Glen Bojsza Sent: Monday, January 18, 2016 10:02 AM To: How to use LiveCode Subject: Running Processes in the background Hello, Are there any examples of how to run a process in the background in an application? I need to have two timer processes run when the user is using the application. The processes need to check for certain trigger values every - 1 minute - 10 minutes If the trigger value(s) exist then the application takes the user to a different part in the application. Everything I have read is that LC is not multithreaded but there is a way to generate these as loops that can check for these values? Any direction or examples are appreciated. regards, Glen _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From peter.brett at livecode.com Mon Jan 18 10:24:26 2016 From: peter.brett at livecode.com (Peter TB Brett) Date: Mon, 18 Jan 2016 15:24:26 +0000 Subject: Message watcher in LC 8 In-Reply-To: <569CFE52.1070208@fourthworld.com> References: <569CB97F.4050706@livecode.com> <569CFE52.1070208@fourthworld.com> Message-ID: <569D03AA.7030102@livecode.com> On 18/01/2016 15:01, Richard Gaskin wrote: > If I only used the IDE's File->Save command I'd get pretty good results, > as once you do a Save As within the IDE it stores the preferred > stackFileVersion in a custom property and uses that when saving (except > apparently differently in v87dp13, as described below). Doesn't that work any more? It should! If not, it's a regression and I will fix it... Peter -- Dr Peter Brett LiveCode Open Source Team LiveCode on reddit: https://reddit.com/r/livecode From ambassador at fourthworld.com Mon Jan 18 10:33:48 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 18 Jan 2016 07:33:48 -0800 Subject: Message watcher in LC 8 In-Reply-To: <569D03AA.7030102@livecode.com> References: <569D03AA.7030102@livecode.com> Message-ID: <569D05DC.9040804@fourthworld.com> Peter TB Brett wrote: > On 18/01/2016 15:01, Richard Gaskin wrote: >> If I only used the IDE's File->Save command I'd get pretty good results, >> as once you do a Save As within the IDE it stores the preferred >> stackFileVersion in a custom property and uses that when saving (except >> apparently differently in v87dp13, as described below). > > Doesn't that work any more? It should! If not, it's a regression and I > will fix it... Thanks, but I don't know if there's a problem there. I was merely noting that the underlying mechanism is different; whether that played a role in my saving in the current format hasn't been determined. If I get some time I may go back and see if I can pin down where the errant save happened, but for me, even with all my older tools that use the straight "save" command without bothering to set the stackFileVersion, it's been a minor issue, and I'm not seeing complaints from others about it so I wouldn't consider it a priority. -- 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 peter.brett at livecode.com Mon Jan 18 11:33:45 2016 From: peter.brett at livecode.com (Peter TB Brett) Date: Mon, 18 Jan 2016 16:33:45 +0000 Subject: Script editor performance with large scripts Message-ID: <569D13E9.1090902@livecode.com> Hi all, I've spent the last couple of days making the script editor quite a bit snappier when working with large scripts (5000+ lines), and if all goes well, those changes should be landing in the next LiveCode 8 development preview release. Good news for people who write terrifyingly huge scripts! https://github.com/livecode/livecode-ide/pull/794 Peter :-) -- Dr Peter Brett LiveCode Open Source Team LiveCode on reddit: https://reddit.com/r/livecode From david at viral.academy Mon Jan 18 11:49:47 2016 From: david at viral.academy (David Bovill) Date: Mon, 18 Jan 2016 17:49:47 +0100 Subject: One Rect For All specificaiton In-Reply-To: References: Message-ID: Send us the stack - and I can use it to demo a new workflow I'm working on. It will have a wiki int eh middle and github at the top - with local "pass the baton" methodology stitched in their somehow :) On 17 January 2016 at 07:16, Sannyasin Brahmanathaswami wrote: > I have decided, for now, just to go with a stack that has a documentation > substack. I made a good start today? couple of hours into it. > > For now it only expose the specs required if you use ?fullScreenMode? > ShowAll. > > For collaboration we can use the old ?pass the baton? method? I make V > 1.0.0? some else can grab it and add to it and save as 1.0.1? > > Is Git Hub a good place to do that if it is a single file/stack and not > code as such? > > BR > > > On January 16, 2016 at 10:48:56 AM, Earthednet-wp (prothero at earthednet.org > ) wrote: > > This sounds like a wonderful contribution and I know I'll find it very > useful. > Thanks so much and I'm looking forward to the result. > Best, > Bill > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From heather at livecode.com Mon Jan 18 11:54:38 2016 From: heather at livecode.com (Heather Laine) Date: Mon, 18 Jan 2016 16:54:38 +0000 Subject: There is no You in Documentation - yet! Message-ID: Folks, Ali has just added a great blog post to the blog. I encourage you to go take a look and even more, to consider adding some you to our docs... https://livecode.com/putting-the-you-in-documentation/ Warm Regards, Heather Heather Laine Customer Services Manager LiveCode Ltd www.livecode.com From MikeKerner at roadrunner.com Mon Jan 18 12:05:20 2016 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 18 Jan 2016 12:05:20 -0500 Subject: There is no You in Documentation - yet! In-Reply-To: References: Message-ID: Given how submissions to the documentation, previously, seemed to be ignored, it will be a welcome change. On Mon, Jan 18, 2016 at 11:54 AM, Heather Laine wrote: > Folks, Ali has just added a great blog post to the blog. I encourage you > to go take a look and even more, to consider adding some you to our docs... > > https://livecode.com/putting-the-you-in-documentation/ < > https://livecode.com/putting-the-you-in-documentation/> > > Warm Regards, > > Heather > > Heather Laine > Customer Services Manager > LiveCode Ltd > www.livecode.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 > -- 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 MikeKerner at roadrunner.com Mon Jan 18 12:07:04 2016 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 18 Jan 2016 12:07:04 -0500 Subject: Script editor performance with large scripts In-Reply-To: <569D13E9.1090902@livecode.com> References: <569D13E9.1090902@livecode.com> Message-ID: We really should have a workshop/class/webinar on the script editor. Some day, glx should be part of the SE, and I would imagine that I am not the only one with a long SE wishlist. On Mon, Jan 18, 2016 at 11:33 AM, Peter TB Brett wrote: > Hi all, > > I've spent the last couple of days making the script editor quite a bit > snappier when working with large scripts (5000+ lines), and if all goes > well, those changes should be landing in the next LiveCode 8 development > preview release. Good news for people who write terrifyingly huge scripts! > > https://github.com/livecode/livecode-ide/pull/794 > > Peter :-) > > -- > Dr Peter Brett > LiveCode Open Source Team > > LiveCode on reddit: https://reddit.com/r/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 gbojsza at gmail.com Mon Jan 18 12:19:55 2016 From: gbojsza at gmail.com (Glen Bojsza) Date: Mon, 18 Jan 2016 12:19:55 -0500 Subject: Running Processes in the background In-Reply-To: <004501d15202$e8ecf2b0$bac6d810$@net> References: <004501d15202$e8ecf2b0$bac6d810$@net> Message-ID: Hi Ralph, I tried an example outlined by you and I keep getting en error where it can't find the handler? *on* mouseUp *put* 1 into x *set* the stimer of this stack to "false" *send* tTest to me in 1 minute **this is where the first error occurs? *repeat* for 30 times *if* the stimer of this stack is true *then* *put* "reached goal" into fld counter *else* *put* x + 6 into x *put* x into fld counter *wait* for 1 second *end* *if* *end* *repeat* *end* mouseUp *on* tTest *put* "made it to tTest with x = " & x & cr *send* tTest to me in 1 minutes *end* tTest On Mon, Jan 18, 2016 at 10:14 AM, Ralph DiMola wrote: > Send in time will do it. You can also get the message ID to cancel the > pending message. > > Example(not tested) > Start up the timers(messages) in the main startup code: > > Send "testit to me in 1 minute > Send "testitlong to me in 10 minutes > > Then use 2 handlers to receive the messages. > > On testit > If some condition is true then do something > Send "testit to me in 1 minutes > End on testit > > On testitlong > If some condition is true then do something > Send "testitlong to me in 10 minutes > End on testitlong > > 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 Glen Bojsza > Sent: Monday, January 18, 2016 10:02 AM > To: How to use LiveCode > Subject: Running Processes in the background > > Hello, > > Are there any examples of how to run a process in the background in an > application? > > I need to have two timer processes run when the user is using the > application. > > The processes need to check for certain trigger values every > > - 1 minute > > - 10 minutes > > If the trigger value(s) exist then the application takes the user to a > different part in the application. > > Everything I have read is that LC is not multithreaded but there is a way > to > generate these as loops that can check for these values? > > Any direction or examples are appreciated. > > regards, > > Glen > _______________________________________________ > use-livecode mailing list > use-livecode 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 Mon Jan 18 12:24:30 2016 From: mwieder at ahsoftware.net (Mark Wieder) Date: Mon, 18 Jan 2016 09:24:30 -0800 Subject: Message watcher in LC 8 In-Reply-To: <569D03AA.7030102@livecode.com> References: <569CB97F.4050706@livecode.com> <569CFE52.1070208@fourthworld.com> <569D03AA.7030102@livecode.com> Message-ID: <569D1FCE.90502@ahsoftware.net> On 01/18/2016 07:24 AM, Peter TB Brett wrote: > Doesn't that work any more? It should! If not, it's a regression and I > will fix it... It worked fine in all the scenarios I put it through. -- Mark Wieder ahsoftware at gmail.com From mwieder at ahsoftware.net Mon Jan 18 12:34:44 2016 From: mwieder at ahsoftware.net (Mark Wieder) Date: Mon, 18 Jan 2016 09:34:44 -0800 Subject: Message watcher in LC 8 In-Reply-To: <569CB97F.4050706@livecode.com> References: <56990552.9060705@fourthworld.com> <569CB134.2040901@cogapp.com> <569CB97F.4050706@livecode.com> Message-ID: <569D2234.6050709@ahsoftware.net> On 01/18/2016 02:07 AM, Peter TB Brett wrote: > Note that in LC 8.0.0 DP 13 and later, the IDE save commands don't use > "the stackFileVersion" and save as specific versions directly. You may > want to update your toolbar extension to take advantage of this! For > example, simply use: > > save stack "my stack name" with format 2.7 > > (This is new syntax in 8.0.0 DP 13). Well, there's a bit more to it than that. The IDE's preference setting for preserving the file format still works. And setting the stackFileVersion before saving by script also still works. So there's no problem with breaking existing code. The new syntax is at the engine level: if stacks contain widgets they are saved in 8.0 format. otherwise stacks are saved in 7.0 format by default. New to dp13 are: save stack with format and save stack with latest format And the IDE's menu now reflects these for "Save As". Much discussion at https://github.com/livecode/livecode/pull/3351 -- Mark Wieder ahsoftware at gmail.com From jiml at netrin.com Mon Jan 18 13:51:08 2016 From: jiml at netrin.com (Jim Lambert) Date: Mon, 18 Jan 2016 10:51:08 -0800 Subject: [On-Rev] TIO: again all index files were overwritten In-Reply-To: References: Message-ID: Matthias, It is not just your account. I can confirm that the TIO index files have been overwritten on my account too. Jim Lambert From rdimola at evergreeninfo.net Mon Jan 18 14:01:36 2016 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Mon, 18 Jan 2016 14:01:36 -0500 Subject: Running Processes in the background In-Reply-To: References: <004501d15202$e8ecf2b0$bac6d810$@net> Message-ID: <008b01d15222$a7a32e30$f6e98a90$@net> Enclose tTest in quotes in the send otherwise it is looking for the variable tTest. send "tTest" to me in 1 minute 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 Glen Bojsza Sent: Monday, January 18, 2016 12:20 PM To: How to use LiveCode Subject: Re: Running Processes in the background Hi Ralph, I tried an example outlined by you and I keep getting en error where it can't find the handler? *on* mouseUp *put* 1 into x *set* the stimer of this stack to "false" *send* tTest to me in 1 minute **this is where the first error occurs? *repeat* for 30 times *if* the stimer of this stack is true *then* *put* "reached goal" into fld counter *else* *put* x + 6 into x *put* x into fld counter *wait* for 1 second *end* *if* *end* *repeat* *end* mouseUp *on* tTest *put* "made it to tTest with x = " & x & cr *send* tTest to me in 1 minutes *end* tTest On Mon, Jan 18, 2016 at 10:14 AM, Ralph DiMola wrote: > Send in time will do it. You can also get the message ID to cancel the > pending message. > > Example(not tested) > Start up the timers(messages) in the main startup code: > > Send "testit to me in 1 minute > Send "testitlong to me in 10 minutes > > Then use 2 handlers to receive the messages. > > On testit > If some condition is true then do something Send "testit to me in 1 > minutes End on testit > > On testitlong > If some condition is true then do something Send "testitlong to me > in 10 minutes End on testitlong > > 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 Glen Bojsza > Sent: Monday, January 18, 2016 10:02 AM > To: How to use LiveCode > Subject: Running Processes in the background > > Hello, > > Are there any examples of how to run a process in the background in an > application? > > I need to have two timer processes run when the user is using the > application. > > The processes need to check for certain trigger values every > > - 1 minute > > - 10 minutes > > If the trigger value(s) exist then the application takes the user to a > different part in the application. > > Everything I have read is that LC is not multithreaded but there is a > way to generate these as loops that can check for these values? > > Any direction or examples are appreciated. > > regards, > > Glen > _______________________________________________ > use-livecode mailing list > use-livecode 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 revolution at derbrill.de Mon Jan 18 14:02:45 2016 From: revolution at derbrill.de (Malte Brill) Date: Mon, 18 Jan 2016 20:02:45 +0100 Subject: Server: post gzipped message and response (loooong post, sorry) In-Reply-To: References: Message-ID: Hi all, I am struggeling with something that used to work with the 5.x Server engine (on Mac but I need it X-Plat) I am trying to POST compressed XML to Server and reply with compressed XML from there. With the 7.x engines of server this breaks: " into sReply put crlf & "DATA" after sReply replace "DATA" with pData in sReply end libServerBuildReply command libServerRequestMethodError libServerBuildReply "error", "Requested method not supported" end libServerRequestMethodError command requestPing libServerBuildReply "ping", "" & the milliseconds & "" & CRLF & \ "ok" & CRLF end requestPing command requestUnknown pRoot,pRequest libServerBuildReply "error", "" & the milliseconds & "" & CRLF & \ "unknown request:"&cr&pRoot&cr&length(sPostData)&"" & CRLF end requestUnknown ?> On The client Side I have: on sendRequest pRequest,pCompress local tXML,tURL put "" into tXML put "" after tXML put fld "theURL" into tURL if pCompress then post compress(tXML) to URL tURL else post tXML to URL tURL end if handleRequest it end sendRequest on handleRequest pResponse try put decompress(pResponse) into fld "output" catch theErr put theErr & cr & cr & pResponse into fld "output" end try end handleRequest Now if I do a compressed version of my ping request: sendRequest "ping?,true I get: ? wrong here? Why the %??? 1453143362202 ok the uncompressed call: 1453143583747 ok works as expected. Even worse for: sendRequest "irgendwas?,true Which comes back totally garbled most of the time? Anybody got an idea what changed between 5.x and 7 that breaks compressed transfer? Anybody got a solution? Cheers, Malte From mwieder at ahsoftware.net Mon Jan 18 14:28:20 2016 From: mwieder at ahsoftware.net (Mark Wieder) Date: Mon, 18 Jan 2016 11:28:20 -0800 Subject: [On-Rev] TIO: again all index files were overwritten In-Reply-To: References: Message-ID: <569D3CD4.5080905@ahsoftware.net> On 01/18/2016 10:51 AM, Jim Lambert wrote: > Matthias, > > It is not just your account. I can confirm that the TIO index files have been overwritten on my account too. Not sure if it's related, but diesel just went offline for four minutes. -- Mark Wieder ahsoftware at gmail.com From ambassador at fourthworld.com Mon Jan 18 14:29:26 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 18 Jan 2016 11:29:26 -0800 Subject: There is no You in Documentation - yet! In-Reply-To: References: Message-ID: <569D3D16.8020001@fourthworld.com> Mike Kerner wrote: > Given how submissions to the documentation, previously, seemed to be > ignored, it will be a welcome change. If you would please provide URLs for the documentation-related bug reports and/or pull requests you've submitted I'll review them to see if if I can determine why they weren't acted on sooner. -- 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 Mon Jan 18 14:56:46 2016 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 18 Jan 2016 14:56:46 -0500 Subject: There is no You in Documentation - yet! In-Reply-To: <569D3D16.8020001@fourthworld.com> References: <569D3D16.8020001@fourthworld.com> Message-ID: I'm referring to the documentation stack. On Mon, Jan 18, 2016 at 2:29 PM, Richard Gaskin wrote: > Mike Kerner wrote: > > Given how submissions to the documentation, previously, seemed to be > > ignored, it will be a welcome change. > > If you would please provide URLs for the documentation-related bug reports > and/or pull requests you've submitted I'll review them to see if if I can > determine why they weren't acted on sooner. > > -- > 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 > -- 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 kevin at livecode.com Mon Jan 18 15:00:43 2016 From: kevin at livecode.com (Kevin Miller) Date: Mon, 18 Jan 2016 20:00:43 +0000 Subject: [On-Rev] TIO: again all index files were overwritten In-Reply-To: References: Message-ID: Yes, the attacker returned again and used a different vector to achieve the very same task. We responded within minutes and were able to stop the attack fairly rapidly. Mostly things have been restored, if you?re not back to normal let us know through the usual channels. Kind regards, Kevin Kevin Miller ~ kevin at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps On 18/01/2016 18:51, "use-livecode on behalf of Jim Lambert" wrote: >Matthias, > >It is not just your account. I can confirm that the TIO index files have >been overwritten on my account too. > >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 MikeKerner at roadrunner.com Mon Jan 18 15:00:53 2016 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 18 Jan 2016 15:00:53 -0500 Subject: iOS Safari View Controller In-Reply-To: <1452565126342-4700105.post@n4.nabble.com> References: <1452550397286-4700085.post@n4.nabble.com> <7BA39750-EAB7-4647-8354-7643FC2D3244@appisle.net> <1452562367938-4700103.post@n4.nabble.com> <1452565126342-4700105.post@n4.nabble.com> Message-ID: While we're at it, I would LOVE to be able to script a browser session from within LC - fill fields, push buttons, hit links, etc. Think of it as a headless browser in LC. On Mon, Jan 11, 2016 at 9:18 PM, hlowe wrote: > OK, on further investigation the "launch url pAppURL" call is actually > launching Safari and suspending my App. Returning to my app from the Safari > Web view causes my app's splash screen to appear (as it is relaunched by > iOS). It would be MUCH nicer to be able to open a Safari View within LC. As > Monte says it should be trivial to implement. This is how Apple now > recommends viewing web content from within an iOS app and it also offers an > elegant solution to the ATS issue that will eventually prevent viewing http > sites within an app using LCs MobileControlCreate "browser" syntax. > > Henry > > > > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/iOS-Safari-View-Controller-tp4700085p4700105.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 > -- 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 matthias_livecode_150811 at m-r-d.de Mon Jan 18 15:16:05 2016 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe | M-R-D) Date: Mon, 18 Jan 2016 21:16:05 +0100 Subject: [On-Rev] TIO: again all index files were overwritten In-Reply-To: References: Message-ID: <4B592614-DF52-4F32-9349-181606D515BF@m-r-d.de> Kevin, the index files have a changed date 17.01.2016 7:00 GMT+1. That was yesterday. When were the things restored? I informed support today morning by emergency request at 08:15 GMT+1. Did not hear back from support. So i phoned Heather at 10:00GMT+1. But nothing changed. Until now i did NOT get an answer to my emergency request. 11 hours later ! ! ! And my data is still broken. Btw. that?s the 2nd time that i have to restore it on my own. The last time i had also to restore the data on my own. because there was a problem with your backup. And why is no one able to inform customers about this incident, so the customers can check if their data is broken or not? Matthias > Am 18.01.2016 um 21:00 schrieb Kevin Miller : > > Yes, the attacker returned again and used a different vector to achieve > the very same task. We responded within minutes and were able to stop the > attack fairly rapidly. Mostly things have been restored, if you?re not > back to normal let us know through the usual channels. > > Kind regards, > > Kevin > > Kevin Miller ~ kevin at livecode.com ~ http://www.livecode.com/ > LiveCode: Everyone can create apps > > > > > On 18/01/2016 18:51, "use-livecode on behalf of Jim Lambert" > wrote: > >> Matthias, >> >> It is not just your account. I can confirm that the TIO index files have >> been overwritten on my account too. >> >> 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 jacque at hyperactivesw.com Mon Jan 18 15:37:16 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 18 Jan 2016 14:37:16 -0600 Subject: [On-Rev] TIO: again all index files were overwritten In-Reply-To: References: Message-ID: <569D4CFC.3070205@hyperactivesw.com> On 1/18/2016 12:51 PM, Jim Lambert wrote: > Matthias, > > It is not just your account. I can confirm that the TIO index files > have been overwritten on my account too. Odd. I'm on Tio and my index files are fine, just as they were the last time this happened. It sounds like there's some kind of malware that only targets web pages that contain something that mine don't. My pages are fairly inert with nothing but a few links and no interactive scripts. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From kevin at livecode.com Mon Jan 18 15:42:23 2016 From: kevin at livecode.com (Kevin Miller) Date: Mon, 18 Jan 2016 20:42:23 +0000 Subject: [On-Rev] TIO: again all index files were overwritten In-Reply-To: <4B592614-DF52-4F32-9349-181606D515BF@m-r-d.de> References: <4B592614-DF52-4F32-9349-181606D515BF@m-r-d.de> Message-ID: Its been a fairly concerted attack, we?ve been stretched dealing with it. To my knowledge we were on top of the tickets today, I will follow up with David again now. Kind regards, Kevin Kevin Miller ~ kevin at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps On 18/01/2016 20:16, "use-livecode on behalf of Matthias Rebbe | M-R-D" wrote: >Kevin, > >the index files have a changed date 17.01.2016 7:00 GMT+1. That was >yesterday. >When were the things restored? I informed support today morning by >emergency request at 08:15 GMT+1. >Did not hear back from support. So i phoned Heather at 10:00GMT+1. >But nothing changed. Until now i did NOT get an answer to my emergency >request. 11 hours later ! ! ! >And my data is still broken. Btw. that?s the 2nd time that i have to >restore it on my own. The last time i had also to restore the data on my >own. because there was a problem with your backup. > >And why is no one able to inform customers about this incident, so the >customers can check if their data is broken or not? > >Matthias > > > > >> Am 18.01.2016 um 21:00 schrieb Kevin Miller : >> >> Yes, the attacker returned again and used a different vector to achieve >> the very same task. We responded within minutes and were able to stop >>the >> attack fairly rapidly. Mostly things have been restored, if you?re not >> back to normal let us know through the usual channels. >> >> Kind regards, >> >> Kevin >> >> Kevin Miller ~ kevin at livecode.com ~ http://www.livecode.com/ >> LiveCode: Everyone can create apps >> >> >> >> >> On 18/01/2016 18:51, "use-livecode on behalf of Jim Lambert" >> >>wrote: >> >>> Matthias, >>> >>> It is not just your account. I can confirm that the TIO index files >>>have >>> been overwritten on my account too. >>> >>> 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 matthias_livecode_150811 at m-r-d.de Mon Jan 18 15:48:12 2016 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe | M-R-D) Date: Mon, 18 Jan 2016 21:48:12 +0100 Subject: [On-Rev] TIO: again all index files were overwritten In-Reply-To: <569D4CFC.3070205@hyperactivesw.com> References: <569D4CFC.3070205@hyperactivesw.com> Message-ID: On my tio accounter there were 2 sites. One created with Rapidweaver and one with Website X5 if i remember right. Nothing special. No lc scripting. Just standard. Nevertheless the accounts were affected and much more important they are still not restored. And as i wrote in an other email in this thread. That?s the 2nd time that the sites were not restored. Matthias > Am 18.01.2016 um 21:37 schrieb J. Landman Gay : > > On 1/18/2016 12:51 PM, Jim Lambert wrote: >> Matthias, >> >> It is not just your account. I can confirm that the TIO index files >> have been overwritten on my account too. > > Odd. I'm on Tio and my index files are fine, just as they were the last time this happened. It sounds like there's some kind of malware that only targets web pages that contain something that mine don't. My pages are fairly inert with nothing but a few links and no interactive scripts. > > -- > 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 m.schonewille at economy-x-talk.com Mon Jan 18 15:48:17 2016 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Mon, 18 Jan 2016 21:48:17 +0100 Subject: There is no You in Documentation - yet! In-Reply-To: References: Message-ID: <569D4F91.5020308@economy-x-talk.com> Do you mean the comments at the bottom of each docs entry? I think this system broke a long time ago. Kind regards, Mark Schonewille http://economy-x-talk.com https://www.facebook.com/marksch Buy the most extensive book on the LiveCode language: http://livecodebeginner.economy-x-talk.com Op 1/18/2016 om 18:05 schreef Mike Kerner: > Given how submissions to the documentation, previously, seemed to be > ignored, it will be a welcome change. > From matthias_livecode_150811 at m-r-d.de Mon Jan 18 15:49:20 2016 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe | M-R-D) Date: Mon, 18 Jan 2016 21:49:20 +0100 Subject: [On-Rev] TIO: again all index files were overwritten In-Reply-To: References: <4B592614-DF52-4F32-9349-181606D515BF@m-r-d.de> Message-ID: I sent a new emergency ticket just some minutes ago. > Am 18.01.2016 um 21:42 schrieb Kevin Miller : > > Its been a fairly concerted attack, we?ve been stretched dealing with it. > To my knowledge we were on top of the tickets today, I will follow up with > David again now. > > Kind regards, > > Kevin > > Kevin Miller ~ kevin at livecode.com ~ http://www.livecode.com/ > LiveCode: Everyone can create apps > > > > > On 18/01/2016 20:16, "use-livecode on behalf of Matthias Rebbe | M-R-D" > matthias_livecode_150811 at m-r-d.de> wrote: > >> Kevin, >> >> the index files have a changed date 17.01.2016 7:00 GMT+1. That was >> yesterday. >> When were the things restored? I informed support today morning by >> emergency request at 08:15 GMT+1. >> Did not hear back from support. So i phoned Heather at 10:00GMT+1. >> But nothing changed. Until now i did NOT get an answer to my emergency >> request. 11 hours later ! ! ! >> And my data is still broken. Btw. that?s the 2nd time that i have to >> restore it on my own. The last time i had also to restore the data on my >> own. because there was a problem with your backup. >> >> And why is no one able to inform customers about this incident, so the >> customers can check if their data is broken or not? >> >> Matthias >> >> >> >> >>> Am 18.01.2016 um 21:00 schrieb Kevin Miller : >>> >>> Yes, the attacker returned again and used a different vector to achieve >>> the very same task. We responded within minutes and were able to stop >>> the >>> attack fairly rapidly. Mostly things have been restored, if you?re not >>> back to normal let us know through the usual channels. >>> >>> Kind regards, >>> >>> Kevin >>> >>> Kevin Miller ~ kevin at livecode.com ~ http://www.livecode.com/ >>> LiveCode: Everyone can create apps >>> >>> >>> >>> >>> On 18/01/2016 18:51, "use-livecode on behalf of Jim Lambert" >>> >>> wrote: >>> >>>> Matthias, >>>> >>>> It is not just your account. I can confirm that the TIO index files >>>> have >>>> been overwritten on my account too. >>>> >>>> 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 > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mon Jan 18 16:06:47 2016 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe | M-R-D) Date: Mon, 18 Jan 2016 22:06:47 +0100 Subject: [On-Rev] TIO: again all index files were overwritten In-Reply-To: References: <4B592614-DF52-4F32-9349-181606D515BF@m-r-d.de> Message-ID: Just received an answer. It is not possible to restore my account from the backup. :( > Am 18.01.2016 um 21:49 schrieb Matthias Rebbe | M-R-D : > > I sent a new emergency ticket just some minutes ago. > > > >> Am 18.01.2016 um 21:42 schrieb Kevin Miller : >> >> Its been a fairly concerted attack, we?ve been stretched dealing with it. >> To my knowledge we were on top of the tickets today, I will follow up with >> David again now. >> >> Kind regards, >> >> Kevin >> >> Kevin Miller ~ kevin at livecode.com ~ http://www.livecode.com/ >> LiveCode: Everyone can create apps >> >> >> >> >> On 18/01/2016 20:16, "use-livecode on behalf of Matthias Rebbe | M-R-D" >> > matthias_livecode_150811 at m-r-d.de> wrote: >> >>> Kevin, >>> >>> the index files have a changed date 17.01.2016 7:00 GMT+1. That was >>> yesterday. >>> When were the things restored? I informed support today morning by >>> emergency request at 08:15 GMT+1. >>> Did not hear back from support. So i phoned Heather at 10:00GMT+1. >>> But nothing changed. Until now i did NOT get an answer to my emergency >>> request. 11 hours later ! ! ! >>> And my data is still broken. Btw. that?s the 2nd time that i have to >>> restore it on my own. The last time i had also to restore the data on my >>> own. because there was a problem with your backup. >>> >>> And why is no one able to inform customers about this incident, so the >>> customers can check if their data is broken or not? >>> >>> Matthias >>> >>> >>> >>> >>>> Am 18.01.2016 um 21:00 schrieb Kevin Miller : >>>> >>>> Yes, the attacker returned again and used a different vector to achieve >>>> the very same task. We responded within minutes and were able to stop >>>> the >>>> attack fairly rapidly. Mostly things have been restored, if you?re not >>>> back to normal let us know through the usual channels. >>>> >>>> Kind regards, >>>> >>>> Kevin >>>> >>>> Kevin Miller ~ kevin at livecode.com ~ http://www.livecode.com/ >>>> LiveCode: Everyone can create apps >>>> >>>> >>>> >>>> >>>> On 18/01/2016 18:51, "use-livecode on behalf of Jim Lambert" >>>> >>>> wrote: >>>> >>>>> Matthias, >>>>> >>>>> It is not just your account. I can confirm that the TIO index files >>>>> have >>>>> been overwritten on my account too. >>>>> >>>>> 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 >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 klaus at major-k.de Mon Jan 18 14:50:52 2016 From: klaus at major-k.de (Klaus major-k) Date: Mon, 18 Jan 2016 20:50:52 +0100 Subject: Running Processes in the background In-Reply-To: <008b01d15222$a7a32e30$f6e98a90$@net> References: <004501d15202$e8ecf2b0$bac6d810$@net> <008b01d15222$a7a32e30$f6e98a90$@net> Message-ID: <6AD66DE2-A211-4354-AFE5-FC8C5B8F99F7@major-k.de> Am 18.01.2016 um 20:01 schrieb Ralph DiMola : > > Enclose tTest in quotes in the send otherwise it is looking for the variable > tTest. > > send "tTest" to me in 1 minute > > 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 Glen Bojsza > Sent: Monday, January 18, 2016 12:20 PM > To: How to use LiveCode > Subject: Re: Running Processes in the background > > Hi Ralph, > > I tried an example outlined by you and I keep getting en error where it > can't find the handler? > > *on* mouseUp > *put* 1 into x > *set* the stimer of this stack to "false" > *send* tTest to me in 1 minute # this is where the first error occurs? ## ?minute? is unknown to the engine, use "60 secs? instead :-) > *repeat* for 30 times > *if* the stimer of this stack is true *then* > *put* "reached goal" into fld counter > *else* > *put* x + 6 into x > *put* x into fld counter > *wait* for 1 second > *end* *if* > *end* *repeat* > *end* mouseUp > > *on* tTest > *put* "made it to tTest with x = " & x & cr > *send* tTest to me in 1 minutes > *end* tTest Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From mwieder at ahsoftware.net Mon Jan 18 16:34:15 2016 From: mwieder at ahsoftware.net (Mark Wieder) Date: Mon, 18 Jan 2016 13:34:15 -0800 Subject: There is no You in Documentation - yet! In-Reply-To: <569D3D16.8020001@fourthworld.com> References: <569D3D16.8020001@fourthworld.com> Message-ID: <569D5A57.40900@ahsoftware.net> On 01/18/2016 11:29 AM, Richard Gaskin wrote: > Mike Kerner wrote: > > Given how submissions to the documentation, previously, seemed to be > > ignored, it will be a welcome change. > > If you would please provide URLs for the documentation-related bug > reports and/or pull requests you've submitted I'll review them to see if > if I can determine why they weren't acted on sooner. > How about this one? http://quality.livecode.com/show_bug.cgi?id=8101 http://quality.livecode.com/show_bug.cgi?id=162 or this one? http://quality.livecode.com/show_bug.cgi?id=9628 http://quality.livecode.com/show_bug.cgi?id=10798 Or http://quality.livecode.com/show_bug.cgi?id=2961 Or (Re-assigning to engine team for future re-assignment.) http://quality.livecode.com/show_bug.cgi?id=799 http://quality.livecode.com/show_bug.cgi?id=1844 -- Mark Wieder ahsoftware at gmail.com From gbojsza at gmail.com Mon Jan 18 16:46:17 2016 From: gbojsza at gmail.com (Glen Bojsza) Date: Mon, 18 Jan 2016 16:46:17 -0500 Subject: Running Processes in the background In-Reply-To: <6AD66DE2-A211-4354-AFE5-FC8C5B8F99F7@major-k.de> References: <004501d15202$e8ecf2b0$bac6d810$@net> <008b01d15222$a7a32e30$f6e98a90$@net> <6AD66DE2-A211-4354-AFE5-FC8C5B8F99F7@major-k.de> Message-ID: Yes changing the time worked! thanks On Mon, Jan 18, 2016 at 2:50 PM, Klaus major-k wrote: > Am 18.01.2016 um 20:01 schrieb Ralph DiMola : > > > > Enclose tTest in quotes in the send otherwise it is looking for the > variable > > tTest. > > > > send "tTest" to me in 1 minute > > > > 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 Glen Bojsza > > Sent: Monday, January 18, 2016 12:20 PM > > To: How to use LiveCode > > Subject: Re: Running Processes in the background > > > > Hi Ralph, > > > > I tried an example outlined by you and I keep getting en error where it > > can't find the handler? > > > > *on* mouseUp > > *put* 1 into x > > *set* the stimer of this stack to "false" > > *send* tTest to me in 1 minute > # this is where the first error occurs? > ## ?minute? is unknown to the engine, use "60 secs? instead :-) > > > *repeat* for 30 times > > *if* the stimer of this stack is true *then* > > *put* "reached goal" into fld counter > > *else* > > *put* x + 6 into x > > *put* x into fld counter > > *wait* for 1 second > > *end* *if* > > *end* *repeat* > > *end* mouseUp > > > > *on* tTest > > *put* "made it to tTest with x = " & x & cr > > *send* tTest to me in 1 minutes > > *end* tTest > > 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 rdimola at evergreeninfo.net Mon Jan 18 16:58:00 2016 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Mon, 18 Jan 2016 16:58:00 -0500 Subject: Running Processes in the background In-Reply-To: References: <004501d15202$e8ecf2b0$bac6d810$@net> <008b01d15222$a7a32e30$f6e98a90$@net> <6AD66DE2-A211-4354-AFE5-FC8C5B8F99F7@major-k.de> Message-ID: <002c01d1523b$4c65e7b0$e531b710$@net> Woops.. Thanks Klaus. Glen, Shout out if you need any other help! 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 Glen Bojsza Sent: Monday, January 18, 2016 4:46 PM To: How to use LiveCode Subject: Re: Running Processes in the background Yes changing the time worked! thanks On Mon, Jan 18, 2016 at 2:50 PM, Klaus major-k wrote: > Am 18.01.2016 um 20:01 schrieb Ralph DiMola : > > > > Enclose tTest in quotes in the send otherwise it is looking for the > variable > > tTest. > > > > send "tTest" to me in 1 minute > > > > 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 Glen Bojsza > > Sent: Monday, January 18, 2016 12:20 PM > > To: How to use LiveCode > > Subject: Re: Running Processes in the background > > > > Hi Ralph, > > > > I tried an example outlined by you and I keep getting en error where > > it can't find the handler? > > > > *on* mouseUp > > *put* 1 into x > > *set* the stimer of this stack to "false" > > *send* tTest to me in 1 minute > # this is where the first error occurs? > ## ?minute? is unknown to the engine, use "60 secs? instead :-) > > > *repeat* for 30 times > > *if* the stimer of this stack is true *then* > > *put* "reached goal" into fld counter > > *else* > > *put* x + 6 into x > > *put* x into fld counter > > *wait* for 1 second > > *end* *if* > > *end* *repeat* > > *end* mouseUp > > > > *on* tTest > > *put* "made it to tTest with x = " & x & cr > > *send* tTest to me in 1 minutes > > *end* tTest > > 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 > _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From ali.lloyd at livecode.com Mon Jan 18 17:33:51 2016 From: ali.lloyd at livecode.com (Ali Lloyd) Date: Mon, 18 Jan 2016 22:33:51 +0000 Subject: There is no You in Documentation - yet! In-Reply-To: <569D5A57.40900@ahsoftware.net> References: <569D3D16.8020001@fourthworld.com> <569D5A57.40900@ahsoftware.net> Message-ID: "submissions to the documentation" On Mon, Jan 18, 2016 at 9:34 PM Mark Wieder wrote: > On 01/18/2016 11:29 AM, Richard Gaskin wrote: > > Mike Kerner wrote: > > > Given how submissions to the documentation, previously, seemed to be > > > ignored, it will be a welcome change. > > > > If you would please provide URLs for the documentation-related bug > > reports and/or pull requests you've submitted I'll review them to see if > > if I can determine why they weren't acted on sooner. > > > > How about this one? > > http://quality.livecode.com/show_bug.cgi?id=8101 > http://quality.livecode.com/show_bug.cgi?id=162 > > or this one? > > http://quality.livecode.com/show_bug.cgi?id=9628 > http://quality.livecode.com/show_bug.cgi?id=10798 > > Or > http://quality.livecode.com/show_bug.cgi?id=2961 > > Or (Re-assigning to engine team for future re-assignment.) > http://quality.livecode.com/show_bug.cgi?id=799 > > > http://quality.livecode.com/show_bug.cgi?id=1844 > > -- > Mark Wieder > ahsoftware at gmail.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 Mon Jan 18 18:03:07 2016 From: mwieder at ahsoftware.net (Mark Wieder) Date: Mon, 18 Jan 2016 15:03:07 -0800 Subject: There is no You in Documentation - yet! In-Reply-To: References: <569D3D16.8020001@fourthworld.com> <569D5A57.40900@ahsoftware.net> Message-ID: <569D6F2B.7030105@ahsoftware.net> On 01/18/2016 02:33 PM, Ali Lloyd wrote: > "submissions to the documentation" Oh, right... :P ...and I suppose in your universe it makes sense to read the blog post *first* before posting a response. -- Mark Wieder ahsoftware at gmail.com From ali.lloyd at livecode.com Mon Jan 18 18:10:24 2016 From: ali.lloyd at livecode.com (Ali Lloyd) Date: Mon, 18 Jan 2016 23:10:24 +0000 Subject: There is no You in Documentation - yet! In-Reply-To: References: <569D3D16.8020001@fourthworld.com> <569D5A57.40900@ahsoftware.net> Message-ID: >From the looks of things we've fixed about half of the documentation bugs reported in the last year against 6.7 / 7.0 / 8.0. One of the reasons documentation bugs were in the past not getting fixed as often as everyone would like, as I suggest in the blog post, is that it was something of a faff to alter the XML files, and the system was fairly fragile - a slight error in reference number, for example, could cause a subsequent installer build to fail. So yes, part of the reason for changing the format was so it would be easier for *us* to fix docs bugs without breaking things. We could probably drop everything and fix every outstanding documentation bug in a couple of weeks. I must admit that a part of my reluctance to hammer them out is simply because some of them *are* such low-hanging fruit, and therefore represent a very convenient gateway to attract contributions. Obviously the ideal from our point of view is that lots of these things are taken care of by community members, allowing us to keep our attention on larger, longer term projects. So the motivation for changing the docs format, and (speaking for myself here) part of the motivation for not fixing every little docs bug, is encouraging people to contribute to LiveCode. Much has been made in the past of the parts of LiveCode that were not available to contribute to. The effort to rectify that is still ongoing (2015 merged IDE PRs with keyword 'scriptify' https://github.com/livecode/livecode-ide/pulls?utf8=%E2%9C%93&q=is%3Apr+scriptify+is%3Amerged). Despite this, we have had very few contributions over all. Now I'm not blaming anyone for this, it's a difficulty faced by anything 'going open source', as it requires a culture shift both in the user base and the staff. > I'm referring to the documentation stack. Mike, could you please clarify what you mean by submissions to the documentation stack being ignored? On Mon, Jan 18, 2016 at 10:33 PM Ali Lloyd wrote: > "submissions to the documentation" > > > On Mon, Jan 18, 2016 at 9:34 PM Mark Wieder > wrote: > >> On 01/18/2016 11:29 AM, Richard Gaskin wrote: >> > Mike Kerner wrote: >> > > Given how submissions to the documentation, previously, seemed to be >> > > ignored, it will be a welcome change. >> > >> > If you would please provide URLs for the documentation-related bug >> > reports and/or pull requests you've submitted I'll review them to see if >> > if I can determine why they weren't acted on sooner. >> > >> >> How about this one? >> >> http://quality.livecode.com/show_bug.cgi?id=8101 >> http://quality.livecode.com/show_bug.cgi?id=162 >> >> or this one? >> >> http://quality.livecode.com/show_bug.cgi?id=9628 >> http://quality.livecode.com/show_bug.cgi?id=10798 >> >> Or >> http://quality.livecode.com/show_bug.cgi?id=2961 >> >> Or (Re-assigning to engine team for future re-assignment.) >> http://quality.livecode.com/show_bug.cgi?id=799 >> >> >> http://quality.livecode.com/show_bug.cgi?id=1844 >> >> -- >> Mark Wieder >> ahsoftware at gmail.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 jiml at netrin.com Mon Jan 18 18:11:24 2016 From: jiml at netrin.com (Jim Lambert) Date: Mon, 18 Jan 2016 15:11:24 -0800 Subject: [On-Rev] TIO: again all index files were overwritten In-Reply-To: References: Message-ID: > Matthias wrote: > the index files have a changed date 17.01.2016 7:00 GMT+1. That was yesterday. If it?s of any help, in my account it appears that all files with ?index? in the name were changed on the 16th of January. What a strange kind of attack. I appreciate the team?s work to correct and prevent. Thanks, Jim Lambert From hechris at ziggo.nl Mon Jan 18 18:24:47 2016 From: hechris at ziggo.nl (Chris Heidecker) Date: Tue, 19 Jan 2016 00:24:47 +0100 Subject: [On-Rev] TIO: again all index files were overwritten In-Reply-To: References: <4B592614-DF52-4F32-9349-181606D515BF@m-r-d.de> Message-ID: I sent a supportrequest 12 days ago, no emergency, no response. Restored from backup myself last week. All indexfiles are gone again today. Chris Heidecker > Op 18 jan. 2016, om 22:06 heeft Matthias Rebbe | M-R-D het volgende geschreven: > > Just received an answer. It is not possible to restore my account from the backup. :( > > > >> Am 18.01.2016 um 21:49 schrieb Matthias Rebbe | M-R-D : >> >> I sent a new emergency ticket just some minutes ago. >> >> >> >>> Am 18.01.2016 um 21:42 schrieb Kevin Miller : >>> >>> Its been a fairly concerted attack, we?ve been stretched dealing with it. >>> To my knowledge we were on top of the tickets today, I will follow up with >>> David again now. >>> >>> Kind regards, >>> >>> Kevin >>> >>> Kevin Miller ~ kevin at livecode.com ~ http://www.livecode.com/ >>> LiveCode: Everyone can create apps >>> >>> >>> >>> >>> On 18/01/2016 20:16, "use-livecode on behalf of Matthias Rebbe | M-R-D" >>> >> matthias_livecode_150811 at m-r-d.de> wrote: >>> >>>> Kevin, >>>> >>>> the index files have a changed date 17.01.2016 7:00 GMT+1. That was >>>> yesterday. >>>> When were the things restored? I informed support today morning by >>>> emergency request at 08:15 GMT+1. >>>> Did not hear back from support. So i phoned Heather at 10:00GMT+1. >>>> But nothing changed. Until now i did NOT get an answer to my emergency >>>> request. 11 hours later ! ! ! >>>> And my data is still broken. Btw. that?s the 2nd time that i have to >>>> restore it on my own. The last time i had also to restore the data on my >>>> own. because there was a problem with your backup. >>>> >>>> And why is no one able to inform customers about this incident, so the >>>> customers can check if their data is broken or not? >>>> >>>> Matthias >>>> >>>> >>>> >>>> >>>>> Am 18.01.2016 um 21:00 schrieb Kevin Miller : >>>>> >>>>> Yes, the attacker returned again and used a different vector to achieve >>>>> the very same task. We responded within minutes and were able to stop >>>>> the >>>>> attack fairly rapidly. Mostly things have been restored, if you?re not >>>>> back to normal let us know through the usual channels. >>>>> >>>>> Kind regards, >>>>> >>>>> Kevin >>>>> >>>>> Kevin Miller ~ kevin at livecode.com ~ http://www.livecode.com/ >>>>> LiveCode: Everyone can create apps >>>>> >>>>> >>>>> >>>>> >>>>> On 18/01/2016 18:51, "use-livecode on behalf of Jim Lambert" >>>>> >>>>> wrote: >>>>> >>>>>> Matthias, >>>>>> >>>>>> It is not just your account. I can confirm that the TIO index files >>>>>> have >>>>>> been overwritten on my account too. >>>>>> >>>>>> 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 >>> >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode 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 mwieder at ahsoftware.net Mon Jan 18 19:34:19 2016 From: mwieder at ahsoftware.net (Mark Wieder) Date: Mon, 18 Jan 2016 16:34:19 -0800 Subject: There is no You in Documentation - yet! In-Reply-To: References: <569D3D16.8020001@fourthworld.com> <569D5A57.40900@ahsoftware.net> Message-ID: <569D848B.7030309@ahsoftware.net> On 01/18/2016 03:10 PM, Ali Lloyd wrote: >>From the looks of things we've fixed about half of the documentation bugs > reported in the last year against 6.7 / 7.0 / 8.0. One of the reasons > documentation bugs were in the past not getting fixed as often as everyone > would like, as I suggest in the blog post, is that it was something of a > faff to alter the XML files, and the system was fairly fragile - a slight > error in reference number, for example, could cause a subsequent installer > build to fail. So yes, part of the reason for changing the format was so it > would be easier for *us* to fix docs bugs without breaking things. Agreed. One of the reasons I've been a bit hesitant to submit pull requests for features is that creating the doc files has been a pain, undocumented, and the only editing tool is outdated, incomplete, and buggy (did I miss anything?). The new format is a breath of fresh air... or in my part of the world, rain after a long drought. -- Mark Wieder ahsoftware at gmail.com From m.schonewille at economy-x-talk.com Mon Jan 18 19:46:10 2016 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Tue, 19 Jan 2016 01:46:10 +0100 Subject: Forcing an android app to quit when the 'home' button is clicked? In-Reply-To: References: Message-ID: <569D8752.2070506@economy-x-talk.com> Terry, Reading the docs, I'd say the following should be possible: on backKey quit end backKey Kind regards, Mark Schonewille http://economy-x-talk.com https://www.facebook.com/marksch Buy the most extensive book on the LiveCode language: http://livecodebeginner.economy-x-talk.com Op 1/18/2016 om 03:30 schreef Terry Judd: > On iOS the fact that a LC app routinely quits when the home button is clicked can be a pain but in the case of the app I?m currently developing I actually want this to occur. Anyway, I?m covered on iOS but how do I make the app quit when the user leaves it on an android device, or is this not possible? > > Terry? > > Terry Judd | Senior Lecturer in Medical Education > Department of Medical Education > The University of Melbourne > M: 0435 961 594 | E: terry.judd at unimelb.edu.au > Publications > From rdimola at evergreeninfo.net Mon Jan 18 19:59:04 2016 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Mon, 18 Jan 2016 19:59:04 -0500 Subject: Forcing an android app to quit when the 'home' button is clicked? In-Reply-To: <569D8752.2070506@economy-x-talk.com> References: <569D8752.2070506@economy-x-talk.com> Message-ID: <003101d15254$97fa0350$c7ee09f0$@net> That will work if the user hits the back key but if they hit the home button not so much. I leave my app open but I think remember some thread that mentioned the engine sends a message when the app is de-focused. Can't remember what it was. I believe it was suspendStack and resumeStack 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 Mark Schonewille Sent: Monday, January 18, 2016 7:46 PM To: How to use LiveCode Subject: Re: Forcing an android app to quit when the 'home' button is clicked? Terry, Reading the docs, I'd say the following should be possible: on backKey quit end backKey Kind regards, Mark Schonewille http://economy-x-talk.com https://www.facebook.com/marksch Buy the most extensive book on the LiveCode language: http://livecodebeginner.economy-x-talk.com Op 1/18/2016 om 03:30 schreef Terry Judd: > On iOS the fact that a LC app routinely quits when the home button is clicked can be a pain but in the case of the app I'm currently developing I actually want this to occur. Anyway, I'm covered on iOS but how do I make the app quit when the user leaves it on an android device, or is this not possible? > > Terry. > > Terry Judd | Senior Lecturer in Medical Education Department of > Medical Education > The University of Melbourne > M: 0435 961 594 | E: > terry.judd at unimelb.edu.au > Publications &hl=en> > _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From terry.judd at unimelb.edu.au Mon Jan 18 21:54:45 2016 From: terry.judd at unimelb.edu.au (Terry Judd) Date: Tue, 19 Jan 2016 02:54:45 +0000 Subject: Forcing an android app to quit when the 'home' button is clicked? In-Reply-To: <003101d15254$97fa0350$c7ee09f0$@net> References: <569D8752.2070506@economy-x-talk.com> <003101d15254$97fa0350$c7ee09f0$@net> Message-ID: Yeh - the back and menu keys trigger messages but not the home key. It hadn?t occurred to me to try suspendStack - I?ll give that a whirl. Thanks Ralph. Terry... On 19/01/2016 11:59 am, "use-livecode on behalf of Ralph DiMola" wrote: >That will work if the user hits the back key but if they hit the home >button >not so much. I leave my app open but I think remember some thread that >mentioned the engine sends a message when the app is de-focused. Can't >remember what it was. I believe it was suspendStack and resumeStack > >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 Mark Schonewille >Sent: Monday, January 18, 2016 7:46 PM >To: How to use LiveCode >Subject: Re: Forcing an android app to quit when the 'home' button is >clicked? > >Terry, > >Reading the docs, I'd say the following should be possible: > >on backKey > quit >end backKey > >Kind regards, > >Mark Schonewille >http://economy-x-talk.com >https://www.facebook.com/marksch > >Buy the most extensive book on the >LiveCode language: >http://livecodebeginner.economy-x-talk.com > >Op 1/18/2016 om 03:30 schreef Terry Judd: >> On iOS the fact that a LC app routinely quits when the home button is >clicked can be a pain but in the case of the app I'm currently developing >I >actually want this to occur. Anyway, I'm covered on iOS but how do I make >the app quit when the user leaves it on an android device, or is this not >possible? >> >> Terry. >> >> Terry Judd | Senior Lecturer in Medical Education Department of >> Medical Education >> The University of Melbourne >> M: 0435 961 594 | E: >> terry.judd at unimelb.edu.au >> Publications> &hl=en> >> > >_______________________________________________ >use-livecode mailing list >use-livecode 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 19 01:04:16 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 19 Jan 2016 00:04:16 -0600 Subject: Forcing an android app to quit when the 'home' button is clicked? In-Reply-To: References: <569D8752.2070506@economy-x-talk.com> <003101d15254$97fa0350$c7ee09f0$@net> Message-ID: <569DD1E0.1000604@hyperactivesw.com> On 1/18/2016 8:54 PM, Terry Judd wrote: > Yeh - the back and menu keys trigger messages but not the home key. It > hadn?t occurred to me to try suspendStack - I?ll give that a whirl. I don't think any messages are sent at all when the Home key is pressed. Ralph may be thinking of the "shutdown" message which is sent when you issue the "quit" command, but that doesn't happen when the Home key is pressed because the app doesn't quit, it keeps running in the background until Android needs the memory. The app should save its state on every significant change because you never know when the OS will shut it down. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From terry.judd at unimelb.edu.au Tue Jan 19 01:54:12 2016 From: terry.judd at unimelb.edu.au (Terry Judd) Date: Tue, 19 Jan 2016 06:54:12 +0000 Subject: Forcing an android app to quit when the 'home' button is clicked? In-Reply-To: <569DD1E0.1000604@hyperactivesw.com> References: <569D8752.2070506@economy-x-talk.com> <003101d15254$97fa0350$c7ee09f0$@net> <569DD1E0.1000604@hyperactivesw.com> Message-ID: Thanks Jacquie - you?re right, suspendStack doesn?t seem to be supported by either iOS or Android so no joy there. I wanted the app to quit when the user navigated away from it because I have a routine that attempts to sync files that have been saved but not uploaded each time the app starts up. If the app stays running then that sync script doesn?t run. I can work around this but it would be nice to know when the app loses focus. Terry... On 19/01/2016 5:04 pm, "use-livecode on behalf of J. Landman Gay" wrote: >On 1/18/2016 8:54 PM, Terry Judd wrote: >> Yeh - the back and menu keys trigger messages but not the home key. It >> hadn?t occurred to me to try suspendStack - I?ll give that a whirl. > >I don't think any messages are sent at all when the Home key is pressed. >Ralph may be thinking of the "shutdown" message which is sent when you >issue the "quit" command, but that doesn't happen when the Home key is >pressed because the app doesn't quit, it keeps running in the background >until Android needs the memory. > >The app should save its state on every significant change because you >never know when the OS will shut it down. > >-- >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 peter.brett at livecode.com Tue Jan 19 04:28:01 2016 From: peter.brett at livecode.com (Peter TB Brett) Date: Tue, 19 Jan 2016 09:28:01 +0000 Subject: iOS Safari View Controller In-Reply-To: <1452565126342-4700105.post@n4.nabble.com> References: <1452550397286-4700085.post@n4.nabble.com> <7BA39750-EAB7-4647-8354-7643FC2D3244@appisle.net> <1452562367938-4700103.post@n4.nabble.com> <1452565126342-4700105.post@n4.nabble.com> Message-ID: <569E01A1.7060105@livecode.com> On 12/01/2016 02:18, hlowe wrote: > OK, on further investigation the "launch url pAppURL" call is actually > launching Safari and suspending my App. Returning to my app from the Safari > Web view causes my app's splash screen to appear (as it is relaunched by > iOS). It would be MUCH nicer to be able to open a Safari View within LC. As > Monte says it should be trivial to implement. Trivial? Oh, excellent! I am looking forward to reading the patches. You can easily submit them here: https://github.com/livecode/livecode/pulls Peter -- Dr Peter Brett LiveCode Open Source Team LiveCode on reddit: https://reddit.com/r/livecode From monte at appisle.net Tue Jan 19 04:54:49 2016 From: monte at appisle.net (Monte Goulding) Date: Tue, 19 Jan 2016 20:54:49 +1100 Subject: iOS Safari View Controller In-Reply-To: <569E01A1.7060105@livecode.com> References: <1452550397286-4700085.post@n4.nabble.com> <7BA39750-EAB7-4647-8354-7643FC2D3244@appisle.net> <1452562367938-4700103.post@n4.nabble.com> <1452565126342-4700105.post@n4.nabble.com> <569E01A1.7060105@livecode.com> Message-ID: I wasn't considering adding it to the engine. I don't think I actually said trivial either. I just said it would be a fairly simple external to write. I've written lots of externals that present view controllers though so "simple" is probably just a function of relevant experience with the required hair pulling already done. Sent from my iPhone > On 19 Jan 2016, at 8:28 PM, Peter TB Brett wrote: > > Trivial? Oh, excellent! I am looking forward to reading the patches. You can easily submit them here: https://github.com/livecode/livecode/pulls From peter.brett at livecode.com Tue Jan 19 06:27:34 2016 From: peter.brett at livecode.com (Peter TB Brett) Date: Tue, 19 Jan 2016 11:27:34 +0000 Subject: iOS Safari View Controller In-Reply-To: References: <1452550397286-4700085.post@n4.nabble.com> <7BA39750-EAB7-4647-8354-7643FC2D3244@appisle.net> <1452562367938-4700103.post@n4.nabble.com> <1452565126342-4700105.post@n4.nabble.com> <569E01A1.7060105@livecode.com> Message-ID: <569E1DA6.7060506@livecode.com> On 19/01/2016 09:54, Monte Goulding wrote: > I wasn't considering adding it to the engine. I don't think I actually said trivial either. I just said it would be a fairly simple external to write. I've written lots of externals that present view controllers though so "simple" is probably just a function of relevant experience with the required hair pulling already done. Ah, okay then. I think I misunderstood what Henry was saying. Apologies! Peter -- Dr Peter Brett LiveCode Open Source Team LiveCode on reddit: https://reddit.com/r/livecode From mail at richard-hillen.de Tue Jan 19 07:16:55 2016 From: mail at richard-hillen.de (Hillen Richard) Date: Tue, 19 Jan 2016 13:16:55 +0100 Subject: Image Scaling Problem Message-ID: <8D4AE53B-D76C-4BE4-9043-429B30F190D3@richard-hillen.de> Hello List, I just imported a 500x500px image as control into a stack, resized it using its handles to about 100 x 100 px, saved the stack and closed livecode. After restarting livecode and reopening the stack the size of the image was again 500 x 500px. What may I do to make the scaling permanent? (Mac OS X 10.11.2, LiveCode 6.7.8) Thank You in Advance, Richard From tore.nilsen at me.com Tue Jan 19 07:19:16 2016 From: tore.nilsen at me.com (Tore Nilsen) Date: Tue, 19 Jan 2016 13:19:16 +0100 Subject: Image Scaling Problem In-Reply-To: <8D4AE53B-D76C-4BE4-9043-429B30F190D3@richard-hillen.de> References: <8D4AE53B-D76C-4BE4-9043-429B30F190D3@richard-hillen.de> Message-ID: In the Property Inspector, set the "Lock size and position" to true in the Size & Position panel Tore > 19. jan. 2016 kl. 13.16 skrev Hillen Richard : > > Hello List, > > I just imported a 500x500px image as control into a stack, resized it using its handles to about 100 x 100 px, saved the stack and closed livecode. > After restarting livecode and reopening the stack the size of the image was again 500 x 500px. > What may I do to make the scaling permanent? > > > (Mac OS X 10.11.2, LiveCode 6.7.8) > > Thank You in Advance, > Richard > _______________________________________________ > use-livecode mailing list > use-livecode at 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 19 07:19:55 2016 From: klaus at major-k.de (Klaus major-k) Date: Tue, 19 Jan 2016 13:19:55 +0100 Subject: Image Scaling Problem In-Reply-To: <8D4AE53B-D76C-4BE4-9043-429B30F190D3@richard-hillen.de> References: <8D4AE53B-D76C-4BE4-9043-429B30F190D3@richard-hillen.de> Message-ID: Hi Richard, > Am 19.01.2016 um 13:16 schrieb Hillen Richard : > > Hello List, > > I just imported a 500x500px image as control into a stack, resized it using its handles to about 100 x 100 px, saved the stack and closed livecode. > After restarting livecode and reopening the stack the size of the image was again 500 x 500px. > What may I do to make the scaling permanent? in the inspector for that image check ?lockloc? (Lock size and location)! Or via script: ? set the lockloc of img XYZ to true ... > (Mac OS X 10.11.2, LiveCode 6.7.8) > > Thank You in Advance, > Richard Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From blueback09 at gmail.com Tue Jan 19 10:27:28 2016 From: blueback09 at gmail.com (Matt Maier) Date: Tue, 19 Jan 2016 07:27:28 -0800 Subject: Image Scaling Problem In-Reply-To: <8D4AE53B-D76C-4BE4-9043-429B30F190D3@richard-hillen.de> References: <8D4AE53B-D76C-4BE4-9043-429B30F190D3@richard-hillen.de> Message-ID: I was just researching around this idea. http://lessons.livecode.com/m/4071/l/7084-how-to-create-a-thumbnail-image This says that if you want to lock the change in by script you have to set its imageData to its imageData set the imagedata of image tImageName to the imagedata of image tImageName On Tue, Jan 19, 2016 at 4:16 AM, Hillen Richard wrote: > Hello List, > > I just imported a 500x500px image as control into a stack, resized it > using its handles to about 100 x 100 px, saved the stack and closed > livecode. > After restarting livecode and reopening the stack the size of the image > was again 500 x 500px. > What may I do to make the scaling permanent? > > > (Mac OS X 10.11.2, LiveCode 6.7.8) > > Thank You in Advance, > Richard > _______________________________________________ > use-livecode mailing list > use-livecode at 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 19 13:06:37 2016 From: richmondmathewson at gmail.com (Richmond) Date: Tue, 19 Jan 2016 20:06:37 +0200 Subject: Image Scaling Problem In-Reply-To: <8D4AE53B-D76C-4BE4-9043-429B30F190D3@richard-hillen.de> References: <8D4AE53B-D76C-4BE4-9043-429B30F190D3@richard-hillen.de> Message-ID: <569E7B2D.3000009@gmail.com> On 19/01/16 14:16, Hillen Richard wrote: > Hello List, > > I just imported a 500x500px image as control into a stack, resized it using its handles to about 100 x 100 px, saved the stack and closed livecode. > After restarting livecode and reopening the stack the size of the image was again 500 x 500px. > What may I do to make the scaling permanent? lock it. Richmond. > > > (Mac OS X 10.11.2, LiveCode 6.7.8) > > Thank You in Advance, > Richard > _______________________________________________ > use-livecode mailing list > use-livecode at 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 19 13:07:56 2016 From: richmondmathewson at gmail.com (Richmond) Date: Tue, 19 Jan 2016 20:07:56 +0200 Subject: Image Scaling Problem In-Reply-To: References: <8D4AE53B-D76C-4BE4-9043-429B30F190D3@richard-hillen.de> Message-ID: <569E7B7C.7030008@gmail.com> On 19/01/16 17:27, Matt Maier wrote: > I was just researching around this idea. > http://lessons.livecode.com/m/4071/l/7084-how-to-create-a-thumbnail-image > This says that if you want to lock the change in by script you have to set > its imageData to its imageData > set the imagedata of image tImageName to the imagedata of image tImageName Nobody ever told me that, and I've been resizing images, locking them and having no further problems since 2001. Richmond. > > On Tue, Jan 19, 2016 at 4:16 AM, Hillen Richard > wrote: > >> Hello List, >> >> I just imported a 500x500px image as control into a stack, resized it >> using its handles to about 100 x 100 px, saved the stack and closed >> livecode. >> After restarting livecode and reopening the stack the size of the image >> was again 500 x 500px. >> What may I do to make the scaling permanent? >> >> >> (Mac OS X 10.11.2, LiveCode 6.7.8) >> >> Thank You in Advance, >> Richard >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 Tue Jan 19 13:24:37 2016 From: mwieder at ahsoftware.net (Mark Wieder) Date: Tue, 19 Jan 2016 10:24:37 -0800 Subject: Image Scaling Problem In-Reply-To: <569E7B7C.7030008@gmail.com> References: <8D4AE53B-D76C-4BE4-9043-429B30F190D3@richard-hillen.de> <569E7B7C.7030008@gmail.com> Message-ID: <569E7F65.6060808@ahsoftware.net> On 01/19/2016 10:07 AM, Richmond wrote: > On 19/01/16 17:27, Matt Maier wrote: >> I was just researching around this idea. >> http://lessons.livecode.com/m/4071/l/7084-how-to-create-a-thumbnail-image >> This says that if you want to lock the change in by script you have to >> set >> its imageData to its imageData >> set the imagedata of image tImageName to the imagedata of image >> tImageName > > Nobody ever told me that, and I've been resizing images, locking them > and having > no further problems since 2001. That's for an entirely different scenario. -- Mark Wieder ahsoftware at gmail.com From richmondmathewson at gmail.com Tue Jan 19 13:33:04 2016 From: richmondmathewson at gmail.com (Richmond) Date: Tue, 19 Jan 2016 20:33:04 +0200 Subject: Image Scaling Problem In-Reply-To: <569E7F65.6060808@ahsoftware.net> References: <8D4AE53B-D76C-4BE4-9043-429B30F190D3@richard-hillen.de> <569E7B7C.7030008@gmail.com> <569E7F65.6060808@ahsoftware.net> Message-ID: <569E8160.60401@gmail.com> On 19/01/16 20:24, Mark Wieder wrote: > On 01/19/2016 10:07 AM, Richmond wrote: >> On 19/01/16 17:27, Matt Maier wrote: >>> I was just researching around this idea. >>> http://lessons.livecode.com/m/4071/l/7084-how-to-create-a-thumbnail-image >>> >>> This says that if you want to lock the change in by script you have to >>> set >>> its imageData to its imageData >>> set the imagedata of image tImageName to the imagedata of image >>> tImageName >> >> Nobody ever told me that, and I've been resizing images, locking them >> and having >> no further problems since 2001. > > That's for an entirely different scenario. > Possibly: Are you stating that if I pop this in my messageBox: set the locked of img "XXX" to true it, somehow, does something 'less' than locking the image via the properties panel? Because, when I did that just now, saved the stack, quit LiveCode, restarted LiveCode, and opened my stack again, the image 'XXX' was still at its resized size. Please, in simple words, explain what the "entirely different scenario" is. Richmond. From hlowe at me.com Tue Jan 19 13:15:50 2016 From: hlowe at me.com (hlowe) Date: Tue, 19 Jan 2016 10:15:50 -0800 (PST) Subject: iOS Safari View Controller In-Reply-To: <569E1DA6.7060506@livecode.com> References: <1452550397286-4700085.post@n4.nabble.com> <7BA39750-EAB7-4647-8354-7643FC2D3244@appisle.net> <1452562367938-4700103.post@n4.nabble.com> <1452565126342-4700105.post@n4.nabble.com> <569E01A1.7060105@livecode.com> <569E1DA6.7060506@livecode.com> Message-ID: <1453227350890-4700310.post@n4.nabble.com> I was referring to Monte's expertise in writing externals as (hopefully) making it easy for him to implement a Safari View Controller as an external. I have no idea what is involved in adding such a feature to the LC engine - though it would be nice. Henry -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/iOS-Safari-View-Controller-tp4700085p4700310.html Sent from the Revolution - User mailing list archive at Nabble.com. From colinholgate at gmail.com Tue Jan 19 14:01:30 2016 From: colinholgate at gmail.com (Colin Holgate) Date: Tue, 19 Jan 2016 14:01:30 -0500 Subject: Image Scaling Problem In-Reply-To: <569E8160.60401@gmail.com> References: <8D4AE53B-D76C-4BE4-9043-429B30F190D3@richard-hillen.de> <569E7B7C.7030008@gmail.com> <569E7F65.6060808@ahsoftware.net> <569E8160.60401@gmail.com> Message-ID: <520D14D8-54C8-44AA-914A-5771010E0CD2@gmail.com> Just my guess about this? If you have a large image and you have resized it to be smaller, and use code or the inspector to lock it, that?s one variation. It could be that you at some point you want to show the image at its original size. If you made it smaller and want to always have it at the smaller size, that?s a different case. Setting the imagedata of the image to the imagedata of the image will permanently resize it. It won?t needing locking to remain at that size. I think the second option is rarely what you would want to do, because the scaling quality isn?t ideal. You would normally import the image at its intended size. From klaus at major-k.de Tue Jan 19 14:11:00 2016 From: klaus at major-k.de (Klaus major-k) Date: Tue, 19 Jan 2016 20:11:00 +0100 Subject: Image Scaling Problem In-Reply-To: <569E8160.60401@gmail.com> References: <8D4AE53B-D76C-4BE4-9043-429B30F190D3@richard-hillen.de> <569E7B7C.7030008@gmail.com> <569E7F65.6060808@ahsoftware.net> <569E8160.60401@gmail.com> Message-ID: <291D729A-8C31-495D-A553-5BB515B8F632@major-k.de> Hi Richmond, > Am 19.01.2016 um 19:33 schrieb Richmond : > On 19/01/16 20:24, Mark Wieder wrote: >> On 01/19/2016 10:07 AM, Richmond wrote: >>> On 19/01/16 17:27, Matt Maier wrote: >>>> I was just researching around this idea. >>>> http://lessons.livecode.com/m/4071/l/7084-how-to-create-a-thumbnail-image >>>> This says that if you want to lock the change in by script you have to >>>> set >>>> its imageData to its imageData >>>> set the imagedata of image tImageName to the imagedata of image >>>> tImageName >>> Nobody ever told me that, and I've been resizing images, locking them >>> and having >>> no further problems since 2001. >> That's for an entirely different scenario. > Possibly: > Are you stating that if I pop this in my messageBox: oh boy? > ## set the locked of img "XXX" to true LOCKLOC! ? set the lockloc of img "XXX" to true ... > it, somehow, does something 'less' than locking the image via > the properties panel? > > Because, when I did that just now, saved the stack, quit LiveCode, restarted LiveCode, > and opened my stack again, the image 'XXX' was still at its resized size. Yes, no surprise, see above? 8-) > Please, in simple words, explain what the "entirely different scenario" is. > > Richmond. Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From blueback09 at gmail.com Tue Jan 19 14:17:05 2016 From: blueback09 at gmail.com (Matt Maier) Date: Tue, 19 Jan 2016 11:17:05 -0800 Subject: Image Scaling Problem In-Reply-To: <291D729A-8C31-495D-A553-5BB515B8F632@major-k.de> References: <8D4AE53B-D76C-4BE4-9043-429B30F190D3@richard-hillen.de> <569E7B7C.7030008@gmail.com> <569E7F65.6060808@ahsoftware.net> <569E8160.60401@gmail.com> <291D729A-8C31-495D-A553-5BB515B8F632@major-k.de> Message-ID: Oh, okay. So if you resize it and then use lockLoc to keep it there what you're seeing is a modification of the original image and if you reverse lockLoc you throw out the modification and go back to the original image. But if you set the imageData to the imageData you overwrite the original image so that all you've got left is the resized image. Is that correct? On Tue, Jan 19, 2016 at 11:11 AM, Klaus major-k wrote: > Hi Richmond, > > > Am 19.01.2016 um 19:33 schrieb Richmond : > > On 19/01/16 20:24, Mark Wieder wrote: > >> On 01/19/2016 10:07 AM, Richmond wrote: > >>> On 19/01/16 17:27, Matt Maier wrote: > >>>> I was just researching around this idea. > >>>> > http://lessons.livecode.com/m/4071/l/7084-how-to-create-a-thumbnail-image > >>>> This says that if you want to lock the change in by script you have to > >>>> set > >>>> its imageData to its imageData > >>>> set the imagedata of image tImageName to the imagedata of image > >>>> tImageName > >>> Nobody ever told me that, and I've been resizing images, locking them > >>> and having > >>> no further problems since 2001. > >> That's for an entirely different scenario. > > Possibly: > > Are you stating that if I pop this in my messageBox: > > oh boy? > > > ## set the locked of img "XXX" to true > > LOCKLOC! > ? > set the lockloc of img "XXX" to true > ... > > > it, somehow, does something 'less' than locking the image via > > the properties panel? > > > > Because, when I did that just now, saved the stack, quit LiveCode, > restarted LiveCode, > > and opened my stack again, the image 'XXX' was still at its resized size. > > Yes, no surprise, see above? 8-) > > > Please, in simple words, explain what the "entirely different scenario" > is. > > > > Richmond. > > 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 scott at tactilemedia.com Tue Jan 19 14:25:56 2016 From: scott at tactilemedia.com (Scott Rossi) Date: Tue, 19 Jan 2016 11:25:56 -0800 Subject: Image Scaling Problem In-Reply-To: References: <8D4AE53B-D76C-4BE4-9043-429B30F190D3@richard-hillen.de> Message-ID: You use the imageData technique when you want to reduce the dimensions AND the filesize of an image (could also be called a "lossy" process because you lose data by using this method). For example, say an 800x600 image runs 2MB. If you reduce the dimensions of the image and lock it, the image still occupies 2MB of memory, and can be restored to its original dimensions when unlocked. The imageData technique is similar to scaling an image in something like Photoshop or GIMP: you are removing imageData, the image will only occupy a few hundred K or less, and cannot be restored to its original size. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 1/19/16, 7:27 AM, "use-livecode on behalf of Matt Maier" wrote: >I was just researching around this idea. >http://lessons.livecode.com/m/4071/l/7084-how-to-create-a-thumbnail-image >This says that if you want to lock the change in by script you have to set >its imageData to its imageData >set the imagedata of image tImageName to the imagedata of image tImageName > >On Tue, Jan 19, 2016 at 4:16 AM, Hillen Richard >wrote: > >> Hello List, >> >> I just imported a 500x500px image as control into a stack, resized it >> using its handles to about 100 x 100 px, saved the stack and closed >> livecode. >> After restarting livecode and reopening the stack the size of the image >> was again 500 x 500px. >> What may I do to make the scaling permanent? >> >> >> (Mac OS X 10.11.2, LiveCode 6.7.8) >> >> Thank You in Advance, >> Richard >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 Tue Jan 19 14:31:07 2016 From: mwieder at ahsoftware.net (Mark Wieder) Date: Tue, 19 Jan 2016 11:31:07 -0800 Subject: Image Scaling Problem In-Reply-To: <569E8160.60401@gmail.com> References: <8D4AE53B-D76C-4BE4-9043-429B30F190D3@richard-hillen.de> <569E7B7C.7030008@gmail.com> <569E7F65.6060808@ahsoftware.net> <569E8160.60401@gmail.com> Message-ID: <569E8EFB.2010003@ahsoftware.net> Resending because the list didn't take this the first time... On 01/19/2016 10:33 AM, Richmond wrote: > Please, in simple words, explain what the "entirely different scenario" is. Well, considering that I wrote that lesson in the first place... There's nothing in that lesson that deals with locking an image. The lesson is about exporting a snapshot, resizing it to a thumbnail size of 32x32 pixels, and placing it in the clipboard for pasting into a stack. Locking the image won't affect the pasted image, so the way you make the size stick is by setting the imagedata. Then when you paste it into a stack you've got the thumbnail image rather than one of the original size. -- Mark Wieder ahsoftware at gmail.com From mwieder at ahsoftware.net Tue Jan 19 13:55:43 2016 From: mwieder at ahsoftware.net (Mark Wieder) Date: Tue, 19 Jan 2016 10:55:43 -0800 Subject: Image Scaling Problem In-Reply-To: <569E8160.60401@gmail.com> References: <8D4AE53B-D76C-4BE4-9043-429B30F190D3@richard-hillen.de> <569E7B7C.7030008@gmail.com> <569E7F65.6060808@ahsoftware.net> <569E8160.60401@gmail.com> Message-ID: <569E86AF.90108@ahsoftware.net> On 01/19/2016 10:33 AM, Richmond wrote: > Please, in simple words, explain what the "entirely different scenario" is. Well, considering that I wrote that lesson in the first place... There's nothing in that lesson that deals with locking an image. The lesson is about exporting a snapshot, resizing it to a thumbnail size of 32x32 pixels, and placing it in the clipboard for pasting into a stack. Locking the image won't affect the pasted image, so the way you make the size stick is by setting the imagedata. Then when you paste it into a stack you've got the thumbnail image rather than one of the original size. -- Mark Wieder ahsoftware at gmail.com From prothero at earthednet.org Tue Jan 19 17:44:41 2016 From: prothero at earthednet.org (William Prothero) Date: Tue, 19 Jan 2016 14:44:41 -0800 Subject: Http Header question Message-ID: <593C3226-5335-474E-B55C-D8148FF96C8F@earthednet.org> Folks: I?m setting up a php sendmail script using phpSendmail and I?m trying to get the file upload for attachments part working. The examples I find are in html and the ?type" is listed as ?file?. Basically, I?m trying to reproduce this, in a ?post? command:
  • Sent file:
  • File size:
  • File type:
I figure it is probably a change in the http header, to get php to recognize the file as an upload, but I don?t know how to do this. Somehow, the php needs to get the filepath that I provide it, but ?.. Any help would be very appreciated. Best, Bill PS: The php in the example I?m trying to duplicate is: 2097152) { $errors[]='File size must be excately 2 MB'; } if(empty($errors)==true) { move_uploaded_file($file_tmp,"images/".$file_name); echo "Success"; }else{ print_r($errors); } } ?> William Prothero, Ph.D. University of California, Santa Barbara, Emeritus prothero at earthednet.org From dcragg at lacscentre.co.uk Tue Jan 19 18:51:31 2016 From: dcragg at lacscentre.co.uk (Dave Cragg) Date: Tue, 19 Jan 2016 23:51:31 +0000 Subject: Http Header question In-Reply-To: <593C3226-5335-474E-B55C-D8148FF96C8F@earthednet.org> References: <593C3226-5335-474E-B55C-D8148FF96C8F@earthednet.org> Message-ID: Bill, Take a look at libUrlMultipartForm and libUrlMultipartFormAddPart in the dictionary. There are examples there that might help you. Cheers Dave Cragg > On 19 Jan 2016, at 22:44, William Prothero wrote: > > Folks: > I?m setting up a php sendmail script using phpSendmail and I?m trying to get the file upload for attachments part working. The examples I find are in html and the ?type" is listed as ?file?. > > Basically, I?m trying to reproduce this, in a ?post? command: > > > > >
> > > >
    >
  • Sent file: >
  • File size: >
  • File type: >
> >
> > > > I figure it is probably a change in the http header, to get php to recognize the file as an upload, but I don?t know how to do this. Somehow, the php needs to get the filepath that I provide it, but ?.. > > Any help would be very appreciated. > Best, > Bill From prothero at earthednet.org Tue Jan 19 18:55:31 2016 From: prothero at earthednet.org (William Prothero) Date: Tue, 19 Jan 2016 15:55:31 -0800 Subject: Http Header question In-Reply-To: References: <593C3226-5335-474E-B55C-D8148FF96C8F@earthednet.org> Message-ID: <7921B1C8-38D4-4962-8F0F-BD50335B6173@earthednet.org> Dave: That?s it! I knew there was something like that, but couldn?t remember it. Thanks! Bill > On Jan 19, 2016, at 3:51 PM, Dave Cragg wrote: > > Bill, > > Take a look at libUrlMultipartForm and libUrlMultipartFormAddPart in the dictionary. There are examples there that might help you. > > Cheers > Dave Cragg > > >> On 19 Jan 2016, at 22:44, William Prothero wrote: >> >> Folks: >> I?m setting up a php sendmail script using phpSendmail and I?m trying to get the file upload for attachments part working. The examples I find are in html and the ?type" is listed as ?file?. >> >> Basically, I?m trying to reproduce this, in a ?post? command: >> >> >> >> >>
>> >> >> >>
    >>
  • Sent file: >>
  • File size: >>
  • File type: >>
>> >>
>> >> >> >> I figure it is probably a change in the http header, to get php to recognize the file as an upload, but I don?t know how to do this. Somehow, the php needs to get the filepath that I provide it, but ?.. >> >> Any help would be very appreciated. >> Best, >> Bill > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From hh at livecode.org Tue Jan 19 20:09:38 2016 From: hh at livecode.org (-hh) Date: Wed, 20 Jan 2016 02:09:38 +0100 Subject: Image Scaling Problem Message-ID: <5469D113-59BC-4D61-AAE9-F58E023693D4@livecode.org> Let me add my 1.414214 cents to this. Connected to "scaled and original size of images" (whether imported as control or by setting the filename): The *old* property inspector shows in the size & location tab the "fit content" buttons which allow to restore the original width and/or height even while 'the lockLoc of img x' (or 'the locked of img x') is true. Until now, these "fit content" buttons are missing in the *new* property inspector (LC 8), although we can restore the original size values by script (LC 1-8): set width of img iName to the formattedWidth of img iName set width of img iName to the formattedWidth of img iName From prothero at earthednet.org Tue Jan 19 20:38:39 2016 From: prothero at earthednet.org (William Prothero) Date: Tue, 19 Jan 2016 17:38:39 -0800 Subject: Http Header question In-Reply-To: <7921B1C8-38D4-4962-8F0F-BD50335B6173@earthednet.org> References: <593C3226-5335-474E-B55C-D8148FF96C8F@earthednet.org> <7921B1C8-38D4-4962-8F0F-BD50335B6173@earthednet.org> Message-ID: Folks: Dave got me started, but I?m still confused, unfortunately. I am having trouble seeing how the variables and data are passed from the POST command to the php script. What I?m trying to reproduce is: 2097152){ $errors[]='File size must be excately 2 MB'; } if(empty($errors)==true){ move_uploaded_file($file_tmp,"images/".$file_name); echo "Success"; }else{ print_r($errors); } } ?>
I?m familiar with a php script getting variables from lines like: $tName = $_POST["name"]; But, in the above example, how do the file variables get sent? I suppose, in the headers? But, I don?t seem to be successful. The file doesn?t seem to be passing to the php. I?m thinking that the image data gets embedded in the header, but I don?t see the file on my server and nothing seems to be getting into the $_FILES variable. Help?? thanks. Bill > On Jan 19, 2016, at 3:55 PM, William Prothero wrote: > > Dave: > That?s it! I knew there was something like that, but couldn?t remember it. > Thanks! > Bill > >> On Jan 19, 2016, at 3:51 PM, Dave Cragg wrote: >> >> Bill, >> >> Take a look at libUrlMultipartForm and libUrlMultipartFormAddPart in the dictionary. There are examples there that might help you. >> >> Cheers >> Dave Cragg >> >> From richmondmathewson at gmail.com Wed Jan 20 02:24:02 2016 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 20 Jan 2016 09:24:02 +0200 Subject: Image Scaling Problem In-Reply-To: <5469D113-59BC-4D61-AAE9-F58E023693D4@livecode.org> References: <5469D113-59BC-4D61-AAE9-F58E023693D4@livecode.org> Message-ID: <569F3612.9040905@gmail.com> On 20/01/16 03:09, [-hh] wrote: > Let me add my 1.414214 cents to this. > > Connected to "scaled and original size of images" (whether imported > as control or by setting the filename): > > The *old* property inspector shows in the size & location tab the > "fit content" buttons which allow to restore the original width and/or > height even while 'the lockLoc of img x' (or 'the locked of img x') is true. > > Until now, these "fit content" buttons are missing in the *new* > property inspector (LC 8), although we can restore the original size > values by script (LC 1-8): > set width of img iName to the formattedWidth of img iName > set width of img iName to the formattedWidth of img iName > > > May we have those "fit content" buttons back, Please? Come to think of things: Can we please have ALL the capabilities that are there in the *old* props inspector ( pre LC 8) restored in the *new* props inspector. Because until that is done the *new* props inspector will look like a backward step and second-rate. Richmond. From richmondmathewson at gmail.com Wed Jan 20 02:43:12 2016 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 20 Jan 2016 09:43:12 +0200 Subject: Mac standalones generated on Linux and Windows Message-ID: <569F3A90.6080606@gmail.com> This is an old chestnut: http://use-livecode.runrev.narkive.com/XpqiPfKN/creating-mac-standalone-on-windows-studio http://forums.livecode.com/viewtopic.php?f=8&t=26320&p=136924#p136924 I wonder if there is a way to solve this, as having to have access to a Macintosh computer to set the executable bit inside bundles is a "right bu**er". Richmond. From paul at researchware.com Wed Jan 20 08:33:09 2016 From: paul at researchware.com (Paul Dupuis) Date: Wed, 20 Jan 2016 08:33:09 -0500 Subject: Mac standalones generated on Linux and Windows In-Reply-To: <569F3A90.6080606@gmail.com> References: <569F3A90.6080606@gmail.com> Message-ID: <569F8C95.6010901@researchware.com> On 1/20/2016 2:43 AM, Richmond wrote: > This is an old chestnut: > > http://use-livecode.runrev.narkive.com/XpqiPfKN/creating-mac-standalone-on-windows-studio > > > http://forums.livecode.com/viewtopic.php?f=8&t=26320&p=136924#p136924 > > I wonder if there is a way to solve this, as having to have access to > a Macintosh computer > to set the executable bit inside bundles is a "right bu**er". This is way out of date (from 6 years ago). You have been able to build OS X standalones under Windows without setting any execution bits or stuff like that for a number of releases. I do nearly all my development under Windows. I just ZIP up the OSX build and move it to my OSX system unzip and it runs just fine. From MikeKerner at roadrunner.com Wed Jan 20 08:55:15 2016 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 20 Jan 2016 08:55:15 -0500 Subject: server vs not server Message-ID: I have a bunch of stacks that run, constantly, doing a variety of things. Some are even run as daemons by other processes. So, I suppose they could run in server, but I'm still unclear as to why I would choose to do that. -- 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 roger.e.eller at sealedair.com Wed Jan 20 09:36:39 2016 From: roger.e.eller at sealedair.com (Roger Eller) Date: Wed, 20 Jan 2016 09:36:39 -0500 Subject: server vs not server In-Reply-To: References: Message-ID: Hey Mike, Most daemons I have built with LC will poll a folder at a set time interval, and act accordingly dependent upon what it finds in the folder. A polling interval set too short can make the server slower. Setting it too long makes the users complain about waiting 30 seconds or a minute. Using LC Server for the same tasks makes it on-demand, and much more efficient. The only con is that some tasks may require elevated privileges, and since it isn't being run by a normal user, this can be tricky. I have some of both, but my goal is to port all my daemons to LC server scripts. ~Roger On Wed, Jan 20, 2016 at 8:55 AM, Mike Kerner wrote: > I have a bunch of stacks that run, constantly, doing a variety of things. > Some are even run as daemons by other processes. So, I suppose they could > run in server, but I'm still unclear as to why I would choose to do that. > > -- > 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 MikeKerner at roadrunner.com Wed Jan 20 09:56:20 2016 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 20 Jan 2016 09:56:20 -0500 Subject: server vs not server In-Reply-To: References: Message-ID: Roger, But why do it in server instead of just having another instance of LC running, sitting off in its own space? Since you don't have a message box, any output is going to require email, push, or writing to a file. Is Server just a beast for speed? You can't possibly save enough memory from avoiding the GUI to make it worth while. Server managing several other server instances is sexy, but I'm trying to gage when switching over is the thing to do. On Wed, Jan 20, 2016 at 9:36 AM, Roger Eller wrote: > Hey Mike, > > Most daemons I have built with LC will poll a folder at a set time > interval, and act accordingly dependent upon what it finds in the folder. > A polling interval set too short can make the server slower. Setting it > too long makes the users complain about waiting 30 seconds or a minute. > Using LC Server for the same tasks makes it on-demand, and much more > efficient. The only con is that some tasks may require elevated > privileges, and since it isn't being run by a normal user, this can be > tricky. I have some of both, but my goal is to port all my daemons to LC > server scripts. > > ~Roger > > On Wed, Jan 20, 2016 at 8:55 AM, Mike Kerner > wrote: > > > I have a bunch of stacks that run, constantly, doing a variety of things. > > Some are even run as daemons by other processes. So, I suppose they > could > > run in server, but I'm still unclear as to why I would choose to do that. > > > > -- > > 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 > -- 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 roger.e.eller at sealedair.com Wed Jan 20 10:31:04 2016 From: roger.e.eller at sealedair.com (Roger Eller) Date: Wed, 20 Jan 2016 10:31:04 -0500 Subject: server vs not server In-Reply-To: References: Message-ID: Mike, I like not having to leave a session logged in just to run a daemon, or a LC instance. If there is a power failure, my server reboots, and scripts are available. Otherwise, after a power failure, I have to log in and start the daemons. It is speedy, but for my applications (in-house), what I found most advantageous is for network database access. Previously, I had to ensure that all my clients had the proper drivers, etc. but in this configuration, only the server has to have access. My LC client apps just send http requests and sql data is returned, and no DSN or driver or even a database command is ever sent from the client. You could also communicate with sockets, if that is your thing. ~Roger On Wed, Jan 20, 2016 at 9:56 AM, Mike Kerner wrote: > Roger, > But why do it in server instead of just having another instance of LC > running, sitting off in its own space? Since you don't have a message box, > any output is going to require email, push, or writing to a file. Is > Server just a beast for speed? You can't possibly save enough memory from > avoiding the GUI to make it worth while. > > Server managing several other server instances is sexy, but I'm trying to > gage when switching over is the thing to do. > > On Wed, Jan 20, 2016 at 9:36 AM, Roger Eller > wrote: > > > Hey Mike, > > > > Most daemons I have built with LC will poll a folder at a set time > > interval, and act accordingly dependent upon what it finds in the folder. > > A polling interval set too short can make the server slower. Setting it > > too long makes the users complain about waiting 30 seconds or a minute. > > Using LC Server for the same tasks makes it on-demand, and much more > > efficient. The only con is that some tasks may require elevated > > privileges, and since it isn't being run by a normal user, this can be > > tricky. I have some of both, but my goal is to port all my daemons to LC > > server scripts. > > > > ~Roger > > > > On Wed, Jan 20, 2016 at 8:55 AM, Mike Kerner > > wrote: > > > > > I have a bunch of stacks that run, constantly, doing a variety of > things. > > > Some are even run as daemons by other processes. So, I suppose they > > could > > > run in server, but I'm still unclear as to why I would choose to do > that. > > > > > > -- > > > 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 > > > > > > -- > 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 Wed Jan 20 10:44:58 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 20 Jan 2016 15:44:58 +0000 Subject: Multi-platform development In-Reply-To: <56953192.5080502@fourthworld.com> References: <56950ED9.40605@howsoft.com> <56953192.5080502@fourthworld.com> Message-ID: Adobe tried this years ago, with a feature that could take a regular magazine layout (for example) and format it to display nicely in a web browser or some other format. The idea was to design once then deploy in multiple forms. It was a good idea. But it always required some tweaking. Sometimes it required a LOT of tweaking. And sometimes it didn't work well at all. The nature of the problem is such that the solution can never really be perfect. Bob S On Jan 12, 2016, at 09:02 , Richard Gaskin > wrote: While it's true that Ubuntu and more recently Microsoft have begun exploring convergence strategies for a single adaptable, scalable set of UI conventions across all device types, the reality is that to date neither has been enormously successful (though the night is young, and the research and APIs still in early days). From bobsneidar at iotecdigital.com Wed Jan 20 10:53:31 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 20 Jan 2016 15:53:31 +0000 Subject: Multi-platform development. In-Reply-To: <595A91E6-534B-4C61-9D79-68A973F1B670@livecode.com> References: <5693D305.8010401@tweedly.net> <595A91E6-534B-4C61-9D79-68A973F1B670@livecode.com> Message-ID: <9C33170F-33B3-4B15-A13B-593EF34AD855@iotecdigital.com> On Jan 12, 2016, at 11:26 , Mark Waddingham > wrote: Simple things like not putting code in a mouseUp, but instead just get it to call an action function in the core part of the application (independent of UI) help immensely. This makes me a little sad, because one of the great things about LC in my opinion is the modularity of the code. Going to an object's script and seeing exactly what the object does, as opposed to having a single large (and unweildy I might add) script is very attractive to me. I also understand the advantage of a centralized library of functions and I am not argueing against that, but I like the LC (and originally HC) model. In fact the computing world thought this was such a neat concept that OOP was born. So it seems that one objective might favor one approach, and another objective a different one. This is exactly why designing for multiple OSes, while certain techniques can get you a long way there, might eventually be unattainable. Bob S From bobsneidar at iotecdigital.com Wed Jan 20 12:00:51 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 20 Jan 2016 17:00:51 +0000 Subject: Getting the clicktext from a browser control In-Reply-To: <56969C9A.9050005@hyperactivesw.com> References: <5695EB13.2040001@hyperactivesw.com> <56969C9A.9050005@hyperactivesw.com> Message-ID: <928B2352-A922-462F-A7F8-517FB02F7044@iotecdigital.com> Well you can see how that would make the LC browser object horribly insecure. User clicks a link and you take him somewhere completely different? Or somewhere else in another browser object?? EEEEK! I don't think you can get that kind of control, and I would be very afraid if you could. Bob S > On Jan 13, 2016, at 10:51 , J. Landman Gay wrote: > > On 1/13/2016 7:39 AM, Colin Holgate wrote: >> The times that BrowserBeforeNavigate doesn?t get sent, is a >> BrowserBeforeNavigateFrame sent instead? > > There are no frames, so no. The browserBeforeNavigate only gets sent when the URL changes, and the links in the page do not always change URLs, (they are basically reference IDs, mainly footnotes) so that's why. > > If the footnote is contained in the existing browser content then the link navigates but I can't find out about it until after the navigation completes. If the link points to another set of content that isn't loaded yet, nothing happens and I still don't find out about it until browserNavigateComplete is sent. I want to know what link was clicked so I can handle it regardless of the intended link destination. I don't see any way to do that. > > -- > 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 roland.huettmann at gmail.com Wed Jan 20 12:48:11 2016 From: roland.huettmann at gmail.com (Roland Huettmann) Date: Wed, 20 Jan 2016 18:48:11 +0100 Subject: LC 8.0 dp13 crash when pasting script through clipboard into script editor Message-ID: If someone also experienced this, I will file a bug report. I installed LC 8.0.0 dp 13 on a Windows machine, OS 8.1. When trying to copy script or any text from some other application and paste it from clipboard to be inserted into the opened script editor, LC crashes each time. It crashes without me having to kill the process, but repeatedly is crashing being not-responsive. Roland From pete at lcsql.com Wed Jan 20 12:50:48 2016 From: pete at lcsql.com (Peter Haworth) Date: Wed, 20 Jan 2016 17:50:48 +0000 Subject: Http Header question In-Reply-To: References: <593C3226-5335-474E-B55C-D8148FF96C8F@earthednet.org> <7921B1C8-38D4-4962-8F0F-BD50335B6173@earthednet.org> Message-ID: If you were doing this from an html form, the file in question would be uploaded to the server's temp directory and the php script can access it from there using the "tmp_name" key. I think the $_FILES array is created as a result of the enctype setting. Not sure how you would replace all that via LC though. On Tue, Jan 19, 2016 at 5:38 PM William Prothero wrote: > Folks: > Dave got me started, but I?m still confused, unfortunately. I am having > trouble seeing how the variables and data are passed from the POST command > to the php script. What I?m trying to reproduce is: > > if(isset($_FILES['image'])){ > $errors= array(); > $file_name = $_FILES['image']['name']; > $file_size =$_FILES['image']['size']; > $file_tmp =$_FILES['image']['tmp_name']; > $file_type=$_FILES['image']['type']; > $file_ext=strtolower(end(explode('.',$_FILES['image']['name']))); > > $expensions= array("jpeg","jpg","png"); > > if(in_array($file_ext,$expensions)=== false){ > $errors[]="extension not allowed, please choose a JPEG or PNG > file."; > } > > if($file_size > 2097152){ > $errors[]='File size must be excately 2 MB'; > } > > if(empty($errors)==true){ > move_uploaded_file($file_tmp,"images/".$file_name); > echo "Success"; > }else{ > print_r($errors); > } > } > ?> > > > >
> > >
> > > > > I?m familiar with a php script getting variables from lines like: > $tName = $_POST["name"]; > > But, in the above example, how do the file variables get sent? I suppose, > in the headers? But, I don?t seem to be successful. The file doesn?t seem > to be passing to the php. I?m thinking that the image data gets embedded in > the header, but I don?t see the file on my server and nothing seems to be > getting into the $_FILES variable. > > Help?? thanks. > Bill > > > > On Jan 19, 2016, at 3:55 PM, William Prothero > wrote: > > > > Dave: > > That?s it! I knew there was something like that, but couldn?t remember > it. > > Thanks! > > Bill > > > >> On Jan 19, 2016, at 3:51 PM, Dave Cragg > wrote: > >> > >> Bill, > >> > >> Take a look at libUrlMultipartForm and libUrlMultipartFormAddPart in > the dictionary. There are examples there that might help you. > >> > >> Cheers > >> Dave Cragg > >> > >> > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 20 12:53:52 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 20 Jan 2016 09:53:52 -0800 Subject: server vs not server In-Reply-To: References: Message-ID: <569FC9B0.9070404@fourthworld.com> Mike Kerner wrote: > I have a bunch of stacks that run, constantly, doing a variety of > things. > Some are even run as daemons by other processes. So, I suppose they > could run in server, but I'm still unclear as to why I would choose > to do that. LC Server is a great tool for mixing LiveCode scripts with HTML for convenient delivery of web pages. But beyond that, the differences in terms of benefits to the developer between using the Server edition and running a standalone facelessly with the -ui flag are minimal, and often favor the standalone. In fact I've never deployed a production system with LC Server, even on web sites like LiveCodeJournal.com where the entire CMS all the way down to the data store is entirely written in LC. Calling the merge function explicitly rather then having an extended version called implicitly is handy but ultimately less valuable for me than having an engine that works identically on both desktop and server. Most of my work these days is delivering client-server workgroup solutions, and LC provides a complete solution on both ends. But by using a "desktop" standalone as the CGI instead of LC Server, it was a trivial matter to integrate the server functionality directly into my client development workflow, all running within the LC IDE. Of course LC Server also provides many other conveniences for web work, like parsing incoming POST data, but since I've been using LC as a CGI since it was called "MetaCard" I already had libraries for those things more than a decade ago. So for web development LC Server can be very convenient, but with a little extra work one can use a "desktop" standalone equally well, with the extra benefit of being able to develop and test directly in the IDE. But outside of web development, if all you need is a LiveCode engine to run some scripts and you don't need a GUI, just call a standalone with -ui so the engine knows not to bother initializing GUI elements (launches super-fast and takes less RAM and fewer CPU cycles as it runs): /home//LCdaemonFolder/lc-daemon -ui Whether I'm building a socket server on a VPS or just need some auxiliary processing on a separate machine so I don't tie up my workstation, standalones are a wonderful option that gives us nearly complete fidelity between development and runtime. I generally make the standalone very slim, in which the only code is a startup handler that looks for a stack file in the same folder; if it finds the stack it runs "start using..." to bring it into play, and if not it reports an error and quits. This lets me update the app by just replacing the very slender stack file, never touching the standalone at all until there's an engine upgrade I need for new things. Extra bonus points: if you share your public SSH key with the target machine running your LC standalone, you can completely automate updating your stacks and other files very conveniently using rsync, regardless whether the target machine is a spare computer on your local network or a VPS hosted anywhere in the world. Write in the UDE, click a button in a plugin stack, and - poof! - everything on your remote system is updated with all the smart efficiency rsync delivers. Instructions for this are all over the Web; I particularly like the simplicity of this one: Tip about file polling: while we're (often rightly) conditioned to think of file I/O as a bottleneck, checking for the existence of a file is not very costly at all, not nearly as much as opening and reading a file. Even on Windows it takes relatively few clock cycles, and on any Unix-like system like OS X or Linux the ultra-smart file caching mechanism makes it even faster - much faster, so that the overhead of polling once every few seconds or even once a second, is barely measurable. If speed is critical you can even take that one step further if you're using Linux* by using the /run/shm/ directory for delivering files that need to be polled for. The /run folder is a sort of RAM disk automatically created by the OS, so while it won't give you persistence between boots it'll make file I/O even breezier for those cases where it's a good fit, such as delivering instructions to an LC daemon without the complexity or security concerns of direct socket comms. * For a faceless system why not use Linux? It runs on nearly any hardware made in the last 20 years, is free in both senses of the word, and the biggest benefit of OS X is its UI which you'd never see anyway. When any machine in my office outlives the vendor's OS support, it gets wiped with a Linux install where it gets a new and well supported life, and all the bash commands I'd used on my Mac continue to work (but in many cases with newer and less vulnerable components -- see the many web articles about why Apple ships with outdated and vulnerable versions of things like rsync). -- 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 Wed Jan 20 12:58:51 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 20 Jan 2016 09:58:51 -0800 Subject: Multi-platform development In-Reply-To: References: Message-ID: <569FCADB.2060204@fourthworld.com> Bob Sneidar wrote: > On Jan 12, 2016, at 09:02 , Richard Gaskin wrote: > >> While it's true that Ubuntu and more recently Microsoft have begun >> exploring convergence strategies for a single adaptable, scalable >> set of UI conventions across all device types, the reality is that >> to date neither has been enormously successful (though the night is >> young, and the research and APIs still in early days). > > Adobe tried this years ago, with a feature that could take a regular > magazine layout (for example) and format it to display nicely in a > web browser or some other format. The idea was to design once then > deploy in multiple forms. It was a good idea. But it always required > some tweaking. Sometimes it required a LOT of tweaking. And sometimes > it didn't work well at all. The nature of the problem is such that > the solution can never really be perfect. While it's true that mixing web and native app design is very rarely a good idea (they're very different platforms serving very different needs), mixing native app design across device types seems, at least to me, a more exciting and viable prospect. When I see any OS without design issues of its own I'll start to get worried about multi-platform design challenges. :) -- 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 Wed Jan 20 13:03:26 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 20 Jan 2016 10:03:26 -0800 Subject: LC 8.0 dp13 crash when pasting script through clipboard into script editor In-Reply-To: References: Message-ID: <569FCBEE.2040304@fourthworld.com> Roland Huettmann wrote: > If someone also experienced this, I will file a bug report. > > I installed LC 8.0.0 dp 13 on a Windows machine, OS 8.1. > > When trying to copy script or any text from some other application and > paste it from clipboard to be inserted into the opened script editor, LC > crashes each time. It crashes without me having to kill the process, but > repeatedly is crashing being not-responsive. I haven't experienced that myself, but please do submit the report anyway if it's repeatable for you. Deep revisions have been made to clipboard handling in v8 to support some exciting new features, but the chances of regression go along with that so your report will be very valuable. -- 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 mark at livecode.com Wed Jan 20 13:14:29 2016 From: mark at livecode.com (Mark Waddingham) Date: Wed, 20 Jan 2016 19:14:29 +0100 Subject: Multi-platform development. In-Reply-To: <9C33170F-33B3-4B15-A13B-593EF34AD855@iotecdigital.com> References: <5693D305.8010401@tweedly.net> <595A91E6-534B-4C61-9D79-68A973F1B670@livecode.com> <9C33170F-33B3-4B15-A13B-593EF34AD855@iotecdigital.com> Message-ID: <8c1be51d35f8db24e10fd8b9b12187d1@livecode.com> On 2016-01-20 16:53, Bob Sneidar wrote: > On Jan 12, 2016, at 11:26 , Mark Waddingham > > wrote: > >> Simple things like not putting code in a mouseUp, but instead just get >> it to call an action function in the core part of the application >> (independent of UI) help immensely. > > This makes me a little sad, because one of the great things about LC > in my opinion is the modularity of the code. Going to an object's > script and seeing exactly what the object does, as opposed to having a > single large (and unweildy I might add) script is very attractive to > me. My comment there was perhaps a little 'glib' and perhaps not quite representative of what I was suggesting. In general there is always a line (which sometimes can be very difficult to find!) between code which drives a UI, and code which drives the application logic. So a sensible way to write an application which has to have multiple distinct UIs is to find that line and make sure the UI calls actions which perform the application's actual function. (Think command-line application being driven by a frontend UI - something which MetaCard was used widely for in the UNIX world from its original inception). For example, many document-centric apps will have a 'Save' function. On Mac this is typically 'just' in the File menu. However, on Windows it is usual to have it both in the File menu *and* as a button on a document's toolbar. If the code for the 'save' action is not factored out you end up with duplicated code - so it is quite natural to move this code 'down' into core logic. If you do that for anything which can be taken out of a UI context you quickly end up with a architecture where the UI of your app is separated from the action thus making (in theory at least) adding variants of the UI easy. Of course, good UIs are not easy to write - personally I generally find it much easier to define the core application model than I do to write the UI sitting on top of it. However, this is where LiveCode (and similar things) excel due to their visual and 'immediate' nature - you can iterate UIs rapidly, particularly if you don't have to worry about 'breaking' the core application logic, something which splitting things up into UI + Logic helps with. So, I perhaps should have been more specific - code that deals with the UI should probably be 'closest to use' for all the places it should be used, whereas code which deals with core application logic is probably best 'pushed down' into a core library or set of libraries. Of course, in the end, it all does largely depend on the application, how well the programmer understands the problem he/she are trying to solve in the first instance and how much time you have to solve it! > I also understand the advantage of a centralized library of functions > and I am not argueing against that, but I like the LC (and originally > HC) model. In fact the computing world thought this was such a neat > concept that OOP was born. Well, I think OOP predates HyperCard by a significant margin. Simula was perhaps the first 'object oriented' language (although it did inheritence in reverse to current languages) - a superset of Algol, it appeared in 1965. SmallTalk, one of the first 'purely object oriented' languages appeared in 1972. HyperCard didn't appear until 1986. > So it seems that one objective might favor one approach, and another > objective a different one. This is exactly why designing for multiple > OSes, while certain techniques can get you a long way there, might > eventually be unattainable. It would be possible to do a reasonably good job of abstracting some of the UI patterns people use today so that they specialize appropriately. For example, on an iPad you tend to use 'Split View' controllers which are similar to having a content view with a 'menu' callout button on iPhones. Conceptually (if you ignore the actual layout / rendering) these are almost the same - it is just the rendering and interaction which are different. Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From MikeKerner at roadrunner.com Wed Jan 20 14:13:22 2016 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 20 Jan 2016 14:13:22 -0500 Subject: server vs not server In-Reply-To: <569FC9B0.9070404@fourthworld.com> References: <569FC9B0.9070404@fourthworld.com> Message-ID: I have a pile of OS's running, here, for all sorts of reasons. Yes, I could, and have, deploy (and develop) on one of several linux boxes that I have running you-name-it with whatever desktop environment is on that box. In some cases, there are issues where some other piece of gear is OS limited to Windoze, for example. On Wed, Jan 20, 2016 at 12:53 PM, Richard Gaskin wrote: > Mike Kerner wrote: > > I have a bunch of stacks that run, constantly, doing a variety of > > things. > > Some are even run as daemons by other processes. So, I suppose they > > could run in server, but I'm still unclear as to why I would choose > > to do that. > > LC Server is a great tool for mixing LiveCode scripts with HTML for > convenient delivery of web pages. > > But beyond that, the differences in terms of benefits to the developer > between using the Server edition and running a standalone facelessly with > the -ui flag are minimal, and often favor the standalone. > > In fact I've never deployed a production system with LC Server, even on > web sites like LiveCodeJournal.com where the entire CMS all the way down to > the data store is entirely written in LC. Calling the merge function > explicitly rather then having an extended version called implicitly is > handy but ultimately less valuable for me than having an engine that works > identically on both desktop and server. > > Most of my work these days is delivering client-server workgroup > solutions, and LC provides a complete solution on both ends. But by using > a "desktop" standalone as the CGI instead of LC Server, it was a trivial > matter to integrate the server functionality directly into my client > development workflow, all running within the LC IDE. > > Of course LC Server also provides many other conveniences for web work, > like parsing incoming POST data, but since I've been using LC as a CGI > since it was called "MetaCard" I already had libraries for those things > more than a decade ago. > > So for web development LC Server can be very convenient, but with a little > extra work one can use a "desktop" standalone equally well, with the extra > benefit of being able to develop and test directly in the IDE. > > But outside of web development, if all you need is a LiveCode engine to > run some scripts and you don't need a GUI, just call a standalone with -ui > so the engine knows not to bother initializing GUI elements (launches > super-fast and takes less RAM and fewer CPU cycles as it runs): > > /home//LCdaemonFolder/lc-daemon -ui > > Whether I'm building a socket server on a VPS or just need some auxiliary > processing on a separate machine so I don't tie up my workstation, > standalones are a wonderful option that gives us nearly complete fidelity > between development and runtime. > > I generally make the standalone very slim, in which the only code is a > startup handler that looks for a stack file in the same folder; if it finds > the stack it runs "start using..." to bring it into play, and if not it > reports an error and quits. > > This lets me update the app by just replacing the very slender stack file, > never touching the standalone at all until there's an engine upgrade I need > for new things. > > Extra bonus points: if you share your public SSH key with the target > machine running your LC standalone, you can completely automate updating > your stacks and other files very conveniently using rsync, regardless > whether the target machine is a spare computer on your local network or a > VPS hosted anywhere in the world. Write in the UDE, click a button in a > plugin stack, and - poof! - everything on your remote system is updated > with all the smart efficiency rsync delivers. > > Instructions for this are all over the Web; I particularly like the > simplicity of this one: > < > https://www.digitalocean.com/community/tutorials/how-to-set-up-ssh-keys--2 > > > > > Tip about file polling: while we're (often rightly) conditioned to think > of file I/O as a bottleneck, checking for the existence of a file is not > very costly at all, not nearly as much as opening and reading a file. Even > on Windows it takes relatively few clock cycles, and on any Unix-like > system like OS X or Linux the ultra-smart file caching mechanism makes it > even faster - much faster, so that the overhead of polling once every few > seconds or even once a second, is barely measurable. > > If speed is critical you can even take that one step further if you're > using Linux* by using the /run/shm/ directory for delivering files that > need to be polled for. The /run folder is a sort of RAM disk automatically > created by the OS, so while it won't give you persistence between boots > it'll make file I/O even breezier for those cases where it's a good fit, > such as delivering instructions to an LC daemon without the complexity or > security concerns of direct socket comms. > > > * For a faceless system why not use Linux? It runs on nearly any hardware > made in the last 20 years, is free in both senses of the word, and the > biggest benefit of OS X is its UI which you'd never see anyway. When any > machine in my office outlives the vendor's OS support, it gets wiped with a > Linux install where it gets a new and well supported life, and all the bash > commands I'd used on my Mac continue to work (but in many cases with newer > and less vulnerable components -- see the many web articles about why Apple > ships with outdated and vulnerable versions of things like rsync). > > -- > 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 > -- 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 roger.e.eller at sealedair.com Wed Jan 20 15:35:04 2016 From: roger.e.eller at sealedair.com (Roger Eller) Date: Wed, 20 Jan 2016 15:35:04 -0500 Subject: [OT] 64-bit computer board runs Android, Ubuntu, others Message-ID: https://www.kickstarter.com/projects/pine64/pine-a64-first-15-64-bit-single-board-super-comput From bobsneidar at iotecdigital.com Wed Jan 20 15:44:58 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 20 Jan 2016 20:44:58 +0000 Subject: Multi-platform development. In-Reply-To: <8c1be51d35f8db24e10fd8b9b12187d1@livecode.com> References: <5693D305.8010401@tweedly.net> <595A91E6-534B-4C61-9D79-68A973F1B670@livecode.com> <9C33170F-33B3-4B15-A13B-593EF34AD855@iotecdigital.com> <8c1be51d35f8db24e10fd8b9b12187d1@livecode.com> Message-ID: <60A80D64-22F4-4F8A-A5D7-1DE1350F311D@iotecdigital.com> On Jan 20, 2016, at 10:14 , Mark Waddingham > wrote: For example, many document-centric apps will have a 'Save' function. On Mac this is typically 'just' in the File menu. However, on Windows it is usual to have it both in the File menu *and* as a button on a document's toolbar. If the code for the 'save' action is not factored out you end up with duplicated code - so it is quite natural to move this code 'down' into core logic. Oh right yes I do that too. As soon as I need to access the same code from multiple locations, I will often do that, but sometimes I will just send a mouseUp (or call a handler) from the object itself. A lot has to do with whether or not the object script has relative references to itself of the card/stack it belongs to. Sometimes moving complex code requires a lot of refactoring, so rather than do that, I just send or dispatch to the handler in the object, rather than go through the nonsense of re-debugging everything all over again. Bob S From roger.e.eller at sealedair.com Wed Jan 20 15:45:53 2016 From: roger.e.eller at sealedair.com (Roger Eller) Date: Wed, 20 Jan 2016 15:45:53 -0500 Subject: [OT] 64-bit computer board runs Android, Ubuntu, others In-Reply-To: References: Message-ID: $19 + $7 shipping Pledge $19 or more The PINE A64+ (April 2016 Delivery) You will get the PINE64+ unit, which comes with the 1.2Ghz board and 1GB SDRAM. The updated unit has a gigabit Ethernet port, 3.5MM Audio/Mic jack, 4K HDMI, and 2 USB ports. PINE A64+ includes touchpanel, camera, and LCD Port accessibility. (No wifi/bluetooth - we will offer a list of compatible wifi/bluetooth modules you can use to connect later) Shipping starts in April 2016. We can fulfill up to 10,000 units a month. Estimated delivery:Apr 2016 Ships to:Anywhere in the world On Wed, Jan 20, 2016 at 3:35 PM, Roger Eller wrote: > > https://www.kickstarter.com/projects/pine64/pine-a64-first-15-64-bit-single-board-super-comput > > > From bobsneidar at iotecdigital.com Wed Jan 20 15:51:24 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 20 Jan 2016 20:51:24 +0000 Subject: Multi-platform development. In-Reply-To: <60A80D64-22F4-4F8A-A5D7-1DE1350F311D@iotecdigital.com> References: <5693D305.8010401@tweedly.net> <595A91E6-534B-4C61-9D79-68A973F1B670@livecode.com> <9C33170F-33B3-4B15-A13B-593EF34AD855@iotecdigital.com> <8c1be51d35f8db24e10fd8b9b12187d1@livecode.com> <60A80D64-22F4-4F8A-A5D7-1DE1350F311D@iotecdigital.com> Message-ID: Well this is what happens in Apple Mail when I click AFTER the quoted text. It bundles my response into what the quoted post was. I will try that Appel Mail post fix someone linked. Bob S > On Jan 20, 2016, at 12:44 , Bob Sneidar wrote: > > > On Jan 20, 2016, at 10:14 , Mark Waddingham > wrote: > > For example, many document-centric apps will have a 'Save' function. On Mac this is typically 'just' in the File menu. However, on Windows it is usual to have it both in the File menu *and* as a button on a document's toolbar. If the code for the 'save' action is not factored out you end up with duplicated code - so it is quite natural to move this code 'down' into core logic. > > Oh right yes I do that too. As soon as I need to access the same code from multiple locations, I will often do that, but sometimes I will just send a mouseUp (or call a handler) from the object itself. A lot has to do with whether or not the object script has relative references to itself of the card/stack it belongs to. Sometimes moving complex code requires a lot of refactoring, so rather than do that, I just send or dispatch to the handler in the object, rather than go through the nonsense of re-debugging everything all over again. > > 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 waprothero at gmail.com Wed Jan 20 16:10:45 2016 From: waprothero at gmail.com (William Prothero) Date: Wed, 20 Jan 2016 13:10:45 -0800 Subject: Http Header question In-Reply-To: References: <593C3226-5335-474E-B55C-D8148FF96C8F@earthednet.org> <7921B1C8-38D4-4962-8F0F-BD50335B6173@earthednet.org> Message-ID: <7C5965EF-C5B9-4778-B69B-166D46B7859F@gmail.com> Peter: Thanks. Another option is to just upload the file using ftp, then attach it to the email once it?s on the server. It would be more trips to the server, but might give me more control. I?m not yet giving up and have to investigate the php.ini settings to see if I?ve missed something. Thanks for the input. Bill > On Jan 20, 2016, at 9:50 AM, Peter Haworth wrote: > > If you were doing this from an html form, the file in question would be > uploaded to the server's temp directory and the php script can access it > from there using the "tmp_name" key. I think the $_FILES array is created > as a result of the enctype setting. Not sure how you would replace all > that via LC though. > > On Tue, Jan 19, 2016 at 5:38 PM William Prothero > wrote: > >> Folks: >> Dave got me started, but I?m still confused, unfortunately. I am having >> trouble seeing how the variables and data are passed from the POST command >> to the php script. What I?m trying to reproduce is: >> >> > if(isset($_FILES['image'])){ >> $errors= array(); >> $file_name = $_FILES['image']['name']; >> $file_size =$_FILES['image']['size']; >> $file_tmp =$_FILES['image']['tmp_name']; >> $file_type=$_FILES['image']['type']; >> $file_ext=strtolower(end(explode('.',$_FILES['image']['name']))); >> >> $expensions= array("jpeg","jpg","png"); >> >> if(in_array($file_ext,$expensions)=== false){ >> $errors[]="extension not allowed, please choose a JPEG or PNG >> file."; >> } >> >> if($file_size > 2097152){ >> $errors[]='File size must be excately 2 MB'; >> } >> >> if(empty($errors)==true){ >> move_uploaded_file($file_tmp,"images/".$file_name); >> echo "Success"; >> }else{ >> print_r($errors); >> } >> } >> ?> >> >> >> >>
>> >> >>
>> >> >> >> >> I?m familiar with a php script getting variables from lines like: >> $tName = $_POST["name"]; >> >> But, in the above example, how do the file variables get sent? I suppose, >> in the headers? But, I don?t seem to be successful. The file doesn?t seem >> to be passing to the php. I?m thinking that the image data gets embedded in >> the header, but I don?t see the file on my server and nothing seems to be >> getting into the $_FILES variable. >> >> Help?? thanks. >> Bill >> >> >>> On Jan 19, 2016, at 3:55 PM, William Prothero >> wrote: >>> >>> Dave: >>> That?s it! I knew there was something like that, but couldn?t remember >> it. >>> Thanks! >>> Bill >>> >>>> On Jan 19, 2016, at 3:51 PM, Dave Cragg >> wrote: >>>> >>>> Bill, >>>> >>>> Take a look at libUrlMultipartForm and libUrlMultipartFormAddPart in >> the dictionary. There are examples there that might help you. >>>> >>>> Cheers >>>> Dave Cragg >>>> >>>> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 developer at inmytribe.com Wed Jan 20 16:36:47 2016 From: developer at inmytribe.com (developer) Date: Wed, 20 Jan 2016 16:36:47 -0500 Subject: OT - livecoders.slack.com site established Message-ID: <9B894DF4-B437-4010-8A27-589A359CD19A@inmytribe.com> For those interested in a real-time dialog for livecode, we have established a https://livecoders.slack.com/ team site. The self-registration url is https://livecoders.slack.com/signup Also anyone signing up with the livercoder.org email address will be automatically invited to the team. Thanks! developer at inmytribe.com From mwieder at ahsoftware.net Wed Jan 20 18:02:11 2016 From: mwieder at ahsoftware.net (Mark Wieder) Date: Wed, 20 Jan 2016 15:02:11 -0800 Subject: OT - livecoders.slack.com site established In-Reply-To: <9B894DF4-B437-4010-8A27-589A359CD19A@inmytribe.com> References: <9B894DF4-B437-4010-8A27-589A359CD19A@inmytribe.com> Message-ID: <56A011F3.9020108@ahsoftware.net> rotfl -- Mark Wieder ahsoftware at gmail.com From blueback09 at gmail.com Thu Jan 21 00:44:22 2016 From: blueback09 at gmail.com (Matt Maier) Date: Wed, 20 Jan 2016 21:44:22 -0800 Subject: Multi-platform development. In-Reply-To: <60A80D64-22F4-4F8A-A5D7-1DE1350F311D@iotecdigital.com> References: <5693D305.8010401@tweedly.net> <595A91E6-534B-4C61-9D79-68A973F1B670@livecode.com> <9C33170F-33B3-4B15-A13B-593EF34AD855@iotecdigital.com> <8c1be51d35f8db24e10fd8b9b12187d1@livecode.com> <60A80D64-22F4-4F8A-A5D7-1DE1350F311D@iotecdigital.com> Message-ID: I'm trying to put as much of the logic into script only stacks as possible cuz I want my application to be open source contribution friendly. Livecode actually makes that counterintuitive because it's so tempting to put little handlers in each control. On Jan 20, 2016 12:45, "Bob Sneidar" wrote: > > On Jan 20, 2016, at 10:14 , Mark Waddingham mark at livecode.com>> wrote: > > For example, many document-centric apps will have a 'Save' function. On > Mac this is typically 'just' in the File menu. However, on Windows it is > usual to have it both in the File menu *and* as a button on a document's > toolbar. If the code for the 'save' action is not factored out you end up > with duplicated code - so it is quite natural to move this code 'down' into > core logic. > > Oh right yes I do that too. As soon as I need to access the same code from > multiple locations, I will often do that, but sometimes I will just send a > mouseUp (or call a handler) from the object itself. A lot has to do with > whether or not the object script has relative references to itself of the > card/stack it belongs to. Sometimes moving complex code requires a lot of > refactoring, so rather than do that, I just send or dispatch to the handler > in the object, rather than go through the nonsense of re-debugging > everything all over again. > > 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 dixonja at hotmail.co.uk Thu Jan 21 06:20:56 2016 From: dixonja at hotmail.co.uk (John Dixon) Date: Thu, 21 Jan 2016 11:20:56 +0000 Subject: putting binary data into a mySQL database Message-ID: How to I put encrypted data.. ie :- Salted__c????9??YF? ???U[????F into a record in a mySQL database ? From lan.kc.macmail at gmail.com Thu Jan 21 06:30:09 2016 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Thu, 21 Jan 2016 19:30:09 +0800 Subject: putting binary data into a mySQL database In-Reply-To: References: Message-ID: Look up revExecuteSQL in the Dictionary. Of particular interest: To pass binary data in a variable in the variablesList, prepend "*b" to the > variable name. The *revExecuteSQL* command strips the binary marker "*b" > and passes it to the database as binary data, rather than text data. Basically you need to be using the variable list form of revExecuteSQL rather than passing the data directly. Also there is a note about binary in arrays that are being loaded into dbs. From dixonja at hotmail.co.uk Thu Jan 21 07:10:14 2016 From: dixonja at hotmail.co.uk (John Dixon) Date: Thu, 21 Jan 2016 12:10:14 +0000 Subject: putting binary data into a mySQL database In-Reply-To: References: , Message-ID: Thanks for the reply.. :-) I though have another question, How do I pass encrypted data to an .lc script ? > Date: Thu, 21 Jan 2016 19:30:09 +0800 > Subject: Re: putting binary data into a mySQL database > From: lan.kc.macmail at gmail.com > To: use-livecode at lists.runrev.com > > Look up revExecuteSQL in the Dictionary. Of particular interest: > > To pass binary data in a variable in the variablesList, prepend "*b" to the > > variable name. The *revExecuteSQL* command strips the binary marker "*b" > > and passes it to the database as binary data, rather than text data. > > > Basically you need to be using the variable list form of revExecuteSQL > rather than passing the data directly. Also there is a note about binary in > arrays that are being loaded into dbs. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From neil at livecode.com Thu Jan 21 07:22:58 2016 From: neil at livecode.com (Neil Roger) Date: Thu, 21 Jan 2016 12:22:58 +0000 Subject: putting binary data into a mySQL database In-Reply-To: References: , Message-ID: <56A0CDA2.4090003@livecode.com> Hi John, You should be able to use the URLEncode when passing it to the .lc script and then URLdecode to decoded it back to it original form. Kind Regards, Neil LiveCode Technical Support and Content Creation Lead neil at livecode.com LiveCode +44 (0) 845 219 8923. 25A Thistle Street Lane South West, Edinburgh, EH2 1EW http://www.livecode.com Facebook Twitter Youtube Linkedin On 21/01/2016 12:10, John Dixon wrote: > Thanks for the reply.. :-) > > I though have another question, How do I pass encrypted data to an .lc script ? > > >> Date: Thu, 21 Jan 2016 19:30:09 +0800 >> Subject: Re: putting binary data into a mySQL database >> From: lan.kc.macmail at gmail.com >> To: use-livecode at lists.runrev.com >> >> Look up revExecuteSQL in the Dictionary. Of particular interest: >> >> To pass binary data in a variable in the variablesList, prepend "*b" to the >>> variable name. The *revExecuteSQL* command strips the binary marker "*b" >>> and passes it to the database as binary data, rather than text data. >> >> Basically you need to be using the variable list form of revExecuteSQL >> rather than passing the data directly. Also there is a note about binary in >> arrays that are being loaded into dbs. >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 dixonja at hotmail.co.uk Thu Jan 21 07:27:45 2016 From: dixonja at hotmail.co.uk (John Dixon) Date: Thu, 21 Jan 2016 12:27:45 +0000 Subject: putting binary data into a mySQL database In-Reply-To: <56A0CDA2.4090003@livecode.com> References: , , , , <56A0CDA2.4090003@livecode.com> Message-ID: Thank you... that did it.. :-) > Date: Thu, 21 Jan 2016 12:22:58 +0000 > From: neil at livecode.com > To: use-livecode at lists.runrev.com > Subject: Re: putting binary data into a mySQL database > > Hi John, > > You should be able to use the URLEncode when passing it to the .lc > script and then URLdecode to decoded it back to it original form. > > Kind Regards, > > Neil > > > > > LiveCode Technical Support and Content Creation Lead > neil at livecode.com > > LiveCode > +44 (0) 845 219 8923. > 25A Thistle Street Lane South West, Edinburgh, EH2 1EW > http://www.livecode.com > > Facebook > Twitter Youtube > Linkedin > > > > On 21/01/2016 12:10, John Dixon wrote: > > Thanks for the reply.. :-) > > > > I though have another question, How do I pass encrypted data to an .lc script ? > > > > > >> Date: Thu, 21 Jan 2016 19:30:09 +0800 > >> Subject: Re: putting binary data into a mySQL database > >> From: lan.kc.macmail at gmail.com > >> To: use-livecode at lists.runrev.com > >> > >> Look up revExecuteSQL in the Dictionary. Of particular interest: > >> > >> To pass binary data in a variable in the variablesList, prepend "*b" to the > >>> variable name. The *revExecuteSQL* command strips the binary marker "*b" > >>> and passes it to the database as binary data, rather than text data. > >> > >> Basically you need to be using the variable list form of revExecuteSQL > >> rather than passing the data directly. Also there is a note about binary in > >> arrays that are being loaded into dbs. > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode 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 roger.e.eller at sealedair.com Thu Jan 21 08:07:30 2016 From: roger.e.eller at sealedair.com (Roger Eller) Date: Thu, 21 Jan 2016 08:07:30 -0500 Subject: Multi-platform development. In-Reply-To: References: <5693D305.8010401@tweedly.net> <595A91E6-534B-4C61-9D79-68A973F1B670@livecode.com> <9C33170F-33B3-4B15-A13B-593EF34AD855@iotecdigital.com> <8c1be51d35f8db24e10fd8b9b12187d1@livecode.com> <60A80D64-22F4-4F8A-A5D7-1DE1350F311D@iotecdigital.com> Message-ID: However, to people with absolutely no background in programming with other languages, it makes perfect sense. Rather than ruin such a wonderful boost in learning and productivity, I would rather have a new editor that brings all of the object scripts together into one editing field, yet makes it clear to which object the block of code belongs. ~Roger On Jan 21, 2016 12:44 AM, "Matt Maier" wrote: > I'm trying to put as much of the logic into script only stacks as possible > cuz I want my application to be open source contribution friendly. Livecode > actually makes that counterintuitive because it's so tempting to put little > handlers in each control. > On Jan 20, 2016 12:45, "Bob Sneidar" wrote: > > > > > On Jan 20, 2016, at 10:14 , Mark Waddingham > mark at livecode.com>> wrote: > > > > For example, many document-centric apps will have a 'Save' function. On > > Mac this is typically 'just' in the File menu. However, on Windows it is > > usual to have it both in the File menu *and* as a button on a document's > > toolbar. If the code for the 'save' action is not factored out you end up > > with duplicated code - so it is quite natural to move this code 'down' > into > > core logic. > > > > Oh right yes I do that too. As soon as I need to access the same code > from > > multiple locations, I will often do that, but sometimes I will just send > a > > mouseUp (or call a handler) from the object itself. A lot has to do with > > whether or not the object script has relative references to itself of the > > card/stack it belongs to. Sometimes moving complex code requires a lot of > > refactoring, so rather than do that, I just send or dispatch to the > handler > > in the object, rather than go through the nonsense of re-debugging > > everything all over again. > > > > 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 rdimola at evergreeninfo.net Thu Jan 21 09:31:54 2016 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Thu, 21 Jan 2016 09:31:54 -0500 Subject: [OT] FW: new important message (SPAM) Message-ID: <001301d15458$79c628e0$6d527aa0$@net> Getting more of this spam virus. Somebody is compromised. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net Phone: 518-636-3998 Ex:11 Cell: 518-796-9332 From: Recipient [mailto:neil.davis at davismaterial.com] Sent: Thursday, January 21, 2016 4:04 AM To: How to use LiveCode; Mark Waddingham; MikeKerner; Ralph DiMola; mats.wilstrand Subject: Fw: new important message Hello! New message, please read LINK REMOVED Recipient From dixonja at hotmail.co.uk Thu Jan 21 09:51:09 2016 From: dixonja at hotmail.co.uk (John Dixon) Date: Thu, 21 Jan 2016 14:51:09 +0000 Subject: putting binary data into a mySQL database In-Reply-To: <56A0CDA2.4090003@livecode.com> References: , , , , <56A0CDA2.4090003@livecode.com> Message-ID: Can someone tell me what I am doing wrong here ? I am not able to insert data into the table 'thenamer'.. When the script runs nothing is returned in whathappened, the table name is thenamer the fields in the table are idNo, thename, thechat I know that the .lc script works without trying to insert anything into the database, as I can get it to return to me the contents of the variable thestuff as shown in the second .lc script below Any help, pointers, whisky glady accepted... as I'm losing hair...:-) The .lc script behaves when not trying to insert data into the database... Date: Thu, 21 Jan 2016 12:22:58 +0000 > From: neil at livecode.com > To: use-livecode at lists.runrev.com > Subject: Re: putting binary data into a mySQL database > > Hi John, > > You should be able to use the URLEncode when passing it to the .lc > script and then URLdecode to decoded it back to it original form. > > Kind Regards, > > Neil > > > > > LiveCode Technical Support and Content Creation Lead > neil at livecode.com > > LiveCode > +44 (0) 845 219 8923. > 25A Thistle Street Lane South West, Edinburgh, EH2 1EW > http://www.livecode.com > > Facebook > Twitter Youtube > Linkedin > > > > On 21/01/2016 12:10, John Dixon wrote: > > Thanks for the reply.. :-) > > > > I though have another question, How do I pass encrypted data to an .lc script ? > > > > > >> Date: Thu, 21 Jan 2016 19:30:09 +0800 > >> Subject: Re: putting binary data into a mySQL database > >> From: lan.kc.macmail at gmail.com > >> To: use-livecode at lists.runrev.com > >> > >> Look up revExecuteSQL in the Dictionary. Of particular interest: > >> > >> To pass binary data in a variable in the variablesList, prepend "*b" to the > >>> variable name. The *revExecuteSQL* command strips the binary marker "*b" > >>> and passes it to the database as binary data, rather than text data. > >> > >> Basically you need to be using the variable list form of revExecuteSQL > >> rather than passing the data directly. Also there is a note about binary in > >> arrays that are being loaded into dbs. > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode 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 rman at free.fr Thu Jan 21 09:39:55 2016 From: rman at free.fr (Robert Mann) Date: Thu, 21 Jan 2016 06:39:55 -0800 (PST) Subject: [On-Rev] TIO: again all index files were overwritten In-Reply-To: <301C153F-929D-432B-8618-558B14D99141@m-r-d.de> References: <301C153F-929D-432B-8618-558B14D99141@m-r-d.de> Message-ID: <1453387195262-4700355.post@n4.nabble.com> Here it goes again to on my account on too. All index files corrupted. And have to work on a site fast!! So 'i'll do the restoring myself.. again! Anyways.. thanks team for being on the watch out, => as said it would be really nice just to have a mailing list of users and warn them so that we can check and feed back in time. Is that.. way overhead, Heather, Kevin??? ??? thanks, RObert -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/On-Rev-TIO-again-all-index-files-were-overwritten-tp4700247p4700355.html Sent from the Revolution - User mailing list archive at Nabble.com. From dixonja at hotmail.co.uk Thu Jan 21 10:06:56 2016 From: dixonja at hotmail.co.uk (John Dixon) Date: Thu, 21 Jan 2016 15:06:56 +0000 Subject: (sorted) putting binary data into a mySQL database In-Reply-To: References: , , , , , , , <56A0CDA2.4090003@livecode.com>, Message-ID: APOLOGIES TO ALL WHO HAVE READ MY OTHER POSTS ON THIS... I have got everything to work... err ... there was some finger trouble hanging around the script... :-( > From: dixonja at hotmail.co.uk > To: use-livecode at lists.runrev.com > Subject: RE: putting binary data into a mySQL database > Date: Thu, 21 Jan 2016 14:51:09 +0000 > > > Can someone tell me what I am doing wrong here ? I am not able to insert data into the table 'thenamer'.. > When the script runs nothing is returned in whathappened, > > the table name is thenamer > the fields in the table are idNo, thename, thechat > > I know that the .lc script works without trying to insert anything into the database, as I can get it to return to me the contents of the variable thestuff as shown in the second .lc script below > > Any help, pointers, whisky glady accepted... as I'm losing hair...:-) > > put $_GET["A"] into tAction > > get revOpenDatabase("mysql", "localhost", "xxxxxxxx", "xxxxxxx", "xxxxxxx") > put it into theDataRef > > if tAction = "request" then > put $_GET["boodata"] into thestuff > > put "thenamer" into tTableName > put "thename, thechat" into tFields > put "John" into thename > put thestuff into thechat > > put "INSERT INTO" & tTableName & "(" & tFields & ") VALUES(:1,:2)" into tSQL > revExecuteSQL theDataRef, tSQL, "thename","theChat" > put the result into whathappened > > put whathappened > revCloseDataBase theDataRef > > quit > end if > ?> > > The .lc script behaves when not trying to insert data into the database... > > put $_GET["A"] into tAction > > get revOpenDatabase("mysql", "localhost", "xxxxxxxx", "xxxxxxxx", "xxxxxxxx") > put it into theDataRef > > if tAction = "request" then > put $_GET["boodata"] into thestuff > > > > put thestuff > revCloseDataBase theDataRef > > quit > end if > ?> > > > > Date: Thu, 21 Jan 2016 12:22:58 +0000 > > From: neil at livecode.com > > To: use-livecode at lists.runrev.com > > Subject: Re: putting binary data into a mySQL database > > > > Hi John, > > > > You should be able to use the URLEncode when passing it to the .lc > > script and then URLdecode to decoded it back to it original form. > > > > Kind Regards, > > > > Neil > > > > > > > > > > LiveCode Technical Support and Content Creation Lead > > neil at livecode.com > > > > LiveCode > > +44 (0) 845 219 8923. > > 25A Thistle Street Lane South West, Edinburgh, EH2 1EW > > http://www.livecode.com > > > > Facebook > > Twitter Youtube > > Linkedin > > > > > > > > On 21/01/2016 12:10, John Dixon wrote: > > > Thanks for the reply.. :-) > > > > > > I though have another question, How do I pass encrypted data to an .lc script ? > > > > > > > > >> Date: Thu, 21 Jan 2016 19:30:09 +0800 > > >> Subject: Re: putting binary data into a mySQL database > > >> From: lan.kc.macmail at gmail.com > > >> To: use-livecode at lists.runrev.com > > >> > > >> Look up revExecuteSQL in the Dictionary. Of particular interest: > > >> > > >> To pass binary data in a variable in the variablesList, prepend "*b" to the > > >>> variable name. The *revExecuteSQL* command strips the binary marker "*b" > > >>> and passes it to the database as binary data, rather than text data. > > >> > > >> Basically you need to be using the variable list form of revExecuteSQL > > >> rather than passing the data directly. Also there is a note about binary in > > >> arrays that are being loaded into dbs. > > >> _______________________________________________ > > >> use-livecode mailing list > > >> use-livecode 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 Thu Jan 21 10:54:14 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 21 Jan 2016 07:54:14 -0800 Subject: [OT] FW: new important message (SPAM) In-Reply-To: <001301d15458$79c628e0$6d527aa0$@net> References: <001301d15458$79c628e0$6d527aa0$@net> Message-ID: <56A0FF26.4090400@fourthworld.com> Ralph DiMola wrote: > Getting more of this spam virus. Somebody is compromised. Maybe. As we've discussed here before, I haven't seen one of these particular spoofs in recent months which didn't use publicly findable info, just cleverly packaged. Short of not using the Internet, I'm not sure there's much anyone can do to stop clever spoofs or other spam. -- Richard Gaskin Fourth World Systems Software Design and Development for Desktop, Mobile, and Web ____________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From roland.huettmann at gmail.com Thu Jan 21 11:12:56 2016 From: roland.huettmann at gmail.com (Roland Huettmann) Date: Thu, 21 Jan 2016 17:12:56 +0100 Subject: LC 8.0 dp13 crash when pasting script through clipboard into script editor In-Reply-To: <569FCBEE.2040304@fourthworld.com> References: <569FCBEE.2040304@fourthworld.com> Message-ID: Thanks for the comment. I have filed a bug report. Also I found that fields do not wrap text in this version 8 dp 13. Hoping very much for a stable version 8 soon to start development. Roland On 20 January 2016 at 19:03, Richard Gaskin wrote: > Roland Huettmann wrote: > >> If someone also experienced this, I will file a bug report. >> >> I installed LC 8.0.0 dp 13 on a Windows machine, OS 8.1. >> >> When trying to copy script or any text from some other application and >> paste it from clipboard to be inserted into the opened script editor, LC >> crashes each time. It crashes without me having to kill the process, but >> repeatedly is crashing being not-responsive. >> > > I haven't experienced that myself, but please do submit the report anyway > if it's repeatable for you. > > Deep revisions have been made to clipboard handling in v8 to support some > exciting new features, but the chances of regression go along with that so > your report will be very valuable. > > -- > 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 brahma at hindu.org Thu Jan 21 15:36:19 2016 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Thu, 21 Jan 2016 20:36:19 +0000 Subject: Stack Bloated Suddenly Message-ID: I had a stack that was 2.4 MB on disk at 9:20 am I worked on a few scripts. No new content added? fixed small bugs in a few lines of code saved again at 10:32 (actually many times in that hour) Now the stack is 4MB on disk Where did the bloat come from? Is there a way to examine/analyze a stack to see what elements are taking bytes on disk? BR From monte at appisle.net Thu Jan 21 21:45:50 2016 From: monte at appisle.net (Monte Goulding) Date: Fri, 22 Jan 2016 13:45:50 +1100 Subject: Multi-platform development. In-Reply-To: References: <5693D305.8010401@tweedly.net> <595A91E6-534B-4C61-9D79-68A973F1B670@livecode.com> <9C33170F-33B3-4B15-A13B-593EF34AD855@iotecdigital.com> <8c1be51d35f8db24e10fd8b9b12187d1@livecode.com> <60A80D64-22F4-4F8A-A5D7-1DE1350F311D@iotecdigital.com> Message-ID: <2F9A49DA-F85F-4C05-A2E2-FE5B191675D8@appisle.net> > On 22 Jan 2016, at 12:07 AM, Roger Eller wrote: > > However, to people with absolutely no background in programming with other > languages, it makes perfect sense. Rather than ruin such a wonderful boost > in learning and productivity, I would rather have a new editor that brings > all of the object scripts together into one editing field, yet makes it > clear to which object the block of code belongs. One of the features I enjoy in Xcode is a split screen view with the second script either automatically switching to a closely related view (think header file or super class etc) or to any manually chosen script. Something like that would be nice. In certain circumstances it is particularly helpful. It requires a large screen though? Cheers Monte From ali.lloyd at livecode.com Fri Jan 22 05:00:58 2016 From: ali.lloyd at livecode.com (Ali Lloyd) Date: Fri, 22 Jan 2016 10:00:58 +0000 Subject: Stack Bloated Suddenly In-Reply-To: References: Message-ID: I suspect a custom property is the most likely culprit. I found recently in some IDE stacks that cRevGeneral["script"] contained whole large scripts which were inflating the size of the stackfiles. I'm not sure exactly where these came from, but presumably some kind of plugin was setting it. On Thu, Jan 21, 2016 at 8:36 PM Sannyasin Brahmanathaswami wrote: > I had a stack that was 2.4 MB on disk at 9:20 am > > I worked on a few scripts. No new content added? fixed small bugs in a few > lines of code > > saved again at 10:32 (actually many times in that hour) > > Now the stack is 4MB on disk > > Where did the bloat come from? Is there a way to examine/analyze a stack > to see what elements are taking bytes on disk? > > BR > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 22 05:19:22 2016 From: dave at applicationinsight.com (Dave Kilroy) Date: Fri, 22 Jan 2016 02:19:22 -0800 (PST) Subject: Any LiveCoders who also use Xamarin? Message-ID: <1453457962591-4700362.post@n4.nabble.com> Hi all I'm in an slightly weird situation with a client where they want me to use Xamarin instead of LiveCode for a project (for internal 'political' reasons as much as anything as far as I can see) - have any of you tried Xamarin and if so what did you think of it? Kind regards Dave ----- "The difference between genius and stupidity is; genius has its limits." - Albert Einstein -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Any-LiveCoders-who-also-use-Xamarin-tp4700362.html Sent from the Revolution - User mailing list archive at Nabble.com. From mark at sorcery-ltd.co.uk Fri Jan 22 06:11:17 2016 From: mark at sorcery-ltd.co.uk (Mark Wilcox) Date: Fri, 22 Jan 2016 11:11:17 +0000 Subject: Any LiveCoders who also use Xamarin? In-Reply-To: <1453457962591-4700362.post@n4.nabble.com> References: <1453457962591-4700362.post@n4.nabble.com> Message-ID: <1453461077.3358471.499486106.3A4604AB@webmail.messagingengine.com> > I'm in an slightly weird situation with a client where they want me to > use > Xamarin instead of LiveCode for a project (for internal 'political' > reasons > as much as anything as far as I can see) - have any of you tried Xamarin > and > if so what did you think of it? I think the important thing to know about Xamarin before getting started is that there are 2 very different ways to do the UI. One is to build a separate UI for each platform and there Xamarin really just provides thin (auto-generated) C# wrappers around the platform UI components - so you have to learn the APIs for each platform. The other is Xamarin.Forms, which is a true cross-platform solution but relatively limited and designed for rapid application development. Xamarin is pretty capable (indeed you can access any native API) but performs quite poorly on Android if you need to call the Android Java APIs a lot. Nothing you'd worry about in an "enterprise" app but probably not advisable for a mass market consumer effort. Depending on what platforms you need to support, whether you can use Forms, and whether or not you already know C#, there can be a pretty steep learning curve. Hope that helps, Mark From tfabacher at gmail.com Fri Jan 22 10:27:29 2016 From: tfabacher at gmail.com (Todd Fabacher) Date: Fri, 22 Jan 2016 16:27:29 +0100 Subject: LiveCode @ Davos Message-ID: Hello LiveCoders, I am at Davos for a little business and was inspired to create a LiveCode App during the conference. I am creating a blog post for each day, and the goal is to create an app that "will make the world a better place", which is the goal of the conference. I am also trying to pitch LiveCode a the perfect solution for what many of the leaders are complaining about: falling behind in technology and creating a barrier of entry into the startup world for the disadvantaged. I think LiveCode can be part of the solution. There are 2 post up there now and I have have a few more to go to create my App. So find out what's going on at what seems to be the center of the world for the week and if you are so inclined, help us finish a biz planing app for micro and small businesses around the world. Here are the two blog post so far: https://livecode.com/planning-for-better-at-the-world-economic-forum/ https://livecode.com/day-2-in-davos-security-wireframing/ Please make comments and check out the code.... Cheers, Todd Fabacher From dave at applicationinsight.com Fri Jan 22 11:29:34 2016 From: dave at applicationinsight.com (Dave Kilroy) Date: Fri, 22 Jan 2016 08:29:34 -0800 (PST) Subject: Any LiveCoders who also use Xamarin? In-Reply-To: <1453461077.3358471.499486106.3A4604AB@webmail.messagingengine.com> References: <1453457962591-4700362.post@n4.nabble.com> <1453461077.3358471.499486106.3A4604AB@webmail.messagingengine.com> Message-ID: <1453480174850-4700365.post@n4.nabble.com> Thank you Mark, very helpful Xamarin is Mono re-born with lots of extra bells and whistles, and I remember researching it back in about 2009 before I chose LiveCode - I used to be a .NET developer (VB.NET rather than C#) before I escaped from the world of Microsoft serfdom ... which I don't want to return to! They do have Xamarin Studio which runs on a mac so I wouldn't have to return to Visual Studio Yep I'd heard about the limitations of their 'forms' but hadn't realised Android performance was generally slow... I would prefer to be working in LiveCode! Kind regards Dave ----- "The difference between genius and stupidity is; genius has its limits." - Albert Einstein -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Any-LiveCoders-who-also-use-Xamarin-tp4700362p4700365.html Sent from the Revolution - User mailing list archive at Nabble.com. From david at viral.academy Fri Jan 22 12:09:30 2016 From: david at viral.academy (David Bovill) Date: Fri, 22 Jan 2016 18:09:30 +0100 Subject: Passing data to shell() Message-ID: I'm wandering if there is a more advanced way to pass data from a Livecode variable to a command line process using shell(). I'm used to using "echo 'Hello World' > less" or saving the data to disk then passing the filename to shell() - both are slower and messier than needed. Is there a better way perhaps using environmental variables or open process? The actual use-case here is to use pandoc to convert documents that I fetch from REST calls. Thanks From blueback09 at gmail.com Fri Jan 22 13:01:55 2016 From: blueback09 at gmail.com (Matt Maier) Date: Fri, 22 Jan 2016 10:01:55 -0800 Subject: mouse button Message-ID: I used mouse() in code that I've only personally run on my Windows machine. My friend ran the same code on Ubuntu and we found that mouse() is off by 1. So on Windows mouse(1,2,3) correspond to the left, middle, and right mouse buttons. But on Ubuntu the same buttons are mouse(0,1,2). Is that how mouse() is supposed to work, or is that a bug? From richmondmathewson at gmail.com Fri Jan 22 13:37:04 2016 From: richmondmathewson at gmail.com (Richmond) Date: Fri, 22 Jan 2016 20:37:04 +0200 Subject: mouse button In-Reply-To: References: Message-ID: <56A276D0.7020501@gmail.com> On 22/01/16 20:01, Matt Maier wrote: > I used mouse() in code that I've only personally run on my Windows machine. > My friend ran the same code on Ubuntu and we found that mouse() is off by 1. > > So on Windows mouse(1,2,3) correspond to the left, middle, and right mouse > buttons. But on Ubuntu the same buttons are mouse(0,1,2). > > Is that how mouse() is supposed to work, or is that a bug? > _______________________________________________ > I'm having a problem as I can find no reference to "mouse()" in the documentation, so I really cannot understand how that works. Richmond. From dixonja at hotmail.co.uk Fri Jan 22 13:46:31 2016 From: dixonja at hotmail.co.uk (John Dixon) Date: Fri, 22 Jan 2016 18:46:31 +0000 Subject: mouse button In-Reply-To: <56A276D0.7020501@gmail.com> References: , <56A276D0.7020501@gmail.com> Message-ID: look harder... mouse([buttonNumber]) the mouse from the dictionary... > Subject: Re: mouse button > To: use-livecode at lists.runrev.com > From: richmondmathewson at gmail.com > Date: Fri, 22 Jan 2016 20:37:04 +0200 > > On 22/01/16 20:01, Matt Maier wrote: > > I used mouse() in code that I've only personally run on my Windows machine. > > My friend ran the same code on Ubuntu and we found that mouse() is off by 1. > > > > So on Windows mouse(1,2,3) correspond to the left, middle, and right mouse > > buttons. But on Ubuntu the same buttons are mouse(0,1,2). > > > > Is that how mouse() is supposed to work, or is that a bug? > > _______________________________________________ > > > > I'm having a problem as I can find no reference to "mouse()" in the > documentation, > so I really cannot understand how that works. > > 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 mark at livecode.com Fri Jan 22 14:48:08 2016 From: mark at livecode.com (Mark Waddingham) Date: Fri, 22 Jan 2016 20:48:08 +0100 Subject: mouse button In-Reply-To: References: Message-ID: On 2016-01-22 19:01, Matt Maier wrote: > I used mouse() in code that I've only personally run on my Windows > machine. > My friend ran the same code on Ubuntu and we found that mouse() is off > by 1. > > So on Windows mouse(1,2,3) correspond to the left, middle, and right > mouse > buttons. But on Ubuntu the same buttons are mouse(0,1,2). > > Is that how mouse() is supposed to work, or is that a bug? That sounds like a bug to me - button numbers should be consistent across platforms... Could you file a report in the Quality Center? Thanks! Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From richmondmathewson at gmail.com Fri Jan 22 14:56:59 2016 From: richmondmathewson at gmail.com (Richmond) Date: Fri, 22 Jan 2016 21:56:59 +0200 Subject: mouse button In-Reply-To: References: <56A276D0.7020501@gmail.com> Message-ID: <56A2898B.3030301@gmail.com> On 22/01/16 20:46, John Dixon wrote: > look harder... > > mouse([buttonNumber]) > the mouse > > from the dictionary... > > I did and gottit. Thanks. Richmond. From richmondmathewson at gmail.com Fri Jan 22 16:00:11 2016 From: richmondmathewson at gmail.com (Richmond) Date: Fri, 22 Jan 2016 23:00:11 +0200 Subject: mouse button In-Reply-To: References: <56A276D0.7020501@gmail.com> Message-ID: <56A2985B.6090704@gmail.com> On 22/01/16 20:46, John Dixon wrote: > look harder... > > mouse([buttonNumber]) > the mouse > > from the dictionary... > > > So, I made a wee stack containing a field: fld "MB" and put this in the cardScript: on mouseDown if mouse(1) is "down" then put 1 into fld "MB" end if if mouse(2) is "down" then put 2 into fld "MB" end if if mouse(3) is "down" then put 3 into fld "MB" end if end mouseDown and when I click any of the mouseButtons I get NO result. Where am I going wrong? Richmond. From richmondmathewson at gmail.com Fri Jan 22 16:14:01 2016 From: richmondmathewson at gmail.com (Richmond) Date: Fri, 22 Jan 2016 23:14:01 +0200 Subject: mouse button In-Reply-To: <56A2985B.6090704@gmail.com> References: <56A276D0.7020501@gmail.com> <56A2985B.6090704@gmail.com> Message-ID: <56A29B99.6050305@gmail.com> On 22/01/16 23:00, Richmond wrote: > On 22/01/16 20:46, John Dixon wrote: >> look harder... >> >> mouse([buttonNumber]) >> the mouse >> >> from the dictionary... >> >> >> > > So, I made a wee stack containing a field: fld "MB" > > and put this in the cardScript: > > on mouseDown > if mouse(1) is "down" then > put 1 into fld "MB" > end if > if mouse(2) is "down" then > put 2 into fld "MB" > end if > if mouse(3) is "down" then > put 3 into fld "MB" > end if > end mouseDown > > and when I click any of the mouseButtons > I get NO result. > > Where am I going wrong? > > Richmond. Well, where I went wrong was I forgot to bung in some code to detect a '0' button. I'm uploading my stack so that . . . https://www.dropbox.com/s/qx5no1yu04gib9j/Mbutt.zip?dl=0 Richmond. From bobsneidar at iotecdigital.com Fri Jan 22 17:16:17 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 22 Jan 2016 22:16:17 +0000 Subject: putting binary data into a mySQL database In-Reply-To: References: Message-ID: <4912395E-0014-4158-A595-67B9D71802DE@iotecdigital.com> I put it into a archer(50) column. I don't think you need to store it as binary data. I don't and haven't had any problems so far. Bob S > On Jan 21, 2016, at 03:20 , John Dixon wrote: > > How to I put encrypted data.. ie :- > > Salted__c????9??YF? ???U[????F > > into a record in a mySQL database ? > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 canelasoftware.com Fri Jan 22 19:51:20 2016 From: mark at canelasoftware.com (Mark Talluto) Date: Fri, 22 Jan 2016 16:51:20 -0800 Subject: LiveCode @ Davos In-Reply-To: References: Message-ID: <36E3F337-49C1-47D6-9E37-1247E417E85B@canelasoftware.com> > On Jan 22, 2016, at 7:27 AM, Todd Fabacher wrote: > > Hello LiveCoders, > > I am at Davos for a little business and was inspired to create a LiveCode > App during the conference. ? [snip] Hi Todd. Interesting stuff. Are you planning to market this product once it is finished? Or, is this something you give out for free once it is ready? Or, is this more a proof of concept that you do not intend to complete but give away for some other party to finish up? Best regards, Mark Talluto livecloud.io canelasoftware.com From simon at asato-media.com Fri Jan 22 21:47:36 2016 From: simon at asato-media.com (Simon) Date: Fri, 22 Jan 2016 18:47:36 -0800 (PST) Subject: Public thanks to David Williams! Message-ID: <1453517256722-4700376.post@n4.nabble.com> It's 3 am over there and he responded to and fixed a fault on Diesel in 10 minutes. Does he sleep in the server room? Actually with the Diesel problems it's probably under his bed in his flat in Edinburgh. OK, sorry to bring this down. Thank You David! Simon -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Public-thanks-to-David-Williams-tp4700376.html Sent from the Revolution - User mailing list archive at Nabble.com. From tfabacher at gmail.com Sat Jan 23 08:01:17 2016 From: tfabacher at gmail.com (Todd Fabacher) Date: Sat, 23 Jan 2016 14:01:17 +0100 Subject: LiveCode @ Davos Message-ID: Hi Mark. Great question. Yes, we 100% will make this a thriving company. This will be the first app of many. Talking with my team, they want to expand into the the Business Canvas Model app and also into the vertical market like specific apps like Marketing. We feel like creating an enterprise solution by creating a central repository for all the small plans. This would be great for franchise companies. We are also focused on a solution to create elaborate reports in LiveCode from the phone. The real issue is having the report in HTML and a PDF to email, so we are meeting to find a solution for that now. No matter what business app you are developing, having a proper reporting infrastructure is critical. This needs to be solved by us today. We just had our daily morning call and it seem we are moving into the direction of HTML and then converting that into PDF. Yes, we will be sharing most of the code, but the idea is to crete a business out of it. So we will not be giving away the completed final project. --Todd > On Jan 22, 2016, at 7:27 AM, Todd Fabacher wrote: > > Hello LiveCoders, > > I am at Davos for a little business and was inspired to create a LiveCode > App during the conference. ? [snip] Hi Todd. Interesting stuff. Are you planning to market this product once it is finished? Or, is this something you give out for free once it is ready? Or, is this more a proof of concept that you do not intend to complete but give away for some other party to finish up? Best regards, Mark Talluto livecloud.io canelasoftware.com From rjd318 at gmail.com Sat Jan 23 08:12:29 2016 From: rjd318 at gmail.com (Jose Damaso) Date: Sat, 23 Jan 2016 07:12:29 -0600 Subject: LiveCode @ Davos In-Reply-To: References: Message-ID: I'm intrigued at what you are trying to do -- the idea is great and watching the process and development of it is surpisingly exciting. This is how a borderless business mind works. On Fri, Jan 22, 2016 at 9:27 AM, Todd Fabacher wrote: > Hello LiveCoders, > > I am at Davos for a little business and was inspired to create a LiveCode > App during the conference. I am creating a blog post for each day, and the > goal is to create an app that "will make the world a better place", which > is the goal of the conference. I am also trying to pitch LiveCode a the > perfect solution for what many of the leaders are complaining about: > falling behind in technology and creating a barrier of entry into the > startup world for the disadvantaged. I think LiveCode can be part of the > solution. > > There are 2 post up there now and I have have a few more to go to create my > App. So find out what's going on at what seems to be the center of the > world for the week and if you are so inclined, help us finish a biz planing > app for micro and small businesses around the world. Here are the two blog > post so far: > > https://livecode.com/planning-for-better-at-the-world-economic-forum/ > https://livecode.com/day-2-in-davos-security-wireframing/ > > Please make comments and check out the code.... > > Cheers, > > Todd Fabacher > _______________________________________________ > use-livecode mailing list > use-livecode at 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 23 09:08:55 2016 From: smudge.andy at googlemail.com (AndyP) Date: Sat, 23 Jan 2016 06:08:55 -0800 (PST) Subject: LiveCode @ Davos In-Reply-To: References: Message-ID: <1453558135972-4700379.post@n4.nabble.com> Hi Todd, You're giving me an interesting and different perspective of what goes on at Davos, great absorbing blog.. waiting eagerly for the next installment! I downloaded the stacks and all worked well in my ide running LC6.7.3 on Linux Mint 17.2 Cinnamon. You're right about the sliders for setting the values, very initiative and easy. It will be fantastic if you manage to get positive interest from delegates..good hunting :-) ----- 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/LiveCode-Davos-tp4700364p4700379.html Sent from the Revolution - User mailing list archive at Nabble.com. From lists at mangomultimedia.com Sat Jan 23 10:14:35 2016 From: lists at mangomultimedia.com (Trevor DeVore) Date: Sat, 23 Jan 2016 10:14:35 -0500 Subject: LiveCode @ Davos In-Reply-To: References: Message-ID: On Saturday, January 23, 2016, Todd Fabacher wrote: > > > We are also focused on a solution to create elaborate reports in LiveCode > from the phone. The real issue is having the report in HTML and a PDF to > email, so we are meeting to find a solution for that now. No matter what > business app you are developing, having a proper reporting infrastructure > is critical. This needs to be solved by us today. We just had our daily > morning call and it seem we are moving into the direction of HTML and then > converting that into PDF If you haven't already, take a look at Prince. It converts HTML to PDF and does a great job of it. docraptor.com is an online service that uses Prince and provides an API. -- Trevor DeVore From jiml at netrin.com Sat Jan 23 14:01:42 2016 From: jiml at netrin.com (Jim Lambert) Date: Sat, 23 Jan 2016 11:01:42 -0800 Subject: LiveCode @ Davos In-Reply-To: References: Message-ID: Good, Your evangelizing LC at Davos is very cool. Bravos at Davos! Jim Lambert From sims at ezpzapps.com Sat Jan 23 15:16:26 2016 From: sims at ezpzapps.com (sims at ezpzapps.com) Date: Sat, 23 Jan 2016 21:16:26 +0100 Subject: Fw: new important message Message-ID: <00000dd7c60c$f7d57668$d3480254$@ezpzapps.com> Hello! New message, please read sims at ezpzapps.com From bodine at bodinetraininggames.com Sat Jan 23 18:42:11 2016 From: bodine at bodinetraininggames.com (tbodine) Date: Sat, 23 Jan 2016 15:42:11 -0800 (PST) Subject: Modifying revErrorReport Message-ID: <1453592531142-4700383.post@n4.nabble.com> Hi All. Last year, I modified revErrorReport in LC 6.5.1 in order to add more environment data (platform, version #, etc) to users' emailed Bug Reports. That worked well. Now that I'm working in LC 7.1.1, I need to repeat those modifications to revErrorReport*. But upon saving the edited stack, I get an error: "Can't save stack revErrorReport due to an error: Can't open stack backup file Check the file path, and make sure you have sufficient permissions." I have enabled all permissions (working on Win 7), but the save error persists. Anyone know what "stack backup file" this refers to or have any other ideas about this? Thanks, Tom * a substack of "revstandalonesettings.rev" -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Modifying-revErrorReport-tp4700383.html Sent from the Revolution - User mailing list archive at Nabble.com. From lan.kc.macmail at gmail.com Sat Jan 23 21:16:11 2016 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Sun, 24 Jan 2016 10:16:11 +0800 Subject: putting binary data into a mySQL database In-Reply-To: References: <56A0CDA2.4090003@livecode.com> Message-ID: On Thu, Jan 21, 2016 at 10:51 PM, John Dixon wrote: > > Can someone tell me what I am doing wrong here ? > I guess you've figured it out by now, but just in case: > > put "INSERT INTO" & tTableName & "(" & tFields & ") VALUES(:1,:2)" into > tSQL > = INSERT INTOthenamer(thename,thechat) VALUES(:1,:2) I think you want: put "INSERT INTO" && tTableName && "(" & tFields & ") VALUES(:1,:2)" into tSQL = INSERT INTO thenamer (thename,thechat) VALUES(:1,:2) HTH From prothero at earthednet.org Sun Jan 24 01:49:48 2016 From: prothero at earthednet.org (William Prothero) Date: Sat, 23 Jan 2016 22:49:48 -0800 Subject: Modifying revErrorReport In-Reply-To: <1453592531142-4700383.post@n4.nabble.com> References: <1453592531142-4700383.post@n4.nabble.com> Message-ID: <977A1332-A825-47D4-91BA-92E5864AFE30@earthednet.org> Tom: One problem with using the built-in error report feature is that if a user is operating on a public computer, it may not have local email support. For instance, I had an app that generated an error report on a Windows machine and it didn?t have outlook set up, so it didn?t happen. I?ve set up my server so I can send emails through it, from Livecode standalones. i think that?s a much more robust way of sending error reports. I?ve only just gotten it working so i can also upload and email attachments, mainly so student work can be sent to instructors, if needed. It?s php based. It was a pain getting the headers right and there was a bug in the example in the documentation that made it even more difficult to get working. Anyway, let me know if you would like my tutorial stack when I get it done in a day or so. Best, Bill > On Jan 23, 2016, at 3:42 PM, tbodine wrote: > > Hi All. > > Last year, I modified revErrorReport in LC 6.5.1 in order to add more > environment data (platform, version #, etc) to users' emailed Bug Reports. > That worked well. > > Now that I'm working in LC 7.1.1, I need to repeat those modifications to > revErrorReport*. But upon saving the edited stack, I get an error: > "Can't save stack revErrorReport due to an error: Can't open stack backup > file Check the file path, and make sure you have sufficient permissions." > > I have enabled all permissions (working on Win 7), but the save error > persists. Anyone know what "stack backup file" this refers to or have any > other ideas about this? > > Thanks, > Tom > * a substack of "revstandalonesettings.rev" > > > > > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/Modifying-revErrorReport-tp4700383.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 bodine at bodinetraininggames.com Sun Jan 24 11:08:58 2016 From: bodine at bodinetraininggames.com (tbodine) Date: Sun, 24 Jan 2016 08:08:58 -0800 (PST) Subject: Modifying revErrorReport In-Reply-To: <977A1332-A825-47D4-91BA-92E5864AFE30@earthednet.org> References: <1453592531142-4700383.post@n4.nabble.com> <977A1332-A825-47D4-91BA-92E5864AFE30@earthednet.org> Message-ID: <1453651738927-4700386.post@n4.nabble.com> Hi Bill. Yes, I'd really like to see your tutorial on that approach. Thanks! Tom -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Modifying-revErrorReport-tp4700383p4700386.html Sent from the Revolution - User mailing list archive at Nabble.com. From mark.rauterkus at gmail.com Sun Jan 24 14:15:26 2016 From: mark.rauterkus at gmail.com (Mark Rauterkus) Date: Sun, 24 Jan 2016 14:15:26 -0500 Subject: Love, love, love the idea of a business plan tool kit in LiveCode with SLIDERS Message-ID: Hi All, especially Todd, Subject was: LiveCode @ Davos I love the idea of a business plan toolkit in LiveCode. I really love the idea of a set of sliders that can help to set a number of units (widgets, costs, sales, expenses) and have them display numbers and projections in other line items. For example, If I have 200 kids in our water polo summer camp, we'll need 35 on staff. But if we have 2,000, we'll need 250 at a cost of $ and summer budget of $. etc. Then, in year 1 we have 200, but sliders and projections can be staged for the next 5 years. Sure, it can all be done in a spreadsheet, but, I want to over-lay those numbers with the number of school-aged kids in grades 3 to 8 in our city, showing the percentage of kids we are NOT able to serve in the past and how it can be with bigger impact in the future. We could ask funders or board members or investors or fellow parents / customers to answer five or ten questions. Then we'd be able to chart a plan for their engagement moving forward with THAT vision. Provide the kids with only 1-hour of practice 1 time a week to also include, more practice time, more days of the week, more money for swim suits, travel to meets, how many meets, more months of the year, more lofty performance goals, etc. Bang, on an iPhone / Andoid app, that would make an inspired set of slider scales to give more meaning to projections and planning. I hate pitching biz ideas and having some pie-in-the-sky number. Then have a challenge saying, "Yes, but... that's too much here and too little there." With that as an app within the document, the future projections can be shifted and the discussion sustains itself. The superintendent of schools, or mayor, etc. might like to fiddle and say, okay, I see where you have 3 pools. But you ask for 8, and then all 15. What happens then? So, with morning, afternoons and evenings things go where??? Splendid outcomes I would expect. Todd, I'm following along. Sending big-time encouragement too to keep going and keep us posted. And, if it is open source, you'd still make a bigger business venture out of it too, I dare predict. So, slide that slider way to the NON-PROPRIETARY side of the scale for me, if you can, without breaking everything. :) Go Todd Go. Safe travels too. -- Ta. Mark Rauterkus Mark at Rauterkus.com PPS Summer Dreamers' Swim & Water Polo Camp Executive Coach Varsity Boys Swim Coach, Pittsburgh Obama Academy Recent Head Water Polo Coach, Carnegie Mellon University Women's Club Team Pittsburgh Combined Water Polo Team http://CLOH.org 412 298 3432 = cell From pete at lcsql.com Sun Jan 24 15:12:47 2016 From: pete at lcsql.com (Peter Haworth) Date: Sun, 24 Jan 2016 20:12:47 +0000 Subject: Printing to pdf Message-ID: Following along with the lesson at http://lessons.livecode.com/m/4071/l/29177-how-to-create-pdfs-using-livecode. All is the same as the lesson except adjusted the print rectangle to fit the card I'm printing. Running on OSX 10.10 and LC8 DP11, using Preview to display the pdf. Font is Arial, size 10. The field on my card shows all the text correctly with each line wrapped appropriately. The pdf cuts off the last few characters on each line. If I reduce the width of the print rectangle by approx 50 pixels, the pdf is created correctly. Why is this adjustment necessary and is it a case of trial and error to get the correct width or is there a formula that will yield it? From brahma at hindu.org Sun Jan 24 15:34:43 2016 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sun, 24 Jan 2016 20:34:43 +0000 Subject: One Rect For All specificaiton In-Reply-To: References: Message-ID: go stack url ("http://dev.himalayanacademy.com/stacks/safe-zone.livecode?) OK I finished what I think is a decent 1st iteration of something useful, that demonstrates what we are facing. disclaimer: only showAll is demo'ed Though your head can start swimming when you think about the various options, rations, dimensions, how it translates into physical inches, centimeters etc. The bottom line, using showALL turns out to be very simple: Your safe zone is (I hope I am finally declaring this correctly) 1) for a ?root" 16 X 9 stack: the full width + 75% of the vertical height that will render on a 4 X 3 device ? ergo artists must supply you with 4 X 3 artwork with significant content in the middle 75% vertical space. i.e. 12.5 % bleed top and bottom 2) for a ?root? 4 x 4 3tack: the full height + 75% of the width height that will render on a 4 X 3 device ? ergo artists must supply you with 16 X 9 artwork with significant content in the middle 75% horizontal space i.e. 12.5 % bleed left and right. Translate the above to portrait by flipping the values.. then give actual physical or pixel dimensions to your artist according to your requirements. I will add some more physical real world numbers (pixels/inches to the docs of that stack later. BR On January 18, 2016 at 6:50:02 AM, David Bovill (david at viral.academy) wrote: Send us the stack - and I can use it to demo a new workflow I'm working on. It will have a wiki int eh middle and github at the top - with local "pass the baton" methodology stitched in their somehow :) From jacque at hyperactivesw.com Sun Jan 24 18:40:11 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 24 Jan 2016 17:40:11 -0600 Subject: One Rect For All specificaiton In-Reply-To: References: Message-ID: <56A560DB.9040204@hyperactivesw.com> On 1/24/2016 2:34 PM, Sannyasin Brahmanathaswami wrote: > Your safe zone is (I hope I am finally declaring this correctly) > > 1) for a ?root" 16 X 9 stack: the full width + 75% of the vertical > height that will render on a 4 X 3 device ? ergo artists must supply > you with 4 X 3 artwork with significant content in the middle 75% > vertical space. i.e. 12.5 % bleed top and bottom 2) for a ?root? 4 x > 4 3tack: the full height + 75% of the width height that will render > on a 4 X 3 device ? ergo artists must supply you with 16 X 9 artwork > with significant content in the middle 75% horizontal space i.e. 12.5 > % bleed left and right. I wonder how that will translate to Android. I found these aspect ratios , listed from most common to least: 16:9 5:3 4:3 16:10 3:2 -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From terry.judd at unimelb.edu.au Sun Jan 24 19:41:27 2016 From: terry.judd at unimelb.edu.au (Terry Judd) Date: Mon, 25 Jan 2016 00:41:27 +0000 Subject: One Rect For All specificaiton In-Reply-To: <56A560DB.9040204@hyperactivesw.com> References: <56A560DB.9040204@hyperactivesw.com> Message-ID: I ended going with ?letterbox? on android for my latest phone app and making a few adjustments so that the entire screen is used. I developed initially for iOS using a 320x460 stack that adjusts in height by moving the bottom bar (and sometimes additional elements) down according to the height of the card (which varies for different iPhones). On android I set the display to letterbox and then use a combination of the aspect ratio (derived from the working screenrect) and the width of the stack to determine how ?tall? the stack should be and set it before adjusting the location of the bottom elements in the same way that I do on iOS. I haven?t tested this on a wide range of android phones (Samsung S2, S4 mini and Google Nexus 4 so far) but it seems to work ok. Terry... On 25/01/2016 10:40 am, "use-livecode on behalf of J. Landman Gay" wrote: >On 1/24/2016 2:34 PM, Sannyasin Brahmanathaswami wrote: >> Your safe zone is (I hope I am finally declaring this correctly) >> >> 1) for a ?root" 16 X 9 stack: the full width + 75% of the vertical >> height that will render on a 4 X 3 device ? ergo artists must supply >> you with 4 X 3 artwork with significant content in the middle 75% >> vertical space. i.e. 12.5 % bleed top and bottom 2) for a ?root? 4 x >> 4 3tack: the full height + 75% of the width height that will render >> on a 4 X 3 device ? ergo artists must supply you with 16 X 9 artwork >> with significant content in the middle 75% horizontal space i.e. 12.5 >> % bleed left and right. > >I wonder how that will translate to Android. I found these aspect ratios >, listed from most >common to least: > >16:9 >5:3 >4:3 >16:10 >3:2 > >-- >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 lan.kc.macmail at gmail.com Sun Jan 24 22:46:54 2016 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Mon, 25 Jan 2016 11:46:54 +0800 Subject: [BUG] write to file Message-ID: The Dictionary says that if I open a file for 'update', then 'read from file' to a specific position that when I 'write to file' it will occur at the position I've read to but that's not what I'm seeing in 6.6.5GM, 7.1.1 rc4 and 8.0 dp13 - OS X 10.9.5. In the msg box: set the defaultFolder to specialFolderPath("documents") put "trash this file.txt" into tFileName put "This is a test." into URL ("file:" & specialFolderPath("documents") & "/" & tFileName) open file tFileName for update read from file tFileName for 2 words put it into tResult write "open/read/write/close" to file tFileName close file tFileName put URL ("file:" & specialFolderPath("documents") & "/" & tFileName) into msg put cr & tResult after msg I was expecting: This is open/read/write/close What I'm getting: This is a test.open/read/write/close The 'read' portion is clearly working correctly so there is something wrong with 'write' but I'm surprised that this hasn't broken people's code left right and centre so what am I doing wrong? How do I get LC to write from where I've read to? From colinholgate at gmail.com Mon Jan 25 05:09:55 2016 From: colinholgate at gmail.com (Colin Holgate) Date: Mon, 25 Jan 2016 10:09:55 +0000 Subject: One Rect For All specificaiton In-Reply-To: <56A560DB.9040204@hyperactivesw.com> References: <56A560DB.9040204@hyperactivesw.com> Message-ID: <8BD85642-B428-411A-B921-D7EEEE8CAEB3@gmail.com> The 4:3 to 16:9 is a range, it?s not that it only takes care of those two cases. If you use a 4:3 card and have 16:9 content, on a 16:10 device, you?ll see most of the 16:9 content. There are cases where a device might exceed 16:9. For example, a 16:9 device that is showing some sort of temporary bar along the top. In such a case you might end up with a small amount of border on the far left and right of your content. Not something I would worry about too much! About letter boxing as a solution, that?s probably ok in the Android world, but if for example you solve your iOS needs by letting a 4:3 card have borders on a 16:9 device, Apple would reject the app. > On Jan 24, 2016, at 11:40 PM, J. Landman Gay wrote: > > On 1/24/2016 2:34 PM, Sannyasin Brahmanathaswami wrote: >> Your safe zone is (I hope I am finally declaring this correctly) >> >> 1) for a ?root" 16 X 9 stack: the full width + 75% of the vertical >> height that will render on a 4 X 3 device ? ergo artists must supply >> you with 4 X 3 artwork with significant content in the middle 75% >> vertical space. i.e. 12.5 % bleed top and bottom 2) for a ?root? 4 x >> 4 3tack: the full height + 75% of the width height that will render >> on a 4 X 3 device ? ergo artists must supply you with 16 X 9 artwork >> with significant content in the middle 75% horizontal space i.e. 12.5 >> % bleed left and right. > > I wonder how that will translate to Android. I found these aspect ratios , listed from most common to least: > > 16:9 > 5:3 > 4:3 > 16:10 > 3:2 > > -- > 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 peter.brett at livecode.com Mon Jan 25 06:02:59 2016 From: peter.brett at livecode.com (Peter TB Brett) Date: Mon, 25 Jan 2016 11:02:59 +0000 Subject: [ANN] This Week in LiveCode 17 Message-ID: <56A600E3.7010308@livecode.com> Hi all, Read about new developments in LiveCode open source and the open source community in today's edition of the "This Week in LiveCode" newsletter! Read issue #15 here: https://goo.gl/9sy2fM This is a weekly newsletter about LiveCode, focussing on what's been going on in and around the open source project. New issues will be released weekly on Mondays. We have a dedicated mailing list that will deliver each issue directly to you e-mail, so you don't miss any! Are you doing something interesting with LiveCode Community Edition? Please get in touch and get it featured in "This Week in LiveCode"! Peter -- Dr Peter Brett LiveCode Open Source Team LiveCode on reddit: https://reddit.com/r/livecode From MikeKerner at roadrunner.com Mon Jan 25 09:02:47 2016 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 25 Jan 2016 09:02:47 -0500 Subject: [BUG] write to file In-Reply-To: References: Message-ID: It probably hasn't broken mine because I don't rely on the file pointers. I always read the entire file, modify, then write the entire container back. On Sun, Jan 24, 2016 at 10:46 PM, Kay C Lan wrote: > The Dictionary says that if I open a file for 'update', then 'read from > file' to a specific position that when I 'write to file' it will occur at > the position I've read to but that's not what I'm seeing in 6.6.5GM, 7.1.1 > rc4 and 8.0 dp13 - OS X 10.9.5. In the msg box: > > set the defaultFolder to specialFolderPath("documents") > put "trash this file.txt" into tFileName > put "This is a test." into URL ("file:" & specialFolderPath("documents") & > "/" & tFileName) > open file tFileName for update > read from file tFileName for 2 words > put it into tResult > write "open/read/write/close" to file tFileName > close file tFileName > put URL ("file:" & specialFolderPath("documents") & "/" & tFileName) into > msg > put cr & tResult after msg > > I was expecting: > This is open/read/write/close > > What I'm getting: > This is a test.open/read/write/close > > The 'read' portion is clearly working correctly so there is something wrong > with 'write' but I'm surprised that this hasn't broken people's code left > right and centre so what am I doing wrong? How do I get LC to write from > where I've read 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 > -- 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 roger.e.eller at sealedair.com Mon Jan 25 09:31:30 2016 From: roger.e.eller at sealedair.com (Roger Eller) Date: Mon, 25 Jan 2016 09:31:30 -0500 Subject: [BUG] write to file In-Reply-To: References: Message-ID: I do the same if I am modifying a specific line in an existing file. However, if I am appending to a file such as for logging, I use the before or after modifiers in a file URL. put "Log entry data" after URL ("file:" & specialFolderPath("documents") & tLogFileName) ~Roger On Mon, Jan 25, 2016 at 9:02 AM, Mike Kerner wrote: > It probably hasn't broken mine because I don't rely on the file pointers. > I always read the entire file, modify, then write the entire container > back. > > On Sun, Jan 24, 2016 at 10:46 PM, Kay C Lan > wrote: > > > The Dictionary says that if I open a file for 'update', then 'read from > > file' to a specific position that when I 'write to file' it will occur at > > the position I've read to but that's not what I'm seeing in 6.6.5GM, > 7.1.1 > > rc4 and 8.0 dp13 - OS X 10.9.5. In the msg box: > > > > set the defaultFolder to specialFolderPath("documents") > > put "trash this file.txt" into tFileName > > put "This is a test." into URL ("file:" & specialFolderPath("documents") > & > > "/" & tFileName) > > open file tFileName for update > > read from file tFileName for 2 words > > put it into tResult > > write "open/read/write/close" to file tFileName > > close file tFileName > > put URL ("file:" & specialFolderPath("documents") & "/" & tFileName) > into > > msg > > put cr & tResult after msg > > > > I was expecting: > > This is open/read/write/close > > > > What I'm getting: > > This is a test.open/read/write/close > > > > The 'read' portion is clearly working correctly so there is something > wrong > > with 'write' but I'm surprised that this hasn't broken people's code left > > right and centre so what am I doing wrong? How do I get LC to write from > > where I've read 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 > > > > > > -- > 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 ambassador at fourthworld.com Mon Jan 25 10:44:10 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 25 Jan 2016 07:44:10 -0800 Subject: [BUG] write to file In-Reply-To: References: Message-ID: <56A642CA.1030505@fourthworld.com> Kay C Lan wrote: > The Dictionary says that if I open a file for 'update', then 'read > from file' to a specific position that when I 'write to file' it > will occur at the position I've read to but that's not what I'm > seeing in 6.6.5GM, 7.1.1 rc4 and 8.0 dp13 - OS X 10.9.5. In the > msg box: > > set the defaultFolder to specialFolderPath("documents") > put "trash this file.txt" into tFileName > put "This is a test." into URL ("file:" & specialFolderPath("documents") & > "/" & tFileName) > open file tFileName for update > read from file tFileName for 2 words > put it into tResult > write "open/read/write/close" to file tFileName > close file tFileName > put URL ("file:" & specialFolderPath("documents") & "/" & tFileName) into msg > put cr & tResult after msg > > I was expecting: > This is open/read/write/close > > What I'm getting: > This is a test.open/read/write/close Using v7.1.1 Stable on Ubuntu 14.04 I get: This is open/read/write/close This is Looks like a Mac-specific bug. After you file the report please note the bug number here so we can follow its progress. Thanks. -- 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 Mon Jan 25 10:49:57 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 25 Jan 2016 07:49:57 -0800 Subject: [BUG] write to file In-Reply-To: References: Message-ID: <56A64425.50401@fourthworld.com> Roger Eller wrote: > I do the same if I am modifying a specific line in an existing file. > However, if I am appending to a file such as for logging, I use the > before or after modifiers in a file URL. > > put "Log entry data" after URL ("file:" &> specialFolderPath("documents") & tLogFileName) As I work my way through Robert Love's "Linux System Programming" (and admittedly mostly ignorant about system calls beyond what I've read there thus far), my hunch is that using "open...for append" would be slightly more efficient than "write...after", since the former takes advantage of system calls optimized for logging. However, in your case you're using the URL syntax rather than open/write/close, which leads me to a question for the dev team or anyone who's had the opportunity to look at the relevant part of the engine source: When using the statement above, is the engine clever enough to use an append operation for that, or does it seek to the end of the file before writing? -- 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 admin at FlexibleLearning.com Mon Jan 25 11:05:00 2016 From: admin at FlexibleLearning.com (FlexibleLearning.com) Date: Mon, 25 Jan 2016 16:05:00 -0000 Subject: Love, love, love the idea of a business plan tool kit in LiveCode with SLIDERS Message-ID: <007801d1578a$28c15fc0$7a441f40$@FlexibleLearning.com> Mark Rauterkus wrote > I really love the idea of a set of sliders that can help to set a number of units > (widgets, costs, sales, expenses) and have them display numbers and > projections in other line items. > > For example, > > If I have 200 kids in our water polo summer camp, we'll need 35 on staff. > But if we have 2,000, we'll need 250 at a cost of $ and summer budget of $. > etc. ChartMaker supports variables and there are open-source samplers (with sliders) of what you describe included in the trial download from www.FlexibleLearning.com/chartmaker Best regards Hugh Senior FLCo From jacque at hyperactivesw.com Mon Jan 25 12:36:59 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 25 Jan 2016 11:36:59 -0600 Subject: [BUG] write to file In-Reply-To: <56A64425.50401@fourthworld.com> References: <56A64425.50401@fourthworld.com> Message-ID: <2E65A395-5AB4-40EC-A1A4-79CC55C73592@hyperactivesw.com> I'm not the team, but logic tells me that opening a file for append will always be faster and more efficient because the URL syntax works as a container, like a field or a variable. Every time you reference a URL, the entirety is read into RAM. I've always used "open for append" for that reason unless the file is known to be very small. On January 25, 2016 9:49:57 AM CST, Richard Gaskin >my hunch is that using "open...for append" would be >slightly more efficient than "write...after", since the former takes >advantage of system calls optimized for logging. > >However, in your case you're using the URL syntax rather than >open/write/close, which leads me to a question for the dev team or >anyone who's had the opportunity to look at the relevant part of the >engine source: > >When using the statement above, is the engine clever enough to use an >append operation for that, or does it seek to the end of the file >before >writing? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Mon Jan 25 13:10:23 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 25 Jan 2016 12:10:23 -0600 Subject: One Rect For All specificaiton In-Reply-To: <8BD85642-B428-411A-B921-D7EEEE8CAEB3@gmail.com> References: <56A560DB.9040204@hyperactivesw.com> <8BD85642-B428-411A-B921-D7EEEE8CAEB3@gmail.com> Message-ID: <1BEF05C2-1A0C-4336-A373-E525CD338C6A@hyperactivesw.com> I've moved a 16:9 stack to Android and the problem with right/left edges wasn't minor. There was a significant gap at the edges that made toolbars and images appear to be hanging in space. I think the general rule to use 75% of the internal area for the content will probably translate to Android fine, but if there are background images, toolbars, or other objects that need to cover the entire visible area then they need to be much wider and/or taller than the dimensions of an iPhone to be usable on the wide variety of Android devices. On January 25, 2016 4:09:55 AM CST, Colin Holgate wrote: >The 4:3 to 16:9 is a range, it?s not that it only takes care of those >two cases. If you use a 4:3 card and have 16:9 content, on a 16:10 >device, you?ll see most of the 16:9 content. > >There are cases where a device might exceed 16:9. For example, a 16:9 >device that is showing some sort of temporary bar along the top. In >such a case you might end up with a small amount of border on the far >left and right of your content. Not something I would worry about too >much! > >About letter boxing as a solution, that?s probably ok in the Android >world, but if for example you solve your iOS needs by letting a 4:3 >card have borders on a 16:9 device, Apple would reject the app. > > >> On Jan 24, 2016, at 11:40 PM, J. Landman Gay > wrote: >> >> On 1/24/2016 2:34 PM, Sannyasin Brahmanathaswami wrote: >>> Your safe zone is (I hope I am finally declaring this correctly) >>> >>> 1) for a ?root" 16 X 9 stack: the full width + 75% of the vertical >>> height that will render on a 4 X 3 device ? ergo artists must supply >>> you with 4 X 3 artwork with significant content in the middle 75% >>> vertical space. i.e. 12.5 % bleed top and bottom 2) for a ?root? 4 x >>> 4 3tack: the full height + 75% of the width height that will render >>> on a 4 X 3 device ? ergo artists must supply you with 16 X 9 >artwork >>> with significant content in the middle 75% horizontal space i.e. >12.5 >>> % bleed left and right. >> >> I wonder how that will translate to Android. I found these aspect >ratios , listed from >most common to least: >> >> 16:9 >> 5:3 >> 4:3 >> 16:10 >> 3:2 >> >> -- >> 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 roger.e.eller at sealedair.com Mon Jan 25 13:52:04 2016 From: roger.e.eller at sealedair.com (Roger Eller) Date: Mon, 25 Jan 2016 13:52:04 -0500 Subject: [BUG] write to file In-Reply-To: <2E65A395-5AB4-40EC-A1A4-79CC55C73592@hyperactivesw.com> References: <56A64425.50401@fourthworld.com> <2E65A395-5AB4-40EC-A1A4-79CC55C73592@hyperactivesw.com> Message-ID: I may be wrong, but I think they've made the URL syntax smarter because it sure is fast enough for me, even on fairly large log files. ~Roger On Mon, Jan 25, 2016 at 12:36 PM, J. Landman Gay wrote: > I'm not the team, but logic tells me that opening a file for append will > always be faster and more efficient because the URL syntax works as a > container, like a field or a variable. Every time you reference a URL, the > entirety is read into RAM. I've always used "open for append" for that > reason unless the file is known to be very small. > > On January 25, 2016 9:49:57 AM CST, Richard Gaskin > >my hunch is that using "open...for append" would be > >slightly more efficient than "write...after", since the former takes > >advantage of system calls optimized for logging. > > > >However, in your case you're using the URL syntax rather than > >open/write/close, which leads me to a question for the dev team or > >anyone who's had the opportunity to look at the relevant part of the > >engine source: > > > >When using the statement above, is the engine clever enough to use an > >append operation for that, or does it seek to the end of the file > >before > >writing? > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com From colinholgate at gmail.com Mon Jan 25 14:39:04 2016 From: colinholgate at gmail.com (Colin Holgate) Date: Mon, 25 Jan 2016 19:39:04 +0000 Subject: One Rect For All specificaiton In-Reply-To: <1BEF05C2-1A0C-4336-A373-E525CD338C6A@hyperactivesw.com> References: <56A560DB.9040204@hyperactivesw.com> <8BD85642-B428-411A-B921-D7EEEE8CAEB3@gmail.com> <1BEF05C2-1A0C-4336-A373-E525CD338C6A@hyperactivesw.com> Message-ID: <014ED344-C020-4665-AEB7-319420D41DCA@gmail.com> Were the tools part of the card, or other stacks? If they?re part of the card then they add to the width, making it more than 16:9. Even if they?re other stacks it could force it to become part of the showAll area. In other words, if you?re using showAll, don?t use clever code to position the tools. Just have the left of left side tools be at 0, and the right of right side tools be at the card width. From terry.judd at unimelb.edu.au Mon Jan 25 15:28:35 2016 From: terry.judd at unimelb.edu.au (Terry Judd) Date: Mon, 25 Jan 2016 20:28:35 +0000 Subject: One Rect For All specificaiton In-Reply-To: <8BD85642-B428-411A-B921-D7EEEE8CAEB3@gmail.com> References: <56A560DB.9040204@hyperactivesw.com> <8BD85642-B428-411A-B921-D7EEEE8CAEB3@gmail.com> Message-ID: On 25/01/2016 9:09 pm, "use-livecode on behalf of Colin Holgate" wrote: >The 4:3 to 16:9 is a range, it?s not that it only takes care of those two >cases. If you use a 4:3 card and have 16:9 content, on a 16:10 device, >you?ll see most of the 16:9 content. > >There are cases where a device might exceed 16:9. For example, a 16:9 >device that is showing some sort of temporary bar along the top. In such >a case you might end up with a small amount of border on the far left and >right of your content. Not something I would worry about too much! > >About letter boxing as a solution, that?s probably ok in the Android >world, but if for example you solve your iOS needs by letting a 4:3 card >have borders on a 16:9 device, Apple would reject the app. I only set the fullscreenmode to letterbox on android. I only have to do the bare minimum on iOS for it to display correctly. So, starting with a 320x460 stack For iOS? put item 4 of the working screenrect into tB set the bottom of grp "btnBar" to tB ? do any other geometry related stuff here For Android? Set the fullscreenmode to letterbox put the working screenrect into tWR put (item 4 of tWR)/(item 3 of tWR) into tAspectRatio put 10*(trunc (tAspectRatio*320/10)) into tB set the height of this stack to tB set the bottom of grp "btnBar" to tB ? do any other geometry related stuff here Terry? > From jacque at hyperactivesw.com Mon Jan 25 15:35:33 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 25 Jan 2016 14:35:33 -0600 Subject: [BUG] write to file In-Reply-To: References: Message-ID: <56A68715.8080501@hyperactivesw.com> On 1/24/2016 9:46 PM, Kay C Lan wrote: > The Dictionary says that if I open a file for 'update', then 'read from > file' to a specific position that when I 'write to file' it will occur at > the position I've read to but that's not what I'm seeing in 6.6.5GM, 7.1.1 > rc4 and 8.0 dp13 - OS X 10.9.5. In the msg box: > > set the defaultFolder to specialFolderPath("documents") > put "trash this file.txt" into tFileName > put "This is a test." into URL ("file:" & specialFolderPath("documents") & > "/" & tFileName) > open file tFileName for update > read from file tFileName for 2 words > put it into tResult > write "open/read/write/close" to file tFileName > close file tFileName > put URL ("file:" & specialFolderPath("documents") & "/" & tFileName) into > msg > put cr & tResult after msg > > I was expecting: > This is open/read/write/close > > What I'm getting: > This is a test.open/read/write/close > > The 'read' portion is clearly working correctly so there is something wrong > with 'write' but I'm surprised that this hasn't broken people's code left > right and centre so what am I doing wrong? How do I get LC to write from > where I've read to? If you specify the position it seems to work: write "open/read/write/close" to file tFileName at 8 If you're tracking the file content, you could also use "seek" to move the current pointer position. In either case, there does seem to be something wrong with "write". -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From brahma at hindu.org Mon Jan 25 15:49:25 2016 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Mon, 25 Jan 2016 20:49:25 +0000 Subject: One Rect For All specificaiton In-Reply-To: <1BEF05C2-1A0C-4336-A373-E525CD338C6A@hyperactivesw.com> References: <56A560DB.9040204@hyperactivesw.com> <8BD85642-B428-411A-B921-D7EEEE8CAEB3@gmail.com> <1BEF05C2-1A0C-4336-A373-E525CD338C6A@hyperactivesw.com> Message-ID: Disclaimer on my ?Safe Zone? stack The initial discovery ?target? for that initiative was simply to come up with something to tell our illustrators and artists. I believe the 75% ?middle area is your safe zone? but 12.5% top/Bottom (or left-right) holds as an instruction for artists. BUT: @Jacque: agreed we need take this to the ?next level? ? for controls in the LC GUI, the issue is more complex: and yes, I see/saw the same problem?note in that stack how the bottom group ?utils? is floating on a baseline 12.5% of the vertical height up from the actual bottom of the iPad in the simulator @Colin: "Just have the left of left side tools be at 0, and the right of right side tools be at the card width.? Good idea, but: Where and when do you call this? I tried a similar simple approach for the bottom bar with ?set the bottom of group ?utils? to the height of this stack? this works if I resize the stack in Livecode (in an attempt to simulate the simulator) but it?s not working in the xCode simulator when running a 16 X 9 stack to a iPad as the test target I tried three methods which try to avoid "don?t use clever code to position the tools.: but they all failed but resizeStack is not sent when opened on a different device/ratio (it would be cool if that were a feature!() on resizeStack x,y set the bottom of group "utils" to y set the bottom of group "bottomBleedGroup" to y end resizestack doesn?t work This also does not work: on preOpenStack if isMobile() then Set the fullScreenMode of this stack to "ShowAll" end if put the rect of this card into tCardRect set the bottom of group "utils" to item 4 of tCardRect set the bottom of group "bottomBleedGroup" to item 4 of tCardRect end preOpenStack This also does not work: on preOpenStack if isMobile() then Set the fullScreenMode of this stack to "ShowAll" put the effective working ScreenRect into tScreenRect end if set the bottom of group "utils" to item 4 of tScreenRect set the bottom of group "bottomBleedGroup" to item 4 of tScreenRect end preOpenStack Those group stick to their original ?native? stack location even though the current device context offers more area below (or top or left and right) So, perhaps we need just a bit of ?clever code? ?? Is the card script is a better location, since possibly preOpenStack is not yet informed as the screen context? BR On January 25, 2016 at 8:12:49 AM, J. Landman Gay (jacque at hyperactivesw.com) wrote: I've moved a 16:9 stack to Android and the problem with right/left edges wasn't minor. There was a significant gap at the edges that made toolbars and images appear to be hanging in space. I think the general rule to use 75% of the internal area for the content will probably translate to Android fine, but if there are background images, toolbars, or other objects that need to cover the entire visible area then they need to be much wider and/or taller than the dimensions of an iPhone to be usable on the wide variety of Android devices. From colinholgate at gmail.com Mon Jan 25 15:59:22 2016 From: colinholgate at gmail.com (Colin Holgate) Date: Mon, 25 Jan 2016 20:59:22 +0000 Subject: One Rect For All specificaiton In-Reply-To: References: <56A560DB.9040204@hyperactivesw.com> <8BD85642-B428-411A-B921-D7EEEE8CAEB3@gmail.com> <1BEF05C2-1A0C-4336-A373-E525CD338C6A@hyperactivesw.com> Message-ID: <569AF93C-9C75-4379-8110-25DF228A7897@gmail.com> With showAll, I wouldn?t even use code. Have the tools centered in one direction and aligned to the edges in the other direction. If you want tools to hug a corner, then it gets more complicated. > On Jan 25, 2016, at 8:49 PM, Sannyasin Brahmanathaswami wrote: > > Disclaimer on my ?Safe Zone? stack > > The initial discovery ?target? for that initiative was simply to come up with something to tell our illustrators and artists. I believe the 75% ?middle area is your safe zone? but 12.5% top/Bottom (or left-right) holds as an instruction for artists. > > BUT: @Jacque: agreed we need take this to the ?next level? > > ? for controls in the LC GUI, the issue is more complex: and yes, I see/saw the same problem?note in that stack how the bottom group ?utils? is floating on a baseline 12.5% of the vertical height up from the actual bottom of the iPad in the simulator > > @Colin: "Just have the left of left side tools be at 0, and the right of right side tools be at the card width.? > > Good idea, but: > > Where and when do you call this? I tried a similar simple approach for the bottom bar with ?set the bottom of group ?utils? to the height of this stack? this works if I resize the stack in Livecode (in an attempt to simulate the simulator) > > but it?s not working in the xCode simulator when running a 16 X 9 stack to a iPad as the test target > > I tried three methods which try to avoid "don?t use clever code to position the tools.: > > but they all failed > > but resizeStack is not sent when opened on a different device/ratio (it would be cool if that were a feature!() > > > on resizeStack x,y > > set the bottom of group "utils" to y > > set the bottom of group "bottomBleedGroup" to y > > end resizestack > > > doesn?t work > > > This also does not work: > > > on preOpenStack > > if isMobile() then > > Set the fullScreenMode of this stack to "ShowAll" > > end if > > put the rect of this card into tCardRect > > set the bottom of group "utils" to item 4 of tCardRect > > set the bottom of group "bottomBleedGroup" to item 4 of tCardRect > > > > end preOpenStack > > > This also does not work: > > > on preOpenStack > > if isMobile() then > > Set the fullScreenMode of this stack to "ShowAll" > > put the effective working ScreenRect into tScreenRect > > end if > > > set the bottom of group "utils" to item 4 of tScreenRect > > set the bottom of group "bottomBleedGroup" to item 4 of tScreenRect > > > > end preOpenStack > > > Those group stick to their original ?native? stack location even though the current device context offers more area below (or top or left and right) > > > So, perhaps we need just a bit of ?clever code? ?? Is the card script is a better location, since possibly preOpenStack is not yet informed as the screen context? > > > BR > > > > > > > > On January 25, 2016 at 8:12:49 AM, J. Landman Gay (jacque at hyperactivesw.com) wrote: > > I've moved a 16:9 stack to Android and the problem with right/left edges wasn't minor. There was a significant gap at the edges that made toolbars and images appear to be hanging in space. > > I think the general rule to use 75% of the internal area for the content will probably translate to Android fine, but if there are background images, toolbars, or other objects that need to cover the entire visible area then they need to be much wider and/or taller than the dimensions of an iPhone to be usable on the wide variety of Android devices. > _______________________________________________ > use-livecode mailing list > use-livecode at 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 25 16:44:42 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 25 Jan 2016 15:44:42 -0600 Subject: One Rect For All specificaiton In-Reply-To: <569AF93C-9C75-4379-8110-25DF228A7897@gmail.com> References: <56A560DB.9040204@hyperactivesw.com> <8BD85642-B428-411A-B921-D7EEEE8CAEB3@gmail.com> <1BEF05C2-1A0C-4336-A373-E525CD338C6A@hyperactivesw.com> <569AF93C-9C75-4379-8110-25DF228A7897@gmail.com> Message-ID: <56A6974A.3050501@hyperactivesw.com> On 1/25/2016 2:59 PM, Colin Holgate wrote: > With showAll, I wouldn?t even use code. Have the tools centered in > one direction and aligned to the edges in the other direction. If you > want tools to hug a corner, then it gets more complicated. For the stack in question, the toolbar needed to stretch across the entire width (portrait) and the background image needed to fill the width of the screen. How we solved it: Design the stack at 16:9 with the toolbar at the bottom. Make the toolbar and image wider than the iPhone6 screen will display and center them horizontally. Use "showAll". On Android and iPad, the toolbar is automatically repositioned at the bottom of the screen. The extra width of the image and toolbar groups show on wider devices. No code is required to adjust anything as long as the content region is within the visible part of the original screen ratio. So basically, set everything up for one of the largest screen dimensions you will support (in our case, height,) let the LC engine move the controls to fit whatever device is in use, and have oversized objects that will still be visible if the opposite screen dimension is larger than the one you designed for. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From scott at tactilemedia.com Mon Jan 25 17:16:54 2016 From: scott at tactilemedia.com (Scott Rossi) Date: Mon, 25 Jan 2016 14:16:54 -0800 Subject: One Rect For All specificaiton In-Reply-To: References: <56A560DB.9040204@hyperactivesw.com> <8BD85642-B428-411A-B921-D7EEEE8CAEB3@gmail.com> <1BEF05C2-1A0C-4336-A373-E525CD338C6A@hyperactivesw.com> Message-ID: If I understand what you're trying to do, I accommodate this by designing groups to position themselves when the card is open, using preOpenControl or openControl. Simple example: -- SCRIPT OF TAB BAR GROUP OR SIMILAR on preOpenControl put rect of this card into theRect put item 4 of theRect - height of me into item 2 of theRect set rect of me to theRect end preOpenControl You might need to fiddle with the rect depending on the fullScreenMode you use. Otherwise you can run script on preOpenCard/openCard to position things where you want. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 1/25/16, 12:49 PM, "use-livecode on behalf of Sannyasin Brahmanathaswami" wrote: >I tried three methods which try to avoid "don?t use clever code to >position the tools.: > >but they all failed > >but resizeStack is not sent when opened on a different device/ratio (it >would be cool if that were a feature!() > > >on resizeStack x,y > > set the bottom of group "utils" to y > > set the bottom of group "bottomBleedGroup" to y > >end resizestack > > >doesn?t work > > >This also does not work: > > >on preOpenStack > > if isMobile() then > > Set the fullScreenMode of this stack to "ShowAll" > > end if > > put the rect of this card into tCardRect > > set the bottom of group "utils" to item 4 of tCardRect > > set the bottom of group "bottomBleedGroup" to item 4 of tCardRect > > > >end preOpenStack > > >This also does not work: > > >on preOpenStack > > if isMobile() then > > Set the fullScreenMode of this stack to "ShowAll" > > put the effective working ScreenRect into tScreenRect > > end if > > > set the bottom of group "utils" to item 4 of tScreenRect > > set the bottom of group "bottomBleedGroup" to item 4 of tScreenRect > > > >end preOpenStack > > >Those group stick to their original ?native? stack location even though >the current device context offers more area below (or top or left and >right) > > >So, perhaps we need just a bit of ?clever code? ?? Is the card script is >a better location, since possibly preOpenStack is not yet informed as the >screen context? From prothero at earthednet.org Mon Jan 25 18:53:57 2016 From: prothero at earthednet.org (William Prothero) Date: Mon, 25 Jan 2016 15:53:57 -0800 Subject: Sending emails, with attachments, on your server Message-ID: Folks: I?ve put together a little tutorial stack for those who want to send email from their server, rather than from the user?s local email system. This can be very useful when users sit at different and possibly public computers, where there may be no email system installed, or where the configuration may not be suitable for your app. The tutorial provides the livecode script and a php script for you to put on your server. It allows you to send an attachment, and could be modified for more. Special note: you need to download php opensource software called ?phpMailer? at: https://github.com/PHPMailer/PHPMailer You only need to use the PHPMailerAutoload.php and the class.phpmailer.php files from phpMailer. But it provides other examples that you can use, if you need more than I provide. The documentation of the example for libURLMultipartFormAddPart(tForm,"userfile", tFile, tType, tEnc) has an error, also. The example should say: if libURLMultipartFormAddPart(tForm,"userfile", tFile, tType, tEnc) is not empty then ##handle error and exit exit mouseUp end if The ?is not? part of the If line is the error in the documentation. For somebody struggling with headers, this is a major pain in the butt and it creates confusion when trying to figure it out. Here is the link, in case you have a need for this: Download the file from this page. http://es.earthednet.org/SoftwareForEducation I hope this helps somebody who wants their server to send email from their app. Regards, Bill William Prothero, Ph.D. University of California, Santa Barbara, Emeritus prothero at earthednet.org From lan.kc.macmail at gmail.com Mon Jan 25 20:25:43 2016 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Tue, 26 Jan 2016 09:25:43 +0800 Subject: [BUG] write to file In-Reply-To: <56A68715.8080501@hyperactivesw.com> References: <56A68715.8080501@hyperactivesw.com> Message-ID: Folks, Richard has confirmed he's not seeing this on Linux. Jacque has confirmed the Bug on OS X. If I can just get a Win user to check I'll then add a Bug report. So please Win users can you, in the msg box: >> >> set the defaultFolder to specialFolderPath("documents") >> put "trash this file.txt" into tFileName >> put "This is a test." into URL ("file:" & specialFolderPath("documents") & >> "/" & tFileName) >> open file tFileName for update >> read from file tFileName for 2 words >> put it into tResult >> write "open/read/write/close" to file tFileName >> close file tFileName >> put URL ("file:" & specialFolderPath("documents") & "/" & tFileName) into >> msg >> put cr & tResult after msg >> >> I was expecting: >> This is open/read/write/close >> >> What I'm getting: >> This is a test.open/read/write/close >> >> From lan.kc.macmail at gmail.com Mon Jan 25 20:34:27 2016 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Tue, 26 Jan 2016 09:34:27 +0800 Subject: [BUG] write to file In-Reply-To: <56A64425.50401@fourthworld.com> References: <56A64425.50401@fourthworld.com> Message-ID: On Mon, Jan 25, 2016 at 11:49 PM, Richard Gaskin wrote: > > > > > put "Log entry data" after URL ("file:" &> > specialFolderPath("documents") & tLogFileName) > > When using the statement above, is the engine clever enough to use an > append operation for that, or does it seek to the end of the file before > writing? Resolved Bug 383 might be of interest to you - but I can't find where the 'feature request is at: Scott Raney 2003-10-06 18:46:02 BST Correct: I think he's confusing the URL version (which does rewrite the file), with "open for append", which does not. Optimizing the URL version ("put after") is already on the feature-request list. From lan.kc.macmail at gmail.com Mon Jan 25 20:46:37 2016 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Tue, 26 Jan 2016 09:46:37 +0800 Subject: [BUG] write to file In-Reply-To: References: <56A64425.50401@fourthworld.com> Message-ID: I've gone ahead and added a Bug report 16761. When a Windows user report back I'll add it - or they can add to the report themselves. From ambassador at fourthworld.com Mon Jan 25 20:49:39 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 25 Jan 2016 17:49:39 -0800 Subject: [BUG] write to file In-Reply-To: References: Message-ID: <56A6D0B3.20301@fourthworld.com> Kay C Lan wrote: > On Mon, Jan 25, 2016 at 11:49 PM, Richard Gaskin wrote: >> >> > put "Log entry data" after URL ("file:" &> >> specialFolderPath("documents") & tLogFileName) >> >> When using the statement above, is the engine clever enough to use an >> append operation for that, or does it seek to the end of the file >> before writing? > > Resolved Bug 383 might be of interest to you - but I can't find where > the 'feature request is at: > > Scott Raney 2003-10-06 18:46:02 BST > > Correct: I think he's confusing the URL version (which does rewrite the file), > with "open for append", which does not. Optimizing the URL version > ("put after") is already on the feature-request list. Good find. How did you come across that bit of archaeology? -- 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 brahma at hindu.org Tue Jan 26 00:11:28 2016 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Tue, 26 Jan 2016 05:11:28 +0000 Subject: One Rect For All specificaiton In-Reply-To: References: <56A560DB.9040204@hyperactivesw.com> <8BD85642-B428-411A-B921-D7EEEE8CAEB3@gmail.com> <1BEF05C2-1A0C-4336-A373-E525CD338C6A@hyperactivesw.com> Message-ID: More results: I was going ?nuts? and results in the simulator seemed to depend on the time of day, current humidity and wind speed and position of the stars at any given moment? making too many changes on each iteration is dangerous? I narrowed it down: setting the bottom of a control basedon the screenrect works when driving a 16 X 9 stack into a 4X 3 iPad ?viewport:? using the simulator: see other comments in line if isMobile() then Set the fullScreenMode of this stack to "ShowAll" put the working ScreenRect into tScreenRect set the bottom of group "baseControls? to ( item 4 of tScreenRect +20) set the width of grc ?BaseControlsBkgnd? to item 3 of tScreenRect # does not work why? BUT: set the bottom of group "baseControls? to ( item 4 of tScreenRect +20) fails in a ?real? test.. (build standalone for using 1200X675 stack for iPhone 6 plus) looks fine on the iPhone. place app on iPad and the the group ?BaseControls? have not moved down as they do in iPad view in the simulator. it gets worse: set the bottom of group "baseControls? to ( item 4 of tScreenRect +20) will break your positioning for the bottom control when you output to the simulator going from you 16 X9 stack to a 16 X9 iPhone6 viewport OR build a real standalone with that in place, because the screenRect is wrongly reported. see: http://quality.livecode.com/show_bug.cgi?id=16763 (sigh) So?.. Unless Colin comes in here with some magic simple solution? Still no complete solution for positioning groups relative to the device screen edges using fullscreenmode ?showAll? you can be ?blindsided? (as i was, over and over again) by the fact that ?showAll? *will* pull in controls that are ?below? screen e.g. if you set the stack to 4 X 3 and put controls at the bottom of the screen and do not try to set the bottom.. when you run out to iPhone 6+ those controls will be sitting on the bottom? you think ?ahaha! we got it? but then if you have a control, that is position e.g. bottom 675 on the iPhone (bottom of screen) it will *not* be moved down by showAll, because showAll?s algoritm is simply ?Make sure all content is included? so if the control would be off screen we go to a short height, then I will to pull it up and it still sticks to the bottom.. but if the control is on screen when we go to a shorter height? I don?t have to do anything, and it stays where it is.? The screen rect *could* help us? but it?s seems to have some bugs around it. TBD? This makes it ?bad? for landscape design on 16 X 9 rendered on a 4 x 3? as your controls will "float in? off edge. BR On January 25, 2016 at 3:46:29 PM, Sannyasin Brahmanathaswami (brahma at hindu.org) wrote: and the control now falls in the middle of the card?almost as if they are setting bottom 320 relative to the card height of 675 and not relative to the screenRect height. From lan.kc.macmail at gmail.com Tue Jan 26 02:16:21 2016 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Tue, 26 Jan 2016 15:16:21 +0800 Subject: [BUG] write to file In-Reply-To: <56A6D0B3.20301@fourthworld.com> References: <56A6D0B3.20301@fourthworld.com> Message-ID: On Tue, Jan 26, 2016 at 9:49 AM, Richard Gaskin wrote: > > Good find. How did you come across that bit of archaeology? Not that good, what you really need to know is whether the enhancement request was ever actioned. I was searching the QCC DB to ensure I wasn't duplicating a Bug report when, like most archaeological digs, I stumbled across a gem. From tfabacher at gmail.com Tue Jan 26 03:20:47 2016 From: tfabacher at gmail.com (Todd Fabacher) Date: Tue, 26 Jan 2016 09:20:47 +0100 Subject: Davos Day 3 Message-ID: On day 3 we spent most of our time focused UI/UX issues with LiveCode. We created a desktop/ native mobile scrolling lib. I see lots of post on this from beginners, we put put it into a substack. Take a look and let me know if there is a better way. Also, we can not deal with the suspending of LiveCode Apps on iOS when the user switches away, terrible UX. I almost just lost a client because of it, so I think we found a solution, not sure it is a best hack possible. Plus a few more UI issues and we started organizing the business logic. https://livecode.com/day-3-coding-world-leaders-at-davos/ --Todd From benr_mc at cogapp.com Tue Jan 26 05:54:49 2016 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Tue, 26 Jan 2016 10:54:49 +0000 Subject: exits on suspend (was Re: Davos Day 3) In-Reply-To: References: Message-ID: <56A75079.80203@cogapp.com> Hi Todd, This is great stuff, thank you for somehow finding time to write up your blog as well as everything else that you're up to! Re the suspending issue... The "${xxx}" syntax in the settings.plist is used by the standalone builder to mark where substitutions go, so it's a clue that there's code to vary that particular part of the file. Looking at the standalone building script finds two relevant bits. Firstly: > -- MW-2011-03-10: Force this to true for now, until we can fix the engine > --put pSettings["ios,exits on suspend"] into tExitsOnSuspend so evidently there used to be an option in the Standalone Settings to allow you the dev to control how the app behaved - but it was taken out because of an unspecified problem. However the second relevant bit: > -- tExitsOnSuspend defaulted to true. We want this to be false to allow background audio > if tBackgroundAudio is true then > put "false" into tExitsOnSuspend > else -- false or empty > put "true" into tExitsOnSuspend > end if so at some point the option for background audio was added to the Standalone Settings, and to support this exits on suspend is suspended! Short form: there's a more convenient way to achieve what you want, without having to nobble the files inside the LiveCode app: just select the "Background audio (experimental)" checkbox in the Standalone Settings. Other observations: - it's getting close to five years since the original option was removed, a lot of things have changed since then in both iOS and the engine - maybe it could be looked at again? - related, this request two years ago by Ken Ray http://quality.livecode.com/show_bug.cgi?id=11845 - interestingly, when the stack is not set to exit to suspend, it does not appear to get any of the messages you might expect (i.e. suspend/resume[Stack]). AFAICT there's no way with this option for an app to tell when it has been suspended. (Without this option set, the app gets shutdown/closeCard/closeStack; followed when reopened by startup/openStack/openCard). Ben On 26/01/2016 08:20, Todd Fabacher wrote: > On day 3 we spent most of our time focused UI/UX issues with LiveCode. We > created a desktop/ native mobile scrolling lib. I see lots of post on this > from beginners, we put put it into a substack. Take a look and let me know > if there is a better way. > > Also, we can not deal with the suspending of LiveCode Apps on iOS when the > user switches away, terrible UX. I almost just lost a client because of it, > so I think we found a solution, not sure it is a best hack possible. Plus a > few more UI issues and we started organizing the business logic. > > https://livecode.com/day-3-coding-world-leaders-at-davos/ > > --Todd From roger.e.eller at sealedair.com Tue Jan 26 08:07:56 2016 From: roger.e.eller at sealedair.com (Roger Eller) Date: Tue, 26 Jan 2016 08:07:56 -0500 Subject: One Rect For All specificaiton In-Reply-To: <8BD85642-B428-411A-B921-D7EEEE8CAEB3@gmail.com> References: <56A560DB.9040204@hyperactivesw.com> <8BD85642-B428-411A-B921-D7EEEE8CAEB3@gmail.com> Message-ID: Please stop downplaying what quality level is considered acceptable on Android. You're making false stereotypical assertions when in reality there are app designers so focused on providing a great experience. You may not see them all, because some don't publish to Apple (by choice). On Jan 25, 2016 5:10 AM, "Colin Holgate" wrote: > The 4:3 to 16:9 is a range, it?s not that it only takes care of those two > cases. If you use a 4:3 card and have 16:9 content, on a 16:10 device, > you?ll see most of the 16:9 content. > > There are cases where a device might exceed 16:9. For example, a 16:9 > device that is showing some sort of temporary bar along the top. In such a > case you might end up with a small amount of border on the far left and > right of your content. Not something I would worry about too much! > > About letter boxing as a solution, that?s probably ok in the Android > world, but if for example you solve your iOS needs by letting a 4:3 card > have borders on a 16:9 device, Apple would reject the app. > > > > On Jan 24, 2016, at 11:40 PM, J. Landman Gay > wrote: > > > > On 1/24/2016 2:34 PM, Sannyasin Brahmanathaswami wrote: > >> Your safe zone is (I hope I am finally declaring this correctly) > >> > >> 1) for a ?root" 16 X 9 stack: the full width + 75% of the vertical > >> height that will render on a 4 X 3 device ? ergo artists must supply > >> you with 4 X 3 artwork with significant content in the middle 75% > >> vertical space. i.e. 12.5 % bleed top and bottom 2) for a ?root? 4 x > >> 4 3tack: the full height + 75% of the width height that will render > >> on a 4 X 3 device ? ergo artists must supply you with 16 X 9 artwork > >> with significant content in the middle 75% horizontal space i.e. 12.5 > >> % bleed left and right. > > > > I wonder how that will translate to Android. I found these aspect ratios > , listed from most common > to least: > > > > 16:9 > > 5:3 > > 4:3 > > 16:10 > > 3:2 > > > > -- > > 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 MikeKerner at roadrunner.com Tue Jan 26 08:33:16 2016 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Tue, 26 Jan 2016 08:33:16 -0500 Subject: [BUG] write to file In-Reply-To: References: <56A6D0B3.20301@fourthworld.com> Message-ID: Windows output: This is open/read/write/close This is On Tue, Jan 26, 2016 at 2:16 AM, Kay C Lan wrote: > On Tue, Jan 26, 2016 at 9:49 AM, Richard Gaskin < > ambassador at fourthworld.com> > wrote: > > > > > Good find. How did you come across that bit of archaeology? > > > Not that good, what you really need to know is whether the enhancement > request was ever actioned. > > I was searching the QCC DB to ensure I wasn't duplicating a Bug report > when, like most archaeological digs, I stumbled across a gem. > _______________________________________________ > use-livecode mailing list > use-livecode 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 MikeKerner at roadrunner.com Tue Jan 26 08:34:58 2016 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Tue, 26 Jan 2016 08:34:58 -0500 Subject: [BUG] write to file In-Reply-To: References: <56A6D0B3.20301@fourthworld.com> Message-ID: However, the contents of the file is: This is open/read/write/close On Tue, Jan 26, 2016 at 8:33 AM, Mike Kerner wrote: > Windows output: > > This is open/read/write/close > This is > > On Tue, Jan 26, 2016 at 2:16 AM, Kay C Lan > wrote: > >> On Tue, Jan 26, 2016 at 9:49 AM, Richard Gaskin < >> ambassador at fourthworld.com> >> wrote: >> >> > >> > Good find. How did you come across that bit of archaeology? >> >> >> Not that good, what you really need to know is whether the enhancement >> request was ever actioned. >> >> I was searching the QCC DB to ensure I wasn't duplicating a Bug report >> when, like most archaeological digs, I stumbled across a gem. >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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." > -- 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 colinholgate at gmail.com Tue Jan 26 10:15:38 2016 From: colinholgate at gmail.com (Colin Holgate) Date: Tue, 26 Jan 2016 15:15:38 +0000 Subject: One Rect For All specificaiton In-Reply-To: References: <56A560DB.9040204@hyperactivesw.com> <8BD85642-B428-411A-B921-D7EEEE8CAEB3@gmail.com> Message-ID: <460ADF4D-BE89-430A-A603-02F46D99E84D@gmail.com> Being letterboxed isn?t a quality issue, it isn?t even bad. It?s just that Apple would reject the app. In the Android world it?s more normal to develop for an 800x480 ratio, and people on wider or taller devices understand why there is letter boxing. It?s an Apple problem not an Android one. Almost all apps I make are iOS and Android. > On Jan 26, 2016, at 1:07 PM, Roger Eller wrote: > > Please stop downplaying what quality level is considered acceptable on > Android. You're making false stereotypical assertions when in reality > there are app designers so focused on providing a great experience. You > may not see them all, because some don't publish to Apple (by choice). > On Jan 25, 2016 5:10 AM, "Colin Holgate" wrote: > >> The 4:3 to 16:9 is a range, it?s not that it only takes care of those two >> cases. If you use a 4:3 card and have 16:9 content, on a 16:10 device, >> you?ll see most of the 16:9 content. >> >> There are cases where a device might exceed 16:9. For example, a 16:9 >> device that is showing some sort of temporary bar along the top. In such a >> case you might end up with a small amount of border on the far left and >> right of your content. Not something I would worry about too much! >> >> About letter boxing as a solution, that?s probably ok in the Android >> world, but if for example you solve your iOS needs by letting a 4:3 card >> have borders on a 16:9 device, Apple would reject the app. >> >> >>> On Jan 24, 2016, at 11:40 PM, J. Landman Gay >> wrote: >>> >>> On 1/24/2016 2:34 PM, Sannyasin Brahmanathaswami wrote: >>>> Your safe zone is (I hope I am finally declaring this correctly) >>>> >>>> 1) for a ?root" 16 X 9 stack: the full width + 75% of the vertical >>>> height that will render on a 4 X 3 device ? ergo artists must supply >>>> you with 4 X 3 artwork with significant content in the middle 75% >>>> vertical space. i.e. 12.5 % bleed top and bottom 2) for a ?root? 4 x >>>> 4 3tack: the full height + 75% of the width height that will render >>>> on a 4 X 3 device ? ergo artists must supply you with 16 X 9 artwork >>>> with significant content in the middle 75% horizontal space i.e. 12.5 >>>> % bleed left and right. >>> >>> I wonder how that will translate to Android. I found these aspect ratios >> , listed from most common >> to least: >>> >>> 16:9 >>> 5:3 >>> 4:3 >>> 16:10 >>> 3:2 >>> >>> -- >>> 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 th.douez at gmail.com Tue Jan 26 10:24:59 2016 From: th.douez at gmail.com (Thierry Douez) Date: Tue, 26 Jan 2016 16:24:59 +0100 Subject: exits on suspend (was Re: Davos Day 3) In-Reply-To: <56A75079.80203@cogapp.com> References: <56A75079.80203@cogapp.com> Message-ID: 2016-01-26 11:54 GMT+01:00 Ben Rubinstein : > - interestingly, when the stack is not set to exit to suspend, it does not > appear to get any of the messages you might expect (i.e. > suspend/resume[Stack]). AFAICT there's no way with this option for an app to > tell when it has been suspended. (Without this option set, the app gets > shutdown/closeCard/closeStack; followed when reopened by > startup/openStack/openCard). > > Ben Hi Ben. You could have a look here: http://forums.livecode.com/phpBB2/viewtopic.php?f=49&t=23570&p=122312#p122123 I did this job almost a year ago. If you are interested to know more about it, you know how to contact me. Kind regards, Thierry ------------------------------------------------ Thierry Douez - http://sunny-tdz.com sunnYrex - sunnYtext2speech - sunnYperl - sunnYmidi - sunnYmage From lan.kc.macmail at gmail.com Tue Jan 26 09:47:15 2016 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Tue, 26 Jan 2016 22:47:15 +0800 Subject: [BUG] write to file In-Reply-To: References: <56A6D0B3.20301@fourthworld.com> Message-ID: Thanks Mike, Yes, that is all correct. Panos at the mothership has confirmed that this is a bug that effects OS X only. From peter.brett at livecode.com Tue Jan 26 10:34:42 2016 From: peter.brett at livecode.com (Peter TB Brett) Date: Tue, 26 Jan 2016 15:34:42 +0000 Subject: [BUG] write to file In-Reply-To: References: <56A6D0B3.20301@fourthworld.com> Message-ID: <56A79212.6020305@livecode.com> On 26/01/2016 14:47, Kay C Lan wrote: > Thanks Mike, > > Yes, that is all correct. > > Panos at the mothership has confirmed that this is a bug that effects OS X > only. I would prefer if if people wouldn't use "the mothership" to describe the core dev team. After all, the core dev team working here at LiveCode isn't an remote and monolithic alien entity with inscrutable intentions. Or at least, I hope not. Peter -- Dr Peter Brett LiveCode Open Source Team LiveCode on reddit: https://reddit.com/r/livecode From dixonja at hotmail.co.uk Tue Jan 26 10:48:05 2016 From: dixonja at hotmail.co.uk (John Dixon) Date: Tue, 26 Jan 2016 15:48:05 +0000 Subject: [BUG] write to file In-Reply-To: <56A79212.6020305@livecode.com> References: , <56A6D0B3.20301@fourthworld.com>, , , , , <56A79212.6020305@livecode.com> Message-ID: 'the mothership' in the context of talking about the 'runtime revolution' or what has now become the 'liveCode' headquarters in Edinburgh is a term of endearment that has been used to refer to it more or less for the complete term of its existence... as a chap once said .. 'What's in a name ? that which we call a rose by any other name would smell as sweet'... :-) > Subject: Re: [BUG] write to file > To: use-livecode at lists.runrev.com > From: peter.brett at livecode.com > Date: Tue, 26 Jan 2016 15:34:42 +0000 > > On 26/01/2016 14:47, Kay C Lan wrote: > > Thanks Mike, > > > > Yes, that is all correct. > > > > Panos at the mothership has confirmed that this is a bug that effects OS X > > only. > > I would prefer if if people wouldn't use "the mothership" to describe > the core dev team. > > After all, the core dev team working here at LiveCode isn't an remote > and monolithic alien entity with inscrutable intentions. Or at least, I > hope not. > > Peter > > -- > Dr Peter Brett > LiveCode Open Source Team From t.heaford at icloud.com Tue Jan 26 11:07:58 2016 From: t.heaford at icloud.com (Terence Heaford) Date: Tue, 26 Jan 2016 16:07:58 +0000 Subject: Using the Widget to display charts Message-ID: I have previously been trying to display charts using HighCharts in a LC browser in LC6 & LC7 without success from a local copy of HighCharts. I have just thrown together a test stack using AMCharts in a LC8 Browser widget and to my surprise it has worked. I have three fields. 1. The AMCharts base JS 2. The AMCharts JS for a pie chart 3. A sample Pie Chart JS In the sample JS I replace the calls to AMCharts web by replacing the calls with the JS Code in 1 & 2 and then place the result into the htmlText of the widget. Surprise, surprise, it worked. This should allow all sorts of fancy charts to be displayed in LC 8. See the examples on AMCharts website https://www.amcharts.com I have but the rough and ready example in dropbox for anyone interested. https://dl.dropboxusercontent.com/u/98788898/ChartInBrowserTest.livecode All the best Terry From benr_mc at cogapp.com Tue Jan 26 11:20:38 2016 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Tue, 26 Jan 2016 16:20:38 +0000 Subject: exits on suspend (was Re: Davos Day 3) In-Reply-To: References: <56A75079.80203@cogapp.com> Message-ID: <56A79CD6.90404@cogapp.com> Aha - interesting indeed. Thanks Thierry. TBH, until I checked today I didn't know that there was this option to have it NOT exit on suspend, so I've already coded a solution for the app I'm currently playing with, to save state on shutdown, and retrieve on startup, which works for me. So I'm probably better off leaving it that way for now, but it's good to know some choices exist. With your external, would the app get a notification if iOS decided to purge it altogether after it had first been suspended? Or does that no longer happen with current iOS, i.e. it saves the state of all suspended apps? best, Ben On 26/01/2016 15:24, Thierry Douez wrote: > 2016-01-26 11:54 GMT+01:00 > Ben Rubinstein : > >> - interestingly, when the stack is not set to exit to suspend, it does not >> appear to get any of the messages you might expect (i.e. >> suspend/resume[Stack]). AFAICT there's no way with this option for an app to >> tell when it has been suspended. (Without this option set, the app gets >> shutdown/closeCard/closeStack; followed when reopened by >> startup/openStack/openCard). >> >> Ben > > Hi Ben. > > You could have a look here: > > http://forums.livecode.com/phpBB2/viewtopic.php?f=49&t=23570&p=122312#p122123 > > I did this job almost a year ago. > > If you are interested to know more about it, you know how > to contact me. > > Kind regards, > > Thierry > > > ------------------------------------------------ > Thierry Douez - http://sunny-tdz.com > sunnYrex - sunnYtext2speech - sunnYperl - sunnYmidi - sunnYmage From ambassador at fourthworld.com Tue Jan 26 11:22:52 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 26 Jan 2016 08:22:52 -0800 Subject: [BUG] write to file In-Reply-To: References: Message-ID: <56A79D5C.4070302@fourthworld.com> Kay C Lan wrote: > On Tue, Jan 26, 2016 at 9:49 AM, Richard Gaskin wrote: > >> Good find. How did you come across that bit of archaeology? > > Not that good, what you really need to know is whether the enhancement > request was ever actioned. I'd guess the URL form remains as Jacque described, a whole-file operation. It only takes a couple extra lines to do the open/write/close alternative, and in the minority of cases in which we need fine-grained control over file I/O it's no more onerous than the only file I/O syntax the root tongue, HyperTalk, offered. It'd be nice to have, but the team has a long list ahead of them, and relatively few engine contributions from the community to fill in the gaps on these nice-to-haves. I'm just grateful we have the various "open file" modes at all - being able to use "update" and "append" are godsends for a wide range of tasks involving large files. Even better, Mark Waddingham updated the file I/O stuff a few versions back so that it can accept >32-bit values for the length in the file spec, allowing us to traverse files > 4 GB. It's not often I have to do that, but I discovered the older limitation when I was given a 6.2 GB file to slice and dice and now I can do so with ease, using "seek" to jump around in the file to get the parts I need. > I was searching the QCC DB to ensure I wasn't duplicating a Bug report > when, like most archaeological digs, I stumbled across a gem. Your find prompted me to do a search in the bug DB for all reports that include "scott at runrev.com" among the commenters and found some other gems from the olden days, like this useful tidbit I never knew before (is this documented?): ...you can use numbers of the form "0xFFFFFFFF" directly in scripts, saving you the rigamarole of using numToChar to build them 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 ambassador at fourthworld.com Tue Jan 26 11:25:43 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 26 Jan 2016 08:25:43 -0800 Subject: One Rect For All specificaiton In-Reply-To: <460ADF4D-BE89-430A-A603-02F46D99E84D@gmail.com> References: <460ADF4D-BE89-430A-A603-02F46D99E84D@gmail.com> Message-ID: <56A79E07.3040606@fourthworld.com> Colin Holgate wrote: > Being letterboxed isn?t a quality issue, it isn?t even bad. It?s just > that Apple would reject the app. On what grounds? -- 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 colinholgate at gmail.com Tue Jan 26 11:27:58 2016 From: colinholgate at gmail.com (Colin Holgate) Date: Tue, 26 Jan 2016 16:27:58 +0000 Subject: One Rect For All specificaiton In-Reply-To: <56A79E07.3040606@fourthworld.com> References: <460ADF4D-BE89-430A-A603-02F46D99E84D@gmail.com> <56A79E07.3040606@fourthworld.com> Message-ID: <73CD5BA6-8A84-4BE5-85E0-47EA9F3ED7CB@gmail.com> You have to support iPhone 5, meaning, include Default-568h at 2x.png, so that it doesn?t look like an iPhone 4 app. > On Jan 26, 2016, at 4:25 PM, Richard Gaskin wrote: > > Colin Holgate wrote: > > > Being letterboxed isn?t a quality issue, it isn?t even bad. It?s just > > that Apple would reject the app. > > On what grounds? > > -- > 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 MikeKerner at roadrunner.com Tue Jan 26 11:27:43 2016 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Tue, 26 Jan 2016 11:27:43 -0500 Subject: [BUG] write to file In-Reply-To: <56A79D5C.4070302@fourthworld.com> References: <56A79D5C.4070302@fourthworld.com> Message-ID: Peter, I would consider it high praise, not something else. Over here in The Colonies, there are many references to "The Mothership", and I can't think of one that is derogatory. On Tue, Jan 26, 2016 at 11:22 AM, Richard Gaskin wrote: > Kay C Lan wrote: > > On Tue, Jan 26, 2016 at 9:49 AM, Richard Gaskin wrote: > > > >> Good find. How did you come across that bit of archaeology? > > > > Not that good, what you really need to know is whether the enhancement > > request was ever actioned. > > I'd guess the URL form remains as Jacque described, a whole-file > operation. It only takes a couple extra lines to do the open/write/close > alternative, and in the minority of cases in which we need fine-grained > control over file I/O it's no more onerous than the only file I/O syntax > the root tongue, HyperTalk, offered. > > It'd be nice to have, but the team has a long list ahead of them, and > relatively few engine contributions from the community to fill in the gaps > on these nice-to-haves. > > I'm just grateful we have the various "open file" modes at all - being > able to use "update" and "append" are godsends for a wide range of tasks > involving large files. > > Even better, Mark Waddingham updated the file I/O stuff a few versions > back so that it can accept >32-bit values for the length in the file spec, > allowing us to traverse files > 4 GB. It's not often I have to do that, > but I discovered the older limitation when I was given a 6.2 GB file to > slice and dice and now I can do so with ease, using "seek" to jump around > in the file to get the parts I need. > > > > I was searching the QCC DB to ensure I wasn't duplicating a Bug report > > when, like most archaeological digs, I stumbled across a gem. > > Your find prompted me to do a search in the bug DB for all reports that > include "scott at runrev.com" among the commenters and found some other gems > from the olden days, like this useful tidbit I never knew before (is this > documented?): > > ...you can use numbers of the form "0xFFFFFFFF" directly > in scripts, saving you the rigamarole of using numToChar > to build them 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 > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 ambassador at fourthworld.com Tue Jan 26 11:28:17 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 26 Jan 2016 08:28:17 -0800 Subject: [BUG] write to file In-Reply-To: <56A79212.6020305@livecode.com> References: <56A79212.6020305@livecode.com> Message-ID: <56A79EA1.9080408@fourthworld.com> Peter TB Brett wrote: > On 26/01/2016 14:47, Kay C Lan wrote: >> >> Panos at the mothership has confirmed that this is a bug that >> effects OS X only. > > I would prefer if if people wouldn't use "the mothership" to describe > the core dev team. > > After all, the core dev team working here at LiveCode isn't an remote > and monolithic alien entity with inscrutable intentions. Or at > least, I hope not. Funny, the negative connotation hadn't occurred to me. I think the intention is less "Childhood's End" and more "Star Trek", a tip of the hat to the centrally important role the core dev team has in stewarding the LiveCode technology. -- 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 smaclean at madmansoft.com Tue Jan 26 11:30:03 2016 From: smaclean at madmansoft.com (Stephen MacLean) Date: Tue, 26 Jan 2016 11:30:03 -0500 Subject: exits on suspend (was Re: Davos Day 3) In-Reply-To: <56A79CD6.90404@cogapp.com> References: <56A75079.80203@cogapp.com> <56A79CD6.90404@cogapp.com> Message-ID: <083CAA5E-BB65-424A-AA56-AD823DD0114C@madmansoft.com> Also check out Monte's mergEXT. You can get notifications from iOS Best, Steve MacLean > On Jan 26, 2016, at 11:20 AM, Ben Rubinstein wrote: > > Aha - interesting indeed. Thanks Thierry. > > TBH, until I checked today I didn't know that there was this option to have it NOT exit on suspend, so I've already coded a solution for the app I'm currently playing with, to save state on shutdown, and retrieve on startup, which works for me. So I'm probably better off leaving it that way for now, but it's good to know some choices exist. > > With your external, would the app get a notification if iOS decided to purge it altogether after it had first been suspended? Or does that no longer happen with current iOS, i.e. it saves the state of all suspended apps? > > best, > > Ben > >> On 26/01/2016 15:24, Thierry Douez wrote: >> 2016-01-26 11:54 GMT+01:00 >> Ben Rubinstein : >> >>> - interestingly, when the stack is not set to exit to suspend, it does not >>> appear to get any of the messages you might expect (i.e. >>> suspend/resume[Stack]). AFAICT there's no way with this option for an app to >>> tell when it has been suspended. (Without this option set, the app gets >>> shutdown/closeCard/closeStack; followed when reopened by >>> startup/openStack/openCard). >>> >>> Ben >> >> Hi Ben. >> >> You could have a look here: >> >> http://forums.livecode.com/phpBB2/viewtopic.php?f=49&t=23570&p=122312#p122123 >> >> I did this job almost a year ago. >> >> If you are interested to know more about it, you know how >> to contact me. >> >> Kind regards, >> >> Thierry >> >> >> ------------------------------------------------ >> Thierry Douez - http://sunny-tdz.com >> sunnYrex - sunnYtext2speech - sunnYperl - sunnYmidi - sunnYmage > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From sritcp at gmail.com Tue Jan 26 11:16:26 2016 From: sritcp at gmail.com (Sri) Date: Tue, 26 Jan 2016 08:16:26 -0800 (PST) Subject: Using the Widget to display charts In-Reply-To: References: Message-ID: <1453824986747-4700436.post@n4.nabble.com> Very interesting! Thanks, Sri -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Using-the-Widget-to-display-charts-tp4700428p4700436.html Sent from the Revolution - User mailing list archive at Nabble.com. From brahma at hindu.org Tue Jan 26 13:00:12 2016 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Tue, 26 Jan 2016 18:00:12 +0000 Subject: One Rect For All specificaiton In-Reply-To: <73CD5BA6-8A84-4BE5-85E0-47EA9F3ED7CB@gmail.com> References: <460ADF4D-BE89-430A-A603-02F46D99E84D@gmail.com> <56A79E07.3040606@fourthworld.com> <73CD5BA6-8A84-4BE5-85E0-47EA9F3ED7CB@gmail.com> Message-ID: Interesting? ?give us artwork/image 4:3 with 75% interior safe zone? I thinks still works for 5:3 and 16:10. You will just have some of the bleed showing in those ratios. As for 3:2? that?s a new one on me? got any real number pixel dimensions for that one? But getting art/image background to fill is perhaps the least of our issues, now that we understand it. Getting controls to follow the screen edges is the bigger issue. See my other note on the bug I found for this. Unless I am missing something (and I miss a lot!) we can?t depend ?the rect of this card? to position elements, because if you work in a scaled stack 16:9 at 1200 X 675.. that will be the rect of the card regardless of the actual screen size, so if you use those values to calculate coords, it will not work at all. Setting, e.g. a bottom tab bar ?to the height of this card? doesn?t work. showAll will ?pull up/in? but will not ?push down/out? to the screen edges So I think we really need to be sure the screenRect function is getting accurately reported on all devices? It certainly is not in the iOS simulator running from xCode. Theoretically put the effective screenRect into tRect set the bottom of grp ?baseControls? to item 4 of tRect should work. Can anyone else test this on varioius devices and report back? My Nexus 5 is 16 x9 so I can?t see/text any other scenario here. @ Jacqueline & Roger: Are either of you using the screenRect for any positioning methods on your Android apps? On January 26, 2016 at 6:29:10 AM, Colin Holgate (colinholgate at gmail.com) wrote: >>> I wonder how that will translate to Android. I found these aspect ratios >> , listed from most common >> to least: >>> >>> 16:9 >>> 5:3 >>> 4:3 >>> 16:10 >>> 3:2 From roger.e.eller at sealedair.com Tue Jan 26 13:06:25 2016 From: roger.e.eller at sealedair.com (Roger Eller) Date: Tue, 26 Jan 2016 13:06:25 -0500 Subject: [BUG] write to file In-Reply-To: <56A79EA1.9080408@fourthworld.com> References: <56A79212.6020305@livecode.com> <56A79EA1.9080408@fourthworld.com> Message-ID: On Tue, Jan 26, 2016 at 11:28 AM, Richard Gaskin wrote: > Peter TB Brett wrote: > > I would prefer if if people wouldn't use "the mothership" to describe > > the core dev team. > > I think the intention is less "Childhood's End" and more "Star Trek", a > tip of the hat to the centrally important role the core dev team has in > stewarding the LiveCode technology. > > Every 'mothership' has a 'core dev team'. In Star Trek it was Kirk, Spock, & McCoy. The team dynamic is what made their adventures successful. Now, if someone refers to the team as a bunch of expendable 'red shirts', then THAT is meant in a negative way. RESPECT for the CDT! RESPECT for the Enterprise (Runtime Revolution)! ~Roger From mwieder at ahsoftware.net Tue Jan 26 13:29:07 2016 From: mwieder at ahsoftware.net (Mark Wieder) Date: Tue, 26 Jan 2016 10:29:07 -0800 Subject: [BUG] write to file In-Reply-To: <56A79D5C.4070302@fourthworld.com> References: <56A79D5C.4070302@fourthworld.com> Message-ID: <56A7BAF3.7040601@ahsoftware.net> On 01/26/2016 08:22 AM, Richard Gaskin wrote: > Your find prompted me to do a search in the bug DB for all reports that > include "scott at runrev.com" among the commenters and found some other > gems from the olden days, like this useful tidbit I never knew before > (is this documented?): > > ...you can use numbers of the form "0xFFFFFFFF" directly > in scripts, saving you the rigamarole of using numToChar > to build them up... > Hex notation has, as far as I know, always been supported. I don't see anything in the api dictionary about it, and the guides aren't searchable , so I can't say whether the numeric format is documented. -- Mark Wieder ahsoftware at gmail.com From mwieder at ahsoftware.net Tue Jan 26 14:08:26 2016 From: mwieder at ahsoftware.net (Mark Wieder) Date: Tue, 26 Jan 2016 11:08:26 -0800 Subject: [BUG] write to file In-Reply-To: <56A79212.6020305@livecode.com> References: <56A6D0B3.20301@fourthworld.com> <56A79212.6020305@livecode.com> Message-ID: <56A7C42A.5040807@ahsoftware.net> On 01/26/2016 07:34 AM, Peter TB Brett wrote: > I would prefer if if people wouldn't use "the mothership" to describe > the core dev team. My goodness. Somebody got up on the wrong side of the bed this morning. > and monolithic ...there's that word again... -- Mark Wieder ahsoftware at gmail.com From colinholgate at gmail.com Tue Jan 26 14:38:57 2016 From: colinholgate at gmail.com (Colin Holgate) Date: Tue, 26 Jan 2016 19:38:57 +0000 Subject: One Rect For All specificaiton In-Reply-To: References: <460ADF4D-BE89-430A-A603-02F46D99E84D@gmail.com> <56A79E07.3040606@fourthworld.com> <73CD5BA6-8A84-4BE5-85E0-47EA9F3ED7CB@gmail.com> Message-ID: In showAll to position controls in the corners you need to know the ratio of the device screen. You then multiply that by the width or height, to work out the position. From jacque at hyperactivesw.com Tue Jan 26 15:17:39 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 26 Jan 2016 14:17:39 -0600 Subject: One Rect For All specificaiton In-Reply-To: References: <460ADF4D-BE89-430A-A603-02F46D99E84D@gmail.com> <56A79E07.3040606@fourthworld.com> <73CD5BA6-8A84-4BE5-85E0-47EA9F3ED7CB@gmail.com> Message-ID: <56A7D463.2000303@hyperactivesw.com> On 1/26/2016 12:00 PM, Sannyasin Brahmanathaswami wrote: > As for 3:2? that?s a new one on me? got any real number pixel > dimensions for that one? There's a chart here: > So I think we really need to be sure the screenRect function is > getting accurately reported on all devices? It certainly is not in > the iOS simulator running from xCode. Theoretically > > put the effective screenRect into tRect set the bottom of grp > ?baseControls? to item 4 of tRect > > should work. Can anyone else test this on varioius devices and report > back? My Nexus 5 is 16 x9 so I can?t see/text any other scenario > here. It's working as expected. By default, LC reports the screenrect as logical points rather than pixels, unless you set the iPhoneUseDeviceResolution to true. The dictionary says that setting only works on iOS though, not on Android, where pixel mapping always occurs. Since it's not cross-platform I avoid it. > > @ Jacqueline & Roger: Are either of you using the screenRect for any > positioning methods on your Android apps? Not since fullscreenMode was implemented. But (I think) "the width of this cd" or "the bottom of this cd" can work instead of absolute pixels, since the engine will calculate where those are relative to the current display. We could really use a good tutorial about all this. It confuses everybody except Colin... Let's make him write it. :) -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From dochawk at gmail.com Tue Jan 26 17:10:44 2016 From: dochawk at gmail.com (Dr. Hawkins) Date: Tue, 26 Jan 2016 14:10:44 -0800 Subject: match a parenthesis literal in a lived regex? Message-ID: My understanding is that at least one of [(] or [\(] should match an opening parenthesis in a regular expression, but my experimenting isn't filing this. Am I missing something, or is this just not implemented? -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From jacque at hyperactivesw.com Tue Jan 26 18:34:41 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 26 Jan 2016 17:34:41 -0600 Subject: Temp folder on public computers Message-ID: <56A80291.8040108@hyperactivesw.com> I need to write a temporary file on computers that may be locked down, such as those in a computer lab or library. Can I be fairly certain that the temporary folder permissions will always allow access? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From lan.kc.macmail at gmail.com Tue Jan 26 19:58:31 2016 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Wed, 27 Jan 2016 08:58:31 +0800 Subject: [BUG] write to file In-Reply-To: <56A79212.6020305@livecode.com> References: <56A6D0B3.20301@fourthworld.com> <56A79212.6020305@livecode.com> Message-ID: On Tue, Jan 26, 2016 at 11:34 PM, Peter TB Brett wrote: > >> I would prefer if if people wouldn't use "the mothership" to describe the > core dev team. > > Sorry, no disrespect intended. I basically failed English and it's not the first time I've used a turn of phrase on this List which I thought was lighthearted or upbeat only to discover across the globe it meant something quite opposite. My intention was certainly more 'Millennium Falcon' rather than 'Death Star' and that the Bug being OS X specific wasn't confirmed by me but by someone with actual qualifications, credibility and who's in a position to take on 'Darth Bug' and save the day for all of us. :-) Oh, and the latest Star Wars movie... a must see. Not brilliant like the first 3 (IV,V & VI) as it seemed to suffer from a sort of Catch-22: the way it tied in the original movies was to be commended, but the fact that it condensed the plot line of the first 3 into one movie made it just too predictable. But, 30+ years of improvement in cinematography, cgi and special effects can't be ignored. From ambassador at fourthworld.com Tue Jan 26 20:29:37 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 26 Jan 2016 17:29:37 -0800 Subject: Temp folder on public computers In-Reply-To: <56A80291.8040108@hyperactivesw.com> References: <56A80291.8040108@hyperactivesw.com> Message-ID: <56A81D81.2090807@fourthworld.com> J. Landman Gay wrote: > I need to write a temporary file on computers that may be locked > down, such as those in a computer lab or library. Can I be fairly > certain that the temporary folder permissions will always allow > access? Even if it were, on well-designed systems the temp folder will be cleared on boot; on less well designed systems it'll be cleared under circumstances your program may not be able to predict; in all cases the data has no assurance of survival between sessions. If the admins have locked down the Preferences folder or equivalent, they've set it up to prevent user-specific data writes. If so, writing anywhere will be risky once they figure out they didn't do a complete job and then nix the method you'd come up with. Any chance they can tell you what they want? Or use a network store? -- 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 26 21:18:19 2016 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Wed, 27 Jan 2016 10:18:19 +0800 Subject: match a parenthesis literal in a lived regex? In-Reply-To: References: Message-ID: You're missing something :-) If you are using the matchText function you must remember you still need your capturing parenthesis \( will find a single opening parenthesis [(] will find a single opening parenthesis [\(] will find a single opening parenthesis or back slash in the msg box - change the commented line to test each: put "here is some (text in brackets) and some not." into tStore if (matchText(tStore,"(\()",tFound) = true) then --if (matchText(tStore,"([(])",tFound) = true) then --if (matchText(tStore,"([\(])",tFound) = true) then put tFound into msg --in all cases '(text' should end up in the msg box else put "Not Found" into msg end if LC uses PCRE regex which can be tested here: https://regex101.com/#pcre Make sure PCRE is checked in the left hand column. If it works here it will work in LC - but you still must remember to add the quotes and if you are looking for more than a simple true or false, then you'll need to add the capturing parenthesis - but this too can be tested at the above site, the matches will appear in the second window down in the right hand column. On Wed, Jan 27, 2016 at 6:10 AM, Dr. Hawkins wrote: > My understanding is that at least one of [(] or [\(] should match an > opening parenthesis in a regular expression, but my experimenting isn't > filing this. > > Am I missing something, or is this just not implemented? > > -- > 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 Tue Jan 26 21:22:17 2016 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Wed, 27 Jan 2016 10:22:17 +0800 Subject: match a parenthesis literal in a lived regex? In-Reply-To: References: Message-ID: typo --in all cases '(' should end up in the msg box I originally tested: if (matchText(tStore,"(\(\w+)",tFound) = true) then so it was finding: (text but your request was for a single opening parenthesis so I removed the \w+ bit On Wed, Jan 27, 2016 at 10:18 AM, Kay C Lan wrote: > You're missing something :-) If you are using the matchText function you > must remember you still need your capturing parenthesis > > \( will find a single opening parenthesis > [(] will find a single opening parenthesis > [\(] will find a single opening parenthesis or back slash > > in the msg box - change the commented line to test each: > > put "here is some (text in brackets) and some not." into tStore > if (matchText(tStore,"(\()",tFound) = true) then > --if (matchText(tStore,"([(])",tFound) = true) then > --if (matchText(tStore,"([\(])",tFound) = true) then > put tFound into msg > --in all cases '(text' should end up in the msg box > else > put "Not Found" into msg > end if > > LC uses PCRE regex which can be tested here: > > https://regex101.com/#pcre > > Make sure PCRE is checked in the left hand column. If it works here it > will work in LC - but you still must remember to add the quotes and if you > are looking for more than a simple true or false, then you'll need to add > the capturing parenthesis - but this too can be tested at the above site, > the matches will appear in the second window down in the right hand column. > > On Wed, Jan 27, 2016 at 6:10 AM, Dr. Hawkins wrote: > >> My understanding is that at least one of [(] or [\(] should match an >> opening parenthesis in a regular expression, but my experimenting isn't >> filing this. >> >> Am I missing something, or is this just not implemented? >> >> -- >> 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 jacque at hyperactivesw.com Tue Jan 26 21:25:33 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 26 Jan 2016 20:25:33 -0600 Subject: Temp folder on public computers In-Reply-To: <56A81D81.2090807@fourthworld.com> References: <56A80291.8040108@hyperactivesw.com> <56A81D81.2090807@fourthworld.com> Message-ID: <56A82A9D.7090208@hyperactivesw.com> On 1/26/2016 7:29 PM, Richard Gaskin wrote: > J. Landman Gay wrote: > > > I need to write a temporary file on computers that may be locked > > down, such as those in a computer lab or library. Can I be fairly > > certain that the temporary folder permissions will always allow > > access? > > Even if it were, on well-designed systems the temp folder will be > cleared on boot; on less well designed systems it'll be cleared under > circumstances your program may not be able to predict; in all cases the > data has no assurance of survival between sessions. That's fine, it only needs to be there temporarily while the app runs. The app can test to see if the file exists if it needs it again, and recopy it. > Any chance they can tell you what they want? > > Or use a network store? I need to put html stored in a custom property into a browser object. Since using a variable isn't possible, I need to write the property to disk and then load it. A URL from the server would work too, and I'll do that if we need to, but I wanted to explore the idea of using the temp folder instead so I can store the html data in the stack. But the temporary folder has to be reliably accessible to do that. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From rdimola at evergreeninfo.net Tue Jan 26 23:03:41 2016 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Tue, 26 Jan 2016 23:03:41 -0500 Subject: [BUG] write to file In-Reply-To: References: <56A6D0B3.20301@fourthworld.com> <56A79212.6020305@livecode.com> Message-ID: <005701d158b7$b5dfd660$219f8320$@net> -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Kay C Lan Sent: Tuesday, January 26, 2016 7:59 PM To: How to use LiveCode Subject: Re: [BUG] write to file On Tue, Jan 26, 2016 at 11:34 PM, Peter TB Brett wrote: > >> I would prefer if if people wouldn't use "the mothership" to describe >> the > core dev team. > > Sorry, no disrespect intended. I basically failed English and it's not > the > first time I've used a turn of phrase on this List which I thought was lighthearted or upbeat only to discover across the > > globe it meant something quite opposite. My intention was certainly more 'Millennium Falcon' rather than 'Death Star' and > > that the Bug being OS X specific wasn't confirmed by me but by someone with actual qualifications, credibility and who's in > a position to take on 'Darth Bug' and save the day for all of us. :-) > Oh, and the latest Star Wars movie... a must see. Not brilliant like the first 3 (IV,V & VI) as it seemed to suffer from a > > sort of Catch-22: the way it tied in the original movies was to be commended, but the fact that it condensed the plot line > > of the first 3 into one movie made it just too predictable. But, 30+ years of improvement in cinematography, cgi and special > effects can't be ignored. The first time I went to the UK from the States I was mad about some vendor or something and walked into the office at 9am and loudly pronounced how "pissed" I was. I quickly learned US=mad UK=drunk. After that when I traveled I refrained from any colloquialisms until I learned the lay of the land. This worked until, being exhausted from jet lag I turned down drinks in Japan and highly insulted my Asian co-workers. Well I tried.... Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net From brahma at hindu.org Tue Jan 26 23:07:02 2016 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Wed, 27 Jan 2016 04:07:02 +0000 Subject: One Rect For All specificaiton In-Reply-To: References: <460ADF4D-BE89-430A-A603-02F46D99E84D@gmail.com> <56A79E07.3040606@fourthworld.com> <73CD5BA6-8A84-4BE5-85E0-47EA9F3ED7CB@gmail.com> Message-ID: On January 26, 2016 at 9:39:15 AM, Colin Holgate (colinholgate at gmail.com) wrote: In showAll to position controls in the corners you need to know the ratio of the device screen. You then multiply that by the width or height, to work out the position. @ colin: I think we still need a base value reference for width and height values. Card rect will not work, tried it and it fails, following your earlier counsel to ?use what ever size stack feels comfortable? I?m using 1200 x657 ergo I think we have to use the screenRect, n?est pas? I?m in a discusson on a quality ticket on this subject. Apparently we *must* have all the splash screens in place to get LC/iOS to report the actual screen rect correctly or it defaults to the lowest possible platform rect in points regardless of what iOS device you are on: hence the bizarre report from my test app that the screenrect on my iPhone 6plus was 440 X 320 (or some such strange value) Android: I only have a Nexus 5 (16:9) so I can?t test other Android sizes/ratios. @ Jaqueline? If you run a 16:9 ? 1200 X 675 stack on an iPad. the card rect is still reported as 675 high even though the screen is 728 high set the bottom of grp ?bottomNav? to item 4 of (the rect of this card) will float the group at 675, 53 pixels above the bottom edge (iPad height is 728) if you could test using this kind of method instead. on preopenstack put the effective stackRect into tBaseRect set the bottom of grp ?bottomToolBar? to item 4 of tBaseRect end preopenstack and see if that sticks the control to the bottom edge of varying size/ratio android devices. That would be an interesting test. As for a tutorial? yes Colin would best write the docs? though I think my demo stack is getting there slowly. I'm stuck in editorial for a few days and will get back to it later this week. BR From mwieder at ahsoftware.net Tue Jan 26 23:57:50 2016 From: mwieder at ahsoftware.net (Mark Wieder) Date: Tue, 26 Jan 2016 20:57:50 -0800 Subject: [BUG] write to file In-Reply-To: <005701d158b7$b5dfd660$219f8320$@net> References: <56A6D0B3.20301@fourthworld.com> <56A79212.6020305@livecode.com> <005701d158b7$b5dfd660$219f8320$@net> Message-ID: <56A84E4E.5000009@ahsoftware.net> On 01/26/2016 08:03 PM, Ralph DiMola wrote: > The first time I went to the UK from the States I was mad about some vendor > or something and walked into the office at 9am and loudly pronounced how > "pissed" I was. I quickly learned US=mad UK=drunk. After that when I > traveled I refrained from any colloquialisms until I learned the lay of the > land. This worked until, being exhausted from jet lag I turned down drinks > in Japan and highly insulted my Asian co-workers. Well I tried.... Heh. My brother lives in San Diego, so I figured out a 15-minute walk from his house to the San Diego Trolley, so I could take the train to the 2013 LC conference at the hotel. The train stopped across the street from the hotel. I was proud of myself for having figured out the public transportation connections, arrived on time the first day for registration, and announced "I got here on the Trolley". Blank stares. Jo informed me that I had just announced that I had arrived via a shopping cart. -- Mark Wieder ahsoftware at gmail.com From monte at appisle.net Wed Jan 27 00:01:24 2016 From: monte at appisle.net (Monte Goulding) Date: Wed, 27 Jan 2016 16:01:24 +1100 Subject: [BUG] write to file In-Reply-To: <56A84E4E.5000009@ahsoftware.net> References: <56A6D0B3.20301@fourthworld.com> <56A79212.6020305@livecode.com> <005701d158b7$b5dfd660$219f8320$@net> <56A84E4E.5000009@ahsoftware.net> Message-ID: > On 27 Jan 2016, at 3:57 PM, Mark Wieder wrote: > > Heh. My brother lives in San Diego, so I figured out a 15-minute walk from his house to the San Diego Trolley, so I could take the train to the 2013 LC conference at the hotel. The train stopped across the street from the hotel. I was proud of myself for having figured out the public transportation connections, arrived on time the first day for registration, and announced "I got here on the Trolley". > > Blank stares. > > Jo informed me that I had just announced that I had arrived via a shopping cart. I?m pretty sure 2013 was in Edinburgh so that was one heck of a shopping cart ;-) Cheers Monte From rdimola at evergreeninfo.net Wed Jan 27 00:04:36 2016 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Wed, 27 Jan 2016 00:04:36 -0500 Subject: Getting the long name(or ID) of a control In-Reply-To: <56A82A9D.7090208@hyperactivesw.com> References: <56A80291.8040108@hyperactivesw.com> <56A81D81.2090807@fourthworld.com> <56A82A9D.7090208@hyperactivesw.com> Message-ID: <005e01d158c0$38787ac0$a9697040$@net> Riddle me this Batman: I have 2 controls named "F1"(field) and "menu"(button) both in a group named G1 Why does this work...???? put "F1" into somevar put the long name of control somevar into someothervar But this does not work... put "F1 of group G1" into somevar put the long name of control somevar into someothervar This works.... put "F1 of group G1" into somevar put the long name of ("control"&&somevar) into someothervar This also works.... put "F1" into somevar put the long name of ("control"&&somevar) into someothervar But this does not put "menu of group G1" into somevar put the long name of ("control"&&somevar) into someothervar But this does put quote&"menu""e&&"of group G1" into somevar put the long name of ("control"&&somevar) into someothervar And this works put "menu" into somevar put the long name of control somevar into someothervar Menu seems to be a keyword or something. What am I missing? Should there always be quotes around control names? (banging head against wall) Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net From monte at appisle.net Wed Jan 27 00:14:09 2016 From: monte at appisle.net (Monte Goulding) Date: Wed, 27 Jan 2016 16:14:09 +1100 Subject: Getting the long name(or ID) of a control In-Reply-To: <005e01d158c0$38787ac0$a9697040$@net> References: <56A80291.8040108@hyperactivesw.com> <56A81D81.2090807@fourthworld.com> <56A82A9D.7090208@hyperactivesw.com> <005e01d158c0$38787ac0$a9697040$@net> Message-ID: <93EA7565-B98D-4BB5-94CB-EBBF76C4656F@appisle.net> Yes menu is a keyword. The rest is just what the parser can and can?t cope with. > On 27 Jan 2016, at 4:04 PM, Ralph DiMola wrote: > > Riddle me this Batman: > > I have 2 controls named "F1"(field) and "menu"(button) both in a group named > G1 > > Why does this work...???? > put "F1" into somevar > put the long name of control somevar into someothervar > > But this does not work... > put "F1 of group G1" into somevar > put the long name of control somevar into someothervar > > This works.... > put "F1 of group G1" into somevar > put the long name of ("control"&&somevar) into someothervar > > This also works.... > put "F1" into somevar > put the long name of ("control"&&somevar) into someothervar > > But this does not > put "menu of group G1" into somevar > put the long name of ("control"&&somevar) into someothervar > > But this does > put quote&"menu""e&&"of group G1" into somevar > put the long name of ("control"&&somevar) into someothervar > > And this works > put "menu" into somevar > put the long name of control somevar into someothervar > > Menu seems to be a keyword or something. What am I missing? Should there > always be quotes around control names? (banging head against wall) > > 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 From mwieder at ahsoftware.net Wed Jan 27 00:06:29 2016 From: mwieder at ahsoftware.net (Mark Wieder) Date: Tue, 26 Jan 2016 21:06:29 -0800 Subject: [BUG] write to file In-Reply-To: References: <56A6D0B3.20301@fourthworld.com> <56A79212.6020305@livecode.com> <005701d158b7$b5dfd660$219f8320$@net> <56A84E4E.5000009@ahsoftware.net> Message-ID: <56A85055.7000000@ahsoftware.net> On 01/26/2016 09:01 PM, Monte Goulding wrote: > I?m pretty sure 2013 was in Edinburgh so that was one heck of a shopping cart ;-) Did I forget to mention the trip took a year? -- Mark Wieder ahsoftware at gmail.com From jacque at hyperactivesw.com Wed Jan 27 00:33:08 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 26 Jan 2016 23:33:08 -0600 Subject: Searching revBrowser content Message-ID: <56A85694.8090703@hyperactivesw.com> The docs say I should be able to select text in a browser control by setting the "selected" property. Repeatedly doing that should iterate through all matches. I can't get it to select anything even once. Is anyone else able to execute this successfully: revBrowserSet sBrowserId, "selected", pString The dictionary says it's a command but when I run it in the message box it says there's an error in the function. I assume that's because the engine treats it as a function internally. When I run it inside a handler in the script, no errors. I tried this (the script local sBrowserID has the correct value): on doFind pString revBrowserSet sBrowserId, "selected", pString --> nothing selected get the result --> always empty -- check to see what we have: put revBrowserGet(sBrowserId, "selected") into tSel --> always empty end doFind Does this work for anyone? I'm using the CEF browser because the plain old revBrowser won't load the file; it doesn't error but it shows no content, it's completely empty. LC 7.1.1, Mac OS X Yosemite -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From scott at tactilemedia.com Wed Jan 27 01:15:56 2016 From: scott at tactilemedia.com (Scott Rossi) Date: Tue, 26 Jan 2016 22:15:56 -0800 Subject: Getting the long name(or ID) of a control In-Reply-To: <005e01d158c0$38787ac0$a9697040$@net> References: <56A80291.8040108@hyperactivesw.com> <56A81D81.2090807@fourthworld.com> <56A82A9D.7090208@hyperactivesw.com> <005e01d158c0$38787ac0$a9697040$@net> Message-ID: What Colin said. You CAN use unquote object names, but I think it was Jacque who pointed out a while back that quoting control names results in slightly faster execution, since the engine doesn't need to determine if your word is a variable or an object name. Ever since that explanation, I started quoting everything. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 1/26/16, 9:04 PM, "use-livecode on behalf of Ralph DiMola" wrote: >Riddle me this Batman: > >I have 2 controls named "F1"(field) and "menu"(button) both in a group >named >G1 > >Why does this work...???? >put "F1" into somevar >put the long name of control somevar into someothervar > >But this does not work... >put "F1 of group G1" into somevar >put the long name of control somevar into someothervar > >This works.... >put "F1 of group G1" into somevar >put the long name of ("control"&&somevar) into someothervar > >This also works.... >put "F1" into somevar >put the long name of ("control"&&somevar) into someothervar > >But this does not >put "menu of group G1" into somevar >put the long name of ("control"&&somevar) into someothervar > >But this does >put quote&"menu""e&&"of group G1" into somevar >put the long name of ("control"&&somevar) into someothervar > >And this works >put "menu" into somevar >put the long name of control somevar into someothervar > >Menu seems to be a keyword or something. What am I missing? Should there >always be quotes around control names? (banging head against wall) > >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 From jacque at hyperactivesw.com Wed Jan 27 01:47:34 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 27 Jan 2016 00:47:34 -0600 Subject: Getting the long name(or ID) of a control In-Reply-To: References: <56A80291.8040108@hyperactivesw.com> <56A81D81.2090807@fourthworld.com> <56A82A9D.7090208@hyperactivesw.com> <005e01d158c0$38787ac0$a9697040$@net> Message-ID: <56A86806.6060400@hyperactivesw.com> On 1/27/2016 12:15 AM, Scott Rossi wrote: > I think it was Jacque who pointed > out a while back that quoting control names results in slightly faster > execution, since the engine doesn't need to determine if your word is a > variable or an object name. I don't know if it was me, but it's true and in some cases it's more than just slightly faster. I was hired to help speed up a stack that ran painfully slow, and saw that there were unquoted literals everywhere. Basically, none were quoted at all (it was an old HC stack and people had bad habits back then.) I told him to first add all the quotes and send it back to me, and then I'd look at it again. He wrote back and said he didn't need me any more, the stack ran as fast as blazes and was completely fixed. You'd probably never notice a few unquoted literals, but if they're everywhere it makes a difference. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Wed Jan 27 02:07:59 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 27 Jan 2016 01:07:59 -0600 Subject: One Rect For All specificaiton In-Reply-To: References: <460ADF4D-BE89-430A-A603-02F46D99E84D@gmail.com> <56A79E07.3040606@fourthworld.com> <73CD5BA6-8A84-4BE5-85E0-47EA9F3ED7CB@gmail.com> Message-ID: <56A86CCF.4090603@hyperactivesw.com> On 1/26/2016 10:07 PM, Sannyasin Brahmanathaswami wrote: > @ Jaqueline? If you run a 16:9 ? 1200 X 675 stack on an iPad. the card rect is still reported as 675 high even though the screen is 728 high > > set the bottom of grp ?bottomNav? to item 4 of (the rect of this card) > > will float the group at 675, 53 pixels above the bottom edge (iPad height is 728) > > if you could test using this kind of method instead. > > on preopenstack > put the effective stackRect into tBaseRect > set the bottom of grp ?bottomToolBar? to item 4 of tBaseRect > end preopenstack > > and see if that sticks the control to the bottom edge of varying size/ratio android devices. That would be an interesting test. I'm wrapped up in something else right now but I'll try to remember to test when I'm done. My original thought was to avoid use of "the rect" entirely and use relative positions instead, like "the right" or "the bottom", on the assumption the engine would know what to do. The rect is pixel-specific, where relative positions aren't (I think.) For example: set the bottom of grp "bottomToolBar" to the bottom of this cd Worth a try anyway. If I remember right, I used "the right of this cd" in Gurudeva and it worked on any screen. We didn't have to deal with tops and bottoms though, it was the width that varied. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From t.heaford at icloud.com Wed Jan 27 09:48:06 2016 From: t.heaford at icloud.com (Terence Heaford) Date: Wed, 27 Jan 2016 14:48:06 +0000 Subject: Using the Widget to display charts In-Reply-To: <1453824986747-4700436.post@n4.nabble.com> References: <1453824986747-4700436.post@n4.nabble.com> Message-ID: On further testing AMCharts also works in LC7. Using: revBrowserSet gBrowserId, "htmlText", tPieJS All the best Terry > On 26 Jan 2016, at 16:16, Sri wrote: > > Very interesting! > > Thanks, > Sri > > > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/Using-the-Widget-to-display-charts-tp4700428p4700436.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 ambassador at fourthworld.com Wed Jan 27 10:24:25 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 27 Jan 2016 07:24:25 -0800 Subject: Temp folder on public computers In-Reply-To: <56A82A9D.7090208@hyperactivesw.com> References: <56A82A9D.7090208@hyperactivesw.com> Message-ID: <56A8E129.5080603@fourthworld.com> J. Landman Gay wrote: > Richard wrote: >> J. Landman Gay wrote: >> >> > I need to write a temporary file on computers that may be locked >> > down, such as those in a computer lab or library. Can I be fairly >> > certain that the temporary folder permissions will always allow >> > access? ... >> Any chance they can tell you what they want? >> >> Or use a network store? > > I need to put html stored in a custom property into a browser object. > Since using a variable isn't possible, I need to write the property > to disk and then load it. IMNSHO it would be insane to lock the temp folder, given how many apps rely on it. That said, some admins are not sane. :) I'd try it and see what happens, with fingers crossed. -- 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 Wed Jan 27 10:59:36 2016 From: mwieder at ahsoftware.net (Mark Wieder) Date: Wed, 27 Jan 2016 07:59:36 -0800 Subject: Getting the long name(or ID) of a control In-Reply-To: <56A86806.6060400@hyperactivesw.com> References: <56A80291.8040108@hyperactivesw.com> <56A81D81.2090807@fourthworld.com> <56A82A9D.7090208@hyperactivesw.com> <005e01d158c0$38787ac0$a9697040$@net> <56A86806.6060400@hyperactivesw.com> Message-ID: <56A8E968.5050000@ahsoftware.net> On 01/26/2016 10:47 PM, J. Landman Gay wrote: > You'd probably never notice a few > unquoted literals, but if they're everywhere it makes a difference. You'd notice if you enabled strict compilation mode. Or rather, the compiler would help by noticing for you. -- Mark Wieder ahsoftware at gmail.com From ambassador at fourthworld.com Wed Jan 27 11:21:02 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 27 Jan 2016 08:21:02 -0800 Subject: Getting the long name(or ID) of a control In-Reply-To: <005e01d158c0$38787ac0$a9697040$@net> References: <005e01d158c0$38787ac0$a9697040$@net> Message-ID: <56A8EE6E.8010909@fourthworld.com> Ralph DiMola wrote: > Riddle me this Batman: > > I have 2 controls named "F1"(field) and "menu"(button) both in > a group named G1 > > Why does this work...???? > put "F1" into somevar > put the long name of control somevar into someothervar > > But this does not work... > put "F1 of group G1" into somevar > put the long name of control somevar into someothervar > > This works.... > put "F1 of group G1" into somevar > put the long name of ("control"&&somevar) into someothervar > > This also works.... > put "F1" into somevar > put the long name of ("control"&&somevar) into someothervar > > But this does not > put "menu of group G1" into somevar > put the long name of ("control"&&somevar) into someothervar > > But this does > put quote&"menu""e&&"of group G1" into somevar > put the long name of ("control"&&somevar) into someothervar > > And this works > put "menu" into somevar > put the long name of control somevar into someothervar > > Menu seems to be a keyword or something. What am I missing? Should > there always be quotes around control names? (banging head against > wall) "Menu" is indeed a keyword, but not a true object type. It's a convenient alternative to "button" when you want to address the *current* menu bar specifically. In most cases that'll resolve to an object in the menu group of the current card, but if the card has no menu group and a defaultMenubar has been named, it'll look for the object in the defaultMenubar. As for the rest, object references in LC are, IMO, somewhat smarter in their resolution than in any other xTalk. When mixing variables and literals in HC or SC, we often need to put the entire thing into a string before passing it to the engine as an object reference. But in LC we can mix and match object references much more flexibly, provided we keep in mind how the parser works. Specifically, (AFAIK) when using nested references ( of in a variable, the contents of the variable must be an object reference, that is, it must include the object type. Applying this to the examples that didn't work: put "F1 of group G1" into somevar put the long name of control somevar into someothervar In this case, adding the word "control" before "somevar" would allow the parser to use that as a complete reference. Seems safe to do there, since "control" is generic and useful for all object types (provided of course you don't have objects of different types with the same name). Here we have something else, two different object types used together: put "menu of group G1" into somevar put the long name of ("control"&&somevar) into someothervar That concatenation produces: control menu of group G1 ...which as Scott noted won't work because "menu" is a keyword, somewhat akin to writing: control button of group G1 If quoted it would work, but since it's not capitalized I'm not sure if it's actually the name of a menu object or a typo and something else was intended. As Jacque noted, it's very useful to adopt the habit of always quoting literal strings like object names. It benchmarks roughly twice as fast in my tests, and to my eye makes code easier to read. An exception is when the object name is the only thing in a variable, e.g.: put "File" into tObjName put the long id of btn tObjName of grp "MBAR" into tObj Variables that contain portions of an object reference that's non-nested (in which the variable contains only the name, ID, or ordinal number) can be used by themselves quite well. In fact, I haven't found a way to force the interpreter to includes quotes in such cases, e.g. this: put "File" into tObjName put the long id of btn (quote& tObjName "e) of grp "MBAR" into tObj ...throws an "object not found" error, which is understandable since the parenthetical expression is treated as a whole string and there is no object whose name includes the quotes. HTH - -- 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 bodine at bodinetraininggames.com Wed Jan 27 11:30:14 2016 From: bodine at bodinetraininggames.com (tbodine) Date: Wed, 27 Jan 2016 08:30:14 -0800 (PST) Subject: Sending emails, with attachments, on your server In-Reply-To: References: Message-ID: <1453912214170-4700465.post@n4.nabble.com> Thanks Bill! Tom -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Sending-emails-with-attachments-on-your-server-tp4700411p4700465.html Sent from the Revolution - User mailing list archive at Nabble.com. From prothero at earthednet.org Wed Jan 27 12:11:39 2016 From: prothero at earthednet.org (EED-wp Email) Date: Wed, 27 Jan 2016 09:11:39 -0800 Subject: Sending emails, with attachments, on your server In-Reply-To: <1453912214170-4700465.post@n4.nabble.com> References: <1453912214170-4700465.post@n4.nabble.com> Message-ID: Tom, You're welcome. Seems php isn't very popular here, but I find it very convenient and fast, and already integrated into most server situations. Of course, since I've programmed in numerous other languages, it isn't a big deal, and avoids some of the issues with Livecode that are a result of the massive changes being implemented. I don't mean to be critical of lc, but php has had many years of refinement, has massive documentation and help, and for very small jobs like online db communication and file management, it is an effective solution. Best, Bill William Prothero http://ed.earthednet.org > On Jan 27, 2016, at 8:30 AM, tbodine wrote: > > Thanks Bill! > Tom > > > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/Sending-emails-with-attachments-on-your-server-tp4700411p4700465.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 blueback09 at gmail.com Wed Jan 27 14:38:57 2016 From: blueback09 at gmail.com (Matt Maier) Date: Wed, 27 Jan 2016 11:38:57 -0800 Subject: snapshot and animation capture Message-ID: I need to be able to easily capture stuff the user is seeing on their screen so that they can import it into my application without having to navigate the file manager multiple times. There's some good screen capture stuff already in Livecode, but what I'm picturing is an actual window with a hole in it the user can position and leave there so they know what's going to be captured multiple times. Like gifcam http://blog.bahraniapps.com/gifcam/ There doesn't seem to be a way to set the background of a window to transparent. There is a way to mask the window using a transparent .png, but that won't allow the user to resize the window. At the moment the only mechanism I can come up with is to screencap what's behind the window every time the user moves or resizes it and display that in the window so that it looks like it's transparent. Is there a better way? Also, in addition to capturing still images, I'd like the user to be able to capture animated images (as an alternative to video). So, that part would be exactly like gifcam. The only mechanism I've found for that is to export each frame and then use something external like imagemagik to stitch them together into an animation. - Matt From scott at tactilemedia.com Wed Jan 27 14:55:06 2016 From: scott at tactilemedia.com (Scott Rossi) Date: Wed, 27 Jan 2016 11:55:06 -0800 Subject: snapshot and animation capture In-Reply-To: References: Message-ID: Hi Matt: I have a method for a resizable masked window that requires LC7 -- I'll try to post something later today or tomorrow. As far as image animation goes, I have a very vague memory that LC used to be able to export animated GIF images, but that may have been static images only. You may indeed need to go with a 3rd party option -- hopefully somebody else has a suggestion for this. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 1/27/16, 11:38 AM, "use-livecode on behalf of Matt Maier" wrote: >I need to be able to easily capture stuff the user is seeing on their >screen so that they can import it into my application without having to >navigate the file manager multiple times. There's some good screen capture >stuff already in Livecode, but what I'm picturing is an actual window with >a hole in it the user can position and leave there so they know what's >going to be captured multiple times. Like gifcam >http://blog.bahraniapps.com/gifcam/ > >There doesn't seem to be a way to set the background of a window to >transparent. There is a way to mask the window using a transparent .png, >but that won't allow the user to resize the window. At the moment the only >mechanism I can come up with is to screencap what's behind the window >every >time the user moves or resizes it and display that in the window so that >it >looks like it's transparent. Is there a better way? > >Also, in addition to capturing still images, I'd like the user to be able >to capture animated images (as an alternative to video). So, that part >would be exactly like gifcam. The only mechanism I've found for that is to >export each frame and then use something external like imagemagik to >stitch >them together into an animation. > >- Matt >_______________________________________________ >use-livecode mailing list >use-livecode at 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 27 15:02:16 2016 From: pete at lcsql.com (Peter Haworth) Date: Wed, 27 Jan 2016 12:02:16 -0800 Subject: launch document problem Message-ID: In an application I wrote several years ago, I create reports by writing html into a file and then using the launch document command to open the file in the user's preferred browser. All has been working fine with that approach until OSX Yosemite came along. The launch command references a file named: /Users/Pete/Documents/BandTrak/Report Data/Remittance.html The user has their default browser set to Chrome and when Chrome launches with the above file reference, the URL is: file:///.file/id=6571367.405704 ... which results in a "web page not found" message. If I copy/paste the URL into Safari, the file is successfully displayed. Does anyone know why this transformation of the file reference is occurring? Also why it is recognized in Safari and not Chrome? Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From brahma at hindu.org Wed Jan 27 16:17:11 2016 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Wed, 27 Jan 2016 21:17:11 +0000 Subject: One Rect For All specificaiton In-Reply-To: References: <460ADF4D-BE89-430A-A603-02F46D99E84D@gmail.com> <56A79E07.3040606@fourthworld.com> <73CD5BA6-8A84-4BE5-85E0-47EA9F3ED7CB@gmail.com> Message-ID: Colin wrote: In showAll to position controls in the corners you need to know the ratio of the device screen. You then multiply that by the width or height, to work out the position. OK I tried this and failed. FYI you need all splash screens installed in standAlone config to get iOS screen rects properly registered by LC? but this did not help. Suffice to say that my implementation of the ?use the ratio) idea fails when driving a 16 X 9 stack out to iPad in the simulator function getAltCardHeight tScreenRect # e.g. 0,0,736,414 OR 0,0,1024,768 etc. # get ratio for landscape height # attempt to determine height of card on any device: put ( item 4 of tScreenRect/item 3 of tScreenRect) into tRatioForVertical put ( (the width of this card) * tRatioForVertical) into tNewCardHeight return tNewCardheight # use the above to set the bottom of a control # to the bottom of the screen on any device end getAltCardHeight If anyone has a ?real? algorithm (used and tested on multiple devices with different ratios, screen densities and pixel dimensions) that allows us to dynamically set a control to the bottom or right edge of the screen using showAll, please share. Either I am incredibly dense and missing something simple or we really have no method/algorithm to accomplish this... for details see: http://quality.livecode.com/show_bug.cgi?id=16763 Demo with new methods here: go stack url "http://dev.himalayanacademy.com/stacks/safe-zone-002.livecode? at least the ?safe zone? for elements is clarified? BR From mwieder at ahsoftware.net Wed Jan 27 16:18:16 2016 From: mwieder at ahsoftware.net (Mark Wieder) Date: Wed, 27 Jan 2016 13:18:16 -0800 Subject: launch document problem In-Reply-To: References: Message-ID: <56A93418.30106@ahsoftware.net> On 01/27/2016 12:02 PM, Peter Haworth wrote: > /Users/Pete/Documents/BandTrak/Report Data/Remittance.html > Does anyone know why this transformation of the file reference is > occurring? Also why it is recognized in Safari and not Chrome? urlencode it or (better) remove that embedded space. -- Mark Wieder ahsoftware at gmail.com From colinholgate at gmail.com Wed Jan 27 16:25:46 2016 From: colinholgate at gmail.com (Colin Holgate) Date: Wed, 27 Jan 2016 21:25:46 +0000 Subject: One Rect For All specificaiton In-Reply-To: References: <460ADF4D-BE89-430A-A603-02F46D99E84D@gmail.com> <56A79E07.3040606@fourthworld.com> <73CD5BA6-8A84-4BE5-85E0-47EA9F3ED7CB@gmail.com> Message-ID: <3F464F7C-E038-47FE-9C24-2430B0407F45@gmail.com> It?s the ratio of the device screen you need, not the ratio of the card. > On Jan 27, 2016, at 9:17 PM, Sannyasin Brahmanathaswami wrote: > > Colin wrote: > > In showAll to position controls in the corners you need to know the ratio of the device screen. You then multiply that by the width or height, to work out the position. > > OK I tried this and failed. FYI you need all splash screens installed in standAlone config to get iOS screen rects properly registered by LC? but this did not help. > > Suffice to say that my implementation of the ?use the ratio) idea fails when driving a 16 X 9 stack out to iPad in the simulator > > function getAltCardHeight tScreenRect > > # e.g. 0,0,736,414 OR 0,0,1024,768 etc. > > > # get ratio for landscape height > # attempt to determine height of card on any device: > > > put ( item 4 of tScreenRect/item 3 of tScreenRect) into tRatioForVertical > put ( (the width of this card) * tRatioForVertical) into tNewCardHeight > return tNewCardheight > > # use the above to set the bottom of a control > > # to the bottom of the screen on any device > > end getAltCardHeight > > If anyone has a ?real? algorithm (used and tested on multiple devices with different ratios, screen densities and pixel dimensions) that allows us to dynamically set a control to the bottom or right edge of the screen using showAll, please share. Either I am incredibly dense and missing something simple or we really have no method/algorithm to accomplish this... > > for details see: > > http://quality.livecode.com/show_bug.cgi?id=16763 > > Demo with new methods here: > > > go stack url "http://dev.himalayanacademy.com/stacks/safe-zone-002.livecode? > > > at least the ?safe zone? for elements is clarified? > > BR > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From colinholgate at gmail.com Wed Jan 27 16:32:37 2016 From: colinholgate at gmail.com (Colin Holgate) Date: Wed, 27 Jan 2016 21:32:37 +0000 Subject: One Rect For All specificaiton In-Reply-To: References: <460ADF4D-BE89-430A-A603-02F46D99E84D@gmail.com> <56A79E07.3040606@fourthworld.com> <73CD5BA6-8A84-4BE5-85E0-47EA9F3ED7CB@gmail.com> Message-ID: <9CAE9459-7983-497A-B807-07A4AE0CCA8E@gmail.com> To elaborate on that? If you have a card that is 1024x768, running on a device that is 1920x1080, showAll will make you see the 1024x768, with an extra 171 pixels either side, to make 1366x768. That is then scaled up to fill the 1920x1080. An object in the upper left corner would have its top at zero, but it?s left would want to be at -171. You can calculate that -171 like this: (1024 - 768/1080*1920)/2 More generally, the left edge is the card width minus the card height divided by the device height, times the device width. All divided by 2. From scott at tactilemedia.com Wed Jan 27 17:27:32 2016 From: scott at tactilemedia.com (Scott Rossi) Date: Wed, 27 Jan 2016 14:27:32 -0800 Subject: snapshot and animation capture In-Reply-To: References: Message-ID: I thought this might make an interesting read, so the demo stack is included in an article: Hope this works for you. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 1/27/16, 11:55 AM, "use-livecode on behalf of Scott Rossi" wrote: >Hi Matt: > >I have a method for a resizable masked window that requires LC7 -- I'll >try to post something later today or tomorrow. As far as image animation >goes, I have a very vague memory that LC used to be able to export >animated GIF images, but that may have been static images only. You may >indeed need to go with a 3rd party option -- hopefully somebody else has a >suggestion for this. > >Regards, > >Scott Rossi >Creative Director >Tactile Media, UX/UI Design > > > > >On 1/27/16, 11:38 AM, "use-livecode on behalf of Matt Maier" > >wrote: > >>I need to be able to easily capture stuff the user is seeing on their >>screen so that they can import it into my application without having to >>navigate the file manager multiple times. There's some good screen >>capture >>stuff already in Livecode, but what I'm picturing is an actual window >>with >>a hole in it the user can position and leave there so they know what's >>going to be captured multiple times. Like gifcam >>http://blog.bahraniapps.com/gifcam/ >> >>There doesn't seem to be a way to set the background of a window to >>transparent. There is a way to mask the window using a transparent .png, >>but that won't allow the user to resize the window. At the moment the >>only >>mechanism I can come up with is to screencap what's behind the window >>every >>time the user moves or resizes it and display that in the window so that >>it >>looks like it's transparent. Is there a better way? >> >>Also, in addition to capturing still images, I'd like the user to be able >>to capture animated images (as an alternative to video). So, that part >>would be exactly like gifcam. The only mechanism I've found for that is >>to >>export each frame and then use something external like imagemagik to >>stitch >>them together into an animation. >> >>- Matt From brahma at hindu.org Wed Jan 27 17:39:22 2016 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Wed, 27 Jan 2016 22:39:22 +0000 Subject: One Rect For All specificaiton In-Reply-To: <9CAE9459-7983-497A-B807-07A4AE0CCA8E@gmail.com> References: <460ADF4D-BE89-430A-A603-02F46D99E84D@gmail.com> <56A79E07.3040606@fourthworld.com> <73CD5BA6-8A84-4BE5-85E0-47EA9F3ED7CB@gmail.com> <9CAE9459-7983-497A-B807-07A4AE0CCA8E@gmail.com> Message-ID: FYI: My function was using the device ratio based on the screen rect?.but your math uses the device *pixels* either way, the ratio is the same 16:9 | 736:414 | 1080:1920 and this does not affect your math: ( 1024 - (768/414*736) ) /2 = -171 (170.5) So thanks for that? I will try it? for the horizontal... function getAltCardHeight tScreenRect # get ratio for landscape height put ( item 4 of tScreenRect/item 3 of tScreenRect) into tRatioForVertical put ( (the width of this card) * tRatioForVertical) into tNewCardHeight return tNewCardheight end getAltCardHeight The pillar box effect is clear? as you described it But the scenario that I cannot solve is: a 16:9 stack running this on a 3:4 iPad? that?s the challenge to move a control to the bottom. but perhaps it is the same math, just ?turned vertically.? Using your original suggestion ?use any size comfortable to you? I choose 16:9 | 1200:675px stack size. Runs beautifully on iPhone 6+ Stating this for the vertical axis (trying to) If you have a card that is 1200 X 675 (16:9) running on a device that is 3:4 (1024 X 768), showAll will make you see the full vertical 675 + (225/2) top and bottom. So far this is true and can be demonstrated to be true. But the only value that works to set the bottom of a bottom control , is the ?native? points height: 788 = 768 + 20 status bar) We can hardwire this into the code for iPad, but then it is not an algorithm that ports to all the various Android devices. i.e. a single algorithm that works *any ratio/point dimensions* to *any other ratio/point dimensions* where we use some value reported by LC that will calculate the position of left or right (as you have done) or the top or bottom (still unsolved) On January 27, 2016 at 11:32:52 AM, Colin Holgate (colinholgate at gmail.com) wrote: It?s the ratio of the device screen you need, not the ratio of the card. To elaborate on that? If you have a card that is 1024x768, running on a device that is 1920x1080, showAll will make you see the 1024x768, with an extra 171 pixels either side, to make 1366x768. That is then scaled up to fill the 1920x1080. An object in the upper left corner would have its top at zero, but it?s left would want to be at -171. You can calculate that -171 like this: (1024 - 768/1080*1920)/2 More generally, the left edge is the card width minus the card height divided by the device height, times the device width. All divided by 2. From eric at canelasoftware.com Wed Jan 27 17:50:50 2016 From: eric at canelasoftware.com (Eric Corbett) Date: Wed, 27 Jan 2016 14:50:50 -0800 Subject: snapshot and animation capture In-Reply-To: References: Message-ID: Nice Scott, The resize is super fast. the moveStack is slower than other moveStack scripts I have from you. Eric From scott at tactilemedia.com Wed Jan 27 18:02:52 2016 From: scott at tactilemedia.com (Scott Rossi) Date: Wed, 27 Jan 2016 15:02:52 -0800 Subject: snapshot and animation capture In-Reply-To: References: Message-ID: On 1/27/16, 2:50 PM, "use-livecode on behalf of Eric Corbett" wrote: >Nice Scott, > >The resize is super fast. Great! > >the moveStack is slower than other moveStack scripts I have from you. Not so great, but with LC7 I found I had to use a different window drag routine as the code I've been using for years stopped working well. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design From pete at lcsql.com Wed Jan 27 18:31:53 2016 From: pete at lcsql.com (Peter Haworth) Date: Wed, 27 Jan 2016 15:31:53 -0800 Subject: launch document problem In-Reply-To: <56A93418.30106@ahsoftware.net> References: <56A93418.30106@ahsoftware.net> Message-ID: If I urlencode it, the launch command fails with "can't open file". I also tried sticking "file:" at the front of the filepath and used launch url but that resulted in a "no association" error. I'm also finding that if I simply double click on the file in the Finder, Chrome opens it just fine withe filepath shoing up as the url not the transgomred string I see when I launch it from within LC. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Wed, Jan 27, 2016 at 1:18 PM, Mark Wieder wrote: > On 01/27/2016 12:02 PM, Peter Haworth wrote: > > /Users/Pete/Documents/BandTrak/Report Data/Remittance.html >> > > Does anyone know why this transformation of the file reference is >> occurring? Also why it is recognized in Safari and not Chrome? >> > > urlencode it or (better) remove that embedded space. > > -- > Mark Wieder > ahsoftware at gmail.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 revdev at pdslabs.net Wed Jan 27 18:53:45 2016 From: revdev at pdslabs.net (Phil Davis) Date: Wed, 27 Jan 2016 15:53:45 -0800 Subject: launch document problem In-Reply-To: References: <56A93418.30106@ahsoftware.net> Message-ID: <56A95889.6050706@pdslabs.net> Try replacing spaces with "%20" in your url and see if that works. Phil Davis On 1/27/16 3:31 PM, Peter Haworth wrote: > If I urlencode it, the launch command fails with "can't open file". I also > tried sticking "file:" at the front of the filepath and used launch url but > that resulted in a "no association" error. > > I'm also finding that if I simply double click on the file in the Finder, > Chrome opens it just fine withe filepath shoing up as the url not the > transgomred string I see when I launch it from within LC. > > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin > > On Wed, Jan 27, 2016 at 1:18 PM, Mark Wieder wrote: > >> On 01/27/2016 12:02 PM, Peter Haworth wrote: >> >> /Users/Pete/Documents/BandTrak/Report Data/Remittance.html >> Does anyone know why this transformation of the file reference is >>> occurring? Also why it is recognized in Safari and not Chrome? >>> >> urlencode it or (better) remove that embedded space. >> >> -- >> Mark Wieder >> ahsoftware at gmail.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 alex at harryscollar.com Wed Jan 27 19:10:02 2016 From: alex at harryscollar.com (Alex Shaw) Date: Thu, 28 Jan 2016 10:10:02 +1000 Subject: Free Let's Encrypt SSL Certificates for On-Rev? In-Reply-To: References: <56A93418.30106@ahsoftware.net> Message-ID: <56A95C5A.1080401@harryscollar.com> Hi With the recent news that Google will be pushing "https" .. https://googleonlinesecurity.blogspot.co.uk/2015/12/indexing-https-pages-by-default.html .. I'm still surprised that the on-rev cpanel does not have the SSL modules which most other webhosting providers have. Also, it would be nice to support the free Let's Encrypt SSL Certificates via cpanel.. https://www.google.com.au/search?q=lets+encrypt+cpanel I have installed Let's Encrypt Certificates on a few private servers and it's nice when clients don't start asking questions when they get the standard browser warning about self-signed certificates. For those of use who don't require EV certificates they are fine. regards alex From pete at lcsql.com Wed Jan 27 19:13:45 2016 From: pete at lcsql.com (Peter Haworth) Date: Wed, 27 Jan 2016 16:13:45 -0800 Subject: launch document problem In-Reply-To: <56A95889.6050706@pdslabs.net> References: <56A93418.30106@ahsoftware.net> <56A95889.6050706@pdslabs.net> Message-ID: Still get a "can't open file" error or "no association" error depending on whether I use launch document or launch url. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Wed, Jan 27, 2016 at 3:53 PM, Phil Davis wrote: > Try replacing spaces with "%20" in your url and see if that works. > > Phil Davis > > > On 1/27/16 3:31 PM, Peter Haworth wrote: > >> If I urlencode it, the launch command fails with "can't open file". I >> also >> tried sticking "file:" at the front of the filepath and used launch url >> but >> that resulted in a "no association" error. >> >> I'm also finding that if I simply double click on the file in the Finder, >> Chrome opens it just fine withe filepath shoing up as the url not the >> transgomred string I see when I launch it from within LC. >> >> Pete >> lcSQL Software >> Home of lcStackBrowser and >> SQLiteAdmin >> >> On Wed, Jan 27, 2016 at 1:18 PM, Mark Wieder >> wrote: >> >> On 01/27/2016 12:02 PM, Peter Haworth wrote: >>> >>> /Users/Pete/Documents/BandTrak/Report Data/Remittance.html >>> Does anyone know why this transformation of the file reference is >>> >>>> occurring? Also why it is recognized in Safari and not Chrome? >>>> >>>> urlencode it or (better) remove that embedded space. >>> >>> -- >>> Mark Wieder >>> ahsoftware at gmail.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 lan.kc.macmail at gmail.com Wed Jan 27 19:17:33 2016 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Thu, 28 Jan 2016 08:17:33 +0800 Subject: [BUG] write to file In-Reply-To: References: <56A6D0B3.20301@fourthworld.com> <56A79212.6020305@livecode.com> Message-ID: On Wed, Jan 27, 2016 at 8:58 AM, Kay C Lan wrote: > but by someone with actual qualifications, credibility and who's in a > position to take on 'Darth Bug' and save the day for all of us. :-) > > I've just added a comment to a different Bug and had a response back from Panos. It's just after 1am in Edinburgh! Doesn't the guy ever sleep? Maybe he is an alien from Pluto who works on a 153 hr day ;-) From m.schonewille at economy-x-talk.com Wed Jan 27 19:21:06 2016 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Thu, 28 Jan 2016 01:21:06 +0100 Subject: snapshot and animation capture In-Reply-To: References: Message-ID: <56A95EF2.5060901@economy-x-talk.com> Matt, Somehow, the website isn't much anymore, but the app can still be downloaded. The trial version is almost fully functional. Perhaps this approach would be useful for you. Kind regards, Mark Schonewille http://economy-x-talk.com https://www.facebook.com/marksch Buy the most extensive book on the LiveCode language: http://livecodebeginner.economy-x-talk.com Op 1/27/2016 om 20:38 schreef Matt Maier: > I need to be able to easily capture stuff the user is seeing on their > screen so that they can import it into my application without having to > navigate the file manager multiple times. There's some good screen capture > stuff already in Livecode, but what I'm picturing is an actual window with > a hole in it the user can position and leave there so they know what's > going to be captured multiple times. Like gifcam > http://blog.bahraniapps.com/gifcam/ > > There doesn't seem to be a way to set the background of a window to > transparent. There is a way to mask the window using a transparent .png, > but that won't allow the user to resize the window. At the moment the only > mechanism I can come up with is to screencap what's behind the window every > time the user moves or resizes it and display that in the window so that it > looks like it's transparent. Is there a better way? > > Also, in addition to capturing still images, I'd like the user to be able > to capture animated images (as an alternative to video). So, that part > would be exactly like gifcam. The only mechanism I've found for that is to > export each frame and then use something external like imagemagik to stitch > them together into an animation. > > - Matt > _______________________________________________ > use-livecode mailing list > use-livecode at 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 27 19:26:50 2016 From: pete at lcsql.com (Peter Haworth) Date: Wed, 27 Jan 2016 16:26:50 -0800 Subject: launch document problem In-Reply-To: References: <56A93418.30106@ahsoftware.net> <56A95889.6050706@pdslabs.net> Message-ID: Prowling around the web, I found that the url I'm seeing is a "file reference url", not sure whether this is an Apple thing or cross platform. Since it works in Safari and not in Chrome, I suspect it may be an Apple thing. However the engine processes a launch document command is converting the normal filepath to this file reference url which apparently Chrome doesn't like. I think I will file a QCC report about it. Not sure it's really a bug since the file reference url is valid in Safari but would be nice to have a way to have the filepth not be converted to a file reference url. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Wed, Jan 27, 2016 at 4:13 PM, Peter Haworth wrote: > Still get a "can't open file" error or "no association" error depending on > whether I use launch document or launch url. > > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin > > On Wed, Jan 27, 2016 at 3:53 PM, Phil Davis wrote: > >> Try replacing spaces with "%20" in your url and see if that works. >> >> Phil Davis >> >> >> On 1/27/16 3:31 PM, Peter Haworth wrote: >> >>> If I urlencode it, the launch command fails with "can't open file". I >>> also >>> tried sticking "file:" at the front of the filepath and used launch url >>> but >>> that resulted in a "no association" error. >>> >>> I'm also finding that if I simply double click on the file in the Finder, >>> Chrome opens it just fine withe filepath shoing up as the url not the >>> transgomred string I see when I launch it from within LC. >>> >>> Pete >>> lcSQL Software >>> Home of lcStackBrowser and >>> SQLiteAdmin >>> >>> On Wed, Jan 27, 2016 at 1:18 PM, Mark Wieder >>> wrote: >>> >>> On 01/27/2016 12:02 PM, Peter Haworth wrote: >>>> >>>> /Users/Pete/Documents/BandTrak/Report Data/Remittance.html >>>> Does anyone know why this transformation of the file reference is >>>> >>>>> occurring? Also why it is recognized in Safari and not Chrome? >>>>> >>>>> urlencode it or (better) remove that embedded space. >>>> >>>> -- >>>> Mark Wieder >>>> ahsoftware at gmail.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 m.schonewille at economy-x-talk.com Wed Jan 27 19:43:44 2016 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Thu, 28 Jan 2016 01:43:44 +0100 Subject: snapshot and animation capture In-Reply-To: <56A95EF2.5060901@economy-x-talk.com> References: <56A95EF2.5060901@economy-x-talk.com> Message-ID: <56A96440.7070708@economy-x-talk.com> I meant to post this link http://snapper.economy-x-talk.com/ Kind regards, Mark Schonewille http://economy-x-talk.com https://www.facebook.com/marksch Buy the most extensive book on the LiveCode language: http://livecodebeginner.economy-x-talk.com Op 1/28/2016 om 01:21 schreef Mark Schonewille: > Matt, > > Somehow, the website isn't much anymore, but the app can still be > downloaded. The trial version is almost fully functional. Perhaps this > approach would be useful for you. > > Kind regards, > > Mark Schonewille > http://economy-x-talk.com > https://www.facebook.com/marksch > > Buy the most extensive book on the > LiveCode language: > http://livecodebeginner.economy-x-talk.com > > Op 1/27/2016 om 20:38 schreef Matt Maier: >> I need to be able to easily capture stuff the user is seeing on their >> screen so that they can import it into my application without having to >> navigate the file manager multiple times. There's some good screen >> capture >> stuff already in Livecode, but what I'm picturing is an actual window >> with >> a hole in it the user can position and leave there so they know what's >> going to be captured multiple times. Like gifcam >> http://blog.bahraniapps.com/gifcam/ >> >> There doesn't seem to be a way to set the background of a window to >> transparent. There is a way to mask the window using a transparent .png, >> but that won't allow the user to resize the window. At the moment the >> only >> mechanism I can come up with is to screencap what's behind the window >> every >> time the user moves or resizes it and display that in the window so >> that it >> looks like it's transparent. Is there a better way? >> >> Also, in addition to capturing still images, I'd like the user to be able >> to capture animated images (as an alternative to video). So, that part >> would be exactly like gifcam. The only mechanism I've found for that >> is to >> export each frame and then use something external like imagemagik to >> stitch >> them together into an animation. >> >> - Matt >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 Wed Jan 27 20:20:54 2016 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Thu, 28 Jan 2016 09:20:54 +0800 Subject: launch document problem In-Reply-To: References: <56A93418.30106@ahsoftware.net> <56A95889.6050706@pdslabs.net> Message-ID: OSX 10.10.5 LC 7.1.1 launch "/Users/kclan/Documents/test.html" with "/Applications/Firefox.app" launch "/Users/kclan/Documents/test.html" with "/Applications/Safari.app" launch "/Users/kclan/Documents/test.html" with "/Applications/Google Chrome.app" All resulted in the file opening successfully in the appropriate application with: file:///Users/kclan/Documents/test.html in the URL address. If I tested a file with a space in the name this was automatically converted to %20 If I: launch document "/Users/kclan/Documents/test.html" with Chrome as my default browser Chrome started but the file did not open and the URL was garbled: file:///.file/id=324346.234545 Firefox and Safari behaved correctly. HTH On Thu, Jan 28, 2016 at 8:26 AM, Peter Haworth wrote: > Prowling around the web, I found that the url I'm seeing is a "file > reference url", not sure whether this is an Apple thing or cross platform. > Since it works in Safari and not in Chrome, I suspect it may be an Apple > thing. > > However the engine processes a launch document command is converting the > normal filepath to this file reference url which apparently Chrome doesn't > like. I think I will file a QCC report about it. Not sure it's really a > bug since the file reference url is valid in Safari but would be nice to > have a way to have the filepth not be converted to a file reference url. > > > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin > > On Wed, Jan 27, 2016 at 4:13 PM, Peter Haworth wrote: > > > Still get a "can't open file" error or "no association" error depending > on > > whether I use launch document or launch url. > > > > Pete > > lcSQL Software > > Home of lcStackBrowser and > > SQLiteAdmin > > > > On Wed, Jan 27, 2016 at 3:53 PM, Phil Davis wrote: > > > >> Try replacing spaces with "%20" in your url and see if that works. > >> > >> Phil Davis > >> > >> > >> On 1/27/16 3:31 PM, Peter Haworth wrote: > >> > >>> If I urlencode it, the launch command fails with "can't open file". I > >>> also > >>> tried sticking "file:" at the front of the filepath and used launch url > >>> but > >>> that resulted in a "no association" error. > >>> > >>> I'm also finding that if I simply double click on the file in the > Finder, > >>> Chrome opens it just fine withe filepath shoing up as the url not the > >>> transgomred string I see when I launch it from within LC. > >>> > >>> Pete > >>> lcSQL Software > >>> Home of lcStackBrowser and > >>> SQLiteAdmin > >>> > >>> On Wed, Jan 27, 2016 at 1:18 PM, Mark Wieder > >>> wrote: > >>> > >>> On 01/27/2016 12:02 PM, Peter Haworth wrote: > >>>> > >>>> /Users/Pete/Documents/BandTrak/Report Data/Remittance.html > >>>> Does anyone know why this transformation of the file reference is > >>>> > >>>>> occurring? Also why it is recognized in Safari and not Chrome? > >>>>> > >>>>> urlencode it or (better) remove that embedded space. > >>>> > >>>> -- > >>>> Mark Wieder > >>>> ahsoftware at gmail.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 > >> > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 27 21:34:05 2016 From: mwieder at ahsoftware.net (Mark Wieder) Date: Wed, 27 Jan 2016 18:34:05 -0800 Subject: Free Let's Encrypt SSL Certificates for On-Rev? In-Reply-To: <56A95C5A.1080401@harryscollar.com> References: <56A93418.30106@ahsoftware.net> <56A95C5A.1080401@harryscollar.com> Message-ID: <56A97E1D.30709@ahsoftware.net> On 01/27/2016 04:10 PM, Alex Shaw wrote: > Also, it would be nice to support the free Let's Encrypt SSL > Certificates via cpanel.. Server certificates normally need a static ip address. Some other hosting sites have shims installed to allow you to have certs without a static address, but I wouldn't count on on-rev putting something that technical into place. It seems they haven't even gotten the hang of failovers yet. -- Mark Wieder ahsoftware at gmail.com From alex at harryscollar.com Wed Jan 27 22:23:36 2016 From: alex at harryscollar.com (Alex Shaw) Date: Thu, 28 Jan 2016 13:23:36 +1000 Subject: Free Let's Encrypt SSL Certificates for On-Rev? In-Reply-To: <56A97E1D.30709@ahsoftware.net> References: <56A93418.30106@ahsoftware.net> <56A95C5A.1080401@harryscollar.com> <56A97E1D.30709@ahsoftware.net> Message-ID: <56A989B8.3070606@harryscollar.com> As far as I can tell Let's Encrypt issues certificates for domain names. The LE install client script asks for domain name/s and I found a mention here regarding that.. https://community.letsencrypt.org/t/certificate-for-static-ip/84 regards alex On 28/01/2016 12:34 PM, Mark Wieder wrote: > On 01/27/2016 04:10 PM, Alex Shaw wrote: > >> Also, it would be nice to support the free Let's Encrypt SSL >> Certificates via cpanel.. > > Server certificates normally need a static ip address. Some other > hosting sites have shims installed to allow you to have certs without > a static address, but I wouldn't count on on-rev putting something > that technical into place. It seems they haven't even gotten the hang > of failovers yet. > From brahma at hindu.org Wed Jan 27 23:08:03 2016 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Thu, 28 Jan 2016 04:08:03 +0000 Subject: Changing position/dimensions of a control that is part of a group Message-ID: These lines are causing my scripts to silently fail? set the width of graphic "BaseControlsBkgnd" to item 3 of tCardRect set the left of graphic id 1026 to 0 either one will break the script whether referred to by name or ID? I thought I recalled some internal global to allow controls in a group to be dynamically managed? but it only appears to refer to layers and not geometric position or dimensions. Oddly there is no error msg to alert us that there is a problem here. Neither the group or the graphic which is part of it have their lockloc set to true. BR From brahma at hindu.org Wed Jan 27 23:13:30 2016 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Thu, 28 Jan 2016 04:13:30 +0000 Subject: Changing position/dimensions of a control that is part of a group In-Reply-To: References: Message-ID: I take part of that back set the width of graphic id 1026 of grp "baseControls" to item 3 of tCardRectByStack set the left of graphic id 1026 of grp "baseControls" to 0 works but not if we refer to the graphic by name http://www.himalayanacademy.com/apps/gurudeva On January 27, 2016 at 6:08:03 PM, Sannyasin Brahmanathaswami (brahma at hindu.org) wrote: These lines are causing my scripts to silently fail? set the width of graphic "BaseControlsBkgnd" to item 3 of tCardRect set the left of graphic id 1026 to 0 either one will break the script whether referred to by name or ID? I thought I recalled some internal global to allow controls in a group to be dynamically managed? but it only appears to refer to layers and not geometric position or dimensions. Oddly there is no error msg to alert us that there is a problem here. Neither the group or the graphic which is part of it have their lockloc set to true. BR From mwieder at ahsoftware.net Wed Jan 27 23:34:09 2016 From: mwieder at ahsoftware.net (Mark Wieder) Date: Wed, 27 Jan 2016 20:34:09 -0800 Subject: Free Let's Encrypt SSL Certificates for On-Rev? In-Reply-To: <56A989B8.3070606@harryscollar.com> References: <56A93418.30106@ahsoftware.net> <56A95C5A.1080401@harryscollar.com> <56A97E1D.30709@ahsoftware.net> <56A989B8.3070606@harryscollar.com> Message-ID: <56A99A41.7050407@ahsoftware.net> On 01/27/2016 07:23 PM, Alex Shaw wrote: > As far as I can tell Let's Encrypt issues certificates for domain names. > > The LE install client script asks for domain name/s and I found a > mention here regarding that.. > > https://community.letsencrypt.org/t/certificate-for-static-ip/84 That's true, but when I tried it for my on-rev domain I got rejected because I don't have privileges for the on-rev server. Or that's how I interpreted the error message, at any rate. I'd be happy to be wrong. -- Mark Wieder ahsoftware at gmail.com From mwieder at ahsoftware.net Wed Jan 27 23:43:08 2016 From: mwieder at ahsoftware.net (Mark Wieder) Date: Wed, 27 Jan 2016 20:43:08 -0800 Subject: Changing position/dimensions of a control that is part of a group In-Reply-To: References: Message-ID: <56A99C5C.6080409@ahsoftware.net> On 01/27/2016 08:13 PM, Sannyasin Brahmanathaswami wrote: > set the width of graphic id 1026 of grp "baseControls" to item 3 of tCardRectByStack > > set the left of graphic id 1026 of grp "baseControls" to 0 > > > works Control IDs are unique within a stack... you shouldn't also have to specify the group. > but not if we refer to the graphic by name What means "break the script"? Are you sure you have the graphic name correct? I resize graphics frequently and always refer to them by name. If they're in a group, you may want to lock messages first to prevent the group from resizing again. -- Mark Wieder ahsoftware at gmail.com From dunbarx at aol.com Wed Jan 27 23:44:10 2016 From: dunbarx at aol.com (dunbarx at aol.com) Date: Wed, 27 Jan 2016 23:44:10 -0500 Subject: Changing position/dimensions of a control that is part of a group In-Reply-To: Message-ID: <152868bb972-301e-3139@webprd-m43.mail.aol.com> Hi. Does this do anything: if there is a graphic "yourGraphicName" of grp "baseControls" then set... else answer "no such graphic" Craig Newman -----Original Message----- From: Sannyasin Brahmanathaswami To: How LiveCode Sent: Wed, Jan 27, 2016 11:15 pm Subject: Re: Changing position/dimensions of a control that is part of a group I take part of that back set the width of graphic id 1026 of grp "baseControls" to item 3 of tCardRectByStack set the left of graphic id 1026 of grp "baseControls" to 0 works but not if we refer to the graphic by name http://www.himalayanacademy.com/apps/gurudeva On January 27, 2016 at 6:08:03 PM, Sannyasin Brahmanathaswami (brahma at hindu.org) wrote: These lines are causing my scripts to silently fail? set the width of graphic "BaseControlsBkgnd" to item 3 of tCardRect set the left of graphic id 1026 to 0 either one will break the script whether referred to by name or ID? I thought I recalled some internal global to allow controls in a group to be dynamically managed? but it only appears to refer to layers and not geometric position or dimensions. Oddly there is no error msg to alert us that there is a problem here. Neither the group or the graphic which is part of it have their lockloc set to true. BR _______________________________________________use-livecode mailing listuse-livecode at lists.runrev.comPlease visit this url to subscribe, unsubscribe and manage your subscription preferences:http://lists.runrev.com/mailman/listinfo/use-livecode From alex at harryscollar.com Wed Jan 27 23:58:37 2016 From: alex at harryscollar.com (Alex Shaw) Date: Thu, 28 Jan 2016 14:58:37 +1000 Subject: Free Let's Encrypt SSL Certificates for On-Rev? In-Reply-To: <56A99A41.7050407@ahsoftware.net> References: <56A93418.30106@ahsoftware.net> <56A95C5A.1080401@harryscollar.com> <56A97E1D.30709@ahsoftware.net> <56A989B8.3070606@harryscollar.com> <56A99A41.7050407@ahsoftware.net> Message-ID: <56A99FFD.4020004@harryscollar.com> Yes, the official LE client requires shell access plus a range of python dependences. Also, if the SSL/TLS Manager module was accessible from on-rev cpanel you could try.. https://github.com/diafygi/gethttpsforfree regards alex On 28/01/2016 2:34 PM, Mark Wieder wrote: > On 01/27/2016 07:23 PM, Alex Shaw wrote: >> As far as I can tell Let's Encrypt issues certificates for domain names. >> >> The LE install client script asks for domain name/s and I found a >> mention here regarding that.. >> >> https://community.letsencrypt.org/t/certificate-for-static-ip/84 > > That's true, but when I tried it for my on-rev domain I got rejected > because I don't have privileges for the on-rev server. Or that's how I > interpreted the error message, at any rate. I'd be happy to be wrong. > From alex at harryscollar.com Thu Jan 28 00:04:38 2016 From: alex at harryscollar.com (Alex Shaw) Date: Thu, 28 Jan 2016 15:04:38 +1000 Subject: Free Let's Encrypt SSL Certificates for On-Rev? In-Reply-To: <56A99FFD.4020004@harryscollar.com> References: <56A93418.30106@ahsoftware.net> <56A95C5A.1080401@harryscollar.com> <56A97E1D.30709@ahsoftware.net> <56A989B8.3070606@harryscollar.com> <56A99A41.7050407@ahsoftware.net> <56A99FFD.4020004@harryscollar.com> Message-ID: <56A9A166.6060507@harryscollar.com> Opps, my bad. That requires ssh access too. regards alex On 28/01/2016 2:58 PM, Alex Shaw wrote: > Yes, the official LE client requires shell access plus a range of > python dependences. > > Also, if the SSL/TLS Manager module was accessible from on-rev cpanel > you could try.. > > https://github.com/diafygi/gethttpsforfree > > regards > alex > > On 28/01/2016 2:34 PM, Mark Wieder wrote: >> On 01/27/2016 07:23 PM, Alex Shaw wrote: >>> As far as I can tell Let's Encrypt issues certificates for domain >>> names. >>> >>> The LE install client script asks for domain name/s and I found a >>> mention here regarding that.. >>> >>> https://community.letsencrypt.org/t/certificate-for-static-ip/84 >> >> That's true, but when I tried it for my on-rev domain I got rejected >> because I don't have privileges for the on-rev server. Or that's how >> I interpreted the error message, at any rate. I'd be happy to be wrong. >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 livecode.com Thu Jan 28 02:46:19 2016 From: mark at livecode.com (Mark Waddingham) Date: Thu, 28 Jan 2016 08:46:19 +0100 Subject: launch document problem In-Reply-To: References: <56A93418.30106@ahsoftware.net> <56A95889.6050706@pdslabs.net> Message-ID: <5e2d1a55c034539185fb695c37cfe10c@livecode.com> Hi Pete, On 2016-01-28 01:26, Peter Haworth wrote: > Prowling around the web, I found that the url I'm seeing is a "file > reference url", not sure whether this is an Apple thing or cross > platform. > Since it works in Safari and not in Chrome, I suspect it may be an > Apple > thing. I believe 'launch document' uses the Launch Services API - it might be that needs a bit of patching to ensure it is using the latest and greatest way of communicating file references. The Apple APIs have made a move towards using URIs for most things these days so it could be that the engine is using a 'legacy' API these days. > However the engine processes a launch document command is converting > the > normal filepath to this file reference url which apparently Chrome > doesn't > like. I think I will file a QCC report about it. Not sure it's really > a > bug since the file reference url is valid in Safari but would be nice > to > have a way to have the filepth not be converted to a file reference > url. Given that Kay observed that 'launch document with' works, but 'launch document' does not I suspect it should be easy to figure out. Please do file a report :) Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From lan.kc.macmail at gmail.com Thu Jan 28 02:54:00 2016 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Thu, 28 Jan 2016 15:54:00 +0800 Subject: launch document problem In-Reply-To: <5e2d1a55c034539185fb695c37cfe10c@livecode.com> References: <56A93418.30106@ahsoftware.net> <56A95889.6050706@pdslabs.net> <5e2d1a55c034539185fb695c37cfe10c@livecode.com> Message-ID: On Thu, Jan 28, 2016 at 3:46 PM, Mark Waddingham wrote: > > > Given that Kay observed that 'launch document with' works, but 'launch > document' does not > Just to clarify, the Dictionary states the correct syntax as launch FILEPATH with APPLICATIONPATH or launch document FILEPATH 'document' is only specified in one case, if other people are testing this on different systems. I only tested OS X 10.10.5 From dave at applicationinsight.com Thu Jan 28 02:41:52 2016 From: dave at applicationinsight.com (Dave Kilroy) Date: Wed, 27 Jan 2016 23:41:52 -0800 (PST) Subject: Sending emails, with attachments, on your server In-Reply-To: References: Message-ID: <1453966912545-4700498.post@n4.nabble.com> Thank you Bill - I've downloaded it and squirrelled it away for playing with later - it looks really useful and much better than the kind of thing I usually cobble together :) ----- "The difference between genius and stupidity is; genius has its limits." - Albert Einstein -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Sending-emails-with-attachments-on-your-server-tp4700411p4700498.html Sent from the Revolution - User mailing list archive at Nabble.com. From hh at livecode.org Thu Jan 28 04:08:39 2016 From: hh at livecode.org (-hh) Date: Thu, 28 Jan 2016 10:08:39 +0100 Subject: launch document problem Message-ID: This may be related to the fact we know from HTML5-standalones. (Newest) Goggle Chrome and Opera want a (local) web server for more than 'simple' html documents, Safari and Firefox launch everything from local files. Anyway, comparing to the behaviour when launching from alocal web server could give a hint? > Peter H. wrote: > In an application I wrote several years ago, I create reports by writing > html into a file and then using the launch document command to open the > file in the user's preferred browser. All has been working fine with that > approach until OSX Yosemite came along. > > The launch command references a file named: > > /Users/Pete/Documents/BandTrak/Report Data/Remittance.html > > The user has their default browser set to Chrome and when Chrome launches > with the above file reference, the URL is: > > > file:///.file/id=6571367.405704 > > > ... which results in a "web page not found" message. If I copy/paste the > URL into Safari, the file is successfully displayed. > > Does anyone know why this transformation of the file reference is > occurring? Also why it is recognized in Safari and not Chrome? From richmondmathewson at gmail.com Thu Jan 28 06:22:51 2016 From: richmondmathewson at gmail.com (Richmond) Date: Thu, 28 Jan 2016 13:22:51 +0200 Subject: snapshot and animation capture In-Reply-To: References: Message-ID: <56A9FA0B.1030600@gmail.com> On 28/01/16 00:27, Scott Rossi wrote: > I thought this might make an interesting read, so the demo stack is > included in an article: > ndowshape-in-livecode/> > > > Hope this works for you. Well, I'll certainly see: I'll see if it can grab a few images from my USB microscope connected to a computer running Xubuntu - at least it will be a happy alternative from endless Grammar exercises for the kids I'm teaching this afternoon! Expect a report later today. Richmond. > > Regards, > > Scott Rossi > Creative Director > Tactile Media, UX/UI Design > > > > > On 1/27/16, 11:55 AM, "use-livecode on behalf of Scott Rossi" > scott at tactilemedia.com> wrote: > >> Hi Matt: >> >> I have a method for a resizable masked window that requires LC7 -- I'll >> try to post something later today or tomorrow. As far as image animation >> goes, I have a very vague memory that LC used to be able to export >> animated GIF images, but that may have been static images only. You may >> indeed need to go with a 3rd party option -- hopefully somebody else has a >> suggestion for this. >> >> Regards, >> >> Scott Rossi >> Creative Director >> Tactile Media, UX/UI Design >> >> >> >> >> On 1/27/16, 11:38 AM, "use-livecode on behalf of Matt Maier" >> >> wrote: >> >>> I need to be able to easily capture stuff the user is seeing on their >>> screen so that they can import it into my application without having to >>> navigate the file manager multiple times. There's some good screen >>> capture >>> stuff already in Livecode, but what I'm picturing is an actual window >>> with >>> a hole in it the user can position and leave there so they know what's >>> going to be captured multiple times. Like gifcam >>> http://blog.bahraniapps.com/gifcam/ >>> >>> There doesn't seem to be a way to set the background of a window to >>> transparent. There is a way to mask the window using a transparent .png, >>> but that won't allow the user to resize the window. At the moment the >>> only >>> mechanism I can come up with is to screencap what's behind the window >>> every >>> time the user moves or resizes it and display that in the window so that >>> it >>> looks like it's transparent. Is there a better way? >>> >>> Also, in addition to capturing still images, I'd like the user to be able >>> to capture animated images (as an alternative to video). So, that part >>> would be exactly like gifcam. The only mechanism I've found for that is >>> to >>> export each frame and then use something external like imagemagik to >>> stitch >>> them together into an animation. >>> >>> - Matt > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From roland.huettmann at gmail.com Thu Jan 28 07:07:51 2016 From: roland.huettmann at gmail.com (Roland Huettmann) Date: Thu, 28 Jan 2016 13:07:51 +0100 Subject: Selecting text in single-line entry fields - small UI issue Message-ID: This is a small issue, not critical. Nevertheless, I am curious to know if there is a solution. In almost all cases, tabbing from single-line entry field to single-line entry field, I prefer selecting the whole text instead of having the pointer mark after the text. It allows to quickly enter new values and overwriting existing ones. Maybe I am missing something, but I need to script this with "on tabkey"-event handlers, "on textchanged" handlers, " on deletekey" handlers and go with "select the text of..." or "select line 1 of...". Otherwise the cursor is always placed behind the text - and I do not want that except for multi-line fields. Could there not be a built-in attribute how selection should occur? Now, for visually appealing reasons, I like to not just have the text selected, but indicate that the field as such is highlighted. Using the standard blue selection color, and tabbing into a field, I have set the background color of that field to the selection color, and when leaving the field, I reset the color to what it as before. The problem: As long as the text in the field is selected, the text is hidden, but it is actually white and should show on the blue field. Clicking into the field will also show it as desired. Using a yellow or other color is possible, but it does not do what I want to achieve.For strange reasons, selecting the text and setting the background color accordingly makes the text disappear. Well, ideally I like the single-line field control to fully show this type of selection, the text showing white (or black) depending on the selection color, and even the field control with a white outline of 1 to 3 pixels around the colored inside of the field. That the text itself is selected does not have to be visual in this case. It simply looks better and I find it also in most other programs. (Maybe the new widgets technology will give us more fine-tuning.even on "simple" entry fields..Will there be new field controls ?) Roland P.S. And if there were an easy way of formatting the field (numbers, dates, etc:) without having to resort to front scripts and all that, just setting inbuilt attributes, it would just make me too happy. Because most of the time I am spending with such UI issues. (I know there are formatting field packages and I am also doing that. Just it is such a common and basic task that it would really be a big advantage to have it supported) From dunbarx at aol.com Thu Jan 28 09:21:17 2016 From: dunbarx at aol.com (dunbarx at aol.com) Date: Thu, 28 Jan 2016 09:21:17 -0500 Subject: Selecting text in single-line entry fields - small UI issue In-Reply-To: References: Message-ID: <152889c1866-59b-38bd@webprd-m96.mail.aol.com> Hi. I have not looked carefully at your coloring issues, but put this in the card script: on openField select the text of the target end openField Can you think of a way to do this with the tab key message? Anyway, with either of those, you can also vet the target field itself, skipping those that might not be of interest, or re-directing to specific fields. Craig Newman -----Original Message----- From: Roland Huettmann To: How to use LiveCode Sent: Thu, Jan 28, 2016 7:09 am Subject: Selecting text in single-line entry fields - small UI issue This is a small issue, not critical. Nevertheless, I am curious to know if there is a solution. In almost all cases, tabbing from single-line entry field to single-line entry field, I prefer selecting the whole text instead of having the pointer mark after the text. It allows to quickly enter new values and overwriting existing ones. Maybe I am missing something, but I need to script this with "on tabkey"-event handlers, "on textchanged" handlers, " on deletekey" handlers and go with "select the text of..." or "select line 1 of...". Otherwise the cursor is always placed behind the text - and I do not want that except for multi-line fields. Could there not be a built-in attribute how selection should occur? Now, for visually appealing reasons, I like to not just have the text selected, but indicate that the field as such is highlighted. Using the standard blue selection color, and tabbing into a field, I have set the background color of that field to the selection color, and when leaving the field, I reset the color to what it as before. The problem: As long as the text in the field is selected, the text is hidden, but it is actually white and should show on the blue field. Clicking into the field will also show it as desired. Using a yellow or other color is possible, but it does not do what I want to achieve.For strange reasons, selecting the text and setting the background color accordingly makes the text disappear. Well, ideally I like the single-line field control to fully show this type of selection, the text showing white (or black) depending on the selection color, and even the field control with a white outline of 1 to 3 pixels around the colored inside of the field. That the text itself is selected does not have to be visual in this case. It simply looks better and I find it also in most other programs. (Maybe the new widgets technology will give us more fine-tuning.even on "simple" entry fields..Will there be new field controls ?) Roland P.S. And if there were an easy way of formatting the field (numbers, dates, etc:) without having to resort to front scripts and all that, just setting inbuilt attributes, it would just make me too happy. Because most of the time I am spending with such UI issues. (I know there are formatting field packages and I am also doing that. Just it is such a common and basic task that it would really be a big advantage to have it supported) _______________________________________________ use-livecode mailing list use-livecode at 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 28 12:06:41 2016 From: pete at lcsql.com (Peter Haworth) Date: Thu, 28 Jan 2016 09:06:41 -0800 Subject: launch document problem In-Reply-To: <5e2d1a55c034539185fb695c37cfe10c@livecode.com> References: <56A93418.30106@ahsoftware.net> <56A95889.6050706@pdslabs.net> <5e2d1a55c034539185fb695c37cfe10c@livecode.com> Message-ID: Thanks Mark. I filed report (16776) and it's been classified as a bug with the workaround documented by Kay. The only issue I have now is avoiding hard coding the browser to use. Does anyone know of a way to find the default browser setting in OSX (this program will only be running on Macs). Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Wed, Jan 27, 2016 at 11:46 PM, Mark Waddingham wrote: > Hi Pete, > > On 2016-01-28 01:26, Peter Haworth wrote: > >> Prowling around the web, I found that the url I'm seeing is a "file >> reference url", not sure whether this is an Apple thing or cross platform. >> Since it works in Safari and not in Chrome, I suspect it may be an Apple >> thing. >> > > I believe 'launch document' uses the Launch Services API - it might be > that needs a bit of patching to ensure it is using the latest and greatest > way of communicating file references. The Apple APIs have made a move > towards using URIs for most things these days so it could be that the > engine is using a 'legacy' API these days. > > However the engine processes a launch document command is converting the >> normal filepath to this file reference url which apparently Chrome doesn't >> like. I think I will file a QCC report about it. Not sure it's really a >> bug since the file reference url is valid in Safari but would be nice to >> have a way to have the filepth not be converted to a file reference url. >> > > Given that Kay observed that 'launch document with' works, but 'launch > document' does not I suspect it should be easy to figure out. Please do > file a report :) > > Warmest Regards, > > Mark. > > -- > Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ > LiveCode: Everyone can create apps > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 28 12:02:18 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 28 Jan 2016 17:02:18 +0000 Subject: Revmail won't work with Outlook (Really??) Message-ID: <17C42123-9928-4DD1-B2A0-DDCA2146A4AE@iotecdigital.com> Hi all. I issue the command revmail theHelpdeskEmail, theDispatcherList, theSubject, theServiceData and I get an error dialog: "Cannot start Microsoft Outlook. The command line arguement is not valid. Verify the switch you are using." The command works on the MacOS, but not in Windows. I haven't tested this at all with any other mail clients, but I am wondering if anyone else has and ran into this. I am using Windows 7, Outlook 2013 and LC 676 Also as an aside, I DL'd the 6.7.8 installer, but when I try to install it, I get the error message, "Could not launch installer slave. I am running as an administrator. I think I will have to switch to version 7 soon. Bob S From ambassador at fourthworld.com Thu Jan 28 13:31:44 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 28 Jan 2016 10:31:44 -0800 Subject: Revmail won't work with Outlook (Really??) In-Reply-To: <17C42123-9928-4DD1-B2A0-DDCA2146A4AE@iotecdigital.com> References: <17C42123-9928-4DD1-B2A0-DDCA2146A4AE@iotecdigital.com> Message-ID: <56AA5E90.7080800@fourthworld.com> Bob Sneidar wrote: > I issue the command revmail theHelpdeskEmail, theDispatcherList, > theSubject, theServiceData and I get an error dialog: "Cannot start > Microsoft Outlook. The command line arguement is not valid. Verify > the switch you are using." The command works on the MacOS, but not > in Windows. I haven't tested this at all with any other mail clients, > but I am wondering if anyone else has and ran into this. > > I am using Windows 7, Outlook 2013 and LC 676 > > Also as an aside, I DL'd the 6.7.8 installer, but when I try to > install it, I get the error message, "Could not launch installer > slave. I am running as an administrator. > > I think I will have to switch to version 7 soon. Good plan. V6 is slated for EOL soon, and 7 not long behind it (probably both will move out of maintenance once v8 goes final). If the problem persists in v7 try the latest build of v8, and if it persists there then please file a bug report. Even better, if you can figure out what switches Outlook needs you can fix it yourself and submit a pull request. Most of the IDE code has been migrated to script-only stacks that are plain text, easy to work with, and integrate nicely with Github's merge. -- 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 Thu Jan 28 13:30:57 2016 From: gcanyon at gmail.com (Geoff Canyon) Date: Thu, 28 Jan 2016 13:30:57 -0500 Subject: I'm working to significantly improve voter turnout in the 2016 election, and I could use your help Message-ID: ?Briefly: Studies have shown significant results from sending people text messages to encourage them to vote. I'm partnering with a web-dev friend of mine to build a web site to allow people to sign up for reminders to vote. I'm curious whether app notifications would have the same effect, so I'd like to build a partner mobile app for iOS and Android. It's not complex, obviously, and LC is clearly suited to this task. I'm perfectly comfortable in LC, but I've barely worked in mobile development. If you are mobile-skilled, have some time, and want to influence the outcome of the upcoming presidential election, contact me off-list and I can give you more details. regards, Geoff From blueback09 at gmail.com Thu Jan 28 15:12:36 2016 From: blueback09 at gmail.com (Matt Maier) Date: Thu, 28 Jan 2016 12:12:36 -0800 Subject: snapshot and animation capture In-Reply-To: <56A95EF2.5060901@economy-x-talk.com> References: <56A95EF2.5060901@economy-x-talk.com> Message-ID: Mark, what does "the app" refer to? On Jan 27, 2016 16:21, "Mark Schonewille" wrote: > Matt, > > Somehow, the website isn't much anymore, but the app can still be > downloaded. The trial version is almost fully functional. Perhaps this > approach would be useful for you. > > Kind regards, > > Mark Schonewille > http://economy-x-talk.com > https://www.facebook.com/marksch > > Buy the most extensive book on the > LiveCode language: > http://livecodebeginner.economy-x-talk.com > > Op 1/27/2016 om 20:38 schreef Matt Maier: > >> I need to be able to easily capture stuff the user is seeing on their >> screen so that they can import it into my application without having to >> navigate the file manager multiple times. There's some good screen capture >> stuff already in Livecode, but what I'm picturing is an actual window with >> a hole in it the user can position and leave there so they know what's >> going to be captured multiple times. Like gifcam >> http://blog.bahraniapps.com/gifcam/ >> >> There doesn't seem to be a way to set the background of a window to >> transparent. There is a way to mask the window using a transparent .png, >> but that won't allow the user to resize the window. At the moment the only >> mechanism I can come up with is to screencap what's behind the window >> every >> time the user moves or resizes it and display that in the window so that >> it >> looks like it's transparent. Is there a better way? >> >> Also, in addition to capturing still images, I'd like the user to be able >> to capture animated images (as an alternative to video). So, that part >> would be exactly like gifcam. The only mechanism I've found for that is to >> export each frame and then use something external like imagemagik to >> stitch >> them together into an animation. >> >> - Matt >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 blueback09 at gmail.com Thu Jan 28 15:21:13 2016 From: blueback09 at gmail.com (Matt Maier) Date: Thu, 28 Jan 2016 12:21:13 -0800 Subject: snapshot and animation capture In-Reply-To: References: Message-ID: Mark, oops, didn't scroll far enough. I found the link to Snapper, thanks. Scott, that's great, and thanks for putting that post and stack up so fast. It's a little laggy on my system when it resizes quickly or gets to around 750 pixels. Is it the same on yours? Is there a way to control other applications from within Livecode? Like, if the user has their browser running, could I bring it to the front, take a screenshot, then send it back behind the stand-alone again? Or is there a parameter in Livecode's screenshot function to only include another application in the screenshot? On Jan 27, 2016 14:28, "Scott Rossi" wrote: > I thought this might make an interesting read, so the demo stack is > included in an article: > < > http://tactilemedia.com/blog/2016/01/27/i-was-framed-a-resizable-custom-wi > ndowshape-in-livecode/> > > > Hope this works for you. > > Regards, > > Scott Rossi > Creative Director > Tactile Media, UX/UI Design > > > > > On 1/27/16, 11:55 AM, "use-livecode on behalf of Scott Rossi" > scott at tactilemedia.com> wrote: > > >Hi Matt: > > > >I have a method for a resizable masked window that requires LC7 -- I'll > >try to post something later today or tomorrow. As far as image animation > >goes, I have a very vague memory that LC used to be able to export > >animated GIF images, but that may have been static images only. You may > >indeed need to go with a 3rd party option -- hopefully somebody else has a > >suggestion for this. > > > >Regards, > > > >Scott Rossi > >Creative Director > >Tactile Media, UX/UI Design > > > > > > > > > >On 1/27/16, 11:38 AM, "use-livecode on behalf of Matt Maier" > > > >wrote: > > > >>I need to be able to easily capture stuff the user is seeing on their > >>screen so that they can import it into my application without having to > >>navigate the file manager multiple times. There's some good screen > >>capture > >>stuff already in Livecode, but what I'm picturing is an actual window > >>with > >>a hole in it the user can position and leave there so they know what's > >>going to be captured multiple times. Like gifcam > >>http://blog.bahraniapps.com/gifcam/ > >> > >>There doesn't seem to be a way to set the background of a window to > >>transparent. There is a way to mask the window using a transparent .png, > >>but that won't allow the user to resize the window. At the moment the > >>only > >>mechanism I can come up with is to screencap what's behind the window > >>every > >>time the user moves or resizes it and display that in the window so that > >>it > >>looks like it's transparent. Is there a better way? > >> > >>Also, in addition to capturing still images, I'd like the user to be able > >>to capture animated images (as an alternative to video). So, that part > >>would be exactly like gifcam. The only mechanism I've found for that is > >>to > >>export each frame and then use something external like imagemagik to > >>stitch > >>them together into an animation. > >> > >>- Matt > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Thu Jan 28 15:46:47 2016 From: scott at tactilemedia.com (Scott Rossi) Date: Thu, 28 Jan 2016 12:46:47 -0800 Subject: snapshot and animation capture In-Reply-To: References: Message-ID: Regarding lagginess: yes. I can't say for sure, but if the LiveCode guys could enable the windowShape property to work with images that have centerRect dimensions, this would eliminate the need to do any image exporting and potentially make drawing of the window faster. I've suggested for years that window masks be based on graphics and converted image/alphaData behind the scenes, but for now we're stuck with images. Regarding screenshots, WITHIN LiveCode you can capture just about anything, but I don't believe there are any options for capturing externally other than defining a rect on the screen. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 1/28/16, 12:21 PM, "use-livecode on behalf of Matt Maier" wrote: >Mark, oops, didn't scroll far enough. I found the link to Snapper, thanks. > >Scott, that's great, and thanks for putting that post and stack up so >fast. >It's a little laggy on my system when it resizes quickly or gets to around >750 pixels. Is it the same on yours? > >Is there a way to control other applications from within Livecode? Like, >if >the user has their browser running, could I bring it to the front, take a >screenshot, then send it back behind the stand-alone again? Or is there a >parameter in Livecode's screenshot function to only include another >application in the screenshot? >On Jan 27, 2016 14:28, "Scott Rossi" wrote: > >> I thought this might make an interesting read, so the demo stack is >> included in an article: >> < >> >>http://tactilemedia.com/blog/2016/01/27/i-was-framed-a-resizable-custom-w >>i >> ndowshape-in-livecode/> >> >> >> Hope this works for you. >> >> Regards, >> >> Scott Rossi >> Creative Director >> Tactile Media, UX/UI Design >> >> >> >> >> On 1/27/16, 11:55 AM, "use-livecode on behalf of Scott Rossi" >> > scott at tactilemedia.com> wrote: >> >> >Hi Matt: >> > >> >I have a method for a resizable masked window that requires LC7 -- I'll >> >try to post something later today or tomorrow. As far as image >>animation >> >goes, I have a very vague memory that LC used to be able to export >> >animated GIF images, but that may have been static images only. You >>may >> >indeed need to go with a 3rd party option -- hopefully somebody else >>has a >> >suggestion for this. >> > >> >Regards, >> > >> >Scott Rossi >> >Creative Director >> >Tactile Media, UX/UI Design >> > >> > >> > >> > >> >On 1/27/16, 11:38 AM, "use-livecode on behalf of Matt Maier" >> >>blueback09 at gmail.com> >> >wrote: >> > >> >>I need to be able to easily capture stuff the user is seeing on their >> >>screen so that they can import it into my application without having >>to >> >>navigate the file manager multiple times. There's some good screen >> >>capture >> >>stuff already in Livecode, but what I'm picturing is an actual window >> >>with >> >>a hole in it the user can position and leave there so they know what's >> >>going to be captured multiple times. Like gifcam >> >>http://blog.bahraniapps.com/gifcam/ >> >> >> >>There doesn't seem to be a way to set the background of a window to >> >>transparent. There is a way to mask the window using a transparent >>.png, >> >>but that won't allow the user to resize the window. At the moment the >> >>only >> >>mechanism I can come up with is to screencap what's behind the window >> >>every >> >>time the user moves or resizes it and display that in the window so >>that >> >>it >> >>looks like it's transparent. Is there a better way? >> >> >> >>Also, in addition to capturing still images, I'd like the user to be >>able >> >>to capture animated images (as an alternative to video). So, that part >> >>would be exactly like gifcam. The only mechanism I've found for that >>is >> >>to >> >>export each frame and then use something external like imagemagik to >> >>stitch >> >>them together into an animation. >> >> >> >>- Matt >> From ambassador at fourthworld.com Thu Jan 28 16:15:32 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 28 Jan 2016 13:15:32 -0800 Subject: snapshot and animation capture In-Reply-To: References: Message-ID: <56AA84F4.4020904@fourthworld.com> Scott Rossi wrote: > Regarding lagginess: yes. I can't say for sure, but if the LiveCode > guys could enable the windowShape property to work with images that > have centerRect dimensions, this would eliminate the need to do any > image exporting and potentially make drawing of the window faster. For screen shots I've been cheating: if I don't need to interact with the things within the hole in a stack, I just put a graphic down, turn on opaque, and set its ink to blendXor - shows through like a hole but without having to use a custom windowShape. -- 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 Thu Jan 28 16:23:30 2016 From: scott at tactilemedia.com (Scott Rossi) Date: Thu, 28 Jan 2016 13:23:30 -0800 Subject: snapshot and animation capture In-Reply-To: <56AA84F4.4020904@fourthworld.com> References: <56AA84F4.4020904@fourthworld.com> Message-ID: This sounds intriguing, but when I place a graphic in a stack and configure as you describe, all I see is an all-black graphic. Is there perhaps another step I'm missing? Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 1/28/16, 1:15 PM, "use-livecode on behalf of Richard Gaskin" wrote: >Scott Rossi wrote: > > Regarding lagginess: yes. I can't say for sure, but if the LiveCode > > guys could enable the windowShape property to work with images that > > have centerRect dimensions, this would eliminate the need to do any > > image exporting and potentially make drawing of the window faster. > >For screen shots I've been cheating: if I don't need to interact with >the things within the hole in a stack, I just put a graphic down, turn >on opaque, and set its ink to blendXor - shows through like a hole but >without having to use a custom windowShape. > >-- > 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 paul at livecode.org Thu Jan 28 16:26:28 2016 From: paul at livecode.org (Paul Hibbert) Date: Thu, 28 Jan 2016 13:26:28 -0800 Subject: Selecting text in single-line entry fields - small UI issue In-Reply-To: References: Message-ID: <6D1322A9-1DDD-4B8E-A621-BE75A60493D3@livecode.org> On Jan 28, 2016, at 4:07 AM, Roland Huettmann wrote: > > Maybe I am missing something, but I need to script this with "on > tabkey"-event handlers, "on textchanged" handlers, " on deletekey" handlers > and go with "select the text of..." or "select line 1 of...". Otherwise the > cursor is always placed behind the text - and I do not want that except for > multi-line fields. Could there not be a built-in attribute how selection > should occur? Check the autoTab property in the inspector, or if you want to set it by script? set the autoTab of field ?myField" to true I?m not seeing any issue with text changing colour when selected, but you didn?t say which version of Livecode or which platform you are seeing this on, this info may help track down the problem. Paul From ambassador at fourthworld.com Thu Jan 28 16:28:06 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 28 Jan 2016 13:28:06 -0800 Subject: snapshot and animation capture In-Reply-To: References: Message-ID: <56AA87E6.4060405@fourthworld.com> Hmmm...maybe it's a bug in the Linux engine masquerading as a feature. I've only been using this on my own system, so I haven't had occasion to try it elsewhere. Or maybe it's a feature masquerading as a bug in OS X? Useful either way. Maybe file a bug report, and if they don't think it's a bug it becomes a feature request for a see-through blend. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com > snapshot and animation capture > > Scott Rossi scott at tactilemedia.com > Thu Jan 28 22:23:30 CET 2016 > Previous message: snapshot and animation capture > Next message: snapshot and animation capture > Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] > This sounds intriguing, but when I place a graphic in a stack and > configure as you describe, all I see is an all-black graphic. Is there > perhaps another step I'm missing? > > Regards, > > Scott Rossi > Creative Director > Tactile Media, UX/UI Design > > > > > On 1/28/16, 1:15 PM, "use-livecode on behalf of Richard Gaskin" > ambassador at fourthworld.com> wrote: > >>Scott Rossi wrote: >> > Regarding lagginess: yes. I can't say for sure, but if the LiveCode >> > guys could enable the windowShape property to work with images that >> > have centerRect dimensions, this would eliminate the need to do any >> > image exporting and potentially make drawing of the window faster. >> >>For screen shots I've been cheating: if I don't need to interact with >>the things within the hole in a stack, I just put a graphic down, turn >>on opaque, and set its ink to blendXor - shows through like a hole but >>without having to use a custom windowShape. >> >>-- >> 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 alex at tweedly.net Thu Jan 28 18:29:41 2016 From: alex at tweedly.net (Alex Tweedly) Date: Thu, 28 Jan 2016 23:29:41 +0000 Subject: Changing position/dimensions of a control that is part of a group In-Reply-To: References: Message-ID: <56AAA465.9000900@tweedly.net> As Mark Weider said, control ids are unique, so there is no need to specify the group, in ... graphic id 1234 of grp "unneeded" of .. However, the same is not true of names, so it's perfectly possible to have multiple graphics (or multiple groups) within the card, each with the same name. It is therefore ambiguous which of them is being referred to -and unfortunately the engine does NOT inform you of this ambiguity (and hence possible bug). So - in your original example here - set the width of graphic "BaseControlsBkgnd" to item 3 of tCardRect are you sure there s no other graphic with the same name ? (- NB it can be anywhere withing the stack file) Ir would be better practice to say somethingglike set the width of graphic "BaseControlsBkgnd" of grp "wherever" of grp :to item 3 of tCardRect -- Alex. On 28/01/2016 04:13, Sannyasin Brahmanathaswami wrote: > I take part of that back > > > set the width of graphic id 1026 of grp "baseControls" to item 3 of tCardRectByStack > > set the left of graphic id 1026 of grp "baseControls" to 0 > > > works > > > but not if we refer to the graphic by name > > http://www.himalayanacademy.com/apps/gurudeva > > > On January 27, 2016 at 6:08:03 PM, Sannyasin Brahmanathaswami (brahma at hindu.org) wrote: > > These lines are causing my scripts to silently fail? > > > set the width of graphic "BaseControlsBkgnd" to item 3 of tCardRect > > set the left of graphic id 1026 to 0 > > > either one will break the script whether referred to by name or ID? > > I thought I recalled some internal global to allow controls in a group to be dynamically managed? but it only appears to refer to layers and not geometric position or dimensions. > > > Oddly there is no error msg to alert us that there is a problem here. > > > Neither the group or the graphic which is part of it have their lockloc set to true. > > > > > > > BR > _______________________________________________ > use-livecode mailing list > use-livecode at 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 28 18:34:07 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 28 Jan 2016 15:34:07 -0800 Subject: snapshot and animation capture In-Reply-To: <56AA87E6.4060405@fourthworld.com> References: <56AA87E6.4060405@fourthworld.com> Message-ID: <56AAA56F.10707@fourthworld.com> Richard Gaskin wrote: > Hmmm...maybe it's a bug in the Linux engine masquerading as a > feature. I've only been using this on my own system, so I haven't > had occasion to try it elsewhere. > > Or maybe it's a feature masquerading as a bug in OS X? > > Useful either way. Maybe file a bug report, and if they don't think > it's a bug it becomes a feature request for a see-through blend. Bug filed: http://quality.livecode.com/show_bug.cgi?id=16782 -- 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 Thu Jan 28 18:51:50 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 28 Jan 2016 23:51:50 +0000 Subject: Revmail won't work with Outlook (Really??) In-Reply-To: <56AA5E90.7080800@fourthworld.com> References: <17C42123-9928-4DD1-B2A0-DDCA2146A4AE@iotecdigital.com> <56AA5E90.7080800@fourthworld.com> Message-ID: <159F854D-D7EA-47F3-A330-C2499BD50D79@iotecdigital.com> I'll give that a go. I shudder though at converting my stacks. Bad experience but I will make a backup. Bob S > On Jan 28, 2016, at 10:31 , Richard Gaskin wrote: > > Bob Sneidar wrote: > > I issue the command revmail theHelpdeskEmail, theDispatcherList, > > theSubject, theServiceData and I get an error dialog: "Cannot start > > Microsoft Outlook. The command line arguement is not valid. Verify > > the switch you are using." The command works on the MacOS, but not > > in Windows. I haven't tested this at all with any other mail clients, > > but I am wondering if anyone else has and ran into this. > > > > I am using Windows 7, Outlook 2013 and LC 676 > > > > Also as an aside, I DL'd the 6.7.8 installer, but when I try to > > install it, I get the error message, "Could not launch installer > > slave. I am running as an administrator. > > > > I think I will have to switch to version 7 soon. > > Good plan. V6 is slated for EOL soon, and 7 not long behind it (probably both will move out of maintenance once v8 goes final). > > If the problem persists in v7 try the latest build of v8, and if it persists there then please file a bug report. > > Even better, if you can figure out what switches Outlook needs you can fix it yourself and submit a pull request. Most of the IDE code has been migrated to script-only stacks that are plain text, easy to work with, and integrate nicely with Github's merge. > > -- > 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 mwieder at ahsoftware.net Thu Jan 28 19:58:18 2016 From: mwieder at ahsoftware.net (Mark Wieder) Date: Thu, 28 Jan 2016 16:58:18 -0800 Subject: Changing position/dimensions of a control that is part of a group In-Reply-To: <56AAA465.9000900@tweedly.net> References: <56AAA465.9000900@tweedly.net> Message-ID: <56AAB92A.4010709@ahsoftware.net> On 01/28/2016 03:29 PM, Alex Tweedly wrote: > As Mark Weider said, control ids are unique, so there is no need to > specify the group, in > ... graphic id 1234 of grp "unneeded" of .. > > However, the same is not true of names, so it's perfectly possible to > have multiple graphics (or multiple groups) within the card, each with > the same name. It is therefore ambiguous which of them is being referred > to -and unfortunately the engine does NOT inform you of this ambiguity > (and hence possible bug). > > So - in your original example here - > > set the width of graphic "BaseControlsBkgnd" to item 3 of tCardRect > > are you sure there s no other graphic with the same name ? (- NB it can > be anywhere withing the stack file) > > Ir would be better practice to say somethingglike > > set the width of graphic "BaseControlsBkgnd" of grp "wherever" of grp > :to item 3 of tCardRect Oooo... nice catch. -- Mark Wieder ahsoftware at gmail.com From lan.kc.macmail at gmail.com Thu Jan 28 21:36:21 2016 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Fri, 29 Jan 2016 10:36:21 +0800 Subject: launch document problem In-Reply-To: References: <56A93418.30106@ahsoftware.net> <56A95889.6050706@pdslabs.net> <5e2d1a55c034539185fb695c37cfe10c@livecode.com> Message-ID: On Fri, Jan 29, 2016 at 1:06 AM, Peter Haworth wrote: > > The only issue I have now is avoiding hard coding the browser to use. Does > anyone know of a way to find the default browser setting in OSX (this > program will only be running on Macs). > > Poking around in User level /Library/Preferences/com.apple.LaunchServices.plist I note org.mozilla.firefox which is my default browser. It's listed in the first 5 (0-4) items. Maybe you could play around changing your default browser and see what's effected and then use the hard coded syntax based on what your read from the plist. Just a suggestion, never tried it myself. Another thought, but I don't know how to do it, is any html file Get Info will list the 'Open with:' If there is some way to extract that Get Info information all you need to do is write a html file to Temp, Get Info, and work from there. Unfortunately whilst I know: put shell( "mdls" && tFilepath) into tFileInfo will extract far more info about a file that "Get Info" reveals, the terminal command does not list the 'Open with" info. Someone might know a variation of mdls that includes it. From lan.kc.macmail at gmail.com Thu Jan 28 21:45:51 2016 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Fri, 29 Jan 2016 10:45:51 +0800 Subject: Explicit Variables Message-ID: Not a discussion about the pros and cons, or a discussion on arrays, I just need a simple answer. put "apple,orange,banana" into tFruit repeat with x = 1 to the number of items in tFruit do "put item x of tFruit into tVar" & x --create a dynamic variable name end repeat put tVar2 I assume creating dynamic variable names will not work with explicitVariables set in the IDE but it will actually work in a standalone. Not work / work or Not work / not work Is all I need to know. From brahma at hindu.org Thu Jan 28 21:58:04 2016 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Fri, 29 Jan 2016 02:58:04 +0000 Subject: One Rect For All specificaiton In-Reply-To: References: <460ADF4D-BE89-430A-A603-02F46D99E84D@gmail.com> <56A79E07.3040606@fourthworld.com> <73CD5BA6-8A84-4BE5-85E0-47EA9F3ED7CB@gmail.com> <9CAE9459-7983-497A-B807-07A4AE0CCA8E@gmail.com> Message-ID: And yet another solution is to forget the top and bottom completely -- don?t use that area for controls if you are designing on 16:9 Today I was working on my dynamic image puzzle maker and wanted the entire virtual space on the iPhone so I moved my controls over to the left. After a successful build and install on iPad? Eureka moment! Jai Ganesha! All controls there nicely place on the left http://wiki.hindu.org/edu-app-dev/screen-shots/IMG_0047.PNG OK, so until (and this is my working query on the quality ticket for this) LC can give us a targetable coordinate map for the device that we can use reliably on *all* devices *after* showAll does it?s magic: Just put your app controls on the sides and tell your artists ?Make sure you keep your characters 100 pixels away from the left edge, ?cause we?re going to use that for controls? let top and bottom be nothing but part of background image/pattern BR On January 27, 2016 at 12:39:21 PM, Sannyasin Brahmanathaswami (brahma at hindu.org) wrote: I came up with a solution that works for 16:9 run on an iPad but I?m afraid it is not a general algorithm so I have no idea how this would work on Android devices with add ratios. From blueback09 at gmail.com Thu Jan 28 22:26:31 2016 From: blueback09 at gmail.com (Matt Maier) Date: Thu, 28 Jan 2016 19:26:31 -0800 Subject: snapshot and animation capture In-Reply-To: References: Message-ID: About that, is there a way to save the rectangle that the user draws manually using the crosshairs? With that I could at least capture the same rectangle again automatically. I suppose all I really need is a way for the user to define an area on the screen once and grab screenshots from that same area many times. On Jan 28, 2016 12:47, "Scott Rossi" wrote: > Regarding lagginess: yes. I can't say for sure, but if the LiveCode guys > could enable the windowShape property to work with images that have > centerRect dimensions, this would eliminate the need to do any image > exporting and potentially make drawing of the window faster. I've > suggested for years that window masks be based on graphics and converted > image/alphaData behind the scenes, but for now we're stuck with images. > > Regarding screenshots, WITHIN LiveCode you can capture just about > anything, but I don't believe there are any options for capturing > externally other than defining a rect on the screen. > > Regards, > > Scott Rossi > Creative Director > Tactile Media, UX/UI Design > > > > > On 1/28/16, 12:21 PM, "use-livecode on behalf of Matt Maier" > > wrote: > > >Mark, oops, didn't scroll far enough. I found the link to Snapper, thanks. > > > >Scott, that's great, and thanks for putting that post and stack up so > >fast. > >It's a little laggy on my system when it resizes quickly or gets to around > >750 pixels. Is it the same on yours? > > > >Is there a way to control other applications from within Livecode? Like, > >if > >the user has their browser running, could I bring it to the front, take a > >screenshot, then send it back behind the stand-alone again? Or is there a > >parameter in Livecode's screenshot function to only include another > >application in the screenshot? > >On Jan 27, 2016 14:28, "Scott Rossi" wrote: > > > >> I thought this might make an interesting read, so the demo stack is > >> included in an article: > >> < > >> > >> > http://tactilemedia.com/blog/2016/01/27/i-was-framed-a-resizable-custom-w > >>i > >> ndowshape-in-livecode/> > >> > >> > >> Hope this works for you. > >> > >> Regards, > >> > >> Scott Rossi > >> Creative Director > >> Tactile Media, UX/UI Design > >> > >> > >> > >> > >> On 1/27/16, 11:55 AM, "use-livecode on behalf of Scott Rossi" > >> >> scott at tactilemedia.com> wrote: > >> > >> >Hi Matt: > >> > > >> >I have a method for a resizable masked window that requires LC7 -- I'll > >> >try to post something later today or tomorrow. As far as image > >>animation > >> >goes, I have a very vague memory that LC used to be able to export > >> >animated GIF images, but that may have been static images only. You > >>may > >> >indeed need to go with a 3rd party option -- hopefully somebody else > >>has a > >> >suggestion for this. > >> > > >> >Regards, > >> > > >> >Scott Rossi > >> >Creative Director > >> >Tactile Media, UX/UI Design > >> > > >> > > >> > > >> > > >> >On 1/27/16, 11:38 AM, "use-livecode on behalf of Matt Maier" > >> > >>blueback09 at gmail.com> > >> >wrote: > >> > > >> >>I need to be able to easily capture stuff the user is seeing on their > >> >>screen so that they can import it into my application without having > >>to > >> >>navigate the file manager multiple times. There's some good screen > >> >>capture > >> >>stuff already in Livecode, but what I'm picturing is an actual window > >> >>with > >> >>a hole in it the user can position and leave there so they know what's > >> >>going to be captured multiple times. Like gifcam > >> >>http://blog.bahraniapps.com/gifcam/ > >> >> > >> >>There doesn't seem to be a way to set the background of a window to > >> >>transparent. There is a way to mask the window using a transparent > >>.png, > >> >>but that won't allow the user to resize the window. At the moment the > >> >>only > >> >>mechanism I can come up with is to screencap what's behind the window > >> >>every > >> >>time the user moves or resizes it and display that in the window so > >>that > >> >>it > >> >>looks like it's transparent. Is there a better way? > >> >> > >> >>Also, in addition to capturing still images, I'd like the user to be > >>able > >> >>to capture animated images (as an alternative to video). So, that part > >> >>would be exactly like gifcam. The only mechanism I've found for that > >>is > >> >>to > >> >>export each frame and then use something external like imagemagik to > >> >>stitch > >> >>them together into an animation. > >> >> > >> >>- Matt > >> > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 28 23:13:08 2016 From: dochawk at gmail.com (Dr. Hawkins) Date: Thu, 28 Jan 2016 20:13:08 -0800 Subject: Explicit Variables In-Reply-To: References: Message-ID: On Thu, Jan 28, 2016 at 6:45 PM, Kay C Lan wrote: > I assume creating dynamic variable names will not work with > explicitVariables set in the IDE but it will actually work in a standalone. > > Not work / work > or > Not work / not work > It *shouldn't* work from everything I know . . . in particular, the compiler should throw an error when it hits that line (and a *smart* compiler would optimize the line out, but that's another issue), which should cause the bill to fail. (Then again, I really want strong typing and C-style variable scope . . . ) -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From scott at tactilemedia.com Thu Jan 28 23:23:05 2016 From: scott at tactilemedia.com (Scott Rossi) Date: Thu, 28 Jan 2016 20:23:05 -0800 Subject: snapshot and animation capture In-Reply-To: References: Message-ID: As a concept, I thought it might be possible to detect the screenMouseLoc in a frontScript and use the resulting snapshot dimensions to determine the width/height of captured screen rect. Two problems though: 1) under 7.1.1 here on OS X 10.9.5, when executing just "import snapshot" the capture is WAY off from the selected rect, to the point of being unusable (bug?), and 2) a frontScript doesn't appear to grab the mouse location while the snapshot feature is active. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 1/28/16, 7:26 PM, "use-livecode on behalf of Matt Maier" wrote: >About that, is there a way to save the rectangle that the user draws >manually using the crosshairs? With that I could at least capture the same >rectangle again automatically. > >I suppose all I really need is a way for the user to define an area on the >screen once and grab screenshots from that same area many times. >On Jan 28, 2016 12:47, "Scott Rossi" wrote: > >> Regarding lagginess: yes. I can't say for sure, but if the LiveCode guys >> could enable the windowShape property to work with images that have >> centerRect dimensions, this would eliminate the need to do any image >> exporting and potentially make drawing of the window faster. I've >> suggested for years that window masks be based on graphics and converted >> image/alphaData behind the scenes, but for now we're stuck with images. >> >> Regarding screenshots, WITHIN LiveCode you can capture just about >> anything, but I don't believe there are any options for capturing >> externally other than defining a rect on the screen. >> >> Regards, >> >> Scott Rossi >> Creative Director >> Tactile Media, UX/UI Design >> >> >> >> >> On 1/28/16, 12:21 PM, "use-livecode on behalf of Matt Maier" >> >blueback09 at gmail.com> >> wrote: >> >> >Mark, oops, didn't scroll far enough. I found the link to Snapper, >>thanks. >> > >> >Scott, that's great, and thanks for putting that post and stack up so >> >fast. >> >It's a little laggy on my system when it resizes quickly or gets to >>around >> >750 pixels. Is it the same on yours? >> > >> >Is there a way to control other applications from within Livecode? >>Like, >> >if >> >the user has their browser running, could I bring it to the front, >>take a >> >screenshot, then send it back behind the stand-alone again? Or is >>there a >> >parameter in Livecode's screenshot function to only include another >> >application in the screenshot? >> >On Jan 27, 2016 14:28, "Scott Rossi" wrote: >> > >> >> I thought this might make an interesting read, so the demo stack is >> >> included in an article: >> >> < >> >> >> >> >> >>http://tactilemedia.com/blog/2016/01/27/i-was-framed-a-resizable-custom-w >> >>i >> >> ndowshape-in-livecode/> >> >> >> >> >> >> Hope this works for you. >> >> >> >> Regards, >> >> >> >> Scott Rossi >> >> Creative Director >> >> Tactile Media, UX/UI Design >> >> >> >> >> >> >> >> >> >> On 1/27/16, 11:55 AM, "use-livecode on behalf of Scott Rossi" >> >> > >> scott at tactilemedia.com> wrote: >> >> >> >> >Hi Matt: >> >> > >> >> >I have a method for a resizable masked window that requires LC7 -- >>I'll >> >> >try to post something later today or tomorrow. As far as image >> >>animation >> >> >goes, I have a very vague memory that LC used to be able to export >> >> >animated GIF images, but that may have been static images only. You >> >>may >> >> >indeed need to go with a 3rd party option -- hopefully somebody else >> >>has a >> >> >suggestion for this. >> >> > >> >> >Regards, >> >> > >> >> >Scott Rossi >> >> >Creative Director >> >> >Tactile Media, UX/UI Design >> >> > >> >> > >> >> > >> >> > >> >> >On 1/27/16, 11:38 AM, "use-livecode on behalf of Matt Maier" >> >> >> >>blueback09 at gmail.com> >> >> >wrote: >> >> > >> >> >>I need to be able to easily capture stuff the user is seeing on >>their >> >> >>screen so that they can import it into my application without >>having >> >>to >> >> >>navigate the file manager multiple times. There's some good screen >> >> >>capture >> >> >>stuff already in Livecode, but what I'm picturing is an actual >>window >> >> >>with >> >> >>a hole in it the user can position and leave there so they know >>what's >> >> >>going to be captured multiple times. Like gifcam >> >> >>http://blog.bahraniapps.com/gifcam/ >> >> >> >> >> >>There doesn't seem to be a way to set the background of a window to >> >> >>transparent. There is a way to mask the window using a transparent >> >>.png, >> >> >>but that won't allow the user to resize the window. At the moment >>the >> >> >>only >> >> >>mechanism I can come up with is to screencap what's behind the >>window >> >> >>every >> >> >>time the user moves or resizes it and display that in the window so >> >>that >> >> >>it >> >> >>looks like it's transparent. Is there a better way? >> >> >> >> >> >>Also, in addition to capturing still images, I'd like the user to >>be >> >>able >> >> >>to capture animated images (as an alternative to video). So, that >>part >> >> >>would be exactly like gifcam. The only mechanism I've found for >>that >> >>is >> >> >>to >> >> >>export each frame and then use something external like imagemagik >>to >> >> >>stitch >> >> >>them together into an animation. >> >> >> >> >> >>- Matt From blueback09 at gmail.com Fri Jan 29 00:40:05 2016 From: blueback09 at gmail.com (Matt Maier) Date: Thu, 28 Jan 2016 21:40:05 -0800 Subject: snapshot and animation capture In-Reply-To: References: Message-ID: What I'm working on now is putting a stack across the whole screen with a resizable rectangle on it. Then as long as the stack is transparent, or semi-transparent, the user can position the rectangle over what they want to capture. When they're done the stack coordinates can be converted into screen coordinates and the window can be closed. On Thu, Jan 28, 2016 at 8:23 PM, Scott Rossi wrote: > As a concept, I thought it might be possible to detect the screenMouseLoc > in a frontScript and use the resulting snapshot dimensions to determine > the width/height of captured screen rect. Two problems though: 1) under > 7.1.1 here on OS X 10.9.5, when executing just "import snapshot" the > capture is WAY off from the selected rect, to the point of being unusable > (bug?), and 2) a frontScript doesn't appear to grab the mouse location > while the snapshot feature is active. > > Regards, > > Scott Rossi > Creative Director > Tactile Media, UX/UI Design > > > > > On 1/28/16, 7:26 PM, "use-livecode on behalf of Matt Maier" > > wrote: > > >About that, is there a way to save the rectangle that the user draws > >manually using the crosshairs? With that I could at least capture the same > >rectangle again automatically. > > > >I suppose all I really need is a way for the user to define an area on the > >screen once and grab screenshots from that same area many times. > >On Jan 28, 2016 12:47, "Scott Rossi" wrote: > > > >> Regarding lagginess: yes. I can't say for sure, but if the LiveCode guys > >> could enable the windowShape property to work with images that have > >> centerRect dimensions, this would eliminate the need to do any image > >> exporting and potentially make drawing of the window faster. I've > >> suggested for years that window masks be based on graphics and converted > >> image/alphaData behind the scenes, but for now we're stuck with images. > >> > >> Regarding screenshots, WITHIN LiveCode you can capture just about > >> anything, but I don't believe there are any options for capturing > >> externally other than defining a rect on the screen. > >> > >> Regards, > >> > >> Scott Rossi > >> Creative Director > >> Tactile Media, UX/UI Design > >> > >> > >> > >> > >> On 1/28/16, 12:21 PM, "use-livecode on behalf of Matt Maier" > >> >>blueback09 at gmail.com> > >> wrote: > >> > >> >Mark, oops, didn't scroll far enough. I found the link to Snapper, > >>thanks. > >> > > >> >Scott, that's great, and thanks for putting that post and stack up so > >> >fast. > >> >It's a little laggy on my system when it resizes quickly or gets to > >>around > >> >750 pixels. Is it the same on yours? > >> > > >> >Is there a way to control other applications from within Livecode? > >>Like, > >> >if > >> >the user has their browser running, could I bring it to the front, > >>take a > >> >screenshot, then send it back behind the stand-alone again? Or is > >>there a > >> >parameter in Livecode's screenshot function to only include another > >> >application in the screenshot? > >> >On Jan 27, 2016 14:28, "Scott Rossi" wrote: > >> > > >> >> I thought this might make an interesting read, so the demo stack is > >> >> included in an article: > >> >> < > >> >> > >> >> > >> > >> > http://tactilemedia.com/blog/2016/01/27/i-was-framed-a-resizable-custom-w > >> >>i > >> >> ndowshape-in-livecode/> > >> >> > >> >> > >> >> Hope this works for you. > >> >> > >> >> Regards, > >> >> > >> >> Scott Rossi > >> >> Creative Director > >> >> Tactile Media, UX/UI Design > >> >> > >> >> > >> >> > >> >> > >> >> On 1/27/16, 11:55 AM, "use-livecode on behalf of Scott Rossi" > >> >> >> >> scott at tactilemedia.com> wrote: > >> >> > >> >> >Hi Matt: > >> >> > > >> >> >I have a method for a resizable masked window that requires LC7 -- > >>I'll > >> >> >try to post something later today or tomorrow. As far as image > >> >>animation > >> >> >goes, I have a very vague memory that LC used to be able to export > >> >> >animated GIF images, but that may have been static images only. You > >> >>may > >> >> >indeed need to go with a 3rd party option -- hopefully somebody else > >> >>has a > >> >> >suggestion for this. > >> >> > > >> >> >Regards, > >> >> > > >> >> >Scott Rossi > >> >> >Creative Director > >> >> >Tactile Media, UX/UI Design > >> >> > > >> >> > > >> >> > > >> >> > > >> >> >On 1/27/16, 11:38 AM, "use-livecode on behalf of Matt Maier" > >> >> > >> >>blueback09 at gmail.com> > >> >> >wrote: > >> >> > > >> >> >>I need to be able to easily capture stuff the user is seeing on > >>their > >> >> >>screen so that they can import it into my application without > >>having > >> >>to > >> >> >>navigate the file manager multiple times. There's some good screen > >> >> >>capture > >> >> >>stuff already in Livecode, but what I'm picturing is an actual > >>window > >> >> >>with > >> >> >>a hole in it the user can position and leave there so they know > >>what's > >> >> >>going to be captured multiple times. Like gifcam > >> >> >>http://blog.bahraniapps.com/gifcam/ > >> >> >> > >> >> >>There doesn't seem to be a way to set the background of a window to > >> >> >>transparent. There is a way to mask the window using a transparent > >> >>.png, > >> >> >>but that won't allow the user to resize the window. At the moment > >>the > >> >> >>only > >> >> >>mechanism I can come up with is to screencap what's behind the > >>window > >> >> >>every > >> >> >>time the user moves or resizes it and display that in the window so > >> >>that > >> >> >>it > >> >> >>looks like it's transparent. Is there a better way? > >> >> >> > >> >> >>Also, in addition to capturing still images, I'd like the user to > >>be > >> >>able > >> >> >>to capture animated images (as an alternative to video). So, that > >>part > >> >> >>would be exactly like gifcam. The only mechanism I've found for > >>that > >> >>is > >> >> >>to > >> >> >>export each frame and then use something external like imagemagik > >>to > >> >> >>stitch > >> >> >>them together into an animation. > >> >> >> > >> >> >>- Matt > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 livecode.com Fri Jan 29 02:31:21 2016 From: mark at livecode.com (Mark Waddingham) Date: Fri, 29 Jan 2016 07:31:21 +0000 Subject: Explicit Variables In-Reply-To: References: Message-ID: <54E2BDAF-D52C-4DF3-B011-1637ADEF536B@livecode.com> That should work fine. The explicitVars property is only set in the IDE around code which compiles / sets object scripts (i.e. In the script editor). It is false the rest of the time. Mark. Sent from my iPhone > On 29 Jan 2016, at 02:45, Kay C Lan wrote: > > Not a discussion about the pros and cons, or a discussion on arrays, I just > need a simple answer. > > put "apple,orange,banana" into tFruit > repeat with x = 1 to the number of items in tFruit > do "put item x of tFruit into tVar" & x --create a dynamic variable name > end repeat > put tVar2 > > I assume creating dynamic variable names will not work with > explicitVariables set in the IDE but it will actually work in a standalone. > > Not work / work > or > Not work / not work > > Is all I need to know. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From hh at livecode.org Fri Jan 29 03:01:48 2016 From: hh at livecode.org (-hh) Date: Fri, 29 Jan 2016 09:01:48 +0100 Subject: Explicit Variables Message-ID: <2C58250E-813E-4DD2-8295-66D25F558E8E@livecode.org> What about the following? on mouseUp do "local tvar=1.2" put 2*tvar end mouseUp Should NOT work. But this should work (as do recompiles?): on mouseUp do "local tvar=1.2" do "put 2*tvar" end mouseUp From roland.huettmann at gmail.com Fri Jan 29 04:21:29 2016 From: roland.huettmann at gmail.com (Roland Huettmann) Date: Fri, 29 Jan 2016 10:21:29 +0100 Subject: Selecting text in single-line entry fields - small UI issue In-Reply-To: <6D1322A9-1DDD-4B8E-A621-BE75A60493D3@livecode.org> References: <6D1322A9-1DDD-4B8E-A621-BE75A60493D3@livecode.org> Message-ID: Paul, yes, autohilite does it. ) But nevertheless, to perform some action, I need a trigger while tabbing. I am using LC 7.1, Windows 8.1 The actual question was another one: The text is highlighted - yes - in both cases. But the single-line field rectangle is not, just the text itself. I would like to have the visual effect showing a fully highlighted field (not the text itself) where the text is visible and selected - and ideally the color showing is set apart more than just 1 pixel from the border of the field boundaries. This simply looks better than a chunk of text being selected. This can somehow be done tabbing into the field and then setting the backgroundcolor of field. But setting the backgroundcolor to the hilitecolor will make the text chunk disappear. Example: // The text chunk only appears when tabbing out or deselecting it. Setting the hilitecolor to empty does not make a difference. // on tabkey set the hilitecolor of field "Test1" to blue set the backgroundcolor of field "Test1" to the hilitecolor of field "Test1" select the text of field "Test1" // The text DISAPPEARS end tabkey One way of achieving the desired effect is with a trick: Set the actual field to be transparent. Put a graphic or another control (field..) behind. Selecting the text of the transparent field will change the color of the control behind it and the visual effect will be as desired if the hilitecolor is set to the same color as the backgroundcolor in the control behind. But of course - this is not something I would like to do for all my fields. ) Roland On 28 January 2016 at 22:26, Paul Hibbert wrote: > On Jan 28, 2016, at 4:07 AM, Roland Huettmann > wrote: > > > > Maybe I am missing something, but I need to script this with "on > > tabkey"-event handlers, "on textchanged" handlers, " on deletekey" > handlers > > and go with "select the text of..." or "select line 1 of...". Otherwise > the > > cursor is always placed behind the text - and I do not want that except > for > > multi-line fields. Could there not be a built-in attribute how selection > > should occur? > > Check the autoTab property in the inspector, or if you want to set it by > script? > > set the autoTab of field ?myField" to true > > I?m not seeing any issue with text changing colour when selected, but you > didn?t say which version of Livecode or which platform you are seeing this > on, this info may help track down the problem. > > Paul > _______________________________________________ > use-livecode mailing list > use-livecode at 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 29 05:30:32 2016 From: scott at tactilemedia.com (Scott Rossi) Date: Fri, 29 Jan 2016 02:30:32 -0800 Subject: LC Server Call Javascript Function? Message-ID: Can a LiveCode server script call a Javascript function? I want to write some text into a div in an LC server web page without refreshing the entire page. AFAICT, generating any text from a LiveCode server script will replace the contents of page, but cannot target a a specific DOM element on the page. Since Javascript can do this, is there any way to trigger a Javascript function from an LC server script? Thanks for any ideas. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design From peterwawood at gmail.com Fri Jan 29 05:36:31 2016 From: peterwawood at gmail.com (Peter W A Wood) Date: Fri, 29 Jan 2016 18:36:31 +0800 Subject: LC Server Call Javascript Function? In-Reply-To: References: Message-ID: <62BDB19D-7336-4BB3-BFA8-C84D6BB1324D@gmail.com> Scott > On 29 Jan 2016, at 18:30, Scott Rossi wrote: > > Can a LiveCode server script call a Javascript function? > > I want to write some text into a div in an LC server web page without > refreshing the entire page. AFAICT, generating any text from a LiveCode > server script will replace the contents of page, but cannot target a a > specific DOM element on the page. Since Javascript can do this, is there > any way to trigger a Javascript function from an LC server script? It is easy enough to do, if the JavaScript calls the LC Server Script. I believe that pushing content from the server to the browser can be achieved using the HTML5 WebSocket API (which will be a lot more complicated). Regards Peter From richmondmathewson at gmail.com Fri Jan 29 05:37:32 2016 From: richmondmathewson at gmail.com (Richmond) Date: Fri, 29 Jan 2016 12:37:32 +0200 Subject: [OT] Blowing up your Mac laptops Message-ID: <56AB40EC.7060600@gmail.com> Please could anybody who has a Macintosh laptop read this: http://www.bbc.com/news/technology-35432682 Richmond. From roland.huettmann at gmail.com Fri Jan 29 05:45:49 2016 From: roland.huettmann at gmail.com (Roland Huettmann) Date: Fri, 29 Jan 2016 11:45:49 +0100 Subject: Selecting text in single-line entry fields - small UI issue In-Reply-To: References: <6D1322A9-1DDD-4B8E-A621-BE75A60493D3@livecode.org> Message-ID: Question: textcolor when text is selected It is possible to set the textcolor when the text is hilited? I could not find a way doing this. Roland On 29 January 2016 at 10:21, Roland Huettmann wrote: > Paul, yes, autohilite does it. ) But nevertheless, to perform some action, > I need a trigger while tabbing. > > I am using LC 7.1, Windows 8.1 > > The actual question was another one: > > The text is highlighted - yes - in both cases. > > But the single-line field rectangle is not, just the text itself. > > I would like to have the visual effect showing a fully highlighted field > (not the text itself) where the text is visible and selected - and ideally > the color showing is set apart more than just 1 pixel from the border of > the field boundaries. > > This simply looks better than a chunk of text being selected. > > This can somehow be done tabbing into the field and then setting the > backgroundcolor of field. > > But setting the backgroundcolor to the hilitecolor will make the text > chunk disappear. > > Example: > > // The text chunk only appears when tabbing out or deselecting it. Setting > the hilitecolor to empty does not make a difference. // > > on tabkey > set the hilitecolor of field "Test1" to blue > set the backgroundcolor of field "Test1" to the hilitecolor of field > "Test1" > select the text of field "Test1" // The text DISAPPEARS > end tabkey > > One way of achieving the desired effect is with a trick: > > Set the actual field to be transparent. Put a graphic or another control > (field..) behind. Selecting the text of the transparent field will change > the color of the control behind it and the visual effect will be as desired > if the hilitecolor is set to the same color as the backgroundcolor in the > control behind. > > But of course - this is not something I would like to do for all my > fields. ) > > Roland > > > > > > > > On 28 January 2016 at 22:26, Paul Hibbert wrote: > >> On Jan 28, 2016, at 4:07 AM, Roland Huettmann >> wrote: >> > >> > Maybe I am missing something, but I need to script this with "on >> > tabkey"-event handlers, "on textchanged" handlers, " on deletekey" >> handlers >> > and go with "select the text of..." or "select line 1 of...". Otherwise >> the >> > cursor is always placed behind the text - and I do not want that except >> for >> > multi-line fields. Could there not be a built-in attribute how selection >> > should occur? >> >> Check the autoTab property in the inspector, or if you want to set it by >> script? >> >> set the autoTab of field ?myField" to true >> >> I?m not seeing any issue with text changing colour when selected, but you >> didn?t say which version of Livecode or which platform you are seeing this >> on, this info may help track down the problem. >> >> Paul >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > From roland.huettmann at gmail.com Fri Jan 29 06:01:33 2016 From: roland.huettmann at gmail.com (Roland Huettmann) Date: Fri, 29 Jan 2016 12:01:33 +0100 Subject: Questions: Setting the borderWidth (lineSize) of a graphic through script Message-ID: Using LC 7.1 / Windows 8.1 I am trying to find a way of setting the borderwidth and bordercolor of a newly created graphic through script. It does not work. But it is possible using the Property Inspector. The following instructions fail: on mouseUp set the borderwidth of graphic "XY" to 10 set the bordercolor of graphic "XY" to red end mouseUp Strangely enough, when I am asking for the these property values (put the borderwidth of graphic "XY") then it is the set value and will be 10 in this case. It renders visually with 1 or 2, and the Property Inspector gives a value of 2. But setting other properties such as background color etc. is working. Maybe I am overlooking something? Roland From peter.brett at livecode.com Fri Jan 29 06:08:28 2016 From: peter.brett at livecode.com (Peter TB Brett) Date: Fri, 29 Jan 2016 12:08:28 +0100 Subject: LC Server Call Javascript =?UTF-8?Q?Function=3F?= In-Reply-To: References: Message-ID: <67db415aa69b9ef18e634103e0e52680@livecode.com> On 2016-01-29 11:30, Scott Rossi wrote: > Can a LiveCode server script call a Javascript function? > > I want to write some text into a div in an LC server web page without > refreshing the entire page. AFAICT, generating any text from a > LiveCode > server script will replace the contents of page, but cannot target a a > specific DOM element on the page. Since Javascript can do this, is > there > any way to trigger a Javascript function from an LC server script? The normal way to do this would be to write some JavaScript that performs an XMLHttpRequest to the LiveCode server script, and then sets the innerHTML of the
element. Don't forget that JavaScript runs on the client, and LiveCode runs on the server. There are things you can do in a LiveCode server script that you can't in JavaScript, and vice versa. Peter -- Dr Peter Brett LiveCode Open Source Team LiveCode on reddit! From scott at tactilemedia.com Fri Jan 29 06:18:41 2016 From: scott at tactilemedia.com (Scott Rossi) Date: Fri, 29 Jan 2016 03:18:41 -0800 Subject: Questions: Setting the borderWidth (lineSize) of a graphic through script In-Reply-To: References: Message-ID: Do you really want to adjust the border property instead of the lineSize / foreColor? set the lineSize of grc "XY" to 10 set the foreColor of grc "XY" to "red" Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 1/29/16, 3:01 AM, "use-livecode on behalf of Roland Huettmann" wrote: >Using LC 7.1 / Windows 8.1 > >I am trying to find a way of setting the borderwidth and bordercolor of a >newly created graphic through script. It does not work. > >But it is possible using the Property Inspector. > >The following instructions fail: > >on mouseUp > set the borderwidth of graphic "XY" to 10 > set the bordercolor of graphic "XY" to red >end mouseUp > >Strangely enough, when I am asking for the these property values (put the >borderwidth of graphic "XY") then it is the set value and will be 10 in >this case. It renders visually with 1 or 2, and the Property Inspector >gives a value of 2. > >But setting other properties such as background color etc. is working. > >Maybe I am overlooking something? > >Roland >_______________________________________________ >use-livecode mailing list >use-livecode at lists.runrev.com >Please visit this url to subscribe, unsubscribe and manage your >subscription preferences: >http://lists.runrev.com/mailman/listinfo/use-livecode From roland.huettmann at gmail.com Fri Jan 29 06:05:17 2016 From: roland.huettmann at gmail.com (Roland Huettmann) Date: Fri, 29 Jan 2016 12:05:17 +0100 Subject: Selecting text in single-line entry fields - small UI issue In-Reply-To: References: <6D1322A9-1DDD-4B8E-A621-BE75A60493D3@livecode.org> Message-ID: Sorry - mistyped: I wanted to write: "Is it possible.... ?" On 29 January 2016 at 11:45, Roland Huettmann wrote: > Question: textcolor when text is selected > > It is possible to set the textcolor when the text is hilited? I could not > find a way doing this. > > Roland > > > > On 29 January 2016 at 10:21, Roland Huettmann > wrote: > >> Paul, yes, autohilite does it. ) But nevertheless, to perform some >> action, I need a trigger while tabbing. >> >> I am using LC 7.1, Windows 8.1 >> >> The actual question was another one: >> >> The text is highlighted - yes - in both cases. >> >> But the single-line field rectangle is not, just the text itself. >> >> I would like to have the visual effect showing a fully highlighted field >> (not the text itself) where the text is visible and selected - and ideally >> the color showing is set apart more than just 1 pixel from the border of >> the field boundaries. >> >> This simply looks better than a chunk of text being selected. >> >> This can somehow be done tabbing into the field and then setting the >> backgroundcolor of field. >> >> But setting the backgroundcolor to the hilitecolor will make the text >> chunk disappear. >> >> Example: >> >> // The text chunk only appears when tabbing out or deselecting it. >> Setting the hilitecolor to empty does not make a difference. // >> >> on tabkey >> set the hilitecolor of field "Test1" to blue >> set the backgroundcolor of field "Test1" to the hilitecolor of field >> "Test1" >> select the text of field "Test1" // The text DISAPPEARS >> end tabkey >> >> One way of achieving the desired effect is with a trick: >> >> Set the actual field to be transparent. Put a graphic or another control >> (field..) behind. Selecting the text of the transparent field will change >> the color of the control behind it and the visual effect will be as desired >> if the hilitecolor is set to the same color as the backgroundcolor in the >> control behind. >> >> But of course - this is not something I would like to do for all my >> fields. ) >> >> Roland >> >> >> >> >> >> >> >> On 28 January 2016 at 22:26, Paul Hibbert wrote: >> >>> On Jan 28, 2016, at 4:07 AM, Roland Huettmann < >>> roland.huettmann at gmail.com> wrote: >>> > >>> > Maybe I am missing something, but I need to script this with "on >>> > tabkey"-event handlers, "on textchanged" handlers, " on deletekey" >>> handlers >>> > and go with "select the text of..." or "select line 1 of...". >>> Otherwise the >>> > cursor is always placed behind the text - and I do not want that >>> except for >>> > multi-line fields. Could there not be a built-in attribute how >>> selection >>> > should occur? >>> >>> Check the autoTab property in the inspector, or if you want to set it by >>> script? >>> >>> set the autoTab of field ?myField" to true >>> >>> I?m not seeing any issue with text changing colour when selected, but >>> you didn?t say which version of Livecode or which platform you are seeing >>> this on, this info may help track down the problem. >>> >>> Paul >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> > From roland.huettmann at gmail.com Fri Jan 29 06:32:18 2016 From: roland.huettmann at gmail.com (Roland Huettmann) Date: Fri, 29 Jan 2016 12:32:18 +0100 Subject: Questions: Setting the borderWidth (lineSize) of a graphic through script In-Reply-To: References: Message-ID: Hello Scott Borderwidth or linesize are synonyms according to the Dictionary, and I tried all without success. I want to script the borderwidth (linesize) and it's appearance. It is a specific task drawing rectangles representing windows with frames where the "frames" are my border lines.And those border line widths (frame widths) are changing all the time. What I do as a work-around is drawing a rectangle, setting it's properties with the Property Inspector and then copying the properties to the newly created rectangle. But this requires in advance defining such template objects. But should it not work just using script? On 29 January 2016 at 12:30, Roland Huettmann wrote: > Hello Scott > > Borderwidth or linesize are synonyms according to the Dictionary, and I > tried all without success. > > I want to script the borderwidth (linesize) and it's appearance. It is a > specific task drawing rectangles representing windows with frames where the > "frames" are my border lines.And those border line widths (frame widths) > are changing all the time. > > What I do as a work-around is drawing a rectangle, setting it's properties > with the Property Inspector and then copying the properties to the newly > created rectangle. But this requires in advance defining such template > objects. > > But should it not work just using script? > > Roland > > > > On 29 January 2016 at 12:18, Scott Rossi wrote: > >> Do you really want to adjust the border property instead of the lineSize / >> foreColor? >> >> set the lineSize of grc "XY" to 10 >> set the foreColor of grc "XY" to "red" >> >> Regards, >> >> Scott Rossi >> Creative Director >> Tactile Media, UX/UI Design >> >> >> >> >> On 1/29/16, 3:01 AM, "use-livecode on behalf of Roland Huettmann" >> > roland.huettmann at gmail.com> wrote: >> >> >Using LC 7.1 / Windows 8.1 >> > >> >I am trying to find a way of setting the borderwidth and bordercolor of a >> >newly created graphic through script. It does not work. >> > >> >But it is possible using the Property Inspector. >> > >> >The following instructions fail: >> > >> >on mouseUp >> > set the borderwidth of graphic "XY" to 10 >> > set the bordercolor of graphic "XY" to red >> >end mouseUp >> > >> >Strangely enough, when I am asking for the these property values (put the >> >borderwidth of graphic "XY") then it is the set value and will be 10 in >> >this case. It renders visually with 1 or 2, and the Property Inspector >> >gives a value of 2. >> > >> >But setting other properties such as background color etc. is working. >> > >> >Maybe I am overlooking something? >> > >> >Roland >> >_______________________________________________ >> >use-livecode mailing list >> >use-livecode 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 hh at livecode.org Fri Jan 29 09:57:30 2016 From: hh at livecode.org (-hh) Date: Fri, 29 Jan 2016 15:57:30 +0100 Subject: snapshot and animation capture Message-ID: <85C5D331-CFE5-42D3-A76F-28C342799DE5@livecode.org> Hi, I've made a stack for the Raspi collection, that does the following: Creates a *resizable* rectangle frame (window shape of a non-opaque rectangle), currently set as systemWindow. You can drag that around the screen and trigger a small button on the frame. Then a screenshot of the visible interior of the frame is made and saved as PNG. You can open and view these 'shots' in the stack, if it is switched to non-window-shaped. It's all "intermediate" Livecode, runs on Mac/Win/Linux and is fast enough on a Raspi. On Win/Linux resizing "flickers", you may play there with the 'update-beat' (currently 4 ticks), but it works. I didn't publish it until now, because "window-shaping" is currently/not yet possible in the available Raspi IDE's or standalones. If this is (partly) what you want, then I'll post it (or a link to it) in a few hours in the sub-forum "Rich Media". Just tell me. Hermann From bernd.niggemann at uni-wh.de Fri Jan 29 10:05:21 2016 From: bernd.niggemann at uni-wh.de (BNig) Date: Fri, 29 Jan 2016 07:05:21 -0800 (PST) Subject: Questions: Setting the borderWidth (lineSize) of a graphic through script In-Reply-To: References: Message-ID: <1454079921481-4700538.post@n4.nabble.com> Hello Roland, RH wrote > Borderwidth or linesize are synonyms according to the Dictionary, and I > tried all without success. > ..... > But should it not work just using script? I tried "set the borderwidth of grc "x" to y" on MacOSX 10.9.5 in LC 7.1 and 8 DP13 and it did not work. However "set the lineSize of grc "x" to y" did work. According to the dictionary borderwidth should work, either a documentation error or a bug. Maybe someone could test this on Windows 8.1. Kind regards Bernd -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Questions-Setting-the-borderWidth-lineSize-of-a-graphic-through-script-tp4700532p4700538.html Sent from the Revolution - User mailing list archive at Nabble.com. From mark at livecode.com Fri Jan 29 10:32:13 2016 From: mark at livecode.com (Mark Waddingham) Date: Fri, 29 Jan 2016 16:32:13 +0100 Subject: Questions: Setting the borderWidth (lineSize) of a graphic through script In-Reply-To: <1454079921481-4700538.post@n4.nabble.com> References: <1454079921481-4700538.post@n4.nabble.com> Message-ID: <73c77247fc7800decf3d8cb8fd5c03bd@livecode.com> On 2016-01-29 16:05, BNig wrote: > I tried "set the borderwidth of grc "x" to y" on MacOSX 10.9.5 in LC > 7.1 and > 8 DP13 and it did not work. However "set the lineSize of grc "x" to y" > did > work. The borderWidth property specifies the width of the border around the control - whether this is visible or not depends on the value of the showBorder property. The lineSize property is distinct and is specific to graphic objects - it sets the stroke width used to render the graphic's shape. Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From jacque at hyperactivesw.com Fri Jan 29 11:16:40 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 29 Jan 2016 10:16:40 -0600 Subject: Selecting text in single-line entry fields - small UI issue In-Reply-To: References: <6D1322A9-1DDD-4B8E-A621-BE75A60493D3@livecode.org> Message-ID: <644E1B8D-274D-4B5D-8AF7-6867B1BCEF92@hyperactivesw.com> The focusborder property will outline the currently active field with a color. If you use that, you won't have to set the field's backcolor. If you do want to script the behavior, you can use either the openfield or focusIn message as the trigger. When focus is lost, a focusOut message is sent as well as either closefield or exitfield, which you can use to reset the field appearance. I've had to work around the disappearing selection text on Windows before (it doesn't happen on Mac) and found that for black text, the best background color is a pale shade. I think I used a very light yellow. On January 29, 2016 3:21:29 AM CST, Roland Huettmann wrote: >Paul, yes, autohilite does it. ) But nevertheless, to perform some >action, >I need a trigger while tabbing. > >I am using LC 7.1, Windows 8.1 > >The actual question was another one: > >The text is highlighted - yes - in both cases. > >But the single-line field rectangle is not, just the text itself. > >I would like to have the visual effect showing a fully highlighted >field >(not the text itself) where the text is visible and selected - and >ideally >the color showing is set apart more than just 1 pixel from the border >of >the field boundaries. > >This simply looks better than a chunk of text being selected. > >This can somehow be done tabbing into the field and then setting the >backgroundcolor of field. > >But setting the backgroundcolor to the hilitecolor will make the text >chunk >disappear. > >Example: > >// The text chunk only appears when tabbing out or deselecting it. >Setting >the hilitecolor to empty does not make a difference. // > >on tabkey > set the hilitecolor of field "Test1" to blue > set the backgroundcolor of field "Test1" to the hilitecolor of field >"Test1" > select the text of field "Test1" // The text DISAPPEARS >end tabkey > >One way of achieving the desired effect is with a trick: > >Set the actual field to be transparent. Put a graphic or another >control >(field..) behind. Selecting the text of the transparent field will >change >the color of the control behind it and the visual effect will be as >desired >if the hilitecolor is set to the same color as the backgroundcolor in >the >control behind. > >But of course - this is not something I would like to do for all my >fields. >) > >Roland > > > > > > > >On 28 January 2016 at 22:26, Paul Hibbert wrote: > >> On Jan 28, 2016, at 4:07 AM, Roland Huettmann > >> wrote: >> > >> > Maybe I am missing something, but I need to script this with "on >> > tabkey"-event handlers, "on textchanged" handlers, " on deletekey" >> handlers >> > and go with "select the text of..." or "select line 1 of...". >Otherwise >> the >> > cursor is always placed behind the text - and I do not want that >except >> for >> > multi-line fields. Could there not be a built-in attribute how >selection >> > should occur? >> >> Check the autoTab property in the inspector, or if you want to set it >by >> script? >> >> set the autoTab of field ?myField" to true >> >> I?m not seeing any issue with text changing colour when selected, but >you >> didn?t say which version of Livecode or which platform you are seeing >this >> on, this info may help track down the problem. >> >> Paul >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 roland.huettmann at gmail.com Fri Jan 29 11:33:33 2016 From: roland.huettmann at gmail.com (Roland Huettmann) Date: Fri, 29 Jan 2016 17:33:33 +0100 Subject: Questions: Setting the borderWidth (lineSize) of a graphic through script In-Reply-To: <73c77247fc7800decf3d8cb8fd5c03bd@livecode.com> References: <1454079921481-4700538.post@n4.nabble.com> <73c77247fc7800decf3d8cb8fd5c03bd@livecode.com> Message-ID: Mark is right, I tested again and it is obviously a documentation error. Tested on Windows 8.1, LC 7.1 and LC 8.0 dp 13: ShowBorder was set to true in all cases. ThreeD must be set to false in the case of buttons, etc. LineSize: Works exclusively on graphics, NOT on other objects BorderWidth works on objects such as fields, buttons, etc. but NOT on graphics. According to Dictionary borderwWdth and lineSize are synonyms and even an example is given which does not work. I will file a little documentation error report. Roland On 29 January 2016 at 16:32, Mark Waddingham wrote: > On 2016-01-29 16:05, BNig wrote: > >> I tried "set the borderwidth of grc "x" to y" on MacOSX 10.9.5 in LC 7.1 >> and >> 8 DP13 and it did not work. However "set the lineSize of grc "x" to y" did >> work. >> > > The borderWidth property specifies the width of the border around the > control - whether this is visible or not depends on the value of the > showBorder property. > > The lineSize property is distinct and is specific to graphic objects - it > sets the stroke width used to render the graphic's shape. > > Warmest Regards, > > Mark. > > -- > Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ > LiveCode: Everyone can create apps > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From roland.huettmann at gmail.com Fri Jan 29 12:38:30 2016 From: roland.huettmann at gmail.com (Roland Huettmann) Date: Fri, 29 Jan 2016 18:38:30 +0100 Subject: Selecting text in single-line entry fields - small UI issue In-Reply-To: <644E1B8D-274D-4B5D-8AF7-6867B1BCEF92@hyperactivesw.com> References: <6D1322A9-1DDD-4B8E-A621-BE75A60493D3@livecode.org> <644E1B8D-274D-4B5D-8AF7-6867B1BCEF92@hyperactivesw.com> Message-ID: Hello J. Thank you. Helpful. Especially the triggers mentioned. Unfortunately the focusborder property does not work in WIndows. In the Dictionary Window 92 is mentioned (uh...?) but it also does not work in 8.1 (and I guess in Windows 10). Of course I can set the borderwidth and bordercolor when entering the field and when exiting it. WINDOWS: It seems that this problem loosing the selection (I had this before in older versions) is gone. Or at least, currently I do not have this any longer. That is already very fortunate! (I remember that this was the reason why I worked with the tabkey solution to keep the focus on the field not loosing the selection. I was wondering why I did it.Yes, it was this problem loosing the selection before. I love the way some fields in other programs are selecting the text. Look at FileMaker. Setting the field property selecting the field content means that the whole field is showing a selection, not just the text. Such examples make it clear, not my many words ). Here is my test button to try to indicate the selection changing the backgroundcolor: on mouseUp if the shiftkey is down then set the texthilite of field test3 to white set the backgroundcolor of field test3 to black select the text of field test3 // NOTHING IS SHOWN but the text is there else set the texthilite of field test3 to black set the backgroundcolor of field test3 to white select the text of field test3 // NOTHING IS SHOWN but the text is there end if end mouseUp In both cases, it does not work. The text disappears ! So, it also disappears when tabbing into the field. Only selecting the text manually it will show, and reverse the selection color. All I am trying to explain is that the current way of text selection is not looking as nice as the field selection in other programs. And I would like to work on such level of detail. It is not critical to have it. I agree. So far this effect seems only possible using a transparent field on top of another control, and this control behind shows the selection in the same color as the text selection so that the visual effect is as I want it. It can even be made small enough so that the visual effect will be associated with the actual text and the whole width of the selected field. But it is neither perfect, nor desirable to use such work-around everywhere as even a transparent or empty selectioncolor shows off and looks disturbing or just not quite right. And it is not really the text selection itself (which is hidden here using the same selectioncolor as the control behind but still not completely unnoticed). I assume now that what I am trying to achieve is currently not possible. I hope that it will be possible to do on such level of detail using widgets. I did not explored these new possibilities yet. And I need more guidance to learn LCB. ))) Roland From richmondmathewson at gmail.com Fri Jan 29 13:20:17 2016 From: richmondmathewson at gmail.com (Richmond) Date: Fri, 29 Jan 2016 20:20:17 +0200 Subject: snapshot and animation capture In-Reply-To: <56A9FA0B.1030600@gmail.com> References: <56A9FA0B.1030600@gmail.com> Message-ID: <56ABAD61.5080106@gmail.com> On 28/01/16 13:22, Richmond wrote: > On 28/01/16 00:27, Scott Rossi wrote: >> I thought this might make an interesting read, so the demo stack is >> included in an article: >> > >> ndowshape-in-livecode/> >> >> >> Hope this works for you. > > Well, I'll certainly see: I'll see if it can grab a few images from my > USB microscope connected > to a computer running Xubuntu - at least it will be a happy > alternative from endless Grammar > exercises for the kids I'm teaching this afternoon! > > Expect a report later today. > > Richmond. I must be slightly stupid because, although I could see a resizable rectangle I could not for the life of me work out how to trigger the actual snapshot. Richmond. > >> >> Regards, >> >> Scott Rossi >> Creative Director >> Tactile Media, UX/UI Design >> >> >> >> >> On 1/27/16, 11:55 AM, "use-livecode on behalf of Scott Rossi" >> > scott at tactilemedia.com> wrote: >> >>> Hi Matt: >>> >>> I have a method for a resizable masked window that requires LC7 -- I'll >>> try to post something later today or tomorrow. As far as image >>> animation >>> goes, I have a very vague memory that LC used to be able to export >>> animated GIF images, but that may have been static images only. You >>> may >>> indeed need to go with a 3rd party option -- hopefully somebody else >>> has a >>> suggestion for this. >>> >>> Regards, >>> >>> Scott Rossi >>> Creative Director >>> Tactile Media, UX/UI Design >>> >>> >>> >>> >>> On 1/27/16, 11:38 AM, "use-livecode on behalf of Matt Maier" >>> >> blueback09 at gmail.com> >>> wrote: >>> >>>> I need to be able to easily capture stuff the user is seeing on their >>>> screen so that they can import it into my application without >>>> having to >>>> navigate the file manager multiple times. There's some good screen >>>> capture >>>> stuff already in Livecode, but what I'm picturing is an actual window >>>> with >>>> a hole in it the user can position and leave there so they know what's >>>> going to be captured multiple times. Like gifcam >>>> http://blog.bahraniapps.com/gifcam/ >>>> >>>> There doesn't seem to be a way to set the background of a window to >>>> transparent. There is a way to mask the window using a transparent >>>> .png, >>>> but that won't allow the user to resize the window. At the moment the >>>> only >>>> mechanism I can come up with is to screencap what's behind the window >>>> every >>>> time the user moves or resizes it and display that in the window so >>>> that >>>> it >>>> looks like it's transparent. Is there a better way? >>>> >>>> Also, in addition to capturing still images, I'd like the user to >>>> be able >>>> to capture animated images (as an alternative to video). So, that part >>>> would be exactly like gifcam. The only mechanism I've found for >>>> that is >>>> to >>>> export each frame and then use something external like imagemagik to >>>> stitch >>>> them together into an animation. >>>> >>>> - Matt >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 livecode.com Fri Jan 29 13:21:31 2016 From: mark at livecode.com (Mark Waddingham) Date: Fri, 29 Jan 2016 19:21:31 +0100 Subject: Questions: Setting the borderWidth (lineSize) of a graphic through script In-Reply-To: References: <1454079921481-4700538.post@n4.nabble.com> <73c77247fc7800decf3d8cb8fd5c03bd@livecode.com> Message-ID: <213862278be247eff04f0b5f48f65d32@livecode.com> On 2016-01-29 17:33, Roland Huettmann wrote: > ShowBorder was set to true in all cases. > ThreeD must be set to false in the case of buttons, etc. > > LineSize: Works exclusively on graphics, NOT on other objects > > BorderWidth works on objects such as fields, buttons, etc. but NOT on > graphics. > > According to Dictionary borderwWdth and lineSize are synonyms and even > an > example is given which does not work. Well, this is a little tricky. For all non-graphic objects, penWidth, penHeight, lineSize and borderWidth are all synonyms. For graphic objects, penWidth, penHeight and lineSize are synonyms, borderWidth is the same as borderWidth on non-graphic objects. (Basically the graphic object 'overrides' the lineSize, penWidth and penHeight properties mapping them all to the strokeWidth). I'm not entirely sure the best way to document this relationship as these keywords aren't exactly synonyms, as what they are synonymous with depends on the object type! BorderWidth works fine on graphics here - you set the showBorder to true, and set the borderWidth. You'll get the original shape inset by the borderWidth with the border drawn around it. Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From richmondmathewson at gmail.com Fri Jan 29 13:25:28 2016 From: richmondmathewson at gmail.com (Richmond) Date: Fri, 29 Jan 2016 20:25:28 +0200 Subject: snapshot and animation capture In-Reply-To: <56A9FA0B.1030600@gmail.com> References: <56A9FA0B.1030600@gmail.com> Message-ID: <56ABAE98.401@gmail.com> At the risk of throwing a spanner in the works I want to refer you to this: http://lists.runrev.com/pipermail/use-livecode/2014-January/196782.html "Hi all, Some weeks ago, I reported that windowShape was not working in my Lubuntu Linux setup. After looking around and testing many recipes, finally I found the program that works in my setup. The windowshape property was not working in Lubuntu Linux because it does not include, by default a composite manager." posted by someone wiser than me. Richmond. From ambassador at fourthworld.com Fri Jan 29 13:34:14 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 29 Jan 2016 10:34:14 -0800 Subject: Explicit Variables In-Reply-To: <54E2BDAF-D52C-4DF3-B011-1637ADEF536B@livecode.com> References: <54E2BDAF-D52C-4DF3-B011-1637ADEF536B@livecode.com> Message-ID: <56ABB0A6.40801@fourthworld.com> Mark Waddingham wrote: > That should work fine. The explicitVars property is only set in > the IDE around code which compiles / sets object scripts (i.e. > In the script editor). It is false the rest of the time. Is Kay using explicitVars or the IDE's "Strict Compilation Mode"? My understanding is that the engine's explicitVars property works as it does in SuperCard where it came from, that it's persistent throughout the session. In contrast, Strict Compilation Mode only applies explicitVars momentarily for compilation to catch the sorts of things it's good for, then turning it off again so it doesn't conflict with any other scripts that may be running that don't conform to explicitVars' requirements. Is my understanding correct, or has the engine implementation of explicitVars changed? >> On 29 Jan 2016, at 02:45, Kay C Lan wrote: >> >> Not a discussion about the pros and cons, or a discussion on arrays, >> I just need a simple answer. >> >> put "apple,orange,banana" into tFruit >> repeat with x = 1 to the number of items in tFruit >> do "put item x of tFruit into tVar" & x --create a dynamic variable name >> end repeat >> put tVar2 >> >> I assume creating dynamic variable names will not work with >> explicitVariables set in the IDE but it will actually work in a >> standalone. As noted above, AFAIK the IDE currently has no means of setting the explicitVars global property, at least not in any way that can affect things beyond the moment of compilation. So unless you're turning on explicitVars in one of your scripts you should be fine. Too bad arrays are excluded from this discussion, as they're the perfect fit for cases like this where the number or names of variables can't be known in advance - simpler to write, faster to run. -- 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 mark at livecode.com Fri Jan 29 13:52:16 2016 From: mark at livecode.com (Mark Waddingham) Date: Fri, 29 Jan 2016 19:52:16 +0100 Subject: Explicit Variables In-Reply-To: <56ABB0A6.40801@fourthworld.com> References: <54E2BDAF-D52C-4DF3-B011-1637ADEF536B@livecode.com> <56ABB0A6.40801@fourthworld.com> Message-ID: <6fe08f930901b1117705bcc6c4af9c24@livecode.com> On 2016-01-29 19:34, Richard Gaskin wrote: > Mark Waddingham wrote: > Is my understanding correct, or has the engine implementation of > explicitVars changed? Heh - no - I misread Kay's post... Whenever I see 'explicitVariables' mentioned I tend to think of 'Strict Compilation Mode'. As you point out, turning on explicitVars for an entire session is never a good idea unless you control every single line of code in your project since you don't know whether code written by someone else is 'explicitVar' safe or not. Since explicitVars *only* affects 'do', 'value', 'set the script of' and the compilation of scripts the first time they are used there really isn't ever a need to set the property anything other than locally to where you are doing that kind of thing. (It is also only really worthwhile for the 'set the script of' uses). Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From ambassador at fourthworld.com Fri Jan 29 13:53:47 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 29 Jan 2016 10:53:47 -0800 Subject: snapshot and animation capture In-Reply-To: <56ABAE98.401@gmail.com> References: <56ABAE98.401@gmail.com> Message-ID: <56ABB53B.5060400@fourthworld.com> Richmond wrote: > At the risk of throwing a spanner in the works I want to refer you > to this: > > http://lists.runrev.com/pipermail/use-livecode/2014-January/196782.html > > "Hi all, Some weeks ago, > I reported that windowShape was not working in my Lubuntu Linux setup. > After looking around and testing many recipes, > finally I found the program that works in my setup. > The windowshape property was not working in Lubuntu Linux because it > does not include, > by default a composite manager." > > posted by someone wiser than me. That was Alejandro, and AFAIK he and I are among the very few people in the LC community using Lubuntu specifically (and in all fairness I only run it on my oldest computer; everything else runs Ubuntu which includes the Compiz compositor). If the chart showing number of users running different Linux distros in the middle of this page is any guide, not much of an issue: Of the ones shown there, AFAIK only Xubuntu lacks a compositor; Lubuntu isn't even on the list. Like Puppy Linux and other slim distros, both Xubuntu and Lubuntu are designed to run on older machines or in configurations that don't meet the minimum requirements for more fully-features distros like Fedora, Ubuntu, or Mint. Of the two Lubuntu is slightly leaner in its disk and RAM requirements, so I'm not sure why Xubuntu is more popular, but regardless consider them both in the bigger picture: Windows: ~85% Mac: ~10% Linux: ~5% With Xubuntu at probably less than 5% of Linux' 5% of desktop computers, the number of affected users among the total addressable market is very, very small. If we were to look at Xubuntu, Lubuntu, Puppy Linux, and other such distros combined, I'd be surprised if the lot of them totaled more than 0.01% of desktops in use. And even then, not much to worry about since we choose these lightweight distros for specific reasons, and we know what we're in for. Software that requires compositing generally only runs on beefier hardware, so when we choose a lightweight distro we understand we're not going to have as many apps available to us, and that's generally okay for the cases where we want a light OS. When we need a compositor we know where to get it - after all, how else could we run the cube? :) -- 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 Fri Jan 29 14:05:10 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 29 Jan 2016 11:05:10 -0800 Subject: Something's up in Github... Message-ID: <56ABB7E6.9060906@fourthworld.com> Check out the recent pull requests for LC: https://github.com/livecode/livecode/pulse Lots of appearance-related stuff -- yoohoo! Very nice to see those addressed, and so many of them! Great work, team! -- 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 paul at livecode.org Fri Jan 29 14:32:45 2016 From: paul at livecode.org (Paul Hibbert) Date: Fri, 29 Jan 2016 11:32:45 -0800 Subject: Selecting text in single-line entry fields - small UI issue In-Reply-To: References: <6D1322A9-1DDD-4B8E-A621-BE75A60493D3@livecode.org> <644E1B8D-274D-4B5D-8AF7-6867B1BCEF92@hyperactivesw.com> Message-ID: Roland, The best I can come up with is using the openField and closeField messages to set the colour of the line within the field, instead of setting the background colour of the field, this gives you a little more control over the position of the ?highlighted' area. Something like this in a behaviour button then applied to the required fields: on openField set the hilitecolor of me to Blue set the backgroundcolor of line 1 of me to the hilitecolor of me set the padding of line 1 of me to 4 set the textColor of me to "255,255,255" select the text of me end openField on exitField set the backgroundcolor of line 1 of me to "255,255,255" set the textColor of me to "0,0,0" end exitField Sorry I can?t test for the disappearing text because I?m on Mac. As Jacque suggested, I also expected the focusIn and focusOut messages would be helpful, but it seems they are not triggered buy opening or closing an unlocked field (see comment in the dictionary). This lesson explains a little more so maybe helpful: http://lessons.livecode.com/m/4071/l/58674-how-do-i-style-paragraphs-in-a-field-in-livecode-5-5 Paul From richmondmathewson at gmail.com Fri Jan 29 14:35:31 2016 From: richmondmathewson at gmail.com (Richmond) Date: Fri, 29 Jan 2016 21:35:31 +0200 Subject: snapshot and animation capture In-Reply-To: <56ABAE98.401@gmail.com> References: <56A9FA0B.1030600@gmail.com> <56ABAE98.401@gmail.com> Message-ID: <56ABBF03.4080604@gmail.com> So, I thought I'd have a bash at rolling my own, but got stuck: on mouseUp put topleft of img "border.png" & "," & the bottomright of img "border.png" into ZZZZ put quote & ZZZZ & quote into fld "guff" put fld "guff" into QQQQ export snapshot from rect QQQQ of stack "Super Snap" to file "QQQQ.png" as PNG end mouseUp the thing gets stuck on the "export snapshot" line . . . cannot think why . . . image "snapBTN.png": execution error at line 5 (import: error in expression), char 1 that stuff about "char 1" makes NO sense at all. Richmond. From hh at livecode.org Fri Jan 29 14:53:45 2016 From: hh at livecode.org (-hh) Date: Fri, 29 Jan 2016 20:53:45 +0100 Subject: snapshot and animation capture Message-ID: Richmond wrote: > At the risk of throwing a spanner in the works I want to refer you to this: > http://lists.runrev.com/pipermail/use-livecode/2014-January/196782.html > "Hi all, Some weeks ago, > I reported that windowShape was not working in my Lubuntu Linux setup. > After looking around and testing many recipes, > finally I found the program that works in my setup. > The windowshape property was not working in Lubuntu Linux because it > does not include, by default a composite manager." > posted by someone wiser than me. > Richmond. What a valuable hint from Alejandro! And what a valuable hint to that hint. May nearly all your sins be forgiven for that, Richmond: Based on that I found the way of how to have windowshape on RaspberryPi, running Raspbian. See here my first screenshot of a LC "frame"-stack (the skyBlue line is the stack) that makes screenshots. http://forums.livecode.com/viewtopic.php?f=76&t=26397 Thank you both very much for that. Hermann From brahma at hindu.org Fri Jan 29 16:16:42 2016 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Fri, 29 Jan 2016 21:16:42 +0000 Subject: Questions: Setting the borderWidth (lineSize) of a graphic through script In-Reply-To: <213862278be247eff04f0b5f48f65d32@livecode.com> References: <1454079921481-4700538.post@n4.nabble.com> <73c77247fc7800decf3d8cb8fd5c03bd@livecode.com> <213862278be247eff04f0b5f48f65d32@livecode.com> Message-ID: On January 29, 2016 at 8:21:41 AM, Mark Waddingham (mark at livecode.com) wrote: BorderWidth works fine on graphics here - you set the showBorder to true, and set the borderWidth. You'll get the original shape inset by the borderWidth with the border drawn around it. An interesting caveat here is that is possibly a bug that I should report LC 7.1.1 recently I created a grp for a nav bar to run at the bottom of the app. I would set the bottom of the group to the height of the stack and there was this transparent 2 pixel space underneath the group with the background. Later I discovered that the the border width was defaulting to 2. I had to manually set it to 0 and make sure that show border and 3D were off. There are other subtle issues I tried to replicate this today? make new stack default height 400 ; 2 radio buttons group, set bottom to 400. So far so good? I don?t see any space underneath. set background color of group to yellow, background of stack to red, border color of group to black. ?? border does not appear?huh? Oh.. yeah.. check ?showBorder? Border still does not appear? (blink)? turn off 3D and aha! it appears But... Hmm interesting, with no intervention on my part, the group bottom is now 402 I can?t see the bottom border. I go back to colors, clear the border in the inspector? what? the black border is still showing even though I cleared it. I have to actually set the border width to 0? OK *now* the border goes away.. and if I set it to 2 again, the black is now gone? so it seems that the properties of the group may not always respond to a change in the property inspector until you take ?some other? action. I suspect this is why I had a border that was transparent and made it look as if the group was floating 2 pixels up from the bottom even though I had cleared the border color and unchecked ?showBorder? ? I had to uncheck 3D and *then* the transparent area went away This probably needs fixing, but the issues are so subtle as to make it even hard to define a report. From jacque at hyperactivesw.com Fri Jan 29 16:30:52 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 29 Jan 2016 15:30:52 -0600 Subject: snapshot and animation capture In-Reply-To: <56ABBF03.4080604@gmail.com> References: <56A9FA0B.1030600@gmail.com> <56ABAE98.401@gmail.com> <56ABBF03.4080604@gmail.com> Message-ID: <56ABDA0C.6010403@hyperactivesw.com> On 1/29/2016 1:35 PM, Richmond wrote: > So, I thought I'd have a bash at rolling my own, but got stuck: > > on mouseUp > put topleft of img "border.png" & "," & the bottomright of img > "border.png" into ZZZZ > put quote & ZZZZ & quote into fld "guff" > put fld "guff" into QQQQ > export snapshot from rect QQQQ of stack "Super Snap" to file > "QQQQ.png" as PNG > end mouseUp > > the thing gets stuck on the "export snapshot" line . . . cannot think > why . . . > > image "snapBTN.png": execution error at line 5 (import: error in > expression), char 1 > > that stuff about "char 1" makes NO sense at all. I think in general it means the line won't compile at all, there's no specific place it errors. By adding quotes to the variable, you are specifying a string rather than a rect. Omit the quotes from the field. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From littlejamesw at mac.com Fri Jan 29 16:52:56 2016 From: littlejamesw at mac.com (James Little) Date: Fri, 29 Jan 2016 13:52:56 -0800 Subject: Global Warming Reader App, Recruiting Collaborators Message-ID: <1EBB5981-27C1-4C58-AE38-D78BB6465C63@mac.com> Hi Livecoders, The U.N. COP21 Conference in Paris this past December secured a remarkable international agreement of over 190 nations to cut carbon emissions and to limit global warming to less than 2 deg C. But now the hard part begins, to ensure that individuals, corporations and nations limit carbon emissions and transition to clean energy. This requires mass education, dialogue and political action. It requires correcting misinformation. My hope is that Livecode programmers can play a role is assisting with this challenging global transition. I?ve posted a project on MIT Climate CoLab to develop a Global Warming Reader App using Livecode. I invite all to register and add comments. We have 30 days to finalize this project. http://climatecolab.org/web/guest/plans/-/plans/contestId/1303501/phaseId/1313706/planId/1327125 I?ve posted a beta Global Warming Reader App at GlobalWarmingApps.org/downloads.html with downloads for Mac & Windows desktop. The Mac download mostly works by my testing, though there are still some bugs. I?ve not been able to test the Windows version, as yet. Please let me know of any bugs you find. My son Todd says the user interface is old school. I?m beginning to use the push button and tree view widgets to try to modernize the UI. If you would like to improve on this app, please email me (JWL at GlobalWarmingApps.org) and I will send you a link to download the livecode file. It is being developed using 8.0 DP12. The basic idea of the MIT Climate CoLab project is to develop the best possible Global Warming Reader App over the next 6 months. Please consider improving on the app that I?ve started or starting anew and developing an app from scratch. Regards, Jim L From brahma at hindu.org Fri Jan 29 17:10:55 2016 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Fri, 29 Jan 2016 22:10:55 +0000 Subject: Import Vector to Graphic object Message-ID: if we want to use Animation Engine?s Morph or morphGradient, we have to target a grc object. I presume because AE can extract points from a graphic object. But if we want to use this on a PNG? it?s obviously won?t work. What image format can we use that, upon import, becomes a native LC graphic? The import options in the dictionary include gif jpg png amp pwd rpm ppm ppm and eps I am unable to import my eps logos. the files I have are reporting anderror on import BR From brahma at hindu.org Fri Jan 29 17:25:33 2016 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Fri, 29 Jan 2016 22:25:33 +0000 Subject: Ken Burn's Effect Library for Livecode Message-ID: Before I launch into this from ground zero.. has anyone developed a library for Ken Burns effects for still imagery in LiveCode? Scott sent me a cool thing for zooming in and out? so then we just need to move the image along a path at the same time. typical use case is the subtle and slow easing in of a photo or image as it enlarges or shrinks, normally this is done slowly enough so as not to be too jarring, with some narration. Entire feature length documentaries have been done with just moving stills and voice over. I want to develop a set of generic tools and plan to use AnimationEngine to help? but if there anyone has this already built, can you share? e.g. Photograph fills the card window.. then slowly moves down to the left as we zoom in on some element in the upper right area of the photo. Simple enough. The toolbox would ?log? a few actions just like you do in most video editors? something like 1) snap current loc of image (store value) 2) Adjust photo to new zoom level an location 3) snap final location (store value) 4) prompt for time to move Save as an array with something like tween-image_temple-under-tree[?start?] tween-image_temple-under-tree[?end?] tween-image_temple-under-tree[?time?] then you have a generic function on runKenBurns tween-image_temple-under-tree # run code here - that?s the art I?m going to build in the next day or so? unless someone has it already written end runKenBurns BR From jacque at hyperactivesw.com Fri Jan 29 18:19:51 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 29 Jan 2016 17:19:51 -0600 Subject: Import Vector to Graphic object In-Reply-To: References: Message-ID: <56ABF397.8030908@hyperactivesw.com> On 1/29/2016 4:10 PM, Sannyasin Brahmanathaswami wrote: > if we want to use Animation Engine?s Morph or morphGradient, we have > to target a grc object. I presume because AE can extract points from > a graphic object. But if we want to use this on a PNG? it?s obviously > won?t work. > > What image format can we use that, upon import, becomes a native LC > graphic? Can you use an opaque graphic and set its backgroundPattern to the image ID? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From hello at simonsmith.co Fri Jan 29 18:06:42 2016 From: hello at simonsmith.co (Simon Smith) Date: Sat, 30 Jan 2016 01:06:42 +0200 Subject: Free Let's Encrypt SSL Certificates for On-Rev? In-Reply-To: <56A9A166.6060507@harryscollar.com> References: <56A93418.30106@ahsoftware.net> <56A95C5A.1080401@harryscollar.com> <56A97E1D.30709@ahsoftware.net> <56A989B8.3070606@harryscollar.com> <56A99A41.7050407@ahsoftware.net> <56A99FFD.4020004@harryscollar.com> <56A9A166.6060507@harryscollar.com> Message-ID: You can also look at using cloudflare.com for adding https - no need to buy a security certficate. On Thu, Jan 28, 2016 at 7:04 AM, Alex Shaw wrote: > Opps, my bad. > > That requires ssh access too. > > regards > alex > > > On 28/01/2016 2:58 PM, Alex Shaw wrote: > >> Yes, the official LE client requires shell access plus a range of python >> dependences. >> >> Also, if the SSL/TLS Manager module was accessible from on-rev cpanel you >> could try.. >> >> https://github.com/diafygi/gethttpsforfree >> >> regards >> alex >> >> On 28/01/2016 2:34 PM, Mark Wieder wrote: >> >>> On 01/27/2016 07:23 PM, Alex Shaw wrote: >>> >>>> As far as I can tell Let's Encrypt issues certificates for domain names. >>>> >>>> The LE install client script asks for domain name/s and I found a >>>> mention here regarding that.. >>>> >>>> https://community.letsencrypt.org/t/certificate-for-static-ip/84 >>>> >>> >>> That's true, but when I tried it for my on-rev domain I got rejected >>> because I don't have privileges for the on-rev server. Or that's how I >>> interpreted the error message, at any rate. I'd be happy to be wrong. >>> >>> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 > -- Carpe diem *Simon Smith* m. +27 83 306 7862 From hh at livecode.org Fri Jan 29 18:50:43 2016 From: hh at livecode.org (-hh) Date: Sat, 30 Jan 2016 00:50:43 +0100 Subject: snapshot and animation capture Message-ID: <8698F4C8-673E-4D56-B13C-8596163CC99D@livecode.org> Richmond, "import" of the error message relates to the rect (see the wording in the dictionary), so char 1 means the superfluous quote (as Dame jacque says). Whatever you test here, you could use 'from rect ZZZZ of this card' or 'from rect of img "border.png"' if you wish to have a local coords shot of 'border.png', else you'll get a *global* coords shot (from the tools window or whatever). Thanks again for your "throwing a spanner in the works" (I like your unusual phrasing and wording), indeed you did exactly the opposite. hh From prothero at earthednet.org Fri Jan 29 19:47:44 2016 From: prothero at earthednet.org (William Prothero) Date: Fri, 29 Jan 2016 16:47:44 -0800 Subject: Global Warming Reader App, Recruiting Collaborators In-Reply-To: <1EBB5981-27C1-4C58-AE38-D78BB6465C63@mac.com> References: <1EBB5981-27C1-4C58-AE38-D78BB6465C63@mac.com> Message-ID: Jim: A pertinent topic. I?m a bit unsure of what the goal of the app is, though. It seems to be an index of web sites related to global warming. I could see a use for something that organizes and educates. Would this be like an expanded version of RealClimate.com? So, I?m wondering what the goal of the app is and how it might educate folks more than the available info already available on the web? Best, Bill William Prothero, Ph.D. University of California, Santa Barbara, Emeritus prothero at earthednet.org > On Jan 29, 2016, at 1:52 PM, James Little wrote: > > > Hi Livecoders, > > The U.N. COP21 Conference in Paris this past December secured a remarkable international agreement of over 190 nations to cut carbon emissions and to limit global warming to less than 2 deg C. But now the hard part begins, to ensure that individuals, corporations and nations limit carbon emissions and transition to clean energy. This requires mass education, dialogue and political action. It requires correcting misinformation. My hope is that Livecode programmers can play a role is assisting with this challenging global transition. > I?ve posted a project on MIT Climate CoLab to develop a Global Warming Reader App using Livecode. I invite all to register and add comments. We have 30 days to finalize this project. > > http://climatecolab.org/web/guest/plans/-/plans/contestId/1303501/phaseId/1313706/planId/1327125 > > I?ve posted a beta Global Warming Reader App at GlobalWarmingApps.org/downloads.html with downloads for Mac & Windows desktop. The Mac download mostly works by my testing, though there are still some bugs. I?ve not been able to test the Windows version, as yet. Please let me know of any bugs you find. > > My son Todd says the user interface is old school. I?m beginning to use the push button and tree view widgets to try to modernize the UI. > > If you would like to improve on this app, please email me (JWL at GlobalWarmingApps.org) and I will send you a link to download the livecode file. It is being developed using 8.0 DP12. > > The basic idea of the MIT Climate CoLab project is to develop the best possible Global Warming Reader App over the next 6 months. Please consider improving on the app that I?ve started or starting anew and developing an app from scratch. > > Regards, > > Jim L > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Fri Jan 29 21:12:30 2016 From: irog at mac.com (Roger Guay) Date: Fri, 29 Jan 2016 19:12:30 -0700 Subject: ANN: FlockOBoids Message-ID: <9944E4DA-FE76-4320-B864-6D2CCA24BB02@mac.com> Building on Scott Rossi?s Swarm stack, I?ve managed to build my version of swarming Boids. In my FlockOBoids stack, boids are given a diverse set of initial velocity vectors, and then they are subject to 3 simple rules: First they all try to fly to the center of the flock. Second, they try to buddyup if they get close enough to each other, and third, they avoid colliding with other boids. You can see and play with this here: https://www.dropbox.com/s/c93ocic5mwaafuy/FlockOBoids.livecode?dl=0 Thanks for the idea, Scott. Cheers, Roger From littlejamesw at mac.com Fri Jan 29 21:28:31 2016 From: littlejamesw at mac.com (James Little) Date: Fri, 29 Jan 2016 18:28:31 -0800 Subject: Global Warming Reader App, Recruiting Collaborators In-Reply-To: References: <1EBB5981-27C1-4C58-AE38-D78BB6465C63@mac.com> Message-ID: <0950955D-F75F-44F5-A240-DCC363CCFE82@mac.com> Hi Bill, Thanks for your input. The current Global Warming Reader App consists of 2 lists of websites, organized by category (Activism, Communication, Denial, Economics, Global, Individual, National, News, Oceans, Solutions, Science, ?). One list includes ?All" the sites that I?ve found that I thought were useful. The second list is a selected list of what I thought were the ?Best? sites. They can be launched in the user?s browser or in a widget browser within the app. The other component is a list of notes, organized by topic (Advocacy, BlogComments, Communication, Economics, Justice, Politics, Science, Solutions ? ). The user can add or delete from either list of websites and can add or delete notes. Thus, they can customize the app to their locale and their particular interests. The website lists and notes are stored as arrays in custom properties of card 1 of the substack. I find this reader particularly useful for keeping up on news about global warming and for taking personal notes. I find it useful for writing comments about an on-line article and writing letters to editors. I try to look at the website under the category ?News? of the ?Best? list everyday and take notes from anything that looks particularly worthy. Once per week I try to look at all the websites in the ?Best? list. Below are the websites under ?News? in the ?Best? list that I check daily: CascadiaClimatection.org ? a calendar of climate change activism in the Seattle area CommonDreams.org/climate/ ? a news site with commentary by many well-known activists DailyClimate.org ? a fairly complete news site, including editorials and op-eds from major newspapers Sightline.org/news/ ? a news site for climate activism in the Pacific NW SkepticalScience.com ? a more technical climate science focused news site TheGuardian.com/environment/ ? environmental news with a UK focus So, this is a news reader app to keep up with the latest on global warming. Perhaps it?s a useful initial tool to develop in Livecode. It needs improvement. It still has bugs. The user interface can be improved. Perhaps there should be a way to share urls or notes between users via a server. Perhaps there are other features that we can consider. Perhaps others would like to start anew to develop a global warming new reader. I would like to support these efforts in whatever way I can, either by taking the lead or by assisting. I want to support any and all tools that we can develop in Livecode to address the challenges of climate change. Is it useful to list it as a project on the MIT Climate CoLab site under the Public Attitudes and Behaviors Workspace? My hope is that this will make it more publicly known and perhaps draw in some outsiders to Livecode. The more up votes that we get on the MIT Climate CoLab site, the more attention we will receive. I believe folks need to register and sign in to vote. Regards, Jim On Jan 29, 2016, at 4:47 PM, William Prothero wrote: > Jim: > A pertinent topic. I?m a bit unsure of what the goal of the app is, though. It seems to be an index of web sites related to global warming. I could see a use for something that organizes and educates. Would this be like an expanded version of RealClimate.com? So, I?m wondering what the goal of the app is and how it might educate folks more than the available info already available on the web? > > Best, > Bill > > William Prothero, Ph.D. > University of California, Santa Barbara, Emeritus > prothero at earthednet.org > > > >> On Jan 29, 2016, at 1:52 PM, James Little wrote: >> >> >> Hi Livecoders, >> >> The U.N. COP21 Conference in Paris this past December secured a remarkable international agreement of over 190 nations to cut carbon emissions and to limit global warming to less than 2 deg C. But now the hard part begins, to ensure that individuals, corporations and nations limit carbon emissions and transition to clean energy. This requires mass education, dialogue and political action. It requires correcting misinformation. My hope is that Livecode programmers can play a role is assisting with this challenging global transition. >> I?ve posted a project on MIT Climate CoLab to develop a Global Warming Reader App using Livecode. I invite all to register and add comments. We have 30 days to finalize this project. >> >> http://climatecolab.org/web/guest/plans/-/plans/contestId/1303501/phaseId/1313706/planId/1327125 >> >> I?ve posted a beta Global Warming Reader App at GlobalWarmingApps.org/downloads.html with downloads for Mac & Windows desktop. The Mac download mostly works by my testing, though there are still some bugs. I?ve not been able to test the Windows version, as yet. Please let me know of any bugs you find. >> >> My son Todd says the user interface is old school. I?m beginning to use the push button and tree view widgets to try to modernize the UI. >> >> If you would like to improve on this app, please email me (JWL at GlobalWarmingApps.org) and I will send you a link to download the livecode file. It is being developed using 8.0 DP12. >> >> The basic idea of the MIT Climate CoLab project is to develop the best possible Global Warming Reader App over the next 6 months. Please consider improving on the app that I?ve started or starting anew and developing an app from scratch. >> >> Regards, >> >> Jim L >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 Fri Jan 29 22:13:37 2016 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Sat, 30 Jan 2016 11:13:37 +0800 Subject: Explicit Variables In-Reply-To: <6fe08f930901b1117705bcc6c4af9c24@livecode.com> References: <54E2BDAF-D52C-4DF3-B011-1637ADEF536B@livecode.com> <56ABB0A6.40801@fourthworld.com> <6fe08f930901b1117705bcc6c4af9c24@livecode.com> Message-ID: On Sat, Jan 30, 2016 at 2:52 AM, Mark Waddingham wrote: > >> Heh - no - I misread Kay's post... Whenever I see 'explicitVariables' > mentioned I tend to think of 'Strict Compilation Mode'. > But you read my mind. I also see one and think the other. Thanks all for responses, they're perfect for the intended purpose. From brahma at hindu.org Sat Jan 30 00:01:14 2016 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sat, 30 Jan 2016 05:01:14 +0000 Subject: inserting Data into CustomProp array Message-ID: What is the best practice for progressively adding data to a customProperty that you want to be an array? both inserting new keys into that property as well as changing values in the existing keys. In this case i want an image(s) in a stack to have a custom property containing the necessary info for Animation Engine to do some effects. This seems like a good way to store this vs saving it anywhere else. 1) create image 2) add new custom property ?uMyEffects? on a button I have this: on mouseUp put the rect of the last image into tRect set the uMyEffects["startsize"] of the last image to tRect CheckEffects end mouseUp command CheckEffects put the uMyEffects of the last image into tEffects put the keys of tEffects end CheckEffects result is nothing?I?m expecting to see the key startsize so I?m not doing the right thing to insert a new key + data into the customProperty? Note that I would also want to later poke another value into the some custom property like uMyEffects[?finalLoc?] BR From brahma at hindu.org Sat Jan 30 00:15:07 2016 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sat, 30 Jan 2016 05:15:07 +0000 Subject: inserting Data into CustomProp array In-Reply-To: References: Message-ID: Hhmm serendipity happens I was reading through all the dict entries on customproperties and custom property sets? a bit esoteric at first. There was no explicity guide ?how to create a custompropertyset? But when I went back to my image and check? apparently this: on mouseUp put the rect of the last image into tRect set the uMyEffects["startsize"] of the last image to tRect CheckEffects end mouseUp created a custompropertyset and this extracts it command CheckEffects put the customProperties["uMyEffects"] of the last image into tEffects put the keys of tEffects end CheckEffects OK? I?m good to good, but any advice in this area is appreciated. http://www.himalayanacademy.com/apps/gurudeva On January 29, 2016 at 7:01:14 PM, Sannyasin Brahmanathaswami (brahma at hindu.org) wrote: What is the best practice for progressively adding data to a customProperty that you want to be an array? both inserting new keys into that property as well as changing values in the existing keys. In this case i want an image(s) in a stack to have a custom property containing the necessary info for Animation Engine to do some effects. This seems like a good way to store this vs saving it anywhere else. From mwieder at ahsoftware.net Sat Jan 30 00:43:25 2016 From: mwieder at ahsoftware.net (Mark Wieder) Date: Fri, 29 Jan 2016 21:43:25 -0800 Subject: inserting Data into CustomProp array In-Reply-To: References: Message-ID: <56AC4D7D.6000002@ahsoftware.net> On 01/29/2016 09:15 PM, Sannyasin Brahmanathaswami wrote: > OK? I?m good to good, but any advice in this area is appreciated. That will do the trick. An alternate way of retrieving the data is set the custompropertyset of image to "uMyEffects" put the startsize of image set the custompropertyset of image to empty ...and of course the same could be done for setting the custom property array. -- Mark Wieder ahsoftware at gmail.com From jacque at hyperactivesw.com Sat Jan 30 02:17:08 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 30 Jan 2016 01:17:08 -0600 Subject: inserting Data into CustomProp array In-Reply-To: References: Message-ID: <56AC6374.8020308@hyperactivesw.com> On 1/29/2016 11:15 PM, Sannyasin Brahmanathaswami wrote: > apparently this: > > > on mouseUp > > put the rect of the last image into tRect > > set the uMyEffects["startsize"] of the last image to tRect > > CheckEffects > > end mouseUp > > > created a custompropertyset If you want the array in a single custom property rather than in its own property set, first create the array and then store it: put the rect of the last image into tArray["startsize"] set the uEffects of the last image to tArray To get things back out: put the uEffects of this cd into tArray put tArray["startsize"] Property sets work too, so it's mostly a matter of personal preference. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From brahma at hindu.org Sat Jan 30 09:13:05 2016 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sat, 30 Jan 2016 14:13:05 +0000 Subject: inserting Data into CustomProp array In-Reply-To: <56AC6374.8020308@hyperactivesw.com> References: <56AC6374.8020308@hyperactivesw.com> Message-ID: Property sets appear easer to get and set across ?sessions? (different times during dev) than putting an array into a property. I don?t see you could set just one element of tArray if it was contained in a property without taking it out and putting it back in. Am I wrong? On January 29, 2016 at 9:17:26 PM, J. Landman Gay (jacque at hyperactivesw.com) wrote: If you want the array in a single custom property rather than in its own property set, first create the array and then store it: put the rect of the last image into tArray["startsize"] set the uEffects of the last image to tArray To get things back out: put the uEffects of this cd into tArray put tArray["startsize"] Property sets work too, so it's mostly a matter of personal preference. From mwieder at ahsoftware.net Sat Jan 30 12:05:32 2016 From: mwieder at ahsoftware.net (Mark Wieder) Date: Sat, 30 Jan 2016 09:05:32 -0800 Subject: inserting Data into CustomProp array In-Reply-To: References: <56AC6374.8020308@hyperactivesw.com> Message-ID: <56ACED5C.9060800@ahsoftware.net> On 01/30/2016 06:13 AM, Sannyasin Brahmanathaswami wrote: > Property sets appear easer to get and set across ?sessions? (different times during dev) than putting an array into a property. I don?t see you could set just one element of tArray if it was contained in a property without taking it out and putting it back in. > > Am I wrong? I forget what the original problem was/is, but... if you just want to store an array as a custom property of an object and set and retrieve the elements, then the array itself becomes a custompropertyset: put the rect of the last image into tRect set the uEffects["startsize"] of the last image to tRect set the uEffects["name"] of the last image to "ganesha" You now have a custompropertyset named "uEffects", and you can treat it as a serialized array property of the image, or you can retrieve it as an array and use it that way. -- use individual elements put the uEffects["startsize"] of image 1 into tNewRect set the uEffects["towel"] of the last image to 42 -- get the entire array at once put the uEffects of image 1 into tArray -- Mark Wieder ahsoftware at gmail.com From m.schonewille at economy-x-talk.com Sat Jan 30 12:49:33 2016 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sat, 30 Jan 2016 18:49:33 +0100 Subject: snapshot and animation capture In-Reply-To: References: <56A95EF2.5060901@economy-x-talk.com> Message-ID: <56ACF7AD.5080106@economy-x-talk.com> I posted this link in my follow-up: http://snapper.economy-x-talk.com/ Kind regards, Mark Schonewille http://economy-x-talk.com https://www.facebook.com/marksch Buy the most extensive book on the LiveCode language: http://livecodebeginner.economy-x-talk.com Op 1/28/2016 om 21:12 schreef Matt Maier: > Mark, what does "the app" refer to? > On Jan 27, 2016 16:21, "Mark Schonewille" > wrote: > >> Matt, >> >> Somehow, the website isn't much anymore, but the app can still be >> downloaded. The trial version is almost fully functional. Perhaps this >> approach would be useful for you. >> >> Kind regards, >> >> Mark Schonewille >> http://economy-x-talk.com >> https://www.facebook.com/marksch >> >> Buy the most extensive book on the >> LiveCode language: >> http://livecodebeginner.economy-x-talk.com >> >> Op 1/27/2016 om 20:38 schreef Matt Maier: >> >>> I need to be able to easily capture stuff the user is seeing on their >>> screen so that they can import it into my application without having to >>> navigate the file manager multiple times. There's some good screen capture >>> stuff already in Livecode, but what I'm picturing is an actual window with >>> a hole in it the user can position and leave there so they know what's >>> going to be captured multiple times. Like gifcam >>> http://blog.bahraniapps.com/gifcam/ >>> >>> There doesn't seem to be a way to set the background of a window to >>> transparent. There is a way to mask the window using a transparent .png, >>> but that won't allow the user to resize the window. At the moment the only >>> mechanism I can come up with is to screencap what's behind the window >>> every >>> time the user moves or resizes it and display that in the window so that >>> it >>> looks like it's transparent. Is there a better way? >>> >>> Also, in addition to capturing still images, I'd like the user to be able >>> to capture animated images (as an alternative to video). So, that part >>> would be exactly like gifcam. The only mechanism I've found for that is to >>> export each frame and then use something external like imagemagik to >>> stitch >>> them together into an animation. >>> >>> - Matt >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode 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 paul at researchware.com Sat Jan 30 15:17:48 2016 From: paul at researchware.com (Paul Dupuis) Date: Sat, 30 Jan 2016 15:17:48 -0500 Subject: Regex help needed... Message-ID: <56AD1A6C.5080009@researchware.com> I need some regex help. I have a list that is of the form: i.e. 1 Testing 1,747 1,1,1,747 2 Testing 752,1800 1,752,1,1800 3 Testing 5398,5846 2,320,2,768 4 Testing 3,111.951,683.915,302.268,385.751 3,111.951,683.915,302.268,385.751 can have a list of number in 1 of 2 formats: A comma separated list of 4 integers, i.e. ,,, OR A comma separated list of 1 integer, followed by 4 decimal numbers, i.e. ,,,, I need filter the lines of this list with a REGEX pattern to get lines WHERE a value pPage matches certain places in , specifically: where pPage is equal to either or in the first format(i.e. item 1 or item 3) OR where pPage is equal to in the second format(i.e. item 1) So my code is: put "((.+\t"&pPage&",\d+,\d+,\d+)|(.+\t\d+,\d+,"&pPage&",\d+)|(.+\t"&pPage&",?[0-9]*\.?[0-9]+,?[0-9]*\.?[0-9]+,?[0-9]*\.?[0-9]+,?[0-9]*\.?[0-9]+))" into tMatchPattern filter lines of tList with regex pattern tMatchPattern If pPage is 1 then I should get: 1 Testing 1,747 1,1,1,747 2 Testing 752,1800 1,752,1,1800 and I do. If pPage is 2 then I should get: 3 Testing 5398,5846 2,320,2,768 and I do. If pPage is 3 then I should get: 4 Testing 3,111.951,683.915,302.268,385.751 3,111.951,683.915,302.268,385.751 and I do. if pPage is 4 then I should get and empty list, and I do, but when pPage is 5, I am expecting an empty list and I get 3 Testing 5398,5846 2,320,2,768 So something is wrong with my Regex, but I can not figure out what? It looks like it is matching against in the last case (pPage=5) but it should not since there are only 2 items in the list rather than 4 or 5. I am using LiveCode 6.7.6 From paul at researchware.com Sat Jan 30 16:49:12 2016 From: paul at researchware.com (Paul Dupuis) Date: Sat, 30 Jan 2016 16:49:12 -0500 Subject: AW: Re: Regex help needed... In-Reply-To: <56AD1A6C.5080009@researchware.com> References: <56AD1A6C.5080009@researchware.com> Message-ID: <56AD2FD8.30703@researchware.com> Never mind. Solved it. It was the pattern for the 2nd format. Fixed with "(.+\t"&pPage&",\d+,\d+,\d+)|(.+\t\d+,\d+,"&pPage&",\d+)|(.+\t"&pPage&",\d*\.?\d*,\d*\.?\d*,\d*\.?\d*,\d*\.?\d*)" On 1/30/2016 3:17 PM, Paul Dupuis wrote: > I need some regex help. > > I have a list that is of the form: > > i.e. > 1 Testing 1,747 1,1,1,747 > 2 Testing 752,1800 1,752,1,1800 > 3 Testing 5398,5846 2,320,2,768 > 4 Testing 3,111.951,683.915,302.268,385.751 > 3,111.951,683.915,302.268,385.751 > > can have a list of number in 1 of 2 formats: > A comma separated list of 4 integers, i.e. > ,,, > OR > A comma separated list of 1 integer, followed by 4 decimal numbers, i.e. > ,,,, > > I need filter the lines of this list with a REGEX pattern to get lines > WHERE a value pPage matches certain places in , specifically: > where pPage is equal to either or in the first > format(i.e. item 1 or item 3) > OR > where pPage is equal to in the second format(i.e. item 1) > > So my code is: > put > "((.+\t"&pPage&",\d+,\d+,\d+)|(.+\t\d+,\d+,"&pPage&",\d+)|(.+\t"&pPage&",?[0-9]*\.?[0-9]+,?[0-9]*\.?[0-9]+,?[0-9]*\.?[0-9]+,?[0-9]*\.?[0-9]+))" > into tMatchPattern > filter lines of tList with regex pattern tMatchPattern > > If pPage is 1 then I should get: > 1 Testing 1,747 1,1,1,747 > 2 Testing 752,1800 1,752,1,1800 > and I do. If pPage is 2 then I should get: > 3 Testing 5398,5846 2,320,2,768 > and I do. If pPage is 3 then I should get: > 4 Testing 3,111.951,683.915,302.268,385.751 > 3,111.951,683.915,302.268,385.751 > and I do. if pPage is 4 then I should get and empty list, and I do, but > when pPage is 5, I am expecting an empty list and I get > 3 Testing 5398,5846 2,320,2,768 > > So something is wrong with my Regex, but I can not figure out what? It > looks like it is matching against in the last case > (pPage=5) but it should not since there are only 2 items in the list > rather than 4 or 5. > > I am using LiveCode 6.7.6 > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 30 18:45:53 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 30 Jan 2016 15:45:53 -0800 Subject: AW: Re: Regex help needed... In-Reply-To: <56AD2FD8.30703@researchware.com> References: <56AD2FD8.30703@researchware.com> Message-ID: <56AD4B31.9040807@fourthworld.com> Regex is wonderfully compact to write relative to equivalent routines using chunk expressions, but sometimes paid for in execution time. When I come across a good regex example like the one you provided, if I have a moment I like to test things out to see where regex is faster and where it isn't. It's really great for many things, but carries quite a bit of overhead. Of course for this test to be relevant it assumes that most of the specifiers in the regex expression are merely to identify the elements you're looking for, and that the data is expected to fit the definition you provided. Given that, it's possible to make the regex a bit simpler (see foo2 below), but only with a modest boost to performance. It can probably be simplified more, but the chunk-based alternative performed so well I didn't bother exploring the regex side any further. Writing a lengthier handler that uses chunk expressions seems to yield the same results you reported, running between 12 and 60 times faster (depending on the percentage of lines tested that match the criteria being looked for). For one-offs like validating email addresses regex can be an excellent fit, and even some larger tasks depending on the specifics. But for iterating across lists I've often been delightfully surprised by LiveCode's gracefully efficient chunk handling. Testing your original data replicated to become 250 lines long, and looking for page 1 among them, the script below yields: Regex: 9261 ms RegexLite: 7958 ms Chunks: 197 ms Chunks faster than orig regex by: 47.01 times Chunks faster than lite regex by: 40.4 times Same result? true on mouseUp put fld 1 into tList put 1 into tPage --< change this for different tests put 1000 into n -- -- Test 1: original regex put the millisecs into t repeat n put foo1(tPage, tList) into r1 end repeat put the millisecs - t into t1 -- -- Test 2: lighter regex put the millisecs into t repeat n put foo2(tPage, tList) into r2 end repeat put the millisecs - t into t2 -- -- Test 3: chunks put the millisecs into t repeat n put foo3(tPage, tList) into r3 end repeat put the millisecs - t into t3 -- -- Display results: set the numberformat to "0.##" put "Regex: "&t1 &" ms"&cr \ &"RegexLite: "&t2 &" ms"&cr \ &"Chunks: "& t3 &" ms"&cr \ &"Chunks faster than orig regex by: "&(t1 / t3)&" times" &cr \ &"Chunks faster than lite regex by: "&(t2 / t3)&" times" &cr \ &"Same result? "& (r1=r3) &cr&cr& r1 &cr&cr& r3 end mouseUp function foo1 pPage, tList put "(.+\t"&pPage&",\d+,\d+,\d+)|(.+\t\d+,\d+,"&pPage&",\d+)|(.+\t"&pPage&",\d*\.?\d*,\d*\.?\d*,\d*\.?\d*,\d*\.?\d*)" into tMatchPattern filter lines of tList with regex pattern tMatchPattern return tList end foo1 function foo2 pPage, tList put "(.+\t"&pPage&",*)|(.+\t\d+,\d+,"&pPage&",*)|(.+\t"&pPage&",*)" into tMatchPattern filter lines of tList with regex pattern tMatchPattern return tList end foo2 function foo3 pPage, tList repeat for each line tLine in tList set the itemdel to tab put item 3 of tLine into t1 put pPage &"," into tPageMarker if "." is in t1 then if (t1 begins with tPageMarker) then put tLine &cr after tNuList end if else if ( t1 begins with tPageMarker) OR (item 4 of tLine begins with tPageMarker) then put tLine &cr after tNuList end if end if end repeat delete last char of tNuList return tNuList end foo3 -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com Paul Dupuis wrote: > Never mind. Solved it. > > It was the pattern for the 2nd format. Fixed with > "(.+\t"&pPage&",\d+,\d+,\d+)|(.+\t\d+,\d+,"&pPage&",\d+)|(.+\t"&pPage&",\d*\.?\d*,\d*\.?\d*,\d*\.?\d*,\d*\.?\d*)" > > On 1/30/2016 3:17 PM, Paul Dupuis wrote: >> I need some regex help. >> >> I have a list that is of the form: >> >> i.e. >> 1 Testing 1,747 1,1,1,747 >> 2 Testing 752,1800 1,752,1,1800 >> 3 Testing 5398,5846 2,320,2,768 >> 4 Testing 3,111.951,683.915,302.268,385.751 >> 3,111.951,683.915,302.268,385.751 >> >> can have a list of number in 1 of 2 formats: >> A comma separated list of 4 integers, i.e. >> ,,, >> OR >> A comma separated list of 1 integer, followed by 4 decimal numbers, i.e. >> ,,,, >> >> I need filter the lines of this list with a REGEX pattern to get lines >> WHERE a value pPage matches certain places in , specifically: >> where pPage is equal to either or in the first >> format(i.e. item 1 or item 3) >> OR >> where pPage is equal to in the second format(i.e. item 1) >> >> So my code is: >> put >> "((.+\t"&pPage&",\d+,\d+,\d+)|(.+\t\d+,\d+,"&pPage&",\d+)|(.+\t"&pPage&",?[0-9]*\.?[0-9]+,?[0-9]*\.?[0-9]+,?[0-9]*\.?[0-9]+,?[0-9]*\.?[0-9]+))" >> into tMatchPattern >> filter lines of tList with regex pattern tMatchPattern >> >> If pPage is 1 then I should get: >> 1 Testing 1,747 1,1,1,747 >> 2 Testing 752,1800 1,752,1,1800 >> and I do. If pPage is 2 then I should get: >> 3 Testing 5398,5846 2,320,2,768 >> and I do. If pPage is 3 then I should get: >> 4 Testing 3,111.951,683.915,302.268,385.751 >> 3,111.951,683.915,302.268,385.751 >> and I do. if pPage is 4 then I should get and empty list, and I do, but >> when pPage is 5, I am expecting an empty list and I get >> 3 Testing 5398,5846 2,320,2,768 >> >> So something is wrong with my Regex, but I can not figure out what? It >> looks like it is matching against in the last case >> (pPage=5) but it should not since there are only 2 items in the list >> rather than 4 or 5. >> >> I am using LiveCode 6.7.6 >> From paul at researchware.com Sat Jan 30 19:28:22 2016 From: paul at researchware.com (Paul Dupuis) Date: Sat, 30 Jan 2016 19:28:22 -0500 Subject: AW: Re: Regex help needed... In-Reply-To: <56AD4B31.9040807@fourthworld.com> References: <56AD2FD8.30703@researchware.com> <56AD4B31.9040807@fourthworld.com> Message-ID: <56AD5526.5010502@researchware.com> Wow. I would not have expected such a significant difference. Regex has been around a long time and lots of smart computer science types has spent time coming up with ways to optimize its performance for pattern matching. I assumed (falsely) that regex based filters in LC would be on par or even superior than a custom function using chunks. This leads me to: 1) wondering if LC's hooks to whatever regex tool they are using under the hood is a good as it should be AND 2) planning on rewriting my code to use chunks. Thanks for the post. On 1/30/2016 6:45 PM, Richard Gaskin wrote: > Regex is wonderfully compact to write relative to equivalent routines > using chunk expressions, but sometimes paid for in execution time. > > When I come across a good regex example like the one you provided, if > I have a moment I like to test things out to see where regex is faster > and where it isn't. It's really great for many things, but carries > quite a bit of overhead. > > Of course for this test to be relevant it assumes that most of the > specifiers in the regex expression are merely to identify the elements > you're looking for, and that the data is expected to fit the > definition you provided. > > Given that, it's possible to make the regex a bit simpler (see foo2 > below), but only with a modest boost to performance. It can probably > be simplified more, but the chunk-based alternative performed so well > I didn't bother exploring the regex side any further. > > Writing a lengthier handler that uses chunk expressions seems to yield > the same results you reported, running between 12 and 60 times faster > (depending on the percentage of lines tested that match the criteria > being looked for). > > For one-offs like validating email addresses regex can be an excellent > fit, and even some larger tasks depending on the specifics. > > But for iterating across lists I've often been delightfully surprised > by LiveCode's gracefully efficient chunk handling. > > Testing your original data replicated to become 250 lines long, and > looking for page 1 among them, the script below yields: > > Regex: 9261 ms > RegexLite: 7958 ms > Chunks: 197 ms > Chunks faster than orig regex by: 47.01 times > Chunks faster than lite regex by: 40.4 times > Same result? true > > > on mouseUp > put fld 1 into tList > put 1 into tPage --< change this for different tests > put 1000 into n > -- > -- Test 1: original regex > put the millisecs into t > repeat n > put foo1(tPage, tList) into r1 > end repeat > put the millisecs - t into t1 > -- > -- Test 2: lighter regex > put the millisecs into t > repeat n > put foo2(tPage, tList) into r2 > end repeat > put the millisecs - t into t2 > -- > -- Test 3: chunks > put the millisecs into t > repeat n > put foo3(tPage, tList) into r3 > end repeat > put the millisecs - t into t3 > -- > -- Display results: > set the numberformat to "0.##" > put "Regex: "&t1 &" ms"&cr \ > &"RegexLite: "&t2 &" ms"&cr \ > &"Chunks: "& t3 &" ms"&cr \ > &"Chunks faster than orig regex by: "&(t1 / t3)&" times" &cr \ > &"Chunks faster than lite regex by: "&(t2 / t3)&" times" &cr \ > &"Same result? "& (r1=r3) &cr&cr& r1 &cr&cr& r3 > end mouseUp > > > function foo1 pPage, tList > put > "(.+\t"&pPage&",\d+,\d+,\d+)|(.+\t\d+,\d+,"&pPage&",\d+)|(.+\t"&pPage&",\d*\.?\d*,\d*\.?\d*,\d*\.?\d*,\d*\.?\d*)" > into tMatchPattern > filter lines of tList with regex pattern tMatchPattern > return tList > end foo1 > > > function foo2 pPage, tList > put "(.+\t"&pPage&",*)|(.+\t\d+,\d+,"&pPage&",*)|(.+\t"&pPage&",*)" > into tMatchPattern > filter lines of tList with regex pattern tMatchPattern > return tList > end foo2 > > > > function foo3 pPage, tList > repeat for each line tLine in tList > set the itemdel to tab > put item 3 of tLine into t1 > put pPage &"," into tPageMarker > if "." is in t1 then > if (t1 begins with tPageMarker) then > put tLine &cr after tNuList > end if > else > if ( t1 begins with tPageMarker) OR (item 4 of tLine begins with > tPageMarker) then > put tLine &cr after tNuList > end if > end if > end repeat > delete last char of tNuList > return tNuList > end foo3 > > > > > > > > > > From blueback09 at gmail.com Sat Jan 30 19:28:58 2016 From: blueback09 at gmail.com (Matt Maier) Date: Sat, 30 Jan 2016 16:28:58 -0800 Subject: snapshot and animation capture In-Reply-To: <56ABBF03.4080604@gmail.com> References: <56A9FA0B.1030600@gmail.com> <56ABAE98.401@gmail.com> <56ABBF03.4080604@gmail.com> Message-ID: I got a reasonable facsimile of my original vision by just using an entire substack to define the capture area. on mouseUp set the blendlevel of stack "untitled 3" to 50 set the loc of stack "untitled 3" to the screenloc go stack "untitled 3" end mouseUp Untitled 3 is a stack with button "exit" and button "snap". The first button just closes the stack. The second button executes the following script. on mouseUp set the cCaptureRect of stack "untitled 3" to the rect of stack "untitled 3" set the loc of stack "untitled 3" to -1000,-1000 close stack "untitled 3" -- wait 200 milliseconds put the cCaptureRect of stack "untitled 3" into tBlerg export snapshot from rect tBlerg to image "captureHolder" of stack "untitled 1" end mouseUp Apparently it takes around 200 milliseconds for the stack window to actually close. At least, sometimes it was still in the way, or only partially faded out when the snapshot was captured. Moving it out of the way, however, seems to happen instantly. The snapshot comes from the inside of the stack window, not including the decorations. On Fri, Jan 29, 2016 at 11:35 AM, Richmond wrote: > So, I thought I'd have a bash at rolling my own, but got stuck: > > on mouseUp > put topleft of img "border.png" & "," & the bottomright of img > "border.png" into ZZZZ > put quote & ZZZZ & quote into fld "guff" > put fld "guff" into QQQQ > export snapshot from rect QQQQ of stack "Super Snap" to file "QQQQ.png" > as PNG > end mouseUp > > the thing gets stuck on the "export snapshot" line . . . cannot think why > . . . > > image "snapBTN.png": execution error at line 5 (import: error in > expression), char 1 > > that stuff about "char 1" makes NO sense at all. > > > 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 mwieder at ahsoftware.net Sat Jan 30 19:55:15 2016 From: mwieder at ahsoftware.net (Mark Wieder) Date: Sat, 30 Jan 2016 16:55:15 -0800 Subject: AW: Re: Regex help needed... In-Reply-To: <56AD5526.5010502@researchware.com> References: <56AD2FD8.30703@researchware.com> <56AD4B31.9040807@fourthworld.com> <56AD5526.5010502@researchware.com> Message-ID: <56AD5B73.3000707@ahsoftware.net> On 01/30/2016 04:28 PM, Paul Dupuis wrote: > 1) wondering if LC's hooks to whatever regex tool they are using under > the hood is a good as it should be LC's regex library is the same PCRE library everyone else uses. And it's the latest released version. Regex's power lies in its ability to match complex patterns, which doesn't necessarily translate to speed. > AND > 2) planning on rewriting my code to use chunks. You may find that regex matching works better than LC's chunk matching in some situations. For speed though, it's hard to beat the built=in chunking functions in LC, as they're already pretty well optimized. -- Mark Wieder ahsoftware at gmail.com From brahma at hindu.org Sat Jan 30 20:58:58 2016 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sun, 31 Jan 2016 01:58:58 +0000 Subject: Caveat: Use Any 16x9 Stack That Makes You Happy Message-ID: Maybe not?. @ colin: Hmmm my strategy to work in a 16:9 1200px x 675px tall stack was working great ?.. until using animation engine where all values get translated into rects like aeChangeRect the long ID of img "HALogo", 58,32,259,233,1500, ?overshoot" and these numbers are ?hard wired? into the current stack dimensions So when I tested on my iPhone everything was too big. one *could* I suppose. build in some pixel/ratio converter to translated every single rect into a native iPhone six rect? And to make this even more exciting?. if you do use AE for iPhone 6 Plus and all rects are targeting those fixed dimensions (7363X414) I?m pretty sure the whole thing will break on an iPad.. So I may end up having to do the rect translation to device ratio function anyway?. What fun. BR From ambassador at fourthworld.com Sat Jan 30 21:01:33 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 30 Jan 2016 18:01:33 -0800 Subject: AW: Re: Regex help needed... In-Reply-To: <56AD5526.5010502@researchware.com> References: <56AD5526.5010502@researchware.com> Message-ID: <56AD6AFD.4060606@fourthworld.com> Paul Dupuis wrote: > Wow. I would not have expected such a significant difference. Regex > has been around a long time and lots of smart computer science types > has spent time coming up with ways to optimize its performance for > pattern matching. I assumed (falsely) that regex based filters in LC > would be on par or even superior than a custom function using chunks. > This leads me to: > > 1) wondering if LC's hooks to whatever regex tool they are using under > the hood is a good as it should be > AND > 2) planning on rewriting my code to use chunks. One of the reasons for my seemingly-obsessive benchmarking is to learn about what goes on under the hood, and to try to anticipate it when choosing among different algos. LC does such a good job of shielding us from what goes on under the hood that we often forget that the relationship between the number of lines we write and the number of machine instructions our scripts invoke may differ broadly depending on the statement. My favorite example is: set the scroll of field 1 to 100 -- seems simple enough, but having written scrollbar management routines in C back in the pre-Cocoa days I learned that a *tremendous* number of low-level routines come into play with that one simple line of script. LC makes it easy to take this stuff for granted, since it does all the heavy lifting. Same with regex. The beauty of regex is that it's a very generalized solution. The downside of regex is that it's a very generalized solution. ;) Generalized options can provide convenience, but often at the cost of performance. Purpose-built solutions are usually much faster than generalized ones, and with LC's chunk expressions they're fun to write too. :) There are times when regex will outperform chunk expressions, though, so I would caution against rewriting everything. Benchmarking is the key, and some day I will have done enough to be able to come up with a small set of useful rules as to when to use chunks and when to use regex. But at the moment, it's half hunch and half benchmarking to confirm the hunch. -- 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 brahma at hindu.org Sat Jan 30 21:56:48 2016 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sun, 31 Jan 2016 02:56:48 +0000 Subject: Graphic effects - Feather Edges of Rects Message-ID: Does anyone have any method to ?feather? the edges of a fld, rect or grc? Any inner glow or outer glow leaves a sharp edge on the object no matter what we do. Any options there? BR From terry.judd at unimelb.edu.au Sat Jan 30 23:02:13 2016 From: terry.judd at unimelb.edu.au (Terry Judd) Date: Sun, 31 Jan 2016 04:02:13 +0000 Subject: Graphic effects - Feather Edges of Rects In-Reply-To: References: Message-ID: On 31/01/2016 1:56 pm, "use-livecode on behalf of Sannyasin Brahmanathaswami" wrote: >Does anyone have any method to ?feather? the edges of a fld, rect or grc? > >Any inner glow or outer glow leaves a sharp edge on the object no matter >what we do. > >Any options there? Even if you use both inner and outer glow in combination with no object boder? > From revdev at pdslabs.net Sun Jan 31 01:27:18 2016 From: revdev at pdslabs.net (Phil Davis) Date: Sat, 30 Jan 2016 22:27:18 -0800 Subject: inserting Data into CustomProp array In-Reply-To: <56ACED5C.9060800@ahsoftware.net> References: <56AC6374.8020308@hyperactivesw.com> <56ACED5C.9060800@ahsoftware.net> Message-ID: <56ADA946.50505@pdslabs.net> On 1/30/16 9:05 AM, Mark Wieder wrote: > -- get the entire array at once > put the uEffects of image 1 into tArray And of course what you meant to say was: put the customProperties["uEffects"] of image 1 into tArray :-) -- Phil Davis From phil at liverpool.ac.uk Sun Jan 31 04:29:40 2016 From: phil at liverpool.ac.uk (Phil Jimmieson) Date: Sun, 31 Jan 2016 09:29:40 +0000 Subject: Graphic effects - Feather Edges of Rects In-Reply-To: References: Message-ID: <7C90AD0E-FDCB-42DC-9AF4-FF6B2A65D728@liverpool.ac.uk> I've seen clipping of graphic effects when the object with the effect is in a group. For example I had a round rect with a drop shadow with other objects placed inside it. When I grouped them, the drop shadow became clipped. I removed the drop shadow from the rect and applied it to the group instead - which, in my case, stopped the clipping. If you're unable to do that, perhaps extending the group's margin will prevent the effect from being clipped? Sent from my iPhone > On 31 Jan 2016, at 04:02, Terry Judd wrote: > > On 31/01/2016 1:56 pm, "use-livecode on behalf of Sannyasin > Brahmanathaswami" brahma at hindu.org> wrote: > >> Does anyone have any method to ?feather? the edges of a fld, rect or grc? >> >> Any inner glow or outer glow leaves a sharp edge on the object no matter >> what we do. >> >> Any options there? > > Even if you use both inner and outer glow in combination with no object > boder? > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From tore.nilsen at me.com Sun Jan 31 04:42:43 2016 From: tore.nilsen at me.com (Tore Nilsen) Date: Sun, 31 Jan 2016 10:42:43 +0100 Subject: Graphic effects - Feather Edges of Rects In-Reply-To: <7C90AD0E-FDCB-42DC-9AF4-FF6B2A65D728@liverpool.ac.uk> References: <7C90AD0E-FDCB-42DC-9AF4-FF6B2A65D728@liverpool.ac.uk> Message-ID: You need to make the group with the object wider and taller than the object with the graphic effects in order to show the graphic effects ?undisturbed?. You must also set the lockLoc (Lock size & position) of the group to true. Tore Nilsen > 31. jan. 2016 kl. 10.29 skrev Phil Jimmieson : > > I've seen clipping of graphic effects when the object with the effect is in a group. For example I had a round rect with a drop shadow with other objects placed inside it. When I grouped them, the drop shadow became clipped. I removed the drop shadow from the rect and applied it to the group instead - which, in my case, stopped the clipping. If you're unable to do that, perhaps extending the group's margin will prevent the effect from being clipped? > > Sent from my iPhone > >> On 31 Jan 2016, at 04:02, Terry Judd wrote: >> >> On 31/01/2016 1:56 pm, "use-livecode on behalf of Sannyasin >> Brahmanathaswami" > brahma at hindu.org> wrote: >> >>> Does anyone have any method to ?feather? the edges of a fld, rect or grc? >>> >>> Any inner glow or outer glow leaves a sharp edge on the object no matter >>> what we do. >>> >>> Any options there? >> >> Even if you use both inner and outer glow in combination with no object >> boder? >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 klaus at major-k.de Sun Jan 31 07:23:11 2016 From: klaus at major-k.de (Klaus major-k) Date: Sun, 31 Jan 2016 13:23:11 +0100 Subject: LC 8, new pushbuttons Message-ID: <94F6D5BA-B814-4417-9D60-B087F2BC1E48@major-k.de> Hi all, LC 8 looks just great, but maybe I am missing something? I want to use one of the new pushbuttons, but with text AND (svg) icon, is that possible? Or with another widget? I do not want a regular button with a (bitmap) icon. Thanks in advance! Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From tfabacher at gmail.com Sun Jan 31 10:02:20 2016 From: tfabacher at gmail.com (Todd Fabacher) Date: Sun, 31 Jan 2016 16:02:20 +0100 Subject: Ken Burn's Effect Library for Livecode Message-ID: Hello BR, Any luck with the KenBurn's effects? We are looking into that and what is being called 2.5D effects in a LiveCode. Not sure Scott Rossi or any of the other great visual designers have looked into it yes. In effect is mixes Ken Burn's with parallax and can also gif animation to get fancy. http://blog.visual.ly/the-2-5d-effect-how-to-animate-photos-and-create-a-parallax-shift/ Most examples can be found on the internet using Photoshop, but there is a GIMP example also: http://www.gimpology.com/submission/view/2_5d_parallax_animated_photo_tutorial/ I think with a little extra efforts, this could add a real professional visual experience with little size or overhead expense to a LiveCode App. If we added swiping an/or the phone's accelerometer. We are looking into it and will put some resources on this for one of our Apps in a few weeks if there is anyone who wants to work together on it. --Todd From mwieder at ahsoftware.net Sun Jan 31 10:17:40 2016 From: mwieder at ahsoftware.net (Mark Wieder) Date: Sun, 31 Jan 2016 07:17:40 -0800 Subject: inserting Data into CustomProp array In-Reply-To: <56ADA946.50505@pdslabs.net> References: <56AC6374.8020308@hyperactivesw.com> <56ACED5C.9060800@ahsoftware.net> <56ADA946.50505@pdslabs.net> Message-ID: <56AE2594.8070606@ahsoftware.net> On 01/30/2016 10:27 PM, Phil Davis wrote: > > > On 1/30/16 9:05 AM, Mark Wieder wrote: >> -- get the entire array at once >> put the uEffects of image 1 into tArray > > And of course what you meant to say was: > > put the customProperties["uEffects"] of image 1 into tArray > > :-) > Yeah, but hey... I was close... -- Mark Wieder ahsoftware at gmail.com From brahma at hindu.org Sun Jan 31 13:29:50 2016 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sun, 31 Jan 2016 18:29:50 +0000 Subject: Fw: RE: Ken Burn's Effect Library for Livecode Message-ID: Puzzle is working now. go stack url "http://dev.himalayanacademy.com/stacks/SivasHawaiiRev/SivasHawaiiRev.livecode? getting back to Ken Burns. On January 31, 2016 at 5:57:21 AM, Sannyasin Brahmanathaswami (brahma at hindu.org) wrote: see current iteration here go stack url "http://dev.himalayanacademy.com/stacks/SivasHawaiiRev/SivasHawaiiRev.livecode? From waprothero at gmail.com Sun Jan 31 14:38:35 2016 From: waprothero at gmail.com (William Prothero) Date: Sun, 31 Jan 2016 11:38:35 -0800 Subject: Ken Burn's Effect Library for Livecode In-Reply-To: References: Message-ID: <8FAE8851-A2F2-4D1A-8899-4C13F31CCA36@gmail.com> > Brahmanathaswami: I like it! Have you thought about, for some of this, using those whiteboard animations? They seem to draw attention. And I?ve seen another type where a hand brings in symbols, one by one, as a narration continues. This might be more suitable for livecode. The animated drawing would have to have some kind of path that could be extracted from images or diagrams, probably svg paths. Might get complex, but then again, it would be generally useful to have that capability. Best, Bill > On Jan 31, 2016, at 10:29 AM, Sannyasin Brahmanathaswami wrote: > > Puzzle is working now. > > go stack url "http://dev.himalayanacademy.com/stacks/SivasHawaiiRev/SivasHawaiiRev.livecode? > > getting back to Ken Burns. > > On January 31, 2016 at 5:57:21 AM, Sannyasin Brahmanathaswami (brahma at hindu.org) wrote: > > see current iteration here > > go stack url "http://dev.himalayanacademy.com/stacks/SivasHawaiiRev/SivasHawaiiRev.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 Sun Jan 31 14:39:37 2016 From: prothero at earthednet.org (William Prothero) Date: Sun, 31 Jan 2016 11:39:37 -0800 Subject: Ken Burn's Effect Library for Livecode In-Reply-To: References: Message-ID: <8802DF99-1092-436C-AF27-C09D1227CE52@earthednet.org> > Brahmanathaswami: I like it! Have you thought about, for some of this, using those whiteboard animations? They seem to draw attention. And I?ve seen another type where a hand brings in symbols, one by one, as a narration continues. This might be more suitable for livecode. The animated drawing would have to have some kind of path that could be extracted from images or diagrams, probably svg paths. Might get complex, but then again, it would be generally useful to have that capability. Best, Bill > On Jan 31, 2016, at 10:29 AM, Sannyasin Brahmanathaswami wrote: > > Puzzle is working now. > > go stack url "http://dev.himalayanacademy.com/stacks/SivasHawaiiRev/SivasHawaiiRev.livecode? > > getting back to Ken Burns. > > On January 31, 2016 at 5:57:21 AM, Sannyasin Brahmanathaswami (brahma at hindu.org) wrote: > > see current iteration here > > go stack url "http://dev.himalayanacademy.com/stacks/SivasHawaiiRev/SivasHawaiiRev.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 bernd.niggemann at uni-wh.de Sun Jan 31 17:27:31 2016 From: bernd.niggemann at uni-wh.de (BNig) Date: Sun, 31 Jan 2016 14:27:31 -0800 (PST) Subject: Ken Burn's Effect Library for Livecode In-Reply-To: <8802DF99-1092-436C-AF27-C09D1227CE52@earthednet.org> References: <8802DF99-1092-436C-AF27-C09D1227CE52@earthednet.org> Message-ID: <1454279251162-4700591.post@n4.nabble.com> here is a stack that draws a graphic Those graphics were made using a livecode stack converting a bitmapped image into x,y coordinates. http://forums.livecode.com/viewtopic.php?f=7&t=22575#p116267 A little further up in that thread http://forums.livecode.com/viewtopic.php?f=7&t=22575#p116239 is a stack that records doing a polygon graphic in LC and lets you replay the recording. Kind regards Bernd Wprothero wrote >> Brahmanathaswami: > I like it! Have you thought about, for some of this, using those > whiteboard animations? They seem to draw attention. And I?ve seen another > type where a hand brings in symbols, one by one, as a narration continues. > This might be more suitable for livecode. The animated drawing would have > to have some kind of path that could be extracted from images or diagrams, > probably svg paths. Might get complex, but then again, it would be > generally useful to have that capability. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Ken-Burn-s-Effect-Library-for-Livecode-tp4700557p4700591.html Sent from the Revolution - User mailing list archive at Nabble.com. From scott at tactilemedia.com Sun Jan 31 18:09:14 2016 From: scott at tactilemedia.com (Scott Rossi) Date: Sun, 31 Jan 2016 15:09:14 -0800 Subject: Ken Burn's Effect Library for Livecode In-Reply-To: References: Message-ID: There was a thread a while back about motion and parallax, and Colin Holgate shared a stack or two with a demonstration of that effect. On my blog, I posted an example of Malte Brill's technique of using a scroller to move large images along a single axis, which could likely be expanded to move in two axes. But I imagine that adding the additional "half D" of scaling an image at the same time will depend significantly on how large your displayed images will be. LiveCode has never been that great at moving full-screen images around, and keep in mind that if you plan to scale an image at all, you must set the resizeQuality of the image to "good" to keep any quality in the image, which will slow things down more (the "best" setting will be unusable). AcceleratedRendering helps here, but I think the speed enhancements provided by this property are achieved by a kind of buffering or caching of the region that is "in motion" so trying to scale things while that is happening will likely slow things down. With the above said, if your effect is going to take place in a region of a card, instead of full screen, you might get decent performance. My *untested* opinion is that getting an actual Ken Burns effect natively in LC is going to be difficult, if not impossible. It would be great to see someone pull this off. But to accomplish the actual slow/smooth 60fps motion of the effect, I think you'd be better off using a browser object along with a jquery/Javascript slider to move your images around -- there are dozens of libraries/plugins out there. Even with these, the effect can be very processor intensive. I recently rebuilt my own web site that has a Ken Burns style image viewer for the opening, and if this stays on the screen long enough, the fan on my system kicks in. Some options: http://slippry.com/examples/pictures/ http://www.jqueryscript.net/slideshow/Simple-jQuery-Image-Slideshow-with-Ken -Burns-Effect.html https://github.com/toymakerlabs/kenburns http://www.hislider.com/showcase.html Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 1/31/16, 7:02 AM, "use-livecode on behalf of Todd Fabacher" wrote: > Hello BR, > > Any luck with the KenBurn's effects? We are looking into that and what is > being called 2.5D effects in a LiveCode. Not sure Scott Rossi or any of the > other great visual designers have looked into it yes. In effect is mixes > Ken Burn's with parallax and can also gif animation to get fancy. > > http://blog.visual.ly/the-2-5d-effect-how-to-animate-photos-and-create-a-paral > lax-shift/ > > Most examples can be found on the internet using Photoshop, but there is a > GIMP example also: > http://www.gimpology.com/submission/view/2_5d_parallax_animated_photo_tutorial> / > > I think with a little extra efforts, this could add a real professional > visual experience with little size or overhead expense to a LiveCode App. > If we added swiping an/or the phone's accelerometer. We are looking into it > and will put some resources on this for one of our Apps in a few weeks if > there is anyone who wants to work together on it. > > --Todd > From bernd.niggemann at uni-wh.de Sun Jan 31 18:36:01 2016 From: bernd.niggemann at uni-wh.de (BNig) Date: Sun, 31 Jan 2016 15:36:01 -0800 (PST) Subject: LC 8, new pushbuttons In-Reply-To: <94F6D5BA-B814-4417-9D60-B087F2BC1E48@major-k.de> References: <94F6D5BA-B814-4417-9D60-B087F2BC1E48@major-k.de> Message-ID: <1454283361527-4700593.post@n4.nabble.com> Hi Klaus, I don't see a way for the push button, but maybe you could use a navigation bar with just one item. It fires on mouseDown though and you have to fake the hilite/unhilite because it does not unhilite. You could use this script to experiment in the script of the navigation bar widget called "nBar", ---------------------------------- local sNavHiliteColor = "0,121,255" on navigate set the navHiliteColor of widget "nBar" to sNavHiliteColor put "navigate" && the milliseconds into field "fRes" set the selectedItem of widget "nBar" to 2 put the navHiliteColor of widget "nBar" into line 2 of field "fRes" send "resetColor" to me in 0 milliseconds end navigate on resetColor if the mouse is down then send resetColor to me in 30 milliseconds else set the navHiliteColor of widget "nBar" to "120,120,120" end if end resetColor ------------------------------ Kind regards Bernd Klaus major-k wrote > Hi all, > > LC 8 looks just great, but maybe I am missing something? > > I want to use one of the new pushbuttons, but with text AND (svg) icon, > is that possible? Or with another widget? > > I do not want a regular button with a (bitmap) icon. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/LC-8-new-pushbuttons-tp4700585p4700593.html Sent from the Revolution - User mailing list archive at Nabble.com. From alex at tweedly.net Sun Jan 31 19:51:22 2016 From: alex at tweedly.net (Alex Tweedly) Date: Mon, 1 Feb 2016 00:51:22 +0000 Subject: ANN: FlockOBoids In-Reply-To: <9944E4DA-FE76-4320-B864-6D2CCA24BB02@mac.com> References: <9944E4DA-FE76-4320-B864-6D2CCA24BB02@mac.com> Message-ID: <56AEAC0A.2080505@tweedly.net> Very nice, Roger - thanks. There have been a number of versions of 'Boids' posted to the list over the years - at least 5 now ! I just checked back, and my one (posted on the original version of revOnline, and misplaced during the upgrade) was sometime late in 2004 - and I'm pretty sure Andre's was before that :-) Anyway - thanks for this, not only is it great looking, it has inspired me to dig out my old version (and my list of features I had planned to add but never did). I just finished my tax return (UK deadline is Jan 31st :-), so I was in need of a fun project to occupy my mind for the next few days :-) -- Alex. btw - I really like the Wikipedia button !! On 30/01/2016 02:12, Roger Guay wrote: > Building on Scott Rossi?s Swarm stack, I?ve managed to build my version of swarming Boids. In my FlockOBoids stack, boids are given a diverse set of initial velocity vectors, and then they are subject to 3 simple rules: First they all try to fly to the center of the flock. Second, they try to buddyup if they get close enough to each other, and third, they avoid colliding with other boids. > > You can see and play with this here: > > https://www.dropbox.com/s/c93ocic5mwaafuy/FlockOBoids.livecode?dl=0 > > > > Thanks for the idea, Scott. > > > Cheers, > > 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 irog at mac.com Sun Jan 31 20:46:38 2016 From: irog at mac.com (Roger Guay) Date: Sun, 31 Jan 2016 18:46:38 -0700 Subject: ANN: FlockOBoids In-Reply-To: <56AEAC0A.2080505@tweedly.net> References: <9944E4DA-FE76-4320-B864-6D2CCA24BB02@mac.com> <56AEAC0A.2080505@tweedly.net> Message-ID: <344B6BB8-72CE-440A-9118-EBA8A740EABC@mac.com> Thank you very much, Alex. I don?t know how I managed to miss the previous versions of Boids over the years, but I would very much like to catch up on yours and others, if you run across them again. No hurry, of course. Our tax returns are due on April 15th and I need something to help me procrastinate!! BTW, I tried searching the new LiveCode Share thingy and did not find your Boid contribution. I also tried searching on Boids but to no avail. Cheers, Roger > On Jan 31, 2016, at 5:51 PM, Alex Tweedly wrote: > > Very nice, Roger - thanks. > > There have been a number of versions of 'Boids' posted to the list over the years - at least 5 now ! > > I just checked back, and my one (posted on the original version of revOnline, and misplaced during the upgrade) was sometime late in 2004 - and I'm pretty sure Andre's was before that :-) > > Anyway - thanks for this, not only is it great looking, it has inspired me to dig out my old version (and my list of features I had planned to add but never did). I just finished my tax return (UK deadline is Jan 31st :-), so I was in need of a fun project to occupy my mind for the next few days :-) > > -- Alex. > btw - I really like the Wikipedia button !! > > > > On 30/01/2016 02:12, Roger Guay wrote: >> Building on Scott Rossi?s Swarm stack, I?ve managed to build my version of swarming Boids. In my FlockOBoids stack, boids are given a diverse set of initial velocity vectors, and then they are subject to 3 simple rules: First they all try to fly to the center of the flock. Second, they try to buddyup if they get close enough to each other, and third, they avoid colliding with other boids. >> >> You can see and play with this here: >> >> https://www.dropbox.com/s/c93ocic5mwaafuy/FlockOBoids.livecode?dl=0 >> >> >> >> Thanks for the idea, Scott. >> >> >> Cheers, >> >> 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 > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From terry.judd at unimelb.edu.au Sun Jan 31 23:05:23 2016 From: terry.judd at unimelb.edu.au (Terry Judd) Date: Mon, 1 Feb 2016 04:05:23 +0000 Subject: Getting custom urls to work on android Message-ID: Hi there ? I don?t seem to be able to get custom urls to work on android. I include these in emails to users and while I?m pretty sure they were working previously they now show up as plain text on my two test devices (both Samsungs). Any ideas on what might be the problem and how to fix it as I?m totally reliant on this method to send configuaration details (for a data collection/research app) to users. It all works fine on iOS. LC 7.1.1 Terry? Terry Judd | Senior Lecturer in Medical Education Department of Medical Education The University of Melbourne M: 0435 961 594 | E: terry.judd at unimelb.edu.au Publications From terry.judd at unimelb.edu.au Sun Jan 31 23:35:41 2016 From: terry.judd at unimelb.edu.au (Terry Judd) Date: Mon, 1 Feb 2016 04:35:41 +0000 Subject: Getting custom urls to work on android In-Reply-To: References: Message-ID: Just checked on the forums to see if I could find anything relevant there. It seems to suggest that the only way to get custom urls to work on Android is to embed the url in a hyperlink in a webpage. This seems to work but is real pain as it means I need to create a separate page for every email that I will be sending out to Android users (and there will be hundreds of them). Can anyone confirm that I am stuck with this approach and that there is no way to embed a clickable custom url in an email (I tried inserting a hyperlink in an HTML formatted email but that didn?t work either). Regards, Terry... On 1/02/2016 3:05 pm, "use-livecode on behalf of Terry Judd" wrote: >Hi there ? I don?t seem to be able to get custom urls to work on android. >I include these in emails to users and while I?m pretty sure they were >working previously they now show up as plain text on my two test devices >(both Samsungs). Any ideas on what might be the problem and how to fix it >as I?m totally reliant on this method to send configuaration details (for >a data collection/research app) to users. It all works fine on iOS. > >LC 7.1.1 > >Terry? > >Terry Judd | Senior Lecturer in Medical Education >Department of Medical >Education >The University of Melbourne >M: 0435 961 594 | E: >terry.judd at unimelb.edu.au >Publicationsen> >_______________________________________________ >use-livecode mailing list >use-livecode at lists.runrev.com >Please visit this url to subscribe, unsubscribe and manage your >subscription preferences: >http://lists.runrev.com/mailman/listinfo/use-livecode