Re: Even Distribution

2020-04-16 Thread Jerry Jensen via use-livecode
Hi Skip, Forgive me if this is not the answer you seek, or an oversimplification, but there is an easy way to find if the jobs can be exactly evenly distributed, with nothing left over: if (tjobs mod tdrivers) = 0 then // it is evenly distrutable. .Jerry > On Apr 16, 2020, at 7:41 PM, Skip

Re: Even Distribution

2020-04-16 Thread Håkan Liljegren via use-livecode
Maybe I’m misunderstanding but if you just want to divide the jobs you could have a counter for the current driver and after assigning a job you increase the counter and wrap it when you exceed the number of drivers. If you’re looking for a more fancy job division algorithm you should take a

Re: Even Distribution

2020-04-16 Thread Skip Kimpel via use-livecode
I have working on creating a loop that would divide the number of jobs by the number of users and then checking to see to see if it is evenly divisible but that is kind of where I am stuck. Everything I have tried thus far has proven to be unsuccessful. SKIP On Thu, Apr 16, 2020 at 10:36 PM

Re: Even Distribution

2020-04-16 Thread Brian Milby via use-livecode
It was already mentioned somewhat, but you need some sort of weight metric for each job.  Save the “smallest” job.  For each driver, assign the largest and smallest job remaining.  When done, add the weight for each driver and give the remaining job to the one with the least work. Thanks,

Re: Even Distribution

2020-04-16 Thread Skip Kimpel via use-livecode
Dev, I have already sorted the jobs out by proximity so I don't need to worry about that. Just need the distribution piece down. I agree, you have a good point an might prove valuable in the future. SKIP On Thu, Apr 16, 2020 at 10:33 PM Skip Kimpel wrote: > Haha... Let me specify, I am

Re: Even Distribution

2020-04-16 Thread Skip Kimpel via use-livecode
Haha... Let me specify, I am looking to do this programmatically :) SKIP On Thu, Apr 16, 2020 at 10:31 PM Dev via use-livecode < use-livecode@lists.runrev.com> wrote: > Since you would probably have long trips and short trips, I would try and > allocate on an estimated time to complete basis so

Re: Even Distribution

2020-04-16 Thread Dev via use-livecode
Since you would probably have long trips and short trips, I would try and allocate on an estimated time to complete basis so that all were busy for about the same time. > On 16-Apr-2020, at 8:23 PM, Skip Kimpel via use-livecode > wrote: > > I have 15 "jobs" that need to be assigned to 7

Re: Even Distribution

2020-04-16 Thread doc hawk via use-livecode
On Apr 16, 2020, at 7:23 PM, Skip Kimpel via use-livecode wrote: > > I have 15 "jobs" that need to be assigned to 7 "drivers". How would you > evenly distribute the jobs to the drivers? Fire two drivers. :_) If they complain, fire two more, and it’s still easy . . .

Even Distribution

2020-04-16 Thread Skip Kimpel via use-livecode
I have 15 "jobs" that need to be assigned to 7 "drivers". How would you evenly distribute the jobs to the drivers? In this case one of the drivers would have 3 jobs while the others have two. Obviously, the number of drivers and number of jobs would fluctuate. This has been my mind twister for

Re: A short question about Xcode

2020-04-16 Thread scott--- via use-livecode
Hello Graham, When you created the development provisioning profile, I assume you added your iPhone’s UUID to the list of allowed test devices. In the Standalone Application Settings—> iOS—> Basic Settings (tab) did you select the correct profile. (Simulator doesn’t care about profiles but

Re: Making an iOS app look like one

2020-04-16 Thread Brian Milby via use-livecode
I wrote the docs, so I guess I can fix them.  The issue is that for widgets that is how the syntax for handlers is displayed.  What can be done is to add an example that shows it as a command without the parentheses. Thanks, Brian On Apr 16, 2020, 4:41 PM -0400, J. Landman Gay via use-livecode

Re: A short question about Xcode

2020-04-16 Thread J. Landman Gay via use-livecode
On 4/16/20 2:04 PM, Graham Samuel via use-livecode wrote: Sadly, my test targets are just simulators. No real device is mentioned. Missed this the first time around. You can still do everything from LC, once you launch a simulator which you need to do from XCode. Wait until it is fully

Re: A short question about Xcode

2020-04-16 Thread J. Landman Gay via use-livecode
On 4/16/20 3:12 PM, Graham Samuel via use-livecode wrote: Why is it so complicated? How can anyone write a single piece of software (I’m talking about XCode) that uses up more bytes than would be needed for the Library of Babel? That. But it is what it is, and I plan to spend double or

Re: A short question about Xcode

2020-04-16 Thread Dev via use-livecode
I feel for you Ralph. My general solution is that it is time for my wife to get a new computer - ie pass on my old one. Pain in the neck and so on, but it doesn’t happen too often. I don’t know how old yours is, but I usually get 5-6 years out of a Mac laptop, and that means my $$$/yr stays in

RE: A short question about Xcode

2020-04-16 Thread Ralph DiMola via use-livecode
First of all. Make A new Provisioning Profile and put a date or other identifying indicator suffix at the end of the profile name. To download it open up Xcode preferences. In the Accounts tap click on "Download Manual Profiles". Then reopen LC and use the new profile that can be identified

Re: Making an iOS app look like one

2020-04-16 Thread J. Landman Gay via use-livecode
On 4/16/20 2:00 PM, Brian Milby via use-livecode wrote: The ability to create additional SVG Icon Libraries is something that I helped get done a while back. Here's a thread with a stack that I developed that helps organize libraries: I should have guessed you'd had a hand in this. ;) Someone

