Re: Problem simulating a location
Folks, I am still struggling with this. Alan Stenhouse has been kind enough to help me, but so far I have not got the simulator to simulate any kind of location information. There is a function, mobileCurrentLocation, that is supposed to return an array provided tracking is enabled and mobileSensorAvailable(“location”) has been invoked (see the LC Dictionary). I have made sure that both these things have been done, but In my tests on the simulator the array appears to be empty. I suppose I can try the test on a real phone, but I would rather stick to the simulator for now. And I haven’t found out how LC knows I’ve got a provisioning profile (separate problem I admit). Has anyone got any idea what’s going wrong? Puzzled. Graham > On 13 Apr 2020, at 14:38, Graham Samuel wrote: > > I’m trying to use the 10.2 XCode simulator to test an iOS app that uses the > phone’s ability to know its location (usually via GPS). I can run the > simulation and show that it’s working in a general way. Furthermore, > mobileSensorAvailable("location”) responds in the simulated app, saying the > sensor is ‘authorizedWhenInUse’ > > However the following button handler - adapted from a lesson by Devin Asay > (very sincere thanks for all that, Devin!) always returns an empty result. I > have set the location in the simulator to a (genuine) custom location, but if > I choose one of the built-in locations, I still get the same result. > > On mouseUp >mobileStartTrackingSensor "location” -- enable the sensor first >put "now trying to get a one-off location reading" & return after fld > “TheReport" >put mobileSensorReading("location",false) into tSensorData -- this returns > a string with the current latitude, longitude and altitude >mobileStopTrackingSensor “location” -- turn off the sensor when done >if tSensorData is empty then >put "no location info!!" & return after fld "TheReport" >else >put tSensorData & return after fld "TheReport" > end if > end mouseUp > > > Of course it’s me, but what am I doing wrong? > > Graham ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Problem simulating a location
Hi Graham, You should really try it on the phone before knocking yourself out about why it doesn’t work on the simulator. I have found that some things involving sensors simply don’t work on the simulator. Try that, if it doesn’t work on the phone let us know. Good luck! Rick > On Apr 14, 2020, at 11:18 AM, Graham Samuel via use-livecode > wrote: > > Folks, I am still struggling with this. Alan Stenhouse has been kind enough > to help me, but so far I have not got the simulator to simulate any kind of > location information. > > There is a function, mobileCurrentLocation, that is supposed to return an > array provided tracking is enabled and mobileSensorAvailable(“location”) has > been invoked (see the LC Dictionary). I have made sure that both these things > have been done, but In my tests on the simulator the array appears to be > empty. > > I suppose I can try the test on a real phone, but I would rather stick to the > simulator for now. And I haven’t found out how LC knows I’ve got a > provisioning profile (separate problem I admit). > > Has anyone got any idea what’s going wrong? > > Puzzled. > > Graham ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Problem simulating a location (Graham Samuel)
> > From: Graham Samuel > I suppose I can try the test on a real phone, but I would rather stick to the > simulator for now. If you have a physical device, regardless of age, try it. There are some things that either don’t work (like camera) or are spotty in the emulator. > And I haven?t found out how LC knows I?ve got a provisioning profile > (separate problem I admit). When you download from the Apple Developer site, just double-click the provisioning profile to open it in Xcode. Livecode will know it’s installed next time you open the Save As Standalone window (but won’t recognize if you install while that window is open) > —Andrew Bell ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Problem simulating a location
Gents, thank you. Good advice, and I’m taking it! I will report back. Graham > On 14 Apr 2020, at 19:39, Andrew at MidWest Coast Media via use-livecode > wrote: > >> >> From: Graham Samuel >> I suppose I can try the test on a real phone, but I would rather stick to >> the simulator for now. > If you have a physical device, regardless of age, try it. There are some > things that either don’t work (like camera) or are spotty in the emulator. > > >> And I haven?t found out how LC knows I?ve got a provisioning profile >> (separate problem I admit). > > When you download from the Apple Developer site, just double-click the > provisioning profile to open it in Xcode. Livecode will know it’s installed > next time you open the Save As Standalone window (but won’t recognize if you > install while that window is open) >> > —Andrew Bell > On 14 Apr 2020, at 17:33, Rick Harrison via use-livecode > wrote: > > Hi Graham, > > You should really try it on the phone before knocking yourself out > about why it doesn’t work on the simulator. I have found that > some things involving sensors simply don’t work on the simulator. > > Try that, if it doesn’t work on the phone let us know. > > Good luck! > > Rick > >> On Apr 14, 2020, at 11:18 AM, Graham Samuel via use-livecode >> wrote: >> >> Folks, I am still struggling with this. Alan Stenhouse has been kind enough >> to help me, but so far I have not got the simulator to simulate any kind of >> location information. >> >> There is a function, mobileCurrentLocation, that is supposed to return an >> array provided tracking is enabled and mobileSensorAvailable(“location”) has >> been invoked (see the LC Dictionary). I have made sure that both these >> things have been done, but In my tests on the simulator the array appears >> to be empty. >> >> I suppose I can try the test on a real phone, but I would rather stick to >> the simulator for now. And I haven’t found out how LC knows I’ve got a >> provisioning profile (separate problem I admit). >> >> Has anyone got any idea what’s going wrong? >> >> Puzzled. >> >> Graham > > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
iOS build error - help needed
Hello all, A new user gets some strange errors trying to build an iOS app with LC 9.6 DP-3 and Xcode 11.3.1 on Catalina. I know some of you folks have no problems building iOS apps with this setup - my guess is that something in his Xcode is not setup correctly - although he has tried everything I could suggest. Full thread here: https://forums.livecode.com/viewtopic.php?f=49&t=33887 Have you seen this error - and if yes - how did you manage to fix it? I am on Mojave, and cannot upgrade to Catalina yet. Thanks for your help! Kind regards, Panos -- ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Apps to fight COVID-19
Jonathan Rothberg is looking for brilliant people who can code whatever your domain. > On Apr 13, 2020, at 6:52 PM, Dar Scott Consulting via use-livecode > wrote: > > Thanks! > > >> On Apr 13, 2020, at 11:42 AM, Mark Wieder via use-livecode >> wrote: >> >> On 4/13/20 10:14 AM, dsc--- via use-livecode wrote: >>> 1. Covid Watch needs expertise in making HIPAA compliant apps. (We have >>> changed COVID Watch to Covid Watch.) >> >> This any help? >> >> https://www.healthcareblocks.com/hipaa/developer_guidelines >> >> -- >> Mark Wieder >> ahsoftw...@gmail.com >> >> ___ >> use-livecode mailing list >> use-livecode@lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription >> preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Damn You Unicode!
I have some code in a field that I put into a variable then I “do” the variable. Works fine on a Mac. On Windows however, the command throws an error. I build the code in the field by getting values from different objects on the card. In this particular case, I am getting the dgProp [“columns”] of a data grid. The problem then is that text is unicode, so when I attempt to do the code, it fails, and the error indicates that the last character of the code is the first character of the dgProp [“columns”]. Example: sqlquery_set qObject, “select clause”, “E That is as much as sqlYoga sees of the command because what comes after is the second byte of the letter “E” in all it’s unicode glory. So how do I completely remove any unicode from text in a field? I am already getting the text of the field. I have already tried textEncode and textDecode using ASCII, UTF-8. I end up with the same string containing unicode. Bob S ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Damn You Unicode!
Actually it looks like this is happening internally to sqlYoga. I think it’s because I am querying a SQL Server. This doesn’t happen with a mySQL database. Bob S > On Apr 14, 2020, at 12:56 PM, Bob Sneidar wrote: > > I have some code in a field that I put into a variable then I “do” the > variable. Works fine on a Mac. On Windows however, the command throws an > error. > > I build the code in the field by getting values from different objects on the > card. In this particular case, I am getting the dgProp [“columns”] of a data > grid. > > The problem then is that text is unicode, so when I attempt to do the code, > it fails, and the error indicates that the last character of the code is the > first character of the dgProp [“columns”]. > > Example: > > sqlquery_set qObject, “select clause”, “E > > That is as much as sqlYoga sees of the command because what comes after is > the second byte of the letter “E” in all it’s unicode glory. > > So how do I completely remove any unicode from text in a field? I am already > getting the text of the field. I have already tried textEncode and textDecode > using ASCII, UTF-8. I end up with the same string containing unicode. > > Bob S > ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Damn You Unicode!
Shooting from the hip, but could it be differences in cr, lf, and the like getting processed differently? That is, being intrereted by your yogi as a break in one implementation and not another? (Which, of course, would be a boo-boo.) pawk, who couldn’t manage to get “Cindy” or “ranger smith” into the last paragraph . . . ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Keyhole effect?
Back in the day I could easily make a sort of keyhole effect, in which I used one graphic to obscure an image, and a second graphic on top as a mask to define a shape (such as a keyhole) through which I could see a portion of the image. It was done easily enough with inks. Inks that, it seems, we no longer have. So given the subset of inks we're now limited to, has anyone here seen firsthand an example of this in LC v9.x? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ambassa...@fourthworld.comhttp://www.FourthWorld.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Damn You Unicode!
On 4/14/20 1:09 PM, doc hawk via use-livecode wrote: Shooting from the hip, but could it be differences in cr, lf, and the like getting processed differently? That is, being intrereted by your yogi as a break in one implementation and not another? (Which, of course, would be a boo-boo.) pawk, who couldn’t manage to get “Cindy” or “ranger smith” into the last paragraph . . . Try a picnic basket instead -- Mark Wieder ahsoftw...@gmail.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Damn You Unicode!
Mark mentioned > > Try a picnic basket instead Given that someone actually implemented RFC 1149, why not? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Damn You Unicode!
On 4/14/20 12:56 PM, Bob Sneidar via use-livecode wrote: I have some code in a field that I put into a variable then I “do” the variable. Works fine on a Mac. On Windows however, the command throws an error. I build the code in the field by getting values from different objects on the card. In this particular case, I am getting the dgProp [“columns”] of a data grid. don't know sqlyoga, but aren't you setting yourself up for sqlinjection? Would suggest you at least scrub the data first before executing it. And in doing so you could unUnicode it. OK I made up that word, but still... -- Mark Wieder ahsoftw...@gmail.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Damn You Unicode!
Mark mumbled > and in doing so you could unUnicode it. OK I made up that word, but still… Verbing nouns again, the man is . . . ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Damn You Unicode!
On 4/14/20 2:34 PM, doc hawk via use-livecode wrote: Mark mentioned Try a picnic basket instead Given that someone actually implemented RFC 1149, why not? Ha! I totally missed the fact that someone (other than Terry Pratchett) had actually done a real-world implementation. "And, as usual among Linux groupies, Microsoft took some of the heat. One pigeon bonked into a nearby window, spurring Cox to quip, "Oh, no! Windows causing problems again," Engen said." https://www.cnet.com/news/pigeon-powered-internet-takes-flight/ -- Mark Wieder ahsoftw...@gmail.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Keyhole effect?
We had a discussion in 2018 about using a hex shaped grc to split up an image (started by Richmond). The key line there was: set the backPattern of grc "hex" to the ID of img "box" Since attachments and stacks were involved, I'm pretty sure it took place on the forums. I'm not sure if this will accomplish what you're looking for though. I can send a stack off list if you'd like to see it. On Tue, Apr 14, 2020 at 5:32 PM Richard Gaskin via use-livecode < use-livecode@lists.runrev.com> wrote: > Back in the day I could easily make a sort of keyhole effect, in which I > used one graphic to obscure an image, and a second graphic on top as a > mask to define a shape (such as a keyhole) through which I could see a > portion of the image. > > It was done easily enough with inks. > > Inks that, it seems, we no longer have. > > So given the subset of inks we're now limited to, has anyone here seen > firsthand an example of this in LC v9.x? > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > > ambassa...@fourthworld.comhttp://www.FourthWorld.com > > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Keyhole effect?
If I understand what you want correctly then: Create image Create mask object Group both Set the ink of the mask object to blendDstIn Set the ink of the group to blendSrcOver Like everything else graphical I’m sure Scott Rossi has a better way ;-) Cheers Monte > On 15 Apr 2020, at 7:31 am, Richard Gaskin via use-livecode > wrote: > > Back in the day I could easily make a sort of keyhole effect, in which I used > one graphic to obscure an image, and a second graphic on top as a mask to > define a shape (such as a keyhole) through which I could see a portion of the > image. > > It was done easily enough with inks. > > Inks that, it seems, we no longer have. > > So given the subset of inks we're now limited to, has anyone here seen > firsthand an example of this in LC v9.x? > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > > ambassa...@fourthworld.comhttp://www.FourthWorld.com > > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Damn You Unicode!
I’m thinking that possibly there is a violated assumption as to what the other end is using within that, yes. Or that the other end makes an assumption, and puts the “wrong” type back in. Which kind of SQL server is that? Microsofts? I can probably rig access to my Postgres server if you need to try it for a test case. (It would probably do me good to remember how that works :) ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Keyhole effect?
Brian Milby wrote: > On Tue, Apr 14, 2020 at 5:32 PM Richard Gaskin wrote: > >> Back in the day I could easily make a sort of keyhole effect, in >> which I used one graphic to obscure an image, and a second graphic >> on top as a mask to define a shape (such as a keyhole) through >> which I could see a portion of the image. >> >> It was done easily enough with inks. >> >> Inks that, it seems, we no longer have. >> >> So given the subset of inks we're now limited to, has anyone here >> seen firsthand an example of this in LC v9.x? > > > We had a discussion in 2018 about using a hex shaped grc to split up > an image (started by Richmond). The key line there was: > > set the backPattern of grc "hex" to the ID of img "box" > > Since attachments and stacks were involved, I'm pretty sure it took > place on the forums. I'm not sure if this will accomplish what you're > looking for though. I can send a stack off list if you'd like to see > it. Thanks, but the solution I'm looking for has to use inks. I'm open to other things, but the mask needs to be a circle so a polygon is out, and backpattern won't work because of a bug/unsupported use (see the fine print in the Dictionary about the specific dimension requirements for backPattern, which turned out to be a problem for us). So inks it is. If it's possible now that the good inks are gone. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ambassa...@fourthworld.comhttp://www.FourthWorld.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Keyhole effect?
Monte Goulding wrote: > If I understand what you want correctly then: > > Create image > Create mask object > Group both > Set the ink of the mask object to blendDstIn > Set the ink of the group to blendSrcOver Super, Monte. That works well. I was up late with a tool I'd made to let me walk through all sorts of combinations, but I hadn't thought to group them. Thanks! -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ambassa...@fourthworld.comhttp://www.FourthWorld.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: iOS build error - help needed
I 9.6.1.dp3 and Catalina 10.15.4 and Xcode 11.3.1 It works Suggest he unstall Xcode and reinstall in and get install the command tool from menu (again) And be sure he is not using a development profile and had the beta test box checked in SA setting (that one cost me a lot of time!) you can on have the "beta test" check with a App Store. Profile. BR On 4/14/20, 9:18 AM, "use-livecode on behalf of panagiotis merakos via use-livecode" wrote: Have you seen this error - and if yes - how did you manage to fix it? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Drag and Drop Images
>From a substack called "library" Where images are loaded one after another to a group, referenced by filename (to image data) on disk (not placed) to a mainstack called "Slideshow" with one Image per card Before I try and reinvent the wheel, does anyone have handlers or a stack which shows how to drag and drop images (not from desktop) but from one stack to another? This is for content development purposes, so the UIUX does not have to be "pretty". (such as setting the cursor to an id of an image etc) BR ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode