Re: Standalone builder tells me that there is a stack ... already open and so on

2019-02-19 Thread William Prothero via use-livecode
Matthias:
Do you use Microsoft OneDrive? The following happened to me and I was, at 
first, blaming Livecode.

I couldn’t get Hermann’s turnImage contribution working, but then did a lot of 
work trying to clean my system of disc errors, then found that oneDrive was 
corrupting my boot drive (Mac OS 10.14.3). I’m pretty sure the problem is not 
completely fixed, but after cleaning my drive with DiskWarrior, it seems to 
work normally now, and I got turnImage to work correctly.

Best,
Bill

> On Feb 19, 2019, at 4:34 PM, Matthias Rebbe via use-livecode 
>  wrote:
> 
> Thanks to all who responded and please excuse that i answer so late.
> 
> I´ve checked all you suggestions. But nothing solved my problem.
> 
> I then opened the stack in LC 9.0.1 and was able to built a standalone 
> without a problem.
> 
> After that i was also able  to create a standalone again in LC 9.0.2 w/o a 
> problem. Whatever this has caused it,
> it´s not there anymore and all is fine again. Very strange.
> 
> Matthias
> 
> 
>> Am 15.02.2019 um 16:55 schrieb Bob Sneidar via use-livecode 
>> mailto:use-livecode@lists.runrev.com>>:
>> 
>> I just had an, "AHA!" moment. 
>> 
>> Bob S
>> 
>> 
>>> On Feb 14, 2019, at 10:15 , Richard Gaskin via use-livecode 
>>> mailto:use-livecode@lists.runrev.com>> 
>>> wrote:
>>> 
>>> The example there is uses two paths that differ based on the Unix shortcut 
>>> of "~" for the user's home folder, e.g.:
>>> 
>>> /home/matthias/workfolder/somestack.livecode
>>> 
>>> ...vs:
>>> 
>>> ~/workfolder/somestack.livecode
>>> 
>>> Both paths refer to the same file system object, but apparently the engine 
>>> maintains its handle to the file based on the given path rather than the 
>>> fully resolved path, so it believes those are two different files in which 
>>> the stack objects happen to have the same name.
>> 
>> 
>> ___
>> 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: Old Rev stack feature / view ...where is it in LC 8

2019-02-19 Thread J. Landman Gay via use-livecode
Are you thinking of the old application browser? It's now in the Plugins 
menu, named revApplicationOverview.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On February 19, 2019 6:36:05 PM Glen Bojsza via use-livecode 
 wrote:



Hello,

I have an old rev stack that I had saved images as controls and could
reference them by their ID number and remember that you could bring up all
controls used by rev to see what controls you had saved.

I can't seem to find that anywhere in LC 8?

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


Livecode with Window 7

2019-02-19 Thread Sannyasin Brahmanathaswami via use-livecode
One of our volunteers uses Window 7, (2009 his last update). He says it the 
best windows version there ever was.

I tried to make a standalone for Windows that would work for him.

But the ask and answer dialog do not appear on screen, I tried them "as sheet" 
but they still are missing. Clicking "enter" should, in theory, trigger the 
"OK" even if they are off screen. But that is also no working 

I have "Search for required inclusions..." in the SA setting. Livecode is 
picking the other things required (internet lib and XML etc) . What about  the 
Answer and Answer?  But "as sheet" should appear in the stack window 
area...that  is also not working...

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


Old Rev stack feature / view ...where is it in LC 8

2019-02-19 Thread Glen Bojsza via use-livecode
Hello,

I have an old rev stack that I had saved images as controls and could
reference them by their ID number and remember that you could bring up all
controls used by rev to see what controls you had saved.

I can't seem to find that anywhere in LC 8?

Glen
___
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: Standalone builder tells me that there is a stack ... already open and so on

2019-02-19 Thread Matthias Rebbe via use-livecode
Thanks to all who responded and please excuse that i answer so late.

I´ve checked all you suggestions. But nothing solved my problem.

