Re: reloading iOS provisioning profiles etc

2016-09-25 Thread Earthednet-wp
Ben,
I feel your pain. I don't load a new app to my iPhone very often, but when I 
do, I plan an entire day stumbling around in the forest of updates, new 
versions, certificates, provisioning, etc, etc. There is a tutorial on the 
lessons and it worked the first time for me. But after that it was a guessing 
game and when it did finally work, I didn't really know why.

I'm getting ready to trod that trail again, and hope for the best.
Good luck. If you get any magic wisdom, please post it.

Bill

William Prothero
http://es.earthednet.org

> On Sep 25, 2016, at 3:53 PM, Ben Rubinstein  wrote:
> 
> After adding a new device to my registered set in my Apple developer account, 
> how can I get LC to recognise it?
> 
> I go through this every now and then, conduct a lot of superstitious rituals, 
> eventually I get there.. but I never know how.
> 
> I've launched Xcode, used it to build an app to the device, which caused it 
> to say that there was a problem and offer to fix it. Now Xcode can build to 
> the new device, but LiveCode still not.
> 
> The message (when I ask Xcode to add the newly built app to the device) is
> 
>The executable was signed with invalid entitlements.
> 
>The entitlements specified in your application’s Code Signing
>Entitlements file do not match those specified in your
>provisioning profile. (0xE8008016).
> 
> 
> In LC, I've selected a different provisioning profile, selected the original 
> one again, quit and restarted LC, turned to face east, hailed cthulhu, etc... 
> all the usual things... still no luck.
> 
> So, how do I force LC to refresh the provisioning profiles, or otherwise to 
> build an app which can be installed on a new device?
> 
> Secondary question: how do I get LC to stop seeing every old profile I've 
> ever had (many with the same name) in the "Profile" popup on the iOS tab of 
> the Standalone Settings window?
> 
> TIA,
> 
> Ben
> 
> ___
> 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

reloading iOS provisioning profiles etc

2016-09-25 Thread Ben Rubinstein
After adding a new device to my registered set in my Apple developer account, 
how can I get LC to recognise it?


I go through this every now and then, conduct a lot of superstitious rituals, 
eventually I get there.. but I never know how.


I've launched Xcode, used it to build an app to the device, which caused it to 
say that there was a problem and offer to fix it. Now Xcode can build to the 
new device, but LiveCode still not.


The message (when I ask Xcode to add the newly built app to the device) is

The executable was signed with invalid entitlements.

The entitlements specified in your application’s Code Signing
Entitlements file do not match those specified in your
provisioning profile. (0xE8008016).


In LC, I've selected a different provisioning profile, selected the original 
one again, quit and restarted LC, turned to face east, hailed cthulhu, etc... 
all the usual things... still no luck.


So, how do I force LC to refresh the provisioning profiles, or otherwise to 
build an app which can be installed on a new device?


Secondary question: how do I get LC to stop seeing every old profile I've ever 
had (many with the same name) in the "Profile" popup on the iOS tab of the 
Standalone Settings window?


TIA,

Ben

___
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: [ ANN ] Release 8.1.1 RC-1

2016-09-25 Thread hlowe
Thanks Panos. Have a good vacation.

Henry



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/ANN-Release-8-1-1-RC-1-tp4708851p4708917.html
Sent from the Revolution - User mailing list archive at Nabble.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


"\n" appearing in Unicode

2016-09-25 Thread Sannyasin Brahmanathaswami
I have inserted quotes into a MySQL database. I thought I was careful to be 
sure it was all Unicode encoded.

We ported the content over SQLite for use in an mobile app.

I can fetch the quotes and then run

put textDecode ( aSelectedQuotes[tNo]["content"], UTF8) into sQuote



Diacritical marks are coming through nicely but endlines are an issue:
but we are getting this output into the var/field

His fleet feet dancing\n--
next line here…. \n
next line here\n
next line here

Anyone know why this might be?

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