Re: A short question about Xcode

2020-04-16 Thread Graham Samuel via use-livecode
Ralph, I am using a development provisioning profile for iPhone. It was created this month and expires next year. I will try to go over the whole process again. I did as much as I could to include all the icons and splash pages needed for all the phones I was likely to encounter (that was about

Re: A short question about Xcode

2020-04-16 Thread Graham Samuel via use-livecode
Just got the same error with an iPhone 5, which is only running iOS 10.4 - so whatever is wrong, it’s not to do with the newness of the operating system in the device. Why is it so complicated? How can anyone write a single piece of software (I’m talking about XCode) that uses up more bytes

RE: A short question about Xcode

2020-04-16 Thread Ralph DiMola via use-livecode
You can ignore the "this version of Xcode (10.1) was not compatible with the iOS 13 on my iPhone XS" Make sure your using a development provisioning profile. Create a new one and try using it. If I remember correctly I've also seen this when not all Icons or Splash pages are included. Ralph

Re: A short question about Xcode

2020-04-16 Thread Graham Samuel via use-livecode
Sadly, my test targets are just simulators. No real device is mentioned. However, following Ralph’s advice (thanks), i reconnected with my phone unlocked. Things looked promising, but then a message came up saying that maybe this version of Xcode (10.1) was not compatible with the iOS 13 on my

Re: Making an iOS app look like one

2020-04-16 Thread Brian Milby via use-livecode
The ability to create additional SVG Icon Libraries is something that I helped get done a while back. Here's a thread with a stack that I developed that helps organize libraries: http://forums.livecode.com/viewtopic.php?f=10=30411 I need to take another look at it now that we have the ability

Re: A short question about Xcode

2020-04-16 Thread scott--- via use-livecode
I can’t recall whether this is specific to a particular LC license but when physically attaching a device to the computer, on my setup that mobile device appears under the menu Development —> Test Target (along with simulator options) and can simply be selected as the test device… which saves

RE: A short question about Xcode

2020-04-16 Thread Ralph DiMola via use-livecode
Graham, When you attach a device to the Mac it should appear in the devices window of Xcode. A couple of things: 1) Make sure the device is unlocked when attaching. 2) The first time you attach it you should get a message box that will say something to the effect "Do you trust this Mac?" Ralph

Re: Making an iOS app look like one

2020-04-16 Thread Graham Samuel via use-livecode
Just a quick ‘Thank You’ to Andrew, Devin and Bill for their ultra-rapid and detailed replies. There is a lot to take in there, and I’ll respond later if I have to ask yet more questions. It does seem a bit of a dog’s breakfast (if I can say that), doesn’t it? I did not realise you could buy in

A short question about Xcode

2020-04-16 Thread Graham Samuel via use-livecode
I’m following the LC lesson 'How do I build an iOS application?’. I think I’ve done everything they mention, and I have my Apple developer credentials and three iOS devices registered. I have saved my iOS app as a standalone. But when I get to this instruction about getting my app on a real

Re: Making an iOS app look like one

2020-04-16 Thread Devin Asay via use-livecode
Hi Graham, TL/DR: It’s doable, but there is a learning curve. Making your apps look native is doable, but how to get there is a mixed bag. As you’ve discovered, you have to use a range of capabilities. 1. Widgets. They are mostly straightforward to figure out. See my lesson at

Re: Making an iOS app look like one

2020-04-16 Thread Andrew at MidWest Coast Media via use-livecode
> - Fields to display information, some of which must allow input via > keyboard or pasting. Although there is a Native Android Field widget, there > isn?t one for iOS, so I don?t know what my options are. I want the kind of > fonts and font sizes that are typical of iOS, but so far I haven?t

Re: Making an iOS app look like one

2020-04-16 Thread Prothero-earthlearningsol via use-livecode
Graham, I feel your pain! Weren’t there some app building lessons that took you through the process of building a number of commonly included ios apps? I did a couple of them a few years ago. They were kind of quirky to follow, and not using the latest stuff, but perhaps they could inform you

Making an iOS app look like one

2020-04-16 Thread Graham Samuel via use-livecode
Folks, I know this is a desperately naive question, but as I progress with my first serious attempt at an iOS app, which I’m trying to do in a hurry with only my experience of developing LC desktop apps to go on, I am struck by how un-iOS-like it looks. Richard Gaskin has already suggested that

[ANN] Release 9.6.0 DP-4

2020-04-16 Thread panagiotis merakos via use-livecode
Dear list members, We are pleased to announce the release of LiveCode 9.6.0 DP-4. Developer Preview Release = Warning: this is not a stable release. Please ensure that you back up your stacks before testing them. Getting the Release === You can get the