Re: Feedback on my LiveCode promo page

2017-01-09 Thread Matt Maier via use-livecode
Maybe add a "date this was written" to put it in context.

On Mon, Jan 9, 2017 at 8:54 AM, William Prothero via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Folks:
> I’ve been building a site to distribute my education applications. I have
> a page that is intended to promote the use of LiveCode for education
> applications. I’d be happy to get feedback and suggestions on things I may
> have left off.
>
> Link:  http://earthlearningsolutions.org/software-i-use/  earthlearningsolutions.org/software-i-use/>
>
> Regards,
> Bill
>
> William A. Prothero
> http://earthlearningsolution.org/
>
> ___
> 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

revZip functions, compressing and extracting folder for transfer

2017-03-04 Thread Matt Maier via use-livecode
Is there an overview or tutorial on how to use the revZip functions?

Do I have to use each individual function to manually describe the process
of creating and using a zip archive?

Like, to create the archive, do I have to write my own code to open it,
repeat for each file and/or each folder, find and specify the name and
contents and format of each file, then close it, then remember to delete it
later...or is there a command somewhere that just takes a folder and
returns a zipped version of that folder?

The same question for extracting an archive. Do I have to open it,
enumerate the files, repeat for each file and/or folder, figure out that
file's name, contents, and format, copy the file to an appropriate new
file, then close it, then remember to delete it later...or is there a
command that just takes a *.zip and returns an extracted folder?

I already spent a couple hours trying various combinations of quotes around
the parameters to add something to an archive before I figured out put the
data into the URL as a binfile manually. Then this morning I ran across a
different revZip function to add a file directly, instead of raw data,
which I guess is what I was doing. So it would be nice to find out that
there's already a function that does all of the obvious zip archive stuff
automatically and correctly.
___
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


output the script line of a logging message

2017-03-13 Thread Matt Maier via use-livecode
I'm adding some logging function calls to a script. Is there a way to
include the line number of the current line in the script?

Some of the messages are pretty similar, if not identical, so it would be
helpful when reviewing the logs to identify the message by the line number
the function was on when it logged the message.
___
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: D3 LiveCode Chart Examples

2017-03-23 Thread Matt Maier via use-livecode
I get a "this repository is empty" message.

On Thu, Mar 23, 2017 at 10:06 PM, Todd Fabacher via use-livecode <
use-livecode@lists.runrev.com> wrote:

> On Facebook people had expressed a desire to work with D3 and LiveCode. So,
> here is the D3 LiveCode Chart Examples on github:
> https://github.com/digitalpomegranate/D3-Livecode-Charts
>
> --Todd Fabacher & Digital Pomegranate Tame
> ___
> 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: [DIRECT-L] Director Replacement Suggestions & LiveCode with 3D Plugin

2017-03-27 Thread Matt Maier via use-livecode
I'm interested in 3D in Livecode. I  have no idea what any of the other
proper nouns in the message mean.

On Mon, Mar 27, 2017 at 8:41 PM, William Prothero via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Folks:
> This, from Paradigma. What do you think? Anybody interested in 3D in
> LiveCode?
> Bill
>
> > Begin forwarded message:
> >
> > From: Lynn Fredricks 
> > Subject: Re: [DIRECT-L] Director Replacement Suggestions & LiveCode with
> 3D Plugin
> > Date: March 27, 2017 at 4:54:34 PM PDT
> > To: direc...@listserv.uark.edu
> > Reply-To: Adobe Director 
> >
> >> LiveCode has been undergoing major rewriting and upgrading
> >> during the last two years. In my work I have found it to be
> >> quite fast. It is limited in that it has no web browser
> >> plugin, no physics engine, and no 3D.
> >
> > How important is 3D to you all?
> >
> > A few years ago, one of the Paradigma Software team members did a simple
> > wrap of the Irrlict Engine for LiveCode that works on Windows and MacOS
> X.
> > We did a couple of refreshes to fix bugs but there didn't seem to be
> much of
> > a demand (in our analysis, the current user base as of then rarely uses
> > components). We had all of the Irrlict examples ported over as well. It
> > actually got a bit more traction among Xojo users.
> >
> > If we can accertain if there's enough interest for it, we could look at
> > re-releasing it and give it more love and ongoing support. I have set up
> a
> > thread on the Paradigma forum where you can weigh in if this is of
> interest.
> >
> > http://valentina-db.com/en/discussion-forums/2723-
> franklin-3d-for-director-s
> > urvivors
> >
> > Best regards,
> >
> > Lynn Fredricks
> > Paradigma Software
> > http://www.paradigmasoft.com
> >
> > Valentina SQL Server: The Ultra-fast, Royalty Free Database Server
> >
> > ---
> > Adobe Director Mailing List (Direct-L)
> > List Administrator:  Eve M. Owens (emow...@uark.edu)
> >
> > To SUBSCRIBE or to UNSUBSCRIBE go to
> > http://listserv.uark.edu/archives/direct-l.html
> > and click on
> > "Join or leave the list (or change settings)"
> >
> > For list archives
> > http://listserv.uark.edu/archives/direct-l.html
>
> ___
> 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


remote debugger on windows

2017-04-04 Thread Matt Maier via use-livecode
I'm not trying to do anything fancy like debug an app on iOS/Android. I'm
just trying to debug a standalone running on my windows desktop.