Re: "Command" as control structure?

2016-09-25 Thread Mike Bonner
I don't think there is a difference, though I use command for my handlers
and on for rev built ins (on mouseup, on keydown etc). Just another way to
aid my recognition of things in my scripts.

On Sun, Sep 25, 2016 at 2:20 PM, Peter Bogdanoff  wrote:

> I see that “command” is a synonym of “on” in LC script.
>
> Is using “command” rather than “on” a purely style preference?
>
> I see in the old LiveCode dictionary:
> The command synonym, along with the ability to declare private
> handlers was added in LiveCode 2.8.1
>
> Why? Is this something to do with the message path?
>
> Peter Bogdanoff
> ___
> 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

"Command" as control structure?

2016-09-25 Thread Peter Bogdanoff
I see that “command” is a synonym of “on” in LC script.

Is using “command” rather than “on” a purely style preference?

I see in the old LiveCode dictionary:
The command synonym, along with the ability to declare private handlers 
was added in LiveCode 2.8.1

Why? Is this something to do with the message path?

Peter Bogdanoff
___
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: How to stop LoveCode running in Edit mode

2016-09-25 Thread Mark Wieder

On 09/25/2016 04:31 AM, Keith Clarke wrote:


Am I correct to assume that a clean LiveCode installation would have the 
Plugins folder empty?


When I need to test without third-party plugins I just rename the 
Plugins folder to something like Pluginsx, do my testing, and revert to 
the original Plugins folder name.


--
 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: [ ANN ] Release 8.1.1 RC-1

2016-09-25 Thread panagiotis merakos
Hi Henry,

Interesting. I did not update my existing Xcode version from 7.3 -> 8. I
just downloaded Xcode 8 from the Apple downloads page, and the iOS 10 sim
was included by default.




*Should I reports as a bug that LC crashed when trying to launch an app in
the simulator because there was no appropriate iOS simulator installed?*
I leave this to you*. *I am on holiday for a week so there might be a delay
in processing the bug queue.

Regarding bug 17779, it is of high priority, so I would expect a fix soon.

Best,
Panos
--


On Sat, Sep 24, 2016 at 8:59 PM, hlowe  wrote:

> Panos,
>
> I have resolved the issue and can now launch apps into the iOS 10.0
> simulator using LC 8.1.1-RC1. The problem was that after updating to Xcode
> 8.0 there were no simulators, other than AppleTV, installed in the Devices
> &
> Simulators list (Xcode>Window>Devices). Adding an iPad Retina simulator
> solved the problem. I don't recall having to add simulators after updating
> to a new version of Xcode but there you go!
>
> Should I reports as a bug that LC crashed when trying to launch an app in
> the simulator because there was no appropriate iOS simulator installed?
>
> BTW, I see that bug # 17779 is still active. Any idea when this might be
> resolved?
>
> Thanks,
>
> Henry
>
>
>
> --
> View this message in context: http://runtime-revolution.
> 278305.n4.nabble.com/ANN-Release-8-1-1-RC-1-tp4708851p4708893.html
> Sent from the Revolution - User mailing list archive at Nabble.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: How to stop LoveCode running in Edit mode

2016-09-25 Thread Keith Clarke
Thanks Richard & Alan for the response. It looks like a plugin is responsible 
for this strange behaviour...

Richard - great and comprehensive background information on some of the things 
going on in LiveCode 'under the hood'. My primary use of the IDE is to create 
utilities and prototypes - so I consider myself very much an IDE ‘driver’ 
rather than any kind of ‘engineer’. Thanks for the first-level checks. I 
created a new stack on 8.1.1 with just a button and a right-click didn’t reveal 
a menu, despite put the mode of this stack = 1 and put the cantmodify of this 
stack = false.