I then opened the stack in LC 9.0.1 and was able to built a standalone without 
a problem.

After that i was also able  to create a standalone again in LC 9.0.2 w/o a 
problem. Whatever this has caused it,
it´s not there anymore and all is fine again. Very strange.

Matthias


> Am 15.02.2019 um 16:55 schrieb Bob Sneidar via use-livecode 
> mailto:use-livecode@lists.runrev.com>>:
> 
> I just had an, "AHA!" moment. 
> 
> Bob S
> 
> 
>> On Feb 14, 2019, at 10:15 , Richard Gaskin via use-livecode 
>> mailto:use-livecode@lists.runrev.com>> wrote:
>> 
>> The example there is uses two paths that differ based on the Unix shortcut 
>> of "~" for the user's home folder, e.g.:
>> 
>>  /home/matthias/workfolder/somestack.livecode
>> 
>> ...vs:
>> 
>> ~/workfolder/somestack.livecode
>> 
>> Both paths refer to the same file system object, but apparently the engine 
>> maintains its handle to the file based on the given path rather than the 
>> fully resolved path, so it believes those are two different files in which 
>> the stack objects happen to have the same name.
> 
> 
> ___
> 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: widget browser

2019-02-19 Thread hh via use-livecode
Two basic ways:

set the url of widget "Browser" to "https://duckduckgo.com;
set the htmltext of widget "Browser" to "Hello"

If these two work, the problem is your html file.

To open a local file drag its icon to the url field of the widget in
the property inspector. Then you see the correct syntax for the URL.

Test also to open the file with an ordinary browser.


___
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: LC902 and LC901 Hang with Answer (was Crash)

2019-02-19 Thread J. Landman Gay via use-livecode

On 2/19/19 3:00 PM, JJS via use-livecode wrote:
But just yet i also had a weird issue that it would not post or receive, 
restarted LC and worked again


it's making me nuts


Me too. Sometimes I go back to an earlier version of LC for a while if I 
don't need new features. There's no recipe for the problem either, it's 
always something random.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.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: widget browser

2019-02-19 Thread Alain Vezina via use-livecode
I load both types of files and I used the prefix «  file://« 
Some files are on my Web site.

When I ask for the result, it is empty.

Alain

> Le 19 févr. 2019 à 16:43, Tom Glod via use-livecode 
>  a écrit :
> 
> could it have something to do with the "file:///" prefix? for local files?
> 
> or is this a remote file you are trying to load?.
> 
> 
> Virus-free.
> www.avast.com
> 
> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
> 
> On Tue, Feb 19, 2019 at 4:37 PM Alain Vezina via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> Hi all,
>> 
>> I am using widget browser for the first time and I didn’t find the way to
>> load an HTML file to MyBroswer.
>> I especially want to use it in HTML5.
>> 
>> I tried set the URL of widget « MyBrowser" to a specific  html page,
>> 
>> I tried set the htmlText  of widget « MyBrowser » to a specific  html page
>> and nothing happens except my Browser becomes  blank white.
>> 
>> These two ways don’t work on Mac or with HTML5, except when I use
>> specialFolderPath to write an HTML page that I load after.
>> 
>> I use LC 9.02
>> 
>> Anybody has an idea to make that work.
>> 
>> I want to transfer my apps from the App Store to HTML because I am fed up
>> with Apple’s rules which change too many times.
>> 
>> Alain Vezina
>> Logilangue
>> www.logilangue.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

Re: LC902 and LC901 Hang with Answer (was Crash)

2019-02-19 Thread JJS via use-livecode

Yes yesterday i did a few times.

Mostly i close and reopen LC when opening a new stack. This way i'm sure 
that nothing strange stays behind.


But just yet i also had a weird issue that it would not post or receive, 
restarted LC and worked again


it's making me nuts


Op 19-2-2019 om 22:41 schreef J. Landman Gay via use-livecode:
Did you happen to restart LC? I hear there's a memory leak and a 
restart makes things work again. I know I had some issues that 
resolved after a restart.