So I've got 9.0 dp 6
script debug mode is checked
test target is windows
remote debugger is checked in standalone inclusions

I've tried just running a test from the IDE and saving as a standalone,
then running that standalone with the IDE also running. Neither gives me
the "remote debugging session" popup anymore. It appeared once or twice the
first time I tried but hasn't reappeared since then.

The running application partially freezes at the moment when I would expect
the script window to popup due to a breakpoint. Some of the functions don't
respond, some do. No script window appears, no popup.

Am I missing something?
___
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: remote debugger on windows

2017-04-04 Thread Matt Maier via use-livecode
Thanks Monte. There was an instance of the standalone stuck in task
manager. Forcing that to end allowed the popup and debugging window to work
mostly as described.

It ran into an error when it got to revZipOpenArchive and the script died.
The debugger didn't do anything particularly helpful there, but it is nice
to know where the hard error happened. That's a line that works when I step
through it in the IDE.

On Tue, Apr 4, 2017 at 4:49 PM, Monte Goulding via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Hmm… the remote debugger uses sockets. You might want to check the IDE is
> being allowed to accept connections. Also perhaps check if there are any
> rogue processes of the standalone or IDE in the task manager.
>
> > On 5 Apr 2017, at 9:32 am, Matt Maier via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > I'm not trying to do anything fancy like debug an app on iOS/Android. I'm
> > just trying to debug a standalone running on my windows desktop.
> >
> > So I've got 9.0 dp 6
> > script debug mode is checked
> > test target is windows
> > remote debugger is checked in standalone inclusions
> >
> > I've tried just running a test from the IDE and saving as a standalone,
> > then running that standalone with the IDE also running. Neither gives me
> > the "remote debugging session" popup anymore. It appeared once or twice
> the
> > first time I tried but hasn't reappeared since then.
> >
> > The running application partially freezes at the moment when I would
> expect
> > the script window to popup due to a breakpoint. Some of the functions
> don't
> > respond, some do. No script window appears, no popup.
> >
> > Am I missing something?
> > ___
> > 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

this stack gets every closeStack message

2017-04-04 Thread Matt Maier via use-livecode
So I've got a mainstack (#1). It calls a different mainstack (#2) so that I
can save data like API keys in #2 stack before closing it.

When I'm in the IDE #2 stack is getting and responding to every single
closeStack message that happens, including when I close IDE windows (ex:
script editor, variable watcher, etc).

Does that mean stack #2 is being placed above everything, including the IDE
stacks, in the message hierarchy? Is there a way to have it not do 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


Re: this stack gets every closeStack message

2017-04-04 Thread Matt Maier via use-livecode
I'm not aware of a way to "trace" where a message has been and the keywords
I can think of aren't turning up anything promising in the dictionary or
google.

On Tue, Apr 4, 2017 at 6:10 PM, dunbarx via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Two independent stacks are at the same "level" in the hierarchy. Unless one
> is put into use or otherwise explicitly made to trap messages above another
> stack (like inserting a stack script into back, for example), I am not sure
> how you are seeing what you are seeing.
>
> Can you send a "closeStack" message from your "lower" stack and trace it?
>
> Craig Newman
>
>
>
> --
> View this message in context: http://runtime-revolution.
> 278305.n4.nabble.com/this-stack-gets-every-closeStack-
> message-tp4713692p4713694.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: this stack gets every closeStack message

2017-04-04 Thread Matt Maier via use-livecode
That's already what's happening. This stack is getting every closeStack
message that happens, even the ones that fire off when the IDE's windows
close. It's just a stack opened from a file. It shouldn't be in between the
IDE's windows and the the engine.

On Tue, Apr 4, 2017 at 9:49 PM, Craig Newman via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Can you put a closeStack handler in the stack that seems like it ought not
> to be in the hierarchy, and see when it fires? Then maybe you can figure
> out what caused it?
>
>
> Craig
>
>
>
>
> -Original Message-
> From: Matt Maier via use-livecode 
> To: How to use LiveCode 
> Cc: Matt Maier 
> Sent: Tue, Apr 4, 2017 10:23 pm
> Subject: Re: this stack gets every closeStack message
>
> I'm not aware of a way to "trace" where a message has been and the keywords
> I can think of aren't turning up anything promising in the dictionary or
> google.
>
> On Tue, Apr 4, 2017 at 6:10 PM, dunbarx via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> > Two independent stacks are at the same "level" in the hierarchy. Unless
> one
> > is put into use or otherwise explicitly made to trap messages above
> another
> > stack (like inserting a stack script into back, for example), I am not
> sure
> > how you are seeing what you are seeing.
> >
> > Can you send a "closeStack" message from your "lower" stack and trace it?
> >
> > Craig Newman
> >
> >
> >
> > --
> > View this message in context: http://runtime-revolution.
> > 278305.n4.nabble.com/this-stack-gets-every-closeStack-
> > message-tp4713692p4713694.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
>
>
> ___
> 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: revZip functions, compressing and extracting folder for transfer

2017-04-06 Thread Matt Maier via use-livecode
I pulled the zip archiving functions out of the Master Library stack.

It worked...except that it truncated the first character of every filename
in the archive.

This is the offending code from the addFolderToArchive handler:
put theFile into theArchiveItemName
put offset(pRootFolderPath, theArchiveItemName) into theCharNo
if theCharNo is 0 then return "file is not in expected folder"
delete char 1 to (the number of chars of pRootFolderPath + 1) of
theArchiveItemName # strip root folder up to slash (zip item names
shouldn't start with a slash)