Alan - thanks for the tip regarding plugins & BvG Docu. To continue the above 
car analogy, I don’t venture under the hood but I have a whole raft of plugins 
that I’ve collected over the years (with little thought to housekeeping), 
including BvG Docu 2. I’m sure many of these delve into LiveCode’s inner 
workings. I moved BvG Docu 2 out of my Plugins folder but the behaviour 
persisted. So, I emptied the Plugins folder and LiveCode 8.1.1 seems to be 
behaving as I expect to see. :-)

Am I correct to assume that a clean LiveCode installation would have the 
Plugins folder empty? I ask as despite clearing this out, I still see a couple 
of third-party plugins listed despite the Plugin folder being empty - e.g. Data 
Grid Helper. Have I further housekeeping to undertake to clear the decks of any 
obsolete code?
Best,
Keith..

 
> On 24 Sep 2016, at 19:27, Richard Gaskin  wrote:
> 
> Keith Clarke wrote:
> 
> > There’s nothing special about the stacks that misbehave for me on
> > LiveCode 8.1.0 - right-clicking buttons in Browser/Edit mode that
> > just have simple mouseUp handlers exhibit regular Pointer/Run mode
> > behaviour instead of (not even in addition to) expected edit
> > behaviour. It’s as if the mode switch is ignored by the IDE - even
> > saved stacks opened in edit mode behave as if the IDE is switched to
> > Run.
> 
> LiveCode has no edit mode per se.  The only xTalk I've seen with a true edit 
> mode is SuperCard, in its companion application SuperEdit.  All the rest have 
> the script interpreter running, allowing many different object properties and 
> global properties to define and refine the experience.
> 
> Like HyperCard, LiveCode has a "button tool" and a "field tool", as well as a 
> "browse tool", and like SuperCard LiveCode has a "pointer tool" so 
> interactively working with objects.
> 
> This is a subtle distinction but not merely semantic.  If we consider the 
> actual scope of the various properties in play, things that may seem 
> mystifying can become clear.
> 
> 
> In addition to the "tool" global property, two object properties may 
> contribute to an experience such as you describe:
> 
> The "cantSelect" control property will prevent a control from being 
> interacted with when the global "tool" property is set to "pointer tool".  
> Instead, regardless of what the global "tool" property is set to, when the 
> "cantSelect" of a control is true the object will always behave as though the 
> "tool" global property is set to "browse tool".
> 
> Confounding matters, the Project Browser provides a lock icon next to the eye 
> icon, but while the eye icon governs visibility as we commonly see in other 
> apps, the lock icon is used in many other apps to govern whether an object 
> can be moved (what we would consider the "lockLoc" property), but in the IDE 
> it's used for "cantSelect".
> 
> In brief, you may want to double-check the state of the "cantSelect" property 
> on any control that behaves as though the "tool" global property is set to 
> "browse" when in fact that global property is set to "pointer".
> 
> If the behavior you're seeing is affecting all objects within a stack, you 
> may want to check the stack's "style" property.  The "pointer tool" will only 
> affect stacks open as toplevel, which allows us to have palettes, dialogs, 
> and even other modeless auxiliary windows which are unaffected by the current 
> tool mode.
> 
> If you were to set a stack's style to "modeless", for example, its layering 
> and other behaviors would be the same as toplevel, but it would be immune to 
> changes in the "tool" global propety.
> 
> The "style" property is persistent, allowing you to set it once and then 
> anytime you open the stack with "open" or "go" it retains the specified mode.
> 
> You can also open a stack temporarily in any style by using that style name 
> as a command, e.g.:
> 
>   modeless "MyStack"
> 
> When using the command form of a stack style the "style" property of the 
> stack remains unchanged; to determine the mode of a stack regardless of how 
> that mode was arrived at check the "mode" property, e.g.:
> 
>  put the mode of stack "MyStack"
> 
> Modes are integers rather than style names, which may seem off-putting at 
> first but makes sense as you learn more about them since they allow us to 
> learn of modes that aren't settable as the 

Re: How to stop LoveCode running in Edit mode