On 2/19/19 2:04 PM, JJS via use-livecode wrote:

waah why is this day different then yesterday???

Yesterday i tested and tested and tested

Today i did the same as you, test on Ubuntu Mate, no problem, test on 
Mac  Mojave, no problem, final test on win10 again...no problem


same stack, same conditions, nothing changed, this really blows my mind.

Yesterday and the day before continuously hang, today it's working 
like nothing ever happened.


Makes me furious, well sort of...

I can't provide a recipe


Sorry can't provide any further, if it shows up again, i will try to 
pin it down and report again to this thread.


Thanks a lot for your help

Jerry

Op 19-2-2019 om 01:47 schreef Richard Gaskin via use-livecode:
Thanks. Curious to test this out, I copied the first 110 characters 
of that sample data and pasted into a field 10 times, resulting in 
more than 1k of text with no line breaks.


When I used:

   answer the text of fld 1

...I get the answer box appearing as expected, with the text cut off 
at a reasonable length but no hang - the Answer window's OK button 
responds efficiently as expected.


Tested on Win 10 and Ubuntu 14.04, using LC 9.0.2.

Happy to run other tests to help pin this down, so please feel free 
to share any details that might help us reach a reproducible recipe 
for a bug report.




___
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: widget browser

2019-02-19 Thread Tom Glod via use-livecode
could it have something to do with the "file:///" prefix? for local files?

or is this a remote file you are trying to load?.


Virus-free.
www.avast.com

<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On Tue, Feb 19, 2019 at 4:37 PM Alain Vezina via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Hi all,
>
> I am using widget browser for the first time and I didn’t find the way to
> load an HTML file to MyBroswer.
> I especially want to use it in HTML5.
>
> I tried set the URL of widget « MyBrowser" to a specific  html page,
>
> I tried set the htmlText  of widget « MyBrowser » to a specific  html page
> and nothing happens except my Browser becomes  blank white.
>
> These two ways don’t work on Mac or with HTML5, except when I use
> specialFolderPath to write an HTML page that I load after.
>
> I use LC 9.02
>
> Anybody has an idea to make that work.
>
> I want to transfer my apps from the App Store to HTML because I am fed up
> with Apple’s rules which change too many times.
>
> Alain Vezina
> Logilangue
> www.logilangue.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: LC902 and LC901 Hang with Answer (was Crash)

2019-02-19 Thread J. Landman Gay via use-livecode
Did you happen to restart LC? I hear there's a memory leak and a restart 
makes things work again. I know I had some issues that resolved after a 
restart.


On 2/19/19 2:04 PM, JJS via use-livecode wrote:

waah why is this day different then yesterday???

Yesterday i tested and tested and tested

Today i did the same as you, test on Ubuntu Mate, no problem, test on 
Mac  Mojave, no problem, final test on win10 again...no problem


same stack, same conditions, nothing changed, this really blows my mind.

Yesterday and the day before continuously hang, today it's working like 
nothing ever happened.


Makes me furious, well sort of...

I can't provide a recipe


Sorry can't provide any further, if it shows up again, i will try to pin 
it down and report again to this thread.


Thanks a lot for your help

Jerry

Op 19-2-2019 om 01:47 schreef Richard Gaskin via use-livecode:
Thanks. Curious to test this out, I copied the first 110 characters of 
that sample data and pasted into a field 10 times, resulting in more 
than 1k of text with no line breaks.


When I used:

   answer the text of fld 1

...I get the answer box appearing as expected, with the text cut off 
at a reasonable length but no hang - the Answer window's OK button 
responds efficiently as expected.


Tested on Win 10 and Ubuntu 14.04, using LC 9.0.2.

Happy to run other tests to help pin this down, so please feel free to 
share any details that might help us reach a reproducible recipe for a 
bug report.




___
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



--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.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

widget browser

2019-02-19 Thread Alain Vezina via use-livecode
Hi all,

I am using widget browser for the first time and I didn’t find the way to load 
an HTML file to MyBroswer.
I especially want to use it in HTML5.