The value I see for pRootFolderPath includes the ending slash, so the "+ 1"
here is deleting the first character of the filename.

Can I just remove the "+ 1"? Will that make it work on Windows but fail on
another system?

On Sat, Mar 4, 2017 at 12:49 PM, Phil Davis via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Here is a sanitized version of a simple zip library stack I use in
> projects. It keeps me from having to get down into the nuts and bolts every
> time I want to zip a file:
>
>https://www.dropbox.com/s/t8z27p8cy5ir1v9/libZip.livecode?dl=0
>
> HTH -
> Phil Davis
>
>
>
> On 3/4/17 9:25 AM, Matt Maier via use-livecode wrote:
>
>> Is there an overview or tutorial on how to use the revZip functions?
>>
>> Do I have to use each individual function to manually describe the process
>> of creating and using a zip archive?
>>
>> Like, to create the archive, do I have to write my own code to open it,
>> repeat for each file and/or each folder, find and specify the name and
>> contents and format of each file, then close it, then remember to delete
>> it
>> later...or is there a command somewhere that just takes a folder and
>> returns a zipped version of that folder?
>>
>> The same question for extracting an archive. Do I have to open it,
>> enumerate the files, repeat for each file and/or folder, figure out that
>> file's name, contents, and format, copy the file to an appropriate new
>> file, then close it, then remember to delete it later...or is there a
>> command that just takes a *.zip and returns an extracted folder?
>>
>> I already spent a couple hours trying various combinations of quotes
>> around
>> the parameters to add something to an archive before I figured out put the
>> data into the URL as a binfile manually. Then this morning I ran across a
>> different revZip function to add a file directly, instead of raw data,
>> which I guess is what I was doing. So it would be nice to find out that
>> there's already a function that does all of the obvious zip archive stuff
>> automatically and correctly.
>> ___
>> 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
>>
>>
> --
> Phil Davis
>
>
> ___
> 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: this stack gets every closeStack message

2017-04-10 Thread Matt Maier via use-livecode
I think I figured it out. Thanks for the ideas about troubleshooting but
none of those rabbit holes were particularly informative.

Eventually while doing something else I went back through the dictionary
entries for the various commands that make use of external stacks. It
finally dawned on me that I had mindlessly listed this actual stack in the
same "start using" list as all of my script only library stacks. Then I was
also using "go to stack" when the user actually opened it.

So that makes sense, right? The reason it was getting every message like a
library stack is that I told Livecode to use it as a library stack. I think
I understand the different options a little better now. All I need is "go
to stack" with the file path at the moment I need the mainstack; I don't
have to include it previously or anything.

On Wed, Apr 5, 2017 at 9:29 AM, Bob Sneidar via use-livecode <
use-livecode@lists.runrev.com> wrote:

> the executionContexts
> Bob S
>
> On Apr 4, 2017, at 19:22 , Matt Maier via use-livecode <
> use-livecode@lists.runrev.com<mailto:use-livecode@lists.runrev.com>>
> wrote:
>
> I'm not aware of a way to "trace" where a message has been and the keywords
> I can think of aren't turning up anything promising in the dictionary or
> google.
>
> ___
> 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: Swiping between cards - metaphor end-of-the-road?

2017-04-27 Thread Matt Maier via use-livecode
Maybe each card could have a parameter like "swipeTo" which would be the id
of another card. Default could be nothing, which would disable swipe. But
if there's a card id in there then swiping would put that card "underneath"
so it's visible as the current card moves and if the swipe gesture
completes the stack moves to that new card.

The swipe gesture might be just a scroll that's handled as a swipe when the
card can't scroll in that direction. Like if you swipe up/down the content
scrolls, but if you swipe left/right, since there's no scroll in that
direction, you get a swipe to another card.

On Wed, Apr 26, 2017 at 1:41 PM, Paul Dupuis via use-livecode <
use-livecode@lists.runrev.com> wrote:

> On 4/26/2017 3:02 PM, Richard Gaskin via use-livecode wrote:
> > Either way, the gestures themselves are only part of the challenge.
> > In fact, for card swiping we need only one, a swipe. The bigger part
> > is handling the dual-card render during the gesture.
>
>
> This would work (in theory) for the visualization except that didn't
> visual effect end in LC 8 with deprecating quicktime?
>
>   visual effect wipe left slowly
>   go next cd
>
>
> ___
> 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: Swiping between cards - metaphor end-of-the-road?

2017-04-27 Thread Matt Maier via use-livecode
That's a good point. Android apps commonly uses "swipe down" to trigger a
refresh. The swipe still physically happens, but there's just a gray
background behind it, and it pops back into place and resets.

The main problem seems to be what happens during a swipe. Part of the
effect is the feedback of seeing one card move on top of another. After the
swipe is completed we can just use regular messages to do whatever.

Another swipe effect would be pulling the next card in to fill the space
left by the moving card, rather than the next card being stationary
underneath.

