From lan.kc.macmail at gmail.com Wed Jul 1 05:44:06 2015 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Wed, 1 Jul 2015 17:44:06 +0800 Subject: How to Teach Coding In-Reply-To: <5592E358.2080502@pdslabs.net> References: <9dfca3dd1bc609e4d1878faf17fd86c2.squirrel@meg.on-rev.com> <14e4581b34a-287b-2aed1@webprd-m50.mail.aol.com> <5592D913.10208@pdslabs.net> <5592E358.2080502@pdslabs.net> Message-ID: My children give me feedback on my failures all the time ;-( But I think you are right, Richmond's are very effective. Well done Richmond, my wife (a professional educator) would support you 100%; your devotion to teaching and focusing on the children, not the content, is to be commended. Those children don't know how lucky they are. On Wed, Jul 1, 2015 at 2:43 AM, Phil Davis wrote: > Richmond, I love your "feedback loop" with the kids correcting your coding > - brilliant! And most certainly effective. > > Phil > > > > On 6/30/15 10:59 AM, Phil Davis wrote: > >> A while back, I took Larry Walker's "follow me" approach with two of my >> grandsons (ages 6 and 7 at the time): >> >> http://www.philofwestlinn.com/2013/11/17/follow-me-programming/ >> http://www.philofwestlinn.com/2013/12/04/our-time-machine-app/ >> >> They loved it! Of course I had the luxury (and challenge) of working with >> them at their kitchen table. >> >> Phil >> >> >> >> On 6/30/15 10:26 AM, dunbarx at aol.com wrote: >> >>> Richmond. >>> >>> >>> A nice thing you are doing. >>> >>> >>> I take a slightly different approach. I put a few controls on the >>> screen, and then move the mouse around, asking what sort of things (events) >>> might be occurring. Nobody gets what I mean at first, until I explain that >>> I am sending messages to the machine when, say, I simply move the cursor >>> (mouseMove). >>> >>> >>> Most will see that something happens when I click the mouse, and if I >>> say that the machine "knows" where a button is, it also knows when the >>> cursor crosses that threshold (mouseEnter). From there I get several >>> responses, like when the mouse leaves. Nobody ever gets "mouseStillDown"> >>> >>> >>> Anyway, from there I can start to show how if I send a message, I can >>> trap a message, and the rest is easy. >>> >>> >>> Well, not necessarily easy... >>> >>> >>> Craig Newman >>> >>> >>> >>> -----Original Message----- >>> From: Jana Doughty >>> To: use-livecode >>> Sent: Tue, Jun 30, 2015 11:15 am >>> Subject: How to Teach Coding >>> >>> >>> Hi LiveCode Community, >>> >>> Hope you're well and having a good week so far. We >>> have a great blog post >>> from our very own Richmond Mathewson on the blog today. >>> He tells us about >>> how he's teaching kids to code this >>> summer: >>> >>> http://livecode.com/how-to-teach-coding/ >>> >>> Check it out and tell >>> Richmond how great he is! >>> >>> Thanks! >>> >>> Jana >>> Doughty >>> >>> >>> _______________________________________________ >>> use-livecode >>> mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, >>> unsubscribe and manage your subscription >>> preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode 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 matthias_livecode_150811 at m-r-d.de Wed Jul 1 06:13:15 2015 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe | M-R-D) Date: Wed, 1 Jul 2015 12:13:15 +0200 Subject: [ANN] Super quick and easy deployment to plugged in iOS devices In-Reply-To: References: Message-ID: Hi, it seems i am doing something wrong. I copied the file to the plugins folder and i can see my iOS device in the LC ide under Development->Test target. I selected the device, but pressing the Test button only let me select a folder where the standalone shall be saved. The standalone is saved in the selected folder, but nothing is installed on my iPhone. So what am i doing wrong? Regards, Matthias > Am 30.06.2015 um 06:50 schrieb Monte Goulding : > > Hi LiveCoders > > One thing I?ve wanted for a long time is for the Test button to deploy to iOS devices in the same way that it does on Android. mergTestApp was part of the way there but I?ve gone the rest of the way with a new plugin called mergDeploy. Just install the stack and associated external in your plugins folder and LiveCode will recognise when you plugin an iOS device and list it in the Test Targets submenu. You can then click the Test button and it will install onto your device. Great for rapidly testing on a device where it counts. > > This new plugin is available from mergExt.com for $9 or bundled in mergExt Complete which is now $940 worth of products for $299. > > See http://mergext.com/plugins/mergdeploy/ for more info. > > Cheers > > Monte > > -- > M E R Goulding > Software development services > Bespoke application development for vertical markets > > mergExt - There's an external for that! > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From monte at sweattechnologies.com Wed Jul 1 06:17:52 2015 From: monte at sweattechnologies.com (Monte Goulding) Date: Wed, 1 Jul 2015 20:17:52 +1000 Subject: [ANN] Super quick and easy deployment to plugged in iOS devices In-Reply-To: References: Message-ID: > On 1 Jul 2015, at 8:13 pm, Matthias Rebbe | M-R-D wrote: > > So what am i doing wrong? That?s a good question. Do you have the provisioning profile set correctly? Cheers Monte -- M E R Goulding Software development services Bespoke application development for vertical markets mergExt - There's an external for that! From matthias_livecode_150811 at m-r-d.de Wed Jul 1 06:31:41 2015 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe | M-R-D) Date: Wed, 1 Jul 2015 12:31:41 +0200 Subject: [ANN] Super quick and easy deployment to plugged in iOS devices In-Reply-To: References: Message-ID: <8AE9DB66-1BA5-4D8A-8369-29A9B022CA81@m-r-d.de> Monte, thanks that was it. Had still the distribution profile set. Seems i had too little sleep. This tool is really a time saver. And even if i repeat here like a mantra from time to time, but subscribing to your mergExt suite was one of the best decisions I?ve made. Regards, Matthias > Am 01.07.2015 um 12:17 schrieb Monte Goulding : > > >> On 1 Jul 2015, at 8:13 pm, Matthias Rebbe | M-R-D wrote: >> >> So what am i doing wrong? > > That?s a good question. Do you have the provisioning profile set correctly? > > Cheers > > Monte > > -- > M E R Goulding > Software development services > Bespoke application development for vertical markets > > mergExt - There's an external for that! > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dvglasgow at gmail.com Wed Jul 1 08:16:45 2015 From: dvglasgow at gmail.com (David V Glasgow) Date: Wed, 1 Jul 2015 13:16:45 +0100 Subject: Revmail problems on Windows 8 Message-ID: <28A5E603-72F1-4209-8125-645E44E6DA4C@gmail.com> I originally sent this a couple of days ago, but it has never appeared on the list. Apologies if it ends up a double post?. Based on the advice received when I posted this issue, I checked the result immediately after the revmail line was executed. Interestingly, the result-put line was not executed where revmail failed. Where it succeeded, in dev and on mac it was executed and the result was empty. So it seems clear there is a problem, but sadly I have no specific error to report because when it arises, the script terminates. The good news is that using the launch url workaround recommended by Richard (below) worked fine. So anyone encountering the same issue can take this route. Thanks Richard. Why Revmail should fail in the way I have described is beyond me. Maybe brighter coders can take it from here. > On 21 Jun 2015, at 3:15 pm, Richard Gaskin > wrote: > > One simple workaround is to just use "mailto:" directly with "launch url:", e.g.: > > put "someaddy at somedomain.com " into tAddress > put "Some Subject Line" into tSubject > put "This is the body of the email" into tBody > put "mailto:"& tAddress &"?subject="& tSubject &"&body="& tBody \ > into tURL > launch url tURL Best Wishes, David Glasgow i-psych.co.uk From sebastien.nouat at livecode.com Wed Jul 1 09:28:42 2015 From: sebastien.nouat at livecode.com (Sebastien Nouat) Date: Wed, 01 Jul 2015 14:28:42 +0100 Subject: Release 6.7.6 / 7.0.6 Message-ID: <5593EB0A.8010707@livecode.com> Dear List Members, We are pleased to announce the release of LiveCode 6.7.6 and 7.0.6 Stable. This release is a stable release, in which all the bugs fixed in the .6 versions are now stable. The list of bugs fixed in those versions can be found in the Release Notes (in the RC 1, RC 2 and RC 3-specific bug fixes). *Getting the Release* To get the release please select "check for updates" from the "help" menu in the product or download the installer directly at: http://downloads.livecode.com *6.7.7 RC 1 / 7.0.7 RC 1 * The release of the next maintenance build is planned to be done in the course of next week. You can follow our release schedule on our GitHub repository . Warm regards, The LiveCode Team From toolbook at kestner.de Wed Jul 1 09:44:54 2015 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Wed, 1 Jul 2015 15:44:54 +0200 Subject: how to check for unnecessary local declarations? Message-ID: <001001d0b404$1d43dd00$57cb9700$@kestner.de> Hello, I am using the strict compilation mode. When working over longer time on a project it regularly happens that I have orphaned local variable declarations. Actually they don't hurt, but I like to keep my code clean and wonder if there is any hidden feature, which checks for not any more needed local declarations (beside scripting a check myself)? Thanks Tiemo From toolbook at kestner.de Wed Jul 1 09:48:39 2015 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Wed, 1 Jul 2015 15:48:39 +0200 Subject: AW: how to check for unnecessary local declarations? In-Reply-To: <001001d0b404$1d43dd00$57cb9700$@kestner.de> References: <001001d0b404$1d43dd00$57cb9700$@kestner.de> Message-ID: <001501d0b404$a34e7040$e9eb50c0$@kestner.de> I am talking only about locals WITHIN a handler. -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von Tiemo Hollmann TB Gesendet: Mittwoch, 1. Juli 2015 15:45 An: LiveCode User Liste senden Betreff: how to check for unnecessary local declarations? Hello, I am using the strict compilation mode. When working over longer time on a project it regularly happens that I have orphaned local variable declarations. Actually they don't hurt, but I like to keep my code clean and wonder if there is any hidden feature, which checks for not any more needed local declarations (beside scripting a check myself)? Thanks Tiemo _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From livfoss at mac.com Wed Jul 1 10:15:00 2015 From: livfoss at mac.com (Graham Samuel) Date: Wed, 01 Jul 2015 16:15:00 +0200 Subject: Release 6.7.6 / 7.0.6 In-Reply-To: <5593EB0A.8010707@livecode.com> References: <5593EB0A.8010707@livecode.com> Message-ID: <8561483F-5EB1-4170-8696-83590F6F913B@mac.com> Sebastien - from where I am, it is NOT TRUE that this update can be obtained by ?check for updates?, at least not from the Mac version of LC 7.0.6 (rc1) on Yosemite 10.10.3. I think this problem existed for the last update as well. What?s going on? Graham > On 1 Jul 2015, at 15:28, Sebastien Nouat wrote: > > Dear List Members, > > We are pleased to announce the release of LiveCode 6.7.6 and 7.0.6 Stable. This release is a stable release, in which all the bugs fixed in the .6 versions are now stable. The list of bugs fixed in those versions can be found in the Release Notes (in the RC 1, RC 2 and RC 3-specific bug fixes). > > *Getting the Release* > To get the release please select "check for updates" from the "help" menu in the product or download the installer directly at: http://downloads.livecode.com > > *6.7.7 RC 1 / 7.0.7 RC 1 * > The release of the next maintenance build is planned to be done in the course of next week. > > You can follow our release schedule on our GitHub repository . > > Warm regards, > > The LiveCode 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 iowahengst at mac.com Wed Jul 1 10:30:27 2015 From: iowahengst at mac.com (Randy Hengst) Date: Wed, 01 Jul 2015 09:30:27 -0500 Subject: Detecting Multiple Clicks In-Reply-To: <7F7B2F63-D4F7-4F92-83F6-04B9863183CC@livecode.org> References: <7F7B2F63-D4F7-4F92-83F6-04B9863183CC@livecode.org> Message-ID: <64A12669-4140-40E4-B2A3-DF586AFC57BF@mac.com> Yes, thank you Scott. be well, randy Randy Hengst www.classroomFocusedSoftware.com > On Jun 30, 2015, at 9:50 PM, Paul Hibbert wrote: > > Nice share. > > Thank you Scott. > > Paul > >> On Jun 30, 2015, at 13:03, Scott Rossi wrote: >> >> Thought folks might find the following useful... >> >> I currently have a situation where I need to detect multiple clicks on an >> object and differentiate between the number of click sets (i.e. >> single-click, double-click, triple-click, etc). The following seems to >> work well, detecting a 50-click event, after which point I got tired of >> clicking :-) >> >> ----- >> >> constant theClickThreshold = 300 >> local theClickCount, theClickID >> >> on mouseDown >> if lineOffset("countClicks",pendingMessages()) = 0 then >> put 0 into theClickCount >> else cancel theClickID >> add 1 to theClickCount >> send "countClicks" to me in theClickThreshold millisecs >> put the result into theClickID >> end mouseDown >> >> command countClicks >> put theClickCount && millisecs() -- SHOW CLICK COUNT >> put 0 into theClickCount -- RESET >> end countClicks >> >> ----- >> >> >> The click threshold can be adjusted but seems to work well at 300 >> milliseconds. Change "on mouseDown" to "before mouseDown" to implement as >> a behavior. >> >> Regards, >> >> Scott Rossi >> Creative Director >> Tactile Media, UX/UI Design >> >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Wed Jul 1 10:31:19 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 01 Jul 2015 07:31:19 -0700 Subject: Revmail problems on Windows 8 In-Reply-To: <28A5E603-72F1-4209-8125-645E44E6DA4C@gmail.com> References: <28A5E603-72F1-4209-8125-645E44E6DA4C@gmail.com> Message-ID: <5593F9B7.5060203@fourthworld.com> David V Glasgow wrote: > The good news is that using the launch url workaround recommended by > Richard (below) worked fine. So anyone encountering the same issue > can take this route. Thanks Richard. > > Why Revmail should fail in the way I have described is beyond me. > Maybe brighter coders can take it from here. This is just a hunch, written in complete ignorance since I haven't read that part of the IDE's library, but ignorance hasn't stopped me from posting here before so here's my hunch: IIRC you'd experienced this on Windows only, yes? I believe revMail predates the engine's implementation of "launch url". If so, and if revMail hasn't been updated to use "launch url", it may be that it's using the older method of attempting shell calls for stuff "launch url" now does with more robust lower-level API calls. Windows shell options have undergone many changes since Vista forward, but Microsoft has a good reputation for maintaining backward compatibility for their lower-level APIs. If you have time to submit a bug report for this that would be very helpful, so they can update whatever's going on in that library to make sure it uses the engine's "launch url" call as smartly as you can do yourself. Once again, the old adage applies: Know the engine Trust the engine Use the engine Rather than seeing this as a workaround, I see it as using a newer feature that operates just a little closer to the OS. Any time we can reduce the distance between our scripts and the underlying OS we generally benefit. "launch url" not only makes a great replacement for revMail, but will handle any protocol that the system is set up to handle, including other common ones like "ftp" and "http" but also custom URL schemes as well. >> On 21 Jun 2015, at 3:15 pm, Richard Gaskin wrote: >> >> One simple workaround is to just use "mailto:" directly with "launch url:", e.g.: >> >> put "someaddy at somedomain.com " into tAddress >> put "Some Subject Line" into tSubject >> put "This is the body of the email" into tBody >> put "mailto:"& tAddress &"?subject="& tSubject &"&body="& tBody \ >> into tURL >> launch url tURL -- 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 skip at magicgate.com Wed Jul 1 11:27:43 2015 From: skip at magicgate.com (Magicgate Software - Skip Kimpel) Date: Wed, 1 Jul 2015 11:27:43 -0400 Subject: Retrieve email and attachments from Exchange Server Message-ID: Good morning / afternoon, I need the ability to tap into an Exchange Server account and grab text / attachments from emails sitting in that account. Can anybody think of a way to do that via LC? I know it is a stretch... hoping for a creative solution. Thank you for your input! SKIP From ambassador at fourthworld.com Wed Jul 1 11:46:54 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 01 Jul 2015 08:46:54 -0700 Subject: Retrieve email and attachments from Exchange Server In-Reply-To: References: Message-ID: <55940B6E.5040207@fourthworld.com> Skip Kimpel wrote: > I need the ability to tap into an Exchange Server account and grab > text / attachments from emails sitting in that account. > > Can anybody think of a way to do that via LC? I don't have an answer but I might have a clue: Since Vista, Windows has become increasingly interesting in enabling interoperability through its PowerShell scripting language. There may be a way to dig up relevant PowerShell scripts and call them from LiveCode with the shell function. Please let us know what you find. -- 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 skip at magicgate.com Wed Jul 1 11:52:11 2015 From: skip at magicgate.com (Magicgate Software - Skip Kimpel) Date: Wed, 1 Jul 2015 11:52:11 -0400 Subject: Retrieve email and attachments from Exchange Server In-Reply-To: <55940B6E.5040207@fourthworld.com> References: <55940B6E.5040207@fourthworld.com> Message-ID: Interesting... never thought of going that route but probably the most likely approach. Richard, thanks for giving me something to go on. SKIP On Wed, Jul 1, 2015 at 11:46 AM, Richard Gaskin wrote: > Skip Kimpel wrote: > > > I need the ability to tap into an Exchange Server account and grab > > text / attachments from emails sitting in that account. > > > > Can anybody think of a way to do that via LC? > > I don't have an answer but I might have a clue: Since Vista, Windows has > become increasingly interesting in enabling interoperability through its > PowerShell scripting language. > > There may be a way to dig up relevant PowerShell scripts and call them > from LiveCode with the shell function. > > Please let us know what you find. > > -- > 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 bobsneidar at iotecdigital.com Wed Jul 1 11:58:45 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 1 Jul 2015 15:58:45 +0000 Subject: [OT] Gravatars? In-Reply-To: <55921BAF.4000006@ahsoftware.net> References: <5591A876.9090604@gmail.com> <55920615.2070502@ahsoftware.net> <0F992E18-E5CE-4449-9907-4FD3E357890B@jhj.com> <55921BAF.4000006@ahsoftware.net> Message-ID: <32A142FC-D1C2-4398-84CA-3C46AF85990D@iotecdigital.com> THAT is a NICE RACK! Bob S > On Jun 29, 2015, at 21:31 , Mark Wieder wrote: > > On 06/29/2015 08:05 PM, Jerry Jensen wrote: > >> Geez, guys, now I had to look up portmanteau too. I?m no wiser - adding a photo to a coat rack has me baffled. > > Here's a photo of a goat rack for you. > You're welcome. > > http://www.cookeryonline.com/goats/Goatcuts%20.html > > -- > 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 richmondmathewson at gmail.com Wed Jul 1 13:04:01 2015 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 01 Jul 2015 20:04:01 +0300 Subject: [OT] Gravatars? In-Reply-To: <32A142FC-D1C2-4398-84CA-3C46AF85990D@iotecdigital.com> References: <5591A876.9090604@gmail.com> <55920615.2070502@ahsoftware.net> <0F992E18-E5CE-4449-9907-4FD3E357890B@jhj.com> <55921BAF.4000006@ahsoftware.net> <32A142FC-D1C2-4398-84CA-3C46AF85990D@iotecdigital.com> Message-ID: <55941D81.6000505@gmail.com> On 01/07/15 18:58, Bob Sneidar wrote: > THAT is a NICE RACK! A wee bit "in yer face" for vegetarians. Richmond. > > Bob S > > >> On Jun 29, 2015, at 21:31 , Mark Wieder wrote: >> >> On 06/29/2015 08:05 PM, Jerry Jensen wrote: >> >>> Geez, guys, now I had to look up portmanteau too. I?m no wiser - adding a photo to a coat rack has me baffled. >> Here's a photo of a goat rack for you. >> You're welcome. >> >> http://www.cookeryonline.com/goats/Goatcuts%20.html >> >> -- >> 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 From pete at lcsql.com Wed Jul 1 16:42:44 2015 From: pete at lcsql.com (Peter Haworth) Date: Wed, 01 Jul 2015 20:42:44 +0000 Subject: New Indy License Pricing Message-ID: I'm assuming some folks out there got the same email as me regarding the increase in Indy license pricing. >From that email, it seems that the Community Edition will no longer have all the same features as the fee-based versions of Livecode. Comments? Pete From dirk.cleenwerck at gmail.com Wed Jul 1 17:22:03 2015 From: dirk.cleenwerck at gmail.com (Dirk prive) Date: Wed, 1 Jul 2015 23:22:03 +0200 Subject: New Indy License Pricing In-Reply-To: References: Message-ID: All I can say is to send feedback to Kevin. I already did and they are listening. Dirk cleenwerck. On Jul 1, 2015 23:15, "Peter Haworth" wrote: > I'm assuming some folks out there got the same email as me regarding the > increase in Indy license pricing. > > From that email, it seems that the Community Edition will no longer have > all the same features as the fee-based versions of Livecode. > > Comments? > > Pete > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 1 17:47:23 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 1 Jul 2015 21:47:23 +0000 Subject: how to check for unnecessary local declarations? In-Reply-To: <001001d0b404$1d43dd00$57cb9700$@kestner.de> References: <001001d0b404$1d43dd00$57cb9700$@kestner.de> Message-ID: Seems you could write a handler to do it pretty easily. ? get stack script ? find ?local ? ? get word 2 of found line ? filter with ?*? & word 2 of found line & ?*? ? count number of lines. if only 1 then delete that line ? get list of cards ? repeat for every card ? get card script ? what I just said ? get list of objects on card ? repeat for every object on card ? get script of object ? do I have to repeat myself again?? It might be a little more complicated if you have multiple local variable declarations, but not much. Bob S > On Jul 1, 2015, at 06:44 , Tiemo Hollmann TB wrote: > > Hello, > > I am using the strict compilation mode. When working over longer time on a > project it regularly happens that I have orphaned local variable > declarations. > > Actually they don't hurt, but I like to keep my code clean and wonder if > there is any hidden feature, which checks for not any more needed local > declarations (beside scripting a check myself)? > > Thanks > > Tiemo > > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 1 17:55:28 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 1 Jul 2015 21:55:28 +0000 Subject: Revmail problems on Windows 8 In-Reply-To: <5593F9B7.5060203@fourthworld.com> References: <28A5E603-72F1-4209-8125-645E44E6DA4C@gmail.com> <5593F9B7.5060203@fourthworld.com> Message-ID: To which I might add, Don?t put bad gas in the engine Don?t over rev the engine Don?t try to pull the engine apart, then put it back together ?more better? I?ll leave it up to everyone?s imaginations to determine what the coding correlations for these are. It?s only my intent to seem wise. Bob S On Jul 1, 2015, at 07:31 , Richard Gaskin > wrote: Once again, the old adage applies: Know the engine Trust the engine Use the engine From gcanyon at gmail.com Wed Jul 1 17:56:50 2015 From: gcanyon at gmail.com (Geoff Canyon) Date: Wed, 1 Jul 2015 17:56:50 -0400 Subject: Reordering cards? In-Reply-To: <558E366C.7060208@hyperactivesw.com> References: <558C418C.3020109@gmail.com> <558C5157.8060604@hyperactivesw.com> <558C58FC.1090707@gmail.com> <558CCE9F.3030906@hyperactivesw.com> <558D2F95.1020600@gmail.com> <558E1453.5010507@hindu.org> <558E366C.7060208@hyperactivesw.com> Message-ID: Disappointing that they're almost synonyms. I just checked and noticed the difference -- that "number" can be used to refer to stacks in a file, while "layer" apparently can't. On Sat, Jun 27, 2015 at 1:36 AM, J. Landman Gay wrote: > On 6/26/2015 11:08 PM, Scott Rossi wrote: > >> And again there is also the number property (used by old timers like >> Jacque and myself) showing the multiple ways of accomplishing the same >> task: >> > > And if you look up "layer" in the dictionary, the "see also" refers to > "number" as the first suggestion. If you look up "number," a see-also is > "layer". Which I didn't realize until I looked it up just now. > > Just making sure this horse is really dead. :) > > -- > 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 Wed Jul 1 17:59:28 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 1 Jul 2015 21:59:28 +0000 Subject: Retrieve email and attachments from Exchange Server In-Reply-To: <55940B6E.5040207@fourthworld.com> References: <55940B6E.5040207@fourthworld.com> Message-ID: <0BDC178F-7CF7-44DA-BCD1-4102D602FFA1@iotecdigital.com> You would think that, but you might be mistaken. The contact management Act has specifically stated that in order to get the Act Outlook plugin to work with Outlook, the end user be an administrator. This was not true for older versions of Outlook but it is now. This is because Microsoft way upped the ante on Outlook security specifically to prevent an application from doing exactly what you are trying to do. If the developers of Act cannot find a way around the present restrictions, it is doubtful you will find a way. Bob S > On Jul 1, 2015, at 08:46 , Richard Gaskin wrote: > > Skip Kimpel wrote: > > > I need the ability to tap into an Exchange Server account and grab > > text / attachments from emails sitting in that account. > > > > Can anybody think of a way to do that via LC? > > I don't have an answer but I might have a clue: Since Vista, Windows has become increasingly interesting in enabling interoperability through its PowerShell scripting language. > > There may be a way to dig up relevant PowerShell scripts and call them from LiveCode with the shell function. > > Please let us know what you find. > > -- > 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 bobsneidar at iotecdigital.com Wed Jul 1 18:05:37 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 1 Jul 2015 22:05:37 +0000 Subject: Retrieve email and attachments from Exchange Server In-Reply-To: <0BDC178F-7CF7-44DA-BCD1-4102D602FFA1@iotecdigital.com> References: <55940B6E.5040207@fourthworld.com> <0BDC178F-7CF7-44DA-BCD1-4102D602FFA1@iotecdigital.com> Message-ID: <28609754-FEFA-4525-B0B5-641E1F9A0E82@iotecdigital.com> There is this, but it requires user interaction, specifically with a powershelgl authentication dialog. It also has some other pre-requisites that would become insurmountable obstacles if you did not have administrative access to the Exchange server or the workstation executing the powershell. https://technet.microsoft.com/en-us/library/jj984289%28v=exchg.150%29.aspx Bob S > On Jul 1, 2015, at 14:59 , Bob Sneidar wrote: > > You would think that, but you might be mistaken. The contact management Act has specifically stated that in order to get the Act Outlook plugin to work with Outlook, the end user be an administrator. This was not true for older versions of Outlook but it is now. This is because Microsoft way upped the ante on Outlook security specifically to prevent an application from doing exactly what you are trying to do. > > If the developers of Act cannot find a way around the present restrictions, it is doubtful you will find a way. > > Bob S > > >> On Jul 1, 2015, at 08:46 , Richard Gaskin wrote: >> >> Skip Kimpel wrote: >> >>> I need the ability to tap into an Exchange Server account and grab >>> text / attachments from emails sitting in that account. >>> >>> Can anybody think of a way to do that via LC? >> >> I don't have an answer but I might have a clue: Since Vista, Windows has become increasingly interesting in enabling interoperability through its PowerShell scripting language. >> >> There may be a way to dig up relevant PowerShell scripts and call them from LiveCode with the shell function. >> >> Please let us know what you find. >> >> -- >> 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 mwieder at ahsoftware.net Wed Jul 1 18:50:10 2015 From: mwieder at ahsoftware.net (Mark Wieder) Date: Wed, 1 Jul 2015 22:50:10 +0000 (UTC) Subject: New Indy License Pricing References: Message-ID: Peter Haworth writes: > > I'm assuming some folks out there got the same email as me regarding the > increase in Indy license pricing. > > From that email, it seems that the Community Edition will no longer have > all the same features as the fee-based versions of Livecode. > > Comments? Been dealt with very nicely by Kevin: http://forums.livecode.com/viewtopic.php?f=5&t=24729&start=15 -- Mark Wieder ahsoftware at gmail.com From bonnmike at gmail.com Wed Jul 1 19:24:50 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Wed, 1 Jul 2015 17:24:50 -0600 Subject: New Indy License Pricing In-Reply-To: References: Message-ID: And boom goes the forum. On Wed, Jul 1, 2015 at 4:50 PM, Mark Wieder wrote: > Peter Haworth writes: > > > > > I'm assuming some folks out there got the same email as me regarding the > > increase in Indy license pricing. > > > > From that email, it seems that the Community Edition will no longer have > > all the same features as the fee-based versions of Livecode. > > > > Comments? > > Been dealt with very nicely by Kevin: > http://forums.livecode.com/viewtopic.php?f=5&t=24729&start=15 > > -- > 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 stephenREVOLUTION2 at barncard.com Wed Jul 1 19:51:22 2015 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Wed, 1 Jul 2015 16:51:22 -0700 Subject: Revmail problems on Windows 8 In-Reply-To: References: <28A5E603-72F1-4209-8125-645E44E6DA4C@gmail.com> <5593F9B7.5060203@fourthworld.com> Message-ID: Bless the engine, my son. -- Stephen Barncard - Sebastopol Ca. USA - Deeds Not Words On Wed, Jul 1, 2015 at 2:55 PM, Bob Sneidar wrote: > To which I might add, > > Don?t put bad gas in the engine > Don?t over rev the engine > Don?t try to pull the engine apart, then put it back together ?more better? > > I?ll leave it up to everyone?s imaginations to determine what the coding > correlations for these are. It?s only my intent to seem wise. > > Bob S > > > On Jul 1, 2015, at 07:31 , Richard Gaskin > wrote: > > Once again, the old adage applies: > > Know the engine > Trust the engine > Use the engine > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From stephenREVOLUTION2 at barncard.com Wed Jul 1 19:56:39 2015 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Wed, 1 Jul 2015 16:56:39 -0700 Subject: New Indy License Pricing In-Reply-To: References: Message-ID: On Wed, Jul 1, 2015 at 4:24 PM, Mike Bonner wrote: > And boom goes the forum. > I thought it was my provider. It appears we are still in the networking middle ages. -- Stephen Barncard - Sebastopol Ca. USA - Deeds Not Words From bobsneidar at iotecdigital.com Wed Jul 1 20:01:17 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 2 Jul 2015 00:01:17 +0000 Subject: Combo Box Display Oddity Message-ID: Here?s an odd one. An opaque combo box becomes transparent when disabled and the background shows through. The quick fix is to set the blending to srcOrReverse, but why should I have to? Not complaining just asking if anyone else can reproduce this, and is this the desired behavior? Bob S From dave at applicationinsight.com Wed Jul 1 20:04:19 2015 From: dave at applicationinsight.com (Dave Kilroy) Date: Wed, 1 Jul 2015 17:04:19 -0700 (PDT) Subject: New Indy License Pricing In-Reply-To: References: Message-ID: <1435795459326-4693537.post@n4.nabble.com> Not just the forum, all of livecode.com So far my on-rev sites are ok Anyone able to tell if the problem is a ddos or one of their servers falling over? Mike Bonner wrote > And boom goes the forum. ----- "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/New-Indy-License-Pricing-tp4693525p4693537.html Sent from the Revolution - User mailing list archive at Nabble.com. From paul at livecode.org Wed Jul 1 20:54:30 2015 From: paul at livecode.org (Paul Hibbert) Date: Wed, 1 Jul 2015 17:54:30 -0700 Subject: Combo Box Display Oddity In-Reply-To: References: Message-ID: <9158584F-4120-456B-A2F2-1FF22B09116B@livecode.org> I?m not seeing this on Yosemite with LC 7.0.6 (rc3), what LC version and system are you seeing this on? FWIW, I don?t see this as desired behaviour. Paul > On Jul 1, 2015, at 17:01, Bob Sneidar wrote: > > Here?s an odd one. An opaque combo box becomes transparent when disabled and the background shows through. The quick fix is to set the blending to srcOrReverse, but why should I have to? Not complaining just asking if anyone else can reproduce this, and is this the desired behavior? > > 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 jhj at jhj.com Wed Jul 1 20:56:47 2015 From: jhj at jhj.com (Jerry Jensen) Date: Wed, 1 Jul 2015 17:56:47 -0700 Subject: New Indy License Pricing In-Reply-To: <1435795459326-4693537.post@n4.nabble.com> References: <1435795459326-4693537.post@n4.nabble.com> Message-ID: <3CF245CD-A7FB-406D-A805-EF578BB3675A@jhj.com> Diesel is serving web pages. On-rev email is working (IMAP, I don?t use SMTP). livecode.com no . downloads.livecode.com no . on-rev.com no (!)(I guess it isn?t really in the on-rev hosting) > On Jul 1, 2015, at 5:04 PM, Dave Kilroy wrote: > > Not just the forum, all of livecode.com > > So far my on-rev sites are ok > > Anyone able to tell if the problem is a ddos or one of their servers falling > over? > > > Mike Bonner wrote >> And boom goes the forum. > > > > > > ----- > "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/New-Indy-License-Pricing-tp4693525p4693537.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 Wed Jul 1 21:21:59 2015 From: mwieder at ahsoftware.net (Mark Wieder) Date: Wed, 01 Jul 2015 18:21:59 -0700 Subject: New Indy License Pricing In-Reply-To: References: Message-ID: <55949237.3080704@ahsoftware.net> On 07/01/2015 04:24 PM, Mike Bonner wrote: > And boom goes the forum. Well, let's see... from memory... Kevin said something about how if they had done this a while back they could have avoided the service errors that affected "a small number of users". -- Mark Wieder ahsoftware at gmail.com From skiplondon at gmail.com Wed Jul 1 21:31:57 2015 From: skiplondon at gmail.com (Skip Kimpel) Date: Wed, 1 Jul 2015 21:31:57 -0400 Subject: Retrieve email and attachments from Exchange Server In-Reply-To: <28609754-FEFA-4525-B0B5-641E1F9A0E82@iotecdigital.com> References: <55940B6E.5040207@fourthworld.com> <0BDC178F-7CF7-44DA-BCD1-4102D602FFA1@iotecdigital.com> <28609754-FEFA-4525-B0B5-641E1F9A0E82@iotecdigital.com> Message-ID: <3FACB4B0-E40C-48C1-8946-EB1069B3ACD0@gmail.com> Bob, The good news is I do have administrator rights and what I am writing is an internal business tool and not for public consumption. However, before I invest a significant amount of time playing with this unknown method let me ask the question in a different way..... Let's say I create a rule to forward that email to a different email system. Is there a way to do what I am looking to do via Gmail, for instance? Other email service? SKIP > On Jul 1, 2015, at 6:05 PM, Bob Sneidar wrote: > > There is this, but it requires user interaction, specifically with a powershelgl authentication dialog. It also has some other pre-requisites that would become insurmountable obstacles if you did not have administrative access to the Exchange server or the workstation executing the powershell. > > https://technet.microsoft.com/en-us/library/jj984289%28v=exchg.150%29.aspx > > Bob S > > >> On Jul 1, 2015, at 14:59 , Bob Sneidar wrote: >> >> You would think that, but you might be mistaken. The contact management Act has specifically stated that in order to get the Act Outlook plugin to work with Outlook, the end user be an administrator. This was not true for older versions of Outlook but it is now. This is because Microsoft way upped the ante on Outlook security specifically to prevent an application from doing exactly what you are trying to do. >> >> If the developers of Act cannot find a way around the present restrictions, it is doubtful you will find a way. >> >> Bob S >> >> >>> On Jul 1, 2015, at 08:46 , Richard Gaskin wrote: >>> >>> Skip Kimpel wrote: >>> >>>> I need the ability to tap into an Exchange Server account and grab >>>> text / attachments from emails sitting in that account. >>>> >>>> Can anybody think of a way to do that via LC? >>> >>> I don't have an answer but I might have a clue: Since Vista, Windows has become increasingly interesting in enabling interoperability through its PowerShell scripting language. >>> >>> There may be a way to dig up relevant PowerShell scripts and call them from LiveCode with the shell function. >>> >>> Please let us know what you find. >>> >>> -- >>> Richard Gaskin >>> Fourth World Systems >>> Software Design and Development for the Desktop, Mobile, and the Web >>> ____________________________________________________________________ >>> Ambassador at FourthWorld.com http://www.FourthWorld.com >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From skiplondon at gmail.com Wed Jul 1 21:38:00 2015 From: skiplondon at gmail.com (Skip Kimpel) Date: Wed, 1 Jul 2015 21:38:00 -0400 Subject: Retrieve email and attachments from Exchange Server In-Reply-To: <3FACB4B0-E40C-48C1-8946-EB1069B3ACD0@gmail.com> References: <55940B6E.5040207@fourthworld.com> <0BDC178F-7CF7-44DA-BCD1-4102D602FFA1@iotecdigital.com> <28609754-FEFA-4525-B0B5-641E1F9A0E82@iotecdigital.com> <3FACB4B0-E40C-48C1-8946-EB1069B3ACD0@gmail.com> Message-ID: Maybe the Gmail API method? https://developers.google.com/gmail/api/ A quick look at that shows to be a RESTful API so I might have a shot at it that way. SKIP > On Jul 1, 2015, at 9:31 PM, Skip Kimpel wrote: > > Bob, > > The good news is I do have administrator rights and what I am writing is an internal business tool and not for public consumption. However, before I invest a significant amount of time playing with this unknown method let me ask the question in a different way..... > > Let's say I create a rule to forward that email to a different email system. Is there a way to do what I am looking to do via Gmail, for instance? Other email service? > > SKIP > > > >> On Jul 1, 2015, at 6:05 PM, Bob Sneidar wrote: >> >> There is this, but it requires user interaction, specifically with a powershelgl authentication dialog. It also has some other pre-requisites that would become insurmountable obstacles if you did not have administrative access to the Exchange server or the workstation executing the powershell. >> >> https://technet.microsoft.com/en-us/library/jj984289%28v=exchg.150%29.aspx >> >> Bob S >> >> >>> On Jul 1, 2015, at 14:59 , Bob Sneidar wrote: >>> >>> You would think that, but you might be mistaken. The contact management Act has specifically stated that in order to get the Act Outlook plugin to work with Outlook, the end user be an administrator. This was not true for older versions of Outlook but it is now. This is because Microsoft way upped the ante on Outlook security specifically to prevent an application from doing exactly what you are trying to do. >>> >>> If the developers of Act cannot find a way around the present restrictions, it is doubtful you will find a way. >>> >>> Bob S >>> >>> >>>> On Jul 1, 2015, at 08:46 , Richard Gaskin wrote: >>>> >>>> Skip Kimpel wrote: >>>> >>>>> I need the ability to tap into an Exchange Server account and grab >>>>> text / attachments from emails sitting in that account. >>>>> >>>>> Can anybody think of a way to do that via LC? >>>> >>>> I don't have an answer but I might have a clue: Since Vista, Windows has become increasingly interesting in enabling interoperability through its PowerShell scripting language. >>>> >>>> There may be a way to dig up relevant PowerShell scripts and call them from LiveCode with the shell function. >>>> >>>> Please let us know what you find. >>>> >>>> -- >>>> Richard Gaskin >>>> Fourth World Systems >>>> Software Design and Development for the Desktop, Mobile, and the Web >>>> ____________________________________________________________________ >>>> Ambassador at FourthWorld.com http://www.FourthWorld.com >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode From pete at lcsql.com Wed Jul 1 21:52:11 2015 From: pete at lcsql.com (Peter Haworth) Date: Thu, 02 Jul 2015 01:52:11 +0000 Subject: menu buttons and showname Message-ID: I've struggled with using the showName property of a menu button pretty much ever since I started using LC and beginning to wonder if I'm missing something. The showName property needs to be true for the the user's selected choice from, for example, an option menu to be displayed. First problem - that's the label not the name. But if the text of the menu happens to be empty, its name is displayed instead of empty which normally isn't something you want to happen. The dictionary says "If the object has a *label* property , the label is displayed instead of the name." but I have not found that to be the case. If a menu button has non-empty text and label and you set the text to empty, its name is displayed, not the label. A good number of my menus are populated in a mouseDown handler with dynamic content which may be empty. My workaround has been to check for empty and either set the button text to space, or set the showName property to false and be sure to set it to true in the menu's menuPick handler. This isn't a huge deal but am I missing something obvious? Wouldn't be the first time. From dunbarx at aol.com Wed Jul 1 23:23:23 2015 From: dunbarx at aol.com (dunbarx at aol.com) Date: Wed, 1 Jul 2015 23:23:23 -0400 Subject: menu buttons and showname In-Reply-To: References: Message-ID: <14e4cca4d12-3a0-310d9@webprd-a108.mail.aol.com> I am misunderstanding. In an option menu, if I have, say, the second line of the text of the button as empty, I get empty in the selected choice. This has nothing to do with the name of the button itself, which does not show itself, nor the state of the show name. This is the behavior of an ordinary button, where if the label is not empty, then that label is shown as the "name" of the button, taking the place of the actual name. What am I missing? Craig -----Original Message----- From: Peter Haworth To: How to use LiveCode Sent: Wed, Jul 1, 2015 9:52 pm Subject: menu buttons and showname I've struggled with using the showName property of a menu button pretty much ever since I started using LC and beginning to wonder if I'm missing something. The showName property needs to be true for the the user's selected choice from, for example, an option menu to be displayed. First problem - that's the label not the name. But if the text of the menu happens to be empty, its name is displayed instead of empty which normally isn't something you want to happen. The dictionary says "If the object has a *label* property , the label is displayed instead of the name." but I have not found that to be the case. If a menu button has non-empty text and label and you set the text to empty, its name is displayed, not the label. A good number of my menus are populated in a mouseDown handler with dynamic content which may be empty. My workaround has been to check for empty and either set the button text to space, or set the showName property to false and be sure to set it to true in the menu's menuPick handler. This isn't a huge deal but am I missing something obvious? Wouldn't be the first time. _______________________________________________ use-livecode mailing list use-livecode at 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 sweattechnologies.com Thu Jul 2 00:19:23 2015 From: monte at sweattechnologies.com (Monte Goulding) Date: Thu, 2 Jul 2015 14:19:23 +1000 Subject: [ANN] Super quick and easy deployment to plugged in iOS devices In-Reply-To: <8AE9DB66-1BA5-4D8A-8369-29A9B022CA81@m-r-d.de> References: <8AE9DB66-1BA5-4D8A-8369-29A9B022CA81@m-r-d.de> Message-ID: > On 1 Jul 2015, at 8:31 pm, Matthias Rebbe | M-R-D wrote: > > And even if i repeat here like a mantra from time to time, but subscribing to your mergExt suite was one of the best decisions I?ve made. You can say that as often as you like Matthias Cheers -- M E R Goulding Software development services Bespoke application development for vertical markets mergExt - There's an external for that! From pete at lcsql.com Thu Jul 2 00:40:37 2015 From: pete at lcsql.com (Peter Haworth) Date: Thu, 02 Jul 2015 04:40:37 +0000 Subject: menu buttons and showname In-Reply-To: <14e4cca4d12-3a0-310d9@webprd-a108.mail.aol.com> References: <14e4cca4d12-3a0-310d9@webprd-a108.mail.aol.com> Message-ID: This happens when the complete text of an option menu is empty, not when a line of the text is empty. On Wed, Jul 1, 2015, 8:23 PM wrote: > > I am misunderstanding. In an option menu, if I have, say, the second line > of the text of the button as empty, I get empty in the selected choice. > This has nothing to do with the name of the button itself, which does not > show itself, nor the state of the show name. > > > This is the behavior of an ordinary button, where if the label is not > empty, then that label is shown as the "name" of the button, taking the > place of the actual name. > > > What am I missing? > > > Craig > > > > -----Original Message----- > From: Peter Haworth > To: How to use LiveCode > Sent: Wed, Jul 1, 2015 9:52 pm > Subject: menu buttons and showname > > > I've struggled with using the showName property of a menu button pretty > much > ever since I started using LC and beginning to wonder if I'm > missing > something. > > The showName property needs to be true for the the user's > selected choice > from, for example, an option menu to be displayed. First > problem - that's > the label not the name. But if the text of the menu happens to > be empty, > its name is displayed instead of empty which normally isn't something > you > want to happen. > > The dictionary says "If the > object > has a *label* > property > , the > label > is > displayed > instead of the name." but I have not found that to be the case. If a > menu > button has non-empty text and label and you set the text to empty, its > name > is displayed, not the label. > > A good number of my menus are populated in > a mouseDown handler with dynamic > content which may be empty. My workaround has > been to check for empty and > either set the button text to space, or set the > showName property to false > and be sure to set it to true in the menu's menuPick > handler. > > This isn't a huge deal but am I missing something obvious? Wouldn't > be the > first > time. > _______________________________________________ > use-livecode mailing > list > use-livecode at lists.runrev.com > Please visit this url to subscribe, > unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From peterwawood at gmail.com Thu Jul 2 00:52:11 2015 From: peterwawood at gmail.com (Peter W A Wood) Date: Thu, 2 Jul 2015 12:52:11 +0800 Subject: Is there a shorter way? Message-ID: I?m accessing objects in another stack with code like this: put "First Group" into Field "Company" of card "CompanyData" of stack "ShareAnalysis" send textChanged to Field "Company" of card "CompanyData" of stack ?ShareAnalysis" Is there a shorter way of achieving this? Even better, is there a way I can store a reference to the Field in a variable and use that instead of Field of Card of Stack? Regards Peter From scott at tactilemedia.com Thu Jul 2 00:57:41 2015 From: scott at tactilemedia.com (Scott Rossi) Date: Wed, 01 Jul 2015 21:57:41 -0700 Subject: Is there a shorter way? In-Reply-To: References: Message-ID: Is there a reason you can't use the long id of the field? Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 7/1/15, 9:52 PM, "Peter W A Wood" wrote: >I?m accessing objects in another stack with code like this: > > put "First Group" into Field "Company" of card "CompanyData" of stack >"ShareAnalysis" > send textChanged to Field "Company" of card "CompanyData" of stack >?ShareAnalysis" > >Is there a shorter way of achieving this? > >Even better, is there a way I can store a reference to the Field in a >variable and use that instead of Field of Card of Stack? > >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 lan.kc.macmail at gmail.com Thu Jul 2 01:43:09 2015 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Thu, 2 Jul 2015 13:43:09 +0800 Subject: [OT] Gravatars? In-Reply-To: <55941D81.6000505@gmail.com> References: <5591A876.9090604@gmail.com> <55920615.2070502@ahsoftware.net> <0F992E18-E5CE-4449-9907-4FD3E357890B@jhj.com> <55921BAF.4000006@ahsoftware.net> <32A142FC-D1C2-4398-84CA-3C46AF85990D@iotecdigital.com> <55941D81.6000505@gmail.com> Message-ID: OK, we'll try and remember Richmond's into melons, not racks. ;-) Hope your money is in a bank other than Eurobank. I understand that 28% of Bulgarian deposits are backed by the Greeks :-( On Thu, Jul 2, 2015 at 1:04 AM, Richmond wrote: > On 01/07/15 18:58, Bob Sneidar wrote: > >> THAT is a NICE RACK! >> > > A wee bit "in yer face" for vegetarians. > isit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From lan.kc.macmail at gmail.com Thu Jul 2 02:09:17 2015 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Thu, 2 Jul 2015 14:09:17 +0800 Subject: how to check for unnecessary local declarations? In-Reply-To: References: <001001d0b404$1d43dd00$57cb9700$@kestner.de> Message-ID: Bob, I think you would need to remove the astrisks otherwise if you have single letter variables (many use them as counters in repeat loops) or words that may appear in other words - lStart, lStartSearch - you could easy miss some. On Thu, Jul 2, 2015 at 5:47 AM, Bob Sneidar wrote: > Seems you could write a handler to do it pretty easily. > > > ? get stack script > ? find ?local ? > ? get word 2 of found line > ? filter with ?*? & word 2 of found line & ?*? > ? count number of lines. if only 1 then delete that line > ? get list of cards > ? repeat for every card > ? get card script > ? what I just said > ? get list of objects on card > ? repeat for every object on card > ? get script of object > ? do I have to repeat myself again?? > > > It might be a little more complicated if you have multiple local variable > declarations, but not much. > > Bob S > > > > On Jul 1, 2015, at 06:44 , Tiemo Hollmann TB > wrote: > > > > Hello, > > > > I am using the strict compilation mode. When working over longer time on > a > > project it regularly happens that I have orphaned local variable > > declarations. > > > > Actually they don't hurt, but I like to keep my code clean and wonder if > > there is any hidden feature, which checks for not any more needed local > > declarations (beside scripting a check myself)? > > > > Thanks > > > > Tiemo > > > > > > > > > > > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jacque at hyperactivesw.com Thu Jul 2 02:17:45 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 02 Jul 2015 01:17:45 -0500 Subject: menu buttons and showname In-Reply-To: References: Message-ID: <5594D789.4020002@hyperactivesw.com> On 7/1/2015 8:52 PM, Peter Haworth wrote: > The showName property needs to be true for the the user's selected choice > from, for example, an option menu to be displayed. First problem - that's > the label not the name. But if the text of the menu happens to be empty, > its name is displayed instead of empty which normally isn't something you > want to happen. The general rule is as the dictionary says: if showname is true and the object has a label, the label is displayed. Otherwise the name is displayed. But option button have dynamic labels that change to reflect the current selection. If there is no text in the button at all, then there can be no selection and therefore there can be no label. Since there is no label, its name is displayed. You'd think combo boxes would do the same thing, but those are a sort of hybrid field/button object and the so-called "label" portion responds like a field, where empty really can be empty. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From lan.kc.macmail at gmail.com Thu Jul 2 02:28:52 2015 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Thu, 2 Jul 2015 14:28:52 +0800 Subject: menu buttons and showname In-Reply-To: References: Message-ID: Peter, I agree with the other here that the behaviour is as I'd expect and works the way I want it to. Can you better explain what it is you are after? Is it you have a button named "Make a Choice" and it's dynamically filled with 0 to umpteen choices, but regardless of whats in there, OR what a user chooses, you always want the button to return back to "Make a Choice" displayed? From lan.kc.macmail at gmail.com Thu Jul 2 02:52:33 2015 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Thu, 2 Jul 2015 14:52:33 +0800 Subject: Is there a shorter way? In-Reply-To: References: Message-ID: On Thu, Jul 2, 2015 at 12:52 PM, Peter W A Wood wrote: > > Is there a shorter way of achieving this? > The smart-alec answer would be text file or as you seem to be referring to a large amount of data, a database ;-) In the Model View Controller way of doing things the data (model) is all in one location so as to avoid the problems you are facing. It wouldn't matter which field (view) was in which group (view) of whatever stack (view), the call (controller) to get the data would be exactly the same. It's why I moved to dbs a long time ago, even simple stacks I use a sqLite db; avoids all these hassles plus you get a host of db bonus features thrown if for free. Probably not what you wanted to hear ;-( From m.schonewille at economy-x-talk.com Thu Jul 2 03:12:11 2015 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Thu, 02 Jul 2015 09:12:11 +0200 Subject: Is there a shorter way? In-Reply-To: References: Message-ID: <5594E44B.70209@economy-x-talk.com> Hi Peter, // put the long id into a variable put "First Group" into Field "Company" of card "CompanyData" of stack "ShareAnalysis" into myLongID put the text of myLongID into mySomeText send "textChanged" to myLongID set the text of myLongID to mySomeText -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ On 7/2/2015 06:52, Peter W A Wood wrote: > I?m accessing objects in another stack with code like this: > > put "First Group" into Field "Company" of card "CompanyData" of stack "ShareAnalysis" > send textChanged to Field "Company" of card "CompanyData" of stack ?ShareAnalysis" > > Is there a shorter way of achieving this? > > Even better, is there a way I can store a reference to the Field in a variable and use that instead of Field of Card of Stack? > > 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 skiplondon at gmail.com Thu Jul 2 06:10:02 2015 From: skiplondon at gmail.com (Skip Kimpel) Date: Thu, 2 Jul 2015 06:10:02 -0400 Subject: Pull down to refresh swipe gesture Message-ID: Good morning, Has anybody created the "pull down to refresh" swipe gesture? I have an app where there is a refresh button on it but during testing I keep seeing users trying to pull down on the screen to achieve the function of refreshing the data. I am assuming it would need to be simulated and would not be native functionality, correct? SKIP From effendi at wanadoo.fr Thu Jul 2 06:20:20 2015 From: effendi at wanadoo.fr (Francis Nugent Dixon) Date: Thu, 2 Jul 2015 12:20:20 +0200 Subject: how to check for unnecessary local declarations? Message-ID: <6FE8C379-F29E-4A27-9280-4DA072C4D7D8@wanadoo.fr> Hi from Beautiful Brittany (where it is raining, and there is a cool breeze, while the rest of France is in the high 30?s :>)) In the same vein, I declare all my variables ?global" in two ways ; the first which will remain when testing is finished (i.e.. passing info outside the script); the others which will be commented out after testing. If I return to this stack at a later date to modify it, I remove the comments until I have finished testing again. Whenever I ?invent? a variable, I always declare it global, either permanent or temporary, and so I cannot end up have unused variables. Declaring all variables as global, especially when I have some math in my scripts, running step by step (debug mode) helps check out my math easily and efficiently. All my variable names begin with ?GV" or ?LV? which helps me not to make mistakes. Its the stupid mistakes which add to development time. Oh ! I forgot ! I sleep little, and so during the night, I plan out my stack development, even to script layout, Next morning I code, and find that I have done much of the debugging in my head, diring the night. Anybody out there got any strange quirks like mine ? (more than 50 years of programming leaves deep scars ?. !!!). -Francis From peterwawood at gmail.com Thu Jul 2 07:09:38 2015 From: peterwawood at gmail.com (Peter W A Wood) Date: Thu, 2 Jul 2015 19:09:38 +0800 Subject: Is there a shorter way? In-Reply-To: <5594E44B.70209@economy-x-talk.com> References: <5594E44B.70209@economy-x-talk.com> Message-ID: > On 2 Jul 2015, at 15:12, Mark Schonewille wrote: > > Hi Peter, > > // put the long id into a variable > put "First Group" into Field "Company" of card "CompanyData" of stack "ShareAnalysis" into myLongID > put the text of myLongID into mySomeText > send "textChanged" to myLongID > set the text of myLongID to mySomeText > > -- > Best regards, > > Mark Schonewille Many thanks Mark. From peterwawood at gmail.com Thu Jul 2 07:10:13 2015 From: peterwawood at gmail.com (Peter W A Wood) Date: Thu, 2 Jul 2015 19:10:13 +0800 Subject: Is there a shorter way? In-Reply-To: References: Message-ID: <848DA727-76DD-4C2D-B432-8951076A5E20@gmail.com> > On 2 Jul 2015, at 12:57, Scott Rossi wrote: > > Is there a reason you can't use the long id of the field? > > Regards, > > Scott Rossi > Creative Director > Tactile Media, UX/UI Design > Thanks for the hint Scott. From peterwawood at gmail.com Thu Jul 2 07:13:53 2015 From: peterwawood at gmail.com (Peter W A Wood) Date: Thu, 2 Jul 2015 19:13:53 +0800 Subject: Is there a shorter way? In-Reply-To: References: Message-ID: <914760FF-2CF0-455C-8B27-FA9EEC227C05@gmail.com> Kay Thanks for the input. I perhaps should have explained more. I am writing a stack to test a stack. The code that I posted was setting a field in the UI of the stack being tested and then activating its on changeText handler. Regards Peter > On 2 Jul 2015, at 14:52, Kay C Lan wrote: > > On Thu, Jul 2, 2015 at 12:52 PM, Peter W A Wood > wrote: > >> >> Is there a shorter way of achieving this? >> > > The smart-alec answer would be text file or as you seem to be referring to > a large amount of data, a database ;-) > > In the Model View Controller way of doing things the data (model) is all in > one location so as to avoid the problems you are facing. It wouldn't matter > which field (view) was in which group (view) of whatever stack (view), the > call (controller) to get the data would be exactly the same. It's why I > moved to dbs a long time ago, even simple stacks I use a sqLite db; avoids > all these hassles plus you get a host of db bonus features thrown if for > free. > > Probably not what you wanted to hear ;-( > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From david at viral.academy Thu Jul 2 10:06:38 2015 From: david at viral.academy (David Bovill) Date: Thu, 2 Jul 2015 16:06:38 +0200 Subject: [ANN] Super quick and easy deployment to plugged in iOS devices In-Reply-To: References: <8AE9DB66-1BA5-4D8A-8369-29A9B022CA81@m-r-d.de> Message-ID: On this topic - what is the best way to get an entire class of learners to be able to put an app they create together onto their tablet / smartphone? On 2 July 2015 at 06:19, Monte Goulding wrote: > > > On 1 Jul 2015, at 8:31 pm, Matthias Rebbe | M-R-D < > matthias_livecode_150811 at m-r-d.de> wrote: > > > > And even if i repeat here like a mantra from time to time, but > subscribing to your mergExt suite was one of the best decisions I?ve made. > > You can say that as often as you like Matthias > > Cheers > > -- > M E R Goulding > Software development services > Bespoke application development for vertical markets > > mergExt - There's an external for that! > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pete at lcsql.com Thu Jul 2 10:46:11 2015 From: pete at lcsql.com (Peter Haworth) Date: Thu, 02 Jul 2015 14:46:11 +0000 Subject: menu buttons and showname In-Reply-To: References: Message-ID: No, I simply want an option menu with empty text display an empty label, not its name property. As mentioned in the original post, I do that now by setting showname to false if the text is empty. On Wed, Jul 1, 2015, 11:29 PM Kay C Lan wrote: > Peter, > > I agree with the other here that the behaviour is as I'd expect and works > the way I want it to. > > Can you better explain what it is you are after? Is it you have a button > named "Make a Choice" and it's dynamically filled with 0 to umpteen > choices, but regardless of whats in there, OR what a user chooses, you > always want the button to return back to "Make a Choice" displayed? > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 2 10:52:52 2015 From: pete at lcsql.com (Peter Haworth) Date: Thu, 02 Jul 2015 14:52:52 +0000 Subject: menu buttons and showname In-Reply-To: <5594D789.4020002@hyperactivesw.com> References: <5594D789.4020002@hyperactivesw.com> Message-ID: So my technique of setting showname to false if the text is empty is the only way round this? Also, you can have a label for an option menu with empty text. Try setting the text of an option menu to empty, then use the message box to set its label to some value. On Wed, Jul 1, 2015, 11:18 PM J. Landman Gay wrote: > On 7/1/2015 8:52 PM, Peter Haworth wrote: > > The showName property needs to be true for the the user's selected choice > > from, for example, an option menu to be displayed. First problem - > that's > > the label not the name. But if the text of the menu happens to be empty, > > its name is displayed instead of empty which normally isn't something you > > want to happen. > > The general rule is as the dictionary says: if showname is true and the > object has a label, the label is displayed. Otherwise the name is > displayed. > > But option button have dynamic labels that change to reflect the current > selection. If there is no text in the button at all, then there can be > no selection and therefore there can be no label. Since there is no > label, its name is displayed. > > You'd think combo boxes would do the same thing, but those are a sort of > hybrid field/button object and the so-called "label" portion responds > like a field, where empty really can be empty. > > -- > 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 iowahengst at mac.com Thu Jul 2 10:53:32 2015 From: iowahengst at mac.com (Randy Hengst) Date: Thu, 02 Jul 2015 09:53:32 -0500 Subject: menu buttons and showname In-Reply-To: References: Message-ID: <14D14DA5-1B59-455F-B576-95779C772409@mac.com> Have you tried adding a blank line to the list of options? I?ve done it that way before? then just set the menuHistory of that option button to the line that is blank. be well, randy Randy Hengst www.classroomFocusedSoftware.com > On Jul 2, 2015, at 9:46 AM, Peter Haworth wrote: > > No, I simply want an option menu with empty text display an empty label, > not its name property. As mentioned in the original post, I do that now by > setting showname to false if the text is empty. > > On Wed, Jul 1, 2015, 11:29 PM Kay C Lan wrote: > >> Peter, >> >> I agree with the other here that the behaviour is as I'd expect and works >> the way I want it to. >> >> Can you better explain what it is you are after? Is it you have a button >> named "Make a Choice" and it's dynamically filled with 0 to umpteen >> choices, but regardless of whats in there, OR what a user chooses, you >> always want the button to return back to "Make a Choice" displayed? >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 2 10:58:57 2015 From: pete at lcsql.com (Peter Haworth) Date: Thu, 02 Jul 2015 14:58:57 +0000 Subject: menu buttons and showname In-Reply-To: <14D14DA5-1B59-455F-B576-95779C772409@mac.com> References: <14D14DA5-1B59-455F-B576-95779C772409@mac.com> Message-ID: Yep, that's one of the things I've done. On Thu, Jul 2, 2015, 7:54 AM Randy Hengst wrote: > Have you tried adding a blank line to the list of options? I?ve done it > that way before? then just set the menuHistory of that option button to the > line that is blank. > > be well, > randy > > Randy Hengst > www.classroomFocusedSoftware.com > > > > On Jul 2, 2015, at 9:46 AM, Peter Haworth wrote: > > > > No, I simply want an option menu with empty text display an empty label, > > not its name property. As mentioned in the original post, I do that now > by > > setting showname to false if the text is empty. > > > > On Wed, Jul 1, 2015, 11:29 PM Kay C Lan > wrote: > > > >> Peter, > >> > >> I agree with the other here that the behaviour is as I'd expect and > works > >> the way I want it to. > >> > >> Can you better explain what it is you are after? Is it you have a button > >> named "Make a Choice" and it's dynamically filled with 0 to umpteen > >> choices, but regardless of whats in there, OR what a user chooses, you > >> always want the button to return back to "Make a Choice" displayed? > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 2 11:28:31 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 02 Jul 2015 08:28:31 -0700 Subject: menu buttons and showname In-Reply-To: References: Message-ID: <5595589F.9000007@fourthworld.com> Peter Haworth wrote: > So my technique of setting showname to false if the text is empty is the > only way round this? > > Also, you can have a label for an option menu with empty text. Try setting > the text of an option menu to empty, then use the message box to set its > label to some value. With the OS X HIGs not nearly as complete as they used to be I can no longer find the relevant section on this, but I believe most HIGs suggest that we avoid giving the user the impression the control may be broken by replacing empty items with some explanation of why it's empty, or perhaps a disabled item simply saying "None". -- 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 Jul 2 11:47:14 2015 From: pete at lcsql.com (Peter Haworth) Date: Thu, 02 Jul 2015 15:47:14 +0000 Subject: menu buttons and showname In-Reply-To: <5595589F.9000007@fourthworld.com> References: <5595589F.9000007@fourthworld.com> Message-ID: Good point. For lots of reasons, the names of my option menus aren't suitable for display to a user. Maybe the cleanest thing to do then is, if the text of the menu is empty, set its label as suggested by Richard. I like that. Most of the menus in question are under the control of a behavior so this is easy to implement. On Thu, Jul 2, 2015, 8:28 AM Richard Gaskin wrote: > Peter Haworth wrote: > > > So my technique of setting showname to false if the text is empty is the > > only way round this? > > > > Also, you can have a label for an option menu with empty text. Try > setting > > the text of an option menu to empty, then use the message box to set its > > label to some value. > > With the OS X HIGs not nearly as complete as they used to be I can no > longer find the relevant section on this, but I believe most HIGs > suggest that we avoid giving the user the impression the control may be > broken by replacing empty items with some explanation of why it's empty, > or perhaps a disabled item simply saying "None". > > -- > 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 Jul 2 12:28:53 2015 From: paul at livecode.org (Paul Hibbert) Date: Thu, 2 Jul 2015 09:28:53 -0700 Subject: Pull down to refresh swipe gesture In-Reply-To: References: Message-ID: Skip, http://lessons.runrev.com/m/4069/l/29603-creating-a-simple-stock-control-application-for-the-ipad (scroll down to "Using Swipe Gestures?). I?ve adapted the LC lesson (link above) for something similar. Of course if you are testing for swipes left and right also, you may need a little more tweaking, but here?s the basics of the script? local sCoordinateArray on touchStart pID ## When the user touches the screen put empty into sCoordinateArray["start"] put empty into sCoordinateArray["end"] end touchStart on touchMove pID, x y if sCoordinateArray["start"] is empty then put y into sCoordinateArray["start"] else put y into sCoordinateArray["end"] end if end touchMove on touchEnd put sCoordinateArray["start"] into tStart put sCoordinateArray["end"] into tEnd ## Compare the x coordinates of the start and end point ## This tells us the direction of the movement if tStart is not empty and tEnd is not empty then if tStart < tEnd and tEnd - tStart > 100 then swipeDown else if tStart > tEnd and tStart - tEnd > 100 then swipeUp end if end if put empty into sCoordinateArray["start"] put empty into sCoordinateArray["end"] end touchEnd on swipeDown answer "Swipe Down!" end swipeDown on swipeUp answer "Swipe Up!" end swipeUp Paul > On Jul 2, 2015, at 03:10, Skip Kimpel wrote: > > Good morning, > > Has anybody created the "pull down to refresh" swipe gesture? I have an app where there is a refresh button on it but during testing I keep seeing users trying to pull down on the screen to achieve the function of refreshing the data. > > I am assuming it would need to be simulated and would not be native functionality, correct? > > SKIP > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 2 12:58:21 2015 From: scott at tactilemedia.com (Scott Rossi) Date: Thu, 02 Jul 2015 09:58:21 -0700 Subject: menu buttons and showname In-Reply-To: References: <5595589F.9000007@fourthworld.com> Message-ID: Often, this type of control has a call to action such as "Choose an item", as opposed an indication "No selection". It depends on the context of your control. If a selection is required in your set up, the call to action is more communicative. Otherwise, if "No selection" is a valid selection then that type of message should work. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 7/2/15, 8:47 AM, "Peter Haworth" wrote: >Good point. For lots of reasons, the names of my option menus aren't >suitable for display to a user. Maybe the cleanest thing to do then is, if >the text of the menu is empty, set its label as suggested by Richard. I >like that. Most of the menus in question are under the control of a >behavior so this is easy to implement. > >On Thu, Jul 2, 2015, 8:28 AM Richard Gaskin >wrote: > >> Peter Haworth wrote: >> >> > So my technique of setting showname to false if the text is empty is >>the >> > only way round this? >> > >> > Also, you can have a label for an option menu with empty text. Try >> setting >> > the text of an option menu to empty, then use the message box to set >>its >> > label to some value. >> >> With the OS X HIGs not nearly as complete as they used to be I can no >> longer find the relevant section on this, but I believe most HIGs >> suggest that we avoid giving the user the impression the control may be >> broken by replacing empty items with some explanation of why it's empty, >> or perhaps a disabled item simply saying "None". >> >> -- >> 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 ambassador at fourthworld.com Thu Jul 2 13:35:22 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 02 Jul 2015 10:35:22 -0700 Subject: menu buttons and showname In-Reply-To: References: Message-ID: <5595765A.6060903@fourthworld.com> Scott Rossi wrote: > Often, this type of control has a call to action such as "Choose an > item", as opposed an indication "No selection". It depends on the > context of your control. It does, and I wish more Web designers understood that. ;) This became popular with form designers where they need to avoid having a default answer, indicating that some action must be taken for a control that requires a value. But over the years I've seen many forms where that lead-in entry is used instead of a having any descriptive label next to it, and often without error-checking to ensure some other value was chosen anyway so they've made it useless in spite of themselves. -- 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 Jul 2 15:59:06 2015 From: pete at lcsql.com (Peter Haworth) Date: Thu, 02 Jul 2015 19:59:06 +0000 Subject: menu buttons and showname In-Reply-To: References: <5595589F.9000007@fourthworld.com> Message-ID: Interesting observation Scott. Makes me wonder if I'm actually using the correct type of menu. For example, I might have an option menu which lists the names of tables in a database and another one that lists the columns in the selected table. There's no "call to action" in that situation (other than to pick a table and a column), so is an option menu the correct type of control according to HIG? On Thu, Jul 2, 2015 at 10:00 AM Scott Rossi wrote: > Often, this type of control has a call to action such as "Choose an item", > as opposed an indication "No selection". It depends on the context of > your control. If a selection is required in your set up, the call to > action is more communicative. Otherwise, if "No selection" is a valid > selection then that type of message should work. > > Regards, > > Scott Rossi > Creative Director > Tactile Media, UX/UI Design > > > > > On 7/2/15, 8:47 AM, "Peter Haworth" wrote: > > >Good point. For lots of reasons, the names of my option menus aren't > >suitable for display to a user. Maybe the cleanest thing to do then is, if > >the text of the menu is empty, set its label as suggested by Richard. I > >like that. Most of the menus in question are under the control of a > >behavior so this is easy to implement. > > > >On Thu, Jul 2, 2015, 8:28 AM Richard Gaskin > >wrote: > > > >> Peter Haworth wrote: > >> > >> > So my technique of setting showname to false if the text is empty is > >>the > >> > only way round this? > >> > > >> > Also, you can have a label for an option menu with empty text. Try > >> setting > >> > the text of an option menu to empty, then use the message box to set > >>its > >> > label to some value. > >> > >> With the OS X HIGs not nearly as complete as they used to be I can no > >> longer find the relevant section on this, but I believe most HIGs > >> suggest that we avoid giving the user the impression the control may be > >> broken by replacing empty items with some explanation of why it's empty, > >> or perhaps a disabled item simply saying "None". > >> > >> -- > >> Richard Gaskin > >> Fourth World Systems > >> Software Design and Development for the Desktop, Mobile, and the Web > >> ____________________________________________________________________ > >> Ambassador at FourthWorld.com http://www.FourthWorld.com > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > >_______________________________________________ > >use-livecode mailing list > >use-livecode at lists.runrev.com > >Please visit this url to subscribe, unsubscribe and manage your > >subscription preferences: > >http://lists.runrev.com/mailman/listinfo/use-livecode > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From scott at tactilemedia.com Thu Jul 2 16:17:33 2015 From: scott at tactilemedia.com (Scott Rossi) Date: Thu, 02 Jul 2015 13:17:33 -0700 Subject: menu buttons and showname In-Reply-To: References: <5595589F.9000007@fourthworld.com> Message-ID: As far as there being a "correct type of control", that's open to endless debate. :-) >From what you describe, there doesn't seem to be a need for a call to action -- this was suggested simply to address the case that a selection MUST be made for things to work. Since this doesn't seem to be relevant in your situation, I would imagine you'd display a default option as the control label. The bigger issue is why you have an empty option at all. If that's a setting that a user can implement, the option should read something like "" or "" or similar. If the empty value is something pulled from a table that can't be acted upon, there's no need to include it in the list of options. As always, I may be missing something. :-) Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 7/2/15, 12:59 PM, "Peter Haworth" wrote: >Interesting observation Scott. Makes me wonder if I'm actually using the >correct type of menu. > >For example, I might have an option menu which lists the names of tables >in >a database and another one that lists the columns in the selected table. >There's no "call to action" in that situation (other than to pick a table >and a column), so is an option menu the correct type of control according >to HIG? > >On Thu, Jul 2, 2015 at 10:00 AM Scott Rossi >wrote: > >> Often, this type of control has a call to action such as "Choose an >>item", >> as opposed an indication "No selection". It depends on the context of >> your control. If a selection is required in your set up, the call to >> action is more communicative. Otherwise, if "No selection" is a valid >> selection then that type of message should work. >> >> Regards, >> >> Scott Rossi >> Creative Director >> Tactile Media, UX/UI Design >> >> >> >> >> On 7/2/15, 8:47 AM, "Peter Haworth" wrote: >> >> >Good point. For lots of reasons, the names of my option menus aren't >> >suitable for display to a user. Maybe the cleanest thing to do then >>is, if >> >the text of the menu is empty, set its label as suggested by Richard. I >> >like that. Most of the menus in question are under the control of a >> >behavior so this is easy to implement. >> > >> >On Thu, Jul 2, 2015, 8:28 AM Richard Gaskin >> >> >wrote: >> > >> >> Peter Haworth wrote: >> >> >> >> > So my technique of setting showname to false if the text is empty >>is >> >>the >> >> > only way round this? >> >> > >> >> > Also, you can have a label for an option menu with empty text. Try >> >> setting >> >> > the text of an option menu to empty, then use the message box to >>set >> >>its >> >> > label to some value. >> >> >> >> With the OS X HIGs not nearly as complete as they used to be I can no >> >> longer find the relevant section on this, but I believe most HIGs >> >> suggest that we avoid giving the user the impression the control may >>be >> >> broken by replacing empty items with some explanation of why it's >>empty, >> >> or perhaps a disabled item simply saying "None". >> >> >> >> -- >> >> Richard Gaskin >> >> Fourth World Systems >> >> Software Design and Development for the Desktop, Mobile, and the >>Web >> >> >>____________________________________________________________________ >> >> Ambassador at FourthWorld.com >>http://www.FourthWorld.com >> >> >> >> _______________________________________________ >> >> use-livecode mailing list >> >> use-livecode at lists.runrev.com >> >> Please visit this url to subscribe, unsubscribe and manage your >> >> subscription preferences: >> >> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> >_______________________________________________ >> >use-livecode mailing list >> >use-livecode at lists.runrev.com >> >Please visit this url to subscribe, unsubscribe and manage your >> >subscription preferences: >> >http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> >_______________________________________________ >use-livecode mailing list >use-livecode at 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 Jul 2 16:35:22 2015 From: pete at lcsql.com (Peter Haworth) Date: Thu, 2 Jul 2015 13:35:22 -0700 Subject: menu buttons and showname In-Reply-To: References: <5595589F.9000007@fourthworld.com> Message-ID: Don't think you're missing anything. The example of table/column menus doesn't illustrate the original question I had since it's pretty much impossible to have a db without tables or a table without column. Maybe a better example of the empty menu might be one menu with a list of customers and a second menu of invoice numbers for the selected customer. It's possible that the selected customer would not have any invoices yet so the second menu would be empty. Once again, no call to action but I like the idea of displaying "No invoices" or something similar. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Thu, Jul 2, 2015 at 1:17 PM, Scott Rossi wrote: > As far as there being a "correct type of control", that's open to endless > debate. :-) > > From what you describe, there doesn't seem to be a need for a call to > action -- this was suggested simply to address the case that a selection > MUST be made for things to work. Since this doesn't seem to be relevant > in your situation, I would imagine you'd display a default option as the > control label. > > The bigger issue is why you have an empty option at all. If that's a > setting that a user can implement, the option should read something like > "" or "" or similar. If the empty value is something > pulled from a table that can't be acted upon, there's no need to include > it in the list of options. > > As always, I may be missing something. :-) > > Regards, > > Scott Rossi > Creative Director > Tactile Media, UX/UI Design > > > > > On 7/2/15, 12:59 PM, "Peter Haworth" wrote: > > >Interesting observation Scott. Makes me wonder if I'm actually using the > >correct type of menu. > > > >For example, I might have an option menu which lists the names of tables > >in > >a database and another one that lists the columns in the selected table. > >There's no "call to action" in that situation (other than to pick a table > >and a column), so is an option menu the correct type of control according > >to HIG? > > > >On Thu, Jul 2, 2015 at 10:00 AM Scott Rossi > >wrote: > > > >> Often, this type of control has a call to action such as "Choose an > >>item", > >> as opposed an indication "No selection". It depends on the context of > >> your control. If a selection is required in your set up, the call to > >> action is more communicative. Otherwise, if "No selection" is a valid > >> selection then that type of message should work. > >> > >> Regards, > >> > >> Scott Rossi > >> Creative Director > >> Tactile Media, UX/UI Design > >> > >> > >> > >> > >> On 7/2/15, 8:47 AM, "Peter Haworth" wrote: > >> > >> >Good point. For lots of reasons, the names of my option menus aren't > >> >suitable for display to a user. Maybe the cleanest thing to do then > >>is, if > >> >the text of the menu is empty, set its label as suggested by Richard. I > >> >like that. Most of the menus in question are under the control of a > >> >behavior so this is easy to implement. > >> > > >> >On Thu, Jul 2, 2015, 8:28 AM Richard Gaskin > >> > >> >wrote: > >> > > >> >> Peter Haworth wrote: > >> >> > >> >> > So my technique of setting showname to false if the text is empty > >>is > >> >>the > >> >> > only way round this? > >> >> > > >> >> > Also, you can have a label for an option menu with empty text. Try > >> >> setting > >> >> > the text of an option menu to empty, then use the message box to > >>set > >> >>its > >> >> > label to some value. > >> >> > >> >> With the OS X HIGs not nearly as complete as they used to be I can no > >> >> longer find the relevant section on this, but I believe most HIGs > >> >> suggest that we avoid giving the user the impression the control may > >>be > >> >> broken by replacing empty items with some explanation of why it's > >>empty, > >> >> or perhaps a disabled item simply saying "None". > >> >> > >> >> -- > >> >> Richard Gaskin > >> >> Fourth World Systems > >> >> Software Design and Development for the Desktop, Mobile, and the > >>Web > >> >> > >>____________________________________________________________________ > >> >> Ambassador at FourthWorld.com > >>http://www.FourthWorld.com > >> >> > >> >> _______________________________________________ > >> >> use-livecode mailing list > >> >> use-livecode at lists.runrev.com > >> >> Please visit this url to subscribe, unsubscribe and manage your > >> >> subscription preferences: > >> >> http://lists.runrev.com/mailman/listinfo/use-livecode > >> >> > >> >_______________________________________________ > >> >use-livecode mailing list > >> >use-livecode at lists.runrev.com > >> >Please visit this url to subscribe, unsubscribe and manage your > >> >subscription preferences: > >> >http://lists.runrev.com/mailman/listinfo/use-livecode > >> > >> > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > >_______________________________________________ > >use-livecode mailing list > >use-livecode at lists.runrev.com > >Please visit this url to subscribe, unsubscribe and manage your > >subscription preferences: > >http://lists.runrev.com/mailman/listinfo/use-livecode > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 2 17:03:21 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 2 Jul 2015 21:03:21 +0000 Subject: Combo Box Display Oddity In-Reply-To: <9158584F-4120-456B-A2F2-1FF22B09116B@livecode.org> References: <9158584F-4120-456B-A2F2-1FF22B09116B@livecode.org> Message-ID: 6.7.2 on 10.10.3. Bob S > On Jul 1, 2015, at 17:54 , Paul Hibbert wrote: > > I?m not seeing this on Yosemite with LC 7.0.6 (rc3), what LC version and system are you seeing this on? > > FWIW, I don?t see this as desired behaviour. > > Paul > >> On Jul 1, 2015, at 17:01, Bob Sneidar wrote: >> >> Here?s an odd one. An opaque combo box becomes transparent when disabled and the background shows through. The quick fix is to set the blending to srcOrReverse, but why should I have to? Not complaining just asking if anyone else can reproduce this, and is this the desired behavior? >> >> Bob S >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Thu Jul 2 17:10:40 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 2 Jul 2015 21:10:40 +0000 Subject: Retrieve email and attachments from Exchange Server In-Reply-To: <3FACB4B0-E40C-48C1-8946-EB1069B3ACD0@gmail.com> References: <55940B6E.5040207@fourthworld.com> <0BDC178F-7CF7-44DA-BCD1-4102D602FFA1@iotecdigital.com> <28609754-FEFA-4525-B0B5-641E1F9A0E82@iotecdigital.com> <3FACB4B0-E40C-48C1-8946-EB1069B3ACD0@gmail.com> Message-ID: <49C311AC-4D6D-4DAE-B6A5-43B4CC9F3916@iotecdigital.com> The problem is encryption. You can shell this, but you need to read up on how to use the command line to telnet into an exchange server, and to complicate things, Microsoft made some significant changes in how to communicate with SMTP over telnet, so there are articles strewn about the internet that are outdated. Also, Microsoft recently deprecated some older ciphers. The quick fix is to set up an SMTP relay on a server (or workstation) that you do control, then configure that relay?s outside connection to use TLS, and leave the inside open. Then you can communicate with the internal relay without any problem or fear of security issues. This does not prevent someone on your LAN however, from intercepting your non-encrypted traffic with your relay, so this would not be a good choice, say for a medical application. Bob S > On Jul 1, 2015, at 18:31 , Skip Kimpel wrote: > > Bob, > > The good news is I do have administrator rights and what I am writing is an internal business tool and not for public consumption. However, before I invest a significant amount of time playing with this unknown method let me ask the question in a different way..... > > Let's say I create a rule to forward that email to a different email system. Is there a way to do what I am looking to do via Gmail, for instance? Other email service? > > SKIP > > > >> On Jul 1, 2015, at 6:05 PM, Bob Sneidar wrote: >> >> There is this, but it requires user interaction, specifically with a powershelgl authentication dialog. It also has some other pre-requisites that would become insurmountable obstacles if you did not have administrative access to the Exchange server or the workstation executing the powershell. >> >> https://technet.microsoft.com/en-us/library/jj984289%28v=exchg.150%29.aspx >> >> Bob S >> >> >>> On Jul 1, 2015, at 14:59 , Bob Sneidar wrote: >>> >>> You would think that, but you might be mistaken. The contact management Act has specifically stated that in order to get the Act Outlook plugin to work with Outlook, the end user be an administrator. This was not true for older versions of Outlook but it is now. This is because Microsoft way upped the ante on Outlook security specifically to prevent an application from doing exactly what you are trying to do. >>> >>> If the developers of Act cannot find a way around the present restrictions, it is doubtful you will find a way. >>> >>> Bob S >>> >>> >>>> On Jul 1, 2015, at 08:46 , Richard Gaskin wrote: >>>> >>>> Skip Kimpel wrote: >>>> >>>>> I need the ability to tap into an Exchange Server account and grab >>>>> text / attachments from emails sitting in that account. >>>>> >>>>> Can anybody think of a way to do that via LC? >>>> >>>> I don't have an answer but I might have a clue: Since Vista, Windows has become increasingly interesting in enabling interoperability through its PowerShell scripting language. >>>> >>>> There may be a way to dig up relevant PowerShell scripts and call them from LiveCode with the shell function. >>>> >>>> Please let us know what you find. >>>> >>>> -- >>>> Richard Gaskin >>>> Fourth World Systems >>>> Software Design and Development for the Desktop, Mobile, and the Web >>>> ____________________________________________________________________ >>>> Ambassador at FourthWorld.com http://www.FourthWorld.com >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 2 17:13:29 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 2 Jul 2015 21:13:29 +0000 Subject: [OT] Gravatars? In-Reply-To: References: <5591A876.9090604@gmail.com> <55920615.2070502@ahsoftware.net> <0F992E18-E5CE-4449-9907-4FD3E357890B@jhj.com> <55921BAF.4000006@ahsoftware.net> <32A142FC-D1C2-4398-84CA-3C46AF85990D@iotecdigital.com> <55941D81.6000505@gmail.com> Message-ID: <5701D6DC-0626-46E9-8ED6-A81DF2DAE5D3@iotecdigital.com> One world banking system anyone? I seem to recall reading about how this might come about somewhere? Bob S > On Jul 1, 2015, at 22:43 , Kay C Lan wrote: > > OK, we'll try and remember Richmond's into melons, not racks. ;-) > > Hope your money is in a bank other than Eurobank. I understand that 28% of > Bulgarian deposits are backed by the Greeks :-( > > On Thu, Jul 2, 2015 at 1:04 AM, Richmond > wrote: > >> On 01/07/15 18:58, Bob Sneidar wrote: >> >>> THAT is a NICE RACK! >>> >> >> A wee bit "in yer face" for vegetarians. >> isit this url to subscribe, unsubscribe and manage your subscription >> preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 2 17:18:52 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 2 Jul 2015 21:18:52 +0000 Subject: how to check for unnecessary local declarations? In-Reply-To: References: <001001d0b404$1d43dd00$57cb9700$@kestner.de> Message-ID: <68A05D7B-9479-4415-8791-B70104F871B6@iotecdigital.com> If you remove the asterisks, you would fail to find any code that uses the variable. Only lines containing *JUST* the variable name would be found, which wouldn?t work. You could add code to analyze the line by replacing ?(? and ?) with space, then filter for ?*? && variableName && ?*?. Words at the end of the line would not be found however, so you would have to also filter for ?*? && variableName. Bob S > On Jul 1, 2015, at 23:09 , Kay C Lan wrote: > > Bob, I think you would need to remove the astrisks otherwise if you have > single letter variables (many use them as counters in repeat loops) or > words that may appear in other words - lStart, lStartSearch - you could > easy miss some. > > > > On Thu, Jul 2, 2015 at 5:47 AM, Bob Sneidar > wrote: > >> Seems you could write a handler to do it pretty easily. >> >> >> ? get stack script >> ? find ?local ? >> ? get word 2 of found line >> ? filter with ?*? & word 2 of found line & ?*? >> ? count number of lines. if only 1 then delete that line >> ? get list of cards >> ? repeat for every card >> ? get card script >> ? what I just said >> ? get list of objects on card >> ? repeat for every object on card >> ? get script of object >> ? do I have to repeat myself again?? >> >> >> It might be a little more complicated if you have multiple local variable >> declarations, but not much. >> >> Bob S >> >> >>> On Jul 1, 2015, at 06:44 , Tiemo Hollmann TB >> wrote: >>> >>> Hello, >>> >>> I am using the strict compilation mode. When working over longer time on >> a >>> project it regularly happens that I have orphaned local variable >>> declarations. >>> >>> Actually they don't hurt, but I like to keep my code clean and wonder if >>> there is any hidden feature, which checks for not any more needed local >>> declarations (beside scripting a check myself)? >>> >>> Thanks >>> >>> Tiemo >>> >>> >>> >>> >>> >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 2 17:22:07 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 02 Jul 2015 14:22:07 -0700 Subject: how to check for unnecessary local declarations? In-Reply-To: <6FE8C379-F29E-4A27-9280-4DA072C4D7D8@wanadoo.fr> References: <6FE8C379-F29E-4A27-9280-4DA072C4D7D8@wanadoo.fr> Message-ID: <5595AB7F.5000501@fourthworld.com> Francis Nugent Dixon wrote: > I sleep little, and so during the night, I plan out my stack > development, even to script layout, Next morning I code, and > find that I have done much of the debugging in my head, during > the night. > > Anybody out there got any strange quirks like mine ? I've had surprisingly good luck with that myself. -- 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 Jul 2 17:30:18 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 2 Jul 2015 21:30:18 +0000 Subject: how to check for unnecessary local declarations? In-Reply-To: <6FE8C379-F29E-4A27-9280-4DA072C4D7D8@wanadoo.fr> References: <6FE8C379-F29E-4A27-9280-4DA072C4D7D8@wanadoo.fr> Message-ID: <4F2FC915-C9A2-49C7-8448-A3300A58239A@iotecdigital.com> Globals are problematic for me as I design stacks and cards to be modular, so two stacks with the same utility card for example, would be sharing globals. Instead, if I need persistent data, I use properties. I also do not use strict compilation. I have a naming system that prevents my ever using the same variable twice for different things in the same handler. Even in loops that use a counter, the counter variable is very specifically named. That being said, it occurs to me that the GLX2 script editor knows what is a variable because it color codes them, and also keeps track of them for the clairvoyance feature. Crack that code open to see how they do it, and that should give you a great way of tracking them yourself. Bob S > On Jul 2, 2015, at 03:20 , Francis Nugent Dixon wrote: > > Hi from Beautiful Brittany (where it is raining, and there is a cool breeze, > while the rest of France is in the high 30?s :>)) > > In the same vein, > > I declare all my variables ?global" in two ways ; the first which will remain > when testing is finished (i.e.. passing info outside the script); the others > which will be commented out after testing. If I return to this stack at a > later date to modify it, I remove the comments until I have finished testing > again. Whenever I ?invent? a variable, I always declare it global, either permanent > or temporary, and so I cannot end up have unused variables. > Declaring all variables as global, especially when I have some math in my > scripts, running step by step (debug mode) helps check out my math > easily and efficiently. > All my variable names begin with ?GV" or ?LV? which helps me not to make > mistakes. Its the stupid mistakes which add to development time. > > Oh ! I forgot ! I sleep little, and so during the night, I plan out my stack > development, even to script layout, Next morning I code, and find that I > have done much of the debugging in my head, diring the night. > > Anybody out there got any strange quirks like mine ? (more than 50 years > of programming leaves deep scars ?. !!!). > > -Francis > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 2 17:31:50 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 2 Jul 2015 21:31:50 +0000 Subject: Is there a shorter way? In-Reply-To: <914760FF-2CF0-455C-8B27-FA9EEC227C05@gmail.com> References: <914760FF-2CF0-455C-8B27-FA9EEC227C05@gmail.com> Message-ID: <679D0230-E05C-44C7-8D92-3C2EE9D553FC@iotecdigital.com> You mean textChanged don?t you? Probably just a typo. Bob S On Jul 2, 2015, at 04:13 , Peter W A Wood > wrote: then activating its on changeText handler From bobsneidar at iotecdigital.com Thu Jul 2 17:36:11 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 2 Jul 2015 21:36:11 +0000 Subject: menu buttons and showname In-Reply-To: <5595589F.9000007@fourthworld.com> References: <5595589F.9000007@fourthworld.com> Message-ID: <1D80FAA3-8072-44D2-B9D5-259CCA235274@iotecdigital.com> What might be handy is some kind of ?useTooltipIfEmpty? property. Then the end user would not need to parse the text to eliminate the ?call to action? from the real data before working with it, t hen adding the ?call to action? back when done. Bob S > On Jul 2, 2015, at 08:28 , Richard Gaskin wrote: > > Peter Haworth wrote: > >> So my technique of setting showname to false if the text is empty is the >> only way round this? >> >> Also, you can have a label for an option menu with empty text. Try setting >> the text of an option menu to empty, then use the message box to set its >> label to some value. > > With the OS X HIGs not nearly as complete as they used to be I can no longer find the relevant section on this, but I believe most HIGs suggest that we avoid giving the user the impression the control may be broken by replacing empty items with some explanation of why it's empty, or perhaps a disabled item simply saying "None". > > -- > 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 bobsneidar at iotecdigital.com Thu Jul 2 17:38:36 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 2 Jul 2015 21:38:36 +0000 Subject: menu buttons and showname In-Reply-To: References: <5595589F.9000007@fourthworld.com> Message-ID: <553309B4-DE54-45A5-8165-16AFB6C0372A@iotecdigital.com> Because if you don?t set the label to empty, then the name of the control is displayed as the default choice. It looks like crap, and irritated me, so as a quick fix, I set mine to empty as well. There are times when there is no default choice, that any choice is as viable as the rest. Bob S > On Jul 2, 2015, at 13:17 , Scott Rossi wrote: > > As far as there being a "correct type of control", that's open to endless > debate. :-) > > From what you describe, there doesn't seem to be a need for a call to > action -- this was suggested simply to address the case that a selection > MUST be made for things to work. Since this doesn't seem to be relevant > in your situation, I would imagine you'd display a default option as the > control label. > > The bigger issue is why you have an empty option at all. If that's a > setting that a user can implement, the option should read something like > "" or "" or similar. If the empty value is something > pulled from a table that can't be acted upon, there's no need to include > it in the list of options. > > As always, I may be missing something. :-) > > Regards, > > Scott Rossi > Creative Director > Tactile Media, UX/UI Design > > > > > On 7/2/15, 12:59 PM, "Peter Haworth" wrote: > >> Interesting observation Scott. Makes me wonder if I'm actually using the >> correct type of menu. >> >> For example, I might have an option menu which lists the names of tables >> in >> a database and another one that lists the columns in the selected table. >> There's no "call to action" in that situation (other than to pick a table >> and a column), so is an option menu the correct type of control according >> to HIG? >> >> On Thu, Jul 2, 2015 at 10:00 AM Scott Rossi >> wrote: >> >>> Often, this type of control has a call to action such as "Choose an >>> item", >>> as opposed an indication "No selection". It depends on the context of >>> your control. If a selection is required in your set up, the call to >>> action is more communicative. Otherwise, if "No selection" is a valid >>> selection then that type of message should work. >>> >>> Regards, >>> >>> Scott Rossi >>> Creative Director >>> Tactile Media, UX/UI Design >>> >>> >>> >>> >>> On 7/2/15, 8:47 AM, "Peter Haworth" wrote: >>> >>>> Good point. For lots of reasons, the names of my option menus aren't >>>> suitable for display to a user. Maybe the cleanest thing to do then >>> is, if >>>> the text of the menu is empty, set its label as suggested by Richard. I >>>> like that. Most of the menus in question are under the control of a >>>> behavior so this is easy to implement. >>>> >>>> On Thu, Jul 2, 2015, 8:28 AM Richard Gaskin >>> >>>> wrote: >>>> >>>>> Peter Haworth wrote: >>>>> >>>>>> So my technique of setting showname to false if the text is empty >>> is >>>>> the >>>>>> only way round this? >>>>>> >>>>>> Also, you can have a label for an option menu with empty text. Try >>>>> setting >>>>>> the text of an option menu to empty, then use the message box to >>> set >>>>> its >>>>>> label to some value. >>>>> >>>>> With the OS X HIGs not nearly as complete as they used to be I can no >>>>> longer find the relevant section on this, but I believe most HIGs >>>>> suggest that we avoid giving the user the impression the control may >>> be >>>>> broken by replacing empty items with some explanation of why it's >>> empty, >>>>> or perhaps a disabled item simply saying "None". >>>>> >>>>> -- >>>>> Richard Gaskin >>>>> Fourth World Systems >>>>> Software Design and Development for the Desktop, Mobile, and the >>> Web >>>>> >>> ____________________________________________________________________ >>>>> Ambassador at FourthWorld.com >>> http://www.FourthWorld.com >>>>> >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>> subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 sweattechnologies.com Thu Jul 2 19:13:28 2015 From: monte at sweattechnologies.com (Monte Goulding) Date: Fri, 3 Jul 2015 09:13:28 +1000 Subject: [ANN] Super quick and easy deployment to plugged in iOS devices In-Reply-To: References: <8AE9DB66-1BA5-4D8A-8369-29A9B022CA81@m-r-d.de> Message-ID: > On 3 Jul 2015, at 12:06 am, David Bovill wrote: > > On this topic - what is the best way to get an entire class of learners to > be able to put an app they create together onto their tablet / smartphone? If they are on android you can just put it in dropbox and share the url -- M E R Goulding Software development services Bespoke application development for vertical markets mergExt - There's an external for that! From bobsneidar at iotecdigital.com Thu Jul 2 19:41:23 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 2 Jul 2015 23:41:23 +0000 Subject: [ANN] Super quick and easy deployment to plugged in iOS devices In-Reply-To: References: <8AE9DB66-1BA5-4D8A-8369-29A9B022CA81@m-r-d.de> Message-ID: <69D7A224-FA71-497D-AC22-09D475FF2813@iotecdigital.com> In which case all your data are belonging to us. ;-) Bob S > On Jul 2, 2015, at 16:13 , Monte Goulding wrote: > > >> On 3 Jul 2015, at 12:06 am, David Bovill wrote: >> >> On this topic - what is the best way to get an entire class of learners to >> be able to put an app they create together onto their tablet / smartphone? > > If they are on android you can just put it in dropbox and share the url > > -- > M E R Goulding > Software development services > Bespoke application development for vertical markets > > mergExt - There's an external for that! > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at livecode.org Thu Jul 2 20:22:14 2015 From: paul at livecode.org (Paul Hibbert) Date: Thu, 2 Jul 2015 17:22:14 -0700 Subject: Combo Box Display Oddity In-Reply-To: References: <9158584F-4120-456B-A2F2-1FF22B09116B@livecode.org> Message-ID: Just tried on LC 6.7.6 and OS X 10.10.4 and with a little deeper testing I now see what you mean. Originally I placed a Combo Box Button over an orange coloured graphic and the ?Box? part stayed white while the ?Tip? went partially transparent when disabled, that didn?t look too bad, but, now I just tried applying a green colour to the card and even though the Combo Box Button was over the top of the orange graphic, the text area now takes on the green colour of the card when it is disabled, that does look odd. On the plus side, if you apply a white fill colour to the Combo Box Button the problem goes away. I?m not too sure LC will see it as a bug, but I think it is, it also happens in LC 7.0.6 (rc3), so it?s worth reporting, if you don?t want to, just let me know and I?ll upload my test stack. Paul > On Jul 2, 2015, at 14:03, Bob Sneidar wrote: > > 6.7.2 on 10.10.3. > > Bob S > > >> On Jul 1, 2015, at 17:54 , Paul Hibbert wrote: >> >> I?m not seeing this on Yosemite with LC 7.0.6 (rc3), what LC version and system are you seeing this on? >> >> FWIW, I don?t see this as desired behaviour. >> >> Paul >> >>> On Jul 1, 2015, at 17:01, Bob Sneidar wrote: >>> >>> Here?s an odd one. An opaque combo box becomes transparent when disabled and the background shows through. The quick fix is to set the blending to srcOrReverse, but why should I have to? Not complaining just asking if anyone else can reproduce this, and is this the desired behavior? >>> >>> 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 > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode Regards, Paul Hibbert paul at livecode.org From scott at elementarysoftware.com Thu Jul 2 20:53:54 2015 From: scott at elementarysoftware.com (Scott Morrow) Date: Thu, 2 Jul 2015 17:53:54 -0700 Subject: [ANN] Super quick and easy deployment to plugged in iOS devices In-Reply-To: References: Message-ID: <5BF3E657-8B82-4F25-AD7D-7C4C64100C33@elementarysoftware.com> Monte, The amount of time (and mouseclicks) mergdeploy has saved me in just one day is fantastic! I?m with Matthias. Subscribing to your mergExt collection is a decision I continue to be very pleased with. Thanks. ? Scott Morrow Elementary Software (Now with 20% less chalk dust!) web http://elementarysoftware.com/ email scott at elementarysoftware.com office 1-800-615-0867 ------------------------------------------------------ > On 1 Jul 2015, at 8:31 pm, Matthias Rebbe | M-R-D wrote: > > > And even if i repeat here like a mantra from time to time, but subscribing to your mergExt suite was one of the best decisions I?ve made. > > Regards, > > Matthias > >> On Jun 29, 2015, at 9:50 PM, Monte Goulding wrote: >> > >> You can then click the Test button and it will install onto your device. Great for rapidly testing on a device where it counts. >> >> This new plugin is available from mergExt.com for $9 or bundled in mergExt Complete which is now $940 worth of products for $299. >> >> See http://mergext.com/plugins/mergdeploy/ for more info. >> >> Cheers >> >> Monte >> >> -- >> M E R Goulding >> Software development services >> Bespoke application development for vertical markets >> >> mergExt - There's an external for that! From monte at sweattechnologies.com Thu Jul 2 20:58:05 2015 From: monte at sweattechnologies.com (Monte Goulding) Date: Fri, 3 Jul 2015 10:58:05 +1000 Subject: [ANN] Super quick and easy deployment to plugged in iOS devices In-Reply-To: <5BF3E657-8B82-4F25-AD7D-7C4C64100C33@elementarysoftware.com> References: <5BF3E657-8B82-4F25-AD7D-7C4C64100C33@elementarysoftware.com> Message-ID: > On 3 Jul 2015, at 10:53 am, Scott Morrow wrote: > > The amount of time (and mouseclicks) mergdeploy has saved me in just one day is fantastic! I?m with Matthias. Subscribing to your mergExt collection is a decision I continue to be very pleased with. Thanks. Cheers Scott, if you are doing heavy testing of something that must be on a device to test then yes it can easily save you a billable amount of time. Cheers Monte -- M E R Goulding Software development services Bespoke application development for vertical markets mergExt - There's an external for that! From lan.kc.macmail at gmail.com Thu Jul 2 23:07:10 2015 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Fri, 3 Jul 2015 11:07:10 +0800 Subject: menu buttons and showname In-Reply-To: <553309B4-DE54-45A5-8165-16AFB6C0372A@iotecdigital.com> References: <5595589F.9000007@fourthworld.com> <553309B4-DE54-45A5-8165-16AFB6C0372A@iotecdigital.com> Message-ID: I still can't invisage a situation where you'd want an empty option button. If in Peter's example the first btn was a list of customers, and the second button was a list of their invoices, if a customer has no invoices their name shouldn't appear in the first button. If on the the other hand the first btn is a list of customers and the second btn has the possible options; invoices, email, phone, address which then displays the relevant info in a fld. In this case if the customer has no invoices then that is removed from the choices and Email happens to be the displayed choice; if necessary the user chooses phone or address if that's really what they want - if there is no obvious default choice the it doesn't matter what you choose to display. Again, if the customer had no invoices, no email, no phone and no address what kind of custromer are they?? Either they should NOT appear in the first btn to start with, or the 2nd button choices should change to Enter Email, Enter Phone, Enter Address for any instance where the info doesn't exist so again you wouldn't end up with a button that is empty. An empty btn, even if it's disabled, seems just wrong to me. If it really is empty, set it to invisible. From lan.kc.macmail at gmail.com Thu Jul 2 23:20:40 2015 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Fri, 3 Jul 2015 11:20:40 +0800 Subject: how to check for unnecessary local declarations? In-Reply-To: <68A05D7B-9479-4415-8791-B70104F871B6@iotecdigital.com> References: <001001d0b404$1d43dd00$57cb9700$@kestner.de> <68A05D7B-9479-4415-8791-B70104F871B6@iotecdigital.com> Message-ID: Which proves the point that it isn't as easy as you first made out. As you say, cracking the GLX2 code is probably the easiest route to take and I'd be surprise if that code wasn't developed over a long period of time of 'discovering' odd edge cases cropping up here and there, that Jerry never envisage in a single session of coding. On Fri, Jul 3, 2015 at 5:18 AM, Bob Sneidar wrote: > If you remove the asterisks, you would fail to find any code that uses the > variable. Only lines containing *JUST* the variable name would be found, > which wouldn?t work. You could add code to analyze the line by replacing > ?(? and ?) with space, then filter for ?*? && variableName && ?*?. Words at > the end of the line would not be found however, so you would have to also > filter for ?*? && variableName. > > Bob S > > > > On Jul 1, 2015, at 23:09 , Kay C Lan wrote: > > > > Bob, I think you would need to remove the astrisks otherwise if you have > > single letter variables (many use them as counters in repeat loops) or > > words that may appear in other words - lStart, lStartSearch - you could > > easy miss some. > > > > > > > > On Thu, Jul 2, 2015 at 5:47 AM, Bob Sneidar > > > wrote: > > > >> Seems you could write a handler to do it pretty easily. > >> > >> > >> ? get stack script > >> ? find ?local ? > >> ? get word 2 of found line > >> ? filter with ?*? & word 2 of found line & ?*? > >> ? count number of lines. if only 1 then delete that line > >> ? get list of cards > >> ? repeat for every card > >> ? get card script > >> ? what I just said > >> ? get list of objects on card > >> ? repeat for every object on card > >> ? get script of object > >> ? do I have to repeat myself again?? > >> > >> > >> It might be a little more complicated if you have multiple local > variable > >> declarations, but not much. > >> > >> Bob S > >> > >> > >>> On Jul 1, 2015, at 06:44 , Tiemo Hollmann TB > >> wrote: > >>> > >>> Hello, > >>> > >>> I am using the strict compilation mode. When working over longer time > on > >> a > >>> project it regularly happens that I have orphaned local variable > >>> declarations. > >>> > >>> Actually they don't hurt, but I like to keep my code clean and wonder > if > >>> there is any hidden feature, which checks for not any more needed local > >>> declarations (beside scripting a check myself)? > >>> > >>> Thanks > >>> > >>> Tiemo > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> _______________________________________________ > >>> use-livecode mailing list > >>> use-livecode at lists.runrev.com > >>> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >>> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 3 02:36:10 2015 From: mwieder at ahsoftware.net (Mark Wieder) Date: Thu, 02 Jul 2015 23:36:10 -0700 Subject: how to check for unnecessary local declarations? In-Reply-To: References: <001001d0b404$1d43dd00$57cb9700$@kestner.de> <68A05D7B-9479-4415-8791-B70104F871B6@iotecdigital.com> Message-ID: <55962D5A.5020702@ahsoftware.net> On 07/02/2015 08:20 PM, Kay C Lan wrote: > Which proves the point that it isn't as easy as you first made out. As you > say, cracking the GLX2 code is probably the easiest route to take and I'd > be surprise if that code wasn't developed over a long period of time of > 'discovering' odd edge cases cropping up here and there, that Jerry never > envisage in a single session of coding. Well, here's the easy part from glx2: -- gather the script local variables function getLocals pScript local tTemp, tLocals filter pScript with "local *" repeat for each line tLine in pScript put word 2 to -1 of tLine & cr after tTemp end repeat -- allow for multiple declarations in one line replace "," with cr in tTemp repeat for each line tLine in tTemp put word 1 of tLine & cr after tLocals end repeat chomp tLocals -- chomp is in the frontscript, removes trailing cr set the tLocals of this card to tLocals end getLocals -- here's the part that looks at usage (watch the lineWrap) --theHandler here could be the entire script of a single handler repeat for each line theLine in theHandler if word 1 to 3 of theLine is "repeat for each" then put word 5 of theLine into theWord if theTemps is empty then put theWord into theTemps else if theWord is not among the lines of theTemps then put cr & theWord after theTemps end if end if next repeat end if if "into" is among the words of theLine or "after" is among the words of theLine or "before" is among the words of theLine or word 1 of theLine is "repeat then put 0 into tWordNum repeat for each word theWord in theLine add 1 to tWordNum if char 1 of theWord is "#" or char 1 to 2 of theWord is "--" then exit repeat end if if char 1 of theWord is quote then if theTemps is empty then put theWord into theTemps else if theWord is not among the lines of theTemps then put cr & theWord after theTemps end if end if next repeat end if if theWord is among the items of "each,with,into,after,before" then put word tWordNum+1 of theLine into theNextWord if "(" is in theNextWord then next repeat end if put token 1 of theNextWord into theNextWord if theNextWord is not among the lines of theTokens and theNExtWord is not empty then if "[" is in theNextWord then replace "[" with cr in theNextWord replace "]" with "" in theNextWord end if if theTemps is empty then put theNextWord into theTemps else if theNextWord is not among the lines of theTemps then put cr & theNextWord after theTemps end if end if end if end if end repeat end if end repeat -- Mark Wieder ahsoftware at gmail.com From david at viral.academy Fri Jul 3 03:08:51 2015 From: david at viral.academy (David Bovill) Date: Fri, 3 Jul 2015 09:08:51 +0200 Subject: [ANN] Super quick and easy deployment to plugged in iOS devices In-Reply-To: References: <8AE9DB66-1BA5-4D8A-8369-29A9B022CA81@m-r-d.de> Message-ID: Thanks Monte - what about for iOS. What is the latest on TestFlight and their ilk? On 3 July 2015 at 01:13, Monte Goulding wrote: > > > On 3 Jul 2015, at 12:06 am, David Bovill wrote: > > > > On this topic - what is the best way to get an entire class of learners > to > > be able to put an app they create together onto their tablet / > smartphone? > > If they are on android you can just put it in dropbox and share the url > > -- > M E R Goulding > Software development services > Bespoke application development for vertical markets > > mergExt - There's an external for that! > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dfepstein at comcast.net Fri Jul 3 08:25:49 2015 From: dfepstein at comcast.net (David Epstein) Date: Fri, 3 Jul 2015 08:25:49 -0400 Subject: menu buttons and showname Message-ID: <68C33F0B-C9F3-401B-9559-EFF72E09376F@comcast.net> ?Set the label of button myBtn to space? makes an option button appear blank but does not interfere with a user?s subsequent choice of an option. While disabling the button or hiding the button are other ways of making clear that no option is in effect, an able but blank option button means that an option can be put into effect in one step, not requiring some other action that enables or shows the button. David Epstein From warren at warrensweb.us Fri Jul 3 11:42:33 2015 From: warren at warrensweb.us (Warren Samples) Date: Fri, 03 Jul 2015 10:42:33 -0500 Subject: atom editor and livecode server files syntax package available Message-ID: <5596AD69.2040609@warrensweb.us> For those of you who don't participate in the forums for whatever reason, but are interested in livecode server, forum user ghettocottage has converted the TextMate revigniter-livecode syntax module for the cross-platform Atom Text Editor and made it available to all. You can install it directly from Atom under Preferences>>Install (search packages "revigniter-livecode"). More information regarding Atom can be found here: https://atom.io/ Warren From pete at lcsql.com Fri Jul 3 14:11:28 2015 From: pete at lcsql.com (Peter Haworth) Date: Fri, 3 Jul 2015 11:11:28 -0700 Subject: how to check for unnecessary local declarations? In-Reply-To: <55962D5A.5020702@ahsoftware.net> References: <001001d0b404$1d43dd00$57cb9700$@kestner.de> <68A05D7B-9479-4415-8791-B70104F871B6@iotecdigital.com> <55962D5A.5020702@ahsoftware.net> Message-ID: Nice! Only thing I don't see is dealing with block comments - the things surrounded by "/*" and "*/" and possibly spanning several lines. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Thu, Jul 2, 2015 at 11:36 PM, Mark Wieder wrote: > On 07/02/2015 08:20 PM, Kay C Lan wrote: > >> Which proves the point that it isn't as easy as you first made out. As you >> say, cracking the GLX2 code is probably the easiest route to take and I'd >> be surprise if that code wasn't developed over a long period of time of >> 'discovering' odd edge cases cropping up here and there, that Jerry never >> envisage in a single session of coding. >> > > Well, here's the easy part from glx2: > > -- gather the script local variables > function getLocals pScript > local tTemp, tLocals > > filter pScript with "local *" > repeat for each line tLine in pScript > put word 2 to -1 of tLine & cr after tTemp > end repeat > -- allow for multiple declarations in one line > replace "," with cr in tTemp > repeat for each line tLine in tTemp > put word 1 of tLine & cr after tLocals > end repeat > chomp tLocals -- chomp is in the frontscript, removes trailing cr > set the tLocals of this card to tLocals > end getLocals > > -- here's the part that looks at usage (watch the lineWrap) > > --theHandler here could be the entire script of a single handler > repeat for each line theLine in theHandler > if word 1 to 3 of theLine is "repeat for each" then > put word 5 of theLine into theWord > if theTemps is empty then > put theWord into theTemps > else > if theWord is not among the lines of theTemps then > put cr & theWord after theTemps > end if > end if > next repeat > end if > if "into" is among the words of theLine or "after" is among the words > of theLine or "before" is among the words of theLine or word 1 of theLine > is "repeat then > put 0 into tWordNum > repeat for each word theWord in theLine > add 1 to tWordNum > if char 1 of theWord is "#" or char 1 to 2 of theWord is "--" then > exit repeat > end if > if char 1 of theWord is quote then > if theTemps is empty then > put theWord into theTemps > else > if theWord is not among the lines of theTemps then > put cr & theWord after theTemps > end if > end if > next repeat > end if > if theWord is among the items of "each,with,into,after,before" then > put word tWordNum+1 of theLine into theNextWord > if "(" is in theNextWord then > next repeat > end if > put token 1 of theNextWord into theNextWord > if theNextWord is not among the lines of theTokens and > theNExtWord is not empty then > if "[" is in theNextWord then > replace "[" with cr in theNextWord > replace "]" with "" in theNextWord > end if > if theTemps is empty then > put theNextWord into theTemps > else > if theNextWord is not among the lines of theTemps then > put cr & theNextWord after theTemps > end if > end if > end if > end if > end repeat > end if > end repeat > > -- > 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 Fri Jul 3 14:53:33 2015 From: mwieder at ahsoftware.net (Mark Wieder) Date: Fri, 03 Jul 2015 11:53:33 -0700 Subject: how to check for unnecessary local declarations? In-Reply-To: References: <001001d0b404$1d43dd00$57cb9700$@kestner.de> <68A05D7B-9479-4415-8791-B70104F871B6@iotecdigital.com> <55962D5A.5020702@ahsoftware.net> Message-ID: <5596DA2D.4090806@ahsoftware.net> On 07/03/2015 11:11 AM, Peter Haworth wrote: > Nice! Only thing I don't see is dealing with block comments - the things > surrounded by "/*" and "*/" and possibly spanning several lines. There's some DRY cleanup that could be done as well. Feel free to make it better and submit the changes. It's all on bitbucket, and unfortunately it's a LiveCode stack rather than text files so you can't submit git pull requests, but drop me a note or create an issue. https://bitbucket.org/mwieder/glx2/wiki/Home -- Mark Wieder ahsoftware at gmail.com From pete at lcsql.com Fri Jul 3 15:04:00 2015 From: pete at lcsql.com (Peter Haworth) Date: Fri, 3 Jul 2015 12:04:00 -0700 Subject: Datagrid Form Message-ID: Can't believe I haven't used a datagrid form before but trying one for the first time this morning, following the instructions in the dg manual. Set the dg type to "form" Edited the row template to include a couple of fields and a check box Added a button that sets up an array keyed by the field/checkbox names with some data in each key and sets the dgData of the dg Edited the FillInData of the row behavior get the data and put it into the fields/set the hilite of the checkbox Clicked the button to populate the dg Nothing. Set a breakpoint at the start of the FillInData handler and tried again. At the start of the handler, my fields and checkbox show up in the datagrid with no data in them. As each line is executed to put the data into them, nothing shows in the datagrid. Each line looks something like: put pDataArray["Company"] into field "Company" of me pDataArray has the correct values in each key Continued stepping through and next comes the LayoutControl handler. I haven't changed that yet. Step through each line, nothing changes in the datagrid. After stepping over the end LayoutControl, my fields/checkbox all disappear and no more code is executed. LC 6.6.5, OSX 10.10 Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From monte at sweattechnologies.com Fri Jul 3 18:21:06 2015 From: monte at sweattechnologies.com (Monte Goulding) Date: Sat, 4 Jul 2015 08:21:06 +1000 Subject: [ANN] Super quick and easy deployment to plugged in iOS devices In-Reply-To: References: <8AE9DB66-1BA5-4D8A-8369-29A9B022CA81@m-r-d.de> Message-ID: I haven't played with test flight since apple ruined it. Maybe look at test fairy? Sent from my iPhone > On 3 Jul 2015, at 5:08 pm, David Bovill wrote: > > Thanks Monte - what about for iOS. What is the latest on TestFlight and > their ilk? From sritcp at gmail.com Fri Jul 3 20:09:35 2015 From: sritcp at gmail.com (Sri) Date: Fri, 3 Jul 2015 17:09:35 -0700 (PDT) Subject: Datagrid Form In-Reply-To: References: Message-ID: <1435968575494-4693598.post@n4.nabble.com> Hi Pete: I'd like to see the code (stripped down version). Also, did you try to manually refresh the datagrid and see (after stepping over some code)? Regards, Sri -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Datagrid-Form-tp4693596p4693598.html Sent from the Revolution - User mailing list archive at Nabble.com. From dochawk at gmail.com Fri Jul 3 20:54:29 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Fri, 3 Jul 2015 17:54:29 -0700 Subject: "save as" of stack file from a script Message-ID: Odd as it sounds, I want to do a "save as" of my stack from code, rather than hitting a dialog box. I have a prepCmpl routine to get the stack ready for building a standalone. I've previously set things up so that the various standalone options are set to what I want based on the file name (primarily versioning). Now, I want to have stack mystack.150703a.livecode get renamed to mystic.150703a.to_compile.livecode, at which point I'll start deleting extraneous stacks and copying in a couple that it needs. This was driven by shared routines as I'm writing the server, and the moving of my custom dialog stack out of the mainstack. When the environment is "development", it loads the most recent version and uses it as a library. By being loaded, it can also call the dialog stack. Oh, "open hidden stack something.someplace.livecode" seems to work, although it's not in the dictionary. Anyway, if anyone knows where "save as" goes so that I can set its options and call it, it would be a great help. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From ambassador at fourthworld.com Fri Jul 3 20:56:25 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 03 Jul 2015 17:56:25 -0700 Subject: "save as" of stack file from a script In-Reply-To: References: Message-ID: <55972F39.8090101@fourthworld.com> Dr. Hawkins wrote: > Anyway, if anyone knows where "save as" goes so that I can set its > options and call it, it would be a great help. A mainstack has a filename property, which can be set from the value returned from "ask file". Follow that with a save command and you're done. -- 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 Fri Jul 3 21:10:18 2015 From: pete at lcsql.com (Peter Haworth) Date: Sat, 04 Jul 2015 01:10:18 +0000 Subject: Datagrid Form In-Reply-To: <1435968575494-4693598.post@n4.nabble.com> References: <1435968575494-4693598.post@n4.nabble.com> Message-ID: Hi Sri, Yes I tried a refresh (from the Inspector palette for the datagrid), didn't make any difference. Here's my FillIInData code. on FillInData pDataArray put pDataArray["Company Name"] into field "Company Name" of me put pDataArray["Address"] into field "Address" of me set the hilite of button "Customer" of me to pDataArray["Customer"] end FillInData As mentioned, pDataArray has the expected values in it's keys. Here's my LayoutControl code. I didn't reposition any of the controls but left that one line in there since I wasn't sure if it was needed or not. on LayoutControl pControlRect set the rect of graphic "Background" of me to pControlRect end LayoutControl Here's the code in my button to populate the datagrid. on mouseUp local tData put "lcSQL Software" into tData[1]["Company Name"] put "PO Box 123" & return & "Soquel" & return & "CA 95073" & return & "USA" into tData[1]["Address"] put true into tData[1]["Customer"] put "Mollys Revenge" into tData[2]["Company Name"] put "123 Some Street" & return & "Somewehere" & return & "OH 12345" & return & "USA" into tData[2]["Address"] put false into tData[2]["Customer"] set the dgData of group "dgForm" to tData end mouseUp I can't attach screen shots (?) but as mentioned before, at the start of the FIllInData handler, I see all the controls turn up in the datagrid so I'm taking that to mean my customization of the row template is correct. But I never see the data turn up as I step though each line in FillInData and the controls all disappear when the "end LayoutControl" command is executed. I should also say that even the dgData I send to the datagrid has two sets of data in it and I see FillInData called for both sets, I only ever see one set of controls before the datagrid is celared. On Fri, Jul 3, 2015 at 5:32 PM Sri wrote: > Hi Pete: > > I'd like to see the code (stripped down version). > > Also, did you try to manually refresh the datagrid and see (after stepping > over some code)? > > Regards, > Sri > > > > > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/Datagrid-Form-tp4693596p4693598.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pete at lcsql.com Fri Jul 3 21:13:53 2015 From: pete at lcsql.com (Peter Haworth) Date: Sat, 04 Jul 2015 01:13:53 +0000 Subject: "save as" of stack file from a script In-Reply-To: <55972F39.8090101@fourthworld.com> References: <55972F39.8090101@fourthworld.com> Message-ID: What Richard said, except sounds like you know the filepath so just set the filename to it. Also be aware that when you "save as" the saved as version of the file becomes the one you are working on not the version that was in memory. On Fri, Jul 3, 2015 at 5:56 PM Richard Gaskin wrote: > Dr. Hawkins wrote: > > > Anyway, if anyone knows where "save as" goes so that I can set its > > options and call it, it would be a great help. > > A mainstack has a filename property, which can be set from the value > returned from "ask file". Follow that with a save command and you're done. > > -- > 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 bonnmike at gmail.com Fri Jul 3 22:31:29 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Fri, 3 Jul 2015 20:31:29 -0600 Subject: Datagrid Form In-Reply-To: References: <1435968575494-4693598.post@n4.nabble.com> Message-ID: Silly question, but do you have the "cache controls" box checked in the inspector for the datagrid? If you uncheck it, and click the refresh datagrid button, does the data show up? If so, is there anywhere that you are manually telling the datagrid to refresh in your code after the dg is populated? Strangely, if Ihave "fixed control height" unchecked, and "cache controls" checked, and refresh the datagrid, the datagrid will suddenly appear empty. checking fixed control height, or unchecking cache controls, will make it show back up. (7.0.5) But if I populate it using the button, it doesn't seem to matter what is checked and what isn't, right up until a refresh is done, hence the question about doing a refresh in your code somewhere. On Fri, Jul 3, 2015 at 7:10 PM, Peter Haworth wrote: > Hi Sri, > Yes I tried a refresh (from the Inspector palette for the datagrid), > didn't make any difference. > > Here's my FillIInData code. > > on FillInData pDataArray > > put pDataArray["Company Name"] into field "Company Name" of me > put pDataArray["Address"] into field "Address" of me > set the hilite of button "Customer" of me to pDataArray["Customer"] > > end FillInData > > As mentioned, pDataArray has the expected values in it's keys. > > Here's my LayoutControl code. I didn't reposition any of the controls but > left that one line in there since I wasn't sure if it was needed or not. > > on LayoutControl pControlRect > > set the rect of graphic "Background" of me to pControlRect > end LayoutControl > > Here's the code in my button to populate the datagrid. > > on mouseUp > > local tData > > put "lcSQL Software" into tData[1]["Company Name"] > put "PO Box 123" & return & "Soquel" & return & "CA 95073" & return & > "USA" into tData[1]["Address"] > put true into tData[1]["Customer"] > > put "Mollys Revenge" into tData[2]["Company Name"] > put "123 Some Street" & return & "Somewehere" & return & "OH 12345" & > return & "USA" into tData[2]["Address"] > put false into tData[2]["Customer"] > > set the dgData of group "dgForm" to tData > > end mouseUp > > > I can't attach screen shots (?) but as mentioned before, at the start of > the FIllInData handler, I see all the controls turn up in the datagrid so > I'm taking that to mean my customization of the row template is correct. > But I never see the data turn up as I step though each line in FillInData > and the controls all disappear when the "end LayoutControl" command is > executed. > > I should also say that even the dgData I send to the datagrid has two sets > of data in it and I see FillInData called for both sets, I only ever see > one set of controls before the datagrid is celared. > > > On Fri, Jul 3, 2015 at 5:32 PM Sri wrote: > > > Hi Pete: > > > > I'd like to see the code (stripped down version). > > > > Also, did you try to manually refresh the datagrid and see (after > stepping > > over some code)? > > > > Regards, > > Sri > > > > > > > > > > -- > > View this message in context: > > > http://runtime-revolution.278305.n4.nabble.com/Datagrid-Form-tp4693596p4693598.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 jacque at hyperactivesw.com Fri Jul 3 22:41:33 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 03 Jul 2015 21:41:33 -0500 Subject: [ANN] Super quick and easy deployment to plugged in iOS devices In-Reply-To: References: <8AE9DB66-1BA5-4D8A-8369-29A9B022CA81@m-r-d.de> Message-ID: <559747DD.1060005@hyperactivesw.com> On 3 Jul 2015, at 5:08 pm, David Bovill wrote: > >Thanks Monte - what about for iOS. What is the latest on TestFlight and >their ilk? I hesitate to suggest AirLaunch because I don't know how it would work with Apple's new personal testing mode. But if you're willing to have an Apple developer account and submit all the UUIDs for your student devices, it would work. That may be more than you want to mess with though. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From revdev at pdslabs.net Fri Jul 3 22:48:42 2015 From: revdev at pdslabs.net (Phil Davis) Date: Fri, 03 Jul 2015 19:48:42 -0700 Subject: Datagrid Form In-Reply-To: References: <1435968575494-4693598.post@n4.nabble.com> Message-ID: <5597498A.5090904@pdslabs.net> Hi Pete, Try commenting out all the code inside your 'LayoutControl' handler and see if that changes your outcomes. Using the code you posted here, I was able to build a DG and populate two rows, but I commented out the layoutControl code for the test. Best - Phil Davis On 7/3/15 6:10 PM, Peter Haworth wrote: > Hi Sri, > Yes I tried a refresh (from the Inspector palette for the datagrid), > didn't make any difference. > > Here's my FillIInData code. > > on FillInData pDataArray > > put pDataArray["Company Name"] into field "Company Name" of me > put pDataArray["Address"] into field "Address" of me > set the hilite of button "Customer" of me to pDataArray["Customer"] > > end FillInData > > As mentioned, pDataArray has the expected values in it's keys. > > Here's my LayoutControl code. I didn't reposition any of the controls but > left that one line in there since I wasn't sure if it was needed or not. > > on LayoutControl pControlRect > > set the rect of graphic "Background" of me to pControlRect > end LayoutControl > > Here's the code in my button to populate the datagrid. > > on mouseUp > > local tData > > put "lcSQL Software" into tData[1]["Company Name"] > put "PO Box 123" & return & "Soquel" & return & "CA 95073" & return & > "USA" into tData[1]["Address"] > put true into tData[1]["Customer"] > > put "Mollys Revenge" into tData[2]["Company Name"] > put "123 Some Street" & return & "Somewehere" & return & "OH 12345" & > return & "USA" into tData[2]["Address"] > put false into tData[2]["Customer"] > > set the dgData of group "dgForm" to tData > > end mouseUp > > > I can't attach screen shots (?) but as mentioned before, at the start of > the FIllInData handler, I see all the controls turn up in the datagrid so > I'm taking that to mean my customization of the row template is correct. > But I never see the data turn up as I step though each line in FillInData > and the controls all disappear when the "end LayoutControl" command is > executed. > > I should also say that even the dgData I send to the datagrid has two sets > of data in it and I see FillInData called for both sets, I only ever see > one set of controls before the datagrid is celared. > > > On Fri, Jul 3, 2015 at 5:32 PM Sri wrote: > >> Hi Pete: >> >> I'd like to see the code (stripped down version). >> >> Also, did you try to manually refresh the datagrid and see (after stepping >> over some code)? >> >> Regards, >> Sri >> >> >> >> >> -- >> View this message in context: >> http://runtime-revolution.278305.n4.nabble.com/Datagrid-Form-tp4693596p4693598.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 > -- Phil Davis From dochawk at gmail.com Fri Jul 3 23:24:03 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Fri, 3 Jul 2015 20:24:03 -0700 Subject: "save as" of stack file from a script In-Reply-To: <55972F39.8090101@fourthworld.com> References: <55972F39.8090101@fourthworld.com> Message-ID: On Fri, Jul 3, 2015 at 5:56 PM, Richard Gaskin wrote: > A mainstack has a filename property, which can be set from the value > returned from "ask file". Follow that with a save command and you're done. Wow. That easy. And it turns out that save can even take a filename argument . . . So it now slices & dices quite nicely. I then made two more procedures to help update/move along. My files end up with path/names like someBaseDir/yymm/yymmdd/baseProgName.yymmdda.livecode where the "a" in the advancing letter subversion. So this procedure now bumps the version without leaving the ice *on* bmpVrsn *--bump the version by a letter* *local* oldFlNm, newFlNm *save* this stack *put* the filename of stack (the mainstack of this stack ) into newFlNm *put* numToChar(charToNum(char -10 of newFlNm)+1) into char -10 of newFlNm *save* this stack as newFlNm *end* bmpVrsn and this one is for when it opens, to see if it's new day, and to make any needed directories and but the name: *on* ckVersDat *--to be used when opening. Change the file if it is not from today* *local* today, year, month, day *local* oldYear, oldMonth, oldDay *local* oldFilNm, newFilNm *put* the long date into today *convert* today to dateitems *put* char 3 to 4 of the first item of today into year *put* char -2 to -1 of ("0" & item 2 of today) into month *put* char -2 to -1 of ("0" & item 3 of today) into day *put* year & month & day into today *put* the fileName of stack (the mainStack of this stack) into oldFilNm *--figure out the old file dates* *set* the itemDel to "/" *if* item -2 of oldFilNm = today *then* *--it is the same day* * exit ckVersDat* *end* *if* *put* char 1 to 2 of item -2 of oldFilNm into oldYear *put* char 3 to 4 item -2 of oldFilNm into oldMonth *put* char 5 to 6 of item -2 of oldFilNm into oldDay *put* item 1 to -4 of oldFilNm & "/" & year & month into newFilNm *if* there is not a folder newFilNm *then* *create* folder newFilNm *end* *if* *put* "/" & today after newFilNm *if* there is not a folder newFilNm *then* *create* folder newFilNm *end* *if* *put* "/" & char 1 to -17 of item -1 of oldFilNm & today & "a.livecode" after newFilNm *if* there is not a file newFilNm *then* *save* this stack as newFilNm *else* *get* dhbkAnswr ("There is already a file", newFilNm) *end* *if* *end* ckVersDat Now I just need to find the routine to cause a standalone to compile . . . -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From richmondmathewson at gmail.com Sat Jul 4 03:56:15 2015 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 04 Jul 2015 10:56:15 +0300 Subject: Release 6.7.6 / 7.0.6 In-Reply-To: <5593EB0A.8010707@livecode.com> References: <5593EB0A.8010707@livecode.com> Message-ID: <5597919F.10306@gmail.com> On 01/07/15 16:28, Sebastien Nouat wrote: > Dear List Members, > > We are pleased to announce the release of LiveCode 6.7.6 and 7.0.6 > Stable. This release is a stable release, in which all the bugs fixed > in the .6 versions are now stable. The list of bugs fixed in those > versions can be found in the Release Notes (in the RC 1, RC 2 and RC > 3-specific bug fixes). > Pleased or not, 6.7.6 final does NOT run on my 32 bit Linux box: Xubuntu 32 bit, 15.04, 6 GB RAM Installed 6.7.6 as "You Only" Richmond. From t.heaford at icloud.com Sat Jul 4 04:06:21 2015 From: t.heaford at icloud.com (Terence Heaford) Date: Sat, 04 Jul 2015 09:06:21 +0100 Subject: SQLite total vs sum Message-ID: <82A8E3EA-6C96-4069-A972-01BDD6DE4DB1@icloud.com> I have come across this situation in an app and the solution seems to be to use total(X) rather than sum(X). Comments on the correct way forward from any sqlite aficionados please. I suppose if necessary I could test the value returned by sum(X) but it does seem easier to use total(X). The reason for the question is because in the sqlite blurb refers to total(X) as non-standard. "sum(X) total(X) The sum() and total() aggregate functions return sum of all non-NULL values in the group. If there are no non-NULL input rows then sum() returns NULL but total() returns 0.0. NULL is not normally a helpful result for the sum of no rows but the SQL standard requires it and most other SQL database engines implement sum() that way so SQLite does it in the same way in order to be compatible. The non-standard total() function is provided as a convenient way to work around this design problem in the SQL language. The result of total() is always a floating point value. The result of sum() is an integer value if all non-NULL inputs are integers. If any input to sum() is neither an integer or a NULL then sum() returns a floating point value which might be an approximation to the true sum. Sum() will throw an "integer overflow" exception if all inputs are integers or NULL and an integer overflow occurs at any point during the computation. Total() never throws an integer overflow." All the best Terry From richmondmathewson at gmail.com Sat Jul 4 04:47:38 2015 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 04 Jul 2015 11:47:38 +0300 Subject: Jumping Jack Flash Message-ID: <55979DAA.6050404@gmail.com> One of the children on my Summer course was having 'problems' with animating a 'person' to jump [ think "Super Mario"]. Well, I don't know what he is doing this weekend, but it took me all of 15 minutes to knock together a basic walker-cum-jumper: https://www.dropbox.com/sh/tyt4o1md51bfair/AABThCCgJkqLQvz1e-NRQGg7a?dl=0 File: Walker.zip HOWEVER, there is a slight snag insofar as that having been bashing the left arrowKey, when I bash the up arrowKey (to generate a jump), the character jumps, but then continues to execute the code stored from my pressing the left or right key for far too long than is necessary. The same thing happens if I press the left key repeatedly, then the right key once. SO, what I need is some sort of INTERRUPT code so that when I press a new arrowKey all previous information fed by my key bashing gets lost. Richmond. From paul at researchware.com Sat Jul 4 08:10:15 2015 From: paul at researchware.com (Paul Dupuis) Date: Sat, 04 Jul 2015 08:10:15 -0400 Subject: Jumping Jack Flash In-Reply-To: <55979DAA.6050404@gmail.com> References: <55979DAA.6050404@gmail.com> Message-ID: <5597CD27.2020606@researchware.com> On 7/4/2015 4:47 AM, Richmond wrote: > One of the children on my Summer course was having 'problems' with > animating a 'person' > to jump [ think "Super Mario"]. > > Well, I don't know what he is doing this weekend, but it took me all > of 15 minutes to knock together a basic walker-cum-jumper: > > https://www.dropbox.com/sh/tyt4o1md51bfair/AABThCCgJkqLQvz1e-NRQGg7a?dl=0 > File: Walker.zip > > HOWEVER, there is a slight snag insofar as that having been bashing > the left arrowKey, when I bash the up arrowKey (to generate a jump), > the character jumps, but then continues to execute the code stored > from my pressing the left or right key for far too long than is > necessary. > > The same thing happens if I press the left key repeatedly, then the > right key once. > > SO, what I need is some sort of INTERRUPT code so that when I press a > new arrowKey all previous information fed by my key bashing gets lost. flush the pendingMessages of the queued arrowKey messages you no longer want (see 'the pendingMessages' and 'cancel' entries in the dictionary) From bonnmike at gmail.com Sat Jul 4 09:04:09 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Sat, 4 Jul 2015 07:04:09 -0600 Subject: Jumping Jack Flash In-Reply-To: <5597CD27.2020606@researchware.com> References: <55979DAA.6050404@gmail.com> <5597CD27.2020606@researchware.com> Message-ID: Heres an alternate method if you're interested. It removes the need to worry about repeat rates and overqueued messages. https://dl.dropboxusercontent.com/u/11957935/Walker.livecode On Sat, Jul 4, 2015 at 6:10 AM, Paul Dupuis wrote: > On 7/4/2015 4:47 AM, Richmond wrote: > > One of the children on my Summer course was having 'problems' with > > animating a 'person' > > to jump [ think "Super Mario"]. > > > > Well, I don't know what he is doing this weekend, but it took me all > > of 15 minutes to knock together a basic walker-cum-jumper: > > > > > https://www.dropbox.com/sh/tyt4o1md51bfair/AABThCCgJkqLQvz1e-NRQGg7a?dl=0 > > File: Walker.zip > > > > HOWEVER, there is a slight snag insofar as that having been bashing > > the left arrowKey, when I bash the up arrowKey (to generate a jump), > > the character jumps, but then continues to execute the code stored > > from my pressing the left or right key for far too long than is > > necessary. > > > > The same thing happens if I press the left key repeatedly, then the > > right key once. > > > > SO, what I need is some sort of INTERRUPT code so that when I press a > > new arrowKey all previous information fed by my key bashing gets lost. > > flush the pendingMessages of the queued arrowKey messages you no longer > want (see 'the pendingMessages' and 'cancel' entries in the dictionary) > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 4 09:05:28 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Sat, 4 Jul 2015 07:05:28 -0600 Subject: Jumping Jack Flash In-Reply-To: References: <55979DAA.6050404@gmail.com> <5597CD27.2020606@researchware.com> Message-ID: Oh. The button at the top is a toggle to turn things on and off. On Sat, Jul 4, 2015 at 7:04 AM, Mike Bonner wrote: > Heres an alternate method if you're interested. It removes the need to > worry about repeat rates and overqueued messages. > > https://dl.dropboxusercontent.com/u/11957935/Walker.livecode > > On Sat, Jul 4, 2015 at 6:10 AM, Paul Dupuis wrote: > >> On 7/4/2015 4:47 AM, Richmond wrote: >> > One of the children on my Summer course was having 'problems' with >> > animating a 'person' >> > to jump [ think "Super Mario"]. >> > >> > Well, I don't know what he is doing this weekend, but it took me all >> > of 15 minutes to knock together a basic walker-cum-jumper: >> > >> > >> https://www.dropbox.com/sh/tyt4o1md51bfair/AABThCCgJkqLQvz1e-NRQGg7a?dl=0 >> > File: Walker.zip >> > >> > HOWEVER, there is a slight snag insofar as that having been bashing >> > the left arrowKey, when I bash the up arrowKey (to generate a jump), >> > the character jumps, but then continues to execute the code stored >> > from my pressing the left or right key for far too long than is >> > necessary. >> > >> > The same thing happens if I press the left key repeatedly, then the >> > right key once. >> > >> > SO, what I need is some sort of INTERRUPT code so that when I press a >> > new arrowKey all previous information fed by my key bashing gets lost. >> >> flush the pendingMessages of the queued arrowKey messages you no longer >> want (see 'the pendingMessages' and 'cancel' entries in the dictionary) >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 Jul 4 09:08:36 2015 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 04 Jul 2015 16:08:36 +0300 Subject: Jumping Jack Flash In-Reply-To: References: <55979DAA.6050404@gmail.com> <5597CD27.2020606@researchware.com> Message-ID: <5597DAD4.50605@gmail.com> On 04/07/15 16:04, Mike Bonner wrote: > Heres an alternate method if you're interested. It removes the need to > worry about repeat rates and overqueued messages. > > https://dl.dropboxusercontent.com/u/11957935/Walker.livecode > > That's clever stuff. In fact a bit too clever for something I can lob back to a kid who is on his 4th week of programming :/ Thank you very much. Richmond. From richmondmathewson at gmail.com Sat Jul 4 09:09:19 2015 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 04 Jul 2015 16:09:19 +0300 Subject: Jumping Jack Flash In-Reply-To: References: <55979DAA.6050404@gmail.com> <5597CD27.2020606@researchware.com> Message-ID: <5597DAFF.3010107@gmail.com> On 04/07/15 16:05, Mike Bonner wrote: > Oh. The button at the top is a toggle to turn things on and off. > > So I discovered. As I said; very clever. Richmond. From bonnmike at gmail.com Sat Jul 4 09:29:01 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Sat, 4 Jul 2015 07:29:01 -0600 Subject: Jumping Jack Flash In-Reply-To: <5597DAD4.50605@gmail.com> References: <55979DAA.6050404@gmail.com> <5597CD27.2020606@researchware.com> <5597DAD4.50605@gmail.com> Message-ID: It actually seems simpler to me, but that's just familiarity. If you can figure out a good way to teach your students to grok gameloops, they are pretty handy. Pauls answer is probably best, do what you can to clear the pendingmessages. Good luck, if I think of a simple way to solve the problem, i'll post it. On Sat, Jul 4, 2015 at 7:08 AM, Richmond wrote: > On 04/07/15 16:04, Mike Bonner wrote: > >> Heres an alternate method if you're interested. It removes the need to >> worry about repeat rates and overqueued messages. >> >> https://dl.dropboxusercontent.com/u/11957935/Walker.livecode >> >> >> > That's clever stuff. > > In fact a bit too clever for something I can lob back to a kid who is on > his 4th week of programming :/ > > Thank you very much. > > 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 Jul 4 11:11:54 2015 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 04 Jul 2015 18:11:54 +0300 Subject: Jumping Jack Flash In-Reply-To: <5597CD27.2020606@researchware.com> References: <55979DAA.6050404@gmail.com> <5597CD27.2020606@researchware.com> Message-ID: <5597F7BA.4040202@gmail.com> On 04/07/15 15:10, Paul Dupuis wrote: > On 7/4/2015 4:47 AM, Richmond wrote: >> One of the children on my Summer course was having 'problems' with >> animating a 'person' >> to jump [ think "Super Mario"]. >> >> Well, I don't know what he is doing this weekend, but it took me all >> of 15 minutes to knock together a basic walker-cum-jumper: >> >> https://www.dropbox.com/sh/tyt4o1md51bfair/AABThCCgJkqLQvz1e-NRQGg7a?dl=0 >> File: Walker.zip >> >> HOWEVER, there is a slight snag insofar as that having been bashing >> the left arrowKey, when I bash the up arrowKey (to generate a jump), >> the character jumps, but then continues to execute the code stored >> from my pressing the left or right key for far too long than is >> necessary. >> >> The same thing happens if I press the left key repeatedly, then the >> right key once. >> >> SO, what I need is some sort of INTERRUPT code so that when I press a >> new arrowKey all previous information fed by my key bashing gets lost. > flush the pendingMessages of the queued arrowKey messages you no longer > want (see 'the pendingMessages' and 'cancel' entries in the dictionary) > > > Well, I tried flushEvents("all"), flushEvents("keyDown"), flushEvents("autoKey") to no effect . . . Mind you, I am not sure if I can understand what the dictionary says about flushEvents, or maybe the fact is that the entry really isn't comprehensive. Richmond. From richmondmathewson at gmail.com Sat Jul 4 11:14:30 2015 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 04 Jul 2015 18:14:30 +0300 Subject: Jumping Jack Flash In-Reply-To: <5597F7BA.4040202@gmail.com> References: <55979DAA.6050404@gmail.com> <5597CD27.2020606@researchware.com> <5597F7BA.4040202@gmail.com> Message-ID: <5597F856.5000107@gmail.com> On 04/07/15 18:11, Richmond wrote: > On 04/07/15 15:10, Paul Dupuis wrote: >> On 7/4/2015 4:47 AM, Richmond wrote: >>> One of the children on my Summer course was having 'problems' with >>> animating a 'person' >>> to jump [ think "Super Mario"]. >>> >>> Well, I don't know what he is doing this weekend, but it took me all >>> of 15 minutes to knock together a basic walker-cum-jumper: >>> >>> https://www.dropbox.com/sh/tyt4o1md51bfair/AABThCCgJkqLQvz1e-NRQGg7a?dl=0 >>> >>> File: Walker.zip >>> >>> HOWEVER, there is a slight snag insofar as that having been bashing >>> the left arrowKey, when I bash the up arrowKey (to generate a jump), >>> the character jumps, but then continues to execute the code stored >>> from my pressing the left or right key for far too long than is >>> necessary. >>> >>> The same thing happens if I press the left key repeatedly, then the >>> right key once. >>> >>> SO, what I need is some sort of INTERRUPT code so that when I press a >>> new arrowKey all previous information fed by my key bashing gets lost. >> flush the pendingMessages of the queued arrowKey messages you no longer >> want (see 'the pendingMessages' and 'cancel' entries in the dictionary) >> >> >> > > Well, I tried flushEvents("all"), flushEvents("keyDown"), > flushEvents("autoKey") > to no effect . . . > > Mind you, I am not sure if I can understand what the dictionary says > about flushEvents, > or maybe the fact is that the entry really isn't comprehensive. > > Richmond. Here I go again - replying to my own posting. I think that what I really need is a way to stop the arrowKeys from auto-repeating [ hmm; what's flushEvents("autoKey") for? ]. Richmond. From richmondmathewson at gmail.com Sat Jul 4 11:20:40 2015 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 04 Jul 2015 18:20:40 +0300 Subject: Jumping Jack Flash In-Reply-To: <5597F856.5000107@gmail.com> References: <55979DAA.6050404@gmail.com> <5597CD27.2020606@researchware.com> <5597F7BA.4040202@gmail.com> <5597F856.5000107@gmail.com> Message-ID: <5597F9C8.2020507@gmail.com> On 04/07/15 18:14, Richmond wrote: > On 04/07/15 18:11, Richmond wrote: >> On 04/07/15 15:10, Paul Dupuis wrote: >>> On 7/4/2015 4:47 AM, Richmond wrote: >>>> One of the children on my Summer course was having 'problems' with >>>> animating a 'person' >>>> to jump [ think "Super Mario"]. >>>> >>>> Well, I don't know what he is doing this weekend, but it took me all >>>> of 15 minutes to knock together a basic walker-cum-jumper: >>>> >>>> https://www.dropbox.com/sh/tyt4o1md51bfair/AABThCCgJkqLQvz1e-NRQGg7a?dl=0 >>>> >>>> File: Walker.zip >>>> >>>> HOWEVER, there is a slight snag insofar as that having been bashing >>>> the left arrowKey, when I bash the up arrowKey (to generate a jump), >>>> the character jumps, but then continues to execute the code stored >>>> from my pressing the left or right key for far too long than is >>>> necessary. >>>> >>>> The same thing happens if I press the left key repeatedly, then the >>>> right key once. >>>> >>>> SO, what I need is some sort of INTERRUPT code so that when I press a >>>> new arrowKey all previous information fed by my key bashing gets lost. >>> flush the pendingMessages of the queued arrowKey messages you no longer >>> want (see 'the pendingMessages' and 'cancel' entries in the dictionary) >>> >>> >>> >> >> Well, I tried flushEvents("all"), flushEvents("keyDown"), >> flushEvents("autoKey") >> to no effect . . . >> >> Mind you, I am not sure if I can understand what the dictionary says >> about flushEvents, >> or maybe the fact is that the entry really isn't comprehensive. >> >> Richmond. > > Here I go again - replying to my own posting. > > I think that what I really need is a way to stop the arrowKeys from > auto-repeating [ hmm; what's flushEvents("autoKey") for? ]. > > Richmond. I AM a SLOW LEARNER! I put "pass arrowKey" into all my loops, and "Bingo" . . . . Of course it does mean that any game-player using the thing will get repetitive finger syndrome. Richmond. From peter.brett at livecode.com Sat Jul 4 11:43:00 2015 From: peter.brett at livecode.com (Peter TB Brett) Date: Sat, 04 Jul 2015 17:43:00 +0200 Subject: Release 6.7.6 / 7.0.6 In-Reply-To: <5597919F.10306@gmail.com> References: <5593EB0A.8010707@livecode.com> <5597919F.10306@gmail.com> Message-ID: <7062b3bd1a4753b11ecb20fc4827ce6d@livecode.com> On 2015-07-04 09:56, Richmond wrote: > On 01/07/15 16:28, Sebastien Nouat wrote: >> Dear List Members, >> >> We are pleased to announce the release of LiveCode 6.7.6 and 7.0.6 >> Stable. This release is a stable release, in which all the bugs fixed >> in the .6 versions are now stable. The list of bugs fixed in those >> versions can be found in the Release Notes (in the RC 1, RC 2 and RC >> 3-specific bug fixes). >> > > Pleased or not, 6.7.6 final does NOT run on my 32 bit Linux box: > > Xubuntu 32 bit, 15.04, 6 GB RAM > > Installed 6.7.6 as "You Only" > Hi Richmond, I'm sorry to hear that you're having trouble. To make sure that this problem doesn't get lost in the backlog over the weekend, could you please file a bug report? One of the team will then look into it on Monday. If we find a problem, we can make sure that a fix makes it into 6.7.7 RC 1. Have a great weekend, Peter -- Dr Peter Brett LiveCode Engine Development Team From pete at lcsql.com Sat Jul 4 12:18:58 2015 From: pete at lcsql.com (Peter Haworth) Date: Sat, 04 Jul 2015 16:18:58 +0000 Subject: SQLite total vs sum In-Reply-To: <82A8E3EA-6C96-4069-A972-01BDD6DE4DB1@icloud.com> References: <82A8E3EA-6C96-4069-A972-01BDD6DE4DB1@icloud.com> Message-ID: I lot depends on your application and whether you might want to move to another SQL implementation in the future. If you think you might move, I would define a default value of zero for the columns you plan on summing and use (sum). That still leaves the issue of integer overflow but you can probably work out if that is likely to be an issue for your application. If you're 100% sure you won;t move to another SQL implementation, I'd go with total(). On Sat, Jul 4, 2015 at 1:06 AM Terence Heaford wrote: > I have come across this situation in an app and the solution seems to be > to use total(X) rather than sum(X). > > Comments on the correct way forward from any sqlite aficionados please. I > suppose if necessary I could test the value returned by sum(X) but it does > seem easier to use total(X). > > The reason for the question is because in the sqlite blurb refers to > total(X) as non-standard. > > "sum(X) > total(X) > The sum() and total() aggregate functions return sum of all non-NULL > values in the group. If there are no non-NULL input rows then sum() returns > NULL but total() returns 0.0. NULL is not normally a helpful result for the > sum of no rows but the SQL standard requires it and most other SQL database > engines implement sum() that way so SQLite does it in the same way in order > to be compatible. The non-standard total() function is provided as a > convenient way to work around this design problem in the SQL language. > > The result of total() is always a floating point value. The result of > sum() is an integer value if all non-NULL inputs are integers. If any input > to sum() is neither an integer or a NULL then sum() returns a floating > point value which might be an approximation to the true sum. > Sum() will throw an "integer overflow" exception if all inputs are > integers or NULL and an integer overflow occurs at any point during the > computation. Total() never throws an integer overflow." > > > All the best > > Terry > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 4 12:23:43 2015 From: pete at lcsql.com (Peter Haworth) Date: Sat, 04 Jul 2015 16:23:43 +0000 Subject: "save as" of stack file from a script In-Reply-To: References: <55972F39.8090101@fourthworld.com> Message-ID: *dispatch* "revSaveAsStandalone" to stack "revSaveAsStandalone" with "" On Fri, Jul 3, 2015 at 8:24 PM Dr. Hawkins wrote: > On Fri, Jul 3, 2015 at 5:56 PM, Richard Gaskin > > wrote: > > > A mainstack has a filename property, which can be set from the value > > returned from "ask file". Follow that with a save command and you're > done. > > > Wow. That easy. And it turns out that save can even take a filename > argument . . . > > So it now slices & dices quite nicely. > > I then made two more procedures to help update/move along. > > My files end up with path/names like > > someBaseDir/yymm/yymmdd/baseProgName.yymmdda.livecode > > > where the "a" in the advancing letter subversion. > > So this procedure now bumps the version without leaving the ice > > > *on* bmpVrsn > > *--bump the version by a letter* > > > > *local* oldFlNm, newFlNm > > *save* this stack > > > *put* the filename of stack (the mainstack of this stack ) into newFlNm > > *put* numToChar(charToNum(char -10 of newFlNm)+1) into char -10 of > newFlNm > > *save* this stack as newFlNm > > > > *end* bmpVrsn > > > and this one is for when it opens, to see if it's new day, and to make any > needed directories and but the name: > > *on* ckVersDat > > *--to be used when opening. Change the file if it is not from today* > > > > *local* today, year, month, day > > *local* oldYear, oldMonth, oldDay > > *local* oldFilNm, newFilNm > > > > *put* the long date into today > > *convert* today to dateitems > > > > *put* char 3 to 4 of the first item of today into year > > *put* char -2 to -1 of ("0" & item 2 of today) into month > > *put* char -2 to -1 of ("0" & item 3 of today) into day > > > > *put* year & month & day into today > > > > *put* the fileName of stack (the mainStack of this stack) into oldFilNm > > > > *--figure out the old file dates* > > *set* the itemDel to "/" > > > > *if* item -2 of oldFilNm = today *then* > > *--it is the same day* > > * exit ckVersDat* > > *end* *if* > > > > > > *put* char 1 to 2 of item -2 of oldFilNm into oldYear > > *put* char 3 to 4 item -2 of oldFilNm into oldMonth > > *put* char 5 to 6 of item -2 of oldFilNm into oldDay > > > > *put* item 1 to -4 of oldFilNm & "/" & year & month into newFilNm > > *if* there is not a folder newFilNm *then* > > *create* folder newFilNm > > *end* *if* > > > > *put* "/" & today after newFilNm > > *if* there is not a folder newFilNm *then* > > *create* folder newFilNm > > *end* *if* > > > > *put* "/" & char 1 to -17 of item -1 of oldFilNm & today & "a.livecode" > after newFilNm > > *if* there is not a file newFilNm *then* > > *save* this stack as newFilNm > > *else* > > *get* dhbkAnswr ("There is already a file", newFilNm) > > *end* *if* > > *end* ckVersDat > > > Now I just need to find the routine to cause a standalone to compile . . . > > -- > Dr. Richard E. Hawkins, Esq. > (702) 508-8462 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pete at lcsql.com Sat Jul 4 12:26:10 2015 From: pete at lcsql.com (Peter Haworth) Date: Sat, 04 Jul 2015 16:26:10 +0000 Subject: Datagrid Form In-Reply-To: References: <1435968575494-4693598.post@n4.nabble.com> Message-ID: Cache controls is off and I'm not refreshing the datagrid anywhere in my code. On Fri, Jul 3, 2015 at 7:31 PM Mike Bonner wrote: > Silly question, but do you have the "cache controls" box checked in the > inspector for the datagrid? If you uncheck it, and click the refresh > datagrid button, does the data show up? > > If so, is there anywhere that you are manually telling the datagrid to > refresh in your code after the dg is populated? > > Strangely, if Ihave "fixed control height" unchecked, and "cache controls" > checked, and refresh the datagrid, the datagrid will suddenly appear empty. > checking fixed control height, or unchecking cache controls, will make it > show back up. (7.0.5) But if I populate it using the button, it doesn't > seem to matter what is checked and what isn't, right up until a refresh is > done, hence the question about doing a refresh in your code somewhere. > > On Fri, Jul 3, 2015 at 7:10 PM, Peter Haworth wrote: > > > Hi Sri, > > Yes I tried a refresh (from the Inspector palette for the datagrid), > > didn't make any difference. > > > > Here's my FillIInData code. > > > > on FillInData pDataArray > > > > put pDataArray["Company Name"] into field "Company Name" of me > > put pDataArray["Address"] into field "Address" of me > > set the hilite of button "Customer" of me to pDataArray["Customer"] > > > > end FillInData > > > > As mentioned, pDataArray has the expected values in it's keys. > > > > Here's my LayoutControl code. I didn't reposition any of the controls > but > > left that one line in there since I wasn't sure if it was needed or not. > > > > on LayoutControl pControlRect > > > > set the rect of graphic "Background" of me to pControlRect > > end LayoutControl > > > > Here's the code in my button to populate the datagrid. > > > > on mouseUp > > > > local tData > > > > put "lcSQL Software" into tData[1]["Company Name"] > > put "PO Box 123" & return & "Soquel" & return & "CA 95073" & return & > > "USA" into tData[1]["Address"] > > put true into tData[1]["Customer"] > > > > put "Mollys Revenge" into tData[2]["Company Name"] > > put "123 Some Street" & return & "Somewehere" & return & "OH 12345" & > > return & "USA" into tData[2]["Address"] > > put false into tData[2]["Customer"] > > > > set the dgData of group "dgForm" to tData > > > > end mouseUp > > > > > > I can't attach screen shots (?) but as mentioned before, at the start of > > the FIllInData handler, I see all the controls turn up in the datagrid so > > I'm taking that to mean my customization of the row template is correct. > > But I never see the data turn up as I step though each line in FillInData > > and the controls all disappear when the "end LayoutControl" command is > > executed. > > > > I should also say that even the dgData I send to the datagrid has two > sets > > of data in it and I see FillInData called for both sets, I only ever see > > one set of controls before the datagrid is celared. > > > > > > On Fri, Jul 3, 2015 at 5:32 PM Sri wrote: > > > > > Hi Pete: > > > > > > I'd like to see the code (stripped down version). > > > > > > Also, did you try to manually refresh the datagrid and see (after > > stepping > > > over some code)? > > > > > > Regards, > > > Sri > > > > > > > > > > > > > > > -- > > > View this message in context: > > > > > > http://runtime-revolution.278305.n4.nabble.com/Datagrid-Form-tp4693596p4693598.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 richmondmathewson at gmail.com Sat Jul 4 12:27:24 2015 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 04 Jul 2015 19:27:24 +0300 Subject: Release 6.7.6 / 7.0.6 In-Reply-To: <7062b3bd1a4753b11ecb20fc4827ce6d@livecode.com> References: <5593EB0A.8010707@livecode.com> <5597919F.10306@gmail.com> <7062b3bd1a4753b11ecb20fc4827ce6d@livecode.com> Message-ID: <5598096C.3060208@gmail.com> On 04/07/15 18:43, Peter TB Brett wrote: > On 2015-07-04 09:56, Richmond wrote: >> On 01/07/15 16:28, Sebastien Nouat wrote: >>> Dear List Members, >>> >>> We are pleased to announce the release of LiveCode 6.7.6 and 7.0.6 >>> Stable. This release is a stable release, in which all the bugs >>> fixed in the .6 versions are now stable. The list of bugs fixed in >>> those versions can be found in the Release Notes (in the RC 1, RC 2 >>> and RC 3-specific bug fixes). >>> >> >> Pleased or not, 6.7.6 final does NOT run on my 32 bit Linux box: >> >> Xubuntu 32 bit, 15.04, 6 GB RAM >> >> Installed 6.7.6 as "You Only" >> > > Hi Richmond, > > I'm sorry to hear that you're having trouble. > > To make sure that this problem doesn't get lost in the backlog over > the weekend, could you please file a bug report? One of the team will > then look into it on Monday. If we find a problem, we can make sure > that a fix makes it into 6.7.7 RC 1. > > Have a great weekend, > > Peter > Bug report 15574 Hope your weekend is also relatively bug free. Richmond. From pete at lcsql.com Sat Jul 4 12:37:35 2015 From: pete at lcsql.com (Peter Haworth) Date: Sat, 04 Jul 2015 16:37:35 +0000 Subject: Datagrid Form In-Reply-To: <5597498A.5090904@pdslabs.net> References: <1435968575494-4693598.post@n4.nabble.com> <5597498A.5090904@pdslabs.net> Message-ID: Hi Phil, I commented out the LayoutControl code but still no joy. Wonder why it works for you. Would you mind sending me your version of the stack offline? I think the problems start before LayoutControl since even when I step thru the code with debugger, none of the data values turn up in the dg fields. The only thing left is perhaps an issue with how I set up the row template. Its structure looks like this: group "Row Template" graphic "Background" field "Company Name" field "Address" button "Customer" Looks different than the template for a dg table but I think that's expected. I also checked it against the row template for the Datagrid Sampler stack that's in one of the online lessons for datagrids and it looks exactly the same except for the fact the the group is named "Record Template" not "Row Template" but I doubt that makes any difference. One thing I did notice is that the default template had a field named "Label" which was referenced in a couple of places in the behavior script. I removed it and commented out all references to it in the script since it didn't seem to serve any purpose. In fact, I'm not sure why a template behavior script would include a reference to any field, especially by name. On Fri, Jul 3, 2015 at 7:49 PM Phil Davis wrote: > Hi Pete, > > Try commenting out all the code inside your 'LayoutControl' handler and > see if that changes your outcomes. Using the code you posted here, I was > able to build a DG and populate two rows, but I commented out the > layoutControl code for the test. > > Best - > Phil Davis > > > On 7/3/15 6:10 PM, Peter Haworth wrote: > > Hi Sri, > > Yes I tried a refresh (from the Inspector palette for the datagrid), > > didn't make any difference. > > > > Here's my FillIInData code. > > > > on FillInData pDataArray > > > > put pDataArray["Company Name"] into field "Company Name" of me > > put pDataArray["Address"] into field "Address" of me > > set the hilite of button "Customer" of me to pDataArray["Customer"] > > > > end FillInData > > > > As mentioned, pDataArray has the expected values in it's keys. > > > > Here's my LayoutControl code. I didn't reposition any of the controls > but > > left that one line in there since I wasn't sure if it was needed or not. > > > > on LayoutControl pControlRect > > > > set the rect of graphic "Background" of me to pControlRect > > end LayoutControl > > > > Here's the code in my button to populate the datagrid. > > > > on mouseUp > > > > local tData > > > > put "lcSQL Software" into tData[1]["Company Name"] > > put "PO Box 123" & return & "Soquel" & return & "CA 95073" & return & > > "USA" into tData[1]["Address"] > > put true into tData[1]["Customer"] > > > > put "Mollys Revenge" into tData[2]["Company Name"] > > put "123 Some Street" & return & "Somewehere" & return & "OH 12345" & > > return & "USA" into tData[2]["Address"] > > put false into tData[2]["Customer"] > > > > set the dgData of group "dgForm" to tData > > > > end mouseUp > > > > > > I can't attach screen shots (?) but as mentioned before, at the start of > > the FIllInData handler, I see all the controls turn up in the datagrid so > > I'm taking that to mean my customization of the row template is correct. > > But I never see the data turn up as I step though each line in FillInData > > and the controls all disappear when the "end LayoutControl" command is > > executed. > > > > I should also say that even the dgData I send to the datagrid has two > sets > > of data in it and I see FillInData called for both sets, I only ever see > > one set of controls before the datagrid is celared. > > > > > > On Fri, Jul 3, 2015 at 5:32 PM Sri wrote: > > > >> Hi Pete: > >> > >> I'd like to see the code (stripped down version). > >> > >> Also, did you try to manually refresh the datagrid and see (after > stepping > >> over some code)? > >> > >> Regards, > >> Sri > >> > >> > >> > >> > >> -- > >> View this message in context: > >> > http://runtime-revolution.278305.n4.nabble.com/Datagrid-Form-tp4693596p4693598.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 > > > > -- > 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 mwieder at ahsoftware.net Sat Jul 4 13:57:21 2015 From: mwieder at ahsoftware.net (Mark Wieder) Date: Sat, 04 Jul 2015 10:57:21 -0700 Subject: Release 6.7.6 / 7.0.6 In-Reply-To: <5598096C.3060208@gmail.com> References: <5593EB0A.8010707@livecode.com> <5597919F.10306@gmail.com> <7062b3bd1a4753b11ecb20fc4827ce6d@livecode.com> <5598096C.3060208@gmail.com> Message-ID: <55981E81.4050800@ahsoftware.net> On 07/04/2015 09:27 AM, Richmond wrote: > Bug report 15574 I tried to add info to the bug report, but the quality center is down right now. I managed to launch both commercial and community 6.7.6 builds on my 64-bit linux Mint 17 system. I've never been able to launch from the installer window, and I've rather given up trying. I have noticed that the first launch after install always fails, and hangs with the symptom you described, and then the second launch works properly. I also noticed, and when the quality center returns from the dead I'll file a bug report on this, that both versions of 6.7.6 load *all* the livecode stacks in my home directory into memory. This is new behavior, as 6.7.5 doesn't do this, and I can't think of a reason why this would be desirable behavior. -- Mark Wieder ahsoftware at gmail.com From mwieder at ahsoftware.net Sat Jul 4 14:06:35 2015 From: mwieder at ahsoftware.net (Mark Wieder) Date: Sat, 04 Jul 2015 11:06:35 -0700 Subject: stackfileversion Message-ID: <559820AB.2070808@ahsoftware.net> Could someone with a working LC 8.x tell me what the latest stackfileversion is? I'm attempting to future-proof some code and LC 8.0 is non-functional on linux. The Release Notes.pdf that comes with LC 8.0 is amusing in a nostalgic sort of way but otherwise not much help. -- Mark Wieder ahsoftware at gmail.com From vclement at gmail.com Sat Jul 4 14:08:27 2015 From: vclement at gmail.com (Vaughn Clement) Date: Sat, 4 Jul 2015 11:08:27 -0700 Subject: Datagrid Form In-Reply-To: References: Message-ID: Hi Pete Aren't you using datagrids in the SQLMagic interface? I have DataGrid Helper and it greatly helped building DataGrids. Thank you Vaughn Clement On Target Solutions LLC (Support) On Target Solutions LLC Website: http://www.ontargetsolutions.biz Email: ontargetsolutions at yahoo.com Skype: vaughn.clement FaceTime: vclement at gmail.com Ph. 928-254-9062 On Fri, Jul 3, 2015 at 12:04 PM, Peter Haworth wrote: > Can't believe I haven't used a datagrid form before but trying one for the > first time this morning, following the instructions in the dg manual. > > Set the dg type to "form" > Edited the row template to include a couple of fields and a check box > Added a button that sets up an array keyed by the field/checkbox names with > some data in each key and sets the dgData of the dg > Edited the FillInData of the row behavior get the data and put it into the > fields/set the hilite of the checkbox > Clicked the button to populate the dg > > Nothing. > > Set a breakpoint at the start of the FillInData handler and tried again. > > At the start of the handler, my fields and checkbox show up in the datagrid > with no data in them. As each line is executed to put the data into them, > nothing shows in the datagrid. Each line looks something like: > > put pDataArray["Company"] into field "Company" of me > > pDataArray has the correct values in each key > > Continued stepping through and next comes the LayoutControl handler. I > haven't changed that yet. Step through each line, nothing changes in the > datagrid. After stepping over the end LayoutControl, my fields/checkbox > all disappear and no more code is executed. > > LC 6.6.5, OSX 10.10 > > > > > 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 klaus at major-k.de Sat Jul 4 14:15:14 2015 From: klaus at major-k.de (Klaus major-k) Date: Sat, 4 Jul 2015 20:15:14 +0200 Subject: stackfileversion In-Reply-To: <559820AB.2070808@ahsoftware.net> References: <559820AB.2070808@ahsoftware.net> Message-ID: <76BDB46B-9F8B-4F22-8C90-D337E279A3A9@major-k.de> Hi Mark, > Am 04.07.2015 um 20:06 schrieb Mark Wieder : > > Could someone with a working LC 8.x tell me what the latest stackfileversion is? I'm attempting to future-proof some code and LC 8.0 is non-functional on linux. The Release Notes.pdf that comes with LC 8.0 is amusing in a nostalgic sort of way but otherwise not much help. according to TextEdit it is still REVO7000 with LC 8 dp 2. > -- > Mark Wieder > ahsoftware at gmail.com Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From klaus at major-k.de Sat Jul 4 14:20:58 2015 From: klaus at major-k.de (Klaus major-k) Date: Sat, 4 Jul 2015 20:20:58 +0200 Subject: stackfileversion In-Reply-To: <76BDB46B-9F8B-4F22-8C90-D337E279A3A9@major-k.de> References: <559820AB.2070808@ahsoftware.net> <76BDB46B-9F8B-4F22-8C90-D337E279A3A9@major-k.de> Message-ID: <997E383D-2B3E-41CA-8CF9-E7F9C13D7305@major-k.de> > Am 04.07.2015 um 20:15 schrieb Klaus major-k : > > Hi Mark, > >> Am 04.07.2015 um 20:06 schrieb Mark Wieder : >> >> Could someone with a working LC 8.x tell me what the latest stackfileversion is? I'm attempting to future-proof some code and LC 8.0 is non-functional on linux. The Release Notes.pdf that comes with LC 8.0 is amusing in a nostalgic sort of way but otherwise not much help. > > according to TextEdit it is still REVO7000 with LC 8 dp 2. Oppps, sory, stackfileversion is also still -> 7.0 >> -- >> Mark Wieder >> ahsoftware at gmail.com -- Klaus Major http://www.major-k.de klaus at major-k.de From mark.rauterkus at gmail.com Sat Jul 4 14:32:53 2015 From: mark.rauterkus at gmail.com (Mark Rauterkus) Date: Sat, 4 Jul 2015 14:32:53 -0400 Subject: Wiki software, anyone? Message-ID: Hi, I'm looking for any open-source software that helps to manage wiki pages and a wiki site with LiveCode. A long time ago there was a tiny bit of chatter about someone working to make an interface or something that would allow for plugging content into wikis via LiveCode. I have to make 200+ new wiki home pages for our camper kids and would love to have a script that was done in LiveCode to talk with the wiki server. Perhaps it is simple, but not so much for me. Thanks for the pointers, if they exist. -- 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 richmondmathewson at gmail.com Sat Jul 4 14:46:35 2015 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 4 Jul 2015 21:46:35 +0300 Subject: Release 6.7.6 / 7.0.6 In-Reply-To: <55981E81.4050800@ahsoftware.net> References: <5593EB0A.8010707@livecode.com> <5597919F.10306@gmail.com> <7062b3bd1a4753b11ecb20fc4827ce6d@livecode.com> <5598096C.3060208@gmail.com> <55981E81.4050800@ahsoftware.net> Message-ID: <55982A0B.3050101@gmail.com> On 04/07/15 20:57, Mark Wieder wrote: > On 07/04/2015 09:27 AM, Richmond wrote: > >> Bug report 15574 > > I tried to add info to the bug report, but the quality center is down > right now. I managed to launch both commercial and community 6.7.6 > builds on my 64-bit linux Mint 17 system. I've never been able to > launch from the installer window, and I've rather given up trying. I > have noticed that the first launch after install always fails, and > hangs with the symptom you described, and then the second launch works > properly. I have noticed that as well. However, I tried 6.7.6 about 10 times with the same result. Oddly enough my slobbishness in not upgrading to 64 bit Linux has paid off . . . at least in terms of bug-spotting. > > I also noticed, and when the quality center returns from the dead I'll > file a bug report on this, that both versions of 6.7.6 load *all* the > livecode stacks in my home directory into memory. This is new > behavior, as 6.7.5 doesn't do this, and I can't think of a reason why > this would be desirable behavior. > That sounds awful: especially if one is trying to run 6.7.6 on a machine with limited RAM. I am having no such problems with 7.0.6 ------------------------------------------------ Now for a fairly naive question, but possibly not half as daft as it seems: What is the point of the 6.7 series when the 7.0 series is up-and-running smoothly? Are there features in the 6.7 series that have not yet been incorporated into the 7.0 series? (seems unlikely and slightly odd). ------------------------------------------------- I have been recently extremely impressed in the way Unicode is handled in the 7.0 series having been teaching children how to build "typewriters" for no-Latin writing systems: https://www.facebook.com/RMLCclasses To the extent that I cannot understand why anybody wanting to leverage the Unicode writing system would bother with any version of LiveCode before the 7.0 series. -------------------------------------------------- Richmond. From richmondmathewson at gmail.com Sat Jul 4 14:47:56 2015 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 4 Jul 2015 21:47:56 +0300 Subject: Is it just me? The LiveCode website. Message-ID: <55982A5C.6010602@gmail.com> Seems to be 'down' or stuck, or something, "Me dears". Richmond. From gagsoft at iafrica.com Sat Jul 4 15:00:33 2015 From: gagsoft at iafrica.com (Peter Gagiano) Date: Sat, 4 Jul 2015 21:00:33 +0200 Subject: Is it just me? The LiveCode website. In-Reply-To: <55982A5C.6010602@gmail.com> References: <55982A5C.6010602@gmail.com> Message-ID: It does not open on my side either. I thought I had a slow connection. Peter G > On 04 Jul 2015, at 8:47 PM, Richmond wrote: > > Seems to be 'down' or stuck, or something, "Me dears". > > 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 Jul 4 15:05:10 2015 From: pete at lcsql.com (Peter Haworth) Date: Sat, 04 Jul 2015 19:05:10 +0000 Subject: Datagrid Form In-Reply-To: References: Message-ID: Yes, but only tables so far. Looking into adding support for forms. On Sat, Jul 4, 2015 at 11:08 AM Vaughn Clement wrote: > Hi Pete > > Aren't you using datagrids in the SQLMagic interface? I have DataGrid > Helper and it greatly helped building DataGrids. > > Thank you > > Vaughn Clement > > On Target Solutions LLC (Support) > On Target Solutions LLC Website: http://www.ontargetsolutions.biz > Email: ontargetsolutions at yahoo.com > Skype: vaughn.clement > > FaceTime: vclement at gmail.com > Ph. 928-254-9062 > > > On Fri, Jul 3, 2015 at 12:04 PM, Peter Haworth wrote: > > > Can't believe I haven't used a datagrid form before but trying one for > the > > first time this morning, following the instructions in the dg manual. > > > > Set the dg type to "form" > > Edited the row template to include a couple of fields and a check box > > Added a button that sets up an array keyed by the field/checkbox names > with > > some data in each key and sets the dgData of the dg > > Edited the FillInData of the row behavior get the data and put it into > the > > fields/set the hilite of the checkbox > > Clicked the button to populate the dg > > > > Nothing. > > > > Set a breakpoint at the start of the FillInData handler and tried again. > > > > At the start of the handler, my fields and checkbox show up in the > datagrid > > with no data in them. As each line is executed to put the data into > them, > > nothing shows in the datagrid. Each line looks something like: > > > > put pDataArray["Company"] into field "Company" of me > > > > pDataArray has the correct values in each key > > > > Continued stepping through and next comes the LayoutControl handler. I > > haven't changed that yet. Step through each line, nothing changes in the > > datagrid. After stepping over the end LayoutControl, my fields/checkbox > > all disappear and no more code is executed. > > > > LC 6.6.5, OSX 10.10 > > > > > > > > > > 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 mwieder at ahsoftware.net Sat Jul 4 15:23:06 2015 From: mwieder at ahsoftware.net (Mark Wieder) Date: Sat, 04 Jul 2015 12:23:06 -0700 Subject: Release 6.7.6 / 7.0.6 In-Reply-To: <55982A0B.3050101@gmail.com> References: <5593EB0A.8010707@livecode.com> <5597919F.10306@gmail.com> <7062b3bd1a4753b11ecb20fc4827ce6d@livecode.com> <5598096C.3060208@gmail.com> <55981E81.4050800@ahsoftware.net> <55982A0B.3050101@gmail.com> Message-ID: <5598329A.5000008@ahsoftware.net> On 07/04/2015 11:46 AM, Richmond wrote: > Now for a fairly naive question, but possibly not half as daft as it seems: > > What is the point of the 6.7 series when the 7.0 series is > up-and-running smoothly? Just my experience, but I find the 7.0 releases slow and buggy on linux. The binaries are huge and by extension create huge standalone apps. While it's nice to have 64-bit binaries because they run much faster than their 32-bit equivalents, I just roll my own 64-bit versions of the 6.x builds and I'm happy. > > Are there features in the 6.7 series that have not yet been incorporated > into the 7.0 series? (seems unlikely and slightly odd). No, quite the opposite. I *am* annoyed that some of the additions I've contributed to the engine have not made it into the 6.7 branch. > I have been recently extremely impressed in the way Unicode is handled > in the 7.0 series having been teaching children how to > build "typewriters" for no-Latin writing systems: > https://www.facebook.com/RMLCclasses If you need the unicode enhancements, then there's no choice... 7.x is the way to go. -- Mark Wieder ahsoftware at gmail.com From mwieder at ahsoftware.net Sat Jul 4 15:25:01 2015 From: mwieder at ahsoftware.net (Mark Wieder) Date: Sat, 04 Jul 2015 12:25:01 -0700 Subject: stackfileversion In-Reply-To: <997E383D-2B3E-41CA-8CF9-E7F9C13D7305@major-k.de> References: <559820AB.2070808@ahsoftware.net> <76BDB46B-9F8B-4F22-8C90-D337E279A3A9@major-k.de> <997E383D-2B3E-41CA-8CF9-E7F9C13D7305@major-k.de> Message-ID: <5598330D.2060509@ahsoftware.net> On 07/04/2015 11:20 AM, Klaus major-k wrote: >> according to TextEdit it is still REVO7000 with LC 8 dp 2. > > Oppps, sory, stackfileversion is also still -> 7.0 Thanks. Yeah, I had opened a stack with 0xEd and seen the header, but I wasn't sure if the stackfileversion was staying the same as well. -- Mark Wieder ahsoftware at gmail.com From jiml at netrin.com Sat Jul 4 16:17:03 2015 From: jiml at netrin.com (Jim Lambert) Date: Sat, 4 Jul 2015 13:17:03 -0700 Subject: Is it just me? The LiveCode website. In-Reply-To: References: Message-ID: <8A6C7A9C-7755-4C1F-B0FB-8C1B95DC4B2A@netrin.com> Down here (LA) too. Jim Lambert From paul at researchware.com Sat Jul 4 16:45:37 2015 From: paul at researchware.com (Paul Dupuis) Date: Sat, 04 Jul 2015 16:45:37 -0400 Subject: Is it just me? The LiveCode website. In-Reply-To: <8A6C7A9C-7755-4C1F-B0FB-8C1B95DC4B2A@netrin.com> References: <8A6C7A9C-7755-4C1F-B0FB-8C1B95DC4B2A@netrin.com> Message-ID: <559845F1.5040206@researchware.com> On 7/4/2015 4:17 PM, Jim Lambert wrote: > Down here (LA) too. > Jim Lambert livecode.com is working fine for me as of this email (US Northeast) From pete at lcsql.com Sat Jul 4 16:50:55 2015 From: pete at lcsql.com (Peter Haworth) Date: Sat, 04 Jul 2015 20:50:55 +0000 Subject: Datagrid Form [Solved] In-Reply-To: References: <1435968575494-4693598.post@n4.nabble.com> Message-ID: OK, mystery solved. I had to set the "empty row height" property of the datagrid (in the Inspector) to the height of the row template. As soon as I did that, all works fine. I'm not sure why I needed to do that. The Datagrid manual includes this in its description of the dgProps["row height"]: "If this property is not set for a form whose 'fixed control height' is true then the record template group height is used." Anyway, I'm happy now. Pete On Sat, Jul 4, 2015 at 9:26 AM Peter Haworth wrote: > Cache controls is off and I'm not refreshing the datagrid anywhere in my > code. > > > On Fri, Jul 3, 2015 at 7:31 PM Mike Bonner wrote: > >> Silly question, but do you have the "cache controls" box checked in the >> inspector for the datagrid? If you uncheck it, and click the refresh >> datagrid button, does the data show up? >> >> If so, is there anywhere that you are manually telling the datagrid to >> refresh in your code after the dg is populated? >> >> Strangely, if Ihave "fixed control height" unchecked, and "cache controls" >> checked, and refresh the datagrid, the datagrid will suddenly appear >> empty. >> checking fixed control height, or unchecking cache controls, will make it >> show back up. (7.0.5) But if I populate it using the button, it doesn't >> seem to matter what is checked and what isn't, right up until a refresh is >> done, hence the question about doing a refresh in your code somewhere. >> >> On Fri, Jul 3, 2015 at 7:10 PM, Peter Haworth wrote: >> >> > Hi Sri, >> > Yes I tried a refresh (from the Inspector palette for the datagrid), >> > didn't make any difference. >> > >> > Here's my FillIInData code. >> > >> > on FillInData pDataArray >> > >> > put pDataArray["Company Name"] into field "Company Name" of me >> > put pDataArray["Address"] into field "Address" of me >> > set the hilite of button "Customer" of me to pDataArray["Customer"] >> > >> > end FillInData >> > >> > As mentioned, pDataArray has the expected values in it's keys. >> > >> > Here's my LayoutControl code. I didn't reposition any of the controls >> but >> > left that one line in there since I wasn't sure if it was needed or not. >> > >> > on LayoutControl pControlRect >> > >> > set the rect of graphic "Background" of me to pControlRect >> > end LayoutControl >> > >> > Here's the code in my button to populate the datagrid. >> > >> > on mouseUp >> > >> > local tData >> > >> > put "lcSQL Software" into tData[1]["Company Name"] >> > put "PO Box 123" & return & "Soquel" & return & "CA 95073" & return & >> > "USA" into tData[1]["Address"] >> > put true into tData[1]["Customer"] >> > >> > put "Mollys Revenge" into tData[2]["Company Name"] >> > put "123 Some Street" & return & "Somewehere" & return & "OH 12345" & >> > return & "USA" into tData[2]["Address"] >> > put false into tData[2]["Customer"] >> > >> > set the dgData of group "dgForm" to tData >> > >> > end mouseUp >> > >> > >> > I can't attach screen shots (?) but as mentioned before, at the start of >> > the FIllInData handler, I see all the controls turn up in the datagrid >> so >> > I'm taking that to mean my customization of the row template is correct. >> > But I never see the data turn up as I step though each line in >> FillInData >> > and the controls all disappear when the "end LayoutControl" command is >> > executed. >> > >> > I should also say that even the dgData I send to the datagrid has two >> sets >> > of data in it and I see FillInData called for both sets, I only ever see >> > one set of controls before the datagrid is celared. >> > >> > >> > On Fri, Jul 3, 2015 at 5:32 PM Sri wrote: >> > >> > > Hi Pete: >> > > >> > > I'd like to see the code (stripped down version). >> > > >> > > Also, did you try to manually refresh the datagrid and see (after >> > stepping >> > > over some code)? >> > > >> > > Regards, >> > > Sri >> > > >> > > >> > > >> > > >> > > -- >> > > View this message in context: >> > > >> > >> http://runtime-revolution.278305.n4.nabble.com/Datagrid-Form-tp4693596p4693598.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 dixonja at hotmail.co.uk Sat Jul 4 17:03:34 2015 From: dixonja at hotmail.co.uk (John Dixon) Date: Sat, 4 Jul 2015 22:03:34 +0100 Subject: Is it just me? The LiveCode website. In-Reply-To: <559845F1.5040206@researchware.com> References: , <8A6C7A9C-7755-4C1F-B0FB-8C1B95DC4B2A@netrin.com>, <559845F1.5040206@researchware.com> Message-ID: livecode.com is down in the UK > Date: Sat, 4 Jul 2015 16:45:37 -0400 > From: paul at researchware.com > To: use-livecode at lists.runrev.com > Subject: Re: Is it just me? The LiveCode website. > > On 7/4/2015 4:17 PM, Jim Lambert wrote: > > Down here (LA) too. > > Jim Lambert > livecode.com is working fine for me as of this email (US Northeast) > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Sat Jul 4 17:05:19 2015 From: dixonja at hotmail.co.uk (John Dixon) Date: Sat, 4 Jul 2015 22:05:19 +0100 Subject: Is it just me? The LiveCode website. In-Reply-To: References: , , <8A6C7A9C-7755-4C1F-B0FB-8C1B95DC4B2A@netrin.com>, , <559845F1.5040206@researchware.com>, Message-ID: the forum too... > From: dixonja at hotmail.co.uk > To: use-livecode at lists.runrev.com > Subject: RE: Is it just me? The LiveCode website. > Date: Sat, 4 Jul 2015 22:03:34 +0100 > > livecode.com is down in the UK > > > Date: Sat, 4 Jul 2015 16:45:37 -0400 > > From: paul at researchware.com > > To: use-livecode at lists.runrev.com > > Subject: Re: Is it just me? The LiveCode website. > > > > On 7/4/2015 4:17 PM, Jim Lambert wrote: > > > Down here (LA) too. > > > Jim Lambert > > livecode.com is working fine for me as of this email (US Northeast) > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dave at applicationinsight.com Sat Jul 4 16:27:54 2015 From: dave at applicationinsight.com (Dave Kilroy) Date: Sat, 4 Jul 2015 13:27:54 -0700 (PDT) Subject: Is it just me? The LiveCode website. In-Reply-To: <559845F1.5040206@researchware.com> References: <55982A5C.6010602@gmail.com> <8A6C7A9C-7755-4C1F-B0FB-8C1B95DC4B2A@netrin.com> <559845F1.5040206@researchware.com> Message-ID: <1436041674300-4693639.post@n4.nabble.com> livecode.com has been a bit of a yo-yo for the last day or so - up, down, up, down, up - and currently, down 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/Is-it-just-me-The-LiveCode-website-tp4693632p4693639.html Sent from the Revolution - User mailing list archive at Nabble.com. From pete at lcsql.com Sat Jul 4 18:38:41 2015 From: pete at lcsql.com (Peter Haworth) Date: Sat, 04 Jul 2015 22:38:41 +0000 Subject: Is it just me? The LiveCode website. In-Reply-To: <1436041674300-4693639.post@n4.nabble.com> References: <55982A5C.6010602@gmail.com> <8A6C7A9C-7755-4C1F-B0FB-8C1B95DC4B2A@netrin.com> <559845F1.5040206@researchware.com> <1436041674300-4693639.post@n4.nabble.com> Message-ID: I don't think I've been involved with Livecode long enough to know the answer to this but why did Livecode get into the web hosting business? I hope it's profitable for them because it seems to cause them a lot of problems. On Sat, Jul 4, 2015 at 2:22 PM Dave Kilroy wrote: > livecode.com has been a bit of a yo-yo for the last day or so - up, down, > up, > down, up - and currently, down > > 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/Is-it-just-me-The-LiveCode-website-tp4693632p4693639.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 m.schonewille at economy-x-talk.com Sat Jul 4 20:48:08 2015 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sun, 05 Jul 2015 02:48:08 +0200 Subject: Is it just me? The LiveCode website. In-Reply-To: References: <55982A5C.6010602@gmail.com> <8A6C7A9C-7755-4C1F-B0FB-8C1B95DC4B2A@netrin.com> <559845F1.5040206@researchware.com> <1436041674300-4693639.post@n4.nabble.com> Message-ID: <55987EC8.2040505@economy-x-talk.com> Hi Peter, There was a time when LiveCode server was only available as part of the LiveCode hosting package. It looks like RunRev wanted to find out if this was a money maker. It also looks like it wasn't. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ On 7/5/2015 00:38, Peter Haworth wrote: > I don't think I've been involved with Livecode long enough to know the > answer to this but why did Livecode get into the web hosting business? I > hope it's profitable for them because it seems to cause them a lot of > problems. > > On Sat, Jul 4, 2015 at 2:22 PM Dave Kilroy > wrote: > >> livecode.com has been a bit of a yo-yo for the last day or so - up, down, >> up, >> down, up - and currently, down >> >> Dave From t.heaford at icloud.com Sun Jul 5 03:02:24 2015 From: t.heaford at icloud.com (Terence Heaford) Date: Sun, 05 Jul 2015 08:02:24 +0100 Subject: SQLite total vs sum In-Reply-To: References: <82A8E3EA-6C96-4069-A972-01BDD6DE4DB1@icloud.com> Message-ID: <33FAD45C-72E5-44E9-82CF-D56E3E367238@icloud.com> Thanks for your observations. Will stick with total() for now. All the best Terry > On 4 Jul 2015, at 17:18, Peter Haworth wrote: > > I lot depends on your application and whether you might want to move to > another SQL implementation in the future. If you think you might move, I > would define a default value of zero for the columns you plan on summing > and use (sum). That still leaves the issue of integer overflow but you can > probably work out if that is likely to be an issue for your application. > > If you're 100% sure you won;t move to another SQL implementation, I'd go > with total(). From peterwawood at gmail.com Sun Jul 5 04:46:36 2015 From: peterwawood at gmail.com (Peter W A Wood) Date: Sun, 5 Jul 2015 16:46:36 +0800 Subject: Problem with arrayDecode Message-ID: <795E4B79-182F-4D5F-A979-211582082D4B@gmail.com> I am having problems with encoding and decoding an array when I save the encoded data to a file and read it back. Here is a simple LiveCode Server script that shows the issue: #coding:utf-8 set the outputLineEndings to ?lf? # OS X set the outputTextEncoding to ?utf8? # OS X put "data.db" into preferences["database?] put arrayEncode(preferences) into URL ?file:temp.txt" put URL "file:temp.txt" into encodedPrefs if encodedPrefs is not empty then put arrayDecode(encodedPrefs) into prefs put "The decoded data contains:" && prefs["database"] & return end if put "data2.db" into preferences["database?] put arrayEncode(preferences) into encodedPrefs put arrayDecode(encodedPrefs) into prefs put "The decoded data contains:" && prefs["database"] & return This is what the script outputs: peter$ test/test.lc The decoded data contains: The decoded data contains: data2.db peter$ Any suggestions to what I?m getting wrong or is it a bug? Regards Peter From alex at tweedly.net Sun Jul 5 07:09:44 2015 From: alex at tweedly.net (Alex Tweedly) Date: Sun, 05 Jul 2015 12:09:44 +0100 Subject: Problem with arrayDecode In-Reply-To: <795E4B79-182F-4D5F-A979-211582082D4B@gmail.com> References: <795E4B79-182F-4D5F-A979-211582082D4B@gmail.com> Message-ID: <55991078.8000501@tweedly.net> You would need to use a binary file (e.g. "binfile:temp.txt") for the result of arrayencode (so I might therefore chose different extension :-) Alex. On 05/07/2015 09:46, Peter W A Wood wrote: > I am having problems with encoding and decoding an array when I save the encoded data to a file and read it back. Here is a simple LiveCode Server script that shows the issue: > > #coding:utf-8 > > set the outputLineEndings to ?lf? # OS X > set the outputTextEncoding to ?utf8? # OS X > > put "data.db" into preferences["database?] > put arrayEncode(preferences) into URL ?file:temp.txt" > put URL "file:temp.txt" into encodedPrefs > if encodedPrefs is not empty then > put arrayDecode(encodedPrefs) into prefs > put "The decoded data contains:" && prefs["database"] & return > end if > > put "data2.db" into preferences["database?] > put arrayEncode(preferences) into encodedPrefs > put arrayDecode(encodedPrefs) into prefs > put "The decoded data contains:" && prefs["database"] & return > > This is what the script outputs: > > peter$ test/test.lc > The decoded data contains: > The decoded data contains: data2.db > peter$ > > Any suggestions to what I?m getting wrong or is it a bug? > > 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 peterwawood at gmail.com Sun Jul 5 09:34:47 2015 From: peterwawood at gmail.com (Peter W A Wood) Date: Sun, 5 Jul 2015 21:34:47 +0800 Subject: Problem with arrayDecode In-Reply-To: <55991078.8000501@tweedly.net> References: <795E4B79-182F-4D5F-A979-211582082D4B@gmail.com> <55991078.8000501@tweedly.net> Message-ID: <38671CA3-6745-4B5F-9FA9-123F5100BDA6@gmail.com> Thanks Alex. That fixed it. Regards Peter > On 5 Jul 2015, at 19:09, Alex Tweedly wrote: > > You would need to use a binary file (e.g. "binfile:temp.txt") for the result of arrayencode > (so I might therefore chose different extension :-) > > Alex. > > > On 05/07/2015 09:46, Peter W A Wood wrote: >> I am having problems with encoding and decoding an array when I save the encoded data to a file and read it back. Here is a simple LiveCode Server script that shows the issue: >> >> #coding:utf-8 >> >> set the outputLineEndings to ?lf? # OS X >> set the outputTextEncoding to ?utf8? # OS X >> >> put "data.db" into preferences["database?] >> put arrayEncode(preferences) into URL ?file:temp.txt" >> put URL "file:temp.txt" into encodedPrefs >> if encodedPrefs is not empty then >> put arrayDecode(encodedPrefs) into prefs >> put "The decoded data contains:" && prefs["database"] & return >> end if >> >> put "data2.db" into preferences["database?] >> put arrayEncode(preferences) into encodedPrefs >> put arrayDecode(encodedPrefs) into prefs >> put "The decoded data contains:" && prefs["database"] & return >> >> This is what the script outputs: >> >> peter$ test/test.lc >> The decoded data contains: >> The decoded data contains: data2.db >> peter$ >> >> Any suggestions to what I?m getting wrong or is it a bug? >> >> 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 > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dochawk at gmail.com Sun Jul 5 11:18:26 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Sun, 5 Jul 2015 08:18:26 -0700 Subject: where does "startup" message go when in IDE Message-ID: I've found the startup message, to be sent to the first stack opened. It seems useful, but I haven't been able to trap it in the IDE. In particular, I found an incantation to hide the stack or some such for use at the command line. Is it going to an IDE card? Could I simulate it with a if the environment is "development" then dispatch "startup" to me end if as the first item of preOpenStack of the main stack (hmm, I suppose in beforePreOpenStack . . .) -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From dunbarx at aol.com Sun Jul 5 12:23:56 2015 From: dunbarx at aol.com (dunbarx at aol.com) Date: Sun, 5 Jul 2015 12:23:56 -0400 Subject: where does "startup" message go when in IDE In-Reply-To: References: Message-ID: <14e5f080003-56bd-38b93@webprd-m82.mail.aol.com> Hi. The dictionary says the message goes to the first stack in a new session. But I think the reason you are not trapping it if you place a handler in the stack script, and open that stack in a new session, is that other stacks open before the one you, say, double click on in the finder. Or I am wrong about that. Craig -----Original Message----- From: Dr. Hawkins To: How to use LiveCode Sent: Sun, Jul 5, 2015 11:19 am Subject: where does "startup" message go when in IDE I've found the startup message, to be sent to the first stack opened. It seems useful, but I haven't been able to trap it in the IDE. In particular, I found an incantation to hide the stack or some such for use at the command line. Is it going to an IDE card? Could I simulate it with a if the environment is "development" then dispatch "startup" to me end if as the first item of preOpenStack of the main stack (hmm, I suppose in beforePreOpenStack . . .) -- 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 iowahengst at mac.com Sun Jul 5 12:57:26 2015 From: iowahengst at mac.com (Randy Hengst) Date: Sun, 05 Jul 2015 11:57:26 -0500 Subject: where does "startup" message go when in IDE In-Reply-To: <14e5f080003-56bd-38b93@webprd-m82.mail.aol.com> References: <14e5f080003-56bd-38b93@webprd-m82.mail.aol.com> Message-ID: I?m happy to be wrong on this, but it?s my understanding that startUp is only seen by a standalone? and that "Handle the startup message if you want to do initialization or other tasks when the application ? in the dictionary is literal. I?m currently just building for iOS? so, I place the startUp handler in the stack script and include the ?mobile? only things like: iphoneSetAllowedOrientations "landscape left,landscape right" Or, when I load sounds (thank you Scott Rossi) as the app opens: put specialFolderPath("engine") &"/"& "tm_btn_eletro_23.wav" into gNumberButtonSound mobileSetSoundChannelVolume "Ch1","0" -- sets the volume to mute mobilePlaySoundOnChannel gNumberButtonSound, "Ch1","now" My projects are only one stack? so, if I put dispatch in the openStack handler, it sees the startUp handler and throws an error: on openStack dispatch "startUp" end openStack be well, randy Randy Hengst www.classroomFocusedSoftware.com > On Jul 5, 2015, at 11:23 AM, dunbarx at aol.com wrote: > > Hi. > > > The dictionary says the message goes to the first stack in a new session. But I think the reason you are not trapping it if you place a handler in the stack script, and open that stack in a new session, is that other stacks open before the one you, say, double click on in the finder. > > > Or I am wrong about that. > > > Craig > > > > -----Original Message----- > From: Dr. Hawkins > To: How to use LiveCode > Sent: Sun, Jul 5, 2015 11:19 am > Subject: where does "startup" message go when in IDE > > > I've found the startup message, to be sent to the first stack opened. > > It > seems useful, but I haven't been able to trap it in the IDE. > > In particular, I > found an incantation to hide the stack or some such for > use at the command > line. > > Is it going to an IDE card? Could I simulate it with a > > if the > environment is "development" then > > dispatch "startup" to me > > end if > > as > the first item of preOpenStack of the main stack (hmm, I suppose > in > beforePreOpenStack . . .) > > -- > Dr. Richard E. Hawkins, Esq. > (702) > 508-8462 > _______________________________________________ > use-livecode mailing > list > use-livecode at lists.runrev.com > Please visit this url to subscribe, > unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From livfoss at mac.com Sun Jul 5 12:57:55 2015 From: livfoss at mac.com (Graham Samuel) Date: Sun, 05 Jul 2015 18:57:55 +0200 Subject: where does "startup" message go when in IDE In-Reply-To: <14e5f080003-56bd-38b93@webprd-m82.mail.aol.com> References: <14e5f080003-56bd-38b93@webprd-m82.mail.aol.com> Message-ID: I think the startup message actually goes to the first card of the first stack to be opened. In effect it gets swallowed in the IDE which has its own first card, opened long before your script starts executing (well, I think that?s what?s happening). For a long time now I have used this fact deliberately. I have a ?startup? handler in the appropriate card, but it doesn?t fire by itself. Instead, when I want to test, I execute send ?startup? to card 1 of stack ?myInitialStack? and then the program starts up the way it would in a standalone; but only when I want it to. HTH Graham > On 5 Jul 2015, at 18:23, dunbarx at aol.com wrote: > > Hi. > > > The dictionary says the message goes to the first stack in a new session. But I think the reason you are not trapping it if you place a handler in the stack script, and open that stack in a new session, is that other stacks open before the one you, say, double click on in the finder. > > > Or I am wrong about that. > > > Craig > > > > -----Original Message----- > From: Dr. Hawkins > To: How to use LiveCode > Sent: Sun, Jul 5, 2015 11:19 am > Subject: where does "startup" message go when in IDE > > > I've found the startup message, to be sent to the first stack opened. > > It > seems useful, but I haven't been able to trap it in the IDE. > > In particular, I > found an incantation to hide the stack or some such for > use at the command > line. > > Is it going to an IDE card? Could I simulate it with a > > if the > environment is "development" then > > dispatch "startup" to me > > end if > > as > the first item of preOpenStack of the main stack (hmm, I suppose > in > beforePreOpenStack . . .) > > -- > Dr. Richard E. Hawkins, Esq. > (702) > 508-8462 > _______________________________________________ > use-livecode mailing > list > use-livecode at lists.runrev.com > Please visit this url to subscribe, > unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Sun Jul 5 13:01:10 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sun, 05 Jul 2015 10:01:10 -0700 Subject: where does "startup" message go when in IDE In-Reply-To: <14e5f080003-56bd-38b93@webprd-m82.mail.aol.com> References: <14e5f080003-56bd-38b93@webprd-m82.mail.aol.com> Message-ID: <559962D6.2000607@fourthworld.com> It's helpful to remember that the IDE is just a collection of stacks, which are run automatically whenever the development engine is launched. So the Dictionary's explanation is correct, and the recipient of the startup message when running the IDE will be the IDE. To initialize stacks simply and robustly in both development and at runtime, I use a preOpenStack handler in the script of the first card of the mainstack I'll later use to build the standalone from. I don't think I've used the startup message since HyperCard. HC never had any "pre" messages, and its IDE was written in a language other than its own, so the startup message was useful if not necessary there in ways that LC offers us much more control over. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com dunbarx wrote: > > The dictionary says the message goes to the first stack in a new session. But I think the reason you are not trapping it if you place a handler in the stack script, and open that stack in a new session, is that other stacks open before the one you, say, double click on in the finder. > > > Or I am wrong about that. > > > Craig > > > > -----Original Message----- > From: Dr. Hawkins > > I've found the startup message, to be sent to the first stack opened. > > It > seems useful, but I haven't been able to trap it in the IDE. > > In particular, I > found an incantation to hide the stack or some such for > use at the command > line. > > Is it going to an IDE card? Could I simulate it with a > > if the > environment is "development" then > > dispatch "startup" to me > > end if > > as > the first item of preOpenStack of the main stack (hmm, I suppose > in > beforePreOpenStack . . .) > > -- > Dr. Richard E. Hawkins, Esq. > (702) > 508-8462 From ambassador at fourthworld.com Sun Jul 5 13:08:04 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sun, 05 Jul 2015 10:08:04 -0700 Subject: Is it just me? The LiveCode website. In-Reply-To: <55982A5C.6010602@gmail.com> References: <55982A5C.6010602@gmail.com> Message-ID: <55996474.50309@fourthworld.com> Richmond wrote: > Seems to be 'down' or stuck, or something, "Me dears". It appears that the servers have been under intermittent DDoS attack for the last several days. The team has been implementing safeguards against it, but now and then the attack changes apparent origin so the safeguards have to be updated. At the moment this list archive, the forums, RQCC, and the main site all appear to be working efficiently. -- 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 Sun Jul 5 13:10:45 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sun, 05 Jul 2015 10:10:45 -0700 Subject: Release 6.7.6 / 7.0.6 In-Reply-To: <5598329A.5000008@ahsoftware.net> References: <5598329A.5000008@ahsoftware.net> Message-ID: <55996515.4070804@fourthworld.com> Mark Wieder wrote: > On 07/04/2015 11:46 AM, Richmond wrote: >> Are there features in the 6.7 series that have not yet been incorporated >> into the 7.0 series? (seems unlikely and slightly odd). > > No, quite the opposite. I *am* annoyed that some of the additions I've > contributed to the engine have not made it into the 6.7 branch. Are your pull requests specific to v6.x, or also applicable to v7 as well? Anything specific to v6 is increasingly unlikely to occupy the team's time, since like v5 and v4 etc. we can anticipate it will be EOL'd in the foreseeable future. -- 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 david at viral.academy Sun Jul 5 13:13:17 2015 From: david at viral.academy (David Bovill) Date: Sun, 5 Jul 2015 19:13:17 +0200 Subject: Wiki software, anyone? In-Reply-To: References: Message-ID: Can you tell me what wiki softtware you are using - MediaWiki? On Saturday, July 4, 2015, Mark Rauterkus wrote: > Hi, > > I'm looking for any open-source software that helps to manage wiki pages > and a wiki site with LiveCode. > > A long time ago there was a tiny bit of chatter about someone working to > make an interface or something that would allow for plugging content into > wikis via LiveCode. > > I have to make 200+ new wiki home pages for our camper kids and would love > to have a script that was done in LiveCode to talk with the wiki server. > > Perhaps it is simple, but not so much for me. > > Thanks for the pointers, if they exist. > > -- > 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 > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 5 13:15:49 2015 From: richmondmathewson at gmail.com (Richmond) Date: Sun, 5 Jul 2015 20:15:49 +0300 Subject: Release 6.7.6 / 7.0.6 In-Reply-To: <55996515.4070804@fourthworld.com> References: <5598329A.5000008@ahsoftware.net> <55996515.4070804@fourthworld.com> Message-ID: <55996645.2060500@gmail.com> On 05/07/15 20:10, Richard Gaskin wrote: > Mark Wieder wrote: > >> On 07/04/2015 11:46 AM, Richmond wrote: >>> Are there features in the 6.7 series that have not yet been >>> incorporated >>> into the 7.0 series? (seems unlikely and slightly odd). >> >> No, quite the opposite. I *am* annoyed that some of the additions I've >> contributed to the engine have not made it into the 6.7 branch. > > Are your pull requests specific to v6.x, or also applicable to v7 as > well? > > Anything specific to v6 is increasingly unlikely to occupy the team's > time, since like v5 and v4 etc. we can anticipate it will be EOL'd in > the foreseeable future. > If that is so why do new versions of the increasingly redundant 6.7 series keep appearing? Wouldn't the developers who are working on those be better employed ironing out the bugs in the 7.0 series? Richmond. From ambassador at fourthworld.com Sun Jul 5 13:18:48 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sun, 05 Jul 2015 10:18:48 -0700 Subject: Release 6.7.6 / 7.0.6 In-Reply-To: <55981E81.4050800@ahsoftware.net> References: <55981E81.4050800@ahsoftware.net> Message-ID: <559966F8.9020205@fourthworld.com> Mark Wieder wrote: > On 07/04/2015 09:27 AM, Richmond wrote: > >> Bug report 15574 > > I tried to add info to the bug report, but the quality center is down > right now. I managed to launch both commercial and community 6.7.6 > builds on my 64-bit linux Mint 17 system. I believe both the RQCC being down and the bug itself may be related to the recent DDoS attack. I'm unable to reproduce this issue this morning under Ubuntu 14.10. I would try again while the servers appear to be working well. > I've never been able to launch from the installer window, and I've > rather given up trying. This was fixed several months ago with some of the GDK improvements Fraser implemented in v7. Please keep in mind that v6 will remain a subset of v7, and going forward that subset will get ever smaller as work continues at a good clip on v7 and later. -- 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 Sun Jul 5 13:22:01 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sun, 05 Jul 2015 10:22:01 -0700 Subject: Release 6.7.6 / 7.0.6 In-Reply-To: <55996645.2060500@gmail.com> References: <55996645.2060500@gmail.com> Message-ID: <559967B9.5040005@fourthworld.com> Richmond wrote: > On 05/07/15 20:10, Richard Gaskin wrote: >> Mark Wieder wrote: >> >>> On 07/04/2015 11:46 AM, Richmond wrote: >>>> Are there features in the 6.7 series that have not yet been >>>> incorporated >>>> into the 7.0 series? (seems unlikely and slightly odd). >>> >>> No, quite the opposite. I *am* annoyed that some of the additions I've >>> contributed to the engine have not made it into the 6.7 branch. >> >> Are your pull requests specific to v6.x, or also applicable to v7 as >> well? >> >> Anything specific to v6 is increasingly unlikely to occupy the team's >> time, since like v5 and v4 etc. we can anticipate it will be EOL'd in >> the foreseeable future. >> > > If that is so why do new versions of the increasingly redundant 6.7 > series keep appearing? Because v6.x hasn't been EOL'd yet. We know it will just as all other earlier versions before it have been, and as v7 becomes increasingly robust and efficient that day gets ever closer. But at this time the team has not yet announced the EOL date for v6. > Wouldn't the developers who are working on those be better employed > ironing out the bugs in the 7.0 series? Yes, which is why it's useful for all of us to use to v7 if we want to take advantage of bug fixes and enhancements going forward. -- 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 Sun Jul 5 13:23:23 2015 From: richmondmathewson at gmail.com (Richmond) Date: Sun, 5 Jul 2015 20:23:23 +0300 Subject: Release 6.7.6 / 7.0.6 In-Reply-To: <559966F8.9020205@fourthworld.com> References: <55981E81.4050800@ahsoftware.net> <559966F8.9020205@fourthworld.com> Message-ID: <5599680B.1030002@gmail.com> On 05/07/15 20:18, Richard Gaskin wrote: > Mark Wieder wrote: > > > On 07/04/2015 09:27 AM, Richmond wrote: > > > >> Bug report 15574 > > > > I tried to add info to the bug report, but the quality center is down > > right now. I managed to launch both commercial and community 6.7.6 > > builds on my 64-bit linux Mint 17 system. > > I believe both the RQCC being down and the bug itself may be related > to the recent DDoS attack. I'm unable to reproduce this issue this > morning under Ubuntu 14.10. I would try again while the servers > appear to be working well. This is a load of nonsense: see my new notes over at the bug report. Richmond. > > > > I've never been able to launch from the installer window, and I've > > rather given up trying. > > This was fixed several months ago with some of the GDK improvements > Fraser implemented in v7. > > Please keep in mind that v6 will remain a subset of v7, and going > forward that subset will get ever smaller as work continues at a good > clip on v7 and later. > From richmondmathewson at gmail.com Sun Jul 5 13:25:55 2015 From: richmondmathewson at gmail.com (Richmond) Date: Sun, 5 Jul 2015 20:25:55 +0300 Subject: Release 6.7.6 / 7.0.6 In-Reply-To: <559967B9.5040005@fourthworld.com> References: <55996645.2060500@gmail.com> <559967B9.5040005@fourthworld.com> Message-ID: <559968A3.5010202@gmail.com> On 05/07/15 20:22, Richard Gaskin wrote: > Richmond wrote: > >> On 05/07/15 20:10, Richard Gaskin wrote: >>> Mark Wieder wrote: >>> >>>> On 07/04/2015 11:46 AM, Richmond wrote: >>>>> Are there features in the 6.7 series that have not yet been >>>>> incorporated >>>>> into the 7.0 series? (seems unlikely and slightly odd). >>>> >>>> No, quite the opposite. I *am* annoyed that some of the additions I've >>>> contributed to the engine have not made it into the 6.7 branch. >>> >>> Are your pull requests specific to v6.x, or also applicable to v7 as >>> well? >>> >>> Anything specific to v6 is increasingly unlikely to occupy the team's >>> time, since like v5 and v4 etc. we can anticipate it will be EOL'd in >>> the foreseeable future. >>> >> >> If that is so why do new versions of the increasingly redundant 6.7 >> series keep appearing? > > Because v6.x hasn't been EOL'd yet. We know it will just as all other > earlier versions before it have been, and as v7 becomes increasingly > robust and efficient that day gets ever closer. But at this time the > team has not yet announced the EOL date for v6. > > >> Wouldn't the developers who are working on those be better employed >> ironing out the bugs in the 7.0 series? > > Yes, which is why it's useful for all of us to use to v7 if we want to > take advantage of bug fixes and enhancements going forward. > Well, I have given up on all releases per 7.0.5, and just installed 6.7.6 "because it was there" - and, in fact, it wasn't "there" as you will see from my bug report. The changes re Unicode handling in the 7.0 series are absolutely marvellous: I've no real intention in looking backwards. Richmond. From mwieder at ahsoftware.net Sun Jul 5 13:42:32 2015 From: mwieder at ahsoftware.net (Mark Wieder) Date: Sun, 05 Jul 2015 10:42:32 -0700 Subject: Release 6.7.6 / 7.0.6 In-Reply-To: <559966F8.9020205@fourthworld.com> References: <55981E81.4050800@ahsoftware.net> <559966F8.9020205@fourthworld.com> Message-ID: <55996C88.8020706@ahsoftware.net> On 07/05/2015 10:18 AM, Richard Gaskin wrote: > > I've never been able to launch from the installer window, and I've > > rather given up trying. > > This was fixed several months ago with some of the GDK improvements > Fraser implemented in v7. But hasn't been backported to LC6, i.e., it still doesn't work. -- Mark Wieder ahsoftware at gmail.com From mwieder at ahsoftware.net Sun Jul 5 13:43:51 2015 From: mwieder at ahsoftware.net (Mark Wieder) Date: Sun, 05 Jul 2015 10:43:51 -0700 Subject: Release 6.7.6 / 7.0.6 In-Reply-To: <55996515.4070804@fourthworld.com> References: <5598329A.5000008@ahsoftware.net> <55996515.4070804@fourthworld.com> Message-ID: <55996CD7.8060002@ahsoftware.net> On 07/05/2015 10:10 AM, Richard Gaskin wrote: > Are your pull requests specific to v6.x, or also applicable to v7 as well? They're generic, as in the addition of floor() and ceil(). And submitted as pull requests against the develop branch, as requested. -- Mark Wieder ahsoftware at gmail.com From mwieder at ahsoftware.net Sun Jul 5 13:50:21 2015 From: mwieder at ahsoftware.net (Mark Wieder) Date: Sun, 05 Jul 2015 10:50:21 -0700 Subject: where does "startup" message go when in IDE In-Reply-To: References: <14e5f080003-56bd-38b93@webprd-m82.mail.aol.com> Message-ID: <55996E5D.3000908@ahsoftware.net> Yup. Graham nailed it here. The startup message is really only useful in a standalone app. I have used it to take care of some setup stuff that's only really useful in a standalone and not in the IDE. As Richard noted, once the IDE is running it's already loaded several system stacks, most notably the home stack, so the startup message will not get sent to any subsequent stacks that are loaded. -- Mark Wieder ahsoftware at gmail.com From mark.rauterkus at gmail.com Sun Jul 5 13:55:46 2015 From: mark.rauterkus at gmail.com (Mark Rauterkus) Date: Sun, 5 Jul 2015 13:55:46 -0400 Subject: Wiki software, anyone? Message-ID: David asked what software? YES. I am using WikiMedia software. It is on the server of course. I have a couple of wikis at wikia.com and then I do have it working on my virtual server too, so one day i might depart the wikia platform or mirror -- for extra control. I just made about 200 wiki pages by hand. I know that there must be ways to have LiveCode help to automate things on the wiki. Log in. Go to this page. Put VAR_text into these pages. Save. -- Ta. Mark Rauterkus Mark at Rauterkus.com From david at viral.academy Sun Jul 5 14:00:36 2015 From: david at viral.academy (David Bovill) Date: Sun, 5 Jul 2015 20:00:36 +0200 Subject: Wiki software, anyone? In-Reply-To: References: Message-ID: Yes there is. I'm in the middle of nowhere and just been professionaaly pickpocketed by a possy from Naples - but when I get settled at the symposium I should be able to help as I have a bunch of Mediawiki handlers in a proto-library. I'm working on it at the moment so it's good timing :) On Sunday, July 5, 2015, Mark Rauterkus wrote: > David asked what software? > > YES. I am using WikiMedia software. It is on the server of course. > > I have a couple of wikis at wikia.com and then I do have it working on my > virtual server too, so one day i might depart the wikia platform or mirror > -- for extra control. > > I just made about 200 wiki pages by hand. I know that there must be ways to > have LiveCode help to automate things on the wiki. > Log in. > Go to this page. > Put VAR_text into these pages. > Save. > > > -- > Ta. > > > Mark Rauterkus Mark at Rauterkus.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 pystcat at gmail.com Sun Jul 5 14:49:39 2015 From: pystcat at gmail.com (PystCat) Date: Sun, 5 Jul 2015 14:49:39 -0400 Subject: Wiki software, anyone? In-Reply-To: References: Message-ID: <41AB97C9-3ACC-4584-B4A4-70B15E477712@gmail.com> Ok... You need to elaborate on that "pickpocket possy from Naples..." I have a feeling it's a good story that must be shared. > On Jul 5, 2015, at 2:00 PM, David Bovill wrote: > > Yes there is. I'm in the middle of nowhere and just been professionaaly > pickpocketed by a possy from Naples - but when I get settled at the > symposium I should be able to help as I have a bunch of Mediawiki handlers > in a proto-library. I'm working on it at the moment so it's good timing :) > >> On Sunday, July 5, 2015, Mark Rauterkus wrote: >> >> David asked what software? >> >> YES. I am using WikiMedia software. It is on the server of course. >> >> I have a couple of wikis at wikia.com and then I do have it working on my >> virtual server too, so one day i might depart the wikia platform or mirror >> -- for extra control. >> >> I just made about 200 wiki pages by hand. I know that there must be ways to >> have LiveCode help to automate things on the wiki. >> Log in. >> Go to this page. >> Put VAR_text into these pages. >> Save. >> >> >> -- >> Ta. >> >> >> Mark Rauterkus Mark at Rauterkus.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 peter.brett at livecode.com Sun Jul 5 17:38:27 2015 From: peter.brett at livecode.com (Peter TB Brett) Date: Sun, 05 Jul 2015 22:38:27 +0100 Subject: Release 6.7.6 / 7.0.6 In-Reply-To: <55996CD7.8060002@ahsoftware.net> References: <5598329A.5000008@ahsoftware.net> <55996515.4070804@fourthworld.com> <55996CD7.8060002@ahsoftware.net> Message-ID: On 2015-07-05 18:43, Mark Wieder wrote: > On 07/05/2015 10:10 AM, Richard Gaskin wrote: > >> Are your pull requests specific to v6.x, or also applicable to v7 as >> well? > > They're generic, as in the addition of floor() and ceil(). > And submitted as pull requests against the develop branch, as > requested. Hi Mark, At the moment we're trying not to add new engine features to the LiveCode 6.7.6 or LiveCode 7.0.x releases, unless they're particularly critical. This is in order to try and ensure that LiveCode 6.7 and 7.0 remain stable, and to try to ensure that any problems or incompatibilities introduced by new features are contained within the experimental 8.0 branch (i.e. the "develop" branch on Github). Peter -- Dr Peter Brett LiveCode Engine Development Team From alex at tweedly.net Sun Jul 5 19:04:49 2015 From: alex at tweedly.net (Alex Tweedly) Date: Mon, 06 Jul 2015 00:04:49 +0100 Subject: Is it just me? The LiveCode website. In-Reply-To: References: <55982A5C.6010602@gmail.com> <8A6C7A9C-7755-4C1F-B0FB-8C1B95DC4B2A@netrin.com> <559845F1.5040206@researchware.com> <1436041674300-4693639.post@n4.nabble.com> Message-ID: <5599B811.7080601@tweedly.net> I don't know, but I'm happy to make guesses - especially when it gives me a chance to rant a bit as well :-) Runrev had a first attempt at tackling "the web" with revlets - which worked well, but stumbled and failed because by then it was becoming impossible to get anyone to install a player. So they had to try a different approach, and LCServer was the right answer (IMO). (Of course the HTML5 project is an even more right answer, but this pre-dated HTML/CSS having enough capabilities to think about that). The problem was, in those days before Open Source and Community Version, it was going to be a hard sell to get people to try LC as a server scripting language. Of coure, it was an easy sell into the existing user base - but that wasn't big enough, hey had to extend their user base. Fortunately, they had some advantages of being able to invent language features without any legacy hold-ups. But even more than that, they had one "killer feature" - live, remote debugging of server scripts. What software developer wouldn't want that - server scripting but using the tools of today (IDE/intelligent debugger) rather than relying on debugging/logging code (like it was the 1980s again - which AFAIK it is for all other scripting languages). Unfortunately (as I understand it), enabling the debugging involves significant modificaitons to a standard Apache installation - so not something that a casual "let's give it a try" user would be able to, or even be interested to, handle for themselves. Hence, a bundled web hosting package which allowed Runrev to set everything up, and to try out the features, in a controlled environment. So - IMHO - providing a web hosting offering was a good idea. And, IMHO, it was a failure, due to inadequate resources and development for the on-rev client. It lacked many basic features that could, and should, have been there to make it really feel like a modern IDE-style environment. I could rant for hours about it :-), but I'll restrain myself. It was inadequately specced, and then on top of that it was slow, buggy and unsupported. (And of course, it should never have been an 'on-rev client', it should have been a "remote LCServer IDE" which provided editing with full colouring, etc. plus file/directory mirroring with rsync and/or ftp upload and pluggable editors (to allow open source editors for other languages - and it should hve done all that for any LC Server, and allowec debugging for any hosting service that allowed it - i.e. on-rev initially, and others if demand required it. So anyway, the opportunities that came from providing their own web hosting service were never realized. Whether or not it is profitable as it is, I have no idea. But I know it could have been much more than it is/was. Alex. On 04/07/2015 23:38, Peter Haworth wrote: > I don't think I've been involved with Livecode long enough to know the > answer to this but why did Livecode get into the web hosting business? I > hope it's profitable for them because it seems to cause them a lot of > problems. > > On Sat, Jul 4, 2015 at 2:22 PM Dave Kilroy > wrote: > >> livecode.com has been a bit of a yo-yo for the last day or so - up, down, >> up, >> down, up - and currently, down >> >> 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/Is-it-just-me-The-LiveCode-website-tp4693632p4693639.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 tate83 at gmail.com Mon Jul 6 04:19:31 2015 From: tate83 at gmail.com (Pascal Lehner) Date: Mon, 6 Jul 2015 10:19:31 +0200 Subject: Database Input Validation Message-ID: Hi all, I am working on a desktop app that is running a SQLite database and might well end up as a HTML5 server version with MySQL in the not-so-far future. For this I want to have some sort of input validation to avoid security and XSS incidents. Does anyone have a library or function to "sanitize" any sql statement before running it against the database? Or how do you do this? Thanks, Pascal From ambassador at fourthworld.com Mon Jul 6 13:11:33 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 06 Jul 2015 10:11:33 -0700 Subject: Release 6.7.6 / 7.0.6 In-Reply-To: <5599680B.1030002@gmail.com> References: <5599680B.1030002@gmail.com> Message-ID: <559AB6C5.5000909@fourthworld.com> Richmond wrote: > On 05/07/15 20:18, Richard Gaskin wrote: >> >> I believe both the RQCC being down and the bug itself may be related >> to the recent DDoS attack. I'm unable to reproduce this issue this >> morning under Ubuntu 14.10. I would try again while the servers >> appear to be working well. > > This is a load of nonsense: see my new notes over at the bug report. > > Richmond. I was volunteering time away from business and personal things on a holiday weekend to try to help you, and that's how you respond? Maybe your keyboard got stuck when you were trying to type "Thanks for trying, but that doesn't resolve the issue." My suggestion was based on the following: - The LiveCode servers had been under periodic DDoS attacks over the previous few days. - The LiveCode IDE makes some calls to their servers to verify accounts for opt-in features like the Dictionary comments and RevOnline. - I was unable to reproduce the problem you'd reported on Xubuntu while I was running Ubuntu and Lubuntu, which are similar enough to Xubuntu be relevant here. - You noted LiveCode was able to run but stopped at a point well after engine initialization, suggesting something script-related rather than compatibility of the engine with your OS config. - The DDoS attacks had stopped at the time I was unable to reproduce the issue. - My reply here was before you'd posted your follow-up to that report. Given all this, although apparently I didn't guess correctly it wasn't a bad first stab at a diagnosis. I did read the comment there you'd posted later, and by now I trust you've also read Hanson's: that is odd. We test all the installers for installation and execution before they get shipped. I also just tested the installation again, just in case we had missed something, but it installs just fine for "You only" on a non-root account. As Richard suggests, have you been able to install other versions of LiveCode on the machine you are trying to install 6.7.6? The report is currently marked "Pending Awaiting Follow-Up", and with any luck as you provide the information the team needs to reproduce this they'll be able to find a solution for you. In the meantime, when someone goes out of their way to try to help you and you don't understand their methods, what you have is a question, not a reason to dismiss their help as "nonsense". -- 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 Mon Jul 6 14:31:57 2015 From: richmondmathewson at gmail.com (Richmond) Date: Mon, 6 Jul 2015 21:31:57 +0300 Subject: Release 6.7.6 / 7.0.6 In-Reply-To: <559AB6C5.5000909@fourthworld.com> References: <5599680B.1030002@gmail.com> <559AB6C5.5000909@fourthworld.com> Message-ID: <559AC99D.7010806@gmail.com> On 06/07/15 20:11, Richard Gaskin wrote: > Richmond wrote: > > > On 05/07/15 20:18, Richard Gaskin wrote: > >> > >> I believe both the RQCC being down and the bug itself may be related > >> to the recent DDoS attack. I'm unable to reproduce this issue this > >> morning under Ubuntu 14.10. I would try again while the servers > >> appear to be working well. > > > > This is a load of nonsense: see my new notes over at the bug report. > > > > Richmond. > > I was volunteering time away from business and personal things on a > holiday weekend to try to help you, and that's how you respond? I'm sorry: all sorts of things were happening at once. AS I had tried starting 6.7.6 up while my machine was disconnected from the internet it obviously had nothing at all to do with DDoS attacks. Now, at work today I installed 6.7.6 on 3 machines which are never connected to the internet [they had their Xubuntu 14.04 systems installed from one of those DVDs one can use so one doesn't need internet access. A very similar situation. > > Maybe your keyboard got stuck when you were trying to type "Thanks for > trying, but that doesn't resolve the issue." No, my keyboard did not get stuck; I was in a filthy mood for all sorts of reasons, 6.7.6 being just one of them, and as I was installing it from an installer I had downloaded rather than using LiveCode's in-built upgrader the stuff about DDoS was 'nonsense', like it or not. > > My suggestion was based on the following: > > - The LiveCode servers had been under periodic DDoS attacks over the > previous few days. > > - The LiveCode IDE makes some calls to their servers to verify accounts > for opt-in features like the Dictionary comments and RevOnline. Not if it is installed on a machine that has NO internet access. I, successfully, installed 7.0.6 on several of my never-had-internet machines at school today. > > - I was unable to reproduce the problem you'd reported on Xubuntu while > I was running Ubuntu and Lubuntu, which are similar enough to Xubuntu > be relevant here. > > - You noted LiveCode was able to run but stopped at a point well after > engine initialization, suggesting something script-related rather than > compatibility of the engine with your OS config. > > - The DDoS attacks had stopped at the time I was unable to reproduce > the issue. > > - My reply here was before you'd posted your follow-up to that report. > > > Given all this, although apparently I didn't guess correctly it wasn't > a bad first stab at a diagnosis. > > I did read the comment there you'd posted later, and by now I trust > you've also read Hanson's: > > that is odd. We test all the installers for installation and > execution before they get shipped. I also just tested the > installation again, just in case we had missed something, but > it installs just fine for "You only" on a non-root account. > > As Richard suggests, have you been able to install other versions > of LiveCode on the machine you are trying to install 6.7.6? > > The report is currently marked "Pending Awaiting Follow-Up", and with > any luck as you provide the information the team needs to reproduce > this they'll be able to find a solution for you. > > In the meantime, when someone goes out of their way to try to help you > and you don't understand their methods, what you have is a question, > not a reason to dismiss their help as "nonsense". > I would not have dismissed something as nonsense had I been able to see some sense in it. As very many people have used far stronger language at me in the past, I, personally would never be offended by 'nonsense'; water off a duck's back! I DO appreciate ALL that you do for LiveCode, unremunerated. And I, from time-to-time do a bit as well: some of which has been rubbished in far stronger terms that 'nonsense' - and I am sufficiently thick-skinned that that does not fuss me. So, while I am sorry that I miffed you, I do stand by my assessment of DDoS as the possible cause of this problem. Best [really!], Richmond. From richmondmathewson at gmail.com Mon Jul 6 14:35:55 2015 From: richmondmathewson at gmail.com (Richmond) Date: Mon, 6 Jul 2015 21:35:55 +0300 Subject: Release 6.7.6 / 7.0.6 In-Reply-To: <559AB6C5.5000909@fourthworld.com> References: <5599680B.1030002@gmail.com> <559AB6C5.5000909@fourthworld.com> Message-ID: <559ACA8B.4030202@gmail.com> AND, real or imaginary insults aside, unfortunately, the Quality Control Center, along with all the other bits of RunRev's site seem to be "down the tubes" again, whether because of DDoS or something else, I don't know. Which is a very great pity as I was going to add some more info about bug 15574. Richmond. From jacque at hyperactivesw.com Mon Jul 6 15:33:51 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 06 Jul 2015 14:33:51 -0500 Subject: Release 6.7.6 / 7.0.6 In-Reply-To: <559ACA8B.4030202@gmail.com> References: <5599680B.1030002@gmail.com> <559AB6C5.5000909@fourthworld.com> <559ACA8B.4030202@gmail.com> Message-ID: <559AD81F.8010408@hyperactivesw.com> On 7/6/2015 1:35 PM, Richmond wrote: > unfortunately, the Quality Control Center, along > with all the other bits of RunRev's site seem to be "down the tubes" > again, whether because > of DDoS or something else, I don't know. Yeah, I noticed that too while trying to update a bug report. I think it's been down for some time. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bobsneidar at iotecdigital.com Mon Jul 6 15:36:02 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 6 Jul 2015 19:36:02 +0000 Subject: Open Socket With Messages Message-ID: <904EBBE7-565E-4C0D-AAED-9F4770C0D2A9@iotecdigital.com> Hi all. I am trying to use open socket like this: put aConnection["dbhost"] & ":" & aConnection["dbport"] into theSocket open secure socket to theSocket with message socketConnected wait for messages put the openSockets into theOpenSockets close socket theSocket I have this handler in the same script: on socketConnected -- callBack for open socket commands put "connected!" end socketConnected The problem is, socketConnected never gets called. The connection works because theOpenSockets contains the connection as it should, but I never get the callback. What am I missing? Bob S From richmondmathewson at gmail.com Mon Jul 6 15:37:46 2015 From: richmondmathewson at gmail.com (Richmond) Date: Mon, 6 Jul 2015 22:37:46 +0300 Subject: Release 6.7.6 / 7.0.6 In-Reply-To: <559AD81F.8010408@hyperactivesw.com> References: <5599680B.1030002@gmail.com> <559AB6C5.5000909@fourthworld.com> <559ACA8B.4030202@gmail.com> <559AD81F.8010408@hyperactivesw.com> Message-ID: <559AD90A.1040709@gmail.com> On 06/07/15 22:33, J. Landman Gay wrote: > On 7/6/2015 1:35 PM, Richmond wrote: >> unfortunately, the Quality Control Center, along >> with all the other bits of RunRev's site seem to be "down the tubes" >> again, whether because >> of DDoS or something else, I don't know. > > Yeah, I noticed that too while trying to update a bug report. I think > it's been down for some time. > Having said that, I have just managed to get in there and add what I wanted to Bug 15574. Love, Richmond. From bobsneidar at iotecdigital.com Mon Jul 6 15:55:02 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 6 Jul 2015 19:55:02 +0000 Subject: menu buttons and showname In-Reply-To: References: <5595589F.9000007@fourthworld.com> <553309B4-DE54-45A5-8165-16AFB6C0372A@iotecdigital.com> Message-ID: <77375E9F-ED17-4AF9-A18D-357D895181BF@iotecdigital.com> New copier device. Popup menu of manufacturers. I want user to explicitly pick a manufacturer, not just ignore the manufacturer that is there. I set it to empty and then check for empty before saving the data. Bob S On Jul 2, 2015, at 20:07 , Kay C Lan > wrote: I still can't invisage a situation where you'd want an empty option button. From bobsneidar at iotecdigital.com Mon Jul 6 15:57:38 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 6 Jul 2015 19:57:38 +0000 Subject: menu buttons and showname In-Reply-To: <68C33F0B-C9F3-401B-9559-EFF72E09376F@comcast.net> References: <68C33F0B-C9F3-401B-9559-EFF72E09376F@comcast.net> Message-ID: <7A4B4E32-90B2-48DD-BBA3-768ACD8A3075@iotecdigital.com> There are all kinds of workarounds for this. What is being discussed is why we need workarounds in the first place. Bob S > On Jul 3, 2015, at 05:25 , David Epstein wrote: > > ?Set the label of button myBtn to space? makes an option button appear blank but does not interfere with a user?s subsequent choice of an option. > While disabling the button or hiding the button are other ways of making clear that no option is in effect, an able but blank option button means that an option can be put into effect in one step, not requiring some other action that enables or shows the button. > > David Epstein > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From eric at canelasoftware.com Mon Jul 6 15:59:02 2015 From: eric at canelasoftware.com (Eric Corbett) Date: Mon, 6 Jul 2015 12:59:02 -0700 Subject: Open Socket With Messages In-Reply-To: <904EBBE7-565E-4C0D-AAED-9F4770C0D2A9@iotecdigital.com> References: <904EBBE7-565E-4C0D-AAED-9F4770C0D2A9@iotecdigital.com> Message-ID: Did you accept connection on port aConnection["deport?]? I think it?s possible for the open socket to remain in the openSockets list until the connection times out. Grab message socketTimeout pSocketID to see if it?s timing out without connecting. Eric On Jul 6, 2015, at 12:36 PM, Bob Sneidar wrote: > Hi all. > > I am trying to use open socket like this: > > put aConnection["dbhost"] & ":" & aConnection["dbport"] into theSocket > open secure socket to theSocket with message socketConnected > wait for messages > put the openSockets into theOpenSockets > close socket theSocket > > I have this handler in the same script: > on socketConnected > -- callBack for open socket commands > put "connected!" > end socketConnected > > The problem is, socketConnected never gets called. The connection works because theOpenSockets contains the connection as it should, but I never get the callback. What am I missing? > > 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 jacque at hyperactivesw.com Mon Jul 6 15:59:38 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 06 Jul 2015 14:59:38 -0500 Subject: Release 6.7.6 / 7.0.6 In-Reply-To: <559AD90A.1040709@gmail.com> References: <5599680B.1030002@gmail.com> <559AB6C5.5000909@fourthworld.com> <559ACA8B.4030202@gmail.com> <559AD81F.8010408@hyperactivesw.com> <559AD90A.1040709@gmail.com> Message-ID: <559ADE2A.5090608@hyperactivesw.com> On 7/6/2015 2:37 PM, Richmond wrote: > On 06/07/15 22:33, J. Landman Gay wrote: >> On 7/6/2015 1:35 PM, Richmond wrote: >>> unfortunately, the Quality Control Center, along >>> with all the other bits of RunRev's site seem to be "down the tubes" >>> again, whether because >>> of DDoS or something else, I don't know. >> >> Yeah, I noticed that too while trying to update a bug report. I think >> it's been down for some time. >> > > Having said that, I have just managed to get in there and add what I > wanted to Bug 15574. Me too, thanks to your heads-up. Seems to be an on-off sort of thing; yesterday someone else reported that he submitted a report but later in the day I couldn't get in. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bonnmike at gmail.com Mon Jul 6 15:59:50 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Mon, 6 Jul 2015 13:59:50 -0600 Subject: Open Socket With Messages In-Reply-To: <904EBBE7-565E-4C0D-AAED-9F4770C0D2A9@iotecdigital.com> References: <904EBBE7-565E-4C0D-AAED-9F4770C0D2A9@iotecdigital.com> Message-ID: A couple things.. Remove the wait for messages, its not needed and is probably a bad idea. Then, since you're opening a secure socket, you might need to specify with, or without verification (depending on your needs of course) Also, there is a parameter that is passed along with the message that contains the socket id. So on socketConnected should be "on socketConnected pSocketId" at which point you know which socket has completed. (Since multiple sockets can be open, this way you know WHICH one just finished opening) I'd recommend looking at internet_chat.rev if you haven't. YOu can get it by going to resources (button on the LC bar) and on the left under sample projects, there it is. I think the biggest issue though is wait for messages. It'd just sit there waiting for something, but it has no clue what. On Mon, Jul 6, 2015 at 1:36 PM, Bob Sneidar wrote: > Hi all. > > I am trying to use open socket like this: > > put aConnection["dbhost"] & ":" & aConnection["dbport"] into > theSocket > open secure socket to theSocket with message socketConnected > wait for messages > put the openSockets into theOpenSockets > close socket theSocket > > I have this handler in the same script: > on socketConnected > -- callBack for open socket commands > put "connected!" > end socketConnected > > The problem is, socketConnected never gets called. The connection works > because theOpenSockets contains the connection as it should, but I never > get the callback. What am I missing? > > 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 bobsneidar at iotecdigital.com Mon Jul 6 16:00:50 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 6 Jul 2015 20:00:50 +0000 Subject: how to check for unnecessary local declarations? In-Reply-To: <5596DA2D.4090806@ahsoftware.net> References: <001001d0b404$1d43dd00$57cb9700$@kestner.de> <68A05D7B-9479-4415-8791-B70104F871B6@iotecdigital.com> <55962D5A.5020702@ahsoftware.net> <5596DA2D.4090806@ahsoftware.net> Message-ID: Thanks Mark. The code to get the script locals looks suspiciously like what I suggested. Are you sure Jerry didn?t use Jacques Time Travel stack to steal my code?? Bob S > On Jul 3, 2015, at 11:53 , Mark Wieder wrote: > > On 07/03/2015 11:11 AM, Peter Haworth wrote: >> Nice! Only thing I don't see is dealing with block comments - the things >> surrounded by "/*" and "*/" and possibly spanning several lines. > > There's some DRY cleanup that could be done as well. > Feel free to make it better and submit the changes. > It's all on bitbucket, and unfortunately it's a LiveCode stack rather than text files so you can't submit git pull requests, but drop me a note or create an issue. > > https://bitbucket.org/mwieder/glx2/wiki/Home > > -- > Mark Wieder > ahsoftware at gmail.com From scott at tactilemedia.com Mon Jul 6 16:04:08 2015 From: scott at tactilemedia.com (Scott Rossi) Date: Mon, 06 Jul 2015 13:04:08 -0700 Subject: menu buttons and showname In-Reply-To: <77375E9F-ED17-4AF9-A18D-357D895181BF@iotecdigital.com> References: <5595589F.9000007@fourthworld.com> <553309B4-DE54-45A5-8165-16AFB6C0372A@iotecdigital.com> <77375E9F-ED17-4AF9-A18D-357D895181BF@iotecdigital.com> Message-ID: Hi Bob: I would propose that empty is not an informative value for a user. Something like "" or a call to action "Select an option" is going to be more helpful than an empty line. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 7/6/15, 12:55 PM, "Bob Sneidar" wrote: >New copier device. Popup menu of manufacturers. I want user to explicitly >pick a manufacturer, not just ignore the manufacturer that is there. I >set it to empty and then check for empty before saving the data. > >Bob S > > >On Jul 2, 2015, at 20:07 , Kay C Lan >> wrote: > >I still can't invisage a situation where you'd want an empty option >button. > >_______________________________________________ >use-livecode mailing list >use-livecode at 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 Jul 6 16:12:21 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 6 Jul 2015 20:12:21 +0000 Subject: Database Input Validation In-Reply-To: References: Message-ID: One way I used in the past was to get the schema of the table, and for each column I would be updating I would check type, length, limits etc. to make sure my data fell within the constraints of the column. Another way involves using the error messages SQL sends back when a query fails to determine what went wrong, and then alert the end user about what they need to do to fix it. To do this, you would put your insert/updates into try/catch loops and in the catch section call some command you write passing it the first parameter from the catch section. i.e. try catch theError processSQLError theError end try Bob S > On Jul 6, 2015, at 01:19 , Pascal Lehner wrote: > > Hi all, > > I am working on a desktop app that is running a SQLite database and might > well end up as a HTML5 server version with MySQL in the not-so-far future. > For this I want to have some sort of input validation to avoid security and > XSS incidents. > > Does anyone have a library or function to "sanitize" any sql statement > before running it against the database? Or how do you do this? > > Thanks, > > Pascal > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 6 16:13:04 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 6 Jul 2015 20:13:04 +0000 Subject: Database Input Validation In-Reply-To: References: Message-ID: <96A72B11-5C6A-4F95-BF61-40A06B02190F@iotecdigital.com> Sorry try/catch is not a loop. :-) Bob S > On Jul 6, 2015, at 13:12 , Bob Sneidar wrote: > > One way I used in the past was to get the schema of the table, and for each column I would be updating I would check type, length, limits etc. to make sure my data fell within the constraints of the column. Another way involves using the error messages SQL sends back when a query fails to determine what went wrong, and then alert the end user about what they need to do to fix it. To do this, you would put your insert/updates into try/catch loops and in the catch section call some command you write passing it the first parameter from the catch section. i.e. > > try > > catch theError > processSQLError theError > end try > > Bob S > > >> On Jul 6, 2015, at 01:19 , Pascal Lehner wrote: >> >> Hi all, >> >> I am working on a desktop app that is running a SQLite database and might >> well end up as a HTML5 server version with MySQL in the not-so-far future. >> For this I want to have some sort of input validation to avoid security and >> XSS incidents. >> >> Does anyone have a library or function to "sanitize" any sql statement >> before running it against the database? Or how do you do this? >> >> Thanks, >> >> Pascal >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 Jul 6 16:21:51 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 6 Jul 2015 20:21:51 +0000 Subject: Open Socket With Messages In-Reply-To: References: <904EBBE7-565E-4C0D-AAED-9F4770C0D2A9@iotecdigital.com> Message-ID: It doesn?t wait. It passes the wait for messages just fine. I am using wait for messages because that is what the dictionary says I should be doing if I need to wait for the connection to be made before proceeding, otherwise the script will just keep going, which is precisely what I do NOT want it to do. Now if *ANY* livecode message will cause it to pass muster, then that is bad, because livecode is sending messages all the time. In this case, I am only opening one socket so I don?t need to check which one. I already went on to try getting the parameter and putting that instead of the literal ?connected!?. Still the callback handler is not getting triggered. That is really the issue here. The result is empty indicating that there is no error, yet the callback handler is not getting triggered. Bob S On Jul 6, 2015, at 12:59 , Mike Bonner > wrote: A couple things.. Remove the wait for messages, its not needed and is probably a bad idea. Then, since you're opening a secure socket, you might need to specify with, or without verification (depending on your needs of course) Also, there is a parameter that is passed along with the message that contains the socket id. So on socketConnected should be "on socketConnected pSocketId" at which point you know which socket has completed. (Since multiple sockets can be open, this way you know WHICH one just finished opening) I'd recommend looking at internet_chat.rev if you haven't. YOu can get it by going to resources (button on the LC bar) and on the left under sample projects, there it is. I think the biggest issue though is wait for messages. It'd just sit there waiting for something, but it has no clue what. From bobsneidar at iotecdigital.com Mon Jul 6 16:23:06 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 6 Jul 2015 20:23:06 +0000 Subject: Open Socket With Messages In-Reply-To: References: <904EBBE7-565E-4C0D-AAED-9F4770C0D2A9@iotecdigital.com> Message-ID: <20CB8CB2-4D47-43F4-8A14-5E25CE2EE822@iotecdigital.com> I am connecting to a mySQL server so I do not need to manage the host. Bob S On Jul 6, 2015, at 12:59 , Eric Corbett > wrote: Did you accept connection on port aConnection["deport?]? I think it?s possible for the open socket to remain in the openSockets list until the connection times out. Grab message socketTimeout pSocketID to see if it?s timing out without connecting. Eric On Jul 6, 2015, at 12:36 PM, Bob Sneidar > wrote: From rdimola at evergreeninfo.net Mon Jul 6 16:32:10 2015 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Mon, 6 Jul 2015 16:32:10 -0400 Subject: put url web service timeout In-Reply-To: References: <5595589F.9000007@fourthworld.com> <553309B4-DE54-45A5-8165-16AFB6C0372A@iotecdigital.com> <77375E9F-ED17-4AF9-A18D-357D895181BF@iotecdigital.com> Message-ID: <007001d0b82a$d5d24990$8176dcb0$@net> I created a web service with a "wait 30 seconds" before I return data. When I access my web service from a browser the browser hangs for 30 seconds and returned data is as expected. When I do a ===>put url ("http://myaccount.on-rev.com/myservice.lc?info1=blah) into MyVar<== it times out in about 9 or 10 seconds and MyVar is empty. I tried doing a ==>set the httpheaders to "Timeout: 100000"<== with no joy. If I reduce the wait in the server code to a 5 seconds then MyVar contains the expected data(after a 5 seconds wait) Anyone know what I am missing? The reason I am testing long delays is to debug why my sendmail request to the web service was returning empty. Sendmail on the server is taking 11 seconds to finish so I never received a return status. Thank You! Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net From bobsneidar at iotecdigital.com Mon Jul 6 16:38:43 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 6 Jul 2015 20:38:43 +0000 Subject: menu buttons and showname In-Reply-To: References: <5595589F.9000007@fourthworld.com> <553309B4-DE54-45A5-8165-16AFB6C0372A@iotecdigital.com> <77375E9F-ED17-4AF9-A18D-357D895181BF@iotecdigital.com> Message-ID: Agreed. Which brings me back to the point that when the label of a popup menu is empty there ought to be some default behavior like displaying the tootTip or a property containing a value the developer can set. I think we are all agreed that what it ought NOT to do is display the object name. Workarounds are plentiful, but as I stated before this is not about a workaround, it is about a control that doesn?t need workarounds to function as you might expect. Bob S On Jul 6, 2015, at 13:04 , Scott Rossi > wrote: Hi Bob: I would propose that empty is not an informative value for a user. Something like "" or a call to action "Select an option" is going to be more helpful than an empty line. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design From bobsneidar at iotecdigital.com Mon Jul 6 16:46:09 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 6 Jul 2015 20:46:09 +0000 Subject: Open Socket With Messages In-Reply-To: <904EBBE7-565E-4C0D-AAED-9F4770C0D2A9@iotecdigital.com> References: <904EBBE7-565E-4C0D-AAED-9F4770C0D2A9@iotecdigital.com> Message-ID: Out of curiosity, would having these handlers in a frontscript be a problem? Bob S From pete at lcsql.com Mon Jul 6 16:49:22 2015 From: pete at lcsql.com (Peter Haworth) Date: Mon, 06 Jul 2015 20:49:22 +0000 Subject: Database Input Validation In-Reply-To: References: Message-ID: Hi Pascal, I assume you're referring to SQL injection attacks. You can avoid them by using the varslist/arrayname parameter of revDataFromQuery/revQueryDatabase/revExecute SQL. See the dictionary for more details but it involves using placeholders in your SQL statements and loading the values for those placeholders into separate variables or a numerically keyed array. On Mon, Jul 6, 2015 at 1:20 AM Pascal Lehner wrote: > Hi all, > > I am working on a desktop app that is running a SQLite database and might > well end up as a HTML5 server version with MySQL in the not-so-far future. > For this I want to have some sort of input validation to avoid security and > XSS incidents. > > Does anyone have a library or function to "sanitize" any sql statement > before running it against the database? Or how do you do this? > > Thanks, > > Pascal > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bonnmike at gmail.com Mon Jul 6 16:54:20 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Mon, 6 Jul 2015 14:54:20 -0600 Subject: Open Socket With Messages In-Reply-To: References: <904EBBE7-565E-4C0D-AAED-9F4770C0D2A9@iotecdigital.com> Message-ID: Hmm. YOu might check socketError Also, in 7.0.5, I just tried this in a button. on mouseUp put "www.google.com:443" into theSocket open secure socket to theSocket with message socketConnected wait for messages put "HI!" & cr end mouseUp on socketConnected pSocket -- callBack for open socket commands put the openSockets into theOpenSockets put merge("Connected to socket: [[pSocket & cr]]") after msg close socket pSocket put merge("Socket [[pSocket]] now closed") after msg end socketConnected I left the "wait for messages" in just to test something. Interestingly, the "HI!" is put into the message box first, which kinda indicates another message is making it pop before the socketConnected fires. But I figure, moving the stuff that you don't want to run into the handler specified using "with message" makes it so that it won't run until the connection is complete anyway. Having said that, no clue why its not working for you, though I seem to recall Dr H having trouble with "secure" connections in the past, and there having been a bug of some type. What version of LC are you using? The dictionary does says the "wait for messages" form will trigger from any message. And the way the message box is populated it seems to confirm. HI shows up, then "connected, then "disconnected" On Mon, Jul 6, 2015 at 2:46 PM, Bob Sneidar wrote: > Out of curiosity, would having these handlers in a frontscript be a > problem? > > Bob S > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pete at lcsql.com Mon Jul 6 17:01:04 2015 From: pete at lcsql.com (Peter Haworth) Date: Mon, 06 Jul 2015 21:01:04 +0000 Subject: [OT] SQLite/Unicode Message-ID: For those of you wanting to use Unicode with an SQLite database, I came across this on the SQLite list: https://bitbucket.org/alekseyt/nunicode#markdown-header-sqlite3-extension Livecode 7 makes it very easy to insert and retrieve Unicode data to/from an SQlite database but there are some functions within SQlite that don't work correctly with Unicode, specifically upper(), lower(), COLLATE and X LIKE Y. The above sqlite extension makes those function work. It's a library that is loadable at runtime. To load a runtime extension from Livecode: - use the "extensions" keyword of the revOpendatabase sqliteoptions parameter - use the SQLite load_extension() function to load the library. From bobsneidar at iotecdigital.com Mon Jul 6 17:15:05 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 6 Jul 2015 21:15:05 +0000 Subject: Open Socket With Messages In-Reply-To: References: <904EBBE7-565E-4C0D-AAED-9F4770C0D2A9@iotecdigital.com> Message-ID: <54DB6473-B0D6-4F0C-8AEE-360E2397D872@iotecdigital.com> I figured it out. First, wait for messages is just this side of useless. *ANY* message that comes through will do, not just messages from the open socket command. Secondly, I just set up my own wait loop that exits when the socket is in the openSockets or else times out after 10 seconds. This will work for me. I went back to the dictionary and read more thoroughly what wait for messages does, and while it is working as advertised, it is fairly worthless in it?s present form unless you find a way to trap for *ALL* messages and only respond to the callback, which is way more involved than it ought to be. Bob S > On Jul 6, 2015, at 13:54 , Mike Bonner wrote: > > Hmm. YOu might check socketError > From richmondmathewson at gmail.com Mon Jul 6 17:37:22 2015 From: richmondmathewson at gmail.com (Richmond) Date: Tue, 7 Jul 2015 00:37:22 +0300 Subject: Using GIMP to make buttons Message-ID: <559AF512.3040106@gmail.com> My tutorial is now available: https://www.dropbox.com/sh/tyt4o1md51bfair/AABThCCgJkqLQvz1e-NRQGg7a?dl=0 File: GB.zip If you like it please go here: https://www.facebook.com/RMLCclasses and click "Like". Richmond. From dochawk at gmail.com Mon Jul 6 19:14:14 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Mon, 6 Jul 2015 16:14:14 -0700 Subject: including a library in a standalone Message-ID: I happily managed to get the library stack working for shared routines in pretty much a matter of minutes. I've got my routine to prepare for compile copying the library stack to the project stack. However, I assumed "library stack libStackName" would work in a standalone, but it creates errors error 91 and 568 (can't find stack). I very much do not want to have a stack hanging around to potentially have its routine's called, password protected or not; I want a monolithic app. Is inserting as a back script there way to go? And if so, would I be better off doing the same in the IDE rather than as a library? -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From sc at sahores-conseil.com Mon Jul 6 19:29:49 2015 From: sc at sahores-conseil.com (Pierre Sahores) Date: Tue, 7 Jul 2015 01:29:49 +0200 Subject: put url web service timeout In-Reply-To: <007001d0b82a$d5d24990$8176dcb0$@net> References: <5595589F.9000007@fourthworld.com> <553309B4-DE54-45A5-8165-16AFB6C0372A@iotecdigital.com> <77375E9F-ED17-4AF9-A18D-357D895181BF@iotecdigital.com> <007001d0b82a$d5d24990$8176dcb0$@net> Message-ID: <0E8B7A3E-CEBE-4682-A635-CCE4146C8846@sahores-conseil.com> Should this sendmail script helps ? function emailLC7 pTo, pSub, pMsg, pFrom, pFromName local tMsg put "From:" && pFromName && "<" & pFrom & ">" & cr & "To:" && pTo & cr & "Subject:" && pSub & cr & "Content-Type: text/html; charset=" & setQuote("utf-8") & cr & cr & pMsg into tMsg put the tempName into tFile put tMsg into url ("binfile:" & tFile) put "/usr/sbin/sendmail -oi -t -f" && setQuote(escapeShellArg("<" & tFromEmail & ">")) && "<" && setQuote(escapeShellArg(tFile)) into tCmd put shell(tCmd) into tOutput delete file tFile end emailLC7 function escapeShellArg pString repeat for each char tChar in ("\`!$" & quote) replace tChar with ("\" & tChar) in pString end repeat return pString end escapeShellArg function setQuote texte return quote & texte & quote end setQuote Works fine against LC Server 7 note : pTo param can handle multiple emails in using ? , ? as the itemdelimiter -- Pierre Sahores mobile : 06 03 95 77 70 www.sahores-conseil.com > Le 6 juil. 2015 ? 22:32, Ralph DiMola a ?crit : > > The > reason I am testing long delays is to debug why my sendmail request to the > web service was returning empty. Sendmail on the server is taking 11 seconds > to finish so I never received a return status. From bonnmike at gmail.com Mon Jul 6 19:41:09 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Mon, 6 Jul 2015 17:41:09 -0600 Subject: including a library in a standalone In-Reply-To: References: Message-ID: The library stack is a substack of the mainstack I assume? If so, make sure you haven''t set things so that it breaks out substacks into separate stackfiles. (at which point its no longer monolithic) If the library stack isn't a substack, you should make it so that it is.(in code, set the mainstack of stack "librarystack" to "NameOfTheMainstack") On Mon, Jul 6, 2015 at 5:14 PM, Dr. Hawkins wrote: > I happily managed to get the library stack working for shared routines in > pretty much a matter of minutes. > > I've got my routine to prepare for compile copying the library stack to the > project stack. > > However, I assumed "library stack libStackName" would work in a standalone, > but it creates errors error 91 and 568 (can't find stack). > > I very much do not want to have a stack hanging around to potentially have > its routine's called, password protected or not; I want a monolithic app. > > Is inserting as a back script there way to go? And if so, would I be > better off doing the same in the IDE rather than as a library? > > -- > Dr. Richard E. Hawkins, Esq. > (702) 508-8462 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bobsneidar at iotecdigital.com Mon Jul 6 19:56:35 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 6 Jul 2015 23:56:35 +0000 Subject: [OT] OpenSSL GUI Message-ID: Hi all. I have struggled all day long with generating a self-signed SSL cert following exact instructions from several different sites. As usual, people post as though it?s a cinch, but when following their instructions, what I run into is a series of errors that OpenSSL generates as it repeatedly fails to do what I am telling to do. What I really need (and what ought to be part of the openssl download) is a Graphical User Interface that takes care of all the details for me. Anyone know where I can dl one? I googled this but of course I get a lot of crap that takes me just about anywhere *except* where they say they are taking me. Bob S From dochawk at gmail.com Mon Jul 6 20:05:23 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Mon, 6 Jul 2015 17:05:23 -0700 Subject: "save as" of stack file from a script In-Reply-To: References: <55972F39.8090101@fourthworld.com> Message-ID: On Sat, Jul 4, 2015 at 9:23 AM, Peter Haworth wrote: > *dispatch* "revSaveAsStandalone" to stack "revSaveAsStandalone" with > "" > This worked wonderfully. At least after I fixed the way the save folder gets automatically set to match my new changes. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From dochawk at gmail.com Mon Jul 6 20:08:15 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Mon, 6 Jul 2015 17:08:15 -0700 Subject: including a library in a standalone In-Reply-To: References: Message-ID: On Mon, Jul 6, 2015 at 4:41 PM, Mike Bonner wrote: > The library stack is a substack of the mainstack I assume? If so, make > sure you haven''t set things so that it breaks out substacks into separate > stackfiles. (at which point its no longer monolithic) If the library stack > isn't a substack, you should make it so that it is.(in code, set the > mainstack of stack "librarystack" to "NameOfTheMainstack") > It's a fresh substack. My prepCmpl routine copies the entire file, deletes extraneous stacks, and then adds a couple of stacks from the library back in, and then it compiles. A quick "answer exists(stack "dhLib")" confirmed that the stack was indeed in the standalone, but "library dhLib" fails. And now I'm back to the very long compile times; I think it's been at it over ten minutes . . . -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From pete at lcsql.com Mon Jul 6 20:44:08 2015 From: pete at lcsql.com (Peter Haworth) Date: Tue, 07 Jul 2015 00:44:08 +0000 Subject: including a library in a standalone In-Reply-To: References: Message-ID: I've only used the "start using" synonym for "library" but with it you have to include the word library so maybe library stack "dhLib" will work. On Mon, Jul 6, 2015 at 5:08 PM Dr. Hawkins wrote: > On Mon, Jul 6, 2015 at 4:41 PM, Mike Bonner wrote: > > > The library stack is a substack of the mainstack I assume? If so, make > > sure you haven''t set things so that it breaks out substacks into > separate > > stackfiles. (at which point its no longer monolithic) If the library > stack > > isn't a substack, you should make it so that it is.(in code, set the > > mainstack of stack "librarystack" to "NameOfTheMainstack") > > > > It's a fresh substack. > > My prepCmpl routine copies the entire file, deletes extraneous stacks, and > then adds a couple of stacks from the library back in, and then it > compiles. > > A quick "answer exists(stack "dhLib")" confirmed that the stack was indeed > in the standalone, but "library dhLib" fails. > > And now I'm back to the very long compile times; I think it's been at it > over ten minutes . . . > > > -- > Dr. Richard E. Hawkins, Esq. > (702) 508-8462 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dochawk at gmail.com Mon Jul 6 22:18:06 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Mon, 6 Jul 2015 19:18:06 -0700 Subject: Open Socket With Messages In-Reply-To: <54DB6473-B0D6-4F0C-8AEE-360E2397D872@iotecdigital.com> References: <904EBBE7-565E-4C0D-AAED-9F4770C0D2A9@iotecdigital.com> <54DB6473-B0D6-4F0C-8AEE-360E2397D872@iotecdigital.com> Message-ID: On Mon, Jul 6, 2015 at 2:15 PM, Bob Sneidar wrote: > I went back to the dictionary and read more thoroughly what wait for > messages does, and while it is working as advertised, it is fairly > worthless in it?s present form unless you find a way to trap for *ALL* > messages and only respond to the callback, which is way more involved than > it ought to be. > I have ended up with a "wait 0 for messages". It allows things to happen, without waiting for them.. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From rdimola at evergreeninfo.net Mon Jul 6 22:32:46 2015 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Mon, 6 Jul 2015 22:32:46 -0400 Subject: put url web service timeout In-Reply-To: <0E8B7A3E-CEBE-4682-A635-CCE4146C8846@sahores-conseil.com> References: <5595589F.9000007@fourthworld.com> <553309B4-DE54-45A5-8165-16AFB6C0372A@iotecdigital.com> <77375E9F-ED17-4AF9-A18D-357D895181BF@iotecdigital.com> <007001d0b82a$d5d24990$8176dcb0$@net> <0E8B7A3E-CEBE-4682-A635-CCE4146C8846@sahores-conseil.com> Message-ID: <008f01d0b85d$35ad8d20$a108a760$@net> Pierre, Thanks! I am doing the same thing (even the same escapeShellArg and setQuote). The big delay is when I send mail to other domains than on-rev.com. I would think that the 10 second timeout in the LC client should be able to be increased somehow. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net Phone: 518-636-3998 Ex:11 Cell: 518-796-9332 -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Pierre Sahores Sent: Monday, July 06, 2015 7:30 PM To: How to use LiveCode Subject: Re: put url web service timeout Should this sendmail script helps ? function emailLC7 pTo, pSub, pMsg, pFrom, pFromName local tMsg put "From:" && pFromName && "<" & pFrom & ">" & cr & "To:" && pTo & cr & "Subject:" && pSub & cr & "Content-Type: text/html; charset=" & setQuote("utf-8") & cr & cr & pMsg into tMsg put the tempName into tFile put tMsg into url ("binfile:" & tFile) put "/usr/sbin/sendmail -oi -t -f" && setQuote(escapeShellArg("<" & tFromEmail & ">")) && "<" && setQuote(escapeShellArg(tFile)) into tCmd put shell(tCmd) into tOutput delete file tFile end emailLC7 function escapeShellArg pString repeat for each char tChar in ("\`!$" & quote) replace tChar with ("\" & tChar) in pString end repeat return pString end escapeShellArg function setQuote texte return quote & texte & quote end setQuote Works fine against LC Server 7 note : pTo param can handle multiple emails in using ? , ? as the itemdelimiter -- Pierre Sahores mobile : 06 03 95 77 70 www.sahores-conseil.com > Le 6 juil. 2015 ? 22:32, Ralph DiMola a ?crit : > > The > reason I am testing long delays is to debug why my sendmail request to > the web service was returning empty. Sendmail on the server is taking > 11 seconds to finish so I never received a return status. _______________________________________________ use-livecode mailing list use-livecode at 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 Jul 7 00:58:08 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 06 Jul 2015 23:58:08 -0500 Subject: including a library in a standalone In-Reply-To: References: Message-ID: <559B5C60.5050103@hyperactivesw.com> On 7/6/2015 6:14 PM, Dr. Hawkins wrote: > Is inserting as a back script there way to go? And if so, would I be > better off doing the same in the IDE rather than as a library? > Unless something has changed since I last heard, the only difference between "start using" and "insert
> On 26 Jul 2015, at 12:14, Kay C Lan wrote: > > On Fri, Jul 24, 2015 at 7:18 PM, Terence Heaford > wrote: > >> >> I thought put revBrowserSet gBrowserID,?htmlText?,theContentsOfgFile might >> work, but it doesn?t. >> >> Well it works perfectly for me so I can't figure out why it's not working > for you. As far as I know as long as 'theContentsOfgFile' is valid html > content then it should display fine in revBrowser. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bonnmike at gmail.com Sun Jul 26 14:36:19 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Sun, 26 Jul 2015 12:36:19 -0600 Subject: Drawing a Graphice Segment In-Reply-To: <32B7CE5F-B648-4414-8813-690329E9420A@icloud.com> References: <28F6A883-A04C-4C49-8E15-3A14B15D9DB1@icloud.com> <55B3D910.2040504@hyperactivesw.com> <32B7CE5F-B648-4414-8813-690329E9420A@icloud.com> Message-ID: Hmm. Let me look. You did set up the one graphic (I used a line sized 2x2, set to invis) and have it follow the mouse around, right? And no, as far as I can tell a group makes no difference. If you see from my test stack I have one tiny grc named "mousepoint" and the first line of the mousemove is "set the loc of grc mousepoint to the mouseloc" Also, you might make sure you have the most recent version of the script. I had to move one line out of the repeat loop to get the results I wanted. Post your version of the mousemove handler if you wish, we can take a look at it. On Sun, Jul 26, 2015 at 12:19 PM, Terence Heaford wrote: > > > On 25 Jul 2015, at 22:37, Mike Bonner wrote: > > > > Added some tweaks to make it function better, it works pretty well now, > Try > > re-downloading for the newest version. > > > Is there any reason this would not work when the graphics are contained in > a group as I can?t get it to work? > > > Thanks > > > Terry > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jacque at hyperactivesw.com Sun Jul 26 14:57:07 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 26 Jul 2015 13:57:07 -0500 Subject: Drawing a Graphice Segment In-Reply-To: <3C161240-F5FE-4775-BC03-9F3750272E89@icloud.com> References: <28F6A883-A04C-4C49-8E15-3A14B15D9DB1@icloud.com> <55B3D910.2040504@hyperactivesw.com> <3C161240-F5FE-4775-BC03-9F3750272E89@icloud.com> Message-ID: <55B52D83.8050305@hyperactivesw.com> On 7/26/2015 1:17 PM, Terence Heaford wrote: > I filled the arc with 125,78,158 > > and mouseColor returned 125,79,158 > > Thus the test failed. > > Why this happened I don?t know? It could be the anti-aliasing. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From brahma at hindu.org Sun Jul 26 15:31:13 2015 From: brahma at hindu.org (Brahmanathaswami) Date: Sun, 26 Jul 2015 09:31:13 -1000 Subject: Parsing and Extracting Text from ePub XHTML Message-ID: <55B53581.2040802@hindu.org> We do a lot of work with the contents of ePubs. For those who don't know the spec: "someBook.epub" is just "someBook.zip" which when inflated has a mini-portable web site based on responsive CSS (all percentages). You get someBook /ops # "Open Package Structure" / fonts / images / styles / xhtml toc.ncx The xhtml folder then has all the these files: ch09_05_b.html ch09_05_c.html ch09_06.html etc. The text is pretty advanced in the sense that it uses unicode... (I think) for rendering diacritical fonts. mdash's etc. If I simply import the raw file unprocessed into a LC field (7.0.5)... I get the usual, expected text:

Is Monistic Theism Found in the Vedas?

ŚLOKA 145

Again and again in the Vedas and from satgurus we hear ???Ahaṁ Brahmāsmi,??? ???I am God,??? and that God is both immanent and transcendent. Taken together, these are clear statements of monistic theism. Aum Namaḥ Śivāya.

BHĀSHYA

Monistic theism is the philosophy of the Vedas. Scholars have long noted that the Hindu scriptures are alternately monistic, describing the oneness of the individual soul and God, and theistic, describing the reality of the Personal God. One cannot read the Vedas, Śaiva Āgamas and hymns of the saints without being overwhelmed with theism as well as monism. Monistic theism is the essential teaching of Hinduism, of Śaivism. It is the conclusion of Tirumular, Vasugupta, Gorakshanatha, Bhaskara, Srikantha, Basavanna, Vallabha, Ramakrishna, Yogaswami, Nityananda, Radhakrishnan and thousands of others. It encompasses both Siddhānta and Vedānta. It says, God is and is in all things. It propounds the hopeful, glorious, exultant concept that every soul will finally merge with Śiva in undifferentiated oneness, none left to suffer forever because of human transgression. The Vedas wisely proclaim, ???Higher and other than the world-tree, time and forms is He from whom this expanse proceeds???the bringer of dharma, the remover of evil, the lord of prosperity. Know Him as in one???s own Self, as the immortal abode of all.??? Aum Namaḥ Śivāya.

Goal is to create a tool for volunteers to go in and extract quotes to allow them to grab a few sentences, which we will them push to an online database. So: What is the best way to get this text rendered? Do I go the path of setting the field's Unicode? But then what about the html mark up? if we create a browser object... can users select text and does LC know that there is a selected chunk if it is inside a browser object? Before I start wading into this I though to see if anyone else has some good guidance in advance, Swasti Astu, Be Well! Brahmanathaswami Kauai's Hindu Monastery www.HimalayanAcademy.com From richmondmathewson at gmail.com Sun Jul 26 15:45:31 2015 From: richmondmathewson at gmail.com (Richmond) Date: Sun, 26 Jul 2015 20:45:31 +0100 Subject: Parsing and Extracting Text from ePub XHTML In-Reply-To: <55B53581.2040802@hindu.org> References: <55B53581.2040802@hindu.org> Message-ID: Presumably you have already tried SET THE HTML TEXT OF FIELD "BLAH" TO . . . Richmond. from my jail-broken, recycled iPad 1 On 26 Jul 2015, at 20:31, Brahmanathaswami wrote: > We do a lot of work with the contents of ePubs. For those who don't know the spec: > > "someBook.epub" is just "someBook.zip" > > which when inflated has a mini-portable web site based on responsive CSS (all percentages). You get > > someBook > /ops # "Open Package Structure" > / fonts > / images > / styles > / xhtml > toc.ncx > > The xhtml folder then has all the these files: > ch09_05_b.html > ch09_05_c.html > ch09_06.html > > etc. > > The text is pretty advanced in the sense that it uses unicode... (I think) for rendering diacritical fonts. mdash's etc. > > If I simply import the raw file unprocessed into a LC field (7.0.5)... I get the usual, expected text: > >

Is Monistic Theism Found in the Vedas?

>

ŚLOKA 145

>

Again and again in the Vedas and from satgurus we hear ???Ahaṁ Brahmāsmi,??? ???I am God,??? and that God is both immanent and transcendent. Taken together, these are clear statements of monistic theism. Aum Namaḥ Śivāya.

>

BHĀSHYA

>

Monistic theism is the philosophy of the Vedas. Scholars have long noted that the Hindu scriptures are alternately monistic, describing the oneness of the individual soul and God, and theistic, describing the reality of the Personal God. One cannot read the Vedas, Śaiva Āgamas and hymns of the saints without being overwhelmed with theism as well as monism. Monistic theism is the essential teaching of Hinduism, of Śaivism. It is the conclusion of Tirumular, Vasugupta, Gorakshanatha, Bhaskara, Srikantha, Basavanna, Vallabha, Ramakrishna, Yogaswami, Nityananda, Radhakrishnan and thousands of others. It encompasses both Siddhānta and Vedānta. It says, God is and is in all things. It propounds the hopeful, glorious, exultant concept that every soul will finally merge with Śiva in undifferentiated oneness, none left to suffer forever because of human transgression. The Vedas wisely proclaim, ???Higher and other than the world-tree, time and forms is He from whom this expanse proceeds???the bringer of dharma, the remover of evil, the lord of prosperity. Know Him as in one???s own Self, as the immortal abode of all.??? Aum Namaḥ Śivāya.

> > Goal is to create a tool for volunteers to go in and extract quotes to allow them to grab a few sentences, which we will them push to an online database. > > So: What is the best way to get this text rendered? Do I go the path of setting the field's Unicode? But then what about the html mark up? if we create a browser object... can users select text and does LC know that there is a selected chunk if it is inside a browser object? > > Before I start wading into this I though to see if anyone else has some good guidance in advance, > > > Swasti Astu, Be Well! > Brahmanathaswami > > Kauai's Hindu Monastery > www.HimalayanAcademy.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 Sun Jul 26 16:46:12 2015 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sun, 26 Jul 2015 22:46:12 +0200 Subject: Parsing and Extracting Text from ePub XHTML In-Reply-To: <55B53581.2040802@hindu.org> References: <55B53581.2040802@hindu.org> Message-ID: <55B54714.7050102@economy-x-talk.com> Hi Brahmanathaswami, This works on LC 6.7.3: on mouseUp put fld 1 into x if the platform is not "MacOS" then // not sure why this works put isoToMac(x) into x end if put uniDecode(uniEncode(x,"UTF8")) into x set the htmlText of fld 2 to x end mouseUp -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ On 7/26/2015 21:31, Brahmanathaswami wrote: > We do a lot of work with the contents of ePubs. For those who don't know > the spec: > > "someBook.epub" is just "someBook.zip" > > which when inflated has a mini-portable web site based on responsive CSS > (all percentages). You get > > someBook > /ops # "Open Package Structure" > / fonts > / images > / styles > / xhtml > toc.ncx > > The xhtml folder then has all the these files: > ch09_05_b.html > ch09_05_c.html > ch09_06.html > > etc. > > The text is pretty advanced in the sense that it uses unicode... (I > think) for rendering diacritical fonts. mdash's etc. > > If I simply import the raw file unprocessed into a LC field (7.0.5)... I > get the usual, expected text: > >

Is Monistic Theism Found in the class="cmitalic">Vedas?

>

ŚLOKA > 145

>

Again and again in > the Vedas and from satgurus we hear ???Ahaṁ > Brahmāsmi,??? ???I am God,??? and that God is both immanent and > transcendent. Taken together, these are clear statements of monistic > theism. Aum Namaḥ Śivāya.

>

class="smallcap">BHĀSHYA

>

Monistic theism is the philosophy of the class="cmitalic">Vedas. Scholars have long noted > that the Hindu scriptures are alternately monistic, describing the > oneness of the individual soul and God, and theistic, describing the > reality of the Personal God. One cannot read the class="cmitalic">Vedas, class="cmitalic">Śaiva Āgamas and hymns > of the saints without being overwhelmed with theism as well as monism. > Monistic theism is the essential teaching of Hinduism, of Śaivism. > It is the conclusion of Tirumular, Vasugupta, Gorakshanatha, Bhaskara, > Srikantha, Basavanna, Vallabha, Ramakrishna, Yogaswami, Nityananda, > Radhakrishnan and thousands of others. It encompasses both > Siddhānta and Vedānta. It says, God is and is in all things. > It propounds the hopeful, glorious, exultant concept that every soul > will finally merge with Śiva in undifferentiated oneness, none > left to suffer forever because of human transgression. The class="cmitalic">Vedas wisely proclaim, ???Higher > and other than the world-tree, time and forms is He from whom this > expanse proceeds???the bringer of class="cmitalic">dharma, the remover of evil, the > lord of prosperity. Know Him as in one???s own Self, as the immortal > abode of all.??? Aum Namaḥ Śivāya.

> > Goal is to create a tool for volunteers to go in and extract quotes to > allow them to grab a few sentences, which we will them push to an online > database. > > So: What is the best way to get this text rendered? Do I go the path of > setting the field's Unicode? But then what about the html mark up? if we > create a browser object... can users select text and does LC know that > there is a selected chunk if it is inside a browser object? > > Before I start wading into this I though to see if anyone else has some > good guidance in advance, > > > Swasti Astu, Be Well! > Brahmanathaswami > > Kauai's Hindu Monastery > www.HimalayanAcademy.com > > From scott at tactilemedia.com Sun Jul 26 17:38:08 2015 From: scott at tactilemedia.com (Scott Rossi) Date: Sun, 26 Jul 2015 14:38:08 -0700 Subject: Drawing a Graphice Segment In-Reply-To: References: <28F6A883-A04C-4C49-8E15-3A14B15D9DB1@icloud.com> <55B3D910.2040504@hyperactivesw.com> <32B7CE5F-B648-4414-8813-690329E9420A@icloud.com> Message-ID: Works fine here. Note that you'll likely get snappier performance by locking/unlocking the screen at the beginning and end of the mouseMove handler, as LC 7 can be pretty slow to natively update the screen. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 7/26/15, 11:36 AM, "Mike Bonner" wrote: >Hmm. Let me look. You did set up the one graphic (I used a line sized >2x2, >set to invis) and have it follow the mouse around, right? And no, as far >as I can tell a group makes no difference. > >If you see from my test stack I have one tiny grc named "mousepoint" and >the first line of the mousemove is "set the loc of grc mousepoint to the >mouseloc" > >Also, you might make sure you have the most recent version of the script. >I had to move one line out of the repeat loop to get the results I wanted. > >Post your version of the mousemove handler if you wish, we can take a look >at it. > >On Sun, Jul 26, 2015 at 12:19 PM, Terence Heaford >wrote: > >> >> > On 25 Jul 2015, at 22:37, Mike Bonner wrote: >> > >> > Added some tweaks to make it function better, it works pretty well >>now, >> Try >> > re-downloading for the newest version. >> >> >> Is there any reason this would not work when the graphics are contained >>in >> a group as I can?t get it to work? >> >> >> Thanks >> >> >> Terry >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> >_______________________________________________ >use-livecode mailing list >use-livecode at lists.runrev.com >Please visit this url to subscribe, unsubscribe and manage your >subscription preferences: >http://lists.runrev.com/mailman/listinfo/use-livecode From bonnmike at gmail.com Sun Jul 26 17:46:59 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Sun, 26 Jul 2015 15:46:59 -0600 Subject: Drawing a Graphice Segment In-Reply-To: References: <28F6A883-A04C-4C49-8E15-3A14B15D9DB1@icloud.com> <55B3D910.2040504@hyperactivesw.com> <32B7CE5F-B648-4414-8813-690329E9420A@icloud.com> Message-ID: Will the lock/unlock actually help when the little pinpoint graphic isn't set to visible? Also, I was just thinking, the way I set things up I set the invisible graphic that follows the mouse as the backmost object so that I could then start my grc check loop at 2. Depending on your needs you might need to do a naming convention and only check grc1 grc2 etc. On Sun, Jul 26, 2015 at 3:38 PM, Scott Rossi wrote: > Works fine here. Note that you'll likely get snappier performance by > locking/unlocking the screen at the beginning and end of the mouseMove > handler, as LC 7 can be pretty slow to natively update the screen. > > Regards, > > Scott Rossi > Creative Director > Tactile Media, UX/UI Design > > > > > On 7/26/15, 11:36 AM, "Mike Bonner" wrote: > > >Hmm. Let me look. You did set up the one graphic (I used a line sized > >2x2, > >set to invis) and have it follow the mouse around, right? And no, as far > >as I can tell a group makes no difference. > > > >If you see from my test stack I have one tiny grc named "mousepoint" and > >the first line of the mousemove is "set the loc of grc mousepoint to the > >mouseloc" > > > >Also, you might make sure you have the most recent version of the script. > >I had to move one line out of the repeat loop to get the results I wanted. > > > >Post your version of the mousemove handler if you wish, we can take a look > >at it. > > > >On Sun, Jul 26, 2015 at 12:19 PM, Terence Heaford > >wrote: > > > >> > >> > On 25 Jul 2015, at 22:37, Mike Bonner wrote: > >> > > >> > Added some tweaks to make it function better, it works pretty well > >>now, > >> Try > >> > re-downloading for the newest version. > >> > >> > >> Is there any reason this would not work when the graphics are contained > >>in > >> a group as I can?t get it to work? > >> > >> > >> Thanks > >> > >> > >> Terry > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > >_______________________________________________ > >use-livecode mailing list > >use-livecode at lists.runrev.com > >Please visit this url to subscribe, unsubscribe and manage your > >subscription preferences: > >http://lists.runrev.com/mailman/listinfo/use-livecode > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From scott at tactilemedia.com Sun Jul 26 23:57:13 2015 From: scott at tactilemedia.com (Scott Rossi) Date: Sun, 26 Jul 2015 20:57:13 -0700 Subject: Drawing a Graphice Segment In-Reply-To: References: <28F6A883-A04C-4C49-8E15-3A14B15D9DB1@icloud.com> <55B3D910.2040504@hyperactivesw.com> <32B7CE5F-B648-4414-8813-690329E9420A@icloud.com> Message-ID: Lock/unlock helps significantly here when showing the feedback and dramatically improves the "feel" of the behavior. Might just be slower hardware. On a related but separate note, I also ran into some weird issue when doing experiments with mouseColor() causing recursion in LC 7.0.5. Apparently mouseColor seems to be somehow tied to mouseMove (it shouldn't be) and I get repeatable recursion limit errors. Haven't checked with 7.0.6 yet. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 7/26/15, 2:46 PM, "Mike Bonner" wrote: >Will the lock/unlock actually help when the little pinpoint graphic isn't >set to visible? > >Also, I was just thinking, the way I set things up I set the invisible >graphic that follows the mouse as the backmost object so that I could then >start my grc check loop at 2. Depending on your needs you might need to >do >a naming convention and only check grc1 grc2 etc. > >On Sun, Jul 26, 2015 at 3:38 PM, Scott Rossi >wrote: > >> Works fine here. Note that you'll likely get snappier performance by >> locking/unlocking the screen at the beginning and end of the mouseMove >> handler, as LC 7 can be pretty slow to natively update the screen. >> >> Regards, >> >> Scott Rossi >> Creative Director >> Tactile Media, UX/UI Design >> >> >> >> >> On 7/26/15, 11:36 AM, "Mike Bonner" wrote: >> >> >Hmm. Let me look. You did set up the one graphic (I used a line sized >> >2x2, >> >set to invis) and have it follow the mouse around, right? And no, as >>far >> >as I can tell a group makes no difference. >> > >> >If you see from my test stack I have one tiny grc named "mousepoint" >>and >> >the first line of the mousemove is "set the loc of grc mousepoint to >>the >> >mouseloc" >> > >> >Also, you might make sure you have the most recent version of the >>script. >> >I had to move one line out of the repeat loop to get the results I >>wanted. >> > >> >Post your version of the mousemove handler if you wish, we can take a >>look >> >at it. >> > >> >On Sun, Jul 26, 2015 at 12:19 PM, Terence Heaford >> >> >wrote: >> > >> >> >> >> > On 25 Jul 2015, at 22:37, Mike Bonner wrote: >> >> > >> >> > Added some tweaks to make it function better, it works pretty well >> >>now, >> >> Try >> >> > re-downloading for the newest version. >> >> >> >> >> >> Is there any reason this would not work when the graphics are >>contained >> >>in >> >> a group as I can?t get it to work? >> >> >> >> >> >> Thanks >> >> >> >> >> >> Terry >> >> _______________________________________________ >> >> use-livecode mailing list >> >> use-livecode at lists.runrev.com >> >> Please visit this url to subscribe, unsubscribe and manage your >> >> subscription preferences: >> >> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> >_______________________________________________ >> >use-livecode mailing list >> >use-livecode at lists.runrev.com >> >Please visit this url to subscribe, unsubscribe and manage your >> >subscription preferences: >> >http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> >_______________________________________________ >use-livecode mailing list >use-livecode at lists.runrev.com >Please visit this url to subscribe, unsubscribe and manage your >subscription preferences: >http://lists.runrev.com/mailman/listinfo/use-livecode From peterwawood at gmail.com Mon Jul 27 07:12:53 2015 From: peterwawood at gmail.com (Peter W A Wood) Date: Mon, 27 Jul 2015 19:12:53 +0800 Subject: Thousands Separators Message-ID: <4C055829-0F44-4C34-937C-94C24F59FA8F@gmail.com> I would like to display numbers with a thousand separator. I searched the dictionary and the user guide but couldn?t find any mention of inserting a thousand separator into a number. Is it a case of do it yourself? Regards Peter From mikedoub at gmail.com Mon Jul 27 07:14:54 2015 From: mikedoub at gmail.com (Michael Doub) Date: Mon, 27 Jul 2015 07:14:54 -0400 Subject: Thousands Separators In-Reply-To: <4C055829-0F44-4C34-937C-94C24F59FA8F@gmail.com> References: <4C055829-0F44-4C34-937C-94C24F59FA8F@gmail.com> Message-ID: <55B612AE.5070508@gmail.com> Peter, there is a function in the MasterLibrary that does this for you. Look in the Text section. https://www.dropbox.com/s/3wpwn3hfbmpl7sk/MasterLibrary.livecode?dl=0 Regards, Mike On 7/27/15 7:12 AM, Peter W A Wood wrote: > I would like to display numbers with a thousand separator. I searched the dictionary and the user guide but couldn?t find any mention of inserting a thousand separator into a number. Is it a case of do it yourself? > > 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 peterwawood at gmail.com Mon Jul 27 07:27:55 2015 From: peterwawood at gmail.com (Peter W A Wood) Date: Mon, 27 Jul 2015 19:27:55 +0800 Subject: Thousands Separators In-Reply-To: <55B612AE.5070508@gmail.com> References: <4C055829-0F44-4C34-937C-94C24F59FA8F@gmail.com> <55B612AE.5070508@gmail.com> Message-ID: Thanks Mike. > On 27 Jul 2015, at 19:14, Michael Doub wrote: > > Peter, there is a function in the MasterLibrary that does this for you. Look in the Text section. > > https://www.dropbox.com/s/3wpwn3hfbmpl7sk/MasterLibrary.livecode?dl=0 > > Regards, > Mike > > > On 7/27/15 7:12 AM, Peter W A Wood wrote: >> I would like to display numbers with a thousand separator. I searched the dictionary and the user guide but couldn?t find any mention of inserting a thousand separator into a number. Is it a case of do it yourself? >> >> 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 > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 27 07:54:55 2015 From: paul at researchware.com (Paul Dupuis) Date: Mon, 27 Jul 2015 07:54:55 -0400 Subject: Thousands Separators In-Reply-To: <4C055829-0F44-4C34-937C-94C24F59FA8F@gmail.com> References: <4C055829-0F44-4C34-937C-94C24F59FA8F@gmail.com> Message-ID: <55B61C0F.6050501@researchware.com> On 7/27/2015 7:12 AM, Peter W A Wood wrote: > I would like to display numbers with a thousand separator. I searched the dictionary and the user guide but couldn?t find any mention of inserting a thousand separator into a number. Is it a case of do it yourself? > > Look at the 'format' function in the Dictionary as well. I also would have thought the 'numberFormat' property would have supported commas but apparently not. From klaus at major-k.de Mon Jul 27 13:13:56 2015 From: klaus at major-k.de (Klaus major-k) Date: Mon, 27 Jul 2015 19:13:56 +0200 Subject: datagrid: index vs line Message-ID: Hi friends, just a quick question: When you set "the dgdata" of a datagrid of type FORM and you do not sort or re-arrange the datagrid or whatever then INDEX = LINE. Know what I mean? Is that correct? Thanks a lot in advance! Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From sims at ezpzapps.com Mon Jul 27 13:19:14 2015 From: sims at ezpzapps.com (Jim sims) Date: Mon, 27 Jul 2015 18:19:14 +0100 Subject: datagrid: index vs line In-Reply-To: References: Message-ID: I do not know the answer. Tried datagrids many times but never could understand them. sims On Monday, July 27, 2015, Klaus major-k wrote: > Hi friends, > > just a quick question: > When you set "the dgdata" of a datagrid of type FORM > and you do not sort or re-arrange the datagrid or whatever then > INDEX = LINE. Know what I mean? > > Is that correct? > > Thanks a lot 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 t.heaford at icloud.com Mon Jul 27 13:19:20 2015 From: t.heaford at icloud.com (Terence Heaford) Date: Mon, 27 Jul 2015 18:19:20 +0100 Subject: Drawing a Graphice Segment In-Reply-To: References: <28F6A883-A04C-4C49-8E15-3A14B15D9DB1@icloud.com> <55B3D910.2040504@hyperactivesw.com> Message-ID: <47FD2551-9563-4BB2-A18A-09A1F9ADE721@icloud.com> > On 25 Jul 2015, at 22:37, Mike Bonner wrote: > > Added some tweaks to make it function better, it works pretty well now, Try > re-downloading for the newest version. > https://dl.dropboxusercontent.com/u/11957935/mouseover.livecode > Finally got it to work, however?. I have noticed if you move your mouse carefully at the junction of two segments you can get them both to highlight green. Is there a setting that needs tweaking? All the best Terry From klaus at major-k.de Mon Jul 27 13:46:34 2015 From: klaus at major-k.de (Klaus major-k) Date: Mon, 27 Jul 2015 19:46:34 +0200 Subject: datagrid: index vs line In-Reply-To: References: Message-ID: <9014DD76-0148-4BED-9B2D-AB4135FA0925@major-k.de> Hi sims, > Am 27.07.2015 um 19:19 schrieb Jim sims : > > I do not know the answer. thanks for caring anyway! :-) > Tried datagrids many times but never could understand them. I know the answer, but wanted to have it confirmed, weak ego and stuff, 'ya know? :-D > sims Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From pete at lcsql.com Mon Jul 27 13:47:43 2015 From: pete at lcsql.com (Peter Haworth) Date: Mon, 27 Jul 2015 17:47:43 +0000 Subject: datagrid: index vs line In-Reply-To: References: Message-ID: Yes, That is correct. The index becomes useful if you sort the lines in the datagrid since the line number might change but its index number will remain the same. On Mon, Jul 27, 2015 at 10:14 AM Klaus major-k wrote: > Hi friends, > > just a quick question: > When you set "the dgdata" of a datagrid of type FORM > and you do not sort or re-arrange the datagrid or whatever then > INDEX = LINE. Know what I mean? > > Is that correct? > > Thanks a lot 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 > From klaus at major-k.de Mon Jul 27 13:49:10 2015 From: klaus at major-k.de (Klaus major-k) Date: Mon, 27 Jul 2015 19:49:10 +0200 Subject: datagrid: index vs line In-Reply-To: References: Message-ID: <0BABEF7F-110C-49AB-8589-66536EC6FB16@major-k.de> Hi Peter, > Am 27.07.2015 um 19:47 schrieb Peter Haworth : > > Yes, That is correct. The index becomes useful if you sort the lines in > the datagrid since the line number might change but its index number will > remain the same. thank you very much, that?s what I wanted to hear :-) > On Mon, Jul 27, 2015 at 10:14 AM Klaus major-k wrote: > >> Hi friends, >> >> just a quick question: >> When you set "the dgdata" of a datagrid of type FORM >> and you do not sort or re-arrange the datagrid or whatever then >> INDEX = LINE. Know what I mean? >> >> Is that correct? >> >> Thanks a lot in advance! Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From brahma at hindu.org Mon Jul 27 14:00:51 2015 From: brahma at hindu.org (Brahmanathaswami) Date: Mon, 27 Jul 2015 08:00:51 -1000 Subject: Parsing and Extracting Text from ePub XHTML In-Reply-To: <55B54714.7050102@economy-x-talk.com> References: <55B53581.2040802@hindu.org> <55B54714.7050102@economy-x-talk.com> Message-ID: <55B671D3.2050705@hindu.org> Oh My! You are Lord Ganesha's Grace manifest in human form (smile, Elephant Faced One is the "Brains of the universe" This works great! I get output like this: awesome! Dancing with Siva There is on Earth no diversity. He gets death after death who perceives here seeming diversity. As a unity only is It to be looked upon?this indemonstrable, enduring Being, spotless, beyond space, the unborn Soul, great, enduring. ?ukla Yajur Veda, B?ihad?ra?yaka Upanishad 4.4.19-20. UPH, 143 Contemplating Him who has neither beginning, middle, nor end?the One, the all-pervading, who is wisdom and bliss, the formless, the wonderful, whose consort is Um?, the highest Lord, the ruler, having three eyes and a blue throat, the peaceful?the silent sage reaches the source of Being, the universal witness, on the other shore of darkness. Atharva Veda, Kaivalya Upanishad 7. VE, 764 Where there is duality, there one sees another, one smells another, one tastes another, one speaks to another, one hears another, one knows another. But where everything has become one?s own Self, with what should one see whom, with what should one smell whom, with what should one taste whom, with what should one speak to whom, with what should one hear whom, with what should one think of whom, with what should one touch whom, with what should one know whom? How can He be known by whom all this is made known? -- Swasti Astu, Be Well! Brahmanathaswami Kauai's Hindu Monastery www.HimalayanAcademy.com Mark Schonewille wrote: > Hi Brahmanathaswami, > > This works on LC 6.7.3: > > on mouseUp > put fld 1 into x > if the platform is not "MacOS" then > // not sure why this works > put isoToMac(x) into x > end if > put uniDecode(uniEncode(x,"UTF8")) into x > set the htmlText of fld 2 to x > end mouseUp > > -- From bonnmike at gmail.com Mon Jul 27 14:07:24 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Mon, 27 Jul 2015 12:07:24 -0600 Subject: Drawing a Graphice Segment In-Reply-To: <47FD2551-9563-4BB2-A18A-09A1F9ADE721@icloud.com> References: <28F6A883-A04C-4C49-8E15-3A14B15D9DB1@icloud.com> <55B3D910.2040504@hyperactivesw.com> <47FD2551-9563-4BB2-A18A-09A1F9ADE721@icloud.com> Message-ID: Yeah, this was a very basic example, and it cycles through all graphic objects (except the first).. If you want it to only allow one to hilite, it would take a little extra coding to reset the previous hilite back to normal, and hilite the newest.. Or something of that nature. (i'd have to think on it for a bit) One method, after thinking about it for a sec.. Would be to track which part was hilited last, and when a new hilite is set, revert it, set the new hilite, and update the variable that tracks the hilite to the newest object. This would make it a bit weird, as there would be a precedence to the hilites. If you're nudging more than 1 object, the one with the highest number will always end up with the hilite. I'll keep thinkin. Theres probably a better way. On Mon, Jul 27, 2015 at 11:19 AM, Terence Heaford wrote: > > > On 25 Jul 2015, at 22:37, Mike Bonner wrote: > > > > Added some tweaks to make it function better, it works pretty well now, > Try > > re-downloading for the newest version. > > https://dl.dropboxusercontent.com/u/11957935/mouseover.livecode > > > > > Finally got it to work, however?. > > I have noticed if you move your mouse carefully at the junction of two > segments you can get them both to highlight green. > > Is there a setting that needs tweaking? > > > All the best > > Terry > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bernd.niggemann at uni-wh.de Mon Jul 27 14:16:38 2015 From: bernd.niggemann at uni-wh.de (BNig) Date: Mon, 27 Jul 2015 11:16:38 -0700 (PDT) Subject: Drawing a Graphice Segment In-Reply-To: References: <28F6A883-A04C-4C49-8E15-3A14B15D9DB1@icloud.com> <55B3D910.2040504@hyperactivesw.com> <47FD2551-9563-4BB2-A18A-09A1F9ADE721@icloud.com> Message-ID: <1438020998943-4694376.post@n4.nabble.com> Hi Mike, Terence, a bit of a hack but it works: give the segments a radial stroke gradient of e.g. black with black at the left and black at the right. Set the blendlevel of both black to just under full, by selecting one after the other the black little symbol in the gradient setting and slider to almost right. change the intersect part of the code to --------------------------- if intersect(grc "mousepoint",grc i,"opaque pixels") then -- cycle through the graphics and check for intersect --------------------------- of course this only works if the fill of the segments is fully opaque, which it is in Mike's example and now the border of the segments is not part of the segment. Kind regards Bernd -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Drawing-a-Graphice-Segment-tp4694331p4694376.html Sent from the Revolution - User mailing list archive at Nabble.com. From bonnmike at gmail.com Mon Jul 27 14:21:19 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Mon, 27 Jul 2015 12:21:19 -0600 Subject: Drawing a Graphice Segment In-Reply-To: <1438020998943-4694376.post@n4.nabble.com> References: <28F6A883-A04C-4C49-8E15-3A14B15D9DB1@icloud.com> <55B3D910.2040504@hyperactivesw.com> <47FD2551-9563-4BB2-A18A-09A1F9ADE721@icloud.com> <1438020998943-4694376.post@n4.nabble.com> Message-ID: I had tried it with opaque pixels at first, and couldn't get it to work for some reason. I think there was a version where opaque pixels was broke. Maybe I'm still using a broken lc. What version are you using? Just tried it here (7.0.6) and can't get "opaque pixels" to work for me at all. On Mon, Jul 27, 2015 at 12:16 PM, BNig wrote: > Hi Mike, Terence, > > a bit of a hack but it works: > > give the segments a radial stroke gradient of e.g. black with black at the > left and black at the right. Set the blendlevel of both black to just under > full, by selecting one after the other the black little symbol in the > gradient setting and slider to almost right. > > change the intersect part of the code to > > --------------------------- > if intersect(grc "mousepoint",grc i,"opaque pixels") then -- cycle through > the graphics and check for intersect > --------------------------- > > of course this only works if the fill of the segments is fully opaque, > which > it is in Mike's example and now the border of the segments is not part of > the segment. > > Kind regards > Bernd > > > > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/Drawing-a-Graphice-Segment-tp4694331p4694376.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 bonnmike at gmail.com Mon Jul 27 14:32:36 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Mon, 27 Jul 2015 12:32:36 -0600 Subject: Drawing a Graphice Segment In-Reply-To: References: <28F6A883-A04C-4C49-8E15-3A14B15D9DB1@icloud.com> <55B3D910.2040504@hyperactivesw.com> <47FD2551-9563-4BB2-A18A-09A1F9ADE721@icloud.com> <1438020998943-4694376.post@n4.nabble.com> Message-ID: You could do a slightly exploded pie too, with gaps between parts. There also the old fallback of clicking a piece to interact with it. I'll look at the code more tonight and see if I come up with another solution or two, but listening to bernd is never a bad idea. On Mon, Jul 27, 2015 at 12:21 PM, Mike Bonner wrote: > I had tried it with opaque pixels at first, and couldn't get it to work > for some reason. I think there was a version where opaque pixels was broke. > Maybe I'm still using a broken lc. > > What version are you using? Just tried it here (7.0.6) and can't get > "opaque pixels" to work for me at all. > > On Mon, Jul 27, 2015 at 12:16 PM, BNig wrote: > >> Hi Mike, Terence, >> >> a bit of a hack but it works: >> >> give the segments a radial stroke gradient of e.g. black with black at the >> left and black at the right. Set the blendlevel of both black to just >> under >> full, by selecting one after the other the black little symbol in the >> gradient setting and slider to almost right. >> >> change the intersect part of the code to >> >> --------------------------- >> if intersect(grc "mousepoint",grc i,"opaque pixels") then -- cycle through >> the graphics and check for intersect >> --------------------------- >> >> of course this only works if the fill of the segments is fully opaque, >> which >> it is in Mike's example and now the border of the segments is not part of >> the segment. >> >> Kind regards >> Bernd >> >> >> >> -- >> View this message in context: >> http://runtime-revolution.278305.n4.nabble.com/Drawing-a-Graphice-Segment-tp4694331p4694376.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 bernd.niggemann at uni-wh.de Mon Jul 27 14:31:27 2015 From: bernd.niggemann at uni-wh.de (BNig) Date: Mon, 27 Jul 2015 11:31:27 -0700 (PDT) Subject: Drawing a Graphice Segment In-Reply-To: References: <28F6A883-A04C-4C49-8E15-3A14B15D9DB1@icloud.com> <55B3D910.2040504@hyperactivesw.com> <47FD2551-9563-4BB2-A18A-09A1F9ADE721@icloud.com> <1438020998943-4694376.post@n4.nabble.com> Message-ID: <1438021887850-4694378.post@n4.nabble.com> I have sent you your stack that I modified by email. It works in 7.0.6 and 7.1 DP1 on a Mac. Kind regards Bernd -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Drawing-a-Graphice-Segment-tp4694331p4694378.html Sent from the Revolution - User mailing list archive at Nabble.com. From bonnmike at gmail.com Mon Jul 27 14:33:56 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Mon, 27 Jul 2015 12:33:56 -0600 Subject: Drawing a Graphice Segment In-Reply-To: <1438021887850-4694378.post@n4.nabble.com> References: <28F6A883-A04C-4C49-8E15-3A14B15D9DB1@icloud.com> <55B3D910.2040504@hyperactivesw.com> <47FD2551-9563-4BB2-A18A-09A1F9ADE721@icloud.com> <1438020998943-4694376.post@n4.nabble.com> <1438021887850-4694378.post@n4.nabble.com> Message-ID: Thanks, i'll look at it momentarily and figure out why I can't get opaque pixels to work for me. On Mon, Jul 27, 2015 at 12:31 PM, BNig wrote: > I have sent you your stack that I modified by email. It works in 7.0.6 and > 7.1 DP1 on a Mac. > > Kind regards > Bernd > > > > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/Drawing-a-Graphice-Segment-tp4694331p4694378.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 t.heaford at icloud.com Mon Jul 27 14:40:15 2015 From: t.heaford at icloud.com (Terence Heaford) Date: Mon, 27 Jul 2015 19:40:15 +0100 Subject: Drawing a Graphice Segment In-Reply-To: References: <28F6A883-A04C-4C49-8E15-3A14B15D9DB1@icloud.com> <55B3D910.2040504@hyperactivesw.com> <47FD2551-9563-4BB2-A18A-09A1F9ADE721@icloud.com> <1438020998943-4694376.post@n4.nabble.com> Message-ID: <3401B86F-B9B7-4BDD-AFE8-59B956C760F0@icloud.com> This would be a good solution for me because I want to actually display a field containing the segment data rather than highlight it green and when clicking outside of the segments hide the field although the green would be an added bonus. On my chart when the mouse leaves the segment/chart it does not always change the green segment back to its original colour. What could be causing this? I wish I could help more but these workarounds are taxing me. LC should provide a solution that only identifies the segment but one can only wish. Anyway, thanks for all the help I am getting and hopefully a solution. Thanks Terry > On 27 Jul 2015, at 19:32, Mike Bonner wrote: > > There > also the old fallback of clicking a piece to interact with it. I'll look > at the code more tonight and see if I come up with another solution or two, From t.heaford at icloud.com Mon Jul 27 14:47:28 2015 From: t.heaford at icloud.com (Terence Heaford) Date: Mon, 27 Jul 2015 19:47:28 +0100 Subject: Drawing a Graphice Segment In-Reply-To: <3401B86F-B9B7-4BDD-AFE8-59B956C760F0@icloud.com> References: <28F6A883-A04C-4C49-8E15-3A14B15D9DB1@icloud.com> <55B3D910.2040504@hyperactivesw.com> <47FD2551-9563-4BB2-A18A-09A1F9ADE721@icloud.com> <1438020998943-4694376.post@n4.nabble.com> <3401B86F-B9B7-4BDD-AFE8-59B956C760F0@icloud.com> Message-ID: <9A679CB5-4B91-413F-966F-A27176264E13@icloud.com> Here?s a movie of what I see. https://dl.dropboxusercontent.com/u/98788898/LiveCode/PieChartTest.mov All the best Terry > On 27 Jul 2015, at 19:40, Terence Heaford wrote: > > On my chart when the mouse leaves the segment/chart it does not always change the green segment back to its original colour. > What could be causing this? From bonnmike at gmail.com Mon Jul 27 14:51:43 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Mon, 27 Jul 2015 12:51:43 -0600 Subject: Drawing a Graphice Segment In-Reply-To: <9A679CB5-4B91-413F-966F-A27176264E13@icloud.com> References: <28F6A883-A04C-4C49-8E15-3A14B15D9DB1@icloud.com> <55B3D910.2040504@hyperactivesw.com> <47FD2551-9563-4BB2-A18A-09A1F9ADE721@icloud.com> <1438020998943-4694376.post@n4.nabble.com> <3401B86F-B9B7-4BDD-AFE8-59B956C760F0@icloud.com> <9A679CB5-4B91-413F-966F-A27176264E13@icloud.com> Message-ID: Would you mind sharing your stack, or posting your code? I'm not seeing that behavior here, so now i'm curious. Also, Bernd, your stack works great for me. I tried opaque pixels with my original stack here and.. can't make it work. So I copied your script over in its entirety to my original stack and.. It doesn't work. You could say i'm a mite confused! (I did remark out the code that fills your extra field) I think i'm going to beat my head against a wall for a bit. On Mon, Jul 27, 2015 at 12:47 PM, Terence Heaford wrote: > Here?s a movie of what I see. > > https://dl.dropboxusercontent.com/u/98788898/LiveCode/PieChartTest.mov < > https://dl.dropboxusercontent.com/u/98788898/LiveCode/PieChartTest.mov> > > All the best > > Terry > > > > On 27 Jul 2015, at 19:40, Terence Heaford wrote: > > > > On my chart when the mouse leaves the segment/chart it does not always > change the green segment back to its original colour. > > What could be causing this? > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bernd.niggemann at uni-wh.de Mon Jul 27 14:58:00 2015 From: bernd.niggemann at uni-wh.de (BNig) Date: Mon, 27 Jul 2015 11:58:00 -0700 (PDT) Subject: Drawing a Graphice Segment In-Reply-To: References: <47FD2551-9563-4BB2-A18A-09A1F9ADE721@icloud.com> <1438020998943-4694376.post@n4.nabble.com> <3401B86F-B9B7-4BDD-AFE8-59B956C760F0@icloud.com> <9A679CB5-4B91-413F-966F-A27176264E13@icloud.com> Message-ID: <1438023480288-4694384.post@n4.nabble.com> Mike Bonner wrote > Also, Bernd, your stack works great for me. I tried opaque pixels with > my > original stack here and.. can't make it work. So I copied your script over > in its entirety to my original stack and.. It doesn't work. You could say > i'm a mite confused! (I did remark out the code that fills your extra > field) > I think i'm going to beat my head against a wall for a bit. Mike, it is probably the setting of the stroke gradient of the pie segments that keeps it from working because I just added "opaque" to your code. have a look at the stroke gradients of the pie segments in my version of your stack. Kind regards Bernd -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Drawing-a-Graphice-Segment-tp4694331p4694384.html Sent from the Revolution - User mailing list archive at Nabble.com. From t.heaford at icloud.com Mon Jul 27 15:01:53 2015 From: t.heaford at icloud.com (Terence Heaford) Date: Mon, 27 Jul 2015 20:01:53 +0100 Subject: Drawing a Graphice Segment In-Reply-To: References: <28F6A883-A04C-4C49-8E15-3A14B15D9DB1@icloud.com> <55B3D910.2040504@hyperactivesw.com> <47FD2551-9563-4BB2-A18A-09A1F9ADE721@icloud.com> <1438020998943-4694376.post@n4.nabble.com> <3401B86F-B9B7-4BDD-AFE8-59B956C760F0@icloud.com> <9A679CB5-4B91-413F-966F-A27176264E13@icloud.com> Message-ID: <14BE7AF7-E5FF-4C77-9717-5A602C07896F@icloud.com> Rather a lot of code that belongs in a group for creating Pie, Bar & Line Charts. There are probably many improvements that could be made to this as I am a beginner in this LC stuff so I am sure that it?s probably something I have done/not done. As I say, it?s the code belonging in a group that creates charts by creating the objects that make up the parts of the chart. https://dl.dropboxusercontent.com/u/98788898/LiveCode/charts.rtf All the best Terry > On 27 Jul 2015, at 19:51, Mike Bonner wrote: > > Would you mind sharing your stack, or posting your code? I'm not seeing > that behavior here, so now i'm curious. From bonnmike at gmail.com Mon Jul 27 15:29:04 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Mon, 27 Jul 2015 13:29:04 -0600 Subject: Drawing a Graphice Segment In-Reply-To: <14BE7AF7-E5FF-4C77-9717-5A602C07896F@icloud.com> References: <28F6A883-A04C-4C49-8E15-3A14B15D9DB1@icloud.com> <55B3D910.2040504@hyperactivesw.com> <47FD2551-9563-4BB2-A18A-09A1F9ADE721@icloud.com> <1438020998943-4694376.post@n4.nabble.com> <3401B86F-B9B7-4BDD-AFE8-59B956C760F0@icloud.com> <9A679CB5-4B91-413F-966F-A27176264E13@icloud.com> <14BE7AF7-E5FF-4C77-9717-5A602C07896F@icloud.com> Message-ID: If I move my grc's to your stack, they work in your stack. And it seems to me, when I was messing with intersect in the past, if you had 2 graphics, and they intersected with standard graphics, and no worry about things, if there were opaque pixels that intersected, it worked. So, I think there is something wrong with my stack maybe? (ignoring the fact that I sent a copy of this stack out to you...) Still confused. I can copy my graphics to your stack and they work. I can copy your graphics and script to my stack and they don't work. (no errors, just.. no intersects detected) Yes. Its weird. On Mon, Jul 27, 2015 at 1:01 PM, Terence Heaford wrote: > Rather a lot of code that belongs in a group for creating Pie, Bar & Line > Charts. > > There are probably many improvements that could be made to this as I am a > beginner in this LC stuff so I am sure that it?s probably something I have > done/not done. > > As I say, it?s the code belonging in a group that creates charts by > creating the objects that make up the parts of the chart. > > https://dl.dropboxusercontent.com/u/98788898/LiveCode/charts.rtf < > https://dl.dropboxusercontent.com/u/98788898/LiveCode/charts.rtf> > > > All the best > > > Terry > > > > > > > On 27 Jul 2015, at 19:51, Mike Bonner wrote: > > > > Would you mind sharing your stack, or posting your code? I'm not seeing > > that behavior here, so now i'm curious. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From t.heaford at icloud.com Mon Jul 27 15:41:11 2015 From: t.heaford at icloud.com (Terence Heaford) Date: Mon, 27 Jul 2015 20:41:11 +0100 Subject: Drawing a Graphice Segment In-Reply-To: References: <28F6A883-A04C-4C49-8E15-3A14B15D9DB1@icloud.com> <55B3D910.2040504@hyperactivesw.com> <47FD2551-9563-4BB2-A18A-09A1F9ADE721@icloud.com> <1438020998943-4694376.post@n4.nabble.com> <3401B86F-B9B7-4BDD-AFE8-59B956C760F0@icloud.com> <9A679CB5-4B91-413F-966F-A27176264E13@icloud.com> <14BE7AF7-E5FF-4C77-9717-5A602C07896F@icloud.com> Message-ID: <69428ACD-E561-489B-9BF0-8A10287ADD56@icloud.com> > On 27 Jul 2015, at 20:29, Mike Bonner wrote: > > Still confused. I can copy my graphics to your stack and they work. I can > copy your graphics and script to my stack and they don't work. (no errors, > just.. no intersects detected) Yes. Its weird. Your confused, my heads spinning :) All the best Terry From t.heaford at icloud.com Mon Jul 27 15:49:47 2015 From: t.heaford at icloud.com (Terence Heaford) Date: Mon, 27 Jul 2015 20:49:47 +0100 Subject: Drawing a Graphice Segment In-Reply-To: <69428ACD-E561-489B-9BF0-8A10287ADD56@icloud.com> References: <28F6A883-A04C-4C49-8E15-3A14B15D9DB1@icloud.com> <55B3D910.2040504@hyperactivesw.com> <47FD2551-9563-4BB2-A18A-09A1F9ADE721@icloud.com> <1438020998943-4694376.post@n4.nabble.com> <3401B86F-B9B7-4BDD-AFE8-59B956C760F0@icloud.com> <9A679CB5-4B91-413F-966F-A27176264E13@icloud.com> <14BE7AF7-E5FF-4C77-9717-5A602C07896F@icloud.com> <69428ACD-E561-489B-9BF0-8A10287ADD56@icloud.com> Message-ID: Just placed a rectangular graphic behind the pie chart and set it to opaque and visible and when I move the pointer out of the chart/segment the segment reverts to original colour. Whether this behaviour will change or not I don?t know but will experiment further. All the best Terry > On 27 Jul 2015, at 20:41, Terence Heaford wrote: > > Your confused, my heads spinning :) From t.heaford at icloud.com Mon Jul 27 16:01:14 2015 From: t.heaford at icloud.com (Terence Heaford) Date: Mon, 27 Jul 2015 21:01:14 +0100 Subject: Drawing a Graphice Segment In-Reply-To: References: <28F6A883-A04C-4C49-8E15-3A14B15D9DB1@icloud.com> <55B3D910.2040504@hyperactivesw.com> <47FD2551-9563-4BB2-A18A-09A1F9ADE721@icloud.com> <1438020998943-4694376.post@n4.nabble.com> <3401B86F-B9B7-4BDD-AFE8-59B956C760F0@icloud.com> <9A679CB5-4B91-413F-966F-A27176264E13@icloud.com> <14BE7AF7-E5FF-4C77-9717-5A602C07896F@icloud.com> <69428ACD-E561-489B-9BF0-8A10287ADD56@icloud.com> Message-ID: <6C2D9EA2-D8C7-42DF-8554-04A7341E6836@icloud.com> Hi again, A screenshot here of the graphic behind the pie chart. if I give it a border that is slightly larger than the pie then when the mouse crosses the border the segment colour reverts back to it?s original colour. https://dl.dropboxusercontent.com/u/98788898/LiveCode/Screen%20Shot.png All the best Terry > On 27 Jul 2015, at 20:49, Terence Heaford wrote: > > Just placed a rectangular graphic behind the pie chart and set it to opaque and visible and when I move the pointer out of the chart/segment the segment reverts to original colour. > > Whether this behaviour will change or not I don?t know but will experiment further. From pete at lcsql.com Mon Jul 27 16:08:13 2015 From: pete at lcsql.com (Peter Haworth) Date: Mon, 27 Jul 2015 20:08:13 +0000 Subject: Drawing a Graphice Segment In-Reply-To: <6C2D9EA2-D8C7-42DF-8554-04A7341E6836@icloud.com> References: <28F6A883-A04C-4C49-8E15-3A14B15D9DB1@icloud.com> <55B3D910.2040504@hyperactivesw.com> <47FD2551-9563-4BB2-A18A-09A1F9ADE721@icloud.com> <1438020998943-4694376.post@n4.nabble.com> <3401B86F-B9B7-4BDD-AFE8-59B956C760F0@icloud.com> <9A679CB5-4B91-413F-966F-A27176264E13@icloud.com> <14BE7AF7-E5FF-4C77-9717-5A602C07896F@icloud.com> <69428ACD-E561-489B-9BF0-8A10287ADD56@icloud.com> <6C2D9EA2-D8C7-42DF-8554-04A7341E6836@icloud.com> Message-ID: Wondering if you know about ChartMaker, available at the Livecode store for $79. Might save you a lot of grief for a fairly small outlay. On Mon, Jul 27, 2015 at 1:01 PM Terence Heaford wrote: > Hi again, > > A screenshot here of the graphic behind the pie chart. if I give it a > border that is slightly larger than the pie then when the mouse crosses the > border the segment colour reverts back to it?s original colour. > > > https://dl.dropboxusercontent.com/u/98788898/LiveCode/Screen%20Shot.png < > https://dl.dropboxusercontent.com/u/98788898/LiveCode/Screen%20Shot.png> > > > All the best > > Terry > > > > On 27 Jul 2015, at 20:49, Terence Heaford wrote: > > > > Just placed a rectangular graphic behind the pie chart and set it to > opaque and visible and when I move the pointer out of the chart/segment the > segment reverts to original colour. > > > > Whether this behaviour will change or not I don?t know but will > experiment further. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bonnmike at gmail.com Mon Jul 27 16:26:05 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Mon, 27 Jul 2015 14:26:05 -0600 Subject: Drawing a Graphice Segment In-Reply-To: References: <28F6A883-A04C-4C49-8E15-3A14B15D9DB1@icloud.com> <55B3D910.2040504@hyperactivesw.com> <47FD2551-9563-4BB2-A18A-09A1F9ADE721@icloud.com> <1438020998943-4694376.post@n4.nabble.com> <3401B86F-B9B7-4BDD-AFE8-59B956C760F0@icloud.com> <9A679CB5-4B91-413F-966F-A27176264E13@icloud.com> <14BE7AF7-E5FF-4C77-9717-5A602C07896F@icloud.com> <69428ACD-E561-489B-9BF0-8A10287ADD56@icloud.com> <6C2D9EA2-D8C7-42DF-8554-04A7341E6836@icloud.com> Message-ID: Heres a solution to the "more than one hilites" issue, that works pretty well. https://dl.dropboxusercontent.com/u/11957935/mouseover.livecode On Mon, Jul 27, 2015 at 2:08 PM, Peter Haworth wrote: > Wondering if you know about ChartMaker, available at the Livecode store for > $79. Might save you a lot of grief for a fairly small outlay. > > On Mon, Jul 27, 2015 at 1:01 PM Terence Heaford > wrote: > > > Hi again, > > > > A screenshot here of the graphic behind the pie chart. if I give it a > > border that is slightly larger than the pie then when the mouse crosses > the > > border the segment colour reverts back to it?s original colour. > > > > > > https://dl.dropboxusercontent.com/u/98788898/LiveCode/Screen%20Shot.png > < > > https://dl.dropboxusercontent.com/u/98788898/LiveCode/Screen%20Shot.png> > > > > > > All the best > > > > Terry > > > > > > > On 27 Jul 2015, at 20:49, Terence Heaford > wrote: > > > > > > Just placed a rectangular graphic behind the pie chart and set it to > > opaque and visible and when I move the pointer out of the chart/segment > the > > segment reverts to original colour. > > > > > > Whether this behaviour will change or not I don?t know but will > > experiment further. > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bonnmike at gmail.com Mon Jul 27 16:26:21 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Mon, 27 Jul 2015 14:26:21 -0600 Subject: Drawing a Graphice Segment In-Reply-To: References: <28F6A883-A04C-4C49-8E15-3A14B15D9DB1@icloud.com> <55B3D910.2040504@hyperactivesw.com> <47FD2551-9563-4BB2-A18A-09A1F9ADE721@icloud.com> <1438020998943-4694376.post@n4.nabble.com> <3401B86F-B9B7-4BDD-AFE8-59B956C760F0@icloud.com> <9A679CB5-4B91-413F-966F-A27176264E13@icloud.com> <14BE7AF7-E5FF-4C77-9717-5A602C07896F@icloud.com> <69428ACD-E561-489B-9BF0-8A10287ADD56@icloud.com> <6C2D9EA2-D8C7-42DF-8554-04A7341E6836@icloud.com> Message-ID: And yeah. chartmaker might be just the ticket. On Mon, Jul 27, 2015 at 2:26 PM, Mike Bonner wrote: > Heres a solution to the "more than one hilites" issue, that works pretty > well. https://dl.dropboxusercontent.com/u/11957935/mouseover.livecode > > On Mon, Jul 27, 2015 at 2:08 PM, Peter Haworth wrote: > >> Wondering if you know about ChartMaker, available at the Livecode store >> for >> $79. Might save you a lot of grief for a fairly small outlay. >> >> On Mon, Jul 27, 2015 at 1:01 PM Terence Heaford >> wrote: >> >> > Hi again, >> > >> > A screenshot here of the graphic behind the pie chart. if I give it a >> > border that is slightly larger than the pie then when the mouse crosses >> the >> > border the segment colour reverts back to it?s original colour. >> > >> > >> > https://dl.dropboxusercontent.com/u/98788898/LiveCode/Screen%20Shot.png >> < >> > https://dl.dropboxusercontent.com/u/98788898/LiveCode/Screen%20Shot.png >> > >> > >> > >> > All the best >> > >> > Terry >> > >> > >> > > On 27 Jul 2015, at 20:49, Terence Heaford >> wrote: >> > > >> > > Just placed a rectangular graphic behind the pie chart and set it to >> > opaque and visible and when I move the pointer out of the chart/segment >> the >> > segment reverts to original colour. >> > > >> > > Whether this behaviour will change or not I don?t know but will >> > experiment further. >> > >> > _______________________________________________ >> > use-livecode mailing list >> > use-livecode at lists.runrev.com >> > Please visit this url to subscribe, unsubscribe and manage your >> > subscription preferences: >> > http://lists.runrev.com/mailman/listinfo/use-livecode >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 Mon Jul 27 17:27:57 2015 From: scott at tactilemedia.com (Scott Rossi) Date: Mon, 27 Jul 2015 14:27:57 -0700 Subject: Drawing a Graphice Segment In-Reply-To: References: <28F6A883-A04C-4C49-8E15-3A14B15D9DB1@icloud.com> <55B3D910.2040504@hyperactivesw.com> <47FD2551-9563-4BB2-A18A-09A1F9ADE721@icloud.com> <1438020998943-4694376.post@n4.nabble.com> <3401B86F-B9B7-4BDD-AFE8-59B956C760F0@icloud.com> <9A679CB5-4B91-413F-966F-A27176264E13@icloud.com> <14BE7AF7-E5FF-4C77-9717-5A602C07896F@icloud.com> <69428ACD-E561-489B-9BF0-8A10287ADD56@icloud.com> <6C2D9EA2-D8C7-42DF-8554-04A7341E6836@icloud.com> Message-ID: Just to beat the horse a bit more, here's a stripped down version of Mike's approach that seems to work as expected (LC 7.0.5). In your message box: go url "http://www.tactilemedia.com/download/mouseover_mod.livecode" Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 7/27/15, 1:26 PM, "Mike Bonner" wrote: >Heres a solution to the "more than one hilites" issue, that works pretty >well. https://dl.dropboxusercontent.com/u/11957935/mouseover.livecode > >On Mon, Jul 27, 2015 at 2:08 PM, Peter Haworth wrote: > >> Wondering if you know about ChartMaker, available at the Livecode store >>for >> $79. Might save you a lot of grief for a fairly small outlay. >> >> On Mon, Jul 27, 2015 at 1:01 PM Terence Heaford >> wrote: >> >> > Hi again, >> > >> > A screenshot here of the graphic behind the pie chart. if I give it a >> > border that is slightly larger than the pie then when the mouse >>crosses >> the >> > border the segment colour reverts back to it?s original colour. >> > >> > >> > >>https://dl.dropboxusercontent.com/u/98788898/LiveCode/Screen%20Shot.png >> < >> > >>https://dl.dropboxusercontent.com/u/98788898/LiveCode/Screen%20Shot.png> >> > >> > >> > All the best >> > >> > Terry >> > >> > >> > > On 27 Jul 2015, at 20:49, Terence Heaford >> wrote: >> > > >> > > Just placed a rectangular graphic behind the pie chart and set it to >> > opaque and visible and when I move the pointer out of the >>chart/segment >> the >> > segment reverts to original colour. >> > > >> > > Whether this behaviour will change or not I don?t know but will >> > experiment further. >> > >> > _______________________________________________ >> > use-livecode mailing list >> > use-livecode at lists.runrev.com >> > Please visit this url to subscribe, unsubscribe and manage your >> > subscription preferences: >> > http://lists.runrev.com/mailman/listinfo/use-livecode >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> >_______________________________________________ >use-livecode mailing list >use-livecode at lists.runrev.com >Please visit this url to subscribe, unsubscribe and manage your >subscription preferences: >http://lists.runrev.com/mailman/listinfo/use-livecode From peterwawood at gmail.com Mon Jul 27 23:07:53 2015 From: peterwawood at gmail.com (Peter W A Wood) Date: Tue, 28 Jul 2015 11:07:53 +0800 Subject: Thousands Separators In-Reply-To: <55B612AE.5070508@gmail.com> References: <4C055829-0F44-4C34-937C-94C24F59FA8F@gmail.com> <55B612AE.5070508@gmail.com> Message-ID: <0F53A3D0-04F7-485B-92E0-F317E8E455DB@gmail.com> Mike > On 27 Jul 2015, at 19:14, Michael Doub wrote: > > Peter, there is a function in the MasterLibrary that does this for you. Look in the Text section. > > https://www.dropbox.com/s/3wpwn3hfbmpl7sk/MasterLibrary.livecode?dl=0 > > Regards, > Mike The MasterLibrary is impressive, I should have looked at it before. The function didn?t seem to have the exact format that I needed but it was a good stimulus to write one that meets my needs. I wanted to format the numbers in what I call accounting format - thousands separators with negative numbers in brackets (or parentheses depending from where one hails). Thanks to LiveCode?s chunking the function is very short, dealing with the arguments takes almost as much code as the function. I include it here in case it is of use to others. I?m sure it could be improved and would welcome any suggestions. function numToAccounting pNum, pDecimalSeparator, pThousandSeparator # Purpose: Converts a number to accounting format # Inputs: # pNum The number to be converted # pDecimalSeparator The character to be used, default "." # pThousandSeparator The character to be used, default "," # Returns: The number in accounting format rounded toplevel # decimal places local tCount local tDecimalSeparator local tNum local tStart local tThousandSeparator # set the separators if pThousandSeparator is empty then put "," into tThousandSeparator else put pThousandSeparator into tThousandSeparator end if if pDecimalSeparator is empty then put "." into tDecimalSeparator else put pDecimalSeparator into tDecimalSeparator end if #format the numbers put format("%.2f", pNum) into tNum put tDecimalSeparator into char -3 of tNum put 0 into tCount put the length of tNum - 3 into tStart repeat with i = tStart down to 1 add 1 to tCount if tCount = 4 then if char i of tNum = "-" then exit repeat put tThousandSeparator after char i of tNum put 1 into tCount end if end repeat if pNum < 0 then put "(" into character 1 of tNum put ")" after tNum end if return tNum end numToAccounting From david at viral.academy Tue Jul 28 02:43:04 2015 From: david at viral.academy (David Bovill) Date: Tue, 28 Jul 2015 07:43:04 +0100 Subject: Docker, anyone? In-Reply-To: References: Message-ID: Any further with Dockers anyone? On 1 May 2015 at 01:50, Richard Gaskin wrote: > Has anyone here experimented with making a Docker container for a LiveCode > socket server? > > http://www.docker.com/ > > Richard Gaskin > Fourth World Systems > http://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 t.heaford at icloud.com Tue Jul 28 03:28:03 2015 From: t.heaford at icloud.com (Terence Heaford) Date: Tue, 28 Jul 2015 08:28:03 +0100 Subject: Drawing a Graphice Segment In-Reply-To: References: <28F6A883-A04C-4C49-8E15-3A14B15D9DB1@icloud.com> <55B3D910.2040504@hyperactivesw.com> <47FD2551-9563-4BB2-A18A-09A1F9ADE721@icloud.com> <1438020998943-4694376.post@n4.nabble.com> <3401B86F-B9B7-4BDD-AFE8-59B956C760F0@icloud.com> <9A679CB5-4B91-413F-966F-A27176264E13@icloud.com> <14BE7AF7-E5FF-4C77-9717-5A602C07896F@icloud.com> <69428ACD-E561-489B-9BF0-8A10287ADD56@icloud.com> <6C2D9EA2-D8C7-42DF-8554-04A7341E6836@icloud.com> Message-ID: <448FE362-A90A-4D29-9ED3-5DBDBEE0D19C@icloud.com> > On 27 Jul 2015, at 22:27, Scott Rossi wrote: > > Just to beat the horse a bit more, And another based on mathematics. When you create the pie chart segments you know the start angle and end angle, so save them with the segment. In my case I use uStartAngle and uEndAngle. Then apply using: --------------------- on mouseMove lock screen put the mouseH into tMouseX put the mouseV into tMouseY put chartLeft() + chartWidth()/2 into tCentreX put chartTop() + chartHeight()/2 into tCentreY put tMouseX - tCentreX into tDeltaX put tMouseY - tCentreY into tDeltaY put atan2InDegrees(tDeltaY,tDeltaX) into tAngle if tAngle < 0 then put round(abs(tAngle)) into tAngle else put round(360 - tAngle) into tAngle end if repeat for each line tID in the childControlIDs of me if the customKeys of control id tID contains "uStartAngle" then put the uStartAngle of control id tID into tStartAngle put the uEndAngle of control id tID into tEndAngle put tAngle && "," && tStartAngle && "," && tEndAngle & return after tResult - - just to monitor what?s happening if tAngle >= tStartAngle and tAngle <= tEndAngle then set the backgroundcolor of control id tID to green else set the backgroundcolor of control id tID to the uColor of control id tID end if end if end repeat unlock screen put tResult end mouseMove --------------------- function atan2InDegrees firstArg,secondArg return atan2(firstArg,secondArg) * 180 / pi end atan2InDegrees ?????????? I just need to add a section to monitor whether tMouseX and tMouseY is in the diameter of the pie. All the best Terry From admin at FlexibleLearning.com Tue Jul 28 03:37:29 2015 From: admin at FlexibleLearning.com (FlexibleLearning.com) Date: Tue, 28 Jul 2015 08:37:29 +0100 Subject: ChartMaker and Drawing a Graphic Segment Message-ID: <002001d0c908$43114130$c933c390$@FlexibleLearning.com> ChartMaker details and direct purchase are available here... www.flexiblelearning.com/chartmaker > On Mon, Jul 27, 2015 at 2:08 PM, Peter Haworth wrote: > >> Wondering if you know about ChartMaker, available at the Livecode store >> for $79. Might save you a lot of grief for a fairly small outlay. From david at viral.academy Tue Jul 28 05:00:36 2015 From: david at viral.academy (David Bovill) Date: Tue, 28 Jul 2015 10:00:36 +0100 Subject: Livecode on Raspberry Pi 2 Message-ID: Livecode works superbly on Raspberry Pi 2 - much much better than I anticipated. looking to hook into some native media playback.... From klaus at major-k.de Tue Jul 28 06:04:17 2015 From: klaus at major-k.de (Klaus major-k) Date: Tue, 28 Jul 2015 12:04:17 +0200 Subject: Drawing a Graphice Segment In-Reply-To: <448FE362-A90A-4D29-9ED3-5DBDBEE0D19C@icloud.com> References: <28F6A883-A04C-4C49-8E15-3A14B15D9DB1@icloud.com> <55B3D910.2040504@hyperactivesw.com> <47FD2551-9563-4BB2-A18A-09A1F9ADE721@icloud.com> <1438020998943-4694376.post@n4.nabble.com> <3401B86F-B9B7-4BDD-AFE8-59B956C760F0@icloud.com> <9A679CB5-4B91-413F-966F-A27176264E13@icloud.com> <14BE7AF7-E5FF-4C77-9717-5A602C07896F@icloud.com> <69428ACD-E561-489B-9BF0-8A10287ADD56@icloud.com> <6C2D9EA2-D8C7-42DF-8554-04A7341E6836@icloud.com> <448FE362-A90A-4D29-9ED3-5DBDBEE0D19C@icloud.com> Message-ID: <938D8AE3-0A46-4BF9-9BE8-C55CD59E5ED5@major-k.de> Hi friends, > Am 28.07.2015 um 09:28 schrieb Terence Heaford : >> On 27 Jul 2015, at 22:27, Scott Rossi wrote: >> Just to beat the horse a bit more, > And another based on mathematics. > When you create the pie chart segments you know the start angle and end angle, so save them with the segment. > In my case I use uStartAngle and uEndAngle. > Then apply using: for utmost speed you should always use the params that come with ?mousemove? and not execute one or two additional functions to get the current mouse postition: on mouseMove X,Y > lock screen ## put the mouseH into tMouseX ## put the mouseV into tMouseY > put chartLeft() + chartWidth()/2 into tCentreX > put chartTop() + chartHeight()/2 into tCentreY put X - tCentreX into tDeltaX put Y - tCentreY into tDeltaY ? :-) Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From mazzapaoloitaly at gmail.com Tue Jul 28 06:29:41 2015 From: mazzapaoloitaly at gmail.com (paolo mazza) Date: Tue, 28 Jul 2015 12:29:41 +0200 Subject: revBrowserSet In-Reply-To: <83C65CCF-8453-4E48-8CDD-5D962CF4FE53@icloud.com> References: <83C65CCF-8453-4E48-8CDD-5D962CF4FE53@icloud.com> Message-ID: Hi all, afaik you can not use revBrowserCef because the close revBrowser command does not work. This bug has been confirmed some months ago, but it has not been fixed yet. See.. http://quality.runrev.com/show_bug.cgi?id=13831 All the best Paolo On Fri, Jul 24, 2015 at 9:22 AM, Terence Heaford wrote: > This is my first foray into using a browser in LiveCode and I have come across a couple of points I was hoping someone could help me with: > > I am experimenting using a browser to display charts using highcharts from highcharts.com and have got the example charts working in a browser. > > I am working with LC 6.7.6 on iMac with Yosemite. > > -------------- > > I have this script to setup the browser > > global gBrowserID > > on mouseUp > lock screen > set the visible of grc "browserOutline" to false > > --put revBrowserOpenCef(the windowId of this stack, "") into gBrowserID > put revBrowserOpen(the windowId of this stack, "") into gBrowserID > > revBrowserSet gBrowserID, "rect", the rect of graphic "browserOutline" > revBrowserSet gBrowserID, "offline", true > revBrowserSet gBrowserID, "scrollbars", false > revBrowserSet gBrowserID, "showBorder", true > unlock screen > end mouseUp > > I have noticed that with revBrowserCef I cannot disable scrollbars and show border does not work for me but with revBrowserOpen they both work? > > Perhaps I am doing something wrong or is revBrowserCef a work in progress? > > ??????? > > At the moment it appears that I will have to create my own charts in LiveCode export them as index.htm then reload them into the browser. > > Is there a way to create the chart in LiveCode then pass it straight to the browser. > > I tried this without success using the content of one of the example files in highcharts: > > put the uScript of me into tScript > revBrowserSet gBrowserID, "htmltext", tScript > revBrowserRefresh gBrowserID > > ??????? > > Is there any better documentation on the use of the revBrowser commands or is it all to be trial and error? > > > Thanks > > > Terry > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jana.doughty at livecode.com Tue Jul 28 06:34:38 2015 From: jana.doughty at livecode.com (Jana Doughty) Date: Tue, 28 Jul 2015 12:34:38 +0200 Subject: How to Create a Great User Experience in Mobile Apps Message-ID: <70249cc47fe5333161075739e2c6f1dd.squirrel@meg.on-rev.com> Hi LiveCode Community, We have a great blog today regarding how to create a great user experience. Ali details how to do it and demonstrates with a whisky app (is there anything better?). Hope you enjoy! https://livecode.com/how-to-create-a-great-user-experience-in-mobile-apps/ Thanks! Jana From ambassador at fourthworld.com Tue Jul 28 09:59:13 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 28 Jul 2015 06:59:13 -0700 Subject: Thousands Separators In-Reply-To: <0F53A3D0-04F7-485B-92E0-F317E8E455DB@gmail.com> References: <0F53A3D0-04F7-485B-92E0-F317E8E455DB@gmail.com> Message-ID: <55B78AB1.8010105@fourthworld.com> It's of course very useful that we have a community able and willing to share handler for things like number formatting. But stepping back to look at the big picture, I find myself wondering: Why is that even necessary? Why isn't that just a field property, e.g. "the displayFormat"? The core language is very easy to use, but in many very common cases like this it's not so easy at all, as we have to hand-craft things that less capable tools provide as simple property settings. Another good candidate complimenting displayFormat would be inputFilter, allowing us to set a property to enforce data entry rules for specific types (numeric, phone numbers, email addresses, etc.). For all the wonderful time-saving features LiveCode provides, we spend way too much time re-inventing some very basic wheels. Sure, we could wait for v8's Widgets for something like this, but I wouldn't mind seeing a behavior library for this sooner. I'd help. Anyone have the time to steward such a project? Even better if someone here has the chops to do this in the engine where it's arguably most beneficial for all of us. I'd chip in on a bounty for either of these. -- 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 ebeugelaar at gmail.com Tue Jul 28 10:07:10 2015 From: ebeugelaar at gmail.com (Erik Beugelaar) Date: Tue, 28 Jul 2015 16:07:10 +0200 Subject: Thousands Separators Message-ID: Try Javascript... And go for Wakanda... Sorry for my sarcasm... Sent from my Cubot X6. Richard Gaskin wrote: >It's of course very useful that we have a community able and willing to >share handler for things like number formatting. > >But stepping back to look at the big picture, I find myself wondering: > >Why is that even necessary? > >Why isn't that just a field property, e.g. "the displayFormat"? > >The core language is very easy to use, but in many very common cases >like this it's not so easy at all, as we have to hand-craft things that >less capable tools provide as simple property settings. > >Another good candidate complimenting displayFormat would be inputFilter, >allowing us to set a property to enforce data entry rules for specific >types (numeric, phone numbers, email addresses, etc.). > >For all the wonderful time-saving features LiveCode provides, we spend >way too much time re-inventing some very basic wheels. > >Sure, we could wait for v8's Widgets for something like this, but I >wouldn't mind seeing a behavior library for this sooner. I'd help. >Anyone have the time to steward such a project? Even better if someone >here has the chops to do this in the engine where it's arguably most >beneficial for all of us. I'd chip in on a bounty for either of these. > >-- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > >_______________________________________________ >use-livecode mailing list >use-livecode at lists.runrev.com >Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >http://lists.runrev.com/mailman/listinfo/use-livecode From kevin at stallibrass.com Tue Jul 28 10:26:06 2015 From: kevin at stallibrass.com (Kevin Stallibrass) Date: Tue, 28 Jul 2015 15:26:06 +0100 Subject: LC Server hidden fields with multipart/form-data fields Message-ID: <053201d0c941$57807d00$06817700$@com> I have an lc server page with put "test" into tRip
Select file to upload:
Then on mypage.lc I have put $_Files[uploadedfile][name] into tFileName put $_Files[uploadedfile][type] into tFileType put $_Files[uploadedfile][size] into tFileSize put $_Files[uploadedfile][filename] into tFilePath put $_POST["rip"] into tRip My problem is that with enctype="multipart/form-data" in place, the file uploads and I can access the $_Files data but not the $_POST If I remove the enctype="multipart/form-data, there is no button to upload a file but the $_POST data is now available. I clearly cannot mix the $_Files & $_POST but cannot find anything online to give me a clue on how to go about handling this. I'm using livecode server 7.0.5 on a Ubuntu box but have tried it on on-rev with the same effect Any ideas? Regards Kevin Stallibrass From ray at linkit.com Tue Jul 28 10:51:26 2015 From: ray at linkit.com (Ray) Date: Tue, 28 Jul 2015 15:51:26 +0100 Subject: Multiple Stacks on Mobile In-Reply-To: <55353B13.8060003@hyperactivesw.com> References: <553512B8.3090404@LinkIt.Com> <55352444.4070204@fourthworld.com> <55353B13.8060003@hyperactivesw.com> Message-ID: <55B796EE.1090700@LinkIt.Com> As far as I know, it's not possible to display two stacks simultaneously on either Android or iOS. Does anybody have any suggestions for a work around to this? In my case I have a stack with multiple cards which transition with visual effects as users go from card to card. I'd like to keep this look while at the same time displaying in front of it another, fixed, video game style 'heads-up' stack on screen using the window mask property. Thanks in advance for any ideas! From prothero at earthednet.org Tue Jul 28 11:08:16 2015 From: prothero at earthednet.org (EED-wp Email) Date: Tue, 28 Jul 2015 09:08:16 -0600 Subject: revBrowserSet In-Reply-To: References: <83C65CCF-8453-4E48-8CDD-5D962CF4FE53@icloud.com> Message-ID: <6972F854-9573-4148-83EC-F7CF0C343CF7@earthednet.org> I wonder about this. I had an issue with closing revbrowsercef. I used it to dosplay a youtube video and some straight html. It works fine in recent versions of lc. Be aware tho, that using it will add about 65mb to the app (if my memory serves). Bill William Prothero http://ed.earthednet.org > On Jul 28, 2015, at 4:29 AM, paolo mazza wrote: > > Hi all, > afaik you can not use revBrowserCef because the close revBrowser > command does not work. > This bug has been confirmed some months ago, but it has not been fixed > yet. See.. > http://quality.runrev.com/show_bug.cgi?id=13831 > All the best > Paolo > >> On Fri, Jul 24, 2015 at 9:22 AM, Terence Heaford wrote: >> This is my first foray into using a browser in LiveCode and I have come across a couple of points I was hoping someone could help me with: >> >> I am experimenting using a browser to display charts using highcharts from highcharts.com and have got the example charts working in a browser. >> >> I am working with LC 6.7.6 on iMac with Yosemite. >> >> -------------- >> >> I have this script to setup the browser >> >> global gBrowserID >> >> on mouseUp >> lock screen >> set the visible of grc "browserOutline" to false >> >> --put revBrowserOpenCef(the windowId of this stack, "") into gBrowserID >> put revBrowserOpen(the windowId of this stack, "") into gBrowserID >> >> revBrowserSet gBrowserID, "rect", the rect of graphic "browserOutline" >> revBrowserSet gBrowserID, "offline", true >> revBrowserSet gBrowserID, "scrollbars", false >> revBrowserSet gBrowserID, "showBorder", true >> unlock screen >> end mouseUp >> >> I have noticed that with revBrowserCef I cannot disable scrollbars and show border does not work for me but with revBrowserOpen they both work? >> >> Perhaps I am doing something wrong or is revBrowserCef a work in progress? >> >> ??????? >> >> At the moment it appears that I will have to create my own charts in LiveCode export them as index.htm then reload them into the browser. >> >> Is there a way to create the chart in LiveCode then pass it straight to the browser. >> >> I tried this without success using the content of one of the example files in highcharts: >> >> put the uScript of me into tScript >> revBrowserSet gBrowserID, "htmltext", tScript >> revBrowserRefresh gBrowserID >> >> ??????? >> >> Is there any better documentation on the use of the revBrowser commands or is it all to be trial and error? >> >> >> Thanks >> >> >> Terry >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 28 11:16:57 2015 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Tue, 28 Jul 2015 11:16:57 -0400 Subject: parameterized query with wildcard Message-ID: Has anybody built any queries that use both parameters and wildcards, e.g. in a LIKE statement? SELECT * FROM foo WHERE bar LIKE %:1% I've tried the above (error), I've tried '%':1'%' (error), and I've tried appending the % to the container I'm passing as my :1 (doesn't work). I really don't want to do this the unsafe way. -- 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 bernd.niggemann at uni-wh.de Tue Jul 28 11:40:11 2015 From: bernd.niggemann at uni-wh.de (BNig) Date: Tue, 28 Jul 2015 08:40:11 -0700 (PDT) Subject: Drawing a Graphice Segment In-Reply-To: <448FE362-A90A-4D29-9ED3-5DBDBEE0D19C@icloud.com> References: <14BE7AF7-E5FF-4C77-9717-5A602C07896F@icloud.com> <69428ACD-E561-489B-9BF0-8A10287ADD56@icloud.com> <6C2D9EA2-D8C7-42DF-8554-04A7341E6836@icloud.com> <448FE362-A90A-4D29-9ED3-5DBDBEE0D19C@icloud.com> Message-ID: <1438098011685-4694408.post@n4.nabble.com> And all a little D?j?-vu: http://runtime-revolution.278305.n4.nabble.com/mouse-within-oval-filled-area-td4034252.html http://runtime-revolution.278305.n4.nabble.com/Re-mouse-within-oval-filled-area-A-solution-using-geometry-td4037520.html funny to read this thread from 2011. Kind regards Bernd -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Drawing-a-Graphice-Segment-tp4694331p4694408.html Sent from the Revolution - User mailing list archive at Nabble.com. From dochawk at gmail.com Tue Jul 28 11:46:17 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Tue, 28 Jul 2015 08:46:17 -0700 Subject: Multiple Stacks on Mobile In-Reply-To: <55B796EE.1090700@LinkIt.Com> References: <553512B8.3090404@LinkIt.Com> <55352444.4070204@fourthworld.com> <55353B13.8060003@hyperactivesw.com> <55B796EE.1090700@LinkIt.Com> Message-ID: On Tue, Jul 28, 2015 at 7:51 AM, Ray wrote: > As far as I know, it's not possible to display two stacks simultaneously > on either Android or iOS. Does anybody have any suggestions for a work > around to this? > My thinking at the moment as I ponder a tablet version is to use groups. I cleverly created floating stacks for controls that follow the user from datapoint to datapoint. I *think* I can largely change that to a group . . . -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From bernd.niggemann at uni-wh.de Tue Jul 28 11:44:48 2015 From: bernd.niggemann at uni-wh.de (BNig) Date: Tue, 28 Jul 2015 08:44:48 -0700 (PDT) Subject: Drawing a Graphice Segment In-Reply-To: References: <9A679CB5-4B91-413F-966F-A27176264E13@icloud.com> <14BE7AF7-E5FF-4C77-9717-5A602C07896F@icloud.com> <69428ACD-E561-489B-9BF0-8A10287ADD56@icloud.com> <6C2D9EA2-D8C7-42DF-8554-04A7341E6836@icloud.com> Message-ID: <1438098288821-4694409.post@n4.nabble.com> Thanks for posting this Scott. Although it begs the question why it works. I suppose it is because of anti-aliasing and not fully opaque pixels in a one pixel wide border. If you increase the the borderwidth for whatever reason to say 3 you will have more than one segment hilited when going from on segment to the other. Kind regards Bernd Scott Rossi wrote > Just to beat the horse a bit more, here's a stripped down version of > Mike's approach that seems to work as expected (LC 7.0.5). In your > message box: > go url "http://www.tactilemedia.com/download/mouseover_mod.livecode" > > Regards, > > Scott Rossi > Creative Director -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Drawing-a-Graphice-Segment-tp4694331p4694409.html Sent from the Revolution - User mailing list archive at Nabble.com. From bobsneidar at iotecdigital.com Tue Jul 28 11:49:42 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 28 Jul 2015 15:49:42 +0000 Subject: LiveCode and SQLite performace In-Reply-To: <55B25793.9080108@fourthworld.com> References: <55B25793.9080108@fourthworld.com> Message-ID: <48FBDA7A-3414-4FCE-9DEA-818746B5A5E8@iotecdigital.com> You do not remember correctly. What I said (if I am remembering correctly) is that you need at least the size of your memory free and then some. This is because your OS will page out your memory into virtual memory, which is just a disk cache. But other apps also need room to grow for other things. I have always maintained that 10% is a red line you should never cross without risking damage to the OS or other apps data. Bob S On Jul 24, 2015, at 08:19 , Richard Gaskin > wrote: If I remember correctly Bob Sneidar said that a you need at least 1/2 of your hard drive as free space to run efficiently. So if you have a drive with 500 GB you need 250 GB or more free space on the drive. Anything below that and it normal operations like opening files will be slower. I have used more space than 1/2 and the more I use the slower it gets. Sometimes you can speed things up a little by relaunching the Finder. That can be done using the Force Quit option. If it speeds things up it will only be a temporary fix. John Balgenorth From scott at tactilemedia.com Tue Jul 28 11:52:36 2015 From: scott at tactilemedia.com (Scott Rossi) Date: Tue, 28 Jul 2015 08:52:36 -0700 Subject: Multiple Stacks on Mobile In-Reply-To: <55B796EE.1090700@LinkIt.Com> References: <553512B8.3090404@LinkIt.Com> <55352444.4070204@fourthworld.com> <55353B13.8060003@hyperactivesw.com> <55B796EE.1090700@LinkIt.Com> Message-ID: What's the main issue you're trying to solve? A custom window shape or using transitions in front of a fixed background? AFAIK, you can't use the windowShape property on mobile stacks. But you might achieve the effect of one stack in front of another by moving your card-based content into groups, and showing/hiding groups on a single card (with the card acting as the background stack). You can apply the same transitions used when navigating between cards to showing/hiding groups. However, the above might not be necessary. You also might be able to change your background stack into a background object that appears behind all cards in your foreground stack. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 7/28/15, 7:51 AM, "Ray" wrote: >As far as I know, it's not possible to display two stacks simultaneously >on either Android or iOS. Does anybody have any suggestions for a work >around to this? > >In my case I have a stack with multiple cards which transition with >visual effects as users go from card to card. I'd like to keep this >look while at the same time displaying in front of it another, fixed, >video game style 'heads-up' stack on screen using the window mask >property. > >Thanks in advance for any ideas! > >_______________________________________________ >use-livecode mailing list >use-livecode at lists.runrev.com >Please visit this url to subscribe, unsubscribe and manage your >subscription preferences: >http://lists.runrev.com/mailman/listinfo/use-livecode From ray at linkit.com Tue Jul 28 11:54:09 2015 From: ray at linkit.com (Ray) Date: Tue, 28 Jul 2015 16:54:09 +0100 Subject: Multiple Stacks on Mobile In-Reply-To: References: <553512B8.3090404@LinkIt.Com> <55352444.4070204@fourthworld.com> <55353B13.8060003@hyperactivesw.com> <55B796EE.1090700@LinkIt.Com> Message-ID: <55B7A5A1.7010900@LinkIt.Com> Interesting... So is the idea that if cards become groups, I can then display group after group instead of card after card, but still unlocking the screen with visual effects each time, while maintaining a second 'fixed' group on top? On 7/28/15 4:46 PM, Dr. Hawkins wrote: > On Tue, Jul 28, 2015 at 7:51 AM, Ray wrote: > >> As far as I know, it's not possible to display two stacks simultaneously >> on either Android or iOS. Does anybody have any suggestions for a work >> around to this? >> > My thinking at the moment as I ponder a tablet version is to use groups. > > I cleverly created floating stacks for controls that follow the user from > datapoint to datapoint. I *think* I can largely change that to a group . . > . > > From bobsneidar at iotecdigital.com Tue Jul 28 11:59:30 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 28 Jul 2015 15:59:30 +0000 Subject: Best practise for a quiz control? In-Reply-To: References: <006b01d0c5f5$1e083c60$5a18b520$@kestner.de> Message-ID: <764F6AB5-CA11-4C25-8E0B-4230C472B454@iotecdigital.com> I was just thinking about an alternative to modal processing, because I have a stack I want to be modal just so I can interrupt the flow of the calling program. However, if I throw an error while modal, say a database connection error which I occassionally get because I am using an iffy wireless router, I cannot interact with the debugger. What I was thinking is having a toggle variable that contains something like ?pre? or ?post?. The handler that calls the stack would have two sections. One ?if pModal is ?pre?" the other ?else ? if pModal is ?post?. Now in the calling openStack handler I would get the object that opened the stack and the handler that opened it. Once done, I would send the handler with the arguement ?post? in time, then close the stack. I can pass data back and forth with the dialogData. Using this method I can avoid the issues that come with calling a stack as modal, especially during development. I could also have the advantage of calling multiple stacks ?pseudo-modally? without the stacks interfering with each other. Bob S > On Jul 24, 2015, at 02:52 , Mark Waddingham wrote: > >> I am not sure, what my loop will be doing, while I opened modal the answer >> window? Will the loop wait for the user answer in the modal window in both >> above cases, or is the modal window completely independent from the loop and >> the loop runs on? How can I hold my loop waiting for the user action in the >> modal window? > > When you 'modal' a stack, the modal command will block the current script until the dialog closes. (e.g. You have an OK / Cancel button which do 'close this stack'). > > Note that messages *are* dispatched whilst this blocking occurs - otherwise events wouldn't get processed so you wouldn't have any user interaction. > > -- > 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 ambassador at fourthworld.com Tue Jul 28 12:00:19 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 28 Jul 2015 09:00:19 -0700 Subject: Multiple Stacks on Mobile In-Reply-To: <55B7A5A1.7010900@LinkIt.Com> References: <55B7A5A1.7010900@LinkIt.Com> Message-ID: <55B7A713.8090006@fourthworld.com> Ray wrote: > Interesting... So is the idea that if cards become groups, I > can then display group after group instead of card after card, > but still unlocking the screen with visual effects each time, > while maintaining a second 'fixed' group on top? A long time ago I had to make several set of nested groups and found it painful to do, so I made Pane Reliever, which lets you build a stack and then it gathers up the controls from each card and makes a group for each card, nested within a master group that can be easily copied-and-pasted wherever needed: I haven't even looked at it in years so I have no idea if it even works in recent versions of LC, but feel free to modify it however you like if it seems useful at all. -- 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 ray at linkit.com Tue Jul 28 12:01:37 2015 From: ray at linkit.com (Ray) Date: Tue, 28 Jul 2015 17:01:37 +0100 Subject: Multiple Stacks on Mobile In-Reply-To: References: <553512B8.3090404@LinkIt.Com> <55352444.4070204@fourthworld.com> <55353B13.8060003@hyperactivesw.com> <55B796EE.1090700@LinkIt.Com> Message-ID: <55B7A761.5050107@LinkIt.Com> Scott - the main issue is the second one you've mentioned, below, although it would be more accurate to say 'using transitions behind a fixed foreground'. I'd like for the fixed foreground to be transparent, hence the introduction of the custom window shape idea. Dr. Hawkins also suggested the groups idea which I can try, although now that I think about it that might be a little complicated since it's my users, not me, who populate each card with objects. I'm also considering snapshots of the entire screen and transitioning from one PNG to the other while maintaining the same fixed group of objects in the foreground. On 7/28/15 4:52 PM, Scott Rossi wrote: > What's the main issue you're trying to solve? A custom window shape or > using transitions in front of a fixed background? > > AFAIK, you can't use the windowShape property on mobile stacks. But you > might achieve the effect of one stack in front of another by moving your > card-based content into groups, and showing/hiding groups on a single card > (with the card acting as the background stack). You can apply the same > transitions used when navigating between cards to showing/hiding groups. > > However, the above might not be necessary. You also might be able to > change your background stack into a background object that appears behind > all cards in your foreground stack. > > Regards, > > Scott Rossi > Creative Director > Tactile Media, UX/UI Design > > > > > On 7/28/15, 7:51 AM, "Ray" wrote: > >> As far as I know, it's not possible to display two stacks simultaneously >> on either Android or iOS. Does anybody have any suggestions for a work >> around to this? >> >> In my case I have a stack with multiple cards which transition with >> visual effects as users go from card to card. I'd like to keep this >> look while at the same time displaying in front of it another, fixed, >> video game style 'heads-up' stack on screen using the window mask >> property. >> >> Thanks in advance for any ideas! >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Tue Jul 28 12:01:07 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 28 Jul 2015 16:01:07 +0000 Subject: Calendar Picker In-Reply-To: <55B3C7DC.1010809@fourthworld.com> References: <55B3C7DC.1010809@fourthworld.com> Message-ID: <5151CB68-7803-46E2-92C1-6A2D618FD139@iotecdigital.com> I have a great calendar picker I created, partly from another developers calendar object which I modified fairly extensively. I will look it up, but it is not intended for iOS or mobile. Still the core logic is probably what you need. Bob S > On Jul 25, 2015, at 10:31 , Richard Gaskin wrote: > > Mike Kerner wrote: > > > Has anybody done a calendar picker? I want to add something to an > > ios app. > > mobilePickDate? > > -- > 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 ray at linkit.com Tue Jul 28 12:02:46 2015 From: ray at linkit.com (Ray) Date: Tue, 28 Jul 2015 17:02:46 +0100 Subject: Multiple Stacks on Mobile In-Reply-To: <55B7A713.8090006@fourthworld.com> References: <55B7A5A1.7010900@LinkIt.Com> <55B7A713.8090006@fourthworld.com> Message-ID: <55B7A7A6.5010304@LinkIt.Com> Richard - many thanks. I'll take a look. On 7/28/15 5:00 PM, Richard Gaskin wrote: > Ray wrote: > > > Interesting... So is the idea that if cards become groups, I > > can then display group after group instead of card after card, > > but still unlocking the screen with visual effects each time, > > while maintaining a second 'fixed' group on top? > > A long time ago I had to make several set of nested groups and found > it painful to do, so I made Pane Reliever, which lets you build a > stack and then it gathers up the controls from each card and makes a > group for each card, nested within a master group that can be easily > copied-and-pasted wherever needed: > > > I haven't even looked at it in years so I have no idea if it even > works in recent versions of LC, but feel free to modify it however you > like if it seems useful at all. > From dave at applicationinsight.com Tue Jul 28 12:07:46 2015 From: dave at applicationinsight.com (Dave Kilroy) Date: Tue, 28 Jul 2015 09:07:46 -0700 (PDT) Subject: parameterized query with wildcard In-Reply-To: References: Message-ID: <1438099666097-4694419.post@n4.nabble.com> Mike, assuming you are searching the db with parameter pSearchTerm, try something like this: put "%" & pSearchTerm & "%" into tSearchTerm put "SELECT * FROM foo WHERE bar LIKE :1" into tQuery get revDataFromQuery(tab, return, sDBID, tQuery, "tSearchTerm") ----- "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/parameterized-query-with-wildcard-tp4694407p4694419.html Sent from the Revolution - User mailing list archive at Nabble.com. From scott at tactilemedia.com Tue Jul 28 12:14:45 2015 From: scott at tactilemedia.com (Scott Rossi) Date: Tue, 28 Jul 2015 09:14:45 -0700 Subject: Multiple Stacks on Mobile In-Reply-To: <55B7A761.5050107@LinkIt.Com> References: <553512B8.3090404@LinkIt.Com> <55352444.4070204@fourthworld.com> <55353B13.8060003@hyperactivesw.com> <55B796EE.1090700@LinkIt.Com> <55B7A761.5050107@LinkIt.Com> Message-ID: I think I see what you're trying to do, and if I understand correctly, you can't do it using built-intransitions. You can restrict transitions WITHIN a specified rect or object, but not outside (in this case, the background). What transition are you using -- one of the motion-based options like push or scroll? If yes, one solution could be to use the move command or something like AnimationEngine to physically move background groups left and right (or up and down). But since we're talking about the entire width/height of the card, that might be a lot of screen to update, which could bog down on an underpowered device. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 7/28/15, 9:01 AM, "Ray" wrote: >Scott - the main issue is the second one you've mentioned, below, >although it would be more accurate to say 'using transitions behind a >fixed foreground'. I'd like for the fixed foreground to be transparent, >hence the introduction of the custom window shape idea. > >Dr. Hawkins also suggested the groups idea which I can try, although now >that I think about it that might be a little complicated since it's my >users, not me, who populate each card with objects. I'm also >considering snapshots of the entire screen and transitioning from one >PNG to the other while maintaining the same fixed group of objects in >the foreground. > >On 7/28/15 4:52 PM, Scott Rossi wrote: >> What's the main issue you're trying to solve? A custom window shape or >> using transitions in front of a fixed background? >> >> AFAIK, you can't use the windowShape property on mobile stacks. But you >> might achieve the effect of one stack in front of another by moving your >> card-based content into groups, and showing/hiding groups on a single >>card >> (with the card acting as the background stack). You can apply the same >> transitions used when navigating between cards to showing/hiding groups. >> >> However, the above might not be necessary. You also might be able to >> change your background stack into a background object that appears >>behind >> all cards in your foreground stack. >> >> Regards, >> >> Scott Rossi >> Creative Director >> Tactile Media, UX/UI Design >> >> >> >> >> On 7/28/15, 7:51 AM, "Ray" wrote: >> >>> As far as I know, it's not possible to display two stacks >>>simultaneously >>> on either Android or iOS. Does anybody have any suggestions for a work >>> around to this? >>> >>> In my case I have a stack with multiple cards which transition with >>> visual effects as users go from card to card. I'd like to keep this >>> look while at the same time displaying in front of it another, fixed, >>> video game style 'heads-up' stack on screen using the window mask >>> property. >>> >>> Thanks in advance for any ideas! >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >>subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > >_______________________________________________ >use-livecode mailing list >use-livecode at lists.runrev.com >Please visit this url to subscribe, unsubscribe and manage your >subscription preferences: >http://lists.runrev.com/mailman/listinfo/use-livecode From mikedoub at gmail.com Tue Jul 28 12:11:29 2015 From: mikedoub at gmail.com (Michael Doub) Date: Tue, 28 Jul 2015 12:11:29 -0400 Subject: Thousands Separators In-Reply-To: <55B78AB1.8010105@fourthworld.com> References: <0F53A3D0-04F7-485B-92E0-F317E8E455DB@gmail.com> <55B78AB1.8010105@fourthworld.com> Message-ID: <55B7A9B1.404@gmail.com> Richard, I think Hugh had the same thoughts when he created the fieldformatter (http://www.flexiblelearning.com/fieldformatter/). Were you thinking of something different? -= Mike On 7/28/15 9:59 AM, Richard Gaskin wrote: > It's of course very useful that we have a community able and willing > to share handler for things like number formatting. > > But stepping back to look at the big picture, I find myself wondering: > > Why is that even necessary? > > Why isn't that just a field property, e.g. "the displayFormat"? > > The core language is very easy to use, but in many very common cases > like this it's not so easy at all, as we have to hand-craft things > that less capable tools provide as simple property settings. > > Another good candidate complimenting displayFormat would be > inputFilter, allowing us to set a property to enforce data entry rules > for specific types (numeric, phone numbers, email addresses, etc.). > > For all the wonderful time-saving features LiveCode provides, we spend > way too much time re-inventing some very basic wheels. > > Sure, we could wait for v8's Widgets for something like this, but I > wouldn't mind seeing a behavior library for this sooner. I'd help. > Anyone have the time to steward such a project? Even better if > someone here has the chops to do this in the engine where it's > arguably most beneficial for all of us. I'd chip in on a bounty for > either of these. > > -- > 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 andrew at ctech.me Tue Jul 28 12:17:04 2015 From: andrew at ctech.me (Andrew Kluthe) Date: Tue, 28 Jul 2015 16:17:04 +0000 Subject: parameterized query with wildcard In-Reply-To: <1438099666097-4694419.post@n4.nabble.com> References: <1438099666097-4694419.post@n4.nabble.com> Message-ID: Does revDataFromQuery do any sanitizing/proper to prevent me from sneaking extra SQL into your search box like an injection style attack, or does it just plop whatever you give in there no questions asked? Just curious. I have always been spoiled by SQLYoga or rolled my DB interfaces up into API servers of some kind. On Tue, Jul 28, 2015 at 11:09 AM Dave Kilroy wrote: > Mike, assuming you are searching the db with parameter pSearchTerm, try > something like this: > > > put "%" & pSearchTerm & "%" into tSearchTerm > put "SELECT * FROM foo WHERE bar LIKE :1" into tQuery > get revDataFromQuery(tab, return, sDBID, tQuery, "tSearchTerm") > > > > > > > ----- > "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/parameterized-query-with-wildcard-tp4694407p4694419.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 andrew at ctech.me Tue Jul 28 12:17:04 2015 From: andrew at ctech.me (Andrew Kluthe) Date: Tue, 28 Jul 2015 16:17:04 +0000 Subject: parameterized query with wildcard In-Reply-To: <1438099666097-4694419.post@n4.nabble.com> References: <1438099666097-4694419.post@n4.nabble.com> Message-ID: Does revDataFromQuery do any sanitizing/proper to prevent me from sneaking extra SQL into your search box like an injection style attack, or does it just plop whatever you give in there no questions asked? Just curious. I have always been spoiled by SQLYoga or rolled my DB interfaces up into API servers of some kind. On Tue, Jul 28, 2015 at 11:09 AM Dave Kilroy wrote: > Mike, assuming you are searching the db with parameter pSearchTerm, try > something like this: > > > put "%" & pSearchTerm & "%" into tSearchTerm > put "SELECT * FROM foo WHERE bar LIKE :1" into tQuery > get revDataFromQuery(tab, return, sDBID, tQuery, "tSearchTerm") > > > > > > > ----- > "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/parameterized-query-with-wildcard-tp4694407p4694419.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 andrew at ctech.me Tue Jul 28 12:18:26 2015 From: andrew at ctech.me (Andrew Kluthe) Date: Tue, 28 Jul 2015 16:18:26 +0000 Subject: parameterized query with wildcard In-Reply-To: References: <1438099666097-4694419.post@n4.nabble.com> Message-ID: Should have read, *proper escaping*. On Tue, Jul 28, 2015 at 11:17 AM Andrew Kluthe wrote: > Does revDataFromQuery do any sanitizing/proper to prevent me from sneaking > extra SQL into your search box like an injection style attack, or does it > just plop whatever you give in there no questions asked? Just curious. I > have always been spoiled by SQLYoga or rolled my DB interfaces up into API > servers of some kind. > > On Tue, Jul 28, 2015 at 11:09 AM Dave Kilroy > wrote: > >> Mike, assuming you are searching the db with parameter pSearchTerm, try >> something like this: >> >> >> put "%" & pSearchTerm & "%" into tSearchTerm >> put "SELECT * FROM foo WHERE bar LIKE :1" into tQuery >> get revDataFromQuery(tab, return, sDBID, tQuery, "tSearchTerm") >> >> >> >> >> >> >> ----- >> "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/parameterized-query-with-wildcard-tp4694407p4694419.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 andrew at ctech.me Tue Jul 28 12:18:26 2015 From: andrew at ctech.me (Andrew Kluthe) Date: Tue, 28 Jul 2015 16:18:26 +0000 Subject: parameterized query with wildcard In-Reply-To: References: <1438099666097-4694419.post@n4.nabble.com> Message-ID: Should have read, *proper escaping*. On Tue, Jul 28, 2015 at 11:17 AM Andrew Kluthe wrote: > Does revDataFromQuery do any sanitizing/proper to prevent me from sneaking > extra SQL into your search box like an injection style attack, or does it > just plop whatever you give in there no questions asked? Just curious. I > have always been spoiled by SQLYoga or rolled my DB interfaces up into API > servers of some kind. > > On Tue, Jul 28, 2015 at 11:09 AM Dave Kilroy > wrote: > >> Mike, assuming you are searching the db with parameter pSearchTerm, try >> something like this: >> >> >> put "%" & pSearchTerm & "%" into tSearchTerm >> put "SELECT * FROM foo WHERE bar LIKE :1" into tQuery >> get revDataFromQuery(tab, return, sDBID, tQuery, "tSearchTerm") >> >> >> >> >> >> >> ----- >> "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/parameterized-query-with-wildcard-tp4694407p4694419.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 MikeKerner at roadrunner.com Tue Jul 28 12:28:07 2015 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Tue, 28 Jul 2015 12:28:07 -0400 Subject: parameterized query with wildcard In-Reply-To: References: <1438099666097-4694419.post@n4.nabble.com> Message-ID: Dave, sorry, I thought I mentioned trying that. It does not work. Andrew, yes, if you use a parameterized query, you do not have to escape/sanitize your parameters. If you append them to build a query, you do. On Tue, Jul 28, 2015 at 12:18 PM, Andrew Kluthe wrote: > Should have read, *proper escaping*. > > On Tue, Jul 28, 2015 at 11:17 AM Andrew Kluthe wrote: > > > Does revDataFromQuery do any sanitizing/proper to prevent me from > sneaking > > extra SQL into your search box like an injection style attack, or does it > > just plop whatever you give in there no questions asked? Just curious. I > > have always been spoiled by SQLYoga or rolled my DB interfaces up into > API > > servers of some kind. > > > > On Tue, Jul 28, 2015 at 11:09 AM Dave Kilroy < > dave at applicationinsight.com> > > wrote: > > > >> Mike, assuming you are searching the db with parameter pSearchTerm, try > >> something like this: > >> > >> > >> put "%" & pSearchTerm & "%" into tSearchTerm > >> put "SELECT * FROM foo WHERE bar LIKE :1" into tQuery > >> get revDataFromQuery(tab, return, sDBID, tQuery, "tSearchTerm") > >> > >> > >> > >> > >> > >> > >> ----- > >> "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/parameterized-query-with-wildcard-tp4694407p4694419.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 > -- 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 Jul 28 12:34:20 2015 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Tue, 28 Jul 2015 12:34:20 -0400 Subject: parameterized query with wildcard In-Reply-To: References: <1438099666097-4694419.post@n4.nabble.com> Message-ID: Dave, I take that back - I must have had a typo the first time I tried it. Appending the wildcards to the search parameter does work. On Tue, Jul 28, 2015 at 12:28 PM, Mike Kerner wrote: > Dave, sorry, I thought I mentioned trying that. It does not work. > > Andrew, yes, if you use a parameterized query, you do not have to > escape/sanitize your parameters. If you append them to build a query, you > do. > > On Tue, Jul 28, 2015 at 12:18 PM, Andrew Kluthe wrote: > >> Should have read, *proper escaping*. >> >> On Tue, Jul 28, 2015 at 11:17 AM Andrew Kluthe wrote: >> >> > Does revDataFromQuery do any sanitizing/proper to prevent me from >> sneaking >> > extra SQL into your search box like an injection style attack, or does >> it >> > just plop whatever you give in there no questions asked? Just curious. I >> > have always been spoiled by SQLYoga or rolled my DB interfaces up into >> API >> > servers of some kind. >> > >> > On Tue, Jul 28, 2015 at 11:09 AM Dave Kilroy < >> dave at applicationinsight.com> >> > wrote: >> > >> >> Mike, assuming you are searching the db with parameter pSearchTerm, try >> >> something like this: >> >> >> >> >> >> put "%" & pSearchTerm & "%" into tSearchTerm >> >> put "SELECT * FROM foo WHERE bar LIKE :1" into tQuery >> >> get revDataFromQuery(tab, return, sDBID, tQuery, "tSearchTerm") >> >> >> >> >> >> >> >> >> >> >> >> >> >> ----- >> >> "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/parameterized-query-with-wildcard-tp4694407p4694419.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 >> > > > > -- > 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 ray at linkit.com Tue Jul 28 12:37:10 2015 From: ray at linkit.com (Ray) Date: Tue, 28 Jul 2015 17:37:10 +0100 Subject: Multiple Stacks on Mobile In-Reply-To: References: <553512B8.3090404@LinkIt.Com> <55352444.4070204@fourthworld.com> <55353B13.8060003@hyperactivesw.com> <55B796EE.1090700@LinkIt.Com> <55B7A761.5050107@LinkIt.Com> Message-ID: <55B7AFB6.8010300@LinkIt.Com> I'm currently using this: lock screen for visual effect go next card unlock screen with visual effect push right fast Works great, but it's the whole card. I'd like to maintain a few transparent fields and images in a fixed way in front of this so the whole transition is happening behind these objects, much like a 'heads-up' in a video game which shows how much ammunition you have left. I, too, doubt the move command would work well on under-powered mobile devices. I'm kind of leaning toward something like this: hide the objects I want to remain stationary and get a snapshot of the both the current and destination cards re-show the objects I want to remain stationary lock screen for visual effect hide the snapshot of the current card, show the snapshot of the destination card unlock screen with visual effect push right fast copy the objects I want to remain stationary to the destination card go to the destination card delete both snapshots What do you think? On 7/28/15 5:14 PM, Scott Rossi wrote: > I think I see what you're trying to do, and if I understand correctly, you > can't do it using built-intransitions. You can restrict transitions > WITHIN a specified rect or object, but not outside (in this case, the > background). > > What transition are you using -- one of the motion-based options like push > or scroll? If yes, one solution could be to use the move command or > something like AnimationEngine to physically move background groups left > and right (or up and down). But since we're talking about the entire > width/height of the card, that might be a lot of screen to update, which > could bog down on an underpowered device. > > Regards, > > Scott Rossi > Creative Director > Tactile Media, UX/UI Design > > > > > On 7/28/15, 9:01 AM, "Ray" wrote: > >> Scott - the main issue is the second one you've mentioned, below, >> although it would be more accurate to say 'using transitions behind a >> fixed foreground'. I'd like for the fixed foreground to be transparent, >> hence the introduction of the custom window shape idea. >> >> Dr. Hawkins also suggested the groups idea which I can try, although now >> that I think about it that might be a little complicated since it's my >> users, not me, who populate each card with objects. I'm also >> considering snapshots of the entire screen and transitioning from one >> PNG to the other while maintaining the same fixed group of objects in >> the foreground. >> >> On 7/28/15 4:52 PM, Scott Rossi wrote: >>> What's the main issue you're trying to solve? A custom window shape or >>> using transitions in front of a fixed background? >>> >>> AFAIK, you can't use the windowShape property on mobile stacks. But you >>> might achieve the effect of one stack in front of another by moving your >>> card-based content into groups, and showing/hiding groups on a single >>> card >>> (with the card acting as the background stack). You can apply the same >>> transitions used when navigating between cards to showing/hiding groups. >>> >>> However, the above might not be necessary. You also might be able to >>> change your background stack into a background object that appears >>> behind >>> all cards in your foreground stack. >>> >>> Regards, >>> >>> Scott Rossi >>> Creative Director >>> Tactile Media, UX/UI Design >>> >>> >>> >>> >>> On 7/28/15, 7:51 AM, "Ray" wrote: >>> >>>> As far as I know, it's not possible to display two stacks >>>> simultaneously >>>> on either Android or iOS. Does anybody have any suggestions for a work >>>> around to this? >>>> >>>> In my case I have a stack with multiple cards which transition with >>>> visual effects as users go from card to card. I'd like to keep this >>>> look while at the same time displaying in front of it another, fixed, >>>> video game style 'heads-up' stack on screen using the window mask >>>> property. >>>> >>>> Thanks in advance for any ideas! >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 28 12:59:16 2015 From: scott at tactilemedia.com (Scott Rossi) Date: Tue, 28 Jul 2015 09:59:16 -0700 Subject: Multiple Stacks on Mobile In-Reply-To: <55B7AFB6.8010300@LinkIt.Com> References: <553512B8.3090404@LinkIt.Com> <55352444.4070204@fourthworld.com> <55353B13.8060003@hyperactivesw.com> <55B796EE.1090700@LinkIt.Com> <55B7A761.5050107@LinkIt.Com> <55B7AFB6.8010300@LinkIt.Com> Message-ID: If you're planning to hide the stationary objects during the transition, that would work, but otherwise, I don't think so. You can't use a built-in motion transition and keep objects (real or virtual) in a fixed location on the card. One thing that came to mind as another option is the updated browser control. I *think* the new version might allow layering with other LiveCode objects, but I'm not sure. If yes, then that could be an option since you could place a browser on the first layer of the card to display background images, and use Javascript to do some nice transitions behind objects in the foreground. How well this would work on mobile, if it does at all, I have no idea. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 7/28/15, 9:37 AM, "Ray" wrote: >I'm currently using this: > lock screen for visual effect > go next card > unlock screen with visual effect push right fast > >Works great, but it's the whole card. I'd like to maintain a few >transparent fields and images in a fixed way in front of this so the >whole transition is happening behind these objects, much like a >'heads-up' in a video game which shows how much ammunition you have left. > >I, too, doubt the move command would work well on under-powered mobile >devices. I'm kind of leaning toward something like this: > hide the objects I want to remain stationary and get a snapshot of >the both the current and destination cards > re-show the objects I want to remain stationary > lock screen for visual effect > hide the snapshot of the current card, show the snapshot of the >destination card > unlock screen with visual effect push right fast > copy the objects I want to remain stationary to the destination card > go to the destination card > delete both snapshots > >What do you think? > > >On 7/28/15 5:14 PM, Scott Rossi wrote: >> I think I see what you're trying to do, and if I understand correctly, >>you >> can't do it using built-intransitions. You can restrict transitions >> WITHIN a specified rect or object, but not outside (in this case, the >> background). >> >> What transition are you using -- one of the motion-based options like >>push >> or scroll? If yes, one solution could be to use the move command or >> something like AnimationEngine to physically move background groups left >> and right (or up and down). But since we're talking about the entire >> width/height of the card, that might be a lot of screen to update, which >> could bog down on an underpowered device. >> >> Regards, >> >> Scott Rossi >> Creative Director >> Tactile Media, UX/UI Design >> >> >> >> >> On 7/28/15, 9:01 AM, "Ray" wrote: >> >>> Scott - the main issue is the second one you've mentioned, below, >>> although it would be more accurate to say 'using transitions behind a >>> fixed foreground'. I'd like for the fixed foreground to be >>>transparent, >>> hence the introduction of the custom window shape idea. >>> >>> Dr. Hawkins also suggested the groups idea which I can try, although >>>now >>> that I think about it that might be a little complicated since it's my >>> users, not me, who populate each card with objects. I'm also >>> considering snapshots of the entire screen and transitioning from one >>> PNG to the other while maintaining the same fixed group of objects in >>> the foreground. >>> >>> On 7/28/15 4:52 PM, Scott Rossi wrote: >>>> What's the main issue you're trying to solve? A custom window shape >>>>or >>>> using transitions in front of a fixed background? >>>> >>>> AFAIK, you can't use the windowShape property on mobile stacks. But >>>>you >>>> might achieve the effect of one stack in front of another by moving >>>>your >>>> card-based content into groups, and showing/hiding groups on a single >>>> card >>>> (with the card acting as the background stack). You can apply the >>>>same >>>> transitions used when navigating between cards to showing/hiding >>>>groups. >>>> >>>> However, the above might not be necessary. You also might be able to >>>> change your background stack into a background object that appears >>>> behind >>>> all cards in your foreground stack. >>>> >>>> Regards, >>>> >>>> Scott Rossi >>>> Creative Director >>>> Tactile Media, UX/UI Design >>>> >>>> >>>> >>>> >>>> On 7/28/15, 7:51 AM, "Ray" wrote: >>>> >>>>> As far as I know, it's not possible to display two stacks >>>>> simultaneously >>>>> on either Android or iOS. Does anybody have any suggestions for a >>>>>work >>>>> around to this? >>>>> >>>>> In my case I have a stack with multiple cards which transition with >>>>> visual effects as users go from card to card. I'd like to keep this >>>>> look while at the same time displaying in front of it another, fixed, >>>>> video game style 'heads-up' stack on screen using the window mask >>>>> property. >>>>> >>>>> Thanks in advance for any ideas! >>>>> >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>> subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >>subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > >_______________________________________________ >use-livecode mailing list >use-livecode at lists.runrev.com >Please visit this url to subscribe, unsubscribe and manage your >subscription preferences: >http://lists.runrev.com/mailman/listinfo/use-livecode From dochawk at gmail.com Tue Jul 28 13:10:42 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Tue, 28 Jul 2015 10:10:42 -0700 Subject: Multiple Stacks on Mobile In-Reply-To: <55B7A761.5050107@LinkIt.Com> References: <553512B8.3090404@LinkIt.Com> <55352444.4070204@fourthworld.com> <55353B13.8060003@hyperactivesw.com> <55B796EE.1090700@LinkIt.Com> <55B7A761.5050107@LinkIt.Com> Message-ID: On Tue, Jul 28, 2015 at 9:01 AM, Ray wrote: > > Dr. Hawkins also suggested the groups idea which I can try, although now > that I think about it that might be a little complicated since it's my > users, not me, who populate each card with objects. That should not be a problem--you can paste, etc. to groups in the same way as cards, and there is the "start editing group sizzle" to let them populate the group. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From ray at linkit.com Tue Jul 28 13:51:42 2015 From: ray at linkit.com (Ray) Date: Tue, 28 Jul 2015 18:51:42 +0100 Subject: Multiple Stacks on Mobile In-Reply-To: References: <553512B8.3090404@LinkIt.Com> <55352444.4070204@fourthworld.com> <55353B13.8060003@hyperactivesw.com> <55B796EE.1090700@LinkIt.Com> <55B7A761.5050107@LinkIt.Com> <55B7AFB6.8010300@LinkIt.Com> Message-ID: <55B7C12E.2070609@LinkIt.Com> Scott - I'm experimenting with this now and not having a whole lot of success, mainly due to the limitation you've mentioned here. I was hoping I could hide and show images instead of going from card to card. That might leave a field on screen independent of the transition, but I was wrong. You're right. You can't use a built-in motion transition and keep an object on the card independent of it. I'm not hopeful about the browser idea on mobile so I have to give this some thought. I guess I can experiment with the move command. Wouldn't it be nice if I could just display a stack as a floating palette on mobile! On 7/28/15 5:59 PM, Scott Rossi wrote: > If you're planning to hide the stationary objects during the transition, > that would work, but otherwise, I don't think so. You can't use a > built-in motion transition and keep objects (real or virtual) in a fixed > location on the card. > > One thing that came to mind as another option is the updated browser > control. I *think* the new version might allow layering with other > LiveCode objects, but I'm not sure. If yes, then that could be an option > since you could place a browser on the first layer of the card to display > background images, and use Javascript to do some nice transitions behind > objects in the foreground. How well this would work on mobile, if it does > at all, I have no idea. > > Regards, > > Scott Rossi > Creative Director > Tactile Media, UX/UI Design > > > > > On 7/28/15, 9:37 AM, "Ray" wrote: > >> I'm currently using this: >> lock screen for visual effect >> go next card >> unlock screen with visual effect push right fast >> >> Works great, but it's the whole card. I'd like to maintain a few >> transparent fields and images in a fixed way in front of this so the >> whole transition is happening behind these objects, much like a >> 'heads-up' in a video game which shows how much ammunition you have left. >> >> I, too, doubt the move command would work well on under-powered mobile >> devices. I'm kind of leaning toward something like this: >> hide the objects I want to remain stationary and get a snapshot of >> the both the current and destination cards >> re-show the objects I want to remain stationary >> lock screen for visual effect >> hide the snapshot of the current card, show the snapshot of the >> destination card >> unlock screen with visual effect push right fast >> copy the objects I want to remain stationary to the destination card >> go to the destination card >> delete both snapshots >> >> What do you think? >> >> >> On 7/28/15 5:14 PM, Scott Rossi wrote: >>> I think I see what you're trying to do, and if I understand correctly, >>> you >>> can't do it using built-intransitions. You can restrict transitions >>> WITHIN a specified rect or object, but not outside (in this case, the >>> background). >>> >>> What transition are you using -- one of the motion-based options like >>> push >>> or scroll? If yes, one solution could be to use the move command or >>> something like AnimationEngine to physically move background groups left >>> and right (or up and down). But since we're talking about the entire >>> width/height of the card, that might be a lot of screen to update, which >>> could bog down on an underpowered device. >>> >>> Regards, >>> >>> Scott Rossi >>> Creative Director >>> Tactile Media, UX/UI Design >>> >>> >>> >>> >>> On 7/28/15, 9:01 AM, "Ray" wrote: >>> >>>> Scott - the main issue is the second one you've mentioned, below, >>>> although it would be more accurate to say 'using transitions behind a >>>> fixed foreground'. I'd like for the fixed foreground to be >>>> transparent, >>>> hence the introduction of the custom window shape idea. >>>> >>>> Dr. Hawkins also suggested the groups idea which I can try, although >>>> now >>>> that I think about it that might be a little complicated since it's my >>>> users, not me, who populate each card with objects. I'm also >>>> considering snapshots of the entire screen and transitioning from one >>>> PNG to the other while maintaining the same fixed group of objects in >>>> the foreground. >>>> >>>> On 7/28/15 4:52 PM, Scott Rossi wrote: >>>>> What's the main issue you're trying to solve? A custom window shape >>>>> or >>>>> using transitions in front of a fixed background? >>>>> >>>>> AFAIK, you can't use the windowShape property on mobile stacks. But >>>>> you >>>>> might achieve the effect of one stack in front of another by moving >>>>> your >>>>> card-based content into groups, and showing/hiding groups on a single >>>>> card >>>>> (with the card acting as the background stack). You can apply the >>>>> same >>>>> transitions used when navigating between cards to showing/hiding >>>>> groups. >>>>> >>>>> However, the above might not be necessary. You also might be able to >>>>> change your background stack into a background object that appears >>>>> behind >>>>> all cards in your foreground stack. >>>>> >>>>> Regards, >>>>> >>>>> Scott Rossi >>>>> Creative Director >>>>> Tactile Media, UX/UI Design >>>>> >>>>> >>>>> >>>>> >>>>> On 7/28/15, 7:51 AM, "Ray" wrote: >>>>> >>>>>> As far as I know, it's not possible to display two stacks >>>>>> simultaneously >>>>>> on either Android or iOS. Does anybody have any suggestions for a >>>>>> work >>>>>> around to this? >>>>>> >>>>>> In my case I have a stack with multiple cards which transition with >>>>>> visual effects as users go from card to card. I'd like to keep this >>>>>> look while at the same time displaying in front of it another, fixed, >>>>>> video game style 'heads-up' stack on screen using the window mask >>>>>> property. >>>>>> >>>>>> Thanks in advance for any ideas! >>>>>> >>>>>> _______________________________________________ >>>>>> use-livecode mailing list >>>>>> use-livecode at lists.runrev.com >>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>> subscription preferences: >>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>> subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ray at linkit.com Tue Jul 28 13:53:37 2015 From: ray at linkit.com (Ray) Date: Tue, 28 Jul 2015 18:53:37 +0100 Subject: Multiple Stacks on Mobile In-Reply-To: References: <553512B8.3090404@LinkIt.Com> <55352444.4070204@fourthworld.com> <55353B13.8060003@hyperactivesw.com> <55B796EE.1090700@LinkIt.Com> <55B7A761.5050107@LinkIt.Com> Message-ID: <55B7C1A1.900@LinkIt.Com> Understood, but then I'm still left with how to use the built-in visual effects while hiding one group and showing another and still leave the stationary fields out of the transition. On 7/28/15 6:10 PM, Dr. Hawkins wrote: > On Tue, Jul 28, 2015 at 9:01 AM, Ray wrote: > >> Dr. Hawkins also suggested the groups idea which I can try, although now >> that I think about it that might be a little complicated since it's my >> users, not me, who populate each card with objects. > > That should not be a problem--you can paste, etc. to groups in the same way > as cards, and there is the "start editing group sizzle" to let them > populate the group. > > From simon at smknight.co.uk Tue Jul 28 14:29:59 2015 From: simon at smknight.co.uk (Simon Knight) Date: Tue, 28 Jul 2015 19:29:59 +0100 Subject: Livecode and UTF8 Message-ID: <55B7CA27.4070202@smknight.co.uk> Hi, I have an app that works with old fashioned text i.e. characters with a code value of less than 128. Recently I enabled cut and paste and the app gets confused it text is pasted in with character values > 127. I have done the obvious and an filtering out all characters with an Ascii value of >127 but in the longer term I want to convert a few high bit characters to a low bit versions e.g. smart quotes to dumb quotes. Some of the text that gets pasted from my email client is in UTF8. I have done some web research and now know a little about UTF8. I have written a routine that captures any UTF8 code patterns and passes the UTF string to a routine for conversion. A UTF8 string may be between one and four bytes long and every byte has a value greater than 127. I wish to extract the UTF character value and use the value to do the conversion. My question is: does livecode have any method of converting a UTF8 character string to either a UTF16 string or to the numeric value of the character which I believe is the same if leading zeros are ignored? For instance a smart open quote appears in my data as a series of three bytes : [E2-hex,80-hex,9C-hex] the numeric value of the character is encoded within the bits of the three bytes and will take some bit shifting to extract : the UTF8 string decodes to 201C-hex or 8220 base 10. At present I am working with Livecode 6.7 and have read about and tried the uniEncode and uniDecode functions. The description of these functions does not make any sense to me as they seem to be about adding or removing every other byte which can't work with UTF8. I have tried various versions of the following button code attempting to get a result of 8220 base 10: on mouseUp put numToChar(226) into tString -- E2 hex put numToChar(128) after tString -- 80 hex put numToChar(156) after tString -- 9C hex Set the UseUniCode to true put "source string :" & tstring put uniDecode(tString,"UTF8") into tResult put CharToNum(tResult) into tNumberResult -- seeking value 8220 in base 10 end mouseUp So do I have to knuckle down and start bit shifting? thanks for reading Simon From dunbarx at aol.com Tue Jul 28 14:41:40 2015 From: dunbarx at aol.com (dunbarx at aol.com) Date: Tue, 28 Jul 2015 14:41:40 -0400 Subject: Thousands Separators In-Reply-To: <55B7A9B1.404@gmail.com> Message-ID: <14ed5f85c57-413b-1a0c7@webprd-a25.mail.aol.com> You might post this to the "Feature Requests" pane in the forums. Craig Newman -----Original Message----- From: Michael Doub To: How to use LiveCode Sent: Tue, Jul 28, 2015 12:16 pm Subject: Re: Thousands Separators Richard, I think Hugh had the same thoughts when he created the fieldformatter (http://www.flexiblelearning.com/fieldformatter/). Were you thinking of something different? -= Mike On 7/28/15 9:59 AM, Richard Gaskin wrote: > It's of course very useful that we have a community able and willing > to share handler for things like number formatting. > > But stepping back to look at the big picture, I find myself wondering: > > Why is that even necessary? > > Why isn't that just a field property, e.g. "the displayFormat"? > > The core language is very easy to use, but in many very common cases > like this it's not so easy at all, as we have to hand-craft things > that less capable tools provide as simple property settings. > > Another good candidate complimenting displayFormat would be > inputFilter, allowing us to set a property to enforce data entry rules > for specific types (numeric, phone numbers, email addresses, etc.). > > For all the wonderful time-saving features LiveCode provides, we spend > way too much time re-inventing some very basic wheels. > > Sure, we could wait for v8's Widgets for something like this, but I > wouldn't mind seeing a behavior library for this sooner. I'd help. > Anyone have the time to steward such a project? Even better if > someone here has the chops to do this in the engine where it's > arguably most beneficial for all of us. I'd chip in on a bounty for > either of these. > > -- > 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 eric at canelasoftware.com Tue Jul 28 15:04:32 2015 From: eric at canelasoftware.com (Eric Corbett) Date: Tue, 28 Jul 2015 12:04:32 -0700 Subject: Multiple Stacks on Mobile In-Reply-To: <55B7C1A1.900@LinkIt.Com> References: <553512B8.3090404@LinkIt.Com> <55352444.4070204@fourthworld.com> <55353B13.8060003@hyperactivesw.com> <55B796EE.1090700@LinkIt.Com> <55B7A761.5050107@LinkIt.Com> <55B7C1A1.900@LinkIt.Com> Message-ID: <6C9E3722-932C-4B1D-8A9E-01C1EDC6FFAE@canelasoftware.com> Would it be helpful to use lock screen for visual effect in rect tRect? If the controls you want to leave are in a header for instance, tRect would be 0,bottom of
,width of cd,bottom of cd. -E On Jul 28, 2015, at 10:53 AM, Ray wrote: > Understood, but then I'm still left with how to use the built-in visual effects while hiding one group and showing another and still leave the stationary fields out of the transition. > > On 7/28/15 6:10 PM, Dr. Hawkins wrote: >> On Tue, Jul 28, 2015 at 9:01 AM, Ray wrote: >> >>> Dr. Hawkins also suggested the groups idea which I can try, although now >>> that I think about it that might be a little complicated since it's my >>> users, not me, who populate each card with objects. >> >> That should not be a problem--you can paste, etc. to groups in the same way >> as cards, and there is the "start editing group sizzle" to let them >> populate the group. >> >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From sundown at pacifier.com Tue Jul 28 15:59:54 2015 From: sundown at pacifier.com (JB) Date: Tue, 28 Jul 2015 12:59:54 -0700 Subject: LiveCode and SQLite performace In-Reply-To: <48FBDA7A-3414-4FCE-9DEA-818746B5A5E8@iotecdigital.com> References: <55B25793.9080108@fourthworld.com> <48FBDA7A-3414-4FCE-9DEA-818746B5A5E8@iotecdigital.com> Message-ID: <0AB196DD-7011-4D1A-BEFB-7D9325CDAE9C@pacifier.com> Okay I did not remember your statement correctly. But I have noticed after 50% things start slowing down a little. And if I get to 20% they have slowed down a lot. I do agree at 10% you are risking damage but I would say from the poor performance I have seen at 20% it suggest the drive is rising damage. 30% and above seems to work a lot better for me. Even 10% seems to be a lot of wasted space since on a 1TB drive that is around 100gb. That is how it works for me and it is not limited to 1 drive. As for the memory I usually only have one app open at a time so that is not a problem. John Balgenorth On Jul 28, 2015, at 8:49 AM, Bob Sneidar wrote: > You do not remember correctly. What I said (if I am remembering correctly) is that you need at least the size of your memory free and then some. This is because your OS will page out your memory into virtual memory, which is just a disk cache. But other apps also need room to grow for other things. I have always maintained that 10% is a red line you should never cross without risking damage to the OS or other apps data. > > Bob S > > > On Jul 24, 2015, at 08:19 , Richard Gaskin > wrote: > > If I remember correctly Bob Sneidar said that a > you need at least 1/2 of your hard drive as free > space to run efficiently. So if you have a drive > with 500 GB you need 250 GB or more free > space on the drive. Anything below that and > it normal operations like opening files will be > slower. I have used more space than 1/2 and > the more I use the slower it gets. Sometimes > you can speed things up a little by relaunching > the Finder. That can be done using the Force > Quit option. If it speeds things up it will only be > a temporary fix. > > John Balgenorth > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From sundown at pacifier.com Tue Jul 28 16:21:32 2015 From: sundown at pacifier.com (JB) Date: Tue, 28 Jul 2015 13:21:32 -0700 Subject: LiveCode and SQLite performace In-Reply-To: <0AB196DD-7011-4D1A-BEFB-7D9325CDAE9C@pacifier.com> References: <55B25793.9080108@fourthworld.com> <48FBDA7A-3414-4FCE-9DEA-818746B5A5E8@iotecdigital.com> <0AB196DD-7011-4D1A-BEFB-7D9325CDAE9C@pacifier.com> Message-ID: Another thing to consider is how many files you are working with and creating in a day. I am easily in the hundreds and that could make things worse than for someone who is just working with the same few files. John Balgenorth On Jul 28, 2015, at 12:59 PM, JB wrote: > Okay I did not remember your statement > correctly. But I have noticed after 50% > things start slowing down a little. And if > I get to 20% they have slowed down a lot. > I do agree at 10% you are risking damage > but I would say from the poor performance > I have seen at 20% it suggest the drive is > rising damage. 30% and above seems to > work a lot better for me. Even 10% seems > to be a lot of wasted space since on a 1TB > drive that is around 100gb. That is how it > works for me and it is not limited to 1 drive. > As for the memory I usually only have one > app open at a time so that is not a problem. > > John Balgenorth > > > On Jul 28, 2015, at 8:49 AM, Bob Sneidar wrote: > >> You do not remember correctly. What I said (if I am remembering correctly) is that you need at least the size of your memory free and then some. This is because your OS will page out your memory into virtual memory, which is just a disk cache. But other apps also need room to grow for other things. I have always maintained that 10% is a red line you should never cross without risking damage to the OS or other apps data. >> >> Bob S >> >> >> On Jul 24, 2015, at 08:19 , Richard Gaskin > wrote: >> >> If I remember correctly Bob Sneidar said that a >> you need at least 1/2 of your hard drive as free >> space to run efficiently. So if you have a drive >> with 500 GB you need 250 GB or more free >> space on the drive. Anything below that and >> it normal operations like opening files will be >> slower. I have used more space than 1/2 and >> the more I use the slower it gets. Sometimes >> you can speed things up a little by relaunching >> the Finder. That can be done using the Force >> Quit option. If it speeds things up it will only be >> a temporary fix. >> >> John Balgenorth >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bobsneidar at iotecdigital.com Tue Jul 28 17:15:16 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 28 Jul 2015 21:15:16 +0000 Subject: datagrid: index vs line In-Reply-To: References: Message-ID: <7109D632-EF0F-483B-9A9B-F2BF925DAAF6@iotecdigital.com> That is correct. If the datagrid does not have a sort applied, then upon populating it, the line and index numbers will be equal. Also, if you populate the datagrid with data in the same sort order as the datagrid, then line should equal index. It?s because of this and my need to assume that the visible line 1 is also the logical line 1 that I have gotten into the habit of getting the dgprop [?sort by column?] of the data grid, so I can query the data in the same order as the table is being sorted. Bob S > On Jul 27, 2015, at 10:13 , Klaus major-k wrote: > > Hi friends, > > just a quick question: > When you set "the dgdata" of a datagrid of type FORM > and you do not sort or re-arrange the datagrid or whatever then > INDEX = LINE. Know what I mean? > > Is that correct? > > Thanks a lot 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 From bobsneidar at iotecdigital.com Tue Jul 28 17:47:51 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 28 Jul 2015 21:47:51 +0000 Subject: Thousands Separators In-Reply-To: <55B78AB1.8010105@fourthworld.com> References: <0F53A3D0-04F7-485B-92E0-F317E8E455DB@gmail.com> <55B78AB1.8010105@fourthworld.com> Message-ID: <1252CF07-2BE0-4AE3-809E-C659AAA12584@iotecdigital.com> +1 I commented awhaaay back in Revolution 2 times how neat it would be to have a numberFormat property for fields, so that the stored value was one thing (a number) and the display value was another. Otherwise reading data into and out of databases requires a de-format and re-format function for dates, times and numbers. I already have a formatDate() and formatTime() function. Why you ask? Because there are date and time formats that LC does not accomodate, such as sql datetime. But to be able to assign a format to a field, especially a datagrid column would save a lot of time and work. Bob S On Jul 28, 2015, at 06:59 , Richard Gaskin > wrote: It's of course very useful that we have a community able and willing to share handler for things like number formatting. But stepping back to look at the big picture, I find myself wondering: Why is that even necessary? Why isn't that just a field property, e.g. "the displayFormat"? From bobsneidar at iotecdigital.com Tue Jul 28 19:23:58 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 28 Jul 2015 23:23:58 +0000 Subject: parameterized query with wildcard In-Reply-To: References: Message-ID: <4970F19F-5FB5-487E-873C-8967C75BBE7B@iotecdigital.com> Should be LIKE ?:1? or for wild cards LIKE ?%:1%?. If you are searching for a value at the beginning, LIKE ?:1%? or at the end, LIKE ?%:1? If searching for all, column LIKE ?%:1%? OR column LIKE ?:1%? OR column LIKE ?%:1? HTH Bob S > On Jul 28, 2015, at 08:16 , Mike Kerner wrote: > > Has anybody built any queries that use both parameters and wildcards, e.g. > in a LIKE statement? > > SELECT * FROM foo WHERE bar LIKE %:1% > > I've tried the above (error), I've tried '%':1'%' (error), and I've tried > appending the % to the container I'm passing as my :1 (doesn't work). > > I really don't want to do this the unsafe way. > -- > 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 sundown at pacifier.com Tue Jul 28 19:51:36 2015 From: sundown at pacifier.com (JB) Date: Tue, 28 Jul 2015 16:51:36 -0700 Subject: MySql lite DB name Message-ID: <5CAFF636-2B97-408A-A1C5-02333B215648@pacifier.com> How do I get the name of the current open database in mySql lite? John Balgenorth From sundown at pacifier.com Tue Jul 28 21:00:46 2015 From: sundown at pacifier.com (JB) Date: Tue, 28 Jul 2015 18:00:46 -0700 Subject: MySql lite DB name In-Reply-To: <5CAFF636-2B97-408A-A1C5-02333B215648@pacifier.com> References: <5CAFF636-2B97-408A-A1C5-02333B215648@pacifier.com> Message-ID: <99BB617F-D209-4C92-9851-10A1D01C80D8@pacifier.com> SELECT DATABASE() John Balgenorth On Jul 28, 2015, at 4:51 PM, JB wrote: > How do I get the name of the current > open database in mySql lite? > > John Balgenorth > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From james at thehales.id.au Tue Jul 28 21:27:30 2015 From: james at thehales.id.au (James Hale) Date: Wed, 29 Jul 2015 11:27:30 +1000 Subject: Parsing and Extracting Text from ePub XHTML Message-ID: Hi Brahmanathaswami, I wrote a sample stack that opens and displays pubs if that is of any use. You can find it here... http://livecodeshare.runrev.com/stack/761/Epub-Opener If it is of help, let me know :-) James From charles at techstrategies.com.au Wed Jul 29 03:17:40 2015 From: charles at techstrategies.com.au (Charles Warwick) Date: Wed, 29 Jul 2015 17:17:40 +1000 Subject: LiveCode community server on Docker Message-ID: <9B00CBDF-B9E1-4FC5-8AF3-6D3465D4B495@techstrategies.com.au> Hi All, In case anyone is interested, I have uploaded a Docker image with Apache + LiveCode Community Server installed to the Docker Hub registry . https://registry.hub.docker.com/u/techstrategies/livecode/ To use, simply run the following command from the directory where you have your LiveCode scripts: docker run -it --rm -P --name livecode -v "$PWD":/var/www/html/ techstrategies/livecode:7.0.6 Cheers, Charles From t.heaford at icloud.com Wed Jul 29 03:55:43 2015 From: t.heaford at icloud.com (Terence Heaford) Date: Wed, 29 Jul 2015 08:55:43 +0100 Subject: Drawing a Graphice Segment In-Reply-To: <1438098011685-4694408.post@n4.nabble.com> References: <14BE7AF7-E5FF-4C77-9717-5A602C07896F@icloud.com> <69428ACD-E561-489B-9BF0-8A10287ADD56@icloud.com> <6C2D9EA2-D8C7-42DF-8554-04A7341E6836@icloud.com> <448FE362-A90A-4D29-9ED3-5DBDBEE0D19C@icloud.com> <1438098011685-4694408.post@n4.nabble.com> Message-ID: Yes as I am new to LC I was not aware of this although ?the solution? does not work correctly. It does not limit itself to the filled area of a segment. If there are other graphics on the page that align with a segment but are beyond the arc of the segment it still displays as selected because it limits its test to the angle from the centre of the arc only. It does not test for a mouseLoc only being within the radius of the arc. That would be todays challenge. How to limit the test to within the arc radius :) If there are no other objects on the page then all is fine. All the best Terry > On 28 Jul 2015, at 16:40, BNig wrote: > > And all a little D?j?-vu: > > http://runtime-revolution.278305.n4.nabble.com/mouse-within-oval-filled-area-td4034252.html > > http://runtime-revolution.278305.n4.nabble.com/Re-mouse-within-oval-filled-area-A-solution-using-geometry-td4037520.html > > funny to read this thread from 2011. > > Kind regards > Bernd > > > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/Drawing-a-Graphice-Segment-tp4694331p4694408.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 ray at linkit.com Wed Jul 29 04:51:35 2015 From: ray at linkit.com (Ray) Date: Wed, 29 Jul 2015 09:51:35 +0100 Subject: Multiple Stacks on Mobile In-Reply-To: <6C9E3722-932C-4B1D-8A9E-01C1EDC6FFAE@canelasoftware.com> References: <553512B8.3090404@LinkIt.Com> <55352444.4070204@fourthworld.com> <55353B13.8060003@hyperactivesw.com> <55B796EE.1090700@LinkIt.Com> <55B7A761.5050107@LinkIt.Com> <55B7C1A1.900@LinkIt.Com> <6C9E3722-932C-4B1D-8A9E-01C1EDC6FFAE@canelasoftware.com> Message-ID: <55B89417.1090707@LinkIt.Com> Eric - that might work, but only if the part of the screen which transitions with the visual effect does not overlap the part which remains stationary (the rect). In my case they do overlap so the snapshot idea, I believe, is the best. Thanks On 7/28/15 8:04 PM, Eric Corbett wrote: > Would it be helpful to use lock screen for visual effect in rect tRect? > > If the controls you want to leave are in a header for instance, tRect would be 0,bottom of
,width of cd,bottom of cd. > > -E > > On Jul 28, 2015, at 10:53 AM, Ray wrote: > >> Understood, but then I'm still left with how to use the built-in visual effects while hiding one group and showing another and still leave the stationary fields out of the transition. >> >> On 7/28/15 6:10 PM, Dr. Hawkins wrote: >>> On Tue, Jul 28, 2015 at 9:01 AM, Ray wrote: >>> >>>> Dr. Hawkins also suggested the groups idea which I can try, although now >>>> that I think about it that might be a little complicated since it's my >>>> users, not me, who populate each card with objects. >>> That should not be a problem--you can paste, etc. to groups in the same way >>> as cards, and there is the "start editing group sizzle" to let them >>> populate the group. >>> >>> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Wed Jul 29 05:32:28 2015 From: hh at livecode.org (hh) Date: Wed, 29 Jul 2015 11:32:28 +0200 Subject: Drawing a Graphice Segment Message-ID: <51431945-A3E2-41B2-AF31-3E03C5FA9AAA@livecode.org> The function below determines for any point (x,y) whether it is within an oval graphic or not. You may add your own criteria like colour or fill/transparency or visibility ... There is one "uncertainty by default", the border, that is drawn with half of the lineSize outside the object. LC is also sloppy with the rect of objects with large lineSizes. For a function that covers all seven types of LC graphics objects see the function "hhPointWithinGrc" of my stack #47 ("pointInShape") in forums.livecode.com/viewtopic.php?f=76&t=19248 function pointWithinOval G, p -- G is the short name or the number of an *oval* graphic -- p is a point in local coords, for example the clickloc if p is not within the rect of grc G then return false put the loc of grc G into lc put the width of grc G into w put the height of grc G into h put h*(item 1 of p - item 1 of lc) into d1 put w*(item 2 of p - item 2 of lc) into d2 put the arcAngle of grc G into c2 if c2 < 360 then put the startAngle of grc G into c1 put (c1 + c2) into c3 if d2 < 0 then put 0 - atan2(d2,d1)*180/pi into c else put 360 - atan2(d2,d1)*180/pi into c if c3 <= 360 then put ( (c1 <= c) and (c <= c3) ) into cc else put ( (c1 <= c) or (c <= c3 - 360) ) into cc return ( ( 4*d1^2 + 4*d2^2 <= w^2*h^2 ) and cc ) else return ( 4*d1^2 + 4*d2^2 <= w^2*h^2 ) end pointWithinOval Hermann From david at viral.academy Wed Jul 29 05:43:40 2015 From: david at viral.academy (David Bovill) Date: Wed, 29 Jul 2015 10:43:40 +0100 Subject: LiveCode community server on Docker In-Reply-To: <9B00CBDF-B9E1-4FC5-8AF3-6D3465D4B495@techstrategies.com.au> References: <9B00CBDF-B9E1-4FC5-8AF3-6D3465D4B495@techstrategies.com.au> Message-ID: Wonderful. I'd love to know the steps it took. I've nearly got an alpha of the Livecode Daemon working, and I want to test that as a Docker. On 29 July 2015 at 08:17, Charles Warwick wrote: > Hi All, > > In case anyone is interested, I have uploaded a Docker image with Apache + > LiveCode Community Server installed to the Docker Hub registry . > > https://registry.hub.docker.com/u/techstrategies/livecode/ < > https://registry.hub.docker.com/u/techstrategies/livecode/> > > To use, simply run the following command from the directory where you have > your LiveCode scripts: > > docker run -it --rm -P --name livecode -v "$PWD":/var/www/html/ > techstrategies/livecode:7.0.6 > > Cheers, > > Charles > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From charles at techstrategies.com.au Wed Jul 29 07:01:35 2015 From: charles at techstrategies.com.au (Charles Warwick) Date: Wed, 29 Jul 2015 21:01:35 +1000 Subject: LiveCode community server on Docker In-Reply-To: References: Message-ID: Hi David, Setting up a Docker image is fairly simple. I am guessing you are wanting to run a LiveCode Linux standalone in a Docker container that listens on a particular port? In that case, it would be a matter of configuring a Dockerfile that uses a base Docker image for whatever distro you prefer, copies the standalone into it, and sets it to execute on startup of the container? For what you are doing the Dockerfile might look something like: ? FROM: ubuntu:14.04 EXPOSE 5000 (put what port you are using here) COPY yourstandalone /linux/path/to/yourstandalone ENTRYPOINT [?/linux/path/to/yourstandalone?] CMD [?-p parameter?, ?-y another parameter?] ? Then, making sure that the Dockerfile and standalone are in the current directory, build it?. "docker build -t image name ." Hope that helps, Charles > On 29 Jul 2015, at 8:00 pm, use-livecode-request at lists.runrev.com wrote: > > From: David Bovill > > Subject: Re: LiveCode community server on Docker > Date: 29 July 2015 7:43:40 pm AEST > To: How to use LiveCode > > > > Wonderful. I'd love to know the steps it took. I've nearly got an alpha of > the Livecode Daemon working, and I want to test that as a Docker. > > On 29 July 2015 at 08:17, Charles Warwick > > wrote: > >> Hi All, >> >> In case anyone is interested, I have uploaded a Docker image with Apache + >> LiveCode Community Server installed to the Docker Hub registry . >> >> https://registry.hub.docker.com/u/techstrategies/livecode/ < >> https://registry.hub.docker.com/u/techstrategies/livecode/ > >> >> To use, simply run the following command from the directory where you have >> your LiveCode scripts: >> >> docker run -it --rm -P --name livecode -v "$PWD":/var/www/html/ >> techstrategies/livecode:7.0.6 >> >> Cheers, >> >> Charles >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > From david at viral.academy Wed Jul 29 07:07:42 2015 From: david at viral.academy (David Bovill) Date: Wed, 29 Jul 2015 12:07:42 +0100 Subject: LiveCode community server on Docker In-Reply-To: References: Message-ID: That helps a lot. I'll let you know how it progresses :) By the way - where are you hosting the docker with? I wouldn't mind giving your docker a spin :) On 29 July 2015 at 12:01, Charles Warwick wrote: > Hi David, > > Setting up a Docker image is fairly simple. I am guessing you are wanting > to run a LiveCode Linux standalone in a Docker container that listens on a > particular port? > > In that case, it would be a matter of configuring a Dockerfile that uses a > base Docker image for whatever distro you prefer, copies the standalone > into it, and sets it to execute on startup of the container? For what you > are doing the Dockerfile might look something like: > > ? > FROM: ubuntu:14.04 > > EXPOSE 5000 (put what port you are using here) > > COPY yourstandalone /linux/path/to/yourstandalone > > ENTRYPOINT [?/linux/path/to/yourstandalone?] > CMD [?-p parameter?, ?-y another parameter?] > ? > > Then, making sure that the Dockerfile and standalone are in the current > directory, build it?. "docker build -t image name ." > > Hope that helps, > > Charles > > > > On 29 Jul 2015, at 8:00 pm, use-livecode-request at lists.runrev.com wrote: > > > > From: David Bovill > > > Subject: Re: LiveCode community server on Docker > > Date: 29 July 2015 7:43:40 pm AEST > > To: How to use LiveCode use-livecode at lists.runrev.com>> > > > > > > Wonderful. I'd love to know the steps it took. I've nearly got an alpha > of > > the Livecode Daemon working, and I want to test that as a Docker. > > > > On 29 July 2015 at 08:17, Charles Warwick > > > wrote: > > > >> Hi All, > >> > >> In case anyone is interested, I have uploaded a Docker image with > Apache + > >> LiveCode Community Server installed to the Docker Hub registry . > >> > >> https://registry.hub.docker.com/u/techstrategies/livecode/ < > https://registry.hub.docker.com/u/techstrategies/livecode/> < > >> https://registry.hub.docker.com/u/techstrategies/livecode/ < > https://registry.hub.docker.com/u/techstrategies/livecode/>> > >> > >> To use, simply run the following command from the directory where you > have > >> your LiveCode scripts: > >> > >> docker run -it --rm -P --name livecode -v "$PWD":/var/www/html/ > >> techstrategies/livecode:7.0.6 > >> > >> Cheers, > >> > >> Charles > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode < > http://lists.runrev.com/mailman/listinfo/use-livecode> > >> > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From t.heaford at icloud.com Wed Jul 29 07:22:17 2015 From: t.heaford at icloud.com (Terence Heaford) Date: Wed, 29 Jul 2015 12:22:17 +0100 Subject: Drawing a Graphice Segment In-Reply-To: <51431945-A3E2-41B2-AF31-3E03C5FA9AAA@livecode.org> References: <51431945-A3E2-41B2-AF31-3E03C5FA9AAA@livecode.org> Message-ID: > On 29 Jul 2015, at 10:32, hh wrote: > > There is one "uncertainty by default", the border, that is drawn with half of the lineSize outside the object. LC is also sloppy with the rect of objects with large lineSizes. Yes, this seems to be the sticking point with all methods, the function returns true if the point is within the rect. It does not resolve that the arc is not the perimeter of the rect. You cannot be confident of the return value with other objects on the same card. I suppose it can be resolved with a pie chart by having the segments in a unique group with no other objects and the legend in another unique group. The only solution I see is for the LiveCode engineers to resolve this issue by correcting what I believe to be BUG. I will not be submitting this BUG as without checking I would be surprised if it has not been submitted before and not actioned. Thanks for everyones efforts. All the best Terry From dfepstein at comcast.net Tue Jul 28 16:51:42 2015 From: dfepstein at comcast.net (dfepstein at comcast.net) Date: Tue, 28 Jul 2015 20:51:42 +0000 (UTC) Subject: Field loses its identity as a target In-Reply-To: References: Message-ID: <1879546666.16695696.1438116702945.JavaMail.zimbra@comcast.net> I have encountered a bizarre problem that occurs in a somewhat complicated context. ?I wonder if anyone has experienced anything similar. In short: ?when I click a locked field on one occasion ?the long id of the target? returns the expected result; but when I click on it subsequently ?the long id of the target? returns the long id of the card instead. Details: To allow the user to edit certain properties of a card, I copy a ?dropPanel? group to that card, allowing the user the adjust various controls on that group whose settings I use to adjust the appropriate properties of the card. ?I want the ?dropPanel? to disappear if the user clicks outside of it, so I insert a frontScript that, on mousedown, checks whether the targeted object is part of the dropPanel group. This has worked well for a long time, but I now encounter this problem. ?Several of the controls in one of my dropPanels are locked fields (call one of these ?A?). ?The first time one is clicked on, it operates as expected. ?But on subsequent clicks my dropPanel gets deleted. ?When I debug my frontScript, I see that on the first occasion the long id of the target is recognized as ?field id x of group id y of? etc.??and my script confirms that this control is indeed part of the dropPanel group and so clicking it should not delete that group. ?On subsequent clicks, however, that same target is interpreted as ?card id x? etc.?, which of course is not a member of the group, and this causes my group to be deleted. Why does my field ?A? lose its identity between these two clicks? ?When working properly, the click on the locked field causes a different group to be created adjacent to it, allowing the user to select one or more things from a list field (?B?), and then click a Cancel or OK button. ?(This subgroup does not have the auto-close feature). ?The OK button of that subgroup sets a custom property of and sets the text of field ?A??neither of which seems like it should cause that main field no longer to be recognized as a target. ?And the Cancel button does nothing at all to the main field. ?OK and Cancel both delete the subgroup that includes them and Field ?B?. Testing various combinations of events, I learned that the problem arises whenever the user selects something in the list field ?B??regardless of whether he clicks OK or Cancel?but there is no problem if he never makes a selection in that list field ?B??again, regardless of whether he clicks OK or Cancel. ?(And if toggleHilites is true for field ?B? the problem arises even if the user removes a selection he initially made). So it seems as if nothing my scripts do to Field ?A? is associated with its losing its identity; it is rather the fact that one or more lines have been selected in a different field (the list field ?B?). ?Two more symptoms - clicking on a second locked field that operates in the same way also causes the problem; i.e., two clicks on one field or one each on two fields makes no difference. - Field A does not seem to lose its identity until the subgroup containing Field B is deleted. ?If a wayward user repeatedly clicks on Field A and makes a selection in Field B without clicking OK or Cancel, the script as written will keep creating new subgroups with new Field B?s. ?Only after the user has repeatedly clicked OK or Cancel to remove the duplicative series of subgroups will a click on Field A cause the problem. Thanks very much for any insights about this. David Epstein From charles at techstrategies.com.au Wed Jul 29 07:51:15 2015 From: charles at techstrategies.com.au (Charles Warwick) Date: Wed, 29 Jul 2015 21:51:15 +1000 Subject: LiveCode community server on Docker In-Reply-To: References: Message-ID: <5E4E5286-5274-42B2-811B-D5BF520547FD@techstrategies.com.au> For local testing (on a mac), I use boot2docker? I also have some servers in Amazon AWS that run docker for cloud based stuff. I?m happy to help out if you want to use it for some testing. Send me an e-mail directly and we can discuss. > On 29 Jul 2015, at 9:07 pm, David Bovill wrote: > > That helps a lot. I'll let you know how it progresses :) By the way - where > are you hosting the docker with? I wouldn't mind giving your docker a spin > :) > > On 29 July 2015 at 12:01, Charles Warwick > > wrote: > >> Hi David, >> >> Setting up a Docker image is fairly simple. I am guessing you are wanting >> to run a LiveCode Linux standalone in a Docker container that listens on a >> particular port? >> >> In that case, it would be a matter of configuring a Dockerfile that uses a >> base Docker image for whatever distro you prefer, copies the standalone >> into it, and sets it to execute on startup of the container? For what you >> are doing the Dockerfile might look something like: >> >> ? >> FROM: ubuntu:14.04 >> >> EXPOSE 5000 (put what port you are using here) >> >> COPY yourstandalone /linux/path/to/yourstandalone >> >> ENTRYPOINT [?/linux/path/to/yourstandalone?] >> CMD [?-p parameter?, ?-y another parameter?] >> ? >> >> Then, making sure that the Dockerfile and standalone are in the current >> directory, build it?. "docker build -t image name ." >> >> Hope that helps, >> >> Charles >> >> >>> On 29 Jul 2015, at 8:00 pm, use-livecode-request at lists.runrev.com wrote: >>> >>> From: David Bovill >> >>> Subject: Re: LiveCode community server on Docker >>> Date: 29 July 2015 7:43:40 pm AEST >>> To: How to use LiveCode > use-livecode at lists.runrev.com >> >>> >>> >>> Wonderful. I'd love to know the steps it took. I've nearly got an alpha >> of >>> the Livecode Daemon working, and I want to test that as a Docker. >>> >>> On 29 July 2015 at 08:17, Charles Warwick >> >> >>> wrote: >>> >>>> Hi All, >>>> >>>> In case anyone is interested, I have uploaded a Docker image with >> Apache + >>>> LiveCode Community Server installed to the Docker Hub registry . >>>> >>>> https://registry.hub.docker.com/u/techstrategies/livecode/ < >> https://registry.hub.docker.com/u/techstrategies/livecode/ > < >>>> https://registry.hub.docker.com/u/techstrategies/livecode/ < >> https://registry.hub.docker.com/u/techstrategies/livecode/ >> >>>> >>>> To use, simply run the following command from the directory where you >> have >>>> your LiveCode scripts: >>>> >>>> docker run -it --rm -P --name livecode -v "$PWD":/var/www/html/ >>>> techstrategies/livecode:7.0.6 >>>> >>>> Cheers, >>>> >>>> Charles >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com > >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode < >> http://lists.runrev.com/mailman/listinfo/use-livecode > >>>> >>> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Wed Jul 29 08:06:21 2015 From: hh at livecode.org (hh) Date: Wed, 29 Jul 2015 14:06:21 +0200 Subject: Drawing a Graphice Segment In-Reply-To: References: <51431945-A3E2-41B2-AF31-3E03C5FA9AAA@livecode.org> Message-ID: > On 29 Jul 2015, at 13:22, Terence Heaford wrote: >> On 29 Jul 2015, at 10:32, hh wrote: >> There is one "uncertainty by default", the border, that is drawn with half of the lineSize outside the object. LC is also sloppy with the rect of objects with large lineSizes. > > Yes, this seems to be the sticking point with all methods, the function returns true if the point is within the rect. Sorry, you are wrong. My function returns false if it is not within the rect, as a first test. Then it does the additional checks. The handling of a point in the border can for example be tested if, for the check, the showBorder is temporarily set to false. From ambassador at fourthworld.com Wed Jul 29 09:11:24 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 29 Jul 2015 06:11:24 -0700 Subject: Field loses its identity as a target In-Reply-To: <1879546666.16695696.1438116702945.JavaMail.zimbra@comcast.net> References: <1879546666.16695696.1438116702945.JavaMail.zimbra@comcast.net> Message-ID: <55B8D0FC.5040800@fourthworld.com> I find that any number of clicks on a locked field consistently recognizes the field as the target, but unfortunately the rest of the description provided is too complex for me to be able to understand how to reproduce what you're seeing. Do you have a simple example stack in which you can demonstrate this? It may be that in the course of simplifying your setup to produce this simple example stack you may find the source of the issue. Happens to me all the time. :) If not, at least you'll have a good example others can use to verify the issue, and it'll be necessary if a bug report is filed. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com David Epstein wrote: > I have encountered a bizarre problem that occurs in a somewhat complicated context. I wonder if anyone has experienced anything similar. > In short: when I click a locked field on one occasion ?the long id of the target? returns the expected result; but when I click on it subsequently ?the long id of the target? returns the long id of the card instead. > > Details: > To allow the user to edit certain properties of a card, I copy a ?dropPanel? group to that card, allowing the user the adjust various controls on that group whose settings I use to adjust the appropriate properties of the card. I want the ?dropPanel? to disappear if the user clicks outside of it, so I insert a frontScript that, on mousedown, checks whether the targeted object is part of the dropPanel group. > > This has worked well for a long time, but I now encounter this problem. Several of the controls in one of my dropPanels are locked fields (call one of these ?A?). The first time one is clicked on, it operates as expected. But on subsequent clicks my dropPanel gets deleted. When I debug my frontScript, I see that on the first occasion the long id of the target is recognized as ?field id x of group id y of? etc.??and my script confirms that this control is indeed part of the dropPanel group and so clicking it should not delete that group. On subsequent clicks, however, that same target is interpreted as ?card id x? etc.?, which of course is not a member of the group, and this causes my group to be deleted. > > Why does my field ?A? lose its identity between these two clicks? When working properly, the click on the locked field causes a different group to be created adjacent to it, allowing the user to select one or more things from a list field (?B?), and then click a Cancel or OK button. (This subgroup does not have the auto-close feature). The OK button of that subgroup sets a custom property of and sets the text of field ?A??neither of which seems like it should cause that main field no longer to be recognized as a target. And the Cancel button does nothing at all to the main field. OK and Cancel both delete the subgroup that includes them and Field ?B?. > > Testing various combinations of events, I learned that the problem arises whenever the user selects something in the list field ?B??regardless of whether he clicks OK or Cancel?but there is no problem if he never makes a selection in that list field ?B??again, regardless of whether he clicks OK or Cancel. (And if toggleHilites is true for field ?B? the problem arises even if the user removes a selection he initially made). > > So it seems as if nothing my scripts do to Field ?A? is associated with its losing its identity; it is rather the fact that one or more lines have been selected in a different field (the list field ?B?). Two more symptoms > - clicking on a second locked field that operates in the same way also causes the problem; i.e., two clicks on one field or one each on two fields makes no difference. > - Field A does not seem to lose its identity until the subgroup containing Field B is deleted. If a wayward user repeatedly clicks on Field A and makes a selection in Field B without clicking OK or Cancel, the script as written will keep creating new subgroups with new Field B?s. Only after the user has repeatedly clicked OK or Cancel to remove the duplicative series of subgroups will a click on Field A cause the problem. > > Thanks very much for any insights about this. > > David Epstein From bonnmike at gmail.com Wed Jul 29 09:14:39 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Wed, 29 Jul 2015 07:14:39 -0600 Subject: Drawing a Graphice Segment In-Reply-To: References: <51431945-A3E2-41B2-AF31-3E03C5FA9AAA@livecode.org> Message-ID: Someone else pointed out that if you set up the name of the objects that are allowed to hilite so that they're named similarly, you can filter out anything you don't want to hilite In the example I saw that someone did, they had added something like this.. if not (the short name of grc i contains "Oval") then next repeat Put the line right after the beginning of the repeat loop. Or name your segments "Pie 1" *Pie 2" etc, keep track of the number of segments and then cycle through that way rather than all grc's in the list. Or keep an array of created pie segments and their data and use that for your check (as was done in the game academy) If you remove the small loop I had that made sure to back up the default color of a segment (since uColor is set up during your object creation) you can check for the existence of uColor in the grc and "next repeat" if it doesn't exist, unless other grcs on your page have uColor of course. There are lots of ways (that are all basically the same) to have it ignore graphics that you want to ignore. On Wed, Jul 29, 2015 at 6:06 AM, hh wrote: > > > On 29 Jul 2015, at 13:22, Terence Heaford wrote: > > >> On 29 Jul 2015, at 10:32, hh wrote: > >> There is one "uncertainty by default", the border, that is drawn with > half of the lineSize outside the object. LC is also sloppy with the rect of > objects with large lineSizes. > > > > Yes, this seems to be the sticking point with all methods, the function > returns true if the point is within the rect. > > Sorry, you are wrong. My function returns false if it is not within the > rect, as a first test. Then it does the additional checks. > > The handling of a point in the border can for example be tested if, for > the check, the showBorder is temporarily set to false. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dfepstein at comcast.net Wed Jul 29 09:19:42 2015 From: dfepstein at comcast.net (dfepstein at comcast.net) Date: Wed, 29 Jul 2015 13:19:42 +0000 (UTC) Subject: Script-controlled export of animation from Livecode? In-Reply-To: <1002521227.17103827.1438175781352.JavaMail.zimbra@comcast.net> Message-ID: <246106090.17107619.1438175982330.JavaMail.zimbra@comcast.net> Is there a way of scripting the export of?an animation constructed in Livecode to some standard video file format (avi, mp4, etc.)?Alternatively, is there a way of scripting the creation of a standalone Livecode file that contains the animation? ? David Epstein From MikeKerner at roadrunner.com Wed Jul 29 09:31:26 2015 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 29 Jul 2015 09:31:26 -0400 Subject: parameterized query with wildcard In-Reply-To: <4970F19F-5FB5-487E-873C-8967C75BBE7B@iotecdigital.com> References: <4970F19F-5FB5-487E-873C-8967C75BBE7B@iotecdigital.com> Message-ID: Nope. That doesn't work, Bob. That returns nothing. On Tue, Jul 28, 2015 at 7:23 PM, Bob Sneidar wrote: > Should be LIKE ?:1? or for wild cards LIKE ?%:1%?. > > If you are searching for a value at the beginning, LIKE ?:1%? or at the > end, LIKE ?%:1? > > If searching for all, column LIKE ?%:1%? OR column LIKE ?:1%? OR column > LIKE ?%:1? > > HTH > > Bob S > > > > On Jul 28, 2015, at 08:16 , Mike Kerner > wrote: > > > > Has anybody built any queries that use both parameters and wildcards, > e.g. > > in a LIKE statement? > > > > SELECT * FROM foo WHERE bar LIKE %:1% > > > > I've tried the above (error), I've tried '%':1'%' (error), and I've tried > > appending the % to the container I'm passing as my :1 (doesn't work). > > > > I really don't want to do this the unsafe way. > > -- > > 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 MikeKerner at roadrunner.com Wed Jul 29 09:45:57 2015 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 29 Jul 2015 09:45:57 -0400 Subject: parameterized query with wildcard In-Reply-To: References: <4970F19F-5FB5-487E-873C-8967C75BBE7B@iotecdigital.com> Message-ID: If I was guessing, my hunch would be that including the single-quotes is going to make the db look for strings containing %:1%, instead of using the wildcards and the parameter. On Wed, Jul 29, 2015 at 9:31 AM, Mike Kerner wrote: > Nope. That doesn't work, Bob. That returns nothing. > > On Tue, Jul 28, 2015 at 7:23 PM, Bob Sneidar > wrote: > >> Should be LIKE ?:1? or for wild cards LIKE ?%:1%?. >> >> If you are searching for a value at the beginning, LIKE ?:1%? or at the >> end, LIKE ?%:1? >> >> If searching for all, column LIKE ?%:1%? OR column LIKE ?:1%? OR column >> LIKE ?%:1? >> >> HTH >> >> Bob S >> >> >> > On Jul 28, 2015, at 08:16 , Mike Kerner >> wrote: >> > >> > Has anybody built any queries that use both parameters and wildcards, >> e.g. >> > in a LIKE statement? >> > >> > SELECT * FROM foo WHERE bar LIKE %:1% >> > >> > I've tried the above (error), I've tried '%':1'%' (error), and I've >> tried >> > appending the % to the container I'm passing as my :1 (doesn't work). >> > >> > I really don't want to do this the unsafe way. >> > -- >> > 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." > -- 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 pystcat at gmail.com Wed Jul 29 10:18:36 2015 From: pystcat at gmail.com (PystCat) Date: Wed, 29 Jul 2015 10:18:36 -0400 Subject: parameterized query with wildcard In-Reply-To: References: <4970F19F-5FB5-487E-873C-8967C75BBE7B@iotecdigital.com> Message-ID: <50F94540-E276-4176-8E05-BBD79BF3169A@gmail.com> Why not just use merge...? Put "John" into tVal Put merge("SELECT * FROM foo WHERE(bar LIKE %[[tVal]])") into pSQL OR put merge("SELECT * FROM foo WHERE(bar LIKE %[[tVal]]%)") into pSQL I do this for all of my queries and it works fine. Paul > On Jul 29, 2015, at 9:45 AM, Mike Kerner wrote: > > If I was guessing, my hunch would be that including the single-quotes is > going to make the db look for strings containing %:1%, instead of using the > wildcards and the parameter. > > On Wed, Jul 29, 2015 at 9:31 AM, Mike Kerner > wrote: > >> Nope. That doesn't work, Bob. That returns nothing. >> >> On Tue, Jul 28, 2015 at 7:23 PM, Bob Sneidar >> wrote: >> >>> Should be LIKE ?:1? or for wild cards LIKE ?%:1%?. >>> >>> If you are searching for a value at the beginning, LIKE ?:1%? or at the >>> end, LIKE ?%:1? >>> >>> If searching for all, column LIKE ?%:1%? OR column LIKE ?:1%? OR column >>> LIKE ?%:1? >>> >>> HTH >>> >>> Bob S >>> >>> >>>> On Jul 28, 2015, at 08:16 , Mike Kerner >>> wrote: >>>> >>>> Has anybody built any queries that use both parameters and wildcards, >>> e.g. >>>> in a LIKE statement? >>>> >>>> SELECT * FROM foo WHERE bar LIKE %:1% >>>> >>>> I've tried the above (error), I've tried '%':1'%' (error), and I've >>> tried >>>> appending the % to the container I'm passing as my :1 (doesn't work). >>>> >>>> I really don't want to do this the unsafe way. >>>> -- >>>> 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." >> > > > > -- > 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 Jul 29 10:34:24 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 29 Jul 2015 14:34:24 +0000 Subject: MySql lite DB name In-Reply-To: <5CAFF636-2B97-408A-A1C5-02333B215648@pacifier.com> References: <5CAFF636-2B97-408A-A1C5-02333B215648@pacifier.com> Message-ID: Don?t you remember? ;-) Sorry I couldn?t help myself. Bob S > On Jul 28, 2015, at 16:51 , JB wrote: > > How do I get the name of the current > open database in mySql lite? > > John Balgenorth > From MikeKerner at roadrunner.com Wed Jul 29 10:35:01 2015 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 29 Jul 2015 10:35:01 -0400 Subject: parameterized query with wildcard In-Reply-To: <50F94540-E276-4176-8E05-BBD79BF3169A@gmail.com> References: <4970F19F-5FB5-487E-873C-8967C75BBE7B@iotecdigital.com> <50F94540-E276-4176-8E05-BBD79BF3169A@gmail.com> Message-ID: The reason for using parameterized queries instead of either merging or appending is because of SQL injection. On Wed, Jul 29, 2015 at 10:18 AM, PystCat wrote: > Why not just use merge...? > > Put "John" into tVal > Put merge("SELECT * FROM foo WHERE(bar LIKE %[[tVal]])") into pSQL > OR > put merge("SELECT * FROM foo WHERE(bar LIKE %[[tVal]]%)") into pSQL > > I do this for all of my queries and it works fine. > > Paul > > > > > > On Jul 29, 2015, at 9:45 AM, Mike Kerner > wrote: > > > > If I was guessing, my hunch would be that including the single-quotes is > > going to make the db look for strings containing %:1%, instead of using > the > > wildcards and the parameter. > > > > On Wed, Jul 29, 2015 at 9:31 AM, Mike Kerner > > wrote: > > > >> Nope. That doesn't work, Bob. That returns nothing. > >> > >> On Tue, Jul 28, 2015 at 7:23 PM, Bob Sneidar < > bobsneidar at iotecdigital.com> > >> wrote: > >> > >>> Should be LIKE ?:1? or for wild cards LIKE ?%:1%?. > >>> > >>> If you are searching for a value at the beginning, LIKE ?:1%? or at the > >>> end, LIKE ?%:1? > >>> > >>> If searching for all, column LIKE ?%:1%? OR column LIKE ?:1%? OR column > >>> LIKE ?%:1? > >>> > >>> HTH > >>> > >>> Bob S > >>> > >>> > >>>> On Jul 28, 2015, at 08:16 , Mike Kerner > >>> wrote: > >>>> > >>>> Has anybody built any queries that use both parameters and wildcards, > >>> e.g. > >>>> in a LIKE statement? > >>>> > >>>> SELECT * FROM foo WHERE bar LIKE %:1% > >>>> > >>>> I've tried the above (error), I've tried '%':1'%' (error), and I've > >>> tried > >>>> appending the % to the container I'm passing as my :1 (doesn't work). > >>>> > >>>> I really don't want to do this the unsafe way. > >>>> -- > >>>> 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." > >> > > > > > > > > -- > > 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 t.heaford at icloud.com Wed Jul 29 10:54:29 2015 From: t.heaford at icloud.com (Terence Heaford) Date: Wed, 29 Jul 2015 15:54:29 +0100 Subject: Drawing a Graphice Segment In-Reply-To: References: <51431945-A3E2-41B2-AF31-3E03C5FA9AAA@livecode.org> Message-ID: > On 29 Jul 2015, at 13:06, hh wrote: > > Sorry, you are wrong. My function returns false Apologies, I was incorrect. It does return false. My issue was the pie segments are in a group that was not receiving mouseUp messages. I placed a rectangle graphic to the size of the group behind the objects and it works as you said. Thanks Terry From bobsneidar at iotecdigital.com Wed Jul 29 10:56:52 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 29 Jul 2015 14:56:52 +0000 Subject: parameterized query with wildcard In-Reply-To: References: <4970F19F-5FB5-487E-873C-8967C75BBE7B@iotecdigital.com> Message-ID: <93821DE5-BDE9-4A00-B722-FBDB30E65123@iotecdigital.com> If you copied and pasted it may be that the small quotes are not the right characters. I have used this query successfully myself so I may have mistyped something. Bob S > On Jul 29, 2015, at 06:31 , Mike Kerner wrote: > > Nope. That doesn't work, Bob. That returns nothing. > > On Tue, Jul 28, 2015 at 7:23 PM, Bob Sneidar > wrote: > >> Should be LIKE ?:1? or for wild cards LIKE ?%:1%?. >> >> If you are searching for a value at the beginning, LIKE ?:1%? or at the >> end, LIKE ?%:1? >> >> If searching for all, column LIKE ?%:1%? OR column LIKE ?:1%? OR column >> LIKE ?%:1? >> >> HTH >> >> Bob S >> >> >>> On Jul 28, 2015, at 08:16 , Mike Kerner >> wrote: >>> >>> Has anybody built any queries that use both parameters and wildcards, >> e.g. >>> in a LIKE statement? >>> >>> SELECT * FROM foo WHERE bar LIKE %:1% >>> >>> I've tried the above (error), I've tried '%':1'%' (error), and I've tried >>> appending the % to the container I'm passing as my :1 (doesn't work). >>> >>> I really don't want to do this the unsafe way. >>> -- >>> 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 pystcat at gmail.com Wed Jul 29 11:28:41 2015 From: pystcat at gmail.com (PystCat) Date: Wed, 29 Jul 2015 11:28:41 -0400 Subject: parameterized query with wildcard In-Reply-To: References: <4970F19F-5FB5-487E-873C-8967C75BBE7B@iotecdigital.com> <50F94540-E276-4176-8E05-BBD79BF3169A@gmail.com> Message-ID: <5C4D9063-C87A-4D04-B54C-6223DC996B2F@gmail.com> Not a problem... Scrub the variable before the merge... It's what I do as well. I have a function that takes the input and scrubs it... I'm away for another week but if you're interested, when I get back I can post the handler. > On Jul 29, 2015, at 10:35 AM, Mike Kerner wrote: > > The reason for using parameterized queries instead of either merging or > appending is because of SQL injection. > >> On Wed, Jul 29, 2015 at 10:18 AM, PystCat wrote: >> >> Why not just use merge...? >> >> Put "John" into tVal >> Put merge("SELECT * FROM foo WHERE(bar LIKE %[[tVal]])") into pSQL >> OR >> put merge("SELECT * FROM foo WHERE(bar LIKE %[[tVal]]%)") into pSQL >> >> I do this for all of my queries and it works fine. >> >> Paul >> >> >> >> >>>> On Jul 29, 2015, at 9:45 AM, Mike Kerner >>> wrote: >>> >>> If I was guessing, my hunch would be that including the single-quotes is >>> going to make the db look for strings containing %:1%, instead of using >> the >>> wildcards and the parameter. >>> >>> On Wed, Jul 29, 2015 at 9:31 AM, Mike Kerner >>> wrote: >>> >>>> Nope. That doesn't work, Bob. That returns nothing. >>>> >>>> On Tue, Jul 28, 2015 at 7:23 PM, Bob Sneidar < >> bobsneidar at iotecdigital.com> >>>> wrote: >>>> >>>>> Should be LIKE ?:1? or for wild cards LIKE ?%:1%?. >>>>> >>>>> If you are searching for a value at the beginning, LIKE ?:1%? or at the >>>>> end, LIKE ?%:1? >>>>> >>>>> If searching for all, column LIKE ?%:1%? OR column LIKE ?:1%? OR column >>>>> LIKE ?%:1? >>>>> >>>>> HTH >>>>> >>>>> Bob S >>>>> >>>>> >>>>>>> On Jul 28, 2015, at 08:16 , Mike Kerner >>>>>> wrote: >>>>>> >>>>>> Has anybody built any queries that use both parameters and wildcards, >>>>> e.g. >>>>>> in a LIKE statement? >>>>>> >>>>>> SELECT * FROM foo WHERE bar LIKE %:1% >>>>>> >>>>>> I've tried the above (error), I've tried '%':1'%' (error), and I've >>>>> tried >>>>>> appending the % to the container I'm passing as my :1 (doesn't work). >>>>>> >>>>>> I really don't want to do this the unsafe way. >>>>>> -- >>>>>> 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." >>> >>> >>> >>> -- >>> 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 pete at lcsql.com Wed Jul 29 12:16:20 2015 From: pete at lcsql.com (Peter Haworth) Date: Wed, 29 Jul 2015 16:16:20 +0000 Subject: parameterized query with wildcard In-Reply-To: References: <4970F19F-5FB5-487E-873C-8967C75BBE7B@iotecdigital.com> Message-ID: If you are specifying a literal value with LIKE, then you need the single quotes or you will get an error. If you are using a parameter variable containing the literal, then no single quotes needed. Including the :1 in quotes makes the query look for a string containing :1, not the contents of the variable referred to by :1. On Wed, Jul 29, 2015 at 6:33 AM Mike Kerner wrote: > Nope. That doesn't work, Bob. That returns nothing. > > On Tue, Jul 28, 2015 at 7:23 PM, Bob Sneidar > wrote: > > > Should be LIKE ?:1? or for wild cards LIKE ?%:1%?. > > > > If you are searching for a value at the beginning, LIKE ?:1%? or at the > > end, LIKE ?%:1? > > > > If searching for all, column LIKE ?%:1%? OR column LIKE ?:1%? OR column > > LIKE ?%:1? > > > > HTH > > > > Bob S > > > > > > > On Jul 28, 2015, at 08:16 , Mike Kerner > > wrote: > > > > > > Has anybody built any queries that use both parameters and wildcards, > > e.g. > > > in a LIKE statement? > > > > > > SELECT * FROM foo WHERE bar LIKE %:1% > > > > > > I've tried the above (error), I've tried '%':1'%' (error), and I've > tried > > > appending the % to the container I'm passing as my :1 (doesn't work). > > > > > > I really don't want to do this the unsafe way. > > > -- > > > 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 pete at lcsql.com Wed Jul 29 12:18:27 2015 From: pete at lcsql.com (Peter Haworth) Date: Wed, 29 Jul 2015 16:18:27 +0000 Subject: parameterized query with wildcard In-Reply-To: <5C4D9063-C87A-4D04-B54C-6223DC996B2F@gmail.com> References: <4970F19F-5FB5-487E-873C-8967C75BBE7B@iotecdigital.com> <50F94540-E276-4176-8E05-BBD79BF3169A@gmail.com> <5C4D9063-C87A-4D04-B54C-6223DC996B2F@gmail.com> Message-ID: But why bother? You're already putting the value into a variable so all that's required is use :1 and append the variable name to the revxxx call. On Wed, Jul 29, 2015 at 8:29 AM PystCat wrote: > Not a problem... Scrub the variable before the merge... It's what I do as > well. I have a function that takes the input and scrubs it... I'm away for > another week but if you're interested, when I get back I can post the > handler. > > > > > On Jul 29, 2015, at 10:35 AM, Mike Kerner > wrote: > > > > The reason for using parameterized queries instead of either merging or > > appending is because of SQL injection. > > > >> On Wed, Jul 29, 2015 at 10:18 AM, PystCat wrote: > >> > >> Why not just use merge...? > >> > >> Put "John" into tVal > >> Put merge("SELECT * FROM foo WHERE(bar LIKE %[[tVal]])") into pSQL > >> OR > >> put merge("SELECT * FROM foo WHERE(bar LIKE %[[tVal]]%)") into pSQL > >> > >> I do this for all of my queries and it works fine. > >> > >> Paul > >> > >> > >> > >> > >>>> On Jul 29, 2015, at 9:45 AM, Mike Kerner > >>> wrote: > >>> > >>> If I was guessing, my hunch would be that including the single-quotes > is > >>> going to make the db look for strings containing %:1%, instead of using > >> the > >>> wildcards and the parameter. > >>> > >>> On Wed, Jul 29, 2015 at 9:31 AM, Mike Kerner < > MikeKerner at roadrunner.com> > >>> wrote: > >>> > >>>> Nope. That doesn't work, Bob. That returns nothing. > >>>> > >>>> On Tue, Jul 28, 2015 at 7:23 PM, Bob Sneidar < > >> bobsneidar at iotecdigital.com> > >>>> wrote: > >>>> > >>>>> Should be LIKE ?:1? or for wild cards LIKE ?%:1%?. > >>>>> > >>>>> If you are searching for a value at the beginning, LIKE ?:1%? or at > the > >>>>> end, LIKE ?%:1? > >>>>> > >>>>> If searching for all, column LIKE ?%:1%? OR column LIKE ?:1%? OR > column > >>>>> LIKE ?%:1? > >>>>> > >>>>> HTH > >>>>> > >>>>> Bob S > >>>>> > >>>>> > >>>>>>> On Jul 28, 2015, at 08:16 , Mike Kerner > > >>>>>> wrote: > >>>>>> > >>>>>> Has anybody built any queries that use both parameters and > wildcards, > >>>>> e.g. > >>>>>> in a LIKE statement? > >>>>>> > >>>>>> SELECT * FROM foo WHERE bar LIKE %:1% > >>>>>> > >>>>>> I've tried the above (error), I've tried '%':1'%' (error), and I've > >>>>> tried > >>>>>> appending the % to the container I'm passing as my :1 (doesn't > work). > >>>>>> > >>>>>> I really don't want to do this the unsafe way. > >>>>>> -- > >>>>>> 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." > >>> > >>> > >>> > >>> -- > >>> 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 > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 29 12:20:11 2015 From: pete at lcsql.com (Peter Haworth) Date: Wed, 29 Jul 2015 16:20:11 +0000 Subject: Indy License upgrade In-Reply-To: References: Message-ID: So almost a week gone by and no response from Heather. I guess I got a perpetual license and an extra seat in exchange for my $499. Good deal. On Thu, Jul 23, 2015 at 4:00 PM Peter Haworth wrote: > I've emailed Heather about the issues in this post, just posting them here > for others to watch out for. > > I renewed my Indy license today under $499 deal. The final screen I got > after paying showed the next renewal date as 7/23/2016, as did the > confirmation email I got. > > Before the renewal, my Indy license expiration date was 10/18/2016. After > the renewal, the date stayed the same but a new license described as > perpetual turned up in may account. > > On the Seats tab of my account, I now have 2 seats listed, both under my > name. > > It's entirely possible I did something wrong but all I did was click on > the link in Kevin's latest email and go from there. > > I'm sure Heather will correct all this but be sure to check out your > account settings after renewing. > > > From pystcat at gmail.com Wed Jul 29 13:02:12 2015 From: pystcat at gmail.com (PystCat) Date: Wed, 29 Jul 2015 13:02:12 -0400 Subject: parameterized query with wildcard In-Reply-To: References: <4970F19F-5FB5-487E-873C-8967C75BBE7B@iotecdigital.com> <50F94540-E276-4176-8E05-BBD79BF3169A@gmail.com> <5C4D9063-C87A-4D04-B54C-6223DC996B2F@gmail.com> Message-ID: When I get that value from the user it is scrubbed and then put into the SQL with the merge. > On Jul 29, 2015, at 12:18 PM, Peter Haworth wrote: > > But why bother? You're already putting the value into a variable so all > that's required is use :1 and append the variable name to the revxxx call. >> On Wed, Jul 29, 2015 at 8:29 AM PystCat wrote: >> >> Not a problem... Scrub the variable before the merge... It's what I do as >> well. I have a function that takes the input and scrubs it... I'm away for >> another week but if you're interested, when I get back I can post the >> handler. >> >> >> >>>> On Jul 29, 2015, at 10:35 AM, Mike Kerner >>> wrote: >>> >>> The reason for using parameterized queries instead of either merging or >>> appending is because of SQL injection. >>> >>>> On Wed, Jul 29, 2015 at 10:18 AM, PystCat wrote: >>>> >>>> Why not just use merge...? >>>> >>>> Put "John" into tVal >>>> Put merge("SELECT * FROM foo WHERE(bar LIKE %[[tVal]])") into pSQL >>>> OR >>>> put merge("SELECT * FROM foo WHERE(bar LIKE %[[tVal]]%)") into pSQL >>>> >>>> I do this for all of my queries and it works fine. >>>> >>>> Paul >>>> >>>> >>>> >>>> >>>>>> On Jul 29, 2015, at 9:45 AM, Mike Kerner >>>>> wrote: >>>>> >>>>> If I was guessing, my hunch would be that including the single-quotes >> is >>>>> going to make the db look for strings containing %:1%, instead of using >>>> the >>>>> wildcards and the parameter. >>>>> >>>>> On Wed, Jul 29, 2015 at 9:31 AM, Mike Kerner < >> MikeKerner at roadrunner.com> >>>>> wrote: >>>>> >>>>>> Nope. That doesn't work, Bob. That returns nothing. >>>>>> >>>>>> On Tue, Jul 28, 2015 at 7:23 PM, Bob Sneidar < >>>> bobsneidar at iotecdigital.com> >>>>>> wrote: >>>>>> >>>>>>> Should be LIKE ?:1? or for wild cards LIKE ?%:1%?. >>>>>>> >>>>>>> If you are searching for a value at the beginning, LIKE ?:1%? or at >> the >>>>>>> end, LIKE ?%:1? >>>>>>> >>>>>>> If searching for all, column LIKE ?%:1%? OR column LIKE ?:1%? OR >> column >>>>>>> LIKE ?%:1? >>>>>>> >>>>>>> HTH >>>>>>> >>>>>>> Bob S >>>>>>> >>>>>>> >>>>>>>>> On Jul 28, 2015, at 08:16 , Mike Kerner >> >>>>>>>> wrote: >>>>>>>> >>>>>>>> Has anybody built any queries that use both parameters and >> wildcards, >>>>>>> e.g. >>>>>>>> in a LIKE statement? >>>>>>>> >>>>>>>> SELECT * FROM foo WHERE bar LIKE %:1% >>>>>>>> >>>>>>>> I've tried the above (error), I've tried '%':1'%' (error), and I've >>>>>>> tried >>>>>>>> appending the % to the container I'm passing as my :1 (doesn't >> work). >>>>>>>> >>>>>>>> I really don't want to do this the unsafe way. >>>>>>>> -- >>>>>>>> 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." >>>>> >>>>> >>>>> >>>>> -- >>>>> 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 >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Wed Jul 29 13:29:54 2015 From: sritcp at gmail.com (Sri) Date: Wed, 29 Jul 2015 10:29:54 -0700 (PDT) Subject: Indy License upgrade In-Reply-To: References: Message-ID: <1438190994847-4694468.post@n4.nabble.com> Peter: Heather must have missed your email. Same situation, I wrote to support and they have combined the licenses and extended the renewal date under the new, "price lock-down" license. You may want to contact them again. Regards, Sri. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Indy-License-upgrade-tp4694286p4694468.html Sent from the Revolution - User mailing list archive at Nabble.com. From gagsoft at iafrica.com Wed Jul 29 13:43:56 2015 From: gagsoft at iafrica.com (Peter Gagiano) Date: Wed, 29 Jul 2015 19:43:56 +0200 Subject: Indy License upgrade In-Reply-To: <1438190994847-4694468.post@n4.nabble.com> References: <1438190994847-4694468.post@n4.nabble.com> Message-ID: <9AAF44C6-61E7-4663-B929-1CD3376E91FC@iafrica.com> Hi Sri Heather sorted this out as far as I can remember. She added 2 years to my existing subscription as Follows: LiveCode Indy - Price Lock Subscription ID 14579206 Total $299 Yearly Next Payment Date 29th Jul 2018 My previous subscription would have expired in 2016 Thank you kindly for this email Much appreciated Best regards Peter > On 29 Jul 2015, at 7:29 PM, Sri wrote: > > Peter: > > Heather must have missed your email. > Same situation, I wrote to support and they have combined the licenses and > extended the renewal date under the new, "price lock-down" license. > You may want to contact them again. > > Regards, > Sri. > > > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/Indy-License-upgrade-tp4694286p4694468.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 gagsoft at iafrica.com Wed Jul 29 13:55:46 2015 From: gagsoft at iafrica.com (Peter Gagiano) Date: Wed, 29 Jul 2015 19:55:46 +0200 Subject: Indy License upgrade In-Reply-To: References: Message-ID: <53E88D9F-0DE7-4BB5-B633-8F5AE6A43A21@iafrica.com> Hi Peter My apologies. I responded to an email from Shri regarding your Indy subscription. The issue that I had was similar to yours but got sorted within two days. My apologies again and I hope issue get?s sorted out quickly. Best regards Peter Gagiano > On 29 Jul 2015, at 6:20 PM, Peter Haworth wrote: > > So almost a week gone by and no response from Heather. I guess I got a > perpetual license and an extra seat in exchange for my $499. Good deal. > > On Thu, Jul 23, 2015 at 4:00 PM Peter Haworth wrote: > >> I've emailed Heather about the issues in this post, just posting them here >> for others to watch out for. >> >> I renewed my Indy license today under $499 deal. The final screen I got >> after paying showed the next renewal date as 7/23/2016, as did the >> confirmation email I got. >> >> Before the renewal, my Indy license expiration date was 10/18/2016. After >> the renewal, the date stayed the same but a new license described as >> perpetual turned up in may account. >> >> On the Seats tab of my account, I now have 2 seats listed, both under my >> name. >> >> It's entirely possible I did something wrong but all I did was click on >> the link in Kevin's latest email and go from there. >> >> I'm sure Heather will correct all this but be sure to check out your >> account settings after renewing. >> >> >> > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 29 14:47:01 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 29 Jul 2015 13:47:01 -0500 Subject: Field loses its identity as a target In-Reply-To: <1879546666.16695696.1438116702945.JavaMail.zimbra@comcast.net> References: <1879546666.16695696.1438116702945.JavaMail.zimbra@comcast.net> Message-ID: <55B91FA5.60500@hyperactivesw.com> On 7/28/2015 3:51 PM, dfepstein at comcast.net wrote: > I have encountered a bizarre problem that occurs in a somewhat > complicated context. I wonder if anyone has experienced anything > similar. In short: when I click a locked field on one occasion ?the > long id of the target? returns the expected result; but when I click > on it subsequently ?the long id of the target? returns the long id of > the card instead. I'm not sure if it's related but something similar happened to me as well just recently. It turns out the target had been disabled, so clicks were passing through. Does your script disable anything? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From david at viral.academy Wed Jul 29 14:53:10 2015 From: david at viral.academy (David Bovill) Date: Wed, 29 Jul 2015 19:53:10 +0100 Subject: Script-controlled export of animation from Livecode? In-Reply-To: <246106090.17107619.1438175982330.JavaMail.zimbra@comcast.net> References: <1002521227.17103827.1438175781352.JavaMail.zimbra@comcast.net> <246106090.17107619.1438175982330.JavaMail.zimbra@comcast.net> Message-ID: Yes you can - not sure it is the best tool, but one way is to script something and export each frame or card as a numbered image, and then use imagemagick or even iMovie I beleive to create a video file or animated gif. On 29 July 2015 at 14:19, wrote: > Is there a way of scripting the export of an animation constructed in > Livecode to some standard video file format (avi, mp4, etc.)?Alternatively, > is there a way of scripting the creation of a standalone Livecode file that > contains the animation? > > David Epstein > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From heather at livecode.com Wed Jul 29 14:58:57 2015 From: heather at livecode.com (Heather Laine) Date: Wed, 29 Jul 2015 19:58:57 +0100 Subject: Indy License upgrade In-Reply-To: References: Message-ID: <6DF6D75E-A916-495B-9A16-DCC6DB4BC8A2@livecode.com> Peter - I'm sorry for the delay. I will get to it. Your license will get merged/extended. At present I have a huge mound of email to get through, I am progressing and it will all get done, I just ask for your patience while I work through it. Regards, Heather Heather Laine Customer Services Manager LiveCode Ltd www.livecode.com > On 29 Jul 2015, at 17:20, Peter Haworth wrote: > > So almost a week gone by and no response from Heather. I guess I got a > perpetual license and an extra seat in exchange for my $499. Good deal. > > On Thu, Jul 23, 2015 at 4:00 PM Peter Haworth wrote: > >> I've emailed Heather about the issues in this post, just posting them here >> for others to watch out for. >> >> I renewed my Indy license today under $499 deal. The final screen I got >> after paying showed the next renewal date as 7/23/2016, as did the >> confirmation email I got. >> >> Before the renewal, my Indy license expiration date was 10/18/2016. After >> the renewal, the date stayed the same but a new license described as >> perpetual turned up in may account. >> >> On the Seats tab of my account, I now have 2 seats listed, both under my >> name. >> >> It's entirely possible I did something wrong but all I did was click on >> the link in Kevin's latest email and go from there. >> >> I'm sure Heather will correct all this but be sure to check out your >> account settings after renewing. >> >> >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From sundown at pacifier.com Wed Jul 29 15:06:55 2015 From: sundown at pacifier.com (JB) Date: Wed, 29 Jul 2015 12:06:55 -0700 Subject: MySql lite DB name In-Reply-To: References: <5CAFF636-2B97-408A-A1C5-02333B215648@pacifier.com> Message-ID: <95EACE95-2C5A-49A5-A57D-FE4B3E598DF2@pacifier.com> You would be amazed at how much stuff I forget. Sometimes that works a lot better. John Balgenorth On Jul 29, 2015, at 7:34 AM, Bob Sneidar wrote: > Don?t you remember? ;-) Sorry I couldn?t help myself. > > Bob S > > >> On Jul 28, 2015, at 16:51 , JB wrote: >> >> How do I get the name of the current >> open database in mySql lite? >> >> John Balgenorth >> > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From prothero at earthednet.org Wed Jul 29 16:43:29 2015 From: prothero at earthednet.org (Earthednet-wp) Date: Wed, 29 Jul 2015 14:43:29 -0600 Subject: Script-controlled export of animation from Livecode? In-Reply-To: References: <1002521227.17103827.1438175781352.JavaMail.zimbra@comcast.net> <246106090.17107619.1438175982330.JavaMail.zimbra@comcast.net> Message-ID: <4A8985FE-D7A2-40CA-8735-7F9895C184B7@earthednet.org> I think you are wanting to play the animation and end up with a mp4 movie, I think you need one of Monte's externals for this. On the other hand, if you only want to generate the movie in the dev environment, you could play it in livecode and use a screen capture program to capture the video. Good luck, Bill William Prothero http://es.earthednet.org > On Jul 29, 2015, at 12:53 PM, David Bovill wrote: > > Yes you can - not sure it is the best tool, but one way is to script > something and export each frame or card as a numbered image, and then use > imagemagick or even iMovie I beleive to create a video file or animated gif. > >> On 29 July 2015 at 14:19, wrote: >> >> Is there a way of scripting the export of an animation constructed in >> Livecode to some standard video file format (avi, mp4, etc.)?Alternatively, >> is there a way of scripting the creation of a standalone Livecode file that >> contains the animation? >> >> David Epstein >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 29 17:35:12 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 29 Jul 2015 21:35:12 +0000 Subject: parameterized query with wildcard In-Reply-To: References: <4970F19F-5FB5-487E-873C-8967C75BBE7B@iotecdigital.com> Message-ID: <337C6992-4077-469B-8D6D-91DC4A8A4166@iotecdigital.com> How odd. I am thinking now, that because I am passing these query arguements to sqlYoga it is doing the macro replacement instead of SQL. Now that I think of it, I have never used this in a direct SQL query. I am not even sure how to construct it. Is this a web server convention? I cannot see how you would inject the values in a direct query. Bob S > On Jul 29, 2015, at 09:16 , Peter Haworth wrote: > > If you are specifying a literal value with LIKE, then you need the single > quotes or you will get an error. If you are using a parameter variable > containing the literal, then no single quotes needed. Including the :1 in > quotes makes the query look for a string containing :1, not the contents of > the variable referred to by :1. > > On Wed, Jul 29, 2015 at 6:33 AM Mike Kerner > wrote: > >> Nope. That doesn't work, Bob. That returns nothing. >> >> On Tue, Jul 28, 2015 at 7:23 PM, Bob Sneidar >> wrote: >> >>> Should be LIKE ?:1? or for wild cards LIKE ?%:1%?. >>> >>> If you are searching for a value at the beginning, LIKE ?:1%? or at the >>> end, LIKE ?%:1? >>> >>> If searching for all, column LIKE ?%:1%? OR column LIKE ?:1%? OR column >>> LIKE ?%:1? >>> >>> HTH >>> >>> Bob S >>> >>> >>>> On Jul 28, 2015, at 08:16 , Mike Kerner >>> wrote: >>>> >>>> Has anybody built any queries that use both parameters and wildcards, >>> e.g. >>>> in a LIKE statement? >>>> >>>> SELECT * FROM foo WHERE bar LIKE %:1% >>>> >>>> I've tried the above (error), I've tried '%':1'%' (error), and I've >> tried >>>> appending the % to the container I'm passing as my :1 (doesn't work). >>>> >>>> I really don't want to do this the unsafe way. >>>> -- >>>> 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 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dfepstein at comcast.net Sun Jul 26 15:51:41 2015 From: dfepstein at comcast.net (David Epstein) Date: Sun, 26 Jul 2015 15:51:41 -0400 Subject: Field loses its identity as a target Message-ID: I have encountered a bizarre problem that occurs in a somewhat complicated context. I wonder if anyone has experienced anything similar. In short: when I click a locked field on one occasion ?the long id of the target? returns the expected result; but when I click on it subsequently ?the long id of the target? returns the long id of the card instead. Details: To allow the user to edit certain properties of a card, I copy a ?dropPanel? group to that card, allowing the user the adjust various controls on that group whose settings I use to adjust the appropriate properties of the card. I want the ?dropPanel? to disappear if the user clicks outside of it, so I insert a frontScript that, on mousedown, checks whether the targeted object is part of the dropPanel group. This has worked well for a long time, but I now encounter this problem. Several of the controls in one of my dropPanels are locked fields (call one of these ?A?). The first time one is clicked on, it operates as expected. But on subsequent clicks my dropPanel gets deleted. When I debug my frontScript, I see that on the first occasion the long id of the target is recognized as ?field id x of group id y of? etc.??and my script confirms that this control is indeed part of the dropPanel group and so clicking it should not delete that group. On subsequent clicks, however, that same target is interpreted as ?card id x? etc.?, which of course is not a member of the group, and this causes my group to be deleted. Why does my field ?A? lose its identity between these two clicks? When working properly, the click on the locked field causes a different group to be created adjacent to it, allowing the user to select one or more things from a list field (?B?), and then click a Cancel or OK button. (This subgroup does not have the auto-close feature). The OK button of that subgroup sets a custom property of and sets the text of field ?A??neither of which seems like it should cause that main field no longer to be recognized as a target. And the Cancel button does nothing at all to the main field. OK and Cancel both delete the subgroup that includes them and Field ?B?. Testing various combinations of events, I learned that the problem arises whenever the user selects something in the list field ?B??regardless of whether he clicks OK or Cancel?but there is no problem if he never makes a selection in that list field ?B??again, regardless of whether he clicks OK or Cancel. (And if toggleHilites is true for field ?B? the problem arises even if the user removes a selection he initially made). So it seems as if nothing my scripts do to Field ?A? is associated with its losing its identity; it is rather the fact that one or more lines have been selected in a different field (the list field ?B?). Two more symptoms - clicking on a second locked field that operates in the same way also causes the problem; i.e., two clicks on one field or one each on two fields makes no difference. - Field A does not seem to lose its identity until the subgroup containing Field B is deleted. If a wayward user repeatedly clicks on Field A and makes a selection in Field B without clicking OK or Cancel, the script as written will keep creating new subgroups with new Field B?s. Only after the user has repeatedly clicked OK or Cancel to remove the duplicative series of subgroups will a click on Field A cause the problem. Thanks very much for any insights about this. David Epstein From bobsneidar at iotecdigital.com Wed Jul 29 18:06:34 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 29 Jul 2015 22:06:34 +0000 Subject: parameterized query with wildcard In-Reply-To: <337C6992-4077-469B-8D6D-91DC4A8A4166@iotecdigital.com> References: <4970F19F-5FB5-487E-873C-8967C75BBE7B@iotecdigital.com> <337C6992-4077-469B-8D6D-91DC4A8A4166@iotecdigital.com> Message-ID: Okay I see my confusion. I can use a statement like: select * from customers where customername LIKE '%int%? This works. It seems however that when using parameter substitution it does not. In sqlYoga I can use: put sqlquery_createObject(?customers?) into qCustomerObject put ?customer name LIKE ?%:1%?? into tConditions put ?int? into aBindings [1] sqlquery_set qCustomerObject, ?conditions?, tConditions sqlquery_set qCustomerObject, ?condition bindings?, aBindings sqlquery_retrieveAsArray qCustomerObject, aCustomerData This also works. I should also mention that my mail program *DOES* substitute plain quotes for smart ones. I am disabling that ?feature? now. Bob S > On Jul 29, 2015, at 14:35 , Bob Sneidar wrote: > > How odd. I am thinking now, that because I am passing these query arguements to sqlYoga it is doing the macro replacement instead of SQL. Now that I think of it, I have never used this in a direct SQL query. I am not even sure how to construct it. Is this a web server convention? I cannot see how you would inject the values in a direct query. > > Bob S From bobsneidar at iotecdigital.com Wed Jul 29 18:09:03 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 29 Jul 2015 22:09:03 +0000 Subject: parameterized query with wildcard In-Reply-To: References: <4970F19F-5FB5-487E-873C-8967C75BBE7B@iotecdigital.com> <337C6992-4077-469B-8D6D-91DC4A8A4166@iotecdigital.com> Message-ID: Turns out it is done in the system settings under keyboard in case anyone else needs to do the same. Bob S On Jul 29, 2015, at 15:06 , Bob Sneidar > wrote: I should also mention that my mail program *DOES* substitute plain quotes for smart ones. I am disabling that ?feature? now. From dfepstein at comcast.net Wed Jul 29 20:02:53 2015 From: dfepstein at comcast.net (David Epstein) Date: Wed, 29 Jul 2015 20:02:53 -0400 Subject: Script-controlled export of animation from Livecode? In-Reply-To: References: Message-ID: <6123BA88-305D-4E46-BA39-4C278CD9C667@comcast.net> Thanks for the suggestions on this. If I understand them correctly, they seem to require using some tools outside of LiveCode. Can any of those tools be controlled by a LiveCode script? What I want to do is write a script so that a user clicking my button will create some kind of video file from the action that my script is displaying in a LiveCode stack. David Epstein From peterwawood at gmail.com Wed Jul 29 20:52:16 2015 From: peterwawood at gmail.com (Peter W A Wood) Date: Thu, 30 Jul 2015 08:52:16 +0800 Subject: Livecode and UTF8 In-Reply-To: <55B7CA27.4070202@smknight.co.uk> References: <55B7CA27.4070202@smknight.co.uk> Message-ID: <783B3D6E-38BE-4FC9-B10B-DD345924B7E3@gmail.com> Simon I did not reply sooner as I?m not such an experienced LiveCoder. Also, I am concentrating on learning LiveCode versions from 7 onwards. Handling Unicode is much, much easier in those versions. In the code you posted here, you appear to have used uniDecode where you needed to use uniEncode. I ran this in the message box in LiveCode 8: put numToChar(226) into tString -- E2 hex put numToChar(128) after tString -- 80 hex put numToChar(156) after tString -- 9C hex put unicode uniEncode(tString, "UTF8?) It successfully displayed this: ? I am not familiar with using Unicode in the older versions but noticed that you typed ?useUniCode? instead of ?useUnicode? in the code example in your message. I hope this helps to get you started. Peter > On 29 Jul 2015, at 02:29, Simon Knight wrote: > > Hi, > > I have an app that works with old fashioned text i.e. characters with a code value of less than 128. Recently I enabled cut and paste and the app gets confused it text is pasted in with character values > 127. I have done the obvious and an filtering out all characters with an Ascii value of >127 but in the longer term I want to convert a few high bit characters to a low bit versions e.g. smart quotes to dumb quotes. > > Some of the text that gets pasted from my email client is in UTF8. I have done some web research and now know a little about UTF8. I have written a routine that captures any UTF8 code patterns and passes the UTF string to a routine for conversion. > > A UTF8 string may be between one and four bytes long and every byte has a value greater than 127. I wish to extract the UTF character value and use the value to do the conversion. My question is: does livecode have any method of converting a UTF8 character string to either a UTF16 string or to the numeric value of the character which I believe is the same if leading zeros are ignored? For instance a smart open quote appears in my data as a series of three bytes : [E2-hex,80-hex,9C-hex] the numeric value of the character is encoded within the bits of the three bytes and will take some bit shifting to extract : the UTF8 string decodes to 201C-hex or 8220 base 10. > > At present I am working with Livecode 6.7 and have read about and tried the uniEncode and uniDecode functions. The description of these functions does not make any sense to me as they seem to be about adding or removing every other byte which can't work with UTF8. > > I have tried various versions of the following button code attempting to get a result of 8220 base 10: > > on mouseUp > put numToChar(226) into tString -- E2 hex > put numToChar(128) after tString -- 80 hex > put numToChar(156) after tString -- 9C hex > > Set the UseUniCode to true > > put "source string :" & tstring > > put uniDecode(tString,"UTF8") into tResult > > put CharToNum(tResult) into tNumberResult -- seeking value 8220 in base 10 > > end mouseUp > > So do I have to knuckle down and start bit shifting? > > thanks for reading > Simon > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode ? LEFT DOUBLE QUOTATION MARK Unicode: U+201C, UTF-8: E2 80 9C ? LATIN SMALL LETTER F WITH HOOK Unicode: U+0192, UTF-8: C6 92 From lan.kc.macmail at gmail.com Wed Jul 29 20:55:23 2015 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Thu, 30 Jul 2015 08:55:23 +0800 Subject: Thousands Separators In-Reply-To: <55B78AB1.8010105@fourthworld.com> References: <0F53A3D0-04F7-485B-92E0-F317E8E455DB@gmail.com> <55B78AB1.8010105@fourthworld.com> Message-ID: On Tue, Jul 28, 2015 at 9:59 PM, Richard Gaskin wrote: > But stepping back to look at the big picture, I find myself wondering: > > Why is that even necessary? > > Why isn't that just a field property, e.g. "the displayFormat"? > > But stepping back further, why would you want it only restricted to a field property? What about if I wanted numbers automatically displayed in the correct format that came as part of text in an Answer Dialog, or the default answer in an Ask Dialog, or even in the Title of one of these or the dynamic label of a button, i.e. Option Menu? Maybe this is connected with the recent response Mark W gave to the HTML
tag bug which has been reclassified as an 'enhancement' request where he responded: The solution in both cases is not to change the current mappings, but > instead to (at some point) make the mappings configurable at runtime. Of > course, the rub here is that this causes a global interoperability problem > which is not (at this time) clear how to resolve. i.e. In the IDE you could > be editing two 'applications' at once both of which want different > settings. (Note that keying this at the stack level isn't necessarily > correct as stacks can be used as libraries in different contexts - there > needs to be some notion of 'project scope' which would arbitrate what > mappings were used when). > As I said in my response; "in my naivety this sounds like some kind of LC CSS is needed." Wouldn't it be nice, in one central location to nominate formats, not just number, and be able to English like name them for use anywhere (hopefully LC would come with a bunch of inbuilt ones). set the CSSformat $#,###.00 = "currency" set the CSSformat #,### = "wholeThousands" set the CSSformat (###) ####-#### = "AreaPhone" (possibly grep based) set the CSSformat \d{4}-\d{2}-\d{2} \d{2}:\d{2}\d{2} = "SQLDateTime" set the CSSformat \d{2} \w{3} \d{2} = "dd mmm yyDate" set the CSSformat \w+ at gmail.com = "gmailEmail" A stack could then be set to 'wholeThousands' use CSSformat "wholeThousands" for this stack and then every number, whether field, title or text in an Answer Dialog would come up with a thousand separator. If a particular field needed a different format, as you say you'd just set it's format property to: use CSSFormat "currency" for fld "price" to override the default. It would also be nice to be able to tick a box for a field property that automatically invoked data format checking or be able to specify it elsewhere. --number format assumed to be "currency" because that is the stacks default ask question "How much did you spend?" with tValue titled "Lunch Expediture" AND formatCheck 1 --number format different to stack default ask question "Which day was the purchase" with tDate useCSSformat "dd mmm yyDate" titled "Lunch Expenditure" AND formatCheck 2 In the LC CSS you'd specify the response for a 1, 2, 3... etc formatCheck failure. Sitting here dreaming of LC heaven :-) From bruceap at comcast.net Sun Jul 26 20:43:22 2015 From: bruceap at comcast.net (Bruce Pokras) Date: Sun, 26 Jul 2015 20:43:22 -0400 Subject: recursionlimit mystery! In-Reply-To: <55A55BB7.9030407@hyperactivesw.com> References: <6818BE63-A66C-4686-B40A-C5465637D73D@comcast.net> <55A1196F.9050301@fourthworld.com> <55A55BB7.9030407@hyperactivesw.com> Message-ID: Update: this is bug report 15602. The response from the Livecode folks is that 7.0.x is using 16-bit numbers for the recursionlimit property, so Jacque hit the nail on the head. However, in 6.x.x they were using 32-bit numbers, so my setting a very high recursion limit actually did have an effect. They confirm that this is a bug. No promise on the timing of a fix, though. > On Jul 14, 2015, at 2:57 PM, J. Landman Gay wrote: > > On 7/13/2015 9:23 PM, Bruce Pokras wrote: >> The first time I opened the stack in 7.0.6 that had been developed >> under 6.0.2 I received an error message related to the ?openstack? >> command in the stack script. It said that the value to which I had >> set the recursionlimit property ?is not a number.? The value I used >> was 20000000. Looks like a number to me! (I am on a Mac, so the >> Windows issue does not effect me). I tried various numbers until I >> finally narrowed it down. Attempting to set the recursionlimit >> property to any number greater than 65535 gives me an error that that >> value is not a number. Also, setting the recursionlimit to a low >> number like 40 does not work as expected. After setting the >> recursionlimit property to 40 I typed ?put the recursionlimit? into >> the message box and hit ?return.? The number that it returned was in >> the high 30-thousands! > > > I'm not sure about the 30,000 issue, but 65535 is the upper limit for a 16-bit number. It may be that earlier versions of LC just didn't throw any errors if you exceeded that. > > > "65535 occurs frequently in the field of computing because it is the highest number which can be represented by an unsigned 16-bit binary number. Some computer programming environments may have predefined constant values representing 65535, with names like MAX_UNSIGNED_SHORT." > > > -- > 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 dfepstein at comcast.net Wed Jul 29 22:52:57 2015 From: dfepstein at comcast.net (David Epstein) Date: Wed, 29 Jul 2015 22:52:57 -0400 Subject: Field loses its identity as a target Message-ID: Sorry, I see my long question appeared twice; my eMail reported it undelivered, so I tried again. Thanks to Richard for his sound advice, and Jacqueline for the promising theory?promising because I have noticed that disabling locked fields with visible, non-3D borders does not make their borders gray, so that their enabled status is not clear if they contain no text. But disabling does not seem to be the source of my problem, as I have inserted into my script, just before the point of failure, tests both for the existence and the enabled of the field whose identity has been lost. I think it will be easier to circumvent this problem than to figure it out, but I will report back if I narrow it down. David Epstein From brahma at hindu.org Wed Jul 29 22:57:37 2015 From: brahma at hindu.org (Brahmanathaswami) Date: Wed, 29 Jul 2015 16:57:37 -1000 Subject: Parsing and Extracting Text from ePub XHTML In-Reply-To: References: Message-ID: <55B992A1.8020503@hindu.org> Aloha, James: great. thanks for this... seems we are each re-inventing the wheel here. Your code is useful though. I see you are still having to deal with the pesky "—" But only in your TOC xml processing routines. What I don't understand (which makes it hard to make good strategic decisions moving forward) Is that these ePub companies (Atritex in Chennai for us) to taking text from books (inDesign) and then output strings that are ( to my eyes) mixed. Take for example this file from the front matter of a book.. (see below) If I take this raw text and push to a field using the code suggested by Mark put uniDecode(uniEncode(x,"UTF8")) into x set the htmlText of fld 2 to x and *if* I'm very sure to set the field to a font like Arial Unicode MS or Helvetica Neue... it works "brilliantly" and I can even cut and paste to email or Indesign or pages or MSWord and all characters are rendered. "Wunderbar! Marvelous!" But it make me nervous when I look at the raw code because we see unicode characters output as decimal entities Tamil Letter U HTML Entity (decimal) உ UTF-16 (hex) 0x0B89 (0b89) (Line 1 here) உ Unicode expressed as a decimal entity. We don't see the script here... (Line 4 here) ???????? # which is obviously "pure" unicode for Tamil language I don't know what encoding it is.. because I see the actual script... in the raw text.. mixed with curly quotes and mdashes which I assume are ANSI characters... because if open the file in BBEdit those characters are not encoded... they just appear as ' and --- So we seem to have three different encodings. I paste here a rendering from below which I copied out of my LC field... to Indesign.. then from Indesign to this email: I wonder if you are seeing the unicode Tamil, all the diacritical marks and the mDash and curly quote... ? Or do you see garbage when you open this post? ------- ???????? The thirty-six elements dance. Sada-s'iva dances. Consciousness dances. S'iva-S'akti dances. The animate and inanimate dance. All these and the Vedas dance when the Supreme dances His dance of bliss. The seven worlds as His golden abode, the five chakras as His pedestal, the central kun.d.alini- s'akti as His divine stage, thus in rapture He dances, He who is Transcendent Light. He dances with the celestials. He dances in the golden hall. He dances with the three Gods. He dances with the assembly of silent sages. He dances in song. He dances in ultimate energy. He dances in souls---He who is the Lord of Dances. Tat Astu. ----------- everything appears to work. which is amazing...and means LC 7 is a huge step forward for us. If this really will hold all the way thru a JSON encoded POST to MySQL and back out again to desktop client or mobile app without anything breaking. We *can* dumb this all down to 0-127 (I used to do that years ago and have a whole stack dedicated to stripping all diacriticals, replacing ANSI chars etc according to our spelling/lexicon conventions... ) But if LC 7 can actually provide us a way to display all everything, and I can actually put this on a web page also... it will be a quantum leap forward for us. Here is what is in the ePub... Maybe I really shouldn't worry about the different encodings at all? and just assume this will retain "integrity" through all processes, assuming the rendering context is using a unicode font?

Dedication

Samarpaṇam

????????

GAṆEŚA, THE LORD OF CATEGORIES, WHO REMOVED ALL BARRIERS TO THE MANIFESTATION OF THIS CONTEMPORARY HINDU CATECHISM, TO HIM WE OFFER OUR REVERENT OBEISANCE. THIS TEXT IS DEDICATED TO MY SATGURU, SAGE YOGASWAMI of Columbuthurai, Sri Lanka, perfect siddha yogī and illumined master who knew the Unknowable and held Truth in the palm of his hand. As monarch of the Nandinātha Sampradāya's Kailāsa Paramparā, this obedient disciple of Satguru Chellappaswami infused in me all that you will find herein. Yogaswami commanded all to seek within, to know the Self and see God Śiva everywhere and in everyone. Among his great sayings: "Know thy Self by thyself. Śiva is doing it all. All is Śiva. Be still." Well over 2,000 years ago Rishi Tirumular, of our lineage, aptly conveyed the spirit of Dancing with Śiva:

The thirty-six elements dance. Sadāśiva dances. Consciousness dances. Śiva-Śakti dances. The animate and inanimate dance. All these and the Vedas dance when the Supreme dances His dance of bliss. The seven worlds as His golden abode, the five chakras as His pedestal, the central kuṇḍalinī śakti as His divine stage, thus in rapture He dances, He who is Transcendent Light. He dances with the celestials. He dances in the golden hall. He dances with the three Gods. He dances with the assembly of silent sages. He dances in song. He dances in ultimate energy. He dances in souls---He who is the Lord of Dances. Tat Astu.

-- Swasti Astu, Be Well! Brahmanathaswami Kauai's Hindu Monastery www.HimalayanAcademy.com James Hale wrote: > Hi Brahmanathaswami, > > I wrote a sample stack that opens and displays pubs if that is of any use. > > You can find it here... > > http://livecodeshare.runrev.com/stack/761/Epub-Opener > > If it is of help, let me know:-) > > James From prothero at earthednet.org Wed Jul 29 23:51:02 2015 From: prothero at earthednet.org (Earthednet-wp) Date: Wed, 29 Jul 2015 21:51:02 -0600 Subject: Script-controlled export of animation from Livecode? In-Reply-To: <6123BA88-305D-4E46-BA39-4C278CD9C667@comcast.net> References: <6123BA88-305D-4E46-BA39-4C278CD9C667@comcast.net> Message-ID: Check out http://mergext.com/home/mergav/ However, I haven't used it, it works only for iOS and osx, and I'm not sure if it will capture screens for the video. It seems to be set up for images captured with the camera. But you could ask the author. Good luck, Bill William Prothero http://es.earthednet.org > On Jul 29, 2015, at 6:02 PM, David Epstein wrote: > > Thanks for the suggestions on this. If I understand them correctly, they seem to require using some tools outside of LiveCode. Can any of those tools be controlled by a LiveCode script? What I want to do is write a script so that a user clicking my button will create some kind of video file from the action that my script is displaying in a LiveCode stack. > > David Epstein > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From brahma at hindu.org Thu Jul 30 00:06:21 2015 From: brahma at hindu.org (Brahmanathaswami) Date: Wed, 29 Jul 2015 18:06:21 -1000 Subject: Parsing and Extracting Text from ePub XHTML In-Reply-To: <55B54714.7050102@economy-x-talk.com> References: <55B53581.2040802@hindu.org> <55B54714.7050102@economy-x-talk.com> Message-ID: <55B9A2BD.1020503@hindu.org> pursuant to my last long winded email. I've boiled it down to something very simple The company doing our ePubs is mixing 1) unicode HTML dec entities for diacriticals in the IAST roman char range 2) Unicode UTF strings for Tamil and Devanagari script and 3) old fashioned punctuation in the range of ISO-8859-1 128-255. ( I think... ) 1 and 2 above work fine, mixing #3 into the text blocks does, for mysterious reasons I cannot fathom (I wonder if it show correctly on Windows) show correctly in a browser. http://dev.himalayanacademy.com/book/dancing-with-siva/7 the curly apostrophe in "Sampradaya's" and the mdash on the last line "souls?he who..." are rendered in the browser I guess browser are built to properly render mixed unicode and ISO 8859-1 text in the same block...just guessing... BUT! they turn into garbage if saved copied out of a LC field and pasted into a MySQL column/field meanwhile all the Unicode (both html entities and UTF strings) are rendered correctly and preserved across all "transport agents" -- GET POST via an api.php then processed in stacks with LC JSON encoded array etc. but not any character in the range of 127-255... dunno why, but at least we know what to do... not use any ANSI! Unicode all the way... It's as simple as: command getContent pBookPart put the uBookFilesLocation of this stack into tPath put url ("file:" & tPath & "/ops/xhtml/" & pBookPart ) into tText # Fix ANSI chars first replace "?" with "—" in tText replace "?" with "’" in tText #unicode all the way! put uniDecode(uniEncode(tText,"UTF8")) into tText set the htmlText of fld "CurrentChapterText" to tText end getContent Now, the content in the field can be cut pasted and move to MySQL and the quote and mdashes all work... hurray... Swasti Astu, Be Well! Brahmanathaswami Kauai's Hindu Monastery www.HimalayanAcademy.com Mark Schonewille wrote: > Hi Brahmanathaswami, > > This works on LC 6.7.3: > > on mouseUp > put fld 1 into x > if the platform is not "MacOS" then > // not sure why this works > put isoToMac(x) into x > end if > put uniDecode(uniEncode(x,"UTF8")) into x > set the htmlText of fld 2 to x > end mouseUp > > -- > Best regards, > > Mark Schonewille > > Economy-x-Talk Consulting and Software Engineering > Homepage: http://economy-x-talk.com > Twitter: http://twitter.com/xtalkprogrammer > KvK: 50277553 > > Installer Maker for LiveCode: > http://qery.us/468 > > Buy my new book "Programming LiveCode for the Real Beginner" > http://qery.us/3fi > > LiveCode on Facebook: > https://www.facebook.com/groups/runrev/ > > On 7/26/2015 21:31, Brahmanathaswami wrote: >> We do a lot of work with the contents of ePubs. For those who don't know >> the spec: >> >> "someBook.epub" is just "someBook.zip" >> >> which when inflated has a mini-portable web site based on responsive CSS >> (all percentages). You get >> >> someBook >> /ops # "Open Package Structure" >> / fonts >> / images >> / styles >> / xhtml >> toc.ncx >> >> The xhtml folder then has all the these files: >> ch09_05_b.html >> ch09_05_c.html >> ch09_06.html >> >> etc. >> >> The text is pretty advanced in the sense that it uses unicode... (I >> think) for rendering diacritical fonts. mdash's etc. >> >> If I simply import the raw file unprocessed into a LC field (7.0.5)... I >> get the usual, expected text: >> >>

Is Monistic Theism Found in the > class="cmitalic">Vedas?

>>

ŚLOKA >> 145

>>

Again and again in >> the Vedas and from satgurus we hear ???Ahaṁ >> Brahmāsmi,??? ???I am God,??? and that God is both immanent and >> transcendent. Taken together, these are clear statements of monistic >> theism. Aum Namaḥ Śivāya.

>>

> class="smallcap">BHĀSHYA

>>

Monistic theism is the philosophy of the > class="cmitalic">Vedas. Scholars have long noted >> that the Hindu scriptures are alternately monistic, describing the >> oneness of the individual soul and God, and theistic, describing the >> reality of the Personal God. One cannot read the > class="cmitalic">Vedas, > class="cmitalic">Śaiva Āgamas and hymns >> of the saints without being overwhelmed with theism as well as monism. >> Monistic theism is the essential teaching of Hinduism, of Śaivism. >> It is the conclusion of Tirumular, Vasugupta, Gorakshanatha, Bhaskara, >> Srikantha, Basavanna, Vallabha, Ramakrishna, Yogaswami, Nityananda, >> Radhakrishnan and thousands of others. It encompasses both >> Siddhānta and Vedānta. It says, God is and is in all things. >> It propounds the hopeful, glorious, exultant concept that every soul >> will finally merge with Śiva in undifferentiated oneness, none >> left to suffer forever because of human transgression. The > class="cmitalic">Vedas wisely proclaim, ???Higher >> and other than the world-tree, time and forms is He from whom this >> expanse proceeds???the bringer of > class="cmitalic">dharma, the remover of evil, the >> lord of prosperity. Know Him as in one???s own Self, as the immortal >> abode of all.??? Aum Namaḥ Śivāya.

>> >> Goal is to create a tool for volunteers to go in and extract quotes to >> allow them to grab a few sentences, which we will them push to an online >> database. >> >> So: What is the best way to get this text rendered? Do I go the path of >> setting the field's Unicode? But then what about the html mark up? if we >> create a browser object... can users select text and does LC know that >> there is a selected chunk if it is inside a browser object? >> >> Before I start wading into this I though to see if anyone else has some >> good guidance in advance, >> >> >> Swasti Astu, Be Well! >> Brahmanathaswami >> >> Kauai's Hindu Monastery >> www.HimalayanAcademy.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 Thu Jul 30 04:44:58 2015 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Thu, 30 Jul 2015 10:44:58 +0200 Subject: Parsing and Extracting Text from ePub XHTML In-Reply-To: <55B9A2BD.1020503@hindu.org> References: <55B53581.2040802@hindu.org> <55B54714.7050102@economy-x-talk.com> <55B9A2BD.1020503@hindu.org> Message-ID: <55B9E40A.6070506@economy-x-talk.com> Yep, Unicode is the future :-) It is also a considerable part of the digital past already, just not so much LiveCode's. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ On 7/30/2015 06:06, Brahmanathaswami wrote: > dunno why, but at least we know what to do... not use any ANSI! Unicode > all the way... From sebastien.nouat at livecode.com Thu Jul 30 04:55:47 2015 From: sebastien.nouat at livecode.com (Sebastien Nouat) Date: Thu, 30 Jul 2015 09:55:47 +0100 Subject: recursionlimit mystery! In-Reply-To: References: <6818BE63-A66C-4686-B40A-C5465637D73D@comcast.net> <55A1196F.9050301@fourthworld.com> <55A55BB7.9030407@hyperactivesw.com> Message-ID: <55B9E693.7030108@livecode.com> Hi Bruce, Good news: if you have a look at the bug report, the last comment is a link to the GitHub pull request in which the bug is addressed. The milestone of the pull request is 7.1.0 RC 1, so in the next version of LiveCode 7.1 that will be released, the bug will be fixed :) Regards, S?bastien On 27/07/2015 01:43, Bruce Pokras wrote: > Update: this is bug report 15602. The response from the Livecode folks is that 7.0.x is using 16-bit numbers for the recursionlimit property, so Jacque hit the nail on the head. However, in 6.x.x they were using 32-bit numbers, so my setting a very high recursion limit actually did have an effect. They confirm that this is a bug. No promise on the timing of a fix, though. > >> On Jul 14, 2015, at 2:57 PM, J. Landman Gay wrote: >> >> On 7/13/2015 9:23 PM, Bruce Pokras wrote: >>> The first time I opened the stack in 7.0.6 that had been developed >>> under 6.0.2 I received an error message related to the ?openstack? >>> command in the stack script. It said that the value to which I had >>> set the recursionlimit property ?is not a number.? The value I used >>> was 20000000. Looks like a number to me! (I am on a Mac, so the >>> Windows issue does not effect me). I tried various numbers until I >>> finally narrowed it down. Attempting to set the recursionlimit >>> property to any number greater than 65535 gives me an error that that >>> value is not a number. Also, setting the recursionlimit to a low >>> number like 40 does not work as expected. After setting the >>> recursionlimit property to 40 I typed ?put the recursionlimit? into >>> the message box and hit ?return.? The number that it returned was in >>> the high 30-thousands! >> >> I'm not sure about the 30,000 issue, but 65535 is the upper limit for a 16-bit number. It may be that earlier versions of LC just didn't throw any errors if you exceeded that. >> >> >> "65535 occurs frequently in the field of computing because it is the highest number which can be represented by an unsigned 16-bit binary number. Some computer programming environments may have predefined constant values representing 65535, with names like MAX_UNSIGNED_SHORT." >> >> >> -- >> 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 -- S?bastien Nouat LiveCode Development Team From james at thehales.id.au Thu Jul 30 09:25:50 2015 From: james at thehales.id.au (James Hale) Date: Thu, 30 Jul 2015 23:25:50 +1000 Subject: Parsing and Extracting Text from ePub XHTML Message-ID: <06D2BD6C-15F8-4165-B46C-577FEC4BB9D4@thehales.id.au> Hi Brahmanathaswami, My code was begun back in LC 5.5 slowly making the transition through 6 and then 7. I think I still have a switch in there in case the stack is opened in LC 6 to ensure it does some of the fudging required. I have learnt in doing all this that standards (such as ePub 2) seem to be fairly loosely adhered to unless you are making the ePub yourself. There is also the issue that LC text fields are not fully HTML compliant, using only a subset of HTML and then even doing their own thing with it (see the discussion on the forum concerning LC's interpretation of header level tags. You may have noticed I reassign the header levels to ensure everything stays reasonable on a page.) But I want to be able to use other features available in LC's text fields so for now I am stuck with them rather than use a browser object to display. The other thing that is important to remember in order to use the Unicode magic of LC 7 is that all text transport in and out of LC needs to pass through the textdecode/textencode functions (rather than the uniencode/decode fudge of versions less than 7. This means when saving your text to a database or reading from one, you may have to use these functions. Peter Haworth did quite a bit of investigation in this are while working on his SQL app (yet to be released but eagerly awaited.) I can't remember if he shared this on the list or the forum. But if you write him he will be able to share his experience in dealing correctly with Unicode and its transfer in and out of DBs and LC. I haven't crossed the bridge of needing to copy paste in or out of LC in my app yet but don't see this as an issue as I expect at this stage to be not concerned with roman texts. However you might want to ask someone in the mothership what is actually being moved when not. BTW, if your ePub is well formed each xHTML making it up should include the UTF encoding info at the start of the file. As for seeing some of what your email contained, unfortunately I have trouble even when posts just contain roman script. I get the digest version of the list and read it usually on my iPad and many posts have lots of question marks around words which obviously have been incorrectly rendered. So no, you example contained ni you post didn't quite make it. The web page link certainly did which shows either my browser and my mail client render differently or something funny happens with the list's digest function. Probably the later. Thanks for sharing your work. I really appreciate it. James From livfoss at mac.com Thu Jul 30 09:51:23 2015 From: livfoss at mac.com (Graham Samuel) Date: Thu, 30 Jul 2015 15:51:23 +0200 Subject: Thousands Separators In-Reply-To: References: <0F53A3D0-04F7-485B-92E0-F317E8E455DB@gmail.com> <55B78AB1.8010105@fourthworld.com> Message-ID: <7B3FAB21-5750-4B42-852E-FB07963926C0@mac.com> Very interesting stuff indeed, IMHO. Some time ago I implemented what amounts to a simplified spreadsheet as part of an iOS app. There were cells containing numbers, arithmetic operations on the cells, and displays of the results. It very quickly emerged that every cell had to be stored in two forms: the actual number with the maximum available accuracy; and the display version seen by the user - I called the non-displayed cell the ?shadow? of the displayed one. It was obvious that any kind of repeated arithmetic on the display version would (and did) result in rounding errors etc which would then show up in the revised displays. In a sense I also adopted Kay?s solution, in that each cell had a property describing its display format (currency, integer, percentage etc). These properties were invoked for every cell involved in an arithmetic operation. Although this worked pretty well, in fact I abandoned the app after the potential user temporarily lost interest in it: I may well revive it later this year as I know our paths will cross again. But yet, how great if all this was built into LC. Graham > On 30 Jul 2015, at 02:55, Kay C Lan wrote: > > On Tue, Jul 28, 2015 at 9:59 PM, Richard Gaskin > wrote: > >> But stepping back to look at the big picture, I find myself wondering: >> >> Why is that even necessary? >> >> Why isn't that just a field property, e.g. "the displayFormat"? >> >> But stepping back further, why would you want it only restricted to a > field property? What about if I wanted numbers automatically displayed in > the correct format that came as part of text in an Answer Dialog, or the > default answer in an Ask Dialog, or even in the Title of one of these or > the dynamic label of a button, i.e. Option Menu? > > Maybe this is connected with the recent response Mark W gave to the HTML >
tag bug which has been reclassified as an 'enhancement' request where > he responded: > > The solution in both cases is not to change the current mappings, but >> instead to (at some point) make the mappings configurable at runtime. Of >> course, the rub here is that this causes a global interoperability problem >> which is not (at this time) clear how to resolve. i.e. In the IDE you could >> be editing two 'applications' at once both of which want different >> settings. (Note that keying this at the stack level isn't necessarily >> correct as stacks can be used as libraries in different contexts - there >> needs to be some notion of 'project scope' which would arbitrate what >> mappings were used when). >> > > As I said in my response; "in my naivety this sounds like some kind of LC > CSS is needed." > > Wouldn't it be nice, in one central location to nominate formats, not just > number, and be able to English like name them for use anywhere (hopefully > LC would come with a bunch of inbuilt ones). > > set the CSSformat $#,###.00 = "currency" > set the CSSformat #,### = "wholeThousands" > set the CSSformat (###) ####-#### = "AreaPhone" > (possibly grep based) > set the CSSformat \d{4}-\d{2}-\d{2} \d{2}:\d{2}\d{2} = "SQLDateTime" > set the CSSformat \d{2} \w{3} \d{2} = "dd mmm yyDate" > set the CSSformat \w+ at gmail.com = "gmailEmail" > > A stack could then be set to 'wholeThousands' > > use CSSformat "wholeThousands" for this stack > > and then every number, whether field, title or text in an Answer Dialog > would come up with a thousand separator. If a particular field needed a > different format, as you say you'd just set it's format property to: use > CSSFormat "currency" for fld "price" to override the default. > > It would also be nice to be able to tick a box for a field property that > automatically invoked data format checking or be able to specify it > elsewhere. > > --number format assumed to be "currency" because that is the stacks default > ask question "How much did you spend?" with tValue titled "Lunch > Expediture" AND formatCheck 1 > > --number format different to stack default > ask question "Which day was the purchase" with tDate useCSSformat "dd mmm > yyDate" titled "Lunch Expenditure" AND formatCheck 2 > > In the LC CSS you'd specify the response for a 1, 2, 3... etc formatCheck > failure. > > Sitting here dreaming of LC heaven :-) > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 30 11:10:45 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 30 Jul 2015 15:10:45 +0000 Subject: parameterized query with wildcard In-Reply-To: References: <1438099666097-4694419.post@n4.nabble.com> Message-ID: <0FA37D6B-D84F-4BDA-91E0-59A3F186DC08@iotecdigital.com> Yes it does. If you use the placeholder method (I am not really sure what to call it at this point) then sqlYoga sanitizes the strings for you. I've inserted records with any number of characters using this method without any problems reading in or out of the database. I'm not sure if a direct query like "address = '\\bobscomputer\scans'" is sanitized. For the sake of standardization I always use the placeholder method. Bob S > On Jul 28, 2015, at 09:17 , Andrew Kluthe wrote: > > Does revDataFromQuery do any sanitizing/proper to prevent me from sneaking > extra SQL into your search box like an injection style attack, or does it > just plop whatever you give in there no questions asked? Just curious. I > have always been spoiled by SQLYoga or rolled my DB interfaces up into API > servers of some kind. > > On Tue, Jul 28, 2015 at 11:09 AM Dave Kilroy > wrote: > >> Mike, assuming you are searching the db with parameter pSearchTerm, try >> something like this: >> >> >> put "%" & pSearchTerm & "%" into tSearchTerm >> put "SELECT * FROM foo WHERE bar LIKE :1" into tQuery >> get revDataFromQuery(tab, return, sDBID, tQuery, "tSearchTerm") >> >> >> >> >> >> >> ----- >> "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/parameterized-query-with-wildcard-tp4694407p4694419.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 jana.doughty at livecode.com Thu Jul 30 11:55:10 2015 From: jana.doughty at livecode.com (Jana Doughty) Date: Thu, 30 Jul 2015 17:55:10 +0200 Subject: How to Make a Business Plan Message-ID: <9695c0a98081725bd9126b38d1f092e2.squirrel@meg.on-rev.com> Hi LiveCode Community, If you're an app builder, you might want to know how to make your app into a full flourishing business. Lots of our community members have done this successfully and we'd like to see you succeed in this way, too. Our Business Developer, Iain Morrison, discusses how to make a business plan in his new blog post: https://livecode.com/how-to-make-a-business-plan/ Please give it a read and let us know what you think, what you find useful, and what you'd like to hear more about! Thanks! Jana Doughty From paul at researchware.com Thu Jul 30 12:21:06 2015 From: paul at researchware.com (Paul Dupuis) Date: Thu, 30 Jul 2015 12:21:06 -0400 Subject: setprop handlers for custom property sets Message-ID: <55BA4EF2.1060301@researchware.com> The LC 6.7.5 dictionary entry for setProp has the following: If the custom property you want to control is in a custom property set, use array notation in the first line of the setProp handler, as in the following example: setProp mySet[thisProperty] newValue if thisProperty is "that" then put newValue into me end setProp The above setProp handler responds to changes in the custom property named "that", which is a member of the custom property set named "mySet". First, this example throws a syntax error in the IDE script editor, I think because last line should be "end mySet" vs "end setProp". Second, it appears you can NOT have individual setProp handlers for custom properties in custom property sets. I.e. if mySet contain the customer properties "that" and "this" and "those", I can not have: setProp mySet["this"] tValue -- do something end mySet["this"] setProp mySet["that"] tValue -- do something else end mySet["that"] and so on. It appears you can only have a single setProp for the whole custom property set as in: setProp mySet[whichproperty] tValue switch whichproperty case "this" -- do something break case "that" -- do something else break ... end switch end mySet Is this true? Is there a way to have individual setprop handlers for specific properties in a custom property set? The lask of clean, easy to read, setProp handlers for properties in a custom property set would seem to reduce the value of custom property sets for organizing groups of properties. Perhaps it is better to just have all properties in the default property set? From pete at lcsql.com Thu Jul 30 14:41:34 2015 From: pete at lcsql.com (Peter Haworth) Date: Thu, 30 Jul 2015 18:41:34 +0000 Subject: parameterized query with wildcard In-Reply-To: <0FA37D6B-D84F-4BDA-91E0-59A3F186DC08@iotecdigital.com> References: <1438099666097-4694419.post@n4.nabble.com> <0FA37D6B-D84F-4BDA-91E0-59A3F186DC08@iotecdigital.com> Message-ID: If you use the placeholder method, there is no need to sanitize the strings, that's the point of using it. Although I guess it depends on what you mean by "sanitize". On Thu, Jul 30, 2015 at 8:11 AM Bob Sneidar wrote: > Yes it does. If you use the placeholder method (I am not really sure what > to call it at this point) then sqlYoga sanitizes the strings for you. I've > inserted records with any number of characters using this method without > any problems reading in or out of the database. > > I'm not sure if a direct query like "address = '\\bobscomputer\scans'" is > sanitized. For the sake of standardization I always use the placeholder > method. > > Bob S > > > > On Jul 28, 2015, at 09:17 , Andrew Kluthe wrote: > > > > Does revDataFromQuery do any sanitizing/proper to prevent me from > sneaking > > extra SQL into your search box like an injection style attack, or does it > > just plop whatever you give in there no questions asked? Just curious. I > > have always been spoiled by SQLYoga or rolled my DB interfaces up into > API > > servers of some kind. > > > > On Tue, Jul 28, 2015 at 11:09 AM Dave Kilroy < > dave at applicationinsight.com> > > wrote: > > > >> Mike, assuming you are searching the db with parameter pSearchTerm, try > >> something like this: > >> > >> > >> put "%" & pSearchTerm & "%" into tSearchTerm > >> put "SELECT * FROM foo WHERE bar LIKE :1" into tQuery > >> get revDataFromQuery(tab, return, sDBID, tQuery, "tSearchTerm") > >> > >> > >> > >> > >> > >> > >> ----- > >> "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/parameterized-query-with-wildcard-tp4694407p4694419.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 pete at lcsql.com Thu Jul 30 14:46:48 2015 From: pete at lcsql.com (Peter Haworth) Date: Thu, 30 Jul 2015 18:46:48 +0000 Subject: parameterized query with wildcard In-Reply-To: References: <4970F19F-5FB5-487E-873C-8967C75BBE7B@iotecdigital.com> <50F94540-E276-4176-8E05-BBD79BF3169A@gmail.com> <5C4D9063-C87A-4D04-B54C-6223DC996B2F@gmail.com> Message-ID: I feel I should point out that you are leaving yourself wide open to SQL injection attacks by not using the placeholder method of passing data to SQL statements. Not enough space to detail how that works here but just Google "SQL injection" on the web to see a sample of the really bad things that can happen. When you use placeholders, the SQL statement and the values in the placeholder variables are sent to the database separately which gives you full protection against SQL injection attacks. On Wed, Jul 29, 2015 at 10:02 AM PystCat wrote: > When I get that value from the user it is scrubbed and then put into the > SQL with the merge. > > > > > > On Jul 29, 2015, at 12:18 PM, Peter Haworth wrote: > > > > But why bother? You're already putting the value into a variable so all > > that's required is use :1 and append the variable name to the revxxx > call. > >> On Wed, Jul 29, 2015 at 8:29 AM PystCat wrote: > >> > >> Not a problem... Scrub the variable before the merge... It's what I do > as > >> well. I have a function that takes the input and scrubs it... I'm away > for > >> another week but if you're interested, when I get back I can post the > >> handler. > >> > >> > >> > >>>> On Jul 29, 2015, at 10:35 AM, Mike Kerner > >>> wrote: > >>> > >>> The reason for using parameterized queries instead of either merging or > >>> appending is because of SQL injection. > >>> > >>>> On Wed, Jul 29, 2015 at 10:18 AM, PystCat wrote: > >>>> > >>>> Why not just use merge...? > >>>> > >>>> Put "John" into tVal > >>>> Put merge("SELECT * FROM foo WHERE(bar LIKE %[[tVal]])") into pSQL > >>>> OR > >>>> put merge("SELECT * FROM foo WHERE(bar LIKE %[[tVal]]%)") into pSQL > >>>> > >>>> I do this for all of my queries and it works fine. > >>>> > >>>> Paul > >>>> > >>>> > >>>> > >>>> > >>>>>> On Jul 29, 2015, at 9:45 AM, Mike Kerner > > >>>>> wrote: > >>>>> > >>>>> If I was guessing, my hunch would be that including the single-quotes > >> is > >>>>> going to make the db look for strings containing %:1%, instead of > using > >>>> the > >>>>> wildcards and the parameter. > >>>>> > >>>>> On Wed, Jul 29, 2015 at 9:31 AM, Mike Kerner < > >> MikeKerner at roadrunner.com> > >>>>> wrote: > >>>>> > >>>>>> Nope. That doesn't work, Bob. That returns nothing. > >>>>>> > >>>>>> On Tue, Jul 28, 2015 at 7:23 PM, Bob Sneidar < > >>>> bobsneidar at iotecdigital.com> > >>>>>> wrote: > >>>>>> > >>>>>>> Should be LIKE ?:1? or for wild cards LIKE ?%:1%?. > >>>>>>> > >>>>>>> If you are searching for a value at the beginning, LIKE ?:1%? or at > >> the > >>>>>>> end, LIKE ?%:1? > >>>>>>> > >>>>>>> If searching for all, column LIKE ?%:1%? OR column LIKE ?:1%? OR > >> column > >>>>>>> LIKE ?%:1? > >>>>>>> > >>>>>>> HTH > >>>>>>> > >>>>>>> Bob S > >>>>>>> > >>>>>>> > >>>>>>>>> On Jul 28, 2015, at 08:16 , Mike Kerner < > MikeKerner at roadrunner.com > >>> > >>>>>>>> wrote: > >>>>>>>> > >>>>>>>> Has anybody built any queries that use both parameters and > >> wildcards, > >>>>>>> e.g. > >>>>>>>> in a LIKE statement? > >>>>>>>> > >>>>>>>> SELECT * FROM foo WHERE bar LIKE %:1% > >>>>>>>> > >>>>>>>> I've tried the above (error), I've tried '%':1'%' (error), and > I've > >>>>>>> tried > >>>>>>>> appending the % to the container I'm passing as my :1 (doesn't > >> work). > >>>>>>>> > >>>>>>>> I really don't want to do this the unsafe way. > >>>>>>>> -- > >>>>>>>> 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." > >>>>> > >>>>> > >>>>> > >>>>> -- > >>>>> 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 > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 30 14:57:05 2015 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Thu, 30 Jul 2015 14:57:05 -0400 Subject: parameterized query with wildcard In-Reply-To: References: <4970F19F-5FB5-487E-873C-8967C75BBE7B@iotecdigital.com> <50F94540-E276-4176-8E05-BBD79BF3169A@gmail.com> <5C4D9063-C87A-4D04-B54C-6223DC996B2F@gmail.com> Message-ID: <007a01d0caf9$87329150$9597b3f0$@net> Peter, If you using an SSL connection to the DB is there still "SQL injection" risks? 3...2...1... and Mark Wieder says "Use a web service" Then I will +1 it. I have almost completely moved to the https web service model for remote DB access. 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 Haworth Sent: Thursday, July 30, 2015 2:47 PM To: How to use LiveCode Subject: Re: parameterized query with wildcard I feel I should point out that you are leaving yourself wide open to SQL injection attacks by not using the placeholder method of passing data to SQL statements. Not enough space to detail how that works here but just Google "SQL injection" on the web to see a sample of the really bad things that can happen. When you use placeholders, the SQL statement and the values in the placeholder variables are sent to the database separately which gives you full protection against SQL injection attacks. On Wed, Jul 29, 2015 at 10:02 AM PystCat wrote: > When I get that value from the user it is scrubbed and then put into > the SQL with the merge. > > > > > > On Jul 29, 2015, at 12:18 PM, Peter Haworth wrote: > > > > But why bother? You're already putting the value into a variable so > > all that's required is use :1 and append the variable name to the > > revxxx > call. > >> On Wed, Jul 29, 2015 at 8:29 AM PystCat wrote: > >> > >> Not a problem... Scrub the variable before the merge... It's what I > >> do > as > >> well. I have a function that takes the input and scrubs it... I'm > >> away > for > >> another week but if you're interested, when I get back I can post > >> the handler. > >> > >> > >> > >>>> On Jul 29, 2015, at 10:35 AM, Mike Kerner > >>>> > >>> wrote: > >>> > >>> The reason for using parameterized queries instead of either > >>> merging or appending is because of SQL injection. > >>> > >>>> On Wed, Jul 29, 2015 at 10:18 AM, PystCat wrote: > >>>> > >>>> Why not just use merge...? > >>>> > >>>> Put "John" into tVal > >>>> Put merge("SELECT * FROM foo WHERE(bar LIKE %[[tVal]])") into > >>>> pSQL OR put merge("SELECT * FROM foo WHERE(bar LIKE %[[tVal]]%)") > >>>> into pSQL > >>>> > >>>> I do this for all of my queries and it works fine. > >>>> > >>>> Paul > >>>> > >>>> > >>>> > >>>> > >>>>>> On Jul 29, 2015, at 9:45 AM, Mike Kerner > >>>>>> > > >>>>> wrote: > >>>>> > >>>>> If I was guessing, my hunch would be that including the > >>>>> single-quotes > >> is > >>>>> going to make the db look for strings containing %:1%, instead > >>>>> of > using > >>>> the > >>>>> wildcards and the parameter. > >>>>> > >>>>> On Wed, Jul 29, 2015 at 9:31 AM, Mike Kerner < > >> MikeKerner at roadrunner.com> > >>>>> wrote: > >>>>> > >>>>>> Nope. That doesn't work, Bob. That returns nothing. > >>>>>> > >>>>>> On Tue, Jul 28, 2015 at 7:23 PM, Bob Sneidar < > >>>> bobsneidar at iotecdigital.com> > >>>>>> wrote: > >>>>>> > >>>>>>> Should be LIKE ?:1? or for wild cards LIKE ?%:1%?. > >>>>>>> > >>>>>>> If you are searching for a value at the beginning, LIKE ?:1%? > >>>>>>> or at > >> the > >>>>>>> end, LIKE ?%:1? > >>>>>>> > >>>>>>> If searching for all, column LIKE ?%:1%? OR column LIKE ?:1%? > >>>>>>> OR > >> column > >>>>>>> LIKE ?%:1? > >>>>>>> > >>>>>>> HTH > >>>>>>> > >>>>>>> Bob S > >>>>>>> > >>>>>>> > >>>>>>>>> On Jul 28, 2015, at 08:16 , Mike Kerner < > MikeKerner at roadrunner.com > >>> > >>>>>>>> wrote: > >>>>>>>> > >>>>>>>> Has anybody built any queries that use both parameters and > >> wildcards, > >>>>>>> e.g. > >>>>>>>> in a LIKE statement? > >>>>>>>> > >>>>>>>> SELECT * FROM foo WHERE bar LIKE %:1% > >>>>>>>> > >>>>>>>> I've tried the above (error), I've tried '%':1'%' (error), > >>>>>>>> and > I've > >>>>>>> tried > >>>>>>>> appending the % to the container I'm passing as my :1 > >>>>>>>> (doesn't > >> work). > >>>>>>>> > >>>>>>>> I really don't want to do this the unsafe way. > >>>>>>>> -- > >>>>>>>> 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." > >>>>> > >>>>> > >>>>> > >>>>> -- > >>>>> 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 > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at 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 Jul 30 15:08:07 2015 From: mark at livecode.com (Mark Waddingham) Date: Thu, 30 Jul 2015 20:08:07 +0100 Subject: parameterized query with wildcard In-Reply-To: <007a01d0caf9$87329150$9597b3f0$@net> References: <4970F19F-5FB5-487E-873C-8967C75BBE7B@iotecdigital.com> <50F94540-E276-4176-8E05-BBD79BF3169A@gmail.com> <5C4D9063-C87A-4D04-B54C-6223DC996B2F@gmail.com> <007a01d0caf9$87329150$9597b3f0$@net> Message-ID: Injection attacks are caused by a lack of validation of the inputs used to construct a query - they are independent of any transport mechanism. Even fronting db access with a web service will cause a vector for injection attacks if the web service is constructing query strings without validating or escaping inputs which are put directly into said strings. As previously mentioned on this thread, placeholders mitigate the problem because DBs treat them as parameters to a query, rather than building a query with their content concatenated into the query string. Mark. Sent from my iPhone > On 30 Jul 2015, at 19:57, Ralph DiMola wrote: > > Peter, > > If you using an SSL connection to the DB is there still "SQL injection" risks? > > 3...2...1... and Mark Wieder says "Use a web service" > > Then I will +1 it. I have almost completely moved to the https web service model for remote DB access. > > 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 Haworth > Sent: Thursday, July 30, 2015 2:47 PM > To: How to use LiveCode > Subject: Re: parameterized query with wildcard > > I feel I should point out that you are leaving yourself wide open to SQL injection attacks by not using the placeholder method of passing data to SQL statements. Not enough space to detail how that works here but just Google "SQL injection" on the web to see a sample of the really bad things that can happen. > > When you use placeholders, the SQL statement and the values in the placeholder variables are sent to the database separately which gives you full protection against SQL injection attacks. > >> On Wed, Jul 29, 2015 at 10:02 AM PystCat wrote: >> >> When I get that value from the user it is scrubbed and then put into >> the SQL with the merge. >> >> >> >> >>> On Jul 29, 2015, at 12:18 PM, Peter Haworth wrote: >>> >>> But why bother? You're already putting the value into a variable so >>> all that's required is use :1 and append the variable name to the >>> revxxx >> call. >>>> On Wed, Jul 29, 2015 at 8:29 AM PystCat wrote: >>>> >>>> Not a problem... Scrub the variable before the merge... It's what I >>>> do >> as >>>> well. I have a function that takes the input and scrubs it... I'm >>>> away >> for >>>> another week but if you're interested, when I get back I can post >>>> the handler. >>>> >>>> >>>> >>>>>> On Jul 29, 2015, at 10:35 AM, Mike Kerner >>>>>> >>>>> wrote: >>>>> >>>>> The reason for using parameterized queries instead of either >>>>> merging or appending is because of SQL injection. >>>>> >>>>>> On Wed, Jul 29, 2015 at 10:18 AM, PystCat wrote: >>>>>> >>>>>> Why not just use merge...? >>>>>> >>>>>> Put "John" into tVal >>>>>> Put merge("SELECT * FROM foo WHERE(bar LIKE %[[tVal]])") into >>>>>> pSQL OR put merge("SELECT * FROM foo WHERE(bar LIKE %[[tVal]]%)") >>>>>> into pSQL >>>>>> >>>>>> I do this for all of my queries and it works fine. >>>>>> >>>>>> Paul >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>>> On Jul 29, 2015, at 9:45 AM, Mike Kerner >>>>>>>> >> >>>>>>> wrote: >>>>>>> >>>>>>> If I was guessing, my hunch would be that including the >>>>>>> single-quotes >>>> is >>>>>>> going to make the db look for strings containing %:1%, instead >>>>>>> of >> using >>>>>> the >>>>>>> wildcards and the parameter. >>>>>>> >>>>>>> On Wed, Jul 29, 2015 at 9:31 AM, Mike Kerner < >>>> MikeKerner at roadrunner.com> >>>>>>> wrote: >>>>>>> >>>>>>>> Nope. That doesn't work, Bob. That returns nothing. >>>>>>>> >>>>>>>> On Tue, Jul 28, 2015 at 7:23 PM, Bob Sneidar < >>>>>> bobsneidar at iotecdigital.com> >>>>>>>> wrote: >>>>>>>> >>>>>>>>> Should be LIKE ?:1? or for wild cards LIKE ?%:1%?. >>>>>>>>> >>>>>>>>> If you are searching for a value at the beginning, LIKE ?:1%? >>>>>>>>> or at >>>> the >>>>>>>>> end, LIKE ?%:1? >>>>>>>>> >>>>>>>>> If searching for all, column LIKE ?%:1%? OR column LIKE ?:1%? >>>>>>>>> OR >>>> column >>>>>>>>> LIKE ?%:1? >>>>>>>>> >>>>>>>>> HTH >>>>>>>>> >>>>>>>>> Bob S >>>>>>>>> >>>>>>>>> >>>>>>>>>>> On Jul 28, 2015, at 08:16 , Mike Kerner < >> MikeKerner at roadrunner.com >>>>> >>>>>>>>>> wrote: >>>>>>>>>> >>>>>>>>>> Has anybody built any queries that use both parameters and >>>> wildcards, >>>>>>>>> e.g. >>>>>>>>>> in a LIKE statement? >>>>>>>>>> >>>>>>>>>> SELECT * FROM foo WHERE bar LIKE %:1% >>>>>>>>>> >>>>>>>>>> I've tried the above (error), I've tried '%':1'%' (error), >>>>>>>>>> and >> I've >>>>>>>>> tried >>>>>>>>>> appending the % to the container I'm passing as my :1 >>>>>>>>>> (doesn't >>>> work). >>>>>>>>>> >>>>>>>>>> I really don't want to do this the unsafe way. >>>>>>>>>> -- >>>>>>>>>> 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." >>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> 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 >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 30 15:12:40 2015 From: pete at lcsql.com (Peter Haworth) Date: Thu, 30 Jul 2015 19:12:40 +0000 Subject: parameterized query with wildcard In-Reply-To: <007a01d0caf9$87329150$9597b3f0$@net> References: <4970F19F-5FB5-487E-873C-8967C75BBE7B@iotecdigital.com> <50F94540-E276-4176-8E05-BBD79BF3169A@gmail.com> <5C4D9063-C87A-4D04-B54C-6223DC996B2F@gmail.com> <007a01d0caf9$87329150$9597b3f0$@net> Message-ID: Good questions Ralph, not sure I have definitive answers. I do know that even if your queries are executed by PHP scripts on your sever, there are ways for SQL injection attacks to occur, although it's much more complicated. There's a good Wikipedia article on this at https://en.wikipedia.org/wiki/SQL_injection. There are some really scary examples of attacks that have occurred using this method at the end of the article. There are a lot of bad people out there! For my own peace of mind, I automatically use placeholders these days so I don't have to concern myself whether I'm already protected against attacks or not Just saw Mark's reply while writing this which I think validates the use of placeholders. On Thu, Jul 30, 2015 at 11:56 AM Ralph DiMola wrote: > Peter, > > If you using an SSL connection to the DB is there still "SQL injection" > risks? > > 3...2...1... and Mark Wieder says "Use a web service" > > Then I will +1 it. I have almost completely moved to the https web service > model for remote DB access. > > 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 Haworth > Sent: Thursday, July 30, 2015 2:47 PM > To: How to use LiveCode > Subject: Re: parameterized query with wildcard > > I feel I should point out that you are leaving yourself wide open to SQL > injection attacks by not using the placeholder method of passing data to > SQL statements. Not enough space to detail how that works here but just > Google "SQL injection" on the web to see a sample of the really bad things > that can happen. > > When you use placeholders, the SQL statement and the values in the > placeholder variables are sent to the database separately which gives you > full protection against SQL injection attacks. > > On Wed, Jul 29, 2015 at 10:02 AM PystCat wrote: > > > When I get that value from the user it is scrubbed and then put into > > the SQL with the merge. > > > > > > > > > > > On Jul 29, 2015, at 12:18 PM, Peter Haworth wrote: > > > > > > But why bother? You're already putting the value into a variable so > > > all that's required is use :1 and append the variable name to the > > > revxxx > > call. > > >> On Wed, Jul 29, 2015 at 8:29 AM PystCat wrote: > > >> > > >> Not a problem... Scrub the variable before the merge... It's what I > > >> do > > as > > >> well. I have a function that takes the input and scrubs it... I'm > > >> away > > for > > >> another week but if you're interested, when I get back I can post > > >> the handler. > > >> > > >> > > >> > > >>>> On Jul 29, 2015, at 10:35 AM, Mike Kerner > > >>>> > > >>> wrote: > > >>> > > >>> The reason for using parameterized queries instead of either > > >>> merging or appending is because of SQL injection. > > >>> > > >>>> On Wed, Jul 29, 2015 at 10:18 AM, PystCat > wrote: > > >>>> > > >>>> Why not just use merge...? > > >>>> > > >>>> Put "John" into tVal > > >>>> Put merge("SELECT * FROM foo WHERE(bar LIKE %[[tVal]])") into > > >>>> pSQL OR put merge("SELECT * FROM foo WHERE(bar LIKE %[[tVal]]%)") > > >>>> into pSQL > > >>>> > > >>>> I do this for all of my queries and it works fine. > > >>>> > > >>>> Paul > > >>>> > > >>>> > > >>>> > > >>>> > > >>>>>> On Jul 29, 2015, at 9:45 AM, Mike Kerner > > >>>>>> > > > > >>>>> wrote: > > >>>>> > > >>>>> If I was guessing, my hunch would be that including the > > >>>>> single-quotes > > >> is > > >>>>> going to make the db look for strings containing %:1%, instead > > >>>>> of > > using > > >>>> the > > >>>>> wildcards and the parameter. > > >>>>> > > >>>>> On Wed, Jul 29, 2015 at 9:31 AM, Mike Kerner < > > >> MikeKerner at roadrunner.com> > > >>>>> wrote: > > >>>>> > > >>>>>> Nope. That doesn't work, Bob. That returns nothing. > > >>>>>> > > >>>>>> On Tue, Jul 28, 2015 at 7:23 PM, Bob Sneidar < > > >>>> bobsneidar at iotecdigital.com> > > >>>>>> wrote: > > >>>>>> > > >>>>>>> Should be LIKE ?:1? or for wild cards LIKE ?%:1%?. > > >>>>>>> > > >>>>>>> If you are searching for a value at the beginning, LIKE ?:1%? > > >>>>>>> or at > > >> the > > >>>>>>> end, LIKE ?%:1? > > >>>>>>> > > >>>>>>> If searching for all, column LIKE ?%:1%? OR column LIKE ?:1%? > > >>>>>>> OR > > >> column > > >>>>>>> LIKE ?%:1? > > >>>>>>> > > >>>>>>> HTH > > >>>>>>> > > >>>>>>> Bob S > > >>>>>>> > > >>>>>>> > > >>>>>>>>> On Jul 28, 2015, at 08:16 , Mike Kerner < > > MikeKerner at roadrunner.com > > >>> > > >>>>>>>> wrote: > > >>>>>>>> > > >>>>>>>> Has anybody built any queries that use both parameters and > > >> wildcards, > > >>>>>>> e.g. > > >>>>>>>> in a LIKE statement? > > >>>>>>>> > > >>>>>>>> SELECT * FROM foo WHERE bar LIKE %:1% > > >>>>>>>> > > >>>>>>>> I've tried the above (error), I've tried '%':1'%' (error), > > >>>>>>>> and > > I've > > >>>>>>> tried > > >>>>>>>> appending the % to the container I'm passing as my :1 > > >>>>>>>> (doesn't > > >> work). > > >>>>>>>> > > >>>>>>>> I really don't want to do this the unsafe way. > > >>>>>>>> -- > > >>>>>>>> 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." > > >>>>> > > >>>>> > > >>>>> > > >>>>> -- > > >>>>> 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 > > >> > > >> _______________________________________________ > > >> use-livecode mailing list > > >> use-livecode at lists.runrev.com > > >> Please visit this url to subscribe, unsubscribe and manage your > > >> subscription preferences: > > >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > > > use-livecode mailing list > > > use-livecode at lists.runrev.com > > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 30 16:20:34 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Thu, 30 Jul 2015 13:20:34 -0700 Subject: Making icons Message-ID: Quite some time ago, I converted a png to a .icons file on OS X. And I have absolutely no memory of what I did to use it. I've edited the icons, and need to do it again. Could anyone spare a hint? -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From mwieder at ahsoftware.net Thu Jul 30 16:34:45 2015 From: mwieder at ahsoftware.net (Mark Wieder) Date: Thu, 30 Jul 2015 20:34:45 +0000 (UTC) Subject: setprop handlers for custom property sets References: <55BA4EF2.1060301@researchware.com> Message-ID: Paul Dupuis writes: > > The LC 6.7.5 dictionary entry for setProp has the following: > > If the custom property you want to control is in a custom property set, > use array notation in the first line of the setProp handler, as in the > following example: Interesting. I do see that in the documentation, but I've never used that. The way I've always dealt with custom property sets is to switch context: set the customPropertySet of to set the of to get the of set the customPropertySet of to empty I think this makes for a cleaner, easier-to-read format anyway. -- Mark Wieder ahsoftware at gmail.com From pete at lcsql.com Thu Jul 30 16:37:45 2015 From: pete at lcsql.com (Peter Haworth) Date: Thu, 30 Jul 2015 20:37:45 +0000 Subject: Making icons In-Reply-To: References: Message-ID: I'm sure there are other places but there's a free online convertor at https://iconverticons.com/online/ On Thu, Jul 30, 2015 at 1:20 PM Dr. Hawkins wrote: > Quite some time ago, I converted a png to a .icons file on OS X. > > And I have absolutely no memory of what I did to use it. > > I've edited the icons, and need to do it again. > > Could anyone spare a hint? > > -- > Dr. Richard E. Hawkins, Esq. > (702) 508-8462 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From paul at researchware.com Thu Jul 30 17:11:50 2015 From: paul at researchware.com (Paul Dupuis) Date: Thu, 30 Jul 2015 17:11:50 -0400 Subject: setprop handlers for custom property sets In-Reply-To: References: <55BA4EF2.1060301@researchware.com> Message-ID: <55BA9316.7060007@researchware.com> On 7/30/2015 4:34 PM, Mark Wieder wrote: > Paul Dupuis writes: > >> The LC 6.7.5 dictionary entry for setProp has the following: >> >> If the custom property you want to control is in a custom property set, >> use array notation in the first line of the setProp handler, as in the >> following example: > Interesting. I do see that in the documentation, but I've never used that. > The way I've always dealt with custom property sets is to switch context: > > set the customPropertySet of to > set the of to > get the of > set the customPropertySet of to empty > > I think this makes for a cleaner, easier-to-read format anyway. I agree, but that still doesn't answer if you can use setProp and getProp handlers with individual custom properties in custom property sets. From mwieder at ahsoftware.net Thu Jul 30 17:31:55 2015 From: mwieder at ahsoftware.net (Mark Wieder) Date: Thu, 30 Jul 2015 21:31:55 +0000 (UTC) Subject: setprop handlers for custom property sets References: <55BA4EF2.1060301@researchware.com> <55BA9316.7060007@researchware.com> Message-ID: Paul Dupuis writes: > > On 7/30/2015 4:34 PM, Mark Wieder wrote: > > Paul Dupuis ...> writes: > > > >> The LC 6.7.5 dictionary entry for setProp has the following: > >> > >> If the custom property you want to control is in a custom property set, > >> use array notation in the first line of the setProp handler, as in the > >> following example: > > Interesting. I do see that in the documentation, but I've never used that. > > The way I've always dealt with custom property sets is to switch context: > > > > set the customPropertySet of to > > set the of to > > get the of > > set the customPropertySet of to empty > > > > I think this makes for a cleaner, easier-to-read format anyway. > > I agree, but that still doesn't answer if you can use setProp and > getProp handlers with individual custom properties in custom property sets. Well, it eliminates the need for the array syntax, which is what I thought you were asking about. Within the customPropertySet you just have: setProp property1 pValue set the property1 of me to pValue end property1 setProp property2 pValue set the property2 of me to pValue end property2 -- Mark Wieder ahsoftware at gmail.com From paul at researchware.com Thu Jul 30 18:21:46 2015 From: paul at researchware.com (Paul Dupuis) Date: Thu, 30 Jul 2015 18:21:46 -0400 Subject: setprop handlers for custom property sets In-Reply-To: References: <55BA4EF2.1060301@researchware.com> <55BA9316.7060007@researchware.com> Message-ID: <55BAA37A.5040201@researchware.com> On 7/30/2015 5:31 PM, Mark Wieder wrote: > Within the customPropertySet you just have: > > setProp property1 pValue > set the property1 of me to pValue > end property1 > > setProp property2 pValue > set the property2 of me to pValue > end property2 Thanks Mark. I am interested in avoiding the array notation with my setProp and getProp. I just was having trouble figuring out exactly what the coding should be. I now understand that if I have a custom property set for a stack called "mySet" and property in mySet called "myNumber" So if I want a setProp handler to calculate myNumber as the parameter div 100 - for example to convert a percent to a decimal number - in a stack script: setProp myNumber pValue set the myNumber of me to pValue / 100 end myNumber if I then execute in a button script on mouseUp set the customPropertySet of this stack to "mySet" set the myNumber of me to 90 set the customPropertySet of this stack to empty end mouseUp it does correctly execute the setProp handler. Much to my surprise. This implies that you can NOT have two custom property sets that have the same property name IF you want to use setprop or getProp handlers with them. Thanks. From pete at lcsql.com Thu Jul 30 18:29:31 2015 From: pete at lcsql.com (Peter Haworth) Date: Thu, 30 Jul 2015 22:29:31 +0000 Subject: setprop handlers for custom property sets In-Reply-To: <55BAA37A.5040201@researchware.com> References: <55BA4EF2.1060301@researchware.com> <55BA9316.7060007@researchware.com> <55BAA37A.5040201@researchware.com> Message-ID: I wonder if the mouseUp script is - set the mySet["myNumber"] of me to 90 - whether the setProp handler for myNumber still is executed. On Thu, Jul 30, 2015 at 3:22 PM Paul Dupuis wrote: > On 7/30/2015 5:31 PM, Mark Wieder wrote: > > Within the customPropertySet you just have: > > > > setProp property1 pValue > > set the property1 of me to pValue > > end property1 > > > > setProp property2 pValue > > set the property2 of me to pValue > > end property2 > > Thanks Mark. I am interested in avoiding the array notation with my > setProp and getProp. > > I just was having trouble figuring out exactly what the coding should > be. I now understand that if I have a custom property set for a stack > called "mySet" and property in mySet called "myNumber" > > So if I want a setProp handler to calculate myNumber as the parameter > div 100 - for example to convert a percent to a decimal number - in a > stack script: > > setProp myNumber pValue > set the myNumber of me to pValue / 100 > end myNumber > > if I then execute in a button script > > on mouseUp > set the customPropertySet of this stack to "mySet" > set the myNumber of me to 90 > set the customPropertySet of this stack to empty > end mouseUp > > it does correctly execute the setProp handler. Much to my surprise. This > implies that you can NOT have two custom property sets that have the > same property name IF you want to use setprop or getProp handlers with > them. > > Thanks. > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 30 18:44:09 2015 From: mwieder at ahsoftware.net (Mark Wieder) Date: Thu, 30 Jul 2015 22:44:09 +0000 (UTC) Subject: setprop handlers for custom property sets References: <55BA4EF2.1060301@researchware.com> <55BA9316.7060007@researchware.com> <55BAA37A.5040201@researchware.com> Message-ID: Paul Dupuis writes: > it does correctly execute the setProp handler. Much to my surprise. This > implies that you can NOT have two custom property sets that have the > same property name IF you want to use setprop or getProp handlers with them. No, that's the point of the custom property sets. They act like vocabulary switchers. So you can have setProp myUniqueName pValue add 1 to pValue set the myUniqueName of me to pValue end myUniqueName in one custom property set and setProp myUniqueName pValue set the myUniqueName of me to "$" & (pValue / 100) end myUniqueName in another custom property set and then use whichever is appropriate at the time. It's a very powerful tool once you get the hang of it. -- Mark Wieder ahsoftware at gmail.com From scott at tactilemedia.com Thu Jul 30 19:00:38 2015 From: scott at tactilemedia.com (Scott Rossi) Date: Thu, 30 Jul 2015 16:00:38 -0700 Subject: setprop handlers for custom property sets In-Reply-To: References: <55BA4EF2.1060301@researchware.com> <55BA9316.7060007@researchware.com> <55BAA37A.5040201@researchware.com> Message-ID: Maybe I'm missing something, but I originally thought the following would cause a recursion error, because the property being set appears within a setProp handler of the same name. Trying this in LC 7.0.5 works, but I still see a warning in the docs about recursion. So does the following work only in LC 7 and later? Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 7/30/15, 3:44 PM, "Mark Wieder" wrote: >setProp myUniqueName pValue > add 1 to pValue > set the myUniqueName of me to pValue >end myUniqueName From paul at researchware.com Thu Jul 30 19:02:00 2015 From: paul at researchware.com (Paul Dupuis) Date: Thu, 30 Jul 2015 19:02:00 -0400 Subject: setprop handlers for custom property sets In-Reply-To: References: <55BA4EF2.1060301@researchware.com> <55BA9316.7060007@researchware.com> <55BAA37A.5040201@researchware.com> Message-ID: <55BAACE8.2080308@researchware.com> On 7/30/2015 6:44 PM, Mark Wieder wrote: > Paul Dupuis writes: > >> it does correctly execute the setProp handler. Much to my surprise. This >> implies that you can NOT have two custom property sets that have the >> same property name IF you want to use setprop or getProp handlers with them. > No, that's the point of the custom property sets. > They act like vocabulary switchers. > So you can have > > setProp myUniqueName pValue > add 1 to pValue > set the myUniqueName of me to pValue > end myUniqueName > > in one custom property set and > > setProp myUniqueName pValue > set the myUniqueName of me to "$" & (pValue / 100) > end myUniqueName > > in another custom property set > and then use whichever is appropriate at the time. > It's a very powerful tool once you get the hang of it. > Am I missing something else Mark? How do you put a setProp handler in a customPropertySet? The handlers have to be in scripts. Do you use behaviors to switch between setprop handlers? From paul at researchware.com Thu Jul 30 19:10:06 2015 From: paul at researchware.com (Paul Dupuis) Date: Thu, 30 Jul 2015 19:10:06 -0400 Subject: setprop handlers for custom property sets In-Reply-To: References: <55BA4EF2.1060301@researchware.com> <55BA9316.7060007@researchware.com> <55BAA37A.5040201@researchware.com> Message-ID: <55BAAECE.2030104@researchware.com> On 7/30/2015 7:00 PM, Scott Rossi wrote: > Maybe I'm missing something, but I originally thought the following would > cause a recursion error, because the property being set appears within a > setProp handler of the same name. Trying this in LC 7.0.5 works, but I > still see a warning in the docs about recursion. So does the following > work only in LC 7 and later? > Scott, The recursion issue is of you have a pair (or more) or setProp handlers that call back to one another: ie. setprop propA pValue set the propA of me to pValue set the propB of me to pValue / 2 end propA setProp propB pValue set the propB of me to pValue set the propA of me to pValue * 2 end propB The 1st line of each is okay - setting the actual custom property value in it's own handler will not cause recursion However, the 2nd line will result in run-away recursion. From sundown at pacifier.com Thu Jul 30 19:14:26 2015 From: sundown at pacifier.com (JB) Date: Thu, 30 Jul 2015 16:14:26 -0700 Subject: Making icons In-Reply-To: References: Message-ID: <635607A6-FC6D-42EA-830D-9E7CB4428DC4@pacifier.com> If you are using a Mac go to the Mac App store and do a search for icon. You will find quite a few apps for making icons. Some of them make cost a few dollars but the time saved and options may be worth it. They will provide you with the ability to make and icon for desktop or mobile apps and do do things like making rounded corners. They will also make a whole set of icons which is what you will need to publish your app; John Balgenorth On Jul 30, 2015, at 1:20 PM, Dr. Hawkins wrote: > Quite some time ago, I converted a png to a .icons file on OS X. > > And I have absolutely no memory of what I did to use it. > > I've edited the icons, and need to do it again. > > Could anyone spare a hint? > > -- > 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 mwieder at ahsoftware.net Thu Jul 30 19:17:30 2015 From: mwieder at ahsoftware.net (Mark Wieder) Date: Thu, 30 Jul 2015 23:17:30 +0000 (UTC) Subject: setprop handlers for custom property sets References: <55BA4EF2.1060301@researchware.com> <55BA9316.7060007@researchware.com> <55BAA37A.5040201@researchware.com> <55BAACE8.2080308@researchware.com> Message-ID: Paul Dupuis writes: > Am I missing something else Mark? How do you put a setProp handler in a > customPropertySet? The handlers have to be in scripts. Do you use > behaviors to switch between setprop handlers? Nope - I'm getting distracted by too many things at once. You're correct - you can't have the same setprop/getprop handlers in multiple custom property sets. You *can* have the same properties in multiple sets, though. -- Mark Wieder ahsoftware at gmail.com From mwieder at ahsoftware.net Thu Jul 30 19:20:15 2015 From: mwieder at ahsoftware.net (Mark Wieder) Date: Thu, 30 Jul 2015 23:20:15 +0000 (UTC) Subject: setprop handlers for custom property sets References: <55BA4EF2.1060301@researchware.com> <55BA9316.7060007@researchware.com> <55BAA37A.5040201@researchware.com> <55BAAECE.2030104@researchware.com> Message-ID: Paul Dupuis writes: > The recursion issue is of you have a pair (or more) or setProp handlers > that call back to one another: ie. Right. There's a special-case trap for that. From the docs: If you use the set command within a setProp control structure to set the same custom property for the current object, no setProp trigger is sent to the object. (This is to avoid runaway recursion, where the setProp handler triggers itself.) -- Mark Wieder ahsoftware at gmail.com From dochawk at gmail.com Thu Jul 30 19:37:45 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Thu, 30 Jul 2015 16:37:45 -0700 Subject: Making icons In-Reply-To: References: Message-ID: On Thu, Jul 30, 2015 at 1:37 PM, Peter Haworth wrote: > I'm sure there are other places but there's a free online convertor at > https://iconverticons.com/online/ > This was perfect! My application no longer has a square icon. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From jacque at hyperactivesw.com Thu Jul 30 20:13:15 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 30 Jul 2015 19:13:15 -0500 Subject: Making icons In-Reply-To: <635607A6-FC6D-42EA-830D-9E7CB4428DC4@pacifier.com> References: <635607A6-FC6D-42EA-830D-9E7CB4428DC4@pacifier.com> Message-ID: <12450588-8134-4FA1-84FE-06AE183CD37B@hyperactivesw.com> Graphic Converter does it too. On July 30, 2015 6:14:26 PM CDT, JB wrote: >If you are using a Mac go to the Mac App >store and do a search for icon. You will >find quite a few apps for making icons. > >Some of them make cost a few dollars but >the time saved and options may be worth >it. > >They will provide you with the ability to make >and icon for desktop or mobile apps and do >do things like making rounded corners. They >will also make a whole set of icons which is >what you will need to publish your app; > >John Balgenorth > > >On Jul 30, 2015, at 1:20 PM, Dr. Hawkins wrote: > >> Quite some time ago, I converted a png to a .icons file on OS X. >> >> And I have absolutely no memory of what I did to use it. >> >> I've edited the icons, and need to do it again. >> >> Could anyone spare a hint? >> >> -- >> Dr. Richard E. Hawkins, Esq. >> (702) 508-8462 >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > >_______________________________________________ >use-livecode mailing list >use-livecode at lists.runrev.com >Please visit this url to subscribe, unsubscribe and manage your >subscription preferences: >http://lists.runrev.com/mailman/listinfo/use-livecode -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From sundown at pacifier.com Thu Jul 30 20:48:18 2015 From: sundown at pacifier.com (JB) Date: Thu, 30 Jul 2015 17:48:18 -0700 Subject: Making icons In-Reply-To: <12450588-8134-4FA1-84FE-06AE183CD37B@hyperactivesw.com> References: <635607A6-FC6D-42EA-830D-9E7CB4428DC4@pacifier.com> <12450588-8134-4FA1-84FE-06AE183CD37B@hyperactivesw.com> Message-ID: <098C54CC-7833-403E-BF51-5E0D3AA3E2B3@pacifier.com> Thanks Jaque, I forgot about that program. I have been using it for years. I think it came out around system 7 or maybe a ltlle earlier and is a excellent investment. John Balgenorth On Jul 30, 2015, at 5:13 PM, J. Landman Gay wrote: > Graphic Converter does it too. > > On July 30, 2015 6:14:26 PM CDT, JB wrote: >> If you are using a Mac go to the Mac App >> store and do a search for icon. You will >> find quite a few apps for making icons. >> >> Some of them make cost a few dollars but >> the time saved and options may be worth >> it. >> >> They will provide you with the ability to make >> and icon for desktop or mobile apps and do >> do things like making rounded corners. They >> will also make a whole set of icons which is >> what you will need to publish your app; >> >> John Balgenorth >> >> >> On Jul 30, 2015, at 1:20 PM, Dr. Hawkins wrote: >> >>> Quite some time ago, I converted a png to a .icons file on OS X. >>> >>> And I have absolutely no memory of what I did to use it. >>> >>> I've edited the icons, and need to do it again. >>> >>> Could anyone spare a hint? >>> >>> -- >>> Dr. Richard E. Hawkins, Esq. >>> (702) 508-8462 >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From scott at tactilemedia.com Thu Jul 30 20:56:36 2015 From: scott at tactilemedia.com (Scott Rossi) Date: Thu, 30 Jul 2015 17:56:36 -0700 Subject: Making icons In-Reply-To: <098C54CC-7833-403E-BF51-5E0D3AA3E2B3@pacifier.com> References: <635607A6-FC6D-42EA-830D-9E7CB4428DC4@pacifier.com> <12450588-8134-4FA1-84FE-06AE183CD37B@hyperactivesw.com> <098C54CC-7833-403E-BF51-5E0D3AA3E2B3@pacifier.com> Message-ID: If your system is OS X: Icon Slate https://itunes.apple.com/us/app/icon-slate/id439697913?mt=12 Only $5, highly recommended. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design From scott at tactilemedia.com Thu Jul 30 23:08:08 2015 From: scott at tactilemedia.com (Scott Rossi) Date: Thu, 30 Jul 2015 20:08:08 -0700 Subject: Import Snapshot of Stack? Message-ID: Anyone know if this is possible without referencing a windowID? This fails with a script error: import snapshot from stack "xyz" This defaults to selecting a region to capture and then fails: import snapshot of stack "xyz" This works, but clips the snapshot if any portion of the stack appears outside the screenRect: import snapshot from window windowID I'd prefer to avoid capturing the current card of a stack, but may fall back to that. Any other options? Thanks & Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design From sundown at pacifier.com Fri Jul 31 00:24:55 2015 From: sundown at pacifier.com (JB) Date: Thu, 30 Jul 2015 21:24:55 -0700 Subject: Making icons In-Reply-To: References: <635607A6-FC6D-42EA-830D-9E7CB4428DC4@pacifier.com> <12450588-8134-4FA1-84FE-06AE183CD37B@hyperactivesw.com> <098C54CC-7833-403E-BF51-5E0D3AA3E2B3@pacifier.com> Message-ID: <39E43694-4133-4FF9-B4CB-2A7AAC38F49F@pacifier.com> Thanks Scott. I bought it and it works nice. John Balgenorth On Jul 30, 2015, at 5:56 PM, Scott Rossi wrote: > If your system is OS X: > > Icon Slate > https://itunes.apple.com/us/app/icon-slate/id439697913?mt=12 > > Only $5, highly recommended. > > > Regards, > > Scott Rossi > Creative Director > Tactile Media, UX/UI Design > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pmbrig at gmail.com Fri Jul 31 08:38:42 2015 From: pmbrig at gmail.com (Peter M. Brigham) Date: Fri, 31 Jul 2015 08:38:42 -0400 Subject: setprop handlers for custom property sets In-Reply-To: References: <55BA4EF2.1060301@researchware.com> Message-ID: <96E22562-D82C-425A-9396-3E9C941E0B99@gmail.com> On Jul 30, 2015, at 4:34 PM, Mark Wieder wrote: > Paul Dupuis writes: > >> >> The LC 6.7.5 dictionary entry for setProp has the following: >> >> If the custom property you want to control is in a custom property set, >> use array notation in the first line of the setProp handler, as in the >> following example: > > Interesting. I do see that in the documentation, but I've never used that. > The way I've always dealt with custom property sets is to switch context: > > set the customPropertySet of to > set the of to > get the of > set the customPropertySet of to empty > > I think this makes for a cleaner, easier-to-read format anyway. I use these, an easy and modular approach: on setCustomProp pObjRef, pPropSet, pProp, pValue -- modeled after deleteCustomProp -- not sure where this comes from put the custompropertyset of pObjRef into oldPropSet set the custompropertyset of pObjRef to pPropSet set the pProp of pObjRef to pValue set the custompropertyset of pObjRef to oldPropSet end setCustomProp function getCustomProp pObjRef, pProp, pPropSet -- modeled after deleteCustomProp -- not sure where this comes from -- if pPropSet = empty then uses the default custompropertyset put the custompropertyset of pObjRef into oldPropSet set the custompropertyset of pObjRef to pPropSet put the pProp of pObjRef into tValue set the custompropertyset of pObjRef to oldPropSet return tValue end getCustomProp on deleteCustomProp pObjRef, pProp, pPropSet -- not sure where this comes from, it's not mine -- thanks to ! put the custompropertyset of pObjRef into oldPropSet set the custompropertyset of pObjRef to pPropSet put the customkeys of pObjRef into keysList set the wholematches to true put lineoffset(pProp,keysList) into propLine if propLine <> 0 then delete line propLine of keysList set the customkeys of pObjRef to keysList end if set the custompropertyset of pObjRef to oldPropSet end deleteCustomProp -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig From livfoss at mac.com Fri Jul 31 08:41:44 2015 From: livfoss at mac.com (Graham Samuel) Date: Fri, 31 Jul 2015 14:41:44 +0200 Subject: OT-ish: Dreamhost and LiveCode? Message-ID: <62BBB115-C4DB-470E-A885-F0E096DF4869@mac.com> Way back in May there was a discussion of hosting companies that were reliable and LiveCode friendly. Dreamhost was picked out as a good?un, but at the time there seemed to be some doubt about the speed of LiveCode Server on the platform. Can anyone say what the status is now? I?m looking for a US-based LiveCode-friendly hosting organisation for a modest commercial web presence (by ?commercial?, I mean it will sell downloads). TIA for any current info. Graham From alex at tweedly.org Fri Jul 31 10:03:37 2015 From: alex at tweedly.org (Alex Tweedly) Date: Fri, 31 Jul 2015 15:03:37 +0100 Subject: OT-ish: Dreamhost and LiveCode? In-Reply-To: <62BBB115-C4DB-470E-A885-F0E096DF4869@mac.com> References: <62BBB115-C4DB-470E-A885-F0E096DF4869@mac.com> Message-ID: <55BB8039.6010504@tweedly.org> I've been happy with hostm.com - Livecode pre-installed and servers in Americas, Europe and Pacific Rim. -- Alex. On 31/07/2015 13:41, Graham Samuel wrote: > Way back in May there was a discussion of hosting companies that were reliable and LiveCode friendly. Dreamhost was picked out as a good?un, but at the time there seemed to be some doubt about the speed of LiveCode Server on the platform. > > Can anyone say what the status is now? I?m looking for a US-based LiveCode-friendly hosting organisation for a modest commercial web presence (by ?commercial?, I mean it will sell downloads). > > TIA for any current info. > > Graham > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Fri Jul 31 11:29:24 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 31 Jul 2015 08:29:24 -0700 Subject: Import Snapshot of Stack? In-Reply-To: References: Message-ID: <55BB9454.7070500@fourthworld.com> Scott Rossi wrote: > Anyone know if this is possible without referencing a windowID? > > This fails with a script error: > import snapshot from stack "xyz" > > > This defaults to selecting a region to capture and then fails: > import snapshot of stack "xyz" > > > This works, but clips the snapshot if any portion of the stack appears > outside the screenRect: > import snapshot from window windowID > > I'd prefer to avoid capturing the current card of a stack, but may > fall back to that. Go with card if you can't guarantee placement of the window. The "from" option renders the object into a new buffer set up just for the snapshot, while the older "of" syntax grabs the object's rect from the composite screen buffer. LiveCode renders only the content region of a window but the window itself is rendered by the OS, so it has no choice but to obtain that image from the screen buffer. -- 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 jbv at souslelogo.com Fri Jul 31 11:48:58 2015 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Fri, 31 Jul 2015 18:48:58 +0300 Subject: OT-ish: Dreamhost and LiveCode? In-Reply-To: <55BB8039.6010504@tweedly.org> References: <62BBB115-C4DB-470E-A885-F0E096DF4869@mac.com> <55BB8039.6010504@tweedly.org> Message-ID: > I've been happy with hostm.com - Livecode pre-installed and servers in > Americas, Europe and Pacific Rim. > > -- Alex. > Alex, Just curious : is it possible to chose a server on a specific continent ? Thanks jbv From ambassador at fourthworld.com Fri Jul 31 14:08:53 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 31 Jul 2015 11:08:53 -0700 Subject: OT-ish: Dreamhost and LiveCode? In-Reply-To: <62BBB115-C4DB-470E-A885-F0E096DF4869@mac.com> References: <62BBB115-C4DB-470E-A885-F0E096DF4869@mac.com> Message-ID: <55BBB9B5.5050800@fourthworld.com> Graham Samuel wrote: > Way back in May there was a discussion of hosting companies that were > reliable and LiveCode friendly. Dreamhost was picked out as a > good?un, but at the time there seemed to be some doubt about the > speed of LiveCode Server on the platform. Most hosting companies support CGI, so just about any will do. I like Dreamhost, but I also really like InterServer, and many here have also had a good time with JaguarPC, HostGator, and others. Any host with multiple redundant high-speed connections, on-site generators, nightly backups, and other baseline core competencies will be a good choice, and these days there are few that don't have those basics. The only thing that I've seen much variance in is that there are still a small number of hosts that don't support SSH. This makes them unusable for any serious work beyond simple static pages, because even if you're not a big fan of Terminal sooner or later you'll need to do something on that machine that's either difficult or impossible to do with FTP alone. With ssh you can log in and it's as good as sitting at the desk with the machine in front of you, but without it you're hosed. So always insist on ssh. It's a godsend, even if you only use it occasionally. > Can anyone say what the status is now? I?m looking for a US-based > LiveCode-friendly hosting organisation for a modest commercial web > presence (by ?commercial?, I mean it will sell downloads). That issue has since been clarified as not at all specific to Dreamhost. To varying degrees it may be evident on any 64-bit system, which these days is pretty much all of them. The symptom is that execution time of CGIs which had been measured in milliseconds using the v6.x engine were now taking as long as two or three seconds in some cases with the v7 engine. This is much longer than anything attributable to Unicode or other areas where we've seen some performance degradation in v7, serious enough to merit specific attention since Web users have come to expect nearly instantaneous responses from modern server systems. Phil Davis filed this bug report with LC, and initiated an investigation into the root cause with Dreamhost support: ' Many kudos to Andrew and the three other Dreamhost engineers that lent a hand in pinning down the root cause, and to LiveCode's Mark Waddingham and Dr. Peter Brett for finding two solutions for it. I'll outline the issue here, and briefly describe the current status of available solutions: The issue isn't about 64-bitness per se, but that the 64-bit requirement means we can only use LC v7 or later, since v6.x and earlier are only available in 32-bit builds. Among the many changes in v7 was improved support for Pango, the font subsystem used on Linux. While these changes make for much better support for fonts on Linux, they've also added additional time to the boot sequence. This additional time is small enough that it doesn't matter much in desktop apps, but CGI apps are by nature much more time-sensitive, since the engine is launched, runs, and dies with each request, so things that may not matter much on the desktop can matter a lot in a CGI environment. Dreamhost and some other systems include a full set of fonts, and during startup LC obtains the location of the fonts folder and walks through each font file to initialize it for use. This may seem unnecessary given that most CGIs only process text and never need to render fonts at all, but keep in mind that since v6.6 and later the server engine can now render graphics for some very interesting uses like customized postcards, diagrams, etc., so having access to fonts in that engine can potentially be every bit as useful as in a desktop app. But the time required to init all those fonts adds up, so Waddingham and Brett came up with two solutions, a short-term workaround and some options for the long term: Short-term workaround: The trick is to tell LiveCode to use a different font folder than the one the system provides, ideally with only one simple font file in it. Sounds easy enough in principle, but in practice it means creating a shell script to redefine the location of the font.conf file in the $FONT_CONFIG global, export that variable so child processes will use it, and then launch LiveCode as a child process. With assistance from Waddingham and Brett I've been able to put this into place at livecodejournal.com, and the resulting performance is now on par with the earlier v6 setup I used to enjoy there. I've been entrusted to document this workaround and provide the files needed to set it up, but client projects have been demanding so that article has had to sit on the back burner for a few weeks. My apologies; I hope to have that completed soon. If you find v7 CGI performance noticeably problematic in your applications, it would be helpful for me to gauge interest in this documentation effort, so please email me the URL to your affected web app at ambassador AT fourthworld.com . If I get a lot of those requests I'll make an effort to prioritize that documentation accordingly, but it may also be that relatively few are affected, in which case maintaining a focus on keeping a roof over my head may not be a bad thing. :) Happy to be of service if needed. Long-term solution: There are several options for modifying the engine's boot sequence to address this problem without requiring us to make cumbersome modifications to our site setup. The simplest for us would be the hardest for the team: having the engine become smart enough in analyzing our scripts during boot so it can init only those things that are needed and bypass those that aren't. So if you're using graphics output that will require fonts, it would do the font init, but if not it would skip it altogether. However, that level of cleverness would take time to implement, so in my most recent comment at the bug report linked to above I proposed a middle path which would provide us with an easy setup while keeping the work of the engine team to a minimum: Add an optional command line flag to turn off graphics initialization, including fonts. I proposed using -g for this, similar to how we already have -ui for bypassing GUI initialization in the desktop engine. For users this would mean that the subset of those who've noticed big slowdowns from font initialization could boost throughput by just adding that flag to their .htaccess directive. For the team it means probably an hour or two's work to provide a solution that solve the problem well, while still leaving the door open for deeper changes they may consider later on. I haven't yet heard back from the team on that proposal, but I hope they'll find it makes for a nice middle-path solution they can implement affordably and soon. -- Richard Gaskin LiveCode Community Manager richard at livecode.org From stephenREVOLUTION2 at barncard.com Fri Jul 31 14:47:05 2015 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Fri, 31 Jul 2015 11:47:05 -0700 Subject: OT-ish: Dreamhost and LiveCode? In-Reply-To: <55BBB9B5.5050800@fourthworld.com> References: <62BBB115-C4DB-470E-A885-F0E096DF4869@mac.com> <55BBB9B5.5050800@fourthworld.com> Message-ID: What Richard said about Interserver ++ On Fri, Jul 31, 2015 at 11:08 AM, Richard Gaskin wrote: > Graham Samuel wrote: > > Way back in May there was a discussion of hosting companies that were > > reliable and LiveCode friendly. Dreamhost was picked out as a > > good?un, but at the time there seemed to be some doubt about the > > speed of LiveCode Server on the platform. > > Most hosting companies support CGI, so just about any will do. I like > Dreamhost, but I also really like InterServer, and many here have also had > a good time with JaguarPC, HostGator, and others. -- Stephen Barncard - Sebastopol Ca. USA - Deeds Not Words From jacque at hyperactivesw.com Fri Jul 31 15:37:22 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 31 Jul 2015 14:37:22 -0500 Subject: OT-ish: Dreamhost and LiveCode? In-Reply-To: <55BBB9B5.5050800@fourthworld.com> References: <62BBB115-C4DB-470E-A885-F0E096DF4869@mac.com> <55BBB9B5.5050800@fourthworld.com> Message-ID: <55BBCE72.5060202@hyperactivesw.com> On 7/31/2015 1:08 PM, Richard Gaskin wrote: > Add an optional command line flag to turn off graphics initialization, > including fonts. I proposed using -g for this, similar to how we > already have -ui for bypassing GUI initialization in the desktop engine. I'm for this. As developers, we are likely to know whether we need font support or not. Adding a flag would be easy. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From revolution at derbrill.de Fri Jul 31 17:23:35 2015 From: revolution at derbrill.de (Malte Brill) Date: Fri, 31 Jul 2015 23:23:35 +0200 Subject: OT-ish: Dreamhost and LiveCode? In-Reply-To: References: Message-ID: <4ED8233B-8790-4075-827A-F9C1D054BE50@derbrill.de> If this is governed via .httaccess it might be a bit tricky, as for one project you might not need font support, but for others you might need it. Would be better to be able to decide this at startup of the script IMHo. Not automatic searching, but maybe setting a property in the startup handler? Cheers, Malte > > Add an optional command line flag to turn off graphics initialization, > > including fonts. I proposed using -g for this, similar to how we > > already have -ui for bypassing GUI initialization in the desktop engine. > > I'm for this. As developers, we are likely to know whether we need font > support or not. Adding a flag would be easy. From bodine at bodinetraininggames.com Fri Jul 31 17:48:26 2015 From: bodine at bodinetraininggames.com (tbodine) Date: Fri, 31 Jul 2015 14:48:26 -0700 (PDT) Subject: Import Snapshot of Stack? In-Reply-To: <55BB9454.7070500@fourthworld.com> References: <55BB9454.7070500@fourthworld.com> Message-ID: <1438379306225-4694529.post@n4.nabble.com> Richard, Thanks for that great tip! I was just grumbling about the poor image quality of my exported snapshots (on Win7, LC 7.0.5). I tried your syntax "from card" instead of a rect or object, and it's a night and day difference. Gradients, photos and type are much smoother in the image from the card, even when I alter the size of the snapshot. Thanks again. Tom Bodine -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Import-Snapshot-of-Stack-tp4694518p4694529.html Sent from the Revolution - User mailing list archive at Nabble.com. From paul at livecode.org Fri Jul 31 18:35:52 2015 From: paul at livecode.org (Paul Hibbert) Date: Fri, 31 Jul 2015 15:35:52 -0700 Subject: Odd behavior in Win8-I'm stuck fixing it, Help?? In-Reply-To: <8F200619-C73C-465A-A36C-3EA1387E8619@earthednet.org> References: <8F200619-C73C-465A-A36C-3EA1387E8619@earthednet.org> Message-ID: Bill, I?ve just read the following explanation from RG relating to another snapshot problem and wondered if it also relates to your student?s problems? > > The "from" option renders the object into a new buffer set up just for the snapshot, while the older "of" syntax grabs the object's rect from the composite screen buffer. > > LiveCode renders only the content region of a window but the window itself is rendered by the OS, so it has no choice but to obtain that image from the screen buffer. > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com When I first read your post I wondered if the problem could be due to low grade or incompatible video cards in the affected machines, if that?s the case then the above explanation would make sense, to me at least. So, the question is, does your "export snapshot" script use the ?from? or ?of? option? If it?s the ?of? option then switching to the ?from? option may fix the problem your students are seeing. Just a thought. Paul > On Jul 16, 2015, at 14:07, William Prothero wrote: > > Folks: > I have an application that is being used by a class of Earth Science students and get failure reports from two who use Windows 8. One lives in Australia and one lives in Japan. The app works fine on Macintosh. I?ve also tested it on my own installation of both Windows 8.1 and 7, 32 bit and 64 bit versions. I can?t get the reported pixellation of the map and screen. > > I?m wondering if it is something related to foreign installations. The symptom is extreme pixellation of images captured with the "export snapshot? command. I live in the US. > > So, I wonder if somebody with Windows 8 would be willing to download the app and try it, and perhaps give me an idea of what might be going on. If it?s a bug in ?snapshot?, it would be important to be reported and fixed. Otherwise, I?m pretty stuck on figuring out what is going on. > > Here are links: > Windows zip file of the app: > Pixellated Image sent by a student > > Thanks for any help or feedback you can give me. > > Regards, > Bill > > > William A. Prothero > http://es.earthednet.org/ > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode Regards, Paul Hibbert paul at livecode.org From m.schonewille at economy-x-talk.com Fri Jul 31 18:48:30 2015 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sat, 1 Aug 2015 00:48:30 +0200 Subject: Odd behavior in Win8-I'm stuck fixing it, Help?? In-Reply-To: References: <8F200619-C73C-465A-A36C-3EA1387E8619@earthednet.org> <55ABC4AA.7000408@economy-x-talk.com> <7D688C6B-0EB8-4704-A6A1-1625B4593233@earthednet.org> <55ABE813.3080606@economy-x-talk.com> <2E1755B8-B2FD-42D5-A225-647A7EF083B7@earthednet.org> <55AC2372.6000104@economy-x-talk.com> <55AC2EEC.9050402@economy-x-talk.com> Message-ID: <55BBFB3E.8010600@economy-x-talk.com> Hi Bill, I just noticed the second paragraph of your message. I trust you have received the license by now. If not, let me know. I'm really glad you like the book enough to buy a replacement copy! -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ On 7/20/2015 05:10, William Prothero wrote: > Mark: > Thanks for testing this. It does give me more confidence that it?s some oddity on the student?s computer. > > FYI: I have bought your book (2 of ?em. I lost one) and InstallerMaker (still haven?t gotten a license emailed, tho). The 3 days aren?t up, tho. Anyway, I?m looking forward to using it. > > Best, > Bill > >> On Jul 19, 2015, at 4:12 PM, Mark Schonewille wrote: >> >> Okay. With this info, I'm unable to see any pixelation. >> I have tested the app on a 2.2 Ghz laptop with 4 GB built-in memory running Windows 8.1, i.e. nothing fancy and your students probably have a similar or better configuration. The sytem is Dutch. >> >> -- >> Best regards, >> >> Mark Schonewille >> >> Economy-x-Talk Consulting and Software Engineering >> Homepage: http://economy-x-talk.com >> Twitter: http://twitter.com/xtalkprogrammer >> KvK: 50277553 >> >> Installer Maker for LiveCode: >> http://qery.us/468 >> >> Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi >> >> LiveCode on Facebook: >> https://www.facebook.com/groups/runrev/ >> >> On 7/20/2015 00:43, William Prothero wrote: >>> Mark: >>> Keeping in mind that the info I got was from my teacher/collaborator, Sabina Thomas, and her info was during an online video chat with one of her students in Japan, what I understand is that the pixellation showed up after opening the MAP part of the application, doing a profile plot, then plotting Quakes from the ?Select Data To Be Plotted? dropdown menu. That?s the information I have. >>> >>> I hope you don?t waste too much time on this because there is so little available information to help in debugging the situation. At this point, my solution is to try to get as many folks as possible to try it on Win8, and if the problem occurs again, beg, pay, whatever to get them to provide more detailed information about their computer and its settings. I think if you have any hunches or WIn8 idiosyncrasy info that could affect this, I could explore that further, but ?.. >>> >>> I?m reluctant to bug Sabina?s student further about this. BUT, I am wondering if there is an app she might download that could send me information about her computer, that would help. Just thinking aloud. She might be willing to do that. >>> >>> Thanks for looking at this. I really appreciate it. >>> Best, >>> Bill >>> >>>> On Jul 19, 2015, at 3:23 PM, Mark Schonewille wrote: >>>> >>>> _Where_ and _when_ should the pixelation show up exactly? >>>> >>>> -- >>>> Best regards, >>>> >>>> Mark Schonewille >>>> >>>> Economy-x-Talk Consulting and Software Engineering >>>> Homepage: http://economy-x-talk.com >>>> Twitter: http://twitter.com/xtalkprogrammer >>>> KvK: 50277553 >>>> >>>> Installer Maker for LiveCode: >>>> http://qery.us/468 >>>> >>>> Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi >>>> >>>> LiveCode on Facebook: >>>> https://www.facebook.com/groups/runrev/ >>>> >>>> On 7/19/2015 23:42, William Prothero wrote: >>>>> Mark: >>>>> The pixellation should show up on the steps you took. >>>>> >>>>> However, I don?t see it and another LiveCoder who downloaded it and played it on Windows 8 doesn?t see it. Lowering the screen resolution shows the effect, but that would show the entire window pixellated, and that isn?t what is shown on the image. Only the part that is snapshot?d shows the pixellation. It really stumps me. I?m wondering if there could be some kind of jpg difference between countries. I could understand possible font differences, but the problem is the snapshot area(s). >>>>> >>>>> I?m wondering if there could be some timing problem, rarely seen, where the snapshot is taken before the underlying image is fully updated. The map image is a big one, with its size and location changed, but the data plot is just a group of lines and fields which is displayed, then snapshot?d. >>>>> >>>>> Debugging this seems hopeless without being able to reproduce the effect, though. >>>>> >>>>> At this stage, unless there is something about Windows and ?png? files in Japan, perhaps with a different language, I don?t know how to debug it. It?s very hard to get students to give feedback, after the assignment is over and they are onto other things. Probably also unfair to ask them to participate in debugging. So, I only ask once. >>>>> >>>>> One of my debugging strategies is to ask grad students at the UCSB geology dept. to try the program and I pay them $20 for feedback. I may try that strategy and if they see it, and I could get hold of their computer, something might pop out. >>>>> >>>>> BTW: I put the apps and problem images on my web site at: >>>>> lhttp://earthednet.org/downloads/index.html >>>>> >>>>> Very odd. >>>>> Bill >>>>> >>>>>> On Jul 19, 2015, at 11:10 AM, Mark Schonewille wrote: >>>>>> >>>>>> Bill, >>>>>> >>>>>> I performed step 1 till 7. What are the steps to check if anything relevant is extremely pixelated? >>>>>> >>>>>> -- >>>>>> Best regards, >>>>>> >>>>>> Mark Schonewille >>>>>> >>>>>> Economy-x-Talk Consulting and Software Engineering >>>>>> Homepage: http://economy-x-talk.com >>>>>> Twitter: http://twitter.com/xtalkprogrammer >>>>>> KvK: 50277553 >>>>>> >>>>>> Installer Maker for LiveCode: >>>>>> http://qery.us/468 >>>>>> >>>>>> Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi >>>>>> >>>>>> LiveCode on Facebook: >>>>>> https://www.facebook.com/groups/runrev/ >>>>>> >>>>>> On 7/19/2015 19:09, William Prothero wrote: >>>>>>> Mark: >>>>>>> Thanks for looking at the app. >>>>>>> >>>>>>> Instructions: >>>>>>> 1. launch app >>>>>>> 2. Click on ?Begin? button with option key down. >>>>>>> 3. At Welcome screen, click on ?Go To Map? button >>>>>>> 4. At Map screen, select ?Quakes? form the dropdown labeled ?Select data to be plotted? >>>>>>> 5. Click on ?Save Map Image? (optional) >>>>>>> 6. Click on the ?+? magnifier button, move the mouse over the map, and then click. The magnifier symbol should move with the mouse. >>>>>>> 7. Make an elevation plot by first clicking on the ?Make A Profile? checkbox, then drag the mouse across a segment of the map image. >>>>>>> >>>>>>> The snapshot is taken whenever the map screen changes. Symbol data are drawn into the snapshot image data. The map is a very large jpeg, which is reduced, then the snapshot is taken. When the map is magnified (by increments of a factor of 2), or moved, a new snapshot is taken. >>>>>>> >>>>>>> It appears that the pixellation occurs at the snapshot step. There is a region below the map (initially grey) that holds the data plots. This plot is created by creating the various graphic elements (fields, boxes, lines), then a snapshot taken, and then the plot elements deleted. The plot image is then the snapshot. This was also shown as pixellated (by the student with the problem), so I think it is most likely a snapshot problem. >>>>>>> >>>>>>> Thanks so much for looking at this, Mark!! I have not been able to duplicate this problem on my Parallels hosted Windows 8.1 system. >>>>>>> >>>>>>> Best regards, >>>>>>> Bill >>>>>>> >>>>>>>> On Jul 19, 2015, at 8:39 AM, Mark Schonewille wrote: >>>>>>>> >>>>>>>> Bill, >>>>>>>> >>>>>>>> I had a look at your app. There is no "export snapshot" button or menu item. Please, provide instructions as brief as possible. >>>>>>>> >>>>>>>> -- >>>>>>>> Best regards, >>>>>>>> >>>>>>>> Mark Schonewille >>>>>>>> >>>>>>>> Economy-x-Talk Consulting and Software Engineering >>>>>>>> Homepage: http://economy-x-talk.com >>>>>>>> Twitter: http://twitter.com/xtalkprogrammer >>>>>>>> KvK: 50277553 >>>>>>>> >>>>>>>> Installer Maker for LiveCode: >>>>>>>> http://qery.us/468 >>>>>>>> >>>>>>>> Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi >>>>>>>> >>>>>>>> LiveCode on Facebook: >>>>>>>> https://www.facebook.com/groups/runrev/ >>>>>>>> >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> use-livecode mailing list >>>>>>> use-livecode at lists.runrev.com >>>>>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> use-livecode mailing list >>>>>> use-livecode at lists.runrev.com >>>>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>> >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Fri Jul 31 18:52:53 2015 From: brahma at hindu.org (Brahmanathaswami) Date: Fri, 31 Jul 2015 12:52:53 -1000 Subject: restore selection from selectedChunk expression Message-ID: <55BBFC45.3070701@hindu.org> If we make a text selection and store it as a selectedChunk string e.g gCurrentSelection which them would have say... a value of char 669 to 1094 of field 6 How to I re-select that text? global gCurrentSelection on mouseUp set the backgroundcolor of gCurrentSelection to yellow end mouseUp works' but global gCurrentSelection on mouseUp selectgCurrentSelection end mouseUp does not... an i can't find a way to re-set the selection .... -- Swasti Astu, Be Well! Brahmanathaswami Kauai's Hindu Monastery www.HimalayanAcademy.com From m.schonewille at economy-x-talk.com Fri Jul 31 19:03:03 2015 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sat, 1 Aug 2015 01:03:03 +0200 Subject: restore selection from selectedChunk expression In-Reply-To: <55BBFC45.3070701@hindu.org> References: <55BBFC45.3070701@hindu.org> Message-ID: <55BBFEA7.4000709@economy-x-talk.com> Hi, Perhaps there are more elegant ways, but a quick solution would be do "select" && gCurrentSelection -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ On 8/1/2015 00:52, Brahmanathaswami wrote: > If we make a text selection and store it as a selectedChunk string > > e.g > > gCurrentSelection > > > which them would have say... a value of > > char 669 to 1094 of field 6 > > How to I re-select that text? > > global gCurrentSelection > on mouseUp > set the backgroundcolor of gCurrentSelection to yellow > end mouseUp > > works' > > but > > global gCurrentSelection > on mouseUp > selectgCurrentSelection > end mouseUp > > does not... an i can't find a way to re-set the selection .... > > > > > From alex at tweedly.net Fri Jul 31 19:58:49 2015 From: alex at tweedly.net (Alex Tweedly) Date: Sat, 01 Aug 2015 00:58:49 +0100 Subject: OT-ish: Dreamhost and LiveCode? In-Reply-To: References: <62BBB115-C4DB-470E-A885-F0E096DF4869@mac.com> <55BB8039.6010504@tweedly.org> Message-ID: <55BC0BB9.6090904@tweedly.net> I've never asked. I can't see why they wouldn't allow it. -- Alex. On 31/07/2015 16:48, jbv at souslelogo.com wrote: >> I've been happy with hostm.com - Livecode pre-installed and servers in >> Americas, Europe and Pacific Rim. >> >> -- Alex. >> > Alex, > Just curious : is it possible to chose a server on a specific continent ? > > Thanks > jbv > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From alex at tweedly.net Fri Jul 31 20:03:01 2015 From: alex at tweedly.net (Alex Tweedly) Date: Sat, 01 Aug 2015 01:03:01 +0100 Subject: OT-ish: Dreamhost and LiveCode? In-Reply-To: <55BBB9B5.5050800@fourthworld.com> References: <62BBB115-C4DB-470E-A885-F0E096DF4869@mac.com> <55BBB9B5.5050800@fourthworld.com> Message-ID: <55BC0CB5.7020008@tweedly.net> If the issue is just with fonts, why have the flag be "-g" to turn off all graphics ? Why not "-f" to turn off font initialization ? I have a number of scripts that render graphics (resize images, on-the-fly thumbnails, etc.) but none that need to render fonts, and I'd imagine there are various other reasons why you might want to keep some graphics capabilities without ever needing to do anything with text+graphics on a server btw - I agree with Malte it should (somehow) be done per-script rather than more globally. Regards Alex. On 31/07/2015 19:08, Richard Gaskin wrote: > Add an optional command line flag to turn off graphics initialization, > including fonts. I proposed using -g for this, similar to how we > already have -ui for bypassing GUI initialization in the desktop engine. > > For users this would mean that the subset of those who've noticed big > slowdowns from font initialization could boost throughput by just > adding that flag to their .htaccess directive. > From prothero at earthednet.org Fri Jul 31 20:56:27 2015 From: prothero at earthednet.org (EED-wp Email) Date: Fri, 31 Jul 2015 17:56:27 -0700 Subject: Odd behavior in Win8-I'm stuck fixing it, Help?? In-Reply-To: <55BBFB3E.8010600@economy-x-talk.com> References: <8F200619-C73C-465A-A36C-3EA1387E8619@earthednet.org> <55ABC4AA.7000408@economy-x-talk.com> <7D688C6B-0EB8-4704-A6A1-1625B4593233@earthednet.org> <55ABE813.3080606@economy-x-talk.com> <2E1755B8-B2FD-42D5-A225-647A7EF083B7@earthednet.org> <55AC2372.6000104@economy-x-talk.com> <55AC2EEC.9050402@economy-x-talk.com> <55BBFB3E.8010600@economy-x-talk.com> Message-ID: Mark, I got it. Haven't seriously used it yet, but will very soon. Bill William Prothero http://ed.earthednet.org > On Jul 31, 2015, at 3:48 PM, Mark Schonewille wrote: > > Hi Bill, > > I just noticed the second paragraph of your message. I trust you have received the license by now. If not, let me know. I'm really glad you like the book enough to buy a replacement copy! > > -- > Best regards, > > Mark Schonewille > > Economy-x-Talk Consulting and Software Engineering > Homepage: http://economy-x-talk.com > Twitter: http://twitter.com/xtalkprogrammer > KvK: 50277553 > > Installer Maker for LiveCode: > http://qery.us/468 > > Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi > > LiveCode on Facebook: > https://www.facebook.com/groups/runrev/ > >> On 7/20/2015 05:10, William Prothero wrote: >> Mark: >> Thanks for testing this. It does give me more confidence that it?s some oddity on the student?s computer. >> >> FYI: I have bought your book (2 of ?em. I lost one) and InstallerMaker (still haven?t gotten a license emailed, tho). The 3 days aren?t up, tho. Anyway, I?m looking forward to using it. >> >> Best, >> Bill >> >>> On Jul 19, 2015, at 4:12 PM, Mark Schonewille wrote: >>> >>> Okay. With this info, I'm unable to see any pixelation. >>> I have tested the app on a 2.2 Ghz laptop with 4 GB built-in memory running Windows 8.1, i.e. nothing fancy and your students probably have a similar or better configuration. The sytem is Dutch. >>> >>> -- >>> Best regards, >>> >>> Mark Schonewille >>> >>> Economy-x-Talk Consulting and Software Engineering >>> Homepage: http://economy-x-talk.com >>> Twitter: http://twitter.com/xtalkprogrammer >>> KvK: 50277553 >>> >>> Installer Maker for LiveCode: >>> http://qery.us/468 >>> >>> Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi >>> >>> LiveCode on Facebook: >>> https://www.facebook.com/groups/runrev/ >>> >>>> On 7/20/2015 00:43, William Prothero wrote: >>>> Mark: >>>> Keeping in mind that the info I got was from my teacher/collaborator, Sabina Thomas, and her info was during an online video chat with one of her students in Japan, what I understand is that the pixellation showed up after opening the MAP part of the application, doing a profile plot, then plotting Quakes from the ?Select Data To Be Plotted? dropdown menu. That?s the information I have. >>>> >>>> I hope you don?t waste too much time on this because there is so little available information to help in debugging the situation. At this point, my solution is to try to get as many folks as possible to try it on Win8, and if the problem occurs again, beg, pay, whatever to get them to provide more detailed information about their computer and its settings. I think if you have any hunches or WIn8 idiosyncrasy info that could affect this, I could explore that further, but ?.. >>>> >>>> I?m reluctant to bug Sabina?s student further about this. BUT, I am wondering if there is an app she might download that could send me information about her computer, that would help. Just thinking aloud. She might be willing to do that. >>>> >>>> Thanks for looking at this. I really appreciate it. >>>> Best, >>>> Bill >>>> >>>>> On Jul 19, 2015, at 3:23 PM, Mark Schonewille wrote: >>>>> >>>>> _Where_ and _when_ should the pixelation show up exactly? >>>>> >>>>> -- >>>>> Best regards, >>>>> >>>>> Mark Schonewille >>>>> >>>>> Economy-x-Talk Consulting and Software Engineering >>>>> Homepage: http://economy-x-talk.com >>>>> Twitter: http://twitter.com/xtalkprogrammer >>>>> KvK: 50277553 >>>>> >>>>> Installer Maker for LiveCode: >>>>> http://qery.us/468 >>>>> >>>>> Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi >>>>> >>>>> LiveCode on Facebook: >>>>> https://www.facebook.com/groups/runrev/ >>>>> >>>>>> On 7/19/2015 23:42, William Prothero wrote: >>>>>> Mark: >>>>>> The pixellation should show up on the steps you took. >>>>>> >>>>>> However, I don?t see it and another LiveCoder who downloaded it and played it on Windows 8 doesn?t see it. Lowering the screen resolution shows the effect, but that would show the entire window pixellated, and that isn?t what is shown on the image. Only the part that is snapshot?d shows the pixellation. It really stumps me. I?m wondering if there could be some kind of jpg difference between countries. I could understand possible font differences, but the problem is the snapshot area(s). >>>>>> >>>>>> I?m wondering if there could be some timing problem, rarely seen, where the snapshot is taken before the underlying image is fully updated. The map image is a big one, with its size and location changed, but the data plot is just a group of lines and fields which is displayed, then snapshot?d. >>>>>> >>>>>> Debugging this seems hopeless without being able to reproduce the effect, though. >>>>>> >>>>>> At this stage, unless there is something about Windows and ?png? files in Japan, perhaps with a different language, I don?t know how to debug it. It?s very hard to get students to give feedback, after the assignment is over and they are onto other things. Probably also unfair to ask them to participate in debugging. So, I only ask once. >>>>>> >>>>>> One of my debugging strategies is to ask grad students at the UCSB geology dept. to try the program and I pay them $20 for feedback. I may try that strategy and if they see it, and I could get hold of their computer, something might pop out. >>>>>> >>>>>> BTW: I put the apps and problem images on my web site at: >>>>>> lhttp://earthednet.org/downloads/index.html >>>>>> >>>>>> Very odd. >>>>>> Bill >>>>>> >>>>>>> On Jul 19, 2015, at 11:10 AM, Mark Schonewille wrote: >>>>>>> >>>>>>> Bill, >>>>>>> >>>>>>> I performed step 1 till 7. What are the steps to check if anything relevant is extremely pixelated? >>>>>>> >>>>>>> -- >>>>>>> Best regards, >>>>>>> >>>>>>> Mark Schonewille >>>>>>> >>>>>>> Economy-x-Talk Consulting and Software Engineering >>>>>>> Homepage: http://economy-x-talk.com >>>>>>> Twitter: http://twitter.com/xtalkprogrammer >>>>>>> KvK: 50277553 >>>>>>> >>>>>>> Installer Maker for LiveCode: >>>>>>> http://qery.us/468 >>>>>>> >>>>>>> Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi >>>>>>> >>>>>>> LiveCode on Facebook: >>>>>>> https://www.facebook.com/groups/runrev/ >>>>>>> >>>>>>>> On 7/19/2015 19:09, William Prothero wrote: >>>>>>>> Mark: >>>>>>>> Thanks for looking at the app. >>>>>>>> >>>>>>>> Instructions: >>>>>>>> 1. launch app >>>>>>>> 2. Click on ?Begin? button with option key down. >>>>>>>> 3. At Welcome screen, click on ?Go To Map? button >>>>>>>> 4. At Map screen, select ?Quakes? form the dropdown labeled ?Select data to be plotted? >>>>>>>> 5. Click on ?Save Map Image? (optional) >>>>>>>> 6. Click on the ?+? magnifier button, move the mouse over the map, and then click. The magnifier symbol should move with the mouse. >>>>>>>> 7. Make an elevation plot by first clicking on the ?Make A Profile? checkbox, then drag the mouse across a segment of the map image. >>>>>>>> >>>>>>>> The snapshot is taken whenever the map screen changes. Symbol data are drawn into the snapshot image data. The map is a very large jpeg, which is reduced, then the snapshot is taken. When the map is magnified (by increments of a factor of 2), or moved, a new snapshot is taken. >>>>>>>> >>>>>>>> It appears that the pixellation occurs at the snapshot step. There is a region below the map (initially grey) that holds the data plots. This plot is created by creating the various graphic elements (fields, boxes, lines), then a snapshot taken, and then the plot elements deleted. The plot image is then the snapshot. This was also shown as pixellated (by the student with the problem), so I think it is most likely a snapshot problem. >>>>>>>> >>>>>>>> Thanks so much for looking at this, Mark!! I have not been able to duplicate this problem on my Parallels hosted Windows 8.1 system. >>>>>>>> >>>>>>>> Best regards, >>>>>>>> Bill >>>>>>>> >>>>>>>>> On Jul 19, 2015, at 8:39 AM, Mark Schonewille wrote: >>>>>>>>> >>>>>>>>> Bill, >>>>>>>>> >>>>>>>>> I had a look at your app. There is no "export snapshot" button or menu item. Please, provide instructions as brief as possible. >>>>>>>>> >>>>>>>>> -- >>>>>>>>> Best regards, >>>>>>>>> >>>>>>>>> Mark Schonewille >>>>>>>>> >>>>>>>>> Economy-x-Talk Consulting and Software Engineering >>>>>>>>> Homepage: http://economy-x-talk.com >>>>>>>>> Twitter: http://twitter.com/xtalkprogrammer >>>>>>>>> KvK: 50277553 >>>>>>>>> >>>>>>>>> Installer Maker for LiveCode: >>>>>>>>> http://qery.us/468 >>>>>>>>> >>>>>>>>> Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi >>>>>>>>> >>>>>>>>> LiveCode on Facebook: >>>>>>>>> https://www.facebook.com/groups/runrev/ >>>>>>>> >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> use-livecode mailing list >>>>>>>> use-livecode at lists.runrev.com >>>>>>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>>> >>>>>>> _______________________________________________ >>>>>>> use-livecode mailing list >>>>>>> use-livecode at lists.runrev.com >>>>>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>> >>>>>> _______________________________________________ >>>>>> use-livecode mailing list >>>>>> use-livecode at lists.runrev.com >>>>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>> >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Fri Jul 31 20:55:00 2015 From: prothero at earthednet.org (EED-wp Email) Date: Fri, 31 Jul 2015 17:55:00 -0700 Subject: Odd behavior in Win8-I'm stuck fixing it, Help?? In-Reply-To: References: <8F200619-C73C-465A-A36C-3EA1387E8619@earthednet.org> Message-ID: <8224D633-99E4-46F8-A5B6-7FCB8F33217E@earthednet.org> Tom, Great call! I'll check it out. Dtill on the road, so it will take a couple ofdays. Thanks, Bill William Prothero http://ed.earthednet.org > On Jul 31, 2015, at 3:35 PM, Paul Hibbert wrote: > > Bill, > > I?ve just read the following explanation from RG relating to another snapshot problem and wondered if it also relates to your student?s problems? > >> >> The "from" option renders the object into a new buffer set up just for the snapshot, while the older "of" syntax grabs the object's rect from the composite screen buffer. >> >> LiveCode renders only the content region of a window but the window itself is rendered by the OS, so it has no choice but to obtain that image from the screen buffer. >> >> -- >> Richard Gaskin >> Fourth World Systems >> Software Design and Development for the Desktop, Mobile, and the Web >> ____________________________________________________________________ >> Ambassador at FourthWorld.com http://www.FourthWorld.com > > When I first read your post I wondered if the problem could be due to low grade or incompatible video cards in the affected machines, if that?s the case then the above explanation would make sense, to me at least. > > So, the question is, does your "export snapshot" script use the ?from? or ?of? option? > > If it?s the ?of? option then switching to the ?from? option may fix the problem your students are seeing. > > Just a thought. > > Paul > > >> On Jul 16, 2015, at 14:07, William Prothero wrote: >> >> Folks: >> I have an application that is being used by a class of Earth Science students and get failure reports from two who use Windows 8. One lives in Australia and one lives in Japan. The app works fine on Macintosh. I?ve also tested it on my own installation of both Windows 8.1 and 7, 32 bit and 64 bit versions. I can?t get the reported pixellation of the map and screen. >> >> I?m wondering if it is something related to foreign installations. The symptom is extreme pixellation of images captured with the "export snapshot? command. I live in the US. >> >> So, I wonder if somebody with Windows 8 would be willing to download the app and try it, and perhaps give me an idea of what might be going on. If it?s a bug in ?snapshot?, it would be important to be reported and fixed. Otherwise, I?m pretty stuck on figuring out what is going on. >> >> Here are links: >> Windows zip file of the app: >> Pixellated Image sent by a student >> >> Thanks for any help or feedback you can give me. >> >> Regards, >> Bill >> >> >> William A. Prothero >> http://es.earthednet.org/ >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > Regards, > > Paul Hibbert > paul at livecode.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