2016-09-25 Thread Alan
Keith

Are you, by any chance, using BVG Docu as your Dictionary substitute? Or is it 
installed in your Plugins?  If so, remove it from your 8.1 set of plugins, as 
it's not compatible and lead to this sort of behaviour (for me, at least), if 
I'm understanding your problem correctly.

Alternatively, run through your plugins to see if it's another one that is 
causing issues for you. Take 1/2 of them out, restart, see if problem occurs, 
etc... :-)

HTH

cheers

Alan
--
Alan Stenhouse
alanstenho...@hotmail.com

Check out our apps on the App Store:

BeatSpeak - the multilingual talking metronome
EV-Point - Find your nearest Electric Vehicle Recharge Station.
Re-Collections - Make your family history come to life. Every picture tells 
your story.

On 25 Sep 2016, at 1:46 pm,  
 wrote:

> To: How to use LiveCode 
> Subject: Re: How to stop LoveCode running in Edit mode
> Message-ID: 
> Content-Type: text/plain; charset=utf-8
> 
> Thanks for the response Kay. Unfortunately the problem persists in 8.1.0 on 
> OSX & Windows, but luckily I could rework my project into a stack that would 
> open on 7.1.4, so it?s not a show-stopper.
> 
> There?s nothing special about the stacks that misbehave for me on LiveCode 
> 8.1.0 - right-clicking buttons in Browser/Edit mode that just have simple 
> mouseUp handlers exhibit regular Pointer/Run mode behaviour instead of (not 
> even in addition to) expected edit behaviour. It?s as if the mode switch is 
> ignored by the IDE - even saved stacks opened in edit mode behave as if the 
> IDE is switched to Run. I?ve had this on the IDE native on OSX and on my 
> Windows 10 Parallels VM, so have had to revert to 7.1.4.
> 
> So, given the lack of reports/responses from others concerning this problem 
> it might be something on my environment and/or something slipping into new 
> stacks I create. I?ll see what 8.1.1 brings and if the behaviour persists, 
> I?ll share a problematic stack, to see if it?s something being baked into new 
> stacks by my IDE. Maybe I?ve a plist issue from many previous versions of 
> LiveCode & Rev on these machines and need to do a proper clean installation.
> 
> Best,
> Keith..
> 
>> On 24 Sep 2016, at 03:09, Kay C Lan  wrote:
>> 
>> 8 days and no one actually answered your question. Hopefully you've
>> already figured it out.
>> 
>> No, nothing has changed. It all depends on what events you're using to
>> trigger scripts. i.e. mouseEnter will trigger a message when ever the
>> mouse enters the boundary of the object, no matter Pointer or Browser
>> mode. It has to be that way if you think about it - how would LiveCode
>> work if all messages stopped when you entered Edit mode?  During
>> development you may need to 'Suspend Messages' (Development menu) so
>> you can drag things around etc.
>> 
>> As for the humorous responses these raise a question I've often
>> wondered. How do you pronounce LiveCode. Do you rhyme Live with give
>> or hive? I've always thought LiveCode's slogan should be 'If you Live
>> Code, then LiveCode' - the first Live rhyming with give, the 2nd with
>> hive.


___
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: The Achilles heel of Android and iOS

2016-09-25 Thread Matt Maier
Of the two skills, engineering and sales, it's the sales skill that's more
generally useful (provided there are other humans around).

If an engineer does good engineering they STILL have to find a salesman.

If a salesman does good sales they don't necessarily even need a real
product or service at all.

Engineers don't like that, but it's as real as the sky being blue. You
don't have to manipulate the laws of physics to create value. All you have
to manipulate are people. And even if you do manipulate the laws of physics
you still have to manipulate people anyway.

On Sat, Sep 24, 2016 at 7:31 AM, Kay C Lan  wrote:

> On Fri, Sep 23, 2016 at 8:13 AM, Alejandro Tejada
>  wrote:
> >
> > Buying a NEW PHONE or Tablet is almost like
> > BURNING MONEY, just for the fun of it.
> >
> > Just imagine this (not so far away) scenario:
> >
> > For any reason, people stop jumping in line
> > to buy the latest and greatest phone or tablet
> > and prefer to wait... and wait... just for a few weeks
> > or even a few months (because time flies
> > when you are busy),
>
> Yes and I have a crystal ball that tells me exactly when that is going
> to happen...
>
> 1st sign - the fashion industry disappears. Men and women no longer
> feel it's necessary to wear 'this season's fashion'. Designer shoe
> shops all disappear because no one needs Jimmy Chu's any more, a
> sensible pair of last year's pumps from Target will do just fine.
>
> 2nd sign - economical city cars, not SUVs (small trucks to the rest of
> the world) become America's most popular vehicle purchase. Men in
> particular no longer base their car purchasing preferences on the size
> of their genitalia.
>
> 3rd sign - Facebook, twitter, instagram and their ilk all fade into
> oblivion because no one feels the need to advertise to the world how
> great their life is, and what wonderful things they have, and how many
> more friends they have.
>
> 4th sign - the nightly news is predominately filled with feel good
> stories about individual random acts of altruism, especially to those
> of different race, religion, social or economic background.
>
> 5th and final sign - the world is in a massive depression that makes
> the 'Great Depression' look like a short period of austerity. Even so,
> people will be buying the latest and greatest with money they don't
> have right up until everything collapses around them and ONLY when no
> one will accept their CREDIT cards will they be FORCED to stop buying.
>
> But just to be clear, even after that day, if Apple is only 10% the
> size of what it is now, or maybe gone all together, someone somewhere
> will have to buy something that is better than what you or I have to
> prove that they are better than you or I.
>
> PS saw an excellent video of a couple of guys who went out to gauge
> user response to the new iPhone 7 the day it was officially announced
> - even though it wasn't actually available.
>
> One guy would ask people in the street if they had an iPhone 6 and if
> they'd like to try the iPhone 7, and if Yes, he told them that a new
> feature was the ability to very quickly migrate ALL user data to the
> iPhone 7 at which point he'd hand it to his colleague to do the
> transfer. Whilst this was happening the interviewer would ask the
> owner a couple of questions whilst the 'technician' simply cleaned the
> iPhone 6, removed the case and put a new one on. They'd then hand back
> the 6 to the owner who was 'amazed' at their data was all just there
> so quickly. And yes, many owners thought the iPhone 7 was smoother and
> brighter - cleaning, who'd have thought; but many also liked the
> lighter feel and faster response???
>
> And you wonder why people are so eager to go out a buy the latest and
> greatest when they can't even tell the difference with what they've
> already got. It's not about the phone/shoes/handbag/car, it's about
> the perception of 'the haves' vs 'the have nots'.
>
> ___
> 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: Detect lat/long Intersections

2016-09-25 Thread Matt Maier
You can try using within(object, point) if you define an object using the
points on the boundary of your detection area.

If your area is easy to define then you can just test it. For example, if
it's a circle then you only need to measure the distance between the bus's
location and the center of the circle. If it's a rectangle then you just
measure if the point is less than and greater than the bounding latitude
and longitude.

On Sun, Sep 25, 2016 at 4:24 AM, Javier Miranda V. 
wrote:

> In my effort to get insight about the operations of a public
> transportation company, I was finally able to get the location of the units
> (buses), using LiveCode´s GET URL and the platform´s API they use for
> tracking. While I still need to “polish" some operations with the returned
> JSON, Array etc.  I came with something I have to resolve:  How can I
> determine that a bus has entered an area? The returned information (JSON) I
> got has the lat and lng name/value pairs. I also have the lat/lng of the
> point(s) I want to monitor.
>
> Hope the above is understandable, any help welcome!
>
>
> Javier Miranda V.
> ___
> 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