On Thu, Apr 27, 2017 at 10:30 AM, Richard Gaskin via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Matt Maier wrote:
>
> > Maybe each card could have a parameter like "swipeTo" which would be
> > the id of another card. Default could be nothing, which would disable
> > swipe. But if there's a card id in there then swiping would put that
> > card "underneath" so it's visible as the current card moves and if
> > the swipe gesture completes the stack moves to that new card.
> >
> > The swipe gesture might be just a scroll that's handled as a swipe
> > when the card can't scroll in that direction. Like if you swipe
> > up/down the content scrolls, but if you swipe left/right, since
> > there's no scroll in that direction, you get a swipe to another card.
>
> I like where you're going with that.  But it also suggests other options
> that would be useful, more stuff to think over before submitting a request.
>
> Rather than a single swipeDestination property to designate which card we
> go to during a swipte, ideally we'd want that for each of the four cardinal
> directions, e.g. swipeLeftDestination, swipeTopDestination, etc.
>
> Also, it would be nice to be able to specify the origin threshold, since
> sometimes we'd want to initiate a drag from any part of the card and other
> times only from a certain edge.
>
> Hmmm...not so simple once we dive into the full range of use-cases, but I
> do think it's worth exploring this here because it would be SO much
> simpler to use LC's card metaphor for modern apps if we had more fluid
> transition capabilities.
>
> --
>  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


develop a hybrid app

2017-05-03 Thread Matt Maier via use-livecode
Any Livecode freelancers we can hire to build a hybrid app?

We've got a simple web app but most of the functions it needs require
direct access to the phone.

lilspace.me

The idea is for event organizers to incentivize and organize attendees to
"focus" on the event by putting their phone away and not looking at it for
a while. We've had about 100 people use the web app to track their time
focusing. Sooner or later we'll need things like auto-reply, screen
dimming, activity tracking, silent mode, etc so we might as well get
started on that now.
___
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: develop a hybrid app

2017-05-04 Thread Matt Maier via use-livecode
Is there a concise list of what Livecode can do on mobile devices?

Activity tracking - some kind of awerenesses that the user interacted with
their phone during focus time. Did they turn the screen on, did they spend
time out if the lilspace app, did they send/receive messages. The idea is
to trigger a "not really focusing" flag. Stuff like music and photos would
be fine, 10 minutes on Facebook wouldn't.

Auto-reply - prewritten messages that go out when you're focusing to
explain what you're doing and when you'll be done. Like "I'm at yoga. I'll
check my phone at 5".


On May 4, 2017 06:37, "pink via use-livecode" 
wrote:

Access to phone functions is limited. On the iPhone is it extremely limited.

Can you be more specific about what you mean by "activity tracking" and
"auto-reply"?

Screen dimming and silent mode definitely cannot be triggered by an iPhone
app, I am not sure about Android but I doubt it can be done in LiveCode
without some sort of external being built. Your best bet would be to have
reminders setup to say "please switch on silent mode"

What else do you want such an app to do?



-
---
Greg (pink) Miller
mad, pink and dangerous to code
--
View this message in context: http://runtime-revolution.
278305.n4.nabble.com/develop-a-hybrid-app-tp4714468p4714472.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: develop a hybrid app

2017-05-04 Thread Matt Maier via use-livecode
On Thu, May 4, 2017 at 8:39 AM, Richard Gaskin via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Matt Maier wrote:
>
> > Is there a concise list of what Livecode can do on mobile devices?
>
> I'm not sure, but filtering the Dictionary with "mobile" will reveal
> language elements specific to those platforms.


Okay, so am I doing it right if I find "mobileIdleTimerLocked()" and
interpret it to mean that on both ios and android I can find out if the
user has interacted with the phone because mobileIdleTimerLocked will be
false. Or mobileComposeTextMessage will let us bring up a texting program
with a message, but the user would still have to send it.

I don't see much else.


>
>
>
> > Auto-reply - prewritten messages that go out when you're focusing to
> > explain what you're doing and when you'll be done. Like "I'm at yoga.
> > I'll check my phone at 5".
>
> That would be handled on the server, no?
>

Wouldn't we need something on the phone to know that a call or text is
coming in?


>
> What are you using on the backend?


Bubble.is. It's just a web app right now. The idea is to make it "hybrid"
enough to access phone activity like incoming messages and interaction.


>
>
> --
>  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: develop a hybrid app

2017-05-04 Thread Matt Maier via use-livecode
What's a language token?

On Thu, May 4, 2017 at 10:11 AM, Richard Gaskin via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Matt Maier wrote:
>
> > On Thu, May 4, 2017 at 8:39 AM, Richard Gaskin wrote:
> >
> >> Matt Maier wrote:
> >> > Is there a concise list of what Livecode can do on mobile devices?
> >>
> >> I'm not sure, but filtering the Dictionary with "mobile" will reveal
> >> language elements specific to those platforms.
> >
> > Okay, so am I doing it right if I find "mobileIdleTimerLocked()" and
> > interpret it to mean that on both ios and android I can find out if
> > the user has interacted with the phone because mobileIdleTimerLocked
> > will be false. Or mobileComposeTextMessage will let us bring up a
> > texting program with a message, but the user would still have to send
> > it.
> >
> > I don't see much else.
>
> ...for that specific question.  For the original question of "what
> LiveCode can do on mobile devices", when I filter the Dictionary with
> "mobile" I see dozens of language tokens.
>
>
> >> > Auto-reply - prewritten messages that go out when you're focusing
> >> > to explain what you're doing and when you'll be done. Like "I'm at
> >> > yoga. I'll check my phone at 5".
> >>
> >> That would be handled on the server, no?
> >
> > Wouldn't we need something on the phone to know that a call or text is
> > coming in?
>
> Ah, I see. As worded it wasn't clear what the app would be replying to.
>
> I don't believe LC currently offers a built-in solution for altering how
> incoming calls are handled, but if iOS provides an API for that you could
> write a library for it with LC Builder.
>
>
> --
>  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


