Re: numberformat question

2021-03-23 Thread Andreas Bergendal via use-livecode
A few years back I needed calculation to a precision of 300 decimals. I found a 
js solution by -hh in the forum, which solved my need:
https://forums.livecode.com/viewtopic.php?f=93=29018=30 


It runs in a browser widget, with easy input from and output to LC script. I 
don’t know the precision limit, but it’s way more than 300 IIRC.

Maybe useful here?

/Andreas
___
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: LC iOS Command 'mergPopActivity'

2020-10-19 Thread Andreas Bergendal via use-livecode
Graham wrote:
”[…] iOS Deployment, for me a nightmare compared with simply coding and 
debugging.”

Indeed - I know the feeling, as do many of us, I believe.

I wise man (Richard Gaskin actually) once said:
”Mobile development is like building a ship in a bottle.”

I find that a very apt and accurate parable (and I dare to say that even 
though, admittedly, I have no actual experience in bottled ship building). :)
___
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: Modal stacks cpu usage

2020-10-05 Thread Andreas Bergendal via use-livecode
Indeed, when I open the Message box and click the Pending messages tab, two 
messages always keep running there:
_EnsureAccept (seems to have to do with the remote debugger library?)
_revInternal_SavePreferences

Just LC 9.6.1 running, no stacks. I’m also on Mojave.


J. Landman Gay via use-livecode 

 Mon, 05 Oct 2020 10:02:14 -0700 

> I'm fairly sure the IDE is sending some pending messages 
> in the background which would account for the CPU usage. 
___
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 app erratically freezing up when loading audio files

2020-09-30 Thread Andreas Bergendal via use-livecode
Unfortunately, it didn’t work. It actually crashes the app in Simulator after 
doing it twice(!).

On the first go, it's loading the audio file, by first setting the path to 
empty, then to the actual path. All is fine.
Going back to gallery card, the player is stopped and deleted (as intended, 
mobileControlDelete).
Repeating the procedure a second time (go to profile card (same or other), 
create new player, load the audio file) now crashes the app every time, at the 
stage of loading the real path.

This is another flavour of strange, but a step backwards.

I think we’ll try with other audio formats than mp3, to see if it makes any 
difference...

If anyone has time, an iPad and interest in taking part in testing, I can 
invite you via TestFlight (my client approves). 

J. Landman Gay via use-livecode 
Some video problems can be solved by setting the filename of the player to 
empty, waiting a few milliseconds, and then setting the new filename.


___
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 app erratically freezing up when loading audio files

2020-09-30 Thread Andreas Bergendal via use-livecode
Thanks Jacqueline, I’ll try that!

I use LC business 9.6.1 stable, Xcode 11.3.1


J. Landman Gay via use-livecode 

 Tue, 29 Sep 2020 22:17:57 -0700 

Some video problems can be solved by setting the filename of the player to 
empty, waiting a few milliseconds, and then setting the new filename. I'm not 
sure it will work in this case but it's worth a try.
Also, if you aren't using the latest version of LC, try that.
___
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 app erratically freezing up when loading audio files

2020-09-29 Thread Andreas Bergendal via use-livecode
Hi folks,

I really need your help now. I’m developing a simple app for a client, to be 
run on iPads in an exhibition starting 8th Oct. It consists of two cards: 
a gallery card, with 16 photos
a profile card which you go to by clicking a photo on the gallery card

On the profile card this is loaded:
the photo again, larger
a short text in a field
an audio file (mp3), which starts playing

All resources are included in file folders with the app, no internet needed. 
The audio files are central to the app. They are recordings of people on 
Guernsey speaking Guernesiais, and sizes range from 1.6Mb to 2.6Mb.

In iOS a player is created with mobileControlCreate, and the audio controller 
is visible, so the user can pause, fast fwd etc. 

The app design and coding is done and it works perfectly in the IDE, as Mac 
standalone (with standard player) and in the iOS simulator (iOS 13.3). 

It works on the client’s iPads too (iOS 13.6), but irregularly freezes (rarely 
crashes), preventing further interaction until the app is killed and restarted. 
The freeze occurs at (or during)  
”mobileControlSet "voicePlayer", "filename", sAudioPath”

In the simulator I get a crash (app quits) if I don’t put ”wait 20 ticks with 
messages” after setting the file path, but never a freeze. I’ve tried to give 
the audio loading a full second wait, in case iPads are slower than simulator, 
and it prevents crash but not the random freezing.

The iPad user can sometimes load the same profile (or different ones, we see no 
pattern) 30-40 times before freeze occurs, sometimes just 3. So it doesn’t seem 
to have anything to do with cache build-up or so. 

So, has anyone experienced similar problems with playing mp3 files on iOS?
Any obvious pitfalls? 

The frustrating thing is that I cannot reproduce the problem in simulator (it 
works perfectly there), and have no iPad myself to hook up for Remote 
debugging. So I have to try various solutions, then upload a new build to 
TestFlight and wait for the client’s ”Sorry, it’s still freezing randomly”…

Help!

Hopeful greetings,
Andreas 
WhenInSpace

___
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: Which git service suits a LiveCoder best?

2020-04-27 Thread Andreas Bergendal via use-livecode
As to the ’how’, I planned to move into script-only stacks more anyway, and 
will also test the Levure framework, and/or Script Tracker.
I’m not sure if those two are compatible though? I mean, if I use Levure 
framework I can’t (needn’t?) use Script Tracker as well, right?

Anyway, with the help of a good free tutorial I’ve set up a GitHub account and 
done the necessary local stuff, including doing basic command line actions 
(yeah, wasn’t that scary after all…), so I’m progressing one step at a time… :)

Andreas
___
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: Which git service suits a LiveCoder best?

2020-04-23 Thread Andreas Bergendal via use-livecode
Thanks everyone for your feedback and insights. Nothing speaks against GitHub, 
it seems, so I’ll give that a try then.

Andreas
___
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


Which git service suits a LiveCoder best?

2020-04-22 Thread Andreas Bergendal via use-livecode
Hi everybody, first time posting to this list, so I hope I get it right… :)

I need your wisdom on a slightly off-topic issue, though seen in the LiveCode 
perspective:
I’ve never used git, but I want to start now. 

I’m working on several LC projects, some with co-developers, several with 
commercial potential, so I need to get more professional with version control 
and other benefits that come with git.

I’ll educate myself on how to use it, but: Step one seems to be to select a git 
host/system.
GitHub is the obvious giant, but is it the best for my needs?

- I use LiveCode, obviously, so is any git service in any way more suited for 
that?
- I’m not very familiar with using the command line, so I’d prefer a git 
service that has software that handles that, as far as possible. (Yeah, I’m a 
developer, I can learn, but hey, we promote the xTalk way here, no? Command 
line seems very much in the opposite side of the spectrum of readable code…)
- I develop on Mac, in case that is a factor when choosing git solution?

So, in short: How do I best get started with git when working with LiveCode on 
Mac, in small teams or alone, wishing minimal use of command line?

Do I just let gravity pull me into the GitHub gas giant, or join a rebel moon? 
:)

Best
Andreas
(xTalker since HyperCard days, in other forums aka SWEdeAndy or WhenInSpace)
___
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