I tried set the URL of widget « MyBrowser" to a specific  html page,

I tried set the htmlText  of widget « MyBrowser » to a specific  html page and 
nothing happens except my Browser becomes  blank white.

These two ways don’t work on Mac or with HTML5, except when I use 
specialFolderPath to write an HTML page that I load after.

I use LC 9.02

Anybody has an idea to make that work.

I want to transfer my apps from the App Store to HTML because I am fed up with 
Apple’s rules which change too many times.

Alain Vezina
Logilangue
www.logilangue.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: LC902 and LC901 Hang with Answer (was Crash)

2019-02-19 Thread JJS via use-livecode

waah why is this day different then yesterday???

Yesterday i tested and tested and tested

Today i did the same as you, test on Ubuntu Mate, no problem, test on 
Mac  Mojave, no problem, final test on win10 again...no problem


same stack, same conditions, nothing changed, this really blows my mind.

Yesterday and the day before continuously hang, today it's working like 
nothing ever happened.


Makes me furious, well sort of...

I can't provide a recipe


Sorry can't provide any further, if it shows up again, i will try to pin 
it down and report again to this thread.


Thanks a lot for your help

Jerry

Op 19-2-2019 om 01:47 schreef Richard Gaskin via use-livecode:
Thanks. Curious to test this out, I copied the first 110 characters of 
that sample data and pasted into a field 10 times, resulting in more 
than 1k of text with no line breaks.


When I used:

   answer the text of fld 1

...I get the answer box appearing as expected, with the text cut off 
at a reasonable length but no hang - the Answer window's OK button 
responds efficiently as expected.


Tested on Win 10 and Ubuntu 14.04, using LC 9.0.2.

Happy to run other tests to help pin this down, so please feel free to 
share any details that might help us reach a reproducible recipe for a 
bug report.




___
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: Need crash course in Dropbox library

2019-02-19 Thread pink via use-livecode
I still need to do some testing and fiddle with a few things, but here's what
I've got so far, authentication is handled in a different handler, the
access token is passed as a parameter:

command dropBoxUploader pAccessToken
   local tMyFolder = "/Downloads"
   local tMyFileShortFilename = "abc.mp4"
   local tMyFilePath = "/Downloads/abc.mp4"
   local tChunkSize = 157286400
   local tStep = 0
   local tBytesProcessed = 0
   local tOffset = 0
   local tDestPath = "/somefolder/abc.mp4"
   local tFileDescription, tBytesRemaining, tBytesThisRead, tResult,
tSession
   
   filter files(tMyFolder, "detailed") with tMyFileShortFilename & ",*" 
into tFileDescription 
   put item 2 of tFileDescription into tBytesRemaining 
   put tChunkSize into tBytesThisRead 
   open file tMyFilePath for binary read 
   repeat until tBytesRemaining = 0 
  read from file tMyFilePath for tBytesThisRead 
  put it into tData
  subtract length(tData) from tBytesRemaining 
  add 1 to tStep
  if tStep = 1 then
 dropboxUploadSessionStart pAccessToken, tData 
  else if tBytesRemaining = 0 then
 dropboxUploadSessionFinish pAccessToken, tSession, tOffset,
tDestPath, "add", true,  false, tData
  else
 dropboxUploadSessionAppend pAccessToken, tSession, tOffset, tData 
  end if
  put jsonToArray(the result) into tResult[tStep]
  if tResult[tStep]["error"] is not empty then
 exit repeat
  end if
  put tResult[1]["session_id"] into tSession
  add tBytesThisRead to tOffset
  put min(tChunkSize, tBytesRemaining) into tBytesThisRead 
   end repeat 
   close file tMyFilePath 
end dropBoxUploader