breakpoint on parameter

2017-05-23 Thread Matt Maier via use-livecode
I want to find out which parts of my code are making changes to a control's
parameter. Specifically, I've got an arrow that I want to be black, and it
is black when it's created, but then it turns gray. I can't find the script
that's turning it gray.

I don't know where to put a breakpoint in the script.

Can I put a breakpoint on that control's color parameter, so execution
stops whenever something modifies it and goes to the script that's doing
the modification?
___
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


how to download an image

2017-06-03 Thread Matt Maier via use-livecode
I'm trying to download an image to a file but it's always 0kb

Here's an example of the URL I've got //
s3.amazonaws.com/appforest_uf/f1496548544475x140387106221169240/grilled_cheese_on_plate.jpg

*put* URL ("binfile:" & tNewImageLink) into URL ("binfile:" & tNewFolder &
"/" & tNewImageName)


*get* url tNewImageLink

*put* it into URL ("binfile:" & tNewFolder & "/" & tNewImageName)
___
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 download an image

2017-06-03 Thread Matt Maier via use-livecode
That gives me a 375b corrupted file. So that's progress.

On Sat, Jun 3, 2017 at 9:49 PM, Scott Rossi via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Remove the first "binfile" usage, so your code reads like this:
>
> put URL tNewImageLink into URL ("binfile:" & tNewFolder & "/" &
> tNewImageName)
>
>
> I used the following to test download to the desktop and it works as
> expected:
>
> put
> "http://s3.amazonaws.com/appforest_uf/f1496548544475x140387106221169
> 240/gri
> lled_cheese_on_plate.jpg" into theURL
> put url theURL into url ("binfile:" & specialFolderPath("desktop") &
> "/DLimage.jpg")
>
>
> Regards,
>
> Scott Rossi
> Creative Director
> Tactile Media, UX/UI Design
>
>
>
>
>
> On 6/3/17, 9:38 PM, "use-livecode on behalf of Matt Maier via
> use-livecode"  use-livecode@lists.runrev.com> wrote:
>
> >I'm trying to download an image to a file but it's always 0kb
> >
> >Here's an example of the URL I've got //
> >s3.amazonaws.com/appforest_uf/f1496548544475x140387106221169
> 240/grilled_ch
> >eese_on_plate.jpg
> >
> >*put* URL ("binfile:" & tNewImageLink) into URL ("binfile:" & tNewFolder &
> >"/" & tNewImageName)
> >
> >
> >*get* url tNewImageLink
> >
> >*put* it into URL ("binfile:" & tNewFolder & "/" & tNewImageName)
> >___
> >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


Re: how to download an image

2017-06-04 Thread Matt Maier via use-livecode
I got bubble.is to send the base64 encoded image data instead of a link. So
just putting the base64decoded data into URL is working.

On Sun, Jun 4, 2017 at 12:41 AM, Colin Holgate via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Scott’s routine worked for me too. It’s worth checking where the spaces
> and returns there are in his test, I had to edit it from the email version.
> I also just tested in the multiline message box. For testing in a button,
> in LiveCode 8, you have to declare the variable as well. This was the whole
> button script:
>
> on mouseUp
>
> local theURL
>
> put "http://s3.amazonaws.com/appforest_uf/f1496548544475x140387106221169
> 240/grilled_cheese_on_plate.jpg" into theURL
>
> put url theURL into url ("binfile:" & specialFolderPath("desktop") &
> "/DLimage.jpg")
>
> end mouseUp
>
>
> ___
> 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

stack & IDE not responding during download

2017-06-04 Thread Matt Maier via use-livecode
Every time my script downloads an image the entire interface and IDE locks
up and says "not responding" until the download finishes. I tried adding
"lock screen" but that didn't help.

*lock* screen

*put* tImg into tDis["img_thing"]

*set* the httpHeaders to "Content-Type: application/json" & cr &
"Authorization:
Bearer" && pToken

*put* jsonfromarray(tDis) into tPayload

*if* sMode is "test" *then*

*post* tPayload to URL "
https://howstr.bubbleapps.io/version-test/api/1.0/wf/get_img";

*else*

*post* tPayload to URL "https://howstr.bubbleapps.io/api/1.0/wf/get_img";

*end* *if*

*put* arrayfromjson(it) into tResponseA

*put* tResponseA["response"]["image"] into tNewImage

*put* tResponseA["response"]["filename"] into tNewImageName

*put* base64decode(tNewImage) into url ("binfile:" & tNewFolder & "/" &
tNewImageName)

*unlock* screen
___
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 download an image

2017-06-04 Thread Matt Maier via use-livecode
Hokay, so, apparently post is a blocking command, which is a bad idea for
multiple potentially large files. So I'm trying to use this, but it's still
downloading 1kb files.

*put* "https:" & tImgUrl into tImgUrl

*set* itemdelimiter to "/"

*put* item -1 of tImgUrl into tImgName

*set* itemdelimiter to comma

*put* tNewFolder & "/" & tImgName into tNewFile

libURLDownloadToFile tImgUrl,tNewFile

On Sun, Jun 4, 2017 at 8:55 AM, Matt Maier  wrote:

> I got bubble.is to send the base64 encoded image data instead of a link.
> So just putting the base64decoded data into URL is working.
>
> On Sun, Jun 4, 2017 at 12:41 AM, Colin Holgate via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
>> Scott’s routine worked for me too. It’s worth checking where the spaces
>> and returns there are in his test, I had to edit it from the email version.
>> I also just tested in the multiline message box. For testing in a button,
>> in LiveCode 8, you have to declare the variable as well. This was the whole
>> button script:
>>
>> on mouseUp
>>
>> local theURL
>>
>> put "http://s3.amazonaws.com/appforest_uf/f1496548544475x1403871
>> 06221169240/grilled_cheese_on_plate.jpg" into theURL
>>
>> put url theURL into url ("binfile:" & specialFolderPath("desktop") &
>> "/DLimage.jpg")
>>
>> end mouseUp
>>
>>
>> ___
>> 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 download an image

2017-06-04 Thread Matt Maier via use-livecode
Yeah, I've got a list of URLs like the one in the first message
//s3.amazonaws.com/appforest_uf/f1496548544475x140387106221169
240/grilled_cheese_on_plate.jpg

I'm trying to download the images from AWS to a folder.

Previously I couldn't get "put URL into binfile" to work (0kb files) so I
tried downloading the base64 encoded image data instead. That required
using get/post, which is blocking. Blocking is bad.

So I tried getting the URL instead so I can use libURLDownloadToFile
instead.

I'm getting the same 0kb file problem.

On Sun, Jun 4, 2017 at 10:56 AM, Mark Wieder via use-livecode <
use-livecode@lists.runrev.com> wrote:

> On 06/04/2017 10:06 AM, Matt Maier via use-livecode wrote:
>
>> Hokay, so, apparently post is a blocking command, which is a bad idea for
>> multiple potentially large files. So I'm trying to use this, but it's
>> still
>> downloading 1kb files.
>>
>> *put* "https:" & tImgUrl into tImgUrl
>>
>> *set* itemdelimiter to "/"
>>
>> *put* item -1 of tImgUrl into tImgName
>>
>> *set* itemdelimiter to comma
>>
>> *put* tNewFolder & "/" & tImgName into tNewFile
>>
>> libURLDownloadToFile tImgUrl,tNewFile
>>
>
> Multiple unknowns here.
> First of all, you're conflating 'post' and 'downloading' which is muchly
> confusing.
>
> I assume that tImgUrl starts with "//" at the start of this code.
> Otherwise you'll need to add it after the "https:" prefix.
>
> And don't you want a callback message to make it asynchronous?
> And remember to check the URLStatus in the callback handler.
>
> --
>  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


Re: how to download an image

2017-06-04 Thread Matt Maier via use-livecode
I've only tried it in the IDE so far.

On Sun, Jun 4, 2017 at 12:36 PM, tbodine via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Is this happening in a standalone or the IDE? A standalone would need
> revsecurity.dll for https.
>
> Tom B.
>
>
>
> --
> View this message in context: http://runtime-revolution.
> 278305.n4.nabble.com/how-to-download-an-image-tp4715487p4715503.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 download an image

2017-06-20 Thread Matt Maier via use-livecode
Just following up for posterity.

The livecode team figured out that setting the httpheaders to empty solved
the problem, or at least part of it.
I was setting them to connect to the API that sends the link for the image.
Now setting them to empty before trying to download the image partly works.

It works for "put url"; the image file shows up and isn't corrupted.
It hasn't worked for libURLdownloadToFile; the image file doesn't show up.

On Sun, Jun 4, 2017 at 1:19 PM, Mark Wieder via use-livecode <
use-livecode@lists.runrev.com> wrote:

> I dunno. Here's what I just did and it loaded the image with no problems.
> All 97,183 bytes worth. Do you have write permission to the folder you're
> downloading to?
>
> on mouseUp
>local tImgUrl
>local tImgName
>local tNewFile
>constant tNewFolder="/home/mwieder/Desktop"
>
>put "//s3.amazonaws.com/appforest_uf/f1496548544475x140387106221
> 169240/grilled_cheese_on_plate.jpg" into tImgUrl
>
>put "https:" & tImgUrl into tImgUrl
>set itemdelimiter to "/"
>put item -1 of tImgUrl into tImgName
>set itemdelimiter to comma
>put tNewFolder & "/" & tImgName into tNewFile
>libURLDownloadToFile tImgUrl,tNewFile, "finished"
> end mouseUp
>
> on finished
>answer "All Done"
> end finished
>
>
> --
>  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


Re: Capturing screen into image

2017-07-01 Thread Matt Maier via use-livecode
This is the script I use to capture screenshots from particular areas

*on* snapCaptureButtMouseUp pLine

*-- clicked in node details to capture a screenshot from the previously
committed captureArea rect*

*-- set the loc of stack "captureArea" to -1000,-1000*

*-- close stack "captureArea"*

*-- should already be closed*

*-- export snapshot from rect sCaptureAreaGeometry["captureAreaRect"] to
image "figureHolder" stack "nodeDetails"*

*put* the effective filename of this stack into tPath

*set* the itemDelimiter to slash