JJS via use-livecode wrote
> I'm not sure how this would work in your context, but one way to break 
> up a file into pieces is to use open / read / close like this:
> 
> # assumes LC 9.0.2
> # tMyFolder = path of folder containing the file to upload
> # tMyFileShortFilename = 'short' filename of file to upload - no
> path, just the filename
> # tMyFilePath = full path of file to upload
> 
> filter files(tMyFolder, "detailed") with tMyFileShortFilename & ",*"
> into tFileDescription
> put item 2 of tFileDescription into tBytesRemaining
> put 0 into tBytesProcessed
> put 157286400 into tChunkSize -- 150 MB
> put tChunkSize into tBytesThisRead
> open file tMyFilePath for binary read
> repeat until tBytesRemaining = 0
>      read from file tMyFilePath for tBytesThisRead
>      subtract length(it) from tBytesRemaining
>      _processChunk it
>      put min(tChunkSize, tBytesRemaining) into tBytesThisRead
> end repeat
> close file tMyFilePath
> 
> Your upload would be done in the '_processChunk' handler.
> 
> HTH -
> Phil Davis
> 
> 
> On 2/18/19 5:21 AM, pink via use-livecode wrote:
>> I'm getting a little closer...
>>
>> 1. how do I break fileContents into smaller pieces?
>> 2. how do I properly calculate the pOffset value?
>>
>>
>> Matthias Rebbe via use-livecode wrote
>>> Hey pink
>>> Yes, you are just going to put 150MB at a time into the pData parameter
>>> and
>>> ship it.
>>> I have not uploaded any binary files, just encoded text files, so you
>>> may
>>> have to fiddle with encoding to make sure you don't get into any
>>> trouble.
>>> You should be able to open/read the files using
>>> put url "binfile:/" into fileContents
>>>
>>> On Sun, Feb 17, 2019 at 10:42 AM pink via use-livecode <
>>> use-livecode@.runrev
 wrote:
 the phxDropbox library is for v1 of the Dropbox API, which has been
 deprecated

 what I need is to get a handle of the upload session commands, how do I
 properly break the file data into seperate sessions, and how do i
 determine
 the offset value


 Matthias Rebbe via use-livecode wrote
> Don't know if this works anymore but before i used this:
>
>
> *on*openstack
>
> *if* thereisnotastack"phxDropboxLib"*then*
>
> *put*GetPathToFile("phxDropboxLib.livecode") intophxLib
>
> *start*usingstackphxLib
>
> *else* *if* "phxDropboxLib"isnotamongthelinesofthestacksinuse*then*
>
> *start*usingstack"phxDropboxLib"
>
> *end* *if*
>
> *--*
>
> *if* "phxDropboxLib"isnotamongthelinesofthestacksinuse*then*
>
> *answer*error"Unable to load phxDropboxLib"
>
> *quit*
>
> *end* *if*
>
> *constant*myAppKey = "appappappapp"
>
> *constant*myAppSec = "secsecsec"
>
> *constant*myTokKey = "toktoktoktok"
>
> *constant*myTokSec = "sectoksectok"
>
> *--*
>
> *if* notphx_DropboxAvailable() *then*
>
> *answer*"Dropbox HTTPS connection NOT available"
>
> *end* *if*
>
> *get*phx_DropboxInitLib(myAppKey, myAppSec, myTokKey, myTokSec)
>
> end openCard
>
> reading
>
> *put*phx_DropboxReadFile("sandbox", ("/folder/some.txt"))
> intoField"Name1"ofcard1

[ANN] This Week in LiveCode 168

2019-02-19 Thread panagiotis merakos via use-livecode
Hi all,

Read about new developments in LiveCode open source and the open source
community in today's edition of the "This Week in LiveCode" newsletter!

Read issue #168 here: https://goo.gl/hK7hcu

This is a weekly newsletter about LiveCode, focussing on what's been
going on in and around the open source project. New issues will be
released weekly on Mondays. We have a dedicated mailing list that will
deliver each issue directly to you e-mail, so you don't miss any!

If you have anything you'd like mentioned (a project, a discussion
somewhere, an upcoming event) then please get in touch.



-- 
Panagiotis Merakos 
LiveCode Software Developer

Everyone Can Create Apps 
___
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