*put* "temp/screenshot.gif" into item -1 of tPath

*export* snapshot from rect sCaptureAreaGeometry["captureAreaRect"] to file
tPath as GIF

*set* the filename of image "figureHolder" stack "nodeDetails" to tPath

*-- size the image*

*put* the rect of field "editData" stack "NodeDetails" into tQuery["maxRect"
]

*put* the long id of image "figureHolder" stack "NodeDetails" into tQuery[
"longID"]

*put* fitImageToConstraint(tQuery) into tGimme

*set* the width of image "figureHolder" stack "NodeDetails" to tGimme[
"width"]

*set* the height of image "figureHolder" stack "NodeDetails" to tGimme[
"height"]

*set* the loc of image "figureHolder" stack "NodeDetails" to tGimme["center"
]

*-- the clear button can be show now*

*set* the visible of button "clearImgButt" stack "NodeDetails" to true

*set* the visible of button "expandImgButt" stack "NodeDetails" to true

*put* the cNodeDetails of stack "NodeDetails" into tDeets

*put* empty into tDeets[pLine]["new"]

*put* true into tDeets["newFigure"]

*-- put "screenshot" into tDeets[pLine]["new"]["copyFrom"]*

*put* tPath into tDeets[pLine]["new"]["copyFrom"]

*put* uuid("random") into tUUID

*put* tUUID & ".gif" into tDeets[pLine]["new"]["newName"]

*set* the cNodeDetails of stack "NodeDetails" to tDeets

*end* snapCaptureButtMouseUp

On Sat, Jul 1, 2017 at 12:14 AM, Terence Heaford via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Thanks for your help.
>
> I have changed the script to below and it does not work.
>
> set the lockLoc of image "myImage" to false
> export snapshot from rectangle (the rect of widget "Browser") to
> pictVariable as PNG
> put pictVariable into image "myImage"
> set the width of image "myImage" to the formattedWidth of image "myImage"
> set the height of image "myImage" to the formattedHeight of image "myImage"
> print card from topleft of image "myImage" to bottomRight of image
> “myImage"
>
> The image “myImage" on the screen seems to be the same as widget “Browser”
> but the print card line of the script shows the grey bar at the top.
>
>
> Any other ideas please.
>
> Thanks
>
> Terry
>
>
>
>
> > On 30 Jun 2017, at 22:48, Mark Schonewille via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > Set the lockLoc of the image to false. Set the text of the image to the
> PNG data (you're doing this correctly), but don't set the rect of the image
> first. If necessary, set the width of the image to the formattedWidth of
> the image and set the height of the image to the formattedHeight of the
> image.
> >
> > Kind regards,
> >
> > Mark Schonewille
> > http://economy-x-talk.com
> > https://www.facebook.com/marksch
> >
> > Buy the most extensive book on the
> > LiveCode language:
> > http://livecodebeginner.economy-x-talk.com
> >
> > Op 30-Jun-17 om 20:38 schreef Terence Heaford via use-livecode:
> >> This script does not work.
> >>
> >> export snapshot from rectangle (the rect of widget "Browser") to
> pictVariable as PNG
> >>
> >> set the rect of image "myImage" to the rect of widget "Browser"
> >>
> >> put pictVariable into image "myImage"
> >>
> >> print card from topleft of image "myImage" to bottomRight of image
> “myImage"
> >>
> >>
> >> After placing the captured image into “myImage” there is a grey bar at
> the top and the full width of the image is not visible.
> >>
> >> Am I doing something wrong?
> >>
> >>
> >> Thanks
> >>
> >> Terry
> >> ___
> >> 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
>
___
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

clipboarddata mixed up

2017-07-04 Thread Matt Maier via use-livecode
I'm not sure how to figure out the difference in what's happening here.

1) use window's clipping tool to take a screenshot and hit ctrl+c to copy
the picture to the clipboard
2) right click on a picture in chrome and select copy to copy the picture
to the clipboard

In both cases, if I open a document in open office I can past the picture

But when I try to get the picture with clipboarddata["image"] it's empty in
case (2).

Additionally,
I selected the image I pasted into the document in case (2) and hit ctrl+c
to copy it to the clipboard, then pasted it into the document a second time
to confirm it was copied. After that, clipboarddata["image"] still has the
OLD image data in it.

It's like there are two clipboards?

I tried using
put the keys of clipboarddata into tKeys
but that doesn't give me anything.
___
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


play sound plays the wrong sound

2017-07-06 Thread Matt Maier via use-livecode
Any ideas on this?

I downloaded a beep in *.mp3 format.

When I play the file with windows media player it sounds like a beep.
When I play the file with the "play" command it sounds horribly distorted.
___
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: play sound plays the wrong sound

2017-07-06 Thread Matt Maier via use-livecode
I just found this note at BYU. Apparently "play" only works with
uncompressed file formats. I switched to the *.wav version and it works
http://livecode.byu.edu/audio/audioIntro.php

Why is this stuff not in the dictionary?

On Thu, Jul 6, 2017 at 7:22 AM, tbodine via use-livecode <
use-livecode@lists.runrev.com> wrote:

> I believe the problem is the audio file settings. Open the file in an audio
> editor and save it again with bitrate of 16 and 44100 Hz.
>
> HTH,
> Tom B.
>
>
>
> --
> View this message in context: http://runtime-revolution.
> 278305.n4.nabble.com/play-sound-plays-the-wrong-sound-
> tp4716673p4716675.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: Web vs Native (was Re: HTML5 limitations?)

2017-07-27 Thread Matt Maier via use-livecode
On Wed, Jul 26, 2017 at 5:27 PM, Richard Gaskin via use-livecode <
use-livecode@lists.runrev.com> wrote:

> hh wrote:
> >> RG wrote:
> >> My bigger question here is what needs to be delivered specifically
> >> in a web browser window vs a native app, and why?
> >
> > This questions browsers ("the web") as platform in general.
> > TMHO, you are too late with that question, by 25 years.
>
> Perhaps just poor writing on my part.  I'm not questioning whether web
> pages exist or are useful.  Of course they are.
>
> As I think about this more, there seem to be two question here:
>
> - What are the use-cases where a native app is a better choice
>   than a web app?
>

- when the app needs access to the phone's functions (notifications, GPS,
screen dimming, text messages, etc)
- when it's important that at least some of the app's features work in
degraded/denied signal environments (no/low data)
- when your users don't understand what they're doing and insist that they
can't find your web app in the app store
- when you want to ensure that you control the experience; a web app is
accessed through the browser which means the browser's navigation and
settings take priority


>
> - What are the perceived benefits of web apps and native apps?
>

- web apps make your app instantly available to everyone in the world who
has internet and a browser
- web apps automatically "support" all operating systems and devices,
provided they have internet and a browser
- web apps don't have to compromise with any of the app stores; you can
offer anything you want whenever you want
- web apps have more direct access to other web services, so if you need to
leverage them it can be easier

- native apps can easily be more expensive than web apps for the same
functionality because they have more and more specific standards

- there are several "hybrid app" options where you get something installed
on the phone but it's just the bare minimum, not the whole app; usually
it's a native browser that only navigates to the web app


>
> The first question is about actual capabilities, and the second is about
> the psychological drivers of clients and customers, which may or may not
> reflect those capabilities.
>
> --
>  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: Web vs Native (was Re: HTML5 limitations?)

2017-07-27 Thread Matt Maier via use-livecode
Word. I barely have any experience and I've already run into multiple
users/customers who think that "add to homescreen" is impossible hacker
magic.

High market penetration of smartphones doesn't mean anyone actually has any
idea how to use their smartphone. Most people are at about the
Fischer-Price My First Shapes and Colors level. Except that they've aged
out of the phase where it's easy to learn new things. So they feel like an
idiot baby and it takes way too much effort to push through the learning
curve.

A lot of developers use "hybrid apps" (like PhoneGap) as the quickest,
easiest way to get a web app into the app store(s). It doesn't actually
have an app in it. It's basically just a browser with a built-in link to
the web app. But there are a lot of users who don't understand how to use
the app if it's not in the app store.

On Thu, Jul 27, 2017 at 9:56 AM, Bob Sneidar via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Which point illustrates something I'm sure seasoned developers have known
> for a long time: There is no way to write an app so that it will satisfy
> everyone, especially these days with all the ways to deliver an app!
>
> To illustrate, I had a gal here in the office lose some documents, because
> I had to reinitialize the copier HD in order to fix a problem that
> installing a web app for the copier had caused. Come to find out, she scans
> documents and keeps them stored on the copier for many days until she can
> get around to processing them. I asked her why she didn't just scan the
> documents directly into our document management app, and she said she
> doesn't do things that way, but instead uses Acrobat (or some other app) to
> COMBINE THE SCANNED DOCUMENTS WITH EXISTING PDF DOCUMENTS! All documents
> become one PDF!
>
> So I told her that it would be much better having each kind of document as
> a discreet document, so that routing each document somewhere else would not
> require her to pull the document apart again. Her response was, "This is
> the way I have always done it. This is the way I will always do it. I am
> not going to change!"
>
> Oh kay then. Turns out you cannot program around human will.
>
> Bob S
>
>
> > On Jul 27, 2017, at 09:03 , Richard Gaskin via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > But we're making an app anyway, because of feedback from his customers
> which suggests that using bookmarks on mobile is too onerous.  They
> expressed a very strong preference for having in icon on their home screen,
> and even the one step needed to put a bookmark on their home screen was
> perceived as too difficult.  They'd much rather find, download, and install
> an app just to get an easy launch.
> >
> > --
> > Richard Gaskin
>
>
> ___
> 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 create a list in easyJSON

2017-01-07 Thread Matt Maier via use-livecode
As a warning for others, fastJSON is not directly interchangeable with
easyJSON.

I'm using a big array that has a couple levels of numeric keys before you
get to the text keys. When fastJSON converts the array to JSON it throws
out the numeric keys and just turns everything into a list.

I don't think that would actually be a problem, except that in my data
structure the [0] key has important metadata in it and when fastJSON
converts back from JSON to an array it doesn't start counting at 0, so all
of the data comes back but it's offset.

At least, this is the newest version of fastJSON from github and some old
version of easyJSON that I've had around for a long time (not sure what
version it is).

On Tue, Jan 3, 2017 at 8:05 AM, Bob Sneidar 
wrote:

> Hmmm... all of this may explain why a table in a PDF fillable form breaks
> the controls out as columns, not records. So when populating an FDF file,
> my data needs to have each column in it's own variable, or else I have to
> do nested repeats to place it all correctly.
>
> 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
>
___
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